acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of includedir.
[gcc.git] / libstdc++-v3 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for package-unused version-unused.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME='package-unused'
268 PACKAGE_TARNAME='libstdc++'
269 PACKAGE_VERSION='version-unused'
270 PACKAGE_STRING='package-unused version-unused'
271 PACKAGE_BUGREPORT=''
272
273 ac_unique_file="src/ios.cc"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL CXXCPP CPPFLAGS enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE LIBUNWIND_FLAG GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H FPOS_H BASIC_FILE_H BASIC_FILE_CC CPP EGREP check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CCODECVT_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_INC_SRCDIR FPOS_INC_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CXXCPP_set=${CXXCPP+set}
753 ac_env_CXXCPP_value=$CXXCPP
754 ac_cv_env_CXXCPP_set=${CXXCPP+set}
755 ac_cv_env_CXXCPP_value=$CXXCPP
756 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
757 ac_env_CPPFLAGS_value=$CPPFLAGS
758 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
760 ac_env_CPP_set=${CPP+set}
761 ac_env_CPP_value=$CPP
762 ac_cv_env_CPP_set=${CPP+set}
763 ac_cv_env_CPP_value=$CPP
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
771 cat <<_ACEOF
772 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794 cat <<_ACEOF
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
797 [$ac_default_prefix]
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
799 [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
821 _ACEOF
822
823 cat <<\_ACEOF
824
825 Program names:
826 --program-prefix=PREFIX prepend PREFIX to installed program names
827 --program-suffix=SUFFIX append SUFFIX to installed program names
828 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
829
830 System types:
831 --build=BUILD configure for building on BUILD [guessed]
832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
833 --target=TARGET configure for building compilers for TARGET [HOST]
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838 case $ac_init_help in
839 short | recursive ) echo "Configuration of package-unused version-unused:";;
840 esac
841 cat <<\_ACEOF
842
843 Optional Features:
844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
846 --enable-multilib build many library versions (default)
847 --enable-maintainer-mode enable make rules and dependencies not useful
848 (and sometimes confusing) to the casual installer
849 --enable-shared=PKGS build shared libraries default=yes
850 --enable-static=PKGS build static libraries default=yes
851 --enable-fast-install=PKGS optimize for fast installation default=yes
852 --disable-libtool-lock avoid locking (might break parallel builds)
853 --disable-hosted-libstdcxx
854 only build freestanding C++ runtime support
855 --enable-sjlj-exceptions
856 force use of builtin_setjmp for exceptions
857 [default=auto]
858 --enable-libunwind-exceptions
859 force use of libunwind for exceptions
860 [default=no]
861 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
862 [default=$is_hosted]
863 --enable-cstdio=PACKAGE use target-specific I/O package
864 [default=stdio]
865 --enable-clocale[=MODEL]
866 use MODEL for target locale package
867 [default=auto]
868 --enable-nls use Native Language Support (default)
869 --enable-cheaders=KIND construct "C" headers for g++
870 [default=$c_model]
871 --enable-c-mbchar enable multibyte (wide) characters
872 [default=yes]
873 --enable-c99 turns on ISO/IEC 9899:1999 support
874 [default=yes]
875 --enable-long-long enables I/O support for 'long long'
876 [default=yes]
877 --enable-concept-checks use Boost-derived template checks [default=no]
878 --enable-libstdcxx-debug-flags=FLAGS
879 pass compiler FLAGS when building debug library
880 [default="-g3 -O0"]
881 --enable-libstdcxx-debug
882 build extra debug library [default=no]
883 --enable-cxx-flags=FLAGS
884 pass compiler FLAGS when building library
885 [default=]
886 --enable-symvers=STYLE enables symbol versioning of the shared library
887 [default=yes]
888 --enable-version-specific-runtime-libs
889 Specify that runtime libraries should be installed
890 in a compiler-specific directory
891
892 Optional Packages:
893 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
894 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
895 --with-target-subdir=SUBDIR
896 configuring in a subdirectory
897 --with-cross-host=HOST configuring with a cross compiler
898 --with-newlib assume newlib as a system C library
899 --with-gnu-ld assume the C compiler uses GNU ld default=no
900 --with-pic try to use only PIC/non-PIC objects default=use both
901 --with-gxx-include-dir=DIR
902 installation directory for include files
903
904 Some influential environment variables:
905 CC C compiler command
906 CFLAGS C compiler flags
907 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
908 nonstandard directory <lib dir>
909 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
910 headers in a nonstandard directory <include dir>
911 CXX C++ compiler command
912 CXXFLAGS C++ compiler flags
913 CXXCPP C++ preprocessor
914 CPP C preprocessor
915
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
918
919 _ACEOF
920 fi
921
922 if test "$ac_init_help" = "recursive"; then
923 # If there are subdirs, report their specific --help.
924 ac_popdir=`pwd`
925 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
926 test -d $ac_dir || continue
927 ac_builddir=.
928
929 if test "$ac_dir" != .; then
930 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
931 # A "../" for each directory in $ac_dir_suffix.
932 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 else
934 ac_dir_suffix= ac_top_builddir=
935 fi
936
937 case $srcdir in
938 .) # No --srcdir option. We are building in place.
939 ac_srcdir=.
940 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=.
942 else
943 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 fi ;;
945 [\\/]* | ?:[\\/]* ) # Absolute path.
946 ac_srcdir=$srcdir$ac_dir_suffix;
947 ac_top_srcdir=$srcdir ;;
948 *) # Relative path.
949 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
950 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 esac
952 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
953 # absolute.
954 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
955 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
956 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
957 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
958
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
974 cd "$ac_popdir"
975 done
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
981 package-unused configure version-unused
982 generated by GNU Autoconf 2.57
983
984 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
985 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
990 fi
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
995
996 It was created by package-unused $as_me version-unused, which was
997 generated by GNU Autoconf 2.57. Invocation command line was
998
999 $ $0 $@
1000
1001 _ACEOF
1002 {
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1007
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025 _ASUNAME
1026
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1029 do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1034
1035 } >&5
1036
1037 cat >&5 <<_ACEOF
1038
1039
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1043
1044 _ACEOF
1045
1046
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1058 do
1059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1115 {
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 ;;
1123 *)
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ;;
1127 esac;
1128 }
1129 echo
1130
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1176 ' 0
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1181
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1186
1187 # Predefined preprocessor variables.
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1212
1213
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222 fi
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1229 fi
1230 done
1231
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247 fi
1248
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1290 fi
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298 fi
1299
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333 ac_config_headers="$ac_config_headers config.h"
1334
1335
1336 # This works around the fact that libtool configuration may change LD
1337 # for this particular configuration, but some shells, instead of
1338 # keeping the changes in LD private, export them just because LD is
1339 # exported. Only used at the end of this file.
1340 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1341
1342 # For libtool versioning info, format is CURRENT:REVISION:AGE
1343 libtool_VERSION=6:0:0
1344
1345
1346 # Find the rest of the source tree framework.
1347
1348 # Sets up multi_basedir, which is srcdir/.. plus the usual
1349 # "multi_source_toprel_bottom_adjust" lunacy as needed.
1350 # Default to --enable-multilib
1351 # Check whether --enable-multilib or --disable-multilib was given.
1352 if test "${enable_multilib+set}" = set; then
1353 enableval="$enable_multilib"
1354 case "$enableval" in
1355 yes) multilib=yes ;;
1356 no) multilib=no ;;
1357 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1358 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1359 { (exit 1); exit 1; }; } ;;
1360 esac
1361 else
1362 multilib=yes
1363 fi;
1364
1365 # We may get other options which we leave undocumented:
1366 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1367 # See config-ml.in if you want the gory details.
1368
1369 if test "$srcdir" = "."; then
1370 if test "$with_target_subdir" != "."; then
1371 multi_basedir="$srcdir/$with_multisrctop../.."
1372 else
1373 multi_basedir="$srcdir/$with_multisrctop.."
1374 fi
1375 else
1376 multi_basedir="$srcdir/.."
1377 fi
1378
1379
1380 ac_config_commands="$ac_config_commands default-1"
1381
1382
1383 # The generated code is exactly the same, except that automake's looks in
1384 # ".. $srcdir/.." and autoconf's looks in multi_basedir. Apparently other
1385 # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1386 # know what they are or what the other differences might be (and they keep
1387 # changing anyhow).
1388 #
1389 # Looking in multi_basedir seems smarter, so actually execute that branch.
1390 if false; then
1391 # this is for automake
1392 ac_aux_dir=
1393 for ac_dir in .. $srcdir/..; do
1394 if test -f $ac_dir/install-sh; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/install-sh -c"
1397 break
1398 elif test -f $ac_dir/install.sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install.sh -c"
1401 break
1402 elif test -f $ac_dir/shtool; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/shtool install -c"
1405 break
1406 fi
1407 done
1408 if test -z "$ac_aux_dir"; then
1409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1411 { (exit 1); exit 1; }; }
1412 fi
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1416
1417 else
1418 # this is for autoconf
1419 ac_aux_dir=
1420 for ac_dir in ${multi_basedir}; do
1421 if test -f $ac_dir/install-sh; then
1422 ac_aux_dir=$ac_dir
1423 ac_install_sh="$ac_aux_dir/install-sh -c"
1424 break
1425 elif test -f $ac_dir/install.sh; then
1426 ac_aux_dir=$ac_dir
1427 ac_install_sh="$ac_aux_dir/install.sh -c"
1428 break
1429 elif test -f $ac_dir/shtool; then
1430 ac_aux_dir=$ac_dir
1431 ac_install_sh="$ac_aux_dir/shtool install -c"
1432 break
1433 fi
1434 done
1435 if test -z "$ac_aux_dir"; then
1436 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1437 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1438 { (exit 1); exit 1; }; }
1439 fi
1440 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1441 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1442 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1443
1444 fi
1445
1446
1447
1448 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1449 #
1450 # You will slowly go insane if you do not grok the following fact: when
1451 # building v3 as part of the compiler, the top-level /target/ becomes the
1452 # library's /host/. configure then causes --target to default to --host,
1453 # exactly like any other package using autoconf. Therefore, 'target' and
1454 # 'host' will always be the same. This makes sense both for native and
1455 # cross compilers, just think about it for a little while. :-)
1456 #
1457 # Also, if v3 is being configured as part of a cross compiler, the top-level
1458 # configure script will pass the "real" host as $with_cross_host.
1459 #
1460 # Do not delete or change the following two lines. For why, see
1461 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1462 # Make sure we can run config.sub.
1463 $ac_config_sub sun4 >/dev/null 2>&1 ||
1464 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1465 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1466 { (exit 1); exit 1; }; }
1467
1468 echo "$as_me:$LINENO: checking build system type" >&5
1469 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1470 if test "${ac_cv_build+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 ac_cv_build_alias=$build_alias
1474 test -z "$ac_cv_build_alias" &&
1475 ac_cv_build_alias=`$ac_config_guess`
1476 test -z "$ac_cv_build_alias" &&
1477 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1478 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1479 { (exit 1); exit 1; }; }
1480 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1484
1485 fi
1486 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1487 echo "${ECHO_T}$ac_cv_build" >&6
1488 build=$ac_cv_build
1489 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492
1493
1494 echo "$as_me:$LINENO: checking host system type" >&5
1495 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1496 if test "${ac_cv_host+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499 ac_cv_host_alias=$host_alias
1500 test -z "$ac_cv_host_alias" &&
1501 ac_cv_host_alias=$ac_cv_build_alias
1502 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1503 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1504 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1505 { (exit 1); exit 1; }; }
1506
1507 fi
1508 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1509 echo "${ECHO_T}$ac_cv_host" >&6
1510 host=$ac_cv_host
1511 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1514
1515
1516 echo "$as_me:$LINENO: checking target system type" >&5
1517 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1518 if test "${ac_cv_target+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 ac_cv_target_alias=$target_alias
1522 test "x$ac_cv_target_alias" = "x" &&
1523 ac_cv_target_alias=$ac_cv_host_alias
1524 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1525 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1526 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1527 { (exit 1); exit 1; }; }
1528
1529 fi
1530 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1531 echo "${ECHO_T}$ac_cv_target" >&6
1532 target=$ac_cv_target
1533 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1534 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1535 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1536
1537
1538 # The aliases save the names the user supplied, while $host etc.
1539 # will get canonicalized.
1540 test -n "$target_alias" &&
1541 test "$program_prefix$program_suffix$program_transform_name" = \
1542 NONENONEs,x,x, &&
1543 program_prefix=${target_alias}-
1544 target_alias=${target_alias-$host_alias}
1545
1546 # Handy for debugging:
1547 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1548
1549 if test "$build" != "$host"; then
1550 # We are being configured with some form of cross compiler.
1551 GLIBCXX_IS_NATIVE=false
1552
1553 else
1554 GLIBCXX_IS_NATIVE=true
1555 fi
1556
1557 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1558 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1559 # 1.x: minimum required version
1560 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1561 # of other PACKAGE_* variables will, however, and there's nothing
1562 # we can do about that; they come from AC_INIT).
1563 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1564 # file in the top srcdir, etc, etc), so stop complaining.
1565 # no-dependencies: turns off auto dependency generation (just for now)
1566 # -Wall: turns on all automake warnings
1567 am__api_version="1.7"
1568 # Find a good install program. We prefer a C program (faster),
1569 # so one script is as good as another. But avoid the broken or
1570 # incompatible versions:
1571 # SysV /etc/install, /usr/sbin/install
1572 # SunOS /usr/etc/install
1573 # IRIX /sbin/install
1574 # AIX /bin/install
1575 # AmigaOS /C/install, which installs bootblocks on floppy discs
1576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593 ./ | .// | /cC/* | \
1594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595 /usr/ucb/* ) ;;
1596 *)
1597 # OSF1 and SCO ODT 3.0 have their own names for install.
1598 # Don't use installbsd from OSF since it installs stuff as root
1599 # by default.
1600 for ac_prog in ginstall scoinst install; do
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1603 if test $ac_prog = install &&
1604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605 # AIX install. It has an incompatible calling convention.
1606 :
1607 elif test $ac_prog = install &&
1608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609 # program-specific install script used by HP pwplus--don't use.
1610 :
1611 else
1612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1613 break 3
1614 fi
1615 fi
1616 done
1617 done
1618 ;;
1619 esac
1620 done
1621
1622
1623 fi
1624 if test "${ac_cv_path_install+set}" = set; then
1625 INSTALL=$ac_cv_path_install
1626 else
1627 # As a last resort, use the slow shell script. We don't cache a
1628 # path for INSTALL within a source directory, because that will
1629 # break other packages using the cache if that directory is
1630 # removed, or if the path is relative.
1631 INSTALL=$ac_install_sh
1632 fi
1633 fi
1634 echo "$as_me:$LINENO: result: $INSTALL" >&5
1635 echo "${ECHO_T}$INSTALL" >&6
1636
1637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1638 # It thinks the first close brace ends the variable substitution.
1639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1640
1641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1642
1643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1644
1645 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1646 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1647 # Just in case
1648 sleep 1
1649 echo timestamp > conftest.file
1650 # Do `set' in a subshell so we don't clobber the current shell's
1651 # arguments. Must try -L first in case configure is actually a
1652 # symlink; some systems play weird games with the mod time of symlinks
1653 # (eg FreeBSD returns the mod time of the symlink's containing
1654 # directory).
1655 if (
1656 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1657 if test "$*" = "X"; then
1658 # -L didn't work.
1659 set X `ls -t $srcdir/configure conftest.file`
1660 fi
1661 rm -f conftest.file
1662 if test "$*" != "X $srcdir/configure conftest.file" \
1663 && test "$*" != "X conftest.file $srcdir/configure"; then
1664
1665 # If neither matched, then we have a broken ls. This can happen
1666 # if, for instance, CONFIG_SHELL is bash and it inherits a
1667 # broken ls alias from the environment. This has actually
1668 # happened. Such a system could not be considered "sane".
1669 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1670 alias in your environment" >&5
1671 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1672 alias in your environment" >&2;}
1673 { (exit 1); exit 1; }; }
1674 fi
1675
1676 test "$2" = conftest.file
1677 )
1678 then
1679 # Ok.
1680 :
1681 else
1682 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1683 Check your system clock" >&5
1684 echo "$as_me: error: newly created file is older than distributed files!
1685 Check your system clock" >&2;}
1686 { (exit 1); exit 1; }; }
1687 fi
1688 echo "$as_me:$LINENO: result: yes" >&5
1689 echo "${ECHO_T}yes" >&6
1690 test "$program_prefix" != NONE &&
1691 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1692 # Use a double $ so make ignores it.
1693 test "$program_suffix" != NONE &&
1694 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1695 # Double any \ or $. echo might interpret backslashes.
1696 # By default was `s,x,x', remove it if useless.
1697 cat <<\_ACEOF >conftest.sed
1698 s/[\\$]/&&/g;s/;s,x,x,$//
1699 _ACEOF
1700 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1701 rm conftest.sed
1702
1703
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1706
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710 am_missing_run="$MISSING --run "
1711 else
1712 am_missing_run=
1713 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715 fi
1716
1717 for ac_prog in gawk mawk nawk awk
1718 do
1719 # Extract the first word of "$ac_prog", so it can be a program name with args.
1720 set dummy $ac_prog; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_AWK+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726 if test -n "$AWK"; then
1727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1728 else
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1731 do
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_AWK="$ac_prog"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
1739 fi
1740 done
1741 done
1742
1743 fi
1744 fi
1745 AWK=$ac_cv_prog_AWK
1746 if test -n "$AWK"; then
1747 echo "$as_me:$LINENO: result: $AWK" >&5
1748 echo "${ECHO_T}$AWK" >&6
1749 else
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1752 fi
1753
1754 test -n "$AWK" && break
1755 done
1756
1757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763 cat >conftest.make <<\_ACEOF
1764 all:
1765 @echo 'ac_maketemp="$(MAKE)"'
1766 _ACEOF
1767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1769 if test -n "$ac_maketemp"; then
1770 eval ac_cv_prog_make_${ac_make}_set=yes
1771 else
1772 eval ac_cv_prog_make_${ac_make}_set=no
1773 fi
1774 rm -f conftest.make
1775 fi
1776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1777 echo "$as_me:$LINENO: result: yes" >&5
1778 echo "${ECHO_T}yes" >&6
1779 SET_MAKE=
1780 else
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 SET_MAKE="MAKE=${MAKE-make}"
1784 fi
1785
1786 rm -rf .tst 2>/dev/null
1787 mkdir .tst 2>/dev/null
1788 if test -d .tst; then
1789 am__leading_dot=.
1790 else
1791 am__leading_dot=_
1792 fi
1793 rmdir .tst 2>/dev/null
1794
1795 # test to see if srcdir already configured
1796 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1797 test -f $srcdir/config.status; then
1798 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800 { (exit 1); exit 1; }; }
1801 fi
1802
1803 # test whether we have cygpath
1804 if test -z "$CYGPATH_W"; then
1805 if (cygpath --version) >/dev/null 2>/dev/null; then
1806 CYGPATH_W='cygpath -w'
1807 else
1808 CYGPATH_W=echo
1809 fi
1810 fi
1811
1812
1813 # Define the identity of the package.
1814 PACKAGE='libstdc++'
1815 VERSION='version-unused'
1816
1817
1818 # Some tools Automake needs.
1819
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1821
1822
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1824
1825
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1827
1828
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1830
1831
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1833
1834
1835 AMTAR=${AMTAR-"${am_missing_run}tar"}
1836
1837 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1838
1839 # Installed binaries are usually stripped using `strip' when the user
1840 # run `make install-strip'. However `strip' might not be the right
1841 # tool to use in cross-compilation environments, therefore Automake
1842 # will honor the `STRIP' environment variable to overrule this program.
1843 if test "$cross_compiling" != no; then
1844 if test -n "$ac_tool_prefix"; then
1845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}strip; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_STRIP+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$STRIP"; then
1853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1865 fi
1866 done
1867 done
1868
1869 fi
1870 fi
1871 STRIP=$ac_cv_prog_STRIP
1872 if test -n "$STRIP"; then
1873 echo "$as_me:$LINENO: result: $STRIP" >&5
1874 echo "${ECHO_T}$STRIP" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1878 fi
1879
1880 fi
1881 if test -z "$ac_cv_prog_STRIP"; then
1882 ac_ct_STRIP=$STRIP
1883 # Extract the first word of "strip", so it can be a program name with args.
1884 set dummy strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 if test -n "$ac_ct_STRIP"; then
1891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_ac_ct_STRIP="strip"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1903 fi
1904 done
1905 done
1906
1907 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1908 fi
1909 fi
1910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1911 if test -n "$ac_ct_STRIP"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1913 echo "${ECHO_T}$ac_ct_STRIP" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919 STRIP=$ac_ct_STRIP
1920 else
1921 STRIP="$ac_cv_prog_STRIP"
1922 fi
1923
1924 fi
1925 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1926
1927 # We need awk for the "check" target. The system "awk" is bad on
1928 # some platforms.
1929
1930
1931
1932
1933 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1934 # up critical shell variables.
1935
1936 # Keep these sync'd with the list in Makefile.am. The first provides an
1937 # expandable list at autoconf time; the second provides an expandable list
1938 # (i.e., shell variable) at configure time.
1939
1940 SUBDIRS='include libmath libsupc++ src po testsuite'
1941
1942 # These need to be absolute paths, yet at the same time need to
1943 # canonicalize only relative paths, because then amd will not unmount
1944 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1945 glibcxx_builddir=`${PWDCMD-pwd}`
1946 case $srcdir in
1947 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1948 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1949 esac
1950 toplevel_srcdir=${glibcxx_srcdir}/..
1951
1952
1953
1954
1955 # We use these options to decide which functions to include. They are
1956 # set from the top level.
1957
1958 # Check whether --with-target-subdir or --without-target-subdir was given.
1959 if test "${with_target_subdir+set}" = set; then
1960 withval="$with_target_subdir"
1961
1962 fi;
1963
1964
1965 # Check whether --with-cross-host or --without-cross-host was given.
1966 if test "${with_cross_host+set}" = set; then
1967 withval="$with_cross_host"
1968
1969 fi;
1970
1971
1972 # Check whether --with-newlib or --without-newlib was given.
1973 if test "${with_newlib+set}" = set; then
1974 withval="$with_newlib"
1975
1976 fi;
1977
1978 # We're almost certainly being configured before anything else which uses
1979 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
1980 # we not cache the value of CXX that we "discover" here, because it's set
1981 # to something unique for us and libjava. Other target libraries need to
1982 # find CXX for themselves. We yank the rug out from under the normal AC_*
1983 # process by sneakily renaming the cache variable. This also lets us debug
1984 # the value of "our" CXX in postmortems.
1985 #
1986 # We must also force CXX to /not/ be a precious variable, otherwise the
1987 # wrong (non-multilib-adjusted) value will be used in multilibs. This
1988 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
1989 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
1990 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
1991 #
1992 # -fno-builtin must be present here so that a non-conflicting form of
1993 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
1994
1995
1996
1997
1998 save_CXXFLAGS="$CXXFLAGS"
1999 CXXFLAGS="$CXXFLAGS -fno-builtin"
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2026 fi
2027 done
2028 done
2029
2030 fi
2031 fi
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041 fi
2042 if test -z "$ac_cv_prog_CC"; then
2043 ac_ct_CC=$CC
2044 # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_CC="gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2064 fi
2065 done
2066 done
2067
2068 fi
2069 fi
2070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6
2074 else
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2077 fi
2078
2079 CC=$ac_ct_CC
2080 else
2081 CC="$ac_cv_prog_CC"
2082 fi
2083
2084 if test -z "$CC"; then
2085 if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2087 set dummy ${ac_tool_prefix}cc; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_CC="${ac_tool_prefix}cc"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2106 fi
2107 done
2108 done
2109
2110 fi
2111 fi
2112 CC=$ac_cv_prog_CC
2113 if test -n "$CC"; then
2114 echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6
2116 else
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2119 fi
2120
2121 fi
2122 if test -z "$ac_cv_prog_CC"; then
2123 ac_ct_CC=$CC
2124 # Extract the first word of "cc", so it can be a program name with args.
2125 set dummy cc; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 if test -n "$ac_ct_CC"; then
2132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2136 do
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_CC="cc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2144 fi
2145 done
2146 done
2147
2148 fi
2149 fi
2150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 echo "${ECHO_T}$ac_ct_CC" >&6
2154 else
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2157 fi
2158
2159 CC=$ac_ct_CC
2160 else
2161 CC="$ac_cv_prog_CC"
2162 fi
2163
2164 fi
2165 if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2187 fi
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2191 fi
2192 done
2193 done
2194
2195 if test $ac_prog_rejected = yes; then
2196 # We found a bogon in the path, so make sure we never use it.
2197 set dummy $ac_cv_prog_CC
2198 shift
2199 if test $# != 0; then
2200 # We chose a different compiler from the bogus one.
2201 # However, it has the same basename, so the bogon will be chosen
2202 # first if we set CC to just the basename; use the full file name.
2203 shift
2204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2205 fi
2206 fi
2207 fi
2208 fi
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211 echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6
2213 else
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2216 fi
2217
2218 fi
2219 if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
2221 for ac_prog in cl
2222 do
2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2225 echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2235 do
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2243 fi
2244 done
2245 done
2246
2247 fi
2248 fi
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251 echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6
2253 else
2254 echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6
2256 fi
2257
2258 test -n "$CC" && break
2259 done
2260 fi
2261 if test -z "$CC"; then
2262 ac_ct_CC=$CC
2263 for ac_prog in cl
2264 do
2265 # Extract the first word of "$ac_prog", so it can be a program name with args.
2266 set dummy $ac_prog; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_ac_ct_CC="$ac_prog"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2285 fi
2286 done
2287 done
2288
2289 fi
2290 fi
2291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292 if test -n "$ac_ct_CC"; then
2293 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2294 echo "${ECHO_T}$ac_ct_CC" >&6
2295 else
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2298 fi
2299
2300 test -n "$ac_ct_CC" && break
2301 done
2302
2303 CC=$ac_ct_CC
2304 fi
2305
2306 fi
2307
2308
2309 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2314
2315 # Provide some information about the compiler.
2316 echo "$as_me:$LINENO:" \
2317 "checking for C compiler version" >&5
2318 ac_compiler=`set X $ac_compile; echo $2`
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2320 (eval $ac_compiler --version </dev/null >&5) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
2324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2325 (eval $ac_compiler -v </dev/null >&5) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2329 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2330 (eval $ac_compiler -V </dev/null >&5) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2334
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342
2343 int
2344 main ()
2345 {
2346
2347 ;
2348 return 0;
2349 }
2350 _ACEOF
2351 # FIXME: Cleanup?
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353 (eval $ac_link) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 gcc_no_link=no
2358 else
2359 gcc_no_link=yes
2360 fi
2361
2362 if test x$gcc_no_link = xyes; then
2363 # Setting cross_compile will disable run tests; it will
2364 # also disable AC_CHECK_FILE but that's generally
2365 # correct if we can't link.
2366 cross_compiling=yes
2367 EXEEXT=
2368 else
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2376
2377 int
2378 main ()
2379 {
2380
2381 ;
2382 return 0;
2383 }
2384 _ACEOF
2385 ac_clean_files_save=$ac_clean_files
2386 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2387 # Try to create an executable without -o first, disregard a.out.
2388 # It will help us diagnose broken compilers, and finding out an intuition
2389 # of exeext.
2390 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2391 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2392 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2394 (eval $ac_link_default) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # Find the output, starting from the most likely. This scheme is
2399 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2400 # resort.
2401
2402 # Be careful to initialize this variable, since it used to be cached.
2403 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2404 ac_cv_exeext=
2405 # b.out is created by i960 compilers.
2406 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2407 do
2408 test -f "$ac_file" || continue
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2411 ;;
2412 conftest.$ac_ext )
2413 # This is the source file.
2414 ;;
2415 [ab].out )
2416 # We found the default executable, but exeext='' is most
2417 # certainly right.
2418 break;;
2419 *.* )
2420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 # FIXME: I believe we export ac_cv_exeext for Libtool,
2422 # but it would be cool to find out if it's true. Does anybody
2423 # maintain Libtool? --akim.
2424 export ac_cv_exeext
2425 break;;
2426 * )
2427 break;;
2428 esac
2429 done
2430 else
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&2;}
2438 { (exit 77); exit 77; }; }
2439 fi
2440
2441 ac_exeext=$ac_cv_exeext
2442 echo "$as_me:$LINENO: result: $ac_file" >&5
2443 echo "${ECHO_T}$ac_file" >&6
2444
2445 # Check the compiler produces executables we can run. If not, either
2446 # the compiler is broken, or we cross compile.
2447 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2448 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2449 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2450 # If not cross compiling, check that we can run a simple program.
2451 if test "$cross_compiling" != yes; then
2452 if { ac_try='./$ac_file'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 cross_compiling=no
2459 else
2460 if test "$cross_compiling" = maybe; then
2461 cross_compiling=yes
2462 else
2463 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot run C compiled programs.
2467 If you meant to cross compile, use \`--host'.
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2470 fi
2471 fi
2472 fi
2473 echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6
2475
2476 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2477 ac_clean_files=$ac_clean_files_save
2478 # Check the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2481 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2482 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2483 echo "${ECHO_T}$cross_compiling" >&6
2484
2485 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2486 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2488 (eval $ac_link) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; then
2492 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2493 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2494 # work properly (i.e., refer to `conftest.exe'), while it won't with
2495 # `rm'.
2496 for ac_file in conftest.exe conftest conftest.*; do
2497 test -f "$ac_file" || continue
2498 case $ac_file in
2499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2501 export ac_cv_exeext
2502 break;;
2503 * ) break;;
2504 esac
2505 done
2506 else
2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2512 fi
2513
2514 rm -f conftest$ac_cv_exeext
2515 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2516 echo "${ECHO_T}$ac_cv_exeext" >&6
2517
2518 rm -f conftest.$ac_ext
2519 EXEEXT=$ac_cv_exeext
2520 ac_exeext=$EXEEXT
2521 fi
2522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2524 if test "${ac_cv_objext+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2534
2535 int
2536 main ()
2537 {
2538
2539 ;
2540 return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550 case $ac_file in
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553 break;;
2554 esac
2555 done
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2565 fi
2566
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 fi
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 cat >conftest.$ac_ext <<_ACEOF
2579 #line $LINENO "configure"
2580 /* confdefs.h. */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2585
2586 int
2587 main ()
2588 {
2589 #ifndef __GNUC__
2590 choke me
2591 #endif
2592
2593 ;
2594 return 0;
2595 }
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 ac_compiler_gnu=yes
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 ac_compiler_gnu=no
2615 fi
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2618
2619 fi
2620 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2622 GCC=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CFLAGS=${CFLAGS+set}
2624 ac_save_CFLAGS=$CFLAGS
2625 CFLAGS="-g"
2626 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2627 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cc_g+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638
2639 int
2640 main ()
2641 {
2642
2643 ;
2644 return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 ac_cv_prog_cc_g=yes
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 ac_cv_prog_cc_g=no
2665 fi
2666 rm -f conftest.$ac_objext conftest.$ac_ext
2667 fi
2668 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2670 if test "$ac_test_CFLAGS" = set; then
2671 CFLAGS=$ac_save_CFLAGS
2672 elif test $ac_cv_prog_cc_g = yes; then
2673 if test "$GCC" = yes; then
2674 CFLAGS="-g -O2"
2675 else
2676 CFLAGS="-g"
2677 fi
2678 else
2679 if test "$GCC" = yes; then
2680 CFLAGS="-O2"
2681 else
2682 CFLAGS=
2683 fi
2684 fi
2685 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2686 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2687 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690 ac_cv_prog_cc_stdc=no
2691 ac_save_CC=$CC
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2699 #include <stdarg.h>
2700 #include <stdio.h>
2701 #include <sys/types.h>
2702 #include <sys/stat.h>
2703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2704 struct buf { int x; };
2705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2706 static char *e (p, i)
2707 char **p;
2708 int i;
2709 {
2710 return p[i];
2711 }
2712 static char *f (char * (*g) (char **, int), char **p, ...)
2713 {
2714 char *s;
2715 va_list v;
2716 va_start (v,p);
2717 s = g (p, va_arg (v,int));
2718 va_end (v);
2719 return s;
2720 }
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 int argc;
2726 char **argv;
2727 int
2728 main ()
2729 {
2730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2731 ;
2732 return 0;
2733 }
2734 _ACEOF
2735 # Don't try gcc -ansi; that turns off useful extensions and
2736 # breaks some systems' header files.
2737 # AIX -qlanglvl=ansi
2738 # Ultrix and OSF/1 -std1
2739 # HP-UX 10.20 and later -Ae
2740 # HP-UX older versions -Aa -D_HPUX_SOURCE
2741 # SVR4 -Xc -D__EXTENSIONS__
2742 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2743 do
2744 CC="$ac_save_CC $ac_arg"
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_prog_cc_stdc=$ac_arg
2758 break
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763 fi
2764 rm -f conftest.$ac_objext
2765 done
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2767 CC=$ac_save_CC
2768
2769 fi
2770
2771 case "x$ac_cv_prog_cc_stdc" in
2772 x|xno)
2773 echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6 ;;
2775 *)
2776 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778 CC="$CC $ac_cv_prog_cc_stdc" ;;
2779 esac
2780
2781 # Some people use a C++ compiler to compile C. Since we use `exit',
2782 # in C++ we need to declare it. In case someone uses the same compiler
2783 # for both compiling C and C++ we need to have the C++ compiler decide
2784 # the declaration of exit, since it's the most demanding environment.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #ifndef __cplusplus
2787 choke me
2788 #endif
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 for ac_declaration in \
2803 '' \
2804 'extern "C" void std::exit (int) throw (); using std::exit;' \
2805 'extern "C" void std::exit (int); using std::exit;' \
2806 'extern "C" void exit (int) throw ();' \
2807 'extern "C" void exit (int);' \
2808 'void exit (int);'
2809 do
2810 cat >conftest.$ac_ext <<_ACEOF
2811 #line $LINENO "configure"
2812 /* confdefs.h. */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2817 $ac_declaration
2818 #include <stdlib.h>
2819 int
2820 main ()
2821 {
2822 exit (42);
2823 ;
2824 return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 :
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 continue
2845 fi
2846 rm -f conftest.$ac_objext conftest.$ac_ext
2847 cat >conftest.$ac_ext <<_ACEOF
2848 #line $LINENO "configure"
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 $ac_declaration
2855 int
2856 main ()
2857 {
2858 exit (42);
2859 ;
2860 return 0;
2861 }
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 break
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880 fi
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 done
2883 rm -f conftest*
2884 if test -n "$ac_declaration"; then
2885 echo '#ifdef __cplusplus' >>confdefs.h
2886 echo $ac_declaration >>confdefs.h
2887 echo '#endif' >>confdefs.h
2888 fi
2889
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 fi
2895 rm -f conftest.$ac_objext conftest.$ac_ext
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901
2902 ac_ext=cc
2903 ac_cpp='$CXXCPP $CPPFLAGS'
2904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2907 if test -n "$ac_tool_prefix"; then
2908 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2909 do
2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$CXX"; then
2918 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933
2934 fi
2935 fi
2936 CXX=$glibcxx_cv_prog_CXX
2937 if test -n "$CXX"; then
2938 echo "$as_me:$LINENO: result: $CXX" >&5
2939 echo "${ECHO_T}$CXX" >&6
2940 else
2941 echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2943 fi
2944
2945 test -n "$CXX" && break
2946 done
2947 fi
2948 if test -z "$CXX"; then
2949 ac_ct_CXX=$CXX
2950 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2951 do
2952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2953 set dummy $ac_prog; ac_word=$2
2954 echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 if test -n "$ac_ct_CXX"; then
2960 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_ac_ct_CXX="$ac_prog"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973 done
2974 done
2975
2976 fi
2977 fi
2978 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2979 if test -n "$ac_ct_CXX"; then
2980 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2981 echo "${ECHO_T}$ac_ct_CXX" >&6
2982 else
2983 echo "$as_me:$LINENO: result: no" >&5
2984 echo "${ECHO_T}no" >&6
2985 fi
2986
2987 test -n "$ac_ct_CXX" && break
2988 done
2989 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2990
2991 CXX=$ac_ct_CXX
2992 fi
2993
2994
2995 # Provide some information about the compiler.
2996 echo "$as_me:$LINENO:" \
2997 "checking for C++ compiler version" >&5
2998 ac_compiler=`set X $ac_compile; echo $2`
2999 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3000 (eval $ac_compiler --version </dev/null >&5) 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3005 (eval $ac_compiler -v </dev/null >&5) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3010 (eval $ac_compiler -V </dev/null >&5) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014
3015 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3017 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 cat >conftest.$ac_ext <<_ACEOF
3021 #line $LINENO "configure"
3022 /* confdefs.h. */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3027
3028 int
3029 main ()
3030 {
3031 #ifndef __GNUC__
3032 choke me
3033 #endif
3034
3035 ;
3036 return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_compiler_gnu=yes
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 ac_compiler_gnu=no
3057 fi
3058 rm -f conftest.$ac_objext conftest.$ac_ext
3059 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3060
3061 fi
3062 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3063 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3064 GXX=`test $ac_compiler_gnu = yes && echo yes`
3065 ac_test_CXXFLAGS=${CXXFLAGS+set}
3066 ac_save_CXXFLAGS=$CXXFLAGS
3067 CXXFLAGS="-g"
3068 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3069 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3070 if test "${ac_cv_prog_cxx_g+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 cat >conftest.$ac_ext <<_ACEOF
3074 #line $LINENO "configure"
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3080
3081 int
3082 main ()
3083 {
3084
3085 ;
3086 return 0;
3087 }
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 (eval $ac_try) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 ac_cv_prog_cxx_g=yes
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 ac_cv_prog_cxx_g=no
3107 fi
3108 rm -f conftest.$ac_objext conftest.$ac_ext
3109 fi
3110 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3111 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3112 if test "$ac_test_CXXFLAGS" = set; then
3113 CXXFLAGS=$ac_save_CXXFLAGS
3114 elif test $ac_cv_prog_cxx_g = yes; then
3115 if test "$GXX" = yes; then
3116 CXXFLAGS="-g -O2"
3117 else
3118 CXXFLAGS="-g"
3119 fi
3120 else
3121 if test "$GXX" = yes; then
3122 CXXFLAGS="-O2"
3123 else
3124 CXXFLAGS=
3125 fi
3126 fi
3127 for ac_declaration in \
3128 '' \
3129 'extern "C" void std::exit (int) throw (); using std::exit;' \
3130 'extern "C" void std::exit (int); using std::exit;' \
3131 'extern "C" void exit (int) throw ();' \
3132 'extern "C" void exit (int);' \
3133 'void exit (int);'
3134 do
3135 cat >conftest.$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 $ac_declaration
3143 #include <stdlib.h>
3144 int
3145 main ()
3146 {
3147 exit (42);
3148 ;
3149 return 0;
3150 }
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154 (eval $ac_compile) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 :
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 continue
3170 fi
3171 rm -f conftest.$ac_objext conftest.$ac_ext
3172 cat >conftest.$ac_ext <<_ACEOF
3173 #line $LINENO "configure"
3174 /* confdefs.h. */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179 $ac_declaration
3180 int
3181 main ()
3182 {
3183 exit (42);
3184 ;
3185 return 0;
3186 }
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 break
3201 else
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205 fi
3206 rm -f conftest.$ac_objext conftest.$ac_ext
3207 done
3208 rm -f conftest*
3209 if test -n "$ac_declaration"; then
3210 echo '#ifdef __cplusplus' >>confdefs.h
3211 echo $ac_declaration >>confdefs.h
3212 echo '#endif' >>confdefs.h
3213 fi
3214
3215 ac_ext=c
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220
3221 CXXFLAGS="$save_CXXFLAGS"
3222
3223
3224
3225
3226 # For directory versioning (e.g., headers) and other variables.
3227 echo "$as_me:$LINENO: checking for GCC version number" >&5
3228 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3229 gcc_version=`$CXX -dumpversion`
3230 echo "$as_me:$LINENO: result: $gcc_version" >&5
3231 echo "${ECHO_T}$gcc_version" >&6
3232
3233 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3234 # available). Uncomment the next line to force a particular method.
3235 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3236 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3237 LN_S=$as_ln_s
3238 if test "$LN_S" = "ln -s"; then
3239 echo "$as_me:$LINENO: result: yes" >&5
3240 echo "${ECHO_T}yes" >&6
3241 else
3242 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3243 echo "${ECHO_T}no, using $LN_S" >&6
3244 fi
3245
3246 #LN_S='cp -p'
3247
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}as; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_AS+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 if test -n "$AS"; then
3257 ac_cv_prog_AS="$AS" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_AS="${ac_tool_prefix}as"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272
3273 fi
3274 fi
3275 AS=$ac_cv_prog_AS
3276 if test -n "$AS"; then
3277 echo "$as_me:$LINENO: result: $AS" >&5
3278 echo "${ECHO_T}$AS" >&6
3279 else
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3282 fi
3283
3284 fi
3285 if test -z "$ac_cv_prog_AS"; then
3286 ac_ct_AS=$AS
3287 # Extract the first word of "as", so it can be a program name with args.
3288 set dummy as; ac_word=$2
3289 echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 if test -n "$ac_ct_AS"; then
3295 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3296 else
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3299 do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_prog_ac_ct_AS="as"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308 done
3309 done
3310
3311 fi
3312 fi
3313 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3314 if test -n "$ac_ct_AS"; then
3315 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3316 echo "${ECHO_T}$ac_ct_AS" >&6
3317 else
3318 echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6
3320 fi
3321
3322 AS=$ac_ct_AS
3323 else
3324 AS="$ac_cv_prog_AS"
3325 fi
3326
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}ar; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_AR+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 if test -n "$AR"; then
3336 ac_cv_prog_AR="$AR" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_AR="${ac_tool_prefix}ar"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351
3352 fi
3353 fi
3354 AR=$ac_cv_prog_AR
3355 if test -n "$AR"; then
3356 echo "$as_me:$LINENO: result: $AR" >&5
3357 echo "${ECHO_T}$AR" >&6
3358 else
3359 echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3361 fi
3362
3363 fi
3364 if test -z "$ac_cv_prog_AR"; then
3365 ac_ct_AR=$AR
3366 # Extract the first word of "ar", so it can be a program name with args.
3367 set dummy ar; ac_word=$2
3368 echo "$as_me:$LINENO: checking for $ac_word" >&5
3369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3370 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 if test -n "$ac_ct_AR"; then
3374 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_ac_ct_AR="ar"
3384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3386 fi
3387 done
3388 done
3389
3390 fi
3391 fi
3392 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3393 if test -n "$ac_ct_AR"; then
3394 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3395 echo "${ECHO_T}$ac_ct_AR" >&6
3396 else
3397 echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3399 fi
3400
3401 AR=$ac_ct_AR
3402 else
3403 AR="$ac_cv_prog_AR"
3404 fi
3405
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_RANLIB+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$RANLIB"; then
3415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430
3431 fi
3432 fi
3433 RANLIB=$ac_cv_prog_RANLIB
3434 if test -n "$RANLIB"; then
3435 echo "$as_me:$LINENO: result: $RANLIB" >&5
3436 echo "${ECHO_T}$RANLIB" >&6
3437 else
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3440 fi
3441
3442 fi
3443 if test -z "$ac_cv_prog_RANLIB"; then
3444 ac_ct_RANLIB=$RANLIB
3445 # Extract the first word of "ranlib", so it can be a program name with args.
3446 set dummy ranlib; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$ac_ct_RANLIB"; then
3453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_RANLIB="ranlib"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3465 fi
3466 done
3467 done
3468
3469 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3470 fi
3471 fi
3472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3473 if test -n "$ac_ct_RANLIB"; then
3474 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3475 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3476 else
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3479 fi
3480
3481 RANLIB=$ac_ct_RANLIB
3482 else
3483 RANLIB="$ac_cv_prog_RANLIB"
3484 fi
3485
3486
3487 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3488 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3489 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3490 if test "${enable_maintainer_mode+set}" = set; then
3491 enableval="$enable_maintainer_mode"
3492 USE_MAINTAINER_MODE=$enableval
3493 else
3494 USE_MAINTAINER_MODE=no
3495 fi;
3496 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3497 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3498
3499
3500 if test $USE_MAINTAINER_MODE = yes; then
3501 MAINTAINER_MODE_TRUE=
3502 MAINTAINER_MODE_FALSE='#'
3503 else
3504 MAINTAINER_MODE_TRUE='#'
3505 MAINTAINER_MODE_FALSE=
3506 fi
3507
3508 MAINT=$MAINTAINER_MODE_TRUE
3509
3510
3511
3512 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3513 # which are themselves conditionally expanded.
3514 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3515 ## other macros from doing the same. This should be automated.) -pme
3516 need_libmath=no
3517 enable_wchar_t=no
3518 #enable_libstdcxx_debug=no
3519 #enable_libstdcxx_pch=no
3520 #enable_cheaders=c
3521 #c_compatibility=no
3522 #enable_abi_check=no
3523 #enable_symvers=no
3524 #enable_hosted_libstdcxx=yes
3525
3526 # Find platform-specific directories containing configuration info.
3527 # Also possibly modify flags used elsewhere, as needed by the platform.
3528
3529 . $glibcxx_srcdir/configure.host
3530 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3531 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3532 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3533 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3534
3535
3536
3537 #AC_MSG_NOTICE([====== Starting libtool configuration])
3538
3539 # Check whether --enable-shared or --disable-shared was given.
3540 if test "${enable_shared+set}" = set; then
3541 enableval="$enable_shared"
3542 p=${PACKAGE-default}
3543 case $enableval in
3544 yes) enable_shared=yes ;;
3545 no) enable_shared=no ;;
3546 *)
3547 enable_shared=no
3548 # Look at the argument we got. We use all the common list separators.
3549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3550 for pkg in $enableval; do
3551 if test "X$pkg" = "X$p"; then
3552 enable_shared=yes
3553 fi
3554 done
3555 IFS="$ac_save_ifs"
3556 ;;
3557 esac
3558 else
3559 enable_shared=yes
3560 fi;
3561 # Check whether --enable-static or --disable-static was given.
3562 if test "${enable_static+set}" = set; then
3563 enableval="$enable_static"
3564 p=${PACKAGE-default}
3565 case $enableval in
3566 yes) enable_static=yes ;;
3567 no) enable_static=no ;;
3568 *)
3569 enable_static=no
3570 # Look at the argument we got. We use all the common list separators.
3571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3572 for pkg in $enableval; do
3573 if test "X$pkg" = "X$p"; then
3574 enable_static=yes
3575 fi
3576 done
3577 IFS="$ac_save_ifs"
3578 ;;
3579 esac
3580 else
3581 enable_static=yes
3582 fi;
3583 # Check whether --enable-fast-install or --disable-fast-install was given.
3584 if test "${enable_fast_install+set}" = set; then
3585 enableval="$enable_fast_install"
3586 p=${PACKAGE-default}
3587 case $enableval in
3588 yes) enable_fast_install=yes ;;
3589 no) enable_fast_install=no ;;
3590 *)
3591 enable_fast_install=no
3592 # Look at the argument we got. We use all the common list separators.
3593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3594 for pkg in $enableval; do
3595 if test "X$pkg" = "X$p"; then
3596 enable_fast_install=yes
3597 fi
3598 done
3599 IFS="$ac_save_ifs"
3600 ;;
3601 esac
3602 else
3603 enable_fast_install=yes
3604 fi;
3605
3606 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3607 if test "${with_gnu_ld+set}" = set; then
3608 withval="$with_gnu_ld"
3609 test "$withval" = no || with_gnu_ld=yes
3610 else
3611 with_gnu_ld=no
3612 fi;
3613 ac_prog=ld
3614 if test "$GCC" = yes; then
3615 # Check if gcc -print-prog-name=ld gives a path.
3616 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3617 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3618 case $host in
3619 *-*-mingw*)
3620 # gcc leaves a trailing carriage return which upsets mingw
3621 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3622 *)
3623 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3624 esac
3625 case $ac_prog in
3626 # Accept absolute paths.
3627 [\\/]* | [A-Za-z]:[\\/]*)
3628 re_direlt='/[^/][^/]*/\.\./'
3629 # Canonicalize the path of ld
3630 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3631 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3632 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3633 done
3634 test -z "$LD" && LD="$ac_prog"
3635 ;;
3636 "")
3637 # If it fails, then pretend we aren't using GCC.
3638 ac_prog=ld
3639 ;;
3640 *)
3641 # If it is relative, then search for the first ld in PATH.
3642 with_gnu_ld=unknown
3643 ;;
3644 esac
3645 elif test "$with_gnu_ld" = yes; then
3646 echo "$as_me:$LINENO: checking for GNU ld" >&5
3647 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3648 else
3649 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3650 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3651 fi
3652 if test "${lt_cv_path_LD+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if test -z "$LD"; then
3656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3657 for ac_dir in $PATH; do
3658 test -z "$ac_dir" && ac_dir=.
3659 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3660 lt_cv_path_LD="$ac_dir/$ac_prog"
3661 # Check to see if the program is GNU ld. I'd rather use --version,
3662 # but apparently some GNU ld's only accept -v.
3663 # Break only if it was the GNU/non-GNU ld that we prefer.
3664 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3665 test "$with_gnu_ld" != no && break
3666 else
3667 test "$with_gnu_ld" != yes && break
3668 fi
3669 fi
3670 done
3671 IFS="$ac_save_ifs"
3672 else
3673 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3674 fi
3675 fi
3676
3677 LD="$lt_cv_path_LD"
3678 if test -n "$LD"; then
3679 echo "$as_me:$LINENO: result: $LD" >&5
3680 echo "${ECHO_T}$LD" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3684 fi
3685 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3686 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3687 { (exit 1); exit 1; }; }
3688 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3689 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3690 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3694 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3695 lt_cv_prog_gnu_ld=yes
3696 else
3697 lt_cv_prog_gnu_ld=no
3698 fi
3699 fi
3700 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3701 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3702 with_gnu_ld=$lt_cv_prog_gnu_ld
3703
3704
3705 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3706 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3707 if test "${lt_cv_ld_reload_flag+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 lt_cv_ld_reload_flag='-r'
3711 fi
3712 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3713 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3714 reload_flag=$lt_cv_ld_reload_flag
3715 test -n "$reload_flag" && reload_flag=" $reload_flag"
3716
3717 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3718 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3719 if test "${lt_cv_path_NM+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$NM"; then
3723 # Let the user override the test.
3724 lt_cv_path_NM="$NM"
3725 else
3726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3727 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3728 test -z "$ac_dir" && ac_dir=.
3729 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3730 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3731 # Check to see if the nm accepts a BSD-compat flag.
3732 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3733 # nm: unknown option "B" ignored
3734 # Tru64's nm complains that /dev/null is an invalid object file
3735 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3736 lt_cv_path_NM="$tmp_nm -B"
3737 break
3738 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3739 lt_cv_path_NM="$tmp_nm -p"
3740 break
3741 else
3742 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3743 continue # so that we can try to find one that supports BSD flags
3744 fi
3745 fi
3746 done
3747 IFS="$ac_save_ifs"
3748 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3749 fi
3750 fi
3751
3752 NM="$lt_cv_path_NM"
3753 echo "$as_me:$LINENO: result: $NM" >&5
3754 echo "${ECHO_T}$NM" >&6
3755
3756 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3757 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3758 if test "${lt_cv_deplibs_check_method+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 lt_cv_file_magic_cmd='$MAGIC_CMD'
3762 lt_cv_file_magic_test_file=
3763 lt_cv_deplibs_check_method='unknown'
3764 # Need to set the preceding variable on all platforms that support
3765 # interlibrary dependencies.
3766 # 'none' -- dependencies not supported.
3767 # `unknown' -- same as none, but documents that we really don't know.
3768 # 'pass_all' -- all dependencies passed with no checks.
3769 # 'test_compile' -- check by making test program.
3770 # 'file_magic [regex]' -- check by looking for files in library path
3771 # which responds to the $file_magic_cmd with a given egrep regex.
3772 # If you have `file' or equivalent on your system and you're not sure
3773 # whether `pass_all' will *always* work, you probably want this one.
3774
3775 case $host_os in
3776 aix*)
3777 lt_cv_deplibs_check_method=pass_all
3778 ;;
3779
3780 beos*)
3781 lt_cv_deplibs_check_method=pass_all
3782 ;;
3783
3784 bsdi4*)
3785 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3786 lt_cv_file_magic_cmd='/usr/bin/file -L'
3787 lt_cv_file_magic_test_file=/shlib/libc.so
3788 ;;
3789
3790 cygwin* | mingw* |pw32*)
3791 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3792 lt_cv_file_magic_cmd='$OBJDUMP -f'
3793 ;;
3794
3795 darwin* | rhapsody*)
3796 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3797 lt_cv_file_magic_cmd='/usr/bin/file -L'
3798 case "$host_os" in
3799 rhapsody* | darwin1.012)
3800 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3801 ;;
3802 *) # Darwin 1.3 on
3803 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3804 ;;
3805 esac
3806 ;;
3807
3808 freebsd* )
3809 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3810 case $host_cpu in
3811 i*86 )
3812 # Not sure whether the presence of OpenBSD here was a mistake.
3813 # Let's accept both of them until this is cleared up.
3814 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3815 lt_cv_file_magic_cmd=/usr/bin/file
3816 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3817 ;;
3818 esac
3819 else
3820 lt_cv_deplibs_check_method=pass_all
3821 fi
3822 ;;
3823
3824 gnu*)
3825 lt_cv_deplibs_check_method=pass_all
3826 ;;
3827
3828 hpux10.20*|hpux11*)
3829 case $host_cpu in
3830 hppa*)
3831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3832 lt_cv_file_magic_cmd=/usr/bin/file
3833 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3834 ;;
3835 ia64*)
3836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3837 lt_cv_file_magic_cmd=/usr/bin/file
3838 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3839 ;;
3840 esac
3841 ;;
3842
3843 irix5* | irix6*)
3844 case $host_os in
3845 irix5*)
3846 # this will be overridden with pass_all, but let us keep it just in case
3847 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3848 ;;
3849 *)
3850 case $LD in
3851 *-32|*"-32 ") libmagic=32-bit;;
3852 *-n32|*"-n32 ") libmagic=N32;;
3853 *-64|*"-64 ") libmagic=64-bit;;
3854 *) libmagic=never-match;;
3855 esac
3856 # this will be overridden with pass_all, but let us keep it just in case
3857 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3858 ;;
3859 esac
3860 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3861 lt_cv_deplibs_check_method=pass_all
3862 ;;
3863
3864 # This must be Linux ELF.
3865 linux-gnu*)
3866 case $host_cpu in
3867 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3868 lt_cv_deplibs_check_method=pass_all ;;
3869 *)
3870 # glibc up to 2.1.1 does not perform some relocations on ARM
3871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3872 esac
3873 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3874 ;;
3875
3876 netbsd*)
3877 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3878 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3879 else
3880 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3881 fi
3882 ;;
3883
3884 newsos6)
3885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3886 lt_cv_file_magic_cmd=/usr/bin/file
3887 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3888 ;;
3889
3890 osf3* | osf4* | osf5*)
3891 # this will be overridden with pass_all, but let us keep it just in case
3892 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3893 lt_cv_file_magic_test_file=/shlib/libc.so
3894 lt_cv_deplibs_check_method=pass_all
3895 ;;
3896
3897 sco3.2v5*)
3898 lt_cv_deplibs_check_method=pass_all
3899 ;;
3900
3901 solaris*)
3902 lt_cv_deplibs_check_method=pass_all
3903 lt_cv_file_magic_test_file=/lib/libc.so
3904 ;;
3905
3906 sysv5uw[78]* | sysv4*uw2*)
3907 lt_cv_deplibs_check_method=pass_all
3908 ;;
3909
3910 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3911 case $host_vendor in
3912 ncr)
3913 lt_cv_deplibs_check_method=pass_all
3914 ;;
3915 motorola)
3916 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]'
3917 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3918 ;;
3919 esac
3920 ;;
3921 esac
3922
3923 fi
3924 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3925 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3926 file_magic_cmd=$lt_cv_file_magic_cmd
3927 deplibs_check_method=$lt_cv_deplibs_check_method
3928
3929
3930
3931
3932
3933 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3934
3935 # Only perform the check for file, if the check method requires it
3936 case $deplibs_check_method in
3937 file_magic*)
3938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3939 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3940 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 case $MAGIC_CMD in
3945 /*)
3946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3947 ;;
3948 ?:/*)
3949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3950 ;;
3951 *)
3952 ac_save_MAGIC_CMD="$MAGIC_CMD"
3953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3954 ac_dummy="/usr/bin:$PATH"
3955 for ac_dir in $ac_dummy; do
3956 test -z "$ac_dir" && ac_dir=.
3957 if test -f $ac_dir/${ac_tool_prefix}file; then
3958 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3959 if test -n "$file_magic_test_file"; then
3960 case $deplibs_check_method in
3961 "file_magic "*)
3962 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3965 egrep "$file_magic_regex" > /dev/null; then
3966 :
3967 else
3968 cat <<EOF 1>&2
3969
3970 *** Warning: the command libtool uses to detect shared libraries,
3971 *** $file_magic_cmd, produces output that libtool cannot recognize.
3972 *** The result is that libtool may fail to recognize shared libraries
3973 *** as such. This will affect the creation of libtool libraries that
3974 *** depend on shared libraries, but programs linked with such libtool
3975 *** libraries will work regardless of this problem. Nevertheless, you
3976 *** may want to report the problem to your system manager and/or to
3977 *** bug-libtool@gnu.org
3978
3979 EOF
3980 fi ;;
3981 esac
3982 fi
3983 break
3984 fi
3985 done
3986 IFS="$ac_save_ifs"
3987 MAGIC_CMD="$ac_save_MAGIC_CMD"
3988 ;;
3989 esac
3990 fi
3991
3992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3993 if test -n "$MAGIC_CMD"; then
3994 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3995 echo "${ECHO_T}$MAGIC_CMD" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001 if test -z "$lt_cv_path_MAGIC_CMD"; then
4002 if test -n "$ac_tool_prefix"; then
4003 echo "$as_me:$LINENO: checking for file" >&5
4004 echo $ECHO_N "checking for file... $ECHO_C" >&6
4005 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 case $MAGIC_CMD in
4009 /*)
4010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4011 ;;
4012 ?:/*)
4013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4014 ;;
4015 *)
4016 ac_save_MAGIC_CMD="$MAGIC_CMD"
4017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4018 ac_dummy="/usr/bin:$PATH"
4019 for ac_dir in $ac_dummy; do
4020 test -z "$ac_dir" && ac_dir=.
4021 if test -f $ac_dir/file; then
4022 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4023 if test -n "$file_magic_test_file"; then
4024 case $deplibs_check_method in
4025 "file_magic "*)
4026 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4029 egrep "$file_magic_regex" > /dev/null; then
4030 :
4031 else
4032 cat <<EOF 1>&2
4033
4034 *** Warning: the command libtool uses to detect shared libraries,
4035 *** $file_magic_cmd, produces output that libtool cannot recognize.
4036 *** The result is that libtool may fail to recognize shared libraries
4037 *** as such. This will affect the creation of libtool libraries that
4038 *** depend on shared libraries, but programs linked with such libtool
4039 *** libraries will work regardless of this problem. Nevertheless, you
4040 *** may want to report the problem to your system manager and/or to
4041 *** bug-libtool@gnu.org
4042
4043 EOF
4044 fi ;;
4045 esac
4046 fi
4047 break
4048 fi
4049 done
4050 IFS="$ac_save_ifs"
4051 MAGIC_CMD="$ac_save_MAGIC_CMD"
4052 ;;
4053 esac
4054 fi
4055
4056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4057 if test -n "$MAGIC_CMD"; then
4058 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4059 echo "${ECHO_T}$MAGIC_CMD" >&6
4060 else
4061 echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4063 fi
4064
4065 else
4066 MAGIC_CMD=:
4067 fi
4068 fi
4069
4070 fi
4071 ;;
4072 esac
4073
4074 if test -n "$ac_tool_prefix"; then
4075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_RANLIB+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 if test -n "$RANLIB"; then
4083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 break 2
4095 fi
4096 done
4097 done
4098
4099 fi
4100 fi
4101 RANLIB=$ac_cv_prog_RANLIB
4102 if test -n "$RANLIB"; then
4103 echo "$as_me:$LINENO: result: $RANLIB" >&5
4104 echo "${ECHO_T}$RANLIB" >&6
4105 else
4106 echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4108 fi
4109
4110 fi
4111 if test -z "$ac_cv_prog_RANLIB"; then
4112 ac_ct_RANLIB=$RANLIB
4113 # Extract the first word of "ranlib", so it can be a program name with args.
4114 set dummy ranlib; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 if test -n "$ac_ct_RANLIB"; then
4121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_ac_ct_RANLIB="ranlib"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4133 fi
4134 done
4135 done
4136
4137 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4138 fi
4139 fi
4140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4141 if test -n "$ac_ct_RANLIB"; then
4142 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4143 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4144 else
4145 echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4147 fi
4148
4149 RANLIB=$ac_ct_RANLIB
4150 else
4151 RANLIB="$ac_cv_prog_RANLIB"
4152 fi
4153
4154 if test -n "$ac_tool_prefix"; then
4155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4156 set dummy ${ac_tool_prefix}strip; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_STRIP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 if test -n "$STRIP"; then
4163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4175 fi
4176 done
4177 done
4178
4179 fi
4180 fi
4181 STRIP=$ac_cv_prog_STRIP
4182 if test -n "$STRIP"; then
4183 echo "$as_me:$LINENO: result: $STRIP" >&5
4184 echo "${ECHO_T}$STRIP" >&6
4185 else
4186 echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6
4188 fi
4189
4190 fi
4191 if test -z "$ac_cv_prog_STRIP"; then
4192 ac_ct_STRIP=$STRIP
4193 # Extract the first word of "strip", so it can be a program name with args.
4194 set dummy strip; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 if test -n "$ac_ct_STRIP"; then
4201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_ac_ct_STRIP="strip"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4213 fi
4214 done
4215 done
4216
4217 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4218 fi
4219 fi
4220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4221 if test -n "$ac_ct_STRIP"; then
4222 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4223 echo "${ECHO_T}$ac_ct_STRIP" >&6
4224 else
4225 echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6
4227 fi
4228
4229 STRIP=$ac_ct_STRIP
4230 else
4231 STRIP="$ac_cv_prog_STRIP"
4232 fi
4233
4234
4235 # Check for any special flags to pass to ltconfig.
4236 libtool_flags="--cache-file=$cache_file"
4237 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4238 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4239 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4240 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4241 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4242
4243
4244 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4245 if test "${enable_libtool_lock+set}" = set; then
4246 enableval="$enable_libtool_lock"
4247
4248 fi;
4249 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4250 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4251
4252
4253 # Check whether --with-pic or --without-pic was given.
4254 if test "${with_pic+set}" = set; then
4255 withval="$with_pic"
4256 pic_mode="$withval"
4257 else
4258 pic_mode=default
4259 fi;
4260 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4261 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4262
4263 # Some flags need to be propagated to the compiler or linker for good
4264 # libtool support.
4265 case $host in
4266 *-*-irix6*)
4267 # Find out which ABI we are using.
4268 echo '#line 4268 "configure"' > conftest.$ac_ext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; then
4274 if test "$lt_cv_prog_gnu_ld" = yes; then
4275 case `/usr/bin/file conftest.$ac_objext` in
4276 *32-bit*)
4277 LD="${LD-ld} -melf32bsmip"
4278 ;;
4279 *N32*)
4280 LD="${LD-ld} -melf32bmipn32"
4281 ;;
4282 *64-bit*)
4283 LD="${LD-ld} -melf64bmip"
4284 ;;
4285 esac
4286 else
4287 case `/usr/bin/file conftest.$ac_objext` in
4288 *32-bit*)
4289 LD="${LD-ld} -32"
4290 ;;
4291 *N32*)
4292 LD="${LD-ld} -n32"
4293 ;;
4294 *64-bit*)
4295 LD="${LD-ld} -64"
4296 ;;
4297 esac
4298 fi
4299 fi
4300 rm -rf conftest*
4301 ;;
4302
4303 ia64-*-hpux*)
4304 # Find out which ABI we are using.
4305 echo 'int i;' > conftest.$ac_ext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; then
4311 case "`/usr/bin/file conftest.o`" in
4312 *ELF-32*)
4313 HPUX_IA64_MODE="32"
4314 ;;
4315 *ELF-64*)
4316 HPUX_IA64_MODE="64"
4317 ;;
4318 esac
4319 fi
4320 rm -rf conftest*
4321 ;;
4322
4323 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4324 # Find out which ABI we are using.
4325 echo 'int i;' > conftest.$ac_ext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; then
4331 case "`/usr/bin/file conftest.o`" in
4332 *32-bit*)
4333 case $host in
4334 x86_64-*linux*)
4335 LD="${LD-ld} -m elf_i386"
4336 ;;
4337 ppc64-*linux*)
4338 LD="${LD-ld} -m elf32ppclinux"
4339 ;;
4340 s390x-*linux*)
4341 LD="${LD-ld} -m elf_s390"
4342 ;;
4343 sparc64-*linux*)
4344 LD="${LD-ld} -m elf32_sparc"
4345 ;;
4346 esac
4347 ;;
4348 *64-bit*)
4349 case $host in
4350 x86_64-*linux*)
4351 LD="${LD-ld} -m elf_x86_64"
4352 ;;
4353 ppc*-*linux*|powerpc*-*linux*)
4354 LD="${LD-ld} -m elf64ppc"
4355 ;;
4356 s390*-*linux*)
4357 LD="${LD-ld} -m elf64_s390"
4358 ;;
4359 sparc*-*linux*)
4360 LD="${LD-ld} -m elf64_sparc"
4361 ;;
4362 esac
4363 ;;
4364 esac
4365 fi
4366 rm -rf conftest*
4367 ;;
4368
4369 *-*-sco3.2v5*)
4370 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4371 SAVE_CFLAGS="$CFLAGS"
4372 CFLAGS="$CFLAGS -belf"
4373 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4374 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4375 if test "${lt_cv_cc_needs_belf+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378
4379
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385
4386 if test x$gcc_no_link = xyes; then
4387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4389 { (exit 1); exit 1; }; }
4390 fi
4391 cat >conftest.$ac_ext <<_ACEOF
4392 #line $LINENO "configure"
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398
4399 int
4400 main ()
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 rm -f conftest.$ac_objext conftest$ac_exeext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4409 (eval $ac_link) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -s conftest$ac_exeext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 lt_cv_cc_needs_belf=yes
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 lt_cv_cc_needs_belf=no
4425 fi
4426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432
4433 fi
4434 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4435 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4436 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4437 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4438 CFLAGS="$SAVE_CFLAGS"
4439 fi
4440 ;;
4441
4442
4443 esac
4444
4445
4446 # Save cache, so that ltconfig can load it
4447 cat >confcache <<\_ACEOF
4448 # This file is a shell script that caches the results of configure
4449 # tests run on this system so they can be shared between configure
4450 # scripts and configure runs, see configure's option --config-cache.
4451 # It is not useful on other systems. If it contains results you don't
4452 # want to keep, you may remove or edit it.
4453 #
4454 # config.status only pays attention to the cache file if you give it
4455 # the --recheck option to rerun configure.
4456 #
4457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4459 # following values.
4460
4461 _ACEOF
4462
4463 # The following way of writing the cache mishandles newlines in values,
4464 # but we know of no workaround that is simple, portable, and efficient.
4465 # So, don't put newlines in cache variables' values.
4466 # Ultrix sh set writes to stderr and can't be redirected directly,
4467 # and sets the high bit in the cache file unless we assign to the vars.
4468 {
4469 (set) 2>&1 |
4470 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4471 *ac_space=\ *)
4472 # `set' does not quote correctly, so add quotes (double-quote
4473 # substitution turns \\\\ into \\, and sed turns \\ into \).
4474 sed -n \
4475 "s/'/'\\\\''/g;
4476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4477 ;;
4478 *)
4479 # `set' quotes correctly as required by POSIX, so do not add quotes.
4480 sed -n \
4481 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4482 ;;
4483 esac;
4484 } |
4485 sed '
4486 t clear
4487 : clear
4488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4489 t end
4490 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4491 : end' >>confcache
4492 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4493 if test -w $cache_file; then
4494 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4495 cat confcache >$cache_file
4496 else
4497 echo "not updating unwritable cache $cache_file"
4498 fi
4499 fi
4500 rm -f confcache
4501
4502 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4503 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4504 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4505 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4506 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4507 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4508 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4509 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4510 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4511 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4512 echo "$as_me: error: libtool configure failed" >&2;}
4513 { (exit 1); exit 1; }; }
4514
4515 # Reload cache, that may have been modified by ltconfig
4516 if test -r "$cache_file"; then
4517 # Some versions of bash will fail to source /dev/null (special
4518 # files actually), so we avoid doing that.
4519 if test -f "$cache_file"; then
4520 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4521 echo "$as_me: loading cache $cache_file" >&6;}
4522 case $cache_file in
4523 [\\/]* | ?:[\\/]* ) . $cache_file;;
4524 *) . ./$cache_file;;
4525 esac
4526 fi
4527 else
4528 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4529 echo "$as_me: creating cache $cache_file" >&6;}
4530 >$cache_file
4531 fi
4532
4533
4534 # This can be used to rebuild libtool when needed
4535 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4536
4537 # Always use our own libtool.
4538 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4539
4540 # Redirect the config.log output again, so that the ltconfig log is not
4541 # clobbered by the next message.
4542 exec 5>>./config.log
4543
4544 ac_ext=cc
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4550 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4551 if test -z "$CXXCPP"; then
4552 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 # Double quotes because CXXCPP needs to be expanded
4556 for CXXCPP in "$CXX -E" "/lib/cpp"
4557 do
4558 ac_preproc_ok=false
4559 for ac_cxx_preproc_warn_flag in '' yes
4560 do
4561 # Use a header file that comes with gcc, so configuring glibc
4562 # with a fresh cross-compiler works.
4563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4564 # <limits.h> exists even on freestanding compilers.
4565 # On the NeXT, cc -E runs the code through the compiler's parser,
4566 # not just through cpp. "Syntax error" is here to catch this case.
4567 cat >conftest.$ac_ext <<_ACEOF
4568 #line $LINENO "configure"
4569 /* confdefs.h. */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 #ifdef __STDC__
4575 # include <limits.h>
4576 #else
4577 # include <assert.h>
4578 #endif
4579 Syntax error
4580 _ACEOF
4581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } >/dev/null; then
4589 if test -s conftest.err; then
4590 ac_cpp_err=$ac_cxx_preproc_warn_flag
4591 else
4592 ac_cpp_err=
4593 fi
4594 else
4595 ac_cpp_err=yes
4596 fi
4597 if test -z "$ac_cpp_err"; then
4598 :
4599 else
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603 # Broken: fails on valid input.
4604 continue
4605 fi
4606 rm -f conftest.err conftest.$ac_ext
4607
4608 # OK, works on sane cases. Now check whether non-existent headers
4609 # can be detected and how.
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #include <ac_nonexistent.h>
4618 _ACEOF
4619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } >/dev/null; then
4627 if test -s conftest.err; then
4628 ac_cpp_err=$ac_cxx_preproc_warn_flag
4629 else
4630 ac_cpp_err=
4631 fi
4632 else
4633 ac_cpp_err=yes
4634 fi
4635 if test -z "$ac_cpp_err"; then
4636 # Broken: success on invalid input.
4637 continue
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 # Passes both tests.
4643 ac_preproc_ok=:
4644 break
4645 fi
4646 rm -f conftest.err conftest.$ac_ext
4647
4648 done
4649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4650 rm -f conftest.err conftest.$ac_ext
4651 if $ac_preproc_ok; then
4652 break
4653 fi
4654
4655 done
4656 ac_cv_prog_CXXCPP=$CXXCPP
4657
4658 fi
4659 CXXCPP=$ac_cv_prog_CXXCPP
4660 else
4661 ac_cv_prog_CXXCPP=$CXXCPP
4662 fi
4663 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4664 echo "${ECHO_T}$CXXCPP" >&6
4665 ac_preproc_ok=false
4666 for ac_cxx_preproc_warn_flag in '' yes
4667 do
4668 # Use a header file that comes with gcc, so configuring glibc
4669 # with a fresh cross-compiler works.
4670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4671 # <limits.h> exists even on freestanding compilers.
4672 # On the NeXT, cc -E runs the code through the compiler's parser,
4673 # not just through cpp. "Syntax error" is here to catch this case.
4674 cat >conftest.$ac_ext <<_ACEOF
4675 #line $LINENO "configure"
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 #ifdef __STDC__
4682 # include <limits.h>
4683 #else
4684 # include <assert.h>
4685 #endif
4686 Syntax error
4687 _ACEOF
4688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } >/dev/null; then
4696 if test -s conftest.err; then
4697 ac_cpp_err=$ac_cxx_preproc_warn_flag
4698 else
4699 ac_cpp_err=
4700 fi
4701 else
4702 ac_cpp_err=yes
4703 fi
4704 if test -z "$ac_cpp_err"; then
4705 :
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710 # Broken: fails on valid input.
4711 continue
4712 fi
4713 rm -f conftest.err conftest.$ac_ext
4714
4715 # OK, works on sane cases. Now check whether non-existent headers
4716 # can be detected and how.
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line $LINENO "configure"
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 #include <ac_nonexistent.h>
4725 _ACEOF
4726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4728 ac_status=$?
4729 grep -v '^ *+' conftest.er1 >conftest.err
4730 rm -f conftest.er1
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } >/dev/null; then
4734 if test -s conftest.err; then
4735 ac_cpp_err=$ac_cxx_preproc_warn_flag
4736 else
4737 ac_cpp_err=
4738 fi
4739 else
4740 ac_cpp_err=yes
4741 fi
4742 if test -z "$ac_cpp_err"; then
4743 # Broken: success on invalid input.
4744 continue
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 # Passes both tests.
4750 ac_preproc_ok=:
4751 break
4752 fi
4753 rm -f conftest.err conftest.$ac_ext
4754
4755 done
4756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4757 rm -f conftest.err conftest.$ac_ext
4758 if $ac_preproc_ok; then
4759 :
4760 else
4761 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4762 See \`config.log' for more details." >&5
4763 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4764 See \`config.log' for more details." >&2;}
4765 { (exit 1); exit 1; }; }
4766 fi
4767
4768 ac_ext=c
4769 ac_cpp='$CPP $CPPFLAGS'
4770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773
4774
4775
4776 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4777 lt_save_CC="$CC"
4778 lt_save_CFLAGS="$CFLAGS"
4779 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4780 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4781 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4782 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4783 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4784 deplibs_check_method="$deplibs_check_method" \
4785 file_magic_cmd="$file_magic_cmd" \
4786 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4787 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4788 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4789 echo "$as_me: error: libtool tag configuration failed" >&2;}
4790 { (exit 1); exit 1; }; }
4791 CC="$lt_save_CC"
4792 CFLAGS="$lt_save_CFLAGS"
4793
4794 # Redirect the config.log output again, so that the ltconfig log is not
4795 # clobbered by the next message.
4796 exec 5>>./config.log
4797
4798
4799
4800
4801
4802
4803
4804
4805 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4806
4807 # Possibly disable most of the library.
4808 ## XXX Consider skipping unncessary tests altogether in this case, rather
4809 ## than just ignoring the results. Faster /and/ more correct, win win.
4810
4811 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4812 if test "${enable_hosted_libstdcxx+set}" = set; then
4813 enableval="$enable_hosted_libstdcxx"
4814
4815 else
4816 enable_hosted_libstdcxx=yes
4817 fi;
4818 if test "$enable_hosted_libstdcxx" = no; then
4819 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4820 echo "$as_me: Only freestanding libraries will be built" >&6;}
4821 is_hosted=no
4822 enable_abi_check=no
4823 enable_libstdcxx_pch=no
4824 else
4825 is_hosted=yes
4826 fi
4827
4828
4829
4830 # Check for support bits and g++ features that don't require linking.
4831
4832 echo "$as_me:$LINENO: checking for exception model to use" >&5
4833 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4834
4835
4836 ac_ext=cc
4837 ac_cpp='$CXXCPP $CPPFLAGS'
4838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4841
4842 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4843 if test "${enable_sjlj_exceptions+set}" = set; then
4844 enableval="$enable_sjlj_exceptions"
4845
4846 case "$enableval" in
4847 yes|no|auto) ;;
4848 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4849 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4850 { (exit 1); exit 1; }; } ;;
4851 esac
4852
4853 else
4854 enable_sjlj_exceptions=auto
4855 fi;
4856
4857
4858 if test $enable_sjlj_exceptions = auto; then
4859 # Botheration. Now we've got to detect the exception model. Link tests
4860 # against libgcc.a are problematic since we've not been given proper -L
4861 # bits for single-tree newlib and libgloss.
4862 #
4863 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
4864 cat > conftest.$ac_ext << EOF
4865 #line 4865 "configure"
4866 struct S { ~S(); };
4867 void bar();
4868 void foo()
4869 {
4870 S s;
4871 bar();
4872 }
4873 EOF
4874 old_CXXFLAGS="$CXXFLAGS"
4875 CXXFLAGS=-S
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; then
4881 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4882 enable_sjlj_exceptions=yes
4883 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4884 enable_sjlj_exceptions=no
4885 fi
4886 fi
4887 CXXFLAGS="$old_CXXFLAGS"
4888 rm -f conftest*
4889 fi
4890
4891 # This is a tad weird, for hysterical raisins. We have to map enable/disable
4892 # to two different models.
4893 case $enable_sjlj_exceptions in
4894 yes)
4895
4896 cat >>confdefs.h <<\_ACEOF
4897 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
4898 _ACEOF
4899
4900 ac_exception_model_name=sjlj
4901 ;;
4902 no)
4903 ac_exception_model_name="call frame"
4904 ;;
4905 *)
4906 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
4907 echo "$as_me: error: unable to detect exception model" >&2;}
4908 { (exit 1); exit 1; }; }
4909 ;;
4910 esac
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
4918 echo "${ECHO_T}$ac_exception_model_name" >&6
4919
4920
4921 echo "$as_me:$LINENO: checking for use of libunwind" >&5
4922 echo $ECHO_N "checking for use of libunwind... $ECHO_C" >&6
4923 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4924 if test "${enable_libunwind_exceptions+set}" = set; then
4925 enableval="$enable_libunwind_exceptions"
4926
4927 case "$enableval" in
4928 yes|no) ;;
4929 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&5
4930 echo "$as_me: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&2;}
4931 { (exit 1); exit 1; }; } ;;
4932 esac
4933
4934 else
4935 enable_libunwind_exceptions=no
4936 fi;
4937
4938 echo "$as_me:$LINENO: result: $use_libunwind_exceptions" >&5
4939 echo "${ECHO_T}$use_libunwind_exceptions" >&6
4940 if test $enable_libunwind_exceptions = yes; then
4941 LIBUNWIND_FLAG="-lunwind"
4942 else
4943 LIBUNWIND_FLAG=""
4944 fi
4945
4946
4947
4948 echo "$as_me:$LINENO: checking for enabled PCH" >&5
4949 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
4950 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
4951 if test "${enable_libstdcxx_pch+set}" = set; then
4952 enableval="$enable_libstdcxx_pch"
4953
4954 case "$enableval" in
4955 yes|no) ;;
4956 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
4957 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
4958 { (exit 1); exit 1; }; } ;;
4959 esac
4960
4961 else
4962 enable_libstdcxx_pch=$is_hosted
4963 fi;
4964
4965 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
4966 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4967
4968 if test $enable_libstdcxx_pch = yes; then
4969 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
4970 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
4971 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974 ac_save_CXXFLAGS="$CXXFLAGS"
4975 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4976
4977
4978 ac_ext=cc
4979 ac_cpp='$CXXCPP $CPPFLAGS'
4980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4983
4984 echo '#include <math.h>' > conftest.h
4985 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
4986 -o conftest.h.gch 1>&5 2>&1 &&
4987 echo '#error "pch failed"' > conftest.h &&
4988 echo '#include "conftest.h"' > conftest.cc &&
4989 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
4990 then
4991 glibcxx_cv_prog_CXX_pch=yes
4992 else
4993 glibcxx_cv_prog_CXX_pch=no
4994 fi
4995 rm -f conftest*
4996 CXXFLAGS=$ac_save_CXXFLAGS
4997 ac_ext=c
4998 ac_cpp='$CPP $CPPFLAGS'
4999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002
5003
5004 fi
5005 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5006 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5007 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5008 fi
5009
5010
5011 if test $enable_libstdcxx_pch = yes; then
5012 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5013 else
5014 glibcxx_PCHFLAGS=""
5015 fi
5016
5017
5018
5019 # Enable all the variable C++ runtime options.
5020 # NB: C_MBCHAR must come early.
5021
5022 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5023 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5024 # Check whether --enable-cstdio or --disable-cstdio was given.
5025 if test "${enable_cstdio+set}" = set; then
5026 enableval="$enable_cstdio"
5027
5028 case "$enableval" in
5029 stdio) ;;
5030 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5031 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5032 { (exit 1); exit 1; }; } ;;
5033 esac
5034
5035 else
5036 enable_cstdio=stdio
5037 fi;
5038
5039
5040 # Now that libio has been removed, you can have any color you want as long
5041 # as it's black. This is one big no-op until other packages are added, but
5042 # showing the framework never hurts.
5043 case ${enable_cstdio} in
5044 stdio)
5045 CSTDIO_H=config/io/c_io_stdio.h
5046 BASIC_FILE_H=config/io/basic_file_stdio.h
5047 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5048 echo "$as_me:$LINENO: result: stdio" >&5
5049 echo "${ECHO_T}stdio" >&6
5050 ;;
5051 esac
5052
5053 FPOS_H=$fpos_include_dir
5054
5055
5056
5057
5058
5059
5060 ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5067 # On Suns, sometimes $CPP names a directory.
5068 if test -n "$CPP" && test -d "$CPP"; then
5069 CPP=
5070 fi
5071 if test -z "$CPP"; then
5072 if test "${ac_cv_prog_CPP+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 # Double quotes because CPP needs to be expanded
5076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5077 do
5078 ac_preproc_ok=false
5079 for ac_c_preproc_warn_flag in '' yes
5080 do
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat >conftest.$ac_ext <<_ACEOF
5088 #line $LINENO "configure"
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 #ifdef __STDC__
5095 # include <limits.h>
5096 #else
5097 # include <assert.h>
5098 #endif
5099 Syntax error
5100 _ACEOF
5101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null; then
5109 if test -s conftest.err; then
5110 ac_cpp_err=$ac_c_preproc_warn_flag
5111 else
5112 ac_cpp_err=
5113 fi
5114 else
5115 ac_cpp_err=yes
5116 fi
5117 if test -z "$ac_cpp_err"; then
5118 :
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 # Broken: fails on valid input.
5124 continue
5125 fi
5126 rm -f conftest.err conftest.$ac_ext
5127
5128 # OK, works on sane cases. Now check whether non-existent headers
5129 # can be detected and how.
5130 cat >conftest.$ac_ext <<_ACEOF
5131 #line $LINENO "configure"
5132 /* confdefs.h. */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 #include <ac_nonexistent.h>
5138 _ACEOF
5139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } >/dev/null; then
5147 if test -s conftest.err; then
5148 ac_cpp_err=$ac_c_preproc_warn_flag
5149 else
5150 ac_cpp_err=
5151 fi
5152 else
5153 ac_cpp_err=yes
5154 fi
5155 if test -z "$ac_cpp_err"; then
5156 # Broken: success on invalid input.
5157 continue
5158 else
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162 # Passes both tests.
5163 ac_preproc_ok=:
5164 break
5165 fi
5166 rm -f conftest.err conftest.$ac_ext
5167
5168 done
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then
5172 break
5173 fi
5174
5175 done
5176 ac_cv_prog_CPP=$CPP
5177
5178 fi
5179 CPP=$ac_cv_prog_CPP
5180 else
5181 ac_cv_prog_CPP=$CPP
5182 fi
5183 echo "$as_me:$LINENO: result: $CPP" >&5
5184 echo "${ECHO_T}$CPP" >&6
5185 ac_preproc_ok=false
5186 for ac_c_preproc_warn_flag in '' yes
5187 do
5188 # Use a header file that comes with gcc, so configuring glibc
5189 # with a fresh cross-compiler works.
5190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5191 # <limits.h> exists even on freestanding compilers.
5192 # On the NeXT, cc -E runs the code through the compiler's parser,
5193 # not just through cpp. "Syntax error" is here to catch this case.
5194 cat >conftest.$ac_ext <<_ACEOF
5195 #line $LINENO "configure"
5196 /* confdefs.h. */
5197 _ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5201 #ifdef __STDC__
5202 # include <limits.h>
5203 #else
5204 # include <assert.h>
5205 #endif
5206 Syntax error
5207 _ACEOF
5208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } >/dev/null; then
5216 if test -s conftest.err; then
5217 ac_cpp_err=$ac_c_preproc_warn_flag
5218 else
5219 ac_cpp_err=
5220 fi
5221 else
5222 ac_cpp_err=yes
5223 fi
5224 if test -z "$ac_cpp_err"; then
5225 :
5226 else
5227 echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5229
5230 # Broken: fails on valid input.
5231 continue
5232 fi
5233 rm -f conftest.err conftest.$ac_ext
5234
5235 # OK, works on sane cases. Now check whether non-existent headers
5236 # can be detected and how.
5237 cat >conftest.$ac_ext <<_ACEOF
5238 #line $LINENO "configure"
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <ac_nonexistent.h>
5245 _ACEOF
5246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } >/dev/null; then
5254 if test -s conftest.err; then
5255 ac_cpp_err=$ac_c_preproc_warn_flag
5256 else
5257 ac_cpp_err=
5258 fi
5259 else
5260 ac_cpp_err=yes
5261 fi
5262 if test -z "$ac_cpp_err"; then
5263 # Broken: success on invalid input.
5264 continue
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 # Passes both tests.
5270 ac_preproc_ok=:
5271 break
5272 fi
5273 rm -f conftest.err conftest.$ac_ext
5274
5275 done
5276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5277 rm -f conftest.err conftest.$ac_ext
5278 if $ac_preproc_ok; then
5279 :
5280 else
5281 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5282 See \`config.log' for more details." >&5
5283 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5284 See \`config.log' for more details." >&2;}
5285 { (exit 1); exit 1; }; }
5286 fi
5287
5288 ac_ext=c
5289 ac_cpp='$CPP $CPPFLAGS'
5290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293
5294
5295 echo "$as_me:$LINENO: checking for egrep" >&5
5296 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5297 if test "${ac_cv_prog_egrep+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5301 then ac_cv_prog_egrep='grep -E'
5302 else ac_cv_prog_egrep='egrep'
5303 fi
5304 fi
5305 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5306 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5307 EGREP=$ac_cv_prog_egrep
5308
5309
5310 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5311 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5312 if test "${ac_cv_header_stdc+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 cat >conftest.$ac_ext <<_ACEOF
5316 #line $LINENO "configure"
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 #include <stdlib.h>
5323 #include <stdarg.h>
5324 #include <string.h>
5325 #include <float.h>
5326
5327 int
5328 main ()
5329 {
5330
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -s conftest.$ac_objext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_header_stdc=yes
5348 else
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352 ac_cv_header_stdc=no
5353 fi
5354 rm -f conftest.$ac_objext conftest.$ac_ext
5355
5356 if test $ac_cv_header_stdc = yes; then
5357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 #include <string.h>
5366
5367 _ACEOF
5368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5369 $EGREP "memchr" >/dev/null 2>&1; then
5370 :
5371 else
5372 ac_cv_header_stdc=no
5373 fi
5374 rm -f conftest*
5375
5376 fi
5377
5378 if test $ac_cv_header_stdc = yes; then
5379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5380 cat >conftest.$ac_ext <<_ACEOF
5381 #line $LINENO "configure"
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #include <stdlib.h>
5388
5389 _ACEOF
5390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5391 $EGREP "free" >/dev/null 2>&1; then
5392 :
5393 else
5394 ac_cv_header_stdc=no
5395 fi
5396 rm -f conftest*
5397
5398 fi
5399
5400 if test $ac_cv_header_stdc = yes; then
5401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5402 if test "$cross_compiling" = yes; then
5403 :
5404 else
5405 cat >conftest.$ac_ext <<_ACEOF
5406 #line $LINENO "configure"
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 #include <ctype.h>
5413 #if ((' ' & 0x0FF) == 0x020)
5414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5416 #else
5417 # define ISLOWER(c) \
5418 (('a' <= (c) && (c) <= 'i') \
5419 || ('j' <= (c) && (c) <= 'r') \
5420 || ('s' <= (c) && (c) <= 'z'))
5421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5422 #endif
5423
5424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5425 int
5426 main ()
5427 {
5428 int i;
5429 for (i = 0; i < 256; i++)
5430 if (XOR (islower (i), ISLOWER (i))
5431 || toupper (i) != TOUPPER (i))
5432 exit(2);
5433 exit (0);
5434 }
5435 _ACEOF
5436 rm -f conftest$ac_exeext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5438 (eval $ac_link) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 :
5448 else
5449 echo "$as_me: program exited with status $ac_status" >&5
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 ( exit $ac_status )
5454 ac_cv_header_stdc=no
5455 fi
5456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5457 fi
5458 fi
5459 fi
5460 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5461 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5462 if test $ac_cv_header_stdc = yes; then
5463
5464 cat >>confdefs.h <<\_ACEOF
5465 #define STDC_HEADERS 1
5466 _ACEOF
5467
5468 fi
5469
5470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5481 inttypes.h stdint.h unistd.h
5482 do
5483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5484 echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 cat >conftest.$ac_ext <<_ACEOF
5490 #line $LINENO "configure"
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5497
5498 #include <$ac_header>
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 (eval $ac_try) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 eval "$as_ac_Header=yes"
5513 else
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 eval "$as_ac_Header=no"
5518 fi
5519 rm -f conftest.$ac_objext conftest.$ac_ext
5520 fi
5521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5524 cat >>confdefs.h <<_ACEOF
5525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5526 _ACEOF
5527
5528 fi
5529
5530 done
5531
5532
5533
5534 echo "$as_me:$LINENO: checking for C locale to use" >&5
5535 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5536 # Check whether --enable-clocale or --disable-clocale was given.
5537 if test "${enable_clocale+set}" = set; then
5538 enableval="$enable_clocale"
5539
5540 case "$enableval" in
5541 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5542 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5543 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5544 { (exit 1); exit 1; }; } ;;
5545 esac
5546
5547 else
5548 enable_clocale=auto
5549 fi;
5550
5551
5552 # If they didn't use this option switch, or if they specified --enable
5553 # with no specific model, we'll have to look for one. If they
5554 # specified --disable (???), do likewise.
5555 if test $enable_clocale = no || test $enable_clocale = yes; then
5556 enable_clocale=auto
5557 fi
5558
5559 # Either a known package, or "auto"
5560 enable_clocale_flag=$enable_clocale
5561
5562 # Probe for locale support if no specific model is specified.
5563 # Default to "generic".
5564 if test $enable_clocale_flag = auto; then
5565 case x${target_os} in
5566 xlinux* | xgnu*)
5567 cat >conftest.$ac_ext <<_ACEOF
5568 #line $LINENO "configure"
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574
5575 #include <features.h>
5576 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5577 _GLIBCXX_ok
5578 #endif
5579
5580 _ACEOF
5581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5582 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5583 enable_clocale_flag=gnu
5584 else
5585 enable_clocale_flag=generic
5586 fi
5587 rm -f conftest*
5588
5589
5590 # Test for bugs early in glibc-2.2.x series
5591 if test x$enable_clocale_flag = xgnu; then
5592 if test "$cross_compiling" = yes; then
5593 enable_clocale_flag=generic
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 #line $LINENO "configure"
5597 /* confdefs.h. */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602
5603 #define _GNU_SOURCE 1
5604 #include <locale.h>
5605 #include <string.h>
5606 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5607 extern __typeof(newlocale) __newlocale;
5608 extern __typeof(duplocale) __duplocale;
5609 extern __typeof(strcoll_l) __strcoll_l;
5610 #endif
5611 int main()
5612 {
5613 const char __one[] = "Äuglein Augmen";
5614 const char __two[] = "Äuglein";
5615 int i;
5616 int j;
5617 __locale_t loc;
5618 __locale_t loc_dup;
5619 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5620 loc_dup = __duplocale(loc);
5621 i = __strcoll_l(__one, __two, loc);
5622 j = __strcoll_l(__one, __two, loc_dup);
5623 return 0;
5624 }
5625
5626 _ACEOF
5627 rm -f conftest$ac_exeext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5629 (eval $ac_link) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5638 enable_clocale_flag=gnu
5639 else
5640 echo "$as_me: program exited with status $ac_status" >&5
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 ( exit $ac_status )
5645 enable_clocale_flag=generic
5646 fi
5647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 fi
5650
5651 # ... at some point put __strxfrm_l tests in as well.
5652 ;;
5653 *)
5654 enable_clocale_flag=generic
5655 ;;
5656 esac
5657 fi
5658
5659 # Deal with gettext issues. Default to not using it (=no) until we detect
5660 # support for it later. Let the user turn it off via --e/d, but let that
5661 # default to on for easier handling.
5662 USE_NLS=no
5663 # Check whether --enable-nls or --disable-nls was given.
5664 if test "${enable_nls+set}" = set; then
5665 enableval="$enable_nls"
5666
5667 else
5668 enable_nls=yes
5669 fi;
5670
5671 # Set configure bits for specified locale package
5672 case ${enable_clocale_flag} in
5673 generic)
5674 echo "$as_me:$LINENO: result: generic" >&5
5675 echo "${ECHO_T}generic" >&6
5676
5677 CLOCALE_H=config/locale/generic/c_locale.h
5678 CLOCALE_CC=config/locale/generic/c_locale.cc
5679 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5680 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5681 CCOLLATE_CC=config/locale/generic/collate_members.cc
5682 CCTYPE_CC=config/locale/generic/ctype_members.cc
5683 CMESSAGES_H=config/locale/generic/messages_members.h
5684 CMESSAGES_CC=config/locale/generic/messages_members.cc
5685 CMONEY_CC=config/locale/generic/monetary_members.cc
5686 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5687 CTIME_H=config/locale/generic/time_members.h
5688 CTIME_CC=config/locale/generic/time_members.cc
5689 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5690 ;;
5691 gnu)
5692 echo "$as_me:$LINENO: result: gnu" >&5
5693 echo "${ECHO_T}gnu" >&6
5694
5695 # Declare intention to use gettext, and add support for specific
5696 # languages.
5697 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5698 ALL_LINGUAS="de fr"
5699
5700 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5701 # Extract the first word of "msgfmt", so it can be a program name with args.
5702 set dummy msgfmt; ac_word=$2
5703 echo "$as_me:$LINENO: checking for $ac_word" >&5
5704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5705 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708 if test -n "$check_msgfmt"; then
5709 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_check_msgfmt="yes"
5719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722 done
5723 done
5724
5725 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5726 fi
5727 fi
5728 check_msgfmt=$ac_cv_prog_check_msgfmt
5729 if test -n "$check_msgfmt"; then
5730 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5731 echo "${ECHO_T}$check_msgfmt" >&6
5732 else
5733 echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5735 fi
5736
5737 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5738 USE_NLS=yes
5739 fi
5740 # Export the build objects.
5741 for ling in $ALL_LINGUAS; do \
5742 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5743 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5744 done
5745
5746
5747
5748 CLOCALE_H=config/locale/gnu/c_locale.h
5749 CLOCALE_CC=config/locale/gnu/c_locale.cc
5750 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5751 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5752 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5753 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5754 CMESSAGES_H=config/locale/gnu/messages_members.h
5755 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5756 CMONEY_CC=config/locale/gnu/monetary_members.cc
5757 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5758 CTIME_H=config/locale/gnu/time_members.h
5759 CTIME_CC=config/locale/gnu/time_members.cc
5760 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5761 ;;
5762 ieee_1003.1-2001)
5763 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5764 echo "${ECHO_T}IEEE 1003.1" >&6
5765
5766 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5767 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5768 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5769 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5770 CCOLLATE_CC=config/locale/generic/collate_members.cc
5771 CCTYPE_CC=config/locale/generic/ctype_members.cc
5772 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5773 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5774 CMONEY_CC=config/locale/generic/monetary_members.cc
5775 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5776 CTIME_H=config/locale/generic/time_members.h
5777 CTIME_CC=config/locale/generic/time_members.cc
5778 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5779 ;;
5780 esac
5781
5782 # This is where the testsuite looks for locale catalogs, using the
5783 # -DLOCALEDIR define during testsuite compilation.
5784 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5785
5786
5787 # A standalone libintl (e.g., GNU libintl) may be in use.
5788 if test $USE_NLS = yes; then
5789
5790 for ac_header in libintl.h
5791 do
5792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5794 echo "$as_me:$LINENO: checking for $ac_header" >&5
5795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 fi
5799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5801 else
5802 # Is the header compilable?
5803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5806 #line $LINENO "configure"
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 $ac_includes_default
5813 #include <$ac_header>
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -s conftest.$ac_objext'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 ac_header_compiler=yes
5828 else
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5831
5832 ac_header_compiler=no
5833 fi
5834 rm -f conftest.$ac_objext conftest.$ac_ext
5835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5836 echo "${ECHO_T}$ac_header_compiler" >&6
5837
5838 # Is the header present?
5839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5841 cat >conftest.$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <$ac_header>
5849 _ACEOF
5850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } >/dev/null; then
5858 if test -s conftest.err; then
5859 ac_cpp_err=$ac_c_preproc_warn_flag
5860 else
5861 ac_cpp_err=
5862 fi
5863 else
5864 ac_cpp_err=yes
5865 fi
5866 if test -z "$ac_cpp_err"; then
5867 ac_header_preproc=yes
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5871
5872 ac_header_preproc=no
5873 fi
5874 rm -f conftest.err conftest.$ac_ext
5875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5876 echo "${ECHO_T}$ac_header_preproc" >&6
5877
5878 # So? What about this header?
5879 case $ac_header_compiler:$ac_header_preproc in
5880 yes:no )
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5885 (
5886 cat <<\_ASBOX
5887 ## ------------------------------------ ##
5888 ## Report this to bug-autoconf@gnu.org. ##
5889 ## ------------------------------------ ##
5890 _ASBOX
5891 ) |
5892 sed "s/^/$as_me: WARNING: /" >&2
5893 ;;
5894 no:yes )
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5901 (
5902 cat <<\_ASBOX
5903 ## ------------------------------------ ##
5904 ## Report this to bug-autoconf@gnu.org. ##
5905 ## ------------------------------------ ##
5906 _ASBOX
5907 ) |
5908 sed "s/^/$as_me: WARNING: /" >&2
5909 ;;
5910 esac
5911 echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 eval "$as_ac_Header=$ac_header_preproc"
5917 fi
5918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5920
5921 fi
5922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5923 cat >>confdefs.h <<_ACEOF
5924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5925 _ACEOF
5926
5927 else
5928 USE_NLS=no
5929 fi
5930
5931 done
5932
5933 echo "$as_me:$LINENO: checking for library containing gettext" >&5
5934 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
5935 if test "${ac_cv_search_gettext+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938 ac_func_search_save_LIBS=$LIBS
5939 ac_cv_search_gettext=no
5940 if test x$gcc_no_link = xyes; then
5941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5943 { (exit 1); exit 1; }; }
5944 fi
5945 cat >conftest.$ac_ext <<_ACEOF
5946 #line $LINENO "configure"
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952
5953 /* Override any gcc2 internal prototype to avoid an error. */
5954 #ifdef __cplusplus
5955 extern "C"
5956 #endif
5957 /* We use char because int might match the return type of a gcc2
5958 builtin and then its argument prototype would still apply. */
5959 char gettext ();
5960 int
5961 main ()
5962 {
5963 gettext ();
5964 ;
5965 return 0;
5966 }
5967 _ACEOF
5968 rm -f conftest.$ac_objext conftest$ac_exeext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5970 (eval $ac_link) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } &&
5974 { ac_try='test -s conftest$ac_exeext'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 (eval $ac_try) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 ac_cv_search_gettext="none required"
5981 else
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5984
5985 fi
5986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5987 if test "$ac_cv_search_gettext" = no; then
5988 for ac_lib in intl; do
5989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5990 if test x$gcc_no_link = xyes; then
5991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5993 { (exit 1); exit 1; }; }
5994 fi
5995 cat >conftest.$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002
6003 /* Override any gcc2 internal prototype to avoid an error. */
6004 #ifdef __cplusplus
6005 extern "C"
6006 #endif
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6009 char gettext ();
6010 int
6011 main ()
6012 {
6013 gettext ();
6014 ;
6015 return 0;
6016 }
6017 _ACEOF
6018 rm -f conftest.$ac_objext conftest$ac_exeext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6020 (eval $ac_link) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } &&
6024 { ac_try='test -s conftest$ac_exeext'
6025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 (eval $ac_try) 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; }; then
6030 ac_cv_search_gettext="-l$ac_lib"
6031 break
6032 else
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6035
6036 fi
6037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6038 done
6039 fi
6040 LIBS=$ac_func_search_save_LIBS
6041 fi
6042 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6043 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6044 if test "$ac_cv_search_gettext" != no; then
6045 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6046
6047 else
6048 USE_NLS=no
6049 fi
6050
6051 fi
6052 if test $USE_NLS = yes; then
6053 cat >>confdefs.h <<\_ACEOF
6054 #define _GLIBCXX_USE_NLS 1
6055 _ACEOF
6056
6057 fi
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075 # Check whether --enable-cheaders or --disable-cheaders was given.
6076 if test "${enable_cheaders+set}" = set; then
6077 enableval="$enable_cheaders"
6078
6079 case "$enableval" in
6080 c|c_std) ;;
6081 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6082 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6083 { (exit 1); exit 1; }; } ;;
6084 esac
6085
6086 else
6087 enable_cheaders=$c_model
6088 fi;
6089
6090 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6091 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6092
6093 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6094
6095
6096
6097
6098
6099
6100 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6101 if test "${enable_c_mbchar+set}" = set; then
6102 enableval="$enable_c_mbchar"
6103
6104 case "$enableval" in
6105 yes|no) ;;
6106 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6107 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6108 { (exit 1); exit 1; }; } ;;
6109 esac
6110
6111 else
6112 enable_c_mbchar=yes
6113 fi;
6114
6115 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6116
6117
6118
6119 # Check whether --enable-c99 or --disable-c99 was given.
6120 if test "${enable_c99+set}" = set; then
6121 enableval="$enable_c99"
6122
6123 case "$enableval" in
6124 yes|no) ;;
6125 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6126 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6127 { (exit 1); exit 1; }; } ;;
6128 esac
6129
6130 else
6131 enable_c99=yes
6132 fi;
6133
6134
6135
6136
6137 ac_ext=cc
6138 ac_cpp='$CXXCPP $CPPFLAGS'
6139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6142
6143
6144 # Check for the existence of <math.h> functions used if C99 is enabled.
6145 ac_c99_math=yes;
6146 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6147 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6148 cat >conftest.$ac_ext <<_ACEOF
6149 #line $LINENO "configure"
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #include <math.h>
6156 int
6157 main ()
6158 {
6159 fpclassify(0.0);
6160 ;
6161 return 0;
6162 }
6163 _ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 :
6177 else
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 ac_c99_math=no
6182 fi
6183 rm -f conftest.$ac_objext conftest.$ac_ext
6184 cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 #include <math.h>
6192 int
6193 main ()
6194 {
6195 isfinite(0.0);
6196 ;
6197 return 0;
6198 }
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } &&
6206 { ac_try='test -s conftest.$ac_objext'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; }; then
6212 :
6213 else
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6216
6217 ac_c99_math=no
6218 fi
6219 rm -f conftest.$ac_objext conftest.$ac_ext
6220 cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <math.h>
6228 int
6229 main ()
6230 {
6231 isinf(0.0);
6232 ;
6233 return 0;
6234 }
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 :
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253 ac_c99_math=no
6254 fi
6255 rm -f conftest.$ac_objext conftest.$ac_ext
6256 cat >conftest.$ac_ext <<_ACEOF
6257 #line $LINENO "configure"
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <math.h>
6264 int
6265 main ()
6266 {
6267 isnan(0.0);
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>&5
6275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -s conftest.$ac_objext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 (eval $ac_try) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 :
6285 else
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289 ac_c99_math=no
6290 fi
6291 rm -f conftest.$ac_objext conftest.$ac_ext
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #include <math.h>
6300 int
6301 main ()
6302 {
6303 isnormal(0.0);
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -s conftest.$ac_objext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 :
6321 else
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 ac_c99_math=no
6326 fi
6327 rm -f conftest.$ac_objext conftest.$ac_ext
6328 cat >conftest.$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <math.h>
6336 int
6337 main ()
6338 {
6339 signbit(0.0);
6340 ;
6341 return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -s conftest.$ac_objext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 :
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 ac_c99_math=no
6362 fi
6363 rm -f conftest.$ac_objext conftest.$ac_ext
6364 cat >conftest.$ac_ext <<_ACEOF
6365 #line $LINENO "configure"
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 #include <math.h>
6372 int
6373 main ()
6374 {
6375 isgreater(0.0,0.0);
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6382 (eval $ac_compile) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try='test -s conftest.$ac_objext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 :
6393 else
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397 ac_c99_math=no
6398 fi
6399 rm -f conftest.$ac_objext conftest.$ac_ext
6400 cat >conftest.$ac_ext <<_ACEOF
6401 #line $LINENO "configure"
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <math.h>
6408 int
6409 main ()
6410 {
6411 isgreaterequal(0.0,0.0);
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 rm -f conftest.$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -s conftest.$ac_objext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 :
6429 else
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 ac_c99_math=no
6434 fi
6435 rm -f conftest.$ac_objext conftest.$ac_ext
6436 cat >conftest.$ac_ext <<_ACEOF
6437 #line $LINENO "configure"
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <math.h>
6444 int
6445 main ()
6446 {
6447 isless(0.0,0.0);
6448 ;
6449 return 0;
6450 }
6451 _ACEOF
6452 rm -f conftest.$ac_objext
6453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6454 (eval $ac_compile) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -s conftest.$ac_objext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 :
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6468
6469 ac_c99_math=no
6470 fi
6471 rm -f conftest.$ac_objext conftest.$ac_ext
6472 cat >conftest.$ac_ext <<_ACEOF
6473 #line $LINENO "configure"
6474 /* confdefs.h. */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 #include <math.h>
6480 int
6481 main ()
6482 {
6483 islessequal(0.0,0.0);
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490 (eval $ac_compile) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } &&
6494 { ac_try='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 :
6501 else
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6504
6505 ac_c99_math=no
6506 fi
6507 rm -f conftest.$ac_objext conftest.$ac_ext
6508 cat >conftest.$ac_ext <<_ACEOF
6509 #line $LINENO "configure"
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 #include <math.h>
6516 int
6517 main ()
6518 {
6519 islessgreater(0.0,0.0);
6520 ;
6521 return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 :
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 ac_c99_math=no
6542 fi
6543 rm -f conftest.$ac_objext conftest.$ac_ext
6544 cat >conftest.$ac_ext <<_ACEOF
6545 #line $LINENO "configure"
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 #include <math.h>
6552 int
6553 main ()
6554 {
6555 isunordered(0.0,0.0);
6556 ;
6557 return 0;
6558 }
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6562 (eval $ac_compile) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 :
6573 else
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 ac_c99_math=no
6578 fi
6579 rm -f conftest.$ac_objext conftest.$ac_ext
6580 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6581 echo "${ECHO_T}$ac_c99_math" >&6
6582
6583 # Check for the existence in <stdio.h> of vscanf, et. al.
6584 ac_c99_stdio=yes;
6585 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6586 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6587 cat >conftest.$ac_ext <<_ACEOF
6588 #line $LINENO "configure"
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 #include <stdio.h>
6595 int
6596 main ()
6597 {
6598 snprintf("12", 0, "%i");
6599 ;
6600 return 0;
6601 }
6602 _ACEOF
6603 rm -f conftest.$ac_objext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6605 (eval $ac_compile) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 :
6616 else
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 ac_c99_stdio=no
6621 fi
6622 rm -f conftest.$ac_objext conftest.$ac_ext
6623 cat >conftest.$ac_ext <<_ACEOF
6624 #line $LINENO "configure"
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <stdio.h>
6631 #include <stdarg.h>
6632 void foo(char* fmt, ...)
6633 {va_list args; va_start(args, fmt);
6634 vfscanf(stderr, "%i", args);}
6635 int
6636 main ()
6637 {
6638
6639 ;
6640 return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -s conftest.$ac_objext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 :
6656 else
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 ac_c99_stdio=no
6661 fi
6662 rm -f conftest.$ac_objext conftest.$ac_ext
6663 cat >conftest.$ac_ext <<_ACEOF
6664 #line $LINENO "configure"
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <stdio.h>
6671 #include <stdarg.h>
6672 void foo(char* fmt, ...)
6673 {va_list args; va_start(args, fmt);
6674 vscanf("%i", args);}
6675 int
6676 main ()
6677 {
6678
6679 ;
6680 return 0;
6681 }
6682 _ACEOF
6683 rm -f conftest.$ac_objext
6684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6685 (eval $ac_compile) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -s conftest.$ac_objext'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 (eval $ac_try) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 :
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6699
6700 ac_c99_stdio=no
6701 fi
6702 rm -f conftest.$ac_objext conftest.$ac_ext
6703 cat >conftest.$ac_ext <<_ACEOF
6704 #line $LINENO "configure"
6705 /* confdefs.h. */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 #include <stdio.h>
6711 #include <stdarg.h>
6712 void foo(char* fmt, ...)
6713 {va_list args; va_start(args, fmt);
6714 vsnprintf(fmt, 0, "%i", args);}
6715 int
6716 main ()
6717 {
6718
6719 ;
6720 return 0;
6721 }
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6725 (eval $ac_compile) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } &&
6729 { ac_try='test -s conftest.$ac_objext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 :
6736 else
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6739
6740 ac_c99_stdio=no
6741 fi
6742 rm -f conftest.$ac_objext conftest.$ac_ext
6743 cat >conftest.$ac_ext <<_ACEOF
6744 #line $LINENO "configure"
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 #include <stdio.h>
6751 #include <stdarg.h>
6752 void foo(char* fmt, ...)
6753 {va_list args; va_start(args, fmt);
6754 vsscanf(fmt, "%i", args);}
6755 int
6756 main ()
6757 {
6758
6759 ;
6760 return 0;
6761 }
6762 _ACEOF
6763 rm -f conftest.$ac_objext
6764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765 (eval $ac_compile) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 :
6776 else
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780 ac_c99_stdio=no
6781 fi
6782 rm -f conftest.$ac_objext conftest.$ac_ext
6783 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
6784 echo "${ECHO_T}$ac_c99_stdio" >&6
6785
6786 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
6787 ac_c99_stdlib=yes;
6788 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
6789 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
6790 if test "${ac_c99_lldiv_t+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793
6794 cat >conftest.$ac_ext <<_ACEOF
6795 #line $LINENO "configure"
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <stdlib.h>
6802 int
6803 main ()
6804 {
6805 lldiv_t mydivt;
6806 ;
6807 return 0;
6808 }
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_c99_lldiv_t=yes
6823 else
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 ac_c99_lldiv_t=no
6828 fi
6829 rm -f conftest.$ac_objext conftest.$ac_ext
6830
6831 fi
6832
6833 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
6834 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
6835
6836 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
6837 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
6838 cat >conftest.$ac_ext <<_ACEOF
6839 #line $LINENO "configure"
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 #include <stdlib.h>
6846 int
6847 main ()
6848 {
6849 char* tmp; strtof("gnu", &tmp);
6850 ;
6851 return 0;
6852 }
6853 _ACEOF
6854 rm -f conftest.$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -s conftest.$ac_objext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 :
6867 else
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6870
6871 ac_c99_stdlib=no
6872 fi
6873 rm -f conftest.$ac_objext conftest.$ac_ext
6874 cat >conftest.$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 #include <stdlib.h>
6882 int
6883 main ()
6884 {
6885 char* tmp; strtold("gnu", &tmp);
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892 (eval $ac_compile) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -s conftest.$ac_objext'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 (eval $ac_try) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; }; then
6902 :
6903 else
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6906
6907 ac_c99_stdlib=no
6908 fi
6909 rm -f conftest.$ac_objext conftest.$ac_ext
6910 cat >conftest.$ac_ext <<_ACEOF
6911 #line $LINENO "configure"
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <stdlib.h>
6918 int
6919 main ()
6920 {
6921 llabs(10);
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 rm -f conftest.$ac_objext
6927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6928 (eval $ac_compile) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } &&
6932 { ac_try='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 :
6939 else
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6942
6943 ac_c99_stdlib=no
6944 fi
6945 rm -f conftest.$ac_objext conftest.$ac_ext
6946 cat >conftest.$ac_ext <<_ACEOF
6947 #line $LINENO "configure"
6948 /* confdefs.h. */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6953 #include <stdlib.h>
6954 int
6955 main ()
6956 {
6957 lldiv(10,1);
6958 ;
6959 return 0;
6960 }
6961 _ACEOF
6962 rm -f conftest.$ac_objext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6964 (eval $ac_compile) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -s conftest.$ac_objext'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 (eval $ac_try) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6974 :
6975 else
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979 ac_c99_stdlib=no
6980 fi
6981 rm -f conftest.$ac_objext conftest.$ac_ext
6982 cat >conftest.$ac_ext <<_ACEOF
6983 #line $LINENO "configure"
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <stdlib.h>
6990 int
6991 main ()
6992 {
6993 atoll("10");
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000 (eval $ac_compile) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 :
7011 else
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015 ac_c99_stdlib=no
7016 fi
7017 rm -f conftest.$ac_objext conftest.$ac_ext
7018 cat >conftest.$ac_ext <<_ACEOF
7019 #line $LINENO "configure"
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 #include <stdlib.h>
7026 int
7027 main ()
7028 {
7029 _Exit(0);
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 rm -f conftest.$ac_objext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036 (eval $ac_compile) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } &&
7040 { ac_try='test -s conftest.$ac_objext'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; }; then
7046 :
7047 else
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7050
7051 ac_c99_stdlib=no
7052 fi
7053 rm -f conftest.$ac_objext conftest.$ac_ext
7054 if test x"$ac_c99_lldiv_t" = x"no"; then
7055 ac_c99_stdlib=no;
7056 fi;
7057 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7058 echo "${ECHO_T}$ac_c99_stdlib" >&6
7059
7060 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7061 # XXX the wchar.h checks should be rolled into the general C99 bits.
7062 ac_c99_wchar=yes;
7063 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7064 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7065 cat >conftest.$ac_ext <<_ACEOF
7066 #line $LINENO "configure"
7067 /* confdefs.h. */
7068 _ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7072 #include <wchar.h>
7073 int
7074 main ()
7075 {
7076 wcstold(L"10.0", NULL);
7077 ;
7078 return 0;
7079 }
7080 _ACEOF
7081 rm -f conftest.$ac_objext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083 (eval $ac_compile) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } &&
7087 { ac_try='test -s conftest.$ac_objext'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 (eval $ac_try) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7093 :
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098 ac_c99_wchar=no
7099 fi
7100 rm -f conftest.$ac_objext conftest.$ac_ext
7101 cat >conftest.$ac_ext <<_ACEOF
7102 #line $LINENO "configure"
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <wchar.h>
7109 int
7110 main ()
7111 {
7112 wcstoll(L"10", NULL, 10);
7113 ;
7114 return 0;
7115 }
7116 _ACEOF
7117 rm -f conftest.$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -s conftest.$ac_objext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 :
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 ac_c99_wchar=no
7135 fi
7136 rm -f conftest.$ac_objext conftest.$ac_ext
7137 cat >conftest.$ac_ext <<_ACEOF
7138 #line $LINENO "configure"
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 #include <wchar.h>
7145 int
7146 main ()
7147 {
7148 wcstoull(L"10", NULL, 10);
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7155 (eval $ac_compile) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } &&
7159 { ac_try='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 (eval $ac_try) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 :
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7169
7170 ac_c99_wchar=no
7171 fi
7172 rm -f conftest.$ac_objext conftest.$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7174 echo "${ECHO_T}$ac_c99_wchar" >&6
7175
7176 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7177 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7178 if test x"$ac_c99_math" = x"no" ||
7179 test x"$ac_c99_stdio" = x"no" ||
7180 test x"$ac_c99_stdlib" = x"no" ||
7181 test x"$ac_c99_wchar" = x"no"; then
7182 enable_c99=no;
7183 fi;
7184 echo "$as_me:$LINENO: result: $enable_c99" >&5
7185 echo "${ECHO_T}$enable_c99" >&6
7186
7187 # Option parsed, now set things appropriately
7188 if test x"$enable_c99" = x"yes"; then
7189 cat >>confdefs.h <<\_ACEOF
7190 #define _GLIBCXX_USE_C99 1
7191 _ACEOF
7192
7193 fi
7194
7195 ac_ext=c
7196 ac_cpp='$CPP $CPPFLAGS'
7197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7200
7201
7202
7203 # Check whether --enable-long-long or --disable-long-long was given.
7204 if test "${enable_long_long+set}" = set; then
7205 enableval="$enable_long_long"
7206
7207 case "$enableval" in
7208 yes|no) ;;
7209 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7210 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7211 { (exit 1); exit 1; }; } ;;
7212 esac
7213
7214 else
7215 enable_long_long=yes
7216 fi;
7217
7218
7219
7220
7221 ac_ext=cc
7222 ac_cpp='$CXXCPP $CPPFLAGS'
7223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7226
7227
7228 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7229 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7230 # iostreams require strtoll, strtoull to compile
7231 cat >conftest.$ac_ext <<_ACEOF
7232 #line $LINENO "configure"
7233 /* confdefs.h. */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 #include <stdlib.h>
7239 int
7240 main ()
7241 {
7242 char* tmp; strtoll("gnu", &tmp, 10);
7243 ;
7244 return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249 (eval $ac_compile) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 :
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 enable_long_long=no
7265 fi
7266 rm -f conftest.$ac_objext conftest.$ac_ext
7267 cat >conftest.$ac_ext <<_ACEOF
7268 #line $LINENO "configure"
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #include <stdlib.h>
7275 int
7276 main ()
7277 {
7278 char* tmp; strtoull("gnu", &tmp, 10);
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 :
7296 else
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 enable_long_long=no
7301 fi
7302 rm -f conftest.$ac_objext conftest.$ac_ext
7303
7304 # Option parsed, now set things appropriately
7305 if test $enable_long_long = yes; then
7306 cat >>confdefs.h <<\_ACEOF
7307 #define _GLIBCXX_USE_LONG_LONG 1
7308 _ACEOF
7309
7310 fi
7311 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7312 echo "${ECHO_T}$enable_long_long" >&6
7313
7314 ac_ext=c
7315 ac_cpp='$CPP $CPPFLAGS'
7316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319
7320
7321
7322 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7323 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7324 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7325 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7326 echo "${ECHO_T}$target_thread_file" >&6
7327
7328 if test $target_thread_file != single; then
7329 cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_GTHR_DEFAULT 1
7331 _ACEOF
7332
7333 cat >>confdefs.h <<\_ACEOF
7334 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
7335 _ACEOF
7336
7337 fi
7338
7339 glibcxx_thread_h=gthr-$target_thread_file.h
7340
7341
7342
7343 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7344 if test "${enable_concept_checks+set}" = set; then
7345 enableval="$enable_concept_checks"
7346
7347 case "$enableval" in
7348 yes|no) ;;
7349 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7350 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7351 { (exit 1); exit 1; }; } ;;
7352 esac
7353
7354 else
7355 enable_concept_checks=no
7356 fi;
7357
7358 if test $enable_concept_checks = yes; then
7359 cat >>confdefs.h <<\_ACEOF
7360 #define _GLIBCXX_CONCEPT_CHECKS 1
7361 _ACEOF
7362
7363 fi
7364
7365
7366 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7367 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7368 enableval="$enable_libstdcxx_debug_flags"
7369 case "x$enable_libstdcxx_debug_flags" in
7370 xno | x) enable_libstdcxx_debug_flags= ;;
7371 x-*) ;;
7372 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7373 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7374 { (exit 1); exit 1; }; } ;;
7375 esac
7376 else
7377 enable_libstdcxx_debug_flags="-g3 -O0"
7378 fi;
7379
7380
7381 # Option parsed, now set things appropriately
7382 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7383
7384
7385 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7386 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7387
7388
7389 echo "$as_me:$LINENO: checking for additional debug build" >&5
7390 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7391 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7392 if test "${enable_libstdcxx_debug+set}" = set; then
7393 enableval="$enable_libstdcxx_debug"
7394
7395 case "$enableval" in
7396 yes|no) ;;
7397 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7398 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7399 { (exit 1); exit 1; }; } ;;
7400 esac
7401
7402 else
7403 enable_libstdcxx_debug=no
7404 fi;
7405
7406 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7407 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7408
7409
7410 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7411 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7412 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7413 if test "${enable_cxx_flags+set}" = set; then
7414 enableval="$enable_cxx_flags"
7415 case "x$enable_cxx_flags" in
7416 xno | x) enable_cxx_flags= ;;
7417 x-*) ;;
7418 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7419 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7420 { (exit 1); exit 1; }; } ;;
7421 esac
7422 else
7423 enable_cxx_flags=
7424 fi;
7425
7426
7427 # Run through flags (either default or command-line) and set anything
7428 # extra (e.g., #defines) that must accompany particular g++ options.
7429 if test -n "$enable_cxx_flags"; then
7430 for f in $enable_cxx_flags; do
7431 case "$f" in
7432 -fhonor-std) ;;
7433 -*) ;;
7434 *) # and we're trying to pass /what/ exactly?
7435 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7436 echo "$as_me: error: compiler flags start with a -" >&2;}
7437 { (exit 1); exit 1; }; } ;;
7438 esac
7439 done
7440 fi
7441
7442 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7443 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7444 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7445
7446
7447
7448 # No surprises, no surprises...
7449 if test $atomicity_include_dir = cpu/generic ; then
7450 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7451 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7452 if test $target_thread_file = single; then
7453 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7454 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7455 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7456 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7457 else
7458 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7459 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7460 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7461 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7462 fi
7463 fi
7464
7465
7466 if $GLIBCXX_IS_NATIVE; then
7467
7468 # We can do more elaborate tests that assume a working linker.
7469 CANADIAN=no
7470
7471 # Check for available headers.
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7486 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7487 sys/types.h
7488 do
7489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7491 echo "$as_me:$LINENO: checking for $ac_header" >&5
7492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 fi
7496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7498 else
7499 # Is the header compilable?
7500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7502 cat >conftest.$ac_ext <<_ACEOF
7503 #line $LINENO "configure"
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7510 #include <$ac_header>
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>&5
7515 ac_status=$?
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try='test -s conftest.$ac_objext'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524 ac_header_compiler=yes
7525 else
7526 echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7528
7529 ac_header_compiler=no
7530 fi
7531 rm -f conftest.$ac_objext conftest.$ac_ext
7532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7533 echo "${ECHO_T}$ac_header_compiler" >&6
7534
7535 # Is the header present?
7536 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7538 cat >conftest.$ac_ext <<_ACEOF
7539 #line $LINENO "configure"
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 #include <$ac_header>
7546 _ACEOF
7547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } >/dev/null; then
7555 if test -s conftest.err; then
7556 ac_cpp_err=$ac_c_preproc_warn_flag
7557 else
7558 ac_cpp_err=
7559 fi
7560 else
7561 ac_cpp_err=yes
7562 fi
7563 if test -z "$ac_cpp_err"; then
7564 ac_header_preproc=yes
7565 else
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569 ac_header_preproc=no
7570 fi
7571 rm -f conftest.err conftest.$ac_ext
7572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7573 echo "${ECHO_T}$ac_header_preproc" >&6
7574
7575 # So? What about this header?
7576 case $ac_header_compiler:$ac_header_preproc in
7577 yes:no )
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7582 (
7583 cat <<\_ASBOX
7584 ## ------------------------------------ ##
7585 ## Report this to bug-autoconf@gnu.org. ##
7586 ## ------------------------------------ ##
7587 _ASBOX
7588 ) |
7589 sed "s/^/$as_me: WARNING: /" >&2
7590 ;;
7591 no:yes )
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7598 (
7599 cat <<\_ASBOX
7600 ## ------------------------------------ ##
7601 ## Report this to bug-autoconf@gnu.org. ##
7602 ## ------------------------------------ ##
7603 _ASBOX
7604 ) |
7605 sed "s/^/$as_me: WARNING: /" >&2
7606 ;;
7607 esac
7608 echo "$as_me:$LINENO: checking for $ac_header" >&5
7609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613 eval "$as_ac_Header=$ac_header_preproc"
7614 fi
7615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7617
7618 fi
7619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7620 cat >>confdefs.h <<_ACEOF
7621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7622 _ACEOF
7623
7624 fi
7625
7626 done
7627
7628
7629
7630 # All these tests are for C++; save the language and the compiler flags.
7631 # The CXXFLAGS thing is suspicious, but based on similar bits previously
7632 # found in GLIBCXX_CONFIGURE.
7633
7634
7635 ac_ext=cc
7636 ac_cpp='$CXXCPP $CPPFLAGS'
7637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7640
7641 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7642 ac_save_CXXFLAGS="$CXXFLAGS"
7643
7644 # Check for maintainer-mode bits.
7645 if test x"$USE_MAINTAINER_MODE" = xno; then
7646 WERROR=''
7647 else
7648 WERROR='-Werror'
7649 fi
7650
7651 # Check for -ffunction-sections -fdata-sections
7652 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7653 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
7654 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7655 cat >conftest.$ac_ext <<_ACEOF
7656 #line $LINENO "configure"
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662
7663 int
7664 main ()
7665 {
7666 int foo;
7667 ;
7668 return 0;
7669 }
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673 (eval $ac_compile) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -s conftest.$ac_objext'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 (eval $ac_try) 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 ac_fdsections=yes
7684 else
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688 ac_fdsections=no
7689 fi
7690 rm -f conftest.$ac_objext conftest.$ac_ext
7691 if test "$ac_test_CXXFLAGS" = set; then
7692 CXXFLAGS="$ac_save_CXXFLAGS"
7693 else
7694 # this is the suspicious part
7695 CXXFLAGS=''
7696 fi
7697 if test x"$ac_fdsections" = x"yes"; then
7698 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7699 fi
7700 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
7701 echo "${ECHO_T}$ac_fdsections" >&6
7702
7703 ac_ext=c
7704 ac_cpp='$CPP $CPPFLAGS'
7705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708
7709
7710
7711
7712
7713 # If we're not using GNU ld, then there's no point in even trying these
7714 # tests. Check for that first. We should have already tested for gld
7715 # by now (in libtool), but require it now just to be safe...
7716 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7717 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7718
7719
7720
7721 # The name set by libtool depends on the version of libtool. Shame on us
7722 # for depending on an impl detail, but c'est la vie. Older versions used
7723 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7724 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7725 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7726 # set (hence we're using an older libtool), then set it.
7727 if test x${with_gnu_ld+set} != xset; then
7728 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7729 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7730 with_gnu_ld=no
7731 else
7732 with_gnu_ld=$ac_cv_prog_gnu_ld
7733 fi
7734 fi
7735
7736 # Start by getting the version number. I think the libtool test already
7737 # does some of this, but throws away the result.
7738
7739 ldver=`$LD --version 2>/dev/null | head -1 | \
7740 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7741
7742 glibcxx_gnu_ld_version=`echo $ldver | \
7743 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7744
7745 # Set --gc-sections.
7746 if test "$with_gnu_ld" = "notbroken"; then
7747 # GNU ld it is! Joy and bunny rabbits!
7748
7749 # All these tests are for C++; save the language and the compiler flags.
7750 # Need to do this so that g++ won't try to link in libstdc++
7751 ac_test_CFLAGS="${CFLAGS+set}"
7752 ac_save_CFLAGS="$CFLAGS"
7753 CFLAGS='-x c++ -Wl,--gc-sections'
7754
7755 # Check for -Wl,--gc-sections
7756 # XXX This test is broken at the moment, as symbols required for linking
7757 # are now in libsupc++ (not built yet). In addition, this test has
7758 # cored on solaris in the past. In addition, --gc-sections doesn't
7759 # really work at the moment (keeps on discarding used sections, first
7760 # .eh_frame and now some of the glibc sections for iconv).
7761 # Bzzzzt. Thanks for playing, maybe next time.
7762 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
7763 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
7764 if test "$cross_compiling" = yes; then
7765 ac_sectionLDflags=yes
7766 else
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774
7775 int main(void)
7776 {
7777 try { throw 1; }
7778 catch (...) { };
7779 return 0;
7780 }
7781
7782 _ACEOF
7783 rm -f conftest$ac_exeext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 (eval $ac_try) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_sectionLDflags=yes
7795 else
7796 echo "$as_me: program exited with status $ac_status" >&5
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7799
7800 ( exit $ac_status )
7801 ac_sectionLDflags=no
7802 fi
7803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7804 fi
7805 if test "$ac_test_CFLAGS" = set; then
7806 CFLAGS="$ac_save_CFLAGS"
7807 else
7808 # this is the suspicious part
7809 CFLAGS=''
7810 fi
7811 if test "$ac_sectionLDflags" = "yes"; then
7812 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7813 fi
7814 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
7815 echo "${ECHO_T}$ac_sectionLDflags" >&6
7816 fi
7817
7818 # Set linker optimization flags.
7819 if test x"$with_gnu_ld" = x"yes"; then
7820 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7821 fi
7822
7823
7824
7825
7826
7827 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7828 ac_save_CXXFLAGS="$CXXFLAGS"
7829 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
7830
7831 echo "$as_me:$LINENO: checking for sin in -lm" >&5
7832 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
7833 if test "${ac_cv_lib_m_sin+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 ac_check_lib_save_LIBS=$LIBS
7837 LIBS="-lm $LIBS"
7838 if test x$gcc_no_link = xyes; then
7839 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7841 { (exit 1); exit 1; }; }
7842 fi
7843 cat >conftest.$ac_ext <<_ACEOF
7844 #line $LINENO "configure"
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850
7851 /* Override any gcc2 internal prototype to avoid an error. */
7852 #ifdef __cplusplus
7853 extern "C"
7854 #endif
7855 /* We use char because int might match the return type of a gcc2
7856 builtin and then its argument prototype would still apply. */
7857 char sin ();
7858 int
7859 main ()
7860 {
7861 sin ();
7862 ;
7863 return 0;
7864 }
7865 _ACEOF
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7868 (eval $ac_link) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -s conftest$ac_exeext'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 (eval $ac_try) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; }; then
7878 ac_cv_lib_m_sin=yes
7879 else
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883 ac_cv_lib_m_sin=no
7884 fi
7885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7886 LIBS=$ac_check_lib_save_LIBS
7887 fi
7888 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7889 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
7890 if test $ac_cv_lib_m_sin = yes; then
7891 libm="-lm"
7892 fi
7893
7894 ac_save_LIBS="$LIBS"
7895 LIBS="$LIBS $libm"
7896
7897
7898
7899 echo "$as_me:$LINENO: checking for isinf declaration" >&5
7900 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
7901 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
7902 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905
7906
7907
7908 ac_ext=cc
7909 ac_cpp='$CXXCPP $CPPFLAGS'
7910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7913
7914 cat >conftest.$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 #include <math.h>
7922 #ifdef HAVE_IEEEFP_H
7923 #include <ieeefp.h>
7924 #endif
7925
7926 int
7927 main ()
7928 {
7929 isinf(0);
7930 ;
7931 return 0;
7932 }
7933 _ACEOF
7934 rm -f conftest.$ac_objext
7935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7936 (eval $ac_compile) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } &&
7940 { ac_try='test -s conftest.$ac_objext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 glibcxx_cv_func_isinf_use=yes
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 glibcxx_cv_func_isinf_use=no
7952 fi
7953 rm -f conftest.$ac_objext conftest.$ac_ext
7954 ac_ext=c
7955 ac_cpp='$CPP $CPPFLAGS'
7956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7959
7960
7961 fi
7962
7963 fi
7964 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
7965 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
7966
7967 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
7968
7969 for ac_func in isinf
7970 do
7971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7972 echo "$as_me:$LINENO: checking for $ac_func" >&5
7973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7974 if eval "test \"\${$as_ac_var+set}\" = set"; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 if test x$gcc_no_link = xyes; then
7978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7980 { (exit 1); exit 1; }; }
7981 fi
7982 cat >conftest.$ac_ext <<_ACEOF
7983 #line $LINENO "configure"
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 /* System header to define __stub macros and hopefully few prototypes,
7990 which can conflict with char $ac_func (); below.
7991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7992 <limits.h> exists even on freestanding compilers. */
7993 #ifdef __STDC__
7994 # include <limits.h>
7995 #else
7996 # include <assert.h>
7997 #endif
7998 /* Override any gcc2 internal prototype to avoid an error. */
7999 #ifdef __cplusplus
8000 extern "C"
8001 {
8002 #endif
8003 /* We use char because int might match the return type of a gcc2
8004 builtin and then its argument prototype would still apply. */
8005 char $ac_func ();
8006 /* The GNU C library defines this for functions which it implements
8007 to always fail with ENOSYS. Some functions are actually named
8008 something starting with __ and the normal name is an alias. */
8009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8010 choke me
8011 #else
8012 char (*f) () = $ac_func;
8013 #endif
8014 #ifdef __cplusplus
8015 }
8016 #endif
8017
8018 int
8019 main ()
8020 {
8021 return f != $ac_func;
8022 ;
8023 return 0;
8024 }
8025 _ACEOF
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8028 (eval $ac_link) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } &&
8032 { ac_try='test -s conftest$ac_exeext'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 (eval $ac_try) 2>&5
8035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8038 eval "$as_ac_var=yes"
8039 else
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 eval "$as_ac_var=no"
8044 fi
8045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8046 fi
8047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8049 if test `eval echo '${'$as_ac_var'}'` = yes; then
8050 cat >>confdefs.h <<_ACEOF
8051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8052 _ACEOF
8053
8054 fi
8055 done
8056
8057 else
8058
8059 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8060 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8061 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8062 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065
8066
8067
8068 ac_ext=cc
8069 ac_cpp='$CXXCPP $CPPFLAGS'
8070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8073
8074 cat >conftest.$ac_ext <<_ACEOF
8075 #line $LINENO "configure"
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 #include <math.h>
8082 #ifdef HAVE_IEEEFP_H
8083 #include <ieeefp.h>
8084 #endif
8085
8086 int
8087 main ()
8088 {
8089 _isinf(0);
8090 ;
8091 return 0;
8092 }
8093 _ACEOF
8094 rm -f conftest.$ac_objext
8095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8096 (eval $ac_compile) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -s conftest.$ac_objext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 glibcxx_cv_func__isinf_use=yes
8107 else
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 glibcxx_cv_func__isinf_use=no
8112 fi
8113 rm -f conftest.$ac_objext conftest.$ac_ext
8114 ac_ext=c
8115 ac_cpp='$CPP $CPPFLAGS'
8116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119
8120
8121 fi
8122
8123 fi
8124 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8125 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8126
8127 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8128
8129 for ac_func in _isinf
8130 do
8131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8132 echo "$as_me:$LINENO: checking for $ac_func" >&5
8133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8134 if eval "test \"\${$as_ac_var+set}\" = set"; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137 if test x$gcc_no_link = xyes; then
8138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8140 { (exit 1); exit 1; }; }
8141 fi
8142 cat >conftest.$ac_ext <<_ACEOF
8143 #line $LINENO "configure"
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 /* System header to define __stub macros and hopefully few prototypes,
8150 which can conflict with char $ac_func (); below.
8151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8152 <limits.h> exists even on freestanding compilers. */
8153 #ifdef __STDC__
8154 # include <limits.h>
8155 #else
8156 # include <assert.h>
8157 #endif
8158 /* Override any gcc2 internal prototype to avoid an error. */
8159 #ifdef __cplusplus
8160 extern "C"
8161 {
8162 #endif
8163 /* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8165 char $ac_func ();
8166 /* The GNU C library defines this for functions which it implements
8167 to always fail with ENOSYS. Some functions are actually named
8168 something starting with __ and the normal name is an alias. */
8169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8170 choke me
8171 #else
8172 char (*f) () = $ac_func;
8173 #endif
8174 #ifdef __cplusplus
8175 }
8176 #endif
8177
8178 int
8179 main ()
8180 {
8181 return f != $ac_func;
8182 ;
8183 return 0;
8184 }
8185 _ACEOF
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try='test -s conftest$ac_exeext'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 (eval $ac_try) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 eval "$as_ac_var=yes"
8199 else
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 eval "$as_ac_var=no"
8204 fi
8205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8206 fi
8207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8209 if test `eval echo '${'$as_ac_var'}'` = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8212 _ACEOF
8213
8214 fi
8215 done
8216
8217 fi
8218 fi
8219
8220
8221
8222 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8223 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8224 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8225 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228
8229
8230
8231 ac_ext=cc
8232 ac_cpp='$CXXCPP $CPPFLAGS'
8233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8236
8237 cat >conftest.$ac_ext <<_ACEOF
8238 #line $LINENO "configure"
8239 /* confdefs.h. */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 #include <math.h>
8245 #ifdef HAVE_IEEEFP_H
8246 #include <ieeefp.h>
8247 #endif
8248
8249 int
8250 main ()
8251 {
8252 isnan(0);
8253 ;
8254 return 0;
8255 }
8256 _ACEOF
8257 rm -f conftest.$ac_objext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259 (eval $ac_compile) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -s conftest.$ac_objext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 glibcxx_cv_func_isnan_use=yes
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 glibcxx_cv_func_isnan_use=no
8275 fi
8276 rm -f conftest.$ac_objext conftest.$ac_ext
8277 ac_ext=c
8278 ac_cpp='$CPP $CPPFLAGS'
8279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8282
8283
8284 fi
8285
8286 fi
8287 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8288 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8289
8290 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8291
8292 for ac_func in isnan
8293 do
8294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8295 echo "$as_me:$LINENO: checking for $ac_func" >&5
8296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8297 if eval "test \"\${$as_ac_var+set}\" = set"; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300 if test x$gcc_no_link = xyes; then
8301 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8303 { (exit 1); exit 1; }; }
8304 fi
8305 cat >conftest.$ac_ext <<_ACEOF
8306 #line $LINENO "configure"
8307 /* confdefs.h. */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 /* System header to define __stub macros and hopefully few prototypes,
8313 which can conflict with char $ac_func (); below.
8314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8315 <limits.h> exists even on freestanding compilers. */
8316 #ifdef __STDC__
8317 # include <limits.h>
8318 #else
8319 # include <assert.h>
8320 #endif
8321 /* Override any gcc2 internal prototype to avoid an error. */
8322 #ifdef __cplusplus
8323 extern "C"
8324 {
8325 #endif
8326 /* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8328 char $ac_func ();
8329 /* The GNU C library defines this for functions which it implements
8330 to always fail with ENOSYS. Some functions are actually named
8331 something starting with __ and the normal name is an alias. */
8332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8333 choke me
8334 #else
8335 char (*f) () = $ac_func;
8336 #endif
8337 #ifdef __cplusplus
8338 }
8339 #endif
8340
8341 int
8342 main ()
8343 {
8344 return f != $ac_func;
8345 ;
8346 return 0;
8347 }
8348 _ACEOF
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8351 (eval $ac_link) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -s conftest$ac_exeext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 eval "$as_ac_var=yes"
8362 else
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366 eval "$as_ac_var=no"
8367 fi
8368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8369 fi
8370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8372 if test `eval echo '${'$as_ac_var'}'` = yes; then
8373 cat >>confdefs.h <<_ACEOF
8374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8375 _ACEOF
8376
8377 fi
8378 done
8379
8380 else
8381
8382 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8383 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8384 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8385 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388
8389
8390
8391 ac_ext=cc
8392 ac_cpp='$CXXCPP $CPPFLAGS'
8393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8396
8397 cat >conftest.$ac_ext <<_ACEOF
8398 #line $LINENO "configure"
8399 /* confdefs.h. */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 #include <math.h>
8405 #ifdef HAVE_IEEEFP_H
8406 #include <ieeefp.h>
8407 #endif
8408
8409 int
8410 main ()
8411 {
8412 _isnan(0);
8413 ;
8414 return 0;
8415 }
8416 _ACEOF
8417 rm -f conftest.$ac_objext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8419 (eval $ac_compile) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -s conftest.$ac_objext'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 (eval $ac_try) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; }; then
8429 glibcxx_cv_func__isnan_use=yes
8430 else
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434 glibcxx_cv_func__isnan_use=no
8435 fi
8436 rm -f conftest.$ac_objext conftest.$ac_ext
8437 ac_ext=c
8438 ac_cpp='$CPP $CPPFLAGS'
8439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8442
8443
8444 fi
8445
8446 fi
8447 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
8448 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
8449
8450 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
8451
8452 for ac_func in _isnan
8453 do
8454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8455 echo "$as_me:$LINENO: checking for $ac_func" >&5
8456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8457 if eval "test \"\${$as_ac_var+set}\" = set"; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460 if test x$gcc_no_link = xyes; then
8461 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8462 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8463 { (exit 1); exit 1; }; }
8464 fi
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 /* System header to define __stub macros and hopefully few prototypes,
8473 which can conflict with char $ac_func (); below.
8474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8475 <limits.h> exists even on freestanding compilers. */
8476 #ifdef __STDC__
8477 # include <limits.h>
8478 #else
8479 # include <assert.h>
8480 #endif
8481 /* Override any gcc2 internal prototype to avoid an error. */
8482 #ifdef __cplusplus
8483 extern "C"
8484 {
8485 #endif
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8488 char $ac_func ();
8489 /* The GNU C library defines this for functions which it implements
8490 to always fail with ENOSYS. Some functions are actually named
8491 something starting with __ and the normal name is an alias. */
8492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8493 choke me
8494 #else
8495 char (*f) () = $ac_func;
8496 #endif
8497 #ifdef __cplusplus
8498 }
8499 #endif
8500
8501 int
8502 main ()
8503 {
8504 return f != $ac_func;
8505 ;
8506 return 0;
8507 }
8508 _ACEOF
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8511 (eval $ac_link) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -s conftest$ac_exeext'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 (eval $ac_try) 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 eval "$as_ac_var=yes"
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526 eval "$as_ac_var=no"
8527 fi
8528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8529 fi
8530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8532 if test `eval echo '${'$as_ac_var'}'` = yes; then
8533 cat >>confdefs.h <<_ACEOF
8534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8535 _ACEOF
8536
8537 fi
8538 done
8539
8540 fi
8541 fi
8542
8543
8544
8545 echo "$as_me:$LINENO: checking for finite declaration" >&5
8546 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
8547 if test x${glibcxx_cv_func_finite_use+set} != xset; then
8548 if test "${glibcxx_cv_func_finite_use+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551
8552
8553
8554 ac_ext=cc
8555 ac_cpp='$CXXCPP $CPPFLAGS'
8556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8559
8560 cat >conftest.$ac_ext <<_ACEOF
8561 #line $LINENO "configure"
8562 /* confdefs.h. */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8567 #include <math.h>
8568 #ifdef HAVE_IEEEFP_H
8569 #include <ieeefp.h>
8570 #endif
8571
8572 int
8573 main ()
8574 {
8575 finite(0);
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8582 (eval $ac_compile) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -s conftest.$ac_objext'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 glibcxx_cv_func_finite_use=yes
8593 else
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597 glibcxx_cv_func_finite_use=no
8598 fi
8599 rm -f conftest.$ac_objext conftest.$ac_ext
8600 ac_ext=c
8601 ac_cpp='$CPP $CPPFLAGS'
8602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8605
8606
8607 fi
8608
8609 fi
8610 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
8611 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
8612
8613 if test x$glibcxx_cv_func_finite_use = x"yes"; then
8614
8615 for ac_func in finite
8616 do
8617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8618 echo "$as_me:$LINENO: checking for $ac_func" >&5
8619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8620 if eval "test \"\${$as_ac_var+set}\" = set"; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 if test x$gcc_no_link = xyes; then
8624 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8626 { (exit 1); exit 1; }; }
8627 fi
8628 cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 /* confdefs.h. */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 /* System header to define __stub macros and hopefully few prototypes,
8636 which can conflict with char $ac_func (); below.
8637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8638 <limits.h> exists even on freestanding compilers. */
8639 #ifdef __STDC__
8640 # include <limits.h>
8641 #else
8642 # include <assert.h>
8643 #endif
8644 /* Override any gcc2 internal prototype to avoid an error. */
8645 #ifdef __cplusplus
8646 extern "C"
8647 {
8648 #endif
8649 /* We use char because int might match the return type of a gcc2
8650 builtin and then its argument prototype would still apply. */
8651 char $ac_func ();
8652 /* The GNU C library defines this for functions which it implements
8653 to always fail with ENOSYS. Some functions are actually named
8654 something starting with __ and the normal name is an alias. */
8655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8656 choke me
8657 #else
8658 char (*f) () = $ac_func;
8659 #endif
8660 #ifdef __cplusplus
8661 }
8662 #endif
8663
8664 int
8665 main ()
8666 {
8667 return f != $ac_func;
8668 ;
8669 return 0;
8670 }
8671 _ACEOF
8672 rm -f conftest.$ac_objext conftest$ac_exeext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674 (eval $ac_link) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -s conftest$ac_exeext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 eval "$as_ac_var=yes"
8685 else
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689 eval "$as_ac_var=no"
8690 fi
8691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8692 fi
8693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8695 if test `eval echo '${'$as_ac_var'}'` = yes; then
8696 cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8698 _ACEOF
8699
8700 fi
8701 done
8702
8703 else
8704
8705 echo "$as_me:$LINENO: checking for _finite declaration" >&5
8706 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
8707 if test x${glibcxx_cv_func__finite_use+set} != xset; then
8708 if test "${glibcxx_cv_func__finite_use+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711
8712
8713
8714 ac_ext=cc
8715 ac_cpp='$CXXCPP $CPPFLAGS'
8716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8719
8720 cat >conftest.$ac_ext <<_ACEOF
8721 #line $LINENO "configure"
8722 /* confdefs.h. */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8727 #include <math.h>
8728 #ifdef HAVE_IEEEFP_H
8729 #include <ieeefp.h>
8730 #endif
8731
8732 int
8733 main ()
8734 {
8735 _finite(0);
8736 ;
8737 return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742 (eval $ac_compile) 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } &&
8746 { ac_try='test -s conftest.$ac_objext'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 (eval $ac_try) 2>&5
8749 ac_status=$?
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 glibcxx_cv_func__finite_use=yes
8753 else
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
8757 glibcxx_cv_func__finite_use=no
8758 fi
8759 rm -f conftest.$ac_objext conftest.$ac_ext
8760 ac_ext=c
8761 ac_cpp='$CPP $CPPFLAGS'
8762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8765
8766
8767 fi
8768
8769 fi
8770 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
8771 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
8772
8773 if test x$glibcxx_cv_func__finite_use = x"yes"; then
8774
8775 for ac_func in _finite
8776 do
8777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8778 echo "$as_me:$LINENO: checking for $ac_func" >&5
8779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8780 if eval "test \"\${$as_ac_var+set}\" = set"; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 if test x$gcc_no_link = xyes; then
8784 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8785 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8786 { (exit 1); exit 1; }; }
8787 fi
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 /* System header to define __stub macros and hopefully few prototypes,
8796 which can conflict with char $ac_func (); below.
8797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8798 <limits.h> exists even on freestanding compilers. */
8799 #ifdef __STDC__
8800 # include <limits.h>
8801 #else
8802 # include <assert.h>
8803 #endif
8804 /* Override any gcc2 internal prototype to avoid an error. */
8805 #ifdef __cplusplus
8806 extern "C"
8807 {
8808 #endif
8809 /* We use char because int might match the return type of a gcc2
8810 builtin and then its argument prototype would still apply. */
8811 char $ac_func ();
8812 /* The GNU C library defines this for functions which it implements
8813 to always fail with ENOSYS. Some functions are actually named
8814 something starting with __ and the normal name is an alias. */
8815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8816 choke me
8817 #else
8818 char (*f) () = $ac_func;
8819 #endif
8820 #ifdef __cplusplus
8821 }
8822 #endif
8823
8824 int
8825 main ()
8826 {
8827 return f != $ac_func;
8828 ;
8829 return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext conftest$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 eval "$as_ac_var=yes"
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8848
8849 eval "$as_ac_var=no"
8850 fi
8851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8852 fi
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8855 if test `eval echo '${'$as_ac_var'}'` = yes; then
8856 cat >>confdefs.h <<_ACEOF
8857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8858 _ACEOF
8859
8860 fi
8861 done
8862
8863 fi
8864 fi
8865
8866
8867
8868 echo "$as_me:$LINENO: checking for copysign declaration" >&5
8869 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
8870 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
8871 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 else
8874
8875
8876
8877 ac_ext=cc
8878 ac_cpp='$CXXCPP $CPPFLAGS'
8879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8882
8883 cat >conftest.$ac_ext <<_ACEOF
8884 #line $LINENO "configure"
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 #include <math.h>
8891 int
8892 main ()
8893 {
8894 copysign(0, 0);
8895 ;
8896 return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8901 (eval $ac_compile) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -s conftest.$ac_objext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 glibcxx_cv_func_copysign_use=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 glibcxx_cv_func_copysign_use=no
8917 fi
8918 rm -f conftest.$ac_objext conftest.$ac_ext
8919 ac_ext=c
8920 ac_cpp='$CPP $CPPFLAGS'
8921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8924
8925
8926 fi
8927
8928 fi
8929 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
8930 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
8931
8932 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
8933
8934 for ac_func in copysign
8935 do
8936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8937 echo "$as_me:$LINENO: checking for $ac_func" >&5
8938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8939 if eval "test \"\${$as_ac_var+set}\" = set"; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942 if test x$gcc_no_link = xyes; then
8943 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8945 { (exit 1); exit 1; }; }
8946 fi
8947 cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 /* System header to define __stub macros and hopefully few prototypes,
8955 which can conflict with char $ac_func (); below.
8956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957 <limits.h> exists even on freestanding compilers. */
8958 #ifdef __STDC__
8959 # include <limits.h>
8960 #else
8961 # include <assert.h>
8962 #endif
8963 /* Override any gcc2 internal prototype to avoid an error. */
8964 #ifdef __cplusplus
8965 extern "C"
8966 {
8967 #endif
8968 /* We use char because int might match the return type of a gcc2
8969 builtin and then its argument prototype would still apply. */
8970 char $ac_func ();
8971 /* The GNU C library defines this for functions which it implements
8972 to always fail with ENOSYS. Some functions are actually named
8973 something starting with __ and the normal name is an alias. */
8974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8975 choke me
8976 #else
8977 char (*f) () = $ac_func;
8978 #endif
8979 #ifdef __cplusplus
8980 }
8981 #endif
8982
8983 int
8984 main ()
8985 {
8986 return f != $ac_func;
8987 ;
8988 return 0;
8989 }
8990 _ACEOF
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>&5
8994 ac_status=$?
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -s conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 eval "$as_ac_var=yes"
9004 else
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9007
9008 eval "$as_ac_var=no"
9009 fi
9010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9011 fi
9012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9014 if test `eval echo '${'$as_ac_var'}'` = yes; then
9015 cat >>confdefs.h <<_ACEOF
9016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9017 _ACEOF
9018
9019 fi
9020 done
9021
9022 else
9023
9024 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9025 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9026 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9027 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030
9031
9032
9033 ac_ext=cc
9034 ac_cpp='$CXXCPP $CPPFLAGS'
9035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9038
9039 cat >conftest.$ac_ext <<_ACEOF
9040 #line $LINENO "configure"
9041 /* confdefs.h. */
9042 _ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9046 #include <math.h>
9047 int
9048 main ()
9049 {
9050 _copysign(0, 0);
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -s conftest.$ac_objext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 glibcxx_cv_func__copysign_use=yes
9068 else
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9071
9072 glibcxx_cv_func__copysign_use=no
9073 fi
9074 rm -f conftest.$ac_objext conftest.$ac_ext
9075 ac_ext=c
9076 ac_cpp='$CPP $CPPFLAGS'
9077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9080
9081
9082 fi
9083
9084 fi
9085 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9086 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9087
9088 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9089
9090 for ac_func in _copysign
9091 do
9092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9093 echo "$as_me:$LINENO: checking for $ac_func" >&5
9094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9095 if eval "test \"\${$as_ac_var+set}\" = set"; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 if test x$gcc_no_link = xyes; then
9099 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9100 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9101 { (exit 1); exit 1; }; }
9102 fi
9103 cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 /* confdefs.h. */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 /* System header to define __stub macros and hopefully few prototypes,
9111 which can conflict with char $ac_func (); below.
9112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9113 <limits.h> exists even on freestanding compilers. */
9114 #ifdef __STDC__
9115 # include <limits.h>
9116 #else
9117 # include <assert.h>
9118 #endif
9119 /* Override any gcc2 internal prototype to avoid an error. */
9120 #ifdef __cplusplus
9121 extern "C"
9122 {
9123 #endif
9124 /* We use char because int might match the return type of a gcc2
9125 builtin and then its argument prototype would still apply. */
9126 char $ac_func ();
9127 /* The GNU C library defines this for functions which it implements
9128 to always fail with ENOSYS. Some functions are actually named
9129 something starting with __ and the normal name is an alias. */
9130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9131 choke me
9132 #else
9133 char (*f) () = $ac_func;
9134 #endif
9135 #ifdef __cplusplus
9136 }
9137 #endif
9138
9139 int
9140 main ()
9141 {
9142 return f != $ac_func;
9143 ;
9144 return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149 (eval $ac_link) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -s conftest$ac_exeext'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 eval "$as_ac_var=yes"
9160 else
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9163
9164 eval "$as_ac_var=no"
9165 fi
9166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9167 fi
9168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9170 if test `eval echo '${'$as_ac_var'}'` = yes; then
9171 cat >>confdefs.h <<_ACEOF
9172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9173 _ACEOF
9174
9175 fi
9176 done
9177
9178 fi
9179 fi
9180
9181
9182
9183 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9184 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9185 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9186 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189
9190
9191
9192 ac_ext=cc
9193 ac_cpp='$CXXCPP $CPPFLAGS'
9194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9197
9198 cat >conftest.$ac_ext <<_ACEOF
9199 #line $LINENO "configure"
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 #include <math.h>
9206 int
9207 main ()
9208 {
9209 sincos(0, 0, 0);
9210 ;
9211 return 0;
9212 }
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216 (eval $ac_compile) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -s conftest.$ac_objext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 glibcxx_cv_func_sincos_use=yes
9227 else
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 glibcxx_cv_func_sincos_use=no
9232 fi
9233 rm -f conftest.$ac_objext conftest.$ac_ext
9234 ac_ext=c
9235 ac_cpp='$CPP $CPPFLAGS'
9236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9239
9240
9241 fi
9242
9243 fi
9244 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9245 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9246
9247 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9248
9249 for ac_func in sincos
9250 do
9251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9252 echo "$as_me:$LINENO: checking for $ac_func" >&5
9253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9254 if eval "test \"\${$as_ac_var+set}\" = set"; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257 if test x$gcc_no_link = xyes; then
9258 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9260 { (exit 1); exit 1; }; }
9261 fi
9262 cat >conftest.$ac_ext <<_ACEOF
9263 #line $LINENO "configure"
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 /* System header to define __stub macros and hopefully few prototypes,
9270 which can conflict with char $ac_func (); below.
9271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9272 <limits.h> exists even on freestanding compilers. */
9273 #ifdef __STDC__
9274 # include <limits.h>
9275 #else
9276 # include <assert.h>
9277 #endif
9278 /* Override any gcc2 internal prototype to avoid an error. */
9279 #ifdef __cplusplus
9280 extern "C"
9281 {
9282 #endif
9283 /* We use char because int might match the return type of a gcc2
9284 builtin and then its argument prototype would still apply. */
9285 char $ac_func ();
9286 /* The GNU C library defines this for functions which it implements
9287 to always fail with ENOSYS. Some functions are actually named
9288 something starting with __ and the normal name is an alias. */
9289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9290 choke me
9291 #else
9292 char (*f) () = $ac_func;
9293 #endif
9294 #ifdef __cplusplus
9295 }
9296 #endif
9297
9298 int
9299 main ()
9300 {
9301 return f != $ac_func;
9302 ;
9303 return 0;
9304 }
9305 _ACEOF
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308 (eval $ac_link) 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
9312 { ac_try='test -s conftest$ac_exeext'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; }; then
9318 eval "$as_ac_var=yes"
9319 else
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9322
9323 eval "$as_ac_var=no"
9324 fi
9325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9326 fi
9327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9329 if test `eval echo '${'$as_ac_var'}'` = yes; then
9330 cat >>confdefs.h <<_ACEOF
9331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9332 _ACEOF
9333
9334 fi
9335 done
9336
9337 else
9338
9339 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
9340 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
9341 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
9342 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345
9346
9347
9348 ac_ext=cc
9349 ac_cpp='$CXXCPP $CPPFLAGS'
9350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9353
9354 cat >conftest.$ac_ext <<_ACEOF
9355 #line $LINENO "configure"
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #include <math.h>
9362 int
9363 main ()
9364 {
9365 _sincos(0, 0, 0);
9366 ;
9367 return 0;
9368 }
9369 _ACEOF
9370 rm -f conftest.$ac_objext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9372 (eval $ac_compile) 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -s conftest.$ac_objext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 glibcxx_cv_func__sincos_use=yes
9383 else
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 glibcxx_cv_func__sincos_use=no
9388 fi
9389 rm -f conftest.$ac_objext conftest.$ac_ext
9390 ac_ext=c
9391 ac_cpp='$CPP $CPPFLAGS'
9392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9395
9396
9397 fi
9398
9399 fi
9400 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
9401 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
9402
9403 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
9404
9405 for ac_func in _sincos
9406 do
9407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9408 echo "$as_me:$LINENO: checking for $ac_func" >&5
9409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9410 if eval "test \"\${$as_ac_var+set}\" = set"; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413 if test x$gcc_no_link = xyes; then
9414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9416 { (exit 1); exit 1; }; }
9417 fi
9418 cat >conftest.$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 /* System header to define __stub macros and hopefully few prototypes,
9426 which can conflict with char $ac_func (); below.
9427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9428 <limits.h> exists even on freestanding compilers. */
9429 #ifdef __STDC__
9430 # include <limits.h>
9431 #else
9432 # include <assert.h>
9433 #endif
9434 /* Override any gcc2 internal prototype to avoid an error. */
9435 #ifdef __cplusplus
9436 extern "C"
9437 {
9438 #endif
9439 /* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9441 char $ac_func ();
9442 /* The GNU C library defines this for functions which it implements
9443 to always fail with ENOSYS. Some functions are actually named
9444 something starting with __ and the normal name is an alias. */
9445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9446 choke me
9447 #else
9448 char (*f) () = $ac_func;
9449 #endif
9450 #ifdef __cplusplus
9451 }
9452 #endif
9453
9454 int
9455 main ()
9456 {
9457 return f != $ac_func;
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -s conftest$ac_exeext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 eval "$as_ac_var=yes"
9475 else
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9478
9479 eval "$as_ac_var=no"
9480 fi
9481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9482 fi
9483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9485 if test `eval echo '${'$as_ac_var'}'` = yes; then
9486 cat >>confdefs.h <<_ACEOF
9487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9488 _ACEOF
9489
9490 fi
9491 done
9492
9493 fi
9494 fi
9495
9496
9497
9498 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
9499 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
9500 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
9501 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504
9505
9506
9507 ac_ext=cc
9508 ac_cpp='$CXXCPP $CPPFLAGS'
9509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9512
9513 cat >conftest.$ac_ext <<_ACEOF
9514 #line $LINENO "configure"
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 #include <math.h>
9521 #ifdef HAVE_IEEEFP_H
9522 #include <ieeefp.h>
9523 #endif
9524
9525 int
9526 main ()
9527 {
9528 fpclass(0);
9529 ;
9530 return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9535 (eval $ac_compile) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 glibcxx_cv_func_fpclass_use=yes
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550 glibcxx_cv_func_fpclass_use=no
9551 fi
9552 rm -f conftest.$ac_objext conftest.$ac_ext
9553 ac_ext=c
9554 ac_cpp='$CPP $CPPFLAGS'
9555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9558
9559
9560 fi
9561
9562 fi
9563 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
9564 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
9565
9566 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
9567
9568 for ac_func in fpclass
9569 do
9570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9571 echo "$as_me:$LINENO: checking for $ac_func" >&5
9572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9573 if eval "test \"\${$as_ac_var+set}\" = set"; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576 if test x$gcc_no_link = xyes; then
9577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9579 { (exit 1); exit 1; }; }
9580 fi
9581 cat >conftest.$ac_ext <<_ACEOF
9582 #line $LINENO "configure"
9583 /* confdefs.h. */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 /* System header to define __stub macros and hopefully few prototypes,
9589 which can conflict with char $ac_func (); below.
9590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9591 <limits.h> exists even on freestanding compilers. */
9592 #ifdef __STDC__
9593 # include <limits.h>
9594 #else
9595 # include <assert.h>
9596 #endif
9597 /* Override any gcc2 internal prototype to avoid an error. */
9598 #ifdef __cplusplus
9599 extern "C"
9600 {
9601 #endif
9602 /* We use char because int might match the return type of a gcc2
9603 builtin and then its argument prototype would still apply. */
9604 char $ac_func ();
9605 /* The GNU C library defines this for functions which it implements
9606 to always fail with ENOSYS. Some functions are actually named
9607 something starting with __ and the normal name is an alias. */
9608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9609 choke me
9610 #else
9611 char (*f) () = $ac_func;
9612 #endif
9613 #ifdef __cplusplus
9614 }
9615 #endif
9616
9617 int
9618 main ()
9619 {
9620 return f != $ac_func;
9621 ;
9622 return 0;
9623 }
9624 _ACEOF
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627 (eval $ac_link) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -s conftest$ac_exeext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 eval "$as_ac_var=yes"
9638 else
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642 eval "$as_ac_var=no"
9643 fi
9644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9645 fi
9646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9648 if test `eval echo '${'$as_ac_var'}'` = yes; then
9649 cat >>confdefs.h <<_ACEOF
9650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9651 _ACEOF
9652
9653 fi
9654 done
9655
9656 else
9657
9658 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
9659 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
9660 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
9661 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664
9665
9666
9667 ac_ext=cc
9668 ac_cpp='$CXXCPP $CPPFLAGS'
9669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9672
9673 cat >conftest.$ac_ext <<_ACEOF
9674 #line $LINENO "configure"
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 #include <math.h>
9681 #ifdef HAVE_IEEEFP_H
9682 #include <ieeefp.h>
9683 #endif
9684
9685 int
9686 main ()
9687 {
9688 _fpclass(0);
9689 ;
9690 return 0;
9691 }
9692 _ACEOF
9693 rm -f conftest.$ac_objext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9695 (eval $ac_compile) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -s conftest.$ac_objext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 glibcxx_cv_func__fpclass_use=yes
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 glibcxx_cv_func__fpclass_use=no
9711 fi
9712 rm -f conftest.$ac_objext conftest.$ac_ext
9713 ac_ext=c
9714 ac_cpp='$CPP $CPPFLAGS'
9715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9718
9719
9720 fi
9721
9722 fi
9723 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
9724 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
9725
9726 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
9727
9728 for ac_func in _fpclass
9729 do
9730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9731 echo "$as_me:$LINENO: checking for $ac_func" >&5
9732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9733 if eval "test \"\${$as_ac_var+set}\" = set"; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736 if test x$gcc_no_link = xyes; then
9737 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9739 { (exit 1); exit 1; }; }
9740 fi
9741 cat >conftest.$ac_ext <<_ACEOF
9742 #line $LINENO "configure"
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 /* System header to define __stub macros and hopefully few prototypes,
9749 which can conflict with char $ac_func (); below.
9750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9751 <limits.h> exists even on freestanding compilers. */
9752 #ifdef __STDC__
9753 # include <limits.h>
9754 #else
9755 # include <assert.h>
9756 #endif
9757 /* Override any gcc2 internal prototype to avoid an error. */
9758 #ifdef __cplusplus
9759 extern "C"
9760 {
9761 #endif
9762 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9764 char $ac_func ();
9765 /* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
9768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9769 choke me
9770 #else
9771 char (*f) () = $ac_func;
9772 #endif
9773 #ifdef __cplusplus
9774 }
9775 #endif
9776
9777 int
9778 main ()
9779 {
9780 return f != $ac_func;
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 eval "$as_ac_var=yes"
9798 else
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802 eval "$as_ac_var=no"
9803 fi
9804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9805 fi
9806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9808 if test `eval echo '${'$as_ac_var'}'` = yes; then
9809 cat >>confdefs.h <<_ACEOF
9810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9811 _ACEOF
9812
9813 fi
9814 done
9815
9816 fi
9817 fi
9818
9819
9820
9821 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
9822 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
9823 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
9824 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827
9828
9829
9830 ac_ext=cc
9831 ac_cpp='$CXXCPP $CPPFLAGS'
9832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9835
9836 cat >conftest.$ac_ext <<_ACEOF
9837 #line $LINENO "configure"
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 #include <math.h>
9844 #ifdef HAVE_IEEEFP_H
9845 #include <ieeefp.h>
9846 #endif
9847
9848 int
9849 main ()
9850 {
9851 qfpclass(0);
9852 ;
9853 return 0;
9854 }
9855 _ACEOF
9856 rm -f conftest.$ac_objext
9857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9858 (eval $ac_compile) 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -s conftest.$ac_objext'
9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 (eval $ac_try) 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; }; then
9868 glibcxx_cv_func_qfpclass_use=yes
9869 else
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9872
9873 glibcxx_cv_func_qfpclass_use=no
9874 fi
9875 rm -f conftest.$ac_objext conftest.$ac_ext
9876 ac_ext=c
9877 ac_cpp='$CPP $CPPFLAGS'
9878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9881
9882
9883 fi
9884
9885 fi
9886 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
9887 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
9888
9889 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
9890
9891 for ac_func in qfpclass
9892 do
9893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9894 echo "$as_me:$LINENO: checking for $ac_func" >&5
9895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9896 if eval "test \"\${$as_ac_var+set}\" = set"; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899 if test x$gcc_no_link = xyes; then
9900 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9901 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9902 { (exit 1); exit 1; }; }
9903 fi
9904 cat >conftest.$ac_ext <<_ACEOF
9905 #line $LINENO "configure"
9906 /* confdefs.h. */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char $ac_func (); below.
9913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914 <limits.h> exists even on freestanding compilers. */
9915 #ifdef __STDC__
9916 # include <limits.h>
9917 #else
9918 # include <assert.h>
9919 #endif
9920 /* Override any gcc2 internal prototype to avoid an error. */
9921 #ifdef __cplusplus
9922 extern "C"
9923 {
9924 #endif
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9927 char $ac_func ();
9928 /* The GNU C library defines this for functions which it implements
9929 to always fail with ENOSYS. Some functions are actually named
9930 something starting with __ and the normal name is an alias. */
9931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9932 choke me
9933 #else
9934 char (*f) () = $ac_func;
9935 #endif
9936 #ifdef __cplusplus
9937 }
9938 #endif
9939
9940 int
9941 main ()
9942 {
9943 return f != $ac_func;
9944 ;
9945 return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950 (eval $ac_link) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 eval "$as_ac_var=yes"
9961 else
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9964
9965 eval "$as_ac_var=no"
9966 fi
9967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9968 fi
9969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9971 if test `eval echo '${'$as_ac_var'}'` = yes; then
9972 cat >>confdefs.h <<_ACEOF
9973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9974 _ACEOF
9975
9976 fi
9977 done
9978
9979 else
9980
9981 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
9982 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
9983 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
9984 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987
9988
9989
9990 ac_ext=cc
9991 ac_cpp='$CXXCPP $CPPFLAGS'
9992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9995
9996 cat >conftest.$ac_ext <<_ACEOF
9997 #line $LINENO "configure"
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 #include <math.h>
10004 #ifdef HAVE_IEEEFP_H
10005 #include <ieeefp.h>
10006 #endif
10007
10008 int
10009 main ()
10010 {
10011 _qfpclass(0);
10012 ;
10013 return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10018 (eval $ac_compile) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -s conftest.$ac_objext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 glibcxx_cv_func__qfpclass_use=yes
10029 else
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10032
10033 glibcxx_cv_func__qfpclass_use=no
10034 fi
10035 rm -f conftest.$ac_objext conftest.$ac_ext
10036 ac_ext=c
10037 ac_cpp='$CPP $CPPFLAGS'
10038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10041
10042
10043 fi
10044
10045 fi
10046 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10047 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10048
10049 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10050
10051 for ac_func in _qfpclass
10052 do
10053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10054 echo "$as_me:$LINENO: checking for $ac_func" >&5
10055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10056 if eval "test \"\${$as_ac_var+set}\" = set"; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059 if test x$gcc_no_link = xyes; then
10060 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10061 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10062 { (exit 1); exit 1; }; }
10063 fi
10064 cat >conftest.$ac_ext <<_ACEOF
10065 #line $LINENO "configure"
10066 /* confdefs.h. */
10067 _ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10071 /* System header to define __stub macros and hopefully few prototypes,
10072 which can conflict with char $ac_func (); below.
10073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10074 <limits.h> exists even on freestanding compilers. */
10075 #ifdef __STDC__
10076 # include <limits.h>
10077 #else
10078 # include <assert.h>
10079 #endif
10080 /* Override any gcc2 internal prototype to avoid an error. */
10081 #ifdef __cplusplus
10082 extern "C"
10083 {
10084 #endif
10085 /* We use char because int might match the return type of a gcc2
10086 builtin and then its argument prototype would still apply. */
10087 char $ac_func ();
10088 /* The GNU C library defines this for functions which it implements
10089 to always fail with ENOSYS. Some functions are actually named
10090 something starting with __ and the normal name is an alias. */
10091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10092 choke me
10093 #else
10094 char (*f) () = $ac_func;
10095 #endif
10096 #ifdef __cplusplus
10097 }
10098 #endif
10099
10100 int
10101 main ()
10102 {
10103 return f != $ac_func;
10104 ;
10105 return 0;
10106 }
10107 _ACEOF
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110 (eval $ac_link) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -s conftest$ac_exeext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 eval "$as_ac_var=yes"
10121 else
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10124
10125 eval "$as_ac_var=no"
10126 fi
10127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10128 fi
10129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10131 if test `eval echo '${'$as_ac_var'}'` = yes; then
10132 cat >>confdefs.h <<_ACEOF
10133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10134 _ACEOF
10135
10136 fi
10137 done
10138
10139 fi
10140 fi
10141
10142
10143
10144 echo "$as_me:$LINENO: checking for hypot declaration" >&5
10145 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
10146 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
10147 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150
10151
10152
10153 ac_ext=cc
10154 ac_cpp='$CXXCPP $CPPFLAGS'
10155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10158
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 #include <math.h>
10167 int
10168 main ()
10169 {
10170 hypot(0, 0);
10171 ;
10172 return 0;
10173 }
10174 _ACEOF
10175 rm -f conftest.$ac_objext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177 (eval $ac_compile) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 glibcxx_cv_func_hypot_use=yes
10188 else
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10191
10192 glibcxx_cv_func_hypot_use=no
10193 fi
10194 rm -f conftest.$ac_objext conftest.$ac_ext
10195 ac_ext=c
10196 ac_cpp='$CPP $CPPFLAGS'
10197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10200
10201
10202 fi
10203
10204 fi
10205 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
10206 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
10207
10208 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
10209
10210 for ac_func in hypot
10211 do
10212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10213 echo "$as_me:$LINENO: checking for $ac_func" >&5
10214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10215 if eval "test \"\${$as_ac_var+set}\" = set"; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218 if test x$gcc_no_link = xyes; then
10219 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10220 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10221 { (exit 1); exit 1; }; }
10222 fi
10223 cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10225 /* confdefs.h. */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10230 /* System header to define __stub macros and hopefully few prototypes,
10231 which can conflict with char $ac_func (); below.
10232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10233 <limits.h> exists even on freestanding compilers. */
10234 #ifdef __STDC__
10235 # include <limits.h>
10236 #else
10237 # include <assert.h>
10238 #endif
10239 /* Override any gcc2 internal prototype to avoid an error. */
10240 #ifdef __cplusplus
10241 extern "C"
10242 {
10243 #endif
10244 /* We use char because int might match the return type of a gcc2
10245 builtin and then its argument prototype would still apply. */
10246 char $ac_func ();
10247 /* The GNU C library defines this for functions which it implements
10248 to always fail with ENOSYS. Some functions are actually named
10249 something starting with __ and the normal name is an alias. */
10250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10251 choke me
10252 #else
10253 char (*f) () = $ac_func;
10254 #endif
10255 #ifdef __cplusplus
10256 }
10257 #endif
10258
10259 int
10260 main ()
10261 {
10262 return f != $ac_func;
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10269 (eval $ac_link) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -s conftest$ac_exeext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 eval "$as_ac_var=yes"
10280 else
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10283
10284 eval "$as_ac_var=no"
10285 fi
10286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10287 fi
10288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10290 if test `eval echo '${'$as_ac_var'}'` = yes; then
10291 cat >>confdefs.h <<_ACEOF
10292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10293 _ACEOF
10294
10295 fi
10296 done
10297
10298 else
10299
10300 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
10301 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
10302 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
10303 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306
10307
10308
10309 ac_ext=cc
10310 ac_cpp='$CXXCPP $CPPFLAGS'
10311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10314
10315 cat >conftest.$ac_ext <<_ACEOF
10316 #line $LINENO "configure"
10317 /* confdefs.h. */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 #include <math.h>
10323 int
10324 main ()
10325 {
10326 _hypot(0, 0);
10327 ;
10328 return 0;
10329 }
10330 _ACEOF
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -s conftest.$ac_objext'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 glibcxx_cv_func__hypot_use=yes
10344 else
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 glibcxx_cv_func__hypot_use=no
10349 fi
10350 rm -f conftest.$ac_objext conftest.$ac_ext
10351 ac_ext=c
10352 ac_cpp='$CPP $CPPFLAGS'
10353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10356
10357
10358 fi
10359
10360 fi
10361 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
10362 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
10363
10364 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
10365
10366 for ac_func in _hypot
10367 do
10368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10369 echo "$as_me:$LINENO: checking for $ac_func" >&5
10370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10371 if eval "test \"\${$as_ac_var+set}\" = set"; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374 if test x$gcc_no_link = xyes; then
10375 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10376 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10377 { (exit 1); exit 1; }; }
10378 fi
10379 cat >conftest.$ac_ext <<_ACEOF
10380 #line $LINENO "configure"
10381 /* confdefs.h. */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 /* System header to define __stub macros and hopefully few prototypes,
10387 which can conflict with char $ac_func (); below.
10388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10389 <limits.h> exists even on freestanding compilers. */
10390 #ifdef __STDC__
10391 # include <limits.h>
10392 #else
10393 # include <assert.h>
10394 #endif
10395 /* Override any gcc2 internal prototype to avoid an error. */
10396 #ifdef __cplusplus
10397 extern "C"
10398 {
10399 #endif
10400 /* We use char because int might match the return type of a gcc2
10401 builtin and then its argument prototype would still apply. */
10402 char $ac_func ();
10403 /* The GNU C library defines this for functions which it implements
10404 to always fail with ENOSYS. Some functions are actually named
10405 something starting with __ and the normal name is an alias. */
10406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10407 choke me
10408 #else
10409 char (*f) () = $ac_func;
10410 #endif
10411 #ifdef __cplusplus
10412 }
10413 #endif
10414
10415 int
10416 main ()
10417 {
10418 return f != $ac_func;
10419 ;
10420 return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -s conftest$ac_exeext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 eval "$as_ac_var=yes"
10436 else
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440 eval "$as_ac_var=no"
10441 fi
10442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10443 fi
10444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10446 if test `eval echo '${'$as_ac_var'}'` = yes; then
10447 cat >>confdefs.h <<_ACEOF
10448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10449 _ACEOF
10450
10451 fi
10452 done
10453
10454 fi
10455 fi
10456
10457
10458
10459 echo "$as_me:$LINENO: checking for float trig functions" >&5
10460 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
10461 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 else
10464
10465
10466
10467 ac_ext=cc
10468 ac_cpp='$CXXCPP $CPPFLAGS'
10469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10472
10473 cat >conftest.$ac_ext <<_ACEOF
10474 #line $LINENO "configure"
10475 /* confdefs.h. */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10480 #include <math.h>
10481 int
10482 main ()
10483 {
10484 `for x in acosf asinf atanf \
10485 cosf sinf tanf \
10486 coshf sinhf tanhf; do echo "$x (0);"; done`
10487 ;
10488 return 0;
10489 }
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493 (eval $ac_compile) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } &&
10497 { ac_try='test -s conftest.$ac_objext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 glibcxx_cv_func_float_trig_use=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508 glibcxx_cv_func_float_trig_use=no
10509 fi
10510 rm -f conftest.$ac_objext conftest.$ac_ext
10511 ac_ext=c
10512 ac_cpp='$CPP $CPPFLAGS'
10513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10516
10517 fi
10518
10519 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
10520 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
10521 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531 for ac_func in acosf asinf atanf \
10532 cosf sinf tanf \
10533 coshf sinhf tanhf
10534 do
10535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10536 echo "$as_me:$LINENO: checking for $ac_func" >&5
10537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10538 if eval "test \"\${$as_ac_var+set}\" = set"; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541 if test x$gcc_no_link = xyes; then
10542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10544 { (exit 1); exit 1; }; }
10545 fi
10546 cat >conftest.$ac_ext <<_ACEOF
10547 #line $LINENO "configure"
10548 /* confdefs.h. */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 /* System header to define __stub macros and hopefully few prototypes,
10554 which can conflict with char $ac_func (); below.
10555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10556 <limits.h> exists even on freestanding compilers. */
10557 #ifdef __STDC__
10558 # include <limits.h>
10559 #else
10560 # include <assert.h>
10561 #endif
10562 /* Override any gcc2 internal prototype to avoid an error. */
10563 #ifdef __cplusplus
10564 extern "C"
10565 {
10566 #endif
10567 /* We use char because int might match the return type of a gcc2
10568 builtin and then its argument prototype would still apply. */
10569 char $ac_func ();
10570 /* The GNU C library defines this for functions which it implements
10571 to always fail with ENOSYS. Some functions are actually named
10572 something starting with __ and the normal name is an alias. */
10573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10574 choke me
10575 #else
10576 char (*f) () = $ac_func;
10577 #endif
10578 #ifdef __cplusplus
10579 }
10580 #endif
10581
10582 int
10583 main ()
10584 {
10585 return f != $ac_func;
10586 ;
10587 return 0;
10588 }
10589 _ACEOF
10590 rm -f conftest.$ac_objext conftest$ac_exeext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592 (eval $ac_link) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } &&
10596 { ac_try='test -s conftest$ac_exeext'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 eval "$as_ac_var=yes"
10603 else
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10606
10607 eval "$as_ac_var=no"
10608 fi
10609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10610 fi
10611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10613 if test `eval echo '${'$as_ac_var'}'` = yes; then
10614 cat >>confdefs.h <<_ACEOF
10615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10616 _ACEOF
10617
10618 fi
10619 done
10620
10621 fi
10622
10623
10624 echo "$as_me:$LINENO: checking for float round functions" >&5
10625 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
10626 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629
10630
10631
10632 ac_ext=cc
10633 ac_cpp='$CXXCPP $CPPFLAGS'
10634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10637
10638 cat >conftest.$ac_ext <<_ACEOF
10639 #line $LINENO "configure"
10640 /* confdefs.h. */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645 #include <math.h>
10646 int
10647 main ()
10648 {
10649 `for x in ceilf floorf; do echo "$x (0);"; done`
10650 ;
10651 return 0;
10652 }
10653 _ACEOF
10654 rm -f conftest.$ac_objext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656 (eval $ac_compile) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 glibcxx_cv_func_float_round_use=yes
10667 else
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671 glibcxx_cv_func_float_round_use=no
10672 fi
10673 rm -f conftest.$ac_objext conftest.$ac_ext
10674 ac_ext=c
10675 ac_cpp='$CPP $CPPFLAGS'
10676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10679
10680 fi
10681
10682 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
10683 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
10684 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
10685
10686
10687 for ac_func in ceilf floorf
10688 do
10689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10690 echo "$as_me:$LINENO: checking for $ac_func" >&5
10691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10692 if eval "test \"\${$as_ac_var+set}\" = set"; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 else
10695 if test x$gcc_no_link = xyes; then
10696 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10698 { (exit 1); exit 1; }; }
10699 fi
10700 cat >conftest.$ac_ext <<_ACEOF
10701 #line $LINENO "configure"
10702 /* confdefs.h. */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 /* System header to define __stub macros and hopefully few prototypes,
10708 which can conflict with char $ac_func (); below.
10709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10710 <limits.h> exists even on freestanding compilers. */
10711 #ifdef __STDC__
10712 # include <limits.h>
10713 #else
10714 # include <assert.h>
10715 #endif
10716 /* Override any gcc2 internal prototype to avoid an error. */
10717 #ifdef __cplusplus
10718 extern "C"
10719 {
10720 #endif
10721 /* We use char because int might match the return type of a gcc2
10722 builtin and then its argument prototype would still apply. */
10723 char $ac_func ();
10724 /* The GNU C library defines this for functions which it implements
10725 to always fail with ENOSYS. Some functions are actually named
10726 something starting with __ and the normal name is an alias. */
10727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10728 choke me
10729 #else
10730 char (*f) () = $ac_func;
10731 #endif
10732 #ifdef __cplusplus
10733 }
10734 #endif
10735
10736 int
10737 main ()
10738 {
10739 return f != $ac_func;
10740 ;
10741 return 0;
10742 }
10743 _ACEOF
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10746 (eval $ac_link) 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -s conftest$ac_exeext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 eval "$as_ac_var=yes"
10757 else
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761 eval "$as_ac_var=no"
10762 fi
10763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10764 fi
10765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10767 if test `eval echo '${'$as_ac_var'}'` = yes; then
10768 cat >>confdefs.h <<_ACEOF
10769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10770 _ACEOF
10771
10772 fi
10773 done
10774
10775 fi
10776
10777
10778
10779 echo "$as_me:$LINENO: checking for expf declaration" >&5
10780 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
10781 if test x${glibcxx_cv_func_expf_use+set} != xset; then
10782 if test "${glibcxx_cv_func_expf_use+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785
10786
10787
10788 ac_ext=cc
10789 ac_cpp='$CXXCPP $CPPFLAGS'
10790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10793
10794 cat >conftest.$ac_ext <<_ACEOF
10795 #line $LINENO "configure"
10796 /* confdefs.h. */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10801 #include <math.h>
10802 #ifdef HAVE_IEEEFP_H
10803 #include <ieeefp.h>
10804 #endif
10805
10806 int
10807 main ()
10808 {
10809 expf(0);
10810 ;
10811 return 0;
10812 }
10813 _ACEOF
10814 rm -f conftest.$ac_objext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10816 (eval $ac_compile) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } &&
10820 { ac_try='test -s conftest.$ac_objext'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 glibcxx_cv_func_expf_use=yes
10827 else
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10830
10831 glibcxx_cv_func_expf_use=no
10832 fi
10833 rm -f conftest.$ac_objext conftest.$ac_ext
10834 ac_ext=c
10835 ac_cpp='$CPP $CPPFLAGS'
10836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10839
10840
10841 fi
10842
10843 fi
10844 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
10845 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
10846
10847 if test x$glibcxx_cv_func_expf_use = x"yes"; then
10848
10849 for ac_func in expf
10850 do
10851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10852 echo "$as_me:$LINENO: checking for $ac_func" >&5
10853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10854 if eval "test \"\${$as_ac_var+set}\" = set"; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857 if test x$gcc_no_link = xyes; then
10858 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10859 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10860 { (exit 1); exit 1; }; }
10861 fi
10862 cat >conftest.$ac_ext <<_ACEOF
10863 #line $LINENO "configure"
10864 /* confdefs.h. */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 /* System header to define __stub macros and hopefully few prototypes,
10870 which can conflict with char $ac_func (); below.
10871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10872 <limits.h> exists even on freestanding compilers. */
10873 #ifdef __STDC__
10874 # include <limits.h>
10875 #else
10876 # include <assert.h>
10877 #endif
10878 /* Override any gcc2 internal prototype to avoid an error. */
10879 #ifdef __cplusplus
10880 extern "C"
10881 {
10882 #endif
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10885 char $ac_func ();
10886 /* The GNU C library defines this for functions which it implements
10887 to always fail with ENOSYS. Some functions are actually named
10888 something starting with __ and the normal name is an alias. */
10889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10890 choke me
10891 #else
10892 char (*f) () = $ac_func;
10893 #endif
10894 #ifdef __cplusplus
10895 }
10896 #endif
10897
10898 int
10899 main ()
10900 {
10901 return f != $ac_func;
10902 ;
10903 return 0;
10904 }
10905 _ACEOF
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10908 (eval $ac_link) 2>&5
10909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -s conftest$ac_exeext'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 eval "$as_ac_var=yes"
10919 else
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 eval "$as_ac_var=no"
10924 fi
10925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10926 fi
10927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10929 if test `eval echo '${'$as_ac_var'}'` = yes; then
10930 cat >>confdefs.h <<_ACEOF
10931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10932 _ACEOF
10933
10934 fi
10935 done
10936
10937 else
10938
10939 echo "$as_me:$LINENO: checking for _expf declaration" >&5
10940 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
10941 if test x${glibcxx_cv_func__expf_use+set} != xset; then
10942 if test "${glibcxx_cv_func__expf_use+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945
10946
10947
10948 ac_ext=cc
10949 ac_cpp='$CXXCPP $CPPFLAGS'
10950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10953
10954 cat >conftest.$ac_ext <<_ACEOF
10955 #line $LINENO "configure"
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 #include <math.h>
10962 #ifdef HAVE_IEEEFP_H
10963 #include <ieeefp.h>
10964 #endif
10965
10966 int
10967 main ()
10968 {
10969 _expf(0);
10970 ;
10971 return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest.$ac_objext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10976 (eval $ac_compile) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try='test -s conftest.$ac_objext'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; }; then
10986 glibcxx_cv_func__expf_use=yes
10987 else
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 glibcxx_cv_func__expf_use=no
10992 fi
10993 rm -f conftest.$ac_objext conftest.$ac_ext
10994 ac_ext=c
10995 ac_cpp='$CPP $CPPFLAGS'
10996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10999
11000
11001 fi
11002
11003 fi
11004 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
11005 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
11006
11007 if test x$glibcxx_cv_func__expf_use = x"yes"; then
11008
11009 for ac_func in _expf
11010 do
11011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11012 echo "$as_me:$LINENO: checking for $ac_func" >&5
11013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11014 if eval "test \"\${$as_ac_var+set}\" = set"; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017 if test x$gcc_no_link = xyes; then
11018 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11020 { (exit 1); exit 1; }; }
11021 fi
11022 cat >conftest.$ac_ext <<_ACEOF
11023 #line $LINENO "configure"
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 /* System header to define __stub macros and hopefully few prototypes,
11030 which can conflict with char $ac_func (); below.
11031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11032 <limits.h> exists even on freestanding compilers. */
11033 #ifdef __STDC__
11034 # include <limits.h>
11035 #else
11036 # include <assert.h>
11037 #endif
11038 /* Override any gcc2 internal prototype to avoid an error. */
11039 #ifdef __cplusplus
11040 extern "C"
11041 {
11042 #endif
11043 /* We use char because int might match the return type of a gcc2
11044 builtin and then its argument prototype would still apply. */
11045 char $ac_func ();
11046 /* The GNU C library defines this for functions which it implements
11047 to always fail with ENOSYS. Some functions are actually named
11048 something starting with __ and the normal name is an alias. */
11049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11050 choke me
11051 #else
11052 char (*f) () = $ac_func;
11053 #endif
11054 #ifdef __cplusplus
11055 }
11056 #endif
11057
11058 int
11059 main ()
11060 {
11061 return f != $ac_func;
11062 ;
11063 return 0;
11064 }
11065 _ACEOF
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11068 (eval $ac_link) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try='test -s conftest$ac_exeext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 eval "$as_ac_var=yes"
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 eval "$as_ac_var=no"
11084 fi
11085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11086 fi
11087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11089 if test `eval echo '${'$as_ac_var'}'` = yes; then
11090 cat >>confdefs.h <<_ACEOF
11091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11092 _ACEOF
11093
11094 fi
11095 done
11096
11097 fi
11098 fi
11099
11100
11101
11102 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
11103 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
11104 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
11105 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108
11109
11110
11111 ac_ext=cc
11112 ac_cpp='$CXXCPP $CPPFLAGS'
11113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11116
11117 cat >conftest.$ac_ext <<_ACEOF
11118 #line $LINENO "configure"
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <math.h>
11125 #ifdef HAVE_IEEEFP_H
11126 #include <ieeefp.h>
11127 #endif
11128
11129 int
11130 main ()
11131 {
11132 isnanf(0);
11133 ;
11134 return 0;
11135 }
11136 _ACEOF
11137 rm -f conftest.$ac_objext
11138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11139 (eval $ac_compile) 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -s conftest.$ac_objext'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; }; then
11149 glibcxx_cv_func_isnanf_use=yes
11150 else
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154 glibcxx_cv_func_isnanf_use=no
11155 fi
11156 rm -f conftest.$ac_objext conftest.$ac_ext
11157 ac_ext=c
11158 ac_cpp='$CPP $CPPFLAGS'
11159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11162
11163
11164 fi
11165
11166 fi
11167 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
11168 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
11169
11170 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
11171
11172 for ac_func in isnanf
11173 do
11174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11175 echo "$as_me:$LINENO: checking for $ac_func" >&5
11176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11177 if eval "test \"\${$as_ac_var+set}\" = set"; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180 if test x$gcc_no_link = xyes; then
11181 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11182 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11183 { (exit 1); exit 1; }; }
11184 fi
11185 cat >conftest.$ac_ext <<_ACEOF
11186 #line $LINENO "configure"
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 /* System header to define __stub macros and hopefully few prototypes,
11193 which can conflict with char $ac_func (); below.
11194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11195 <limits.h> exists even on freestanding compilers. */
11196 #ifdef __STDC__
11197 # include <limits.h>
11198 #else
11199 # include <assert.h>
11200 #endif
11201 /* Override any gcc2 internal prototype to avoid an error. */
11202 #ifdef __cplusplus
11203 extern "C"
11204 {
11205 #endif
11206 /* We use char because int might match the return type of a gcc2
11207 builtin and then its argument prototype would still apply. */
11208 char $ac_func ();
11209 /* The GNU C library defines this for functions which it implements
11210 to always fail with ENOSYS. Some functions are actually named
11211 something starting with __ and the normal name is an alias. */
11212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11213 choke me
11214 #else
11215 char (*f) () = $ac_func;
11216 #endif
11217 #ifdef __cplusplus
11218 }
11219 #endif
11220
11221 int
11222 main ()
11223 {
11224 return f != $ac_func;
11225 ;
11226 return 0;
11227 }
11228 _ACEOF
11229 rm -f conftest.$ac_objext conftest$ac_exeext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231 (eval $ac_link) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try='test -s conftest$ac_exeext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 eval "$as_ac_var=yes"
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11245
11246 eval "$as_ac_var=no"
11247 fi
11248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11249 fi
11250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11252 if test `eval echo '${'$as_ac_var'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11255 _ACEOF
11256
11257 fi
11258 done
11259
11260 else
11261
11262 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
11263 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
11264 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
11265 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268
11269
11270
11271 ac_ext=cc
11272 ac_cpp='$CXXCPP $CPPFLAGS'
11273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11276
11277 cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 #include <math.h>
11285 #ifdef HAVE_IEEEFP_H
11286 #include <ieeefp.h>
11287 #endif
11288
11289 int
11290 main ()
11291 {
11292 _isnanf(0);
11293 ;
11294 return 0;
11295 }
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299 (eval $ac_compile) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } &&
11303 { ac_try='test -s conftest.$ac_objext'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 glibcxx_cv_func__isnanf_use=yes
11310 else
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11313
11314 glibcxx_cv_func__isnanf_use=no
11315 fi
11316 rm -f conftest.$ac_objext conftest.$ac_ext
11317 ac_ext=c
11318 ac_cpp='$CPP $CPPFLAGS'
11319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11322
11323
11324 fi
11325
11326 fi
11327 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
11328 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
11329
11330 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
11331
11332 for ac_func in _isnanf
11333 do
11334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11335 echo "$as_me:$LINENO: checking for $ac_func" >&5
11336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11337 if eval "test \"\${$as_ac_var+set}\" = set"; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 if test x$gcc_no_link = xyes; then
11341 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11342 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11343 { (exit 1); exit 1; }; }
11344 fi
11345 cat >conftest.$ac_ext <<_ACEOF
11346 #line $LINENO "configure"
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 /* System header to define __stub macros and hopefully few prototypes,
11353 which can conflict with char $ac_func (); below.
11354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11355 <limits.h> exists even on freestanding compilers. */
11356 #ifdef __STDC__
11357 # include <limits.h>
11358 #else
11359 # include <assert.h>
11360 #endif
11361 /* Override any gcc2 internal prototype to avoid an error. */
11362 #ifdef __cplusplus
11363 extern "C"
11364 {
11365 #endif
11366 /* We use char because int might match the return type of a gcc2
11367 builtin and then its argument prototype would still apply. */
11368 char $ac_func ();
11369 /* The GNU C library defines this for functions which it implements
11370 to always fail with ENOSYS. Some functions are actually named
11371 something starting with __ and the normal name is an alias. */
11372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11373 choke me
11374 #else
11375 char (*f) () = $ac_func;
11376 #endif
11377 #ifdef __cplusplus
11378 }
11379 #endif
11380
11381 int
11382 main ()
11383 {
11384 return f != $ac_func;
11385 ;
11386 return 0;
11387 }
11388 _ACEOF
11389 rm -f conftest.$ac_objext conftest$ac_exeext
11390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11391 (eval $ac_link) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } &&
11395 { ac_try='test -s conftest$ac_exeext'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 eval "$as_ac_var=yes"
11402 else
11403 echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11405
11406 eval "$as_ac_var=no"
11407 fi
11408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11409 fi
11410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11412 if test `eval echo '${'$as_ac_var'}'` = yes; then
11413 cat >>confdefs.h <<_ACEOF
11414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11415 _ACEOF
11416
11417 fi
11418 done
11419
11420 fi
11421 fi
11422
11423
11424
11425 echo "$as_me:$LINENO: checking for isinff declaration" >&5
11426 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
11427 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
11428 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431
11432
11433
11434 ac_ext=cc
11435 ac_cpp='$CXXCPP $CPPFLAGS'
11436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11439
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 #include <math.h>
11448 #ifdef HAVE_IEEEFP_H
11449 #include <ieeefp.h>
11450 #endif
11451
11452 int
11453 main ()
11454 {
11455 isinff(0);
11456 ;
11457 return 0;
11458 }
11459 _ACEOF
11460 rm -f conftest.$ac_objext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11462 (eval $ac_compile) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -s conftest.$ac_objext'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 glibcxx_cv_func_isinff_use=yes
11473 else
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 glibcxx_cv_func_isinff_use=no
11478 fi
11479 rm -f conftest.$ac_objext conftest.$ac_ext
11480 ac_ext=c
11481 ac_cpp='$CPP $CPPFLAGS'
11482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11485
11486
11487 fi
11488
11489 fi
11490 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
11491 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
11492
11493 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
11494
11495 for ac_func in isinff
11496 do
11497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11500 if eval "test \"\${$as_ac_var+set}\" = set"; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503 if test x$gcc_no_link = xyes; then
11504 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11505 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11506 { (exit 1); exit 1; }; }
11507 fi
11508 cat >conftest.$ac_ext <<_ACEOF
11509 #line $LINENO "configure"
11510 /* confdefs.h. */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 /* System header to define __stub macros and hopefully few prototypes,
11516 which can conflict with char $ac_func (); below.
11517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11518 <limits.h> exists even on freestanding compilers. */
11519 #ifdef __STDC__
11520 # include <limits.h>
11521 #else
11522 # include <assert.h>
11523 #endif
11524 /* Override any gcc2 internal prototype to avoid an error. */
11525 #ifdef __cplusplus
11526 extern "C"
11527 {
11528 #endif
11529 /* We use char because int might match the return type of a gcc2
11530 builtin and then its argument prototype would still apply. */
11531 char $ac_func ();
11532 /* The GNU C library defines this for functions which it implements
11533 to always fail with ENOSYS. Some functions are actually named
11534 something starting with __ and the normal name is an alias. */
11535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11536 choke me
11537 #else
11538 char (*f) () = $ac_func;
11539 #endif
11540 #ifdef __cplusplus
11541 }
11542 #endif
11543
11544 int
11545 main ()
11546 {
11547 return f != $ac_func;
11548 ;
11549 return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554 (eval $ac_link) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -s conftest$ac_exeext'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 eval "$as_ac_var=yes"
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569 eval "$as_ac_var=no"
11570 fi
11571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11572 fi
11573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11575 if test `eval echo '${'$as_ac_var'}'` = yes; then
11576 cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11578 _ACEOF
11579
11580 fi
11581 done
11582
11583 else
11584
11585 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
11586 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
11587 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
11588 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591
11592
11593
11594 ac_ext=cc
11595 ac_cpp='$CXXCPP $CPPFLAGS'
11596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11599
11600 cat >conftest.$ac_ext <<_ACEOF
11601 #line $LINENO "configure"
11602 /* confdefs.h. */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 #include <math.h>
11608 #ifdef HAVE_IEEEFP_H
11609 #include <ieeefp.h>
11610 #endif
11611
11612 int
11613 main ()
11614 {
11615 _isinff(0);
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 rm -f conftest.$ac_objext
11621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11622 (eval $ac_compile) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 glibcxx_cv_func__isinff_use=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11636
11637 glibcxx_cv_func__isinff_use=no
11638 fi
11639 rm -f conftest.$ac_objext conftest.$ac_ext
11640 ac_ext=c
11641 ac_cpp='$CPP $CPPFLAGS'
11642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11645
11646
11647 fi
11648
11649 fi
11650 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
11651 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
11652
11653 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
11654
11655 for ac_func in _isinff
11656 do
11657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11658 echo "$as_me:$LINENO: checking for $ac_func" >&5
11659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11660 if eval "test \"\${$as_ac_var+set}\" = set"; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663 if test x$gcc_no_link = xyes; then
11664 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11665 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11666 { (exit 1); exit 1; }; }
11667 fi
11668 cat >conftest.$ac_ext <<_ACEOF
11669 #line $LINENO "configure"
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 /* System header to define __stub macros and hopefully few prototypes,
11676 which can conflict with char $ac_func (); below.
11677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11678 <limits.h> exists even on freestanding compilers. */
11679 #ifdef __STDC__
11680 # include <limits.h>
11681 #else
11682 # include <assert.h>
11683 #endif
11684 /* Override any gcc2 internal prototype to avoid an error. */
11685 #ifdef __cplusplus
11686 extern "C"
11687 {
11688 #endif
11689 /* We use char because int might match the return type of a gcc2
11690 builtin and then its argument prototype would still apply. */
11691 char $ac_func ();
11692 /* The GNU C library defines this for functions which it implements
11693 to always fail with ENOSYS. Some functions are actually named
11694 something starting with __ and the normal name is an alias. */
11695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11696 choke me
11697 #else
11698 char (*f) () = $ac_func;
11699 #endif
11700 #ifdef __cplusplus
11701 }
11702 #endif
11703
11704 int
11705 main ()
11706 {
11707 return f != $ac_func;
11708 ;
11709 return 0;
11710 }
11711 _ACEOF
11712 rm -f conftest.$ac_objext conftest$ac_exeext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11714 (eval $ac_link) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -s conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 eval "$as_ac_var=yes"
11725 else
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729 eval "$as_ac_var=no"
11730 fi
11731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11732 fi
11733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 _ACEOF
11739
11740 fi
11741 done
11742
11743 fi
11744 fi
11745
11746
11747
11748 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
11749 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
11750 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
11751 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754
11755
11756
11757 ac_ext=cc
11758 ac_cpp='$CXXCPP $CPPFLAGS'
11759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11762
11763 cat >conftest.$ac_ext <<_ACEOF
11764 #line $LINENO "configure"
11765 /* confdefs.h. */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 #include <math.h>
11771 int
11772 main ()
11773 {
11774 atan2f(0, 0);
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781 (eval $ac_compile) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
11785 { ac_try='test -s conftest.$ac_objext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 glibcxx_cv_func_atan2f_use=yes
11792 else
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796 glibcxx_cv_func_atan2f_use=no
11797 fi
11798 rm -f conftest.$ac_objext conftest.$ac_ext
11799 ac_ext=c
11800 ac_cpp='$CPP $CPPFLAGS'
11801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11804
11805
11806 fi
11807
11808 fi
11809 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
11810 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
11811
11812 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
11813
11814 for ac_func in atan2f
11815 do
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11819 if eval "test \"\${$as_ac_var+set}\" = set"; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822 if test x$gcc_no_link = xyes; then
11823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11825 { (exit 1); exit 1; }; }
11826 fi
11827 cat >conftest.$ac_ext <<_ACEOF
11828 #line $LINENO "configure"
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 /* System header to define __stub macros and hopefully few prototypes,
11835 which can conflict with char $ac_func (); below.
11836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11837 <limits.h> exists even on freestanding compilers. */
11838 #ifdef __STDC__
11839 # include <limits.h>
11840 #else
11841 # include <assert.h>
11842 #endif
11843 /* Override any gcc2 internal prototype to avoid an error. */
11844 #ifdef __cplusplus
11845 extern "C"
11846 {
11847 #endif
11848 /* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11850 char $ac_func ();
11851 /* The GNU C library defines this for functions which it implements
11852 to always fail with ENOSYS. Some functions are actually named
11853 something starting with __ and the normal name is an alias. */
11854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11855 choke me
11856 #else
11857 char (*f) () = $ac_func;
11858 #endif
11859 #ifdef __cplusplus
11860 }
11861 #endif
11862
11863 int
11864 main ()
11865 {
11866 return f != $ac_func;
11867 ;
11868 return 0;
11869 }
11870 _ACEOF
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11873 (eval $ac_link) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -s conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 eval "$as_ac_var=yes"
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 eval "$as_ac_var=no"
11889 fi
11890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11891 fi
11892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897 _ACEOF
11898
11899 fi
11900 done
11901
11902 else
11903
11904 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
11905 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
11906 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
11907 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 else
11910
11911
11912
11913 ac_ext=cc
11914 ac_cpp='$CXXCPP $CPPFLAGS'
11915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11918
11919 cat >conftest.$ac_ext <<_ACEOF
11920 #line $LINENO "configure"
11921 /* confdefs.h. */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 #include <math.h>
11927 int
11928 main ()
11929 {
11930 _atan2f(0, 0);
11931 ;
11932 return 0;
11933 }
11934 _ACEOF
11935 rm -f conftest.$ac_objext
11936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11937 (eval $ac_compile) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -s conftest.$ac_objext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 glibcxx_cv_func__atan2f_use=yes
11948 else
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11951
11952 glibcxx_cv_func__atan2f_use=no
11953 fi
11954 rm -f conftest.$ac_objext conftest.$ac_ext
11955 ac_ext=c
11956 ac_cpp='$CPP $CPPFLAGS'
11957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11960
11961
11962 fi
11963
11964 fi
11965 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
11966 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
11967
11968 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
11969
11970 for ac_func in _atan2f
11971 do
11972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 echo "$as_me:$LINENO: checking for $ac_func" >&5
11974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11975 if eval "test \"\${$as_ac_var+set}\" = set"; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978 if test x$gcc_no_link = xyes; then
11979 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11980 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11981 { (exit 1); exit 1; }; }
11982 fi
11983 cat >conftest.$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11985 /* confdefs.h. */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 /* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char $ac_func (); below.
11992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 <limits.h> exists even on freestanding compilers. */
11994 #ifdef __STDC__
11995 # include <limits.h>
11996 #else
11997 # include <assert.h>
11998 #endif
11999 /* Override any gcc2 internal prototype to avoid an error. */
12000 #ifdef __cplusplus
12001 extern "C"
12002 {
12003 #endif
12004 /* We use char because int might match the return type of a gcc2
12005 builtin and then its argument prototype would still apply. */
12006 char $ac_func ();
12007 /* The GNU C library defines this for functions which it implements
12008 to always fail with ENOSYS. Some functions are actually named
12009 something starting with __ and the normal name is an alias. */
12010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12011 choke me
12012 #else
12013 char (*f) () = $ac_func;
12014 #endif
12015 #ifdef __cplusplus
12016 }
12017 #endif
12018
12019 int
12020 main ()
12021 {
12022 return f != $ac_func;
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 eval "$as_ac_var=yes"
12040 else
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 eval "$as_ac_var=no"
12045 fi
12046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12047 fi
12048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12050 if test `eval echo '${'$as_ac_var'}'` = yes; then
12051 cat >>confdefs.h <<_ACEOF
12052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12053 _ACEOF
12054
12055 fi
12056 done
12057
12058 fi
12059 fi
12060
12061
12062
12063 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
12064 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
12065 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
12066 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069
12070
12071
12072 ac_ext=cc
12073 ac_cpp='$CXXCPP $CPPFLAGS'
12074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12077
12078 cat >conftest.$ac_ext <<_ACEOF
12079 #line $LINENO "configure"
12080 /* confdefs.h. */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 #include <math.h>
12086 #ifdef HAVE_IEEEFP_H
12087 #include <ieeefp.h>
12088 #endif
12089
12090 int
12091 main ()
12092 {
12093 fabsf(0);
12094 ;
12095 return 0;
12096 }
12097 _ACEOF
12098 rm -f conftest.$ac_objext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12100 (eval $ac_compile) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -s conftest.$ac_objext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 glibcxx_cv_func_fabsf_use=yes
12111 else
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115 glibcxx_cv_func_fabsf_use=no
12116 fi
12117 rm -f conftest.$ac_objext conftest.$ac_ext
12118 ac_ext=c
12119 ac_cpp='$CPP $CPPFLAGS'
12120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12123
12124
12125 fi
12126
12127 fi
12128 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
12129 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
12130
12131 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
12132
12133 for ac_func in fabsf
12134 do
12135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12136 echo "$as_me:$LINENO: checking for $ac_func" >&5
12137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12138 if eval "test \"\${$as_ac_var+set}\" = set"; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141 if test x$gcc_no_link = xyes; then
12142 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12144 { (exit 1); exit 1; }; }
12145 fi
12146 cat >conftest.$ac_ext <<_ACEOF
12147 #line $LINENO "configure"
12148 /* confdefs.h. */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 /* System header to define __stub macros and hopefully few prototypes,
12154 which can conflict with char $ac_func (); below.
12155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12156 <limits.h> exists even on freestanding compilers. */
12157 #ifdef __STDC__
12158 # include <limits.h>
12159 #else
12160 # include <assert.h>
12161 #endif
12162 /* Override any gcc2 internal prototype to avoid an error. */
12163 #ifdef __cplusplus
12164 extern "C"
12165 {
12166 #endif
12167 /* We use char because int might match the return type of a gcc2
12168 builtin and then its argument prototype would still apply. */
12169 char $ac_func ();
12170 /* The GNU C library defines this for functions which it implements
12171 to always fail with ENOSYS. Some functions are actually named
12172 something starting with __ and the normal name is an alias. */
12173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12174 choke me
12175 #else
12176 char (*f) () = $ac_func;
12177 #endif
12178 #ifdef __cplusplus
12179 }
12180 #endif
12181
12182 int
12183 main ()
12184 {
12185 return f != $ac_func;
12186 ;
12187 return 0;
12188 }
12189 _ACEOF
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -s conftest$ac_exeext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 eval "$as_ac_var=yes"
12203 else
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12206
12207 eval "$as_ac_var=no"
12208 fi
12209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12210 fi
12211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12213 if test `eval echo '${'$as_ac_var'}'` = yes; then
12214 cat >>confdefs.h <<_ACEOF
12215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12216 _ACEOF
12217
12218 fi
12219 done
12220
12221 else
12222
12223 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
12224 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
12225 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
12226 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229
12230
12231
12232 ac_ext=cc
12233 ac_cpp='$CXXCPP $CPPFLAGS'
12234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12237
12238 cat >conftest.$ac_ext <<_ACEOF
12239 #line $LINENO "configure"
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <math.h>
12246 #ifdef HAVE_IEEEFP_H
12247 #include <ieeefp.h>
12248 #endif
12249
12250 int
12251 main ()
12252 {
12253 _fabsf(0);
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260 (eval $ac_compile) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 glibcxx_cv_func__fabsf_use=yes
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 glibcxx_cv_func__fabsf_use=no
12276 fi
12277 rm -f conftest.$ac_objext conftest.$ac_ext
12278 ac_ext=c
12279 ac_cpp='$CPP $CPPFLAGS'
12280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12283
12284
12285 fi
12286
12287 fi
12288 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
12289 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
12290
12291 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
12292
12293 for ac_func in _fabsf
12294 do
12295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12296 echo "$as_me:$LINENO: checking for $ac_func" >&5
12297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12298 if eval "test \"\${$as_ac_var+set}\" = set"; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301 if test x$gcc_no_link = xyes; then
12302 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12304 { (exit 1); exit 1; }; }
12305 fi
12306 cat >conftest.$ac_ext <<_ACEOF
12307 #line $LINENO "configure"
12308 /* confdefs.h. */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313 /* System header to define __stub macros and hopefully few prototypes,
12314 which can conflict with char $ac_func (); below.
12315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12316 <limits.h> exists even on freestanding compilers. */
12317 #ifdef __STDC__
12318 # include <limits.h>
12319 #else
12320 # include <assert.h>
12321 #endif
12322 /* Override any gcc2 internal prototype to avoid an error. */
12323 #ifdef __cplusplus
12324 extern "C"
12325 {
12326 #endif
12327 /* We use char because int might match the return type of a gcc2
12328 builtin and then its argument prototype would still apply. */
12329 char $ac_func ();
12330 /* The GNU C library defines this for functions which it implements
12331 to always fail with ENOSYS. Some functions are actually named
12332 something starting with __ and the normal name is an alias. */
12333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12334 choke me
12335 #else
12336 char (*f) () = $ac_func;
12337 #endif
12338 #ifdef __cplusplus
12339 }
12340 #endif
12341
12342 int
12343 main ()
12344 {
12345 return f != $ac_func;
12346 ;
12347 return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352 (eval $ac_link) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -s conftest$ac_exeext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 eval "$as_ac_var=yes"
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 eval "$as_ac_var=no"
12368 fi
12369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12370 fi
12371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12373 if test `eval echo '${'$as_ac_var'}'` = yes; then
12374 cat >>confdefs.h <<_ACEOF
12375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12376 _ACEOF
12377
12378 fi
12379 done
12380
12381 fi
12382 fi
12383
12384
12385
12386 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
12387 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
12388 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
12389 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392
12393
12394
12395 ac_ext=cc
12396 ac_cpp='$CXXCPP $CPPFLAGS'
12397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12400
12401 cat >conftest.$ac_ext <<_ACEOF
12402 #line $LINENO "configure"
12403 /* confdefs.h. */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 #include <math.h>
12409 int
12410 main ()
12411 {
12412 fmodf(0, 0);
12413 ;
12414 return 0;
12415 }
12416 _ACEOF
12417 rm -f conftest.$ac_objext
12418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12419 (eval $ac_compile) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -s conftest.$ac_objext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 glibcxx_cv_func_fmodf_use=yes
12430 else
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 glibcxx_cv_func_fmodf_use=no
12435 fi
12436 rm -f conftest.$ac_objext conftest.$ac_ext
12437 ac_ext=c
12438 ac_cpp='$CPP $CPPFLAGS'
12439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12442
12443
12444 fi
12445
12446 fi
12447 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
12448 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
12449
12450 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
12451
12452 for ac_func in fmodf
12453 do
12454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12455 echo "$as_me:$LINENO: checking for $ac_func" >&5
12456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12457 if eval "test \"\${$as_ac_var+set}\" = set"; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460 if test x$gcc_no_link = xyes; then
12461 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12462 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12463 { (exit 1); exit 1; }; }
12464 fi
12465 cat >conftest.$ac_ext <<_ACEOF
12466 #line $LINENO "configure"
12467 /* confdefs.h. */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12472 /* System header to define __stub macros and hopefully few prototypes,
12473 which can conflict with char $ac_func (); below.
12474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12475 <limits.h> exists even on freestanding compilers. */
12476 #ifdef __STDC__
12477 # include <limits.h>
12478 #else
12479 # include <assert.h>
12480 #endif
12481 /* Override any gcc2 internal prototype to avoid an error. */
12482 #ifdef __cplusplus
12483 extern "C"
12484 {
12485 #endif
12486 /* We use char because int might match the return type of a gcc2
12487 builtin and then its argument prototype would still apply. */
12488 char $ac_func ();
12489 /* The GNU C library defines this for functions which it implements
12490 to always fail with ENOSYS. Some functions are actually named
12491 something starting with __ and the normal name is an alias. */
12492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12493 choke me
12494 #else
12495 char (*f) () = $ac_func;
12496 #endif
12497 #ifdef __cplusplus
12498 }
12499 #endif
12500
12501 int
12502 main ()
12503 {
12504 return f != $ac_func;
12505 ;
12506 return 0;
12507 }
12508 _ACEOF
12509 rm -f conftest.$ac_objext conftest$ac_exeext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511 (eval $ac_link) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -s conftest$ac_exeext'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 eval "$as_ac_var=yes"
12522 else
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 eval "$as_ac_var=no"
12527 fi
12528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12529 fi
12530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12532 if test `eval echo '${'$as_ac_var'}'` = yes; then
12533 cat >>confdefs.h <<_ACEOF
12534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12535 _ACEOF
12536
12537 fi
12538 done
12539
12540 else
12541
12542 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
12543 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
12544 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
12545 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 else
12548
12549
12550
12551 ac_ext=cc
12552 ac_cpp='$CXXCPP $CPPFLAGS'
12553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12556
12557 cat >conftest.$ac_ext <<_ACEOF
12558 #line $LINENO "configure"
12559 /* confdefs.h. */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 #include <math.h>
12565 int
12566 main ()
12567 {
12568 _fmodf(0, 0);
12569 ;
12570 return 0;
12571 }
12572 _ACEOF
12573 rm -f conftest.$ac_objext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575 (eval $ac_compile) 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -s conftest.$ac_objext'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 glibcxx_cv_func__fmodf_use=yes
12586 else
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12589
12590 glibcxx_cv_func__fmodf_use=no
12591 fi
12592 rm -f conftest.$ac_objext conftest.$ac_ext
12593 ac_ext=c
12594 ac_cpp='$CPP $CPPFLAGS'
12595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12598
12599
12600 fi
12601
12602 fi
12603 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
12604 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
12605
12606 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
12607
12608 for ac_func in _fmodf
12609 do
12610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12611 echo "$as_me:$LINENO: checking for $ac_func" >&5
12612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12613 if eval "test \"\${$as_ac_var+set}\" = set"; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616 if test x$gcc_no_link = xyes; then
12617 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12619 { (exit 1); exit 1; }; }
12620 fi
12621 cat >conftest.$ac_ext <<_ACEOF
12622 #line $LINENO "configure"
12623 /* confdefs.h. */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 /* System header to define __stub macros and hopefully few prototypes,
12629 which can conflict with char $ac_func (); below.
12630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12631 <limits.h> exists even on freestanding compilers. */
12632 #ifdef __STDC__
12633 # include <limits.h>
12634 #else
12635 # include <assert.h>
12636 #endif
12637 /* Override any gcc2 internal prototype to avoid an error. */
12638 #ifdef __cplusplus
12639 extern "C"
12640 {
12641 #endif
12642 /* We use char because int might match the return type of a gcc2
12643 builtin and then its argument prototype would still apply. */
12644 char $ac_func ();
12645 /* The GNU C library defines this for functions which it implements
12646 to always fail with ENOSYS. Some functions are actually named
12647 something starting with __ and the normal name is an alias. */
12648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12649 choke me
12650 #else
12651 char (*f) () = $ac_func;
12652 #endif
12653 #ifdef __cplusplus
12654 }
12655 #endif
12656
12657 int
12658 main ()
12659 {
12660 return f != $ac_func;
12661 ;
12662 return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12667 (eval $ac_link) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -s conftest$ac_exeext'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12677 eval "$as_ac_var=yes"
12678 else
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682 eval "$as_ac_var=no"
12683 fi
12684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12685 fi
12686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12688 if test `eval echo '${'$as_ac_var'}'` = yes; then
12689 cat >>confdefs.h <<_ACEOF
12690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12691 _ACEOF
12692
12693 fi
12694 done
12695
12696 fi
12697 fi
12698
12699
12700
12701 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
12702 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
12703 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
12704 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707
12708
12709
12710 ac_ext=cc
12711 ac_cpp='$CXXCPP $CPPFLAGS'
12712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12715
12716 cat >conftest.$ac_ext <<_ACEOF
12717 #line $LINENO "configure"
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <math.h>
12724 int
12725 main ()
12726 {
12727 frexpf(0, 0);
12728 ;
12729 return 0;
12730 }
12731 _ACEOF
12732 rm -f conftest.$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 glibcxx_cv_func_frexpf_use=yes
12745 else
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12748
12749 glibcxx_cv_func_frexpf_use=no
12750 fi
12751 rm -f conftest.$ac_objext conftest.$ac_ext
12752 ac_ext=c
12753 ac_cpp='$CPP $CPPFLAGS'
12754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12757
12758
12759 fi
12760
12761 fi
12762 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
12763 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
12764
12765 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
12766
12767 for ac_func in frexpf
12768 do
12769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12770 echo "$as_me:$LINENO: checking for $ac_func" >&5
12771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12772 if eval "test \"\${$as_ac_var+set}\" = set"; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775 if test x$gcc_no_link = xyes; then
12776 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12778 { (exit 1); exit 1; }; }
12779 fi
12780 cat >conftest.$ac_ext <<_ACEOF
12781 #line $LINENO "configure"
12782 /* confdefs.h. */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787 /* System header to define __stub macros and hopefully few prototypes,
12788 which can conflict with char $ac_func (); below.
12789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12790 <limits.h> exists even on freestanding compilers. */
12791 #ifdef __STDC__
12792 # include <limits.h>
12793 #else
12794 # include <assert.h>
12795 #endif
12796 /* Override any gcc2 internal prototype to avoid an error. */
12797 #ifdef __cplusplus
12798 extern "C"
12799 {
12800 #endif
12801 /* We use char because int might match the return type of a gcc2
12802 builtin and then its argument prototype would still apply. */
12803 char $ac_func ();
12804 /* The GNU C library defines this for functions which it implements
12805 to always fail with ENOSYS. Some functions are actually named
12806 something starting with __ and the normal name is an alias. */
12807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12808 choke me
12809 #else
12810 char (*f) () = $ac_func;
12811 #endif
12812 #ifdef __cplusplus
12813 }
12814 #endif
12815
12816 int
12817 main ()
12818 {
12819 return f != $ac_func;
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12826 (eval $ac_link) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -s conftest$ac_exeext'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 eval "$as_ac_var=yes"
12837 else
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12840
12841 eval "$as_ac_var=no"
12842 fi
12843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12844 fi
12845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12847 if test `eval echo '${'$as_ac_var'}'` = yes; then
12848 cat >>confdefs.h <<_ACEOF
12849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12850 _ACEOF
12851
12852 fi
12853 done
12854
12855 else
12856
12857 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
12858 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
12859 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
12860 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863
12864
12865
12866 ac_ext=cc
12867 ac_cpp='$CXXCPP $CPPFLAGS'
12868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12871
12872 cat >conftest.$ac_ext <<_ACEOF
12873 #line $LINENO "configure"
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 #include <math.h>
12880 int
12881 main ()
12882 {
12883 _frexpf(0, 0);
12884 ;
12885 return 0;
12886 }
12887 _ACEOF
12888 rm -f conftest.$ac_objext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12890 (eval $ac_compile) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -s conftest.$ac_objext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 glibcxx_cv_func__frexpf_use=yes
12901 else
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905 glibcxx_cv_func__frexpf_use=no
12906 fi
12907 rm -f conftest.$ac_objext conftest.$ac_ext
12908 ac_ext=c
12909 ac_cpp='$CPP $CPPFLAGS'
12910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12913
12914
12915 fi
12916
12917 fi
12918 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
12919 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
12920
12921 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
12922
12923 for ac_func in _frexpf
12924 do
12925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12926 echo "$as_me:$LINENO: checking for $ac_func" >&5
12927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12928 if eval "test \"\${$as_ac_var+set}\" = set"; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 else
12931 if test x$gcc_no_link = xyes; then
12932 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12934 { (exit 1); exit 1; }; }
12935 fi
12936 cat >conftest.$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12938 /* confdefs.h. */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 /* System header to define __stub macros and hopefully few prototypes,
12944 which can conflict with char $ac_func (); below.
12945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12946 <limits.h> exists even on freestanding compilers. */
12947 #ifdef __STDC__
12948 # include <limits.h>
12949 #else
12950 # include <assert.h>
12951 #endif
12952 /* Override any gcc2 internal prototype to avoid an error. */
12953 #ifdef __cplusplus
12954 extern "C"
12955 {
12956 #endif
12957 /* We use char because int might match the return type of a gcc2
12958 builtin and then its argument prototype would still apply. */
12959 char $ac_func ();
12960 /* The GNU C library defines this for functions which it implements
12961 to always fail with ENOSYS. Some functions are actually named
12962 something starting with __ and the normal name is an alias. */
12963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12964 choke me
12965 #else
12966 char (*f) () = $ac_func;
12967 #endif
12968 #ifdef __cplusplus
12969 }
12970 #endif
12971
12972 int
12973 main ()
12974 {
12975 return f != $ac_func;
12976 ;
12977 return 0;
12978 }
12979 _ACEOF
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12982 (eval $ac_link) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 eval "$as_ac_var=yes"
12993 else
12994 echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12996
12997 eval "$as_ac_var=no"
12998 fi
12999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13000 fi
13001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13003 if test `eval echo '${'$as_ac_var'}'` = yes; then
13004 cat >>confdefs.h <<_ACEOF
13005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13006 _ACEOF
13007
13008 fi
13009 done
13010
13011 fi
13012 fi
13013
13014
13015
13016 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
13017 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
13018 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
13019 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022
13023
13024
13025 ac_ext=cc
13026 ac_cpp='$CXXCPP $CPPFLAGS'
13027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13030
13031 cat >conftest.$ac_ext <<_ACEOF
13032 #line $LINENO "configure"
13033 /* confdefs.h. */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13038 #include <math.h>
13039 int
13040 main ()
13041 {
13042 hypotf(0, 0);
13043 ;
13044 return 0;
13045 }
13046 _ACEOF
13047 rm -f conftest.$ac_objext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049 (eval $ac_compile) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -s conftest.$ac_objext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 glibcxx_cv_func_hypotf_use=yes
13060 else
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064 glibcxx_cv_func_hypotf_use=no
13065 fi
13066 rm -f conftest.$ac_objext conftest.$ac_ext
13067 ac_ext=c
13068 ac_cpp='$CPP $CPPFLAGS'
13069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13072
13073
13074 fi
13075
13076 fi
13077 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
13078 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
13079
13080 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
13081
13082 for ac_func in hypotf
13083 do
13084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13085 echo "$as_me:$LINENO: checking for $ac_func" >&5
13086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13087 if eval "test \"\${$as_ac_var+set}\" = set"; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090 if test x$gcc_no_link = xyes; then
13091 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13092 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13093 { (exit 1); exit 1; }; }
13094 fi
13095 cat >conftest.$ac_ext <<_ACEOF
13096 #line $LINENO "configure"
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 /* System header to define __stub macros and hopefully few prototypes,
13103 which can conflict with char $ac_func (); below.
13104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13105 <limits.h> exists even on freestanding compilers. */
13106 #ifdef __STDC__
13107 # include <limits.h>
13108 #else
13109 # include <assert.h>
13110 #endif
13111 /* Override any gcc2 internal prototype to avoid an error. */
13112 #ifdef __cplusplus
13113 extern "C"
13114 {
13115 #endif
13116 /* We use char because int might match the return type of a gcc2
13117 builtin and then its argument prototype would still apply. */
13118 char $ac_func ();
13119 /* The GNU C library defines this for functions which it implements
13120 to always fail with ENOSYS. Some functions are actually named
13121 something starting with __ and the normal name is an alias. */
13122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13123 choke me
13124 #else
13125 char (*f) () = $ac_func;
13126 #endif
13127 #ifdef __cplusplus
13128 }
13129 #endif
13130
13131 int
13132 main ()
13133 {
13134 return f != $ac_func;
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 rm -f conftest.$ac_objext conftest$ac_exeext
13140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13141 (eval $ac_link) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -s conftest$ac_exeext'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }; then
13151 eval "$as_ac_var=yes"
13152 else
13153 echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13155
13156 eval "$as_ac_var=no"
13157 fi
13158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13159 fi
13160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13162 if test `eval echo '${'$as_ac_var'}'` = yes; then
13163 cat >>confdefs.h <<_ACEOF
13164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13165 _ACEOF
13166
13167 fi
13168 done
13169
13170 else
13171
13172 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
13173 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
13174 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
13175 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 else
13178
13179
13180
13181 ac_ext=cc
13182 ac_cpp='$CXXCPP $CPPFLAGS'
13183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13186
13187 cat >conftest.$ac_ext <<_ACEOF
13188 #line $LINENO "configure"
13189 /* confdefs.h. */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13194 #include <math.h>
13195 int
13196 main ()
13197 {
13198 _hypotf(0, 0);
13199 ;
13200 return 0;
13201 }
13202 _ACEOF
13203 rm -f conftest.$ac_objext
13204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13205 (eval $ac_compile) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -s conftest.$ac_objext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 glibcxx_cv_func__hypotf_use=yes
13216 else
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13219
13220 glibcxx_cv_func__hypotf_use=no
13221 fi
13222 rm -f conftest.$ac_objext conftest.$ac_ext
13223 ac_ext=c
13224 ac_cpp='$CPP $CPPFLAGS'
13225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13228
13229
13230 fi
13231
13232 fi
13233 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
13234 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
13235
13236 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
13237
13238 for ac_func in _hypotf
13239 do
13240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13241 echo "$as_me:$LINENO: checking for $ac_func" >&5
13242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13243 if eval "test \"\${$as_ac_var+set}\" = set"; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246 if test x$gcc_no_link = xyes; then
13247 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13248 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13249 { (exit 1); exit 1; }; }
13250 fi
13251 cat >conftest.$ac_ext <<_ACEOF
13252 #line $LINENO "configure"
13253 /* confdefs.h. */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 /* System header to define __stub macros and hopefully few prototypes,
13259 which can conflict with char $ac_func (); below.
13260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13261 <limits.h> exists even on freestanding compilers. */
13262 #ifdef __STDC__
13263 # include <limits.h>
13264 #else
13265 # include <assert.h>
13266 #endif
13267 /* Override any gcc2 internal prototype to avoid an error. */
13268 #ifdef __cplusplus
13269 extern "C"
13270 {
13271 #endif
13272 /* We use char because int might match the return type of a gcc2
13273 builtin and then its argument prototype would still apply. */
13274 char $ac_func ();
13275 /* The GNU C library defines this for functions which it implements
13276 to always fail with ENOSYS. Some functions are actually named
13277 something starting with __ and the normal name is an alias. */
13278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13279 choke me
13280 #else
13281 char (*f) () = $ac_func;
13282 #endif
13283 #ifdef __cplusplus
13284 }
13285 #endif
13286
13287 int
13288 main ()
13289 {
13290 return f != $ac_func;
13291 ;
13292 return 0;
13293 }
13294 _ACEOF
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297 (eval $ac_link) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -s conftest$ac_exeext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 eval "$as_ac_var=yes"
13308 else
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 eval "$as_ac_var=no"
13313 fi
13314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13315 fi
13316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13318 if test `eval echo '${'$as_ac_var'}'` = yes; then
13319 cat >>confdefs.h <<_ACEOF
13320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13321 _ACEOF
13322
13323 fi
13324 done
13325
13326 fi
13327 fi
13328
13329
13330
13331 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
13332 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
13333 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
13334 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337
13338
13339
13340 ac_ext=cc
13341 ac_cpp='$CXXCPP $CPPFLAGS'
13342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13345
13346 cat >conftest.$ac_ext <<_ACEOF
13347 #line $LINENO "configure"
13348 /* confdefs.h. */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 #include <math.h>
13354 int
13355 main ()
13356 {
13357 ldexpf(0, 0);
13358 ;
13359 return 0;
13360 }
13361 _ACEOF
13362 rm -f conftest.$ac_objext
13363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13364 (eval $ac_compile) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -s conftest.$ac_objext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 glibcxx_cv_func_ldexpf_use=yes
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379 glibcxx_cv_func_ldexpf_use=no
13380 fi
13381 rm -f conftest.$ac_objext conftest.$ac_ext
13382 ac_ext=c
13383 ac_cpp='$CPP $CPPFLAGS'
13384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13387
13388
13389 fi
13390
13391 fi
13392 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
13393 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
13394
13395 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
13396
13397 for ac_func in ldexpf
13398 do
13399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13400 echo "$as_me:$LINENO: checking for $ac_func" >&5
13401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_var+set}\" = set"; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405 if test x$gcc_no_link = xyes; then
13406 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13407 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13408 { (exit 1); exit 1; }; }
13409 fi
13410 cat >conftest.$ac_ext <<_ACEOF
13411 #line $LINENO "configure"
13412 /* confdefs.h. */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 /* System header to define __stub macros and hopefully few prototypes,
13418 which can conflict with char $ac_func (); below.
13419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13420 <limits.h> exists even on freestanding compilers. */
13421 #ifdef __STDC__
13422 # include <limits.h>
13423 #else
13424 # include <assert.h>
13425 #endif
13426 /* Override any gcc2 internal prototype to avoid an error. */
13427 #ifdef __cplusplus
13428 extern "C"
13429 {
13430 #endif
13431 /* We use char because int might match the return type of a gcc2
13432 builtin and then its argument prototype would still apply. */
13433 char $ac_func ();
13434 /* The GNU C library defines this for functions which it implements
13435 to always fail with ENOSYS. Some functions are actually named
13436 something starting with __ and the normal name is an alias. */
13437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13438 choke me
13439 #else
13440 char (*f) () = $ac_func;
13441 #endif
13442 #ifdef __cplusplus
13443 }
13444 #endif
13445
13446 int
13447 main ()
13448 {
13449 return f != $ac_func;
13450 ;
13451 return 0;
13452 }
13453 _ACEOF
13454 rm -f conftest.$ac_objext conftest$ac_exeext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13456 (eval $ac_link) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } &&
13460 { ac_try='test -s conftest$ac_exeext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 eval "$as_ac_var=yes"
13467 else
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471 eval "$as_ac_var=no"
13472 fi
13473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13474 fi
13475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13477 if test `eval echo '${'$as_ac_var'}'` = yes; then
13478 cat >>confdefs.h <<_ACEOF
13479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13480 _ACEOF
13481
13482 fi
13483 done
13484
13485 else
13486
13487 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
13488 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
13489 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
13490 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13492 else
13493
13494
13495
13496 ac_ext=cc
13497 ac_cpp='$CXXCPP $CPPFLAGS'
13498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13501
13502 cat >conftest.$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 /* confdefs.h. */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 #include <math.h>
13510 int
13511 main ()
13512 {
13513 _ldexpf(0, 0);
13514 ;
13515 return 0;
13516 }
13517 _ACEOF
13518 rm -f conftest.$ac_objext
13519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13520 (eval $ac_compile) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } &&
13524 { ac_try='test -s conftest.$ac_objext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 glibcxx_cv_func__ldexpf_use=yes
13531 else
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13534
13535 glibcxx_cv_func__ldexpf_use=no
13536 fi
13537 rm -f conftest.$ac_objext conftest.$ac_ext
13538 ac_ext=c
13539 ac_cpp='$CPP $CPPFLAGS'
13540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13543
13544
13545 fi
13546
13547 fi
13548 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
13549 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
13550
13551 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
13552
13553 for ac_func in _ldexpf
13554 do
13555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13556 echo "$as_me:$LINENO: checking for $ac_func" >&5
13557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13558 if eval "test \"\${$as_ac_var+set}\" = set"; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561 if test x$gcc_no_link = xyes; then
13562 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13564 { (exit 1); exit 1; }; }
13565 fi
13566 cat >conftest.$ac_ext <<_ACEOF
13567 #line $LINENO "configure"
13568 /* confdefs.h. */
13569 _ACEOF
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13573 /* System header to define __stub macros and hopefully few prototypes,
13574 which can conflict with char $ac_func (); below.
13575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13576 <limits.h> exists even on freestanding compilers. */
13577 #ifdef __STDC__
13578 # include <limits.h>
13579 #else
13580 # include <assert.h>
13581 #endif
13582 /* Override any gcc2 internal prototype to avoid an error. */
13583 #ifdef __cplusplus
13584 extern "C"
13585 {
13586 #endif
13587 /* We use char because int might match the return type of a gcc2
13588 builtin and then its argument prototype would still apply. */
13589 char $ac_func ();
13590 /* The GNU C library defines this for functions which it implements
13591 to always fail with ENOSYS. Some functions are actually named
13592 something starting with __ and the normal name is an alias. */
13593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13594 choke me
13595 #else
13596 char (*f) () = $ac_func;
13597 #endif
13598 #ifdef __cplusplus
13599 }
13600 #endif
13601
13602 int
13603 main ()
13604 {
13605 return f != $ac_func;
13606 ;
13607 return 0;
13608 }
13609 _ACEOF
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13612 (eval $ac_link) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -s conftest$ac_exeext'
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }; then
13622 eval "$as_ac_var=yes"
13623 else
13624 echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13626
13627 eval "$as_ac_var=no"
13628 fi
13629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13630 fi
13631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13633 if test `eval echo '${'$as_ac_var'}'` = yes; then
13634 cat >>confdefs.h <<_ACEOF
13635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13636 _ACEOF
13637
13638 fi
13639 done
13640
13641 fi
13642 fi
13643
13644
13645
13646 echo "$as_me:$LINENO: checking for logf declaration" >&5
13647 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
13648 if test x${glibcxx_cv_func_logf_use+set} != xset; then
13649 if test "${glibcxx_cv_func_logf_use+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 else
13652
13653
13654
13655 ac_ext=cc
13656 ac_cpp='$CXXCPP $CPPFLAGS'
13657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13660
13661 cat >conftest.$ac_ext <<_ACEOF
13662 #line $LINENO "configure"
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 #include <math.h>
13669 #ifdef HAVE_IEEEFP_H
13670 #include <ieeefp.h>
13671 #endif
13672
13673 int
13674 main ()
13675 {
13676 logf(0);
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest.$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -s conftest.$ac_objext'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 glibcxx_cv_func_logf_use=yes
13694 else
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13697
13698 glibcxx_cv_func_logf_use=no
13699 fi
13700 rm -f conftest.$ac_objext conftest.$ac_ext
13701 ac_ext=c
13702 ac_cpp='$CPP $CPPFLAGS'
13703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13706
13707
13708 fi
13709
13710 fi
13711 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
13712 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
13713
13714 if test x$glibcxx_cv_func_logf_use = x"yes"; then
13715
13716 for ac_func in logf
13717 do
13718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13719 echo "$as_me:$LINENO: checking for $ac_func" >&5
13720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13721 if eval "test \"\${$as_ac_var+set}\" = set"; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724 if test x$gcc_no_link = xyes; then
13725 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13727 { (exit 1); exit 1; }; }
13728 fi
13729 cat >conftest.$ac_ext <<_ACEOF
13730 #line $LINENO "configure"
13731 /* confdefs.h. */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 /* System header to define __stub macros and hopefully few prototypes,
13737 which can conflict with char $ac_func (); below.
13738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13739 <limits.h> exists even on freestanding compilers. */
13740 #ifdef __STDC__
13741 # include <limits.h>
13742 #else
13743 # include <assert.h>
13744 #endif
13745 /* Override any gcc2 internal prototype to avoid an error. */
13746 #ifdef __cplusplus
13747 extern "C"
13748 {
13749 #endif
13750 /* We use char because int might match the return type of a gcc2
13751 builtin and then its argument prototype would still apply. */
13752 char $ac_func ();
13753 /* The GNU C library defines this for functions which it implements
13754 to always fail with ENOSYS. Some functions are actually named
13755 something starting with __ and the normal name is an alias. */
13756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13757 choke me
13758 #else
13759 char (*f) () = $ac_func;
13760 #endif
13761 #ifdef __cplusplus
13762 }
13763 #endif
13764
13765 int
13766 main ()
13767 {
13768 return f != $ac_func;
13769 ;
13770 return 0;
13771 }
13772 _ACEOF
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775 (eval $ac_link) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 eval "$as_ac_var=yes"
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13789
13790 eval "$as_ac_var=no"
13791 fi
13792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13793 fi
13794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13796 if test `eval echo '${'$as_ac_var'}'` = yes; then
13797 cat >>confdefs.h <<_ACEOF
13798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13799 _ACEOF
13800
13801 fi
13802 done
13803
13804 else
13805
13806 echo "$as_me:$LINENO: checking for _logf declaration" >&5
13807 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
13808 if test x${glibcxx_cv_func__logf_use+set} != xset; then
13809 if test "${glibcxx_cv_func__logf_use+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 else
13812
13813
13814
13815 ac_ext=cc
13816 ac_cpp='$CXXCPP $CPPFLAGS'
13817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13820
13821 cat >conftest.$ac_ext <<_ACEOF
13822 #line $LINENO "configure"
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <math.h>
13829 #ifdef HAVE_IEEEFP_H
13830 #include <ieeefp.h>
13831 #endif
13832
13833 int
13834 main ()
13835 {
13836 _logf(0);
13837 ;
13838 return 0;
13839 }
13840 _ACEOF
13841 rm -f conftest.$ac_objext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843 (eval $ac_compile) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 glibcxx_cv_func__logf_use=yes
13854 else
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 glibcxx_cv_func__logf_use=no
13859 fi
13860 rm -f conftest.$ac_objext conftest.$ac_ext
13861 ac_ext=c
13862 ac_cpp='$CPP $CPPFLAGS'
13863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13866
13867
13868 fi
13869
13870 fi
13871 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
13872 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
13873
13874 if test x$glibcxx_cv_func__logf_use = x"yes"; then
13875
13876 for ac_func in _logf
13877 do
13878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13879 echo "$as_me:$LINENO: checking for $ac_func" >&5
13880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13881 if eval "test \"\${$as_ac_var+set}\" = set"; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884 if test x$gcc_no_link = xyes; then
13885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13887 { (exit 1); exit 1; }; }
13888 fi
13889 cat >conftest.$ac_ext <<_ACEOF
13890 #line $LINENO "configure"
13891 /* confdefs.h. */
13892 _ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13896 /* System header to define __stub macros and hopefully few prototypes,
13897 which can conflict with char $ac_func (); below.
13898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899 <limits.h> exists even on freestanding compilers. */
13900 #ifdef __STDC__
13901 # include <limits.h>
13902 #else
13903 # include <assert.h>
13904 #endif
13905 /* Override any gcc2 internal prototype to avoid an error. */
13906 #ifdef __cplusplus
13907 extern "C"
13908 {
13909 #endif
13910 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912 char $ac_func ();
13913 /* The GNU C library defines this for functions which it implements
13914 to always fail with ENOSYS. Some functions are actually named
13915 something starting with __ and the normal name is an alias. */
13916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13917 choke me
13918 #else
13919 char (*f) () = $ac_func;
13920 #endif
13921 #ifdef __cplusplus
13922 }
13923 #endif
13924
13925 int
13926 main ()
13927 {
13928 return f != $ac_func;
13929 ;
13930 return 0;
13931 }
13932 _ACEOF
13933 rm -f conftest.$ac_objext conftest$ac_exeext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13935 (eval $ac_link) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try='test -s conftest$ac_exeext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 eval "$as_ac_var=yes"
13946 else
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950 eval "$as_ac_var=no"
13951 fi
13952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13953 fi
13954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13956 if test `eval echo '${'$as_ac_var'}'` = yes; then
13957 cat >>confdefs.h <<_ACEOF
13958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13959 _ACEOF
13960
13961 fi
13962 done
13963
13964 fi
13965 fi
13966
13967
13968
13969 echo "$as_me:$LINENO: checking for log10f declaration" >&5
13970 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
13971 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
13972 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 else
13975
13976
13977
13978 ac_ext=cc
13979 ac_cpp='$CXXCPP $CPPFLAGS'
13980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13983
13984 cat >conftest.$ac_ext <<_ACEOF
13985 #line $LINENO "configure"
13986 /* confdefs.h. */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 #include <math.h>
13992 #ifdef HAVE_IEEEFP_H
13993 #include <ieeefp.h>
13994 #endif
13995
13996 int
13997 main ()
13998 {
13999 log10f(0);
14000 ;
14001 return 0;
14002 }
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 glibcxx_cv_func_log10f_use=yes
14017 else
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14020
14021 glibcxx_cv_func_log10f_use=no
14022 fi
14023 rm -f conftest.$ac_objext conftest.$ac_ext
14024 ac_ext=c
14025 ac_cpp='$CPP $CPPFLAGS'
14026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14029
14030
14031 fi
14032
14033 fi
14034 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
14035 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
14036
14037 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
14038
14039 for ac_func in log10f
14040 do
14041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14042 echo "$as_me:$LINENO: checking for $ac_func" >&5
14043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14044 if eval "test \"\${$as_ac_var+set}\" = set"; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 else
14047 if test x$gcc_no_link = xyes; then
14048 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14049 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14050 { (exit 1); exit 1; }; }
14051 fi
14052 cat >conftest.$ac_ext <<_ACEOF
14053 #line $LINENO "configure"
14054 /* confdefs.h. */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 /* System header to define __stub macros and hopefully few prototypes,
14060 which can conflict with char $ac_func (); below.
14061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14062 <limits.h> exists even on freestanding compilers. */
14063 #ifdef __STDC__
14064 # include <limits.h>
14065 #else
14066 # include <assert.h>
14067 #endif
14068 /* Override any gcc2 internal prototype to avoid an error. */
14069 #ifdef __cplusplus
14070 extern "C"
14071 {
14072 #endif
14073 /* We use char because int might match the return type of a gcc2
14074 builtin and then its argument prototype would still apply. */
14075 char $ac_func ();
14076 /* The GNU C library defines this for functions which it implements
14077 to always fail with ENOSYS. Some functions are actually named
14078 something starting with __ and the normal name is an alias. */
14079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14080 choke me
14081 #else
14082 char (*f) () = $ac_func;
14083 #endif
14084 #ifdef __cplusplus
14085 }
14086 #endif
14087
14088 int
14089 main ()
14090 {
14091 return f != $ac_func;
14092 ;
14093 return 0;
14094 }
14095 _ACEOF
14096 rm -f conftest.$ac_objext conftest$ac_exeext
14097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14098 (eval $ac_link) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
14102 { ac_try='test -s conftest$ac_exeext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 eval "$as_ac_var=yes"
14109 else
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113 eval "$as_ac_var=no"
14114 fi
14115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14116 fi
14117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14119 if test `eval echo '${'$as_ac_var'}'` = yes; then
14120 cat >>confdefs.h <<_ACEOF
14121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14122 _ACEOF
14123
14124 fi
14125 done
14126
14127 else
14128
14129 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
14130 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
14131 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
14132 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135
14136
14137
14138 ac_ext=cc
14139 ac_cpp='$CXXCPP $CPPFLAGS'
14140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14143
14144 cat >conftest.$ac_ext <<_ACEOF
14145 #line $LINENO "configure"
14146 /* confdefs.h. */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 #include <math.h>
14152 #ifdef HAVE_IEEEFP_H
14153 #include <ieeefp.h>
14154 #endif
14155
14156 int
14157 main ()
14158 {
14159 _log10f(0);
14160 ;
14161 return 0;
14162 }
14163 _ACEOF
14164 rm -f conftest.$ac_objext
14165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14166 (eval $ac_compile) 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -s conftest.$ac_objext'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; }; then
14176 glibcxx_cv_func__log10f_use=yes
14177 else
14178 echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14180
14181 glibcxx_cv_func__log10f_use=no
14182 fi
14183 rm -f conftest.$ac_objext conftest.$ac_ext
14184 ac_ext=c
14185 ac_cpp='$CPP $CPPFLAGS'
14186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14189
14190
14191 fi
14192
14193 fi
14194 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
14195 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
14196
14197 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
14198
14199 for ac_func in _log10f
14200 do
14201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14202 echo "$as_me:$LINENO: checking for $ac_func" >&5
14203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14204 if eval "test \"\${$as_ac_var+set}\" = set"; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 else
14207 if test x$gcc_no_link = xyes; then
14208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14210 { (exit 1); exit 1; }; }
14211 fi
14212 cat >conftest.$ac_ext <<_ACEOF
14213 #line $LINENO "configure"
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 /* System header to define __stub macros and hopefully few prototypes,
14220 which can conflict with char $ac_func (); below.
14221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14222 <limits.h> exists even on freestanding compilers. */
14223 #ifdef __STDC__
14224 # include <limits.h>
14225 #else
14226 # include <assert.h>
14227 #endif
14228 /* Override any gcc2 internal prototype to avoid an error. */
14229 #ifdef __cplusplus
14230 extern "C"
14231 {
14232 #endif
14233 /* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14235 char $ac_func ();
14236 /* The GNU C library defines this for functions which it implements
14237 to always fail with ENOSYS. Some functions are actually named
14238 something starting with __ and the normal name is an alias. */
14239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14240 choke me
14241 #else
14242 char (*f) () = $ac_func;
14243 #endif
14244 #ifdef __cplusplus
14245 }
14246 #endif
14247
14248 int
14249 main ()
14250 {
14251 return f != $ac_func;
14252 ;
14253 return 0;
14254 }
14255 _ACEOF
14256 rm -f conftest.$ac_objext conftest$ac_exeext
14257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14258 (eval $ac_link) 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -s conftest$ac_exeext'
14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }; then
14268 eval "$as_ac_var=yes"
14269 else
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 eval "$as_ac_var=no"
14274 fi
14275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14276 fi
14277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14279 if test `eval echo '${'$as_ac_var'}'` = yes; then
14280 cat >>confdefs.h <<_ACEOF
14281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14282 _ACEOF
14283
14284 fi
14285 done
14286
14287 fi
14288 fi
14289
14290
14291
14292 echo "$as_me:$LINENO: checking for modff declaration" >&5
14293 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
14294 if test x${glibcxx_cv_func_modff_use+set} != xset; then
14295 if test "${glibcxx_cv_func_modff_use+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298
14299
14300
14301 ac_ext=cc
14302 ac_cpp='$CXXCPP $CPPFLAGS'
14303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14306
14307 cat >conftest.$ac_ext <<_ACEOF
14308 #line $LINENO "configure"
14309 /* confdefs.h. */
14310 _ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14314 #include <math.h>
14315 int
14316 main ()
14317 {
14318 modff(0, 0);
14319 ;
14320 return 0;
14321 }
14322 _ACEOF
14323 rm -f conftest.$ac_objext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14325 (eval $ac_compile) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -s conftest.$ac_objext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 glibcxx_cv_func_modff_use=yes
14336 else
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 glibcxx_cv_func_modff_use=no
14341 fi
14342 rm -f conftest.$ac_objext conftest.$ac_ext
14343 ac_ext=c
14344 ac_cpp='$CPP $CPPFLAGS'
14345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14348
14349
14350 fi
14351
14352 fi
14353 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
14354 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
14355
14356 if test x$glibcxx_cv_func_modff_use = x"yes"; then
14357
14358 for ac_func in modff
14359 do
14360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14361 echo "$as_me:$LINENO: checking for $ac_func" >&5
14362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14363 if eval "test \"\${$as_ac_var+set}\" = set"; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366 if test x$gcc_no_link = xyes; then
14367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14369 { (exit 1); exit 1; }; }
14370 fi
14371 cat >conftest.$ac_ext <<_ACEOF
14372 #line $LINENO "configure"
14373 /* confdefs.h. */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 /* System header to define __stub macros and hopefully few prototypes,
14379 which can conflict with char $ac_func (); below.
14380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14381 <limits.h> exists even on freestanding compilers. */
14382 #ifdef __STDC__
14383 # include <limits.h>
14384 #else
14385 # include <assert.h>
14386 #endif
14387 /* Override any gcc2 internal prototype to avoid an error. */
14388 #ifdef __cplusplus
14389 extern "C"
14390 {
14391 #endif
14392 /* We use char because int might match the return type of a gcc2
14393 builtin and then its argument prototype would still apply. */
14394 char $ac_func ();
14395 /* The GNU C library defines this for functions which it implements
14396 to always fail with ENOSYS. Some functions are actually named
14397 something starting with __ and the normal name is an alias. */
14398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14399 choke me
14400 #else
14401 char (*f) () = $ac_func;
14402 #endif
14403 #ifdef __cplusplus
14404 }
14405 #endif
14406
14407 int
14408 main ()
14409 {
14410 return f != $ac_func;
14411 ;
14412 return 0;
14413 }
14414 _ACEOF
14415 rm -f conftest.$ac_objext conftest$ac_exeext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14417 (eval $ac_link) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -s conftest$ac_exeext'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 eval "$as_ac_var=yes"
14428 else
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432 eval "$as_ac_var=no"
14433 fi
14434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14435 fi
14436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14438 if test `eval echo '${'$as_ac_var'}'` = yes; then
14439 cat >>confdefs.h <<_ACEOF
14440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14441 _ACEOF
14442
14443 fi
14444 done
14445
14446 else
14447
14448 echo "$as_me:$LINENO: checking for _modff declaration" >&5
14449 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
14450 if test x${glibcxx_cv_func__modff_use+set} != xset; then
14451 if test "${glibcxx_cv_func__modff_use+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454
14455
14456
14457 ac_ext=cc
14458 ac_cpp='$CXXCPP $CPPFLAGS'
14459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14462
14463 cat >conftest.$ac_ext <<_ACEOF
14464 #line $LINENO "configure"
14465 /* confdefs.h. */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 #include <math.h>
14471 int
14472 main ()
14473 {
14474 _modff(0, 0);
14475 ;
14476 return 0;
14477 }
14478 _ACEOF
14479 rm -f conftest.$ac_objext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481 (eval $ac_compile) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -s conftest.$ac_objext'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 glibcxx_cv_func__modff_use=yes
14492 else
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496 glibcxx_cv_func__modff_use=no
14497 fi
14498 rm -f conftest.$ac_objext conftest.$ac_ext
14499 ac_ext=c
14500 ac_cpp='$CPP $CPPFLAGS'
14501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14504
14505
14506 fi
14507
14508 fi
14509 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
14510 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
14511
14512 if test x$glibcxx_cv_func__modff_use = x"yes"; then
14513
14514 for ac_func in _modff
14515 do
14516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14517 echo "$as_me:$LINENO: checking for $ac_func" >&5
14518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14519 if eval "test \"\${$as_ac_var+set}\" = set"; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 else
14522 if test x$gcc_no_link = xyes; then
14523 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14524 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14525 { (exit 1); exit 1; }; }
14526 fi
14527 cat >conftest.$ac_ext <<_ACEOF
14528 #line $LINENO "configure"
14529 /* confdefs.h. */
14530 _ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14534 /* System header to define __stub macros and hopefully few prototypes,
14535 which can conflict with char $ac_func (); below.
14536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14537 <limits.h> exists even on freestanding compilers. */
14538 #ifdef __STDC__
14539 # include <limits.h>
14540 #else
14541 # include <assert.h>
14542 #endif
14543 /* Override any gcc2 internal prototype to avoid an error. */
14544 #ifdef __cplusplus
14545 extern "C"
14546 {
14547 #endif
14548 /* We use char because int might match the return type of a gcc2
14549 builtin and then its argument prototype would still apply. */
14550 char $ac_func ();
14551 /* The GNU C library defines this for functions which it implements
14552 to always fail with ENOSYS. Some functions are actually named
14553 something starting with __ and the normal name is an alias. */
14554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14555 choke me
14556 #else
14557 char (*f) () = $ac_func;
14558 #endif
14559 #ifdef __cplusplus
14560 }
14561 #endif
14562
14563 int
14564 main ()
14565 {
14566 return f != $ac_func;
14567 ;
14568 return 0;
14569 }
14570 _ACEOF
14571 rm -f conftest.$ac_objext conftest$ac_exeext
14572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14573 (eval $ac_link) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -s conftest$ac_exeext'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 eval "$as_ac_var=yes"
14584 else
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14587
14588 eval "$as_ac_var=no"
14589 fi
14590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14591 fi
14592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14594 if test `eval echo '${'$as_ac_var'}'` = yes; then
14595 cat >>confdefs.h <<_ACEOF
14596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14597 _ACEOF
14598
14599 fi
14600 done
14601
14602 fi
14603 fi
14604
14605
14606
14607 echo "$as_me:$LINENO: checking for powf declaration" >&5
14608 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
14609 if test x${glibcxx_cv_func_powf_use+set} != xset; then
14610 if test "${glibcxx_cv_func_powf_use+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613
14614
14615
14616 ac_ext=cc
14617 ac_cpp='$CXXCPP $CPPFLAGS'
14618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14621
14622 cat >conftest.$ac_ext <<_ACEOF
14623 #line $LINENO "configure"
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 #include <math.h>
14630 int
14631 main ()
14632 {
14633 powf(0, 0);
14634 ;
14635 return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640 (eval $ac_compile) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try='test -s conftest.$ac_objext'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14650 glibcxx_cv_func_powf_use=yes
14651 else
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14654
14655 glibcxx_cv_func_powf_use=no
14656 fi
14657 rm -f conftest.$ac_objext conftest.$ac_ext
14658 ac_ext=c
14659 ac_cpp='$CPP $CPPFLAGS'
14660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14663
14664
14665 fi
14666
14667 fi
14668 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
14669 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
14670
14671 if test x$glibcxx_cv_func_powf_use = x"yes"; then
14672
14673 for ac_func in powf
14674 do
14675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14676 echo "$as_me:$LINENO: checking for $ac_func" >&5
14677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14678 if eval "test \"\${$as_ac_var+set}\" = set"; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 else
14681 if test x$gcc_no_link = xyes; then
14682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14684 { (exit 1); exit 1; }; }
14685 fi
14686 cat >conftest.$ac_ext <<_ACEOF
14687 #line $LINENO "configure"
14688 /* confdefs.h. */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 /* System header to define __stub macros and hopefully few prototypes,
14694 which can conflict with char $ac_func (); below.
14695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14696 <limits.h> exists even on freestanding compilers. */
14697 #ifdef __STDC__
14698 # include <limits.h>
14699 #else
14700 # include <assert.h>
14701 #endif
14702 /* Override any gcc2 internal prototype to avoid an error. */
14703 #ifdef __cplusplus
14704 extern "C"
14705 {
14706 #endif
14707 /* We use char because int might match the return type of a gcc2
14708 builtin and then its argument prototype would still apply. */
14709 char $ac_func ();
14710 /* The GNU C library defines this for functions which it implements
14711 to always fail with ENOSYS. Some functions are actually named
14712 something starting with __ and the normal name is an alias. */
14713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14714 choke me
14715 #else
14716 char (*f) () = $ac_func;
14717 #endif
14718 #ifdef __cplusplus
14719 }
14720 #endif
14721
14722 int
14723 main ()
14724 {
14725 return f != $ac_func;
14726 ;
14727 return 0;
14728 }
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -s conftest$ac_exeext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 eval "$as_ac_var=yes"
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 eval "$as_ac_var=no"
14748 fi
14749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14750 fi
14751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14753 if test `eval echo '${'$as_ac_var'}'` = yes; then
14754 cat >>confdefs.h <<_ACEOF
14755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14756 _ACEOF
14757
14758 fi
14759 done
14760
14761 else
14762
14763 echo "$as_me:$LINENO: checking for _powf declaration" >&5
14764 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
14765 if test x${glibcxx_cv_func__powf_use+set} != xset; then
14766 if test "${glibcxx_cv_func__powf_use+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769
14770
14771
14772 ac_ext=cc
14773 ac_cpp='$CXXCPP $CPPFLAGS'
14774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14777
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 #include <math.h>
14786 int
14787 main ()
14788 {
14789 _powf(0, 0);
14790 ;
14791 return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796 (eval $ac_compile) 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
14800 { ac_try='test -s conftest.$ac_objext'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 glibcxx_cv_func__powf_use=yes
14807 else
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811 glibcxx_cv_func__powf_use=no
14812 fi
14813 rm -f conftest.$ac_objext conftest.$ac_ext
14814 ac_ext=c
14815 ac_cpp='$CPP $CPPFLAGS'
14816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14819
14820
14821 fi
14822
14823 fi
14824 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
14825 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
14826
14827 if test x$glibcxx_cv_func__powf_use = x"yes"; then
14828
14829 for ac_func in _powf
14830 do
14831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14832 echo "$as_me:$LINENO: checking for $ac_func" >&5
14833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14834 if eval "test \"\${$as_ac_var+set}\" = set"; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837 if test x$gcc_no_link = xyes; then
14838 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14839 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14840 { (exit 1); exit 1; }; }
14841 fi
14842 cat >conftest.$ac_ext <<_ACEOF
14843 #line $LINENO "configure"
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 /* System header to define __stub macros and hopefully few prototypes,
14850 which can conflict with char $ac_func (); below.
14851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14852 <limits.h> exists even on freestanding compilers. */
14853 #ifdef __STDC__
14854 # include <limits.h>
14855 #else
14856 # include <assert.h>
14857 #endif
14858 /* Override any gcc2 internal prototype to avoid an error. */
14859 #ifdef __cplusplus
14860 extern "C"
14861 {
14862 #endif
14863 /* We use char because int might match the return type of a gcc2
14864 builtin and then its argument prototype would still apply. */
14865 char $ac_func ();
14866 /* The GNU C library defines this for functions which it implements
14867 to always fail with ENOSYS. Some functions are actually named
14868 something starting with __ and the normal name is an alias. */
14869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14870 choke me
14871 #else
14872 char (*f) () = $ac_func;
14873 #endif
14874 #ifdef __cplusplus
14875 }
14876 #endif
14877
14878 int
14879 main ()
14880 {
14881 return f != $ac_func;
14882 ;
14883 return 0;
14884 }
14885 _ACEOF
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888 (eval $ac_link) 2>&5
14889 ac_status=$?
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -s conftest$ac_exeext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 eval "$as_ac_var=yes"
14899 else
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 eval "$as_ac_var=no"
14904 fi
14905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14906 fi
14907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14909 if test `eval echo '${'$as_ac_var'}'` = yes; then
14910 cat >>confdefs.h <<_ACEOF
14911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14912 _ACEOF
14913
14914 fi
14915 done
14916
14917 fi
14918 fi
14919
14920
14921
14922 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
14923 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
14924 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
14925 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
14928
14929
14930
14931 ac_ext=cc
14932 ac_cpp='$CXXCPP $CPPFLAGS'
14933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14936
14937 cat >conftest.$ac_ext <<_ACEOF
14938 #line $LINENO "configure"
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <math.h>
14945 #ifdef HAVE_IEEEFP_H
14946 #include <ieeefp.h>
14947 #endif
14948
14949 int
14950 main ()
14951 {
14952 sqrtf(0);
14953 ;
14954 return 0;
14955 }
14956 _ACEOF
14957 rm -f conftest.$ac_objext
14958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14959 (eval $ac_compile) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try='test -s conftest.$ac_objext'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14969 glibcxx_cv_func_sqrtf_use=yes
14970 else
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14973
14974 glibcxx_cv_func_sqrtf_use=no
14975 fi
14976 rm -f conftest.$ac_objext conftest.$ac_ext
14977 ac_ext=c
14978 ac_cpp='$CPP $CPPFLAGS'
14979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14982
14983
14984 fi
14985
14986 fi
14987 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
14988 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
14989
14990 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
14991
14992 for ac_func in sqrtf
14993 do
14994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14995 echo "$as_me:$LINENO: checking for $ac_func" >&5
14996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14997 if eval "test \"\${$as_ac_var+set}\" = set"; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 else
15000 if test x$gcc_no_link = xyes; then
15001 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15003 { (exit 1); exit 1; }; }
15004 fi
15005 cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 /* confdefs.h. */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 /* System header to define __stub macros and hopefully few prototypes,
15013 which can conflict with char $ac_func (); below.
15014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15015 <limits.h> exists even on freestanding compilers. */
15016 #ifdef __STDC__
15017 # include <limits.h>
15018 #else
15019 # include <assert.h>
15020 #endif
15021 /* Override any gcc2 internal prototype to avoid an error. */
15022 #ifdef __cplusplus
15023 extern "C"
15024 {
15025 #endif
15026 /* We use char because int might match the return type of a gcc2
15027 builtin and then its argument prototype would still apply. */
15028 char $ac_func ();
15029 /* The GNU C library defines this for functions which it implements
15030 to always fail with ENOSYS. Some functions are actually named
15031 something starting with __ and the normal name is an alias. */
15032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15033 choke me
15034 #else
15035 char (*f) () = $ac_func;
15036 #endif
15037 #ifdef __cplusplus
15038 }
15039 #endif
15040
15041 int
15042 main ()
15043 {
15044 return f != $ac_func;
15045 ;
15046 return 0;
15047 }
15048 _ACEOF
15049 rm -f conftest.$ac_objext conftest$ac_exeext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15051 (eval $ac_link) 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } &&
15055 { ac_try='test -s conftest$ac_exeext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 eval "$as_ac_var=yes"
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 eval "$as_ac_var=no"
15067 fi
15068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15069 fi
15070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15072 if test `eval echo '${'$as_ac_var'}'` = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15075 _ACEOF
15076
15077 fi
15078 done
15079
15080 else
15081
15082 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
15083 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
15084 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
15085 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088
15089
15090
15091 ac_ext=cc
15092 ac_cpp='$CXXCPP $CPPFLAGS'
15093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15096
15097 cat >conftest.$ac_ext <<_ACEOF
15098 #line $LINENO "configure"
15099 /* confdefs.h. */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 #include <math.h>
15105 #ifdef HAVE_IEEEFP_H
15106 #include <ieeefp.h>
15107 #endif
15108
15109 int
15110 main ()
15111 {
15112 _sqrtf(0);
15113 ;
15114 return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15119 (eval $ac_compile) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
15123 { ac_try='test -s conftest.$ac_objext'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 glibcxx_cv_func__sqrtf_use=yes
15130 else
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134 glibcxx_cv_func__sqrtf_use=no
15135 fi
15136 rm -f conftest.$ac_objext conftest.$ac_ext
15137 ac_ext=c
15138 ac_cpp='$CPP $CPPFLAGS'
15139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15142
15143
15144 fi
15145
15146 fi
15147 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
15148 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
15149
15150 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
15151
15152 for ac_func in _sqrtf
15153 do
15154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15155 echo "$as_me:$LINENO: checking for $ac_func" >&5
15156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15157 if eval "test \"\${$as_ac_var+set}\" = set"; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160 if test x$gcc_no_link = xyes; then
15161 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15162 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15163 { (exit 1); exit 1; }; }
15164 fi
15165 cat >conftest.$ac_ext <<_ACEOF
15166 #line $LINENO "configure"
15167 /* confdefs.h. */
15168 _ACEOF
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h. */
15172 /* System header to define __stub macros and hopefully few prototypes,
15173 which can conflict with char $ac_func (); below.
15174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15175 <limits.h> exists even on freestanding compilers. */
15176 #ifdef __STDC__
15177 # include <limits.h>
15178 #else
15179 # include <assert.h>
15180 #endif
15181 /* Override any gcc2 internal prototype to avoid an error. */
15182 #ifdef __cplusplus
15183 extern "C"
15184 {
15185 #endif
15186 /* We use char because int might match the return type of a gcc2
15187 builtin and then its argument prototype would still apply. */
15188 char $ac_func ();
15189 /* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15193 choke me
15194 #else
15195 char (*f) () = $ac_func;
15196 #endif
15197 #ifdef __cplusplus
15198 }
15199 #endif
15200
15201 int
15202 main ()
15203 {
15204 return f != $ac_func;
15205 ;
15206 return 0;
15207 }
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15211 (eval $ac_link) 2>&5
15212 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -s conftest$ac_exeext'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15221 eval "$as_ac_var=yes"
15222 else
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226 eval "$as_ac_var=no"
15227 fi
15228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15229 fi
15230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15232 if test `eval echo '${'$as_ac_var'}'` = yes; then
15233 cat >>confdefs.h <<_ACEOF
15234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15235 _ACEOF
15236
15237 fi
15238 done
15239
15240 fi
15241 fi
15242
15243
15244
15245 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
15246 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
15247 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
15248 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15250 else
15251
15252
15253
15254 ac_ext=cc
15255 ac_cpp='$CXXCPP $CPPFLAGS'
15256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15259
15260 cat >conftest.$ac_ext <<_ACEOF
15261 #line $LINENO "configure"
15262 /* confdefs.h. */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15267 #include <math.h>
15268 int
15269 main ()
15270 {
15271 sincosf(0, 0, 0);
15272 ;
15273 return 0;
15274 }
15275 _ACEOF
15276 rm -f conftest.$ac_objext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15278 (eval $ac_compile) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } &&
15282 { ac_try='test -s conftest.$ac_objext'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 glibcxx_cv_func_sincosf_use=yes
15289 else
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 glibcxx_cv_func_sincosf_use=no
15294 fi
15295 rm -f conftest.$ac_objext conftest.$ac_ext
15296 ac_ext=c
15297 ac_cpp='$CPP $CPPFLAGS'
15298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15301
15302
15303 fi
15304
15305 fi
15306 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
15307 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
15308
15309 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15310
15311 for ac_func in sincosf
15312 do
15313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15314 echo "$as_me:$LINENO: checking for $ac_func" >&5
15315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15316 if eval "test \"\${$as_ac_var+set}\" = set"; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319 if test x$gcc_no_link = xyes; then
15320 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15321 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15322 { (exit 1); exit 1; }; }
15323 fi
15324 cat >conftest.$ac_ext <<_ACEOF
15325 #line $LINENO "configure"
15326 /* confdefs.h. */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15331 /* System header to define __stub macros and hopefully few prototypes,
15332 which can conflict with char $ac_func (); below.
15333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15334 <limits.h> exists even on freestanding compilers. */
15335 #ifdef __STDC__
15336 # include <limits.h>
15337 #else
15338 # include <assert.h>
15339 #endif
15340 /* Override any gcc2 internal prototype to avoid an error. */
15341 #ifdef __cplusplus
15342 extern "C"
15343 {
15344 #endif
15345 /* We use char because int might match the return type of a gcc2
15346 builtin and then its argument prototype would still apply. */
15347 char $ac_func ();
15348 /* The GNU C library defines this for functions which it implements
15349 to always fail with ENOSYS. Some functions are actually named
15350 something starting with __ and the normal name is an alias. */
15351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15352 choke me
15353 #else
15354 char (*f) () = $ac_func;
15355 #endif
15356 #ifdef __cplusplus
15357 }
15358 #endif
15359
15360 int
15361 main ()
15362 {
15363 return f != $ac_func;
15364 ;
15365 return 0;
15366 }
15367 _ACEOF
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370 (eval $ac_link) 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -s conftest$ac_exeext'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380 eval "$as_ac_var=yes"
15381 else
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15384
15385 eval "$as_ac_var=no"
15386 fi
15387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15388 fi
15389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15391 if test `eval echo '${'$as_ac_var'}'` = yes; then
15392 cat >>confdefs.h <<_ACEOF
15393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15394 _ACEOF
15395
15396 fi
15397 done
15398
15399 else
15400
15401 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
15402 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
15403 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15404 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407
15408
15409
15410 ac_ext=cc
15411 ac_cpp='$CXXCPP $CPPFLAGS'
15412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15415
15416 cat >conftest.$ac_ext <<_ACEOF
15417 #line $LINENO "configure"
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 #include <math.h>
15424 int
15425 main ()
15426 {
15427 _sincosf(0, 0, 0);
15428 ;
15429 return 0;
15430 }
15431 _ACEOF
15432 rm -f conftest.$ac_objext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15434 (eval $ac_compile) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 glibcxx_cv_func__sincosf_use=yes
15445 else
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449 glibcxx_cv_func__sincosf_use=no
15450 fi
15451 rm -f conftest.$ac_objext conftest.$ac_ext
15452 ac_ext=c
15453 ac_cpp='$CPP $CPPFLAGS'
15454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15457
15458
15459 fi
15460
15461 fi
15462 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
15463 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
15464
15465 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15466
15467 for ac_func in _sincosf
15468 do
15469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15470 echo "$as_me:$LINENO: checking for $ac_func" >&5
15471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15472 if eval "test \"\${$as_ac_var+set}\" = set"; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475 if test x$gcc_no_link = xyes; then
15476 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15477 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15478 { (exit 1); exit 1; }; }
15479 fi
15480 cat >conftest.$ac_ext <<_ACEOF
15481 #line $LINENO "configure"
15482 /* confdefs.h. */
15483 _ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h. */
15487 /* System header to define __stub macros and hopefully few prototypes,
15488 which can conflict with char $ac_func (); below.
15489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15490 <limits.h> exists even on freestanding compilers. */
15491 #ifdef __STDC__
15492 # include <limits.h>
15493 #else
15494 # include <assert.h>
15495 #endif
15496 /* Override any gcc2 internal prototype to avoid an error. */
15497 #ifdef __cplusplus
15498 extern "C"
15499 {
15500 #endif
15501 /* We use char because int might match the return type of a gcc2
15502 builtin and then its argument prototype would still apply. */
15503 char $ac_func ();
15504 /* The GNU C library defines this for functions which it implements
15505 to always fail with ENOSYS. Some functions are actually named
15506 something starting with __ and the normal name is an alias. */
15507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15508 choke me
15509 #else
15510 char (*f) () = $ac_func;
15511 #endif
15512 #ifdef __cplusplus
15513 }
15514 #endif
15515
15516 int
15517 main ()
15518 {
15519 return f != $ac_func;
15520 ;
15521 return 0;
15522 }
15523 _ACEOF
15524 rm -f conftest.$ac_objext conftest$ac_exeext
15525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15526 (eval $ac_link) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -s conftest$ac_exeext'
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 eval "$as_ac_var=yes"
15537 else
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15540
15541 eval "$as_ac_var=no"
15542 fi
15543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15544 fi
15545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15547 if test `eval echo '${'$as_ac_var'}'` = yes; then
15548 cat >>confdefs.h <<_ACEOF
15549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15550 _ACEOF
15551
15552 fi
15553 done
15554
15555 fi
15556 fi
15557
15558
15559
15560 echo "$as_me:$LINENO: checking for finitef declaration" >&5
15561 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
15562 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15563 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15565 else
15566
15567
15568
15569 ac_ext=cc
15570 ac_cpp='$CXXCPP $CPPFLAGS'
15571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15574
15575 cat >conftest.$ac_ext <<_ACEOF
15576 #line $LINENO "configure"
15577 /* confdefs.h. */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 #include <math.h>
15583 #ifdef HAVE_IEEEFP_H
15584 #include <ieeefp.h>
15585 #endif
15586
15587 int
15588 main ()
15589 {
15590 finitef(0);
15591 ;
15592 return 0;
15593 }
15594 _ACEOF
15595 rm -f conftest.$ac_objext
15596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15597 (eval $ac_compile) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
15601 { ac_try='test -s conftest.$ac_objext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 glibcxx_cv_func_finitef_use=yes
15608 else
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612 glibcxx_cv_func_finitef_use=no
15613 fi
15614 rm -f conftest.$ac_objext conftest.$ac_ext
15615 ac_ext=c
15616 ac_cpp='$CPP $CPPFLAGS'
15617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15620
15621
15622 fi
15623
15624 fi
15625 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
15626 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
15627
15628 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15629
15630 for ac_func in finitef
15631 do
15632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 echo "$as_me:$LINENO: checking for $ac_func" >&5
15634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15635 if eval "test \"\${$as_ac_var+set}\" = set"; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638 if test x$gcc_no_link = xyes; then
15639 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15640 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15641 { (exit 1); exit 1; }; }
15642 fi
15643 cat >conftest.$ac_ext <<_ACEOF
15644 #line $LINENO "configure"
15645 /* confdefs.h. */
15646 _ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h. */
15650 /* System header to define __stub macros and hopefully few prototypes,
15651 which can conflict with char $ac_func (); below.
15652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15653 <limits.h> exists even on freestanding compilers. */
15654 #ifdef __STDC__
15655 # include <limits.h>
15656 #else
15657 # include <assert.h>
15658 #endif
15659 /* Override any gcc2 internal prototype to avoid an error. */
15660 #ifdef __cplusplus
15661 extern "C"
15662 {
15663 #endif
15664 /* We use char because int might match the return type of a gcc2
15665 builtin and then its argument prototype would still apply. */
15666 char $ac_func ();
15667 /* The GNU C library defines this for functions which it implements
15668 to always fail with ENOSYS. Some functions are actually named
15669 something starting with __ and the normal name is an alias. */
15670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15671 choke me
15672 #else
15673 char (*f) () = $ac_func;
15674 #endif
15675 #ifdef __cplusplus
15676 }
15677 #endif
15678
15679 int
15680 main ()
15681 {
15682 return f != $ac_func;
15683 ;
15684 return 0;
15685 }
15686 _ACEOF
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15689 (eval $ac_link) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } &&
15693 { ac_try='test -s conftest$ac_exeext'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15696 ac_status=$?
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }; then
15699 eval "$as_ac_var=yes"
15700 else
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 eval "$as_ac_var=no"
15705 fi
15706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15707 fi
15708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15710 if test `eval echo '${'$as_ac_var'}'` = yes; then
15711 cat >>confdefs.h <<_ACEOF
15712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15713 _ACEOF
15714
15715 fi
15716 done
15717
15718 else
15719
15720 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
15721 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
15722 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15723 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 else
15726
15727
15728
15729 ac_ext=cc
15730 ac_cpp='$CXXCPP $CPPFLAGS'
15731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15734
15735 cat >conftest.$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15737 /* confdefs.h. */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 #include <math.h>
15743 #ifdef HAVE_IEEEFP_H
15744 #include <ieeefp.h>
15745 #endif
15746
15747 int
15748 main ()
15749 {
15750 _finitef(0);
15751 ;
15752 return 0;
15753 }
15754 _ACEOF
15755 rm -f conftest.$ac_objext
15756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15757 (eval $ac_compile) 2>&5
15758 ac_status=$?
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
15761 { ac_try='test -s conftest.$ac_objext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 glibcxx_cv_func__finitef_use=yes
15768 else
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772 glibcxx_cv_func__finitef_use=no
15773 fi
15774 rm -f conftest.$ac_objext conftest.$ac_ext
15775 ac_ext=c
15776 ac_cpp='$CPP $CPPFLAGS'
15777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15780
15781
15782 fi
15783
15784 fi
15785 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
15786 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
15787
15788 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
15789
15790 for ac_func in _finitef
15791 do
15792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15793 echo "$as_me:$LINENO: checking for $ac_func" >&5
15794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15795 if eval "test \"\${$as_ac_var+set}\" = set"; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 else
15798 if test x$gcc_no_link = xyes; then
15799 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15801 { (exit 1); exit 1; }; }
15802 fi
15803 cat >conftest.$ac_ext <<_ACEOF
15804 #line $LINENO "configure"
15805 /* confdefs.h. */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 /* System header to define __stub macros and hopefully few prototypes,
15811 which can conflict with char $ac_func (); below.
15812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15813 <limits.h> exists even on freestanding compilers. */
15814 #ifdef __STDC__
15815 # include <limits.h>
15816 #else
15817 # include <assert.h>
15818 #endif
15819 /* Override any gcc2 internal prototype to avoid an error. */
15820 #ifdef __cplusplus
15821 extern "C"
15822 {
15823 #endif
15824 /* We use char because int might match the return type of a gcc2
15825 builtin and then its argument prototype would still apply. */
15826 char $ac_func ();
15827 /* The GNU C library defines this for functions which it implements
15828 to always fail with ENOSYS. Some functions are actually named
15829 something starting with __ and the normal name is an alias. */
15830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15831 choke me
15832 #else
15833 char (*f) () = $ac_func;
15834 #endif
15835 #ifdef __cplusplus
15836 }
15837 #endif
15838
15839 int
15840 main ()
15841 {
15842 return f != $ac_func;
15843 ;
15844 return 0;
15845 }
15846 _ACEOF
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15849 (eval $ac_link) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -s conftest$ac_exeext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 eval "$as_ac_var=yes"
15860 else
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864 eval "$as_ac_var=no"
15865 fi
15866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15867 fi
15868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15870 if test `eval echo '${'$as_ac_var'}'` = yes; then
15871 cat >>confdefs.h <<_ACEOF
15872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15873 _ACEOF
15874
15875 fi
15876 done
15877
15878 fi
15879 fi
15880
15881
15882
15883 echo "$as_me:$LINENO: checking for long double trig functions" >&5
15884 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
15885 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 else
15888
15889
15890
15891 ac_ext=cc
15892 ac_cpp='$CXXCPP $CPPFLAGS'
15893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15896
15897 cat >conftest.$ac_ext <<_ACEOF
15898 #line $LINENO "configure"
15899 /* confdefs.h. */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 #include <math.h>
15905 int
15906 main ()
15907 {
15908 `for x in acosl asinl atanl \
15909 cosl sinl tanl \
15910 coshl sinhl tanhl; do echo "$x (0);"; done`
15911 ;
15912 return 0;
15913 }
15914 _ACEOF
15915 rm -f conftest.$ac_objext
15916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15917 (eval $ac_compile) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -s conftest.$ac_objext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 glibcxx_cv_func_long_double_trig_use=yes
15928 else
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15931
15932 glibcxx_cv_func_long_double_trig_use=no
15933 fi
15934 rm -f conftest.$ac_objext conftest.$ac_ext
15935 ac_ext=c
15936 ac_cpp='$CPP $CPPFLAGS'
15937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15940
15941 fi
15942
15943 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
15944 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
15945 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955 for ac_func in acosl asinl atanl \
15956 cosl sinl tanl \
15957 coshl sinhl tanhl
15958 do
15959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15960 echo "$as_me:$LINENO: checking for $ac_func" >&5
15961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15962 if eval "test \"\${$as_ac_var+set}\" = set"; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965 if test x$gcc_no_link = xyes; then
15966 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15968 { (exit 1); exit 1; }; }
15969 fi
15970 cat >conftest.$ac_ext <<_ACEOF
15971 #line $LINENO "configure"
15972 /* confdefs.h. */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15977 /* System header to define __stub macros and hopefully few prototypes,
15978 which can conflict with char $ac_func (); below.
15979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15980 <limits.h> exists even on freestanding compilers. */
15981 #ifdef __STDC__
15982 # include <limits.h>
15983 #else
15984 # include <assert.h>
15985 #endif
15986 /* Override any gcc2 internal prototype to avoid an error. */
15987 #ifdef __cplusplus
15988 extern "C"
15989 {
15990 #endif
15991 /* We use char because int might match the return type of a gcc2
15992 builtin and then its argument prototype would still apply. */
15993 char $ac_func ();
15994 /* The GNU C library defines this for functions which it implements
15995 to always fail with ENOSYS. Some functions are actually named
15996 something starting with __ and the normal name is an alias. */
15997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15998 choke me
15999 #else
16000 char (*f) () = $ac_func;
16001 #endif
16002 #ifdef __cplusplus
16003 }
16004 #endif
16005
16006 int
16007 main ()
16008 {
16009 return f != $ac_func;
16010 ;
16011 return 0;
16012 }
16013 _ACEOF
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -s conftest$ac_exeext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 eval "$as_ac_var=yes"
16027 else
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16030
16031 eval "$as_ac_var=no"
16032 fi
16033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16034 fi
16035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16037 if test `eval echo '${'$as_ac_var'}'` = yes; then
16038 cat >>confdefs.h <<_ACEOF
16039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16040 _ACEOF
16041
16042 fi
16043 done
16044
16045 fi
16046
16047
16048 echo "$as_me:$LINENO: checking for long double round functions" >&5
16049 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
16050 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053
16054
16055
16056 ac_ext=cc
16057 ac_cpp='$CXXCPP $CPPFLAGS'
16058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16061
16062 cat >conftest.$ac_ext <<_ACEOF
16063 #line $LINENO "configure"
16064 /* confdefs.h. */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 #include <math.h>
16070 int
16071 main ()
16072 {
16073 `for x in ceill floorl; do echo "$x (0);"; done`
16074 ;
16075 return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest.$ac_objext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16080 (eval $ac_compile) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
16084 { ac_try='test -s conftest.$ac_objext'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 glibcxx_cv_func_long_double_round_use=yes
16091 else
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095 glibcxx_cv_func_long_double_round_use=no
16096 fi
16097 rm -f conftest.$ac_objext conftest.$ac_ext
16098 ac_ext=c
16099 ac_cpp='$CPP $CPPFLAGS'
16100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16103
16104 fi
16105
16106 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
16107 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
16108 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
16109
16110
16111 for ac_func in ceill floorl
16112 do
16113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16114 echo "$as_me:$LINENO: checking for $ac_func" >&5
16115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16116 if eval "test \"\${$as_ac_var+set}\" = set"; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 else
16119 if test x$gcc_no_link = xyes; then
16120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16122 { (exit 1); exit 1; }; }
16123 fi
16124 cat >conftest.$ac_ext <<_ACEOF
16125 #line $LINENO "configure"
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 /* System header to define __stub macros and hopefully few prototypes,
16132 which can conflict with char $ac_func (); below.
16133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16134 <limits.h> exists even on freestanding compilers. */
16135 #ifdef __STDC__
16136 # include <limits.h>
16137 #else
16138 # include <assert.h>
16139 #endif
16140 /* Override any gcc2 internal prototype to avoid an error. */
16141 #ifdef __cplusplus
16142 extern "C"
16143 {
16144 #endif
16145 /* We use char because int might match the return type of a gcc2
16146 builtin and then its argument prototype would still apply. */
16147 char $ac_func ();
16148 /* The GNU C library defines this for functions which it implements
16149 to always fail with ENOSYS. Some functions are actually named
16150 something starting with __ and the normal name is an alias. */
16151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16152 choke me
16153 #else
16154 char (*f) () = $ac_func;
16155 #endif
16156 #ifdef __cplusplus
16157 }
16158 #endif
16159
16160 int
16161 main ()
16162 {
16163 return f != $ac_func;
16164 ;
16165 return 0;
16166 }
16167 _ACEOF
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16170 (eval $ac_link) 2>&5
16171 ac_status=$?
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -s conftest$ac_exeext'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
16180 eval "$as_ac_var=yes"
16181 else
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16184
16185 eval "$as_ac_var=no"
16186 fi
16187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16188 fi
16189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16191 if test `eval echo '${'$as_ac_var'}'` = yes; then
16192 cat >>confdefs.h <<_ACEOF
16193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16194 _ACEOF
16195
16196 fi
16197 done
16198
16199 fi
16200
16201
16202
16203 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
16204 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
16205 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
16206 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 else
16209
16210
16211
16212 ac_ext=cc
16213 ac_cpp='$CXXCPP $CPPFLAGS'
16214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16217
16218 cat >conftest.$ac_ext <<_ACEOF
16219 #line $LINENO "configure"
16220 /* confdefs.h. */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 #include <math.h>
16226 #ifdef HAVE_IEEEFP_H
16227 #include <ieeefp.h>
16228 #endif
16229
16230 int
16231 main ()
16232 {
16233 isnanl(0);
16234 ;
16235 return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest.$ac_objext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16240 (eval $ac_compile) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
16244 { ac_try='test -s conftest.$ac_objext'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 glibcxx_cv_func_isnanl_use=yes
16251 else
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16254
16255 glibcxx_cv_func_isnanl_use=no
16256 fi
16257 rm -f conftest.$ac_objext conftest.$ac_ext
16258 ac_ext=c
16259 ac_cpp='$CPP $CPPFLAGS'
16260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16263
16264
16265 fi
16266
16267 fi
16268 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
16269 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
16270
16271 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
16272
16273 for ac_func in isnanl
16274 do
16275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16276 echo "$as_me:$LINENO: checking for $ac_func" >&5
16277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16278 if eval "test \"\${$as_ac_var+set}\" = set"; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281 if test x$gcc_no_link = xyes; then
16282 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16284 { (exit 1); exit 1; }; }
16285 fi
16286 cat >conftest.$ac_ext <<_ACEOF
16287 #line $LINENO "configure"
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 /* System header to define __stub macros and hopefully few prototypes,
16294 which can conflict with char $ac_func (); below.
16295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16296 <limits.h> exists even on freestanding compilers. */
16297 #ifdef __STDC__
16298 # include <limits.h>
16299 #else
16300 # include <assert.h>
16301 #endif
16302 /* Override any gcc2 internal prototype to avoid an error. */
16303 #ifdef __cplusplus
16304 extern "C"
16305 {
16306 #endif
16307 /* We use char because int might match the return type of a gcc2
16308 builtin and then its argument prototype would still apply. */
16309 char $ac_func ();
16310 /* The GNU C library defines this for functions which it implements
16311 to always fail with ENOSYS. Some functions are actually named
16312 something starting with __ and the normal name is an alias. */
16313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16314 choke me
16315 #else
16316 char (*f) () = $ac_func;
16317 #endif
16318 #ifdef __cplusplus
16319 }
16320 #endif
16321
16322 int
16323 main ()
16324 {
16325 return f != $ac_func;
16326 ;
16327 return 0;
16328 }
16329 _ACEOF
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16332 (eval $ac_link) 2>&5
16333 ac_status=$?
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -s conftest$ac_exeext'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 eval "$as_ac_var=yes"
16343 else
16344 echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347 eval "$as_ac_var=no"
16348 fi
16349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16350 fi
16351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16353 if test `eval echo '${'$as_ac_var'}'` = yes; then
16354 cat >>confdefs.h <<_ACEOF
16355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16356 _ACEOF
16357
16358 fi
16359 done
16360
16361 else
16362
16363 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
16364 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
16365 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16366 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 else
16369
16370
16371
16372 ac_ext=cc
16373 ac_cpp='$CXXCPP $CPPFLAGS'
16374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16377
16378 cat >conftest.$ac_ext <<_ACEOF
16379 #line $LINENO "configure"
16380 /* confdefs.h. */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16385 #include <math.h>
16386 #ifdef HAVE_IEEEFP_H
16387 #include <ieeefp.h>
16388 #endif
16389
16390 int
16391 main ()
16392 {
16393 _isnanl(0);
16394 ;
16395 return 0;
16396 }
16397 _ACEOF
16398 rm -f conftest.$ac_objext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16400 (eval $ac_compile) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -s conftest.$ac_objext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 glibcxx_cv_func__isnanl_use=yes
16411 else
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 glibcxx_cv_func__isnanl_use=no
16416 fi
16417 rm -f conftest.$ac_objext conftest.$ac_ext
16418 ac_ext=c
16419 ac_cpp='$CPP $CPPFLAGS'
16420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16423
16424
16425 fi
16426
16427 fi
16428 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
16429 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
16430
16431 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16432
16433 for ac_func in _isnanl
16434 do
16435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16436 echo "$as_me:$LINENO: checking for $ac_func" >&5
16437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16438 if eval "test \"\${$as_ac_var+set}\" = set"; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441 if test x$gcc_no_link = xyes; then
16442 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16444 { (exit 1); exit 1; }; }
16445 fi
16446 cat >conftest.$ac_ext <<_ACEOF
16447 #line $LINENO "configure"
16448 /* confdefs.h. */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 /* System header to define __stub macros and hopefully few prototypes,
16454 which can conflict with char $ac_func (); below.
16455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16456 <limits.h> exists even on freestanding compilers. */
16457 #ifdef __STDC__
16458 # include <limits.h>
16459 #else
16460 # include <assert.h>
16461 #endif
16462 /* Override any gcc2 internal prototype to avoid an error. */
16463 #ifdef __cplusplus
16464 extern "C"
16465 {
16466 #endif
16467 /* We use char because int might match the return type of a gcc2
16468 builtin and then its argument prototype would still apply. */
16469 char $ac_func ();
16470 /* The GNU C library defines this for functions which it implements
16471 to always fail with ENOSYS. Some functions are actually named
16472 something starting with __ and the normal name is an alias. */
16473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16474 choke me
16475 #else
16476 char (*f) () = $ac_func;
16477 #endif
16478 #ifdef __cplusplus
16479 }
16480 #endif
16481
16482 int
16483 main ()
16484 {
16485 return f != $ac_func;
16486 ;
16487 return 0;
16488 }
16489 _ACEOF
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16492 (eval $ac_link) 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -s conftest$ac_exeext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 eval "$as_ac_var=yes"
16503 else
16504 echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507 eval "$as_ac_var=no"
16508 fi
16509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16510 fi
16511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16513 if test `eval echo '${'$as_ac_var'}'` = yes; then
16514 cat >>confdefs.h <<_ACEOF
16515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16516 _ACEOF
16517
16518 fi
16519 done
16520
16521 fi
16522 fi
16523
16524
16525
16526 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
16527 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
16528 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16529 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 else
16532
16533
16534
16535 ac_ext=cc
16536 ac_cpp='$CXXCPP $CPPFLAGS'
16537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16540
16541 cat >conftest.$ac_ext <<_ACEOF
16542 #line $LINENO "configure"
16543 /* confdefs.h. */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548 #include <math.h>
16549 #ifdef HAVE_IEEEFP_H
16550 #include <ieeefp.h>
16551 #endif
16552
16553 int
16554 main ()
16555 {
16556 isinfl(0);
16557 ;
16558 return 0;
16559 }
16560 _ACEOF
16561 rm -f conftest.$ac_objext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16563 (eval $ac_compile) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try='test -s conftest.$ac_objext'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 glibcxx_cv_func_isinfl_use=yes
16574 else
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578 glibcxx_cv_func_isinfl_use=no
16579 fi
16580 rm -f conftest.$ac_objext conftest.$ac_ext
16581 ac_ext=c
16582 ac_cpp='$CPP $CPPFLAGS'
16583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16586
16587
16588 fi
16589
16590 fi
16591 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
16592 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
16593
16594 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16595
16596 for ac_func in isinfl
16597 do
16598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16599 echo "$as_me:$LINENO: checking for $ac_func" >&5
16600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16601 if eval "test \"\${$as_ac_var+set}\" = set"; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604 if test x$gcc_no_link = xyes; then
16605 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16606 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16607 { (exit 1); exit 1; }; }
16608 fi
16609 cat >conftest.$ac_ext <<_ACEOF
16610 #line $LINENO "configure"
16611 /* confdefs.h. */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 /* System header to define __stub macros and hopefully few prototypes,
16617 which can conflict with char $ac_func (); below.
16618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16619 <limits.h> exists even on freestanding compilers. */
16620 #ifdef __STDC__
16621 # include <limits.h>
16622 #else
16623 # include <assert.h>
16624 #endif
16625 /* Override any gcc2 internal prototype to avoid an error. */
16626 #ifdef __cplusplus
16627 extern "C"
16628 {
16629 #endif
16630 /* We use char because int might match the return type of a gcc2
16631 builtin and then its argument prototype would still apply. */
16632 char $ac_func ();
16633 /* The GNU C library defines this for functions which it implements
16634 to always fail with ENOSYS. Some functions are actually named
16635 something starting with __ and the normal name is an alias. */
16636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16637 choke me
16638 #else
16639 char (*f) () = $ac_func;
16640 #endif
16641 #ifdef __cplusplus
16642 }
16643 #endif
16644
16645 int
16646 main ()
16647 {
16648 return f != $ac_func;
16649 ;
16650 return 0;
16651 }
16652 _ACEOF
16653 rm -f conftest.$ac_objext conftest$ac_exeext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16655 (eval $ac_link) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -s conftest$ac_exeext'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 eval "$as_ac_var=yes"
16666 else
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670 eval "$as_ac_var=no"
16671 fi
16672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16673 fi
16674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16676 if test `eval echo '${'$as_ac_var'}'` = yes; then
16677 cat >>confdefs.h <<_ACEOF
16678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16679 _ACEOF
16680
16681 fi
16682 done
16683
16684 else
16685
16686 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
16687 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
16688 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16689 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692
16693
16694
16695 ac_ext=cc
16696 ac_cpp='$CXXCPP $CPPFLAGS'
16697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16700
16701 cat >conftest.$ac_ext <<_ACEOF
16702 #line $LINENO "configure"
16703 /* confdefs.h. */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708 #include <math.h>
16709 #ifdef HAVE_IEEEFP_H
16710 #include <ieeefp.h>
16711 #endif
16712
16713 int
16714 main ()
16715 {
16716 _isinfl(0);
16717 ;
16718 return 0;
16719 }
16720 _ACEOF
16721 rm -f conftest.$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723 (eval $ac_compile) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -s conftest.$ac_objext'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 glibcxx_cv_func__isinfl_use=yes
16734 else
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16737
16738 glibcxx_cv_func__isinfl_use=no
16739 fi
16740 rm -f conftest.$ac_objext conftest.$ac_ext
16741 ac_ext=c
16742 ac_cpp='$CPP $CPPFLAGS'
16743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16746
16747
16748 fi
16749
16750 fi
16751 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
16752 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
16753
16754 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16755
16756 for ac_func in _isinfl
16757 do
16758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16759 echo "$as_me:$LINENO: checking for $ac_func" >&5
16760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16761 if eval "test \"\${$as_ac_var+set}\" = set"; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764 if test x$gcc_no_link = xyes; then
16765 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16766 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16767 { (exit 1); exit 1; }; }
16768 fi
16769 cat >conftest.$ac_ext <<_ACEOF
16770 #line $LINENO "configure"
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 /* System header to define __stub macros and hopefully few prototypes,
16777 which can conflict with char $ac_func (); below.
16778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16779 <limits.h> exists even on freestanding compilers. */
16780 #ifdef __STDC__
16781 # include <limits.h>
16782 #else
16783 # include <assert.h>
16784 #endif
16785 /* Override any gcc2 internal prototype to avoid an error. */
16786 #ifdef __cplusplus
16787 extern "C"
16788 {
16789 #endif
16790 /* We use char because int might match the return type of a gcc2
16791 builtin and then its argument prototype would still apply. */
16792 char $ac_func ();
16793 /* The GNU C library defines this for functions which it implements
16794 to always fail with ENOSYS. Some functions are actually named
16795 something starting with __ and the normal name is an alias. */
16796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16797 choke me
16798 #else
16799 char (*f) () = $ac_func;
16800 #endif
16801 #ifdef __cplusplus
16802 }
16803 #endif
16804
16805 int
16806 main ()
16807 {
16808 return f != $ac_func;
16809 ;
16810 return 0;
16811 }
16812 _ACEOF
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16815 (eval $ac_link) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -s conftest$ac_exeext'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16825 eval "$as_ac_var=yes"
16826 else
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16829
16830 eval "$as_ac_var=no"
16831 fi
16832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16833 fi
16834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16836 if test `eval echo '${'$as_ac_var'}'` = yes; then
16837 cat >>confdefs.h <<_ACEOF
16838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16839 _ACEOF
16840
16841 fi
16842 done
16843
16844 fi
16845 fi
16846
16847
16848
16849 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
16850 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
16851 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16852 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16855
16856
16857
16858 ac_ext=cc
16859 ac_cpp='$CXXCPP $CPPFLAGS'
16860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16863
16864 cat >conftest.$ac_ext <<_ACEOF
16865 #line $LINENO "configure"
16866 /* confdefs.h. */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h. */
16871 #include <math.h>
16872 int
16873 main ()
16874 {
16875 copysignl(0, 0);
16876 ;
16877 return 0;
16878 }
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882 (eval $ac_compile) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -s conftest.$ac_objext'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 glibcxx_cv_func_copysignl_use=yes
16893 else
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 glibcxx_cv_func_copysignl_use=no
16898 fi
16899 rm -f conftest.$ac_objext conftest.$ac_ext
16900 ac_ext=c
16901 ac_cpp='$CPP $CPPFLAGS'
16902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16905
16906
16907 fi
16908
16909 fi
16910 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
16911 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
16912
16913 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16914
16915 for ac_func in copysignl
16916 do
16917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16918 echo "$as_me:$LINENO: checking for $ac_func" >&5
16919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16920 if eval "test \"\${$as_ac_var+set}\" = set"; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 else
16923 if test x$gcc_no_link = xyes; then
16924 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16925 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16926 { (exit 1); exit 1; }; }
16927 fi
16928 cat >conftest.$ac_ext <<_ACEOF
16929 #line $LINENO "configure"
16930 /* confdefs.h. */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 /* System header to define __stub macros and hopefully few prototypes,
16936 which can conflict with char $ac_func (); below.
16937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16938 <limits.h> exists even on freestanding compilers. */
16939 #ifdef __STDC__
16940 # include <limits.h>
16941 #else
16942 # include <assert.h>
16943 #endif
16944 /* Override any gcc2 internal prototype to avoid an error. */
16945 #ifdef __cplusplus
16946 extern "C"
16947 {
16948 #endif
16949 /* We use char because int might match the return type of a gcc2
16950 builtin and then its argument prototype would still apply. */
16951 char $ac_func ();
16952 /* The GNU C library defines this for functions which it implements
16953 to always fail with ENOSYS. Some functions are actually named
16954 something starting with __ and the normal name is an alias. */
16955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16956 choke me
16957 #else
16958 char (*f) () = $ac_func;
16959 #endif
16960 #ifdef __cplusplus
16961 }
16962 #endif
16963
16964 int
16965 main ()
16966 {
16967 return f != $ac_func;
16968 ;
16969 return 0;
16970 }
16971 _ACEOF
16972 rm -f conftest.$ac_objext conftest$ac_exeext
16973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16974 (eval $ac_link) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try='test -s conftest$ac_exeext'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 eval "$as_ac_var=yes"
16985 else
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 eval "$as_ac_var=no"
16990 fi
16991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16992 fi
16993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16995 if test `eval echo '${'$as_ac_var'}'` = yes; then
16996 cat >>confdefs.h <<_ACEOF
16997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16998 _ACEOF
16999
17000 fi
17001 done
17002
17003 else
17004
17005 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
17006 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
17007 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
17008 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 else
17011
17012
17013
17014 ac_ext=cc
17015 ac_cpp='$CXXCPP $CPPFLAGS'
17016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17019
17020 cat >conftest.$ac_ext <<_ACEOF
17021 #line $LINENO "configure"
17022 /* confdefs.h. */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 #include <math.h>
17028 int
17029 main ()
17030 {
17031 _copysignl(0, 0);
17032 ;
17033 return 0;
17034 }
17035 _ACEOF
17036 rm -f conftest.$ac_objext
17037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17038 (eval $ac_compile) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -s conftest.$ac_objext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 glibcxx_cv_func__copysignl_use=yes
17049 else
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17052
17053 glibcxx_cv_func__copysignl_use=no
17054 fi
17055 rm -f conftest.$ac_objext conftest.$ac_ext
17056 ac_ext=c
17057 ac_cpp='$CPP $CPPFLAGS'
17058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17061
17062
17063 fi
17064
17065 fi
17066 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
17067 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
17068
17069 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
17070
17071 for ac_func in _copysignl
17072 do
17073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17074 echo "$as_me:$LINENO: checking for $ac_func" >&5
17075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17076 if eval "test \"\${$as_ac_var+set}\" = set"; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079 if test x$gcc_no_link = xyes; then
17080 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17081 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17082 { (exit 1); exit 1; }; }
17083 fi
17084 cat >conftest.$ac_ext <<_ACEOF
17085 #line $LINENO "configure"
17086 /* confdefs.h. */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091 /* System header to define __stub macros and hopefully few prototypes,
17092 which can conflict with char $ac_func (); below.
17093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17094 <limits.h> exists even on freestanding compilers. */
17095 #ifdef __STDC__
17096 # include <limits.h>
17097 #else
17098 # include <assert.h>
17099 #endif
17100 /* Override any gcc2 internal prototype to avoid an error. */
17101 #ifdef __cplusplus
17102 extern "C"
17103 {
17104 #endif
17105 /* We use char because int might match the return type of a gcc2
17106 builtin and then its argument prototype would still apply. */
17107 char $ac_func ();
17108 /* The GNU C library defines this for functions which it implements
17109 to always fail with ENOSYS. Some functions are actually named
17110 something starting with __ and the normal name is an alias. */
17111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17112 choke me
17113 #else
17114 char (*f) () = $ac_func;
17115 #endif
17116 #ifdef __cplusplus
17117 }
17118 #endif
17119
17120 int
17121 main ()
17122 {
17123 return f != $ac_func;
17124 ;
17125 return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext conftest$ac_exeext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130 (eval $ac_link) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -s conftest$ac_exeext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 eval "$as_ac_var=yes"
17141 else
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145 eval "$as_ac_var=no"
17146 fi
17147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17148 fi
17149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17151 if test `eval echo '${'$as_ac_var'}'` = yes; then
17152 cat >>confdefs.h <<_ACEOF
17153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17154 _ACEOF
17155
17156 fi
17157 done
17158
17159 fi
17160 fi
17161
17162
17163
17164 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
17165 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
17166 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
17167 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170
17171
17172
17173 ac_ext=cc
17174 ac_cpp='$CXXCPP $CPPFLAGS'
17175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17178
17179 cat >conftest.$ac_ext <<_ACEOF
17180 #line $LINENO "configure"
17181 /* confdefs.h. */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17186 #include <math.h>
17187 int
17188 main ()
17189 {
17190 atan2l(0, 0);
17191 ;
17192 return 0;
17193 }
17194 _ACEOF
17195 rm -f conftest.$ac_objext
17196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17197 (eval $ac_compile) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } &&
17201 { ac_try='test -s conftest.$ac_objext'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
17207 glibcxx_cv_func_atan2l_use=yes
17208 else
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17211
17212 glibcxx_cv_func_atan2l_use=no
17213 fi
17214 rm -f conftest.$ac_objext conftest.$ac_ext
17215 ac_ext=c
17216 ac_cpp='$CPP $CPPFLAGS'
17217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17220
17221
17222 fi
17223
17224 fi
17225 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
17226 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
17227
17228 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
17229
17230 for ac_func in atan2l
17231 do
17232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17233 echo "$as_me:$LINENO: checking for $ac_func" >&5
17234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17235 if eval "test \"\${$as_ac_var+set}\" = set"; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238 if test x$gcc_no_link = xyes; then
17239 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17240 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17241 { (exit 1); exit 1; }; }
17242 fi
17243 cat >conftest.$ac_ext <<_ACEOF
17244 #line $LINENO "configure"
17245 /* confdefs.h. */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17250 /* System header to define __stub macros and hopefully few prototypes,
17251 which can conflict with char $ac_func (); below.
17252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17253 <limits.h> exists even on freestanding compilers. */
17254 #ifdef __STDC__
17255 # include <limits.h>
17256 #else
17257 # include <assert.h>
17258 #endif
17259 /* Override any gcc2 internal prototype to avoid an error. */
17260 #ifdef __cplusplus
17261 extern "C"
17262 {
17263 #endif
17264 /* We use char because int might match the return type of a gcc2
17265 builtin and then its argument prototype would still apply. */
17266 char $ac_func ();
17267 /* The GNU C library defines this for functions which it implements
17268 to always fail with ENOSYS. Some functions are actually named
17269 something starting with __ and the normal name is an alias. */
17270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17271 choke me
17272 #else
17273 char (*f) () = $ac_func;
17274 #endif
17275 #ifdef __cplusplus
17276 }
17277 #endif
17278
17279 int
17280 main ()
17281 {
17282 return f != $ac_func;
17283 ;
17284 return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289 (eval $ac_link) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -s conftest$ac_exeext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 eval "$as_ac_var=yes"
17300 else
17301 echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17303
17304 eval "$as_ac_var=no"
17305 fi
17306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17307 fi
17308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17310 if test `eval echo '${'$as_ac_var'}'` = yes; then
17311 cat >>confdefs.h <<_ACEOF
17312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17313 _ACEOF
17314
17315 fi
17316 done
17317
17318 else
17319
17320 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
17321 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
17322 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
17323 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326
17327
17328
17329 ac_ext=cc
17330 ac_cpp='$CXXCPP $CPPFLAGS'
17331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17334
17335 cat >conftest.$ac_ext <<_ACEOF
17336 #line $LINENO "configure"
17337 /* confdefs.h. */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h. */
17342 #include <math.h>
17343 int
17344 main ()
17345 {
17346 _atan2l(0, 0);
17347 ;
17348 return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext
17352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17353 (eval $ac_compile) 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -s conftest.$ac_objext'
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; }; then
17363 glibcxx_cv_func__atan2l_use=yes
17364 else
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368 glibcxx_cv_func__atan2l_use=no
17369 fi
17370 rm -f conftest.$ac_objext conftest.$ac_ext
17371 ac_ext=c
17372 ac_cpp='$CPP $CPPFLAGS'
17373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17376
17377
17378 fi
17379
17380 fi
17381 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
17382 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
17383
17384 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17385
17386 for ac_func in _atan2l
17387 do
17388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17389 echo "$as_me:$LINENO: checking for $ac_func" >&5
17390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17391 if eval "test \"\${$as_ac_var+set}\" = set"; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 else
17394 if test x$gcc_no_link = xyes; then
17395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17397 { (exit 1); exit 1; }; }
17398 fi
17399 cat >conftest.$ac_ext <<_ACEOF
17400 #line $LINENO "configure"
17401 /* confdefs.h. */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17406 /* System header to define __stub macros and hopefully few prototypes,
17407 which can conflict with char $ac_func (); below.
17408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17409 <limits.h> exists even on freestanding compilers. */
17410 #ifdef __STDC__
17411 # include <limits.h>
17412 #else
17413 # include <assert.h>
17414 #endif
17415 /* Override any gcc2 internal prototype to avoid an error. */
17416 #ifdef __cplusplus
17417 extern "C"
17418 {
17419 #endif
17420 /* We use char because int might match the return type of a gcc2
17421 builtin and then its argument prototype would still apply. */
17422 char $ac_func ();
17423 /* The GNU C library defines this for functions which it implements
17424 to always fail with ENOSYS. Some functions are actually named
17425 something starting with __ and the normal name is an alias. */
17426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17427 choke me
17428 #else
17429 char (*f) () = $ac_func;
17430 #endif
17431 #ifdef __cplusplus
17432 }
17433 #endif
17434
17435 int
17436 main ()
17437 {
17438 return f != $ac_func;
17439 ;
17440 return 0;
17441 }
17442 _ACEOF
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445 (eval $ac_link) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
17449 { ac_try='test -s conftest$ac_exeext'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 eval "$as_ac_var=yes"
17456 else
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460 eval "$as_ac_var=no"
17461 fi
17462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17463 fi
17464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17466 if test `eval echo '${'$as_ac_var'}'` = yes; then
17467 cat >>confdefs.h <<_ACEOF
17468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17469 _ACEOF
17470
17471 fi
17472 done
17473
17474 fi
17475 fi
17476
17477
17478
17479 echo "$as_me:$LINENO: checking for expl declaration" >&5
17480 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
17481 if test x${glibcxx_cv_func_expl_use+set} != xset; then
17482 if test "${glibcxx_cv_func_expl_use+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485
17486
17487
17488 ac_ext=cc
17489 ac_cpp='$CXXCPP $CPPFLAGS'
17490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17493
17494 cat >conftest.$ac_ext <<_ACEOF
17495 #line $LINENO "configure"
17496 /* confdefs.h. */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501 #include <math.h>
17502 #ifdef HAVE_IEEEFP_H
17503 #include <ieeefp.h>
17504 #endif
17505
17506 int
17507 main ()
17508 {
17509 expl(0);
17510 ;
17511 return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17516 (eval $ac_compile) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
17520 { ac_try='test -s conftest.$ac_objext'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; }; then
17526 glibcxx_cv_func_expl_use=yes
17527 else
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17530
17531 glibcxx_cv_func_expl_use=no
17532 fi
17533 rm -f conftest.$ac_objext conftest.$ac_ext
17534 ac_ext=c
17535 ac_cpp='$CPP $CPPFLAGS'
17536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17539
17540
17541 fi
17542
17543 fi
17544 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
17545 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
17546
17547 if test x$glibcxx_cv_func_expl_use = x"yes"; then
17548
17549 for ac_func in expl
17550 do
17551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17552 echo "$as_me:$LINENO: checking for $ac_func" >&5
17553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17554 if eval "test \"\${$as_ac_var+set}\" = set"; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557 if test x$gcc_no_link = xyes; then
17558 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17559 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17560 { (exit 1); exit 1; }; }
17561 fi
17562 cat >conftest.$ac_ext <<_ACEOF
17563 #line $LINENO "configure"
17564 /* confdefs.h. */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569 /* System header to define __stub macros and hopefully few prototypes,
17570 which can conflict with char $ac_func (); below.
17571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572 <limits.h> exists even on freestanding compilers. */
17573 #ifdef __STDC__
17574 # include <limits.h>
17575 #else
17576 # include <assert.h>
17577 #endif
17578 /* Override any gcc2 internal prototype to avoid an error. */
17579 #ifdef __cplusplus
17580 extern "C"
17581 {
17582 #endif
17583 /* We use char because int might match the return type of a gcc2
17584 builtin and then its argument prototype would still apply. */
17585 char $ac_func ();
17586 /* The GNU C library defines this for functions which it implements
17587 to always fail with ENOSYS. Some functions are actually named
17588 something starting with __ and the normal name is an alias. */
17589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17590 choke me
17591 #else
17592 char (*f) () = $ac_func;
17593 #endif
17594 #ifdef __cplusplus
17595 }
17596 #endif
17597
17598 int
17599 main ()
17600 {
17601 return f != $ac_func;
17602 ;
17603 return 0;
17604 }
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17608 (eval $ac_link) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
17612 { ac_try='test -s conftest$ac_exeext'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 eval "$as_ac_var=yes"
17619 else
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623 eval "$as_ac_var=no"
17624 fi
17625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17626 fi
17627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17629 if test `eval echo '${'$as_ac_var'}'` = yes; then
17630 cat >>confdefs.h <<_ACEOF
17631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17632 _ACEOF
17633
17634 fi
17635 done
17636
17637 else
17638
17639 echo "$as_me:$LINENO: checking for _expl declaration" >&5
17640 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
17641 if test x${glibcxx_cv_func__expl_use+set} != xset; then
17642 if test "${glibcxx_cv_func__expl_use+set}" = set; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17644 else
17645
17646
17647
17648 ac_ext=cc
17649 ac_cpp='$CXXCPP $CPPFLAGS'
17650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17653
17654 cat >conftest.$ac_ext <<_ACEOF
17655 #line $LINENO "configure"
17656 /* confdefs.h. */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 #include <math.h>
17662 #ifdef HAVE_IEEEFP_H
17663 #include <ieeefp.h>
17664 #endif
17665
17666 int
17667 main ()
17668 {
17669 _expl(0);
17670 ;
17671 return 0;
17672 }
17673 _ACEOF
17674 rm -f conftest.$ac_objext
17675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17676 (eval $ac_compile) 2>&5
17677 ac_status=$?
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } &&
17680 { ac_try='test -s conftest.$ac_objext'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 glibcxx_cv_func__expl_use=yes
17687 else
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691 glibcxx_cv_func__expl_use=no
17692 fi
17693 rm -f conftest.$ac_objext conftest.$ac_ext
17694 ac_ext=c
17695 ac_cpp='$CPP $CPPFLAGS'
17696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17699
17700
17701 fi
17702
17703 fi
17704 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
17705 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
17706
17707 if test x$glibcxx_cv_func__expl_use = x"yes"; then
17708
17709 for ac_func in _expl
17710 do
17711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17712 echo "$as_me:$LINENO: checking for $ac_func" >&5
17713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17714 if eval "test \"\${$as_ac_var+set}\" = set"; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717 if test x$gcc_no_link = xyes; then
17718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17720 { (exit 1); exit 1; }; }
17721 fi
17722 cat >conftest.$ac_ext <<_ACEOF
17723 #line $LINENO "configure"
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 /* System header to define __stub macros and hopefully few prototypes,
17730 which can conflict with char $ac_func (); below.
17731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17732 <limits.h> exists even on freestanding compilers. */
17733 #ifdef __STDC__
17734 # include <limits.h>
17735 #else
17736 # include <assert.h>
17737 #endif
17738 /* Override any gcc2 internal prototype to avoid an error. */
17739 #ifdef __cplusplus
17740 extern "C"
17741 {
17742 #endif
17743 /* We use char because int might match the return type of a gcc2
17744 builtin and then its argument prototype would still apply. */
17745 char $ac_func ();
17746 /* The GNU C library defines this for functions which it implements
17747 to always fail with ENOSYS. Some functions are actually named
17748 something starting with __ and the normal name is an alias. */
17749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17750 choke me
17751 #else
17752 char (*f) () = $ac_func;
17753 #endif
17754 #ifdef __cplusplus
17755 }
17756 #endif
17757
17758 int
17759 main ()
17760 {
17761 return f != $ac_func;
17762 ;
17763 return 0;
17764 }
17765 _ACEOF
17766 rm -f conftest.$ac_objext conftest$ac_exeext
17767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17768 (eval $ac_link) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); } &&
17772 { ac_try='test -s conftest$ac_exeext'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 eval "$as_ac_var=yes"
17779 else
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17782
17783 eval "$as_ac_var=no"
17784 fi
17785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17786 fi
17787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17789 if test `eval echo '${'$as_ac_var'}'` = yes; then
17790 cat >>confdefs.h <<_ACEOF
17791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17792 _ACEOF
17793
17794 fi
17795 done
17796
17797 fi
17798 fi
17799
17800
17801
17802 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
17803 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
17804 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17805 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
17806 echo $ECHO_N "(cached) $ECHO_C" >&6
17807 else
17808
17809
17810
17811 ac_ext=cc
17812 ac_cpp='$CXXCPP $CPPFLAGS'
17813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17816
17817 cat >conftest.$ac_ext <<_ACEOF
17818 #line $LINENO "configure"
17819 /* confdefs.h. */
17820 _ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17824 #include <math.h>
17825 #ifdef HAVE_IEEEFP_H
17826 #include <ieeefp.h>
17827 #endif
17828
17829 int
17830 main ()
17831 {
17832 fabsl(0);
17833 ;
17834 return 0;
17835 }
17836 _ACEOF
17837 rm -f conftest.$ac_objext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17839 (eval $ac_compile) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } &&
17843 { ac_try='test -s conftest.$ac_objext'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849 glibcxx_cv_func_fabsl_use=yes
17850 else
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17853
17854 glibcxx_cv_func_fabsl_use=no
17855 fi
17856 rm -f conftest.$ac_objext conftest.$ac_ext
17857 ac_ext=c
17858 ac_cpp='$CPP $CPPFLAGS'
17859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17862
17863
17864 fi
17865
17866 fi
17867 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
17868 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
17869
17870 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17871
17872 for ac_func in fabsl
17873 do
17874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17875 echo "$as_me:$LINENO: checking for $ac_func" >&5
17876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17877 if eval "test \"\${$as_ac_var+set}\" = set"; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17879 else
17880 if test x$gcc_no_link = xyes; then
17881 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17882 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17883 { (exit 1); exit 1; }; }
17884 fi
17885 cat >conftest.$ac_ext <<_ACEOF
17886 #line $LINENO "configure"
17887 /* confdefs.h. */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 /* System header to define __stub macros and hopefully few prototypes,
17893 which can conflict with char $ac_func (); below.
17894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17895 <limits.h> exists even on freestanding compilers. */
17896 #ifdef __STDC__
17897 # include <limits.h>
17898 #else
17899 # include <assert.h>
17900 #endif
17901 /* Override any gcc2 internal prototype to avoid an error. */
17902 #ifdef __cplusplus
17903 extern "C"
17904 {
17905 #endif
17906 /* We use char because int might match the return type of a gcc2
17907 builtin and then its argument prototype would still apply. */
17908 char $ac_func ();
17909 /* The GNU C library defines this for functions which it implements
17910 to always fail with ENOSYS. Some functions are actually named
17911 something starting with __ and the normal name is an alias. */
17912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17913 choke me
17914 #else
17915 char (*f) () = $ac_func;
17916 #endif
17917 #ifdef __cplusplus
17918 }
17919 #endif
17920
17921 int
17922 main ()
17923 {
17924 return f != $ac_func;
17925 ;
17926 return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931 (eval $ac_link) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -s conftest$ac_exeext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 eval "$as_ac_var=yes"
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 eval "$as_ac_var=no"
17947 fi
17948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17949 fi
17950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17952 if test `eval echo '${'$as_ac_var'}'` = yes; then
17953 cat >>confdefs.h <<_ACEOF
17954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17955 _ACEOF
17956
17957 fi
17958 done
17959
17960 else
17961
17962 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
17963 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
17964 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17965 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17967 else
17968
17969
17970
17971 ac_ext=cc
17972 ac_cpp='$CXXCPP $CPPFLAGS'
17973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17976
17977 cat >conftest.$ac_ext <<_ACEOF
17978 #line $LINENO "configure"
17979 /* confdefs.h. */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 #include <math.h>
17985 #ifdef HAVE_IEEEFP_H
17986 #include <ieeefp.h>
17987 #endif
17988
17989 int
17990 main ()
17991 {
17992 _fabsl(0);
17993 ;
17994 return 0;
17995 }
17996 _ACEOF
17997 rm -f conftest.$ac_objext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17999 (eval $ac_compile) 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -s conftest.$ac_objext'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 glibcxx_cv_func__fabsl_use=yes
18010 else
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014 glibcxx_cv_func__fabsl_use=no
18015 fi
18016 rm -f conftest.$ac_objext conftest.$ac_ext
18017 ac_ext=c
18018 ac_cpp='$CPP $CPPFLAGS'
18019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18022
18023
18024 fi
18025
18026 fi
18027 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
18028 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
18029
18030 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
18031
18032 for ac_func in _fabsl
18033 do
18034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18035 echo "$as_me:$LINENO: checking for $ac_func" >&5
18036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18037 if eval "test \"\${$as_ac_var+set}\" = set"; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 else
18040 if test x$gcc_no_link = xyes; then
18041 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18043 { (exit 1); exit 1; }; }
18044 fi
18045 cat >conftest.$ac_ext <<_ACEOF
18046 #line $LINENO "configure"
18047 /* confdefs.h. */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 /* System header to define __stub macros and hopefully few prototypes,
18053 which can conflict with char $ac_func (); below.
18054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18055 <limits.h> exists even on freestanding compilers. */
18056 #ifdef __STDC__
18057 # include <limits.h>
18058 #else
18059 # include <assert.h>
18060 #endif
18061 /* Override any gcc2 internal prototype to avoid an error. */
18062 #ifdef __cplusplus
18063 extern "C"
18064 {
18065 #endif
18066 /* We use char because int might match the return type of a gcc2
18067 builtin and then its argument prototype would still apply. */
18068 char $ac_func ();
18069 /* The GNU C library defines this for functions which it implements
18070 to always fail with ENOSYS. Some functions are actually named
18071 something starting with __ and the normal name is an alias. */
18072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18073 choke me
18074 #else
18075 char (*f) () = $ac_func;
18076 #endif
18077 #ifdef __cplusplus
18078 }
18079 #endif
18080
18081 int
18082 main ()
18083 {
18084 return f != $ac_func;
18085 ;
18086 return 0;
18087 }
18088 _ACEOF
18089 rm -f conftest.$ac_objext conftest$ac_exeext
18090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18091 (eval $ac_link) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } &&
18095 { ac_try='test -s conftest$ac_exeext'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101 eval "$as_ac_var=yes"
18102 else
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18105
18106 eval "$as_ac_var=no"
18107 fi
18108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18109 fi
18110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18112 if test `eval echo '${'$as_ac_var'}'` = yes; then
18113 cat >>confdefs.h <<_ACEOF
18114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18115 _ACEOF
18116
18117 fi
18118 done
18119
18120 fi
18121 fi
18122
18123
18124
18125 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
18126 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
18127 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
18128 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18130 else
18131
18132
18133
18134 ac_ext=cc
18135 ac_cpp='$CXXCPP $CPPFLAGS'
18136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18139
18140 cat >conftest.$ac_ext <<_ACEOF
18141 #line $LINENO "configure"
18142 /* confdefs.h. */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18147 #include <math.h>
18148 int
18149 main ()
18150 {
18151 fmodl(0, 0);
18152 ;
18153 return 0;
18154 }
18155 _ACEOF
18156 rm -f conftest.$ac_objext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18158 (eval $ac_compile) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try='test -s conftest.$ac_objext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 glibcxx_cv_func_fmodl_use=yes
18169 else
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18172
18173 glibcxx_cv_func_fmodl_use=no
18174 fi
18175 rm -f conftest.$ac_objext conftest.$ac_ext
18176 ac_ext=c
18177 ac_cpp='$CPP $CPPFLAGS'
18178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18181
18182
18183 fi
18184
18185 fi
18186 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
18187 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
18188
18189 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
18190
18191 for ac_func in fmodl
18192 do
18193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18194 echo "$as_me:$LINENO: checking for $ac_func" >&5
18195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18196 if eval "test \"\${$as_ac_var+set}\" = set"; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 else
18199 if test x$gcc_no_link = xyes; then
18200 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18201 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18202 { (exit 1); exit 1; }; }
18203 fi
18204 cat >conftest.$ac_ext <<_ACEOF
18205 #line $LINENO "configure"
18206 /* confdefs.h. */
18207 _ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18211 /* System header to define __stub macros and hopefully few prototypes,
18212 which can conflict with char $ac_func (); below.
18213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18214 <limits.h> exists even on freestanding compilers. */
18215 #ifdef __STDC__
18216 # include <limits.h>
18217 #else
18218 # include <assert.h>
18219 #endif
18220 /* Override any gcc2 internal prototype to avoid an error. */
18221 #ifdef __cplusplus
18222 extern "C"
18223 {
18224 #endif
18225 /* We use char because int might match the return type of a gcc2
18226 builtin and then its argument prototype would still apply. */
18227 char $ac_func ();
18228 /* The GNU C library defines this for functions which it implements
18229 to always fail with ENOSYS. Some functions are actually named
18230 something starting with __ and the normal name is an alias. */
18231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18232 choke me
18233 #else
18234 char (*f) () = $ac_func;
18235 #endif
18236 #ifdef __cplusplus
18237 }
18238 #endif
18239
18240 int
18241 main ()
18242 {
18243 return f != $ac_func;
18244 ;
18245 return 0;
18246 }
18247 _ACEOF
18248 rm -f conftest.$ac_objext conftest$ac_exeext
18249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18250 (eval $ac_link) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -s conftest$ac_exeext'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 eval "$as_ac_var=yes"
18261 else
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265 eval "$as_ac_var=no"
18266 fi
18267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18268 fi
18269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18271 if test `eval echo '${'$as_ac_var'}'` = yes; then
18272 cat >>confdefs.h <<_ACEOF
18273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18274 _ACEOF
18275
18276 fi
18277 done
18278
18279 else
18280
18281 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
18282 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
18283 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
18284 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287
18288
18289
18290 ac_ext=cc
18291 ac_cpp='$CXXCPP $CPPFLAGS'
18292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18295
18296 cat >conftest.$ac_ext <<_ACEOF
18297 #line $LINENO "configure"
18298 /* confdefs.h. */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 #include <math.h>
18304 int
18305 main ()
18306 {
18307 _fmodl(0, 0);
18308 ;
18309 return 0;
18310 }
18311 _ACEOF
18312 rm -f conftest.$ac_objext
18313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18314 (eval $ac_compile) 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } &&
18318 { ac_try='test -s conftest.$ac_objext'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; }; then
18324 glibcxx_cv_func__fmodl_use=yes
18325 else
18326 echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18328
18329 glibcxx_cv_func__fmodl_use=no
18330 fi
18331 rm -f conftest.$ac_objext conftest.$ac_ext
18332 ac_ext=c
18333 ac_cpp='$CPP $CPPFLAGS'
18334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18337
18338
18339 fi
18340
18341 fi
18342 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
18343 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
18344
18345 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
18346
18347 for ac_func in _fmodl
18348 do
18349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18350 echo "$as_me:$LINENO: checking for $ac_func" >&5
18351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18352 if eval "test \"\${$as_ac_var+set}\" = set"; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
18354 else
18355 if test x$gcc_no_link = xyes; then
18356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18358 { (exit 1); exit 1; }; }
18359 fi
18360 cat >conftest.$ac_ext <<_ACEOF
18361 #line $LINENO "configure"
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 /* System header to define __stub macros and hopefully few prototypes,
18368 which can conflict with char $ac_func (); below.
18369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18370 <limits.h> exists even on freestanding compilers. */
18371 #ifdef __STDC__
18372 # include <limits.h>
18373 #else
18374 # include <assert.h>
18375 #endif
18376 /* Override any gcc2 internal prototype to avoid an error. */
18377 #ifdef __cplusplus
18378 extern "C"
18379 {
18380 #endif
18381 /* We use char because int might match the return type of a gcc2
18382 builtin and then its argument prototype would still apply. */
18383 char $ac_func ();
18384 /* The GNU C library defines this for functions which it implements
18385 to always fail with ENOSYS. Some functions are actually named
18386 something starting with __ and the normal name is an alias. */
18387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18388 choke me
18389 #else
18390 char (*f) () = $ac_func;
18391 #endif
18392 #ifdef __cplusplus
18393 }
18394 #endif
18395
18396 int
18397 main ()
18398 {
18399 return f != $ac_func;
18400 ;
18401 return 0;
18402 }
18403 _ACEOF
18404 rm -f conftest.$ac_objext conftest$ac_exeext
18405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18406 (eval $ac_link) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -s conftest$ac_exeext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 eval "$as_ac_var=yes"
18417 else
18418 echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421 eval "$as_ac_var=no"
18422 fi
18423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18424 fi
18425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18427 if test `eval echo '${'$as_ac_var'}'` = yes; then
18428 cat >>confdefs.h <<_ACEOF
18429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18430 _ACEOF
18431
18432 fi
18433 done
18434
18435 fi
18436 fi
18437
18438
18439
18440 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
18441 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
18442 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
18443 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446
18447
18448
18449 ac_ext=cc
18450 ac_cpp='$CXXCPP $CPPFLAGS'
18451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18454
18455 cat >conftest.$ac_ext <<_ACEOF
18456 #line $LINENO "configure"
18457 /* confdefs.h. */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 #include <math.h>
18463 int
18464 main ()
18465 {
18466 frexpl(0, 0);
18467 ;
18468 return 0;
18469 }
18470 _ACEOF
18471 rm -f conftest.$ac_objext
18472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18473 (eval $ac_compile) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
18477 { ac_try='test -s conftest.$ac_objext'
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 glibcxx_cv_func_frexpl_use=yes
18484 else
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18487
18488 glibcxx_cv_func_frexpl_use=no
18489 fi
18490 rm -f conftest.$ac_objext conftest.$ac_ext
18491 ac_ext=c
18492 ac_cpp='$CPP $CPPFLAGS'
18493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18496
18497
18498 fi
18499
18500 fi
18501 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
18502 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
18503
18504 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
18505
18506 for ac_func in frexpl
18507 do
18508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18509 echo "$as_me:$LINENO: checking for $ac_func" >&5
18510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18511 if eval "test \"\${$as_ac_var+set}\" = set"; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514 if test x$gcc_no_link = xyes; then
18515 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18516 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18517 { (exit 1); exit 1; }; }
18518 fi
18519 cat >conftest.$ac_ext <<_ACEOF
18520 #line $LINENO "configure"
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18526 /* System header to define __stub macros and hopefully few prototypes,
18527 which can conflict with char $ac_func (); below.
18528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18529 <limits.h> exists even on freestanding compilers. */
18530 #ifdef __STDC__
18531 # include <limits.h>
18532 #else
18533 # include <assert.h>
18534 #endif
18535 /* Override any gcc2 internal prototype to avoid an error. */
18536 #ifdef __cplusplus
18537 extern "C"
18538 {
18539 #endif
18540 /* We use char because int might match the return type of a gcc2
18541 builtin and then its argument prototype would still apply. */
18542 char $ac_func ();
18543 /* The GNU C library defines this for functions which it implements
18544 to always fail with ENOSYS. Some functions are actually named
18545 something starting with __ and the normal name is an alias. */
18546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18547 choke me
18548 #else
18549 char (*f) () = $ac_func;
18550 #endif
18551 #ifdef __cplusplus
18552 }
18553 #endif
18554
18555 int
18556 main ()
18557 {
18558 return f != $ac_func;
18559 ;
18560 return 0;
18561 }
18562 _ACEOF
18563 rm -f conftest.$ac_objext conftest$ac_exeext
18564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18565 (eval $ac_link) 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -s conftest$ac_exeext'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; }; then
18575 eval "$as_ac_var=yes"
18576 else
18577 echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18579
18580 eval "$as_ac_var=no"
18581 fi
18582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18583 fi
18584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18586 if test `eval echo '${'$as_ac_var'}'` = yes; then
18587 cat >>confdefs.h <<_ACEOF
18588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18589 _ACEOF
18590
18591 fi
18592 done
18593
18594 else
18595
18596 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
18597 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
18598 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
18599 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
18600 echo $ECHO_N "(cached) $ECHO_C" >&6
18601 else
18602
18603
18604
18605 ac_ext=cc
18606 ac_cpp='$CXXCPP $CPPFLAGS'
18607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18610
18611 cat >conftest.$ac_ext <<_ACEOF
18612 #line $LINENO "configure"
18613 /* confdefs.h. */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18618 #include <math.h>
18619 int
18620 main ()
18621 {
18622 _frexpl(0, 0);
18623 ;
18624 return 0;
18625 }
18626 _ACEOF
18627 rm -f conftest.$ac_objext
18628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18629 (eval $ac_compile) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
18633 { ac_try='test -s conftest.$ac_objext'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 glibcxx_cv_func__frexpl_use=yes
18640 else
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18643
18644 glibcxx_cv_func__frexpl_use=no
18645 fi
18646 rm -f conftest.$ac_objext conftest.$ac_ext
18647 ac_ext=c
18648 ac_cpp='$CPP $CPPFLAGS'
18649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18652
18653
18654 fi
18655
18656 fi
18657 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
18658 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
18659
18660 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
18661
18662 for ac_func in _frexpl
18663 do
18664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18665 echo "$as_me:$LINENO: checking for $ac_func" >&5
18666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18667 if eval "test \"\${$as_ac_var+set}\" = set"; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670 if test x$gcc_no_link = xyes; then
18671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18673 { (exit 1); exit 1; }; }
18674 fi
18675 cat >conftest.$ac_ext <<_ACEOF
18676 #line $LINENO "configure"
18677 /* confdefs.h. */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 /* System header to define __stub macros and hopefully few prototypes,
18683 which can conflict with char $ac_func (); below.
18684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18685 <limits.h> exists even on freestanding compilers. */
18686 #ifdef __STDC__
18687 # include <limits.h>
18688 #else
18689 # include <assert.h>
18690 #endif
18691 /* Override any gcc2 internal prototype to avoid an error. */
18692 #ifdef __cplusplus
18693 extern "C"
18694 {
18695 #endif
18696 /* We use char because int might match the return type of a gcc2
18697 builtin and then its argument prototype would still apply. */
18698 char $ac_func ();
18699 /* The GNU C library defines this for functions which it implements
18700 to always fail with ENOSYS. Some functions are actually named
18701 something starting with __ and the normal name is an alias. */
18702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18703 choke me
18704 #else
18705 char (*f) () = $ac_func;
18706 #endif
18707 #ifdef __cplusplus
18708 }
18709 #endif
18710
18711 int
18712 main ()
18713 {
18714 return f != $ac_func;
18715 ;
18716 return 0;
18717 }
18718 _ACEOF
18719 rm -f conftest.$ac_objext conftest$ac_exeext
18720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18721 (eval $ac_link) 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); } &&
18725 { ac_try='test -s conftest$ac_exeext'
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 eval "$as_ac_var=yes"
18732 else
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18735
18736 eval "$as_ac_var=no"
18737 fi
18738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18739 fi
18740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18742 if test `eval echo '${'$as_ac_var'}'` = yes; then
18743 cat >>confdefs.h <<_ACEOF
18744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18745 _ACEOF
18746
18747 fi
18748 done
18749
18750 fi
18751 fi
18752
18753
18754
18755 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
18756 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
18757 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18758 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761
18762
18763
18764 ac_ext=cc
18765 ac_cpp='$CXXCPP $CPPFLAGS'
18766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18769
18770 cat >conftest.$ac_ext <<_ACEOF
18771 #line $LINENO "configure"
18772 /* confdefs.h. */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18777 #include <math.h>
18778 int
18779 main ()
18780 {
18781 hypotl(0, 0);
18782 ;
18783 return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18788 (eval $ac_compile) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -s conftest.$ac_objext'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
18798 glibcxx_cv_func_hypotl_use=yes
18799 else
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18802
18803 glibcxx_cv_func_hypotl_use=no
18804 fi
18805 rm -f conftest.$ac_objext conftest.$ac_ext
18806 ac_ext=c
18807 ac_cpp='$CPP $CPPFLAGS'
18808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18811
18812
18813 fi
18814
18815 fi
18816 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
18817 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
18818
18819 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18820
18821 for ac_func in hypotl
18822 do
18823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18824 echo "$as_me:$LINENO: checking for $ac_func" >&5
18825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18826 if eval "test \"\${$as_ac_var+set}\" = set"; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 else
18829 if test x$gcc_no_link = xyes; then
18830 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18832 { (exit 1); exit 1; }; }
18833 fi
18834 cat >conftest.$ac_ext <<_ACEOF
18835 #line $LINENO "configure"
18836 /* confdefs.h. */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 /* System header to define __stub macros and hopefully few prototypes,
18842 which can conflict with char $ac_func (); below.
18843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18844 <limits.h> exists even on freestanding compilers. */
18845 #ifdef __STDC__
18846 # include <limits.h>
18847 #else
18848 # include <assert.h>
18849 #endif
18850 /* Override any gcc2 internal prototype to avoid an error. */
18851 #ifdef __cplusplus
18852 extern "C"
18853 {
18854 #endif
18855 /* We use char because int might match the return type of a gcc2
18856 builtin and then its argument prototype would still apply. */
18857 char $ac_func ();
18858 /* The GNU C library defines this for functions which it implements
18859 to always fail with ENOSYS. Some functions are actually named
18860 something starting with __ and the normal name is an alias. */
18861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18862 choke me
18863 #else
18864 char (*f) () = $ac_func;
18865 #endif
18866 #ifdef __cplusplus
18867 }
18868 #endif
18869
18870 int
18871 main ()
18872 {
18873 return f != $ac_func;
18874 ;
18875 return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880 (eval $ac_link) 2>&5
18881 ac_status=$?
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -s conftest$ac_exeext'
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 eval "$as_ac_var=yes"
18891 else
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18894
18895 eval "$as_ac_var=no"
18896 fi
18897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18898 fi
18899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18901 if test `eval echo '${'$as_ac_var'}'` = yes; then
18902 cat >>confdefs.h <<_ACEOF
18903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18904 _ACEOF
18905
18906 fi
18907 done
18908
18909 else
18910
18911 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
18912 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
18913 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18914 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917
18918
18919
18920 ac_ext=cc
18921 ac_cpp='$CXXCPP $CPPFLAGS'
18922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18925
18926 cat >conftest.$ac_ext <<_ACEOF
18927 #line $LINENO "configure"
18928 /* confdefs.h. */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18933 #include <math.h>
18934 int
18935 main ()
18936 {
18937 _hypotl(0, 0);
18938 ;
18939 return 0;
18940 }
18941 _ACEOF
18942 rm -f conftest.$ac_objext
18943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18944 (eval $ac_compile) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -s conftest.$ac_objext'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 glibcxx_cv_func__hypotl_use=yes
18955 else
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18958
18959 glibcxx_cv_func__hypotl_use=no
18960 fi
18961 rm -f conftest.$ac_objext conftest.$ac_ext
18962 ac_ext=c
18963 ac_cpp='$CPP $CPPFLAGS'
18964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18967
18968
18969 fi
18970
18971 fi
18972 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
18973 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
18974
18975 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18976
18977 for ac_func in _hypotl
18978 do
18979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18980 echo "$as_me:$LINENO: checking for $ac_func" >&5
18981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18982 if eval "test \"\${$as_ac_var+set}\" = set"; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
18984 else
18985 if test x$gcc_no_link = xyes; then
18986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18988 { (exit 1); exit 1; }; }
18989 fi
18990 cat >conftest.$ac_ext <<_ACEOF
18991 #line $LINENO "configure"
18992 /* confdefs.h. */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18997 /* System header to define __stub macros and hopefully few prototypes,
18998 which can conflict with char $ac_func (); below.
18999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19000 <limits.h> exists even on freestanding compilers. */
19001 #ifdef __STDC__
19002 # include <limits.h>
19003 #else
19004 # include <assert.h>
19005 #endif
19006 /* Override any gcc2 internal prototype to avoid an error. */
19007 #ifdef __cplusplus
19008 extern "C"
19009 {
19010 #endif
19011 /* We use char because int might match the return type of a gcc2
19012 builtin and then its argument prototype would still apply. */
19013 char $ac_func ();
19014 /* The GNU C library defines this for functions which it implements
19015 to always fail with ENOSYS. Some functions are actually named
19016 something starting with __ and the normal name is an alias. */
19017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19018 choke me
19019 #else
19020 char (*f) () = $ac_func;
19021 #endif
19022 #ifdef __cplusplus
19023 }
19024 #endif
19025
19026 int
19027 main ()
19028 {
19029 return f != $ac_func;
19030 ;
19031 return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036 (eval $ac_link) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try='test -s conftest$ac_exeext'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
19046 eval "$as_ac_var=yes"
19047 else
19048 echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19050
19051 eval "$as_ac_var=no"
19052 fi
19053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19054 fi
19055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19057 if test `eval echo '${'$as_ac_var'}'` = yes; then
19058 cat >>confdefs.h <<_ACEOF
19059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19060 _ACEOF
19061
19062 fi
19063 done
19064
19065 fi
19066 fi
19067
19068
19069
19070 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
19071 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
19072 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
19073 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 else
19076
19077
19078
19079 ac_ext=cc
19080 ac_cpp='$CXXCPP $CPPFLAGS'
19081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19084
19085 cat >conftest.$ac_ext <<_ACEOF
19086 #line $LINENO "configure"
19087 /* confdefs.h. */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19092 #include <math.h>
19093 int
19094 main ()
19095 {
19096 ldexpl(0, 0);
19097 ;
19098 return 0;
19099 }
19100 _ACEOF
19101 rm -f conftest.$ac_objext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19103 (eval $ac_compile) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -s conftest.$ac_objext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 glibcxx_cv_func_ldexpl_use=yes
19114 else
19115 echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19117
19118 glibcxx_cv_func_ldexpl_use=no
19119 fi
19120 rm -f conftest.$ac_objext conftest.$ac_ext
19121 ac_ext=c
19122 ac_cpp='$CPP $CPPFLAGS'
19123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19126
19127
19128 fi
19129
19130 fi
19131 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
19132 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
19133
19134 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
19135
19136 for ac_func in ldexpl
19137 do
19138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19139 echo "$as_me:$LINENO: checking for $ac_func" >&5
19140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19141 if eval "test \"\${$as_ac_var+set}\" = set"; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 else
19144 if test x$gcc_no_link = xyes; then
19145 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19146 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19147 { (exit 1); exit 1; }; }
19148 fi
19149 cat >conftest.$ac_ext <<_ACEOF
19150 #line $LINENO "configure"
19151 /* confdefs.h. */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156 /* System header to define __stub macros and hopefully few prototypes,
19157 which can conflict with char $ac_func (); below.
19158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19159 <limits.h> exists even on freestanding compilers. */
19160 #ifdef __STDC__
19161 # include <limits.h>
19162 #else
19163 # include <assert.h>
19164 #endif
19165 /* Override any gcc2 internal prototype to avoid an error. */
19166 #ifdef __cplusplus
19167 extern "C"
19168 {
19169 #endif
19170 /* We use char because int might match the return type of a gcc2
19171 builtin and then its argument prototype would still apply. */
19172 char $ac_func ();
19173 /* The GNU C library defines this for functions which it implements
19174 to always fail with ENOSYS. Some functions are actually named
19175 something starting with __ and the normal name is an alias. */
19176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19177 choke me
19178 #else
19179 char (*f) () = $ac_func;
19180 #endif
19181 #ifdef __cplusplus
19182 }
19183 #endif
19184
19185 int
19186 main ()
19187 {
19188 return f != $ac_func;
19189 ;
19190 return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19195 (eval $ac_link) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
19199 { ac_try='test -s conftest$ac_exeext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 eval "$as_ac_var=yes"
19206 else
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210 eval "$as_ac_var=no"
19211 fi
19212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19213 fi
19214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19216 if test `eval echo '${'$as_ac_var'}'` = yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19219 _ACEOF
19220
19221 fi
19222 done
19223
19224 else
19225
19226 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
19227 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
19228 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
19229 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232
19233
19234
19235 ac_ext=cc
19236 ac_cpp='$CXXCPP $CPPFLAGS'
19237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19240
19241 cat >conftest.$ac_ext <<_ACEOF
19242 #line $LINENO "configure"
19243 /* confdefs.h. */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <math.h>
19249 int
19250 main ()
19251 {
19252 _ldexpl(0, 0);
19253 ;
19254 return 0;
19255 }
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -s conftest.$ac_objext'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 glibcxx_cv_func__ldexpl_use=yes
19270 else
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 glibcxx_cv_func__ldexpl_use=no
19275 fi
19276 rm -f conftest.$ac_objext conftest.$ac_ext
19277 ac_ext=c
19278 ac_cpp='$CPP $CPPFLAGS'
19279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19282
19283
19284 fi
19285
19286 fi
19287 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
19288 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
19289
19290 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
19291
19292 for ac_func in _ldexpl
19293 do
19294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19295 echo "$as_me:$LINENO: checking for $ac_func" >&5
19296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19297 if eval "test \"\${$as_ac_var+set}\" = set"; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300 if test x$gcc_no_link = xyes; then
19301 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19303 { (exit 1); exit 1; }; }
19304 fi
19305 cat >conftest.$ac_ext <<_ACEOF
19306 #line $LINENO "configure"
19307 /* confdefs.h. */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 /* System header to define __stub macros and hopefully few prototypes,
19313 which can conflict with char $ac_func (); below.
19314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19315 <limits.h> exists even on freestanding compilers. */
19316 #ifdef __STDC__
19317 # include <limits.h>
19318 #else
19319 # include <assert.h>
19320 #endif
19321 /* Override any gcc2 internal prototype to avoid an error. */
19322 #ifdef __cplusplus
19323 extern "C"
19324 {
19325 #endif
19326 /* We use char because int might match the return type of a gcc2
19327 builtin and then its argument prototype would still apply. */
19328 char $ac_func ();
19329 /* The GNU C library defines this for functions which it implements
19330 to always fail with ENOSYS. Some functions are actually named
19331 something starting with __ and the normal name is an alias. */
19332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19333 choke me
19334 #else
19335 char (*f) () = $ac_func;
19336 #endif
19337 #ifdef __cplusplus
19338 }
19339 #endif
19340
19341 int
19342 main ()
19343 {
19344 return f != $ac_func;
19345 ;
19346 return 0;
19347 }
19348 _ACEOF
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19351 (eval $ac_link) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -s conftest$ac_exeext'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 eval "$as_ac_var=yes"
19362 else
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366 eval "$as_ac_var=no"
19367 fi
19368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19369 fi
19370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19372 if test `eval echo '${'$as_ac_var'}'` = yes; then
19373 cat >>confdefs.h <<_ACEOF
19374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19375 _ACEOF
19376
19377 fi
19378 done
19379
19380 fi
19381 fi
19382
19383
19384
19385 echo "$as_me:$LINENO: checking for logl declaration" >&5
19386 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
19387 if test x${glibcxx_cv_func_logl_use+set} != xset; then
19388 if test "${glibcxx_cv_func_logl_use+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391
19392
19393
19394 ac_ext=cc
19395 ac_cpp='$CXXCPP $CPPFLAGS'
19396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19399
19400 cat >conftest.$ac_ext <<_ACEOF
19401 #line $LINENO "configure"
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 #include <math.h>
19408 #ifdef HAVE_IEEEFP_H
19409 #include <ieeefp.h>
19410 #endif
19411
19412 int
19413 main ()
19414 {
19415 logl(0);
19416 ;
19417 return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19422 (eval $ac_compile) 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
19426 { ac_try='test -s conftest.$ac_objext'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 glibcxx_cv_func_logl_use=yes
19433 else
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437 glibcxx_cv_func_logl_use=no
19438 fi
19439 rm -f conftest.$ac_objext conftest.$ac_ext
19440 ac_ext=c
19441 ac_cpp='$CPP $CPPFLAGS'
19442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19445
19446
19447 fi
19448
19449 fi
19450 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
19451 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
19452
19453 if test x$glibcxx_cv_func_logl_use = x"yes"; then
19454
19455 for ac_func in logl
19456 do
19457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19458 echo "$as_me:$LINENO: checking for $ac_func" >&5
19459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19460 if eval "test \"\${$as_ac_var+set}\" = set"; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463 if test x$gcc_no_link = xyes; then
19464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19466 { (exit 1); exit 1; }; }
19467 fi
19468 cat >conftest.$ac_ext <<_ACEOF
19469 #line $LINENO "configure"
19470 /* confdefs.h. */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 /* System header to define __stub macros and hopefully few prototypes,
19476 which can conflict with char $ac_func (); below.
19477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19478 <limits.h> exists even on freestanding compilers. */
19479 #ifdef __STDC__
19480 # include <limits.h>
19481 #else
19482 # include <assert.h>
19483 #endif
19484 /* Override any gcc2 internal prototype to avoid an error. */
19485 #ifdef __cplusplus
19486 extern "C"
19487 {
19488 #endif
19489 /* We use char because int might match the return type of a gcc2
19490 builtin and then its argument prototype would still apply. */
19491 char $ac_func ();
19492 /* The GNU C library defines this for functions which it implements
19493 to always fail with ENOSYS. Some functions are actually named
19494 something starting with __ and the normal name is an alias. */
19495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19496 choke me
19497 #else
19498 char (*f) () = $ac_func;
19499 #endif
19500 #ifdef __cplusplus
19501 }
19502 #endif
19503
19504 int
19505 main ()
19506 {
19507 return f != $ac_func;
19508 ;
19509 return 0;
19510 }
19511 _ACEOF
19512 rm -f conftest.$ac_objext conftest$ac_exeext
19513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19514 (eval $ac_link) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -s conftest$ac_exeext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 eval "$as_ac_var=yes"
19525 else
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 eval "$as_ac_var=no"
19530 fi
19531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19532 fi
19533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19535 if test `eval echo '${'$as_ac_var'}'` = yes; then
19536 cat >>confdefs.h <<_ACEOF
19537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19538 _ACEOF
19539
19540 fi
19541 done
19542
19543 else
19544
19545 echo "$as_me:$LINENO: checking for _logl declaration" >&5
19546 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
19547 if test x${glibcxx_cv_func__logl_use+set} != xset; then
19548 if test "${glibcxx_cv_func__logl_use+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 else
19551
19552
19553
19554 ac_ext=cc
19555 ac_cpp='$CXXCPP $CPPFLAGS'
19556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19559
19560 cat >conftest.$ac_ext <<_ACEOF
19561 #line $LINENO "configure"
19562 /* confdefs.h. */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 #include <math.h>
19568 #ifdef HAVE_IEEEFP_H
19569 #include <ieeefp.h>
19570 #endif
19571
19572 int
19573 main ()
19574 {
19575 _logl(0);
19576 ;
19577 return 0;
19578 }
19579 _ACEOF
19580 rm -f conftest.$ac_objext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582 (eval $ac_compile) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -s conftest.$ac_objext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 glibcxx_cv_func__logl_use=yes
19593 else
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19596
19597 glibcxx_cv_func__logl_use=no
19598 fi
19599 rm -f conftest.$ac_objext conftest.$ac_ext
19600 ac_ext=c
19601 ac_cpp='$CPP $CPPFLAGS'
19602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19605
19606
19607 fi
19608
19609 fi
19610 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
19611 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
19612
19613 if test x$glibcxx_cv_func__logl_use = x"yes"; then
19614
19615 for ac_func in _logl
19616 do
19617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19618 echo "$as_me:$LINENO: checking for $ac_func" >&5
19619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19620 if eval "test \"\${$as_ac_var+set}\" = set"; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623 if test x$gcc_no_link = xyes; then
19624 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19626 { (exit 1); exit 1; }; }
19627 fi
19628 cat >conftest.$ac_ext <<_ACEOF
19629 #line $LINENO "configure"
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 /* System header to define __stub macros and hopefully few prototypes,
19636 which can conflict with char $ac_func (); below.
19637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19638 <limits.h> exists even on freestanding compilers. */
19639 #ifdef __STDC__
19640 # include <limits.h>
19641 #else
19642 # include <assert.h>
19643 #endif
19644 /* Override any gcc2 internal prototype to avoid an error. */
19645 #ifdef __cplusplus
19646 extern "C"
19647 {
19648 #endif
19649 /* We use char because int might match the return type of a gcc2
19650 builtin and then its argument prototype would still apply. */
19651 char $ac_func ();
19652 /* The GNU C library defines this for functions which it implements
19653 to always fail with ENOSYS. Some functions are actually named
19654 something starting with __ and the normal name is an alias. */
19655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19656 choke me
19657 #else
19658 char (*f) () = $ac_func;
19659 #endif
19660 #ifdef __cplusplus
19661 }
19662 #endif
19663
19664 int
19665 main ()
19666 {
19667 return f != $ac_func;
19668 ;
19669 return 0;
19670 }
19671 _ACEOF
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19674 (eval $ac_link) 2>&5
19675 ac_status=$?
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } &&
19678 { ac_try='test -s conftest$ac_exeext'
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684 eval "$as_ac_var=yes"
19685 else
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689 eval "$as_ac_var=no"
19690 fi
19691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19692 fi
19693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19695 if test `eval echo '${'$as_ac_var'}'` = yes; then
19696 cat >>confdefs.h <<_ACEOF
19697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19698 _ACEOF
19699
19700 fi
19701 done
19702
19703 fi
19704 fi
19705
19706
19707
19708 echo "$as_me:$LINENO: checking for log10l declaration" >&5
19709 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
19710 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
19711 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714
19715
19716
19717 ac_ext=cc
19718 ac_cpp='$CXXCPP $CPPFLAGS'
19719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19722
19723 cat >conftest.$ac_ext <<_ACEOF
19724 #line $LINENO "configure"
19725 /* confdefs.h. */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 #include <math.h>
19731 #ifdef HAVE_IEEEFP_H
19732 #include <ieeefp.h>
19733 #endif
19734
19735 int
19736 main ()
19737 {
19738 log10l(0);
19739 ;
19740 return 0;
19741 }
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 glibcxx_cv_func_log10l_use=yes
19756 else
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 glibcxx_cv_func_log10l_use=no
19761 fi
19762 rm -f conftest.$ac_objext conftest.$ac_ext
19763 ac_ext=c
19764 ac_cpp='$CPP $CPPFLAGS'
19765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19768
19769
19770 fi
19771
19772 fi
19773 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
19774 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
19775
19776 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
19777
19778 for ac_func in log10l
19779 do
19780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19781 echo "$as_me:$LINENO: checking for $ac_func" >&5
19782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19783 if eval "test \"\${$as_ac_var+set}\" = set"; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786 if test x$gcc_no_link = xyes; then
19787 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19788 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19789 { (exit 1); exit 1; }; }
19790 fi
19791 cat >conftest.$ac_ext <<_ACEOF
19792 #line $LINENO "configure"
19793 /* confdefs.h. */
19794 _ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19798 /* System header to define __stub macros and hopefully few prototypes,
19799 which can conflict with char $ac_func (); below.
19800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19801 <limits.h> exists even on freestanding compilers. */
19802 #ifdef __STDC__
19803 # include <limits.h>
19804 #else
19805 # include <assert.h>
19806 #endif
19807 /* Override any gcc2 internal prototype to avoid an error. */
19808 #ifdef __cplusplus
19809 extern "C"
19810 {
19811 #endif
19812 /* We use char because int might match the return type of a gcc2
19813 builtin and then its argument prototype would still apply. */
19814 char $ac_func ();
19815 /* The GNU C library defines this for functions which it implements
19816 to always fail with ENOSYS. Some functions are actually named
19817 something starting with __ and the normal name is an alias. */
19818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19819 choke me
19820 #else
19821 char (*f) () = $ac_func;
19822 #endif
19823 #ifdef __cplusplus
19824 }
19825 #endif
19826
19827 int
19828 main ()
19829 {
19830 return f != $ac_func;
19831 ;
19832 return 0;
19833 }
19834 _ACEOF
19835 rm -f conftest.$ac_objext conftest$ac_exeext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19837 (eval $ac_link) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -s conftest$ac_exeext'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 eval "$as_ac_var=yes"
19848 else
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19851
19852 eval "$as_ac_var=no"
19853 fi
19854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19855 fi
19856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19858 if test `eval echo '${'$as_ac_var'}'` = yes; then
19859 cat >>confdefs.h <<_ACEOF
19860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19861 _ACEOF
19862
19863 fi
19864 done
19865
19866 else
19867
19868 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
19869 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
19870 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
19871 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874
19875
19876
19877 ac_ext=cc
19878 ac_cpp='$CXXCPP $CPPFLAGS'
19879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19882
19883 cat >conftest.$ac_ext <<_ACEOF
19884 #line $LINENO "configure"
19885 /* confdefs.h. */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 #include <math.h>
19891 #ifdef HAVE_IEEEFP_H
19892 #include <ieeefp.h>
19893 #endif
19894
19895 int
19896 main ()
19897 {
19898 _log10l(0);
19899 ;
19900 return 0;
19901 }
19902 _ACEOF
19903 rm -f conftest.$ac_objext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19905 (eval $ac_compile) 2>&5
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
19909 { ac_try='test -s conftest.$ac_objext'
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; }; then
19915 glibcxx_cv_func__log10l_use=yes
19916 else
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19919
19920 glibcxx_cv_func__log10l_use=no
19921 fi
19922 rm -f conftest.$ac_objext conftest.$ac_ext
19923 ac_ext=c
19924 ac_cpp='$CPP $CPPFLAGS'
19925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19928
19929
19930 fi
19931
19932 fi
19933 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
19934 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
19935
19936 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
19937
19938 for ac_func in _log10l
19939 do
19940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19941 echo "$as_me:$LINENO: checking for $ac_func" >&5
19942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19943 if eval "test \"\${$as_ac_var+set}\" = set"; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 else
19946 if test x$gcc_no_link = xyes; then
19947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19949 { (exit 1); exit 1; }; }
19950 fi
19951 cat >conftest.$ac_ext <<_ACEOF
19952 #line $LINENO "configure"
19953 /* confdefs.h. */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 /* System header to define __stub macros and hopefully few prototypes,
19959 which can conflict with char $ac_func (); below.
19960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19961 <limits.h> exists even on freestanding compilers. */
19962 #ifdef __STDC__
19963 # include <limits.h>
19964 #else
19965 # include <assert.h>
19966 #endif
19967 /* Override any gcc2 internal prototype to avoid an error. */
19968 #ifdef __cplusplus
19969 extern "C"
19970 {
19971 #endif
19972 /* We use char because int might match the return type of a gcc2
19973 builtin and then its argument prototype would still apply. */
19974 char $ac_func ();
19975 /* The GNU C library defines this for functions which it implements
19976 to always fail with ENOSYS. Some functions are actually named
19977 something starting with __ and the normal name is an alias. */
19978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19979 choke me
19980 #else
19981 char (*f) () = $ac_func;
19982 #endif
19983 #ifdef __cplusplus
19984 }
19985 #endif
19986
19987 int
19988 main ()
19989 {
19990 return f != $ac_func;
19991 ;
19992 return 0;
19993 }
19994 _ACEOF
19995 rm -f conftest.$ac_objext conftest$ac_exeext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19997 (eval $ac_link) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } &&
20001 { ac_try='test -s conftest$ac_exeext'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 eval "$as_ac_var=yes"
20008 else
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012 eval "$as_ac_var=no"
20013 fi
20014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20015 fi
20016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20018 if test `eval echo '${'$as_ac_var'}'` = yes; then
20019 cat >>confdefs.h <<_ACEOF
20020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20021 _ACEOF
20022
20023 fi
20024 done
20025
20026 fi
20027 fi
20028
20029
20030
20031 echo "$as_me:$LINENO: checking for modfl declaration" >&5
20032 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
20033 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
20034 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 else
20037
20038
20039
20040 ac_ext=cc
20041 ac_cpp='$CXXCPP $CPPFLAGS'
20042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20045
20046 cat >conftest.$ac_ext <<_ACEOF
20047 #line $LINENO "configure"
20048 /* confdefs.h. */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20053 #include <math.h>
20054 int
20055 main ()
20056 {
20057 modfl(0, 0);
20058 ;
20059 return 0;
20060 }
20061 _ACEOF
20062 rm -f conftest.$ac_objext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20064 (eval $ac_compile) 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 glibcxx_cv_func_modfl_use=yes
20075 else
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20078
20079 glibcxx_cv_func_modfl_use=no
20080 fi
20081 rm -f conftest.$ac_objext conftest.$ac_ext
20082 ac_ext=c
20083 ac_cpp='$CPP $CPPFLAGS'
20084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20087
20088
20089 fi
20090
20091 fi
20092 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
20093 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
20094
20095 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
20096
20097 for ac_func in modfl
20098 do
20099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20100 echo "$as_me:$LINENO: checking for $ac_func" >&5
20101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20102 if eval "test \"\${$as_ac_var+set}\" = set"; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105 if test x$gcc_no_link = xyes; then
20106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20108 { (exit 1); exit 1; }; }
20109 fi
20110 cat >conftest.$ac_ext <<_ACEOF
20111 #line $LINENO "configure"
20112 /* confdefs.h. */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117 /* System header to define __stub macros and hopefully few prototypes,
20118 which can conflict with char $ac_func (); below.
20119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20120 <limits.h> exists even on freestanding compilers. */
20121 #ifdef __STDC__
20122 # include <limits.h>
20123 #else
20124 # include <assert.h>
20125 #endif
20126 /* Override any gcc2 internal prototype to avoid an error. */
20127 #ifdef __cplusplus
20128 extern "C"
20129 {
20130 #endif
20131 /* We use char because int might match the return type of a gcc2
20132 builtin and then its argument prototype would still apply. */
20133 char $ac_func ();
20134 /* The GNU C library defines this for functions which it implements
20135 to always fail with ENOSYS. Some functions are actually named
20136 something starting with __ and the normal name is an alias. */
20137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20138 choke me
20139 #else
20140 char (*f) () = $ac_func;
20141 #endif
20142 #ifdef __cplusplus
20143 }
20144 #endif
20145
20146 int
20147 main ()
20148 {
20149 return f != $ac_func;
20150 ;
20151 return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest.$ac_objext conftest$ac_exeext
20155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20156 (eval $ac_link) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } &&
20160 { ac_try='test -s conftest$ac_exeext'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166 eval "$as_ac_var=yes"
20167 else
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 eval "$as_ac_var=no"
20172 fi
20173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20174 fi
20175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20177 if test `eval echo '${'$as_ac_var'}'` = yes; then
20178 cat >>confdefs.h <<_ACEOF
20179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20180 _ACEOF
20181
20182 fi
20183 done
20184
20185 else
20186
20187 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
20188 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
20189 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
20190 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20192 else
20193
20194
20195
20196 ac_ext=cc
20197 ac_cpp='$CXXCPP $CPPFLAGS'
20198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20201
20202 cat >conftest.$ac_ext <<_ACEOF
20203 #line $LINENO "configure"
20204 /* confdefs.h. */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20209 #include <math.h>
20210 int
20211 main ()
20212 {
20213 _modfl(0, 0);
20214 ;
20215 return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220 (eval $ac_compile) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
20224 { ac_try='test -s conftest.$ac_objext'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 glibcxx_cv_func__modfl_use=yes
20231 else
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20234
20235 glibcxx_cv_func__modfl_use=no
20236 fi
20237 rm -f conftest.$ac_objext conftest.$ac_ext
20238 ac_ext=c
20239 ac_cpp='$CPP $CPPFLAGS'
20240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20243
20244
20245 fi
20246
20247 fi
20248 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
20249 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
20250
20251 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
20252
20253 for ac_func in _modfl
20254 do
20255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20256 echo "$as_me:$LINENO: checking for $ac_func" >&5
20257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20258 if eval "test \"\${$as_ac_var+set}\" = set"; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261 if test x$gcc_no_link = xyes; then
20262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20264 { (exit 1); exit 1; }; }
20265 fi
20266 cat >conftest.$ac_ext <<_ACEOF
20267 #line $LINENO "configure"
20268 /* confdefs.h. */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 /* System header to define __stub macros and hopefully few prototypes,
20274 which can conflict with char $ac_func (); below.
20275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20276 <limits.h> exists even on freestanding compilers. */
20277 #ifdef __STDC__
20278 # include <limits.h>
20279 #else
20280 # include <assert.h>
20281 #endif
20282 /* Override any gcc2 internal prototype to avoid an error. */
20283 #ifdef __cplusplus
20284 extern "C"
20285 {
20286 #endif
20287 /* We use char because int might match the return type of a gcc2
20288 builtin and then its argument prototype would still apply. */
20289 char $ac_func ();
20290 /* The GNU C library defines this for functions which it implements
20291 to always fail with ENOSYS. Some functions are actually named
20292 something starting with __ and the normal name is an alias. */
20293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20294 choke me
20295 #else
20296 char (*f) () = $ac_func;
20297 #endif
20298 #ifdef __cplusplus
20299 }
20300 #endif
20301
20302 int
20303 main ()
20304 {
20305 return f != $ac_func;
20306 ;
20307 return 0;
20308 }
20309 _ACEOF
20310 rm -f conftest.$ac_objext conftest$ac_exeext
20311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20312 (eval $ac_link) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 { ac_try='test -s conftest$ac_exeext'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 eval "$as_ac_var=yes"
20323 else
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327 eval "$as_ac_var=no"
20328 fi
20329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20330 fi
20331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20333 if test `eval echo '${'$as_ac_var'}'` = yes; then
20334 cat >>confdefs.h <<_ACEOF
20335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20336 _ACEOF
20337
20338 fi
20339 done
20340
20341 fi
20342 fi
20343
20344
20345
20346 echo "$as_me:$LINENO: checking for powl declaration" >&5
20347 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
20348 if test x${glibcxx_cv_func_powl_use+set} != xset; then
20349 if test "${glibcxx_cv_func_powl_use+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352
20353
20354
20355 ac_ext=cc
20356 ac_cpp='$CXXCPP $CPPFLAGS'
20357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20360
20361 cat >conftest.$ac_ext <<_ACEOF
20362 #line $LINENO "configure"
20363 /* confdefs.h. */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 #include <math.h>
20369 int
20370 main ()
20371 {
20372 powl(0, 0);
20373 ;
20374 return 0;
20375 }
20376 _ACEOF
20377 rm -f conftest.$ac_objext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20379 (eval $ac_compile) 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } &&
20383 { ac_try='test -s conftest.$ac_objext'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20386 ac_status=$?
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20389 glibcxx_cv_func_powl_use=yes
20390 else
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 glibcxx_cv_func_powl_use=no
20395 fi
20396 rm -f conftest.$ac_objext conftest.$ac_ext
20397 ac_ext=c
20398 ac_cpp='$CPP $CPPFLAGS'
20399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20402
20403
20404 fi
20405
20406 fi
20407 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
20408 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
20409
20410 if test x$glibcxx_cv_func_powl_use = x"yes"; then
20411
20412 for ac_func in powl
20413 do
20414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20415 echo "$as_me:$LINENO: checking for $ac_func" >&5
20416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20417 if eval "test \"\${$as_ac_var+set}\" = set"; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420 if test x$gcc_no_link = xyes; then
20421 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20422 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20423 { (exit 1); exit 1; }; }
20424 fi
20425 cat >conftest.$ac_ext <<_ACEOF
20426 #line $LINENO "configure"
20427 /* confdefs.h. */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20432 /* System header to define __stub macros and hopefully few prototypes,
20433 which can conflict with char $ac_func (); below.
20434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20435 <limits.h> exists even on freestanding compilers. */
20436 #ifdef __STDC__
20437 # include <limits.h>
20438 #else
20439 # include <assert.h>
20440 #endif
20441 /* Override any gcc2 internal prototype to avoid an error. */
20442 #ifdef __cplusplus
20443 extern "C"
20444 {
20445 #endif
20446 /* We use char because int might match the return type of a gcc2
20447 builtin and then its argument prototype would still apply. */
20448 char $ac_func ();
20449 /* The GNU C library defines this for functions which it implements
20450 to always fail with ENOSYS. Some functions are actually named
20451 something starting with __ and the normal name is an alias. */
20452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20453 choke me
20454 #else
20455 char (*f) () = $ac_func;
20456 #endif
20457 #ifdef __cplusplus
20458 }
20459 #endif
20460
20461 int
20462 main ()
20463 {
20464 return f != $ac_func;
20465 ;
20466 return 0;
20467 }
20468 _ACEOF
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20471 (eval $ac_link) 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } &&
20475 { ac_try='test -s conftest$ac_exeext'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 eval "$as_ac_var=yes"
20482 else
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20485
20486 eval "$as_ac_var=no"
20487 fi
20488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20489 fi
20490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20492 if test `eval echo '${'$as_ac_var'}'` = yes; then
20493 cat >>confdefs.h <<_ACEOF
20494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20495 _ACEOF
20496
20497 fi
20498 done
20499
20500 else
20501
20502 echo "$as_me:$LINENO: checking for _powl declaration" >&5
20503 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
20504 if test x${glibcxx_cv_func__powl_use+set} != xset; then
20505 if test "${glibcxx_cv_func__powl_use+set}" = set; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508
20509
20510
20511 ac_ext=cc
20512 ac_cpp='$CXXCPP $CPPFLAGS'
20513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20516
20517 cat >conftest.$ac_ext <<_ACEOF
20518 #line $LINENO "configure"
20519 /* confdefs.h. */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20524 #include <math.h>
20525 int
20526 main ()
20527 {
20528 _powl(0, 0);
20529 ;
20530 return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext
20534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20535 (eval $ac_compile) 2>&5
20536 ac_status=$?
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -s conftest.$ac_objext'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; }; then
20545 glibcxx_cv_func__powl_use=yes
20546 else
20547 echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20549
20550 glibcxx_cv_func__powl_use=no
20551 fi
20552 rm -f conftest.$ac_objext conftest.$ac_ext
20553 ac_ext=c
20554 ac_cpp='$CPP $CPPFLAGS'
20555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558
20559
20560 fi
20561
20562 fi
20563 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
20564 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
20565
20566 if test x$glibcxx_cv_func__powl_use = x"yes"; then
20567
20568 for ac_func in _powl
20569 do
20570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20571 echo "$as_me:$LINENO: checking for $ac_func" >&5
20572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20573 if eval "test \"\${$as_ac_var+set}\" = set"; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576 if test x$gcc_no_link = xyes; then
20577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20579 { (exit 1); exit 1; }; }
20580 fi
20581 cat >conftest.$ac_ext <<_ACEOF
20582 #line $LINENO "configure"
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 /* System header to define __stub macros and hopefully few prototypes,
20589 which can conflict with char $ac_func (); below.
20590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20591 <limits.h> exists even on freestanding compilers. */
20592 #ifdef __STDC__
20593 # include <limits.h>
20594 #else
20595 # include <assert.h>
20596 #endif
20597 /* Override any gcc2 internal prototype to avoid an error. */
20598 #ifdef __cplusplus
20599 extern "C"
20600 {
20601 #endif
20602 /* We use char because int might match the return type of a gcc2
20603 builtin and then its argument prototype would still apply. */
20604 char $ac_func ();
20605 /* The GNU C library defines this for functions which it implements
20606 to always fail with ENOSYS. Some functions are actually named
20607 something starting with __ and the normal name is an alias. */
20608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20609 choke me
20610 #else
20611 char (*f) () = $ac_func;
20612 #endif
20613 #ifdef __cplusplus
20614 }
20615 #endif
20616
20617 int
20618 main ()
20619 {
20620 return f != $ac_func;
20621 ;
20622 return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20627 (eval $ac_link) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } &&
20631 { ac_try='test -s conftest$ac_exeext'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 eval "$as_ac_var=yes"
20638 else
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20641
20642 eval "$as_ac_var=no"
20643 fi
20644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20645 fi
20646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20648 if test `eval echo '${'$as_ac_var'}'` = yes; then
20649 cat >>confdefs.h <<_ACEOF
20650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20651 _ACEOF
20652
20653 fi
20654 done
20655
20656 fi
20657 fi
20658
20659
20660
20661 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
20662 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
20663 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
20664 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667
20668
20669
20670 ac_ext=cc
20671 ac_cpp='$CXXCPP $CPPFLAGS'
20672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20675
20676 cat >conftest.$ac_ext <<_ACEOF
20677 #line $LINENO "configure"
20678 /* confdefs.h. */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 #include <math.h>
20684 #ifdef HAVE_IEEEFP_H
20685 #include <ieeefp.h>
20686 #endif
20687
20688 int
20689 main ()
20690 {
20691 sqrtl(0);
20692 ;
20693 return 0;
20694 }
20695 _ACEOF
20696 rm -f conftest.$ac_objext
20697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20698 (eval $ac_compile) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -s conftest.$ac_objext'
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708 glibcxx_cv_func_sqrtl_use=yes
20709 else
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20712
20713 glibcxx_cv_func_sqrtl_use=no
20714 fi
20715 rm -f conftest.$ac_objext conftest.$ac_ext
20716 ac_ext=c
20717 ac_cpp='$CPP $CPPFLAGS'
20718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20721
20722
20723 fi
20724
20725 fi
20726 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
20727 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
20728
20729 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
20730
20731 for ac_func in sqrtl
20732 do
20733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20734 echo "$as_me:$LINENO: checking for $ac_func" >&5
20735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20736 if eval "test \"\${$as_ac_var+set}\" = set"; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 else
20739 if test x$gcc_no_link = xyes; then
20740 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20741 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20742 { (exit 1); exit 1; }; }
20743 fi
20744 cat >conftest.$ac_ext <<_ACEOF
20745 #line $LINENO "configure"
20746 /* confdefs.h. */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 /* System header to define __stub macros and hopefully few prototypes,
20752 which can conflict with char $ac_func (); below.
20753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20754 <limits.h> exists even on freestanding compilers. */
20755 #ifdef __STDC__
20756 # include <limits.h>
20757 #else
20758 # include <assert.h>
20759 #endif
20760 /* Override any gcc2 internal prototype to avoid an error. */
20761 #ifdef __cplusplus
20762 extern "C"
20763 {
20764 #endif
20765 /* We use char because int might match the return type of a gcc2
20766 builtin and then its argument prototype would still apply. */
20767 char $ac_func ();
20768 /* The GNU C library defines this for functions which it implements
20769 to always fail with ENOSYS. Some functions are actually named
20770 something starting with __ and the normal name is an alias. */
20771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20772 choke me
20773 #else
20774 char (*f) () = $ac_func;
20775 #endif
20776 #ifdef __cplusplus
20777 }
20778 #endif
20779
20780 int
20781 main ()
20782 {
20783 return f != $ac_func;
20784 ;
20785 return 0;
20786 }
20787 _ACEOF
20788 rm -f conftest.$ac_objext conftest$ac_exeext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20790 (eval $ac_link) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -s conftest$ac_exeext'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }; then
20800 eval "$as_ac_var=yes"
20801 else
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20804
20805 eval "$as_ac_var=no"
20806 fi
20807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20808 fi
20809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20811 if test `eval echo '${'$as_ac_var'}'` = yes; then
20812 cat >>confdefs.h <<_ACEOF
20813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20814 _ACEOF
20815
20816 fi
20817 done
20818
20819 else
20820
20821 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
20822 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
20823 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
20824 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20826 else
20827
20828
20829
20830 ac_ext=cc
20831 ac_cpp='$CXXCPP $CPPFLAGS'
20832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20835
20836 cat >conftest.$ac_ext <<_ACEOF
20837 #line $LINENO "configure"
20838 /* confdefs.h. */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 #include <math.h>
20844 #ifdef HAVE_IEEEFP_H
20845 #include <ieeefp.h>
20846 #endif
20847
20848 int
20849 main ()
20850 {
20851 _sqrtl(0);
20852 ;
20853 return 0;
20854 }
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858 (eval $ac_compile) 2>&5
20859 ac_status=$?
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -s conftest.$ac_objext'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 glibcxx_cv_func__sqrtl_use=yes
20869 else
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873 glibcxx_cv_func__sqrtl_use=no
20874 fi
20875 rm -f conftest.$ac_objext conftest.$ac_ext
20876 ac_ext=c
20877 ac_cpp='$CPP $CPPFLAGS'
20878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20881
20882
20883 fi
20884
20885 fi
20886 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
20887 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
20888
20889 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
20890
20891 for ac_func in _sqrtl
20892 do
20893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20894 echo "$as_me:$LINENO: checking for $ac_func" >&5
20895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20896 if eval "test \"\${$as_ac_var+set}\" = set"; then
20897 echo $ECHO_N "(cached) $ECHO_C" >&6
20898 else
20899 if test x$gcc_no_link = xyes; then
20900 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20901 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20902 { (exit 1); exit 1; }; }
20903 fi
20904 cat >conftest.$ac_ext <<_ACEOF
20905 #line $LINENO "configure"
20906 /* confdefs.h. */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 /* System header to define __stub macros and hopefully few prototypes,
20912 which can conflict with char $ac_func (); below.
20913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20914 <limits.h> exists even on freestanding compilers. */
20915 #ifdef __STDC__
20916 # include <limits.h>
20917 #else
20918 # include <assert.h>
20919 #endif
20920 /* Override any gcc2 internal prototype to avoid an error. */
20921 #ifdef __cplusplus
20922 extern "C"
20923 {
20924 #endif
20925 /* We use char because int might match the return type of a gcc2
20926 builtin and then its argument prototype would still apply. */
20927 char $ac_func ();
20928 /* The GNU C library defines this for functions which it implements
20929 to always fail with ENOSYS. Some functions are actually named
20930 something starting with __ and the normal name is an alias. */
20931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20932 choke me
20933 #else
20934 char (*f) () = $ac_func;
20935 #endif
20936 #ifdef __cplusplus
20937 }
20938 #endif
20939
20940 int
20941 main ()
20942 {
20943 return f != $ac_func;
20944 ;
20945 return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext conftest$ac_exeext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20950 (eval $ac_link) 2>&5
20951 ac_status=$?
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); } &&
20954 { ac_try='test -s conftest$ac_exeext'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; }; then
20960 eval "$as_ac_var=yes"
20961 else
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20964
20965 eval "$as_ac_var=no"
20966 fi
20967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20968 fi
20969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20971 if test `eval echo '${'$as_ac_var'}'` = yes; then
20972 cat >>confdefs.h <<_ACEOF
20973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20974 _ACEOF
20975
20976 fi
20977 done
20978
20979 fi
20980 fi
20981
20982
20983
20984 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
20985 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
20986 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
20987 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20989 else
20990
20991
20992
20993 ac_ext=cc
20994 ac_cpp='$CXXCPP $CPPFLAGS'
20995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20998
20999 cat >conftest.$ac_ext <<_ACEOF
21000 #line $LINENO "configure"
21001 /* confdefs.h. */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006 #include <math.h>
21007 int
21008 main ()
21009 {
21010 sincosl(0, 0, 0);
21011 ;
21012 return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21017 (eval $ac_compile) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -s conftest.$ac_objext'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 glibcxx_cv_func_sincosl_use=yes
21028 else
21029 echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 glibcxx_cv_func_sincosl_use=no
21033 fi
21034 rm -f conftest.$ac_objext conftest.$ac_ext
21035 ac_ext=c
21036 ac_cpp='$CPP $CPPFLAGS'
21037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21040
21041
21042 fi
21043
21044 fi
21045 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
21046 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
21047
21048 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
21049
21050 for ac_func in sincosl
21051 do
21052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21053 echo "$as_me:$LINENO: checking for $ac_func" >&5
21054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21055 if eval "test \"\${$as_ac_var+set}\" = set"; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
21057 else
21058 if test x$gcc_no_link = xyes; then
21059 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21061 { (exit 1); exit 1; }; }
21062 fi
21063 cat >conftest.$ac_ext <<_ACEOF
21064 #line $LINENO "configure"
21065 /* confdefs.h. */
21066 _ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h. */
21070 /* System header to define __stub macros and hopefully few prototypes,
21071 which can conflict with char $ac_func (); below.
21072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21073 <limits.h> exists even on freestanding compilers. */
21074 #ifdef __STDC__
21075 # include <limits.h>
21076 #else
21077 # include <assert.h>
21078 #endif
21079 /* Override any gcc2 internal prototype to avoid an error. */
21080 #ifdef __cplusplus
21081 extern "C"
21082 {
21083 #endif
21084 /* We use char because int might match the return type of a gcc2
21085 builtin and then its argument prototype would still apply. */
21086 char $ac_func ();
21087 /* The GNU C library defines this for functions which it implements
21088 to always fail with ENOSYS. Some functions are actually named
21089 something starting with __ and the normal name is an alias. */
21090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21091 choke me
21092 #else
21093 char (*f) () = $ac_func;
21094 #endif
21095 #ifdef __cplusplus
21096 }
21097 #endif
21098
21099 int
21100 main ()
21101 {
21102 return f != $ac_func;
21103 ;
21104 return 0;
21105 }
21106 _ACEOF
21107 rm -f conftest.$ac_objext conftest$ac_exeext
21108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21109 (eval $ac_link) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } &&
21113 { ac_try='test -s conftest$ac_exeext'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21116 ac_status=$?
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 eval "$as_ac_var=yes"
21120 else
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124 eval "$as_ac_var=no"
21125 fi
21126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21127 fi
21128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21130 if test `eval echo '${'$as_ac_var'}'` = yes; then
21131 cat >>confdefs.h <<_ACEOF
21132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21133 _ACEOF
21134
21135 fi
21136 done
21137
21138 else
21139
21140 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
21141 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
21142 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
21143 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146
21147
21148
21149 ac_ext=cc
21150 ac_cpp='$CXXCPP $CPPFLAGS'
21151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21154
21155 cat >conftest.$ac_ext <<_ACEOF
21156 #line $LINENO "configure"
21157 /* confdefs.h. */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <math.h>
21163 int
21164 main ()
21165 {
21166 _sincosl(0, 0, 0);
21167 ;
21168 return 0;
21169 }
21170 _ACEOF
21171 rm -f conftest.$ac_objext
21172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21173 (eval $ac_compile) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } &&
21177 { ac_try='test -s conftest.$ac_objext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21180 ac_status=$?
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 glibcxx_cv_func__sincosl_use=yes
21184 else
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188 glibcxx_cv_func__sincosl_use=no
21189 fi
21190 rm -f conftest.$ac_objext conftest.$ac_ext
21191 ac_ext=c
21192 ac_cpp='$CPP $CPPFLAGS'
21193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21196
21197
21198 fi
21199
21200 fi
21201 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
21202 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
21203
21204 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
21205
21206 for ac_func in _sincosl
21207 do
21208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21209 echo "$as_me:$LINENO: checking for $ac_func" >&5
21210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21211 if eval "test \"\${$as_ac_var+set}\" = set"; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21213 else
21214 if test x$gcc_no_link = xyes; then
21215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21217 { (exit 1); exit 1; }; }
21218 fi
21219 cat >conftest.$ac_ext <<_ACEOF
21220 #line $LINENO "configure"
21221 /* confdefs.h. */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21226 /* System header to define __stub macros and hopefully few prototypes,
21227 which can conflict with char $ac_func (); below.
21228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21229 <limits.h> exists even on freestanding compilers. */
21230 #ifdef __STDC__
21231 # include <limits.h>
21232 #else
21233 # include <assert.h>
21234 #endif
21235 /* Override any gcc2 internal prototype to avoid an error. */
21236 #ifdef __cplusplus
21237 extern "C"
21238 {
21239 #endif
21240 /* We use char because int might match the return type of a gcc2
21241 builtin and then its argument prototype would still apply. */
21242 char $ac_func ();
21243 /* The GNU C library defines this for functions which it implements
21244 to always fail with ENOSYS. Some functions are actually named
21245 something starting with __ and the normal name is an alias. */
21246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21247 choke me
21248 #else
21249 char (*f) () = $ac_func;
21250 #endif
21251 #ifdef __cplusplus
21252 }
21253 #endif
21254
21255 int
21256 main ()
21257 {
21258 return f != $ac_func;
21259 ;
21260 return 0;
21261 }
21262 _ACEOF
21263 rm -f conftest.$ac_objext conftest$ac_exeext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21265 (eval $ac_link) 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
21269 { ac_try='test -s conftest$ac_exeext'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; }; then
21275 eval "$as_ac_var=yes"
21276 else
21277 echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21279
21280 eval "$as_ac_var=no"
21281 fi
21282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21283 fi
21284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21286 if test `eval echo '${'$as_ac_var'}'` = yes; then
21287 cat >>confdefs.h <<_ACEOF
21288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21289 _ACEOF
21290
21291 fi
21292 done
21293
21294 fi
21295 fi
21296
21297
21298
21299 echo "$as_me:$LINENO: checking for finitel declaration" >&5
21300 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
21301 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
21302 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
21303 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 else
21305
21306
21307
21308 ac_ext=cc
21309 ac_cpp='$CXXCPP $CPPFLAGS'
21310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21313
21314 cat >conftest.$ac_ext <<_ACEOF
21315 #line $LINENO "configure"
21316 /* confdefs.h. */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 #include <math.h>
21322 #ifdef HAVE_IEEEFP_H
21323 #include <ieeefp.h>
21324 #endif
21325
21326 int
21327 main ()
21328 {
21329 finitel(0);
21330 ;
21331 return 0;
21332 }
21333 _ACEOF
21334 rm -f conftest.$ac_objext
21335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21336 (eval $ac_compile) 2>&5
21337 ac_status=$?
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } &&
21340 { ac_try='test -s conftest.$ac_objext'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21346 glibcxx_cv_func_finitel_use=yes
21347 else
21348 echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21350
21351 glibcxx_cv_func_finitel_use=no
21352 fi
21353 rm -f conftest.$ac_objext conftest.$ac_ext
21354 ac_ext=c
21355 ac_cpp='$CPP $CPPFLAGS'
21356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21359
21360
21361 fi
21362
21363 fi
21364 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
21365 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
21366
21367 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
21368
21369 for ac_func in finitel
21370 do
21371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21372 echo "$as_me:$LINENO: checking for $ac_func" >&5
21373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21374 if eval "test \"\${$as_ac_var+set}\" = set"; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377 if test x$gcc_no_link = xyes; then
21378 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21379 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21380 { (exit 1); exit 1; }; }
21381 fi
21382 cat >conftest.$ac_ext <<_ACEOF
21383 #line $LINENO "configure"
21384 /* confdefs.h. */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h. */
21389 /* System header to define __stub macros and hopefully few prototypes,
21390 which can conflict with char $ac_func (); below.
21391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21392 <limits.h> exists even on freestanding compilers. */
21393 #ifdef __STDC__
21394 # include <limits.h>
21395 #else
21396 # include <assert.h>
21397 #endif
21398 /* Override any gcc2 internal prototype to avoid an error. */
21399 #ifdef __cplusplus
21400 extern "C"
21401 {
21402 #endif
21403 /* We use char because int might match the return type of a gcc2
21404 builtin and then its argument prototype would still apply. */
21405 char $ac_func ();
21406 /* The GNU C library defines this for functions which it implements
21407 to always fail with ENOSYS. Some functions are actually named
21408 something starting with __ and the normal name is an alias. */
21409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21410 choke me
21411 #else
21412 char (*f) () = $ac_func;
21413 #endif
21414 #ifdef __cplusplus
21415 }
21416 #endif
21417
21418 int
21419 main ()
21420 {
21421 return f != $ac_func;
21422 ;
21423 return 0;
21424 }
21425 _ACEOF
21426 rm -f conftest.$ac_objext conftest$ac_exeext
21427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21428 (eval $ac_link) 2>&5
21429 ac_status=$?
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); } &&
21432 { ac_try='test -s conftest$ac_exeext'
21433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434 (eval $ac_try) 2>&5
21435 ac_status=$?
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); }; }; then
21438 eval "$as_ac_var=yes"
21439 else
21440 echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21442
21443 eval "$as_ac_var=no"
21444 fi
21445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21446 fi
21447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21449 if test `eval echo '${'$as_ac_var'}'` = yes; then
21450 cat >>confdefs.h <<_ACEOF
21451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21452 _ACEOF
21453
21454 fi
21455 done
21456
21457 else
21458
21459 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
21460 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
21461 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
21462 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21464 else
21465
21466
21467
21468 ac_ext=cc
21469 ac_cpp='$CXXCPP $CPPFLAGS'
21470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21473
21474 cat >conftest.$ac_ext <<_ACEOF
21475 #line $LINENO "configure"
21476 /* confdefs.h. */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 #include <math.h>
21482 #ifdef HAVE_IEEEFP_H
21483 #include <ieeefp.h>
21484 #endif
21485
21486 int
21487 main ()
21488 {
21489 _finitel(0);
21490 ;
21491 return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext
21495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21496 (eval $ac_compile) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } &&
21500 { ac_try='test -s conftest.$ac_objext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 glibcxx_cv_func__finitel_use=yes
21507 else
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511 glibcxx_cv_func__finitel_use=no
21512 fi
21513 rm -f conftest.$ac_objext conftest.$ac_ext
21514 ac_ext=c
21515 ac_cpp='$CPP $CPPFLAGS'
21516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21519
21520
21521 fi
21522
21523 fi
21524 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
21525 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
21526
21527 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
21528
21529 for ac_func in _finitel
21530 do
21531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21532 echo "$as_me:$LINENO: checking for $ac_func" >&5
21533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21534 if eval "test \"\${$as_ac_var+set}\" = set"; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 else
21537 if test x$gcc_no_link = xyes; then
21538 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21539 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21540 { (exit 1); exit 1; }; }
21541 fi
21542 cat >conftest.$ac_ext <<_ACEOF
21543 #line $LINENO "configure"
21544 /* confdefs.h. */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 /* System header to define __stub macros and hopefully few prototypes,
21550 which can conflict with char $ac_func (); below.
21551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21552 <limits.h> exists even on freestanding compilers. */
21553 #ifdef __STDC__
21554 # include <limits.h>
21555 #else
21556 # include <assert.h>
21557 #endif
21558 /* Override any gcc2 internal prototype to avoid an error. */
21559 #ifdef __cplusplus
21560 extern "C"
21561 {
21562 #endif
21563 /* We use char because int might match the return type of a gcc2
21564 builtin and then its argument prototype would still apply. */
21565 char $ac_func ();
21566 /* The GNU C library defines this for functions which it implements
21567 to always fail with ENOSYS. Some functions are actually named
21568 something starting with __ and the normal name is an alias. */
21569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21570 choke me
21571 #else
21572 char (*f) () = $ac_func;
21573 #endif
21574 #ifdef __cplusplus
21575 }
21576 #endif
21577
21578 int
21579 main ()
21580 {
21581 return f != $ac_func;
21582 ;
21583 return 0;
21584 }
21585 _ACEOF
21586 rm -f conftest.$ac_objext conftest$ac_exeext
21587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21588 (eval $ac_link) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
21592 { ac_try='test -s conftest$ac_exeext'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
21598 eval "$as_ac_var=yes"
21599 else
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21602
21603 eval "$as_ac_var=no"
21604 fi
21605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21606 fi
21607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21609 if test `eval echo '${'$as_ac_var'}'` = yes; then
21610 cat >>confdefs.h <<_ACEOF
21611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21612 _ACEOF
21613
21614 fi
21615 done
21616
21617 fi
21618 fi
21619
21620
21621
21622
21623 echo "$as_me:$LINENO: checking for _float trig functions" >&5
21624 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
21625 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 else
21628
21629
21630
21631 ac_ext=cc
21632 ac_cpp='$CXXCPP $CPPFLAGS'
21633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21636
21637 cat >conftest.$ac_ext <<_ACEOF
21638 #line $LINENO "configure"
21639 /* confdefs.h. */
21640 _ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h. */
21644 #include <math.h>
21645 int
21646 main ()
21647 {
21648 `for x in _acosf _asinf _atanf \
21649 _cosf _sinf _tanf \
21650 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21651 ;
21652 return 0;
21653 }
21654 _ACEOF
21655 rm -f conftest.$ac_objext
21656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21657 (eval $ac_compile) 2>&5
21658 ac_status=$?
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try='test -s conftest.$ac_objext'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 glibcxx_cv_func__float_trig_use=yes
21668 else
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672 glibcxx_cv_func__float_trig_use=no
21673 fi
21674 rm -f conftest.$ac_objext conftest.$ac_ext
21675 ac_ext=c
21676 ac_cpp='$CPP $CPPFLAGS'
21677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21680
21681 fi
21682
21683 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
21684 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
21685 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695 for ac_func in _acosf _asinf _atanf \
21696 _cosf _sinf _tanf \
21697 _coshf _sinhf _tanhf
21698 do
21699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21700 echo "$as_me:$LINENO: checking for $ac_func" >&5
21701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21702 if eval "test \"\${$as_ac_var+set}\" = set"; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 else
21705 if test x$gcc_no_link = xyes; then
21706 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21707 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21708 { (exit 1); exit 1; }; }
21709 fi
21710 cat >conftest.$ac_ext <<_ACEOF
21711 #line $LINENO "configure"
21712 /* confdefs.h. */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 /* System header to define __stub macros and hopefully few prototypes,
21718 which can conflict with char $ac_func (); below.
21719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21720 <limits.h> exists even on freestanding compilers. */
21721 #ifdef __STDC__
21722 # include <limits.h>
21723 #else
21724 # include <assert.h>
21725 #endif
21726 /* Override any gcc2 internal prototype to avoid an error. */
21727 #ifdef __cplusplus
21728 extern "C"
21729 {
21730 #endif
21731 /* We use char because int might match the return type of a gcc2
21732 builtin and then its argument prototype would still apply. */
21733 char $ac_func ();
21734 /* The GNU C library defines this for functions which it implements
21735 to always fail with ENOSYS. Some functions are actually named
21736 something starting with __ and the normal name is an alias. */
21737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21738 choke me
21739 #else
21740 char (*f) () = $ac_func;
21741 #endif
21742 #ifdef __cplusplus
21743 }
21744 #endif
21745
21746 int
21747 main ()
21748 {
21749 return f != $ac_func;
21750 ;
21751 return 0;
21752 }
21753 _ACEOF
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21756 (eval $ac_link) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } &&
21760 { ac_try='test -s conftest$ac_exeext'
21761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766 eval "$as_ac_var=yes"
21767 else
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771 eval "$as_ac_var=no"
21772 fi
21773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21774 fi
21775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21777 if test `eval echo '${'$as_ac_var'}'` = yes; then
21778 cat >>confdefs.h <<_ACEOF
21779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21780 _ACEOF
21781
21782 fi
21783 done
21784
21785 fi
21786
21787
21788 echo "$as_me:$LINENO: checking for _float round functions" >&5
21789 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
21790 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793
21794
21795
21796 ac_ext=cc
21797 ac_cpp='$CXXCPP $CPPFLAGS'
21798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21801
21802 cat >conftest.$ac_ext <<_ACEOF
21803 #line $LINENO "configure"
21804 /* confdefs.h. */
21805 _ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h. */
21809 #include <math.h>
21810 int
21811 main ()
21812 {
21813 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21814 ;
21815 return 0;
21816 }
21817 _ACEOF
21818 rm -f conftest.$ac_objext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21820 (eval $ac_compile) 2>&5
21821 ac_status=$?
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } &&
21824 { ac_try='test -s conftest.$ac_objext'
21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; }; then
21830 glibcxx_cv_func__float_round_use=yes
21831 else
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21834
21835 glibcxx_cv_func__float_round_use=no
21836 fi
21837 rm -f conftest.$ac_objext conftest.$ac_ext
21838 ac_ext=c
21839 ac_cpp='$CPP $CPPFLAGS'
21840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21843
21844 fi
21845
21846 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
21847 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
21848 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
21849
21850
21851 for ac_func in _ceilf _floorf
21852 do
21853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21854 echo "$as_me:$LINENO: checking for $ac_func" >&5
21855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21856 if eval "test \"\${$as_ac_var+set}\" = set"; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859 if test x$gcc_no_link = xyes; then
21860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21862 { (exit 1); exit 1; }; }
21863 fi
21864 cat >conftest.$ac_ext <<_ACEOF
21865 #line $LINENO "configure"
21866 /* confdefs.h. */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 /* System header to define __stub macros and hopefully few prototypes,
21872 which can conflict with char $ac_func (); below.
21873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21874 <limits.h> exists even on freestanding compilers. */
21875 #ifdef __STDC__
21876 # include <limits.h>
21877 #else
21878 # include <assert.h>
21879 #endif
21880 /* Override any gcc2 internal prototype to avoid an error. */
21881 #ifdef __cplusplus
21882 extern "C"
21883 {
21884 #endif
21885 /* We use char because int might match the return type of a gcc2
21886 builtin and then its argument prototype would still apply. */
21887 char $ac_func ();
21888 /* The GNU C library defines this for functions which it implements
21889 to always fail with ENOSYS. Some functions are actually named
21890 something starting with __ and the normal name is an alias. */
21891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21892 choke me
21893 #else
21894 char (*f) () = $ac_func;
21895 #endif
21896 #ifdef __cplusplus
21897 }
21898 #endif
21899
21900 int
21901 main ()
21902 {
21903 return f != $ac_func;
21904 ;
21905 return 0;
21906 }
21907 _ACEOF
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21910 (eval $ac_link) 2>&5
21911 ac_status=$?
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } &&
21914 { ac_try='test -s conftest$ac_exeext'
21915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916 (eval $ac_try) 2>&5
21917 ac_status=$?
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; }; then
21920 eval "$as_ac_var=yes"
21921 else
21922 echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21924
21925 eval "$as_ac_var=no"
21926 fi
21927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21928 fi
21929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21931 if test `eval echo '${'$as_ac_var'}'` = yes; then
21932 cat >>confdefs.h <<_ACEOF
21933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21934 _ACEOF
21935
21936 fi
21937 done
21938
21939 fi
21940
21941
21942
21943 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
21944 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
21945 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 else
21948
21949
21950
21951 ac_ext=cc
21952 ac_cpp='$CXXCPP $CPPFLAGS'
21953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21956
21957 cat >conftest.$ac_ext <<_ACEOF
21958 #line $LINENO "configure"
21959 /* confdefs.h. */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 #include <math.h>
21965 int
21966 main ()
21967 {
21968 `for x in _acosl _asinl _atanl \
21969 _cosl _sinl _tanl \
21970 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21971 ;
21972 return 0;
21973 }
21974 _ACEOF
21975 rm -f conftest.$ac_objext
21976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21977 (eval $ac_compile) 2>&5
21978 ac_status=$?
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } &&
21981 { ac_try='test -s conftest.$ac_objext'
21982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; }; then
21987 glibcxx_cv_func__long_double_trig_use=yes
21988 else
21989 echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21991
21992 glibcxx_cv_func__long_double_trig_use=no
21993 fi
21994 rm -f conftest.$ac_objext conftest.$ac_ext
21995 ac_ext=c
21996 ac_cpp='$CPP $CPPFLAGS'
21997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22000
22001 fi
22002
22003 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
22004 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
22005 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015 for ac_func in _acosl _asinl _atanl \
22016 _cosl _sinl _tanl \
22017 _coshl _sinhl _tanhl
22018 do
22019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22020 echo "$as_me:$LINENO: checking for $ac_func" >&5
22021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22022 if eval "test \"\${$as_ac_var+set}\" = set"; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025 if test x$gcc_no_link = xyes; then
22026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22028 { (exit 1); exit 1; }; }
22029 fi
22030 cat >conftest.$ac_ext <<_ACEOF
22031 #line $LINENO "configure"
22032 /* confdefs.h. */
22033 _ACEOF
22034 cat confdefs.h >>conftest.$ac_ext
22035 cat >>conftest.$ac_ext <<_ACEOF
22036 /* end confdefs.h. */
22037 /* System header to define __stub macros and hopefully few prototypes,
22038 which can conflict with char $ac_func (); below.
22039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22040 <limits.h> exists even on freestanding compilers. */
22041 #ifdef __STDC__
22042 # include <limits.h>
22043 #else
22044 # include <assert.h>
22045 #endif
22046 /* Override any gcc2 internal prototype to avoid an error. */
22047 #ifdef __cplusplus
22048 extern "C"
22049 {
22050 #endif
22051 /* We use char because int might match the return type of a gcc2
22052 builtin and then its argument prototype would still apply. */
22053 char $ac_func ();
22054 /* The GNU C library defines this for functions which it implements
22055 to always fail with ENOSYS. Some functions are actually named
22056 something starting with __ and the normal name is an alias. */
22057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22058 choke me
22059 #else
22060 char (*f) () = $ac_func;
22061 #endif
22062 #ifdef __cplusplus
22063 }
22064 #endif
22065
22066 int
22067 main ()
22068 {
22069 return f != $ac_func;
22070 ;
22071 return 0;
22072 }
22073 _ACEOF
22074 rm -f conftest.$ac_objext conftest$ac_exeext
22075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22076 (eval $ac_link) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } &&
22080 { ac_try='test -s conftest$ac_exeext'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22083 ac_status=$?
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 eval "$as_ac_var=yes"
22087 else
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22090
22091 eval "$as_ac_var=no"
22092 fi
22093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22094 fi
22095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22097 if test `eval echo '${'$as_ac_var'}'` = yes; then
22098 cat >>confdefs.h <<_ACEOF
22099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22100 _ACEOF
22101
22102 fi
22103 done
22104
22105 fi
22106
22107
22108 echo "$as_me:$LINENO: checking for _long double round functions" >&5
22109 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
22110 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
22111 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 else
22113
22114
22115
22116 ac_ext=cc
22117 ac_cpp='$CXXCPP $CPPFLAGS'
22118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22121
22122 cat >conftest.$ac_ext <<_ACEOF
22123 #line $LINENO "configure"
22124 /* confdefs.h. */
22125 _ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22129 #include <math.h>
22130 int
22131 main ()
22132 {
22133 `for x in _ceill _floorl; do echo "$x (0);"; done`
22134 ;
22135 return 0;
22136 }
22137 _ACEOF
22138 rm -f conftest.$ac_objext
22139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22140 (eval $ac_compile) 2>&5
22141 ac_status=$?
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } &&
22144 { ac_try='test -s conftest.$ac_objext'
22145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22146 (eval $ac_try) 2>&5
22147 ac_status=$?
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); }; }; then
22150 glibcxx_cv_func__long_double_round_use=yes
22151 else
22152 echo "$as_me: failed program was:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22154
22155 glibcxx_cv_func__long_double_round_use=no
22156 fi
22157 rm -f conftest.$ac_objext conftest.$ac_ext
22158 ac_ext=c
22159 ac_cpp='$CPP $CPPFLAGS'
22160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22163
22164 fi
22165
22166 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
22167 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
22168 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
22169
22170
22171 for ac_func in _ceill _floorl
22172 do
22173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22174 echo "$as_me:$LINENO: checking for $ac_func" >&5
22175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22176 if eval "test \"\${$as_ac_var+set}\" = set"; then
22177 echo $ECHO_N "(cached) $ECHO_C" >&6
22178 else
22179 if test x$gcc_no_link = xyes; then
22180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22182 { (exit 1); exit 1; }; }
22183 fi
22184 cat >conftest.$ac_ext <<_ACEOF
22185 #line $LINENO "configure"
22186 /* confdefs.h. */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 /* System header to define __stub macros and hopefully few prototypes,
22192 which can conflict with char $ac_func (); below.
22193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22194 <limits.h> exists even on freestanding compilers. */
22195 #ifdef __STDC__
22196 # include <limits.h>
22197 #else
22198 # include <assert.h>
22199 #endif
22200 /* Override any gcc2 internal prototype to avoid an error. */
22201 #ifdef __cplusplus
22202 extern "C"
22203 {
22204 #endif
22205 /* We use char because int might match the return type of a gcc2
22206 builtin and then its argument prototype would still apply. */
22207 char $ac_func ();
22208 /* The GNU C library defines this for functions which it implements
22209 to always fail with ENOSYS. Some functions are actually named
22210 something starting with __ and the normal name is an alias. */
22211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22212 choke me
22213 #else
22214 char (*f) () = $ac_func;
22215 #endif
22216 #ifdef __cplusplus
22217 }
22218 #endif
22219
22220 int
22221 main ()
22222 {
22223 return f != $ac_func;
22224 ;
22225 return 0;
22226 }
22227 _ACEOF
22228 rm -f conftest.$ac_objext conftest$ac_exeext
22229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22230 (eval $ac_link) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } &&
22234 { ac_try='test -s conftest$ac_exeext'
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; }; then
22240 eval "$as_ac_var=yes"
22241 else
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245 eval "$as_ac_var=no"
22246 fi
22247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22248 fi
22249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22251 if test `eval echo '${'$as_ac_var'}'` = yes; then
22252 cat >>confdefs.h <<_ACEOF
22253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22254 _ACEOF
22255
22256 fi
22257 done
22258
22259 fi
22260
22261
22262 LIBS="$ac_save_LIBS"
22263 CXXFLAGS="$ac_save_CXXFLAGS"
22264
22265
22266
22267 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
22268 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
22269 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
22270 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
22271 echo $ECHO_N "(cached) $ECHO_C" >&6
22272 else
22273
22274
22275
22276 ac_ext=cc
22277 ac_cpp='$CXXCPP $CPPFLAGS'
22278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22281
22282 cat >conftest.$ac_ext <<_ACEOF
22283 #line $LINENO "configure"
22284 /* confdefs.h. */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289 #include <math.h>
22290 int
22291 main ()
22292 {
22293 __builtin_abs(0);
22294 ;
22295 return 0;
22296 }
22297 _ACEOF
22298 rm -f conftest.$ac_objext
22299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22300 (eval $ac_compile) 2>&5
22301 ac_status=$?
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } &&
22304 { ac_try='test -s conftest.$ac_objext'
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; }; then
22310 glibcxx_cv_func___builtin_abs_use=yes
22311 else
22312 echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315 glibcxx_cv_func___builtin_abs_use=no
22316 fi
22317 rm -f conftest.$ac_objext conftest.$ac_ext
22318 ac_ext=c
22319 ac_cpp='$CPP $CPPFLAGS'
22320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22323
22324
22325 fi
22326
22327 fi
22328 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
22329 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
22330 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
22331 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
22332 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
22333 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
22334 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22336 else
22337
22338 if test x$gcc_no_link = xyes; then
22339 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22341 { (exit 1); exit 1; }; }
22342 fi
22343 cat >conftest.$ac_ext <<_ACEOF
22344 #line $LINENO "configure"
22345 /* confdefs.h. */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 #include <math.h>
22351 int
22352 main ()
22353 {
22354 __builtin_abs(0);
22355 ;
22356 return 0;
22357 }
22358 _ACEOF
22359 rm -f conftest.$ac_objext conftest$ac_exeext
22360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22361 (eval $ac_link) 2>&5
22362 ac_status=$?
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); } &&
22365 { ac_try='test -s conftest$ac_exeext'
22366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367 (eval $ac_try) 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; }; then
22371 glibcxx_cv_func___builtin_abs_link=yes
22372 else
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22375
22376 glibcxx_cv_func___builtin_abs_link=no
22377 fi
22378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22379
22380 fi
22381
22382 fi
22383 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
22384 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
22385 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
22386 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22387 cat >>confdefs.h <<_ACEOF
22388 #define ${ac_tr_func} 1
22389 _ACEOF
22390
22391 fi
22392 fi
22393
22394
22395 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
22396 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
22397 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
22398 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401
22402
22403
22404 ac_ext=cc
22405 ac_cpp='$CXXCPP $CPPFLAGS'
22406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22409
22410 cat >conftest.$ac_ext <<_ACEOF
22411 #line $LINENO "configure"
22412 /* confdefs.h. */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 #include <math.h>
22418 int
22419 main ()
22420 {
22421 __builtin_fabsf(0);
22422 ;
22423 return 0;
22424 }
22425 _ACEOF
22426 rm -f conftest.$ac_objext
22427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22428 (eval $ac_compile) 2>&5
22429 ac_status=$?
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } &&
22432 { ac_try='test -s conftest.$ac_objext'
22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434 (eval $ac_try) 2>&5
22435 ac_status=$?
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; }; then
22438 glibcxx_cv_func___builtin_fabsf_use=yes
22439 else
22440 echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22442
22443 glibcxx_cv_func___builtin_fabsf_use=no
22444 fi
22445 rm -f conftest.$ac_objext conftest.$ac_ext
22446 ac_ext=c
22447 ac_cpp='$CPP $CPPFLAGS'
22448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22451
22452
22453 fi
22454
22455 fi
22456 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
22457 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
22458 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
22459 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
22460 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
22461 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
22462 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
22463 echo $ECHO_N "(cached) $ECHO_C" >&6
22464 else
22465
22466 if test x$gcc_no_link = xyes; then
22467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22469 { (exit 1); exit 1; }; }
22470 fi
22471 cat >conftest.$ac_ext <<_ACEOF
22472 #line $LINENO "configure"
22473 /* confdefs.h. */
22474 _ACEOF
22475 cat confdefs.h >>conftest.$ac_ext
22476 cat >>conftest.$ac_ext <<_ACEOF
22477 /* end confdefs.h. */
22478 #include <math.h>
22479 int
22480 main ()
22481 {
22482 __builtin_fabsf(0);
22483 ;
22484 return 0;
22485 }
22486 _ACEOF
22487 rm -f conftest.$ac_objext conftest$ac_exeext
22488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22489 (eval $ac_link) 2>&5
22490 ac_status=$?
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); } &&
22493 { ac_try='test -s conftest$ac_exeext'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22499 glibcxx_cv_func___builtin_fabsf_link=yes
22500 else
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22503
22504 glibcxx_cv_func___builtin_fabsf_link=no
22505 fi
22506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22507
22508 fi
22509
22510 fi
22511 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
22512 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
22513 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
22514 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22515 cat >>confdefs.h <<_ACEOF
22516 #define ${ac_tr_func} 1
22517 _ACEOF
22518
22519 fi
22520 fi
22521
22522
22523 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
22524 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
22525 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
22526 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529
22530
22531
22532 ac_ext=cc
22533 ac_cpp='$CXXCPP $CPPFLAGS'
22534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22537
22538 cat >conftest.$ac_ext <<_ACEOF
22539 #line $LINENO "configure"
22540 /* confdefs.h. */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545 #include <math.h>
22546 int
22547 main ()
22548 {
22549 __builtin_fabs(0);
22550 ;
22551 return 0;
22552 }
22553 _ACEOF
22554 rm -f conftest.$ac_objext
22555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22556 (eval $ac_compile) 2>&5
22557 ac_status=$?
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } &&
22560 { ac_try='test -s conftest.$ac_objext'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; }; then
22566 glibcxx_cv_func___builtin_fabs_use=yes
22567 else
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22570
22571 glibcxx_cv_func___builtin_fabs_use=no
22572 fi
22573 rm -f conftest.$ac_objext conftest.$ac_ext
22574 ac_ext=c
22575 ac_cpp='$CPP $CPPFLAGS'
22576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22579
22580
22581 fi
22582
22583 fi
22584 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
22585 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
22586 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
22587 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
22588 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
22589 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
22590 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
22591 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 else
22593
22594 if test x$gcc_no_link = xyes; then
22595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22597 { (exit 1); exit 1; }; }
22598 fi
22599 cat >conftest.$ac_ext <<_ACEOF
22600 #line $LINENO "configure"
22601 /* confdefs.h. */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h. */
22606 #include <math.h>
22607 int
22608 main ()
22609 {
22610 __builtin_fabs(0);
22611 ;
22612 return 0;
22613 }
22614 _ACEOF
22615 rm -f conftest.$ac_objext conftest$ac_exeext
22616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22617 (eval $ac_link) 2>&5
22618 ac_status=$?
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } &&
22621 { ac_try='test -s conftest$ac_exeext'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 glibcxx_cv_func___builtin_fabs_link=yes
22628 else
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632 glibcxx_cv_func___builtin_fabs_link=no
22633 fi
22634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22635
22636 fi
22637
22638 fi
22639 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
22640 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
22641 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
22642 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22643 cat >>confdefs.h <<_ACEOF
22644 #define ${ac_tr_func} 1
22645 _ACEOF
22646
22647 fi
22648 fi
22649
22650
22651 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
22652 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
22653 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
22654 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657
22658
22659
22660 ac_ext=cc
22661 ac_cpp='$CXXCPP $CPPFLAGS'
22662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22665
22666 cat >conftest.$ac_ext <<_ACEOF
22667 #line $LINENO "configure"
22668 /* confdefs.h. */
22669 _ACEOF
22670 cat confdefs.h >>conftest.$ac_ext
22671 cat >>conftest.$ac_ext <<_ACEOF
22672 /* end confdefs.h. */
22673 #include <math.h>
22674 int
22675 main ()
22676 {
22677 __builtin_fabsl(0);
22678 ;
22679 return 0;
22680 }
22681 _ACEOF
22682 rm -f conftest.$ac_objext
22683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22684 (eval $ac_compile) 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } &&
22688 { ac_try='test -s conftest.$ac_objext'
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22691 ac_status=$?
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; }; then
22694 glibcxx_cv_func___builtin_fabsl_use=yes
22695 else
22696 echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22698
22699 glibcxx_cv_func___builtin_fabsl_use=no
22700 fi
22701 rm -f conftest.$ac_objext conftest.$ac_ext
22702 ac_ext=c
22703 ac_cpp='$CPP $CPPFLAGS'
22704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22707
22708
22709 fi
22710
22711 fi
22712 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
22713 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
22714 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
22715 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
22716 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
22717 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
22718 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
22719 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 else
22721
22722 if test x$gcc_no_link = xyes; then
22723 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22724 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22725 { (exit 1); exit 1; }; }
22726 fi
22727 cat >conftest.$ac_ext <<_ACEOF
22728 #line $LINENO "configure"
22729 /* confdefs.h. */
22730 _ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h. */
22734 #include <math.h>
22735 int
22736 main ()
22737 {
22738 __builtin_fabsl(0);
22739 ;
22740 return 0;
22741 }
22742 _ACEOF
22743 rm -f conftest.$ac_objext conftest$ac_exeext
22744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22745 (eval $ac_link) 2>&5
22746 ac_status=$?
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } &&
22749 { ac_try='test -s conftest$ac_exeext'
22750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751 (eval $ac_try) 2>&5
22752 ac_status=$?
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; }; then
22755 glibcxx_cv_func___builtin_fabsl_link=yes
22756 else
22757 echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22759
22760 glibcxx_cv_func___builtin_fabsl_link=no
22761 fi
22762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22763
22764 fi
22765
22766 fi
22767 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
22768 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
22769 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
22770 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22771 cat >>confdefs.h <<_ACEOF
22772 #define ${ac_tr_func} 1
22773 _ACEOF
22774
22775 fi
22776 fi
22777
22778
22779 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
22780 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
22781 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
22782 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22784 else
22785
22786
22787
22788 ac_ext=cc
22789 ac_cpp='$CXXCPP $CPPFLAGS'
22790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22793
22794 cat >conftest.$ac_ext <<_ACEOF
22795 #line $LINENO "configure"
22796 /* confdefs.h. */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 #include <math.h>
22802 int
22803 main ()
22804 {
22805 __builtin_labs(0);
22806 ;
22807 return 0;
22808 }
22809 _ACEOF
22810 rm -f conftest.$ac_objext
22811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22812 (eval $ac_compile) 2>&5
22813 ac_status=$?
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } &&
22816 { ac_try='test -s conftest.$ac_objext'
22817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818 (eval $ac_try) 2>&5
22819 ac_status=$?
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); }; }; then
22822 glibcxx_cv_func___builtin_labs_use=yes
22823 else
22824 echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827 glibcxx_cv_func___builtin_labs_use=no
22828 fi
22829 rm -f conftest.$ac_objext conftest.$ac_ext
22830 ac_ext=c
22831 ac_cpp='$CPP $CPPFLAGS'
22832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22835
22836
22837 fi
22838
22839 fi
22840 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
22841 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
22842 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
22843 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
22844 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
22845 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
22846 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22848 else
22849
22850 if test x$gcc_no_link = xyes; then
22851 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22852 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22853 { (exit 1); exit 1; }; }
22854 fi
22855 cat >conftest.$ac_ext <<_ACEOF
22856 #line $LINENO "configure"
22857 /* confdefs.h. */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 #include <math.h>
22863 int
22864 main ()
22865 {
22866 __builtin_labs(0);
22867 ;
22868 return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext conftest$ac_exeext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22873 (eval $ac_link) 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); } &&
22877 { ac_try='test -s conftest$ac_exeext'
22878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879 (eval $ac_try) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883 glibcxx_cv_func___builtin_labs_link=yes
22884 else
22885 echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22887
22888 glibcxx_cv_func___builtin_labs_link=no
22889 fi
22890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22891
22892 fi
22893
22894 fi
22895 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
22896 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
22897 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
22898 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22899 cat >>confdefs.h <<_ACEOF
22900 #define ${ac_tr_func} 1
22901 _ACEOF
22902
22903 fi
22904 fi
22905
22906
22907
22908 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
22909 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
22910 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
22911 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914
22915
22916
22917 ac_ext=cc
22918 ac_cpp='$CXXCPP $CPPFLAGS'
22919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22922
22923 cat >conftest.$ac_ext <<_ACEOF
22924 #line $LINENO "configure"
22925 /* confdefs.h. */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 #include <math.h>
22931 int
22932 main ()
22933 {
22934 __builtin_sqrtf(0);
22935 ;
22936 return 0;
22937 }
22938 _ACEOF
22939 rm -f conftest.$ac_objext
22940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22941 (eval $ac_compile) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); } &&
22945 { ac_try='test -s conftest.$ac_objext'
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; }; then
22951 glibcxx_cv_func___builtin_sqrtf_use=yes
22952 else
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22955
22956 glibcxx_cv_func___builtin_sqrtf_use=no
22957 fi
22958 rm -f conftest.$ac_objext conftest.$ac_ext
22959 ac_ext=c
22960 ac_cpp='$CPP $CPPFLAGS'
22961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22964
22965
22966 fi
22967
22968 fi
22969 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
22970 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
22971 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
22972 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
22973 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
22974 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
22975 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978
22979 if test x$gcc_no_link = xyes; then
22980 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22982 { (exit 1); exit 1; }; }
22983 fi
22984 cat >conftest.$ac_ext <<_ACEOF
22985 #line $LINENO "configure"
22986 /* confdefs.h. */
22987 _ACEOF
22988 cat confdefs.h >>conftest.$ac_ext
22989 cat >>conftest.$ac_ext <<_ACEOF
22990 /* end confdefs.h. */
22991 #include <math.h>
22992 int
22993 main ()
22994 {
22995 __builtin_sqrtf(0);
22996 ;
22997 return 0;
22998 }
22999 _ACEOF
23000 rm -f conftest.$ac_objext conftest$ac_exeext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23002 (eval $ac_link) 2>&5
23003 ac_status=$?
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); } &&
23006 { ac_try='test -s conftest$ac_exeext'
23007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008 (eval $ac_try) 2>&5
23009 ac_status=$?
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); }; }; then
23012 glibcxx_cv_func___builtin_sqrtf_link=yes
23013 else
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23016
23017 glibcxx_cv_func___builtin_sqrtf_link=no
23018 fi
23019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23020
23021 fi
23022
23023 fi
23024 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
23025 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
23026 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
23027 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23028 cat >>confdefs.h <<_ACEOF
23029 #define ${ac_tr_func} 1
23030 _ACEOF
23031
23032 fi
23033 fi
23034
23035
23036 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
23037 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
23038 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
23039 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 else
23042
23043
23044
23045 ac_ext=cc
23046 ac_cpp='$CXXCPP $CPPFLAGS'
23047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23050
23051 cat >conftest.$ac_ext <<_ACEOF
23052 #line $LINENO "configure"
23053 /* confdefs.h. */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 #include <math.h>
23059 int
23060 main ()
23061 {
23062 __builtin_sqrt(0);
23063 ;
23064 return 0;
23065 }
23066 _ACEOF
23067 rm -f conftest.$ac_objext
23068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23069 (eval $ac_compile) 2>&5
23070 ac_status=$?
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } &&
23073 { ac_try='test -s conftest.$ac_objext'
23074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075 (eval $ac_try) 2>&5
23076 ac_status=$?
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); }; }; then
23079 glibcxx_cv_func___builtin_sqrt_use=yes
23080 else
23081 echo "$as_me: failed program was:" >&5
23082 sed 's/^/| /' conftest.$ac_ext >&5
23083
23084 glibcxx_cv_func___builtin_sqrt_use=no
23085 fi
23086 rm -f conftest.$ac_objext conftest.$ac_ext
23087 ac_ext=c
23088 ac_cpp='$CPP $CPPFLAGS'
23089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23092
23093
23094 fi
23095
23096 fi
23097 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
23098 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
23099 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
23100 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
23101 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
23102 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
23103 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106
23107 if test x$gcc_no_link = xyes; then
23108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23110 { (exit 1); exit 1; }; }
23111 fi
23112 cat >conftest.$ac_ext <<_ACEOF
23113 #line $LINENO "configure"
23114 /* confdefs.h. */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23119 #include <math.h>
23120 int
23121 main ()
23122 {
23123 __builtin_sqrt(0);
23124 ;
23125 return 0;
23126 }
23127 _ACEOF
23128 rm -f conftest.$ac_objext conftest$ac_exeext
23129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23130 (eval $ac_link) 2>&5
23131 ac_status=$?
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } &&
23134 { ac_try='test -s conftest$ac_exeext'
23135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136 (eval $ac_try) 2>&5
23137 ac_status=$?
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); }; }; then
23140 glibcxx_cv_func___builtin_sqrt_link=yes
23141 else
23142 echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23144
23145 glibcxx_cv_func___builtin_sqrt_link=no
23146 fi
23147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23148
23149 fi
23150
23151 fi
23152 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
23153 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
23154 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
23155 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23156 cat >>confdefs.h <<_ACEOF
23157 #define ${ac_tr_func} 1
23158 _ACEOF
23159
23160 fi
23161 fi
23162
23163
23164 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
23165 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
23166 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
23167 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23169 else
23170
23171
23172
23173 ac_ext=cc
23174 ac_cpp='$CXXCPP $CPPFLAGS'
23175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23178
23179 cat >conftest.$ac_ext <<_ACEOF
23180 #line $LINENO "configure"
23181 /* confdefs.h. */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 #include <math.h>
23187 int
23188 main ()
23189 {
23190 __builtin_sqrtl(0);
23191 ;
23192 return 0;
23193 }
23194 _ACEOF
23195 rm -f conftest.$ac_objext
23196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23197 (eval $ac_compile) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } &&
23201 { ac_try='test -s conftest.$ac_objext'
23202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23203 (eval $ac_try) 2>&5
23204 ac_status=$?
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); }; }; then
23207 glibcxx_cv_func___builtin_sqrtl_use=yes
23208 else
23209 echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23211
23212 glibcxx_cv_func___builtin_sqrtl_use=no
23213 fi
23214 rm -f conftest.$ac_objext conftest.$ac_ext
23215 ac_ext=c
23216 ac_cpp='$CPP $CPPFLAGS'
23217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23220
23221
23222 fi
23223
23224 fi
23225 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
23226 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
23227 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
23228 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
23229 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
23230 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
23231 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
23232 echo $ECHO_N "(cached) $ECHO_C" >&6
23233 else
23234
23235 if test x$gcc_no_link = xyes; then
23236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23238 { (exit 1); exit 1; }; }
23239 fi
23240 cat >conftest.$ac_ext <<_ACEOF
23241 #line $LINENO "configure"
23242 /* confdefs.h. */
23243 _ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h. */
23247 #include <math.h>
23248 int
23249 main ()
23250 {
23251 __builtin_sqrtl(0);
23252 ;
23253 return 0;
23254 }
23255 _ACEOF
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258 (eval $ac_link) 2>&5
23259 ac_status=$?
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } &&
23262 { ac_try='test -s conftest$ac_exeext'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23268 glibcxx_cv_func___builtin_sqrtl_link=yes
23269 else
23270 echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23272
23273 glibcxx_cv_func___builtin_sqrtl_link=no
23274 fi
23275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23276
23277 fi
23278
23279 fi
23280 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
23281 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
23282 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
23283 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23284 cat >>confdefs.h <<_ACEOF
23285 #define ${ac_tr_func} 1
23286 _ACEOF
23287
23288 fi
23289 fi
23290
23291
23292
23293 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
23294 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
23295 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
23296 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23298 else
23299
23300
23301
23302 ac_ext=cc
23303 ac_cpp='$CXXCPP $CPPFLAGS'
23304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23307
23308 cat >conftest.$ac_ext <<_ACEOF
23309 #line $LINENO "configure"
23310 /* confdefs.h. */
23311 _ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23315 #include <math.h>
23316 int
23317 main ()
23318 {
23319 __builtin_sinf(0);
23320 ;
23321 return 0;
23322 }
23323 _ACEOF
23324 rm -f conftest.$ac_objext
23325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23326 (eval $ac_compile) 2>&5
23327 ac_status=$?
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } &&
23330 { ac_try='test -s conftest.$ac_objext'
23331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332 (eval $ac_try) 2>&5
23333 ac_status=$?
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); }; }; then
23336 glibcxx_cv_func___builtin_sinf_use=yes
23337 else
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23340
23341 glibcxx_cv_func___builtin_sinf_use=no
23342 fi
23343 rm -f conftest.$ac_objext conftest.$ac_ext
23344 ac_ext=c
23345 ac_cpp='$CPP $CPPFLAGS'
23346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23349
23350
23351 fi
23352
23353 fi
23354 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
23355 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
23356 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
23357 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
23358 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
23359 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
23360 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23362 else
23363
23364 if test x$gcc_no_link = xyes; then
23365 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23366 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23367 { (exit 1); exit 1; }; }
23368 fi
23369 cat >conftest.$ac_ext <<_ACEOF
23370 #line $LINENO "configure"
23371 /* confdefs.h. */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h. */
23376 #include <math.h>
23377 int
23378 main ()
23379 {
23380 __builtin_sinf(0);
23381 ;
23382 return 0;
23383 }
23384 _ACEOF
23385 rm -f conftest.$ac_objext conftest$ac_exeext
23386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23387 (eval $ac_link) 2>&5
23388 ac_status=$?
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } &&
23391 { ac_try='test -s conftest$ac_exeext'
23392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23393 (eval $ac_try) 2>&5
23394 ac_status=$?
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); }; }; then
23397 glibcxx_cv_func___builtin_sinf_link=yes
23398 else
23399 echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23401
23402 glibcxx_cv_func___builtin_sinf_link=no
23403 fi
23404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23405
23406 fi
23407
23408 fi
23409 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
23410 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
23411 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
23412 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23413 cat >>confdefs.h <<_ACEOF
23414 #define ${ac_tr_func} 1
23415 _ACEOF
23416
23417 fi
23418 fi
23419
23420
23421 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
23422 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
23423 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
23424 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
23425 echo $ECHO_N "(cached) $ECHO_C" >&6
23426 else
23427
23428
23429
23430 ac_ext=cc
23431 ac_cpp='$CXXCPP $CPPFLAGS'
23432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23435
23436 cat >conftest.$ac_ext <<_ACEOF
23437 #line $LINENO "configure"
23438 /* confdefs.h. */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 #include <math.h>
23444 int
23445 main ()
23446 {
23447 __builtin_sin(0);
23448 ;
23449 return 0;
23450 }
23451 _ACEOF
23452 rm -f conftest.$ac_objext
23453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23454 (eval $ac_compile) 2>&5
23455 ac_status=$?
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } &&
23458 { ac_try='test -s conftest.$ac_objext'
23459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460 (eval $ac_try) 2>&5
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 glibcxx_cv_func___builtin_sin_use=yes
23465 else
23466 echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23468
23469 glibcxx_cv_func___builtin_sin_use=no
23470 fi
23471 rm -f conftest.$ac_objext conftest.$ac_ext
23472 ac_ext=c
23473 ac_cpp='$CPP $CPPFLAGS'
23474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23477
23478
23479 fi
23480
23481 fi
23482 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
23483 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
23484 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
23485 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
23486 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
23487 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
23488 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23490 else
23491
23492 if test x$gcc_no_link = xyes; then
23493 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23495 { (exit 1); exit 1; }; }
23496 fi
23497 cat >conftest.$ac_ext <<_ACEOF
23498 #line $LINENO "configure"
23499 /* confdefs.h. */
23500 _ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h. */
23504 #include <math.h>
23505 int
23506 main ()
23507 {
23508 __builtin_sin(0);
23509 ;
23510 return 0;
23511 }
23512 _ACEOF
23513 rm -f conftest.$ac_objext conftest$ac_exeext
23514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23515 (eval $ac_link) 2>&5
23516 ac_status=$?
23517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } &&
23519 { ac_try='test -s conftest$ac_exeext'
23520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23521 (eval $ac_try) 2>&5
23522 ac_status=$?
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); }; }; then
23525 glibcxx_cv_func___builtin_sin_link=yes
23526 else
23527 echo "$as_me: failed program was:" >&5
23528 sed 's/^/| /' conftest.$ac_ext >&5
23529
23530 glibcxx_cv_func___builtin_sin_link=no
23531 fi
23532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23533
23534 fi
23535
23536 fi
23537 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
23538 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
23539 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
23540 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23541 cat >>confdefs.h <<_ACEOF
23542 #define ${ac_tr_func} 1
23543 _ACEOF
23544
23545 fi
23546 fi
23547
23548
23549 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
23550 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
23551 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
23552 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
23553 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 else
23555
23556
23557
23558 ac_ext=cc
23559 ac_cpp='$CXXCPP $CPPFLAGS'
23560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23563
23564 cat >conftest.$ac_ext <<_ACEOF
23565 #line $LINENO "configure"
23566 /* confdefs.h. */
23567 _ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 #include <math.h>
23572 int
23573 main ()
23574 {
23575 __builtin_sinl(0);
23576 ;
23577 return 0;
23578 }
23579 _ACEOF
23580 rm -f conftest.$ac_objext
23581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23582 (eval $ac_compile) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } &&
23586 { ac_try='test -s conftest.$ac_objext'
23587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588 (eval $ac_try) 2>&5
23589 ac_status=$?
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; }; then
23592 glibcxx_cv_func___builtin_sinl_use=yes
23593 else
23594 echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23596
23597 glibcxx_cv_func___builtin_sinl_use=no
23598 fi
23599 rm -f conftest.$ac_objext conftest.$ac_ext
23600 ac_ext=c
23601 ac_cpp='$CPP $CPPFLAGS'
23602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23605
23606
23607 fi
23608
23609 fi
23610 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
23611 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
23612 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
23613 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
23614 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
23615 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
23616 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
23617 echo $ECHO_N "(cached) $ECHO_C" >&6
23618 else
23619
23620 if test x$gcc_no_link = xyes; then
23621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23623 { (exit 1); exit 1; }; }
23624 fi
23625 cat >conftest.$ac_ext <<_ACEOF
23626 #line $LINENO "configure"
23627 /* confdefs.h. */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h. */
23632 #include <math.h>
23633 int
23634 main ()
23635 {
23636 __builtin_sinl(0);
23637 ;
23638 return 0;
23639 }
23640 _ACEOF
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643 (eval $ac_link) 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
23647 { ac_try='test -s conftest$ac_exeext'
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 glibcxx_cv_func___builtin_sinl_link=yes
23654 else
23655 echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.$ac_ext >&5
23657
23658 glibcxx_cv_func___builtin_sinl_link=no
23659 fi
23660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23661
23662 fi
23663
23664 fi
23665 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
23666 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
23667 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
23668 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23669 cat >>confdefs.h <<_ACEOF
23670 #define ${ac_tr_func} 1
23671 _ACEOF
23672
23673 fi
23674 fi
23675
23676
23677
23678 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
23679 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
23680 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
23681 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
23682 echo $ECHO_N "(cached) $ECHO_C" >&6
23683 else
23684
23685
23686
23687 ac_ext=cc
23688 ac_cpp='$CXXCPP $CPPFLAGS'
23689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23692
23693 cat >conftest.$ac_ext <<_ACEOF
23694 #line $LINENO "configure"
23695 /* confdefs.h. */
23696 _ACEOF
23697 cat confdefs.h >>conftest.$ac_ext
23698 cat >>conftest.$ac_ext <<_ACEOF
23699 /* end confdefs.h. */
23700 #include <math.h>
23701 int
23702 main ()
23703 {
23704 __builtin_cosf(0);
23705 ;
23706 return 0;
23707 }
23708 _ACEOF
23709 rm -f conftest.$ac_objext
23710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23711 (eval $ac_compile) 2>&5
23712 ac_status=$?
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } &&
23715 { ac_try='test -s conftest.$ac_objext'
23716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717 (eval $ac_try) 2>&5
23718 ac_status=$?
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); }; }; then
23721 glibcxx_cv_func___builtin_cosf_use=yes
23722 else
23723 echo "$as_me: failed program was:" >&5
23724 sed 's/^/| /' conftest.$ac_ext >&5
23725
23726 glibcxx_cv_func___builtin_cosf_use=no
23727 fi
23728 rm -f conftest.$ac_objext conftest.$ac_ext
23729 ac_ext=c
23730 ac_cpp='$CPP $CPPFLAGS'
23731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23734
23735
23736 fi
23737
23738 fi
23739 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
23740 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
23741 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
23742 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
23743 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
23744 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
23745 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
23746 echo $ECHO_N "(cached) $ECHO_C" >&6
23747 else
23748
23749 if test x$gcc_no_link = xyes; then
23750 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23751 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23752 { (exit 1); exit 1; }; }
23753 fi
23754 cat >conftest.$ac_ext <<_ACEOF
23755 #line $LINENO "configure"
23756 /* confdefs.h. */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 #include <math.h>
23762 int
23763 main ()
23764 {
23765 __builtin_cosf(0);
23766 ;
23767 return 0;
23768 }
23769 _ACEOF
23770 rm -f conftest.$ac_objext conftest$ac_exeext
23771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23772 (eval $ac_link) 2>&5
23773 ac_status=$?
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } &&
23776 { ac_try='test -s conftest$ac_exeext'
23777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23778 (eval $ac_try) 2>&5
23779 ac_status=$?
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); }; }; then
23782 glibcxx_cv_func___builtin_cosf_link=yes
23783 else
23784 echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23786
23787 glibcxx_cv_func___builtin_cosf_link=no
23788 fi
23789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23790
23791 fi
23792
23793 fi
23794 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
23795 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
23796 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
23797 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23798 cat >>confdefs.h <<_ACEOF
23799 #define ${ac_tr_func} 1
23800 _ACEOF
23801
23802 fi
23803 fi
23804
23805
23806 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
23807 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
23808 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
23809 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
23810 echo $ECHO_N "(cached) $ECHO_C" >&6
23811 else
23812
23813
23814
23815 ac_ext=cc
23816 ac_cpp='$CXXCPP $CPPFLAGS'
23817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23820
23821 cat >conftest.$ac_ext <<_ACEOF
23822 #line $LINENO "configure"
23823 /* confdefs.h. */
23824 _ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h. */
23828 #include <math.h>
23829 int
23830 main ()
23831 {
23832 __builtin_cos(0);
23833 ;
23834 return 0;
23835 }
23836 _ACEOF
23837 rm -f conftest.$ac_objext
23838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23839 (eval $ac_compile) 2>&5
23840 ac_status=$?
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } &&
23843 { ac_try='test -s conftest.$ac_objext'
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; }; then
23849 glibcxx_cv_func___builtin_cos_use=yes
23850 else
23851 echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23853
23854 glibcxx_cv_func___builtin_cos_use=no
23855 fi
23856 rm -f conftest.$ac_objext conftest.$ac_ext
23857 ac_ext=c
23858 ac_cpp='$CPP $CPPFLAGS'
23859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23862
23863
23864 fi
23865
23866 fi
23867 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
23868 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
23869 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
23870 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
23871 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
23872 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
23873 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
23874 echo $ECHO_N "(cached) $ECHO_C" >&6
23875 else
23876
23877 if test x$gcc_no_link = xyes; then
23878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23880 { (exit 1); exit 1; }; }
23881 fi
23882 cat >conftest.$ac_ext <<_ACEOF
23883 #line $LINENO "configure"
23884 /* confdefs.h. */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23889 #include <math.h>
23890 int
23891 main ()
23892 {
23893 __builtin_cos(0);
23894 ;
23895 return 0;
23896 }
23897 _ACEOF
23898 rm -f conftest.$ac_objext conftest$ac_exeext
23899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23900 (eval $ac_link) 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } &&
23904 { ac_try='test -s conftest$ac_exeext'
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; }; then
23910 glibcxx_cv_func___builtin_cos_link=yes
23911 else
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23914
23915 glibcxx_cv_func___builtin_cos_link=no
23916 fi
23917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23918
23919 fi
23920
23921 fi
23922 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
23923 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
23924 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
23925 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23926 cat >>confdefs.h <<_ACEOF
23927 #define ${ac_tr_func} 1
23928 _ACEOF
23929
23930 fi
23931 fi
23932
23933
23934 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
23935 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
23936 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
23937 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
23938 echo $ECHO_N "(cached) $ECHO_C" >&6
23939 else
23940
23941
23942
23943 ac_ext=cc
23944 ac_cpp='$CXXCPP $CPPFLAGS'
23945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23948
23949 cat >conftest.$ac_ext <<_ACEOF
23950 #line $LINENO "configure"
23951 /* confdefs.h. */
23952 _ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23956 #include <math.h>
23957 int
23958 main ()
23959 {
23960 __builtin_cosl(0);
23961 ;
23962 return 0;
23963 }
23964 _ACEOF
23965 rm -f conftest.$ac_objext
23966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23967 (eval $ac_compile) 2>&5
23968 ac_status=$?
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); } &&
23971 { ac_try='test -s conftest.$ac_objext'
23972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23973 (eval $ac_try) 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; }; then
23977 glibcxx_cv_func___builtin_cosl_use=yes
23978 else
23979 echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23981
23982 glibcxx_cv_func___builtin_cosl_use=no
23983 fi
23984 rm -f conftest.$ac_objext conftest.$ac_ext
23985 ac_ext=c
23986 ac_cpp='$CPP $CPPFLAGS'
23987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23990
23991
23992 fi
23993
23994 fi
23995 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
23996 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
23997 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
23998 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
23999 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
24000 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
24001 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
24002 echo $ECHO_N "(cached) $ECHO_C" >&6
24003 else
24004
24005 if test x$gcc_no_link = xyes; then
24006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24008 { (exit 1); exit 1; }; }
24009 fi
24010 cat >conftest.$ac_ext <<_ACEOF
24011 #line $LINENO "configure"
24012 /* confdefs.h. */
24013 _ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h. */
24017 #include <math.h>
24018 int
24019 main ()
24020 {
24021 __builtin_cosl(0);
24022 ;
24023 return 0;
24024 }
24025 _ACEOF
24026 rm -f conftest.$ac_objext conftest$ac_exeext
24027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24028 (eval $ac_link) 2>&5
24029 ac_status=$?
24030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031 (exit $ac_status); } &&
24032 { ac_try='test -s conftest$ac_exeext'
24033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24034 (eval $ac_try) 2>&5
24035 ac_status=$?
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); }; }; then
24038 glibcxx_cv_func___builtin_cosl_link=yes
24039 else
24040 echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24042
24043 glibcxx_cv_func___builtin_cosl_link=no
24044 fi
24045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24046
24047 fi
24048
24049 fi
24050 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
24051 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
24052 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
24053 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24054 cat >>confdefs.h <<_ACEOF
24055 #define ${ac_tr_func} 1
24056 _ACEOF
24057
24058 fi
24059 fi
24060
24061
24062 dummyvar=no
24063 if test x$dummyvar = x"yes"; then
24064 cat >>confdefs.h <<\_ACEOF
24065 #define HAVE___BUILTIN_ABS 1
24066 _ACEOF
24067
24068 cat >>confdefs.h <<\_ACEOF
24069 #define HAVE___BUILTIN_LABS 1
24070 _ACEOF
24071
24072 cat >>confdefs.h <<\_ACEOF
24073 #define HAVE___BUILTIN_COS 1
24074 _ACEOF
24075
24076 cat >>confdefs.h <<\_ACEOF
24077 #define HAVE___BUILTIN_COSF 1
24078 _ACEOF
24079
24080 cat >>confdefs.h <<\_ACEOF
24081 #define HAVE___BUILTIN_COSL 1
24082 _ACEOF
24083
24084 cat >>confdefs.h <<\_ACEOF
24085 #define HAVE___BUILTIN_FABS 1
24086 _ACEOF
24087
24088 cat >>confdefs.h <<\_ACEOF
24089 #define HAVE___BUILTIN_FABSF 1
24090 _ACEOF
24091
24092 cat >>confdefs.h <<\_ACEOF
24093 #define HAVE___BUILTIN_FABSL 1
24094 _ACEOF
24095
24096 cat >>confdefs.h <<\_ACEOF
24097 #define HAVE___BUILTIN_SIN 1
24098 _ACEOF
24099
24100 cat >>confdefs.h <<\_ACEOF
24101 #define HAVE___BUILTIN_SINF 1
24102 _ACEOF
24103
24104 cat >>confdefs.h <<\_ACEOF
24105 #define HAVE___BUILTIN_SINL 1
24106 _ACEOF
24107
24108 cat >>confdefs.h <<\_ACEOF
24109 #define HAVE___BUILTIN_SQRT 1
24110 _ACEOF
24111
24112 cat >>confdefs.h <<\_ACEOF
24113 #define HAVE___BUILTIN_SQRTF 1
24114 _ACEOF
24115
24116 cat >>confdefs.h <<\_ACEOF
24117 #define HAVE___BUILTIN_SQRTL 1
24118 _ACEOF
24119
24120 fi
24121
24122
24123
24124 echo "$as_me:$LINENO: checking for main in -lm" >&5
24125 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
24126 if test "${ac_cv_lib_m_main+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24128 else
24129 ac_check_lib_save_LIBS=$LIBS
24130 LIBS="-lm $LIBS"
24131 if test x$gcc_no_link = xyes; then
24132 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24133 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24134 { (exit 1); exit 1; }; }
24135 fi
24136 cat >conftest.$ac_ext <<_ACEOF
24137 #line $LINENO "configure"
24138 /* confdefs.h. */
24139 _ACEOF
24140 cat confdefs.h >>conftest.$ac_ext
24141 cat >>conftest.$ac_ext <<_ACEOF
24142 /* end confdefs.h. */
24143
24144
24145 int
24146 main ()
24147 {
24148 main ();
24149 ;
24150 return 0;
24151 }
24152 _ACEOF
24153 rm -f conftest.$ac_objext conftest$ac_exeext
24154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24155 (eval $ac_link) 2>&5
24156 ac_status=$?
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); } &&
24159 { ac_try='test -s conftest$ac_exeext'
24160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); }; }; then
24165 ac_cv_lib_m_main=yes
24166 else
24167 echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24169
24170 ac_cv_lib_m_main=no
24171 fi
24172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24173 LIBS=$ac_check_lib_save_LIBS
24174 fi
24175 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
24176 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
24177 if test $ac_cv_lib_m_main = yes; then
24178 cat >>confdefs.h <<_ACEOF
24179 #define HAVE_LIBM 1
24180 _ACEOF
24181
24182 LIBS="-lm $LIBS"
24183
24184 fi
24185
24186
24187
24188 for ac_func in nan copysignf
24189 do
24190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24191 echo "$as_me:$LINENO: checking for $ac_func" >&5
24192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24193 if eval "test \"\${$as_ac_var+set}\" = set"; then
24194 echo $ECHO_N "(cached) $ECHO_C" >&6
24195 else
24196 if test x$gcc_no_link = xyes; then
24197 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24198 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24199 { (exit 1); exit 1; }; }
24200 fi
24201 cat >conftest.$ac_ext <<_ACEOF
24202 #line $LINENO "configure"
24203 /* confdefs.h. */
24204 _ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h. */
24208 /* System header to define __stub macros and hopefully few prototypes,
24209 which can conflict with char $ac_func (); below.
24210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24211 <limits.h> exists even on freestanding compilers. */
24212 #ifdef __STDC__
24213 # include <limits.h>
24214 #else
24215 # include <assert.h>
24216 #endif
24217 /* Override any gcc2 internal prototype to avoid an error. */
24218 #ifdef __cplusplus
24219 extern "C"
24220 {
24221 #endif
24222 /* We use char because int might match the return type of a gcc2
24223 builtin and then its argument prototype would still apply. */
24224 char $ac_func ();
24225 /* The GNU C library defines this for functions which it implements
24226 to always fail with ENOSYS. Some functions are actually named
24227 something starting with __ and the normal name is an alias. */
24228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24229 choke me
24230 #else
24231 char (*f) () = $ac_func;
24232 #endif
24233 #ifdef __cplusplus
24234 }
24235 #endif
24236
24237 int
24238 main ()
24239 {
24240 return f != $ac_func;
24241 ;
24242 return 0;
24243 }
24244 _ACEOF
24245 rm -f conftest.$ac_objext conftest$ac_exeext
24246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24247 (eval $ac_link) 2>&5
24248 ac_status=$?
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } &&
24251 { ac_try='test -s conftest$ac_exeext'
24252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24253 (eval $ac_try) 2>&5
24254 ac_status=$?
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); }; }; then
24257 eval "$as_ac_var=yes"
24258 else
24259 echo "$as_me: failed program was:" >&5
24260 sed 's/^/| /' conftest.$ac_ext >&5
24261
24262 eval "$as_ac_var=no"
24263 fi
24264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24265 fi
24266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24268 if test `eval echo '${'$as_ac_var'}'` = yes; then
24269 cat >>confdefs.h <<_ACEOF
24270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24271 _ACEOF
24272
24273 else
24274 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
24275 fi
24276 done
24277
24278
24279
24280 for ac_func in __signbit
24281 do
24282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24283 echo "$as_me:$LINENO: checking for $ac_func" >&5
24284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24285 if eval "test \"\${$as_ac_var+set}\" = set"; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24287 else
24288 if test x$gcc_no_link = xyes; then
24289 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24291 { (exit 1); exit 1; }; }
24292 fi
24293 cat >conftest.$ac_ext <<_ACEOF
24294 #line $LINENO "configure"
24295 /* confdefs.h. */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 /* System header to define __stub macros and hopefully few prototypes,
24301 which can conflict with char $ac_func (); below.
24302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24303 <limits.h> exists even on freestanding compilers. */
24304 #ifdef __STDC__
24305 # include <limits.h>
24306 #else
24307 # include <assert.h>
24308 #endif
24309 /* Override any gcc2 internal prototype to avoid an error. */
24310 #ifdef __cplusplus
24311 extern "C"
24312 {
24313 #endif
24314 /* We use char because int might match the return type of a gcc2
24315 builtin and then its argument prototype would still apply. */
24316 char $ac_func ();
24317 /* The GNU C library defines this for functions which it implements
24318 to always fail with ENOSYS. Some functions are actually named
24319 something starting with __ and the normal name is an alias. */
24320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24321 choke me
24322 #else
24323 char (*f) () = $ac_func;
24324 #endif
24325 #ifdef __cplusplus
24326 }
24327 #endif
24328
24329 int
24330 main ()
24331 {
24332 return f != $ac_func;
24333 ;
24334 return 0;
24335 }
24336 _ACEOF
24337 rm -f conftest.$ac_objext conftest$ac_exeext
24338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24339 (eval $ac_link) 2>&5
24340 ac_status=$?
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } &&
24343 { ac_try='test -s conftest$ac_exeext'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24346 ac_status=$?
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; }; then
24349 eval "$as_ac_var=yes"
24350 else
24351 echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24353
24354 eval "$as_ac_var=no"
24355 fi
24356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24357 fi
24358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24360 if test `eval echo '${'$as_ac_var'}'` = yes; then
24361 cat >>confdefs.h <<_ACEOF
24362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24363 _ACEOF
24364
24365 else
24366 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
24367 fi
24368 done
24369
24370
24371 for ac_func in __signbitf
24372 do
24373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24374 echo "$as_me:$LINENO: checking for $ac_func" >&5
24375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24376 if eval "test \"\${$as_ac_var+set}\" = set"; then
24377 echo $ECHO_N "(cached) $ECHO_C" >&6
24378 else
24379 if test x$gcc_no_link = xyes; then
24380 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24382 { (exit 1); exit 1; }; }
24383 fi
24384 cat >conftest.$ac_ext <<_ACEOF
24385 #line $LINENO "configure"
24386 /* confdefs.h. */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 /* System header to define __stub macros and hopefully few prototypes,
24392 which can conflict with char $ac_func (); below.
24393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24394 <limits.h> exists even on freestanding compilers. */
24395 #ifdef __STDC__
24396 # include <limits.h>
24397 #else
24398 # include <assert.h>
24399 #endif
24400 /* Override any gcc2 internal prototype to avoid an error. */
24401 #ifdef __cplusplus
24402 extern "C"
24403 {
24404 #endif
24405 /* We use char because int might match the return type of a gcc2
24406 builtin and then its argument prototype would still apply. */
24407 char $ac_func ();
24408 /* The GNU C library defines this for functions which it implements
24409 to always fail with ENOSYS. Some functions are actually named
24410 something starting with __ and the normal name is an alias. */
24411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24412 choke me
24413 #else
24414 char (*f) () = $ac_func;
24415 #endif
24416 #ifdef __cplusplus
24417 }
24418 #endif
24419
24420 int
24421 main ()
24422 {
24423 return f != $ac_func;
24424 ;
24425 return 0;
24426 }
24427 _ACEOF
24428 rm -f conftest.$ac_objext conftest$ac_exeext
24429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24430 (eval $ac_link) 2>&5
24431 ac_status=$?
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } &&
24434 { ac_try='test -s conftest$ac_exeext'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24437 ac_status=$?
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 eval "$as_ac_var=yes"
24441 else
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 eval "$as_ac_var=no"
24446 fi
24447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24448 fi
24449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24451 if test `eval echo '${'$as_ac_var'}'` = yes; then
24452 cat >>confdefs.h <<_ACEOF
24453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24454 _ACEOF
24455
24456 else
24457 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
24458 fi
24459 done
24460
24461
24462 if test x$ac_cv_func_copysignl = x"yes"; then
24463
24464 for ac_func in __signbitl
24465 do
24466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24467 echo "$as_me:$LINENO: checking for $ac_func" >&5
24468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24469 if eval "test \"\${$as_ac_var+set}\" = set"; then
24470 echo $ECHO_N "(cached) $ECHO_C" >&6
24471 else
24472 if test x$gcc_no_link = xyes; then
24473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24475 { (exit 1); exit 1; }; }
24476 fi
24477 cat >conftest.$ac_ext <<_ACEOF
24478 #line $LINENO "configure"
24479 /* confdefs.h. */
24480 _ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 /* System header to define __stub macros and hopefully few prototypes,
24485 which can conflict with char $ac_func (); below.
24486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24487 <limits.h> exists even on freestanding compilers. */
24488 #ifdef __STDC__
24489 # include <limits.h>
24490 #else
24491 # include <assert.h>
24492 #endif
24493 /* Override any gcc2 internal prototype to avoid an error. */
24494 #ifdef __cplusplus
24495 extern "C"
24496 {
24497 #endif
24498 /* We use char because int might match the return type of a gcc2
24499 builtin and then its argument prototype would still apply. */
24500 char $ac_func ();
24501 /* The GNU C library defines this for functions which it implements
24502 to always fail with ENOSYS. Some functions are actually named
24503 something starting with __ and the normal name is an alias. */
24504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24505 choke me
24506 #else
24507 char (*f) () = $ac_func;
24508 #endif
24509 #ifdef __cplusplus
24510 }
24511 #endif
24512
24513 int
24514 main ()
24515 {
24516 return f != $ac_func;
24517 ;
24518 return 0;
24519 }
24520 _ACEOF
24521 rm -f conftest.$ac_objext conftest$ac_exeext
24522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24523 (eval $ac_link) 2>&5
24524 ac_status=$?
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } &&
24527 { ac_try='test -s conftest$ac_exeext'
24528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24529 (eval $ac_try) 2>&5
24530 ac_status=$?
24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); }; }; then
24533 eval "$as_ac_var=yes"
24534 else
24535 echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24537
24538 eval "$as_ac_var=no"
24539 fi
24540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24541 fi
24542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24544 if test `eval echo '${'$as_ac_var'}'` = yes; then
24545 cat >>confdefs.h <<_ACEOF
24546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24547 _ACEOF
24548
24549 else
24550 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
24551 fi
24552 done
24553
24554 fi
24555
24556 # XXX Review this. Nothing uses it.
24557 if test -n "$LIBMATHOBJS"; then
24558 need_libmath=yes
24559 fi
24560
24561
24562
24563 # Test wchar.h for mbstate_t, which is needed for char_traits and
24564 # others even if wchar_t support is not on.
24565 echo "$as_me:$LINENO: checking for mbstate_t" >&5
24566 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24567 cat >conftest.$ac_ext <<_ACEOF
24568 #line $LINENO "configure"
24569 /* confdefs.h. */
24570 _ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h. */
24574 #include <wchar.h>
24575 int
24576 main ()
24577 {
24578 mbstate_t teststate;
24579 ;
24580 return 0;
24581 }
24582 _ACEOF
24583 rm -f conftest.$ac_objext
24584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24585 (eval $ac_compile) 2>&5
24586 ac_status=$?
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } &&
24589 { ac_try='test -s conftest.$ac_objext'
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; }; then
24595 have_mbstate_t=yes
24596 else
24597 echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24599
24600 have_mbstate_t=no
24601 fi
24602 rm -f conftest.$ac_objext conftest.$ac_ext
24603 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
24604 echo "${ECHO_T}$have_mbstate_t" >&6
24605 if test x"$have_mbstate_t" = xyes; then
24606 cat >>confdefs.h <<\_ACEOF
24607 #define HAVE_MBSTATE_T 1
24608 _ACEOF
24609
24610 fi
24611
24612 # Sanity check for existence of ISO C99 headers for extended encoding.
24613
24614 for ac_header in wchar.h
24615 do
24616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24618 echo "$as_me:$LINENO: checking for $ac_header" >&5
24619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24621 echo $ECHO_N "(cached) $ECHO_C" >&6
24622 fi
24623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24625 else
24626 # Is the header compilable?
24627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24629 cat >conftest.$ac_ext <<_ACEOF
24630 #line $LINENO "configure"
24631 /* confdefs.h. */
24632 _ACEOF
24633 cat confdefs.h >>conftest.$ac_ext
24634 cat >>conftest.$ac_ext <<_ACEOF
24635 /* end confdefs.h. */
24636 $ac_includes_default
24637 #include <$ac_header>
24638 _ACEOF
24639 rm -f conftest.$ac_objext
24640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24641 (eval $ac_compile) 2>&5
24642 ac_status=$?
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); } &&
24645 { ac_try='test -s conftest.$ac_objext'
24646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); }; }; then
24651 ac_header_compiler=yes
24652 else
24653 echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24655
24656 ac_header_compiler=no
24657 fi
24658 rm -f conftest.$ac_objext conftest.$ac_ext
24659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24660 echo "${ECHO_T}$ac_header_compiler" >&6
24661
24662 # Is the header present?
24663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24665 cat >conftest.$ac_ext <<_ACEOF
24666 #line $LINENO "configure"
24667 /* confdefs.h. */
24668 _ACEOF
24669 cat confdefs.h >>conftest.$ac_ext
24670 cat >>conftest.$ac_ext <<_ACEOF
24671 /* end confdefs.h. */
24672 #include <$ac_header>
24673 _ACEOF
24674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24676 ac_status=$?
24677 grep -v '^ *+' conftest.er1 >conftest.err
24678 rm -f conftest.er1
24679 cat conftest.err >&5
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); } >/dev/null; then
24682 if test -s conftest.err; then
24683 ac_cpp_err=$ac_c_preproc_warn_flag
24684 else
24685 ac_cpp_err=
24686 fi
24687 else
24688 ac_cpp_err=yes
24689 fi
24690 if test -z "$ac_cpp_err"; then
24691 ac_header_preproc=yes
24692 else
24693 echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696 ac_header_preproc=no
24697 fi
24698 rm -f conftest.err conftest.$ac_ext
24699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24700 echo "${ECHO_T}$ac_header_preproc" >&6
24701
24702 # So? What about this header?
24703 case $ac_header_compiler:$ac_header_preproc in
24704 yes:no )
24705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24709 (
24710 cat <<\_ASBOX
24711 ## ------------------------------------ ##
24712 ## Report this to bug-autoconf@gnu.org. ##
24713 ## ------------------------------------ ##
24714 _ASBOX
24715 ) |
24716 sed "s/^/$as_me: WARNING: /" >&2
24717 ;;
24718 no:yes )
24719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24725 (
24726 cat <<\_ASBOX
24727 ## ------------------------------------ ##
24728 ## Report this to bug-autoconf@gnu.org. ##
24729 ## ------------------------------------ ##
24730 _ASBOX
24731 ) |
24732 sed "s/^/$as_me: WARNING: /" >&2
24733 ;;
24734 esac
24735 echo "$as_me:$LINENO: checking for $ac_header" >&5
24736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24738 echo $ECHO_N "(cached) $ECHO_C" >&6
24739 else
24740 eval "$as_ac_Header=$ac_header_preproc"
24741 fi
24742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24744
24745 fi
24746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24747 cat >>confdefs.h <<_ACEOF
24748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24749 _ACEOF
24750 ac_has_wchar_h=yes
24751 else
24752 ac_has_wchar_h=no
24753 fi
24754
24755 done
24756
24757
24758 for ac_header in wctype.h
24759 do
24760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24762 echo "$as_me:$LINENO: checking for $ac_header" >&5
24763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24765 echo $ECHO_N "(cached) $ECHO_C" >&6
24766 fi
24767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24769 else
24770 # Is the header compilable?
24771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24773 cat >conftest.$ac_ext <<_ACEOF
24774 #line $LINENO "configure"
24775 /* confdefs.h. */
24776 _ACEOF
24777 cat confdefs.h >>conftest.$ac_ext
24778 cat >>conftest.$ac_ext <<_ACEOF
24779 /* end confdefs.h. */
24780 $ac_includes_default
24781 #include <$ac_header>
24782 _ACEOF
24783 rm -f conftest.$ac_objext
24784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24785 (eval $ac_compile) 2>&5
24786 ac_status=$?
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } &&
24789 { ac_try='test -s conftest.$ac_objext'
24790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; }; then
24795 ac_header_compiler=yes
24796 else
24797 echo "$as_me: failed program was:" >&5
24798 sed 's/^/| /' conftest.$ac_ext >&5
24799
24800 ac_header_compiler=no
24801 fi
24802 rm -f conftest.$ac_objext conftest.$ac_ext
24803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24804 echo "${ECHO_T}$ac_header_compiler" >&6
24805
24806 # Is the header present?
24807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24809 cat >conftest.$ac_ext <<_ACEOF
24810 #line $LINENO "configure"
24811 /* confdefs.h. */
24812 _ACEOF
24813 cat confdefs.h >>conftest.$ac_ext
24814 cat >>conftest.$ac_ext <<_ACEOF
24815 /* end confdefs.h. */
24816 #include <$ac_header>
24817 _ACEOF
24818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24820 ac_status=$?
24821 grep -v '^ *+' conftest.er1 >conftest.err
24822 rm -f conftest.er1
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } >/dev/null; then
24826 if test -s conftest.err; then
24827 ac_cpp_err=$ac_c_preproc_warn_flag
24828 else
24829 ac_cpp_err=
24830 fi
24831 else
24832 ac_cpp_err=yes
24833 fi
24834 if test -z "$ac_cpp_err"; then
24835 ac_header_preproc=yes
24836 else
24837 echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24839
24840 ac_header_preproc=no
24841 fi
24842 rm -f conftest.err conftest.$ac_ext
24843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24844 echo "${ECHO_T}$ac_header_preproc" >&6
24845
24846 # So? What about this header?
24847 case $ac_header_compiler:$ac_header_preproc in
24848 yes:no )
24849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24853 (
24854 cat <<\_ASBOX
24855 ## ------------------------------------ ##
24856 ## Report this to bug-autoconf@gnu.org. ##
24857 ## ------------------------------------ ##
24858 _ASBOX
24859 ) |
24860 sed "s/^/$as_me: WARNING: /" >&2
24861 ;;
24862 no:yes )
24863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24869 (
24870 cat <<\_ASBOX
24871 ## ------------------------------------ ##
24872 ## Report this to bug-autoconf@gnu.org. ##
24873 ## ------------------------------------ ##
24874 _ASBOX
24875 ) |
24876 sed "s/^/$as_me: WARNING: /" >&2
24877 ;;
24878 esac
24879 echo "$as_me:$LINENO: checking for $ac_header" >&5
24880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 else
24884 eval "$as_ac_Header=$ac_header_preproc"
24885 fi
24886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24888
24889 fi
24890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24891 cat >>confdefs.h <<_ACEOF
24892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24893 _ACEOF
24894 ac_has_wctype_h=yes
24895 else
24896 ac_has_wctype_h=no
24897 fi
24898
24899 done
24900
24901
24902 # Only continue checking if the ISO C99 headers exist and support is on.
24903 if test x"$ac_has_wchar_h" = xyes &&
24904 test x"$ac_has_wctype_h" = xyes &&
24905 test x"$enable_c_mbchar" != xno; then
24906
24907 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
24908 # numeric_limits can instantiate type_traits<wchar_t>
24909 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
24910 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
24911 cat >conftest.$ac_ext <<_ACEOF
24912 #line $LINENO "configure"
24913 /* confdefs.h. */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h. */
24918 #include <wchar.h>
24919 int
24920 main ()
24921 {
24922 int i = WCHAR_MIN; int j = WCHAR_MAX;
24923 ;
24924 return 0;
24925 }
24926 _ACEOF
24927 rm -f conftest.$ac_objext
24928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24929 (eval $ac_compile) 2>&5
24930 ac_status=$?
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); } &&
24933 { ac_try='test -s conftest.$ac_objext'
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; }; then
24939 has_wchar_minmax=yes
24940 else
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944 has_wchar_minmax=no
24945 fi
24946 rm -f conftest.$ac_objext conftest.$ac_ext
24947 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
24948 echo "${ECHO_T}$has_wchar_minmax" >&6
24949
24950 # Test wchar.h for WEOF, which is what we use to determine whether
24951 # to specialize for char_traits<wchar_t> or not.
24952 echo "$as_me:$LINENO: checking for WEOF" >&5
24953 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
24954 cat >conftest.$ac_ext <<_ACEOF
24955 #line $LINENO "configure"
24956 /* confdefs.h. */
24957 _ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h. */
24961
24962 #include <wchar.h>
24963 #include <stddef.h>
24964 int
24965 main ()
24966 {
24967 wint_t i = WEOF;
24968 ;
24969 return 0;
24970 }
24971 _ACEOF
24972 rm -f conftest.$ac_objext
24973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24974 (eval $ac_compile) 2>&5
24975 ac_status=$?
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } &&
24978 { ac_try='test -s conftest.$ac_objext'
24979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980 (eval $ac_try) 2>&5
24981 ac_status=$?
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }; }; then
24984 has_weof=yes
24985 else
24986 echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24988
24989 has_weof=no
24990 fi
24991 rm -f conftest.$ac_objext conftest.$ac_ext
24992 echo "$as_me:$LINENO: result: $has_weof" >&5
24993 echo "${ECHO_T}$has_weof" >&6
24994
24995 # Tests for wide character functions used in char_traits<wchar_t>.
24996 ac_wfuncs=yes
24997
24998
24999
25000
25001
25002
25003 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
25004 do
25005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25006 echo "$as_me:$LINENO: checking for $ac_func" >&5
25007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25008 if eval "test \"\${$as_ac_var+set}\" = set"; then
25009 echo $ECHO_N "(cached) $ECHO_C" >&6
25010 else
25011 if test x$gcc_no_link = xyes; then
25012 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25013 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25014 { (exit 1); exit 1; }; }
25015 fi
25016 cat >conftest.$ac_ext <<_ACEOF
25017 #line $LINENO "configure"
25018 /* confdefs.h. */
25019 _ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25023 /* System header to define __stub macros and hopefully few prototypes,
25024 which can conflict with char $ac_func (); below.
25025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25026 <limits.h> exists even on freestanding compilers. */
25027 #ifdef __STDC__
25028 # include <limits.h>
25029 #else
25030 # include <assert.h>
25031 #endif
25032 /* Override any gcc2 internal prototype to avoid an error. */
25033 #ifdef __cplusplus
25034 extern "C"
25035 {
25036 #endif
25037 /* We use char because int might match the return type of a gcc2
25038 builtin and then its argument prototype would still apply. */
25039 char $ac_func ();
25040 /* The GNU C library defines this for functions which it implements
25041 to always fail with ENOSYS. Some functions are actually named
25042 something starting with __ and the normal name is an alias. */
25043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25044 choke me
25045 #else
25046 char (*f) () = $ac_func;
25047 #endif
25048 #ifdef __cplusplus
25049 }
25050 #endif
25051
25052 int
25053 main ()
25054 {
25055 return f != $ac_func;
25056 ;
25057 return 0;
25058 }
25059 _ACEOF
25060 rm -f conftest.$ac_objext conftest$ac_exeext
25061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25062 (eval $ac_link) 2>&5
25063 ac_status=$?
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } &&
25066 { ac_try='test -s conftest$ac_exeext'
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; }; then
25072 eval "$as_ac_var=yes"
25073 else
25074 echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25076
25077 eval "$as_ac_var=no"
25078 fi
25079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25080 fi
25081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25083 if test `eval echo '${'$as_ac_var'}'` = yes; then
25084 cat >>confdefs.h <<_ACEOF
25085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25086 _ACEOF
25087
25088 else
25089 ac_wfuncs=no
25090 fi
25091 done
25092
25093
25094 # Checks for names injected into std:: by the c_std headers.
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
25146 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
25147 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
25148 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
25149 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
25150 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
25151 do
25152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25153 echo "$as_me:$LINENO: checking for $ac_func" >&5
25154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25155 if eval "test \"\${$as_ac_var+set}\" = set"; then
25156 echo $ECHO_N "(cached) $ECHO_C" >&6
25157 else
25158 if test x$gcc_no_link = xyes; then
25159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25161 { (exit 1); exit 1; }; }
25162 fi
25163 cat >conftest.$ac_ext <<_ACEOF
25164 #line $LINENO "configure"
25165 /* confdefs.h. */
25166 _ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h. */
25170 /* System header to define __stub macros and hopefully few prototypes,
25171 which can conflict with char $ac_func (); below.
25172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25173 <limits.h> exists even on freestanding compilers. */
25174 #ifdef __STDC__
25175 # include <limits.h>
25176 #else
25177 # include <assert.h>
25178 #endif
25179 /* Override any gcc2 internal prototype to avoid an error. */
25180 #ifdef __cplusplus
25181 extern "C"
25182 {
25183 #endif
25184 /* We use char because int might match the return type of a gcc2
25185 builtin and then its argument prototype would still apply. */
25186 char $ac_func ();
25187 /* The GNU C library defines this for functions which it implements
25188 to always fail with ENOSYS. Some functions are actually named
25189 something starting with __ and the normal name is an alias. */
25190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25191 choke me
25192 #else
25193 char (*f) () = $ac_func;
25194 #endif
25195 #ifdef __cplusplus
25196 }
25197 #endif
25198
25199 int
25200 main ()
25201 {
25202 return f != $ac_func;
25203 ;
25204 return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25209 (eval $ac_link) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } &&
25213 { ac_try='test -s conftest$ac_exeext'
25214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215 (eval $ac_try) 2>&5
25216 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; }; then
25219 eval "$as_ac_var=yes"
25220 else
25221 echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25223
25224 eval "$as_ac_var=no"
25225 fi
25226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25227 fi
25228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25230 if test `eval echo '${'$as_ac_var'}'` = yes; then
25231 cat >>confdefs.h <<_ACEOF
25232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25233 _ACEOF
25234
25235 else
25236 ac_wfuncs=no
25237 fi
25238 done
25239
25240
25241 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
25242 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
25243 if test x"$has_weof" = xyes &&
25244 test x"$has_wchar_minmax" = xyes &&
25245 test x"$ac_wfuncs" = xyes;
25246 then
25247 ac_isoC99_wchar_t=yes
25248 else
25249 ac_isoC99_wchar_t=no
25250 fi
25251 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
25252 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
25253
25254 # Use iconv for wchar_t to char conversions. As such, check for
25255 # X/Open Portability Guide, version 2 features (XPG2).
25256 if test "${ac_cv_header_iconv_h+set}" = set; then
25257 echo "$as_me:$LINENO: checking for iconv.h" >&5
25258 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25259 if test "${ac_cv_header_iconv_h+set}" = set; then
25260 echo $ECHO_N "(cached) $ECHO_C" >&6
25261 fi
25262 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25263 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25264 else
25265 # Is the header compilable?
25266 echo "$as_me:$LINENO: checking iconv.h usability" >&5
25267 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
25268 cat >conftest.$ac_ext <<_ACEOF
25269 #line $LINENO "configure"
25270 /* confdefs.h. */
25271 _ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h. */
25275 $ac_includes_default
25276 #include <iconv.h>
25277 _ACEOF
25278 rm -f conftest.$ac_objext
25279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25280 (eval $ac_compile) 2>&5
25281 ac_status=$?
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); } &&
25284 { ac_try='test -s conftest.$ac_objext'
25285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286 (eval $ac_try) 2>&5
25287 ac_status=$?
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); }; }; then
25290 ac_header_compiler=yes
25291 else
25292 echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25294
25295 ac_header_compiler=no
25296 fi
25297 rm -f conftest.$ac_objext conftest.$ac_ext
25298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25299 echo "${ECHO_T}$ac_header_compiler" >&6
25300
25301 # Is the header present?
25302 echo "$as_me:$LINENO: checking iconv.h presence" >&5
25303 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
25304 cat >conftest.$ac_ext <<_ACEOF
25305 #line $LINENO "configure"
25306 /* confdefs.h. */
25307 _ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25311 #include <iconv.h>
25312 _ACEOF
25313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25315 ac_status=$?
25316 grep -v '^ *+' conftest.er1 >conftest.err
25317 rm -f conftest.er1
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } >/dev/null; then
25321 if test -s conftest.err; then
25322 ac_cpp_err=$ac_c_preproc_warn_flag
25323 else
25324 ac_cpp_err=
25325 fi
25326 else
25327 ac_cpp_err=yes
25328 fi
25329 if test -z "$ac_cpp_err"; then
25330 ac_header_preproc=yes
25331 else
25332 echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25334
25335 ac_header_preproc=no
25336 fi
25337 rm -f conftest.err conftest.$ac_ext
25338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25339 echo "${ECHO_T}$ac_header_preproc" >&6
25340
25341 # So? What about this header?
25342 case $ac_header_compiler:$ac_header_preproc in
25343 yes:no )
25344 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
25345 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25346 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25347 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25348 (
25349 cat <<\_ASBOX
25350 ## ------------------------------------ ##
25351 ## Report this to bug-autoconf@gnu.org. ##
25352 ## ------------------------------------ ##
25353 _ASBOX
25354 ) |
25355 sed "s/^/$as_me: WARNING: /" >&2
25356 ;;
25357 no:yes )
25358 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
25359 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
25360 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
25361 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
25362 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25363 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25364 (
25365 cat <<\_ASBOX
25366 ## ------------------------------------ ##
25367 ## Report this to bug-autoconf@gnu.org. ##
25368 ## ------------------------------------ ##
25369 _ASBOX
25370 ) |
25371 sed "s/^/$as_me: WARNING: /" >&2
25372 ;;
25373 esac
25374 echo "$as_me:$LINENO: checking for iconv.h" >&5
25375 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25376 if test "${ac_cv_header_iconv_h+set}" = set; then
25377 echo $ECHO_N "(cached) $ECHO_C" >&6
25378 else
25379 ac_cv_header_iconv_h=$ac_header_preproc
25380 fi
25381 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25382 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25383
25384 fi
25385 if test $ac_cv_header_iconv_h = yes; then
25386 ac_has_iconv_h=yes
25387 else
25388 ac_has_iconv_h=no
25389 fi
25390
25391
25392 if test "${ac_cv_header_langinfo_h+set}" = set; then
25393 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25394 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25395 if test "${ac_cv_header_langinfo_h+set}" = set; then
25396 echo $ECHO_N "(cached) $ECHO_C" >&6
25397 fi
25398 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25399 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25400 else
25401 # Is the header compilable?
25402 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
25403 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
25404 cat >conftest.$ac_ext <<_ACEOF
25405 #line $LINENO "configure"
25406 /* confdefs.h. */
25407 _ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h. */
25411 $ac_includes_default
25412 #include <langinfo.h>
25413 _ACEOF
25414 rm -f conftest.$ac_objext
25415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25416 (eval $ac_compile) 2>&5
25417 ac_status=$?
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } &&
25420 { ac_try='test -s conftest.$ac_objext'
25421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422 (eval $ac_try) 2>&5
25423 ac_status=$?
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); }; }; then
25426 ac_header_compiler=yes
25427 else
25428 echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25430
25431 ac_header_compiler=no
25432 fi
25433 rm -f conftest.$ac_objext conftest.$ac_ext
25434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25435 echo "${ECHO_T}$ac_header_compiler" >&6
25436
25437 # Is the header present?
25438 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
25439 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
25440 cat >conftest.$ac_ext <<_ACEOF
25441 #line $LINENO "configure"
25442 /* confdefs.h. */
25443 _ACEOF
25444 cat confdefs.h >>conftest.$ac_ext
25445 cat >>conftest.$ac_ext <<_ACEOF
25446 /* end confdefs.h. */
25447 #include <langinfo.h>
25448 _ACEOF
25449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25451 ac_status=$?
25452 grep -v '^ *+' conftest.er1 >conftest.err
25453 rm -f conftest.er1
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } >/dev/null; then
25457 if test -s conftest.err; then
25458 ac_cpp_err=$ac_c_preproc_warn_flag
25459 else
25460 ac_cpp_err=
25461 fi
25462 else
25463 ac_cpp_err=yes
25464 fi
25465 if test -z "$ac_cpp_err"; then
25466 ac_header_preproc=yes
25467 else
25468 echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25470
25471 ac_header_preproc=no
25472 fi
25473 rm -f conftest.err conftest.$ac_ext
25474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25475 echo "${ECHO_T}$ac_header_preproc" >&6
25476
25477 # So? What about this header?
25478 case $ac_header_compiler:$ac_header_preproc in
25479 yes:no )
25480 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
25481 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25482 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25483 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25484 (
25485 cat <<\_ASBOX
25486 ## ------------------------------------ ##
25487 ## Report this to bug-autoconf@gnu.org. ##
25488 ## ------------------------------------ ##
25489 _ASBOX
25490 ) |
25491 sed "s/^/$as_me: WARNING: /" >&2
25492 ;;
25493 no:yes )
25494 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
25495 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
25496 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
25497 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
25498 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25499 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25500 (
25501 cat <<\_ASBOX
25502 ## ------------------------------------ ##
25503 ## Report this to bug-autoconf@gnu.org. ##
25504 ## ------------------------------------ ##
25505 _ASBOX
25506 ) |
25507 sed "s/^/$as_me: WARNING: /" >&2
25508 ;;
25509 esac
25510 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25511 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25512 if test "${ac_cv_header_langinfo_h+set}" = set; then
25513 echo $ECHO_N "(cached) $ECHO_C" >&6
25514 else
25515 ac_cv_header_langinfo_h=$ac_header_preproc
25516 fi
25517 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25518 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25519
25520 fi
25521 if test $ac_cv_header_langinfo_h = yes; then
25522 ac_has_langinfo_h=yes
25523 else
25524 ac_has_langinfo_h=no
25525 fi
25526
25527
25528
25529 # Check for existence of libiconv.a providing XPG2 wchar_t support.
25530 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
25531 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
25532 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
25533 echo $ECHO_N "(cached) $ECHO_C" >&6
25534 else
25535 ac_check_lib_save_LIBS=$LIBS
25536 LIBS="-liconv $LIBS"
25537 if test x$gcc_no_link = xyes; then
25538 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25539 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25540 { (exit 1); exit 1; }; }
25541 fi
25542 cat >conftest.$ac_ext <<_ACEOF
25543 #line $LINENO "configure"
25544 /* confdefs.h. */
25545 _ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h. */
25549
25550 /* Override any gcc2 internal prototype to avoid an error. */
25551 #ifdef __cplusplus
25552 extern "C"
25553 #endif
25554 /* We use char because int might match the return type of a gcc2
25555 builtin and then its argument prototype would still apply. */
25556 char iconv ();
25557 int
25558 main ()
25559 {
25560 iconv ();
25561 ;
25562 return 0;
25563 }
25564 _ACEOF
25565 rm -f conftest.$ac_objext conftest$ac_exeext
25566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25567 (eval $ac_link) 2>&5
25568 ac_status=$?
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); } &&
25571 { ac_try='test -s conftest$ac_exeext'
25572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573 (eval $ac_try) 2>&5
25574 ac_status=$?
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); }; }; then
25577 ac_cv_lib_iconv_iconv=yes
25578 else
25579 echo "$as_me: failed program was:" >&5
25580 sed 's/^/| /' conftest.$ac_ext >&5
25581
25582 ac_cv_lib_iconv_iconv=no
25583 fi
25584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25585 LIBS=$ac_check_lib_save_LIBS
25586 fi
25587 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
25588 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
25589 if test $ac_cv_lib_iconv_iconv = yes; then
25590 libiconv="-liconv"
25591 fi
25592
25593 ac_save_LIBS="$LIBS"
25594 LIBS="$LIBS $libiconv"
25595
25596
25597
25598
25599
25600 for ac_func in iconv_open iconv_close iconv nl_langinfo
25601 do
25602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25603 echo "$as_me:$LINENO: checking for $ac_func" >&5
25604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25605 if eval "test \"\${$as_ac_var+set}\" = set"; then
25606 echo $ECHO_N "(cached) $ECHO_C" >&6
25607 else
25608 if test x$gcc_no_link = xyes; then
25609 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25611 { (exit 1); exit 1; }; }
25612 fi
25613 cat >conftest.$ac_ext <<_ACEOF
25614 #line $LINENO "configure"
25615 /* confdefs.h. */
25616 _ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h. */
25620 /* System header to define __stub macros and hopefully few prototypes,
25621 which can conflict with char $ac_func (); below.
25622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25623 <limits.h> exists even on freestanding compilers. */
25624 #ifdef __STDC__
25625 # include <limits.h>
25626 #else
25627 # include <assert.h>
25628 #endif
25629 /* Override any gcc2 internal prototype to avoid an error. */
25630 #ifdef __cplusplus
25631 extern "C"
25632 {
25633 #endif
25634 /* We use char because int might match the return type of a gcc2
25635 builtin and then its argument prototype would still apply. */
25636 char $ac_func ();
25637 /* The GNU C library defines this for functions which it implements
25638 to always fail with ENOSYS. Some functions are actually named
25639 something starting with __ and the normal name is an alias. */
25640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25641 choke me
25642 #else
25643 char (*f) () = $ac_func;
25644 #endif
25645 #ifdef __cplusplus
25646 }
25647 #endif
25648
25649 int
25650 main ()
25651 {
25652 return f != $ac_func;
25653 ;
25654 return 0;
25655 }
25656 _ACEOF
25657 rm -f conftest.$ac_objext conftest$ac_exeext
25658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25659 (eval $ac_link) 2>&5
25660 ac_status=$?
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
25663 { ac_try='test -s conftest$ac_exeext'
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25666 ac_status=$?
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; }; then
25669 eval "$as_ac_var=yes"
25670 else
25671 echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25673
25674 eval "$as_ac_var=no"
25675 fi
25676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25677 fi
25678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25680 if test `eval echo '${'$as_ac_var'}'` = yes; then
25681 cat >>confdefs.h <<_ACEOF
25682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25683 _ACEOF
25684 ac_XPG2funcs=yes
25685 else
25686 ac_XPG2funcs=no
25687 fi
25688 done
25689
25690
25691 LIBS="$ac_save_LIBS"
25692
25693 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
25694 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
25695 if test x"$ac_has_iconv_h" = xyes &&
25696 test x"$ac_has_langinfo_h" = xyes &&
25697 test x"$ac_XPG2funcs" = xyes;
25698 then
25699 ac_XPG2_wchar_t=yes
25700 else
25701 ac_XPG2_wchar_t=no
25702 fi
25703 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
25704 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
25705
25706 # At the moment, only enable wchar_t specializations if all the
25707 # above support is present.
25708 if test x"$ac_isoC99_wchar_t" = xyes &&
25709 test x"$ac_XPG2_wchar_t" = xyes;
25710 then
25711 cat >>confdefs.h <<\_ACEOF
25712 #define _GLIBCXX_USE_WCHAR_T 1
25713 _ACEOF
25714
25715 enable_wchar_t=yes
25716 fi
25717 fi
25718 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
25719 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
25720 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
25721 echo "${ECHO_T}$enable_wchar_t" >&6
25722
25723
25724 ac_test_CXXFLAGS="${CXXFLAGS+set}"
25725 ac_save_CXXFLAGS="$CXXFLAGS"
25726 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25727
25728
25729 echo "$as_me:$LINENO: checking for strtold declaration" >&5
25730 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
25731 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25732 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
25733 echo $ECHO_N "(cached) $ECHO_C" >&6
25734 else
25735
25736
25737
25738 ac_ext=cc
25739 ac_cpp='$CXXCPP $CPPFLAGS'
25740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25743
25744 cat >conftest.$ac_ext <<_ACEOF
25745 #line $LINENO "configure"
25746 /* confdefs.h. */
25747 _ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h. */
25751 #include <stdlib.h>
25752 int
25753 main ()
25754 {
25755 strtold(0, 0);
25756 ;
25757 return 0;
25758 }
25759 _ACEOF
25760 rm -f conftest.$ac_objext
25761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762 (eval $ac_compile) 2>&5
25763 ac_status=$?
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); } &&
25766 { ac_try='test -s conftest.$ac_objext'
25767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25768 (eval $ac_try) 2>&5
25769 ac_status=$?
25770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); }; }; then
25772 glibcxx_cv_func_strtold_use=yes
25773 else
25774 echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25776
25777 glibcxx_cv_func_strtold_use=no
25778 fi
25779 rm -f conftest.$ac_objext conftest.$ac_ext
25780 ac_ext=c
25781 ac_cpp='$CPP $CPPFLAGS'
25782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25785
25786
25787 fi
25788
25789 fi
25790 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
25791 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
25792 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
25793
25794 for ac_func in strtold
25795 do
25796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25797 echo "$as_me:$LINENO: checking for $ac_func" >&5
25798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25799 if eval "test \"\${$as_ac_var+set}\" = set"; then
25800 echo $ECHO_N "(cached) $ECHO_C" >&6
25801 else
25802 if test x$gcc_no_link = xyes; then
25803 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25804 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25805 { (exit 1); exit 1; }; }
25806 fi
25807 cat >conftest.$ac_ext <<_ACEOF
25808 #line $LINENO "configure"
25809 /* confdefs.h. */
25810 _ACEOF
25811 cat confdefs.h >>conftest.$ac_ext
25812 cat >>conftest.$ac_ext <<_ACEOF
25813 /* end confdefs.h. */
25814 /* System header to define __stub macros and hopefully few prototypes,
25815 which can conflict with char $ac_func (); below.
25816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25817 <limits.h> exists even on freestanding compilers. */
25818 #ifdef __STDC__
25819 # include <limits.h>
25820 #else
25821 # include <assert.h>
25822 #endif
25823 /* Override any gcc2 internal prototype to avoid an error. */
25824 #ifdef __cplusplus
25825 extern "C"
25826 {
25827 #endif
25828 /* We use char because int might match the return type of a gcc2
25829 builtin and then its argument prototype would still apply. */
25830 char $ac_func ();
25831 /* The GNU C library defines this for functions which it implements
25832 to always fail with ENOSYS. Some functions are actually named
25833 something starting with __ and the normal name is an alias. */
25834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25835 choke me
25836 #else
25837 char (*f) () = $ac_func;
25838 #endif
25839 #ifdef __cplusplus
25840 }
25841 #endif
25842
25843 int
25844 main ()
25845 {
25846 return f != $ac_func;
25847 ;
25848 return 0;
25849 }
25850 _ACEOF
25851 rm -f conftest.$ac_objext conftest$ac_exeext
25852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25853 (eval $ac_link) 2>&5
25854 ac_status=$?
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); } &&
25857 { ac_try='test -s conftest$ac_exeext'
25858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; }; then
25863 eval "$as_ac_var=yes"
25864 else
25865 echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25867
25868 eval "$as_ac_var=no"
25869 fi
25870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25871 fi
25872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25874 if test `eval echo '${'$as_ac_var'}'` = yes; then
25875 cat >>confdefs.h <<_ACEOF
25876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25877 _ACEOF
25878
25879 fi
25880 done
25881
25882 fi
25883
25884
25885 echo "$as_me:$LINENO: checking for strtof declaration" >&5
25886 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
25887 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
25888 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
25889 echo $ECHO_N "(cached) $ECHO_C" >&6
25890 else
25891
25892
25893
25894 ac_ext=cc
25895 ac_cpp='$CXXCPP $CPPFLAGS'
25896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25899
25900 cat >conftest.$ac_ext <<_ACEOF
25901 #line $LINENO "configure"
25902 /* confdefs.h. */
25903 _ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h. */
25907 #include <stdlib.h>
25908 int
25909 main ()
25910 {
25911 strtof(0, 0);
25912 ;
25913 return 0;
25914 }
25915 _ACEOF
25916 rm -f conftest.$ac_objext
25917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25918 (eval $ac_compile) 2>&5
25919 ac_status=$?
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); } &&
25922 { ac_try='test -s conftest.$ac_objext'
25923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924 (eval $ac_try) 2>&5
25925 ac_status=$?
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); }; }; then
25928 glibcxx_cv_func_strtof_use=yes
25929 else
25930 echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25932
25933 glibcxx_cv_func_strtof_use=no
25934 fi
25935 rm -f conftest.$ac_objext conftest.$ac_ext
25936 ac_ext=c
25937 ac_cpp='$CPP $CPPFLAGS'
25938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25941
25942
25943 fi
25944
25945 fi
25946 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
25947 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
25948 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
25949
25950 for ac_func in strtof
25951 do
25952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25953 echo "$as_me:$LINENO: checking for $ac_func" >&5
25954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25955 if eval "test \"\${$as_ac_var+set}\" = set"; then
25956 echo $ECHO_N "(cached) $ECHO_C" >&6
25957 else
25958 if test x$gcc_no_link = xyes; then
25959 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25961 { (exit 1); exit 1; }; }
25962 fi
25963 cat >conftest.$ac_ext <<_ACEOF
25964 #line $LINENO "configure"
25965 /* confdefs.h. */
25966 _ACEOF
25967 cat confdefs.h >>conftest.$ac_ext
25968 cat >>conftest.$ac_ext <<_ACEOF
25969 /* end confdefs.h. */
25970 /* System header to define __stub macros and hopefully few prototypes,
25971 which can conflict with char $ac_func (); below.
25972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25973 <limits.h> exists even on freestanding compilers. */
25974 #ifdef __STDC__
25975 # include <limits.h>
25976 #else
25977 # include <assert.h>
25978 #endif
25979 /* Override any gcc2 internal prototype to avoid an error. */
25980 #ifdef __cplusplus
25981 extern "C"
25982 {
25983 #endif
25984 /* We use char because int might match the return type of a gcc2
25985 builtin and then its argument prototype would still apply. */
25986 char $ac_func ();
25987 /* The GNU C library defines this for functions which it implements
25988 to always fail with ENOSYS. Some functions are actually named
25989 something starting with __ and the normal name is an alias. */
25990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25991 choke me
25992 #else
25993 char (*f) () = $ac_func;
25994 #endif
25995 #ifdef __cplusplus
25996 }
25997 #endif
25998
25999 int
26000 main ()
26001 {
26002 return f != $ac_func;
26003 ;
26004 return 0;
26005 }
26006 _ACEOF
26007 rm -f conftest.$ac_objext conftest$ac_exeext
26008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26009 (eval $ac_link) 2>&5
26010 ac_status=$?
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } &&
26013 { ac_try='test -s conftest$ac_exeext'
26014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); }; }; then
26019 eval "$as_ac_var=yes"
26020 else
26021 echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024 eval "$as_ac_var=no"
26025 fi
26026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26027 fi
26028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26030 if test `eval echo '${'$as_ac_var'}'` = yes; then
26031 cat >>confdefs.h <<_ACEOF
26032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26033 _ACEOF
26034
26035 fi
26036 done
26037
26038 fi
26039
26040
26041 for ac_func in drand48
26042 do
26043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26044 echo "$as_me:$LINENO: checking for $ac_func" >&5
26045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26046 if eval "test \"\${$as_ac_var+set}\" = set"; then
26047 echo $ECHO_N "(cached) $ECHO_C" >&6
26048 else
26049 if test x$gcc_no_link = xyes; then
26050 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26052 { (exit 1); exit 1; }; }
26053 fi
26054 cat >conftest.$ac_ext <<_ACEOF
26055 #line $LINENO "configure"
26056 /* confdefs.h. */
26057 _ACEOF
26058 cat confdefs.h >>conftest.$ac_ext
26059 cat >>conftest.$ac_ext <<_ACEOF
26060 /* end confdefs.h. */
26061 /* System header to define __stub macros and hopefully few prototypes,
26062 which can conflict with char $ac_func (); below.
26063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26064 <limits.h> exists even on freestanding compilers. */
26065 #ifdef __STDC__
26066 # include <limits.h>
26067 #else
26068 # include <assert.h>
26069 #endif
26070 /* Override any gcc2 internal prototype to avoid an error. */
26071 #ifdef __cplusplus
26072 extern "C"
26073 {
26074 #endif
26075 /* We use char because int might match the return type of a gcc2
26076 builtin and then its argument prototype would still apply. */
26077 char $ac_func ();
26078 /* The GNU C library defines this for functions which it implements
26079 to always fail with ENOSYS. Some functions are actually named
26080 something starting with __ and the normal name is an alias. */
26081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26082 choke me
26083 #else
26084 char (*f) () = $ac_func;
26085 #endif
26086 #ifdef __cplusplus
26087 }
26088 #endif
26089
26090 int
26091 main ()
26092 {
26093 return f != $ac_func;
26094 ;
26095 return 0;
26096 }
26097 _ACEOF
26098 rm -f conftest.$ac_objext conftest$ac_exeext
26099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26100 (eval $ac_link) 2>&5
26101 ac_status=$?
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); } &&
26104 { ac_try='test -s conftest$ac_exeext'
26105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26106 (eval $ac_try) 2>&5
26107 ac_status=$?
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); }; }; then
26110 eval "$as_ac_var=yes"
26111 else
26112 echo "$as_me: failed program was:" >&5
26113 sed 's/^/| /' conftest.$ac_ext >&5
26114
26115 eval "$as_ac_var=no"
26116 fi
26117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26118 fi
26119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26121 if test `eval echo '${'$as_ac_var'}'` = yes; then
26122 cat >>confdefs.h <<_ACEOF
26123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26124 _ACEOF
26125
26126 fi
26127 done
26128
26129
26130 CXXFLAGS="$ac_save_CXXFLAGS"
26131
26132
26133 # For showmanyc_helper().
26134
26135
26136 for ac_header in sys/ioctl.h sys/filio.h
26137 do
26138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26140 echo "$as_me:$LINENO: checking for $ac_header" >&5
26141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26143 echo $ECHO_N "(cached) $ECHO_C" >&6
26144 fi
26145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26147 else
26148 # Is the header compilable?
26149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26151 cat >conftest.$ac_ext <<_ACEOF
26152 #line $LINENO "configure"
26153 /* confdefs.h. */
26154 _ACEOF
26155 cat confdefs.h >>conftest.$ac_ext
26156 cat >>conftest.$ac_ext <<_ACEOF
26157 /* end confdefs.h. */
26158 $ac_includes_default
26159 #include <$ac_header>
26160 _ACEOF
26161 rm -f conftest.$ac_objext
26162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26163 (eval $ac_compile) 2>&5
26164 ac_status=$?
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } &&
26167 { ac_try='test -s conftest.$ac_objext'
26168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26169 (eval $ac_try) 2>&5
26170 ac_status=$?
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); }; }; then
26173 ac_header_compiler=yes
26174 else
26175 echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26177
26178 ac_header_compiler=no
26179 fi
26180 rm -f conftest.$ac_objext conftest.$ac_ext
26181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26182 echo "${ECHO_T}$ac_header_compiler" >&6
26183
26184 # Is the header present?
26185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26187 cat >conftest.$ac_ext <<_ACEOF
26188 #line $LINENO "configure"
26189 /* confdefs.h. */
26190 _ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h. */
26194 #include <$ac_header>
26195 _ACEOF
26196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26198 ac_status=$?
26199 grep -v '^ *+' conftest.er1 >conftest.err
26200 rm -f conftest.er1
26201 cat conftest.err >&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } >/dev/null; then
26204 if test -s conftest.err; then
26205 ac_cpp_err=$ac_c_preproc_warn_flag
26206 else
26207 ac_cpp_err=
26208 fi
26209 else
26210 ac_cpp_err=yes
26211 fi
26212 if test -z "$ac_cpp_err"; then
26213 ac_header_preproc=yes
26214 else
26215 echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26217
26218 ac_header_preproc=no
26219 fi
26220 rm -f conftest.err conftest.$ac_ext
26221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26222 echo "${ECHO_T}$ac_header_preproc" >&6
26223
26224 # So? What about this header?
26225 case $ac_header_compiler:$ac_header_preproc in
26226 yes:no )
26227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26231 (
26232 cat <<\_ASBOX
26233 ## ------------------------------------ ##
26234 ## Report this to bug-autoconf@gnu.org. ##
26235 ## ------------------------------------ ##
26236 _ASBOX
26237 ) |
26238 sed "s/^/$as_me: WARNING: /" >&2
26239 ;;
26240 no:yes )
26241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26247 (
26248 cat <<\_ASBOX
26249 ## ------------------------------------ ##
26250 ## Report this to bug-autoconf@gnu.org. ##
26251 ## ------------------------------------ ##
26252 _ASBOX
26253 ) |
26254 sed "s/^/$as_me: WARNING: /" >&2
26255 ;;
26256 esac
26257 echo "$as_me:$LINENO: checking for $ac_header" >&5
26258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26260 echo $ECHO_N "(cached) $ECHO_C" >&6
26261 else
26262 eval "$as_ac_Header=$ac_header_preproc"
26263 fi
26264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26266
26267 fi
26268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26269 cat >>confdefs.h <<_ACEOF
26270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26271 _ACEOF
26272
26273 fi
26274
26275 done
26276
26277
26278 if test "${glibcxx_cv_POLL+set}" = set; then
26279 echo $ECHO_N "(cached) $ECHO_C" >&6
26280 else
26281
26282 cat >conftest.$ac_ext <<_ACEOF
26283 #line $LINENO "configure"
26284 /* confdefs.h. */
26285 _ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h. */
26289 #include <poll.h>
26290 int
26291 main ()
26292 {
26293 struct pollfd pfd[1];
26294 pfd[0].events = POLLIN;
26295 poll(pfd, 1, 0);
26296 ;
26297 return 0;
26298 }
26299 _ACEOF
26300 rm -f conftest.$ac_objext
26301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26302 (eval $ac_compile) 2>&5
26303 ac_status=$?
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } &&
26306 { ac_try='test -s conftest.$ac_objext'
26307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308 (eval $ac_try) 2>&5
26309 ac_status=$?
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); }; }; then
26312 glibcxx_cv_POLL=yes
26313 else
26314 echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26316
26317 glibcxx_cv_POLL=no
26318 fi
26319 rm -f conftest.$ac_objext conftest.$ac_ext
26320
26321 fi
26322
26323 if test $glibcxx_cv_POLL = yes; then
26324 cat >>confdefs.h <<\_ACEOF
26325 #define HAVE_POLL 1
26326 _ACEOF
26327
26328 fi
26329
26330
26331 if test "${glibcxx_cv_S_ISREG+set}" = set; then
26332 echo $ECHO_N "(cached) $ECHO_C" >&6
26333 else
26334
26335 if test x$gcc_no_link = xyes; then
26336 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26337 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26338 { (exit 1); exit 1; }; }
26339 fi
26340 cat >conftest.$ac_ext <<_ACEOF
26341 #line $LINENO "configure"
26342 /* confdefs.h. */
26343 _ACEOF
26344 cat confdefs.h >>conftest.$ac_ext
26345 cat >>conftest.$ac_ext <<_ACEOF
26346 /* end confdefs.h. */
26347 #include <sys/stat.h>
26348 int
26349 main ()
26350 {
26351 struct stat buffer;
26352 fstat(0, &buffer);
26353 S_ISREG(buffer.st_mode);
26354 ;
26355 return 0;
26356 }
26357 _ACEOF
26358 rm -f conftest.$ac_objext conftest$ac_exeext
26359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26360 (eval $ac_link) 2>&5
26361 ac_status=$?
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); } &&
26364 { ac_try='test -s conftest$ac_exeext'
26365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26366 (eval $ac_try) 2>&5
26367 ac_status=$?
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; }; then
26370 glibcxx_cv_S_ISREG=yes
26371 else
26372 echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26374
26375 glibcxx_cv_S_ISREG=no
26376 fi
26377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26378
26379 fi
26380
26381 if test "${glibcxx_cv_S_IFREG+set}" = set; then
26382 echo $ECHO_N "(cached) $ECHO_C" >&6
26383 else
26384
26385 if test x$gcc_no_link = xyes; then
26386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26387 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26388 { (exit 1); exit 1; }; }
26389 fi
26390 cat >conftest.$ac_ext <<_ACEOF
26391 #line $LINENO "configure"
26392 /* confdefs.h. */
26393 _ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h. */
26397 #include <sys/stat.h>
26398 int
26399 main ()
26400 {
26401 struct stat buffer;
26402 fstat(0, &buffer);
26403 S_IFREG & buffer.st_mode;
26404 ;
26405 return 0;
26406 }
26407 _ACEOF
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26410 (eval $ac_link) 2>&5
26411 ac_status=$?
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); } &&
26414 { ac_try='test -s conftest$ac_exeext'
26415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26416 (eval $ac_try) 2>&5
26417 ac_status=$?
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); }; }; then
26420 glibcxx_cv_S_IFREG=yes
26421 else
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425 glibcxx_cv_S_IFREG=no
26426 fi
26427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26428
26429 fi
26430
26431 if test $glibcxx_cv_S_ISREG = yes; then
26432 cat >>confdefs.h <<\_ACEOF
26433 #define HAVE_S_ISREG 1
26434 _ACEOF
26435
26436 elif test $glibcxx_cv_S_IFREG = yes; then
26437 cat >>confdefs.h <<\_ACEOF
26438 #define HAVE_S_IFREG 1
26439 _ACEOF
26440
26441 fi
26442
26443
26444 # For xsputn_2().
26445
26446 for ac_header in sys/uio.h
26447 do
26448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26450 echo "$as_me:$LINENO: checking for $ac_header" >&5
26451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26453 echo $ECHO_N "(cached) $ECHO_C" >&6
26454 fi
26455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26457 else
26458 # Is the header compilable?
26459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26461 cat >conftest.$ac_ext <<_ACEOF
26462 #line $LINENO "configure"
26463 /* confdefs.h. */
26464 _ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h. */
26468 $ac_includes_default
26469 #include <$ac_header>
26470 _ACEOF
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473 (eval $ac_compile) 2>&5
26474 ac_status=$?
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); } &&
26477 { ac_try='test -s conftest.$ac_objext'
26478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26479 (eval $ac_try) 2>&5
26480 ac_status=$?
26481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482 (exit $ac_status); }; }; then
26483 ac_header_compiler=yes
26484 else
26485 echo "$as_me: failed program was:" >&5
26486 sed 's/^/| /' conftest.$ac_ext >&5
26487
26488 ac_header_compiler=no
26489 fi
26490 rm -f conftest.$ac_objext conftest.$ac_ext
26491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26492 echo "${ECHO_T}$ac_header_compiler" >&6
26493
26494 # Is the header present?
26495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26497 cat >conftest.$ac_ext <<_ACEOF
26498 #line $LINENO "configure"
26499 /* confdefs.h. */
26500 _ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h. */
26504 #include <$ac_header>
26505 _ACEOF
26506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26508 ac_status=$?
26509 grep -v '^ *+' conftest.er1 >conftest.err
26510 rm -f conftest.er1
26511 cat conftest.err >&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } >/dev/null; then
26514 if test -s conftest.err; then
26515 ac_cpp_err=$ac_c_preproc_warn_flag
26516 else
26517 ac_cpp_err=
26518 fi
26519 else
26520 ac_cpp_err=yes
26521 fi
26522 if test -z "$ac_cpp_err"; then
26523 ac_header_preproc=yes
26524 else
26525 echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26527
26528 ac_header_preproc=no
26529 fi
26530 rm -f conftest.err conftest.$ac_ext
26531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26532 echo "${ECHO_T}$ac_header_preproc" >&6
26533
26534 # So? What about this header?
26535 case $ac_header_compiler:$ac_header_preproc in
26536 yes:no )
26537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26541 (
26542 cat <<\_ASBOX
26543 ## ------------------------------------ ##
26544 ## Report this to bug-autoconf@gnu.org. ##
26545 ## ------------------------------------ ##
26546 _ASBOX
26547 ) |
26548 sed "s/^/$as_me: WARNING: /" >&2
26549 ;;
26550 no:yes )
26551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26557 (
26558 cat <<\_ASBOX
26559 ## ------------------------------------ ##
26560 ## Report this to bug-autoconf@gnu.org. ##
26561 ## ------------------------------------ ##
26562 _ASBOX
26563 ) |
26564 sed "s/^/$as_me: WARNING: /" >&2
26565 ;;
26566 esac
26567 echo "$as_me:$LINENO: checking for $ac_header" >&5
26568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26570 echo $ECHO_N "(cached) $ECHO_C" >&6
26571 else
26572 eval "$as_ac_Header=$ac_header_preproc"
26573 fi
26574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26576
26577 fi
26578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26579 cat >>confdefs.h <<_ACEOF
26580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26581 _ACEOF
26582
26583 fi
26584
26585 done
26586
26587
26588 if test "${glibcxx_cv_WRITEV+set}" = set; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26590 else
26591
26592 cat >conftest.$ac_ext <<_ACEOF
26593 #line $LINENO "configure"
26594 /* confdefs.h. */
26595 _ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h. */
26599 #include <sys/uio.h>
26600 int
26601 main ()
26602 {
26603 struct iovec iov[2];
26604 writev(0, iov, 0);
26605 ;
26606 return 0;
26607 }
26608 _ACEOF
26609 rm -f conftest.$ac_objext
26610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26611 (eval $ac_compile) 2>&5
26612 ac_status=$?
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); } &&
26615 { ac_try='test -s conftest.$ac_objext'
26616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617 (eval $ac_try) 2>&5
26618 ac_status=$?
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; }; then
26621 glibcxx_cv_WRITEV=yes
26622 else
26623 echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26625
26626 glibcxx_cv_WRITEV=no
26627 fi
26628 rm -f conftest.$ac_objext conftest.$ac_ext
26629
26630 fi
26631
26632 if test $glibcxx_cv_WRITEV = yes; then
26633 cat >>confdefs.h <<\_ACEOF
26634 #define HAVE_WRITEV 1
26635 _ACEOF
26636
26637 fi
26638
26639
26640
26641 if test "${ac_cv_header_locale_h+set}" = set; then
26642 echo "$as_me:$LINENO: checking for locale.h" >&5
26643 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26644 if test "${ac_cv_header_locale_h+set}" = set; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 fi
26647 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26648 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26649 else
26650 # Is the header compilable?
26651 echo "$as_me:$LINENO: checking locale.h usability" >&5
26652 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
26653 cat >conftest.$ac_ext <<_ACEOF
26654 #line $LINENO "configure"
26655 /* confdefs.h. */
26656 _ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h. */
26660 $ac_includes_default
26661 #include <locale.h>
26662 _ACEOF
26663 rm -f conftest.$ac_objext
26664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26665 (eval $ac_compile) 2>&5
26666 ac_status=$?
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); } &&
26669 { ac_try='test -s conftest.$ac_objext'
26670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671 (eval $ac_try) 2>&5
26672 ac_status=$?
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; }; then
26675 ac_header_compiler=yes
26676 else
26677 echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26679
26680 ac_header_compiler=no
26681 fi
26682 rm -f conftest.$ac_objext conftest.$ac_ext
26683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26684 echo "${ECHO_T}$ac_header_compiler" >&6
26685
26686 # Is the header present?
26687 echo "$as_me:$LINENO: checking locale.h presence" >&5
26688 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
26689 cat >conftest.$ac_ext <<_ACEOF
26690 #line $LINENO "configure"
26691 /* confdefs.h. */
26692 _ACEOF
26693 cat confdefs.h >>conftest.$ac_ext
26694 cat >>conftest.$ac_ext <<_ACEOF
26695 /* end confdefs.h. */
26696 #include <locale.h>
26697 _ACEOF
26698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26700 ac_status=$?
26701 grep -v '^ *+' conftest.er1 >conftest.err
26702 rm -f conftest.er1
26703 cat conftest.err >&5
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); } >/dev/null; then
26706 if test -s conftest.err; then
26707 ac_cpp_err=$ac_c_preproc_warn_flag
26708 else
26709 ac_cpp_err=
26710 fi
26711 else
26712 ac_cpp_err=yes
26713 fi
26714 if test -z "$ac_cpp_err"; then
26715 ac_header_preproc=yes
26716 else
26717 echo "$as_me: failed program was:" >&5
26718 sed 's/^/| /' conftest.$ac_ext >&5
26719
26720 ac_header_preproc=no
26721 fi
26722 rm -f conftest.err conftest.$ac_ext
26723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26724 echo "${ECHO_T}$ac_header_preproc" >&6
26725
26726 # So? What about this header?
26727 case $ac_header_compiler:$ac_header_preproc in
26728 yes:no )
26729 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
26730 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26731 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26732 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26733 (
26734 cat <<\_ASBOX
26735 ## ------------------------------------ ##
26736 ## Report this to bug-autoconf@gnu.org. ##
26737 ## ------------------------------------ ##
26738 _ASBOX
26739 ) |
26740 sed "s/^/$as_me: WARNING: /" >&2
26741 ;;
26742 no:yes )
26743 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
26744 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
26745 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
26746 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
26747 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26748 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26749 (
26750 cat <<\_ASBOX
26751 ## ------------------------------------ ##
26752 ## Report this to bug-autoconf@gnu.org. ##
26753 ## ------------------------------------ ##
26754 _ASBOX
26755 ) |
26756 sed "s/^/$as_me: WARNING: /" >&2
26757 ;;
26758 esac
26759 echo "$as_me:$LINENO: checking for locale.h" >&5
26760 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26761 if test "${ac_cv_header_locale_h+set}" = set; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26763 else
26764 ac_cv_header_locale_h=$ac_header_preproc
26765 fi
26766 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26767 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26768
26769 fi
26770 if test $ac_cv_header_locale_h = yes; then
26771
26772 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
26773 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
26774 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
26775 echo $ECHO_N "(cached) $ECHO_C" >&6
26776 else
26777 if test x$gcc_no_link = xyes; then
26778 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26779 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26780 { (exit 1); exit 1; }; }
26781 fi
26782 cat >conftest.$ac_ext <<_ACEOF
26783 #line $LINENO "configure"
26784 /* confdefs.h. */
26785 _ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h. */
26789 #include <locale.h>
26790 int
26791 main ()
26792 {
26793 return LC_MESSAGES
26794 ;
26795 return 0;
26796 }
26797 _ACEOF
26798 rm -f conftest.$ac_objext conftest$ac_exeext
26799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26800 (eval $ac_link) 2>&5
26801 ac_status=$?
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } &&
26804 { ac_try='test -s conftest$ac_exeext'
26805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26806 (eval $ac_try) 2>&5
26807 ac_status=$?
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); }; }; then
26810 ac_cv_val_LC_MESSAGES=yes
26811 else
26812 echo "$as_me: failed program was:" >&5
26813 sed 's/^/| /' conftest.$ac_ext >&5
26814
26815 ac_cv_val_LC_MESSAGES=no
26816 fi
26817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26818 fi
26819 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
26820 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
26821 if test $ac_cv_val_LC_MESSAGES = yes; then
26822 cat >>confdefs.h <<\_ACEOF
26823 #define HAVE_LC_MESSAGES 1
26824 _ACEOF
26825
26826 fi
26827
26828 fi
26829
26830
26831
26832
26833 cat >conftest.$ac_ext <<_ACEOF
26834 #line $LINENO "configure"
26835 /* confdefs.h. */
26836 _ACEOF
26837 cat confdefs.h >>conftest.$ac_ext
26838 cat >>conftest.$ac_ext <<_ACEOF
26839 /* end confdefs.h. */
26840 #include <setjmp.h>
26841 int
26842 main ()
26843 {
26844 sigjmp_buf env;
26845 while (! sigsetjmp (env, 1))
26846 siglongjmp (env, 1);
26847
26848 ;
26849 return 0;
26850 }
26851 _ACEOF
26852 rm -f conftest.$ac_objext
26853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26854 (eval $ac_compile) 2>&5
26855 ac_status=$?
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); } &&
26858 { ac_try='test -s conftest.$ac_objext'
26859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26860 (eval $ac_try) 2>&5
26861 ac_status=$?
26862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); }; }; then
26864
26865 cat >>confdefs.h <<\_ACEOF
26866 #define HAVE_SIGSETJMP 1
26867 _ACEOF
26868
26869 else
26870 echo "$as_me: failed program was:" >&5
26871 sed 's/^/| /' conftest.$ac_ext >&5
26872
26873 fi
26874 rm -f conftest.$ac_objext conftest.$ac_ext
26875
26876 if test x$gcc_no_link = xyes; then
26877 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
26878 ac_cv_func_mmap_fixed_mapped=no
26879 fi
26880 fi
26881 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
26882
26883
26884 for ac_header in stdlib.h unistd.h
26885 do
26886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26888 echo "$as_me:$LINENO: checking for $ac_header" >&5
26889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26892 fi
26893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26895 else
26896 # Is the header compilable?
26897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26899 cat >conftest.$ac_ext <<_ACEOF
26900 #line $LINENO "configure"
26901 /* confdefs.h. */
26902 _ACEOF
26903 cat confdefs.h >>conftest.$ac_ext
26904 cat >>conftest.$ac_ext <<_ACEOF
26905 /* end confdefs.h. */
26906 $ac_includes_default
26907 #include <$ac_header>
26908 _ACEOF
26909 rm -f conftest.$ac_objext
26910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26911 (eval $ac_compile) 2>&5
26912 ac_status=$?
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } &&
26915 { ac_try='test -s conftest.$ac_objext'
26916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917 (eval $ac_try) 2>&5
26918 ac_status=$?
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; }; then
26921 ac_header_compiler=yes
26922 else
26923 echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26925
26926 ac_header_compiler=no
26927 fi
26928 rm -f conftest.$ac_objext conftest.$ac_ext
26929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26930 echo "${ECHO_T}$ac_header_compiler" >&6
26931
26932 # Is the header present?
26933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26935 cat >conftest.$ac_ext <<_ACEOF
26936 #line $LINENO "configure"
26937 /* confdefs.h. */
26938 _ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h. */
26942 #include <$ac_header>
26943 _ACEOF
26944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26946 ac_status=$?
26947 grep -v '^ *+' conftest.er1 >conftest.err
26948 rm -f conftest.er1
26949 cat conftest.err >&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } >/dev/null; then
26952 if test -s conftest.err; then
26953 ac_cpp_err=$ac_c_preproc_warn_flag
26954 else
26955 ac_cpp_err=
26956 fi
26957 else
26958 ac_cpp_err=yes
26959 fi
26960 if test -z "$ac_cpp_err"; then
26961 ac_header_preproc=yes
26962 else
26963 echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26965
26966 ac_header_preproc=no
26967 fi
26968 rm -f conftest.err conftest.$ac_ext
26969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26970 echo "${ECHO_T}$ac_header_preproc" >&6
26971
26972 # So? What about this header?
26973 case $ac_header_compiler:$ac_header_preproc in
26974 yes:no )
26975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26979 (
26980 cat <<\_ASBOX
26981 ## ------------------------------------ ##
26982 ## Report this to bug-autoconf@gnu.org. ##
26983 ## ------------------------------------ ##
26984 _ASBOX
26985 ) |
26986 sed "s/^/$as_me: WARNING: /" >&2
26987 ;;
26988 no:yes )
26989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26995 (
26996 cat <<\_ASBOX
26997 ## ------------------------------------ ##
26998 ## Report this to bug-autoconf@gnu.org. ##
26999 ## ------------------------------------ ##
27000 _ASBOX
27001 ) |
27002 sed "s/^/$as_me: WARNING: /" >&2
27003 ;;
27004 esac
27005 echo "$as_me:$LINENO: checking for $ac_header" >&5
27006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27008 echo $ECHO_N "(cached) $ECHO_C" >&6
27009 else
27010 eval "$as_ac_Header=$ac_header_preproc"
27011 fi
27012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27014
27015 fi
27016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27017 cat >>confdefs.h <<_ACEOF
27018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27019 _ACEOF
27020
27021 fi
27022
27023 done
27024
27025
27026 for ac_func in getpagesize
27027 do
27028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27029 echo "$as_me:$LINENO: checking for $ac_func" >&5
27030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27031 if eval "test \"\${$as_ac_var+set}\" = set"; then
27032 echo $ECHO_N "(cached) $ECHO_C" >&6
27033 else
27034 if test x$gcc_no_link = xyes; then
27035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27037 { (exit 1); exit 1; }; }
27038 fi
27039 cat >conftest.$ac_ext <<_ACEOF
27040 #line $LINENO "configure"
27041 /* confdefs.h. */
27042 _ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h. */
27046 /* System header to define __stub macros and hopefully few prototypes,
27047 which can conflict with char $ac_func (); below.
27048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27049 <limits.h> exists even on freestanding compilers. */
27050 #ifdef __STDC__
27051 # include <limits.h>
27052 #else
27053 # include <assert.h>
27054 #endif
27055 /* Override any gcc2 internal prototype to avoid an error. */
27056 #ifdef __cplusplus
27057 extern "C"
27058 {
27059 #endif
27060 /* We use char because int might match the return type of a gcc2
27061 builtin and then its argument prototype would still apply. */
27062 char $ac_func ();
27063 /* The GNU C library defines this for functions which it implements
27064 to always fail with ENOSYS. Some functions are actually named
27065 something starting with __ and the normal name is an alias. */
27066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27067 choke me
27068 #else
27069 char (*f) () = $ac_func;
27070 #endif
27071 #ifdef __cplusplus
27072 }
27073 #endif
27074
27075 int
27076 main ()
27077 {
27078 return f != $ac_func;
27079 ;
27080 return 0;
27081 }
27082 _ACEOF
27083 rm -f conftest.$ac_objext conftest$ac_exeext
27084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27085 (eval $ac_link) 2>&5
27086 ac_status=$?
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); } &&
27089 { ac_try='test -s conftest$ac_exeext'
27090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27091 (eval $ac_try) 2>&5
27092 ac_status=$?
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); }; }; then
27095 eval "$as_ac_var=yes"
27096 else
27097 echo "$as_me: failed program was:" >&5
27098 sed 's/^/| /' conftest.$ac_ext >&5
27099
27100 eval "$as_ac_var=no"
27101 fi
27102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27103 fi
27104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27106 if test `eval echo '${'$as_ac_var'}'` = yes; then
27107 cat >>confdefs.h <<_ACEOF
27108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27109 _ACEOF
27110
27111 fi
27112 done
27113
27114 echo "$as_me:$LINENO: checking for working mmap" >&5
27115 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
27116 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27118 else
27119 if test "$cross_compiling" = yes; then
27120 ac_cv_func_mmap_fixed_mapped=no
27121 else
27122 cat >conftest.$ac_ext <<_ACEOF
27123 #line $LINENO "configure"
27124 /* confdefs.h. */
27125 _ACEOF
27126 cat confdefs.h >>conftest.$ac_ext
27127 cat >>conftest.$ac_ext <<_ACEOF
27128 /* end confdefs.h. */
27129 $ac_includes_default
27130 /* malloc might have been renamed as rpl_malloc. */
27131 #undef malloc
27132
27133 /* Thanks to Mike Haertel and Jim Avera for this test.
27134 Here is a matrix of mmap possibilities:
27135 mmap private not fixed
27136 mmap private fixed at somewhere currently unmapped
27137 mmap private fixed at somewhere already mapped
27138 mmap shared not fixed
27139 mmap shared fixed at somewhere currently unmapped
27140 mmap shared fixed at somewhere already mapped
27141 For private mappings, we should verify that changes cannot be read()
27142 back from the file, nor mmap's back from the file at a different
27143 address. (There have been systems where private was not correctly
27144 implemented like the infamous i386 svr4.0, and systems where the
27145 VM page cache was not coherent with the file system buffer cache
27146 like early versions of FreeBSD and possibly contemporary NetBSD.)
27147 For shared mappings, we should conversely verify that changes get
27148 propagated back to all the places they're supposed to be.
27149
27150 Grep wants private fixed already mapped.
27151 The main things grep needs to know about mmap are:
27152 * does it exist and is it safe to write into the mmap'd area
27153 * how to use it (BSD variants) */
27154
27155 #include <fcntl.h>
27156 #include <sys/mman.h>
27157
27158 #if !STDC_HEADERS && !HAVE_STDLIB_H
27159 char *malloc ();
27160 #endif
27161
27162 /* This mess was copied from the GNU getpagesize.h. */
27163 #if !HAVE_GETPAGESIZE
27164 /* Assume that all systems that can run configure have sys/param.h. */
27165 # if !HAVE_SYS_PARAM_H
27166 # define HAVE_SYS_PARAM_H 1
27167 # endif
27168
27169 # ifdef _SC_PAGESIZE
27170 # define getpagesize() sysconf(_SC_PAGESIZE)
27171 # else /* no _SC_PAGESIZE */
27172 # if HAVE_SYS_PARAM_H
27173 # include <sys/param.h>
27174 # ifdef EXEC_PAGESIZE
27175 # define getpagesize() EXEC_PAGESIZE
27176 # else /* no EXEC_PAGESIZE */
27177 # ifdef NBPG
27178 # define getpagesize() NBPG * CLSIZE
27179 # ifndef CLSIZE
27180 # define CLSIZE 1
27181 # endif /* no CLSIZE */
27182 # else /* no NBPG */
27183 # ifdef NBPC
27184 # define getpagesize() NBPC
27185 # else /* no NBPC */
27186 # ifdef PAGESIZE
27187 # define getpagesize() PAGESIZE
27188 # endif /* PAGESIZE */
27189 # endif /* no NBPC */
27190 # endif /* no NBPG */
27191 # endif /* no EXEC_PAGESIZE */
27192 # else /* no HAVE_SYS_PARAM_H */
27193 # define getpagesize() 8192 /* punt totally */
27194 # endif /* no HAVE_SYS_PARAM_H */
27195 # endif /* no _SC_PAGESIZE */
27196
27197 #endif /* no HAVE_GETPAGESIZE */
27198
27199 int
27200 main ()
27201 {
27202 char *data, *data2, *data3;
27203 int i, pagesize;
27204 int fd;
27205
27206 pagesize = getpagesize ();
27207
27208 /* First, make a file with some known garbage in it. */
27209 data = (char *) malloc (pagesize);
27210 if (!data)
27211 exit (1);
27212 for (i = 0; i < pagesize; ++i)
27213 *(data + i) = rand ();
27214 umask (0);
27215 fd = creat ("conftest.mmap", 0600);
27216 if (fd < 0)
27217 exit (1);
27218 if (write (fd, data, pagesize) != pagesize)
27219 exit (1);
27220 close (fd);
27221
27222 /* Next, try to mmap the file at a fixed address which already has
27223 something else allocated at it. If we can, also make sure that
27224 we see the same garbage. */
27225 fd = open ("conftest.mmap", O_RDWR);
27226 if (fd < 0)
27227 exit (1);
27228 data2 = (char *) malloc (2 * pagesize);
27229 if (!data2)
27230 exit (1);
27231 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
27232 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27233 MAP_PRIVATE | MAP_FIXED, fd, 0L))
27234 exit (1);
27235 for (i = 0; i < pagesize; ++i)
27236 if (*(data + i) != *(data2 + i))
27237 exit (1);
27238
27239 /* Finally, make sure that changes to the mapped area do not
27240 percolate back to the file as seen by read(). (This is a bug on
27241 some variants of i386 svr4.0.) */
27242 for (i = 0; i < pagesize; ++i)
27243 *(data2 + i) = *(data2 + i) + 1;
27244 data3 = (char *) malloc (pagesize);
27245 if (!data3)
27246 exit (1);
27247 if (read (fd, data3, pagesize) != pagesize)
27248 exit (1);
27249 for (i = 0; i < pagesize; ++i)
27250 if (*(data + i) != *(data3 + i))
27251 exit (1);
27252 close (fd);
27253 exit (0);
27254 }
27255 _ACEOF
27256 rm -f conftest$ac_exeext
27257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27258 (eval $ac_link) 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263 (eval $ac_try) 2>&5
27264 ac_status=$?
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; }; then
27267 ac_cv_func_mmap_fixed_mapped=yes
27268 else
27269 echo "$as_me: program exited with status $ac_status" >&5
27270 echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27272
27273 ( exit $ac_status )
27274 ac_cv_func_mmap_fixed_mapped=no
27275 fi
27276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27277 fi
27278 fi
27279 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
27280 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
27281 if test $ac_cv_func_mmap_fixed_mapped = yes; then
27282
27283 cat >>confdefs.h <<\_ACEOF
27284 #define HAVE_MMAP 1
27285 _ACEOF
27286
27287 fi
27288 rm -f conftest.mmap
27289
27290 fi
27291
27292 else
27293
27294 # This lets us hard-code the functionality we know we'll have in the cross
27295 # target environment. "Let" is a sugar-coated word placed on an especially
27296 # dull and tedious hack, actually.
27297 #
27298 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
27299 # that involve linking, can't be used:
27300 # "cannot open sim-crt0.o"
27301 # "cannot open crt0.o"
27302 # etc. All this is because there currently exists no unified, consistent
27303 # way for top level CC information to be passed down to target directories:
27304 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
27305 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
27306 # crosses can be removed.
27307
27308 # If Canadian cross, then don't pick up tools from the build directory.
27309 # Used only in GLIBCXX_EXPORT_INCLUDES.
27310 if test -n "$with_cross_host" &&
27311 test x"$build" != x"$with_cross_host" &&
27312 test x"$build" != x"$target";
27313 then
27314 CANADIAN=yes
27315 else
27316 CANADIAN=no
27317 fi
27318
27319 # Construct crosses by hand, eliminating bits that need ld...
27320 # GLIBCXX_CHECK_COMPILER_FEATURES
27321 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
27322 # GLIBCXX_CHECK_MATH_SUPPORT
27323
27324 # First, test for "known" system libraries. We may be using newlib even
27325 # on a hosted environment.
27326 if test "x${with_newlib}" = "xyes"; then
27327 os_include_dir="os/newlib"
27328 cat >>confdefs.h <<\_ACEOF
27329 #define HAVE_HYPOT 1
27330 _ACEOF
27331
27332
27333 # GLIBCXX_CHECK_STDLIB_SUPPORT
27334 cat >>confdefs.h <<\_ACEOF
27335 #define HAVE_STRTOF 1
27336 _ACEOF
27337
27338 cat >>confdefs.h <<\_ACEOF
27339 #define HAVE_STRTOLD 1
27340 _ACEOF
27341
27342 # AC_FUNC_MMAP
27343 cat >>confdefs.h <<\_ACEOF
27344 #define HAVE_MMAP 1
27345 _ACEOF
27346
27347
27348 cat >>confdefs.h <<\_ACEOF
27349 #define HAVE_ACOSF 1
27350 _ACEOF
27351
27352 cat >>confdefs.h <<\_ACEOF
27353 #define HAVE_ASINF 1
27354 _ACEOF
27355
27356 cat >>confdefs.h <<\_ACEOF
27357 #define HAVE_ATAN2F 1
27358 _ACEOF
27359
27360 cat >>confdefs.h <<\_ACEOF
27361 #define HAVE_ATANF 1
27362 _ACEOF
27363
27364 cat >>confdefs.h <<\_ACEOF
27365 #define HAVE_CEILF 1
27366 _ACEOF
27367
27368 cat >>confdefs.h <<\_ACEOF
27369 #define HAVE_COPYSIGN 1
27370 _ACEOF
27371
27372 cat >>confdefs.h <<\_ACEOF
27373 #define HAVE_COPYSIGNF 1
27374 _ACEOF
27375
27376 cat >>confdefs.h <<\_ACEOF
27377 #define HAVE_COSF 1
27378 _ACEOF
27379
27380 cat >>confdefs.h <<\_ACEOF
27381 #define HAVE_COSHF 1
27382 _ACEOF
27383
27384 cat >>confdefs.h <<\_ACEOF
27385 #define HAVE_EXPF 1
27386 _ACEOF
27387
27388 cat >>confdefs.h <<\_ACEOF
27389 #define HAVE_FABSF 1
27390 _ACEOF
27391
27392 cat >>confdefs.h <<\_ACEOF
27393 #define HAVE_FLOORF 1
27394 _ACEOF
27395
27396 cat >>confdefs.h <<\_ACEOF
27397 #define HAVE_FMODF 1
27398 _ACEOF
27399
27400 cat >>confdefs.h <<\_ACEOF
27401 #define HAVE_FREXPF 1
27402 _ACEOF
27403
27404 cat >>confdefs.h <<\_ACEOF
27405 #define HAVE_LDEXPF 1
27406 _ACEOF
27407
27408 cat >>confdefs.h <<\_ACEOF
27409 #define HAVE_LOG10F 1
27410 _ACEOF
27411
27412 cat >>confdefs.h <<\_ACEOF
27413 #define HAVE_LOGF 1
27414 _ACEOF
27415
27416 cat >>confdefs.h <<\_ACEOF
27417 #define HAVE_MODFF 1
27418 _ACEOF
27419
27420 cat >>confdefs.h <<\_ACEOF
27421 #define HAVE_POWF 1
27422 _ACEOF
27423
27424 cat >>confdefs.h <<\_ACEOF
27425 #define HAVE_SINF 1
27426 _ACEOF
27427
27428 cat >>confdefs.h <<\_ACEOF
27429 #define HAVE_SINHF 1
27430 _ACEOF
27431
27432 cat >>confdefs.h <<\_ACEOF
27433 #define HAVE_SQRTF 1
27434 _ACEOF
27435
27436 cat >>confdefs.h <<\_ACEOF
27437 #define HAVE_TANF 1
27438 _ACEOF
27439
27440 cat >>confdefs.h <<\_ACEOF
27441 #define HAVE_TANHF 1
27442 _ACEOF
27443
27444 else
27445
27446 # Base decisions on target environment.
27447 case "${host}" in
27448 *-darwin*)
27449 # Darwin versions vary, but the linker should work in a cross environment,
27450 # so we just check for all the features here.
27451 # Check for available headers.
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
27466 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
27467 sys/types.h
27468 do
27469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27471 echo "$as_me:$LINENO: checking for $ac_header" >&5
27472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27475 fi
27476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27478 else
27479 # Is the header compilable?
27480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27482 cat >conftest.$ac_ext <<_ACEOF
27483 #line $LINENO "configure"
27484 /* confdefs.h. */
27485 _ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h. */
27489 $ac_includes_default
27490 #include <$ac_header>
27491 _ACEOF
27492 rm -f conftest.$ac_objext
27493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27494 (eval $ac_compile) 2>&5
27495 ac_status=$?
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); } &&
27498 { ac_try='test -s conftest.$ac_objext'
27499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500 (eval $ac_try) 2>&5
27501 ac_status=$?
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; }; then
27504 ac_header_compiler=yes
27505 else
27506 echo "$as_me: failed program was:" >&5
27507 sed 's/^/| /' conftest.$ac_ext >&5
27508
27509 ac_header_compiler=no
27510 fi
27511 rm -f conftest.$ac_objext conftest.$ac_ext
27512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27513 echo "${ECHO_T}$ac_header_compiler" >&6
27514
27515 # Is the header present?
27516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27518 cat >conftest.$ac_ext <<_ACEOF
27519 #line $LINENO "configure"
27520 /* confdefs.h. */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27525 #include <$ac_header>
27526 _ACEOF
27527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27529 ac_status=$?
27530 grep -v '^ *+' conftest.er1 >conftest.err
27531 rm -f conftest.er1
27532 cat conftest.err >&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); } >/dev/null; then
27535 if test -s conftest.err; then
27536 ac_cpp_err=$ac_c_preproc_warn_flag
27537 else
27538 ac_cpp_err=
27539 fi
27540 else
27541 ac_cpp_err=yes
27542 fi
27543 if test -z "$ac_cpp_err"; then
27544 ac_header_preproc=yes
27545 else
27546 echo "$as_me: failed program was:" >&5
27547 sed 's/^/| /' conftest.$ac_ext >&5
27548
27549 ac_header_preproc=no
27550 fi
27551 rm -f conftest.err conftest.$ac_ext
27552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27553 echo "${ECHO_T}$ac_header_preproc" >&6
27554
27555 # So? What about this header?
27556 case $ac_header_compiler:$ac_header_preproc in
27557 yes:no )
27558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27562 (
27563 cat <<\_ASBOX
27564 ## ------------------------------------ ##
27565 ## Report this to bug-autoconf@gnu.org. ##
27566 ## ------------------------------------ ##
27567 _ASBOX
27568 ) |
27569 sed "s/^/$as_me: WARNING: /" >&2
27570 ;;
27571 no:yes )
27572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27578 (
27579 cat <<\_ASBOX
27580 ## ------------------------------------ ##
27581 ## Report this to bug-autoconf@gnu.org. ##
27582 ## ------------------------------------ ##
27583 _ASBOX
27584 ) |
27585 sed "s/^/$as_me: WARNING: /" >&2
27586 ;;
27587 esac
27588 echo "$as_me:$LINENO: checking for $ac_header" >&5
27589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27592 else
27593 eval "$as_ac_Header=$ac_header_preproc"
27594 fi
27595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27597
27598 fi
27599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27600 cat >>confdefs.h <<_ACEOF
27601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27602 _ACEOF
27603
27604 fi
27605
27606 done
27607
27608
27609
27610 # All these tests are for C++; save the language and the compiler flags.
27611 # The CXXFLAGS thing is suspicious, but based on similar bits previously
27612 # found in GLIBCXX_CONFIGURE.
27613
27614
27615 ac_ext=cc
27616 ac_cpp='$CXXCPP $CPPFLAGS'
27617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27620
27621 ac_test_CXXFLAGS="${CXXFLAGS+set}"
27622 ac_save_CXXFLAGS="$CXXFLAGS"
27623
27624 # Check for maintainer-mode bits.
27625 if test x"$USE_MAINTAINER_MODE" = xno; then
27626 WERROR=''
27627 else
27628 WERROR='-Werror'
27629 fi
27630
27631 # Check for -ffunction-sections -fdata-sections
27632 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
27633 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
27634 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
27635 cat >conftest.$ac_ext <<_ACEOF
27636 #line $LINENO "configure"
27637 /* confdefs.h. */
27638 _ACEOF
27639 cat confdefs.h >>conftest.$ac_ext
27640 cat >>conftest.$ac_ext <<_ACEOF
27641 /* end confdefs.h. */
27642
27643 int
27644 main ()
27645 {
27646 int foo;
27647 ;
27648 return 0;
27649 }
27650 _ACEOF
27651 rm -f conftest.$ac_objext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27653 (eval $ac_compile) 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } &&
27657 { ac_try='test -s conftest.$ac_objext'
27658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659 (eval $ac_try) 2>&5
27660 ac_status=$?
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; }; then
27663 ac_fdsections=yes
27664 else
27665 echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27667
27668 ac_fdsections=no
27669 fi
27670 rm -f conftest.$ac_objext conftest.$ac_ext
27671 if test "$ac_test_CXXFLAGS" = set; then
27672 CXXFLAGS="$ac_save_CXXFLAGS"
27673 else
27674 # this is the suspicious part
27675 CXXFLAGS=''
27676 fi
27677 if test x"$ac_fdsections" = x"yes"; then
27678 SECTION_FLAGS='-ffunction-sections -fdata-sections'
27679 fi
27680 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
27681 echo "${ECHO_T}$ac_fdsections" >&6
27682
27683 ac_ext=c
27684 ac_cpp='$CPP $CPPFLAGS'
27685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27688
27689
27690
27691
27692 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
27693
27694 ac_test_CXXFLAGS="${CXXFLAGS+set}"
27695 ac_save_CXXFLAGS="$CXXFLAGS"
27696 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
27697
27698 echo "$as_me:$LINENO: checking for sin in -lm" >&5
27699 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
27700 if test "${ac_cv_lib_m_sin+set}" = set; then
27701 echo $ECHO_N "(cached) $ECHO_C" >&6
27702 else
27703 ac_check_lib_save_LIBS=$LIBS
27704 LIBS="-lm $LIBS"
27705 if test x$gcc_no_link = xyes; then
27706 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27707 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27708 { (exit 1); exit 1; }; }
27709 fi
27710 cat >conftest.$ac_ext <<_ACEOF
27711 #line $LINENO "configure"
27712 /* confdefs.h. */
27713 _ACEOF
27714 cat confdefs.h >>conftest.$ac_ext
27715 cat >>conftest.$ac_ext <<_ACEOF
27716 /* end confdefs.h. */
27717
27718 /* Override any gcc2 internal prototype to avoid an error. */
27719 #ifdef __cplusplus
27720 extern "C"
27721 #endif
27722 /* We use char because int might match the return type of a gcc2
27723 builtin and then its argument prototype would still apply. */
27724 char sin ();
27725 int
27726 main ()
27727 {
27728 sin ();
27729 ;
27730 return 0;
27731 }
27732 _ACEOF
27733 rm -f conftest.$ac_objext conftest$ac_exeext
27734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27735 (eval $ac_link) 2>&5
27736 ac_status=$?
27737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738 (exit $ac_status); } &&
27739 { ac_try='test -s conftest$ac_exeext'
27740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27741 (eval $ac_try) 2>&5
27742 ac_status=$?
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); }; }; then
27745 ac_cv_lib_m_sin=yes
27746 else
27747 echo "$as_me: failed program was:" >&5
27748 sed 's/^/| /' conftest.$ac_ext >&5
27749
27750 ac_cv_lib_m_sin=no
27751 fi
27752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27753 LIBS=$ac_check_lib_save_LIBS
27754 fi
27755 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27756 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
27757 if test $ac_cv_lib_m_sin = yes; then
27758 libm="-lm"
27759 fi
27760
27761 ac_save_LIBS="$LIBS"
27762 LIBS="$LIBS $libm"
27763
27764
27765
27766 echo "$as_me:$LINENO: checking for isinf declaration" >&5
27767 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
27768 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
27769 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
27770 echo $ECHO_N "(cached) $ECHO_C" >&6
27771 else
27772
27773
27774
27775 ac_ext=cc
27776 ac_cpp='$CXXCPP $CPPFLAGS'
27777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27780
27781 cat >conftest.$ac_ext <<_ACEOF
27782 #line $LINENO "configure"
27783 /* confdefs.h. */
27784 _ACEOF
27785 cat confdefs.h >>conftest.$ac_ext
27786 cat >>conftest.$ac_ext <<_ACEOF
27787 /* end confdefs.h. */
27788 #include <math.h>
27789 #ifdef HAVE_IEEEFP_H
27790 #include <ieeefp.h>
27791 #endif
27792
27793 int
27794 main ()
27795 {
27796 isinf(0);
27797 ;
27798 return 0;
27799 }
27800 _ACEOF
27801 rm -f conftest.$ac_objext
27802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27803 (eval $ac_compile) 2>&5
27804 ac_status=$?
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } &&
27807 { ac_try='test -s conftest.$ac_objext'
27808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809 (eval $ac_try) 2>&5
27810 ac_status=$?
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); }; }; then
27813 glibcxx_cv_func_isinf_use=yes
27814 else
27815 echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27817
27818 glibcxx_cv_func_isinf_use=no
27819 fi
27820 rm -f conftest.$ac_objext conftest.$ac_ext
27821 ac_ext=c
27822 ac_cpp='$CPP $CPPFLAGS'
27823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27826
27827
27828 fi
27829
27830 fi
27831 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
27832 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
27833
27834 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
27835
27836 for ac_func in isinf
27837 do
27838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27839 echo "$as_me:$LINENO: checking for $ac_func" >&5
27840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27841 if eval "test \"\${$as_ac_var+set}\" = set"; then
27842 echo $ECHO_N "(cached) $ECHO_C" >&6
27843 else
27844 if test x$gcc_no_link = xyes; then
27845 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27847 { (exit 1); exit 1; }; }
27848 fi
27849 cat >conftest.$ac_ext <<_ACEOF
27850 #line $LINENO "configure"
27851 /* confdefs.h. */
27852 _ACEOF
27853 cat confdefs.h >>conftest.$ac_ext
27854 cat >>conftest.$ac_ext <<_ACEOF
27855 /* end confdefs.h. */
27856 /* System header to define __stub macros and hopefully few prototypes,
27857 which can conflict with char $ac_func (); below.
27858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27859 <limits.h> exists even on freestanding compilers. */
27860 #ifdef __STDC__
27861 # include <limits.h>
27862 #else
27863 # include <assert.h>
27864 #endif
27865 /* Override any gcc2 internal prototype to avoid an error. */
27866 #ifdef __cplusplus
27867 extern "C"
27868 {
27869 #endif
27870 /* We use char because int might match the return type of a gcc2
27871 builtin and then its argument prototype would still apply. */
27872 char $ac_func ();
27873 /* The GNU C library defines this for functions which it implements
27874 to always fail with ENOSYS. Some functions are actually named
27875 something starting with __ and the normal name is an alias. */
27876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27877 choke me
27878 #else
27879 char (*f) () = $ac_func;
27880 #endif
27881 #ifdef __cplusplus
27882 }
27883 #endif
27884
27885 int
27886 main ()
27887 {
27888 return f != $ac_func;
27889 ;
27890 return 0;
27891 }
27892 _ACEOF
27893 rm -f conftest.$ac_objext conftest$ac_exeext
27894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27895 (eval $ac_link) 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); } &&
27899 { ac_try='test -s conftest$ac_exeext'
27900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27901 (eval $ac_try) 2>&5
27902 ac_status=$?
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; }; then
27905 eval "$as_ac_var=yes"
27906 else
27907 echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27909
27910 eval "$as_ac_var=no"
27911 fi
27912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27913 fi
27914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27916 if test `eval echo '${'$as_ac_var'}'` = yes; then
27917 cat >>confdefs.h <<_ACEOF
27918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27919 _ACEOF
27920
27921 fi
27922 done
27923
27924 else
27925
27926 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
27927 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
27928 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
27929 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
27930 echo $ECHO_N "(cached) $ECHO_C" >&6
27931 else
27932
27933
27934
27935 ac_ext=cc
27936 ac_cpp='$CXXCPP $CPPFLAGS'
27937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27940
27941 cat >conftest.$ac_ext <<_ACEOF
27942 #line $LINENO "configure"
27943 /* confdefs.h. */
27944 _ACEOF
27945 cat confdefs.h >>conftest.$ac_ext
27946 cat >>conftest.$ac_ext <<_ACEOF
27947 /* end confdefs.h. */
27948 #include <math.h>
27949 #ifdef HAVE_IEEEFP_H
27950 #include <ieeefp.h>
27951 #endif
27952
27953 int
27954 main ()
27955 {
27956 _isinf(0);
27957 ;
27958 return 0;
27959 }
27960 _ACEOF
27961 rm -f conftest.$ac_objext
27962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27963 (eval $ac_compile) 2>&5
27964 ac_status=$?
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } &&
27967 { ac_try='test -s conftest.$ac_objext'
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27970 ac_status=$?
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; }; then
27973 glibcxx_cv_func__isinf_use=yes
27974 else
27975 echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978 glibcxx_cv_func__isinf_use=no
27979 fi
27980 rm -f conftest.$ac_objext conftest.$ac_ext
27981 ac_ext=c
27982 ac_cpp='$CPP $CPPFLAGS'
27983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27986
27987
27988 fi
27989
27990 fi
27991 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
27992 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
27993
27994 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
27995
27996 for ac_func in _isinf
27997 do
27998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27999 echo "$as_me:$LINENO: checking for $ac_func" >&5
28000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28001 if eval "test \"\${$as_ac_var+set}\" = set"; then
28002 echo $ECHO_N "(cached) $ECHO_C" >&6
28003 else
28004 if test x$gcc_no_link = xyes; then
28005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28007 { (exit 1); exit 1; }; }
28008 fi
28009 cat >conftest.$ac_ext <<_ACEOF
28010 #line $LINENO "configure"
28011 /* confdefs.h. */
28012 _ACEOF
28013 cat confdefs.h >>conftest.$ac_ext
28014 cat >>conftest.$ac_ext <<_ACEOF
28015 /* end confdefs.h. */
28016 /* System header to define __stub macros and hopefully few prototypes,
28017 which can conflict with char $ac_func (); below.
28018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28019 <limits.h> exists even on freestanding compilers. */
28020 #ifdef __STDC__
28021 # include <limits.h>
28022 #else
28023 # include <assert.h>
28024 #endif
28025 /* Override any gcc2 internal prototype to avoid an error. */
28026 #ifdef __cplusplus
28027 extern "C"
28028 {
28029 #endif
28030 /* We use char because int might match the return type of a gcc2
28031 builtin and then its argument prototype would still apply. */
28032 char $ac_func ();
28033 /* The GNU C library defines this for functions which it implements
28034 to always fail with ENOSYS. Some functions are actually named
28035 something starting with __ and the normal name is an alias. */
28036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28037 choke me
28038 #else
28039 char (*f) () = $ac_func;
28040 #endif
28041 #ifdef __cplusplus
28042 }
28043 #endif
28044
28045 int
28046 main ()
28047 {
28048 return f != $ac_func;
28049 ;
28050 return 0;
28051 }
28052 _ACEOF
28053 rm -f conftest.$ac_objext conftest$ac_exeext
28054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28055 (eval $ac_link) 2>&5
28056 ac_status=$?
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); } &&
28059 { ac_try='test -s conftest$ac_exeext'
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28062 ac_status=$?
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; }; then
28065 eval "$as_ac_var=yes"
28066 else
28067 echo "$as_me: failed program was:" >&5
28068 sed 's/^/| /' conftest.$ac_ext >&5
28069
28070 eval "$as_ac_var=no"
28071 fi
28072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28073 fi
28074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28076 if test `eval echo '${'$as_ac_var'}'` = yes; then
28077 cat >>confdefs.h <<_ACEOF
28078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28079 _ACEOF
28080
28081 fi
28082 done
28083
28084 fi
28085 fi
28086
28087
28088
28089 echo "$as_me:$LINENO: checking for isnan declaration" >&5
28090 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
28091 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
28092 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
28093 echo $ECHO_N "(cached) $ECHO_C" >&6
28094 else
28095
28096
28097
28098 ac_ext=cc
28099 ac_cpp='$CXXCPP $CPPFLAGS'
28100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28103
28104 cat >conftest.$ac_ext <<_ACEOF
28105 #line $LINENO "configure"
28106 /* confdefs.h. */
28107 _ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28111 #include <math.h>
28112 #ifdef HAVE_IEEEFP_H
28113 #include <ieeefp.h>
28114 #endif
28115
28116 int
28117 main ()
28118 {
28119 isnan(0);
28120 ;
28121 return 0;
28122 }
28123 _ACEOF
28124 rm -f conftest.$ac_objext
28125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28126 (eval $ac_compile) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } &&
28130 { ac_try='test -s conftest.$ac_objext'
28131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132 (eval $ac_try) 2>&5
28133 ac_status=$?
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; }; then
28136 glibcxx_cv_func_isnan_use=yes
28137 else
28138 echo "$as_me: failed program was:" >&5
28139 sed 's/^/| /' conftest.$ac_ext >&5
28140
28141 glibcxx_cv_func_isnan_use=no
28142 fi
28143 rm -f conftest.$ac_objext conftest.$ac_ext
28144 ac_ext=c
28145 ac_cpp='$CPP $CPPFLAGS'
28146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28149
28150
28151 fi
28152
28153 fi
28154 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
28155 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
28156
28157 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
28158
28159 for ac_func in isnan
28160 do
28161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28162 echo "$as_me:$LINENO: checking for $ac_func" >&5
28163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28164 if eval "test \"\${$as_ac_var+set}\" = set"; then
28165 echo $ECHO_N "(cached) $ECHO_C" >&6
28166 else
28167 if test x$gcc_no_link = xyes; then
28168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28170 { (exit 1); exit 1; }; }
28171 fi
28172 cat >conftest.$ac_ext <<_ACEOF
28173 #line $LINENO "configure"
28174 /* confdefs.h. */
28175 _ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h. */
28179 /* System header to define __stub macros and hopefully few prototypes,
28180 which can conflict with char $ac_func (); below.
28181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28182 <limits.h> exists even on freestanding compilers. */
28183 #ifdef __STDC__
28184 # include <limits.h>
28185 #else
28186 # include <assert.h>
28187 #endif
28188 /* Override any gcc2 internal prototype to avoid an error. */
28189 #ifdef __cplusplus
28190 extern "C"
28191 {
28192 #endif
28193 /* We use char because int might match the return type of a gcc2
28194 builtin and then its argument prototype would still apply. */
28195 char $ac_func ();
28196 /* The GNU C library defines this for functions which it implements
28197 to always fail with ENOSYS. Some functions are actually named
28198 something starting with __ and the normal name is an alias. */
28199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28200 choke me
28201 #else
28202 char (*f) () = $ac_func;
28203 #endif
28204 #ifdef __cplusplus
28205 }
28206 #endif
28207
28208 int
28209 main ()
28210 {
28211 return f != $ac_func;
28212 ;
28213 return 0;
28214 }
28215 _ACEOF
28216 rm -f conftest.$ac_objext conftest$ac_exeext
28217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28218 (eval $ac_link) 2>&5
28219 ac_status=$?
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); } &&
28222 { ac_try='test -s conftest$ac_exeext'
28223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224 (eval $ac_try) 2>&5
28225 ac_status=$?
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); }; }; then
28228 eval "$as_ac_var=yes"
28229 else
28230 echo "$as_me: failed program was:" >&5
28231 sed 's/^/| /' conftest.$ac_ext >&5
28232
28233 eval "$as_ac_var=no"
28234 fi
28235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28236 fi
28237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28239 if test `eval echo '${'$as_ac_var'}'` = yes; then
28240 cat >>confdefs.h <<_ACEOF
28241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28242 _ACEOF
28243
28244 fi
28245 done
28246
28247 else
28248
28249 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
28250 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
28251 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
28252 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
28253 echo $ECHO_N "(cached) $ECHO_C" >&6
28254 else
28255
28256
28257
28258 ac_ext=cc
28259 ac_cpp='$CXXCPP $CPPFLAGS'
28260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28263
28264 cat >conftest.$ac_ext <<_ACEOF
28265 #line $LINENO "configure"
28266 /* confdefs.h. */
28267 _ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h. */
28271 #include <math.h>
28272 #ifdef HAVE_IEEEFP_H
28273 #include <ieeefp.h>
28274 #endif
28275
28276 int
28277 main ()
28278 {
28279 _isnan(0);
28280 ;
28281 return 0;
28282 }
28283 _ACEOF
28284 rm -f conftest.$ac_objext
28285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28286 (eval $ac_compile) 2>&5
28287 ac_status=$?
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); } &&
28290 { ac_try='test -s conftest.$ac_objext'
28291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28292 (eval $ac_try) 2>&5
28293 ac_status=$?
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; }; then
28296 glibcxx_cv_func__isnan_use=yes
28297 else
28298 echo "$as_me: failed program was:" >&5
28299 sed 's/^/| /' conftest.$ac_ext >&5
28300
28301 glibcxx_cv_func__isnan_use=no
28302 fi
28303 rm -f conftest.$ac_objext conftest.$ac_ext
28304 ac_ext=c
28305 ac_cpp='$CPP $CPPFLAGS'
28306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28309
28310
28311 fi
28312
28313 fi
28314 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
28315 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
28316
28317 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
28318
28319 for ac_func in _isnan
28320 do
28321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28322 echo "$as_me:$LINENO: checking for $ac_func" >&5
28323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28324 if eval "test \"\${$as_ac_var+set}\" = set"; then
28325 echo $ECHO_N "(cached) $ECHO_C" >&6
28326 else
28327 if test x$gcc_no_link = xyes; then
28328 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28330 { (exit 1); exit 1; }; }
28331 fi
28332 cat >conftest.$ac_ext <<_ACEOF
28333 #line $LINENO "configure"
28334 /* confdefs.h. */
28335 _ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h. */
28339 /* System header to define __stub macros and hopefully few prototypes,
28340 which can conflict with char $ac_func (); below.
28341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28342 <limits.h> exists even on freestanding compilers. */
28343 #ifdef __STDC__
28344 # include <limits.h>
28345 #else
28346 # include <assert.h>
28347 #endif
28348 /* Override any gcc2 internal prototype to avoid an error. */
28349 #ifdef __cplusplus
28350 extern "C"
28351 {
28352 #endif
28353 /* We use char because int might match the return type of a gcc2
28354 builtin and then its argument prototype would still apply. */
28355 char $ac_func ();
28356 /* The GNU C library defines this for functions which it implements
28357 to always fail with ENOSYS. Some functions are actually named
28358 something starting with __ and the normal name is an alias. */
28359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28360 choke me
28361 #else
28362 char (*f) () = $ac_func;
28363 #endif
28364 #ifdef __cplusplus
28365 }
28366 #endif
28367
28368 int
28369 main ()
28370 {
28371 return f != $ac_func;
28372 ;
28373 return 0;
28374 }
28375 _ACEOF
28376 rm -f conftest.$ac_objext conftest$ac_exeext
28377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28378 (eval $ac_link) 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); } &&
28382 { ac_try='test -s conftest$ac_exeext'
28383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28384 (eval $ac_try) 2>&5
28385 ac_status=$?
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); }; }; then
28388 eval "$as_ac_var=yes"
28389 else
28390 echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28392
28393 eval "$as_ac_var=no"
28394 fi
28395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28396 fi
28397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28399 if test `eval echo '${'$as_ac_var'}'` = yes; then
28400 cat >>confdefs.h <<_ACEOF
28401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28402 _ACEOF
28403
28404 fi
28405 done
28406
28407 fi
28408 fi
28409
28410
28411
28412 echo "$as_me:$LINENO: checking for finite declaration" >&5
28413 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
28414 if test x${glibcxx_cv_func_finite_use+set} != xset; then
28415 if test "${glibcxx_cv_func_finite_use+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28417 else
28418
28419
28420
28421 ac_ext=cc
28422 ac_cpp='$CXXCPP $CPPFLAGS'
28423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28426
28427 cat >conftest.$ac_ext <<_ACEOF
28428 #line $LINENO "configure"
28429 /* confdefs.h. */
28430 _ACEOF
28431 cat confdefs.h >>conftest.$ac_ext
28432 cat >>conftest.$ac_ext <<_ACEOF
28433 /* end confdefs.h. */
28434 #include <math.h>
28435 #ifdef HAVE_IEEEFP_H
28436 #include <ieeefp.h>
28437 #endif
28438
28439 int
28440 main ()
28441 {
28442 finite(0);
28443 ;
28444 return 0;
28445 }
28446 _ACEOF
28447 rm -f conftest.$ac_objext
28448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28449 (eval $ac_compile) 2>&5
28450 ac_status=$?
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); } &&
28453 { ac_try='test -s conftest.$ac_objext'
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; }; then
28459 glibcxx_cv_func_finite_use=yes
28460 else
28461 echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28463
28464 glibcxx_cv_func_finite_use=no
28465 fi
28466 rm -f conftest.$ac_objext conftest.$ac_ext
28467 ac_ext=c
28468 ac_cpp='$CPP $CPPFLAGS'
28469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28472
28473
28474 fi
28475
28476 fi
28477 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
28478 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
28479
28480 if test x$glibcxx_cv_func_finite_use = x"yes"; then
28481
28482 for ac_func in finite
28483 do
28484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28485 echo "$as_me:$LINENO: checking for $ac_func" >&5
28486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28487 if eval "test \"\${$as_ac_var+set}\" = set"; then
28488 echo $ECHO_N "(cached) $ECHO_C" >&6
28489 else
28490 if test x$gcc_no_link = xyes; then
28491 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28492 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28493 { (exit 1); exit 1; }; }
28494 fi
28495 cat >conftest.$ac_ext <<_ACEOF
28496 #line $LINENO "configure"
28497 /* confdefs.h. */
28498 _ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h. */
28502 /* System header to define __stub macros and hopefully few prototypes,
28503 which can conflict with char $ac_func (); below.
28504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28505 <limits.h> exists even on freestanding compilers. */
28506 #ifdef __STDC__
28507 # include <limits.h>
28508 #else
28509 # include <assert.h>
28510 #endif
28511 /* Override any gcc2 internal prototype to avoid an error. */
28512 #ifdef __cplusplus
28513 extern "C"
28514 {
28515 #endif
28516 /* We use char because int might match the return type of a gcc2
28517 builtin and then its argument prototype would still apply. */
28518 char $ac_func ();
28519 /* The GNU C library defines this for functions which it implements
28520 to always fail with ENOSYS. Some functions are actually named
28521 something starting with __ and the normal name is an alias. */
28522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28523 choke me
28524 #else
28525 char (*f) () = $ac_func;
28526 #endif
28527 #ifdef __cplusplus
28528 }
28529 #endif
28530
28531 int
28532 main ()
28533 {
28534 return f != $ac_func;
28535 ;
28536 return 0;
28537 }
28538 _ACEOF
28539 rm -f conftest.$ac_objext conftest$ac_exeext
28540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28541 (eval $ac_link) 2>&5
28542 ac_status=$?
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); } &&
28545 { ac_try='test -s conftest$ac_exeext'
28546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547 (eval $ac_try) 2>&5
28548 ac_status=$?
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; }; then
28551 eval "$as_ac_var=yes"
28552 else
28553 echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28555
28556 eval "$as_ac_var=no"
28557 fi
28558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28559 fi
28560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28562 if test `eval echo '${'$as_ac_var'}'` = yes; then
28563 cat >>confdefs.h <<_ACEOF
28564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28565 _ACEOF
28566
28567 fi
28568 done
28569
28570 else
28571
28572 echo "$as_me:$LINENO: checking for _finite declaration" >&5
28573 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
28574 if test x${glibcxx_cv_func__finite_use+set} != xset; then
28575 if test "${glibcxx_cv_func__finite_use+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28577 else
28578
28579
28580
28581 ac_ext=cc
28582 ac_cpp='$CXXCPP $CPPFLAGS'
28583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28586
28587 cat >conftest.$ac_ext <<_ACEOF
28588 #line $LINENO "configure"
28589 /* confdefs.h. */
28590 _ACEOF
28591 cat confdefs.h >>conftest.$ac_ext
28592 cat >>conftest.$ac_ext <<_ACEOF
28593 /* end confdefs.h. */
28594 #include <math.h>
28595 #ifdef HAVE_IEEEFP_H
28596 #include <ieeefp.h>
28597 #endif
28598
28599 int
28600 main ()
28601 {
28602 _finite(0);
28603 ;
28604 return 0;
28605 }
28606 _ACEOF
28607 rm -f conftest.$ac_objext
28608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28609 (eval $ac_compile) 2>&5
28610 ac_status=$?
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } &&
28613 { ac_try='test -s conftest.$ac_objext'
28614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615 (eval $ac_try) 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 glibcxx_cv_func__finite_use=yes
28620 else
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28623
28624 glibcxx_cv_func__finite_use=no
28625 fi
28626 rm -f conftest.$ac_objext conftest.$ac_ext
28627 ac_ext=c
28628 ac_cpp='$CPP $CPPFLAGS'
28629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28632
28633
28634 fi
28635
28636 fi
28637 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
28638 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
28639
28640 if test x$glibcxx_cv_func__finite_use = x"yes"; then
28641
28642 for ac_func in _finite
28643 do
28644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28645 echo "$as_me:$LINENO: checking for $ac_func" >&5
28646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28647 if eval "test \"\${$as_ac_var+set}\" = set"; then
28648 echo $ECHO_N "(cached) $ECHO_C" >&6
28649 else
28650 if test x$gcc_no_link = xyes; then
28651 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28653 { (exit 1); exit 1; }; }
28654 fi
28655 cat >conftest.$ac_ext <<_ACEOF
28656 #line $LINENO "configure"
28657 /* confdefs.h. */
28658 _ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h. */
28662 /* System header to define __stub macros and hopefully few prototypes,
28663 which can conflict with char $ac_func (); below.
28664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28665 <limits.h> exists even on freestanding compilers. */
28666 #ifdef __STDC__
28667 # include <limits.h>
28668 #else
28669 # include <assert.h>
28670 #endif
28671 /* Override any gcc2 internal prototype to avoid an error. */
28672 #ifdef __cplusplus
28673 extern "C"
28674 {
28675 #endif
28676 /* We use char because int might match the return type of a gcc2
28677 builtin and then its argument prototype would still apply. */
28678 char $ac_func ();
28679 /* The GNU C library defines this for functions which it implements
28680 to always fail with ENOSYS. Some functions are actually named
28681 something starting with __ and the normal name is an alias. */
28682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28683 choke me
28684 #else
28685 char (*f) () = $ac_func;
28686 #endif
28687 #ifdef __cplusplus
28688 }
28689 #endif
28690
28691 int
28692 main ()
28693 {
28694 return f != $ac_func;
28695 ;
28696 return 0;
28697 }
28698 _ACEOF
28699 rm -f conftest.$ac_objext conftest$ac_exeext
28700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28701 (eval $ac_link) 2>&5
28702 ac_status=$?
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); } &&
28705 { ac_try='test -s conftest$ac_exeext'
28706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707 (eval $ac_try) 2>&5
28708 ac_status=$?
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; }; then
28711 eval "$as_ac_var=yes"
28712 else
28713 echo "$as_me: failed program was:" >&5
28714 sed 's/^/| /' conftest.$ac_ext >&5
28715
28716 eval "$as_ac_var=no"
28717 fi
28718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28719 fi
28720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28722 if test `eval echo '${'$as_ac_var'}'` = yes; then
28723 cat >>confdefs.h <<_ACEOF
28724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28725 _ACEOF
28726
28727 fi
28728 done
28729
28730 fi
28731 fi
28732
28733
28734
28735 echo "$as_me:$LINENO: checking for copysign declaration" >&5
28736 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
28737 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
28738 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
28739 echo $ECHO_N "(cached) $ECHO_C" >&6
28740 else
28741
28742
28743
28744 ac_ext=cc
28745 ac_cpp='$CXXCPP $CPPFLAGS'
28746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28749
28750 cat >conftest.$ac_ext <<_ACEOF
28751 #line $LINENO "configure"
28752 /* confdefs.h. */
28753 _ACEOF
28754 cat confdefs.h >>conftest.$ac_ext
28755 cat >>conftest.$ac_ext <<_ACEOF
28756 /* end confdefs.h. */
28757 #include <math.h>
28758 int
28759 main ()
28760 {
28761 copysign(0, 0);
28762 ;
28763 return 0;
28764 }
28765 _ACEOF
28766 rm -f conftest.$ac_objext
28767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28768 (eval $ac_compile) 2>&5
28769 ac_status=$?
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } &&
28772 { ac_try='test -s conftest.$ac_objext'
28773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774 (eval $ac_try) 2>&5
28775 ac_status=$?
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); }; }; then
28778 glibcxx_cv_func_copysign_use=yes
28779 else
28780 echo "$as_me: failed program was:" >&5
28781 sed 's/^/| /' conftest.$ac_ext >&5
28782
28783 glibcxx_cv_func_copysign_use=no
28784 fi
28785 rm -f conftest.$ac_objext conftest.$ac_ext
28786 ac_ext=c
28787 ac_cpp='$CPP $CPPFLAGS'
28788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28791
28792
28793 fi
28794
28795 fi
28796 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
28797 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
28798
28799 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
28800
28801 for ac_func in copysign
28802 do
28803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28804 echo "$as_me:$LINENO: checking for $ac_func" >&5
28805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28806 if eval "test \"\${$as_ac_var+set}\" = set"; then
28807 echo $ECHO_N "(cached) $ECHO_C" >&6
28808 else
28809 if test x$gcc_no_link = xyes; then
28810 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28812 { (exit 1); exit 1; }; }
28813 fi
28814 cat >conftest.$ac_ext <<_ACEOF
28815 #line $LINENO "configure"
28816 /* confdefs.h. */
28817 _ACEOF
28818 cat confdefs.h >>conftest.$ac_ext
28819 cat >>conftest.$ac_ext <<_ACEOF
28820 /* end confdefs.h. */
28821 /* System header to define __stub macros and hopefully few prototypes,
28822 which can conflict with char $ac_func (); below.
28823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28824 <limits.h> exists even on freestanding compilers. */
28825 #ifdef __STDC__
28826 # include <limits.h>
28827 #else
28828 # include <assert.h>
28829 #endif
28830 /* Override any gcc2 internal prototype to avoid an error. */
28831 #ifdef __cplusplus
28832 extern "C"
28833 {
28834 #endif
28835 /* We use char because int might match the return type of a gcc2
28836 builtin and then its argument prototype would still apply. */
28837 char $ac_func ();
28838 /* The GNU C library defines this for functions which it implements
28839 to always fail with ENOSYS. Some functions are actually named
28840 something starting with __ and the normal name is an alias. */
28841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28842 choke me
28843 #else
28844 char (*f) () = $ac_func;
28845 #endif
28846 #ifdef __cplusplus
28847 }
28848 #endif
28849
28850 int
28851 main ()
28852 {
28853 return f != $ac_func;
28854 ;
28855 return 0;
28856 }
28857 _ACEOF
28858 rm -f conftest.$ac_objext conftest$ac_exeext
28859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28860 (eval $ac_link) 2>&5
28861 ac_status=$?
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); } &&
28864 { ac_try='test -s conftest$ac_exeext'
28865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28867 ac_status=$?
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 eval "$as_ac_var=yes"
28871 else
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28874
28875 eval "$as_ac_var=no"
28876 fi
28877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28878 fi
28879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28881 if test `eval echo '${'$as_ac_var'}'` = yes; then
28882 cat >>confdefs.h <<_ACEOF
28883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28884 _ACEOF
28885
28886 fi
28887 done
28888
28889 else
28890
28891 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
28892 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
28893 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
28894 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
28895 echo $ECHO_N "(cached) $ECHO_C" >&6
28896 else
28897
28898
28899
28900 ac_ext=cc
28901 ac_cpp='$CXXCPP $CPPFLAGS'
28902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28905
28906 cat >conftest.$ac_ext <<_ACEOF
28907 #line $LINENO "configure"
28908 /* confdefs.h. */
28909 _ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h. */
28913 #include <math.h>
28914 int
28915 main ()
28916 {
28917 _copysign(0, 0);
28918 ;
28919 return 0;
28920 }
28921 _ACEOF
28922 rm -f conftest.$ac_objext
28923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28924 (eval $ac_compile) 2>&5
28925 ac_status=$?
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); } &&
28928 { ac_try='test -s conftest.$ac_objext'
28929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28930 (eval $ac_try) 2>&5
28931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); }; }; then
28934 glibcxx_cv_func__copysign_use=yes
28935 else
28936 echo "$as_me: failed program was:" >&5
28937 sed 's/^/| /' conftest.$ac_ext >&5
28938
28939 glibcxx_cv_func__copysign_use=no
28940 fi
28941 rm -f conftest.$ac_objext conftest.$ac_ext
28942 ac_ext=c
28943 ac_cpp='$CPP $CPPFLAGS'
28944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28947
28948
28949 fi
28950
28951 fi
28952 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
28953 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
28954
28955 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
28956
28957 for ac_func in _copysign
28958 do
28959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28960 echo "$as_me:$LINENO: checking for $ac_func" >&5
28961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28962 if eval "test \"\${$as_ac_var+set}\" = set"; then
28963 echo $ECHO_N "(cached) $ECHO_C" >&6
28964 else
28965 if test x$gcc_no_link = xyes; then
28966 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28968 { (exit 1); exit 1; }; }
28969 fi
28970 cat >conftest.$ac_ext <<_ACEOF
28971 #line $LINENO "configure"
28972 /* confdefs.h. */
28973 _ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h. */
28977 /* System header to define __stub macros and hopefully few prototypes,
28978 which can conflict with char $ac_func (); below.
28979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28980 <limits.h> exists even on freestanding compilers. */
28981 #ifdef __STDC__
28982 # include <limits.h>
28983 #else
28984 # include <assert.h>
28985 #endif
28986 /* Override any gcc2 internal prototype to avoid an error. */
28987 #ifdef __cplusplus
28988 extern "C"
28989 {
28990 #endif
28991 /* We use char because int might match the return type of a gcc2
28992 builtin and then its argument prototype would still apply. */
28993 char $ac_func ();
28994 /* The GNU C library defines this for functions which it implements
28995 to always fail with ENOSYS. Some functions are actually named
28996 something starting with __ and the normal name is an alias. */
28997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28998 choke me
28999 #else
29000 char (*f) () = $ac_func;
29001 #endif
29002 #ifdef __cplusplus
29003 }
29004 #endif
29005
29006 int
29007 main ()
29008 {
29009 return f != $ac_func;
29010 ;
29011 return 0;
29012 }
29013 _ACEOF
29014 rm -f conftest.$ac_objext conftest$ac_exeext
29015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29016 (eval $ac_link) 2>&5
29017 ac_status=$?
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } &&
29020 { ac_try='test -s conftest$ac_exeext'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29026 eval "$as_ac_var=yes"
29027 else
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29030
29031 eval "$as_ac_var=no"
29032 fi
29033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29034 fi
29035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29037 if test `eval echo '${'$as_ac_var'}'` = yes; then
29038 cat >>confdefs.h <<_ACEOF
29039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29040 _ACEOF
29041
29042 fi
29043 done
29044
29045 fi
29046 fi
29047
29048
29049
29050 echo "$as_me:$LINENO: checking for sincos declaration" >&5
29051 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
29052 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
29053 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
29054 echo $ECHO_N "(cached) $ECHO_C" >&6
29055 else
29056
29057
29058
29059 ac_ext=cc
29060 ac_cpp='$CXXCPP $CPPFLAGS'
29061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29064
29065 cat >conftest.$ac_ext <<_ACEOF
29066 #line $LINENO "configure"
29067 /* confdefs.h. */
29068 _ACEOF
29069 cat confdefs.h >>conftest.$ac_ext
29070 cat >>conftest.$ac_ext <<_ACEOF
29071 /* end confdefs.h. */
29072 #include <math.h>
29073 int
29074 main ()
29075 {
29076 sincos(0, 0, 0);
29077 ;
29078 return 0;
29079 }
29080 _ACEOF
29081 rm -f conftest.$ac_objext
29082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29083 (eval $ac_compile) 2>&5
29084 ac_status=$?
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); } &&
29087 { ac_try='test -s conftest.$ac_objext'
29088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089 (eval $ac_try) 2>&5
29090 ac_status=$?
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; }; then
29093 glibcxx_cv_func_sincos_use=yes
29094 else
29095 echo "$as_me: failed program was:" >&5
29096 sed 's/^/| /' conftest.$ac_ext >&5
29097
29098 glibcxx_cv_func_sincos_use=no
29099 fi
29100 rm -f conftest.$ac_objext conftest.$ac_ext
29101 ac_ext=c
29102 ac_cpp='$CPP $CPPFLAGS'
29103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29106
29107
29108 fi
29109
29110 fi
29111 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
29112 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
29113
29114 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
29115
29116 for ac_func in sincos
29117 do
29118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29119 echo "$as_me:$LINENO: checking for $ac_func" >&5
29120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29121 if eval "test \"\${$as_ac_var+set}\" = set"; then
29122 echo $ECHO_N "(cached) $ECHO_C" >&6
29123 else
29124 if test x$gcc_no_link = xyes; then
29125 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29126 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29127 { (exit 1); exit 1; }; }
29128 fi
29129 cat >conftest.$ac_ext <<_ACEOF
29130 #line $LINENO "configure"
29131 /* confdefs.h. */
29132 _ACEOF
29133 cat confdefs.h >>conftest.$ac_ext
29134 cat >>conftest.$ac_ext <<_ACEOF
29135 /* end confdefs.h. */
29136 /* System header to define __stub macros and hopefully few prototypes,
29137 which can conflict with char $ac_func (); below.
29138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29139 <limits.h> exists even on freestanding compilers. */
29140 #ifdef __STDC__
29141 # include <limits.h>
29142 #else
29143 # include <assert.h>
29144 #endif
29145 /* Override any gcc2 internal prototype to avoid an error. */
29146 #ifdef __cplusplus
29147 extern "C"
29148 {
29149 #endif
29150 /* We use char because int might match the return type of a gcc2
29151 builtin and then its argument prototype would still apply. */
29152 char $ac_func ();
29153 /* The GNU C library defines this for functions which it implements
29154 to always fail with ENOSYS. Some functions are actually named
29155 something starting with __ and the normal name is an alias. */
29156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29157 choke me
29158 #else
29159 char (*f) () = $ac_func;
29160 #endif
29161 #ifdef __cplusplus
29162 }
29163 #endif
29164
29165 int
29166 main ()
29167 {
29168 return f != $ac_func;
29169 ;
29170 return 0;
29171 }
29172 _ACEOF
29173 rm -f conftest.$ac_objext conftest$ac_exeext
29174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29175 (eval $ac_link) 2>&5
29176 ac_status=$?
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); } &&
29179 { ac_try='test -s conftest$ac_exeext'
29180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181 (eval $ac_try) 2>&5
29182 ac_status=$?
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; }; then
29185 eval "$as_ac_var=yes"
29186 else
29187 echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29189
29190 eval "$as_ac_var=no"
29191 fi
29192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29193 fi
29194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29196 if test `eval echo '${'$as_ac_var'}'` = yes; then
29197 cat >>confdefs.h <<_ACEOF
29198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29199 _ACEOF
29200
29201 fi
29202 done
29203
29204 else
29205
29206 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
29207 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
29208 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
29209 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
29210 echo $ECHO_N "(cached) $ECHO_C" >&6
29211 else
29212
29213
29214
29215 ac_ext=cc
29216 ac_cpp='$CXXCPP $CPPFLAGS'
29217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29220
29221 cat >conftest.$ac_ext <<_ACEOF
29222 #line $LINENO "configure"
29223 /* confdefs.h. */
29224 _ACEOF
29225 cat confdefs.h >>conftest.$ac_ext
29226 cat >>conftest.$ac_ext <<_ACEOF
29227 /* end confdefs.h. */
29228 #include <math.h>
29229 int
29230 main ()
29231 {
29232 _sincos(0, 0, 0);
29233 ;
29234 return 0;
29235 }
29236 _ACEOF
29237 rm -f conftest.$ac_objext
29238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29239 (eval $ac_compile) 2>&5
29240 ac_status=$?
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); } &&
29243 { ac_try='test -s conftest.$ac_objext'
29244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29245 (eval $ac_try) 2>&5
29246 ac_status=$?
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); }; }; then
29249 glibcxx_cv_func__sincos_use=yes
29250 else
29251 echo "$as_me: failed program was:" >&5
29252 sed 's/^/| /' conftest.$ac_ext >&5
29253
29254 glibcxx_cv_func__sincos_use=no
29255 fi
29256 rm -f conftest.$ac_objext conftest.$ac_ext
29257 ac_ext=c
29258 ac_cpp='$CPP $CPPFLAGS'
29259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29262
29263
29264 fi
29265
29266 fi
29267 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
29268 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
29269
29270 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
29271
29272 for ac_func in _sincos
29273 do
29274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29275 echo "$as_me:$LINENO: checking for $ac_func" >&5
29276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29277 if eval "test \"\${$as_ac_var+set}\" = set"; then
29278 echo $ECHO_N "(cached) $ECHO_C" >&6
29279 else
29280 if test x$gcc_no_link = xyes; then
29281 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29282 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29283 { (exit 1); exit 1; }; }
29284 fi
29285 cat >conftest.$ac_ext <<_ACEOF
29286 #line $LINENO "configure"
29287 /* confdefs.h. */
29288 _ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h. */
29292 /* System header to define __stub macros and hopefully few prototypes,
29293 which can conflict with char $ac_func (); below.
29294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29295 <limits.h> exists even on freestanding compilers. */
29296 #ifdef __STDC__
29297 # include <limits.h>
29298 #else
29299 # include <assert.h>
29300 #endif
29301 /* Override any gcc2 internal prototype to avoid an error. */
29302 #ifdef __cplusplus
29303 extern "C"
29304 {
29305 #endif
29306 /* We use char because int might match the return type of a gcc2
29307 builtin and then its argument prototype would still apply. */
29308 char $ac_func ();
29309 /* The GNU C library defines this for functions which it implements
29310 to always fail with ENOSYS. Some functions are actually named
29311 something starting with __ and the normal name is an alias. */
29312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29313 choke me
29314 #else
29315 char (*f) () = $ac_func;
29316 #endif
29317 #ifdef __cplusplus
29318 }
29319 #endif
29320
29321 int
29322 main ()
29323 {
29324 return f != $ac_func;
29325 ;
29326 return 0;
29327 }
29328 _ACEOF
29329 rm -f conftest.$ac_objext conftest$ac_exeext
29330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29331 (eval $ac_link) 2>&5
29332 ac_status=$?
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); } &&
29335 { ac_try='test -s conftest$ac_exeext'
29336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29337 (eval $ac_try) 2>&5
29338 ac_status=$?
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); }; }; then
29341 eval "$as_ac_var=yes"
29342 else
29343 echo "$as_me: failed program was:" >&5
29344 sed 's/^/| /' conftest.$ac_ext >&5
29345
29346 eval "$as_ac_var=no"
29347 fi
29348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29349 fi
29350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29352 if test `eval echo '${'$as_ac_var'}'` = yes; then
29353 cat >>confdefs.h <<_ACEOF
29354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29355 _ACEOF
29356
29357 fi
29358 done
29359
29360 fi
29361 fi
29362
29363
29364
29365 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
29366 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
29367 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
29368 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 else
29371
29372
29373
29374 ac_ext=cc
29375 ac_cpp='$CXXCPP $CPPFLAGS'
29376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29379
29380 cat >conftest.$ac_ext <<_ACEOF
29381 #line $LINENO "configure"
29382 /* confdefs.h. */
29383 _ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h. */
29387 #include <math.h>
29388 #ifdef HAVE_IEEEFP_H
29389 #include <ieeefp.h>
29390 #endif
29391
29392 int
29393 main ()
29394 {
29395 fpclass(0);
29396 ;
29397 return 0;
29398 }
29399 _ACEOF
29400 rm -f conftest.$ac_objext
29401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29402 (eval $ac_compile) 2>&5
29403 ac_status=$?
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); } &&
29406 { ac_try='test -s conftest.$ac_objext'
29407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408 (eval $ac_try) 2>&5
29409 ac_status=$?
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; }; then
29412 glibcxx_cv_func_fpclass_use=yes
29413 else
29414 echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29416
29417 glibcxx_cv_func_fpclass_use=no
29418 fi
29419 rm -f conftest.$ac_objext conftest.$ac_ext
29420 ac_ext=c
29421 ac_cpp='$CPP $CPPFLAGS'
29422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29425
29426
29427 fi
29428
29429 fi
29430 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
29431 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
29432
29433 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
29434
29435 for ac_func in fpclass
29436 do
29437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29438 echo "$as_me:$LINENO: checking for $ac_func" >&5
29439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29440 if eval "test \"\${$as_ac_var+set}\" = set"; then
29441 echo $ECHO_N "(cached) $ECHO_C" >&6
29442 else
29443 if test x$gcc_no_link = xyes; then
29444 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29445 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29446 { (exit 1); exit 1; }; }
29447 fi
29448 cat >conftest.$ac_ext <<_ACEOF
29449 #line $LINENO "configure"
29450 /* confdefs.h. */
29451 _ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h. */
29455 /* System header to define __stub macros and hopefully few prototypes,
29456 which can conflict with char $ac_func (); below.
29457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29458 <limits.h> exists even on freestanding compilers. */
29459 #ifdef __STDC__
29460 # include <limits.h>
29461 #else
29462 # include <assert.h>
29463 #endif
29464 /* Override any gcc2 internal prototype to avoid an error. */
29465 #ifdef __cplusplus
29466 extern "C"
29467 {
29468 #endif
29469 /* We use char because int might match the return type of a gcc2
29470 builtin and then its argument prototype would still apply. */
29471 char $ac_func ();
29472 /* The GNU C library defines this for functions which it implements
29473 to always fail with ENOSYS. Some functions are actually named
29474 something starting with __ and the normal name is an alias. */
29475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29476 choke me
29477 #else
29478 char (*f) () = $ac_func;
29479 #endif
29480 #ifdef __cplusplus
29481 }
29482 #endif
29483
29484 int
29485 main ()
29486 {
29487 return f != $ac_func;
29488 ;
29489 return 0;
29490 }
29491 _ACEOF
29492 rm -f conftest.$ac_objext conftest$ac_exeext
29493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29494 (eval $ac_link) 2>&5
29495 ac_status=$?
29496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497 (exit $ac_status); } &&
29498 { ac_try='test -s conftest$ac_exeext'
29499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500 (eval $ac_try) 2>&5
29501 ac_status=$?
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; }; then
29504 eval "$as_ac_var=yes"
29505 else
29506 echo "$as_me: failed program was:" >&5
29507 sed 's/^/| /' conftest.$ac_ext >&5
29508
29509 eval "$as_ac_var=no"
29510 fi
29511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29512 fi
29513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29515 if test `eval echo '${'$as_ac_var'}'` = yes; then
29516 cat >>confdefs.h <<_ACEOF
29517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29518 _ACEOF
29519
29520 fi
29521 done
29522
29523 else
29524
29525 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
29526 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
29527 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
29528 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
29529 echo $ECHO_N "(cached) $ECHO_C" >&6
29530 else
29531
29532
29533
29534 ac_ext=cc
29535 ac_cpp='$CXXCPP $CPPFLAGS'
29536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29539
29540 cat >conftest.$ac_ext <<_ACEOF
29541 #line $LINENO "configure"
29542 /* confdefs.h. */
29543 _ACEOF
29544 cat confdefs.h >>conftest.$ac_ext
29545 cat >>conftest.$ac_ext <<_ACEOF
29546 /* end confdefs.h. */
29547 #include <math.h>
29548 #ifdef HAVE_IEEEFP_H
29549 #include <ieeefp.h>
29550 #endif
29551
29552 int
29553 main ()
29554 {
29555 _fpclass(0);
29556 ;
29557 return 0;
29558 }
29559 _ACEOF
29560 rm -f conftest.$ac_objext
29561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29562 (eval $ac_compile) 2>&5
29563 ac_status=$?
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); } &&
29566 { ac_try='test -s conftest.$ac_objext'
29567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29568 (eval $ac_try) 2>&5
29569 ac_status=$?
29570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571 (exit $ac_status); }; }; then
29572 glibcxx_cv_func__fpclass_use=yes
29573 else
29574 echo "$as_me: failed program was:" >&5
29575 sed 's/^/| /' conftest.$ac_ext >&5
29576
29577 glibcxx_cv_func__fpclass_use=no
29578 fi
29579 rm -f conftest.$ac_objext conftest.$ac_ext
29580 ac_ext=c
29581 ac_cpp='$CPP $CPPFLAGS'
29582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29585
29586
29587 fi
29588
29589 fi
29590 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
29591 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
29592
29593 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
29594
29595 for ac_func in _fpclass
29596 do
29597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29598 echo "$as_me:$LINENO: checking for $ac_func" >&5
29599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29600 if eval "test \"\${$as_ac_var+set}\" = set"; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29602 else
29603 if test x$gcc_no_link = xyes; then
29604 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29605 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29606 { (exit 1); exit 1; }; }
29607 fi
29608 cat >conftest.$ac_ext <<_ACEOF
29609 #line $LINENO "configure"
29610 /* confdefs.h. */
29611 _ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h. */
29615 /* System header to define __stub macros and hopefully few prototypes,
29616 which can conflict with char $ac_func (); below.
29617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29618 <limits.h> exists even on freestanding compilers. */
29619 #ifdef __STDC__
29620 # include <limits.h>
29621 #else
29622 # include <assert.h>
29623 #endif
29624 /* Override any gcc2 internal prototype to avoid an error. */
29625 #ifdef __cplusplus
29626 extern "C"
29627 {
29628 #endif
29629 /* We use char because int might match the return type of a gcc2
29630 builtin and then its argument prototype would still apply. */
29631 char $ac_func ();
29632 /* The GNU C library defines this for functions which it implements
29633 to always fail with ENOSYS. Some functions are actually named
29634 something starting with __ and the normal name is an alias. */
29635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29636 choke me
29637 #else
29638 char (*f) () = $ac_func;
29639 #endif
29640 #ifdef __cplusplus
29641 }
29642 #endif
29643
29644 int
29645 main ()
29646 {
29647 return f != $ac_func;
29648 ;
29649 return 0;
29650 }
29651 _ACEOF
29652 rm -f conftest.$ac_objext conftest$ac_exeext
29653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29654 (eval $ac_link) 2>&5
29655 ac_status=$?
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); } &&
29658 { ac_try='test -s conftest$ac_exeext'
29659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29660 (eval $ac_try) 2>&5
29661 ac_status=$?
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); }; }; then
29664 eval "$as_ac_var=yes"
29665 else
29666 echo "$as_me: failed program was:" >&5
29667 sed 's/^/| /' conftest.$ac_ext >&5
29668
29669 eval "$as_ac_var=no"
29670 fi
29671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29672 fi
29673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29675 if test `eval echo '${'$as_ac_var'}'` = yes; then
29676 cat >>confdefs.h <<_ACEOF
29677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29678 _ACEOF
29679
29680 fi
29681 done
29682
29683 fi
29684 fi
29685
29686
29687
29688 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
29689 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
29690 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
29691 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
29692 echo $ECHO_N "(cached) $ECHO_C" >&6
29693 else
29694
29695
29696
29697 ac_ext=cc
29698 ac_cpp='$CXXCPP $CPPFLAGS'
29699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29702
29703 cat >conftest.$ac_ext <<_ACEOF
29704 #line $LINENO "configure"
29705 /* confdefs.h. */
29706 _ACEOF
29707 cat confdefs.h >>conftest.$ac_ext
29708 cat >>conftest.$ac_ext <<_ACEOF
29709 /* end confdefs.h. */
29710 #include <math.h>
29711 #ifdef HAVE_IEEEFP_H
29712 #include <ieeefp.h>
29713 #endif
29714
29715 int
29716 main ()
29717 {
29718 qfpclass(0);
29719 ;
29720 return 0;
29721 }
29722 _ACEOF
29723 rm -f conftest.$ac_objext
29724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29725 (eval $ac_compile) 2>&5
29726 ac_status=$?
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); } &&
29729 { ac_try='test -s conftest.$ac_objext'
29730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29731 (eval $ac_try) 2>&5
29732 ac_status=$?
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); }; }; then
29735 glibcxx_cv_func_qfpclass_use=yes
29736 else
29737 echo "$as_me: failed program was:" >&5
29738 sed 's/^/| /' conftest.$ac_ext >&5
29739
29740 glibcxx_cv_func_qfpclass_use=no
29741 fi
29742 rm -f conftest.$ac_objext conftest.$ac_ext
29743 ac_ext=c
29744 ac_cpp='$CPP $CPPFLAGS'
29745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29748
29749
29750 fi
29751
29752 fi
29753 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
29754 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
29755
29756 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
29757
29758 for ac_func in qfpclass
29759 do
29760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29761 echo "$as_me:$LINENO: checking for $ac_func" >&5
29762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29763 if eval "test \"\${$as_ac_var+set}\" = set"; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29765 else
29766 if test x$gcc_no_link = xyes; then
29767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29769 { (exit 1); exit 1; }; }
29770 fi
29771 cat >conftest.$ac_ext <<_ACEOF
29772 #line $LINENO "configure"
29773 /* confdefs.h. */
29774 _ACEOF
29775 cat confdefs.h >>conftest.$ac_ext
29776 cat >>conftest.$ac_ext <<_ACEOF
29777 /* end confdefs.h. */
29778 /* System header to define __stub macros and hopefully few prototypes,
29779 which can conflict with char $ac_func (); below.
29780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29781 <limits.h> exists even on freestanding compilers. */
29782 #ifdef __STDC__
29783 # include <limits.h>
29784 #else
29785 # include <assert.h>
29786 #endif
29787 /* Override any gcc2 internal prototype to avoid an error. */
29788 #ifdef __cplusplus
29789 extern "C"
29790 {
29791 #endif
29792 /* We use char because int might match the return type of a gcc2
29793 builtin and then its argument prototype would still apply. */
29794 char $ac_func ();
29795 /* The GNU C library defines this for functions which it implements
29796 to always fail with ENOSYS. Some functions are actually named
29797 something starting with __ and the normal name is an alias. */
29798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29799 choke me
29800 #else
29801 char (*f) () = $ac_func;
29802 #endif
29803 #ifdef __cplusplus
29804 }
29805 #endif
29806
29807 int
29808 main ()
29809 {
29810 return f != $ac_func;
29811 ;
29812 return 0;
29813 }
29814 _ACEOF
29815 rm -f conftest.$ac_objext conftest$ac_exeext
29816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29817 (eval $ac_link) 2>&5
29818 ac_status=$?
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } &&
29821 { ac_try='test -s conftest$ac_exeext'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29824 ac_status=$?
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; }; then
29827 eval "$as_ac_var=yes"
29828 else
29829 echo "$as_me: failed program was:" >&5
29830 sed 's/^/| /' conftest.$ac_ext >&5
29831
29832 eval "$as_ac_var=no"
29833 fi
29834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29835 fi
29836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29838 if test `eval echo '${'$as_ac_var'}'` = yes; then
29839 cat >>confdefs.h <<_ACEOF
29840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29841 _ACEOF
29842
29843 fi
29844 done
29845
29846 else
29847
29848 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
29849 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
29850 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
29851 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
29852 echo $ECHO_N "(cached) $ECHO_C" >&6
29853 else
29854
29855
29856
29857 ac_ext=cc
29858 ac_cpp='$CXXCPP $CPPFLAGS'
29859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29862
29863 cat >conftest.$ac_ext <<_ACEOF
29864 #line $LINENO "configure"
29865 /* confdefs.h. */
29866 _ACEOF
29867 cat confdefs.h >>conftest.$ac_ext
29868 cat >>conftest.$ac_ext <<_ACEOF
29869 /* end confdefs.h. */
29870 #include <math.h>
29871 #ifdef HAVE_IEEEFP_H
29872 #include <ieeefp.h>
29873 #endif
29874
29875 int
29876 main ()
29877 {
29878 _qfpclass(0);
29879 ;
29880 return 0;
29881 }
29882 _ACEOF
29883 rm -f conftest.$ac_objext
29884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29885 (eval $ac_compile) 2>&5
29886 ac_status=$?
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); } &&
29889 { ac_try='test -s conftest.$ac_objext'
29890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29891 (eval $ac_try) 2>&5
29892 ac_status=$?
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); }; }; then
29895 glibcxx_cv_func__qfpclass_use=yes
29896 else
29897 echo "$as_me: failed program was:" >&5
29898 sed 's/^/| /' conftest.$ac_ext >&5
29899
29900 glibcxx_cv_func__qfpclass_use=no
29901 fi
29902 rm -f conftest.$ac_objext conftest.$ac_ext
29903 ac_ext=c
29904 ac_cpp='$CPP $CPPFLAGS'
29905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29908
29909
29910 fi
29911
29912 fi
29913 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
29914 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
29915
29916 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
29917
29918 for ac_func in _qfpclass
29919 do
29920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29921 echo "$as_me:$LINENO: checking for $ac_func" >&5
29922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29923 if eval "test \"\${$as_ac_var+set}\" = set"; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29925 else
29926 if test x$gcc_no_link = xyes; then
29927 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29928 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29929 { (exit 1); exit 1; }; }
29930 fi
29931 cat >conftest.$ac_ext <<_ACEOF
29932 #line $LINENO "configure"
29933 /* confdefs.h. */
29934 _ACEOF
29935 cat confdefs.h >>conftest.$ac_ext
29936 cat >>conftest.$ac_ext <<_ACEOF
29937 /* end confdefs.h. */
29938 /* System header to define __stub macros and hopefully few prototypes,
29939 which can conflict with char $ac_func (); below.
29940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29941 <limits.h> exists even on freestanding compilers. */
29942 #ifdef __STDC__
29943 # include <limits.h>
29944 #else
29945 # include <assert.h>
29946 #endif
29947 /* Override any gcc2 internal prototype to avoid an error. */
29948 #ifdef __cplusplus
29949 extern "C"
29950 {
29951 #endif
29952 /* We use char because int might match the return type of a gcc2
29953 builtin and then its argument prototype would still apply. */
29954 char $ac_func ();
29955 /* The GNU C library defines this for functions which it implements
29956 to always fail with ENOSYS. Some functions are actually named
29957 something starting with __ and the normal name is an alias. */
29958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29959 choke me
29960 #else
29961 char (*f) () = $ac_func;
29962 #endif
29963 #ifdef __cplusplus
29964 }
29965 #endif
29966
29967 int
29968 main ()
29969 {
29970 return f != $ac_func;
29971 ;
29972 return 0;
29973 }
29974 _ACEOF
29975 rm -f conftest.$ac_objext conftest$ac_exeext
29976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29977 (eval $ac_link) 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } &&
29981 { ac_try='test -s conftest$ac_exeext'
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
29987 eval "$as_ac_var=yes"
29988 else
29989 echo "$as_me: failed program was:" >&5
29990 sed 's/^/| /' conftest.$ac_ext >&5
29991
29992 eval "$as_ac_var=no"
29993 fi
29994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29995 fi
29996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29998 if test `eval echo '${'$as_ac_var'}'` = yes; then
29999 cat >>confdefs.h <<_ACEOF
30000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30001 _ACEOF
30002
30003 fi
30004 done
30005
30006 fi
30007 fi
30008
30009
30010
30011 echo "$as_me:$LINENO: checking for hypot declaration" >&5
30012 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
30013 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
30014 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
30015 echo $ECHO_N "(cached) $ECHO_C" >&6
30016 else
30017
30018
30019
30020 ac_ext=cc
30021 ac_cpp='$CXXCPP $CPPFLAGS'
30022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30025
30026 cat >conftest.$ac_ext <<_ACEOF
30027 #line $LINENO "configure"
30028 /* confdefs.h. */
30029 _ACEOF
30030 cat confdefs.h >>conftest.$ac_ext
30031 cat >>conftest.$ac_ext <<_ACEOF
30032 /* end confdefs.h. */
30033 #include <math.h>
30034 int
30035 main ()
30036 {
30037 hypot(0, 0);
30038 ;
30039 return 0;
30040 }
30041 _ACEOF
30042 rm -f conftest.$ac_objext
30043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30044 (eval $ac_compile) 2>&5
30045 ac_status=$?
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); } &&
30048 { ac_try='test -s conftest.$ac_objext'
30049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050 (eval $ac_try) 2>&5
30051 ac_status=$?
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; }; then
30054 glibcxx_cv_func_hypot_use=yes
30055 else
30056 echo "$as_me: failed program was:" >&5
30057 sed 's/^/| /' conftest.$ac_ext >&5
30058
30059 glibcxx_cv_func_hypot_use=no
30060 fi
30061 rm -f conftest.$ac_objext conftest.$ac_ext
30062 ac_ext=c
30063 ac_cpp='$CPP $CPPFLAGS'
30064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30067
30068
30069 fi
30070
30071 fi
30072 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
30073 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
30074
30075 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
30076
30077 for ac_func in hypot
30078 do
30079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30080 echo "$as_me:$LINENO: checking for $ac_func" >&5
30081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30082 if eval "test \"\${$as_ac_var+set}\" = set"; then
30083 echo $ECHO_N "(cached) $ECHO_C" >&6
30084 else
30085 if test x$gcc_no_link = xyes; then
30086 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30087 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30088 { (exit 1); exit 1; }; }
30089 fi
30090 cat >conftest.$ac_ext <<_ACEOF
30091 #line $LINENO "configure"
30092 /* confdefs.h. */
30093 _ACEOF
30094 cat confdefs.h >>conftest.$ac_ext
30095 cat >>conftest.$ac_ext <<_ACEOF
30096 /* end confdefs.h. */
30097 /* System header to define __stub macros and hopefully few prototypes,
30098 which can conflict with char $ac_func (); below.
30099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30100 <limits.h> exists even on freestanding compilers. */
30101 #ifdef __STDC__
30102 # include <limits.h>
30103 #else
30104 # include <assert.h>
30105 #endif
30106 /* Override any gcc2 internal prototype to avoid an error. */
30107 #ifdef __cplusplus
30108 extern "C"
30109 {
30110 #endif
30111 /* We use char because int might match the return type of a gcc2
30112 builtin and then its argument prototype would still apply. */
30113 char $ac_func ();
30114 /* The GNU C library defines this for functions which it implements
30115 to always fail with ENOSYS. Some functions are actually named
30116 something starting with __ and the normal name is an alias. */
30117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30118 choke me
30119 #else
30120 char (*f) () = $ac_func;
30121 #endif
30122 #ifdef __cplusplus
30123 }
30124 #endif
30125
30126 int
30127 main ()
30128 {
30129 return f != $ac_func;
30130 ;
30131 return 0;
30132 }
30133 _ACEOF
30134 rm -f conftest.$ac_objext conftest$ac_exeext
30135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30136 (eval $ac_link) 2>&5
30137 ac_status=$?
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); } &&
30140 { ac_try='test -s conftest$ac_exeext'
30141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142 (eval $ac_try) 2>&5
30143 ac_status=$?
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; }; then
30146 eval "$as_ac_var=yes"
30147 else
30148 echo "$as_me: failed program was:" >&5
30149 sed 's/^/| /' conftest.$ac_ext >&5
30150
30151 eval "$as_ac_var=no"
30152 fi
30153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30154 fi
30155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30157 if test `eval echo '${'$as_ac_var'}'` = yes; then
30158 cat >>confdefs.h <<_ACEOF
30159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30160 _ACEOF
30161
30162 fi
30163 done
30164
30165 else
30166
30167 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
30168 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
30169 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
30170 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
30171 echo $ECHO_N "(cached) $ECHO_C" >&6
30172 else
30173
30174
30175
30176 ac_ext=cc
30177 ac_cpp='$CXXCPP $CPPFLAGS'
30178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30181
30182 cat >conftest.$ac_ext <<_ACEOF
30183 #line $LINENO "configure"
30184 /* confdefs.h. */
30185 _ACEOF
30186 cat confdefs.h >>conftest.$ac_ext
30187 cat >>conftest.$ac_ext <<_ACEOF
30188 /* end confdefs.h. */
30189 #include <math.h>
30190 int
30191 main ()
30192 {
30193 _hypot(0, 0);
30194 ;
30195 return 0;
30196 }
30197 _ACEOF
30198 rm -f conftest.$ac_objext
30199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30200 (eval $ac_compile) 2>&5
30201 ac_status=$?
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); } &&
30204 { ac_try='test -s conftest.$ac_objext'
30205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206 (eval $ac_try) 2>&5
30207 ac_status=$?
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; }; then
30210 glibcxx_cv_func__hypot_use=yes
30211 else
30212 echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30214
30215 glibcxx_cv_func__hypot_use=no
30216 fi
30217 rm -f conftest.$ac_objext conftest.$ac_ext
30218 ac_ext=c
30219 ac_cpp='$CPP $CPPFLAGS'
30220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30223
30224
30225 fi
30226
30227 fi
30228 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
30229 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
30230
30231 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
30232
30233 for ac_func in _hypot
30234 do
30235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30236 echo "$as_me:$LINENO: checking for $ac_func" >&5
30237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30238 if eval "test \"\${$as_ac_var+set}\" = set"; then
30239 echo $ECHO_N "(cached) $ECHO_C" >&6
30240 else
30241 if test x$gcc_no_link = xyes; then
30242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30244 { (exit 1); exit 1; }; }
30245 fi
30246 cat >conftest.$ac_ext <<_ACEOF
30247 #line $LINENO "configure"
30248 /* confdefs.h. */
30249 _ACEOF
30250 cat confdefs.h >>conftest.$ac_ext
30251 cat >>conftest.$ac_ext <<_ACEOF
30252 /* end confdefs.h. */
30253 /* System header to define __stub macros and hopefully few prototypes,
30254 which can conflict with char $ac_func (); below.
30255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30256 <limits.h> exists even on freestanding compilers. */
30257 #ifdef __STDC__
30258 # include <limits.h>
30259 #else
30260 # include <assert.h>
30261 #endif
30262 /* Override any gcc2 internal prototype to avoid an error. */
30263 #ifdef __cplusplus
30264 extern "C"
30265 {
30266 #endif
30267 /* We use char because int might match the return type of a gcc2
30268 builtin and then its argument prototype would still apply. */
30269 char $ac_func ();
30270 /* The GNU C library defines this for functions which it implements
30271 to always fail with ENOSYS. Some functions are actually named
30272 something starting with __ and the normal name is an alias. */
30273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30274 choke me
30275 #else
30276 char (*f) () = $ac_func;
30277 #endif
30278 #ifdef __cplusplus
30279 }
30280 #endif
30281
30282 int
30283 main ()
30284 {
30285 return f != $ac_func;
30286 ;
30287 return 0;
30288 }
30289 _ACEOF
30290 rm -f conftest.$ac_objext conftest$ac_exeext
30291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30292 (eval $ac_link) 2>&5
30293 ac_status=$?
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); } &&
30296 { ac_try='test -s conftest$ac_exeext'
30297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30298 (eval $ac_try) 2>&5
30299 ac_status=$?
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); }; }; then
30302 eval "$as_ac_var=yes"
30303 else
30304 echo "$as_me: failed program was:" >&5
30305 sed 's/^/| /' conftest.$ac_ext >&5
30306
30307 eval "$as_ac_var=no"
30308 fi
30309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30310 fi
30311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30313 if test `eval echo '${'$as_ac_var'}'` = yes; then
30314 cat >>confdefs.h <<_ACEOF
30315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30316 _ACEOF
30317
30318 fi
30319 done
30320
30321 fi
30322 fi
30323
30324
30325
30326 echo "$as_me:$LINENO: checking for float trig functions" >&5
30327 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
30328 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
30329 echo $ECHO_N "(cached) $ECHO_C" >&6
30330 else
30331
30332
30333
30334 ac_ext=cc
30335 ac_cpp='$CXXCPP $CPPFLAGS'
30336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30339
30340 cat >conftest.$ac_ext <<_ACEOF
30341 #line $LINENO "configure"
30342 /* confdefs.h. */
30343 _ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h. */
30347 #include <math.h>
30348 int
30349 main ()
30350 {
30351 `for x in acosf asinf atanf \
30352 cosf sinf tanf \
30353 coshf sinhf tanhf; do echo "$x (0);"; done`
30354 ;
30355 return 0;
30356 }
30357 _ACEOF
30358 rm -f conftest.$ac_objext
30359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30360 (eval $ac_compile) 2>&5
30361 ac_status=$?
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } &&
30364 { ac_try='test -s conftest.$ac_objext'
30365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30366 (eval $ac_try) 2>&5
30367 ac_status=$?
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; }; then
30370 glibcxx_cv_func_float_trig_use=yes
30371 else
30372 echo "$as_me: failed program was:" >&5
30373 sed 's/^/| /' conftest.$ac_ext >&5
30374
30375 glibcxx_cv_func_float_trig_use=no
30376 fi
30377 rm -f conftest.$ac_objext conftest.$ac_ext
30378 ac_ext=c
30379 ac_cpp='$CPP $CPPFLAGS'
30380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30383
30384 fi
30385
30386 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
30387 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
30388 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398 for ac_func in acosf asinf atanf \
30399 cosf sinf tanf \
30400 coshf sinhf tanhf
30401 do
30402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30403 echo "$as_me:$LINENO: checking for $ac_func" >&5
30404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30405 if eval "test \"\${$as_ac_var+set}\" = set"; then
30406 echo $ECHO_N "(cached) $ECHO_C" >&6
30407 else
30408 if test x$gcc_no_link = xyes; then
30409 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30410 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30411 { (exit 1); exit 1; }; }
30412 fi
30413 cat >conftest.$ac_ext <<_ACEOF
30414 #line $LINENO "configure"
30415 /* confdefs.h. */
30416 _ACEOF
30417 cat confdefs.h >>conftest.$ac_ext
30418 cat >>conftest.$ac_ext <<_ACEOF
30419 /* end confdefs.h. */
30420 /* System header to define __stub macros and hopefully few prototypes,
30421 which can conflict with char $ac_func (); below.
30422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423 <limits.h> exists even on freestanding compilers. */
30424 #ifdef __STDC__
30425 # include <limits.h>
30426 #else
30427 # include <assert.h>
30428 #endif
30429 /* Override any gcc2 internal prototype to avoid an error. */
30430 #ifdef __cplusplus
30431 extern "C"
30432 {
30433 #endif
30434 /* We use char because int might match the return type of a gcc2
30435 builtin and then its argument prototype would still apply. */
30436 char $ac_func ();
30437 /* The GNU C library defines this for functions which it implements
30438 to always fail with ENOSYS. Some functions are actually named
30439 something starting with __ and the normal name is an alias. */
30440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30441 choke me
30442 #else
30443 char (*f) () = $ac_func;
30444 #endif
30445 #ifdef __cplusplus
30446 }
30447 #endif
30448
30449 int
30450 main ()
30451 {
30452 return f != $ac_func;
30453 ;
30454 return 0;
30455 }
30456 _ACEOF
30457 rm -f conftest.$ac_objext conftest$ac_exeext
30458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30459 (eval $ac_link) 2>&5
30460 ac_status=$?
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); } &&
30463 { ac_try='test -s conftest$ac_exeext'
30464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30465 (eval $ac_try) 2>&5
30466 ac_status=$?
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); }; }; then
30469 eval "$as_ac_var=yes"
30470 else
30471 echo "$as_me: failed program was:" >&5
30472 sed 's/^/| /' conftest.$ac_ext >&5
30473
30474 eval "$as_ac_var=no"
30475 fi
30476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30477 fi
30478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30480 if test `eval echo '${'$as_ac_var'}'` = yes; then
30481 cat >>confdefs.h <<_ACEOF
30482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30483 _ACEOF
30484
30485 fi
30486 done
30487
30488 fi
30489
30490
30491 echo "$as_me:$LINENO: checking for float round functions" >&5
30492 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
30493 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
30494 echo $ECHO_N "(cached) $ECHO_C" >&6
30495 else
30496
30497
30498
30499 ac_ext=cc
30500 ac_cpp='$CXXCPP $CPPFLAGS'
30501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30504
30505 cat >conftest.$ac_ext <<_ACEOF
30506 #line $LINENO "configure"
30507 /* confdefs.h. */
30508 _ACEOF
30509 cat confdefs.h >>conftest.$ac_ext
30510 cat >>conftest.$ac_ext <<_ACEOF
30511 /* end confdefs.h. */
30512 #include <math.h>
30513 int
30514 main ()
30515 {
30516 `for x in ceilf floorf; do echo "$x (0);"; done`
30517 ;
30518 return 0;
30519 }
30520 _ACEOF
30521 rm -f conftest.$ac_objext
30522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30523 (eval $ac_compile) 2>&5
30524 ac_status=$?
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); } &&
30527 { ac_try='test -s conftest.$ac_objext'
30528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30529 (eval $ac_try) 2>&5
30530 ac_status=$?
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); }; }; then
30533 glibcxx_cv_func_float_round_use=yes
30534 else
30535 echo "$as_me: failed program was:" >&5
30536 sed 's/^/| /' conftest.$ac_ext >&5
30537
30538 glibcxx_cv_func_float_round_use=no
30539 fi
30540 rm -f conftest.$ac_objext conftest.$ac_ext
30541 ac_ext=c
30542 ac_cpp='$CPP $CPPFLAGS'
30543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30546
30547 fi
30548
30549 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
30550 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
30551 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
30552
30553
30554 for ac_func in ceilf floorf
30555 do
30556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30557 echo "$as_me:$LINENO: checking for $ac_func" >&5
30558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30559 if eval "test \"\${$as_ac_var+set}\" = set"; then
30560 echo $ECHO_N "(cached) $ECHO_C" >&6
30561 else
30562 if test x$gcc_no_link = xyes; then
30563 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30564 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30565 { (exit 1); exit 1; }; }
30566 fi
30567 cat >conftest.$ac_ext <<_ACEOF
30568 #line $LINENO "configure"
30569 /* confdefs.h. */
30570 _ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h. */
30574 /* System header to define __stub macros and hopefully few prototypes,
30575 which can conflict with char $ac_func (); below.
30576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30577 <limits.h> exists even on freestanding compilers. */
30578 #ifdef __STDC__
30579 # include <limits.h>
30580 #else
30581 # include <assert.h>
30582 #endif
30583 /* Override any gcc2 internal prototype to avoid an error. */
30584 #ifdef __cplusplus
30585 extern "C"
30586 {
30587 #endif
30588 /* We use char because int might match the return type of a gcc2
30589 builtin and then its argument prototype would still apply. */
30590 char $ac_func ();
30591 /* The GNU C library defines this for functions which it implements
30592 to always fail with ENOSYS. Some functions are actually named
30593 something starting with __ and the normal name is an alias. */
30594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30595 choke me
30596 #else
30597 char (*f) () = $ac_func;
30598 #endif
30599 #ifdef __cplusplus
30600 }
30601 #endif
30602
30603 int
30604 main ()
30605 {
30606 return f != $ac_func;
30607 ;
30608 return 0;
30609 }
30610 _ACEOF
30611 rm -f conftest.$ac_objext conftest$ac_exeext
30612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30613 (eval $ac_link) 2>&5
30614 ac_status=$?
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } &&
30617 { ac_try='test -s conftest$ac_exeext'
30618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30619 (eval $ac_try) 2>&5
30620 ac_status=$?
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); }; }; then
30623 eval "$as_ac_var=yes"
30624 else
30625 echo "$as_me: failed program was:" >&5
30626 sed 's/^/| /' conftest.$ac_ext >&5
30627
30628 eval "$as_ac_var=no"
30629 fi
30630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30631 fi
30632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30634 if test `eval echo '${'$as_ac_var'}'` = yes; then
30635 cat >>confdefs.h <<_ACEOF
30636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30637 _ACEOF
30638
30639 fi
30640 done
30641
30642 fi
30643
30644
30645
30646 echo "$as_me:$LINENO: checking for expf declaration" >&5
30647 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
30648 if test x${glibcxx_cv_func_expf_use+set} != xset; then
30649 if test "${glibcxx_cv_func_expf_use+set}" = set; then
30650 echo $ECHO_N "(cached) $ECHO_C" >&6
30651 else
30652
30653
30654
30655 ac_ext=cc
30656 ac_cpp='$CXXCPP $CPPFLAGS'
30657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30660
30661 cat >conftest.$ac_ext <<_ACEOF
30662 #line $LINENO "configure"
30663 /* confdefs.h. */
30664 _ACEOF
30665 cat confdefs.h >>conftest.$ac_ext
30666 cat >>conftest.$ac_ext <<_ACEOF
30667 /* end confdefs.h. */
30668 #include <math.h>
30669 #ifdef HAVE_IEEEFP_H
30670 #include <ieeefp.h>
30671 #endif
30672
30673 int
30674 main ()
30675 {
30676 expf(0);
30677 ;
30678 return 0;
30679 }
30680 _ACEOF
30681 rm -f conftest.$ac_objext
30682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30683 (eval $ac_compile) 2>&5
30684 ac_status=$?
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); } &&
30687 { ac_try='test -s conftest.$ac_objext'
30688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30689 (eval $ac_try) 2>&5
30690 ac_status=$?
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); }; }; then
30693 glibcxx_cv_func_expf_use=yes
30694 else
30695 echo "$as_me: failed program was:" >&5
30696 sed 's/^/| /' conftest.$ac_ext >&5
30697
30698 glibcxx_cv_func_expf_use=no
30699 fi
30700 rm -f conftest.$ac_objext conftest.$ac_ext
30701 ac_ext=c
30702 ac_cpp='$CPP $CPPFLAGS'
30703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30706
30707
30708 fi
30709
30710 fi
30711 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
30712 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
30713
30714 if test x$glibcxx_cv_func_expf_use = x"yes"; then
30715
30716 for ac_func in expf
30717 do
30718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30719 echo "$as_me:$LINENO: checking for $ac_func" >&5
30720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30721 if eval "test \"\${$as_ac_var+set}\" = set"; then
30722 echo $ECHO_N "(cached) $ECHO_C" >&6
30723 else
30724 if test x$gcc_no_link = xyes; then
30725 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30727 { (exit 1); exit 1; }; }
30728 fi
30729 cat >conftest.$ac_ext <<_ACEOF
30730 #line $LINENO "configure"
30731 /* confdefs.h. */
30732 _ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h. */
30736 /* System header to define __stub macros and hopefully few prototypes,
30737 which can conflict with char $ac_func (); below.
30738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30739 <limits.h> exists even on freestanding compilers. */
30740 #ifdef __STDC__
30741 # include <limits.h>
30742 #else
30743 # include <assert.h>
30744 #endif
30745 /* Override any gcc2 internal prototype to avoid an error. */
30746 #ifdef __cplusplus
30747 extern "C"
30748 {
30749 #endif
30750 /* We use char because int might match the return type of a gcc2
30751 builtin and then its argument prototype would still apply. */
30752 char $ac_func ();
30753 /* The GNU C library defines this for functions which it implements
30754 to always fail with ENOSYS. Some functions are actually named
30755 something starting with __ and the normal name is an alias. */
30756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30757 choke me
30758 #else
30759 char (*f) () = $ac_func;
30760 #endif
30761 #ifdef __cplusplus
30762 }
30763 #endif
30764
30765 int
30766 main ()
30767 {
30768 return f != $ac_func;
30769 ;
30770 return 0;
30771 }
30772 _ACEOF
30773 rm -f conftest.$ac_objext conftest$ac_exeext
30774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30775 (eval $ac_link) 2>&5
30776 ac_status=$?
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); } &&
30779 { ac_try='test -s conftest$ac_exeext'
30780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30781 (eval $ac_try) 2>&5
30782 ac_status=$?
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); }; }; then
30785 eval "$as_ac_var=yes"
30786 else
30787 echo "$as_me: failed program was:" >&5
30788 sed 's/^/| /' conftest.$ac_ext >&5
30789
30790 eval "$as_ac_var=no"
30791 fi
30792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30793 fi
30794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30796 if test `eval echo '${'$as_ac_var'}'` = yes; then
30797 cat >>confdefs.h <<_ACEOF
30798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30799 _ACEOF
30800
30801 fi
30802 done
30803
30804 else
30805
30806 echo "$as_me:$LINENO: checking for _expf declaration" >&5
30807 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
30808 if test x${glibcxx_cv_func__expf_use+set} != xset; then
30809 if test "${glibcxx_cv_func__expf_use+set}" = set; then
30810 echo $ECHO_N "(cached) $ECHO_C" >&6
30811 else
30812
30813
30814
30815 ac_ext=cc
30816 ac_cpp='$CXXCPP $CPPFLAGS'
30817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30820
30821 cat >conftest.$ac_ext <<_ACEOF
30822 #line $LINENO "configure"
30823 /* confdefs.h. */
30824 _ACEOF
30825 cat confdefs.h >>conftest.$ac_ext
30826 cat >>conftest.$ac_ext <<_ACEOF
30827 /* end confdefs.h. */
30828 #include <math.h>
30829 #ifdef HAVE_IEEEFP_H
30830 #include <ieeefp.h>
30831 #endif
30832
30833 int
30834 main ()
30835 {
30836 _expf(0);
30837 ;
30838 return 0;
30839 }
30840 _ACEOF
30841 rm -f conftest.$ac_objext
30842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30843 (eval $ac_compile) 2>&5
30844 ac_status=$?
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); } &&
30847 { ac_try='test -s conftest.$ac_objext'
30848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30849 (eval $ac_try) 2>&5
30850 ac_status=$?
30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 (exit $ac_status); }; }; then
30853 glibcxx_cv_func__expf_use=yes
30854 else
30855 echo "$as_me: failed program was:" >&5
30856 sed 's/^/| /' conftest.$ac_ext >&5
30857
30858 glibcxx_cv_func__expf_use=no
30859 fi
30860 rm -f conftest.$ac_objext conftest.$ac_ext
30861 ac_ext=c
30862 ac_cpp='$CPP $CPPFLAGS'
30863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30866
30867
30868 fi
30869
30870 fi
30871 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
30872 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
30873
30874 if test x$glibcxx_cv_func__expf_use = x"yes"; then
30875
30876 for ac_func in _expf
30877 do
30878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30879 echo "$as_me:$LINENO: checking for $ac_func" >&5
30880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30881 if eval "test \"\${$as_ac_var+set}\" = set"; then
30882 echo $ECHO_N "(cached) $ECHO_C" >&6
30883 else
30884 if test x$gcc_no_link = xyes; then
30885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30887 { (exit 1); exit 1; }; }
30888 fi
30889 cat >conftest.$ac_ext <<_ACEOF
30890 #line $LINENO "configure"
30891 /* confdefs.h. */
30892 _ACEOF
30893 cat confdefs.h >>conftest.$ac_ext
30894 cat >>conftest.$ac_ext <<_ACEOF
30895 /* end confdefs.h. */
30896 /* System header to define __stub macros and hopefully few prototypes,
30897 which can conflict with char $ac_func (); below.
30898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30899 <limits.h> exists even on freestanding compilers. */
30900 #ifdef __STDC__
30901 # include <limits.h>
30902 #else
30903 # include <assert.h>
30904 #endif
30905 /* Override any gcc2 internal prototype to avoid an error. */
30906 #ifdef __cplusplus
30907 extern "C"
30908 {
30909 #endif
30910 /* We use char because int might match the return type of a gcc2
30911 builtin and then its argument prototype would still apply. */
30912 char $ac_func ();
30913 /* The GNU C library defines this for functions which it implements
30914 to always fail with ENOSYS. Some functions are actually named
30915 something starting with __ and the normal name is an alias. */
30916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30917 choke me
30918 #else
30919 char (*f) () = $ac_func;
30920 #endif
30921 #ifdef __cplusplus
30922 }
30923 #endif
30924
30925 int
30926 main ()
30927 {
30928 return f != $ac_func;
30929 ;
30930 return 0;
30931 }
30932 _ACEOF
30933 rm -f conftest.$ac_objext conftest$ac_exeext
30934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30935 (eval $ac_link) 2>&5
30936 ac_status=$?
30937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938 (exit $ac_status); } &&
30939 { ac_try='test -s conftest$ac_exeext'
30940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30941 (eval $ac_try) 2>&5
30942 ac_status=$?
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); }; }; then
30945 eval "$as_ac_var=yes"
30946 else
30947 echo "$as_me: failed program was:" >&5
30948 sed 's/^/| /' conftest.$ac_ext >&5
30949
30950 eval "$as_ac_var=no"
30951 fi
30952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30953 fi
30954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30956 if test `eval echo '${'$as_ac_var'}'` = yes; then
30957 cat >>confdefs.h <<_ACEOF
30958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30959 _ACEOF
30960
30961 fi
30962 done
30963
30964 fi
30965 fi
30966
30967
30968
30969 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
30970 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
30971 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
30972 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
30973 echo $ECHO_N "(cached) $ECHO_C" >&6
30974 else
30975
30976
30977
30978 ac_ext=cc
30979 ac_cpp='$CXXCPP $CPPFLAGS'
30980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30983
30984 cat >conftest.$ac_ext <<_ACEOF
30985 #line $LINENO "configure"
30986 /* confdefs.h. */
30987 _ACEOF
30988 cat confdefs.h >>conftest.$ac_ext
30989 cat >>conftest.$ac_ext <<_ACEOF
30990 /* end confdefs.h. */
30991 #include <math.h>
30992 #ifdef HAVE_IEEEFP_H
30993 #include <ieeefp.h>
30994 #endif
30995
30996 int
30997 main ()
30998 {
30999 isnanf(0);
31000 ;
31001 return 0;
31002 }
31003 _ACEOF
31004 rm -f conftest.$ac_objext
31005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31006 (eval $ac_compile) 2>&5
31007 ac_status=$?
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); } &&
31010 { ac_try='test -s conftest.$ac_objext'
31011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012 (eval $ac_try) 2>&5
31013 ac_status=$?
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); }; }; then
31016 glibcxx_cv_func_isnanf_use=yes
31017 else
31018 echo "$as_me: failed program was:" >&5
31019 sed 's/^/| /' conftest.$ac_ext >&5
31020
31021 glibcxx_cv_func_isnanf_use=no
31022 fi
31023 rm -f conftest.$ac_objext conftest.$ac_ext
31024 ac_ext=c
31025 ac_cpp='$CPP $CPPFLAGS'
31026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31029
31030
31031 fi
31032
31033 fi
31034 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
31035 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
31036
31037 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
31038
31039 for ac_func in isnanf
31040 do
31041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31042 echo "$as_me:$LINENO: checking for $ac_func" >&5
31043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31044 if eval "test \"\${$as_ac_var+set}\" = set"; then
31045 echo $ECHO_N "(cached) $ECHO_C" >&6
31046 else
31047 if test x$gcc_no_link = xyes; then
31048 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31049 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31050 { (exit 1); exit 1; }; }
31051 fi
31052 cat >conftest.$ac_ext <<_ACEOF
31053 #line $LINENO "configure"
31054 /* confdefs.h. */
31055 _ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h. */
31059 /* System header to define __stub macros and hopefully few prototypes,
31060 which can conflict with char $ac_func (); below.
31061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31062 <limits.h> exists even on freestanding compilers. */
31063 #ifdef __STDC__
31064 # include <limits.h>
31065 #else
31066 # include <assert.h>
31067 #endif
31068 /* Override any gcc2 internal prototype to avoid an error. */
31069 #ifdef __cplusplus
31070 extern "C"
31071 {
31072 #endif
31073 /* We use char because int might match the return type of a gcc2
31074 builtin and then its argument prototype would still apply. */
31075 char $ac_func ();
31076 /* The GNU C library defines this for functions which it implements
31077 to always fail with ENOSYS. Some functions are actually named
31078 something starting with __ and the normal name is an alias. */
31079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31080 choke me
31081 #else
31082 char (*f) () = $ac_func;
31083 #endif
31084 #ifdef __cplusplus
31085 }
31086 #endif
31087
31088 int
31089 main ()
31090 {
31091 return f != $ac_func;
31092 ;
31093 return 0;
31094 }
31095 _ACEOF
31096 rm -f conftest.$ac_objext conftest$ac_exeext
31097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31098 (eval $ac_link) 2>&5
31099 ac_status=$?
31100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101 (exit $ac_status); } &&
31102 { ac_try='test -s conftest$ac_exeext'
31103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31104 (eval $ac_try) 2>&5
31105 ac_status=$?
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); }; }; then
31108 eval "$as_ac_var=yes"
31109 else
31110 echo "$as_me: failed program was:" >&5
31111 sed 's/^/| /' conftest.$ac_ext >&5
31112
31113 eval "$as_ac_var=no"
31114 fi
31115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31116 fi
31117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31119 if test `eval echo '${'$as_ac_var'}'` = yes; then
31120 cat >>confdefs.h <<_ACEOF
31121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31122 _ACEOF
31123
31124 fi
31125 done
31126
31127 else
31128
31129 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
31130 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
31131 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
31132 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
31133 echo $ECHO_N "(cached) $ECHO_C" >&6
31134 else
31135
31136
31137
31138 ac_ext=cc
31139 ac_cpp='$CXXCPP $CPPFLAGS'
31140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31143
31144 cat >conftest.$ac_ext <<_ACEOF
31145 #line $LINENO "configure"
31146 /* confdefs.h. */
31147 _ACEOF
31148 cat confdefs.h >>conftest.$ac_ext
31149 cat >>conftest.$ac_ext <<_ACEOF
31150 /* end confdefs.h. */
31151 #include <math.h>
31152 #ifdef HAVE_IEEEFP_H
31153 #include <ieeefp.h>
31154 #endif
31155
31156 int
31157 main ()
31158 {
31159 _isnanf(0);
31160 ;
31161 return 0;
31162 }
31163 _ACEOF
31164 rm -f conftest.$ac_objext
31165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31166 (eval $ac_compile) 2>&5
31167 ac_status=$?
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); } &&
31170 { ac_try='test -s conftest.$ac_objext'
31171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31172 (eval $ac_try) 2>&5
31173 ac_status=$?
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); }; }; then
31176 glibcxx_cv_func__isnanf_use=yes
31177 else
31178 echo "$as_me: failed program was:" >&5
31179 sed 's/^/| /' conftest.$ac_ext >&5
31180
31181 glibcxx_cv_func__isnanf_use=no
31182 fi
31183 rm -f conftest.$ac_objext conftest.$ac_ext
31184 ac_ext=c
31185 ac_cpp='$CPP $CPPFLAGS'
31186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31189
31190
31191 fi
31192
31193 fi
31194 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
31195 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
31196
31197 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
31198
31199 for ac_func in _isnanf
31200 do
31201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31202 echo "$as_me:$LINENO: checking for $ac_func" >&5
31203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31204 if eval "test \"\${$as_ac_var+set}\" = set"; then
31205 echo $ECHO_N "(cached) $ECHO_C" >&6
31206 else
31207 if test x$gcc_no_link = xyes; then
31208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31210 { (exit 1); exit 1; }; }
31211 fi
31212 cat >conftest.$ac_ext <<_ACEOF
31213 #line $LINENO "configure"
31214 /* confdefs.h. */
31215 _ACEOF
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h. */
31219 /* System header to define __stub macros and hopefully few prototypes,
31220 which can conflict with char $ac_func (); below.
31221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31222 <limits.h> exists even on freestanding compilers. */
31223 #ifdef __STDC__
31224 # include <limits.h>
31225 #else
31226 # include <assert.h>
31227 #endif
31228 /* Override any gcc2 internal prototype to avoid an error. */
31229 #ifdef __cplusplus
31230 extern "C"
31231 {
31232 #endif
31233 /* We use char because int might match the return type of a gcc2
31234 builtin and then its argument prototype would still apply. */
31235 char $ac_func ();
31236 /* The GNU C library defines this for functions which it implements
31237 to always fail with ENOSYS. Some functions are actually named
31238 something starting with __ and the normal name is an alias. */
31239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31240 choke me
31241 #else
31242 char (*f) () = $ac_func;
31243 #endif
31244 #ifdef __cplusplus
31245 }
31246 #endif
31247
31248 int
31249 main ()
31250 {
31251 return f != $ac_func;
31252 ;
31253 return 0;
31254 }
31255 _ACEOF
31256 rm -f conftest.$ac_objext conftest$ac_exeext
31257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31258 (eval $ac_link) 2>&5
31259 ac_status=$?
31260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 (exit $ac_status); } &&
31262 { ac_try='test -s conftest$ac_exeext'
31263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31264 (eval $ac_try) 2>&5
31265 ac_status=$?
31266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 (exit $ac_status); }; }; then
31268 eval "$as_ac_var=yes"
31269 else
31270 echo "$as_me: failed program was:" >&5
31271 sed 's/^/| /' conftest.$ac_ext >&5
31272
31273 eval "$as_ac_var=no"
31274 fi
31275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31276 fi
31277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31279 if test `eval echo '${'$as_ac_var'}'` = yes; then
31280 cat >>confdefs.h <<_ACEOF
31281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31282 _ACEOF
31283
31284 fi
31285 done
31286
31287 fi
31288 fi
31289
31290
31291
31292 echo "$as_me:$LINENO: checking for isinff declaration" >&5
31293 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
31294 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
31295 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
31296 echo $ECHO_N "(cached) $ECHO_C" >&6
31297 else
31298
31299
31300
31301 ac_ext=cc
31302 ac_cpp='$CXXCPP $CPPFLAGS'
31303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31306
31307 cat >conftest.$ac_ext <<_ACEOF
31308 #line $LINENO "configure"
31309 /* confdefs.h. */
31310 _ACEOF
31311 cat confdefs.h >>conftest.$ac_ext
31312 cat >>conftest.$ac_ext <<_ACEOF
31313 /* end confdefs.h. */
31314 #include <math.h>
31315 #ifdef HAVE_IEEEFP_H
31316 #include <ieeefp.h>
31317 #endif
31318
31319 int
31320 main ()
31321 {
31322 isinff(0);
31323 ;
31324 return 0;
31325 }
31326 _ACEOF
31327 rm -f conftest.$ac_objext
31328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31329 (eval $ac_compile) 2>&5
31330 ac_status=$?
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); } &&
31333 { ac_try='test -s conftest.$ac_objext'
31334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31335 (eval $ac_try) 2>&5
31336 ac_status=$?
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; }; then
31339 glibcxx_cv_func_isinff_use=yes
31340 else
31341 echo "$as_me: failed program was:" >&5
31342 sed 's/^/| /' conftest.$ac_ext >&5
31343
31344 glibcxx_cv_func_isinff_use=no
31345 fi
31346 rm -f conftest.$ac_objext conftest.$ac_ext
31347 ac_ext=c
31348 ac_cpp='$CPP $CPPFLAGS'
31349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31352
31353
31354 fi
31355
31356 fi
31357 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
31358 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
31359
31360 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
31361
31362 for ac_func in isinff
31363 do
31364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31365 echo "$as_me:$LINENO: checking for $ac_func" >&5
31366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31367 if eval "test \"\${$as_ac_var+set}\" = set"; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31369 else
31370 if test x$gcc_no_link = xyes; then
31371 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31372 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31373 { (exit 1); exit 1; }; }
31374 fi
31375 cat >conftest.$ac_ext <<_ACEOF
31376 #line $LINENO "configure"
31377 /* confdefs.h. */
31378 _ACEOF
31379 cat confdefs.h >>conftest.$ac_ext
31380 cat >>conftest.$ac_ext <<_ACEOF
31381 /* end confdefs.h. */
31382 /* System header to define __stub macros and hopefully few prototypes,
31383 which can conflict with char $ac_func (); below.
31384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31385 <limits.h> exists even on freestanding compilers. */
31386 #ifdef __STDC__
31387 # include <limits.h>
31388 #else
31389 # include <assert.h>
31390 #endif
31391 /* Override any gcc2 internal prototype to avoid an error. */
31392 #ifdef __cplusplus
31393 extern "C"
31394 {
31395 #endif
31396 /* We use char because int might match the return type of a gcc2
31397 builtin and then its argument prototype would still apply. */
31398 char $ac_func ();
31399 /* The GNU C library defines this for functions which it implements
31400 to always fail with ENOSYS. Some functions are actually named
31401 something starting with __ and the normal name is an alias. */
31402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31403 choke me
31404 #else
31405 char (*f) () = $ac_func;
31406 #endif
31407 #ifdef __cplusplus
31408 }
31409 #endif
31410
31411 int
31412 main ()
31413 {
31414 return f != $ac_func;
31415 ;
31416 return 0;
31417 }
31418 _ACEOF
31419 rm -f conftest.$ac_objext conftest$ac_exeext
31420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31421 (eval $ac_link) 2>&5
31422 ac_status=$?
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); } &&
31425 { ac_try='test -s conftest$ac_exeext'
31426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31427 (eval $ac_try) 2>&5
31428 ac_status=$?
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); }; }; then
31431 eval "$as_ac_var=yes"
31432 else
31433 echo "$as_me: failed program was:" >&5
31434 sed 's/^/| /' conftest.$ac_ext >&5
31435
31436 eval "$as_ac_var=no"
31437 fi
31438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31439 fi
31440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31442 if test `eval echo '${'$as_ac_var'}'` = yes; then
31443 cat >>confdefs.h <<_ACEOF
31444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31445 _ACEOF
31446
31447 fi
31448 done
31449
31450 else
31451
31452 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
31453 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
31454 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
31455 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
31456 echo $ECHO_N "(cached) $ECHO_C" >&6
31457 else
31458
31459
31460
31461 ac_ext=cc
31462 ac_cpp='$CXXCPP $CPPFLAGS'
31463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31466
31467 cat >conftest.$ac_ext <<_ACEOF
31468 #line $LINENO "configure"
31469 /* confdefs.h. */
31470 _ACEOF
31471 cat confdefs.h >>conftest.$ac_ext
31472 cat >>conftest.$ac_ext <<_ACEOF
31473 /* end confdefs.h. */
31474 #include <math.h>
31475 #ifdef HAVE_IEEEFP_H
31476 #include <ieeefp.h>
31477 #endif
31478
31479 int
31480 main ()
31481 {
31482 _isinff(0);
31483 ;
31484 return 0;
31485 }
31486 _ACEOF
31487 rm -f conftest.$ac_objext
31488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31489 (eval $ac_compile) 2>&5
31490 ac_status=$?
31491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492 (exit $ac_status); } &&
31493 { ac_try='test -s conftest.$ac_objext'
31494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31495 (eval $ac_try) 2>&5
31496 ac_status=$?
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); }; }; then
31499 glibcxx_cv_func__isinff_use=yes
31500 else
31501 echo "$as_me: failed program was:" >&5
31502 sed 's/^/| /' conftest.$ac_ext >&5
31503
31504 glibcxx_cv_func__isinff_use=no
31505 fi
31506 rm -f conftest.$ac_objext conftest.$ac_ext
31507 ac_ext=c
31508 ac_cpp='$CPP $CPPFLAGS'
31509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31512
31513
31514 fi
31515
31516 fi
31517 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
31518 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
31519
31520 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
31521
31522 for ac_func in _isinff
31523 do
31524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31525 echo "$as_me:$LINENO: checking for $ac_func" >&5
31526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31527 if eval "test \"\${$as_ac_var+set}\" = set"; then
31528 echo $ECHO_N "(cached) $ECHO_C" >&6
31529 else
31530 if test x$gcc_no_link = xyes; then
31531 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31533 { (exit 1); exit 1; }; }
31534 fi
31535 cat >conftest.$ac_ext <<_ACEOF
31536 #line $LINENO "configure"
31537 /* confdefs.h. */
31538 _ACEOF
31539 cat confdefs.h >>conftest.$ac_ext
31540 cat >>conftest.$ac_ext <<_ACEOF
31541 /* end confdefs.h. */
31542 /* System header to define __stub macros and hopefully few prototypes,
31543 which can conflict with char $ac_func (); below.
31544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31545 <limits.h> exists even on freestanding compilers. */
31546 #ifdef __STDC__
31547 # include <limits.h>
31548 #else
31549 # include <assert.h>
31550 #endif
31551 /* Override any gcc2 internal prototype to avoid an error. */
31552 #ifdef __cplusplus
31553 extern "C"
31554 {
31555 #endif
31556 /* We use char because int might match the return type of a gcc2
31557 builtin and then its argument prototype would still apply. */
31558 char $ac_func ();
31559 /* The GNU C library defines this for functions which it implements
31560 to always fail with ENOSYS. Some functions are actually named
31561 something starting with __ and the normal name is an alias. */
31562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31563 choke me
31564 #else
31565 char (*f) () = $ac_func;
31566 #endif
31567 #ifdef __cplusplus
31568 }
31569 #endif
31570
31571 int
31572 main ()
31573 {
31574 return f != $ac_func;
31575 ;
31576 return 0;
31577 }
31578 _ACEOF
31579 rm -f conftest.$ac_objext conftest$ac_exeext
31580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31581 (eval $ac_link) 2>&5
31582 ac_status=$?
31583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31584 (exit $ac_status); } &&
31585 { ac_try='test -s conftest$ac_exeext'
31586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31587 (eval $ac_try) 2>&5
31588 ac_status=$?
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); }; }; then
31591 eval "$as_ac_var=yes"
31592 else
31593 echo "$as_me: failed program was:" >&5
31594 sed 's/^/| /' conftest.$ac_ext >&5
31595
31596 eval "$as_ac_var=no"
31597 fi
31598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31599 fi
31600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31602 if test `eval echo '${'$as_ac_var'}'` = yes; then
31603 cat >>confdefs.h <<_ACEOF
31604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31605 _ACEOF
31606
31607 fi
31608 done
31609
31610 fi
31611 fi
31612
31613
31614
31615 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
31616 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
31617 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
31618 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
31619 echo $ECHO_N "(cached) $ECHO_C" >&6
31620 else
31621
31622
31623
31624 ac_ext=cc
31625 ac_cpp='$CXXCPP $CPPFLAGS'
31626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31629
31630 cat >conftest.$ac_ext <<_ACEOF
31631 #line $LINENO "configure"
31632 /* confdefs.h. */
31633 _ACEOF
31634 cat confdefs.h >>conftest.$ac_ext
31635 cat >>conftest.$ac_ext <<_ACEOF
31636 /* end confdefs.h. */
31637 #include <math.h>
31638 int
31639 main ()
31640 {
31641 atan2f(0, 0);
31642 ;
31643 return 0;
31644 }
31645 _ACEOF
31646 rm -f conftest.$ac_objext
31647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31648 (eval $ac_compile) 2>&5
31649 ac_status=$?
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); } &&
31652 { ac_try='test -s conftest.$ac_objext'
31653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31654 (eval $ac_try) 2>&5
31655 ac_status=$?
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); }; }; then
31658 glibcxx_cv_func_atan2f_use=yes
31659 else
31660 echo "$as_me: failed program was:" >&5
31661 sed 's/^/| /' conftest.$ac_ext >&5
31662
31663 glibcxx_cv_func_atan2f_use=no
31664 fi
31665 rm -f conftest.$ac_objext conftest.$ac_ext
31666 ac_ext=c
31667 ac_cpp='$CPP $CPPFLAGS'
31668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31671
31672
31673 fi
31674
31675 fi
31676 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
31677 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
31678
31679 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
31680
31681 for ac_func in atan2f
31682 do
31683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31684 echo "$as_me:$LINENO: checking for $ac_func" >&5
31685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31686 if eval "test \"\${$as_ac_var+set}\" = set"; then
31687 echo $ECHO_N "(cached) $ECHO_C" >&6
31688 else
31689 if test x$gcc_no_link = xyes; then
31690 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31691 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31692 { (exit 1); exit 1; }; }
31693 fi
31694 cat >conftest.$ac_ext <<_ACEOF
31695 #line $LINENO "configure"
31696 /* confdefs.h. */
31697 _ACEOF
31698 cat confdefs.h >>conftest.$ac_ext
31699 cat >>conftest.$ac_ext <<_ACEOF
31700 /* end confdefs.h. */
31701 /* System header to define __stub macros and hopefully few prototypes,
31702 which can conflict with char $ac_func (); below.
31703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31704 <limits.h> exists even on freestanding compilers. */
31705 #ifdef __STDC__
31706 # include <limits.h>
31707 #else
31708 # include <assert.h>
31709 #endif
31710 /* Override any gcc2 internal prototype to avoid an error. */
31711 #ifdef __cplusplus
31712 extern "C"
31713 {
31714 #endif
31715 /* We use char because int might match the return type of a gcc2
31716 builtin and then its argument prototype would still apply. */
31717 char $ac_func ();
31718 /* The GNU C library defines this for functions which it implements
31719 to always fail with ENOSYS. Some functions are actually named
31720 something starting with __ and the normal name is an alias. */
31721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31722 choke me
31723 #else
31724 char (*f) () = $ac_func;
31725 #endif
31726 #ifdef __cplusplus
31727 }
31728 #endif
31729
31730 int
31731 main ()
31732 {
31733 return f != $ac_func;
31734 ;
31735 return 0;
31736 }
31737 _ACEOF
31738 rm -f conftest.$ac_objext conftest$ac_exeext
31739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31740 (eval $ac_link) 2>&5
31741 ac_status=$?
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); } &&
31744 { ac_try='test -s conftest$ac_exeext'
31745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31746 (eval $ac_try) 2>&5
31747 ac_status=$?
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); }; }; then
31750 eval "$as_ac_var=yes"
31751 else
31752 echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31754
31755 eval "$as_ac_var=no"
31756 fi
31757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31758 fi
31759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31761 if test `eval echo '${'$as_ac_var'}'` = yes; then
31762 cat >>confdefs.h <<_ACEOF
31763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31764 _ACEOF
31765
31766 fi
31767 done
31768
31769 else
31770
31771 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
31772 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
31773 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
31774 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
31775 echo $ECHO_N "(cached) $ECHO_C" >&6
31776 else
31777
31778
31779
31780 ac_ext=cc
31781 ac_cpp='$CXXCPP $CPPFLAGS'
31782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31785
31786 cat >conftest.$ac_ext <<_ACEOF
31787 #line $LINENO "configure"
31788 /* confdefs.h. */
31789 _ACEOF
31790 cat confdefs.h >>conftest.$ac_ext
31791 cat >>conftest.$ac_ext <<_ACEOF
31792 /* end confdefs.h. */
31793 #include <math.h>
31794 int
31795 main ()
31796 {
31797 _atan2f(0, 0);
31798 ;
31799 return 0;
31800 }
31801 _ACEOF
31802 rm -f conftest.$ac_objext
31803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31804 (eval $ac_compile) 2>&5
31805 ac_status=$?
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); } &&
31808 { ac_try='test -s conftest.$ac_objext'
31809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31810 (eval $ac_try) 2>&5
31811 ac_status=$?
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); }; }; then
31814 glibcxx_cv_func__atan2f_use=yes
31815 else
31816 echo "$as_me: failed program was:" >&5
31817 sed 's/^/| /' conftest.$ac_ext >&5
31818
31819 glibcxx_cv_func__atan2f_use=no
31820 fi
31821 rm -f conftest.$ac_objext conftest.$ac_ext
31822 ac_ext=c
31823 ac_cpp='$CPP $CPPFLAGS'
31824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31827
31828
31829 fi
31830
31831 fi
31832 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
31833 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
31834
31835 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
31836
31837 for ac_func in _atan2f
31838 do
31839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31840 echo "$as_me:$LINENO: checking for $ac_func" >&5
31841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31842 if eval "test \"\${$as_ac_var+set}\" = set"; then
31843 echo $ECHO_N "(cached) $ECHO_C" >&6
31844 else
31845 if test x$gcc_no_link = xyes; then
31846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31848 { (exit 1); exit 1; }; }
31849 fi
31850 cat >conftest.$ac_ext <<_ACEOF
31851 #line $LINENO "configure"
31852 /* confdefs.h. */
31853 _ACEOF
31854 cat confdefs.h >>conftest.$ac_ext
31855 cat >>conftest.$ac_ext <<_ACEOF
31856 /* end confdefs.h. */
31857 /* System header to define __stub macros and hopefully few prototypes,
31858 which can conflict with char $ac_func (); below.
31859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31860 <limits.h> exists even on freestanding compilers. */
31861 #ifdef __STDC__
31862 # include <limits.h>
31863 #else
31864 # include <assert.h>
31865 #endif
31866 /* Override any gcc2 internal prototype to avoid an error. */
31867 #ifdef __cplusplus
31868 extern "C"
31869 {
31870 #endif
31871 /* We use char because int might match the return type of a gcc2
31872 builtin and then its argument prototype would still apply. */
31873 char $ac_func ();
31874 /* The GNU C library defines this for functions which it implements
31875 to always fail with ENOSYS. Some functions are actually named
31876 something starting with __ and the normal name is an alias. */
31877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31878 choke me
31879 #else
31880 char (*f) () = $ac_func;
31881 #endif
31882 #ifdef __cplusplus
31883 }
31884 #endif
31885
31886 int
31887 main ()
31888 {
31889 return f != $ac_func;
31890 ;
31891 return 0;
31892 }
31893 _ACEOF
31894 rm -f conftest.$ac_objext conftest$ac_exeext
31895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31896 (eval $ac_link) 2>&5
31897 ac_status=$?
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } &&
31900 { ac_try='test -s conftest$ac_exeext'
31901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31902 (eval $ac_try) 2>&5
31903 ac_status=$?
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); }; }; then
31906 eval "$as_ac_var=yes"
31907 else
31908 echo "$as_me: failed program was:" >&5
31909 sed 's/^/| /' conftest.$ac_ext >&5
31910
31911 eval "$as_ac_var=no"
31912 fi
31913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31914 fi
31915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31917 if test `eval echo '${'$as_ac_var'}'` = yes; then
31918 cat >>confdefs.h <<_ACEOF
31919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31920 _ACEOF
31921
31922 fi
31923 done
31924
31925 fi
31926 fi
31927
31928
31929
31930 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
31931 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
31932 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
31933 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
31934 echo $ECHO_N "(cached) $ECHO_C" >&6
31935 else
31936
31937
31938
31939 ac_ext=cc
31940 ac_cpp='$CXXCPP $CPPFLAGS'
31941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31944
31945 cat >conftest.$ac_ext <<_ACEOF
31946 #line $LINENO "configure"
31947 /* confdefs.h. */
31948 _ACEOF
31949 cat confdefs.h >>conftest.$ac_ext
31950 cat >>conftest.$ac_ext <<_ACEOF
31951 /* end confdefs.h. */
31952 #include <math.h>
31953 #ifdef HAVE_IEEEFP_H
31954 #include <ieeefp.h>
31955 #endif
31956
31957 int
31958 main ()
31959 {
31960 fabsf(0);
31961 ;
31962 return 0;
31963 }
31964 _ACEOF
31965 rm -f conftest.$ac_objext
31966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31967 (eval $ac_compile) 2>&5
31968 ac_status=$?
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); } &&
31971 { ac_try='test -s conftest.$ac_objext'
31972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31973 (eval $ac_try) 2>&5
31974 ac_status=$?
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); }; }; then
31977 glibcxx_cv_func_fabsf_use=yes
31978 else
31979 echo "$as_me: failed program was:" >&5
31980 sed 's/^/| /' conftest.$ac_ext >&5
31981
31982 glibcxx_cv_func_fabsf_use=no
31983 fi
31984 rm -f conftest.$ac_objext conftest.$ac_ext
31985 ac_ext=c
31986 ac_cpp='$CPP $CPPFLAGS'
31987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31990
31991
31992 fi
31993
31994 fi
31995 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
31996 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
31997
31998 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
31999
32000 for ac_func in fabsf
32001 do
32002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32003 echo "$as_me:$LINENO: checking for $ac_func" >&5
32004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32005 if eval "test \"\${$as_ac_var+set}\" = set"; then
32006 echo $ECHO_N "(cached) $ECHO_C" >&6
32007 else
32008 if test x$gcc_no_link = xyes; then
32009 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32010 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32011 { (exit 1); exit 1; }; }
32012 fi
32013 cat >conftest.$ac_ext <<_ACEOF
32014 #line $LINENO "configure"
32015 /* confdefs.h. */
32016 _ACEOF
32017 cat confdefs.h >>conftest.$ac_ext
32018 cat >>conftest.$ac_ext <<_ACEOF
32019 /* end confdefs.h. */
32020 /* System header to define __stub macros and hopefully few prototypes,
32021 which can conflict with char $ac_func (); below.
32022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32023 <limits.h> exists even on freestanding compilers. */
32024 #ifdef __STDC__
32025 # include <limits.h>
32026 #else
32027 # include <assert.h>
32028 #endif
32029 /* Override any gcc2 internal prototype to avoid an error. */
32030 #ifdef __cplusplus
32031 extern "C"
32032 {
32033 #endif
32034 /* We use char because int might match the return type of a gcc2
32035 builtin and then its argument prototype would still apply. */
32036 char $ac_func ();
32037 /* The GNU C library defines this for functions which it implements
32038 to always fail with ENOSYS. Some functions are actually named
32039 something starting with __ and the normal name is an alias. */
32040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32041 choke me
32042 #else
32043 char (*f) () = $ac_func;
32044 #endif
32045 #ifdef __cplusplus
32046 }
32047 #endif
32048
32049 int
32050 main ()
32051 {
32052 return f != $ac_func;
32053 ;
32054 return 0;
32055 }
32056 _ACEOF
32057 rm -f conftest.$ac_objext conftest$ac_exeext
32058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32059 (eval $ac_link) 2>&5
32060 ac_status=$?
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); } &&
32063 { ac_try='test -s conftest$ac_exeext'
32064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065 (eval $ac_try) 2>&5
32066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; }; then
32069 eval "$as_ac_var=yes"
32070 else
32071 echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32073
32074 eval "$as_ac_var=no"
32075 fi
32076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32077 fi
32078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32080 if test `eval echo '${'$as_ac_var'}'` = yes; then
32081 cat >>confdefs.h <<_ACEOF
32082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32083 _ACEOF
32084
32085 fi
32086 done
32087
32088 else
32089
32090 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
32091 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
32092 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
32093 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
32094 echo $ECHO_N "(cached) $ECHO_C" >&6
32095 else
32096
32097
32098
32099 ac_ext=cc
32100 ac_cpp='$CXXCPP $CPPFLAGS'
32101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32104
32105 cat >conftest.$ac_ext <<_ACEOF
32106 #line $LINENO "configure"
32107 /* confdefs.h. */
32108 _ACEOF
32109 cat confdefs.h >>conftest.$ac_ext
32110 cat >>conftest.$ac_ext <<_ACEOF
32111 /* end confdefs.h. */
32112 #include <math.h>
32113 #ifdef HAVE_IEEEFP_H
32114 #include <ieeefp.h>
32115 #endif
32116
32117 int
32118 main ()
32119 {
32120 _fabsf(0);
32121 ;
32122 return 0;
32123 }
32124 _ACEOF
32125 rm -f conftest.$ac_objext
32126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32127 (eval $ac_compile) 2>&5
32128 ac_status=$?
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); } &&
32131 { ac_try='test -s conftest.$ac_objext'
32132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32133 (eval $ac_try) 2>&5
32134 ac_status=$?
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); }; }; then
32137 glibcxx_cv_func__fabsf_use=yes
32138 else
32139 echo "$as_me: failed program was:" >&5
32140 sed 's/^/| /' conftest.$ac_ext >&5
32141
32142 glibcxx_cv_func__fabsf_use=no
32143 fi
32144 rm -f conftest.$ac_objext conftest.$ac_ext
32145 ac_ext=c
32146 ac_cpp='$CPP $CPPFLAGS'
32147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32150
32151
32152 fi
32153
32154 fi
32155 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
32156 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
32157
32158 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
32159
32160 for ac_func in _fabsf
32161 do
32162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32163 echo "$as_me:$LINENO: checking for $ac_func" >&5
32164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32165 if eval "test \"\${$as_ac_var+set}\" = set"; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32167 else
32168 if test x$gcc_no_link = xyes; then
32169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32171 { (exit 1); exit 1; }; }
32172 fi
32173 cat >conftest.$ac_ext <<_ACEOF
32174 #line $LINENO "configure"
32175 /* confdefs.h. */
32176 _ACEOF
32177 cat confdefs.h >>conftest.$ac_ext
32178 cat >>conftest.$ac_ext <<_ACEOF
32179 /* end confdefs.h. */
32180 /* System header to define __stub macros and hopefully few prototypes,
32181 which can conflict with char $ac_func (); below.
32182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32183 <limits.h> exists even on freestanding compilers. */
32184 #ifdef __STDC__
32185 # include <limits.h>
32186 #else
32187 # include <assert.h>
32188 #endif
32189 /* Override any gcc2 internal prototype to avoid an error. */
32190 #ifdef __cplusplus
32191 extern "C"
32192 {
32193 #endif
32194 /* We use char because int might match the return type of a gcc2
32195 builtin and then its argument prototype would still apply. */
32196 char $ac_func ();
32197 /* The GNU C library defines this for functions which it implements
32198 to always fail with ENOSYS. Some functions are actually named
32199 something starting with __ and the normal name is an alias. */
32200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32201 choke me
32202 #else
32203 char (*f) () = $ac_func;
32204 #endif
32205 #ifdef __cplusplus
32206 }
32207 #endif
32208
32209 int
32210 main ()
32211 {
32212 return f != $ac_func;
32213 ;
32214 return 0;
32215 }
32216 _ACEOF
32217 rm -f conftest.$ac_objext conftest$ac_exeext
32218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32219 (eval $ac_link) 2>&5
32220 ac_status=$?
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); } &&
32223 { ac_try='test -s conftest$ac_exeext'
32224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32225 (eval $ac_try) 2>&5
32226 ac_status=$?
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); }; }; then
32229 eval "$as_ac_var=yes"
32230 else
32231 echo "$as_me: failed program was:" >&5
32232 sed 's/^/| /' conftest.$ac_ext >&5
32233
32234 eval "$as_ac_var=no"
32235 fi
32236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32237 fi
32238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32240 if test `eval echo '${'$as_ac_var'}'` = yes; then
32241 cat >>confdefs.h <<_ACEOF
32242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32243 _ACEOF
32244
32245 fi
32246 done
32247
32248 fi
32249 fi
32250
32251
32252
32253 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
32254 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
32255 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
32256 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32258 else
32259
32260
32261
32262 ac_ext=cc
32263 ac_cpp='$CXXCPP $CPPFLAGS'
32264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32267
32268 cat >conftest.$ac_ext <<_ACEOF
32269 #line $LINENO "configure"
32270 /* confdefs.h. */
32271 _ACEOF
32272 cat confdefs.h >>conftest.$ac_ext
32273 cat >>conftest.$ac_ext <<_ACEOF
32274 /* end confdefs.h. */
32275 #include <math.h>
32276 int
32277 main ()
32278 {
32279 fmodf(0, 0);
32280 ;
32281 return 0;
32282 }
32283 _ACEOF
32284 rm -f conftest.$ac_objext
32285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32286 (eval $ac_compile) 2>&5
32287 ac_status=$?
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); } &&
32290 { ac_try='test -s conftest.$ac_objext'
32291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32292 (eval $ac_try) 2>&5
32293 ac_status=$?
32294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295 (exit $ac_status); }; }; then
32296 glibcxx_cv_func_fmodf_use=yes
32297 else
32298 echo "$as_me: failed program was:" >&5
32299 sed 's/^/| /' conftest.$ac_ext >&5
32300
32301 glibcxx_cv_func_fmodf_use=no
32302 fi
32303 rm -f conftest.$ac_objext conftest.$ac_ext
32304 ac_ext=c
32305 ac_cpp='$CPP $CPPFLAGS'
32306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32309
32310
32311 fi
32312
32313 fi
32314 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
32315 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
32316
32317 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
32318
32319 for ac_func in fmodf
32320 do
32321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32322 echo "$as_me:$LINENO: checking for $ac_func" >&5
32323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32324 if eval "test \"\${$as_ac_var+set}\" = set"; then
32325 echo $ECHO_N "(cached) $ECHO_C" >&6
32326 else
32327 if test x$gcc_no_link = xyes; then
32328 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32330 { (exit 1); exit 1; }; }
32331 fi
32332 cat >conftest.$ac_ext <<_ACEOF
32333 #line $LINENO "configure"
32334 /* confdefs.h. */
32335 _ACEOF
32336 cat confdefs.h >>conftest.$ac_ext
32337 cat >>conftest.$ac_ext <<_ACEOF
32338 /* end confdefs.h. */
32339 /* System header to define __stub macros and hopefully few prototypes,
32340 which can conflict with char $ac_func (); below.
32341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32342 <limits.h> exists even on freestanding compilers. */
32343 #ifdef __STDC__
32344 # include <limits.h>
32345 #else
32346 # include <assert.h>
32347 #endif
32348 /* Override any gcc2 internal prototype to avoid an error. */
32349 #ifdef __cplusplus
32350 extern "C"
32351 {
32352 #endif
32353 /* We use char because int might match the return type of a gcc2
32354 builtin and then its argument prototype would still apply. */
32355 char $ac_func ();
32356 /* The GNU C library defines this for functions which it implements
32357 to always fail with ENOSYS. Some functions are actually named
32358 something starting with __ and the normal name is an alias. */
32359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32360 choke me
32361 #else
32362 char (*f) () = $ac_func;
32363 #endif
32364 #ifdef __cplusplus
32365 }
32366 #endif
32367
32368 int
32369 main ()
32370 {
32371 return f != $ac_func;
32372 ;
32373 return 0;
32374 }
32375 _ACEOF
32376 rm -f conftest.$ac_objext conftest$ac_exeext
32377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32378 (eval $ac_link) 2>&5
32379 ac_status=$?
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); } &&
32382 { ac_try='test -s conftest$ac_exeext'
32383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32384 (eval $ac_try) 2>&5
32385 ac_status=$?
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; }; then
32388 eval "$as_ac_var=yes"
32389 else
32390 echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32392
32393 eval "$as_ac_var=no"
32394 fi
32395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32396 fi
32397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32399 if test `eval echo '${'$as_ac_var'}'` = yes; then
32400 cat >>confdefs.h <<_ACEOF
32401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32402 _ACEOF
32403
32404 fi
32405 done
32406
32407 else
32408
32409 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
32410 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
32411 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
32412 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
32413 echo $ECHO_N "(cached) $ECHO_C" >&6
32414 else
32415
32416
32417
32418 ac_ext=cc
32419 ac_cpp='$CXXCPP $CPPFLAGS'
32420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32423
32424 cat >conftest.$ac_ext <<_ACEOF
32425 #line $LINENO "configure"
32426 /* confdefs.h. */
32427 _ACEOF
32428 cat confdefs.h >>conftest.$ac_ext
32429 cat >>conftest.$ac_ext <<_ACEOF
32430 /* end confdefs.h. */
32431 #include <math.h>
32432 int
32433 main ()
32434 {
32435 _fmodf(0, 0);
32436 ;
32437 return 0;
32438 }
32439 _ACEOF
32440 rm -f conftest.$ac_objext
32441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32442 (eval $ac_compile) 2>&5
32443 ac_status=$?
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } &&
32446 { ac_try='test -s conftest.$ac_objext'
32447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448 (eval $ac_try) 2>&5
32449 ac_status=$?
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); }; }; then
32452 glibcxx_cv_func__fmodf_use=yes
32453 else
32454 echo "$as_me: failed program was:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32456
32457 glibcxx_cv_func__fmodf_use=no
32458 fi
32459 rm -f conftest.$ac_objext conftest.$ac_ext
32460 ac_ext=c
32461 ac_cpp='$CPP $CPPFLAGS'
32462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32465
32466
32467 fi
32468
32469 fi
32470 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
32471 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
32472
32473 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
32474
32475 for ac_func in _fmodf
32476 do
32477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32478 echo "$as_me:$LINENO: checking for $ac_func" >&5
32479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32480 if eval "test \"\${$as_ac_var+set}\" = set"; then
32481 echo $ECHO_N "(cached) $ECHO_C" >&6
32482 else
32483 if test x$gcc_no_link = xyes; then
32484 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32485 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32486 { (exit 1); exit 1; }; }
32487 fi
32488 cat >conftest.$ac_ext <<_ACEOF
32489 #line $LINENO "configure"
32490 /* confdefs.h. */
32491 _ACEOF
32492 cat confdefs.h >>conftest.$ac_ext
32493 cat >>conftest.$ac_ext <<_ACEOF
32494 /* end confdefs.h. */
32495 /* System header to define __stub macros and hopefully few prototypes,
32496 which can conflict with char $ac_func (); below.
32497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32498 <limits.h> exists even on freestanding compilers. */
32499 #ifdef __STDC__
32500 # include <limits.h>
32501 #else
32502 # include <assert.h>
32503 #endif
32504 /* Override any gcc2 internal prototype to avoid an error. */
32505 #ifdef __cplusplus
32506 extern "C"
32507 {
32508 #endif
32509 /* We use char because int might match the return type of a gcc2
32510 builtin and then its argument prototype would still apply. */
32511 char $ac_func ();
32512 /* The GNU C library defines this for functions which it implements
32513 to always fail with ENOSYS. Some functions are actually named
32514 something starting with __ and the normal name is an alias. */
32515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32516 choke me
32517 #else
32518 char (*f) () = $ac_func;
32519 #endif
32520 #ifdef __cplusplus
32521 }
32522 #endif
32523
32524 int
32525 main ()
32526 {
32527 return f != $ac_func;
32528 ;
32529 return 0;
32530 }
32531 _ACEOF
32532 rm -f conftest.$ac_objext conftest$ac_exeext
32533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32534 (eval $ac_link) 2>&5
32535 ac_status=$?
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); } &&
32538 { ac_try='test -s conftest$ac_exeext'
32539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 (eval $ac_try) 2>&5
32541 ac_status=$?
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; }; then
32544 eval "$as_ac_var=yes"
32545 else
32546 echo "$as_me: failed program was:" >&5
32547 sed 's/^/| /' conftest.$ac_ext >&5
32548
32549 eval "$as_ac_var=no"
32550 fi
32551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32552 fi
32553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32555 if test `eval echo '${'$as_ac_var'}'` = yes; then
32556 cat >>confdefs.h <<_ACEOF
32557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32558 _ACEOF
32559
32560 fi
32561 done
32562
32563 fi
32564 fi
32565
32566
32567
32568 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
32569 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
32570 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
32571 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
32572 echo $ECHO_N "(cached) $ECHO_C" >&6
32573 else
32574
32575
32576
32577 ac_ext=cc
32578 ac_cpp='$CXXCPP $CPPFLAGS'
32579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32582
32583 cat >conftest.$ac_ext <<_ACEOF
32584 #line $LINENO "configure"
32585 /* confdefs.h. */
32586 _ACEOF
32587 cat confdefs.h >>conftest.$ac_ext
32588 cat >>conftest.$ac_ext <<_ACEOF
32589 /* end confdefs.h. */
32590 #include <math.h>
32591 int
32592 main ()
32593 {
32594 frexpf(0, 0);
32595 ;
32596 return 0;
32597 }
32598 _ACEOF
32599 rm -f conftest.$ac_objext
32600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32601 (eval $ac_compile) 2>&5
32602 ac_status=$?
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); } &&
32605 { ac_try='test -s conftest.$ac_objext'
32606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32607 (eval $ac_try) 2>&5
32608 ac_status=$?
32609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32610 (exit $ac_status); }; }; then
32611 glibcxx_cv_func_frexpf_use=yes
32612 else
32613 echo "$as_me: failed program was:" >&5
32614 sed 's/^/| /' conftest.$ac_ext >&5
32615
32616 glibcxx_cv_func_frexpf_use=no
32617 fi
32618 rm -f conftest.$ac_objext conftest.$ac_ext
32619 ac_ext=c
32620 ac_cpp='$CPP $CPPFLAGS'
32621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32624
32625
32626 fi
32627
32628 fi
32629 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
32630 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
32631
32632 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
32633
32634 for ac_func in frexpf
32635 do
32636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32637 echo "$as_me:$LINENO: checking for $ac_func" >&5
32638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32639 if eval "test \"\${$as_ac_var+set}\" = set"; then
32640 echo $ECHO_N "(cached) $ECHO_C" >&6
32641 else
32642 if test x$gcc_no_link = xyes; then
32643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32645 { (exit 1); exit 1; }; }
32646 fi
32647 cat >conftest.$ac_ext <<_ACEOF
32648 #line $LINENO "configure"
32649 /* confdefs.h. */
32650 _ACEOF
32651 cat confdefs.h >>conftest.$ac_ext
32652 cat >>conftest.$ac_ext <<_ACEOF
32653 /* end confdefs.h. */
32654 /* System header to define __stub macros and hopefully few prototypes,
32655 which can conflict with char $ac_func (); below.
32656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32657 <limits.h> exists even on freestanding compilers. */
32658 #ifdef __STDC__
32659 # include <limits.h>
32660 #else
32661 # include <assert.h>
32662 #endif
32663 /* Override any gcc2 internal prototype to avoid an error. */
32664 #ifdef __cplusplus
32665 extern "C"
32666 {
32667 #endif
32668 /* We use char because int might match the return type of a gcc2
32669 builtin and then its argument prototype would still apply. */
32670 char $ac_func ();
32671 /* The GNU C library defines this for functions which it implements
32672 to always fail with ENOSYS. Some functions are actually named
32673 something starting with __ and the normal name is an alias. */
32674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32675 choke me
32676 #else
32677 char (*f) () = $ac_func;
32678 #endif
32679 #ifdef __cplusplus
32680 }
32681 #endif
32682
32683 int
32684 main ()
32685 {
32686 return f != $ac_func;
32687 ;
32688 return 0;
32689 }
32690 _ACEOF
32691 rm -f conftest.$ac_objext conftest$ac_exeext
32692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32693 (eval $ac_link) 2>&5
32694 ac_status=$?
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } &&
32697 { ac_try='test -s conftest$ac_exeext'
32698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32699 (eval $ac_try) 2>&5
32700 ac_status=$?
32701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702 (exit $ac_status); }; }; then
32703 eval "$as_ac_var=yes"
32704 else
32705 echo "$as_me: failed program was:" >&5
32706 sed 's/^/| /' conftest.$ac_ext >&5
32707
32708 eval "$as_ac_var=no"
32709 fi
32710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32711 fi
32712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32714 if test `eval echo '${'$as_ac_var'}'` = yes; then
32715 cat >>confdefs.h <<_ACEOF
32716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32717 _ACEOF
32718
32719 fi
32720 done
32721
32722 else
32723
32724 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
32725 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
32726 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
32727 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
32728 echo $ECHO_N "(cached) $ECHO_C" >&6
32729 else
32730
32731
32732
32733 ac_ext=cc
32734 ac_cpp='$CXXCPP $CPPFLAGS'
32735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32738
32739 cat >conftest.$ac_ext <<_ACEOF
32740 #line $LINENO "configure"
32741 /* confdefs.h. */
32742 _ACEOF
32743 cat confdefs.h >>conftest.$ac_ext
32744 cat >>conftest.$ac_ext <<_ACEOF
32745 /* end confdefs.h. */
32746 #include <math.h>
32747 int
32748 main ()
32749 {
32750 _frexpf(0, 0);
32751 ;
32752 return 0;
32753 }
32754 _ACEOF
32755 rm -f conftest.$ac_objext
32756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32757 (eval $ac_compile) 2>&5
32758 ac_status=$?
32759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760 (exit $ac_status); } &&
32761 { ac_try='test -s conftest.$ac_objext'
32762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32763 (eval $ac_try) 2>&5
32764 ac_status=$?
32765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 (exit $ac_status); }; }; then
32767 glibcxx_cv_func__frexpf_use=yes
32768 else
32769 echo "$as_me: failed program was:" >&5
32770 sed 's/^/| /' conftest.$ac_ext >&5
32771
32772 glibcxx_cv_func__frexpf_use=no
32773 fi
32774 rm -f conftest.$ac_objext conftest.$ac_ext
32775 ac_ext=c
32776 ac_cpp='$CPP $CPPFLAGS'
32777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32780
32781
32782 fi
32783
32784 fi
32785 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
32786 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
32787
32788 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
32789
32790 for ac_func in _frexpf
32791 do
32792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32793 echo "$as_me:$LINENO: checking for $ac_func" >&5
32794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32795 if eval "test \"\${$as_ac_var+set}\" = set"; then
32796 echo $ECHO_N "(cached) $ECHO_C" >&6
32797 else
32798 if test x$gcc_no_link = xyes; then
32799 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32801 { (exit 1); exit 1; }; }
32802 fi
32803 cat >conftest.$ac_ext <<_ACEOF
32804 #line $LINENO "configure"
32805 /* confdefs.h. */
32806 _ACEOF
32807 cat confdefs.h >>conftest.$ac_ext
32808 cat >>conftest.$ac_ext <<_ACEOF
32809 /* end confdefs.h. */
32810 /* System header to define __stub macros and hopefully few prototypes,
32811 which can conflict with char $ac_func (); below.
32812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32813 <limits.h> exists even on freestanding compilers. */
32814 #ifdef __STDC__
32815 # include <limits.h>
32816 #else
32817 # include <assert.h>
32818 #endif
32819 /* Override any gcc2 internal prototype to avoid an error. */
32820 #ifdef __cplusplus
32821 extern "C"
32822 {
32823 #endif
32824 /* We use char because int might match the return type of a gcc2
32825 builtin and then its argument prototype would still apply. */
32826 char $ac_func ();
32827 /* The GNU C library defines this for functions which it implements
32828 to always fail with ENOSYS. Some functions are actually named
32829 something starting with __ and the normal name is an alias. */
32830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32831 choke me
32832 #else
32833 char (*f) () = $ac_func;
32834 #endif
32835 #ifdef __cplusplus
32836 }
32837 #endif
32838
32839 int
32840 main ()
32841 {
32842 return f != $ac_func;
32843 ;
32844 return 0;
32845 }
32846 _ACEOF
32847 rm -f conftest.$ac_objext conftest$ac_exeext
32848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32849 (eval $ac_link) 2>&5
32850 ac_status=$?
32851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852 (exit $ac_status); } &&
32853 { ac_try='test -s conftest$ac_exeext'
32854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32855 (eval $ac_try) 2>&5
32856 ac_status=$?
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); }; }; then
32859 eval "$as_ac_var=yes"
32860 else
32861 echo "$as_me: failed program was:" >&5
32862 sed 's/^/| /' conftest.$ac_ext >&5
32863
32864 eval "$as_ac_var=no"
32865 fi
32866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32867 fi
32868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32870 if test `eval echo '${'$as_ac_var'}'` = yes; then
32871 cat >>confdefs.h <<_ACEOF
32872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32873 _ACEOF
32874
32875 fi
32876 done
32877
32878 fi
32879 fi
32880
32881
32882
32883 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
32884 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
32885 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
32886 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
32887 echo $ECHO_N "(cached) $ECHO_C" >&6
32888 else
32889
32890
32891
32892 ac_ext=cc
32893 ac_cpp='$CXXCPP $CPPFLAGS'
32894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32897
32898 cat >conftest.$ac_ext <<_ACEOF
32899 #line $LINENO "configure"
32900 /* confdefs.h. */
32901 _ACEOF
32902 cat confdefs.h >>conftest.$ac_ext
32903 cat >>conftest.$ac_ext <<_ACEOF
32904 /* end confdefs.h. */
32905 #include <math.h>
32906 int
32907 main ()
32908 {
32909 hypotf(0, 0);
32910 ;
32911 return 0;
32912 }
32913 _ACEOF
32914 rm -f conftest.$ac_objext
32915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32916 (eval $ac_compile) 2>&5
32917 ac_status=$?
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); } &&
32920 { ac_try='test -s conftest.$ac_objext'
32921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32922 (eval $ac_try) 2>&5
32923 ac_status=$?
32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925 (exit $ac_status); }; }; then
32926 glibcxx_cv_func_hypotf_use=yes
32927 else
32928 echo "$as_me: failed program was:" >&5
32929 sed 's/^/| /' conftest.$ac_ext >&5
32930
32931 glibcxx_cv_func_hypotf_use=no
32932 fi
32933 rm -f conftest.$ac_objext conftest.$ac_ext
32934 ac_ext=c
32935 ac_cpp='$CPP $CPPFLAGS'
32936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32939
32940
32941 fi
32942
32943 fi
32944 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
32945 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
32946
32947 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
32948
32949 for ac_func in hypotf
32950 do
32951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32952 echo "$as_me:$LINENO: checking for $ac_func" >&5
32953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32954 if eval "test \"\${$as_ac_var+set}\" = set"; then
32955 echo $ECHO_N "(cached) $ECHO_C" >&6
32956 else
32957 if test x$gcc_no_link = xyes; then
32958 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32960 { (exit 1); exit 1; }; }
32961 fi
32962 cat >conftest.$ac_ext <<_ACEOF
32963 #line $LINENO "configure"
32964 /* confdefs.h. */
32965 _ACEOF
32966 cat confdefs.h >>conftest.$ac_ext
32967 cat >>conftest.$ac_ext <<_ACEOF
32968 /* end confdefs.h. */
32969 /* System header to define __stub macros and hopefully few prototypes,
32970 which can conflict with char $ac_func (); below.
32971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32972 <limits.h> exists even on freestanding compilers. */
32973 #ifdef __STDC__
32974 # include <limits.h>
32975 #else
32976 # include <assert.h>
32977 #endif
32978 /* Override any gcc2 internal prototype to avoid an error. */
32979 #ifdef __cplusplus
32980 extern "C"
32981 {
32982 #endif
32983 /* We use char because int might match the return type of a gcc2
32984 builtin and then its argument prototype would still apply. */
32985 char $ac_func ();
32986 /* The GNU C library defines this for functions which it implements
32987 to always fail with ENOSYS. Some functions are actually named
32988 something starting with __ and the normal name is an alias. */
32989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32990 choke me
32991 #else
32992 char (*f) () = $ac_func;
32993 #endif
32994 #ifdef __cplusplus
32995 }
32996 #endif
32997
32998 int
32999 main ()
33000 {
33001 return f != $ac_func;
33002 ;
33003 return 0;
33004 }
33005 _ACEOF
33006 rm -f conftest.$ac_objext conftest$ac_exeext
33007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33008 (eval $ac_link) 2>&5
33009 ac_status=$?
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } &&
33012 { ac_try='test -s conftest$ac_exeext'
33013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014 (eval $ac_try) 2>&5
33015 ac_status=$?
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); }; }; then
33018 eval "$as_ac_var=yes"
33019 else
33020 echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33022
33023 eval "$as_ac_var=no"
33024 fi
33025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33026 fi
33027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33029 if test `eval echo '${'$as_ac_var'}'` = yes; then
33030 cat >>confdefs.h <<_ACEOF
33031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33032 _ACEOF
33033
33034 fi
33035 done
33036
33037 else
33038
33039 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
33040 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
33041 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
33042 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
33043 echo $ECHO_N "(cached) $ECHO_C" >&6
33044 else
33045
33046
33047
33048 ac_ext=cc
33049 ac_cpp='$CXXCPP $CPPFLAGS'
33050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33053
33054 cat >conftest.$ac_ext <<_ACEOF
33055 #line $LINENO "configure"
33056 /* confdefs.h. */
33057 _ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h. */
33061 #include <math.h>
33062 int
33063 main ()
33064 {
33065 _hypotf(0, 0);
33066 ;
33067 return 0;
33068 }
33069 _ACEOF
33070 rm -f conftest.$ac_objext
33071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33072 (eval $ac_compile) 2>&5
33073 ac_status=$?
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); } &&
33076 { ac_try='test -s conftest.$ac_objext'
33077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33078 (eval $ac_try) 2>&5
33079 ac_status=$?
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); }; }; then
33082 glibcxx_cv_func__hypotf_use=yes
33083 else
33084 echo "$as_me: failed program was:" >&5
33085 sed 's/^/| /' conftest.$ac_ext >&5
33086
33087 glibcxx_cv_func__hypotf_use=no
33088 fi
33089 rm -f conftest.$ac_objext conftest.$ac_ext
33090 ac_ext=c
33091 ac_cpp='$CPP $CPPFLAGS'
33092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33095
33096
33097 fi
33098
33099 fi
33100 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
33101 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
33102
33103 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
33104
33105 for ac_func in _hypotf
33106 do
33107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33108 echo "$as_me:$LINENO: checking for $ac_func" >&5
33109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33110 if eval "test \"\${$as_ac_var+set}\" = set"; then
33111 echo $ECHO_N "(cached) $ECHO_C" >&6
33112 else
33113 if test x$gcc_no_link = xyes; then
33114 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33116 { (exit 1); exit 1; }; }
33117 fi
33118 cat >conftest.$ac_ext <<_ACEOF
33119 #line $LINENO "configure"
33120 /* confdefs.h. */
33121 _ACEOF
33122 cat confdefs.h >>conftest.$ac_ext
33123 cat >>conftest.$ac_ext <<_ACEOF
33124 /* end confdefs.h. */
33125 /* System header to define __stub macros and hopefully few prototypes,
33126 which can conflict with char $ac_func (); below.
33127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33128 <limits.h> exists even on freestanding compilers. */
33129 #ifdef __STDC__
33130 # include <limits.h>
33131 #else
33132 # include <assert.h>
33133 #endif
33134 /* Override any gcc2 internal prototype to avoid an error. */
33135 #ifdef __cplusplus
33136 extern "C"
33137 {
33138 #endif
33139 /* We use char because int might match the return type of a gcc2
33140 builtin and then its argument prototype would still apply. */
33141 char $ac_func ();
33142 /* The GNU C library defines this for functions which it implements
33143 to always fail with ENOSYS. Some functions are actually named
33144 something starting with __ and the normal name is an alias. */
33145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33146 choke me
33147 #else
33148 char (*f) () = $ac_func;
33149 #endif
33150 #ifdef __cplusplus
33151 }
33152 #endif
33153
33154 int
33155 main ()
33156 {
33157 return f != $ac_func;
33158 ;
33159 return 0;
33160 }
33161 _ACEOF
33162 rm -f conftest.$ac_objext conftest$ac_exeext
33163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33164 (eval $ac_link) 2>&5
33165 ac_status=$?
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); } &&
33168 { ac_try='test -s conftest$ac_exeext'
33169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33170 (eval $ac_try) 2>&5
33171 ac_status=$?
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; }; then
33174 eval "$as_ac_var=yes"
33175 else
33176 echo "$as_me: failed program was:" >&5
33177 sed 's/^/| /' conftest.$ac_ext >&5
33178
33179 eval "$as_ac_var=no"
33180 fi
33181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33182 fi
33183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33185 if test `eval echo '${'$as_ac_var'}'` = yes; then
33186 cat >>confdefs.h <<_ACEOF
33187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33188 _ACEOF
33189
33190 fi
33191 done
33192
33193 fi
33194 fi
33195
33196
33197
33198 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
33199 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
33200 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
33201 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
33202 echo $ECHO_N "(cached) $ECHO_C" >&6
33203 else
33204
33205
33206
33207 ac_ext=cc
33208 ac_cpp='$CXXCPP $CPPFLAGS'
33209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33212
33213 cat >conftest.$ac_ext <<_ACEOF
33214 #line $LINENO "configure"
33215 /* confdefs.h. */
33216 _ACEOF
33217 cat confdefs.h >>conftest.$ac_ext
33218 cat >>conftest.$ac_ext <<_ACEOF
33219 /* end confdefs.h. */
33220 #include <math.h>
33221 int
33222 main ()
33223 {
33224 ldexpf(0, 0);
33225 ;
33226 return 0;
33227 }
33228 _ACEOF
33229 rm -f conftest.$ac_objext
33230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33231 (eval $ac_compile) 2>&5
33232 ac_status=$?
33233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234 (exit $ac_status); } &&
33235 { ac_try='test -s conftest.$ac_objext'
33236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33237 (eval $ac_try) 2>&5
33238 ac_status=$?
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); }; }; then
33241 glibcxx_cv_func_ldexpf_use=yes
33242 else
33243 echo "$as_me: failed program was:" >&5
33244 sed 's/^/| /' conftest.$ac_ext >&5
33245
33246 glibcxx_cv_func_ldexpf_use=no
33247 fi
33248 rm -f conftest.$ac_objext conftest.$ac_ext
33249 ac_ext=c
33250 ac_cpp='$CPP $CPPFLAGS'
33251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33254
33255
33256 fi
33257
33258 fi
33259 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
33260 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
33261
33262 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
33263
33264 for ac_func in ldexpf
33265 do
33266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33267 echo "$as_me:$LINENO: checking for $ac_func" >&5
33268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33269 if eval "test \"\${$as_ac_var+set}\" = set"; then
33270 echo $ECHO_N "(cached) $ECHO_C" >&6
33271 else
33272 if test x$gcc_no_link = xyes; then
33273 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33275 { (exit 1); exit 1; }; }
33276 fi
33277 cat >conftest.$ac_ext <<_ACEOF
33278 #line $LINENO "configure"
33279 /* confdefs.h. */
33280 _ACEOF
33281 cat confdefs.h >>conftest.$ac_ext
33282 cat >>conftest.$ac_ext <<_ACEOF
33283 /* end confdefs.h. */
33284 /* System header to define __stub macros and hopefully few prototypes,
33285 which can conflict with char $ac_func (); below.
33286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33287 <limits.h> exists even on freestanding compilers. */
33288 #ifdef __STDC__
33289 # include <limits.h>
33290 #else
33291 # include <assert.h>
33292 #endif
33293 /* Override any gcc2 internal prototype to avoid an error. */
33294 #ifdef __cplusplus
33295 extern "C"
33296 {
33297 #endif
33298 /* We use char because int might match the return type of a gcc2
33299 builtin and then its argument prototype would still apply. */
33300 char $ac_func ();
33301 /* The GNU C library defines this for functions which it implements
33302 to always fail with ENOSYS. Some functions are actually named
33303 something starting with __ and the normal name is an alias. */
33304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33305 choke me
33306 #else
33307 char (*f) () = $ac_func;
33308 #endif
33309 #ifdef __cplusplus
33310 }
33311 #endif
33312
33313 int
33314 main ()
33315 {
33316 return f != $ac_func;
33317 ;
33318 return 0;
33319 }
33320 _ACEOF
33321 rm -f conftest.$ac_objext conftest$ac_exeext
33322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33323 (eval $ac_link) 2>&5
33324 ac_status=$?
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); } &&
33327 { ac_try='test -s conftest$ac_exeext'
33328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329 (eval $ac_try) 2>&5
33330 ac_status=$?
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; }; then
33333 eval "$as_ac_var=yes"
33334 else
33335 echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33337
33338 eval "$as_ac_var=no"
33339 fi
33340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33341 fi
33342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33344 if test `eval echo '${'$as_ac_var'}'` = yes; then
33345 cat >>confdefs.h <<_ACEOF
33346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33347 _ACEOF
33348
33349 fi
33350 done
33351
33352 else
33353
33354 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
33355 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
33356 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
33357 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
33358 echo $ECHO_N "(cached) $ECHO_C" >&6
33359 else
33360
33361
33362
33363 ac_ext=cc
33364 ac_cpp='$CXXCPP $CPPFLAGS'
33365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33368
33369 cat >conftest.$ac_ext <<_ACEOF
33370 #line $LINENO "configure"
33371 /* confdefs.h. */
33372 _ACEOF
33373 cat confdefs.h >>conftest.$ac_ext
33374 cat >>conftest.$ac_ext <<_ACEOF
33375 /* end confdefs.h. */
33376 #include <math.h>
33377 int
33378 main ()
33379 {
33380 _ldexpf(0, 0);
33381 ;
33382 return 0;
33383 }
33384 _ACEOF
33385 rm -f conftest.$ac_objext
33386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33387 (eval $ac_compile) 2>&5
33388 ac_status=$?
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 (exit $ac_status); } &&
33391 { ac_try='test -s conftest.$ac_objext'
33392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33393 (eval $ac_try) 2>&5
33394 ac_status=$?
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); }; }; then
33397 glibcxx_cv_func__ldexpf_use=yes
33398 else
33399 echo "$as_me: failed program was:" >&5
33400 sed 's/^/| /' conftest.$ac_ext >&5
33401
33402 glibcxx_cv_func__ldexpf_use=no
33403 fi
33404 rm -f conftest.$ac_objext conftest.$ac_ext
33405 ac_ext=c
33406 ac_cpp='$CPP $CPPFLAGS'
33407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33410
33411
33412 fi
33413
33414 fi
33415 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
33416 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
33417
33418 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
33419
33420 for ac_func in _ldexpf
33421 do
33422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33423 echo "$as_me:$LINENO: checking for $ac_func" >&5
33424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33425 if eval "test \"\${$as_ac_var+set}\" = set"; then
33426 echo $ECHO_N "(cached) $ECHO_C" >&6
33427 else
33428 if test x$gcc_no_link = xyes; then
33429 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33431 { (exit 1); exit 1; }; }
33432 fi
33433 cat >conftest.$ac_ext <<_ACEOF
33434 #line $LINENO "configure"
33435 /* confdefs.h. */
33436 _ACEOF
33437 cat confdefs.h >>conftest.$ac_ext
33438 cat >>conftest.$ac_ext <<_ACEOF
33439 /* end confdefs.h. */
33440 /* System header to define __stub macros and hopefully few prototypes,
33441 which can conflict with char $ac_func (); below.
33442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33443 <limits.h> exists even on freestanding compilers. */
33444 #ifdef __STDC__
33445 # include <limits.h>
33446 #else
33447 # include <assert.h>
33448 #endif
33449 /* Override any gcc2 internal prototype to avoid an error. */
33450 #ifdef __cplusplus
33451 extern "C"
33452 {
33453 #endif
33454 /* We use char because int might match the return type of a gcc2
33455 builtin and then its argument prototype would still apply. */
33456 char $ac_func ();
33457 /* The GNU C library defines this for functions which it implements
33458 to always fail with ENOSYS. Some functions are actually named
33459 something starting with __ and the normal name is an alias. */
33460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33461 choke me
33462 #else
33463 char (*f) () = $ac_func;
33464 #endif
33465 #ifdef __cplusplus
33466 }
33467 #endif
33468
33469 int
33470 main ()
33471 {
33472 return f != $ac_func;
33473 ;
33474 return 0;
33475 }
33476 _ACEOF
33477 rm -f conftest.$ac_objext conftest$ac_exeext
33478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33479 (eval $ac_link) 2>&5
33480 ac_status=$?
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); } &&
33483 { ac_try='test -s conftest$ac_exeext'
33484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485 (eval $ac_try) 2>&5
33486 ac_status=$?
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); }; }; then
33489 eval "$as_ac_var=yes"
33490 else
33491 echo "$as_me: failed program was:" >&5
33492 sed 's/^/| /' conftest.$ac_ext >&5
33493
33494 eval "$as_ac_var=no"
33495 fi
33496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33497 fi
33498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33500 if test `eval echo '${'$as_ac_var'}'` = yes; then
33501 cat >>confdefs.h <<_ACEOF
33502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33503 _ACEOF
33504
33505 fi
33506 done
33507
33508 fi
33509 fi
33510
33511
33512
33513 echo "$as_me:$LINENO: checking for logf declaration" >&5
33514 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
33515 if test x${glibcxx_cv_func_logf_use+set} != xset; then
33516 if test "${glibcxx_cv_func_logf_use+set}" = set; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33518 else
33519
33520
33521
33522 ac_ext=cc
33523 ac_cpp='$CXXCPP $CPPFLAGS'
33524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33527
33528 cat >conftest.$ac_ext <<_ACEOF
33529 #line $LINENO "configure"
33530 /* confdefs.h. */
33531 _ACEOF
33532 cat confdefs.h >>conftest.$ac_ext
33533 cat >>conftest.$ac_ext <<_ACEOF
33534 /* end confdefs.h. */
33535 #include <math.h>
33536 #ifdef HAVE_IEEEFP_H
33537 #include <ieeefp.h>
33538 #endif
33539
33540 int
33541 main ()
33542 {
33543 logf(0);
33544 ;
33545 return 0;
33546 }
33547 _ACEOF
33548 rm -f conftest.$ac_objext
33549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33550 (eval $ac_compile) 2>&5
33551 ac_status=$?
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); } &&
33554 { ac_try='test -s conftest.$ac_objext'
33555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33556 (eval $ac_try) 2>&5
33557 ac_status=$?
33558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559 (exit $ac_status); }; }; then
33560 glibcxx_cv_func_logf_use=yes
33561 else
33562 echo "$as_me: failed program was:" >&5
33563 sed 's/^/| /' conftest.$ac_ext >&5
33564
33565 glibcxx_cv_func_logf_use=no
33566 fi
33567 rm -f conftest.$ac_objext conftest.$ac_ext
33568 ac_ext=c
33569 ac_cpp='$CPP $CPPFLAGS'
33570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33573
33574
33575 fi
33576
33577 fi
33578 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
33579 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
33580
33581 if test x$glibcxx_cv_func_logf_use = x"yes"; then
33582
33583 for ac_func in logf
33584 do
33585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33586 echo "$as_me:$LINENO: checking for $ac_func" >&5
33587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33588 if eval "test \"\${$as_ac_var+set}\" = set"; then
33589 echo $ECHO_N "(cached) $ECHO_C" >&6
33590 else
33591 if test x$gcc_no_link = xyes; then
33592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33594 { (exit 1); exit 1; }; }
33595 fi
33596 cat >conftest.$ac_ext <<_ACEOF
33597 #line $LINENO "configure"
33598 /* confdefs.h. */
33599 _ACEOF
33600 cat confdefs.h >>conftest.$ac_ext
33601 cat >>conftest.$ac_ext <<_ACEOF
33602 /* end confdefs.h. */
33603 /* System header to define __stub macros and hopefully few prototypes,
33604 which can conflict with char $ac_func (); below.
33605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33606 <limits.h> exists even on freestanding compilers. */
33607 #ifdef __STDC__
33608 # include <limits.h>
33609 #else
33610 # include <assert.h>
33611 #endif
33612 /* Override any gcc2 internal prototype to avoid an error. */
33613 #ifdef __cplusplus
33614 extern "C"
33615 {
33616 #endif
33617 /* We use char because int might match the return type of a gcc2
33618 builtin and then its argument prototype would still apply. */
33619 char $ac_func ();
33620 /* The GNU C library defines this for functions which it implements
33621 to always fail with ENOSYS. Some functions are actually named
33622 something starting with __ and the normal name is an alias. */
33623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33624 choke me
33625 #else
33626 char (*f) () = $ac_func;
33627 #endif
33628 #ifdef __cplusplus
33629 }
33630 #endif
33631
33632 int
33633 main ()
33634 {
33635 return f != $ac_func;
33636 ;
33637 return 0;
33638 }
33639 _ACEOF
33640 rm -f conftest.$ac_objext conftest$ac_exeext
33641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33642 (eval $ac_link) 2>&5
33643 ac_status=$?
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); } &&
33646 { ac_try='test -s conftest$ac_exeext'
33647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33648 (eval $ac_try) 2>&5
33649 ac_status=$?
33650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); }; }; then
33652 eval "$as_ac_var=yes"
33653 else
33654 echo "$as_me: failed program was:" >&5
33655 sed 's/^/| /' conftest.$ac_ext >&5
33656
33657 eval "$as_ac_var=no"
33658 fi
33659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33660 fi
33661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33663 if test `eval echo '${'$as_ac_var'}'` = yes; then
33664 cat >>confdefs.h <<_ACEOF
33665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33666 _ACEOF
33667
33668 fi
33669 done
33670
33671 else
33672
33673 echo "$as_me:$LINENO: checking for _logf declaration" >&5
33674 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
33675 if test x${glibcxx_cv_func__logf_use+set} != xset; then
33676 if test "${glibcxx_cv_func__logf_use+set}" = set; then
33677 echo $ECHO_N "(cached) $ECHO_C" >&6
33678 else
33679
33680
33681
33682 ac_ext=cc
33683 ac_cpp='$CXXCPP $CPPFLAGS'
33684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33687
33688 cat >conftest.$ac_ext <<_ACEOF
33689 #line $LINENO "configure"
33690 /* confdefs.h. */
33691 _ACEOF
33692 cat confdefs.h >>conftest.$ac_ext
33693 cat >>conftest.$ac_ext <<_ACEOF
33694 /* end confdefs.h. */
33695 #include <math.h>
33696 #ifdef HAVE_IEEEFP_H
33697 #include <ieeefp.h>
33698 #endif
33699
33700 int
33701 main ()
33702 {
33703 _logf(0);
33704 ;
33705 return 0;
33706 }
33707 _ACEOF
33708 rm -f conftest.$ac_objext
33709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33710 (eval $ac_compile) 2>&5
33711 ac_status=$?
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); } &&
33714 { ac_try='test -s conftest.$ac_objext'
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33717 ac_status=$?
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; }; then
33720 glibcxx_cv_func__logf_use=yes
33721 else
33722 echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33724
33725 glibcxx_cv_func__logf_use=no
33726 fi
33727 rm -f conftest.$ac_objext conftest.$ac_ext
33728 ac_ext=c
33729 ac_cpp='$CPP $CPPFLAGS'
33730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33733
33734
33735 fi
33736
33737 fi
33738 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
33739 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
33740
33741 if test x$glibcxx_cv_func__logf_use = x"yes"; then
33742
33743 for ac_func in _logf
33744 do
33745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33746 echo "$as_me:$LINENO: checking for $ac_func" >&5
33747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33748 if eval "test \"\${$as_ac_var+set}\" = set"; then
33749 echo $ECHO_N "(cached) $ECHO_C" >&6
33750 else
33751 if test x$gcc_no_link = xyes; then
33752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33754 { (exit 1); exit 1; }; }
33755 fi
33756 cat >conftest.$ac_ext <<_ACEOF
33757 #line $LINENO "configure"
33758 /* confdefs.h. */
33759 _ACEOF
33760 cat confdefs.h >>conftest.$ac_ext
33761 cat >>conftest.$ac_ext <<_ACEOF
33762 /* end confdefs.h. */
33763 /* System header to define __stub macros and hopefully few prototypes,
33764 which can conflict with char $ac_func (); below.
33765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33766 <limits.h> exists even on freestanding compilers. */
33767 #ifdef __STDC__
33768 # include <limits.h>
33769 #else
33770 # include <assert.h>
33771 #endif
33772 /* Override any gcc2 internal prototype to avoid an error. */
33773 #ifdef __cplusplus
33774 extern "C"
33775 {
33776 #endif
33777 /* We use char because int might match the return type of a gcc2
33778 builtin and then its argument prototype would still apply. */
33779 char $ac_func ();
33780 /* The GNU C library defines this for functions which it implements
33781 to always fail with ENOSYS. Some functions are actually named
33782 something starting with __ and the normal name is an alias. */
33783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33784 choke me
33785 #else
33786 char (*f) () = $ac_func;
33787 #endif
33788 #ifdef __cplusplus
33789 }
33790 #endif
33791
33792 int
33793 main ()
33794 {
33795 return f != $ac_func;
33796 ;
33797 return 0;
33798 }
33799 _ACEOF
33800 rm -f conftest.$ac_objext conftest$ac_exeext
33801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33802 (eval $ac_link) 2>&5
33803 ac_status=$?
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); } &&
33806 { ac_try='test -s conftest$ac_exeext'
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 eval "$as_ac_var=yes"
33813 else
33814 echo "$as_me: failed program was:" >&5
33815 sed 's/^/| /' conftest.$ac_ext >&5
33816
33817 eval "$as_ac_var=no"
33818 fi
33819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33820 fi
33821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33823 if test `eval echo '${'$as_ac_var'}'` = yes; then
33824 cat >>confdefs.h <<_ACEOF
33825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33826 _ACEOF
33827
33828 fi
33829 done
33830
33831 fi
33832 fi
33833
33834
33835
33836 echo "$as_me:$LINENO: checking for log10f declaration" >&5
33837 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
33838 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
33839 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
33840 echo $ECHO_N "(cached) $ECHO_C" >&6
33841 else
33842
33843
33844
33845 ac_ext=cc
33846 ac_cpp='$CXXCPP $CPPFLAGS'
33847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33850
33851 cat >conftest.$ac_ext <<_ACEOF
33852 #line $LINENO "configure"
33853 /* confdefs.h. */
33854 _ACEOF
33855 cat confdefs.h >>conftest.$ac_ext
33856 cat >>conftest.$ac_ext <<_ACEOF
33857 /* end confdefs.h. */
33858 #include <math.h>
33859 #ifdef HAVE_IEEEFP_H
33860 #include <ieeefp.h>
33861 #endif
33862
33863 int
33864 main ()
33865 {
33866 log10f(0);
33867 ;
33868 return 0;
33869 }
33870 _ACEOF
33871 rm -f conftest.$ac_objext
33872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33873 (eval $ac_compile) 2>&5
33874 ac_status=$?
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); } &&
33877 { ac_try='test -s conftest.$ac_objext'
33878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33879 (eval $ac_try) 2>&5
33880 ac_status=$?
33881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33882 (exit $ac_status); }; }; then
33883 glibcxx_cv_func_log10f_use=yes
33884 else
33885 echo "$as_me: failed program was:" >&5
33886 sed 's/^/| /' conftest.$ac_ext >&5
33887
33888 glibcxx_cv_func_log10f_use=no
33889 fi
33890 rm -f conftest.$ac_objext conftest.$ac_ext
33891 ac_ext=c
33892 ac_cpp='$CPP $CPPFLAGS'
33893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33896
33897
33898 fi
33899
33900 fi
33901 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
33902 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
33903
33904 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
33905
33906 for ac_func in log10f
33907 do
33908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33909 echo "$as_me:$LINENO: checking for $ac_func" >&5
33910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33911 if eval "test \"\${$as_ac_var+set}\" = set"; then
33912 echo $ECHO_N "(cached) $ECHO_C" >&6
33913 else
33914 if test x$gcc_no_link = xyes; then
33915 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33917 { (exit 1); exit 1; }; }
33918 fi
33919 cat >conftest.$ac_ext <<_ACEOF
33920 #line $LINENO "configure"
33921 /* confdefs.h. */
33922 _ACEOF
33923 cat confdefs.h >>conftest.$ac_ext
33924 cat >>conftest.$ac_ext <<_ACEOF
33925 /* end confdefs.h. */
33926 /* System header to define __stub macros and hopefully few prototypes,
33927 which can conflict with char $ac_func (); below.
33928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33929 <limits.h> exists even on freestanding compilers. */
33930 #ifdef __STDC__
33931 # include <limits.h>
33932 #else
33933 # include <assert.h>
33934 #endif
33935 /* Override any gcc2 internal prototype to avoid an error. */
33936 #ifdef __cplusplus
33937 extern "C"
33938 {
33939 #endif
33940 /* We use char because int might match the return type of a gcc2
33941 builtin and then its argument prototype would still apply. */
33942 char $ac_func ();
33943 /* The GNU C library defines this for functions which it implements
33944 to always fail with ENOSYS. Some functions are actually named
33945 something starting with __ and the normal name is an alias. */
33946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33947 choke me
33948 #else
33949 char (*f) () = $ac_func;
33950 #endif
33951 #ifdef __cplusplus
33952 }
33953 #endif
33954
33955 int
33956 main ()
33957 {
33958 return f != $ac_func;
33959 ;
33960 return 0;
33961 }
33962 _ACEOF
33963 rm -f conftest.$ac_objext conftest$ac_exeext
33964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33965 (eval $ac_link) 2>&5
33966 ac_status=$?
33967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968 (exit $ac_status); } &&
33969 { ac_try='test -s conftest$ac_exeext'
33970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33971 (eval $ac_try) 2>&5
33972 ac_status=$?
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); }; }; then
33975 eval "$as_ac_var=yes"
33976 else
33977 echo "$as_me: failed program was:" >&5
33978 sed 's/^/| /' conftest.$ac_ext >&5
33979
33980 eval "$as_ac_var=no"
33981 fi
33982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33983 fi
33984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33986 if test `eval echo '${'$as_ac_var'}'` = yes; then
33987 cat >>confdefs.h <<_ACEOF
33988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33989 _ACEOF
33990
33991 fi
33992 done
33993
33994 else
33995
33996 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
33997 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
33998 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
33999 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
34000 echo $ECHO_N "(cached) $ECHO_C" >&6
34001 else
34002
34003
34004
34005 ac_ext=cc
34006 ac_cpp='$CXXCPP $CPPFLAGS'
34007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34010
34011 cat >conftest.$ac_ext <<_ACEOF
34012 #line $LINENO "configure"
34013 /* confdefs.h. */
34014 _ACEOF
34015 cat confdefs.h >>conftest.$ac_ext
34016 cat >>conftest.$ac_ext <<_ACEOF
34017 /* end confdefs.h. */
34018 #include <math.h>
34019 #ifdef HAVE_IEEEFP_H
34020 #include <ieeefp.h>
34021 #endif
34022
34023 int
34024 main ()
34025 {
34026 _log10f(0);
34027 ;
34028 return 0;
34029 }
34030 _ACEOF
34031 rm -f conftest.$ac_objext
34032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34033 (eval $ac_compile) 2>&5
34034 ac_status=$?
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); } &&
34037 { ac_try='test -s conftest.$ac_objext'
34038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34039 (eval $ac_try) 2>&5
34040 ac_status=$?
34041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042 (exit $ac_status); }; }; then
34043 glibcxx_cv_func__log10f_use=yes
34044 else
34045 echo "$as_me: failed program was:" >&5
34046 sed 's/^/| /' conftest.$ac_ext >&5
34047
34048 glibcxx_cv_func__log10f_use=no
34049 fi
34050 rm -f conftest.$ac_objext conftest.$ac_ext
34051 ac_ext=c
34052 ac_cpp='$CPP $CPPFLAGS'
34053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34056
34057
34058 fi
34059
34060 fi
34061 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
34062 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
34063
34064 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
34065
34066 for ac_func in _log10f
34067 do
34068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34069 echo "$as_me:$LINENO: checking for $ac_func" >&5
34070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34071 if eval "test \"\${$as_ac_var+set}\" = set"; then
34072 echo $ECHO_N "(cached) $ECHO_C" >&6
34073 else
34074 if test x$gcc_no_link = xyes; then
34075 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34076 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34077 { (exit 1); exit 1; }; }
34078 fi
34079 cat >conftest.$ac_ext <<_ACEOF
34080 #line $LINENO "configure"
34081 /* confdefs.h. */
34082 _ACEOF
34083 cat confdefs.h >>conftest.$ac_ext
34084 cat >>conftest.$ac_ext <<_ACEOF
34085 /* end confdefs.h. */
34086 /* System header to define __stub macros and hopefully few prototypes,
34087 which can conflict with char $ac_func (); below.
34088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34089 <limits.h> exists even on freestanding compilers. */
34090 #ifdef __STDC__
34091 # include <limits.h>
34092 #else
34093 # include <assert.h>
34094 #endif
34095 /* Override any gcc2 internal prototype to avoid an error. */
34096 #ifdef __cplusplus
34097 extern "C"
34098 {
34099 #endif
34100 /* We use char because int might match the return type of a gcc2
34101 builtin and then its argument prototype would still apply. */
34102 char $ac_func ();
34103 /* The GNU C library defines this for functions which it implements
34104 to always fail with ENOSYS. Some functions are actually named
34105 something starting with __ and the normal name is an alias. */
34106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34107 choke me
34108 #else
34109 char (*f) () = $ac_func;
34110 #endif
34111 #ifdef __cplusplus
34112 }
34113 #endif
34114
34115 int
34116 main ()
34117 {
34118 return f != $ac_func;
34119 ;
34120 return 0;
34121 }
34122 _ACEOF
34123 rm -f conftest.$ac_objext conftest$ac_exeext
34124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34125 (eval $ac_link) 2>&5
34126 ac_status=$?
34127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 (exit $ac_status); } &&
34129 { ac_try='test -s conftest$ac_exeext'
34130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34131 (eval $ac_try) 2>&5
34132 ac_status=$?
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); }; }; then
34135 eval "$as_ac_var=yes"
34136 else
34137 echo "$as_me: failed program was:" >&5
34138 sed 's/^/| /' conftest.$ac_ext >&5
34139
34140 eval "$as_ac_var=no"
34141 fi
34142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34143 fi
34144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34146 if test `eval echo '${'$as_ac_var'}'` = yes; then
34147 cat >>confdefs.h <<_ACEOF
34148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34149 _ACEOF
34150
34151 fi
34152 done
34153
34154 fi
34155 fi
34156
34157
34158
34159 echo "$as_me:$LINENO: checking for modff declaration" >&5
34160 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
34161 if test x${glibcxx_cv_func_modff_use+set} != xset; then
34162 if test "${glibcxx_cv_func_modff_use+set}" = set; then
34163 echo $ECHO_N "(cached) $ECHO_C" >&6
34164 else
34165
34166
34167
34168 ac_ext=cc
34169 ac_cpp='$CXXCPP $CPPFLAGS'
34170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34173
34174 cat >conftest.$ac_ext <<_ACEOF
34175 #line $LINENO "configure"
34176 /* confdefs.h. */
34177 _ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h. */
34181 #include <math.h>
34182 int
34183 main ()
34184 {
34185 modff(0, 0);
34186 ;
34187 return 0;
34188 }
34189 _ACEOF
34190 rm -f conftest.$ac_objext
34191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34192 (eval $ac_compile) 2>&5
34193 ac_status=$?
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195 (exit $ac_status); } &&
34196 { ac_try='test -s conftest.$ac_objext'
34197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34198 (eval $ac_try) 2>&5
34199 ac_status=$?
34200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201 (exit $ac_status); }; }; then
34202 glibcxx_cv_func_modff_use=yes
34203 else
34204 echo "$as_me: failed program was:" >&5
34205 sed 's/^/| /' conftest.$ac_ext >&5
34206
34207 glibcxx_cv_func_modff_use=no
34208 fi
34209 rm -f conftest.$ac_objext conftest.$ac_ext
34210 ac_ext=c
34211 ac_cpp='$CPP $CPPFLAGS'
34212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34215
34216
34217 fi
34218
34219 fi
34220 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
34221 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
34222
34223 if test x$glibcxx_cv_func_modff_use = x"yes"; then
34224
34225 for ac_func in modff
34226 do
34227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34228 echo "$as_me:$LINENO: checking for $ac_func" >&5
34229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34230 if eval "test \"\${$as_ac_var+set}\" = set"; then
34231 echo $ECHO_N "(cached) $ECHO_C" >&6
34232 else
34233 if test x$gcc_no_link = xyes; then
34234 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34236 { (exit 1); exit 1; }; }
34237 fi
34238 cat >conftest.$ac_ext <<_ACEOF
34239 #line $LINENO "configure"
34240 /* confdefs.h. */
34241 _ACEOF
34242 cat confdefs.h >>conftest.$ac_ext
34243 cat >>conftest.$ac_ext <<_ACEOF
34244 /* end confdefs.h. */
34245 /* System header to define __stub macros and hopefully few prototypes,
34246 which can conflict with char $ac_func (); below.
34247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34248 <limits.h> exists even on freestanding compilers. */
34249 #ifdef __STDC__
34250 # include <limits.h>
34251 #else
34252 # include <assert.h>
34253 #endif
34254 /* Override any gcc2 internal prototype to avoid an error. */
34255 #ifdef __cplusplus
34256 extern "C"
34257 {
34258 #endif
34259 /* We use char because int might match the return type of a gcc2
34260 builtin and then its argument prototype would still apply. */
34261 char $ac_func ();
34262 /* The GNU C library defines this for functions which it implements
34263 to always fail with ENOSYS. Some functions are actually named
34264 something starting with __ and the normal name is an alias. */
34265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34266 choke me
34267 #else
34268 char (*f) () = $ac_func;
34269 #endif
34270 #ifdef __cplusplus
34271 }
34272 #endif
34273
34274 int
34275 main ()
34276 {
34277 return f != $ac_func;
34278 ;
34279 return 0;
34280 }
34281 _ACEOF
34282 rm -f conftest.$ac_objext conftest$ac_exeext
34283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34284 (eval $ac_link) 2>&5
34285 ac_status=$?
34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287 (exit $ac_status); } &&
34288 { ac_try='test -s conftest$ac_exeext'
34289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34290 (eval $ac_try) 2>&5
34291 ac_status=$?
34292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34293 (exit $ac_status); }; }; then
34294 eval "$as_ac_var=yes"
34295 else
34296 echo "$as_me: failed program was:" >&5
34297 sed 's/^/| /' conftest.$ac_ext >&5
34298
34299 eval "$as_ac_var=no"
34300 fi
34301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34302 fi
34303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34305 if test `eval echo '${'$as_ac_var'}'` = yes; then
34306 cat >>confdefs.h <<_ACEOF
34307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34308 _ACEOF
34309
34310 fi
34311 done
34312
34313 else
34314
34315 echo "$as_me:$LINENO: checking for _modff declaration" >&5
34316 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
34317 if test x${glibcxx_cv_func__modff_use+set} != xset; then
34318 if test "${glibcxx_cv_func__modff_use+set}" = set; then
34319 echo $ECHO_N "(cached) $ECHO_C" >&6
34320 else
34321
34322
34323
34324 ac_ext=cc
34325 ac_cpp='$CXXCPP $CPPFLAGS'
34326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34329
34330 cat >conftest.$ac_ext <<_ACEOF
34331 #line $LINENO "configure"
34332 /* confdefs.h. */
34333 _ACEOF
34334 cat confdefs.h >>conftest.$ac_ext
34335 cat >>conftest.$ac_ext <<_ACEOF
34336 /* end confdefs.h. */
34337 #include <math.h>
34338 int
34339 main ()
34340 {
34341 _modff(0, 0);
34342 ;
34343 return 0;
34344 }
34345 _ACEOF
34346 rm -f conftest.$ac_objext
34347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34348 (eval $ac_compile) 2>&5
34349 ac_status=$?
34350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); } &&
34352 { ac_try='test -s conftest.$ac_objext'
34353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34354 (eval $ac_try) 2>&5
34355 ac_status=$?
34356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357 (exit $ac_status); }; }; then
34358 glibcxx_cv_func__modff_use=yes
34359 else
34360 echo "$as_me: failed program was:" >&5
34361 sed 's/^/| /' conftest.$ac_ext >&5
34362
34363 glibcxx_cv_func__modff_use=no
34364 fi
34365 rm -f conftest.$ac_objext conftest.$ac_ext
34366 ac_ext=c
34367 ac_cpp='$CPP $CPPFLAGS'
34368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34371
34372
34373 fi
34374
34375 fi
34376 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
34377 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
34378
34379 if test x$glibcxx_cv_func__modff_use = x"yes"; then
34380
34381 for ac_func in _modff
34382 do
34383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34384 echo "$as_me:$LINENO: checking for $ac_func" >&5
34385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34386 if eval "test \"\${$as_ac_var+set}\" = set"; then
34387 echo $ECHO_N "(cached) $ECHO_C" >&6
34388 else
34389 if test x$gcc_no_link = xyes; then
34390 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34392 { (exit 1); exit 1; }; }
34393 fi
34394 cat >conftest.$ac_ext <<_ACEOF
34395 #line $LINENO "configure"
34396 /* confdefs.h. */
34397 _ACEOF
34398 cat confdefs.h >>conftest.$ac_ext
34399 cat >>conftest.$ac_ext <<_ACEOF
34400 /* end confdefs.h. */
34401 /* System header to define __stub macros and hopefully few prototypes,
34402 which can conflict with char $ac_func (); below.
34403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34404 <limits.h> exists even on freestanding compilers. */
34405 #ifdef __STDC__
34406 # include <limits.h>
34407 #else
34408 # include <assert.h>
34409 #endif
34410 /* Override any gcc2 internal prototype to avoid an error. */
34411 #ifdef __cplusplus
34412 extern "C"
34413 {
34414 #endif
34415 /* We use char because int might match the return type of a gcc2
34416 builtin and then its argument prototype would still apply. */
34417 char $ac_func ();
34418 /* The GNU C library defines this for functions which it implements
34419 to always fail with ENOSYS. Some functions are actually named
34420 something starting with __ and the normal name is an alias. */
34421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34422 choke me
34423 #else
34424 char (*f) () = $ac_func;
34425 #endif
34426 #ifdef __cplusplus
34427 }
34428 #endif
34429
34430 int
34431 main ()
34432 {
34433 return f != $ac_func;
34434 ;
34435 return 0;
34436 }
34437 _ACEOF
34438 rm -f conftest.$ac_objext conftest$ac_exeext
34439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34440 (eval $ac_link) 2>&5
34441 ac_status=$?
34442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443 (exit $ac_status); } &&
34444 { ac_try='test -s conftest$ac_exeext'
34445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34446 (eval $ac_try) 2>&5
34447 ac_status=$?
34448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); }; }; then
34450 eval "$as_ac_var=yes"
34451 else
34452 echo "$as_me: failed program was:" >&5
34453 sed 's/^/| /' conftest.$ac_ext >&5
34454
34455 eval "$as_ac_var=no"
34456 fi
34457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34458 fi
34459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34461 if test `eval echo '${'$as_ac_var'}'` = yes; then
34462 cat >>confdefs.h <<_ACEOF
34463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34464 _ACEOF
34465
34466 fi
34467 done
34468
34469 fi
34470 fi
34471
34472
34473
34474 echo "$as_me:$LINENO: checking for powf declaration" >&5
34475 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
34476 if test x${glibcxx_cv_func_powf_use+set} != xset; then
34477 if test "${glibcxx_cv_func_powf_use+set}" = set; then
34478 echo $ECHO_N "(cached) $ECHO_C" >&6
34479 else
34480
34481
34482
34483 ac_ext=cc
34484 ac_cpp='$CXXCPP $CPPFLAGS'
34485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34488
34489 cat >conftest.$ac_ext <<_ACEOF
34490 #line $LINENO "configure"
34491 /* confdefs.h. */
34492 _ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h. */
34496 #include <math.h>
34497 int
34498 main ()
34499 {
34500 powf(0, 0);
34501 ;
34502 return 0;
34503 }
34504 _ACEOF
34505 rm -f conftest.$ac_objext
34506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34507 (eval $ac_compile) 2>&5
34508 ac_status=$?
34509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510 (exit $ac_status); } &&
34511 { ac_try='test -s conftest.$ac_objext'
34512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34513 (eval $ac_try) 2>&5
34514 ac_status=$?
34515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516 (exit $ac_status); }; }; then
34517 glibcxx_cv_func_powf_use=yes
34518 else
34519 echo "$as_me: failed program was:" >&5
34520 sed 's/^/| /' conftest.$ac_ext >&5
34521
34522 glibcxx_cv_func_powf_use=no
34523 fi
34524 rm -f conftest.$ac_objext conftest.$ac_ext
34525 ac_ext=c
34526 ac_cpp='$CPP $CPPFLAGS'
34527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34530
34531
34532 fi
34533
34534 fi
34535 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
34536 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
34537
34538 if test x$glibcxx_cv_func_powf_use = x"yes"; then
34539
34540 for ac_func in powf
34541 do
34542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34543 echo "$as_me:$LINENO: checking for $ac_func" >&5
34544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34545 if eval "test \"\${$as_ac_var+set}\" = set"; then
34546 echo $ECHO_N "(cached) $ECHO_C" >&6
34547 else
34548 if test x$gcc_no_link = xyes; then
34549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34551 { (exit 1); exit 1; }; }
34552 fi
34553 cat >conftest.$ac_ext <<_ACEOF
34554 #line $LINENO "configure"
34555 /* confdefs.h. */
34556 _ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h. */
34560 /* System header to define __stub macros and hopefully few prototypes,
34561 which can conflict with char $ac_func (); below.
34562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34563 <limits.h> exists even on freestanding compilers. */
34564 #ifdef __STDC__
34565 # include <limits.h>
34566 #else
34567 # include <assert.h>
34568 #endif
34569 /* Override any gcc2 internal prototype to avoid an error. */
34570 #ifdef __cplusplus
34571 extern "C"
34572 {
34573 #endif
34574 /* We use char because int might match the return type of a gcc2
34575 builtin and then its argument prototype would still apply. */
34576 char $ac_func ();
34577 /* The GNU C library defines this for functions which it implements
34578 to always fail with ENOSYS. Some functions are actually named
34579 something starting with __ and the normal name is an alias. */
34580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34581 choke me
34582 #else
34583 char (*f) () = $ac_func;
34584 #endif
34585 #ifdef __cplusplus
34586 }
34587 #endif
34588
34589 int
34590 main ()
34591 {
34592 return f != $ac_func;
34593 ;
34594 return 0;
34595 }
34596 _ACEOF
34597 rm -f conftest.$ac_objext conftest$ac_exeext
34598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34599 (eval $ac_link) 2>&5
34600 ac_status=$?
34601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34602 (exit $ac_status); } &&
34603 { ac_try='test -s conftest$ac_exeext'
34604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34605 (eval $ac_try) 2>&5
34606 ac_status=$?
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); }; }; then
34609 eval "$as_ac_var=yes"
34610 else
34611 echo "$as_me: failed program was:" >&5
34612 sed 's/^/| /' conftest.$ac_ext >&5
34613
34614 eval "$as_ac_var=no"
34615 fi
34616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34617 fi
34618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34620 if test `eval echo '${'$as_ac_var'}'` = yes; then
34621 cat >>confdefs.h <<_ACEOF
34622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34623 _ACEOF
34624
34625 fi
34626 done
34627
34628 else
34629
34630 echo "$as_me:$LINENO: checking for _powf declaration" >&5
34631 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
34632 if test x${glibcxx_cv_func__powf_use+set} != xset; then
34633 if test "${glibcxx_cv_func__powf_use+set}" = set; then
34634 echo $ECHO_N "(cached) $ECHO_C" >&6
34635 else
34636
34637
34638
34639 ac_ext=cc
34640 ac_cpp='$CXXCPP $CPPFLAGS'
34641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34644
34645 cat >conftest.$ac_ext <<_ACEOF
34646 #line $LINENO "configure"
34647 /* confdefs.h. */
34648 _ACEOF
34649 cat confdefs.h >>conftest.$ac_ext
34650 cat >>conftest.$ac_ext <<_ACEOF
34651 /* end confdefs.h. */
34652 #include <math.h>
34653 int
34654 main ()
34655 {
34656 _powf(0, 0);
34657 ;
34658 return 0;
34659 }
34660 _ACEOF
34661 rm -f conftest.$ac_objext
34662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34663 (eval $ac_compile) 2>&5
34664 ac_status=$?
34665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666 (exit $ac_status); } &&
34667 { ac_try='test -s conftest.$ac_objext'
34668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34669 (eval $ac_try) 2>&5
34670 ac_status=$?
34671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34672 (exit $ac_status); }; }; then
34673 glibcxx_cv_func__powf_use=yes
34674 else
34675 echo "$as_me: failed program was:" >&5
34676 sed 's/^/| /' conftest.$ac_ext >&5
34677
34678 glibcxx_cv_func__powf_use=no
34679 fi
34680 rm -f conftest.$ac_objext conftest.$ac_ext
34681 ac_ext=c
34682 ac_cpp='$CPP $CPPFLAGS'
34683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34686
34687
34688 fi
34689
34690 fi
34691 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
34692 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
34693
34694 if test x$glibcxx_cv_func__powf_use = x"yes"; then
34695
34696 for ac_func in _powf
34697 do
34698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34699 echo "$as_me:$LINENO: checking for $ac_func" >&5
34700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34701 if eval "test \"\${$as_ac_var+set}\" = set"; then
34702 echo $ECHO_N "(cached) $ECHO_C" >&6
34703 else
34704 if test x$gcc_no_link = xyes; then
34705 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34707 { (exit 1); exit 1; }; }
34708 fi
34709 cat >conftest.$ac_ext <<_ACEOF
34710 #line $LINENO "configure"
34711 /* confdefs.h. */
34712 _ACEOF
34713 cat confdefs.h >>conftest.$ac_ext
34714 cat >>conftest.$ac_ext <<_ACEOF
34715 /* end confdefs.h. */
34716 /* System header to define __stub macros and hopefully few prototypes,
34717 which can conflict with char $ac_func (); below.
34718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34719 <limits.h> exists even on freestanding compilers. */
34720 #ifdef __STDC__
34721 # include <limits.h>
34722 #else
34723 # include <assert.h>
34724 #endif
34725 /* Override any gcc2 internal prototype to avoid an error. */
34726 #ifdef __cplusplus
34727 extern "C"
34728 {
34729 #endif
34730 /* We use char because int might match the return type of a gcc2
34731 builtin and then its argument prototype would still apply. */
34732 char $ac_func ();
34733 /* The GNU C library defines this for functions which it implements
34734 to always fail with ENOSYS. Some functions are actually named
34735 something starting with __ and the normal name is an alias. */
34736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34737 choke me
34738 #else
34739 char (*f) () = $ac_func;
34740 #endif
34741 #ifdef __cplusplus
34742 }
34743 #endif
34744
34745 int
34746 main ()
34747 {
34748 return f != $ac_func;
34749 ;
34750 return 0;
34751 }
34752 _ACEOF
34753 rm -f conftest.$ac_objext conftest$ac_exeext
34754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34755 (eval $ac_link) 2>&5
34756 ac_status=$?
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); } &&
34759 { ac_try='test -s conftest$ac_exeext'
34760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34761 (eval $ac_try) 2>&5
34762 ac_status=$?
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); }; }; then
34765 eval "$as_ac_var=yes"
34766 else
34767 echo "$as_me: failed program was:" >&5
34768 sed 's/^/| /' conftest.$ac_ext >&5
34769
34770 eval "$as_ac_var=no"
34771 fi
34772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34773 fi
34774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34776 if test `eval echo '${'$as_ac_var'}'` = yes; then
34777 cat >>confdefs.h <<_ACEOF
34778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34779 _ACEOF
34780
34781 fi
34782 done
34783
34784 fi
34785 fi
34786
34787
34788
34789 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
34790 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
34791 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
34792 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
34793 echo $ECHO_N "(cached) $ECHO_C" >&6
34794 else
34795
34796
34797
34798 ac_ext=cc
34799 ac_cpp='$CXXCPP $CPPFLAGS'
34800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34803
34804 cat >conftest.$ac_ext <<_ACEOF
34805 #line $LINENO "configure"
34806 /* confdefs.h. */
34807 _ACEOF
34808 cat confdefs.h >>conftest.$ac_ext
34809 cat >>conftest.$ac_ext <<_ACEOF
34810 /* end confdefs.h. */
34811 #include <math.h>
34812 #ifdef HAVE_IEEEFP_H
34813 #include <ieeefp.h>
34814 #endif
34815
34816 int
34817 main ()
34818 {
34819 sqrtf(0);
34820 ;
34821 return 0;
34822 }
34823 _ACEOF
34824 rm -f conftest.$ac_objext
34825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34826 (eval $ac_compile) 2>&5
34827 ac_status=$?
34828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829 (exit $ac_status); } &&
34830 { ac_try='test -s conftest.$ac_objext'
34831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34832 (eval $ac_try) 2>&5
34833 ac_status=$?
34834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34835 (exit $ac_status); }; }; then
34836 glibcxx_cv_func_sqrtf_use=yes
34837 else
34838 echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34840
34841 glibcxx_cv_func_sqrtf_use=no
34842 fi
34843 rm -f conftest.$ac_objext conftest.$ac_ext
34844 ac_ext=c
34845 ac_cpp='$CPP $CPPFLAGS'
34846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34849
34850
34851 fi
34852
34853 fi
34854 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
34855 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
34856
34857 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
34858
34859 for ac_func in sqrtf
34860 do
34861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34862 echo "$as_me:$LINENO: checking for $ac_func" >&5
34863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34864 if eval "test \"\${$as_ac_var+set}\" = set"; then
34865 echo $ECHO_N "(cached) $ECHO_C" >&6
34866 else
34867 if test x$gcc_no_link = xyes; then
34868 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34870 { (exit 1); exit 1; }; }
34871 fi
34872 cat >conftest.$ac_ext <<_ACEOF
34873 #line $LINENO "configure"
34874 /* confdefs.h. */
34875 _ACEOF
34876 cat confdefs.h >>conftest.$ac_ext
34877 cat >>conftest.$ac_ext <<_ACEOF
34878 /* end confdefs.h. */
34879 /* System header to define __stub macros and hopefully few prototypes,
34880 which can conflict with char $ac_func (); below.
34881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34882 <limits.h> exists even on freestanding compilers. */
34883 #ifdef __STDC__
34884 # include <limits.h>
34885 #else
34886 # include <assert.h>
34887 #endif
34888 /* Override any gcc2 internal prototype to avoid an error. */
34889 #ifdef __cplusplus
34890 extern "C"
34891 {
34892 #endif
34893 /* We use char because int might match the return type of a gcc2
34894 builtin and then its argument prototype would still apply. */
34895 char $ac_func ();
34896 /* The GNU C library defines this for functions which it implements
34897 to always fail with ENOSYS. Some functions are actually named
34898 something starting with __ and the normal name is an alias. */
34899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34900 choke me
34901 #else
34902 char (*f) () = $ac_func;
34903 #endif
34904 #ifdef __cplusplus
34905 }
34906 #endif
34907
34908 int
34909 main ()
34910 {
34911 return f != $ac_func;
34912 ;
34913 return 0;
34914 }
34915 _ACEOF
34916 rm -f conftest.$ac_objext conftest$ac_exeext
34917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34918 (eval $ac_link) 2>&5
34919 ac_status=$?
34920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921 (exit $ac_status); } &&
34922 { ac_try='test -s conftest$ac_exeext'
34923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924 (eval $ac_try) 2>&5
34925 ac_status=$?
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); }; }; then
34928 eval "$as_ac_var=yes"
34929 else
34930 echo "$as_me: failed program was:" >&5
34931 sed 's/^/| /' conftest.$ac_ext >&5
34932
34933 eval "$as_ac_var=no"
34934 fi
34935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34936 fi
34937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34939 if test `eval echo '${'$as_ac_var'}'` = yes; then
34940 cat >>confdefs.h <<_ACEOF
34941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34942 _ACEOF
34943
34944 fi
34945 done
34946
34947 else
34948
34949 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
34950 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
34951 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
34952 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
34953 echo $ECHO_N "(cached) $ECHO_C" >&6
34954 else
34955
34956
34957
34958 ac_ext=cc
34959 ac_cpp='$CXXCPP $CPPFLAGS'
34960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34963
34964 cat >conftest.$ac_ext <<_ACEOF
34965 #line $LINENO "configure"
34966 /* confdefs.h. */
34967 _ACEOF
34968 cat confdefs.h >>conftest.$ac_ext
34969 cat >>conftest.$ac_ext <<_ACEOF
34970 /* end confdefs.h. */
34971 #include <math.h>
34972 #ifdef HAVE_IEEEFP_H
34973 #include <ieeefp.h>
34974 #endif
34975
34976 int
34977 main ()
34978 {
34979 _sqrtf(0);
34980 ;
34981 return 0;
34982 }
34983 _ACEOF
34984 rm -f conftest.$ac_objext
34985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34986 (eval $ac_compile) 2>&5
34987 ac_status=$?
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); } &&
34990 { ac_try='test -s conftest.$ac_objext'
34991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34992 (eval $ac_try) 2>&5
34993 ac_status=$?
34994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995 (exit $ac_status); }; }; then
34996 glibcxx_cv_func__sqrtf_use=yes
34997 else
34998 echo "$as_me: failed program was:" >&5
34999 sed 's/^/| /' conftest.$ac_ext >&5
35000
35001 glibcxx_cv_func__sqrtf_use=no
35002 fi
35003 rm -f conftest.$ac_objext conftest.$ac_ext
35004 ac_ext=c
35005 ac_cpp='$CPP $CPPFLAGS'
35006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35009
35010
35011 fi
35012
35013 fi
35014 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
35015 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
35016
35017 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
35018
35019 for ac_func in _sqrtf
35020 do
35021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35022 echo "$as_me:$LINENO: checking for $ac_func" >&5
35023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35024 if eval "test \"\${$as_ac_var+set}\" = set"; then
35025 echo $ECHO_N "(cached) $ECHO_C" >&6
35026 else
35027 if test x$gcc_no_link = xyes; then
35028 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35030 { (exit 1); exit 1; }; }
35031 fi
35032 cat >conftest.$ac_ext <<_ACEOF
35033 #line $LINENO "configure"
35034 /* confdefs.h. */
35035 _ACEOF
35036 cat confdefs.h >>conftest.$ac_ext
35037 cat >>conftest.$ac_ext <<_ACEOF
35038 /* end confdefs.h. */
35039 /* System header to define __stub macros and hopefully few prototypes,
35040 which can conflict with char $ac_func (); below.
35041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35042 <limits.h> exists even on freestanding compilers. */
35043 #ifdef __STDC__
35044 # include <limits.h>
35045 #else
35046 # include <assert.h>
35047 #endif
35048 /* Override any gcc2 internal prototype to avoid an error. */
35049 #ifdef __cplusplus
35050 extern "C"
35051 {
35052 #endif
35053 /* We use char because int might match the return type of a gcc2
35054 builtin and then its argument prototype would still apply. */
35055 char $ac_func ();
35056 /* The GNU C library defines this for functions which it implements
35057 to always fail with ENOSYS. Some functions are actually named
35058 something starting with __ and the normal name is an alias. */
35059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35060 choke me
35061 #else
35062 char (*f) () = $ac_func;
35063 #endif
35064 #ifdef __cplusplus
35065 }
35066 #endif
35067
35068 int
35069 main ()
35070 {
35071 return f != $ac_func;
35072 ;
35073 return 0;
35074 }
35075 _ACEOF
35076 rm -f conftest.$ac_objext conftest$ac_exeext
35077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35078 (eval $ac_link) 2>&5
35079 ac_status=$?
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); } &&
35082 { ac_try='test -s conftest$ac_exeext'
35083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35084 (eval $ac_try) 2>&5
35085 ac_status=$?
35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087 (exit $ac_status); }; }; then
35088 eval "$as_ac_var=yes"
35089 else
35090 echo "$as_me: failed program was:" >&5
35091 sed 's/^/| /' conftest.$ac_ext >&5
35092
35093 eval "$as_ac_var=no"
35094 fi
35095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35096 fi
35097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35099 if test `eval echo '${'$as_ac_var'}'` = yes; then
35100 cat >>confdefs.h <<_ACEOF
35101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35102 _ACEOF
35103
35104 fi
35105 done
35106
35107 fi
35108 fi
35109
35110
35111
35112 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
35113 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
35114 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
35115 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
35116 echo $ECHO_N "(cached) $ECHO_C" >&6
35117 else
35118
35119
35120
35121 ac_ext=cc
35122 ac_cpp='$CXXCPP $CPPFLAGS'
35123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35126
35127 cat >conftest.$ac_ext <<_ACEOF
35128 #line $LINENO "configure"
35129 /* confdefs.h. */
35130 _ACEOF
35131 cat confdefs.h >>conftest.$ac_ext
35132 cat >>conftest.$ac_ext <<_ACEOF
35133 /* end confdefs.h. */
35134 #include <math.h>
35135 int
35136 main ()
35137 {
35138 sincosf(0, 0, 0);
35139 ;
35140 return 0;
35141 }
35142 _ACEOF
35143 rm -f conftest.$ac_objext
35144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35145 (eval $ac_compile) 2>&5
35146 ac_status=$?
35147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35148 (exit $ac_status); } &&
35149 { ac_try='test -s conftest.$ac_objext'
35150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35151 (eval $ac_try) 2>&5
35152 ac_status=$?
35153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35154 (exit $ac_status); }; }; then
35155 glibcxx_cv_func_sincosf_use=yes
35156 else
35157 echo "$as_me: failed program was:" >&5
35158 sed 's/^/| /' conftest.$ac_ext >&5
35159
35160 glibcxx_cv_func_sincosf_use=no
35161 fi
35162 rm -f conftest.$ac_objext conftest.$ac_ext
35163 ac_ext=c
35164 ac_cpp='$CPP $CPPFLAGS'
35165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35168
35169
35170 fi
35171
35172 fi
35173 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
35174 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
35175
35176 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
35177
35178 for ac_func in sincosf
35179 do
35180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35181 echo "$as_me:$LINENO: checking for $ac_func" >&5
35182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35183 if eval "test \"\${$as_ac_var+set}\" = set"; then
35184 echo $ECHO_N "(cached) $ECHO_C" >&6
35185 else
35186 if test x$gcc_no_link = xyes; then
35187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35189 { (exit 1); exit 1; }; }
35190 fi
35191 cat >conftest.$ac_ext <<_ACEOF
35192 #line $LINENO "configure"
35193 /* confdefs.h. */
35194 _ACEOF
35195 cat confdefs.h >>conftest.$ac_ext
35196 cat >>conftest.$ac_ext <<_ACEOF
35197 /* end confdefs.h. */
35198 /* System header to define __stub macros and hopefully few prototypes,
35199 which can conflict with char $ac_func (); below.
35200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35201 <limits.h> exists even on freestanding compilers. */
35202 #ifdef __STDC__
35203 # include <limits.h>
35204 #else
35205 # include <assert.h>
35206 #endif
35207 /* Override any gcc2 internal prototype to avoid an error. */
35208 #ifdef __cplusplus
35209 extern "C"
35210 {
35211 #endif
35212 /* We use char because int might match the return type of a gcc2
35213 builtin and then its argument prototype would still apply. */
35214 char $ac_func ();
35215 /* The GNU C library defines this for functions which it implements
35216 to always fail with ENOSYS. Some functions are actually named
35217 something starting with __ and the normal name is an alias. */
35218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35219 choke me
35220 #else
35221 char (*f) () = $ac_func;
35222 #endif
35223 #ifdef __cplusplus
35224 }
35225 #endif
35226
35227 int
35228 main ()
35229 {
35230 return f != $ac_func;
35231 ;
35232 return 0;
35233 }
35234 _ACEOF
35235 rm -f conftest.$ac_objext conftest$ac_exeext
35236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35237 (eval $ac_link) 2>&5
35238 ac_status=$?
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); } &&
35241 { ac_try='test -s conftest$ac_exeext'
35242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35243 (eval $ac_try) 2>&5
35244 ac_status=$?
35245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); }; }; then
35247 eval "$as_ac_var=yes"
35248 else
35249 echo "$as_me: failed program was:" >&5
35250 sed 's/^/| /' conftest.$ac_ext >&5
35251
35252 eval "$as_ac_var=no"
35253 fi
35254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35255 fi
35256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35258 if test `eval echo '${'$as_ac_var'}'` = yes; then
35259 cat >>confdefs.h <<_ACEOF
35260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35261 _ACEOF
35262
35263 fi
35264 done
35265
35266 else
35267
35268 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
35269 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
35270 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
35271 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
35272 echo $ECHO_N "(cached) $ECHO_C" >&6
35273 else
35274
35275
35276
35277 ac_ext=cc
35278 ac_cpp='$CXXCPP $CPPFLAGS'
35279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35282
35283 cat >conftest.$ac_ext <<_ACEOF
35284 #line $LINENO "configure"
35285 /* confdefs.h. */
35286 _ACEOF
35287 cat confdefs.h >>conftest.$ac_ext
35288 cat >>conftest.$ac_ext <<_ACEOF
35289 /* end confdefs.h. */
35290 #include <math.h>
35291 int
35292 main ()
35293 {
35294 _sincosf(0, 0, 0);
35295 ;
35296 return 0;
35297 }
35298 _ACEOF
35299 rm -f conftest.$ac_objext
35300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35301 (eval $ac_compile) 2>&5
35302 ac_status=$?
35303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35304 (exit $ac_status); } &&
35305 { ac_try='test -s conftest.$ac_objext'
35306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35307 (eval $ac_try) 2>&5
35308 ac_status=$?
35309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); }; }; then
35311 glibcxx_cv_func__sincosf_use=yes
35312 else
35313 echo "$as_me: failed program was:" >&5
35314 sed 's/^/| /' conftest.$ac_ext >&5
35315
35316 glibcxx_cv_func__sincosf_use=no
35317 fi
35318 rm -f conftest.$ac_objext conftest.$ac_ext
35319 ac_ext=c
35320 ac_cpp='$CPP $CPPFLAGS'
35321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35324
35325
35326 fi
35327
35328 fi
35329 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
35330 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
35331
35332 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
35333
35334 for ac_func in _sincosf
35335 do
35336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35337 echo "$as_me:$LINENO: checking for $ac_func" >&5
35338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35339 if eval "test \"\${$as_ac_var+set}\" = set"; then
35340 echo $ECHO_N "(cached) $ECHO_C" >&6
35341 else
35342 if test x$gcc_no_link = xyes; then
35343 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35345 { (exit 1); exit 1; }; }
35346 fi
35347 cat >conftest.$ac_ext <<_ACEOF
35348 #line $LINENO "configure"
35349 /* confdefs.h. */
35350 _ACEOF
35351 cat confdefs.h >>conftest.$ac_ext
35352 cat >>conftest.$ac_ext <<_ACEOF
35353 /* end confdefs.h. */
35354 /* System header to define __stub macros and hopefully few prototypes,
35355 which can conflict with char $ac_func (); below.
35356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35357 <limits.h> exists even on freestanding compilers. */
35358 #ifdef __STDC__
35359 # include <limits.h>
35360 #else
35361 # include <assert.h>
35362 #endif
35363 /* Override any gcc2 internal prototype to avoid an error. */
35364 #ifdef __cplusplus
35365 extern "C"
35366 {
35367 #endif
35368 /* We use char because int might match the return type of a gcc2
35369 builtin and then its argument prototype would still apply. */
35370 char $ac_func ();
35371 /* The GNU C library defines this for functions which it implements
35372 to always fail with ENOSYS. Some functions are actually named
35373 something starting with __ and the normal name is an alias. */
35374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35375 choke me
35376 #else
35377 char (*f) () = $ac_func;
35378 #endif
35379 #ifdef __cplusplus
35380 }
35381 #endif
35382
35383 int
35384 main ()
35385 {
35386 return f != $ac_func;
35387 ;
35388 return 0;
35389 }
35390 _ACEOF
35391 rm -f conftest.$ac_objext conftest$ac_exeext
35392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35393 (eval $ac_link) 2>&5
35394 ac_status=$?
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); } &&
35397 { ac_try='test -s conftest$ac_exeext'
35398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35399 (eval $ac_try) 2>&5
35400 ac_status=$?
35401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402 (exit $ac_status); }; }; then
35403 eval "$as_ac_var=yes"
35404 else
35405 echo "$as_me: failed program was:" >&5
35406 sed 's/^/| /' conftest.$ac_ext >&5
35407
35408 eval "$as_ac_var=no"
35409 fi
35410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35411 fi
35412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35414 if test `eval echo '${'$as_ac_var'}'` = yes; then
35415 cat >>confdefs.h <<_ACEOF
35416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35417 _ACEOF
35418
35419 fi
35420 done
35421
35422 fi
35423 fi
35424
35425
35426
35427 echo "$as_me:$LINENO: checking for finitef declaration" >&5
35428 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
35429 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
35430 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
35431 echo $ECHO_N "(cached) $ECHO_C" >&6
35432 else
35433
35434
35435
35436 ac_ext=cc
35437 ac_cpp='$CXXCPP $CPPFLAGS'
35438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35441
35442 cat >conftest.$ac_ext <<_ACEOF
35443 #line $LINENO "configure"
35444 /* confdefs.h. */
35445 _ACEOF
35446 cat confdefs.h >>conftest.$ac_ext
35447 cat >>conftest.$ac_ext <<_ACEOF
35448 /* end confdefs.h. */
35449 #include <math.h>
35450 #ifdef HAVE_IEEEFP_H
35451 #include <ieeefp.h>
35452 #endif
35453
35454 int
35455 main ()
35456 {
35457 finitef(0);
35458 ;
35459 return 0;
35460 }
35461 _ACEOF
35462 rm -f conftest.$ac_objext
35463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35464 (eval $ac_compile) 2>&5
35465 ac_status=$?
35466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467 (exit $ac_status); } &&
35468 { ac_try='test -s conftest.$ac_objext'
35469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35470 (eval $ac_try) 2>&5
35471 ac_status=$?
35472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473 (exit $ac_status); }; }; then
35474 glibcxx_cv_func_finitef_use=yes
35475 else
35476 echo "$as_me: failed program was:" >&5
35477 sed 's/^/| /' conftest.$ac_ext >&5
35478
35479 glibcxx_cv_func_finitef_use=no
35480 fi
35481 rm -f conftest.$ac_objext conftest.$ac_ext
35482 ac_ext=c
35483 ac_cpp='$CPP $CPPFLAGS'
35484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35487
35488
35489 fi
35490
35491 fi
35492 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
35493 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
35494
35495 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
35496
35497 for ac_func in finitef
35498 do
35499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35500 echo "$as_me:$LINENO: checking for $ac_func" >&5
35501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35502 if eval "test \"\${$as_ac_var+set}\" = set"; then
35503 echo $ECHO_N "(cached) $ECHO_C" >&6
35504 else
35505 if test x$gcc_no_link = xyes; then
35506 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35507 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35508 { (exit 1); exit 1; }; }
35509 fi
35510 cat >conftest.$ac_ext <<_ACEOF
35511 #line $LINENO "configure"
35512 /* confdefs.h. */
35513 _ACEOF
35514 cat confdefs.h >>conftest.$ac_ext
35515 cat >>conftest.$ac_ext <<_ACEOF
35516 /* end confdefs.h. */
35517 /* System header to define __stub macros and hopefully few prototypes,
35518 which can conflict with char $ac_func (); below.
35519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35520 <limits.h> exists even on freestanding compilers. */
35521 #ifdef __STDC__
35522 # include <limits.h>
35523 #else
35524 # include <assert.h>
35525 #endif
35526 /* Override any gcc2 internal prototype to avoid an error. */
35527 #ifdef __cplusplus
35528 extern "C"
35529 {
35530 #endif
35531 /* We use char because int might match the return type of a gcc2
35532 builtin and then its argument prototype would still apply. */
35533 char $ac_func ();
35534 /* The GNU C library defines this for functions which it implements
35535 to always fail with ENOSYS. Some functions are actually named
35536 something starting with __ and the normal name is an alias. */
35537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35538 choke me
35539 #else
35540 char (*f) () = $ac_func;
35541 #endif
35542 #ifdef __cplusplus
35543 }
35544 #endif
35545
35546 int
35547 main ()
35548 {
35549 return f != $ac_func;
35550 ;
35551 return 0;
35552 }
35553 _ACEOF
35554 rm -f conftest.$ac_objext conftest$ac_exeext
35555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35556 (eval $ac_link) 2>&5
35557 ac_status=$?
35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559 (exit $ac_status); } &&
35560 { ac_try='test -s conftest$ac_exeext'
35561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35562 (eval $ac_try) 2>&5
35563 ac_status=$?
35564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35565 (exit $ac_status); }; }; then
35566 eval "$as_ac_var=yes"
35567 else
35568 echo "$as_me: failed program was:" >&5
35569 sed 's/^/| /' conftest.$ac_ext >&5
35570
35571 eval "$as_ac_var=no"
35572 fi
35573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35574 fi
35575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35577 if test `eval echo '${'$as_ac_var'}'` = yes; then
35578 cat >>confdefs.h <<_ACEOF
35579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35580 _ACEOF
35581
35582 fi
35583 done
35584
35585 else
35586
35587 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
35588 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
35589 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
35590 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
35591 echo $ECHO_N "(cached) $ECHO_C" >&6
35592 else
35593
35594
35595
35596 ac_ext=cc
35597 ac_cpp='$CXXCPP $CPPFLAGS'
35598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35601
35602 cat >conftest.$ac_ext <<_ACEOF
35603 #line $LINENO "configure"
35604 /* confdefs.h. */
35605 _ACEOF
35606 cat confdefs.h >>conftest.$ac_ext
35607 cat >>conftest.$ac_ext <<_ACEOF
35608 /* end confdefs.h. */
35609 #include <math.h>
35610 #ifdef HAVE_IEEEFP_H
35611 #include <ieeefp.h>
35612 #endif
35613
35614 int
35615 main ()
35616 {
35617 _finitef(0);
35618 ;
35619 return 0;
35620 }
35621 _ACEOF
35622 rm -f conftest.$ac_objext
35623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35624 (eval $ac_compile) 2>&5
35625 ac_status=$?
35626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35627 (exit $ac_status); } &&
35628 { ac_try='test -s conftest.$ac_objext'
35629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630 (eval $ac_try) 2>&5
35631 ac_status=$?
35632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); }; }; then
35634 glibcxx_cv_func__finitef_use=yes
35635 else
35636 echo "$as_me: failed program was:" >&5
35637 sed 's/^/| /' conftest.$ac_ext >&5
35638
35639 glibcxx_cv_func__finitef_use=no
35640 fi
35641 rm -f conftest.$ac_objext conftest.$ac_ext
35642 ac_ext=c
35643 ac_cpp='$CPP $CPPFLAGS'
35644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35647
35648
35649 fi
35650
35651 fi
35652 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
35653 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
35654
35655 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
35656
35657 for ac_func in _finitef
35658 do
35659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35660 echo "$as_me:$LINENO: checking for $ac_func" >&5
35661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35662 if eval "test \"\${$as_ac_var+set}\" = set"; then
35663 echo $ECHO_N "(cached) $ECHO_C" >&6
35664 else
35665 if test x$gcc_no_link = xyes; then
35666 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35668 { (exit 1); exit 1; }; }
35669 fi
35670 cat >conftest.$ac_ext <<_ACEOF
35671 #line $LINENO "configure"
35672 /* confdefs.h. */
35673 _ACEOF
35674 cat confdefs.h >>conftest.$ac_ext
35675 cat >>conftest.$ac_ext <<_ACEOF
35676 /* end confdefs.h. */
35677 /* System header to define __stub macros and hopefully few prototypes,
35678 which can conflict with char $ac_func (); below.
35679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35680 <limits.h> exists even on freestanding compilers. */
35681 #ifdef __STDC__
35682 # include <limits.h>
35683 #else
35684 # include <assert.h>
35685 #endif
35686 /* Override any gcc2 internal prototype to avoid an error. */
35687 #ifdef __cplusplus
35688 extern "C"
35689 {
35690 #endif
35691 /* We use char because int might match the return type of a gcc2
35692 builtin and then its argument prototype would still apply. */
35693 char $ac_func ();
35694 /* The GNU C library defines this for functions which it implements
35695 to always fail with ENOSYS. Some functions are actually named
35696 something starting with __ and the normal name is an alias. */
35697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35698 choke me
35699 #else
35700 char (*f) () = $ac_func;
35701 #endif
35702 #ifdef __cplusplus
35703 }
35704 #endif
35705
35706 int
35707 main ()
35708 {
35709 return f != $ac_func;
35710 ;
35711 return 0;
35712 }
35713 _ACEOF
35714 rm -f conftest.$ac_objext conftest$ac_exeext
35715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35716 (eval $ac_link) 2>&5
35717 ac_status=$?
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); } &&
35720 { ac_try='test -s conftest$ac_exeext'
35721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35722 (eval $ac_try) 2>&5
35723 ac_status=$?
35724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); }; }; then
35726 eval "$as_ac_var=yes"
35727 else
35728 echo "$as_me: failed program was:" >&5
35729 sed 's/^/| /' conftest.$ac_ext >&5
35730
35731 eval "$as_ac_var=no"
35732 fi
35733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35734 fi
35735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35737 if test `eval echo '${'$as_ac_var'}'` = yes; then
35738 cat >>confdefs.h <<_ACEOF
35739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35740 _ACEOF
35741
35742 fi
35743 done
35744
35745 fi
35746 fi
35747
35748
35749
35750 echo "$as_me:$LINENO: checking for long double trig functions" >&5
35751 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
35752 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
35753 echo $ECHO_N "(cached) $ECHO_C" >&6
35754 else
35755
35756
35757
35758 ac_ext=cc
35759 ac_cpp='$CXXCPP $CPPFLAGS'
35760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35763
35764 cat >conftest.$ac_ext <<_ACEOF
35765 #line $LINENO "configure"
35766 /* confdefs.h. */
35767 _ACEOF
35768 cat confdefs.h >>conftest.$ac_ext
35769 cat >>conftest.$ac_ext <<_ACEOF
35770 /* end confdefs.h. */
35771 #include <math.h>
35772 int
35773 main ()
35774 {
35775 `for x in acosl asinl atanl \
35776 cosl sinl tanl \
35777 coshl sinhl tanhl; do echo "$x (0);"; done`
35778 ;
35779 return 0;
35780 }
35781 _ACEOF
35782 rm -f conftest.$ac_objext
35783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35784 (eval $ac_compile) 2>&5
35785 ac_status=$?
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); } &&
35788 { ac_try='test -s conftest.$ac_objext'
35789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35790 (eval $ac_try) 2>&5
35791 ac_status=$?
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); }; }; then
35794 glibcxx_cv_func_long_double_trig_use=yes
35795 else
35796 echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35798
35799 glibcxx_cv_func_long_double_trig_use=no
35800 fi
35801 rm -f conftest.$ac_objext conftest.$ac_ext
35802 ac_ext=c
35803 ac_cpp='$CPP $CPPFLAGS'
35804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35807
35808 fi
35809
35810 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
35811 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
35812 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822 for ac_func in acosl asinl atanl \
35823 cosl sinl tanl \
35824 coshl sinhl tanhl
35825 do
35826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35827 echo "$as_me:$LINENO: checking for $ac_func" >&5
35828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35829 if eval "test \"\${$as_ac_var+set}\" = set"; then
35830 echo $ECHO_N "(cached) $ECHO_C" >&6
35831 else
35832 if test x$gcc_no_link = xyes; then
35833 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35834 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35835 { (exit 1); exit 1; }; }
35836 fi
35837 cat >conftest.$ac_ext <<_ACEOF
35838 #line $LINENO "configure"
35839 /* confdefs.h. */
35840 _ACEOF
35841 cat confdefs.h >>conftest.$ac_ext
35842 cat >>conftest.$ac_ext <<_ACEOF
35843 /* end confdefs.h. */
35844 /* System header to define __stub macros and hopefully few prototypes,
35845 which can conflict with char $ac_func (); below.
35846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35847 <limits.h> exists even on freestanding compilers. */
35848 #ifdef __STDC__
35849 # include <limits.h>
35850 #else
35851 # include <assert.h>
35852 #endif
35853 /* Override any gcc2 internal prototype to avoid an error. */
35854 #ifdef __cplusplus
35855 extern "C"
35856 {
35857 #endif
35858 /* We use char because int might match the return type of a gcc2
35859 builtin and then its argument prototype would still apply. */
35860 char $ac_func ();
35861 /* The GNU C library defines this for functions which it implements
35862 to always fail with ENOSYS. Some functions are actually named
35863 something starting with __ and the normal name is an alias. */
35864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35865 choke me
35866 #else
35867 char (*f) () = $ac_func;
35868 #endif
35869 #ifdef __cplusplus
35870 }
35871 #endif
35872
35873 int
35874 main ()
35875 {
35876 return f != $ac_func;
35877 ;
35878 return 0;
35879 }
35880 _ACEOF
35881 rm -f conftest.$ac_objext conftest$ac_exeext
35882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35883 (eval $ac_link) 2>&5
35884 ac_status=$?
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); } &&
35887 { ac_try='test -s conftest$ac_exeext'
35888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35889 (eval $ac_try) 2>&5
35890 ac_status=$?
35891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); }; }; then
35893 eval "$as_ac_var=yes"
35894 else
35895 echo "$as_me: failed program was:" >&5
35896 sed 's/^/| /' conftest.$ac_ext >&5
35897
35898 eval "$as_ac_var=no"
35899 fi
35900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35901 fi
35902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35904 if test `eval echo '${'$as_ac_var'}'` = yes; then
35905 cat >>confdefs.h <<_ACEOF
35906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35907 _ACEOF
35908
35909 fi
35910 done
35911
35912 fi
35913
35914
35915 echo "$as_me:$LINENO: checking for long double round functions" >&5
35916 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
35917 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
35918 echo $ECHO_N "(cached) $ECHO_C" >&6
35919 else
35920
35921
35922
35923 ac_ext=cc
35924 ac_cpp='$CXXCPP $CPPFLAGS'
35925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35928
35929 cat >conftest.$ac_ext <<_ACEOF
35930 #line $LINENO "configure"
35931 /* confdefs.h. */
35932 _ACEOF
35933 cat confdefs.h >>conftest.$ac_ext
35934 cat >>conftest.$ac_ext <<_ACEOF
35935 /* end confdefs.h. */
35936 #include <math.h>
35937 int
35938 main ()
35939 {
35940 `for x in ceill floorl; do echo "$x (0);"; done`
35941 ;
35942 return 0;
35943 }
35944 _ACEOF
35945 rm -f conftest.$ac_objext
35946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35947 (eval $ac_compile) 2>&5
35948 ac_status=$?
35949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950 (exit $ac_status); } &&
35951 { ac_try='test -s conftest.$ac_objext'
35952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35953 (eval $ac_try) 2>&5
35954 ac_status=$?
35955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956 (exit $ac_status); }; }; then
35957 glibcxx_cv_func_long_double_round_use=yes
35958 else
35959 echo "$as_me: failed program was:" >&5
35960 sed 's/^/| /' conftest.$ac_ext >&5
35961
35962 glibcxx_cv_func_long_double_round_use=no
35963 fi
35964 rm -f conftest.$ac_objext conftest.$ac_ext
35965 ac_ext=c
35966 ac_cpp='$CPP $CPPFLAGS'
35967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35970
35971 fi
35972
35973 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
35974 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
35975 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
35976
35977
35978 for ac_func in ceill floorl
35979 do
35980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35981 echo "$as_me:$LINENO: checking for $ac_func" >&5
35982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35983 if eval "test \"\${$as_ac_var+set}\" = set"; then
35984 echo $ECHO_N "(cached) $ECHO_C" >&6
35985 else
35986 if test x$gcc_no_link = xyes; then
35987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35989 { (exit 1); exit 1; }; }
35990 fi
35991 cat >conftest.$ac_ext <<_ACEOF
35992 #line $LINENO "configure"
35993 /* confdefs.h. */
35994 _ACEOF
35995 cat confdefs.h >>conftest.$ac_ext
35996 cat >>conftest.$ac_ext <<_ACEOF
35997 /* end confdefs.h. */
35998 /* System header to define __stub macros and hopefully few prototypes,
35999 which can conflict with char $ac_func (); below.
36000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36001 <limits.h> exists even on freestanding compilers. */
36002 #ifdef __STDC__
36003 # include <limits.h>
36004 #else
36005 # include <assert.h>
36006 #endif
36007 /* Override any gcc2 internal prototype to avoid an error. */
36008 #ifdef __cplusplus
36009 extern "C"
36010 {
36011 #endif
36012 /* We use char because int might match the return type of a gcc2
36013 builtin and then its argument prototype would still apply. */
36014 char $ac_func ();
36015 /* The GNU C library defines this for functions which it implements
36016 to always fail with ENOSYS. Some functions are actually named
36017 something starting with __ and the normal name is an alias. */
36018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36019 choke me
36020 #else
36021 char (*f) () = $ac_func;
36022 #endif
36023 #ifdef __cplusplus
36024 }
36025 #endif
36026
36027 int
36028 main ()
36029 {
36030 return f != $ac_func;
36031 ;
36032 return 0;
36033 }
36034 _ACEOF
36035 rm -f conftest.$ac_objext conftest$ac_exeext
36036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36037 (eval $ac_link) 2>&5
36038 ac_status=$?
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); } &&
36041 { ac_try='test -s conftest$ac_exeext'
36042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36043 (eval $ac_try) 2>&5
36044 ac_status=$?
36045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36046 (exit $ac_status); }; }; then
36047 eval "$as_ac_var=yes"
36048 else
36049 echo "$as_me: failed program was:" >&5
36050 sed 's/^/| /' conftest.$ac_ext >&5
36051
36052 eval "$as_ac_var=no"
36053 fi
36054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36055 fi
36056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36058 if test `eval echo '${'$as_ac_var'}'` = yes; then
36059 cat >>confdefs.h <<_ACEOF
36060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36061 _ACEOF
36062
36063 fi
36064 done
36065
36066 fi
36067
36068
36069
36070 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
36071 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
36072 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
36073 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
36074 echo $ECHO_N "(cached) $ECHO_C" >&6
36075 else
36076
36077
36078
36079 ac_ext=cc
36080 ac_cpp='$CXXCPP $CPPFLAGS'
36081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36084
36085 cat >conftest.$ac_ext <<_ACEOF
36086 #line $LINENO "configure"
36087 /* confdefs.h. */
36088 _ACEOF
36089 cat confdefs.h >>conftest.$ac_ext
36090 cat >>conftest.$ac_ext <<_ACEOF
36091 /* end confdefs.h. */
36092 #include <math.h>
36093 #ifdef HAVE_IEEEFP_H
36094 #include <ieeefp.h>
36095 #endif
36096
36097 int
36098 main ()
36099 {
36100 isnanl(0);
36101 ;
36102 return 0;
36103 }
36104 _ACEOF
36105 rm -f conftest.$ac_objext
36106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36107 (eval $ac_compile) 2>&5
36108 ac_status=$?
36109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110 (exit $ac_status); } &&
36111 { ac_try='test -s conftest.$ac_objext'
36112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36113 (eval $ac_try) 2>&5
36114 ac_status=$?
36115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36116 (exit $ac_status); }; }; then
36117 glibcxx_cv_func_isnanl_use=yes
36118 else
36119 echo "$as_me: failed program was:" >&5
36120 sed 's/^/| /' conftest.$ac_ext >&5
36121
36122 glibcxx_cv_func_isnanl_use=no
36123 fi
36124 rm -f conftest.$ac_objext conftest.$ac_ext
36125 ac_ext=c
36126 ac_cpp='$CPP $CPPFLAGS'
36127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36130
36131
36132 fi
36133
36134 fi
36135 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
36136 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
36137
36138 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
36139
36140 for ac_func in isnanl
36141 do
36142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36143 echo "$as_me:$LINENO: checking for $ac_func" >&5
36144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36145 if eval "test \"\${$as_ac_var+set}\" = set"; then
36146 echo $ECHO_N "(cached) $ECHO_C" >&6
36147 else
36148 if test x$gcc_no_link = xyes; then
36149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36151 { (exit 1); exit 1; }; }
36152 fi
36153 cat >conftest.$ac_ext <<_ACEOF
36154 #line $LINENO "configure"
36155 /* confdefs.h. */
36156 _ACEOF
36157 cat confdefs.h >>conftest.$ac_ext
36158 cat >>conftest.$ac_ext <<_ACEOF
36159 /* end confdefs.h. */
36160 /* System header to define __stub macros and hopefully few prototypes,
36161 which can conflict with char $ac_func (); below.
36162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36163 <limits.h> exists even on freestanding compilers. */
36164 #ifdef __STDC__
36165 # include <limits.h>
36166 #else
36167 # include <assert.h>
36168 #endif
36169 /* Override any gcc2 internal prototype to avoid an error. */
36170 #ifdef __cplusplus
36171 extern "C"
36172 {
36173 #endif
36174 /* We use char because int might match the return type of a gcc2
36175 builtin and then its argument prototype would still apply. */
36176 char $ac_func ();
36177 /* The GNU C library defines this for functions which it implements
36178 to always fail with ENOSYS. Some functions are actually named
36179 something starting with __ and the normal name is an alias. */
36180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36181 choke me
36182 #else
36183 char (*f) () = $ac_func;
36184 #endif
36185 #ifdef __cplusplus
36186 }
36187 #endif
36188
36189 int
36190 main ()
36191 {
36192 return f != $ac_func;
36193 ;
36194 return 0;
36195 }
36196 _ACEOF
36197 rm -f conftest.$ac_objext conftest$ac_exeext
36198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36199 (eval $ac_link) 2>&5
36200 ac_status=$?
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); } &&
36203 { ac_try='test -s conftest$ac_exeext'
36204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36205 (eval $ac_try) 2>&5
36206 ac_status=$?
36207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208 (exit $ac_status); }; }; then
36209 eval "$as_ac_var=yes"
36210 else
36211 echo "$as_me: failed program was:" >&5
36212 sed 's/^/| /' conftest.$ac_ext >&5
36213
36214 eval "$as_ac_var=no"
36215 fi
36216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36217 fi
36218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36220 if test `eval echo '${'$as_ac_var'}'` = yes; then
36221 cat >>confdefs.h <<_ACEOF
36222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36223 _ACEOF
36224
36225 fi
36226 done
36227
36228 else
36229
36230 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
36231 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
36232 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
36233 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
36234 echo $ECHO_N "(cached) $ECHO_C" >&6
36235 else
36236
36237
36238
36239 ac_ext=cc
36240 ac_cpp='$CXXCPP $CPPFLAGS'
36241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36244
36245 cat >conftest.$ac_ext <<_ACEOF
36246 #line $LINENO "configure"
36247 /* confdefs.h. */
36248 _ACEOF
36249 cat confdefs.h >>conftest.$ac_ext
36250 cat >>conftest.$ac_ext <<_ACEOF
36251 /* end confdefs.h. */
36252 #include <math.h>
36253 #ifdef HAVE_IEEEFP_H
36254 #include <ieeefp.h>
36255 #endif
36256
36257 int
36258 main ()
36259 {
36260 _isnanl(0);
36261 ;
36262 return 0;
36263 }
36264 _ACEOF
36265 rm -f conftest.$ac_objext
36266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36267 (eval $ac_compile) 2>&5
36268 ac_status=$?
36269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270 (exit $ac_status); } &&
36271 { ac_try='test -s conftest.$ac_objext'
36272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273 (eval $ac_try) 2>&5
36274 ac_status=$?
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); }; }; then
36277 glibcxx_cv_func__isnanl_use=yes
36278 else
36279 echo "$as_me: failed program was:" >&5
36280 sed 's/^/| /' conftest.$ac_ext >&5
36281
36282 glibcxx_cv_func__isnanl_use=no
36283 fi
36284 rm -f conftest.$ac_objext conftest.$ac_ext
36285 ac_ext=c
36286 ac_cpp='$CPP $CPPFLAGS'
36287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36290
36291
36292 fi
36293
36294 fi
36295 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
36296 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
36297
36298 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
36299
36300 for ac_func in _isnanl
36301 do
36302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36303 echo "$as_me:$LINENO: checking for $ac_func" >&5
36304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36305 if eval "test \"\${$as_ac_var+set}\" = set"; then
36306 echo $ECHO_N "(cached) $ECHO_C" >&6
36307 else
36308 if test x$gcc_no_link = xyes; then
36309 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36310 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36311 { (exit 1); exit 1; }; }
36312 fi
36313 cat >conftest.$ac_ext <<_ACEOF
36314 #line $LINENO "configure"
36315 /* confdefs.h. */
36316 _ACEOF
36317 cat confdefs.h >>conftest.$ac_ext
36318 cat >>conftest.$ac_ext <<_ACEOF
36319 /* end confdefs.h. */
36320 /* System header to define __stub macros and hopefully few prototypes,
36321 which can conflict with char $ac_func (); below.
36322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36323 <limits.h> exists even on freestanding compilers. */
36324 #ifdef __STDC__
36325 # include <limits.h>
36326 #else
36327 # include <assert.h>
36328 #endif
36329 /* Override any gcc2 internal prototype to avoid an error. */
36330 #ifdef __cplusplus
36331 extern "C"
36332 {
36333 #endif
36334 /* We use char because int might match the return type of a gcc2
36335 builtin and then its argument prototype would still apply. */
36336 char $ac_func ();
36337 /* The GNU C library defines this for functions which it implements
36338 to always fail with ENOSYS. Some functions are actually named
36339 something starting with __ and the normal name is an alias. */
36340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36341 choke me
36342 #else
36343 char (*f) () = $ac_func;
36344 #endif
36345 #ifdef __cplusplus
36346 }
36347 #endif
36348
36349 int
36350 main ()
36351 {
36352 return f != $ac_func;
36353 ;
36354 return 0;
36355 }
36356 _ACEOF
36357 rm -f conftest.$ac_objext conftest$ac_exeext
36358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36359 (eval $ac_link) 2>&5
36360 ac_status=$?
36361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362 (exit $ac_status); } &&
36363 { ac_try='test -s conftest$ac_exeext'
36364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36365 (eval $ac_try) 2>&5
36366 ac_status=$?
36367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368 (exit $ac_status); }; }; then
36369 eval "$as_ac_var=yes"
36370 else
36371 echo "$as_me: failed program was:" >&5
36372 sed 's/^/| /' conftest.$ac_ext >&5
36373
36374 eval "$as_ac_var=no"
36375 fi
36376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36377 fi
36378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36380 if test `eval echo '${'$as_ac_var'}'` = yes; then
36381 cat >>confdefs.h <<_ACEOF
36382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36383 _ACEOF
36384
36385 fi
36386 done
36387
36388 fi
36389 fi
36390
36391
36392
36393 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
36394 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
36395 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
36396 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
36397 echo $ECHO_N "(cached) $ECHO_C" >&6
36398 else
36399
36400
36401
36402 ac_ext=cc
36403 ac_cpp='$CXXCPP $CPPFLAGS'
36404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36407
36408 cat >conftest.$ac_ext <<_ACEOF
36409 #line $LINENO "configure"
36410 /* confdefs.h. */
36411 _ACEOF
36412 cat confdefs.h >>conftest.$ac_ext
36413 cat >>conftest.$ac_ext <<_ACEOF
36414 /* end confdefs.h. */
36415 #include <math.h>
36416 #ifdef HAVE_IEEEFP_H
36417 #include <ieeefp.h>
36418 #endif
36419
36420 int
36421 main ()
36422 {
36423 isinfl(0);
36424 ;
36425 return 0;
36426 }
36427 _ACEOF
36428 rm -f conftest.$ac_objext
36429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36430 (eval $ac_compile) 2>&5
36431 ac_status=$?
36432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433 (exit $ac_status); } &&
36434 { ac_try='test -s conftest.$ac_objext'
36435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36436 (eval $ac_try) 2>&5
36437 ac_status=$?
36438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439 (exit $ac_status); }; }; then
36440 glibcxx_cv_func_isinfl_use=yes
36441 else
36442 echo "$as_me: failed program was:" >&5
36443 sed 's/^/| /' conftest.$ac_ext >&5
36444
36445 glibcxx_cv_func_isinfl_use=no
36446 fi
36447 rm -f conftest.$ac_objext conftest.$ac_ext
36448 ac_ext=c
36449 ac_cpp='$CPP $CPPFLAGS'
36450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36453
36454
36455 fi
36456
36457 fi
36458 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
36459 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
36460
36461 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
36462
36463 for ac_func in isinfl
36464 do
36465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36466 echo "$as_me:$LINENO: checking for $ac_func" >&5
36467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36468 if eval "test \"\${$as_ac_var+set}\" = set"; then
36469 echo $ECHO_N "(cached) $ECHO_C" >&6
36470 else
36471 if test x$gcc_no_link = xyes; then
36472 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36473 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36474 { (exit 1); exit 1; }; }
36475 fi
36476 cat >conftest.$ac_ext <<_ACEOF
36477 #line $LINENO "configure"
36478 /* confdefs.h. */
36479 _ACEOF
36480 cat confdefs.h >>conftest.$ac_ext
36481 cat >>conftest.$ac_ext <<_ACEOF
36482 /* end confdefs.h. */
36483 /* System header to define __stub macros and hopefully few prototypes,
36484 which can conflict with char $ac_func (); below.
36485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36486 <limits.h> exists even on freestanding compilers. */
36487 #ifdef __STDC__
36488 # include <limits.h>
36489 #else
36490 # include <assert.h>
36491 #endif
36492 /* Override any gcc2 internal prototype to avoid an error. */
36493 #ifdef __cplusplus
36494 extern "C"
36495 {
36496 #endif
36497 /* We use char because int might match the return type of a gcc2
36498 builtin and then its argument prototype would still apply. */
36499 char $ac_func ();
36500 /* The GNU C library defines this for functions which it implements
36501 to always fail with ENOSYS. Some functions are actually named
36502 something starting with __ and the normal name is an alias. */
36503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36504 choke me
36505 #else
36506 char (*f) () = $ac_func;
36507 #endif
36508 #ifdef __cplusplus
36509 }
36510 #endif
36511
36512 int
36513 main ()
36514 {
36515 return f != $ac_func;
36516 ;
36517 return 0;
36518 }
36519 _ACEOF
36520 rm -f conftest.$ac_objext conftest$ac_exeext
36521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36522 (eval $ac_link) 2>&5
36523 ac_status=$?
36524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525 (exit $ac_status); } &&
36526 { ac_try='test -s conftest$ac_exeext'
36527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36528 (eval $ac_try) 2>&5
36529 ac_status=$?
36530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36531 (exit $ac_status); }; }; then
36532 eval "$as_ac_var=yes"
36533 else
36534 echo "$as_me: failed program was:" >&5
36535 sed 's/^/| /' conftest.$ac_ext >&5
36536
36537 eval "$as_ac_var=no"
36538 fi
36539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36540 fi
36541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36543 if test `eval echo '${'$as_ac_var'}'` = yes; then
36544 cat >>confdefs.h <<_ACEOF
36545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36546 _ACEOF
36547
36548 fi
36549 done
36550
36551 else
36552
36553 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
36554 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
36555 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
36556 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
36557 echo $ECHO_N "(cached) $ECHO_C" >&6
36558 else
36559
36560
36561
36562 ac_ext=cc
36563 ac_cpp='$CXXCPP $CPPFLAGS'
36564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36567
36568 cat >conftest.$ac_ext <<_ACEOF
36569 #line $LINENO "configure"
36570 /* confdefs.h. */
36571 _ACEOF
36572 cat confdefs.h >>conftest.$ac_ext
36573 cat >>conftest.$ac_ext <<_ACEOF
36574 /* end confdefs.h. */
36575 #include <math.h>
36576 #ifdef HAVE_IEEEFP_H
36577 #include <ieeefp.h>
36578 #endif
36579
36580 int
36581 main ()
36582 {
36583 _isinfl(0);
36584 ;
36585 return 0;
36586 }
36587 _ACEOF
36588 rm -f conftest.$ac_objext
36589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36590 (eval $ac_compile) 2>&5
36591 ac_status=$?
36592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36593 (exit $ac_status); } &&
36594 { ac_try='test -s conftest.$ac_objext'
36595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36596 (eval $ac_try) 2>&5
36597 ac_status=$?
36598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36599 (exit $ac_status); }; }; then
36600 glibcxx_cv_func__isinfl_use=yes
36601 else
36602 echo "$as_me: failed program was:" >&5
36603 sed 's/^/| /' conftest.$ac_ext >&5
36604
36605 glibcxx_cv_func__isinfl_use=no
36606 fi
36607 rm -f conftest.$ac_objext conftest.$ac_ext
36608 ac_ext=c
36609 ac_cpp='$CPP $CPPFLAGS'
36610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36613
36614
36615 fi
36616
36617 fi
36618 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
36619 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
36620
36621 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
36622
36623 for ac_func in _isinfl
36624 do
36625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36626 echo "$as_me:$LINENO: checking for $ac_func" >&5
36627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36628 if eval "test \"\${$as_ac_var+set}\" = set"; then
36629 echo $ECHO_N "(cached) $ECHO_C" >&6
36630 else
36631 if test x$gcc_no_link = xyes; then
36632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36634 { (exit 1); exit 1; }; }
36635 fi
36636 cat >conftest.$ac_ext <<_ACEOF
36637 #line $LINENO "configure"
36638 /* confdefs.h. */
36639 _ACEOF
36640 cat confdefs.h >>conftest.$ac_ext
36641 cat >>conftest.$ac_ext <<_ACEOF
36642 /* end confdefs.h. */
36643 /* System header to define __stub macros and hopefully few prototypes,
36644 which can conflict with char $ac_func (); below.
36645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36646 <limits.h> exists even on freestanding compilers. */
36647 #ifdef __STDC__
36648 # include <limits.h>
36649 #else
36650 # include <assert.h>
36651 #endif
36652 /* Override any gcc2 internal prototype to avoid an error. */
36653 #ifdef __cplusplus
36654 extern "C"
36655 {
36656 #endif
36657 /* We use char because int might match the return type of a gcc2
36658 builtin and then its argument prototype would still apply. */
36659 char $ac_func ();
36660 /* The GNU C library defines this for functions which it implements
36661 to always fail with ENOSYS. Some functions are actually named
36662 something starting with __ and the normal name is an alias. */
36663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36664 choke me
36665 #else
36666 char (*f) () = $ac_func;
36667 #endif
36668 #ifdef __cplusplus
36669 }
36670 #endif
36671
36672 int
36673 main ()
36674 {
36675 return f != $ac_func;
36676 ;
36677 return 0;
36678 }
36679 _ACEOF
36680 rm -f conftest.$ac_objext conftest$ac_exeext
36681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36682 (eval $ac_link) 2>&5
36683 ac_status=$?
36684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36685 (exit $ac_status); } &&
36686 { ac_try='test -s conftest$ac_exeext'
36687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36688 (eval $ac_try) 2>&5
36689 ac_status=$?
36690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691 (exit $ac_status); }; }; then
36692 eval "$as_ac_var=yes"
36693 else
36694 echo "$as_me: failed program was:" >&5
36695 sed 's/^/| /' conftest.$ac_ext >&5
36696
36697 eval "$as_ac_var=no"
36698 fi
36699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36700 fi
36701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36703 if test `eval echo '${'$as_ac_var'}'` = yes; then
36704 cat >>confdefs.h <<_ACEOF
36705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36706 _ACEOF
36707
36708 fi
36709 done
36710
36711 fi
36712 fi
36713
36714
36715
36716 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
36717 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
36718 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
36719 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
36720 echo $ECHO_N "(cached) $ECHO_C" >&6
36721 else
36722
36723
36724
36725 ac_ext=cc
36726 ac_cpp='$CXXCPP $CPPFLAGS'
36727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36730
36731 cat >conftest.$ac_ext <<_ACEOF
36732 #line $LINENO "configure"
36733 /* confdefs.h. */
36734 _ACEOF
36735 cat confdefs.h >>conftest.$ac_ext
36736 cat >>conftest.$ac_ext <<_ACEOF
36737 /* end confdefs.h. */
36738 #include <math.h>
36739 int
36740 main ()
36741 {
36742 copysignl(0, 0);
36743 ;
36744 return 0;
36745 }
36746 _ACEOF
36747 rm -f conftest.$ac_objext
36748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36749 (eval $ac_compile) 2>&5
36750 ac_status=$?
36751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752 (exit $ac_status); } &&
36753 { ac_try='test -s conftest.$ac_objext'
36754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36755 (eval $ac_try) 2>&5
36756 ac_status=$?
36757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758 (exit $ac_status); }; }; then
36759 glibcxx_cv_func_copysignl_use=yes
36760 else
36761 echo "$as_me: failed program was:" >&5
36762 sed 's/^/| /' conftest.$ac_ext >&5
36763
36764 glibcxx_cv_func_copysignl_use=no
36765 fi
36766 rm -f conftest.$ac_objext conftest.$ac_ext
36767 ac_ext=c
36768 ac_cpp='$CPP $CPPFLAGS'
36769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36772
36773
36774 fi
36775
36776 fi
36777 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
36778 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
36779
36780 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
36781
36782 for ac_func in copysignl
36783 do
36784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36785 echo "$as_me:$LINENO: checking for $ac_func" >&5
36786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36787 if eval "test \"\${$as_ac_var+set}\" = set"; then
36788 echo $ECHO_N "(cached) $ECHO_C" >&6
36789 else
36790 if test x$gcc_no_link = xyes; then
36791 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36792 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36793 { (exit 1); exit 1; }; }
36794 fi
36795 cat >conftest.$ac_ext <<_ACEOF
36796 #line $LINENO "configure"
36797 /* confdefs.h. */
36798 _ACEOF
36799 cat confdefs.h >>conftest.$ac_ext
36800 cat >>conftest.$ac_ext <<_ACEOF
36801 /* end confdefs.h. */
36802 /* System header to define __stub macros and hopefully few prototypes,
36803 which can conflict with char $ac_func (); below.
36804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36805 <limits.h> exists even on freestanding compilers. */
36806 #ifdef __STDC__
36807 # include <limits.h>
36808 #else
36809 # include <assert.h>
36810 #endif
36811 /* Override any gcc2 internal prototype to avoid an error. */
36812 #ifdef __cplusplus
36813 extern "C"
36814 {
36815 #endif
36816 /* We use char because int might match the return type of a gcc2
36817 builtin and then its argument prototype would still apply. */
36818 char $ac_func ();
36819 /* The GNU C library defines this for functions which it implements
36820 to always fail with ENOSYS. Some functions are actually named
36821 something starting with __ and the normal name is an alias. */
36822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36823 choke me
36824 #else
36825 char (*f) () = $ac_func;
36826 #endif
36827 #ifdef __cplusplus
36828 }
36829 #endif
36830
36831 int
36832 main ()
36833 {
36834 return f != $ac_func;
36835 ;
36836 return 0;
36837 }
36838 _ACEOF
36839 rm -f conftest.$ac_objext conftest$ac_exeext
36840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36841 (eval $ac_link) 2>&5
36842 ac_status=$?
36843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36844 (exit $ac_status); } &&
36845 { ac_try='test -s conftest$ac_exeext'
36846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36847 (eval $ac_try) 2>&5
36848 ac_status=$?
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); }; }; then
36851 eval "$as_ac_var=yes"
36852 else
36853 echo "$as_me: failed program was:" >&5
36854 sed 's/^/| /' conftest.$ac_ext >&5
36855
36856 eval "$as_ac_var=no"
36857 fi
36858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36859 fi
36860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36862 if test `eval echo '${'$as_ac_var'}'` = yes; then
36863 cat >>confdefs.h <<_ACEOF
36864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36865 _ACEOF
36866
36867 fi
36868 done
36869
36870 else
36871
36872 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
36873 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
36874 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
36875 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
36876 echo $ECHO_N "(cached) $ECHO_C" >&6
36877 else
36878
36879
36880
36881 ac_ext=cc
36882 ac_cpp='$CXXCPP $CPPFLAGS'
36883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36886
36887 cat >conftest.$ac_ext <<_ACEOF
36888 #line $LINENO "configure"
36889 /* confdefs.h. */
36890 _ACEOF
36891 cat confdefs.h >>conftest.$ac_ext
36892 cat >>conftest.$ac_ext <<_ACEOF
36893 /* end confdefs.h. */
36894 #include <math.h>
36895 int
36896 main ()
36897 {
36898 _copysignl(0, 0);
36899 ;
36900 return 0;
36901 }
36902 _ACEOF
36903 rm -f conftest.$ac_objext
36904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36905 (eval $ac_compile) 2>&5
36906 ac_status=$?
36907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908 (exit $ac_status); } &&
36909 { ac_try='test -s conftest.$ac_objext'
36910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36911 (eval $ac_try) 2>&5
36912 ac_status=$?
36913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914 (exit $ac_status); }; }; then
36915 glibcxx_cv_func__copysignl_use=yes
36916 else
36917 echo "$as_me: failed program was:" >&5
36918 sed 's/^/| /' conftest.$ac_ext >&5
36919
36920 glibcxx_cv_func__copysignl_use=no
36921 fi
36922 rm -f conftest.$ac_objext conftest.$ac_ext
36923 ac_ext=c
36924 ac_cpp='$CPP $CPPFLAGS'
36925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36928
36929
36930 fi
36931
36932 fi
36933 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
36934 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
36935
36936 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
36937
36938 for ac_func in _copysignl
36939 do
36940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36941 echo "$as_me:$LINENO: checking for $ac_func" >&5
36942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36943 if eval "test \"\${$as_ac_var+set}\" = set"; then
36944 echo $ECHO_N "(cached) $ECHO_C" >&6
36945 else
36946 if test x$gcc_no_link = xyes; then
36947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36949 { (exit 1); exit 1; }; }
36950 fi
36951 cat >conftest.$ac_ext <<_ACEOF
36952 #line $LINENO "configure"
36953 /* confdefs.h. */
36954 _ACEOF
36955 cat confdefs.h >>conftest.$ac_ext
36956 cat >>conftest.$ac_ext <<_ACEOF
36957 /* end confdefs.h. */
36958 /* System header to define __stub macros and hopefully few prototypes,
36959 which can conflict with char $ac_func (); below.
36960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36961 <limits.h> exists even on freestanding compilers. */
36962 #ifdef __STDC__
36963 # include <limits.h>
36964 #else
36965 # include <assert.h>
36966 #endif
36967 /* Override any gcc2 internal prototype to avoid an error. */
36968 #ifdef __cplusplus
36969 extern "C"
36970 {
36971 #endif
36972 /* We use char because int might match the return type of a gcc2
36973 builtin and then its argument prototype would still apply. */
36974 char $ac_func ();
36975 /* The GNU C library defines this for functions which it implements
36976 to always fail with ENOSYS. Some functions are actually named
36977 something starting with __ and the normal name is an alias. */
36978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36979 choke me
36980 #else
36981 char (*f) () = $ac_func;
36982 #endif
36983 #ifdef __cplusplus
36984 }
36985 #endif
36986
36987 int
36988 main ()
36989 {
36990 return f != $ac_func;
36991 ;
36992 return 0;
36993 }
36994 _ACEOF
36995 rm -f conftest.$ac_objext conftest$ac_exeext
36996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36997 (eval $ac_link) 2>&5
36998 ac_status=$?
36999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000 (exit $ac_status); } &&
37001 { ac_try='test -s conftest$ac_exeext'
37002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37003 (eval $ac_try) 2>&5
37004 ac_status=$?
37005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006 (exit $ac_status); }; }; then
37007 eval "$as_ac_var=yes"
37008 else
37009 echo "$as_me: failed program was:" >&5
37010 sed 's/^/| /' conftest.$ac_ext >&5
37011
37012 eval "$as_ac_var=no"
37013 fi
37014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37015 fi
37016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37018 if test `eval echo '${'$as_ac_var'}'` = yes; then
37019 cat >>confdefs.h <<_ACEOF
37020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37021 _ACEOF
37022
37023 fi
37024 done
37025
37026 fi
37027 fi
37028
37029
37030
37031 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
37032 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
37033 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
37034 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
37035 echo $ECHO_N "(cached) $ECHO_C" >&6
37036 else
37037
37038
37039
37040 ac_ext=cc
37041 ac_cpp='$CXXCPP $CPPFLAGS'
37042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37045
37046 cat >conftest.$ac_ext <<_ACEOF
37047 #line $LINENO "configure"
37048 /* confdefs.h. */
37049 _ACEOF
37050 cat confdefs.h >>conftest.$ac_ext
37051 cat >>conftest.$ac_ext <<_ACEOF
37052 /* end confdefs.h. */
37053 #include <math.h>
37054 int
37055 main ()
37056 {
37057 atan2l(0, 0);
37058 ;
37059 return 0;
37060 }
37061 _ACEOF
37062 rm -f conftest.$ac_objext
37063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37064 (eval $ac_compile) 2>&5
37065 ac_status=$?
37066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067 (exit $ac_status); } &&
37068 { ac_try='test -s conftest.$ac_objext'
37069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37070 (eval $ac_try) 2>&5
37071 ac_status=$?
37072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37073 (exit $ac_status); }; }; then
37074 glibcxx_cv_func_atan2l_use=yes
37075 else
37076 echo "$as_me: failed program was:" >&5
37077 sed 's/^/| /' conftest.$ac_ext >&5
37078
37079 glibcxx_cv_func_atan2l_use=no
37080 fi
37081 rm -f conftest.$ac_objext conftest.$ac_ext
37082 ac_ext=c
37083 ac_cpp='$CPP $CPPFLAGS'
37084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37087
37088
37089 fi
37090
37091 fi
37092 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
37093 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
37094
37095 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
37096
37097 for ac_func in atan2l
37098 do
37099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37100 echo "$as_me:$LINENO: checking for $ac_func" >&5
37101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37102 if eval "test \"\${$as_ac_var+set}\" = set"; then
37103 echo $ECHO_N "(cached) $ECHO_C" >&6
37104 else
37105 if test x$gcc_no_link = xyes; then
37106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37108 { (exit 1); exit 1; }; }
37109 fi
37110 cat >conftest.$ac_ext <<_ACEOF
37111 #line $LINENO "configure"
37112 /* confdefs.h. */
37113 _ACEOF
37114 cat confdefs.h >>conftest.$ac_ext
37115 cat >>conftest.$ac_ext <<_ACEOF
37116 /* end confdefs.h. */
37117 /* System header to define __stub macros and hopefully few prototypes,
37118 which can conflict with char $ac_func (); below.
37119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37120 <limits.h> exists even on freestanding compilers. */
37121 #ifdef __STDC__
37122 # include <limits.h>
37123 #else
37124 # include <assert.h>
37125 #endif
37126 /* Override any gcc2 internal prototype to avoid an error. */
37127 #ifdef __cplusplus
37128 extern "C"
37129 {
37130 #endif
37131 /* We use char because int might match the return type of a gcc2
37132 builtin and then its argument prototype would still apply. */
37133 char $ac_func ();
37134 /* The GNU C library defines this for functions which it implements
37135 to always fail with ENOSYS. Some functions are actually named
37136 something starting with __ and the normal name is an alias. */
37137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37138 choke me
37139 #else
37140 char (*f) () = $ac_func;
37141 #endif
37142 #ifdef __cplusplus
37143 }
37144 #endif
37145
37146 int
37147 main ()
37148 {
37149 return f != $ac_func;
37150 ;
37151 return 0;
37152 }
37153 _ACEOF
37154 rm -f conftest.$ac_objext conftest$ac_exeext
37155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37156 (eval $ac_link) 2>&5
37157 ac_status=$?
37158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159 (exit $ac_status); } &&
37160 { ac_try='test -s conftest$ac_exeext'
37161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37162 (eval $ac_try) 2>&5
37163 ac_status=$?
37164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37165 (exit $ac_status); }; }; then
37166 eval "$as_ac_var=yes"
37167 else
37168 echo "$as_me: failed program was:" >&5
37169 sed 's/^/| /' conftest.$ac_ext >&5
37170
37171 eval "$as_ac_var=no"
37172 fi
37173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37174 fi
37175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37177 if test `eval echo '${'$as_ac_var'}'` = yes; then
37178 cat >>confdefs.h <<_ACEOF
37179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37180 _ACEOF
37181
37182 fi
37183 done
37184
37185 else
37186
37187 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
37188 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
37189 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
37190 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
37191 echo $ECHO_N "(cached) $ECHO_C" >&6
37192 else
37193
37194
37195
37196 ac_ext=cc
37197 ac_cpp='$CXXCPP $CPPFLAGS'
37198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37201
37202 cat >conftest.$ac_ext <<_ACEOF
37203 #line $LINENO "configure"
37204 /* confdefs.h. */
37205 _ACEOF
37206 cat confdefs.h >>conftest.$ac_ext
37207 cat >>conftest.$ac_ext <<_ACEOF
37208 /* end confdefs.h. */
37209 #include <math.h>
37210 int
37211 main ()
37212 {
37213 _atan2l(0, 0);
37214 ;
37215 return 0;
37216 }
37217 _ACEOF
37218 rm -f conftest.$ac_objext
37219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37220 (eval $ac_compile) 2>&5
37221 ac_status=$?
37222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223 (exit $ac_status); } &&
37224 { ac_try='test -s conftest.$ac_objext'
37225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37226 (eval $ac_try) 2>&5
37227 ac_status=$?
37228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37229 (exit $ac_status); }; }; then
37230 glibcxx_cv_func__atan2l_use=yes
37231 else
37232 echo "$as_me: failed program was:" >&5
37233 sed 's/^/| /' conftest.$ac_ext >&5
37234
37235 glibcxx_cv_func__atan2l_use=no
37236 fi
37237 rm -f conftest.$ac_objext conftest.$ac_ext
37238 ac_ext=c
37239 ac_cpp='$CPP $CPPFLAGS'
37240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37243
37244
37245 fi
37246
37247 fi
37248 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
37249 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
37250
37251 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
37252
37253 for ac_func in _atan2l
37254 do
37255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37256 echo "$as_me:$LINENO: checking for $ac_func" >&5
37257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37258 if eval "test \"\${$as_ac_var+set}\" = set"; then
37259 echo $ECHO_N "(cached) $ECHO_C" >&6
37260 else
37261 if test x$gcc_no_link = xyes; then
37262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37264 { (exit 1); exit 1; }; }
37265 fi
37266 cat >conftest.$ac_ext <<_ACEOF
37267 #line $LINENO "configure"
37268 /* confdefs.h. */
37269 _ACEOF
37270 cat confdefs.h >>conftest.$ac_ext
37271 cat >>conftest.$ac_ext <<_ACEOF
37272 /* end confdefs.h. */
37273 /* System header to define __stub macros and hopefully few prototypes,
37274 which can conflict with char $ac_func (); below.
37275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37276 <limits.h> exists even on freestanding compilers. */
37277 #ifdef __STDC__
37278 # include <limits.h>
37279 #else
37280 # include <assert.h>
37281 #endif
37282 /* Override any gcc2 internal prototype to avoid an error. */
37283 #ifdef __cplusplus
37284 extern "C"
37285 {
37286 #endif
37287 /* We use char because int might match the return type of a gcc2
37288 builtin and then its argument prototype would still apply. */
37289 char $ac_func ();
37290 /* The GNU C library defines this for functions which it implements
37291 to always fail with ENOSYS. Some functions are actually named
37292 something starting with __ and the normal name is an alias. */
37293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37294 choke me
37295 #else
37296 char (*f) () = $ac_func;
37297 #endif
37298 #ifdef __cplusplus
37299 }
37300 #endif
37301
37302 int
37303 main ()
37304 {
37305 return f != $ac_func;
37306 ;
37307 return 0;
37308 }
37309 _ACEOF
37310 rm -f conftest.$ac_objext conftest$ac_exeext
37311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37312 (eval $ac_link) 2>&5
37313 ac_status=$?
37314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315 (exit $ac_status); } &&
37316 { ac_try='test -s conftest$ac_exeext'
37317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37318 (eval $ac_try) 2>&5
37319 ac_status=$?
37320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); }; }; then
37322 eval "$as_ac_var=yes"
37323 else
37324 echo "$as_me: failed program was:" >&5
37325 sed 's/^/| /' conftest.$ac_ext >&5
37326
37327 eval "$as_ac_var=no"
37328 fi
37329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37330 fi
37331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37333 if test `eval echo '${'$as_ac_var'}'` = yes; then
37334 cat >>confdefs.h <<_ACEOF
37335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37336 _ACEOF
37337
37338 fi
37339 done
37340
37341 fi
37342 fi
37343
37344
37345
37346 echo "$as_me:$LINENO: checking for expl declaration" >&5
37347 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
37348 if test x${glibcxx_cv_func_expl_use+set} != xset; then
37349 if test "${glibcxx_cv_func_expl_use+set}" = set; then
37350 echo $ECHO_N "(cached) $ECHO_C" >&6
37351 else
37352
37353
37354
37355 ac_ext=cc
37356 ac_cpp='$CXXCPP $CPPFLAGS'
37357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37360
37361 cat >conftest.$ac_ext <<_ACEOF
37362 #line $LINENO "configure"
37363 /* confdefs.h. */
37364 _ACEOF
37365 cat confdefs.h >>conftest.$ac_ext
37366 cat >>conftest.$ac_ext <<_ACEOF
37367 /* end confdefs.h. */
37368 #include <math.h>
37369 #ifdef HAVE_IEEEFP_H
37370 #include <ieeefp.h>
37371 #endif
37372
37373 int
37374 main ()
37375 {
37376 expl(0);
37377 ;
37378 return 0;
37379 }
37380 _ACEOF
37381 rm -f conftest.$ac_objext
37382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37383 (eval $ac_compile) 2>&5
37384 ac_status=$?
37385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386 (exit $ac_status); } &&
37387 { ac_try='test -s conftest.$ac_objext'
37388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37389 (eval $ac_try) 2>&5
37390 ac_status=$?
37391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392 (exit $ac_status); }; }; then
37393 glibcxx_cv_func_expl_use=yes
37394 else
37395 echo "$as_me: failed program was:" >&5
37396 sed 's/^/| /' conftest.$ac_ext >&5
37397
37398 glibcxx_cv_func_expl_use=no
37399 fi
37400 rm -f conftest.$ac_objext conftest.$ac_ext
37401 ac_ext=c
37402 ac_cpp='$CPP $CPPFLAGS'
37403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37406
37407
37408 fi
37409
37410 fi
37411 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
37412 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
37413
37414 if test x$glibcxx_cv_func_expl_use = x"yes"; then
37415
37416 for ac_func in expl
37417 do
37418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37419 echo "$as_me:$LINENO: checking for $ac_func" >&5
37420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37421 if eval "test \"\${$as_ac_var+set}\" = set"; then
37422 echo $ECHO_N "(cached) $ECHO_C" >&6
37423 else
37424 if test x$gcc_no_link = xyes; then
37425 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37426 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37427 { (exit 1); exit 1; }; }
37428 fi
37429 cat >conftest.$ac_ext <<_ACEOF
37430 #line $LINENO "configure"
37431 /* confdefs.h. */
37432 _ACEOF
37433 cat confdefs.h >>conftest.$ac_ext
37434 cat >>conftest.$ac_ext <<_ACEOF
37435 /* end confdefs.h. */
37436 /* System header to define __stub macros and hopefully few prototypes,
37437 which can conflict with char $ac_func (); below.
37438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37439 <limits.h> exists even on freestanding compilers. */
37440 #ifdef __STDC__
37441 # include <limits.h>
37442 #else
37443 # include <assert.h>
37444 #endif
37445 /* Override any gcc2 internal prototype to avoid an error. */
37446 #ifdef __cplusplus
37447 extern "C"
37448 {
37449 #endif
37450 /* We use char because int might match the return type of a gcc2
37451 builtin and then its argument prototype would still apply. */
37452 char $ac_func ();
37453 /* The GNU C library defines this for functions which it implements
37454 to always fail with ENOSYS. Some functions are actually named
37455 something starting with __ and the normal name is an alias. */
37456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37457 choke me
37458 #else
37459 char (*f) () = $ac_func;
37460 #endif
37461 #ifdef __cplusplus
37462 }
37463 #endif
37464
37465 int
37466 main ()
37467 {
37468 return f != $ac_func;
37469 ;
37470 return 0;
37471 }
37472 _ACEOF
37473 rm -f conftest.$ac_objext conftest$ac_exeext
37474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37475 (eval $ac_link) 2>&5
37476 ac_status=$?
37477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478 (exit $ac_status); } &&
37479 { ac_try='test -s conftest$ac_exeext'
37480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481 (eval $ac_try) 2>&5
37482 ac_status=$?
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); }; }; then
37485 eval "$as_ac_var=yes"
37486 else
37487 echo "$as_me: failed program was:" >&5
37488 sed 's/^/| /' conftest.$ac_ext >&5
37489
37490 eval "$as_ac_var=no"
37491 fi
37492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37493 fi
37494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37496 if test `eval echo '${'$as_ac_var'}'` = yes; then
37497 cat >>confdefs.h <<_ACEOF
37498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37499 _ACEOF
37500
37501 fi
37502 done
37503
37504 else
37505
37506 echo "$as_me:$LINENO: checking for _expl declaration" >&5
37507 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
37508 if test x${glibcxx_cv_func__expl_use+set} != xset; then
37509 if test "${glibcxx_cv_func__expl_use+set}" = set; then
37510 echo $ECHO_N "(cached) $ECHO_C" >&6
37511 else
37512
37513
37514
37515 ac_ext=cc
37516 ac_cpp='$CXXCPP $CPPFLAGS'
37517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37520
37521 cat >conftest.$ac_ext <<_ACEOF
37522 #line $LINENO "configure"
37523 /* confdefs.h. */
37524 _ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h. */
37528 #include <math.h>
37529 #ifdef HAVE_IEEEFP_H
37530 #include <ieeefp.h>
37531 #endif
37532
37533 int
37534 main ()
37535 {
37536 _expl(0);
37537 ;
37538 return 0;
37539 }
37540 _ACEOF
37541 rm -f conftest.$ac_objext
37542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37543 (eval $ac_compile) 2>&5
37544 ac_status=$?
37545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37546 (exit $ac_status); } &&
37547 { ac_try='test -s conftest.$ac_objext'
37548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37549 (eval $ac_try) 2>&5
37550 ac_status=$?
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); }; }; then
37553 glibcxx_cv_func__expl_use=yes
37554 else
37555 echo "$as_me: failed program was:" >&5
37556 sed 's/^/| /' conftest.$ac_ext >&5
37557
37558 glibcxx_cv_func__expl_use=no
37559 fi
37560 rm -f conftest.$ac_objext conftest.$ac_ext
37561 ac_ext=c
37562 ac_cpp='$CPP $CPPFLAGS'
37563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37566
37567
37568 fi
37569
37570 fi
37571 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
37572 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
37573
37574 if test x$glibcxx_cv_func__expl_use = x"yes"; then
37575
37576 for ac_func in _expl
37577 do
37578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37579 echo "$as_me:$LINENO: checking for $ac_func" >&5
37580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37581 if eval "test \"\${$as_ac_var+set}\" = set"; then
37582 echo $ECHO_N "(cached) $ECHO_C" >&6
37583 else
37584 if test x$gcc_no_link = xyes; then
37585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37587 { (exit 1); exit 1; }; }
37588 fi
37589 cat >conftest.$ac_ext <<_ACEOF
37590 #line $LINENO "configure"
37591 /* confdefs.h. */
37592 _ACEOF
37593 cat confdefs.h >>conftest.$ac_ext
37594 cat >>conftest.$ac_ext <<_ACEOF
37595 /* end confdefs.h. */
37596 /* System header to define __stub macros and hopefully few prototypes,
37597 which can conflict with char $ac_func (); below.
37598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37599 <limits.h> exists even on freestanding compilers. */
37600 #ifdef __STDC__
37601 # include <limits.h>
37602 #else
37603 # include <assert.h>
37604 #endif
37605 /* Override any gcc2 internal prototype to avoid an error. */
37606 #ifdef __cplusplus
37607 extern "C"
37608 {
37609 #endif
37610 /* We use char because int might match the return type of a gcc2
37611 builtin and then its argument prototype would still apply. */
37612 char $ac_func ();
37613 /* The GNU C library defines this for functions which it implements
37614 to always fail with ENOSYS. Some functions are actually named
37615 something starting with __ and the normal name is an alias. */
37616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37617 choke me
37618 #else
37619 char (*f) () = $ac_func;
37620 #endif
37621 #ifdef __cplusplus
37622 }
37623 #endif
37624
37625 int
37626 main ()
37627 {
37628 return f != $ac_func;
37629 ;
37630 return 0;
37631 }
37632 _ACEOF
37633 rm -f conftest.$ac_objext conftest$ac_exeext
37634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37635 (eval $ac_link) 2>&5
37636 ac_status=$?
37637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37638 (exit $ac_status); } &&
37639 { ac_try='test -s conftest$ac_exeext'
37640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37641 (eval $ac_try) 2>&5
37642 ac_status=$?
37643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644 (exit $ac_status); }; }; then
37645 eval "$as_ac_var=yes"
37646 else
37647 echo "$as_me: failed program was:" >&5
37648 sed 's/^/| /' conftest.$ac_ext >&5
37649
37650 eval "$as_ac_var=no"
37651 fi
37652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37653 fi
37654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37656 if test `eval echo '${'$as_ac_var'}'` = yes; then
37657 cat >>confdefs.h <<_ACEOF
37658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37659 _ACEOF
37660
37661 fi
37662 done
37663
37664 fi
37665 fi
37666
37667
37668
37669 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
37670 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
37671 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
37672 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
37673 echo $ECHO_N "(cached) $ECHO_C" >&6
37674 else
37675
37676
37677
37678 ac_ext=cc
37679 ac_cpp='$CXXCPP $CPPFLAGS'
37680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37683
37684 cat >conftest.$ac_ext <<_ACEOF
37685 #line $LINENO "configure"
37686 /* confdefs.h. */
37687 _ACEOF
37688 cat confdefs.h >>conftest.$ac_ext
37689 cat >>conftest.$ac_ext <<_ACEOF
37690 /* end confdefs.h. */
37691 #include <math.h>
37692 #ifdef HAVE_IEEEFP_H
37693 #include <ieeefp.h>
37694 #endif
37695
37696 int
37697 main ()
37698 {
37699 fabsl(0);
37700 ;
37701 return 0;
37702 }
37703 _ACEOF
37704 rm -f conftest.$ac_objext
37705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37706 (eval $ac_compile) 2>&5
37707 ac_status=$?
37708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37709 (exit $ac_status); } &&
37710 { ac_try='test -s conftest.$ac_objext'
37711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37712 (eval $ac_try) 2>&5
37713 ac_status=$?
37714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715 (exit $ac_status); }; }; then
37716 glibcxx_cv_func_fabsl_use=yes
37717 else
37718 echo "$as_me: failed program was:" >&5
37719 sed 's/^/| /' conftest.$ac_ext >&5
37720
37721 glibcxx_cv_func_fabsl_use=no
37722 fi
37723 rm -f conftest.$ac_objext conftest.$ac_ext
37724 ac_ext=c
37725 ac_cpp='$CPP $CPPFLAGS'
37726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37729
37730
37731 fi
37732
37733 fi
37734 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
37735 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
37736
37737 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
37738
37739 for ac_func in fabsl
37740 do
37741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37742 echo "$as_me:$LINENO: checking for $ac_func" >&5
37743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37744 if eval "test \"\${$as_ac_var+set}\" = set"; then
37745 echo $ECHO_N "(cached) $ECHO_C" >&6
37746 else
37747 if test x$gcc_no_link = xyes; then
37748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37750 { (exit 1); exit 1; }; }
37751 fi
37752 cat >conftest.$ac_ext <<_ACEOF
37753 #line $LINENO "configure"
37754 /* confdefs.h. */
37755 _ACEOF
37756 cat confdefs.h >>conftest.$ac_ext
37757 cat >>conftest.$ac_ext <<_ACEOF
37758 /* end confdefs.h. */
37759 /* System header to define __stub macros and hopefully few prototypes,
37760 which can conflict with char $ac_func (); below.
37761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37762 <limits.h> exists even on freestanding compilers. */
37763 #ifdef __STDC__
37764 # include <limits.h>
37765 #else
37766 # include <assert.h>
37767 #endif
37768 /* Override any gcc2 internal prototype to avoid an error. */
37769 #ifdef __cplusplus
37770 extern "C"
37771 {
37772 #endif
37773 /* We use char because int might match the return type of a gcc2
37774 builtin and then its argument prototype would still apply. */
37775 char $ac_func ();
37776 /* The GNU C library defines this for functions which it implements
37777 to always fail with ENOSYS. Some functions are actually named
37778 something starting with __ and the normal name is an alias. */
37779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37780 choke me
37781 #else
37782 char (*f) () = $ac_func;
37783 #endif
37784 #ifdef __cplusplus
37785 }
37786 #endif
37787
37788 int
37789 main ()
37790 {
37791 return f != $ac_func;
37792 ;
37793 return 0;
37794 }
37795 _ACEOF
37796 rm -f conftest.$ac_objext conftest$ac_exeext
37797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37798 (eval $ac_link) 2>&5
37799 ac_status=$?
37800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37801 (exit $ac_status); } &&
37802 { ac_try='test -s conftest$ac_exeext'
37803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37804 (eval $ac_try) 2>&5
37805 ac_status=$?
37806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807 (exit $ac_status); }; }; then
37808 eval "$as_ac_var=yes"
37809 else
37810 echo "$as_me: failed program was:" >&5
37811 sed 's/^/| /' conftest.$ac_ext >&5
37812
37813 eval "$as_ac_var=no"
37814 fi
37815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37816 fi
37817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37819 if test `eval echo '${'$as_ac_var'}'` = yes; then
37820 cat >>confdefs.h <<_ACEOF
37821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37822 _ACEOF
37823
37824 fi
37825 done
37826
37827 else
37828
37829 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
37830 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
37831 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
37832 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
37833 echo $ECHO_N "(cached) $ECHO_C" >&6
37834 else
37835
37836
37837
37838 ac_ext=cc
37839 ac_cpp='$CXXCPP $CPPFLAGS'
37840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37843
37844 cat >conftest.$ac_ext <<_ACEOF
37845 #line $LINENO "configure"
37846 /* confdefs.h. */
37847 _ACEOF
37848 cat confdefs.h >>conftest.$ac_ext
37849 cat >>conftest.$ac_ext <<_ACEOF
37850 /* end confdefs.h. */
37851 #include <math.h>
37852 #ifdef HAVE_IEEEFP_H
37853 #include <ieeefp.h>
37854 #endif
37855
37856 int
37857 main ()
37858 {
37859 _fabsl(0);
37860 ;
37861 return 0;
37862 }
37863 _ACEOF
37864 rm -f conftest.$ac_objext
37865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37866 (eval $ac_compile) 2>&5
37867 ac_status=$?
37868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37869 (exit $ac_status); } &&
37870 { ac_try='test -s conftest.$ac_objext'
37871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37872 (eval $ac_try) 2>&5
37873 ac_status=$?
37874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37875 (exit $ac_status); }; }; then
37876 glibcxx_cv_func__fabsl_use=yes
37877 else
37878 echo "$as_me: failed program was:" >&5
37879 sed 's/^/| /' conftest.$ac_ext >&5
37880
37881 glibcxx_cv_func__fabsl_use=no
37882 fi
37883 rm -f conftest.$ac_objext conftest.$ac_ext
37884 ac_ext=c
37885 ac_cpp='$CPP $CPPFLAGS'
37886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37889
37890
37891 fi
37892
37893 fi
37894 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
37895 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
37896
37897 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
37898
37899 for ac_func in _fabsl
37900 do
37901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37902 echo "$as_me:$LINENO: checking for $ac_func" >&5
37903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37904 if eval "test \"\${$as_ac_var+set}\" = set"; then
37905 echo $ECHO_N "(cached) $ECHO_C" >&6
37906 else
37907 if test x$gcc_no_link = xyes; then
37908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37909 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37910 { (exit 1); exit 1; }; }
37911 fi
37912 cat >conftest.$ac_ext <<_ACEOF
37913 #line $LINENO "configure"
37914 /* confdefs.h. */
37915 _ACEOF
37916 cat confdefs.h >>conftest.$ac_ext
37917 cat >>conftest.$ac_ext <<_ACEOF
37918 /* end confdefs.h. */
37919 /* System header to define __stub macros and hopefully few prototypes,
37920 which can conflict with char $ac_func (); below.
37921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37922 <limits.h> exists even on freestanding compilers. */
37923 #ifdef __STDC__
37924 # include <limits.h>
37925 #else
37926 # include <assert.h>
37927 #endif
37928 /* Override any gcc2 internal prototype to avoid an error. */
37929 #ifdef __cplusplus
37930 extern "C"
37931 {
37932 #endif
37933 /* We use char because int might match the return type of a gcc2
37934 builtin and then its argument prototype would still apply. */
37935 char $ac_func ();
37936 /* The GNU C library defines this for functions which it implements
37937 to always fail with ENOSYS. Some functions are actually named
37938 something starting with __ and the normal name is an alias. */
37939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37940 choke me
37941 #else
37942 char (*f) () = $ac_func;
37943 #endif
37944 #ifdef __cplusplus
37945 }
37946 #endif
37947
37948 int
37949 main ()
37950 {
37951 return f != $ac_func;
37952 ;
37953 return 0;
37954 }
37955 _ACEOF
37956 rm -f conftest.$ac_objext conftest$ac_exeext
37957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37958 (eval $ac_link) 2>&5
37959 ac_status=$?
37960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37961 (exit $ac_status); } &&
37962 { ac_try='test -s conftest$ac_exeext'
37963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37964 (eval $ac_try) 2>&5
37965 ac_status=$?
37966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); }; }; then
37968 eval "$as_ac_var=yes"
37969 else
37970 echo "$as_me: failed program was:" >&5
37971 sed 's/^/| /' conftest.$ac_ext >&5
37972
37973 eval "$as_ac_var=no"
37974 fi
37975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37976 fi
37977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37979 if test `eval echo '${'$as_ac_var'}'` = yes; then
37980 cat >>confdefs.h <<_ACEOF
37981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37982 _ACEOF
37983
37984 fi
37985 done
37986
37987 fi
37988 fi
37989
37990
37991
37992 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
37993 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
37994 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
37995 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
37996 echo $ECHO_N "(cached) $ECHO_C" >&6
37997 else
37998
37999
38000
38001 ac_ext=cc
38002 ac_cpp='$CXXCPP $CPPFLAGS'
38003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38006
38007 cat >conftest.$ac_ext <<_ACEOF
38008 #line $LINENO "configure"
38009 /* confdefs.h. */
38010 _ACEOF
38011 cat confdefs.h >>conftest.$ac_ext
38012 cat >>conftest.$ac_ext <<_ACEOF
38013 /* end confdefs.h. */
38014 #include <math.h>
38015 int
38016 main ()
38017 {
38018 fmodl(0, 0);
38019 ;
38020 return 0;
38021 }
38022 _ACEOF
38023 rm -f conftest.$ac_objext
38024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38025 (eval $ac_compile) 2>&5
38026 ac_status=$?
38027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); } &&
38029 { ac_try='test -s conftest.$ac_objext'
38030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38031 (eval $ac_try) 2>&5
38032 ac_status=$?
38033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38034 (exit $ac_status); }; }; then
38035 glibcxx_cv_func_fmodl_use=yes
38036 else
38037 echo "$as_me: failed program was:" >&5
38038 sed 's/^/| /' conftest.$ac_ext >&5
38039
38040 glibcxx_cv_func_fmodl_use=no
38041 fi
38042 rm -f conftest.$ac_objext conftest.$ac_ext
38043 ac_ext=c
38044 ac_cpp='$CPP $CPPFLAGS'
38045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38048
38049
38050 fi
38051
38052 fi
38053 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
38054 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
38055
38056 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
38057
38058 for ac_func in fmodl
38059 do
38060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38061 echo "$as_me:$LINENO: checking for $ac_func" >&5
38062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38063 if eval "test \"\${$as_ac_var+set}\" = set"; then
38064 echo $ECHO_N "(cached) $ECHO_C" >&6
38065 else
38066 if test x$gcc_no_link = xyes; then
38067 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38068 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38069 { (exit 1); exit 1; }; }
38070 fi
38071 cat >conftest.$ac_ext <<_ACEOF
38072 #line $LINENO "configure"
38073 /* confdefs.h. */
38074 _ACEOF
38075 cat confdefs.h >>conftest.$ac_ext
38076 cat >>conftest.$ac_ext <<_ACEOF
38077 /* end confdefs.h. */
38078 /* System header to define __stub macros and hopefully few prototypes,
38079 which can conflict with char $ac_func (); below.
38080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38081 <limits.h> exists even on freestanding compilers. */
38082 #ifdef __STDC__
38083 # include <limits.h>
38084 #else
38085 # include <assert.h>
38086 #endif
38087 /* Override any gcc2 internal prototype to avoid an error. */
38088 #ifdef __cplusplus
38089 extern "C"
38090 {
38091 #endif
38092 /* We use char because int might match the return type of a gcc2
38093 builtin and then its argument prototype would still apply. */
38094 char $ac_func ();
38095 /* The GNU C library defines this for functions which it implements
38096 to always fail with ENOSYS. Some functions are actually named
38097 something starting with __ and the normal name is an alias. */
38098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38099 choke me
38100 #else
38101 char (*f) () = $ac_func;
38102 #endif
38103 #ifdef __cplusplus
38104 }
38105 #endif
38106
38107 int
38108 main ()
38109 {
38110 return f != $ac_func;
38111 ;
38112 return 0;
38113 }
38114 _ACEOF
38115 rm -f conftest.$ac_objext conftest$ac_exeext
38116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38117 (eval $ac_link) 2>&5
38118 ac_status=$?
38119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38120 (exit $ac_status); } &&
38121 { ac_try='test -s conftest$ac_exeext'
38122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38123 (eval $ac_try) 2>&5
38124 ac_status=$?
38125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38126 (exit $ac_status); }; }; then
38127 eval "$as_ac_var=yes"
38128 else
38129 echo "$as_me: failed program was:" >&5
38130 sed 's/^/| /' conftest.$ac_ext >&5
38131
38132 eval "$as_ac_var=no"
38133 fi
38134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38135 fi
38136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38138 if test `eval echo '${'$as_ac_var'}'` = yes; then
38139 cat >>confdefs.h <<_ACEOF
38140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38141 _ACEOF
38142
38143 fi
38144 done
38145
38146 else
38147
38148 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
38149 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
38150 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
38151 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
38152 echo $ECHO_N "(cached) $ECHO_C" >&6
38153 else
38154
38155
38156
38157 ac_ext=cc
38158 ac_cpp='$CXXCPP $CPPFLAGS'
38159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38162
38163 cat >conftest.$ac_ext <<_ACEOF
38164 #line $LINENO "configure"
38165 /* confdefs.h. */
38166 _ACEOF
38167 cat confdefs.h >>conftest.$ac_ext
38168 cat >>conftest.$ac_ext <<_ACEOF
38169 /* end confdefs.h. */
38170 #include <math.h>
38171 int
38172 main ()
38173 {
38174 _fmodl(0, 0);
38175 ;
38176 return 0;
38177 }
38178 _ACEOF
38179 rm -f conftest.$ac_objext
38180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38181 (eval $ac_compile) 2>&5
38182 ac_status=$?
38183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38184 (exit $ac_status); } &&
38185 { ac_try='test -s conftest.$ac_objext'
38186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38187 (eval $ac_try) 2>&5
38188 ac_status=$?
38189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38190 (exit $ac_status); }; }; then
38191 glibcxx_cv_func__fmodl_use=yes
38192 else
38193 echo "$as_me: failed program was:" >&5
38194 sed 's/^/| /' conftest.$ac_ext >&5
38195
38196 glibcxx_cv_func__fmodl_use=no
38197 fi
38198 rm -f conftest.$ac_objext conftest.$ac_ext
38199 ac_ext=c
38200 ac_cpp='$CPP $CPPFLAGS'
38201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38204
38205
38206 fi
38207
38208 fi
38209 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
38210 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
38211
38212 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
38213
38214 for ac_func in _fmodl
38215 do
38216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38217 echo "$as_me:$LINENO: checking for $ac_func" >&5
38218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38219 if eval "test \"\${$as_ac_var+set}\" = set"; then
38220 echo $ECHO_N "(cached) $ECHO_C" >&6
38221 else
38222 if test x$gcc_no_link = xyes; then
38223 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38225 { (exit 1); exit 1; }; }
38226 fi
38227 cat >conftest.$ac_ext <<_ACEOF
38228 #line $LINENO "configure"
38229 /* confdefs.h. */
38230 _ACEOF
38231 cat confdefs.h >>conftest.$ac_ext
38232 cat >>conftest.$ac_ext <<_ACEOF
38233 /* end confdefs.h. */
38234 /* System header to define __stub macros and hopefully few prototypes,
38235 which can conflict with char $ac_func (); below.
38236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38237 <limits.h> exists even on freestanding compilers. */
38238 #ifdef __STDC__
38239 # include <limits.h>
38240 #else
38241 # include <assert.h>
38242 #endif
38243 /* Override any gcc2 internal prototype to avoid an error. */
38244 #ifdef __cplusplus
38245 extern "C"
38246 {
38247 #endif
38248 /* We use char because int might match the return type of a gcc2
38249 builtin and then its argument prototype would still apply. */
38250 char $ac_func ();
38251 /* The GNU C library defines this for functions which it implements
38252 to always fail with ENOSYS. Some functions are actually named
38253 something starting with __ and the normal name is an alias. */
38254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38255 choke me
38256 #else
38257 char (*f) () = $ac_func;
38258 #endif
38259 #ifdef __cplusplus
38260 }
38261 #endif
38262
38263 int
38264 main ()
38265 {
38266 return f != $ac_func;
38267 ;
38268 return 0;
38269 }
38270 _ACEOF
38271 rm -f conftest.$ac_objext conftest$ac_exeext
38272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38273 (eval $ac_link) 2>&5
38274 ac_status=$?
38275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276 (exit $ac_status); } &&
38277 { ac_try='test -s conftest$ac_exeext'
38278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38279 (eval $ac_try) 2>&5
38280 ac_status=$?
38281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282 (exit $ac_status); }; }; then
38283 eval "$as_ac_var=yes"
38284 else
38285 echo "$as_me: failed program was:" >&5
38286 sed 's/^/| /' conftest.$ac_ext >&5
38287
38288 eval "$as_ac_var=no"
38289 fi
38290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38291 fi
38292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38294 if test `eval echo '${'$as_ac_var'}'` = yes; then
38295 cat >>confdefs.h <<_ACEOF
38296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38297 _ACEOF
38298
38299 fi
38300 done
38301
38302 fi
38303 fi
38304
38305
38306
38307 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
38308 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
38309 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
38310 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
38311 echo $ECHO_N "(cached) $ECHO_C" >&6
38312 else
38313
38314
38315
38316 ac_ext=cc
38317 ac_cpp='$CXXCPP $CPPFLAGS'
38318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38321
38322 cat >conftest.$ac_ext <<_ACEOF
38323 #line $LINENO "configure"
38324 /* confdefs.h. */
38325 _ACEOF
38326 cat confdefs.h >>conftest.$ac_ext
38327 cat >>conftest.$ac_ext <<_ACEOF
38328 /* end confdefs.h. */
38329 #include <math.h>
38330 int
38331 main ()
38332 {
38333 frexpl(0, 0);
38334 ;
38335 return 0;
38336 }
38337 _ACEOF
38338 rm -f conftest.$ac_objext
38339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38340 (eval $ac_compile) 2>&5
38341 ac_status=$?
38342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343 (exit $ac_status); } &&
38344 { ac_try='test -s conftest.$ac_objext'
38345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38346 (eval $ac_try) 2>&5
38347 ac_status=$?
38348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38349 (exit $ac_status); }; }; then
38350 glibcxx_cv_func_frexpl_use=yes
38351 else
38352 echo "$as_me: failed program was:" >&5
38353 sed 's/^/| /' conftest.$ac_ext >&5
38354
38355 glibcxx_cv_func_frexpl_use=no
38356 fi
38357 rm -f conftest.$ac_objext conftest.$ac_ext
38358 ac_ext=c
38359 ac_cpp='$CPP $CPPFLAGS'
38360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38363
38364
38365 fi
38366
38367 fi
38368 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
38369 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
38370
38371 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
38372
38373 for ac_func in frexpl
38374 do
38375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38376 echo "$as_me:$LINENO: checking for $ac_func" >&5
38377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38378 if eval "test \"\${$as_ac_var+set}\" = set"; then
38379 echo $ECHO_N "(cached) $ECHO_C" >&6
38380 else
38381 if test x$gcc_no_link = xyes; then
38382 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38383 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38384 { (exit 1); exit 1; }; }
38385 fi
38386 cat >conftest.$ac_ext <<_ACEOF
38387 #line $LINENO "configure"
38388 /* confdefs.h. */
38389 _ACEOF
38390 cat confdefs.h >>conftest.$ac_ext
38391 cat >>conftest.$ac_ext <<_ACEOF
38392 /* end confdefs.h. */
38393 /* System header to define __stub macros and hopefully few prototypes,
38394 which can conflict with char $ac_func (); below.
38395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38396 <limits.h> exists even on freestanding compilers. */
38397 #ifdef __STDC__
38398 # include <limits.h>
38399 #else
38400 # include <assert.h>
38401 #endif
38402 /* Override any gcc2 internal prototype to avoid an error. */
38403 #ifdef __cplusplus
38404 extern "C"
38405 {
38406 #endif
38407 /* We use char because int might match the return type of a gcc2
38408 builtin and then its argument prototype would still apply. */
38409 char $ac_func ();
38410 /* The GNU C library defines this for functions which it implements
38411 to always fail with ENOSYS. Some functions are actually named
38412 something starting with __ and the normal name is an alias. */
38413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38414 choke me
38415 #else
38416 char (*f) () = $ac_func;
38417 #endif
38418 #ifdef __cplusplus
38419 }
38420 #endif
38421
38422 int
38423 main ()
38424 {
38425 return f != $ac_func;
38426 ;
38427 return 0;
38428 }
38429 _ACEOF
38430 rm -f conftest.$ac_objext conftest$ac_exeext
38431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38432 (eval $ac_link) 2>&5
38433 ac_status=$?
38434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435 (exit $ac_status); } &&
38436 { ac_try='test -s conftest$ac_exeext'
38437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38438 (eval $ac_try) 2>&5
38439 ac_status=$?
38440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38441 (exit $ac_status); }; }; then
38442 eval "$as_ac_var=yes"
38443 else
38444 echo "$as_me: failed program was:" >&5
38445 sed 's/^/| /' conftest.$ac_ext >&5
38446
38447 eval "$as_ac_var=no"
38448 fi
38449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38450 fi
38451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38453 if test `eval echo '${'$as_ac_var'}'` = yes; then
38454 cat >>confdefs.h <<_ACEOF
38455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38456 _ACEOF
38457
38458 fi
38459 done
38460
38461 else
38462
38463 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
38464 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
38465 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
38466 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
38467 echo $ECHO_N "(cached) $ECHO_C" >&6
38468 else
38469
38470
38471
38472 ac_ext=cc
38473 ac_cpp='$CXXCPP $CPPFLAGS'
38474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38477
38478 cat >conftest.$ac_ext <<_ACEOF
38479 #line $LINENO "configure"
38480 /* confdefs.h. */
38481 _ACEOF
38482 cat confdefs.h >>conftest.$ac_ext
38483 cat >>conftest.$ac_ext <<_ACEOF
38484 /* end confdefs.h. */
38485 #include <math.h>
38486 int
38487 main ()
38488 {
38489 _frexpl(0, 0);
38490 ;
38491 return 0;
38492 }
38493 _ACEOF
38494 rm -f conftest.$ac_objext
38495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38496 (eval $ac_compile) 2>&5
38497 ac_status=$?
38498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38499 (exit $ac_status); } &&
38500 { ac_try='test -s conftest.$ac_objext'
38501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38502 (eval $ac_try) 2>&5
38503 ac_status=$?
38504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38505 (exit $ac_status); }; }; then
38506 glibcxx_cv_func__frexpl_use=yes
38507 else
38508 echo "$as_me: failed program was:" >&5
38509 sed 's/^/| /' conftest.$ac_ext >&5
38510
38511 glibcxx_cv_func__frexpl_use=no
38512 fi
38513 rm -f conftest.$ac_objext conftest.$ac_ext
38514 ac_ext=c
38515 ac_cpp='$CPP $CPPFLAGS'
38516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38519
38520
38521 fi
38522
38523 fi
38524 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
38525 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
38526
38527 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
38528
38529 for ac_func in _frexpl
38530 do
38531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38532 echo "$as_me:$LINENO: checking for $ac_func" >&5
38533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38534 if eval "test \"\${$as_ac_var+set}\" = set"; then
38535 echo $ECHO_N "(cached) $ECHO_C" >&6
38536 else
38537 if test x$gcc_no_link = xyes; then
38538 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38539 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38540 { (exit 1); exit 1; }; }
38541 fi
38542 cat >conftest.$ac_ext <<_ACEOF
38543 #line $LINENO "configure"
38544 /* confdefs.h. */
38545 _ACEOF
38546 cat confdefs.h >>conftest.$ac_ext
38547 cat >>conftest.$ac_ext <<_ACEOF
38548 /* end confdefs.h. */
38549 /* System header to define __stub macros and hopefully few prototypes,
38550 which can conflict with char $ac_func (); below.
38551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38552 <limits.h> exists even on freestanding compilers. */
38553 #ifdef __STDC__
38554 # include <limits.h>
38555 #else
38556 # include <assert.h>
38557 #endif
38558 /* Override any gcc2 internal prototype to avoid an error. */
38559 #ifdef __cplusplus
38560 extern "C"
38561 {
38562 #endif
38563 /* We use char because int might match the return type of a gcc2
38564 builtin and then its argument prototype would still apply. */
38565 char $ac_func ();
38566 /* The GNU C library defines this for functions which it implements
38567 to always fail with ENOSYS. Some functions are actually named
38568 something starting with __ and the normal name is an alias. */
38569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38570 choke me
38571 #else
38572 char (*f) () = $ac_func;
38573 #endif
38574 #ifdef __cplusplus
38575 }
38576 #endif
38577
38578 int
38579 main ()
38580 {
38581 return f != $ac_func;
38582 ;
38583 return 0;
38584 }
38585 _ACEOF
38586 rm -f conftest.$ac_objext conftest$ac_exeext
38587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38588 (eval $ac_link) 2>&5
38589 ac_status=$?
38590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38591 (exit $ac_status); } &&
38592 { ac_try='test -s conftest$ac_exeext'
38593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38594 (eval $ac_try) 2>&5
38595 ac_status=$?
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); }; }; then
38598 eval "$as_ac_var=yes"
38599 else
38600 echo "$as_me: failed program was:" >&5
38601 sed 's/^/| /' conftest.$ac_ext >&5
38602
38603 eval "$as_ac_var=no"
38604 fi
38605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38606 fi
38607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38609 if test `eval echo '${'$as_ac_var'}'` = yes; then
38610 cat >>confdefs.h <<_ACEOF
38611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38612 _ACEOF
38613
38614 fi
38615 done
38616
38617 fi
38618 fi
38619
38620
38621
38622 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
38623 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
38624 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
38625 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
38626 echo $ECHO_N "(cached) $ECHO_C" >&6
38627 else
38628
38629
38630
38631 ac_ext=cc
38632 ac_cpp='$CXXCPP $CPPFLAGS'
38633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38636
38637 cat >conftest.$ac_ext <<_ACEOF
38638 #line $LINENO "configure"
38639 /* confdefs.h. */
38640 _ACEOF
38641 cat confdefs.h >>conftest.$ac_ext
38642 cat >>conftest.$ac_ext <<_ACEOF
38643 /* end confdefs.h. */
38644 #include <math.h>
38645 int
38646 main ()
38647 {
38648 hypotl(0, 0);
38649 ;
38650 return 0;
38651 }
38652 _ACEOF
38653 rm -f conftest.$ac_objext
38654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38655 (eval $ac_compile) 2>&5
38656 ac_status=$?
38657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38658 (exit $ac_status); } &&
38659 { ac_try='test -s conftest.$ac_objext'
38660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38661 (eval $ac_try) 2>&5
38662 ac_status=$?
38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); }; }; then
38665 glibcxx_cv_func_hypotl_use=yes
38666 else
38667 echo "$as_me: failed program was:" >&5
38668 sed 's/^/| /' conftest.$ac_ext >&5
38669
38670 glibcxx_cv_func_hypotl_use=no
38671 fi
38672 rm -f conftest.$ac_objext conftest.$ac_ext
38673 ac_ext=c
38674 ac_cpp='$CPP $CPPFLAGS'
38675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38678
38679
38680 fi
38681
38682 fi
38683 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
38684 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
38685
38686 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
38687
38688 for ac_func in hypotl
38689 do
38690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38691 echo "$as_me:$LINENO: checking for $ac_func" >&5
38692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38693 if eval "test \"\${$as_ac_var+set}\" = set"; then
38694 echo $ECHO_N "(cached) $ECHO_C" >&6
38695 else
38696 if test x$gcc_no_link = xyes; then
38697 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38698 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38699 { (exit 1); exit 1; }; }
38700 fi
38701 cat >conftest.$ac_ext <<_ACEOF
38702 #line $LINENO "configure"
38703 /* confdefs.h. */
38704 _ACEOF
38705 cat confdefs.h >>conftest.$ac_ext
38706 cat >>conftest.$ac_ext <<_ACEOF
38707 /* end confdefs.h. */
38708 /* System header to define __stub macros and hopefully few prototypes,
38709 which can conflict with char $ac_func (); below.
38710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38711 <limits.h> exists even on freestanding compilers. */
38712 #ifdef __STDC__
38713 # include <limits.h>
38714 #else
38715 # include <assert.h>
38716 #endif
38717 /* Override any gcc2 internal prototype to avoid an error. */
38718 #ifdef __cplusplus
38719 extern "C"
38720 {
38721 #endif
38722 /* We use char because int might match the return type of a gcc2
38723 builtin and then its argument prototype would still apply. */
38724 char $ac_func ();
38725 /* The GNU C library defines this for functions which it implements
38726 to always fail with ENOSYS. Some functions are actually named
38727 something starting with __ and the normal name is an alias. */
38728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38729 choke me
38730 #else
38731 char (*f) () = $ac_func;
38732 #endif
38733 #ifdef __cplusplus
38734 }
38735 #endif
38736
38737 int
38738 main ()
38739 {
38740 return f != $ac_func;
38741 ;
38742 return 0;
38743 }
38744 _ACEOF
38745 rm -f conftest.$ac_objext conftest$ac_exeext
38746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38747 (eval $ac_link) 2>&5
38748 ac_status=$?
38749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38750 (exit $ac_status); } &&
38751 { ac_try='test -s conftest$ac_exeext'
38752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38753 (eval $ac_try) 2>&5
38754 ac_status=$?
38755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38756 (exit $ac_status); }; }; then
38757 eval "$as_ac_var=yes"
38758 else
38759 echo "$as_me: failed program was:" >&5
38760 sed 's/^/| /' conftest.$ac_ext >&5
38761
38762 eval "$as_ac_var=no"
38763 fi
38764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38765 fi
38766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38768 if test `eval echo '${'$as_ac_var'}'` = yes; then
38769 cat >>confdefs.h <<_ACEOF
38770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38771 _ACEOF
38772
38773 fi
38774 done
38775
38776 else
38777
38778 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
38779 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
38780 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
38781 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
38782 echo $ECHO_N "(cached) $ECHO_C" >&6
38783 else
38784
38785
38786
38787 ac_ext=cc
38788 ac_cpp='$CXXCPP $CPPFLAGS'
38789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38792
38793 cat >conftest.$ac_ext <<_ACEOF
38794 #line $LINENO "configure"
38795 /* confdefs.h. */
38796 _ACEOF
38797 cat confdefs.h >>conftest.$ac_ext
38798 cat >>conftest.$ac_ext <<_ACEOF
38799 /* end confdefs.h. */
38800 #include <math.h>
38801 int
38802 main ()
38803 {
38804 _hypotl(0, 0);
38805 ;
38806 return 0;
38807 }
38808 _ACEOF
38809 rm -f conftest.$ac_objext
38810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38811 (eval $ac_compile) 2>&5
38812 ac_status=$?
38813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38814 (exit $ac_status); } &&
38815 { ac_try='test -s conftest.$ac_objext'
38816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38817 (eval $ac_try) 2>&5
38818 ac_status=$?
38819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38820 (exit $ac_status); }; }; then
38821 glibcxx_cv_func__hypotl_use=yes
38822 else
38823 echo "$as_me: failed program was:" >&5
38824 sed 's/^/| /' conftest.$ac_ext >&5
38825
38826 glibcxx_cv_func__hypotl_use=no
38827 fi
38828 rm -f conftest.$ac_objext conftest.$ac_ext
38829 ac_ext=c
38830 ac_cpp='$CPP $CPPFLAGS'
38831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38834
38835
38836 fi
38837
38838 fi
38839 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
38840 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
38841
38842 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
38843
38844 for ac_func in _hypotl
38845 do
38846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38847 echo "$as_me:$LINENO: checking for $ac_func" >&5
38848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38849 if eval "test \"\${$as_ac_var+set}\" = set"; then
38850 echo $ECHO_N "(cached) $ECHO_C" >&6
38851 else
38852 if test x$gcc_no_link = xyes; then
38853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38855 { (exit 1); exit 1; }; }
38856 fi
38857 cat >conftest.$ac_ext <<_ACEOF
38858 #line $LINENO "configure"
38859 /* confdefs.h. */
38860 _ACEOF
38861 cat confdefs.h >>conftest.$ac_ext
38862 cat >>conftest.$ac_ext <<_ACEOF
38863 /* end confdefs.h. */
38864 /* System header to define __stub macros and hopefully few prototypes,
38865 which can conflict with char $ac_func (); below.
38866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38867 <limits.h> exists even on freestanding compilers. */
38868 #ifdef __STDC__
38869 # include <limits.h>
38870 #else
38871 # include <assert.h>
38872 #endif
38873 /* Override any gcc2 internal prototype to avoid an error. */
38874 #ifdef __cplusplus
38875 extern "C"
38876 {
38877 #endif
38878 /* We use char because int might match the return type of a gcc2
38879 builtin and then its argument prototype would still apply. */
38880 char $ac_func ();
38881 /* The GNU C library defines this for functions which it implements
38882 to always fail with ENOSYS. Some functions are actually named
38883 something starting with __ and the normal name is an alias. */
38884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38885 choke me
38886 #else
38887 char (*f) () = $ac_func;
38888 #endif
38889 #ifdef __cplusplus
38890 }
38891 #endif
38892
38893 int
38894 main ()
38895 {
38896 return f != $ac_func;
38897 ;
38898 return 0;
38899 }
38900 _ACEOF
38901 rm -f conftest.$ac_objext conftest$ac_exeext
38902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38903 (eval $ac_link) 2>&5
38904 ac_status=$?
38905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38906 (exit $ac_status); } &&
38907 { ac_try='test -s conftest$ac_exeext'
38908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38909 (eval $ac_try) 2>&5
38910 ac_status=$?
38911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912 (exit $ac_status); }; }; then
38913 eval "$as_ac_var=yes"
38914 else
38915 echo "$as_me: failed program was:" >&5
38916 sed 's/^/| /' conftest.$ac_ext >&5
38917
38918 eval "$as_ac_var=no"
38919 fi
38920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38921 fi
38922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38924 if test `eval echo '${'$as_ac_var'}'` = yes; then
38925 cat >>confdefs.h <<_ACEOF
38926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38927 _ACEOF
38928
38929 fi
38930 done
38931
38932 fi
38933 fi
38934
38935
38936
38937 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
38938 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
38939 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
38940 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
38941 echo $ECHO_N "(cached) $ECHO_C" >&6
38942 else
38943
38944
38945
38946 ac_ext=cc
38947 ac_cpp='$CXXCPP $CPPFLAGS'
38948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38951
38952 cat >conftest.$ac_ext <<_ACEOF
38953 #line $LINENO "configure"
38954 /* confdefs.h. */
38955 _ACEOF
38956 cat confdefs.h >>conftest.$ac_ext
38957 cat >>conftest.$ac_ext <<_ACEOF
38958 /* end confdefs.h. */
38959 #include <math.h>
38960 int
38961 main ()
38962 {
38963 ldexpl(0, 0);
38964 ;
38965 return 0;
38966 }
38967 _ACEOF
38968 rm -f conftest.$ac_objext
38969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38970 (eval $ac_compile) 2>&5
38971 ac_status=$?
38972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38973 (exit $ac_status); } &&
38974 { ac_try='test -s conftest.$ac_objext'
38975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38976 (eval $ac_try) 2>&5
38977 ac_status=$?
38978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979 (exit $ac_status); }; }; then
38980 glibcxx_cv_func_ldexpl_use=yes
38981 else
38982 echo "$as_me: failed program was:" >&5
38983 sed 's/^/| /' conftest.$ac_ext >&5
38984
38985 glibcxx_cv_func_ldexpl_use=no
38986 fi
38987 rm -f conftest.$ac_objext conftest.$ac_ext
38988 ac_ext=c
38989 ac_cpp='$CPP $CPPFLAGS'
38990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38993
38994
38995 fi
38996
38997 fi
38998 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
38999 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
39000
39001 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
39002
39003 for ac_func in ldexpl
39004 do
39005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39006 echo "$as_me:$LINENO: checking for $ac_func" >&5
39007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39008 if eval "test \"\${$as_ac_var+set}\" = set"; then
39009 echo $ECHO_N "(cached) $ECHO_C" >&6
39010 else
39011 if test x$gcc_no_link = xyes; then
39012 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39013 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39014 { (exit 1); exit 1; }; }
39015 fi
39016 cat >conftest.$ac_ext <<_ACEOF
39017 #line $LINENO "configure"
39018 /* confdefs.h. */
39019 _ACEOF
39020 cat confdefs.h >>conftest.$ac_ext
39021 cat >>conftest.$ac_ext <<_ACEOF
39022 /* end confdefs.h. */
39023 /* System header to define __stub macros and hopefully few prototypes,
39024 which can conflict with char $ac_func (); below.
39025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39026 <limits.h> exists even on freestanding compilers. */
39027 #ifdef __STDC__
39028 # include <limits.h>
39029 #else
39030 # include <assert.h>
39031 #endif
39032 /* Override any gcc2 internal prototype to avoid an error. */
39033 #ifdef __cplusplus
39034 extern "C"
39035 {
39036 #endif
39037 /* We use char because int might match the return type of a gcc2
39038 builtin and then its argument prototype would still apply. */
39039 char $ac_func ();
39040 /* The GNU C library defines this for functions which it implements
39041 to always fail with ENOSYS. Some functions are actually named
39042 something starting with __ and the normal name is an alias. */
39043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39044 choke me
39045 #else
39046 char (*f) () = $ac_func;
39047 #endif
39048 #ifdef __cplusplus
39049 }
39050 #endif
39051
39052 int
39053 main ()
39054 {
39055 return f != $ac_func;
39056 ;
39057 return 0;
39058 }
39059 _ACEOF
39060 rm -f conftest.$ac_objext conftest$ac_exeext
39061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39062 (eval $ac_link) 2>&5
39063 ac_status=$?
39064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); } &&
39066 { ac_try='test -s conftest$ac_exeext'
39067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39068 (eval $ac_try) 2>&5
39069 ac_status=$?
39070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39071 (exit $ac_status); }; }; then
39072 eval "$as_ac_var=yes"
39073 else
39074 echo "$as_me: failed program was:" >&5
39075 sed 's/^/| /' conftest.$ac_ext >&5
39076
39077 eval "$as_ac_var=no"
39078 fi
39079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39080 fi
39081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39083 if test `eval echo '${'$as_ac_var'}'` = yes; then
39084 cat >>confdefs.h <<_ACEOF
39085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39086 _ACEOF
39087
39088 fi
39089 done
39090
39091 else
39092
39093 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
39094 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
39095 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
39096 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
39097 echo $ECHO_N "(cached) $ECHO_C" >&6
39098 else
39099
39100
39101
39102 ac_ext=cc
39103 ac_cpp='$CXXCPP $CPPFLAGS'
39104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39107
39108 cat >conftest.$ac_ext <<_ACEOF
39109 #line $LINENO "configure"
39110 /* confdefs.h. */
39111 _ACEOF
39112 cat confdefs.h >>conftest.$ac_ext
39113 cat >>conftest.$ac_ext <<_ACEOF
39114 /* end confdefs.h. */
39115 #include <math.h>
39116 int
39117 main ()
39118 {
39119 _ldexpl(0, 0);
39120 ;
39121 return 0;
39122 }
39123 _ACEOF
39124 rm -f conftest.$ac_objext
39125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39126 (eval $ac_compile) 2>&5
39127 ac_status=$?
39128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39129 (exit $ac_status); } &&
39130 { ac_try='test -s conftest.$ac_objext'
39131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39132 (eval $ac_try) 2>&5
39133 ac_status=$?
39134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39135 (exit $ac_status); }; }; then
39136 glibcxx_cv_func__ldexpl_use=yes
39137 else
39138 echo "$as_me: failed program was:" >&5
39139 sed 's/^/| /' conftest.$ac_ext >&5
39140
39141 glibcxx_cv_func__ldexpl_use=no
39142 fi
39143 rm -f conftest.$ac_objext conftest.$ac_ext
39144 ac_ext=c
39145 ac_cpp='$CPP $CPPFLAGS'
39146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39149
39150
39151 fi
39152
39153 fi
39154 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
39155 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
39156
39157 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
39158
39159 for ac_func in _ldexpl
39160 do
39161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39162 echo "$as_me:$LINENO: checking for $ac_func" >&5
39163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39164 if eval "test \"\${$as_ac_var+set}\" = set"; then
39165 echo $ECHO_N "(cached) $ECHO_C" >&6
39166 else
39167 if test x$gcc_no_link = xyes; then
39168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39170 { (exit 1); exit 1; }; }
39171 fi
39172 cat >conftest.$ac_ext <<_ACEOF
39173 #line $LINENO "configure"
39174 /* confdefs.h. */
39175 _ACEOF
39176 cat confdefs.h >>conftest.$ac_ext
39177 cat >>conftest.$ac_ext <<_ACEOF
39178 /* end confdefs.h. */
39179 /* System header to define __stub macros and hopefully few prototypes,
39180 which can conflict with char $ac_func (); below.
39181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39182 <limits.h> exists even on freestanding compilers. */
39183 #ifdef __STDC__
39184 # include <limits.h>
39185 #else
39186 # include <assert.h>
39187 #endif
39188 /* Override any gcc2 internal prototype to avoid an error. */
39189 #ifdef __cplusplus
39190 extern "C"
39191 {
39192 #endif
39193 /* We use char because int might match the return type of a gcc2
39194 builtin and then its argument prototype would still apply. */
39195 char $ac_func ();
39196 /* The GNU C library defines this for functions which it implements
39197 to always fail with ENOSYS. Some functions are actually named
39198 something starting with __ and the normal name is an alias. */
39199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39200 choke me
39201 #else
39202 char (*f) () = $ac_func;
39203 #endif
39204 #ifdef __cplusplus
39205 }
39206 #endif
39207
39208 int
39209 main ()
39210 {
39211 return f != $ac_func;
39212 ;
39213 return 0;
39214 }
39215 _ACEOF
39216 rm -f conftest.$ac_objext conftest$ac_exeext
39217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39218 (eval $ac_link) 2>&5
39219 ac_status=$?
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); } &&
39222 { ac_try='test -s conftest$ac_exeext'
39223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39224 (eval $ac_try) 2>&5
39225 ac_status=$?
39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227 (exit $ac_status); }; }; then
39228 eval "$as_ac_var=yes"
39229 else
39230 echo "$as_me: failed program was:" >&5
39231 sed 's/^/| /' conftest.$ac_ext >&5
39232
39233 eval "$as_ac_var=no"
39234 fi
39235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39236 fi
39237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39239 if test `eval echo '${'$as_ac_var'}'` = yes; then
39240 cat >>confdefs.h <<_ACEOF
39241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39242 _ACEOF
39243
39244 fi
39245 done
39246
39247 fi
39248 fi
39249
39250
39251
39252 echo "$as_me:$LINENO: checking for logl declaration" >&5
39253 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
39254 if test x${glibcxx_cv_func_logl_use+set} != xset; then
39255 if test "${glibcxx_cv_func_logl_use+set}" = set; then
39256 echo $ECHO_N "(cached) $ECHO_C" >&6
39257 else
39258
39259
39260
39261 ac_ext=cc
39262 ac_cpp='$CXXCPP $CPPFLAGS'
39263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39266
39267 cat >conftest.$ac_ext <<_ACEOF
39268 #line $LINENO "configure"
39269 /* confdefs.h. */
39270 _ACEOF
39271 cat confdefs.h >>conftest.$ac_ext
39272 cat >>conftest.$ac_ext <<_ACEOF
39273 /* end confdefs.h. */
39274 #include <math.h>
39275 #ifdef HAVE_IEEEFP_H
39276 #include <ieeefp.h>
39277 #endif
39278
39279 int
39280 main ()
39281 {
39282 logl(0);
39283 ;
39284 return 0;
39285 }
39286 _ACEOF
39287 rm -f conftest.$ac_objext
39288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39289 (eval $ac_compile) 2>&5
39290 ac_status=$?
39291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292 (exit $ac_status); } &&
39293 { ac_try='test -s conftest.$ac_objext'
39294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39295 (eval $ac_try) 2>&5
39296 ac_status=$?
39297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298 (exit $ac_status); }; }; then
39299 glibcxx_cv_func_logl_use=yes
39300 else
39301 echo "$as_me: failed program was:" >&5
39302 sed 's/^/| /' conftest.$ac_ext >&5
39303
39304 glibcxx_cv_func_logl_use=no
39305 fi
39306 rm -f conftest.$ac_objext conftest.$ac_ext
39307 ac_ext=c
39308 ac_cpp='$CPP $CPPFLAGS'
39309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39312
39313
39314 fi
39315
39316 fi
39317 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
39318 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
39319
39320 if test x$glibcxx_cv_func_logl_use = x"yes"; then
39321
39322 for ac_func in logl
39323 do
39324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39325 echo "$as_me:$LINENO: checking for $ac_func" >&5
39326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39327 if eval "test \"\${$as_ac_var+set}\" = set"; then
39328 echo $ECHO_N "(cached) $ECHO_C" >&6
39329 else
39330 if test x$gcc_no_link = xyes; then
39331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39333 { (exit 1); exit 1; }; }
39334 fi
39335 cat >conftest.$ac_ext <<_ACEOF
39336 #line $LINENO "configure"
39337 /* confdefs.h. */
39338 _ACEOF
39339 cat confdefs.h >>conftest.$ac_ext
39340 cat >>conftest.$ac_ext <<_ACEOF
39341 /* end confdefs.h. */
39342 /* System header to define __stub macros and hopefully few prototypes,
39343 which can conflict with char $ac_func (); below.
39344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39345 <limits.h> exists even on freestanding compilers. */
39346 #ifdef __STDC__
39347 # include <limits.h>
39348 #else
39349 # include <assert.h>
39350 #endif
39351 /* Override any gcc2 internal prototype to avoid an error. */
39352 #ifdef __cplusplus
39353 extern "C"
39354 {
39355 #endif
39356 /* We use char because int might match the return type of a gcc2
39357 builtin and then its argument prototype would still apply. */
39358 char $ac_func ();
39359 /* The GNU C library defines this for functions which it implements
39360 to always fail with ENOSYS. Some functions are actually named
39361 something starting with __ and the normal name is an alias. */
39362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39363 choke me
39364 #else
39365 char (*f) () = $ac_func;
39366 #endif
39367 #ifdef __cplusplus
39368 }
39369 #endif
39370
39371 int
39372 main ()
39373 {
39374 return f != $ac_func;
39375 ;
39376 return 0;
39377 }
39378 _ACEOF
39379 rm -f conftest.$ac_objext conftest$ac_exeext
39380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39381 (eval $ac_link) 2>&5
39382 ac_status=$?
39383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384 (exit $ac_status); } &&
39385 { ac_try='test -s conftest$ac_exeext'
39386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39387 (eval $ac_try) 2>&5
39388 ac_status=$?
39389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39390 (exit $ac_status); }; }; then
39391 eval "$as_ac_var=yes"
39392 else
39393 echo "$as_me: failed program was:" >&5
39394 sed 's/^/| /' conftest.$ac_ext >&5
39395
39396 eval "$as_ac_var=no"
39397 fi
39398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39399 fi
39400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39402 if test `eval echo '${'$as_ac_var'}'` = yes; then
39403 cat >>confdefs.h <<_ACEOF
39404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39405 _ACEOF
39406
39407 fi
39408 done
39409
39410 else
39411
39412 echo "$as_me:$LINENO: checking for _logl declaration" >&5
39413 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
39414 if test x${glibcxx_cv_func__logl_use+set} != xset; then
39415 if test "${glibcxx_cv_func__logl_use+set}" = set; then
39416 echo $ECHO_N "(cached) $ECHO_C" >&6
39417 else
39418
39419
39420
39421 ac_ext=cc
39422 ac_cpp='$CXXCPP $CPPFLAGS'
39423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39426
39427 cat >conftest.$ac_ext <<_ACEOF
39428 #line $LINENO "configure"
39429 /* confdefs.h. */
39430 _ACEOF
39431 cat confdefs.h >>conftest.$ac_ext
39432 cat >>conftest.$ac_ext <<_ACEOF
39433 /* end confdefs.h. */
39434 #include <math.h>
39435 #ifdef HAVE_IEEEFP_H
39436 #include <ieeefp.h>
39437 #endif
39438
39439 int
39440 main ()
39441 {
39442 _logl(0);
39443 ;
39444 return 0;
39445 }
39446 _ACEOF
39447 rm -f conftest.$ac_objext
39448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39449 (eval $ac_compile) 2>&5
39450 ac_status=$?
39451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39452 (exit $ac_status); } &&
39453 { ac_try='test -s conftest.$ac_objext'
39454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39455 (eval $ac_try) 2>&5
39456 ac_status=$?
39457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39458 (exit $ac_status); }; }; then
39459 glibcxx_cv_func__logl_use=yes
39460 else
39461 echo "$as_me: failed program was:" >&5
39462 sed 's/^/| /' conftest.$ac_ext >&5
39463
39464 glibcxx_cv_func__logl_use=no
39465 fi
39466 rm -f conftest.$ac_objext conftest.$ac_ext
39467 ac_ext=c
39468 ac_cpp='$CPP $CPPFLAGS'
39469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39472
39473
39474 fi
39475
39476 fi
39477 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
39478 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
39479
39480 if test x$glibcxx_cv_func__logl_use = x"yes"; then
39481
39482 for ac_func in _logl
39483 do
39484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39485 echo "$as_me:$LINENO: checking for $ac_func" >&5
39486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39487 if eval "test \"\${$as_ac_var+set}\" = set"; then
39488 echo $ECHO_N "(cached) $ECHO_C" >&6
39489 else
39490 if test x$gcc_no_link = xyes; then
39491 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39492 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39493 { (exit 1); exit 1; }; }
39494 fi
39495 cat >conftest.$ac_ext <<_ACEOF
39496 #line $LINENO "configure"
39497 /* confdefs.h. */
39498 _ACEOF
39499 cat confdefs.h >>conftest.$ac_ext
39500 cat >>conftest.$ac_ext <<_ACEOF
39501 /* end confdefs.h. */
39502 /* System header to define __stub macros and hopefully few prototypes,
39503 which can conflict with char $ac_func (); below.
39504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39505 <limits.h> exists even on freestanding compilers. */
39506 #ifdef __STDC__
39507 # include <limits.h>
39508 #else
39509 # include <assert.h>
39510 #endif
39511 /* Override any gcc2 internal prototype to avoid an error. */
39512 #ifdef __cplusplus
39513 extern "C"
39514 {
39515 #endif
39516 /* We use char because int might match the return type of a gcc2
39517 builtin and then its argument prototype would still apply. */
39518 char $ac_func ();
39519 /* The GNU C library defines this for functions which it implements
39520 to always fail with ENOSYS. Some functions are actually named
39521 something starting with __ and the normal name is an alias. */
39522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39523 choke me
39524 #else
39525 char (*f) () = $ac_func;
39526 #endif
39527 #ifdef __cplusplus
39528 }
39529 #endif
39530
39531 int
39532 main ()
39533 {
39534 return f != $ac_func;
39535 ;
39536 return 0;
39537 }
39538 _ACEOF
39539 rm -f conftest.$ac_objext conftest$ac_exeext
39540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39541 (eval $ac_link) 2>&5
39542 ac_status=$?
39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544 (exit $ac_status); } &&
39545 { ac_try='test -s conftest$ac_exeext'
39546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39547 (eval $ac_try) 2>&5
39548 ac_status=$?
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); }; }; then
39551 eval "$as_ac_var=yes"
39552 else
39553 echo "$as_me: failed program was:" >&5
39554 sed 's/^/| /' conftest.$ac_ext >&5
39555
39556 eval "$as_ac_var=no"
39557 fi
39558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39559 fi
39560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39562 if test `eval echo '${'$as_ac_var'}'` = yes; then
39563 cat >>confdefs.h <<_ACEOF
39564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39565 _ACEOF
39566
39567 fi
39568 done
39569
39570 fi
39571 fi
39572
39573
39574
39575 echo "$as_me:$LINENO: checking for log10l declaration" >&5
39576 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
39577 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
39578 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
39579 echo $ECHO_N "(cached) $ECHO_C" >&6
39580 else
39581
39582
39583
39584 ac_ext=cc
39585 ac_cpp='$CXXCPP $CPPFLAGS'
39586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39589
39590 cat >conftest.$ac_ext <<_ACEOF
39591 #line $LINENO "configure"
39592 /* confdefs.h. */
39593 _ACEOF
39594 cat confdefs.h >>conftest.$ac_ext
39595 cat >>conftest.$ac_ext <<_ACEOF
39596 /* end confdefs.h. */
39597 #include <math.h>
39598 #ifdef HAVE_IEEEFP_H
39599 #include <ieeefp.h>
39600 #endif
39601
39602 int
39603 main ()
39604 {
39605 log10l(0);
39606 ;
39607 return 0;
39608 }
39609 _ACEOF
39610 rm -f conftest.$ac_objext
39611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39612 (eval $ac_compile) 2>&5
39613 ac_status=$?
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); } &&
39616 { ac_try='test -s conftest.$ac_objext'
39617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39618 (eval $ac_try) 2>&5
39619 ac_status=$?
39620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39621 (exit $ac_status); }; }; then
39622 glibcxx_cv_func_log10l_use=yes
39623 else
39624 echo "$as_me: failed program was:" >&5
39625 sed 's/^/| /' conftest.$ac_ext >&5
39626
39627 glibcxx_cv_func_log10l_use=no
39628 fi
39629 rm -f conftest.$ac_objext conftest.$ac_ext
39630 ac_ext=c
39631 ac_cpp='$CPP $CPPFLAGS'
39632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39635
39636
39637 fi
39638
39639 fi
39640 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
39641 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
39642
39643 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
39644
39645 for ac_func in log10l
39646 do
39647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39648 echo "$as_me:$LINENO: checking for $ac_func" >&5
39649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39650 if eval "test \"\${$as_ac_var+set}\" = set"; then
39651 echo $ECHO_N "(cached) $ECHO_C" >&6
39652 else
39653 if test x$gcc_no_link = xyes; then
39654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39656 { (exit 1); exit 1; }; }
39657 fi
39658 cat >conftest.$ac_ext <<_ACEOF
39659 #line $LINENO "configure"
39660 /* confdefs.h. */
39661 _ACEOF
39662 cat confdefs.h >>conftest.$ac_ext
39663 cat >>conftest.$ac_ext <<_ACEOF
39664 /* end confdefs.h. */
39665 /* System header to define __stub macros and hopefully few prototypes,
39666 which can conflict with char $ac_func (); below.
39667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39668 <limits.h> exists even on freestanding compilers. */
39669 #ifdef __STDC__
39670 # include <limits.h>
39671 #else
39672 # include <assert.h>
39673 #endif
39674 /* Override any gcc2 internal prototype to avoid an error. */
39675 #ifdef __cplusplus
39676 extern "C"
39677 {
39678 #endif
39679 /* We use char because int might match the return type of a gcc2
39680 builtin and then its argument prototype would still apply. */
39681 char $ac_func ();
39682 /* The GNU C library defines this for functions which it implements
39683 to always fail with ENOSYS. Some functions are actually named
39684 something starting with __ and the normal name is an alias. */
39685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39686 choke me
39687 #else
39688 char (*f) () = $ac_func;
39689 #endif
39690 #ifdef __cplusplus
39691 }
39692 #endif
39693
39694 int
39695 main ()
39696 {
39697 return f != $ac_func;
39698 ;
39699 return 0;
39700 }
39701 _ACEOF
39702 rm -f conftest.$ac_objext conftest$ac_exeext
39703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39704 (eval $ac_link) 2>&5
39705 ac_status=$?
39706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39707 (exit $ac_status); } &&
39708 { ac_try='test -s conftest$ac_exeext'
39709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39710 (eval $ac_try) 2>&5
39711 ac_status=$?
39712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39713 (exit $ac_status); }; }; then
39714 eval "$as_ac_var=yes"
39715 else
39716 echo "$as_me: failed program was:" >&5
39717 sed 's/^/| /' conftest.$ac_ext >&5
39718
39719 eval "$as_ac_var=no"
39720 fi
39721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39722 fi
39723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39725 if test `eval echo '${'$as_ac_var'}'` = yes; then
39726 cat >>confdefs.h <<_ACEOF
39727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39728 _ACEOF
39729
39730 fi
39731 done
39732
39733 else
39734
39735 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
39736 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
39737 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
39738 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
39739 echo $ECHO_N "(cached) $ECHO_C" >&6
39740 else
39741
39742
39743
39744 ac_ext=cc
39745 ac_cpp='$CXXCPP $CPPFLAGS'
39746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39749
39750 cat >conftest.$ac_ext <<_ACEOF
39751 #line $LINENO "configure"
39752 /* confdefs.h. */
39753 _ACEOF
39754 cat confdefs.h >>conftest.$ac_ext
39755 cat >>conftest.$ac_ext <<_ACEOF
39756 /* end confdefs.h. */
39757 #include <math.h>
39758 #ifdef HAVE_IEEEFP_H
39759 #include <ieeefp.h>
39760 #endif
39761
39762 int
39763 main ()
39764 {
39765 _log10l(0);
39766 ;
39767 return 0;
39768 }
39769 _ACEOF
39770 rm -f conftest.$ac_objext
39771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39772 (eval $ac_compile) 2>&5
39773 ac_status=$?
39774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39775 (exit $ac_status); } &&
39776 { ac_try='test -s conftest.$ac_objext'
39777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39778 (eval $ac_try) 2>&5
39779 ac_status=$?
39780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39781 (exit $ac_status); }; }; then
39782 glibcxx_cv_func__log10l_use=yes
39783 else
39784 echo "$as_me: failed program was:" >&5
39785 sed 's/^/| /' conftest.$ac_ext >&5
39786
39787 glibcxx_cv_func__log10l_use=no
39788 fi
39789 rm -f conftest.$ac_objext conftest.$ac_ext
39790 ac_ext=c
39791 ac_cpp='$CPP $CPPFLAGS'
39792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39795
39796
39797 fi
39798
39799 fi
39800 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
39801 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
39802
39803 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
39804
39805 for ac_func in _log10l
39806 do
39807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39808 echo "$as_me:$LINENO: checking for $ac_func" >&5
39809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39810 if eval "test \"\${$as_ac_var+set}\" = set"; then
39811 echo $ECHO_N "(cached) $ECHO_C" >&6
39812 else
39813 if test x$gcc_no_link = xyes; then
39814 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39815 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39816 { (exit 1); exit 1; }; }
39817 fi
39818 cat >conftest.$ac_ext <<_ACEOF
39819 #line $LINENO "configure"
39820 /* confdefs.h. */
39821 _ACEOF
39822 cat confdefs.h >>conftest.$ac_ext
39823 cat >>conftest.$ac_ext <<_ACEOF
39824 /* end confdefs.h. */
39825 /* System header to define __stub macros and hopefully few prototypes,
39826 which can conflict with char $ac_func (); below.
39827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39828 <limits.h> exists even on freestanding compilers. */
39829 #ifdef __STDC__
39830 # include <limits.h>
39831 #else
39832 # include <assert.h>
39833 #endif
39834 /* Override any gcc2 internal prototype to avoid an error. */
39835 #ifdef __cplusplus
39836 extern "C"
39837 {
39838 #endif
39839 /* We use char because int might match the return type of a gcc2
39840 builtin and then its argument prototype would still apply. */
39841 char $ac_func ();
39842 /* The GNU C library defines this for functions which it implements
39843 to always fail with ENOSYS. Some functions are actually named
39844 something starting with __ and the normal name is an alias. */
39845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39846 choke me
39847 #else
39848 char (*f) () = $ac_func;
39849 #endif
39850 #ifdef __cplusplus
39851 }
39852 #endif
39853
39854 int
39855 main ()
39856 {
39857 return f != $ac_func;
39858 ;
39859 return 0;
39860 }
39861 _ACEOF
39862 rm -f conftest.$ac_objext conftest$ac_exeext
39863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39864 (eval $ac_link) 2>&5
39865 ac_status=$?
39866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39867 (exit $ac_status); } &&
39868 { ac_try='test -s conftest$ac_exeext'
39869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39870 (eval $ac_try) 2>&5
39871 ac_status=$?
39872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39873 (exit $ac_status); }; }; then
39874 eval "$as_ac_var=yes"
39875 else
39876 echo "$as_me: failed program was:" >&5
39877 sed 's/^/| /' conftest.$ac_ext >&5
39878
39879 eval "$as_ac_var=no"
39880 fi
39881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39882 fi
39883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39885 if test `eval echo '${'$as_ac_var'}'` = yes; then
39886 cat >>confdefs.h <<_ACEOF
39887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39888 _ACEOF
39889
39890 fi
39891 done
39892
39893 fi
39894 fi
39895
39896
39897
39898 echo "$as_me:$LINENO: checking for modfl declaration" >&5
39899 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
39900 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
39901 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
39902 echo $ECHO_N "(cached) $ECHO_C" >&6
39903 else
39904
39905
39906
39907 ac_ext=cc
39908 ac_cpp='$CXXCPP $CPPFLAGS'
39909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39912
39913 cat >conftest.$ac_ext <<_ACEOF
39914 #line $LINENO "configure"
39915 /* confdefs.h. */
39916 _ACEOF
39917 cat confdefs.h >>conftest.$ac_ext
39918 cat >>conftest.$ac_ext <<_ACEOF
39919 /* end confdefs.h. */
39920 #include <math.h>
39921 int
39922 main ()
39923 {
39924 modfl(0, 0);
39925 ;
39926 return 0;
39927 }
39928 _ACEOF
39929 rm -f conftest.$ac_objext
39930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39931 (eval $ac_compile) 2>&5
39932 ac_status=$?
39933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39934 (exit $ac_status); } &&
39935 { ac_try='test -s conftest.$ac_objext'
39936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39937 (eval $ac_try) 2>&5
39938 ac_status=$?
39939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39940 (exit $ac_status); }; }; then
39941 glibcxx_cv_func_modfl_use=yes
39942 else
39943 echo "$as_me: failed program was:" >&5
39944 sed 's/^/| /' conftest.$ac_ext >&5
39945
39946 glibcxx_cv_func_modfl_use=no
39947 fi
39948 rm -f conftest.$ac_objext conftest.$ac_ext
39949 ac_ext=c
39950 ac_cpp='$CPP $CPPFLAGS'
39951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39954
39955
39956 fi
39957
39958 fi
39959 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
39960 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
39961
39962 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
39963
39964 for ac_func in modfl
39965 do
39966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39967 echo "$as_me:$LINENO: checking for $ac_func" >&5
39968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39969 if eval "test \"\${$as_ac_var+set}\" = set"; then
39970 echo $ECHO_N "(cached) $ECHO_C" >&6
39971 else
39972 if test x$gcc_no_link = xyes; then
39973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39975 { (exit 1); exit 1; }; }
39976 fi
39977 cat >conftest.$ac_ext <<_ACEOF
39978 #line $LINENO "configure"
39979 /* confdefs.h. */
39980 _ACEOF
39981 cat confdefs.h >>conftest.$ac_ext
39982 cat >>conftest.$ac_ext <<_ACEOF
39983 /* end confdefs.h. */
39984 /* System header to define __stub macros and hopefully few prototypes,
39985 which can conflict with char $ac_func (); below.
39986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39987 <limits.h> exists even on freestanding compilers. */
39988 #ifdef __STDC__
39989 # include <limits.h>
39990 #else
39991 # include <assert.h>
39992 #endif
39993 /* Override any gcc2 internal prototype to avoid an error. */
39994 #ifdef __cplusplus
39995 extern "C"
39996 {
39997 #endif
39998 /* We use char because int might match the return type of a gcc2
39999 builtin and then its argument prototype would still apply. */
40000 char $ac_func ();
40001 /* The GNU C library defines this for functions which it implements
40002 to always fail with ENOSYS. Some functions are actually named
40003 something starting with __ and the normal name is an alias. */
40004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40005 choke me
40006 #else
40007 char (*f) () = $ac_func;
40008 #endif
40009 #ifdef __cplusplus
40010 }
40011 #endif
40012
40013 int
40014 main ()
40015 {
40016 return f != $ac_func;
40017 ;
40018 return 0;
40019 }
40020 _ACEOF
40021 rm -f conftest.$ac_objext conftest$ac_exeext
40022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40023 (eval $ac_link) 2>&5
40024 ac_status=$?
40025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026 (exit $ac_status); } &&
40027 { ac_try='test -s conftest$ac_exeext'
40028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40029 (eval $ac_try) 2>&5
40030 ac_status=$?
40031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032 (exit $ac_status); }; }; then
40033 eval "$as_ac_var=yes"
40034 else
40035 echo "$as_me: failed program was:" >&5
40036 sed 's/^/| /' conftest.$ac_ext >&5
40037
40038 eval "$as_ac_var=no"
40039 fi
40040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40041 fi
40042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40044 if test `eval echo '${'$as_ac_var'}'` = yes; then
40045 cat >>confdefs.h <<_ACEOF
40046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40047 _ACEOF
40048
40049 fi
40050 done
40051
40052 else
40053
40054 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
40055 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
40056 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
40057 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
40058 echo $ECHO_N "(cached) $ECHO_C" >&6
40059 else
40060
40061
40062
40063 ac_ext=cc
40064 ac_cpp='$CXXCPP $CPPFLAGS'
40065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40068
40069 cat >conftest.$ac_ext <<_ACEOF
40070 #line $LINENO "configure"
40071 /* confdefs.h. */
40072 _ACEOF
40073 cat confdefs.h >>conftest.$ac_ext
40074 cat >>conftest.$ac_ext <<_ACEOF
40075 /* end confdefs.h. */
40076 #include <math.h>
40077 int
40078 main ()
40079 {
40080 _modfl(0, 0);
40081 ;
40082 return 0;
40083 }
40084 _ACEOF
40085 rm -f conftest.$ac_objext
40086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40087 (eval $ac_compile) 2>&5
40088 ac_status=$?
40089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40090 (exit $ac_status); } &&
40091 { ac_try='test -s conftest.$ac_objext'
40092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40093 (eval $ac_try) 2>&5
40094 ac_status=$?
40095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096 (exit $ac_status); }; }; then
40097 glibcxx_cv_func__modfl_use=yes
40098 else
40099 echo "$as_me: failed program was:" >&5
40100 sed 's/^/| /' conftest.$ac_ext >&5
40101
40102 glibcxx_cv_func__modfl_use=no
40103 fi
40104 rm -f conftest.$ac_objext conftest.$ac_ext
40105 ac_ext=c
40106 ac_cpp='$CPP $CPPFLAGS'
40107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40110
40111
40112 fi
40113
40114 fi
40115 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
40116 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
40117
40118 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
40119
40120 for ac_func in _modfl
40121 do
40122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40123 echo "$as_me:$LINENO: checking for $ac_func" >&5
40124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40125 if eval "test \"\${$as_ac_var+set}\" = set"; then
40126 echo $ECHO_N "(cached) $ECHO_C" >&6
40127 else
40128 if test x$gcc_no_link = xyes; then
40129 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40130 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40131 { (exit 1); exit 1; }; }
40132 fi
40133 cat >conftest.$ac_ext <<_ACEOF
40134 #line $LINENO "configure"
40135 /* confdefs.h. */
40136 _ACEOF
40137 cat confdefs.h >>conftest.$ac_ext
40138 cat >>conftest.$ac_ext <<_ACEOF
40139 /* end confdefs.h. */
40140 /* System header to define __stub macros and hopefully few prototypes,
40141 which can conflict with char $ac_func (); below.
40142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40143 <limits.h> exists even on freestanding compilers. */
40144 #ifdef __STDC__
40145 # include <limits.h>
40146 #else
40147 # include <assert.h>
40148 #endif
40149 /* Override any gcc2 internal prototype to avoid an error. */
40150 #ifdef __cplusplus
40151 extern "C"
40152 {
40153 #endif
40154 /* We use char because int might match the return type of a gcc2
40155 builtin and then its argument prototype would still apply. */
40156 char $ac_func ();
40157 /* The GNU C library defines this for functions which it implements
40158 to always fail with ENOSYS. Some functions are actually named
40159 something starting with __ and the normal name is an alias. */
40160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40161 choke me
40162 #else
40163 char (*f) () = $ac_func;
40164 #endif
40165 #ifdef __cplusplus
40166 }
40167 #endif
40168
40169 int
40170 main ()
40171 {
40172 return f != $ac_func;
40173 ;
40174 return 0;
40175 }
40176 _ACEOF
40177 rm -f conftest.$ac_objext conftest$ac_exeext
40178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40179 (eval $ac_link) 2>&5
40180 ac_status=$?
40181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40182 (exit $ac_status); } &&
40183 { ac_try='test -s conftest$ac_exeext'
40184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40185 (eval $ac_try) 2>&5
40186 ac_status=$?
40187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40188 (exit $ac_status); }; }; then
40189 eval "$as_ac_var=yes"
40190 else
40191 echo "$as_me: failed program was:" >&5
40192 sed 's/^/| /' conftest.$ac_ext >&5
40193
40194 eval "$as_ac_var=no"
40195 fi
40196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40197 fi
40198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40200 if test `eval echo '${'$as_ac_var'}'` = yes; then
40201 cat >>confdefs.h <<_ACEOF
40202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40203 _ACEOF
40204
40205 fi
40206 done
40207
40208 fi
40209 fi
40210
40211
40212
40213 echo "$as_me:$LINENO: checking for powl declaration" >&5
40214 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
40215 if test x${glibcxx_cv_func_powl_use+set} != xset; then
40216 if test "${glibcxx_cv_func_powl_use+set}" = set; then
40217 echo $ECHO_N "(cached) $ECHO_C" >&6
40218 else
40219
40220
40221
40222 ac_ext=cc
40223 ac_cpp='$CXXCPP $CPPFLAGS'
40224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40227
40228 cat >conftest.$ac_ext <<_ACEOF
40229 #line $LINENO "configure"
40230 /* confdefs.h. */
40231 _ACEOF
40232 cat confdefs.h >>conftest.$ac_ext
40233 cat >>conftest.$ac_ext <<_ACEOF
40234 /* end confdefs.h. */
40235 #include <math.h>
40236 int
40237 main ()
40238 {
40239 powl(0, 0);
40240 ;
40241 return 0;
40242 }
40243 _ACEOF
40244 rm -f conftest.$ac_objext
40245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40246 (eval $ac_compile) 2>&5
40247 ac_status=$?
40248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249 (exit $ac_status); } &&
40250 { ac_try='test -s conftest.$ac_objext'
40251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40252 (eval $ac_try) 2>&5
40253 ac_status=$?
40254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255 (exit $ac_status); }; }; then
40256 glibcxx_cv_func_powl_use=yes
40257 else
40258 echo "$as_me: failed program was:" >&5
40259 sed 's/^/| /' conftest.$ac_ext >&5
40260
40261 glibcxx_cv_func_powl_use=no
40262 fi
40263 rm -f conftest.$ac_objext conftest.$ac_ext
40264 ac_ext=c
40265 ac_cpp='$CPP $CPPFLAGS'
40266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40269
40270
40271 fi
40272
40273 fi
40274 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
40275 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
40276
40277 if test x$glibcxx_cv_func_powl_use = x"yes"; then
40278
40279 for ac_func in powl
40280 do
40281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40282 echo "$as_me:$LINENO: checking for $ac_func" >&5
40283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40284 if eval "test \"\${$as_ac_var+set}\" = set"; then
40285 echo $ECHO_N "(cached) $ECHO_C" >&6
40286 else
40287 if test x$gcc_no_link = xyes; then
40288 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40290 { (exit 1); exit 1; }; }
40291 fi
40292 cat >conftest.$ac_ext <<_ACEOF
40293 #line $LINENO "configure"
40294 /* confdefs.h. */
40295 _ACEOF
40296 cat confdefs.h >>conftest.$ac_ext
40297 cat >>conftest.$ac_ext <<_ACEOF
40298 /* end confdefs.h. */
40299 /* System header to define __stub macros and hopefully few prototypes,
40300 which can conflict with char $ac_func (); below.
40301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40302 <limits.h> exists even on freestanding compilers. */
40303 #ifdef __STDC__
40304 # include <limits.h>
40305 #else
40306 # include <assert.h>
40307 #endif
40308 /* Override any gcc2 internal prototype to avoid an error. */
40309 #ifdef __cplusplus
40310 extern "C"
40311 {
40312 #endif
40313 /* We use char because int might match the return type of a gcc2
40314 builtin and then its argument prototype would still apply. */
40315 char $ac_func ();
40316 /* The GNU C library defines this for functions which it implements
40317 to always fail with ENOSYS. Some functions are actually named
40318 something starting with __ and the normal name is an alias. */
40319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40320 choke me
40321 #else
40322 char (*f) () = $ac_func;
40323 #endif
40324 #ifdef __cplusplus
40325 }
40326 #endif
40327
40328 int
40329 main ()
40330 {
40331 return f != $ac_func;
40332 ;
40333 return 0;
40334 }
40335 _ACEOF
40336 rm -f conftest.$ac_objext conftest$ac_exeext
40337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40338 (eval $ac_link) 2>&5
40339 ac_status=$?
40340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40341 (exit $ac_status); } &&
40342 { ac_try='test -s conftest$ac_exeext'
40343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40344 (eval $ac_try) 2>&5
40345 ac_status=$?
40346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40347 (exit $ac_status); }; }; then
40348 eval "$as_ac_var=yes"
40349 else
40350 echo "$as_me: failed program was:" >&5
40351 sed 's/^/| /' conftest.$ac_ext >&5
40352
40353 eval "$as_ac_var=no"
40354 fi
40355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40356 fi
40357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40359 if test `eval echo '${'$as_ac_var'}'` = yes; then
40360 cat >>confdefs.h <<_ACEOF
40361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40362 _ACEOF
40363
40364 fi
40365 done
40366
40367 else
40368
40369 echo "$as_me:$LINENO: checking for _powl declaration" >&5
40370 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
40371 if test x${glibcxx_cv_func__powl_use+set} != xset; then
40372 if test "${glibcxx_cv_func__powl_use+set}" = set; then
40373 echo $ECHO_N "(cached) $ECHO_C" >&6
40374 else
40375
40376
40377
40378 ac_ext=cc
40379 ac_cpp='$CXXCPP $CPPFLAGS'
40380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40383
40384 cat >conftest.$ac_ext <<_ACEOF
40385 #line $LINENO "configure"
40386 /* confdefs.h. */
40387 _ACEOF
40388 cat confdefs.h >>conftest.$ac_ext
40389 cat >>conftest.$ac_ext <<_ACEOF
40390 /* end confdefs.h. */
40391 #include <math.h>
40392 int
40393 main ()
40394 {
40395 _powl(0, 0);
40396 ;
40397 return 0;
40398 }
40399 _ACEOF
40400 rm -f conftest.$ac_objext
40401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40402 (eval $ac_compile) 2>&5
40403 ac_status=$?
40404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405 (exit $ac_status); } &&
40406 { ac_try='test -s conftest.$ac_objext'
40407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40408 (eval $ac_try) 2>&5
40409 ac_status=$?
40410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411 (exit $ac_status); }; }; then
40412 glibcxx_cv_func__powl_use=yes
40413 else
40414 echo "$as_me: failed program was:" >&5
40415 sed 's/^/| /' conftest.$ac_ext >&5
40416
40417 glibcxx_cv_func__powl_use=no
40418 fi
40419 rm -f conftest.$ac_objext conftest.$ac_ext
40420 ac_ext=c
40421 ac_cpp='$CPP $CPPFLAGS'
40422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40425
40426
40427 fi
40428
40429 fi
40430 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
40431 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
40432
40433 if test x$glibcxx_cv_func__powl_use = x"yes"; then
40434
40435 for ac_func in _powl
40436 do
40437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40438 echo "$as_me:$LINENO: checking for $ac_func" >&5
40439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40440 if eval "test \"\${$as_ac_var+set}\" = set"; then
40441 echo $ECHO_N "(cached) $ECHO_C" >&6
40442 else
40443 if test x$gcc_no_link = xyes; then
40444 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40445 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40446 { (exit 1); exit 1; }; }
40447 fi
40448 cat >conftest.$ac_ext <<_ACEOF
40449 #line $LINENO "configure"
40450 /* confdefs.h. */
40451 _ACEOF
40452 cat confdefs.h >>conftest.$ac_ext
40453 cat >>conftest.$ac_ext <<_ACEOF
40454 /* end confdefs.h. */
40455 /* System header to define __stub macros and hopefully few prototypes,
40456 which can conflict with char $ac_func (); below.
40457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40458 <limits.h> exists even on freestanding compilers. */
40459 #ifdef __STDC__
40460 # include <limits.h>
40461 #else
40462 # include <assert.h>
40463 #endif
40464 /* Override any gcc2 internal prototype to avoid an error. */
40465 #ifdef __cplusplus
40466 extern "C"
40467 {
40468 #endif
40469 /* We use char because int might match the return type of a gcc2
40470 builtin and then its argument prototype would still apply. */
40471 char $ac_func ();
40472 /* The GNU C library defines this for functions which it implements
40473 to always fail with ENOSYS. Some functions are actually named
40474 something starting with __ and the normal name is an alias. */
40475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40476 choke me
40477 #else
40478 char (*f) () = $ac_func;
40479 #endif
40480 #ifdef __cplusplus
40481 }
40482 #endif
40483
40484 int
40485 main ()
40486 {
40487 return f != $ac_func;
40488 ;
40489 return 0;
40490 }
40491 _ACEOF
40492 rm -f conftest.$ac_objext conftest$ac_exeext
40493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40494 (eval $ac_link) 2>&5
40495 ac_status=$?
40496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40497 (exit $ac_status); } &&
40498 { ac_try='test -s conftest$ac_exeext'
40499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40500 (eval $ac_try) 2>&5
40501 ac_status=$?
40502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40503 (exit $ac_status); }; }; then
40504 eval "$as_ac_var=yes"
40505 else
40506 echo "$as_me: failed program was:" >&5
40507 sed 's/^/| /' conftest.$ac_ext >&5
40508
40509 eval "$as_ac_var=no"
40510 fi
40511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40512 fi
40513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40515 if test `eval echo '${'$as_ac_var'}'` = yes; then
40516 cat >>confdefs.h <<_ACEOF
40517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40518 _ACEOF
40519
40520 fi
40521 done
40522
40523 fi
40524 fi
40525
40526
40527
40528 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
40529 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
40530 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
40531 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
40532 echo $ECHO_N "(cached) $ECHO_C" >&6
40533 else
40534
40535
40536
40537 ac_ext=cc
40538 ac_cpp='$CXXCPP $CPPFLAGS'
40539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40542
40543 cat >conftest.$ac_ext <<_ACEOF
40544 #line $LINENO "configure"
40545 /* confdefs.h. */
40546 _ACEOF
40547 cat confdefs.h >>conftest.$ac_ext
40548 cat >>conftest.$ac_ext <<_ACEOF
40549 /* end confdefs.h. */
40550 #include <math.h>
40551 #ifdef HAVE_IEEEFP_H
40552 #include <ieeefp.h>
40553 #endif
40554
40555 int
40556 main ()
40557 {
40558 sqrtl(0);
40559 ;
40560 return 0;
40561 }
40562 _ACEOF
40563 rm -f conftest.$ac_objext
40564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40565 (eval $ac_compile) 2>&5
40566 ac_status=$?
40567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40568 (exit $ac_status); } &&
40569 { ac_try='test -s conftest.$ac_objext'
40570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40571 (eval $ac_try) 2>&5
40572 ac_status=$?
40573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); }; }; then
40575 glibcxx_cv_func_sqrtl_use=yes
40576 else
40577 echo "$as_me: failed program was:" >&5
40578 sed 's/^/| /' conftest.$ac_ext >&5
40579
40580 glibcxx_cv_func_sqrtl_use=no
40581 fi
40582 rm -f conftest.$ac_objext conftest.$ac_ext
40583 ac_ext=c
40584 ac_cpp='$CPP $CPPFLAGS'
40585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40588
40589
40590 fi
40591
40592 fi
40593 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
40594 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
40595
40596 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
40597
40598 for ac_func in sqrtl
40599 do
40600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40601 echo "$as_me:$LINENO: checking for $ac_func" >&5
40602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40603 if eval "test \"\${$as_ac_var+set}\" = set"; then
40604 echo $ECHO_N "(cached) $ECHO_C" >&6
40605 else
40606 if test x$gcc_no_link = xyes; then
40607 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40608 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40609 { (exit 1); exit 1; }; }
40610 fi
40611 cat >conftest.$ac_ext <<_ACEOF
40612 #line $LINENO "configure"
40613 /* confdefs.h. */
40614 _ACEOF
40615 cat confdefs.h >>conftest.$ac_ext
40616 cat >>conftest.$ac_ext <<_ACEOF
40617 /* end confdefs.h. */
40618 /* System header to define __stub macros and hopefully few prototypes,
40619 which can conflict with char $ac_func (); below.
40620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40621 <limits.h> exists even on freestanding compilers. */
40622 #ifdef __STDC__
40623 # include <limits.h>
40624 #else
40625 # include <assert.h>
40626 #endif
40627 /* Override any gcc2 internal prototype to avoid an error. */
40628 #ifdef __cplusplus
40629 extern "C"
40630 {
40631 #endif
40632 /* We use char because int might match the return type of a gcc2
40633 builtin and then its argument prototype would still apply. */
40634 char $ac_func ();
40635 /* The GNU C library defines this for functions which it implements
40636 to always fail with ENOSYS. Some functions are actually named
40637 something starting with __ and the normal name is an alias. */
40638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40639 choke me
40640 #else
40641 char (*f) () = $ac_func;
40642 #endif
40643 #ifdef __cplusplus
40644 }
40645 #endif
40646
40647 int
40648 main ()
40649 {
40650 return f != $ac_func;
40651 ;
40652 return 0;
40653 }
40654 _ACEOF
40655 rm -f conftest.$ac_objext conftest$ac_exeext
40656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40657 (eval $ac_link) 2>&5
40658 ac_status=$?
40659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40660 (exit $ac_status); } &&
40661 { ac_try='test -s conftest$ac_exeext'
40662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40663 (eval $ac_try) 2>&5
40664 ac_status=$?
40665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40666 (exit $ac_status); }; }; then
40667 eval "$as_ac_var=yes"
40668 else
40669 echo "$as_me: failed program was:" >&5
40670 sed 's/^/| /' conftest.$ac_ext >&5
40671
40672 eval "$as_ac_var=no"
40673 fi
40674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40675 fi
40676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40678 if test `eval echo '${'$as_ac_var'}'` = yes; then
40679 cat >>confdefs.h <<_ACEOF
40680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40681 _ACEOF
40682
40683 fi
40684 done
40685
40686 else
40687
40688 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
40689 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
40690 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
40691 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
40692 echo $ECHO_N "(cached) $ECHO_C" >&6
40693 else
40694
40695
40696
40697 ac_ext=cc
40698 ac_cpp='$CXXCPP $CPPFLAGS'
40699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40702
40703 cat >conftest.$ac_ext <<_ACEOF
40704 #line $LINENO "configure"
40705 /* confdefs.h. */
40706 _ACEOF
40707 cat confdefs.h >>conftest.$ac_ext
40708 cat >>conftest.$ac_ext <<_ACEOF
40709 /* end confdefs.h. */
40710 #include <math.h>
40711 #ifdef HAVE_IEEEFP_H
40712 #include <ieeefp.h>
40713 #endif
40714
40715 int
40716 main ()
40717 {
40718 _sqrtl(0);
40719 ;
40720 return 0;
40721 }
40722 _ACEOF
40723 rm -f conftest.$ac_objext
40724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40725 (eval $ac_compile) 2>&5
40726 ac_status=$?
40727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40728 (exit $ac_status); } &&
40729 { ac_try='test -s conftest.$ac_objext'
40730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40731 (eval $ac_try) 2>&5
40732 ac_status=$?
40733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40734 (exit $ac_status); }; }; then
40735 glibcxx_cv_func__sqrtl_use=yes
40736 else
40737 echo "$as_me: failed program was:" >&5
40738 sed 's/^/| /' conftest.$ac_ext >&5
40739
40740 glibcxx_cv_func__sqrtl_use=no
40741 fi
40742 rm -f conftest.$ac_objext conftest.$ac_ext
40743 ac_ext=c
40744 ac_cpp='$CPP $CPPFLAGS'
40745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40748
40749
40750 fi
40751
40752 fi
40753 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
40754 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
40755
40756 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
40757
40758 for ac_func in _sqrtl
40759 do
40760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40761 echo "$as_me:$LINENO: checking for $ac_func" >&5
40762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40763 if eval "test \"\${$as_ac_var+set}\" = set"; then
40764 echo $ECHO_N "(cached) $ECHO_C" >&6
40765 else
40766 if test x$gcc_no_link = xyes; then
40767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40769 { (exit 1); exit 1; }; }
40770 fi
40771 cat >conftest.$ac_ext <<_ACEOF
40772 #line $LINENO "configure"
40773 /* confdefs.h. */
40774 _ACEOF
40775 cat confdefs.h >>conftest.$ac_ext
40776 cat >>conftest.$ac_ext <<_ACEOF
40777 /* end confdefs.h. */
40778 /* System header to define __stub macros and hopefully few prototypes,
40779 which can conflict with char $ac_func (); below.
40780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40781 <limits.h> exists even on freestanding compilers. */
40782 #ifdef __STDC__
40783 # include <limits.h>
40784 #else
40785 # include <assert.h>
40786 #endif
40787 /* Override any gcc2 internal prototype to avoid an error. */
40788 #ifdef __cplusplus
40789 extern "C"
40790 {
40791 #endif
40792 /* We use char because int might match the return type of a gcc2
40793 builtin and then its argument prototype would still apply. */
40794 char $ac_func ();
40795 /* The GNU C library defines this for functions which it implements
40796 to always fail with ENOSYS. Some functions are actually named
40797 something starting with __ and the normal name is an alias. */
40798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40799 choke me
40800 #else
40801 char (*f) () = $ac_func;
40802 #endif
40803 #ifdef __cplusplus
40804 }
40805 #endif
40806
40807 int
40808 main ()
40809 {
40810 return f != $ac_func;
40811 ;
40812 return 0;
40813 }
40814 _ACEOF
40815 rm -f conftest.$ac_objext conftest$ac_exeext
40816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40817 (eval $ac_link) 2>&5
40818 ac_status=$?
40819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820 (exit $ac_status); } &&
40821 { ac_try='test -s conftest$ac_exeext'
40822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40823 (eval $ac_try) 2>&5
40824 ac_status=$?
40825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40826 (exit $ac_status); }; }; then
40827 eval "$as_ac_var=yes"
40828 else
40829 echo "$as_me: failed program was:" >&5
40830 sed 's/^/| /' conftest.$ac_ext >&5
40831
40832 eval "$as_ac_var=no"
40833 fi
40834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40835 fi
40836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40838 if test `eval echo '${'$as_ac_var'}'` = yes; then
40839 cat >>confdefs.h <<_ACEOF
40840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40841 _ACEOF
40842
40843 fi
40844 done
40845
40846 fi
40847 fi
40848
40849
40850
40851 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
40852 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
40853 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
40854 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
40855 echo $ECHO_N "(cached) $ECHO_C" >&6
40856 else
40857
40858
40859
40860 ac_ext=cc
40861 ac_cpp='$CXXCPP $CPPFLAGS'
40862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40865
40866 cat >conftest.$ac_ext <<_ACEOF
40867 #line $LINENO "configure"
40868 /* confdefs.h. */
40869 _ACEOF
40870 cat confdefs.h >>conftest.$ac_ext
40871 cat >>conftest.$ac_ext <<_ACEOF
40872 /* end confdefs.h. */
40873 #include <math.h>
40874 int
40875 main ()
40876 {
40877 sincosl(0, 0, 0);
40878 ;
40879 return 0;
40880 }
40881 _ACEOF
40882 rm -f conftest.$ac_objext
40883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40884 (eval $ac_compile) 2>&5
40885 ac_status=$?
40886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887 (exit $ac_status); } &&
40888 { ac_try='test -s conftest.$ac_objext'
40889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40890 (eval $ac_try) 2>&5
40891 ac_status=$?
40892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40893 (exit $ac_status); }; }; then
40894 glibcxx_cv_func_sincosl_use=yes
40895 else
40896 echo "$as_me: failed program was:" >&5
40897 sed 's/^/| /' conftest.$ac_ext >&5
40898
40899 glibcxx_cv_func_sincosl_use=no
40900 fi
40901 rm -f conftest.$ac_objext conftest.$ac_ext
40902 ac_ext=c
40903 ac_cpp='$CPP $CPPFLAGS'
40904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40907
40908
40909 fi
40910
40911 fi
40912 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
40913 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
40914
40915 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
40916
40917 for ac_func in sincosl
40918 do
40919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40920 echo "$as_me:$LINENO: checking for $ac_func" >&5
40921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40922 if eval "test \"\${$as_ac_var+set}\" = set"; then
40923 echo $ECHO_N "(cached) $ECHO_C" >&6
40924 else
40925 if test x$gcc_no_link = xyes; then
40926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40928 { (exit 1); exit 1; }; }
40929 fi
40930 cat >conftest.$ac_ext <<_ACEOF
40931 #line $LINENO "configure"
40932 /* confdefs.h. */
40933 _ACEOF
40934 cat confdefs.h >>conftest.$ac_ext
40935 cat >>conftest.$ac_ext <<_ACEOF
40936 /* end confdefs.h. */
40937 /* System header to define __stub macros and hopefully few prototypes,
40938 which can conflict with char $ac_func (); below.
40939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40940 <limits.h> exists even on freestanding compilers. */
40941 #ifdef __STDC__
40942 # include <limits.h>
40943 #else
40944 # include <assert.h>
40945 #endif
40946 /* Override any gcc2 internal prototype to avoid an error. */
40947 #ifdef __cplusplus
40948 extern "C"
40949 {
40950 #endif
40951 /* We use char because int might match the return type of a gcc2
40952 builtin and then its argument prototype would still apply. */
40953 char $ac_func ();
40954 /* The GNU C library defines this for functions which it implements
40955 to always fail with ENOSYS. Some functions are actually named
40956 something starting with __ and the normal name is an alias. */
40957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40958 choke me
40959 #else
40960 char (*f) () = $ac_func;
40961 #endif
40962 #ifdef __cplusplus
40963 }
40964 #endif
40965
40966 int
40967 main ()
40968 {
40969 return f != $ac_func;
40970 ;
40971 return 0;
40972 }
40973 _ACEOF
40974 rm -f conftest.$ac_objext conftest$ac_exeext
40975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40976 (eval $ac_link) 2>&5
40977 ac_status=$?
40978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40979 (exit $ac_status); } &&
40980 { ac_try='test -s conftest$ac_exeext'
40981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40982 (eval $ac_try) 2>&5
40983 ac_status=$?
40984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40985 (exit $ac_status); }; }; then
40986 eval "$as_ac_var=yes"
40987 else
40988 echo "$as_me: failed program was:" >&5
40989 sed 's/^/| /' conftest.$ac_ext >&5
40990
40991 eval "$as_ac_var=no"
40992 fi
40993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40994 fi
40995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40997 if test `eval echo '${'$as_ac_var'}'` = yes; then
40998 cat >>confdefs.h <<_ACEOF
40999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41000 _ACEOF
41001
41002 fi
41003 done
41004
41005 else
41006
41007 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
41008 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
41009 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
41010 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
41011 echo $ECHO_N "(cached) $ECHO_C" >&6
41012 else
41013
41014
41015
41016 ac_ext=cc
41017 ac_cpp='$CXXCPP $CPPFLAGS'
41018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41021
41022 cat >conftest.$ac_ext <<_ACEOF
41023 #line $LINENO "configure"
41024 /* confdefs.h. */
41025 _ACEOF
41026 cat confdefs.h >>conftest.$ac_ext
41027 cat >>conftest.$ac_ext <<_ACEOF
41028 /* end confdefs.h. */
41029 #include <math.h>
41030 int
41031 main ()
41032 {
41033 _sincosl(0, 0, 0);
41034 ;
41035 return 0;
41036 }
41037 _ACEOF
41038 rm -f conftest.$ac_objext
41039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41040 (eval $ac_compile) 2>&5
41041 ac_status=$?
41042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41043 (exit $ac_status); } &&
41044 { ac_try='test -s conftest.$ac_objext'
41045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41046 (eval $ac_try) 2>&5
41047 ac_status=$?
41048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41049 (exit $ac_status); }; }; then
41050 glibcxx_cv_func__sincosl_use=yes
41051 else
41052 echo "$as_me: failed program was:" >&5
41053 sed 's/^/| /' conftest.$ac_ext >&5
41054
41055 glibcxx_cv_func__sincosl_use=no
41056 fi
41057 rm -f conftest.$ac_objext conftest.$ac_ext
41058 ac_ext=c
41059 ac_cpp='$CPP $CPPFLAGS'
41060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41063
41064
41065 fi
41066
41067 fi
41068 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
41069 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
41070
41071 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
41072
41073 for ac_func in _sincosl
41074 do
41075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41076 echo "$as_me:$LINENO: checking for $ac_func" >&5
41077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41078 if eval "test \"\${$as_ac_var+set}\" = set"; then
41079 echo $ECHO_N "(cached) $ECHO_C" >&6
41080 else
41081 if test x$gcc_no_link = xyes; then
41082 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41083 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41084 { (exit 1); exit 1; }; }
41085 fi
41086 cat >conftest.$ac_ext <<_ACEOF
41087 #line $LINENO "configure"
41088 /* confdefs.h. */
41089 _ACEOF
41090 cat confdefs.h >>conftest.$ac_ext
41091 cat >>conftest.$ac_ext <<_ACEOF
41092 /* end confdefs.h. */
41093 /* System header to define __stub macros and hopefully few prototypes,
41094 which can conflict with char $ac_func (); below.
41095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41096 <limits.h> exists even on freestanding compilers. */
41097 #ifdef __STDC__
41098 # include <limits.h>
41099 #else
41100 # include <assert.h>
41101 #endif
41102 /* Override any gcc2 internal prototype to avoid an error. */
41103 #ifdef __cplusplus
41104 extern "C"
41105 {
41106 #endif
41107 /* We use char because int might match the return type of a gcc2
41108 builtin and then its argument prototype would still apply. */
41109 char $ac_func ();
41110 /* The GNU C library defines this for functions which it implements
41111 to always fail with ENOSYS. Some functions are actually named
41112 something starting with __ and the normal name is an alias. */
41113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41114 choke me
41115 #else
41116 char (*f) () = $ac_func;
41117 #endif
41118 #ifdef __cplusplus
41119 }
41120 #endif
41121
41122 int
41123 main ()
41124 {
41125 return f != $ac_func;
41126 ;
41127 return 0;
41128 }
41129 _ACEOF
41130 rm -f conftest.$ac_objext conftest$ac_exeext
41131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41132 (eval $ac_link) 2>&5
41133 ac_status=$?
41134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41135 (exit $ac_status); } &&
41136 { ac_try='test -s conftest$ac_exeext'
41137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41138 (eval $ac_try) 2>&5
41139 ac_status=$?
41140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41141 (exit $ac_status); }; }; then
41142 eval "$as_ac_var=yes"
41143 else
41144 echo "$as_me: failed program was:" >&5
41145 sed 's/^/| /' conftest.$ac_ext >&5
41146
41147 eval "$as_ac_var=no"
41148 fi
41149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41150 fi
41151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41153 if test `eval echo '${'$as_ac_var'}'` = yes; then
41154 cat >>confdefs.h <<_ACEOF
41155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41156 _ACEOF
41157
41158 fi
41159 done
41160
41161 fi
41162 fi
41163
41164
41165
41166 echo "$as_me:$LINENO: checking for finitel declaration" >&5
41167 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
41168 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
41169 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
41170 echo $ECHO_N "(cached) $ECHO_C" >&6
41171 else
41172
41173
41174
41175 ac_ext=cc
41176 ac_cpp='$CXXCPP $CPPFLAGS'
41177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41180
41181 cat >conftest.$ac_ext <<_ACEOF
41182 #line $LINENO "configure"
41183 /* confdefs.h. */
41184 _ACEOF
41185 cat confdefs.h >>conftest.$ac_ext
41186 cat >>conftest.$ac_ext <<_ACEOF
41187 /* end confdefs.h. */
41188 #include <math.h>
41189 #ifdef HAVE_IEEEFP_H
41190 #include <ieeefp.h>
41191 #endif
41192
41193 int
41194 main ()
41195 {
41196 finitel(0);
41197 ;
41198 return 0;
41199 }
41200 _ACEOF
41201 rm -f conftest.$ac_objext
41202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41203 (eval $ac_compile) 2>&5
41204 ac_status=$?
41205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41206 (exit $ac_status); } &&
41207 { ac_try='test -s conftest.$ac_objext'
41208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41209 (eval $ac_try) 2>&5
41210 ac_status=$?
41211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41212 (exit $ac_status); }; }; then
41213 glibcxx_cv_func_finitel_use=yes
41214 else
41215 echo "$as_me: failed program was:" >&5
41216 sed 's/^/| /' conftest.$ac_ext >&5
41217
41218 glibcxx_cv_func_finitel_use=no
41219 fi
41220 rm -f conftest.$ac_objext conftest.$ac_ext
41221 ac_ext=c
41222 ac_cpp='$CPP $CPPFLAGS'
41223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41226
41227
41228 fi
41229
41230 fi
41231 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
41232 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
41233
41234 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
41235
41236 for ac_func in finitel
41237 do
41238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41239 echo "$as_me:$LINENO: checking for $ac_func" >&5
41240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41241 if eval "test \"\${$as_ac_var+set}\" = set"; then
41242 echo $ECHO_N "(cached) $ECHO_C" >&6
41243 else
41244 if test x$gcc_no_link = xyes; then
41245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41247 { (exit 1); exit 1; }; }
41248 fi
41249 cat >conftest.$ac_ext <<_ACEOF
41250 #line $LINENO "configure"
41251 /* confdefs.h. */
41252 _ACEOF
41253 cat confdefs.h >>conftest.$ac_ext
41254 cat >>conftest.$ac_ext <<_ACEOF
41255 /* end confdefs.h. */
41256 /* System header to define __stub macros and hopefully few prototypes,
41257 which can conflict with char $ac_func (); below.
41258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41259 <limits.h> exists even on freestanding compilers. */
41260 #ifdef __STDC__
41261 # include <limits.h>
41262 #else
41263 # include <assert.h>
41264 #endif
41265 /* Override any gcc2 internal prototype to avoid an error. */
41266 #ifdef __cplusplus
41267 extern "C"
41268 {
41269 #endif
41270 /* We use char because int might match the return type of a gcc2
41271 builtin and then its argument prototype would still apply. */
41272 char $ac_func ();
41273 /* The GNU C library defines this for functions which it implements
41274 to always fail with ENOSYS. Some functions are actually named
41275 something starting with __ and the normal name is an alias. */
41276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41277 choke me
41278 #else
41279 char (*f) () = $ac_func;
41280 #endif
41281 #ifdef __cplusplus
41282 }
41283 #endif
41284
41285 int
41286 main ()
41287 {
41288 return f != $ac_func;
41289 ;
41290 return 0;
41291 }
41292 _ACEOF
41293 rm -f conftest.$ac_objext conftest$ac_exeext
41294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41295 (eval $ac_link) 2>&5
41296 ac_status=$?
41297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41298 (exit $ac_status); } &&
41299 { ac_try='test -s conftest$ac_exeext'
41300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41301 (eval $ac_try) 2>&5
41302 ac_status=$?
41303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41304 (exit $ac_status); }; }; then
41305 eval "$as_ac_var=yes"
41306 else
41307 echo "$as_me: failed program was:" >&5
41308 sed 's/^/| /' conftest.$ac_ext >&5
41309
41310 eval "$as_ac_var=no"
41311 fi
41312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41313 fi
41314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41316 if test `eval echo '${'$as_ac_var'}'` = yes; then
41317 cat >>confdefs.h <<_ACEOF
41318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41319 _ACEOF
41320
41321 fi
41322 done
41323
41324 else
41325
41326 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
41327 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
41328 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
41329 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
41330 echo $ECHO_N "(cached) $ECHO_C" >&6
41331 else
41332
41333
41334
41335 ac_ext=cc
41336 ac_cpp='$CXXCPP $CPPFLAGS'
41337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41340
41341 cat >conftest.$ac_ext <<_ACEOF
41342 #line $LINENO "configure"
41343 /* confdefs.h. */
41344 _ACEOF
41345 cat confdefs.h >>conftest.$ac_ext
41346 cat >>conftest.$ac_ext <<_ACEOF
41347 /* end confdefs.h. */
41348 #include <math.h>
41349 #ifdef HAVE_IEEEFP_H
41350 #include <ieeefp.h>
41351 #endif
41352
41353 int
41354 main ()
41355 {
41356 _finitel(0);
41357 ;
41358 return 0;
41359 }
41360 _ACEOF
41361 rm -f conftest.$ac_objext
41362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41363 (eval $ac_compile) 2>&5
41364 ac_status=$?
41365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41366 (exit $ac_status); } &&
41367 { ac_try='test -s conftest.$ac_objext'
41368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41369 (eval $ac_try) 2>&5
41370 ac_status=$?
41371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41372 (exit $ac_status); }; }; then
41373 glibcxx_cv_func__finitel_use=yes
41374 else
41375 echo "$as_me: failed program was:" >&5
41376 sed 's/^/| /' conftest.$ac_ext >&5
41377
41378 glibcxx_cv_func__finitel_use=no
41379 fi
41380 rm -f conftest.$ac_objext conftest.$ac_ext
41381 ac_ext=c
41382 ac_cpp='$CPP $CPPFLAGS'
41383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41386
41387
41388 fi
41389
41390 fi
41391 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
41392 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
41393
41394 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
41395
41396 for ac_func in _finitel
41397 do
41398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41399 echo "$as_me:$LINENO: checking for $ac_func" >&5
41400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41401 if eval "test \"\${$as_ac_var+set}\" = set"; then
41402 echo $ECHO_N "(cached) $ECHO_C" >&6
41403 else
41404 if test x$gcc_no_link = xyes; then
41405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41407 { (exit 1); exit 1; }; }
41408 fi
41409 cat >conftest.$ac_ext <<_ACEOF
41410 #line $LINENO "configure"
41411 /* confdefs.h. */
41412 _ACEOF
41413 cat confdefs.h >>conftest.$ac_ext
41414 cat >>conftest.$ac_ext <<_ACEOF
41415 /* end confdefs.h. */
41416 /* System header to define __stub macros and hopefully few prototypes,
41417 which can conflict with char $ac_func (); below.
41418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41419 <limits.h> exists even on freestanding compilers. */
41420 #ifdef __STDC__
41421 # include <limits.h>
41422 #else
41423 # include <assert.h>
41424 #endif
41425 /* Override any gcc2 internal prototype to avoid an error. */
41426 #ifdef __cplusplus
41427 extern "C"
41428 {
41429 #endif
41430 /* We use char because int might match the return type of a gcc2
41431 builtin and then its argument prototype would still apply. */
41432 char $ac_func ();
41433 /* The GNU C library defines this for functions which it implements
41434 to always fail with ENOSYS. Some functions are actually named
41435 something starting with __ and the normal name is an alias. */
41436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41437 choke me
41438 #else
41439 char (*f) () = $ac_func;
41440 #endif
41441 #ifdef __cplusplus
41442 }
41443 #endif
41444
41445 int
41446 main ()
41447 {
41448 return f != $ac_func;
41449 ;
41450 return 0;
41451 }
41452 _ACEOF
41453 rm -f conftest.$ac_objext conftest$ac_exeext
41454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41455 (eval $ac_link) 2>&5
41456 ac_status=$?
41457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41458 (exit $ac_status); } &&
41459 { ac_try='test -s conftest$ac_exeext'
41460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41461 (eval $ac_try) 2>&5
41462 ac_status=$?
41463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464 (exit $ac_status); }; }; then
41465 eval "$as_ac_var=yes"
41466 else
41467 echo "$as_me: failed program was:" >&5
41468 sed 's/^/| /' conftest.$ac_ext >&5
41469
41470 eval "$as_ac_var=no"
41471 fi
41472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41473 fi
41474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41476 if test `eval echo '${'$as_ac_var'}'` = yes; then
41477 cat >>confdefs.h <<_ACEOF
41478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41479 _ACEOF
41480
41481 fi
41482 done
41483
41484 fi
41485 fi
41486
41487
41488
41489
41490 echo "$as_me:$LINENO: checking for _float trig functions" >&5
41491 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
41492 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
41493 echo $ECHO_N "(cached) $ECHO_C" >&6
41494 else
41495
41496
41497
41498 ac_ext=cc
41499 ac_cpp='$CXXCPP $CPPFLAGS'
41500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41503
41504 cat >conftest.$ac_ext <<_ACEOF
41505 #line $LINENO "configure"
41506 /* confdefs.h. */
41507 _ACEOF
41508 cat confdefs.h >>conftest.$ac_ext
41509 cat >>conftest.$ac_ext <<_ACEOF
41510 /* end confdefs.h. */
41511 #include <math.h>
41512 int
41513 main ()
41514 {
41515 `for x in _acosf _asinf _atanf \
41516 _cosf _sinf _tanf \
41517 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
41518 ;
41519 return 0;
41520 }
41521 _ACEOF
41522 rm -f conftest.$ac_objext
41523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41524 (eval $ac_compile) 2>&5
41525 ac_status=$?
41526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41527 (exit $ac_status); } &&
41528 { ac_try='test -s conftest.$ac_objext'
41529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41530 (eval $ac_try) 2>&5
41531 ac_status=$?
41532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41533 (exit $ac_status); }; }; then
41534 glibcxx_cv_func__float_trig_use=yes
41535 else
41536 echo "$as_me: failed program was:" >&5
41537 sed 's/^/| /' conftest.$ac_ext >&5
41538
41539 glibcxx_cv_func__float_trig_use=no
41540 fi
41541 rm -f conftest.$ac_objext conftest.$ac_ext
41542 ac_ext=c
41543 ac_cpp='$CPP $CPPFLAGS'
41544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41547
41548 fi
41549
41550 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
41551 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
41552 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
41553
41554
41555
41556
41557
41558
41559
41560
41561
41562 for ac_func in _acosf _asinf _atanf \
41563 _cosf _sinf _tanf \
41564 _coshf _sinhf _tanhf
41565 do
41566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41567 echo "$as_me:$LINENO: checking for $ac_func" >&5
41568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41569 if eval "test \"\${$as_ac_var+set}\" = set"; then
41570 echo $ECHO_N "(cached) $ECHO_C" >&6
41571 else
41572 if test x$gcc_no_link = xyes; then
41573 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41574 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41575 { (exit 1); exit 1; }; }
41576 fi
41577 cat >conftest.$ac_ext <<_ACEOF
41578 #line $LINENO "configure"
41579 /* confdefs.h. */
41580 _ACEOF
41581 cat confdefs.h >>conftest.$ac_ext
41582 cat >>conftest.$ac_ext <<_ACEOF
41583 /* end confdefs.h. */
41584 /* System header to define __stub macros and hopefully few prototypes,
41585 which can conflict with char $ac_func (); below.
41586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41587 <limits.h> exists even on freestanding compilers. */
41588 #ifdef __STDC__
41589 # include <limits.h>
41590 #else
41591 # include <assert.h>
41592 #endif
41593 /* Override any gcc2 internal prototype to avoid an error. */
41594 #ifdef __cplusplus
41595 extern "C"
41596 {
41597 #endif
41598 /* We use char because int might match the return type of a gcc2
41599 builtin and then its argument prototype would still apply. */
41600 char $ac_func ();
41601 /* The GNU C library defines this for functions which it implements
41602 to always fail with ENOSYS. Some functions are actually named
41603 something starting with __ and the normal name is an alias. */
41604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41605 choke me
41606 #else
41607 char (*f) () = $ac_func;
41608 #endif
41609 #ifdef __cplusplus
41610 }
41611 #endif
41612
41613 int
41614 main ()
41615 {
41616 return f != $ac_func;
41617 ;
41618 return 0;
41619 }
41620 _ACEOF
41621 rm -f conftest.$ac_objext conftest$ac_exeext
41622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41623 (eval $ac_link) 2>&5
41624 ac_status=$?
41625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41626 (exit $ac_status); } &&
41627 { ac_try='test -s conftest$ac_exeext'
41628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41629 (eval $ac_try) 2>&5
41630 ac_status=$?
41631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632 (exit $ac_status); }; }; then
41633 eval "$as_ac_var=yes"
41634 else
41635 echo "$as_me: failed program was:" >&5
41636 sed 's/^/| /' conftest.$ac_ext >&5
41637
41638 eval "$as_ac_var=no"
41639 fi
41640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41641 fi
41642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41644 if test `eval echo '${'$as_ac_var'}'` = yes; then
41645 cat >>confdefs.h <<_ACEOF
41646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41647 _ACEOF
41648
41649 fi
41650 done
41651
41652 fi
41653
41654
41655 echo "$as_me:$LINENO: checking for _float round functions" >&5
41656 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
41657 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
41658 echo $ECHO_N "(cached) $ECHO_C" >&6
41659 else
41660
41661
41662
41663 ac_ext=cc
41664 ac_cpp='$CXXCPP $CPPFLAGS'
41665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41668
41669 cat >conftest.$ac_ext <<_ACEOF
41670 #line $LINENO "configure"
41671 /* confdefs.h. */
41672 _ACEOF
41673 cat confdefs.h >>conftest.$ac_ext
41674 cat >>conftest.$ac_ext <<_ACEOF
41675 /* end confdefs.h. */
41676 #include <math.h>
41677 int
41678 main ()
41679 {
41680 `for x in _ceilf _floorf; do echo "$x (0);"; done`
41681 ;
41682 return 0;
41683 }
41684 _ACEOF
41685 rm -f conftest.$ac_objext
41686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41687 (eval $ac_compile) 2>&5
41688 ac_status=$?
41689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41690 (exit $ac_status); } &&
41691 { ac_try='test -s conftest.$ac_objext'
41692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41693 (eval $ac_try) 2>&5
41694 ac_status=$?
41695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696 (exit $ac_status); }; }; then
41697 glibcxx_cv_func__float_round_use=yes
41698 else
41699 echo "$as_me: failed program was:" >&5
41700 sed 's/^/| /' conftest.$ac_ext >&5
41701
41702 glibcxx_cv_func__float_round_use=no
41703 fi
41704 rm -f conftest.$ac_objext conftest.$ac_ext
41705 ac_ext=c
41706 ac_cpp='$CPP $CPPFLAGS'
41707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41710
41711 fi
41712
41713 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
41714 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
41715 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
41716
41717
41718 for ac_func in _ceilf _floorf
41719 do
41720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41721 echo "$as_me:$LINENO: checking for $ac_func" >&5
41722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41723 if eval "test \"\${$as_ac_var+set}\" = set"; then
41724 echo $ECHO_N "(cached) $ECHO_C" >&6
41725 else
41726 if test x$gcc_no_link = xyes; then
41727 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41728 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41729 { (exit 1); exit 1; }; }
41730 fi
41731 cat >conftest.$ac_ext <<_ACEOF
41732 #line $LINENO "configure"
41733 /* confdefs.h. */
41734 _ACEOF
41735 cat confdefs.h >>conftest.$ac_ext
41736 cat >>conftest.$ac_ext <<_ACEOF
41737 /* end confdefs.h. */
41738 /* System header to define __stub macros and hopefully few prototypes,
41739 which can conflict with char $ac_func (); below.
41740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41741 <limits.h> exists even on freestanding compilers. */
41742 #ifdef __STDC__
41743 # include <limits.h>
41744 #else
41745 # include <assert.h>
41746 #endif
41747 /* Override any gcc2 internal prototype to avoid an error. */
41748 #ifdef __cplusplus
41749 extern "C"
41750 {
41751 #endif
41752 /* We use char because int might match the return type of a gcc2
41753 builtin and then its argument prototype would still apply. */
41754 char $ac_func ();
41755 /* The GNU C library defines this for functions which it implements
41756 to always fail with ENOSYS. Some functions are actually named
41757 something starting with __ and the normal name is an alias. */
41758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41759 choke me
41760 #else
41761 char (*f) () = $ac_func;
41762 #endif
41763 #ifdef __cplusplus
41764 }
41765 #endif
41766
41767 int
41768 main ()
41769 {
41770 return f != $ac_func;
41771 ;
41772 return 0;
41773 }
41774 _ACEOF
41775 rm -f conftest.$ac_objext conftest$ac_exeext
41776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41777 (eval $ac_link) 2>&5
41778 ac_status=$?
41779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41780 (exit $ac_status); } &&
41781 { ac_try='test -s conftest$ac_exeext'
41782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41783 (eval $ac_try) 2>&5
41784 ac_status=$?
41785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41786 (exit $ac_status); }; }; then
41787 eval "$as_ac_var=yes"
41788 else
41789 echo "$as_me: failed program was:" >&5
41790 sed 's/^/| /' conftest.$ac_ext >&5
41791
41792 eval "$as_ac_var=no"
41793 fi
41794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41795 fi
41796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41798 if test `eval echo '${'$as_ac_var'}'` = yes; then
41799 cat >>confdefs.h <<_ACEOF
41800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41801 _ACEOF
41802
41803 fi
41804 done
41805
41806 fi
41807
41808
41809
41810 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
41811 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
41812 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
41813 echo $ECHO_N "(cached) $ECHO_C" >&6
41814 else
41815
41816
41817
41818 ac_ext=cc
41819 ac_cpp='$CXXCPP $CPPFLAGS'
41820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41823
41824 cat >conftest.$ac_ext <<_ACEOF
41825 #line $LINENO "configure"
41826 /* confdefs.h. */
41827 _ACEOF
41828 cat confdefs.h >>conftest.$ac_ext
41829 cat >>conftest.$ac_ext <<_ACEOF
41830 /* end confdefs.h. */
41831 #include <math.h>
41832 int
41833 main ()
41834 {
41835 `for x in _acosl _asinl _atanl \
41836 _cosl _sinl _tanl \
41837 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
41838 ;
41839 return 0;
41840 }
41841 _ACEOF
41842 rm -f conftest.$ac_objext
41843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41844 (eval $ac_compile) 2>&5
41845 ac_status=$?
41846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847 (exit $ac_status); } &&
41848 { ac_try='test -s conftest.$ac_objext'
41849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41850 (eval $ac_try) 2>&5
41851 ac_status=$?
41852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41853 (exit $ac_status); }; }; then
41854 glibcxx_cv_func__long_double_trig_use=yes
41855 else
41856 echo "$as_me: failed program was:" >&5
41857 sed 's/^/| /' conftest.$ac_ext >&5
41858
41859 glibcxx_cv_func__long_double_trig_use=no
41860 fi
41861 rm -f conftest.$ac_objext conftest.$ac_ext
41862 ac_ext=c
41863 ac_cpp='$CPP $CPPFLAGS'
41864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41867
41868 fi
41869
41870 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
41871 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
41872 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
41873
41874
41875
41876
41877
41878
41879
41880
41881
41882 for ac_func in _acosl _asinl _atanl \
41883 _cosl _sinl _tanl \
41884 _coshl _sinhl _tanhl
41885 do
41886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41887 echo "$as_me:$LINENO: checking for $ac_func" >&5
41888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41889 if eval "test \"\${$as_ac_var+set}\" = set"; then
41890 echo $ECHO_N "(cached) $ECHO_C" >&6
41891 else
41892 if test x$gcc_no_link = xyes; then
41893 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41895 { (exit 1); exit 1; }; }
41896 fi
41897 cat >conftest.$ac_ext <<_ACEOF
41898 #line $LINENO "configure"
41899 /* confdefs.h. */
41900 _ACEOF
41901 cat confdefs.h >>conftest.$ac_ext
41902 cat >>conftest.$ac_ext <<_ACEOF
41903 /* end confdefs.h. */
41904 /* System header to define __stub macros and hopefully few prototypes,
41905 which can conflict with char $ac_func (); below.
41906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41907 <limits.h> exists even on freestanding compilers. */
41908 #ifdef __STDC__
41909 # include <limits.h>
41910 #else
41911 # include <assert.h>
41912 #endif
41913 /* Override any gcc2 internal prototype to avoid an error. */
41914 #ifdef __cplusplus
41915 extern "C"
41916 {
41917 #endif
41918 /* We use char because int might match the return type of a gcc2
41919 builtin and then its argument prototype would still apply. */
41920 char $ac_func ();
41921 /* The GNU C library defines this for functions which it implements
41922 to always fail with ENOSYS. Some functions are actually named
41923 something starting with __ and the normal name is an alias. */
41924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41925 choke me
41926 #else
41927 char (*f) () = $ac_func;
41928 #endif
41929 #ifdef __cplusplus
41930 }
41931 #endif
41932
41933 int
41934 main ()
41935 {
41936 return f != $ac_func;
41937 ;
41938 return 0;
41939 }
41940 _ACEOF
41941 rm -f conftest.$ac_objext conftest$ac_exeext
41942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41943 (eval $ac_link) 2>&5
41944 ac_status=$?
41945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946 (exit $ac_status); } &&
41947 { ac_try='test -s conftest$ac_exeext'
41948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41949 (eval $ac_try) 2>&5
41950 ac_status=$?
41951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952 (exit $ac_status); }; }; then
41953 eval "$as_ac_var=yes"
41954 else
41955 echo "$as_me: failed program was:" >&5
41956 sed 's/^/| /' conftest.$ac_ext >&5
41957
41958 eval "$as_ac_var=no"
41959 fi
41960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41961 fi
41962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41964 if test `eval echo '${'$as_ac_var'}'` = yes; then
41965 cat >>confdefs.h <<_ACEOF
41966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41967 _ACEOF
41968
41969 fi
41970 done
41971
41972 fi
41973
41974
41975 echo "$as_me:$LINENO: checking for _long double round functions" >&5
41976 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
41977 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
41978 echo $ECHO_N "(cached) $ECHO_C" >&6
41979 else
41980
41981
41982
41983 ac_ext=cc
41984 ac_cpp='$CXXCPP $CPPFLAGS'
41985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41988
41989 cat >conftest.$ac_ext <<_ACEOF
41990 #line $LINENO "configure"
41991 /* confdefs.h. */
41992 _ACEOF
41993 cat confdefs.h >>conftest.$ac_ext
41994 cat >>conftest.$ac_ext <<_ACEOF
41995 /* end confdefs.h. */
41996 #include <math.h>
41997 int
41998 main ()
41999 {
42000 `for x in _ceill _floorl; do echo "$x (0);"; done`
42001 ;
42002 return 0;
42003 }
42004 _ACEOF
42005 rm -f conftest.$ac_objext
42006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42007 (eval $ac_compile) 2>&5
42008 ac_status=$?
42009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); } &&
42011 { ac_try='test -s conftest.$ac_objext'
42012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42013 (eval $ac_try) 2>&5
42014 ac_status=$?
42015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016 (exit $ac_status); }; }; then
42017 glibcxx_cv_func__long_double_round_use=yes
42018 else
42019 echo "$as_me: failed program was:" >&5
42020 sed 's/^/| /' conftest.$ac_ext >&5
42021
42022 glibcxx_cv_func__long_double_round_use=no
42023 fi
42024 rm -f conftest.$ac_objext conftest.$ac_ext
42025 ac_ext=c
42026 ac_cpp='$CPP $CPPFLAGS'
42027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42030
42031 fi
42032
42033 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
42034 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
42035 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
42036
42037
42038 for ac_func in _ceill _floorl
42039 do
42040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42041 echo "$as_me:$LINENO: checking for $ac_func" >&5
42042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42043 if eval "test \"\${$as_ac_var+set}\" = set"; then
42044 echo $ECHO_N "(cached) $ECHO_C" >&6
42045 else
42046 if test x$gcc_no_link = xyes; then
42047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42049 { (exit 1); exit 1; }; }
42050 fi
42051 cat >conftest.$ac_ext <<_ACEOF
42052 #line $LINENO "configure"
42053 /* confdefs.h. */
42054 _ACEOF
42055 cat confdefs.h >>conftest.$ac_ext
42056 cat >>conftest.$ac_ext <<_ACEOF
42057 /* end confdefs.h. */
42058 /* System header to define __stub macros and hopefully few prototypes,
42059 which can conflict with char $ac_func (); below.
42060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42061 <limits.h> exists even on freestanding compilers. */
42062 #ifdef __STDC__
42063 # include <limits.h>
42064 #else
42065 # include <assert.h>
42066 #endif
42067 /* Override any gcc2 internal prototype to avoid an error. */
42068 #ifdef __cplusplus
42069 extern "C"
42070 {
42071 #endif
42072 /* We use char because int might match the return type of a gcc2
42073 builtin and then its argument prototype would still apply. */
42074 char $ac_func ();
42075 /* The GNU C library defines this for functions which it implements
42076 to always fail with ENOSYS. Some functions are actually named
42077 something starting with __ and the normal name is an alias. */
42078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42079 choke me
42080 #else
42081 char (*f) () = $ac_func;
42082 #endif
42083 #ifdef __cplusplus
42084 }
42085 #endif
42086
42087 int
42088 main ()
42089 {
42090 return f != $ac_func;
42091 ;
42092 return 0;
42093 }
42094 _ACEOF
42095 rm -f conftest.$ac_objext conftest$ac_exeext
42096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42097 (eval $ac_link) 2>&5
42098 ac_status=$?
42099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42100 (exit $ac_status); } &&
42101 { ac_try='test -s conftest$ac_exeext'
42102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42103 (eval $ac_try) 2>&5
42104 ac_status=$?
42105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42106 (exit $ac_status); }; }; then
42107 eval "$as_ac_var=yes"
42108 else
42109 echo "$as_me: failed program was:" >&5
42110 sed 's/^/| /' conftest.$ac_ext >&5
42111
42112 eval "$as_ac_var=no"
42113 fi
42114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42115 fi
42116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42118 if test `eval echo '${'$as_ac_var'}'` = yes; then
42119 cat >>confdefs.h <<_ACEOF
42120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42121 _ACEOF
42122
42123 fi
42124 done
42125
42126 fi
42127
42128
42129 LIBS="$ac_save_LIBS"
42130 CXXFLAGS="$ac_save_CXXFLAGS"
42131
42132
42133
42134 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
42135 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
42136 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
42137 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
42138 echo $ECHO_N "(cached) $ECHO_C" >&6
42139 else
42140
42141
42142
42143 ac_ext=cc
42144 ac_cpp='$CXXCPP $CPPFLAGS'
42145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42148
42149 cat >conftest.$ac_ext <<_ACEOF
42150 #line $LINENO "configure"
42151 /* confdefs.h. */
42152 _ACEOF
42153 cat confdefs.h >>conftest.$ac_ext
42154 cat >>conftest.$ac_ext <<_ACEOF
42155 /* end confdefs.h. */
42156 #include <math.h>
42157 int
42158 main ()
42159 {
42160 __builtin_abs(0);
42161 ;
42162 return 0;
42163 }
42164 _ACEOF
42165 rm -f conftest.$ac_objext
42166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42167 (eval $ac_compile) 2>&5
42168 ac_status=$?
42169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42170 (exit $ac_status); } &&
42171 { ac_try='test -s conftest.$ac_objext'
42172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42173 (eval $ac_try) 2>&5
42174 ac_status=$?
42175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42176 (exit $ac_status); }; }; then
42177 glibcxx_cv_func___builtin_abs_use=yes
42178 else
42179 echo "$as_me: failed program was:" >&5
42180 sed 's/^/| /' conftest.$ac_ext >&5
42181
42182 glibcxx_cv_func___builtin_abs_use=no
42183 fi
42184 rm -f conftest.$ac_objext conftest.$ac_ext
42185 ac_ext=c
42186 ac_cpp='$CPP $CPPFLAGS'
42187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42190
42191
42192 fi
42193
42194 fi
42195 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
42196 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
42197 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
42198 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
42199 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
42200 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
42201 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
42202 echo $ECHO_N "(cached) $ECHO_C" >&6
42203 else
42204
42205 if test x$gcc_no_link = xyes; then
42206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42208 { (exit 1); exit 1; }; }
42209 fi
42210 cat >conftest.$ac_ext <<_ACEOF
42211 #line $LINENO "configure"
42212 /* confdefs.h. */
42213 _ACEOF
42214 cat confdefs.h >>conftest.$ac_ext
42215 cat >>conftest.$ac_ext <<_ACEOF
42216 /* end confdefs.h. */
42217 #include <math.h>
42218 int
42219 main ()
42220 {
42221 __builtin_abs(0);
42222 ;
42223 return 0;
42224 }
42225 _ACEOF
42226 rm -f conftest.$ac_objext conftest$ac_exeext
42227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42228 (eval $ac_link) 2>&5
42229 ac_status=$?
42230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42231 (exit $ac_status); } &&
42232 { ac_try='test -s conftest$ac_exeext'
42233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42234 (eval $ac_try) 2>&5
42235 ac_status=$?
42236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42237 (exit $ac_status); }; }; then
42238 glibcxx_cv_func___builtin_abs_link=yes
42239 else
42240 echo "$as_me: failed program was:" >&5
42241 sed 's/^/| /' conftest.$ac_ext >&5
42242
42243 glibcxx_cv_func___builtin_abs_link=no
42244 fi
42245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42246
42247 fi
42248
42249 fi
42250 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
42251 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
42252 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
42253 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42254 cat >>confdefs.h <<_ACEOF
42255 #define ${ac_tr_func} 1
42256 _ACEOF
42257
42258 fi
42259 fi
42260
42261
42262 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
42263 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
42264 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
42265 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
42266 echo $ECHO_N "(cached) $ECHO_C" >&6
42267 else
42268
42269
42270
42271 ac_ext=cc
42272 ac_cpp='$CXXCPP $CPPFLAGS'
42273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42276
42277 cat >conftest.$ac_ext <<_ACEOF
42278 #line $LINENO "configure"
42279 /* confdefs.h. */
42280 _ACEOF
42281 cat confdefs.h >>conftest.$ac_ext
42282 cat >>conftest.$ac_ext <<_ACEOF
42283 /* end confdefs.h. */
42284 #include <math.h>
42285 int
42286 main ()
42287 {
42288 __builtin_fabsf(0);
42289 ;
42290 return 0;
42291 }
42292 _ACEOF
42293 rm -f conftest.$ac_objext
42294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42295 (eval $ac_compile) 2>&5
42296 ac_status=$?
42297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42298 (exit $ac_status); } &&
42299 { ac_try='test -s conftest.$ac_objext'
42300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42301 (eval $ac_try) 2>&5
42302 ac_status=$?
42303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42304 (exit $ac_status); }; }; then
42305 glibcxx_cv_func___builtin_fabsf_use=yes
42306 else
42307 echo "$as_me: failed program was:" >&5
42308 sed 's/^/| /' conftest.$ac_ext >&5
42309
42310 glibcxx_cv_func___builtin_fabsf_use=no
42311 fi
42312 rm -f conftest.$ac_objext conftest.$ac_ext
42313 ac_ext=c
42314 ac_cpp='$CPP $CPPFLAGS'
42315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42318
42319
42320 fi
42321
42322 fi
42323 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
42324 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
42325 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
42326 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
42327 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
42328 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
42329 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
42330 echo $ECHO_N "(cached) $ECHO_C" >&6
42331 else
42332
42333 if test x$gcc_no_link = xyes; then
42334 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42336 { (exit 1); exit 1; }; }
42337 fi
42338 cat >conftest.$ac_ext <<_ACEOF
42339 #line $LINENO "configure"
42340 /* confdefs.h. */
42341 _ACEOF
42342 cat confdefs.h >>conftest.$ac_ext
42343 cat >>conftest.$ac_ext <<_ACEOF
42344 /* end confdefs.h. */
42345 #include <math.h>
42346 int
42347 main ()
42348 {
42349 __builtin_fabsf(0);
42350 ;
42351 return 0;
42352 }
42353 _ACEOF
42354 rm -f conftest.$ac_objext conftest$ac_exeext
42355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42356 (eval $ac_link) 2>&5
42357 ac_status=$?
42358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42359 (exit $ac_status); } &&
42360 { ac_try='test -s conftest$ac_exeext'
42361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42362 (eval $ac_try) 2>&5
42363 ac_status=$?
42364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42365 (exit $ac_status); }; }; then
42366 glibcxx_cv_func___builtin_fabsf_link=yes
42367 else
42368 echo "$as_me: failed program was:" >&5
42369 sed 's/^/| /' conftest.$ac_ext >&5
42370
42371 glibcxx_cv_func___builtin_fabsf_link=no
42372 fi
42373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42374
42375 fi
42376
42377 fi
42378 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
42379 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
42380 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
42381 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42382 cat >>confdefs.h <<_ACEOF
42383 #define ${ac_tr_func} 1
42384 _ACEOF
42385
42386 fi
42387 fi
42388
42389
42390 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
42391 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
42392 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
42393 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
42394 echo $ECHO_N "(cached) $ECHO_C" >&6
42395 else
42396
42397
42398
42399 ac_ext=cc
42400 ac_cpp='$CXXCPP $CPPFLAGS'
42401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42404
42405 cat >conftest.$ac_ext <<_ACEOF
42406 #line $LINENO "configure"
42407 /* confdefs.h. */
42408 _ACEOF
42409 cat confdefs.h >>conftest.$ac_ext
42410 cat >>conftest.$ac_ext <<_ACEOF
42411 /* end confdefs.h. */
42412 #include <math.h>
42413 int
42414 main ()
42415 {
42416 __builtin_fabs(0);
42417 ;
42418 return 0;
42419 }
42420 _ACEOF
42421 rm -f conftest.$ac_objext
42422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42423 (eval $ac_compile) 2>&5
42424 ac_status=$?
42425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42426 (exit $ac_status); } &&
42427 { ac_try='test -s conftest.$ac_objext'
42428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42429 (eval $ac_try) 2>&5
42430 ac_status=$?
42431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42432 (exit $ac_status); }; }; then
42433 glibcxx_cv_func___builtin_fabs_use=yes
42434 else
42435 echo "$as_me: failed program was:" >&5
42436 sed 's/^/| /' conftest.$ac_ext >&5
42437
42438 glibcxx_cv_func___builtin_fabs_use=no
42439 fi
42440 rm -f conftest.$ac_objext conftest.$ac_ext
42441 ac_ext=c
42442 ac_cpp='$CPP $CPPFLAGS'
42443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42446
42447
42448 fi
42449
42450 fi
42451 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
42452 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
42453 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
42454 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
42455 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
42456 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
42457 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
42458 echo $ECHO_N "(cached) $ECHO_C" >&6
42459 else
42460
42461 if test x$gcc_no_link = xyes; then
42462 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42463 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42464 { (exit 1); exit 1; }; }
42465 fi
42466 cat >conftest.$ac_ext <<_ACEOF
42467 #line $LINENO "configure"
42468 /* confdefs.h. */
42469 _ACEOF
42470 cat confdefs.h >>conftest.$ac_ext
42471 cat >>conftest.$ac_ext <<_ACEOF
42472 /* end confdefs.h. */
42473 #include <math.h>
42474 int
42475 main ()
42476 {
42477 __builtin_fabs(0);
42478 ;
42479 return 0;
42480 }
42481 _ACEOF
42482 rm -f conftest.$ac_objext conftest$ac_exeext
42483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42484 (eval $ac_link) 2>&5
42485 ac_status=$?
42486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42487 (exit $ac_status); } &&
42488 { ac_try='test -s conftest$ac_exeext'
42489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42490 (eval $ac_try) 2>&5
42491 ac_status=$?
42492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42493 (exit $ac_status); }; }; then
42494 glibcxx_cv_func___builtin_fabs_link=yes
42495 else
42496 echo "$as_me: failed program was:" >&5
42497 sed 's/^/| /' conftest.$ac_ext >&5
42498
42499 glibcxx_cv_func___builtin_fabs_link=no
42500 fi
42501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42502
42503 fi
42504
42505 fi
42506 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
42507 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
42508 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
42509 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42510 cat >>confdefs.h <<_ACEOF
42511 #define ${ac_tr_func} 1
42512 _ACEOF
42513
42514 fi
42515 fi
42516
42517
42518 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
42519 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
42520 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
42521 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
42522 echo $ECHO_N "(cached) $ECHO_C" >&6
42523 else
42524
42525
42526
42527 ac_ext=cc
42528 ac_cpp='$CXXCPP $CPPFLAGS'
42529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42532
42533 cat >conftest.$ac_ext <<_ACEOF
42534 #line $LINENO "configure"
42535 /* confdefs.h. */
42536 _ACEOF
42537 cat confdefs.h >>conftest.$ac_ext
42538 cat >>conftest.$ac_ext <<_ACEOF
42539 /* end confdefs.h. */
42540 #include <math.h>
42541 int
42542 main ()
42543 {
42544 __builtin_fabsl(0);
42545 ;
42546 return 0;
42547 }
42548 _ACEOF
42549 rm -f conftest.$ac_objext
42550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42551 (eval $ac_compile) 2>&5
42552 ac_status=$?
42553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42554 (exit $ac_status); } &&
42555 { ac_try='test -s conftest.$ac_objext'
42556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42557 (eval $ac_try) 2>&5
42558 ac_status=$?
42559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); }; }; then
42561 glibcxx_cv_func___builtin_fabsl_use=yes
42562 else
42563 echo "$as_me: failed program was:" >&5
42564 sed 's/^/| /' conftest.$ac_ext >&5
42565
42566 glibcxx_cv_func___builtin_fabsl_use=no
42567 fi
42568 rm -f conftest.$ac_objext conftest.$ac_ext
42569 ac_ext=c
42570 ac_cpp='$CPP $CPPFLAGS'
42571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42574
42575
42576 fi
42577
42578 fi
42579 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
42580 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
42581 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
42582 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
42583 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
42584 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
42585 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
42586 echo $ECHO_N "(cached) $ECHO_C" >&6
42587 else
42588
42589 if test x$gcc_no_link = xyes; then
42590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42592 { (exit 1); exit 1; }; }
42593 fi
42594 cat >conftest.$ac_ext <<_ACEOF
42595 #line $LINENO "configure"
42596 /* confdefs.h. */
42597 _ACEOF
42598 cat confdefs.h >>conftest.$ac_ext
42599 cat >>conftest.$ac_ext <<_ACEOF
42600 /* end confdefs.h. */
42601 #include <math.h>
42602 int
42603 main ()
42604 {
42605 __builtin_fabsl(0);
42606 ;
42607 return 0;
42608 }
42609 _ACEOF
42610 rm -f conftest.$ac_objext conftest$ac_exeext
42611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42612 (eval $ac_link) 2>&5
42613 ac_status=$?
42614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42615 (exit $ac_status); } &&
42616 { ac_try='test -s conftest$ac_exeext'
42617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42618 (eval $ac_try) 2>&5
42619 ac_status=$?
42620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42621 (exit $ac_status); }; }; then
42622 glibcxx_cv_func___builtin_fabsl_link=yes
42623 else
42624 echo "$as_me: failed program was:" >&5
42625 sed 's/^/| /' conftest.$ac_ext >&5
42626
42627 glibcxx_cv_func___builtin_fabsl_link=no
42628 fi
42629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42630
42631 fi
42632
42633 fi
42634 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
42635 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
42636 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
42637 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42638 cat >>confdefs.h <<_ACEOF
42639 #define ${ac_tr_func} 1
42640 _ACEOF
42641
42642 fi
42643 fi
42644
42645
42646 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
42647 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
42648 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
42649 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
42650 echo $ECHO_N "(cached) $ECHO_C" >&6
42651 else
42652
42653
42654
42655 ac_ext=cc
42656 ac_cpp='$CXXCPP $CPPFLAGS'
42657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42660
42661 cat >conftest.$ac_ext <<_ACEOF
42662 #line $LINENO "configure"
42663 /* confdefs.h. */
42664 _ACEOF
42665 cat confdefs.h >>conftest.$ac_ext
42666 cat >>conftest.$ac_ext <<_ACEOF
42667 /* end confdefs.h. */
42668 #include <math.h>
42669 int
42670 main ()
42671 {
42672 __builtin_labs(0);
42673 ;
42674 return 0;
42675 }
42676 _ACEOF
42677 rm -f conftest.$ac_objext
42678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42679 (eval $ac_compile) 2>&5
42680 ac_status=$?
42681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42682 (exit $ac_status); } &&
42683 { ac_try='test -s conftest.$ac_objext'
42684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42685 (eval $ac_try) 2>&5
42686 ac_status=$?
42687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42688 (exit $ac_status); }; }; then
42689 glibcxx_cv_func___builtin_labs_use=yes
42690 else
42691 echo "$as_me: failed program was:" >&5
42692 sed 's/^/| /' conftest.$ac_ext >&5
42693
42694 glibcxx_cv_func___builtin_labs_use=no
42695 fi
42696 rm -f conftest.$ac_objext conftest.$ac_ext
42697 ac_ext=c
42698 ac_cpp='$CPP $CPPFLAGS'
42699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42702
42703
42704 fi
42705
42706 fi
42707 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
42708 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
42709 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
42710 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
42711 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
42712 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
42713 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
42714 echo $ECHO_N "(cached) $ECHO_C" >&6
42715 else
42716
42717 if test x$gcc_no_link = xyes; then
42718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42720 { (exit 1); exit 1; }; }
42721 fi
42722 cat >conftest.$ac_ext <<_ACEOF
42723 #line $LINENO "configure"
42724 /* confdefs.h. */
42725 _ACEOF
42726 cat confdefs.h >>conftest.$ac_ext
42727 cat >>conftest.$ac_ext <<_ACEOF
42728 /* end confdefs.h. */
42729 #include <math.h>
42730 int
42731 main ()
42732 {
42733 __builtin_labs(0);
42734 ;
42735 return 0;
42736 }
42737 _ACEOF
42738 rm -f conftest.$ac_objext conftest$ac_exeext
42739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42740 (eval $ac_link) 2>&5
42741 ac_status=$?
42742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42743 (exit $ac_status); } &&
42744 { ac_try='test -s conftest$ac_exeext'
42745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42746 (eval $ac_try) 2>&5
42747 ac_status=$?
42748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42749 (exit $ac_status); }; }; then
42750 glibcxx_cv_func___builtin_labs_link=yes
42751 else
42752 echo "$as_me: failed program was:" >&5
42753 sed 's/^/| /' conftest.$ac_ext >&5
42754
42755 glibcxx_cv_func___builtin_labs_link=no
42756 fi
42757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42758
42759 fi
42760
42761 fi
42762 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
42763 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
42764 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
42765 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42766 cat >>confdefs.h <<_ACEOF
42767 #define ${ac_tr_func} 1
42768 _ACEOF
42769
42770 fi
42771 fi
42772
42773
42774
42775 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
42776 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
42777 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
42778 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
42779 echo $ECHO_N "(cached) $ECHO_C" >&6
42780 else
42781
42782
42783
42784 ac_ext=cc
42785 ac_cpp='$CXXCPP $CPPFLAGS'
42786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42789
42790 cat >conftest.$ac_ext <<_ACEOF
42791 #line $LINENO "configure"
42792 /* confdefs.h. */
42793 _ACEOF
42794 cat confdefs.h >>conftest.$ac_ext
42795 cat >>conftest.$ac_ext <<_ACEOF
42796 /* end confdefs.h. */
42797 #include <math.h>
42798 int
42799 main ()
42800 {
42801 __builtin_sqrtf(0);
42802 ;
42803 return 0;
42804 }
42805 _ACEOF
42806 rm -f conftest.$ac_objext
42807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42808 (eval $ac_compile) 2>&5
42809 ac_status=$?
42810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42811 (exit $ac_status); } &&
42812 { ac_try='test -s conftest.$ac_objext'
42813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42814 (eval $ac_try) 2>&5
42815 ac_status=$?
42816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42817 (exit $ac_status); }; }; then
42818 glibcxx_cv_func___builtin_sqrtf_use=yes
42819 else
42820 echo "$as_me: failed program was:" >&5
42821 sed 's/^/| /' conftest.$ac_ext >&5
42822
42823 glibcxx_cv_func___builtin_sqrtf_use=no
42824 fi
42825 rm -f conftest.$ac_objext conftest.$ac_ext
42826 ac_ext=c
42827 ac_cpp='$CPP $CPPFLAGS'
42828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42831
42832
42833 fi
42834
42835 fi
42836 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
42837 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
42838 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
42839 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
42840 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
42841 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
42842 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
42843 echo $ECHO_N "(cached) $ECHO_C" >&6
42844 else
42845
42846 if test x$gcc_no_link = xyes; then
42847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42849 { (exit 1); exit 1; }; }
42850 fi
42851 cat >conftest.$ac_ext <<_ACEOF
42852 #line $LINENO "configure"
42853 /* confdefs.h. */
42854 _ACEOF
42855 cat confdefs.h >>conftest.$ac_ext
42856 cat >>conftest.$ac_ext <<_ACEOF
42857 /* end confdefs.h. */
42858 #include <math.h>
42859 int
42860 main ()
42861 {
42862 __builtin_sqrtf(0);
42863 ;
42864 return 0;
42865 }
42866 _ACEOF
42867 rm -f conftest.$ac_objext conftest$ac_exeext
42868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42869 (eval $ac_link) 2>&5
42870 ac_status=$?
42871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42872 (exit $ac_status); } &&
42873 { ac_try='test -s conftest$ac_exeext'
42874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42875 (eval $ac_try) 2>&5
42876 ac_status=$?
42877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42878 (exit $ac_status); }; }; then
42879 glibcxx_cv_func___builtin_sqrtf_link=yes
42880 else
42881 echo "$as_me: failed program was:" >&5
42882 sed 's/^/| /' conftest.$ac_ext >&5
42883
42884 glibcxx_cv_func___builtin_sqrtf_link=no
42885 fi
42886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42887
42888 fi
42889
42890 fi
42891 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
42892 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
42893 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
42894 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42895 cat >>confdefs.h <<_ACEOF
42896 #define ${ac_tr_func} 1
42897 _ACEOF
42898
42899 fi
42900 fi
42901
42902
42903 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
42904 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
42905 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
42906 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
42907 echo $ECHO_N "(cached) $ECHO_C" >&6
42908 else
42909
42910
42911
42912 ac_ext=cc
42913 ac_cpp='$CXXCPP $CPPFLAGS'
42914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42917
42918 cat >conftest.$ac_ext <<_ACEOF
42919 #line $LINENO "configure"
42920 /* confdefs.h. */
42921 _ACEOF
42922 cat confdefs.h >>conftest.$ac_ext
42923 cat >>conftest.$ac_ext <<_ACEOF
42924 /* end confdefs.h. */
42925 #include <math.h>
42926 int
42927 main ()
42928 {
42929 __builtin_sqrt(0);
42930 ;
42931 return 0;
42932 }
42933 _ACEOF
42934 rm -f conftest.$ac_objext
42935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42936 (eval $ac_compile) 2>&5
42937 ac_status=$?
42938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42939 (exit $ac_status); } &&
42940 { ac_try='test -s conftest.$ac_objext'
42941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42942 (eval $ac_try) 2>&5
42943 ac_status=$?
42944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42945 (exit $ac_status); }; }; then
42946 glibcxx_cv_func___builtin_sqrt_use=yes
42947 else
42948 echo "$as_me: failed program was:" >&5
42949 sed 's/^/| /' conftest.$ac_ext >&5
42950
42951 glibcxx_cv_func___builtin_sqrt_use=no
42952 fi
42953 rm -f conftest.$ac_objext conftest.$ac_ext
42954 ac_ext=c
42955 ac_cpp='$CPP $CPPFLAGS'
42956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42959
42960
42961 fi
42962
42963 fi
42964 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
42965 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
42966 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
42967 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
42968 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
42969 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
42970 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
42971 echo $ECHO_N "(cached) $ECHO_C" >&6
42972 else
42973
42974 if test x$gcc_no_link = xyes; then
42975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42977 { (exit 1); exit 1; }; }
42978 fi
42979 cat >conftest.$ac_ext <<_ACEOF
42980 #line $LINENO "configure"
42981 /* confdefs.h. */
42982 _ACEOF
42983 cat confdefs.h >>conftest.$ac_ext
42984 cat >>conftest.$ac_ext <<_ACEOF
42985 /* end confdefs.h. */
42986 #include <math.h>
42987 int
42988 main ()
42989 {
42990 __builtin_sqrt(0);
42991 ;
42992 return 0;
42993 }
42994 _ACEOF
42995 rm -f conftest.$ac_objext conftest$ac_exeext
42996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42997 (eval $ac_link) 2>&5
42998 ac_status=$?
42999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43000 (exit $ac_status); } &&
43001 { ac_try='test -s conftest$ac_exeext'
43002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43003 (eval $ac_try) 2>&5
43004 ac_status=$?
43005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43006 (exit $ac_status); }; }; then
43007 glibcxx_cv_func___builtin_sqrt_link=yes
43008 else
43009 echo "$as_me: failed program was:" >&5
43010 sed 's/^/| /' conftest.$ac_ext >&5
43011
43012 glibcxx_cv_func___builtin_sqrt_link=no
43013 fi
43014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43015
43016 fi
43017
43018 fi
43019 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
43020 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
43021 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
43022 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43023 cat >>confdefs.h <<_ACEOF
43024 #define ${ac_tr_func} 1
43025 _ACEOF
43026
43027 fi
43028 fi
43029
43030
43031 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
43032 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
43033 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
43034 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
43035 echo $ECHO_N "(cached) $ECHO_C" >&6
43036 else
43037
43038
43039
43040 ac_ext=cc
43041 ac_cpp='$CXXCPP $CPPFLAGS'
43042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43045
43046 cat >conftest.$ac_ext <<_ACEOF
43047 #line $LINENO "configure"
43048 /* confdefs.h. */
43049 _ACEOF
43050 cat confdefs.h >>conftest.$ac_ext
43051 cat >>conftest.$ac_ext <<_ACEOF
43052 /* end confdefs.h. */
43053 #include <math.h>
43054 int
43055 main ()
43056 {
43057 __builtin_sqrtl(0);
43058 ;
43059 return 0;
43060 }
43061 _ACEOF
43062 rm -f conftest.$ac_objext
43063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43064 (eval $ac_compile) 2>&5
43065 ac_status=$?
43066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43067 (exit $ac_status); } &&
43068 { ac_try='test -s conftest.$ac_objext'
43069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43070 (eval $ac_try) 2>&5
43071 ac_status=$?
43072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43073 (exit $ac_status); }; }; then
43074 glibcxx_cv_func___builtin_sqrtl_use=yes
43075 else
43076 echo "$as_me: failed program was:" >&5
43077 sed 's/^/| /' conftest.$ac_ext >&5
43078
43079 glibcxx_cv_func___builtin_sqrtl_use=no
43080 fi
43081 rm -f conftest.$ac_objext conftest.$ac_ext
43082 ac_ext=c
43083 ac_cpp='$CPP $CPPFLAGS'
43084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43087
43088
43089 fi
43090
43091 fi
43092 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
43093 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
43094 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
43095 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
43096 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
43097 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
43098 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
43099 echo $ECHO_N "(cached) $ECHO_C" >&6
43100 else
43101
43102 if test x$gcc_no_link = xyes; then
43103 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43105 { (exit 1); exit 1; }; }
43106 fi
43107 cat >conftest.$ac_ext <<_ACEOF
43108 #line $LINENO "configure"
43109 /* confdefs.h. */
43110 _ACEOF
43111 cat confdefs.h >>conftest.$ac_ext
43112 cat >>conftest.$ac_ext <<_ACEOF
43113 /* end confdefs.h. */
43114 #include <math.h>
43115 int
43116 main ()
43117 {
43118 __builtin_sqrtl(0);
43119 ;
43120 return 0;
43121 }
43122 _ACEOF
43123 rm -f conftest.$ac_objext conftest$ac_exeext
43124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43125 (eval $ac_link) 2>&5
43126 ac_status=$?
43127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43128 (exit $ac_status); } &&
43129 { ac_try='test -s conftest$ac_exeext'
43130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43131 (eval $ac_try) 2>&5
43132 ac_status=$?
43133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43134 (exit $ac_status); }; }; then
43135 glibcxx_cv_func___builtin_sqrtl_link=yes
43136 else
43137 echo "$as_me: failed program was:" >&5
43138 sed 's/^/| /' conftest.$ac_ext >&5
43139
43140 glibcxx_cv_func___builtin_sqrtl_link=no
43141 fi
43142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43143
43144 fi
43145
43146 fi
43147 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
43148 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
43149 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
43150 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43151 cat >>confdefs.h <<_ACEOF
43152 #define ${ac_tr_func} 1
43153 _ACEOF
43154
43155 fi
43156 fi
43157
43158
43159
43160 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
43161 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
43162 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
43163 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
43164 echo $ECHO_N "(cached) $ECHO_C" >&6
43165 else
43166
43167
43168
43169 ac_ext=cc
43170 ac_cpp='$CXXCPP $CPPFLAGS'
43171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43174
43175 cat >conftest.$ac_ext <<_ACEOF
43176 #line $LINENO "configure"
43177 /* confdefs.h. */
43178 _ACEOF
43179 cat confdefs.h >>conftest.$ac_ext
43180 cat >>conftest.$ac_ext <<_ACEOF
43181 /* end confdefs.h. */
43182 #include <math.h>
43183 int
43184 main ()
43185 {
43186 __builtin_sinf(0);
43187 ;
43188 return 0;
43189 }
43190 _ACEOF
43191 rm -f conftest.$ac_objext
43192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43193 (eval $ac_compile) 2>&5
43194 ac_status=$?
43195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43196 (exit $ac_status); } &&
43197 { ac_try='test -s conftest.$ac_objext'
43198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43199 (eval $ac_try) 2>&5
43200 ac_status=$?
43201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43202 (exit $ac_status); }; }; then
43203 glibcxx_cv_func___builtin_sinf_use=yes
43204 else
43205 echo "$as_me: failed program was:" >&5
43206 sed 's/^/| /' conftest.$ac_ext >&5
43207
43208 glibcxx_cv_func___builtin_sinf_use=no
43209 fi
43210 rm -f conftest.$ac_objext conftest.$ac_ext
43211 ac_ext=c
43212 ac_cpp='$CPP $CPPFLAGS'
43213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43216
43217
43218 fi
43219
43220 fi
43221 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
43222 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
43223 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
43224 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
43225 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
43226 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
43227 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
43228 echo $ECHO_N "(cached) $ECHO_C" >&6
43229 else
43230
43231 if test x$gcc_no_link = xyes; then
43232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43234 { (exit 1); exit 1; }; }
43235 fi
43236 cat >conftest.$ac_ext <<_ACEOF
43237 #line $LINENO "configure"
43238 /* confdefs.h. */
43239 _ACEOF
43240 cat confdefs.h >>conftest.$ac_ext
43241 cat >>conftest.$ac_ext <<_ACEOF
43242 /* end confdefs.h. */
43243 #include <math.h>
43244 int
43245 main ()
43246 {
43247 __builtin_sinf(0);
43248 ;
43249 return 0;
43250 }
43251 _ACEOF
43252 rm -f conftest.$ac_objext conftest$ac_exeext
43253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43254 (eval $ac_link) 2>&5
43255 ac_status=$?
43256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257 (exit $ac_status); } &&
43258 { ac_try='test -s conftest$ac_exeext'
43259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43260 (eval $ac_try) 2>&5
43261 ac_status=$?
43262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43263 (exit $ac_status); }; }; then
43264 glibcxx_cv_func___builtin_sinf_link=yes
43265 else
43266 echo "$as_me: failed program was:" >&5
43267 sed 's/^/| /' conftest.$ac_ext >&5
43268
43269 glibcxx_cv_func___builtin_sinf_link=no
43270 fi
43271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43272
43273 fi
43274
43275 fi
43276 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
43277 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
43278 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
43279 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43280 cat >>confdefs.h <<_ACEOF
43281 #define ${ac_tr_func} 1
43282 _ACEOF
43283
43284 fi
43285 fi
43286
43287
43288 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
43289 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
43290 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
43291 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
43292 echo $ECHO_N "(cached) $ECHO_C" >&6
43293 else
43294
43295
43296
43297 ac_ext=cc
43298 ac_cpp='$CXXCPP $CPPFLAGS'
43299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43302
43303 cat >conftest.$ac_ext <<_ACEOF
43304 #line $LINENO "configure"
43305 /* confdefs.h. */
43306 _ACEOF
43307 cat confdefs.h >>conftest.$ac_ext
43308 cat >>conftest.$ac_ext <<_ACEOF
43309 /* end confdefs.h. */
43310 #include <math.h>
43311 int
43312 main ()
43313 {
43314 __builtin_sin(0);
43315 ;
43316 return 0;
43317 }
43318 _ACEOF
43319 rm -f conftest.$ac_objext
43320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43321 (eval $ac_compile) 2>&5
43322 ac_status=$?
43323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43324 (exit $ac_status); } &&
43325 { ac_try='test -s conftest.$ac_objext'
43326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43327 (eval $ac_try) 2>&5
43328 ac_status=$?
43329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43330 (exit $ac_status); }; }; then
43331 glibcxx_cv_func___builtin_sin_use=yes
43332 else
43333 echo "$as_me: failed program was:" >&5
43334 sed 's/^/| /' conftest.$ac_ext >&5
43335
43336 glibcxx_cv_func___builtin_sin_use=no
43337 fi
43338 rm -f conftest.$ac_objext conftest.$ac_ext
43339 ac_ext=c
43340 ac_cpp='$CPP $CPPFLAGS'
43341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43344
43345
43346 fi
43347
43348 fi
43349 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
43350 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
43351 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
43352 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
43353 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
43354 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
43355 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
43356 echo $ECHO_N "(cached) $ECHO_C" >&6
43357 else
43358
43359 if test x$gcc_no_link = xyes; then
43360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43362 { (exit 1); exit 1; }; }
43363 fi
43364 cat >conftest.$ac_ext <<_ACEOF
43365 #line $LINENO "configure"
43366 /* confdefs.h. */
43367 _ACEOF
43368 cat confdefs.h >>conftest.$ac_ext
43369 cat >>conftest.$ac_ext <<_ACEOF
43370 /* end confdefs.h. */
43371 #include <math.h>
43372 int
43373 main ()
43374 {
43375 __builtin_sin(0);
43376 ;
43377 return 0;
43378 }
43379 _ACEOF
43380 rm -f conftest.$ac_objext conftest$ac_exeext
43381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43382 (eval $ac_link) 2>&5
43383 ac_status=$?
43384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43385 (exit $ac_status); } &&
43386 { ac_try='test -s conftest$ac_exeext'
43387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43388 (eval $ac_try) 2>&5
43389 ac_status=$?
43390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43391 (exit $ac_status); }; }; then
43392 glibcxx_cv_func___builtin_sin_link=yes
43393 else
43394 echo "$as_me: failed program was:" >&5
43395 sed 's/^/| /' conftest.$ac_ext >&5
43396
43397 glibcxx_cv_func___builtin_sin_link=no
43398 fi
43399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43400
43401 fi
43402
43403 fi
43404 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
43405 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
43406 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
43407 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43408 cat >>confdefs.h <<_ACEOF
43409 #define ${ac_tr_func} 1
43410 _ACEOF
43411
43412 fi
43413 fi
43414
43415
43416 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
43417 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
43418 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
43419 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
43420 echo $ECHO_N "(cached) $ECHO_C" >&6
43421 else
43422
43423
43424
43425 ac_ext=cc
43426 ac_cpp='$CXXCPP $CPPFLAGS'
43427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43430
43431 cat >conftest.$ac_ext <<_ACEOF
43432 #line $LINENO "configure"
43433 /* confdefs.h. */
43434 _ACEOF
43435 cat confdefs.h >>conftest.$ac_ext
43436 cat >>conftest.$ac_ext <<_ACEOF
43437 /* end confdefs.h. */
43438 #include <math.h>
43439 int
43440 main ()
43441 {
43442 __builtin_sinl(0);
43443 ;
43444 return 0;
43445 }
43446 _ACEOF
43447 rm -f conftest.$ac_objext
43448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43449 (eval $ac_compile) 2>&5
43450 ac_status=$?
43451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43452 (exit $ac_status); } &&
43453 { ac_try='test -s conftest.$ac_objext'
43454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43455 (eval $ac_try) 2>&5
43456 ac_status=$?
43457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43458 (exit $ac_status); }; }; then
43459 glibcxx_cv_func___builtin_sinl_use=yes
43460 else
43461 echo "$as_me: failed program was:" >&5
43462 sed 's/^/| /' conftest.$ac_ext >&5
43463
43464 glibcxx_cv_func___builtin_sinl_use=no
43465 fi
43466 rm -f conftest.$ac_objext conftest.$ac_ext
43467 ac_ext=c
43468 ac_cpp='$CPP $CPPFLAGS'
43469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43472
43473
43474 fi
43475
43476 fi
43477 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
43478 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
43479 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
43480 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
43481 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
43482 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
43483 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
43484 echo $ECHO_N "(cached) $ECHO_C" >&6
43485 else
43486
43487 if test x$gcc_no_link = xyes; then
43488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43490 { (exit 1); exit 1; }; }
43491 fi
43492 cat >conftest.$ac_ext <<_ACEOF
43493 #line $LINENO "configure"
43494 /* confdefs.h. */
43495 _ACEOF
43496 cat confdefs.h >>conftest.$ac_ext
43497 cat >>conftest.$ac_ext <<_ACEOF
43498 /* end confdefs.h. */
43499 #include <math.h>
43500 int
43501 main ()
43502 {
43503 __builtin_sinl(0);
43504 ;
43505 return 0;
43506 }
43507 _ACEOF
43508 rm -f conftest.$ac_objext conftest$ac_exeext
43509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43510 (eval $ac_link) 2>&5
43511 ac_status=$?
43512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43513 (exit $ac_status); } &&
43514 { ac_try='test -s conftest$ac_exeext'
43515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43516 (eval $ac_try) 2>&5
43517 ac_status=$?
43518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43519 (exit $ac_status); }; }; then
43520 glibcxx_cv_func___builtin_sinl_link=yes
43521 else
43522 echo "$as_me: failed program was:" >&5
43523 sed 's/^/| /' conftest.$ac_ext >&5
43524
43525 glibcxx_cv_func___builtin_sinl_link=no
43526 fi
43527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43528
43529 fi
43530
43531 fi
43532 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
43533 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
43534 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
43535 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43536 cat >>confdefs.h <<_ACEOF
43537 #define ${ac_tr_func} 1
43538 _ACEOF
43539
43540 fi
43541 fi
43542
43543
43544
43545 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
43546 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
43547 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
43548 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
43549 echo $ECHO_N "(cached) $ECHO_C" >&6
43550 else
43551
43552
43553
43554 ac_ext=cc
43555 ac_cpp='$CXXCPP $CPPFLAGS'
43556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43559
43560 cat >conftest.$ac_ext <<_ACEOF
43561 #line $LINENO "configure"
43562 /* confdefs.h. */
43563 _ACEOF
43564 cat confdefs.h >>conftest.$ac_ext
43565 cat >>conftest.$ac_ext <<_ACEOF
43566 /* end confdefs.h. */
43567 #include <math.h>
43568 int
43569 main ()
43570 {
43571 __builtin_cosf(0);
43572 ;
43573 return 0;
43574 }
43575 _ACEOF
43576 rm -f conftest.$ac_objext
43577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43578 (eval $ac_compile) 2>&5
43579 ac_status=$?
43580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43581 (exit $ac_status); } &&
43582 { ac_try='test -s conftest.$ac_objext'
43583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43584 (eval $ac_try) 2>&5
43585 ac_status=$?
43586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43587 (exit $ac_status); }; }; then
43588 glibcxx_cv_func___builtin_cosf_use=yes
43589 else
43590 echo "$as_me: failed program was:" >&5
43591 sed 's/^/| /' conftest.$ac_ext >&5
43592
43593 glibcxx_cv_func___builtin_cosf_use=no
43594 fi
43595 rm -f conftest.$ac_objext conftest.$ac_ext
43596 ac_ext=c
43597 ac_cpp='$CPP $CPPFLAGS'
43598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43601
43602
43603 fi
43604
43605 fi
43606 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
43607 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
43608 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
43609 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
43610 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
43611 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
43612 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
43613 echo $ECHO_N "(cached) $ECHO_C" >&6
43614 else
43615
43616 if test x$gcc_no_link = xyes; then
43617 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43619 { (exit 1); exit 1; }; }
43620 fi
43621 cat >conftest.$ac_ext <<_ACEOF
43622 #line $LINENO "configure"
43623 /* confdefs.h. */
43624 _ACEOF
43625 cat confdefs.h >>conftest.$ac_ext
43626 cat >>conftest.$ac_ext <<_ACEOF
43627 /* end confdefs.h. */
43628 #include <math.h>
43629 int
43630 main ()
43631 {
43632 __builtin_cosf(0);
43633 ;
43634 return 0;
43635 }
43636 _ACEOF
43637 rm -f conftest.$ac_objext conftest$ac_exeext
43638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43639 (eval $ac_link) 2>&5
43640 ac_status=$?
43641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43642 (exit $ac_status); } &&
43643 { ac_try='test -s conftest$ac_exeext'
43644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43645 (eval $ac_try) 2>&5
43646 ac_status=$?
43647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43648 (exit $ac_status); }; }; then
43649 glibcxx_cv_func___builtin_cosf_link=yes
43650 else
43651 echo "$as_me: failed program was:" >&5
43652 sed 's/^/| /' conftest.$ac_ext >&5
43653
43654 glibcxx_cv_func___builtin_cosf_link=no
43655 fi
43656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43657
43658 fi
43659
43660 fi
43661 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
43662 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
43663 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
43664 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43665 cat >>confdefs.h <<_ACEOF
43666 #define ${ac_tr_func} 1
43667 _ACEOF
43668
43669 fi
43670 fi
43671
43672
43673 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
43674 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
43675 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
43676 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
43677 echo $ECHO_N "(cached) $ECHO_C" >&6
43678 else
43679
43680
43681
43682 ac_ext=cc
43683 ac_cpp='$CXXCPP $CPPFLAGS'
43684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43687
43688 cat >conftest.$ac_ext <<_ACEOF
43689 #line $LINENO "configure"
43690 /* confdefs.h. */
43691 _ACEOF
43692 cat confdefs.h >>conftest.$ac_ext
43693 cat >>conftest.$ac_ext <<_ACEOF
43694 /* end confdefs.h. */
43695 #include <math.h>
43696 int
43697 main ()
43698 {
43699 __builtin_cos(0);
43700 ;
43701 return 0;
43702 }
43703 _ACEOF
43704 rm -f conftest.$ac_objext
43705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43706 (eval $ac_compile) 2>&5
43707 ac_status=$?
43708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43709 (exit $ac_status); } &&
43710 { ac_try='test -s conftest.$ac_objext'
43711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43712 (eval $ac_try) 2>&5
43713 ac_status=$?
43714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43715 (exit $ac_status); }; }; then
43716 glibcxx_cv_func___builtin_cos_use=yes
43717 else
43718 echo "$as_me: failed program was:" >&5
43719 sed 's/^/| /' conftest.$ac_ext >&5
43720
43721 glibcxx_cv_func___builtin_cos_use=no
43722 fi
43723 rm -f conftest.$ac_objext conftest.$ac_ext
43724 ac_ext=c
43725 ac_cpp='$CPP $CPPFLAGS'
43726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43729
43730
43731 fi
43732
43733 fi
43734 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
43735 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
43736 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
43737 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
43738 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
43739 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
43740 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
43741 echo $ECHO_N "(cached) $ECHO_C" >&6
43742 else
43743
43744 if test x$gcc_no_link = xyes; then
43745 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43746 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43747 { (exit 1); exit 1; }; }
43748 fi
43749 cat >conftest.$ac_ext <<_ACEOF
43750 #line $LINENO "configure"
43751 /* confdefs.h. */
43752 _ACEOF
43753 cat confdefs.h >>conftest.$ac_ext
43754 cat >>conftest.$ac_ext <<_ACEOF
43755 /* end confdefs.h. */
43756 #include <math.h>
43757 int
43758 main ()
43759 {
43760 __builtin_cos(0);
43761 ;
43762 return 0;
43763 }
43764 _ACEOF
43765 rm -f conftest.$ac_objext conftest$ac_exeext
43766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43767 (eval $ac_link) 2>&5
43768 ac_status=$?
43769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43770 (exit $ac_status); } &&
43771 { ac_try='test -s conftest$ac_exeext'
43772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43773 (eval $ac_try) 2>&5
43774 ac_status=$?
43775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43776 (exit $ac_status); }; }; then
43777 glibcxx_cv_func___builtin_cos_link=yes
43778 else
43779 echo "$as_me: failed program was:" >&5
43780 sed 's/^/| /' conftest.$ac_ext >&5
43781
43782 glibcxx_cv_func___builtin_cos_link=no
43783 fi
43784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43785
43786 fi
43787
43788 fi
43789 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
43790 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
43791 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
43792 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43793 cat >>confdefs.h <<_ACEOF
43794 #define ${ac_tr_func} 1
43795 _ACEOF
43796
43797 fi
43798 fi
43799
43800
43801 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
43802 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
43803 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
43804 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
43805 echo $ECHO_N "(cached) $ECHO_C" >&6
43806 else
43807
43808
43809
43810 ac_ext=cc
43811 ac_cpp='$CXXCPP $CPPFLAGS'
43812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43815
43816 cat >conftest.$ac_ext <<_ACEOF
43817 #line $LINENO "configure"
43818 /* confdefs.h. */
43819 _ACEOF
43820 cat confdefs.h >>conftest.$ac_ext
43821 cat >>conftest.$ac_ext <<_ACEOF
43822 /* end confdefs.h. */
43823 #include <math.h>
43824 int
43825 main ()
43826 {
43827 __builtin_cosl(0);
43828 ;
43829 return 0;
43830 }
43831 _ACEOF
43832 rm -f conftest.$ac_objext
43833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43834 (eval $ac_compile) 2>&5
43835 ac_status=$?
43836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43837 (exit $ac_status); } &&
43838 { ac_try='test -s conftest.$ac_objext'
43839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43840 (eval $ac_try) 2>&5
43841 ac_status=$?
43842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43843 (exit $ac_status); }; }; then
43844 glibcxx_cv_func___builtin_cosl_use=yes
43845 else
43846 echo "$as_me: failed program was:" >&5
43847 sed 's/^/| /' conftest.$ac_ext >&5
43848
43849 glibcxx_cv_func___builtin_cosl_use=no
43850 fi
43851 rm -f conftest.$ac_objext conftest.$ac_ext
43852 ac_ext=c
43853 ac_cpp='$CPP $CPPFLAGS'
43854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43857
43858
43859 fi
43860
43861 fi
43862 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
43863 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
43864 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
43865 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
43866 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
43867 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
43868 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
43869 echo $ECHO_N "(cached) $ECHO_C" >&6
43870 else
43871
43872 if test x$gcc_no_link = xyes; then
43873 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43875 { (exit 1); exit 1; }; }
43876 fi
43877 cat >conftest.$ac_ext <<_ACEOF
43878 #line $LINENO "configure"
43879 /* confdefs.h. */
43880 _ACEOF
43881 cat confdefs.h >>conftest.$ac_ext
43882 cat >>conftest.$ac_ext <<_ACEOF
43883 /* end confdefs.h. */
43884 #include <math.h>
43885 int
43886 main ()
43887 {
43888 __builtin_cosl(0);
43889 ;
43890 return 0;
43891 }
43892 _ACEOF
43893 rm -f conftest.$ac_objext conftest$ac_exeext
43894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43895 (eval $ac_link) 2>&5
43896 ac_status=$?
43897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43898 (exit $ac_status); } &&
43899 { ac_try='test -s conftest$ac_exeext'
43900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43901 (eval $ac_try) 2>&5
43902 ac_status=$?
43903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43904 (exit $ac_status); }; }; then
43905 glibcxx_cv_func___builtin_cosl_link=yes
43906 else
43907 echo "$as_me: failed program was:" >&5
43908 sed 's/^/| /' conftest.$ac_ext >&5
43909
43910 glibcxx_cv_func___builtin_cosl_link=no
43911 fi
43912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43913
43914 fi
43915
43916 fi
43917 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
43918 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
43919 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
43920 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43921 cat >>confdefs.h <<_ACEOF
43922 #define ${ac_tr_func} 1
43923 _ACEOF
43924
43925 fi
43926 fi
43927
43928
43929 dummyvar=no
43930 if test x$dummyvar = x"yes"; then
43931 cat >>confdefs.h <<\_ACEOF
43932 #define HAVE___BUILTIN_ABS 1
43933 _ACEOF
43934
43935 cat >>confdefs.h <<\_ACEOF
43936 #define HAVE___BUILTIN_LABS 1
43937 _ACEOF
43938
43939 cat >>confdefs.h <<\_ACEOF
43940 #define HAVE___BUILTIN_COS 1
43941 _ACEOF
43942
43943 cat >>confdefs.h <<\_ACEOF
43944 #define HAVE___BUILTIN_COSF 1
43945 _ACEOF
43946
43947 cat >>confdefs.h <<\_ACEOF
43948 #define HAVE___BUILTIN_COSL 1
43949 _ACEOF
43950
43951 cat >>confdefs.h <<\_ACEOF
43952 #define HAVE___BUILTIN_FABS 1
43953 _ACEOF
43954
43955 cat >>confdefs.h <<\_ACEOF
43956 #define HAVE___BUILTIN_FABSF 1
43957 _ACEOF
43958
43959 cat >>confdefs.h <<\_ACEOF
43960 #define HAVE___BUILTIN_FABSL 1
43961 _ACEOF
43962
43963 cat >>confdefs.h <<\_ACEOF
43964 #define HAVE___BUILTIN_SIN 1
43965 _ACEOF
43966
43967 cat >>confdefs.h <<\_ACEOF
43968 #define HAVE___BUILTIN_SINF 1
43969 _ACEOF
43970
43971 cat >>confdefs.h <<\_ACEOF
43972 #define HAVE___BUILTIN_SINL 1
43973 _ACEOF
43974
43975 cat >>confdefs.h <<\_ACEOF
43976 #define HAVE___BUILTIN_SQRT 1
43977 _ACEOF
43978
43979 cat >>confdefs.h <<\_ACEOF
43980 #define HAVE___BUILTIN_SQRTF 1
43981 _ACEOF
43982
43983 cat >>confdefs.h <<\_ACEOF
43984 #define HAVE___BUILTIN_SQRTL 1
43985 _ACEOF
43986
43987 fi
43988
43989
43990
43991 echo "$as_me:$LINENO: checking for main in -lm" >&5
43992 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
43993 if test "${ac_cv_lib_m_main+set}" = set; then
43994 echo $ECHO_N "(cached) $ECHO_C" >&6
43995 else
43996 ac_check_lib_save_LIBS=$LIBS
43997 LIBS="-lm $LIBS"
43998 if test x$gcc_no_link = xyes; then
43999 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44000 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44001 { (exit 1); exit 1; }; }
44002 fi
44003 cat >conftest.$ac_ext <<_ACEOF
44004 #line $LINENO "configure"
44005 /* confdefs.h. */
44006 _ACEOF
44007 cat confdefs.h >>conftest.$ac_ext
44008 cat >>conftest.$ac_ext <<_ACEOF
44009 /* end confdefs.h. */
44010
44011
44012 int
44013 main ()
44014 {
44015 main ();
44016 ;
44017 return 0;
44018 }
44019 _ACEOF
44020 rm -f conftest.$ac_objext conftest$ac_exeext
44021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44022 (eval $ac_link) 2>&5
44023 ac_status=$?
44024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44025 (exit $ac_status); } &&
44026 { ac_try='test -s conftest$ac_exeext'
44027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44028 (eval $ac_try) 2>&5
44029 ac_status=$?
44030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44031 (exit $ac_status); }; }; then
44032 ac_cv_lib_m_main=yes
44033 else
44034 echo "$as_me: failed program was:" >&5
44035 sed 's/^/| /' conftest.$ac_ext >&5
44036
44037 ac_cv_lib_m_main=no
44038 fi
44039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44040 LIBS=$ac_check_lib_save_LIBS
44041 fi
44042 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
44043 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
44044 if test $ac_cv_lib_m_main = yes; then
44045 cat >>confdefs.h <<_ACEOF
44046 #define HAVE_LIBM 1
44047 _ACEOF
44048
44049 LIBS="-lm $LIBS"
44050
44051 fi
44052
44053
44054
44055 for ac_func in nan copysignf
44056 do
44057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44058 echo "$as_me:$LINENO: checking for $ac_func" >&5
44059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44060 if eval "test \"\${$as_ac_var+set}\" = set"; then
44061 echo $ECHO_N "(cached) $ECHO_C" >&6
44062 else
44063 if test x$gcc_no_link = xyes; then
44064 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44066 { (exit 1); exit 1; }; }
44067 fi
44068 cat >conftest.$ac_ext <<_ACEOF
44069 #line $LINENO "configure"
44070 /* confdefs.h. */
44071 _ACEOF
44072 cat confdefs.h >>conftest.$ac_ext
44073 cat >>conftest.$ac_ext <<_ACEOF
44074 /* end confdefs.h. */
44075 /* System header to define __stub macros and hopefully few prototypes,
44076 which can conflict with char $ac_func (); below.
44077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44078 <limits.h> exists even on freestanding compilers. */
44079 #ifdef __STDC__
44080 # include <limits.h>
44081 #else
44082 # include <assert.h>
44083 #endif
44084 /* Override any gcc2 internal prototype to avoid an error. */
44085 #ifdef __cplusplus
44086 extern "C"
44087 {
44088 #endif
44089 /* We use char because int might match the return type of a gcc2
44090 builtin and then its argument prototype would still apply. */
44091 char $ac_func ();
44092 /* The GNU C library defines this for functions which it implements
44093 to always fail with ENOSYS. Some functions are actually named
44094 something starting with __ and the normal name is an alias. */
44095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44096 choke me
44097 #else
44098 char (*f) () = $ac_func;
44099 #endif
44100 #ifdef __cplusplus
44101 }
44102 #endif
44103
44104 int
44105 main ()
44106 {
44107 return f != $ac_func;
44108 ;
44109 return 0;
44110 }
44111 _ACEOF
44112 rm -f conftest.$ac_objext conftest$ac_exeext
44113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44114 (eval $ac_link) 2>&5
44115 ac_status=$?
44116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44117 (exit $ac_status); } &&
44118 { ac_try='test -s conftest$ac_exeext'
44119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44120 (eval $ac_try) 2>&5
44121 ac_status=$?
44122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44123 (exit $ac_status); }; }; then
44124 eval "$as_ac_var=yes"
44125 else
44126 echo "$as_me: failed program was:" >&5
44127 sed 's/^/| /' conftest.$ac_ext >&5
44128
44129 eval "$as_ac_var=no"
44130 fi
44131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44132 fi
44133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44135 if test `eval echo '${'$as_ac_var'}'` = yes; then
44136 cat >>confdefs.h <<_ACEOF
44137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44138 _ACEOF
44139
44140 else
44141 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
44142 fi
44143 done
44144
44145
44146
44147 for ac_func in __signbit
44148 do
44149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44150 echo "$as_me:$LINENO: checking for $ac_func" >&5
44151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44152 if eval "test \"\${$as_ac_var+set}\" = set"; then
44153 echo $ECHO_N "(cached) $ECHO_C" >&6
44154 else
44155 if test x$gcc_no_link = xyes; then
44156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44158 { (exit 1); exit 1; }; }
44159 fi
44160 cat >conftest.$ac_ext <<_ACEOF
44161 #line $LINENO "configure"
44162 /* confdefs.h. */
44163 _ACEOF
44164 cat confdefs.h >>conftest.$ac_ext
44165 cat >>conftest.$ac_ext <<_ACEOF
44166 /* end confdefs.h. */
44167 /* System header to define __stub macros and hopefully few prototypes,
44168 which can conflict with char $ac_func (); below.
44169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44170 <limits.h> exists even on freestanding compilers. */
44171 #ifdef __STDC__
44172 # include <limits.h>
44173 #else
44174 # include <assert.h>
44175 #endif
44176 /* Override any gcc2 internal prototype to avoid an error. */
44177 #ifdef __cplusplus
44178 extern "C"
44179 {
44180 #endif
44181 /* We use char because int might match the return type of a gcc2
44182 builtin and then its argument prototype would still apply. */
44183 char $ac_func ();
44184 /* The GNU C library defines this for functions which it implements
44185 to always fail with ENOSYS. Some functions are actually named
44186 something starting with __ and the normal name is an alias. */
44187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44188 choke me
44189 #else
44190 char (*f) () = $ac_func;
44191 #endif
44192 #ifdef __cplusplus
44193 }
44194 #endif
44195
44196 int
44197 main ()
44198 {
44199 return f != $ac_func;
44200 ;
44201 return 0;
44202 }
44203 _ACEOF
44204 rm -f conftest.$ac_objext conftest$ac_exeext
44205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44206 (eval $ac_link) 2>&5
44207 ac_status=$?
44208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44209 (exit $ac_status); } &&
44210 { ac_try='test -s conftest$ac_exeext'
44211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44212 (eval $ac_try) 2>&5
44213 ac_status=$?
44214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44215 (exit $ac_status); }; }; then
44216 eval "$as_ac_var=yes"
44217 else
44218 echo "$as_me: failed program was:" >&5
44219 sed 's/^/| /' conftest.$ac_ext >&5
44220
44221 eval "$as_ac_var=no"
44222 fi
44223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44224 fi
44225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44227 if test `eval echo '${'$as_ac_var'}'` = yes; then
44228 cat >>confdefs.h <<_ACEOF
44229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44230 _ACEOF
44231
44232 else
44233 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
44234 fi
44235 done
44236
44237
44238 for ac_func in __signbitf
44239 do
44240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44241 echo "$as_me:$LINENO: checking for $ac_func" >&5
44242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44243 if eval "test \"\${$as_ac_var+set}\" = set"; then
44244 echo $ECHO_N "(cached) $ECHO_C" >&6
44245 else
44246 if test x$gcc_no_link = xyes; then
44247 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44248 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44249 { (exit 1); exit 1; }; }
44250 fi
44251 cat >conftest.$ac_ext <<_ACEOF
44252 #line $LINENO "configure"
44253 /* confdefs.h. */
44254 _ACEOF
44255 cat confdefs.h >>conftest.$ac_ext
44256 cat >>conftest.$ac_ext <<_ACEOF
44257 /* end confdefs.h. */
44258 /* System header to define __stub macros and hopefully few prototypes,
44259 which can conflict with char $ac_func (); below.
44260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44261 <limits.h> exists even on freestanding compilers. */
44262 #ifdef __STDC__
44263 # include <limits.h>
44264 #else
44265 # include <assert.h>
44266 #endif
44267 /* Override any gcc2 internal prototype to avoid an error. */
44268 #ifdef __cplusplus
44269 extern "C"
44270 {
44271 #endif
44272 /* We use char because int might match the return type of a gcc2
44273 builtin and then its argument prototype would still apply. */
44274 char $ac_func ();
44275 /* The GNU C library defines this for functions which it implements
44276 to always fail with ENOSYS. Some functions are actually named
44277 something starting with __ and the normal name is an alias. */
44278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44279 choke me
44280 #else
44281 char (*f) () = $ac_func;
44282 #endif
44283 #ifdef __cplusplus
44284 }
44285 #endif
44286
44287 int
44288 main ()
44289 {
44290 return f != $ac_func;
44291 ;
44292 return 0;
44293 }
44294 _ACEOF
44295 rm -f conftest.$ac_objext conftest$ac_exeext
44296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44297 (eval $ac_link) 2>&5
44298 ac_status=$?
44299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44300 (exit $ac_status); } &&
44301 { ac_try='test -s conftest$ac_exeext'
44302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44303 (eval $ac_try) 2>&5
44304 ac_status=$?
44305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44306 (exit $ac_status); }; }; then
44307 eval "$as_ac_var=yes"
44308 else
44309 echo "$as_me: failed program was:" >&5
44310 sed 's/^/| /' conftest.$ac_ext >&5
44311
44312 eval "$as_ac_var=no"
44313 fi
44314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44315 fi
44316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44318 if test `eval echo '${'$as_ac_var'}'` = yes; then
44319 cat >>confdefs.h <<_ACEOF
44320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44321 _ACEOF
44322
44323 else
44324 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
44325 fi
44326 done
44327
44328
44329 if test x$ac_cv_func_copysignl = x"yes"; then
44330
44331 for ac_func in __signbitl
44332 do
44333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44334 echo "$as_me:$LINENO: checking for $ac_func" >&5
44335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44336 if eval "test \"\${$as_ac_var+set}\" = set"; then
44337 echo $ECHO_N "(cached) $ECHO_C" >&6
44338 else
44339 if test x$gcc_no_link = xyes; then
44340 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44342 { (exit 1); exit 1; }; }
44343 fi
44344 cat >conftest.$ac_ext <<_ACEOF
44345 #line $LINENO "configure"
44346 /* confdefs.h. */
44347 _ACEOF
44348 cat confdefs.h >>conftest.$ac_ext
44349 cat >>conftest.$ac_ext <<_ACEOF
44350 /* end confdefs.h. */
44351 /* System header to define __stub macros and hopefully few prototypes,
44352 which can conflict with char $ac_func (); below.
44353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44354 <limits.h> exists even on freestanding compilers. */
44355 #ifdef __STDC__
44356 # include <limits.h>
44357 #else
44358 # include <assert.h>
44359 #endif
44360 /* Override any gcc2 internal prototype to avoid an error. */
44361 #ifdef __cplusplus
44362 extern "C"
44363 {
44364 #endif
44365 /* We use char because int might match the return type of a gcc2
44366 builtin and then its argument prototype would still apply. */
44367 char $ac_func ();
44368 /* The GNU C library defines this for functions which it implements
44369 to always fail with ENOSYS. Some functions are actually named
44370 something starting with __ and the normal name is an alias. */
44371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44372 choke me
44373 #else
44374 char (*f) () = $ac_func;
44375 #endif
44376 #ifdef __cplusplus
44377 }
44378 #endif
44379
44380 int
44381 main ()
44382 {
44383 return f != $ac_func;
44384 ;
44385 return 0;
44386 }
44387 _ACEOF
44388 rm -f conftest.$ac_objext conftest$ac_exeext
44389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44390 (eval $ac_link) 2>&5
44391 ac_status=$?
44392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44393 (exit $ac_status); } &&
44394 { ac_try='test -s conftest$ac_exeext'
44395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44396 (eval $ac_try) 2>&5
44397 ac_status=$?
44398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44399 (exit $ac_status); }; }; then
44400 eval "$as_ac_var=yes"
44401 else
44402 echo "$as_me: failed program was:" >&5
44403 sed 's/^/| /' conftest.$ac_ext >&5
44404
44405 eval "$as_ac_var=no"
44406 fi
44407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44408 fi
44409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44411 if test `eval echo '${'$as_ac_var'}'` = yes; then
44412 cat >>confdefs.h <<_ACEOF
44413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44414 _ACEOF
44415
44416 else
44417 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
44418 fi
44419 done
44420
44421 fi
44422
44423 # XXX Review this. Nothing uses it.
44424 if test -n "$LIBMATHOBJS"; then
44425 need_libmath=yes
44426 fi
44427
44428
44429
44430 # Test wchar.h for mbstate_t, which is needed for char_traits and
44431 # others even if wchar_t support is not on.
44432 echo "$as_me:$LINENO: checking for mbstate_t" >&5
44433 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
44434 cat >conftest.$ac_ext <<_ACEOF
44435 #line $LINENO "configure"
44436 /* confdefs.h. */
44437 _ACEOF
44438 cat confdefs.h >>conftest.$ac_ext
44439 cat >>conftest.$ac_ext <<_ACEOF
44440 /* end confdefs.h. */
44441 #include <wchar.h>
44442 int
44443 main ()
44444 {
44445 mbstate_t teststate;
44446 ;
44447 return 0;
44448 }
44449 _ACEOF
44450 rm -f conftest.$ac_objext
44451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44452 (eval $ac_compile) 2>&5
44453 ac_status=$?
44454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44455 (exit $ac_status); } &&
44456 { ac_try='test -s conftest.$ac_objext'
44457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44458 (eval $ac_try) 2>&5
44459 ac_status=$?
44460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44461 (exit $ac_status); }; }; then
44462 have_mbstate_t=yes
44463 else
44464 echo "$as_me: failed program was:" >&5
44465 sed 's/^/| /' conftest.$ac_ext >&5
44466
44467 have_mbstate_t=no
44468 fi
44469 rm -f conftest.$ac_objext conftest.$ac_ext
44470 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
44471 echo "${ECHO_T}$have_mbstate_t" >&6
44472 if test x"$have_mbstate_t" = xyes; then
44473 cat >>confdefs.h <<\_ACEOF
44474 #define HAVE_MBSTATE_T 1
44475 _ACEOF
44476
44477 fi
44478
44479 # Sanity check for existence of ISO C99 headers for extended encoding.
44480
44481 for ac_header in wchar.h
44482 do
44483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44485 echo "$as_me:$LINENO: checking for $ac_header" >&5
44486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44488 echo $ECHO_N "(cached) $ECHO_C" >&6
44489 fi
44490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44492 else
44493 # Is the header compilable?
44494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44496 cat >conftest.$ac_ext <<_ACEOF
44497 #line $LINENO "configure"
44498 /* confdefs.h. */
44499 _ACEOF
44500 cat confdefs.h >>conftest.$ac_ext
44501 cat >>conftest.$ac_ext <<_ACEOF
44502 /* end confdefs.h. */
44503 $ac_includes_default
44504 #include <$ac_header>
44505 _ACEOF
44506 rm -f conftest.$ac_objext
44507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44508 (eval $ac_compile) 2>&5
44509 ac_status=$?
44510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44511 (exit $ac_status); } &&
44512 { ac_try='test -s conftest.$ac_objext'
44513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44514 (eval $ac_try) 2>&5
44515 ac_status=$?
44516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44517 (exit $ac_status); }; }; then
44518 ac_header_compiler=yes
44519 else
44520 echo "$as_me: failed program was:" >&5
44521 sed 's/^/| /' conftest.$ac_ext >&5
44522
44523 ac_header_compiler=no
44524 fi
44525 rm -f conftest.$ac_objext conftest.$ac_ext
44526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44527 echo "${ECHO_T}$ac_header_compiler" >&6
44528
44529 # Is the header present?
44530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44532 cat >conftest.$ac_ext <<_ACEOF
44533 #line $LINENO "configure"
44534 /* confdefs.h. */
44535 _ACEOF
44536 cat confdefs.h >>conftest.$ac_ext
44537 cat >>conftest.$ac_ext <<_ACEOF
44538 /* end confdefs.h. */
44539 #include <$ac_header>
44540 _ACEOF
44541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44543 ac_status=$?
44544 grep -v '^ *+' conftest.er1 >conftest.err
44545 rm -f conftest.er1
44546 cat conftest.err >&5
44547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44548 (exit $ac_status); } >/dev/null; then
44549 if test -s conftest.err; then
44550 ac_cpp_err=$ac_c_preproc_warn_flag
44551 else
44552 ac_cpp_err=
44553 fi
44554 else
44555 ac_cpp_err=yes
44556 fi
44557 if test -z "$ac_cpp_err"; then
44558 ac_header_preproc=yes
44559 else
44560 echo "$as_me: failed program was:" >&5
44561 sed 's/^/| /' conftest.$ac_ext >&5
44562
44563 ac_header_preproc=no
44564 fi
44565 rm -f conftest.err conftest.$ac_ext
44566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44567 echo "${ECHO_T}$ac_header_preproc" >&6
44568
44569 # So? What about this header?
44570 case $ac_header_compiler:$ac_header_preproc in
44571 yes:no )
44572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44576 (
44577 cat <<\_ASBOX
44578 ## ------------------------------------ ##
44579 ## Report this to bug-autoconf@gnu.org. ##
44580 ## ------------------------------------ ##
44581 _ASBOX
44582 ) |
44583 sed "s/^/$as_me: WARNING: /" >&2
44584 ;;
44585 no:yes )
44586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44592 (
44593 cat <<\_ASBOX
44594 ## ------------------------------------ ##
44595 ## Report this to bug-autoconf@gnu.org. ##
44596 ## ------------------------------------ ##
44597 _ASBOX
44598 ) |
44599 sed "s/^/$as_me: WARNING: /" >&2
44600 ;;
44601 esac
44602 echo "$as_me:$LINENO: checking for $ac_header" >&5
44603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44605 echo $ECHO_N "(cached) $ECHO_C" >&6
44606 else
44607 eval "$as_ac_Header=$ac_header_preproc"
44608 fi
44609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44611
44612 fi
44613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44614 cat >>confdefs.h <<_ACEOF
44615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44616 _ACEOF
44617 ac_has_wchar_h=yes
44618 else
44619 ac_has_wchar_h=no
44620 fi
44621
44622 done
44623
44624
44625 for ac_header in wctype.h
44626 do
44627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44629 echo "$as_me:$LINENO: checking for $ac_header" >&5
44630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44632 echo $ECHO_N "(cached) $ECHO_C" >&6
44633 fi
44634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44636 else
44637 # Is the header compilable?
44638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44640 cat >conftest.$ac_ext <<_ACEOF
44641 #line $LINENO "configure"
44642 /* confdefs.h. */
44643 _ACEOF
44644 cat confdefs.h >>conftest.$ac_ext
44645 cat >>conftest.$ac_ext <<_ACEOF
44646 /* end confdefs.h. */
44647 $ac_includes_default
44648 #include <$ac_header>
44649 _ACEOF
44650 rm -f conftest.$ac_objext
44651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44652 (eval $ac_compile) 2>&5
44653 ac_status=$?
44654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44655 (exit $ac_status); } &&
44656 { ac_try='test -s conftest.$ac_objext'
44657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44658 (eval $ac_try) 2>&5
44659 ac_status=$?
44660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44661 (exit $ac_status); }; }; then
44662 ac_header_compiler=yes
44663 else
44664 echo "$as_me: failed program was:" >&5
44665 sed 's/^/| /' conftest.$ac_ext >&5
44666
44667 ac_header_compiler=no
44668 fi
44669 rm -f conftest.$ac_objext conftest.$ac_ext
44670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44671 echo "${ECHO_T}$ac_header_compiler" >&6
44672
44673 # Is the header present?
44674 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44676 cat >conftest.$ac_ext <<_ACEOF
44677 #line $LINENO "configure"
44678 /* confdefs.h. */
44679 _ACEOF
44680 cat confdefs.h >>conftest.$ac_ext
44681 cat >>conftest.$ac_ext <<_ACEOF
44682 /* end confdefs.h. */
44683 #include <$ac_header>
44684 _ACEOF
44685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44687 ac_status=$?
44688 grep -v '^ *+' conftest.er1 >conftest.err
44689 rm -f conftest.er1
44690 cat conftest.err >&5
44691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44692 (exit $ac_status); } >/dev/null; then
44693 if test -s conftest.err; then
44694 ac_cpp_err=$ac_c_preproc_warn_flag
44695 else
44696 ac_cpp_err=
44697 fi
44698 else
44699 ac_cpp_err=yes
44700 fi
44701 if test -z "$ac_cpp_err"; then
44702 ac_header_preproc=yes
44703 else
44704 echo "$as_me: failed program was:" >&5
44705 sed 's/^/| /' conftest.$ac_ext >&5
44706
44707 ac_header_preproc=no
44708 fi
44709 rm -f conftest.err conftest.$ac_ext
44710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44711 echo "${ECHO_T}$ac_header_preproc" >&6
44712
44713 # So? What about this header?
44714 case $ac_header_compiler:$ac_header_preproc in
44715 yes:no )
44716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44720 (
44721 cat <<\_ASBOX
44722 ## ------------------------------------ ##
44723 ## Report this to bug-autoconf@gnu.org. ##
44724 ## ------------------------------------ ##
44725 _ASBOX
44726 ) |
44727 sed "s/^/$as_me: WARNING: /" >&2
44728 ;;
44729 no:yes )
44730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44736 (
44737 cat <<\_ASBOX
44738 ## ------------------------------------ ##
44739 ## Report this to bug-autoconf@gnu.org. ##
44740 ## ------------------------------------ ##
44741 _ASBOX
44742 ) |
44743 sed "s/^/$as_me: WARNING: /" >&2
44744 ;;
44745 esac
44746 echo "$as_me:$LINENO: checking for $ac_header" >&5
44747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44749 echo $ECHO_N "(cached) $ECHO_C" >&6
44750 else
44751 eval "$as_ac_Header=$ac_header_preproc"
44752 fi
44753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44755
44756 fi
44757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44758 cat >>confdefs.h <<_ACEOF
44759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44760 _ACEOF
44761 ac_has_wctype_h=yes
44762 else
44763 ac_has_wctype_h=no
44764 fi
44765
44766 done
44767
44768
44769 # Only continue checking if the ISO C99 headers exist and support is on.
44770 if test x"$ac_has_wchar_h" = xyes &&
44771 test x"$ac_has_wctype_h" = xyes &&
44772 test x"$enable_c_mbchar" != xno; then
44773
44774 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
44775 # numeric_limits can instantiate type_traits<wchar_t>
44776 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
44777 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
44778 cat >conftest.$ac_ext <<_ACEOF
44779 #line $LINENO "configure"
44780 /* confdefs.h. */
44781 _ACEOF
44782 cat confdefs.h >>conftest.$ac_ext
44783 cat >>conftest.$ac_ext <<_ACEOF
44784 /* end confdefs.h. */
44785 #include <wchar.h>
44786 int
44787 main ()
44788 {
44789 int i = WCHAR_MIN; int j = WCHAR_MAX;
44790 ;
44791 return 0;
44792 }
44793 _ACEOF
44794 rm -f conftest.$ac_objext
44795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44796 (eval $ac_compile) 2>&5
44797 ac_status=$?
44798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44799 (exit $ac_status); } &&
44800 { ac_try='test -s conftest.$ac_objext'
44801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44802 (eval $ac_try) 2>&5
44803 ac_status=$?
44804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44805 (exit $ac_status); }; }; then
44806 has_wchar_minmax=yes
44807 else
44808 echo "$as_me: failed program was:" >&5
44809 sed 's/^/| /' conftest.$ac_ext >&5
44810
44811 has_wchar_minmax=no
44812 fi
44813 rm -f conftest.$ac_objext conftest.$ac_ext
44814 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
44815 echo "${ECHO_T}$has_wchar_minmax" >&6
44816
44817 # Test wchar.h for WEOF, which is what we use to determine whether
44818 # to specialize for char_traits<wchar_t> or not.
44819 echo "$as_me:$LINENO: checking for WEOF" >&5
44820 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
44821 cat >conftest.$ac_ext <<_ACEOF
44822 #line $LINENO "configure"
44823 /* confdefs.h. */
44824 _ACEOF
44825 cat confdefs.h >>conftest.$ac_ext
44826 cat >>conftest.$ac_ext <<_ACEOF
44827 /* end confdefs.h. */
44828
44829 #include <wchar.h>
44830 #include <stddef.h>
44831 int
44832 main ()
44833 {
44834 wint_t i = WEOF;
44835 ;
44836 return 0;
44837 }
44838 _ACEOF
44839 rm -f conftest.$ac_objext
44840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44841 (eval $ac_compile) 2>&5
44842 ac_status=$?
44843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44844 (exit $ac_status); } &&
44845 { ac_try='test -s conftest.$ac_objext'
44846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44847 (eval $ac_try) 2>&5
44848 ac_status=$?
44849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44850 (exit $ac_status); }; }; then
44851 has_weof=yes
44852 else
44853 echo "$as_me: failed program was:" >&5
44854 sed 's/^/| /' conftest.$ac_ext >&5
44855
44856 has_weof=no
44857 fi
44858 rm -f conftest.$ac_objext conftest.$ac_ext
44859 echo "$as_me:$LINENO: result: $has_weof" >&5
44860 echo "${ECHO_T}$has_weof" >&6
44861
44862 # Tests for wide character functions used in char_traits<wchar_t>.
44863 ac_wfuncs=yes
44864
44865
44866
44867
44868
44869
44870 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
44871 do
44872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44873 echo "$as_me:$LINENO: checking for $ac_func" >&5
44874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44875 if eval "test \"\${$as_ac_var+set}\" = set"; then
44876 echo $ECHO_N "(cached) $ECHO_C" >&6
44877 else
44878 if test x$gcc_no_link = xyes; then
44879 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44881 { (exit 1); exit 1; }; }
44882 fi
44883 cat >conftest.$ac_ext <<_ACEOF
44884 #line $LINENO "configure"
44885 /* confdefs.h. */
44886 _ACEOF
44887 cat confdefs.h >>conftest.$ac_ext
44888 cat >>conftest.$ac_ext <<_ACEOF
44889 /* end confdefs.h. */
44890 /* System header to define __stub macros and hopefully few prototypes,
44891 which can conflict with char $ac_func (); below.
44892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44893 <limits.h> exists even on freestanding compilers. */
44894 #ifdef __STDC__
44895 # include <limits.h>
44896 #else
44897 # include <assert.h>
44898 #endif
44899 /* Override any gcc2 internal prototype to avoid an error. */
44900 #ifdef __cplusplus
44901 extern "C"
44902 {
44903 #endif
44904 /* We use char because int might match the return type of a gcc2
44905 builtin and then its argument prototype would still apply. */
44906 char $ac_func ();
44907 /* The GNU C library defines this for functions which it implements
44908 to always fail with ENOSYS. Some functions are actually named
44909 something starting with __ and the normal name is an alias. */
44910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44911 choke me
44912 #else
44913 char (*f) () = $ac_func;
44914 #endif
44915 #ifdef __cplusplus
44916 }
44917 #endif
44918
44919 int
44920 main ()
44921 {
44922 return f != $ac_func;
44923 ;
44924 return 0;
44925 }
44926 _ACEOF
44927 rm -f conftest.$ac_objext conftest$ac_exeext
44928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44929 (eval $ac_link) 2>&5
44930 ac_status=$?
44931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44932 (exit $ac_status); } &&
44933 { ac_try='test -s conftest$ac_exeext'
44934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44935 (eval $ac_try) 2>&5
44936 ac_status=$?
44937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44938 (exit $ac_status); }; }; then
44939 eval "$as_ac_var=yes"
44940 else
44941 echo "$as_me: failed program was:" >&5
44942 sed 's/^/| /' conftest.$ac_ext >&5
44943
44944 eval "$as_ac_var=no"
44945 fi
44946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44947 fi
44948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44950 if test `eval echo '${'$as_ac_var'}'` = yes; then
44951 cat >>confdefs.h <<_ACEOF
44952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44953 _ACEOF
44954
44955 else
44956 ac_wfuncs=no
44957 fi
44958 done
44959
44960
44961 # Checks for names injected into std:: by the c_std headers.
44962
44963
44964
44965
44966
44967
44968
44969
44970
44971
44972
44973
44974
44975
44976
44977
44978
44979
44980
44981
44982
44983
44984
44985
44986
44987
44988
44989
44990
44991
44992
44993
44994
44995
44996
44997
44998
44999
45000
45001
45002
45003
45004
45005
45006
45007
45008
45009
45010
45011
45012 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
45013 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
45014 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
45015 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
45016 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
45017 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
45018 do
45019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45020 echo "$as_me:$LINENO: checking for $ac_func" >&5
45021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45022 if eval "test \"\${$as_ac_var+set}\" = set"; then
45023 echo $ECHO_N "(cached) $ECHO_C" >&6
45024 else
45025 if test x$gcc_no_link = xyes; then
45026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45028 { (exit 1); exit 1; }; }
45029 fi
45030 cat >conftest.$ac_ext <<_ACEOF
45031 #line $LINENO "configure"
45032 /* confdefs.h. */
45033 _ACEOF
45034 cat confdefs.h >>conftest.$ac_ext
45035 cat >>conftest.$ac_ext <<_ACEOF
45036 /* end confdefs.h. */
45037 /* System header to define __stub macros and hopefully few prototypes,
45038 which can conflict with char $ac_func (); below.
45039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45040 <limits.h> exists even on freestanding compilers. */
45041 #ifdef __STDC__
45042 # include <limits.h>
45043 #else
45044 # include <assert.h>
45045 #endif
45046 /* Override any gcc2 internal prototype to avoid an error. */
45047 #ifdef __cplusplus
45048 extern "C"
45049 {
45050 #endif
45051 /* We use char because int might match the return type of a gcc2
45052 builtin and then its argument prototype would still apply. */
45053 char $ac_func ();
45054 /* The GNU C library defines this for functions which it implements
45055 to always fail with ENOSYS. Some functions are actually named
45056 something starting with __ and the normal name is an alias. */
45057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45058 choke me
45059 #else
45060 char (*f) () = $ac_func;
45061 #endif
45062 #ifdef __cplusplus
45063 }
45064 #endif
45065
45066 int
45067 main ()
45068 {
45069 return f != $ac_func;
45070 ;
45071 return 0;
45072 }
45073 _ACEOF
45074 rm -f conftest.$ac_objext conftest$ac_exeext
45075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45076 (eval $ac_link) 2>&5
45077 ac_status=$?
45078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45079 (exit $ac_status); } &&
45080 { ac_try='test -s conftest$ac_exeext'
45081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45082 (eval $ac_try) 2>&5
45083 ac_status=$?
45084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45085 (exit $ac_status); }; }; then
45086 eval "$as_ac_var=yes"
45087 else
45088 echo "$as_me: failed program was:" >&5
45089 sed 's/^/| /' conftest.$ac_ext >&5
45090
45091 eval "$as_ac_var=no"
45092 fi
45093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45094 fi
45095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45097 if test `eval echo '${'$as_ac_var'}'` = yes; then
45098 cat >>confdefs.h <<_ACEOF
45099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45100 _ACEOF
45101
45102 else
45103 ac_wfuncs=no
45104 fi
45105 done
45106
45107
45108 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
45109 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
45110 if test x"$has_weof" = xyes &&
45111 test x"$has_wchar_minmax" = xyes &&
45112 test x"$ac_wfuncs" = xyes;
45113 then
45114 ac_isoC99_wchar_t=yes
45115 else
45116 ac_isoC99_wchar_t=no
45117 fi
45118 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
45119 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
45120
45121 # Use iconv for wchar_t to char conversions. As such, check for
45122 # X/Open Portability Guide, version 2 features (XPG2).
45123 if test "${ac_cv_header_iconv_h+set}" = set; then
45124 echo "$as_me:$LINENO: checking for iconv.h" >&5
45125 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45126 if test "${ac_cv_header_iconv_h+set}" = set; then
45127 echo $ECHO_N "(cached) $ECHO_C" >&6
45128 fi
45129 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45130 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45131 else
45132 # Is the header compilable?
45133 echo "$as_me:$LINENO: checking iconv.h usability" >&5
45134 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
45135 cat >conftest.$ac_ext <<_ACEOF
45136 #line $LINENO "configure"
45137 /* confdefs.h. */
45138 _ACEOF
45139 cat confdefs.h >>conftest.$ac_ext
45140 cat >>conftest.$ac_ext <<_ACEOF
45141 /* end confdefs.h. */
45142 $ac_includes_default
45143 #include <iconv.h>
45144 _ACEOF
45145 rm -f conftest.$ac_objext
45146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45147 (eval $ac_compile) 2>&5
45148 ac_status=$?
45149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45150 (exit $ac_status); } &&
45151 { ac_try='test -s conftest.$ac_objext'
45152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45153 (eval $ac_try) 2>&5
45154 ac_status=$?
45155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45156 (exit $ac_status); }; }; then
45157 ac_header_compiler=yes
45158 else
45159 echo "$as_me: failed program was:" >&5
45160 sed 's/^/| /' conftest.$ac_ext >&5
45161
45162 ac_header_compiler=no
45163 fi
45164 rm -f conftest.$ac_objext conftest.$ac_ext
45165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45166 echo "${ECHO_T}$ac_header_compiler" >&6
45167
45168 # Is the header present?
45169 echo "$as_me:$LINENO: checking iconv.h presence" >&5
45170 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
45171 cat >conftest.$ac_ext <<_ACEOF
45172 #line $LINENO "configure"
45173 /* confdefs.h. */
45174 _ACEOF
45175 cat confdefs.h >>conftest.$ac_ext
45176 cat >>conftest.$ac_ext <<_ACEOF
45177 /* end confdefs.h. */
45178 #include <iconv.h>
45179 _ACEOF
45180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45182 ac_status=$?
45183 grep -v '^ *+' conftest.er1 >conftest.err
45184 rm -f conftest.er1
45185 cat conftest.err >&5
45186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45187 (exit $ac_status); } >/dev/null; then
45188 if test -s conftest.err; then
45189 ac_cpp_err=$ac_c_preproc_warn_flag
45190 else
45191 ac_cpp_err=
45192 fi
45193 else
45194 ac_cpp_err=yes
45195 fi
45196 if test -z "$ac_cpp_err"; then
45197 ac_header_preproc=yes
45198 else
45199 echo "$as_me: failed program was:" >&5
45200 sed 's/^/| /' conftest.$ac_ext >&5
45201
45202 ac_header_preproc=no
45203 fi
45204 rm -f conftest.err conftest.$ac_ext
45205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45206 echo "${ECHO_T}$ac_header_preproc" >&6
45207
45208 # So? What about this header?
45209 case $ac_header_compiler:$ac_header_preproc in
45210 yes:no )
45211 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
45212 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45213 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45214 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45215 (
45216 cat <<\_ASBOX
45217 ## ------------------------------------ ##
45218 ## Report this to bug-autoconf@gnu.org. ##
45219 ## ------------------------------------ ##
45220 _ASBOX
45221 ) |
45222 sed "s/^/$as_me: WARNING: /" >&2
45223 ;;
45224 no:yes )
45225 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
45226 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
45227 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
45228 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
45229 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45230 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45231 (
45232 cat <<\_ASBOX
45233 ## ------------------------------------ ##
45234 ## Report this to bug-autoconf@gnu.org. ##
45235 ## ------------------------------------ ##
45236 _ASBOX
45237 ) |
45238 sed "s/^/$as_me: WARNING: /" >&2
45239 ;;
45240 esac
45241 echo "$as_me:$LINENO: checking for iconv.h" >&5
45242 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45243 if test "${ac_cv_header_iconv_h+set}" = set; then
45244 echo $ECHO_N "(cached) $ECHO_C" >&6
45245 else
45246 ac_cv_header_iconv_h=$ac_header_preproc
45247 fi
45248 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45249 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45250
45251 fi
45252 if test $ac_cv_header_iconv_h = yes; then
45253 ac_has_iconv_h=yes
45254 else
45255 ac_has_iconv_h=no
45256 fi
45257
45258
45259 if test "${ac_cv_header_langinfo_h+set}" = set; then
45260 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45261 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45262 if test "${ac_cv_header_langinfo_h+set}" = set; then
45263 echo $ECHO_N "(cached) $ECHO_C" >&6
45264 fi
45265 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45266 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45267 else
45268 # Is the header compilable?
45269 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
45270 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
45271 cat >conftest.$ac_ext <<_ACEOF
45272 #line $LINENO "configure"
45273 /* confdefs.h. */
45274 _ACEOF
45275 cat confdefs.h >>conftest.$ac_ext
45276 cat >>conftest.$ac_ext <<_ACEOF
45277 /* end confdefs.h. */
45278 $ac_includes_default
45279 #include <langinfo.h>
45280 _ACEOF
45281 rm -f conftest.$ac_objext
45282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45283 (eval $ac_compile) 2>&5
45284 ac_status=$?
45285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45286 (exit $ac_status); } &&
45287 { ac_try='test -s conftest.$ac_objext'
45288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45289 (eval $ac_try) 2>&5
45290 ac_status=$?
45291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45292 (exit $ac_status); }; }; then
45293 ac_header_compiler=yes
45294 else
45295 echo "$as_me: failed program was:" >&5
45296 sed 's/^/| /' conftest.$ac_ext >&5
45297
45298 ac_header_compiler=no
45299 fi
45300 rm -f conftest.$ac_objext conftest.$ac_ext
45301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45302 echo "${ECHO_T}$ac_header_compiler" >&6
45303
45304 # Is the header present?
45305 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
45306 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
45307 cat >conftest.$ac_ext <<_ACEOF
45308 #line $LINENO "configure"
45309 /* confdefs.h. */
45310 _ACEOF
45311 cat confdefs.h >>conftest.$ac_ext
45312 cat >>conftest.$ac_ext <<_ACEOF
45313 /* end confdefs.h. */
45314 #include <langinfo.h>
45315 _ACEOF
45316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45318 ac_status=$?
45319 grep -v '^ *+' conftest.er1 >conftest.err
45320 rm -f conftest.er1
45321 cat conftest.err >&5
45322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45323 (exit $ac_status); } >/dev/null; then
45324 if test -s conftest.err; then
45325 ac_cpp_err=$ac_c_preproc_warn_flag
45326 else
45327 ac_cpp_err=
45328 fi
45329 else
45330 ac_cpp_err=yes
45331 fi
45332 if test -z "$ac_cpp_err"; then
45333 ac_header_preproc=yes
45334 else
45335 echo "$as_me: failed program was:" >&5
45336 sed 's/^/| /' conftest.$ac_ext >&5
45337
45338 ac_header_preproc=no
45339 fi
45340 rm -f conftest.err conftest.$ac_ext
45341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45342 echo "${ECHO_T}$ac_header_preproc" >&6
45343
45344 # So? What about this header?
45345 case $ac_header_compiler:$ac_header_preproc in
45346 yes:no )
45347 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
45348 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45349 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45350 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45351 (
45352 cat <<\_ASBOX
45353 ## ------------------------------------ ##
45354 ## Report this to bug-autoconf@gnu.org. ##
45355 ## ------------------------------------ ##
45356 _ASBOX
45357 ) |
45358 sed "s/^/$as_me: WARNING: /" >&2
45359 ;;
45360 no:yes )
45361 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
45362 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
45363 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
45364 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
45365 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45366 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45367 (
45368 cat <<\_ASBOX
45369 ## ------------------------------------ ##
45370 ## Report this to bug-autoconf@gnu.org. ##
45371 ## ------------------------------------ ##
45372 _ASBOX
45373 ) |
45374 sed "s/^/$as_me: WARNING: /" >&2
45375 ;;
45376 esac
45377 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45378 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45379 if test "${ac_cv_header_langinfo_h+set}" = set; then
45380 echo $ECHO_N "(cached) $ECHO_C" >&6
45381 else
45382 ac_cv_header_langinfo_h=$ac_header_preproc
45383 fi
45384 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45385 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45386
45387 fi
45388 if test $ac_cv_header_langinfo_h = yes; then
45389 ac_has_langinfo_h=yes
45390 else
45391 ac_has_langinfo_h=no
45392 fi
45393
45394
45395
45396 # Check for existence of libiconv.a providing XPG2 wchar_t support.
45397 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
45398 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
45399 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
45400 echo $ECHO_N "(cached) $ECHO_C" >&6
45401 else
45402 ac_check_lib_save_LIBS=$LIBS
45403 LIBS="-liconv $LIBS"
45404 if test x$gcc_no_link = xyes; then
45405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45407 { (exit 1); exit 1; }; }
45408 fi
45409 cat >conftest.$ac_ext <<_ACEOF
45410 #line $LINENO "configure"
45411 /* confdefs.h. */
45412 _ACEOF
45413 cat confdefs.h >>conftest.$ac_ext
45414 cat >>conftest.$ac_ext <<_ACEOF
45415 /* end confdefs.h. */
45416
45417 /* Override any gcc2 internal prototype to avoid an error. */
45418 #ifdef __cplusplus
45419 extern "C"
45420 #endif
45421 /* We use char because int might match the return type of a gcc2
45422 builtin and then its argument prototype would still apply. */
45423 char iconv ();
45424 int
45425 main ()
45426 {
45427 iconv ();
45428 ;
45429 return 0;
45430 }
45431 _ACEOF
45432 rm -f conftest.$ac_objext conftest$ac_exeext
45433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45434 (eval $ac_link) 2>&5
45435 ac_status=$?
45436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45437 (exit $ac_status); } &&
45438 { ac_try='test -s conftest$ac_exeext'
45439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45440 (eval $ac_try) 2>&5
45441 ac_status=$?
45442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45443 (exit $ac_status); }; }; then
45444 ac_cv_lib_iconv_iconv=yes
45445 else
45446 echo "$as_me: failed program was:" >&5
45447 sed 's/^/| /' conftest.$ac_ext >&5
45448
45449 ac_cv_lib_iconv_iconv=no
45450 fi
45451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45452 LIBS=$ac_check_lib_save_LIBS
45453 fi
45454 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
45455 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
45456 if test $ac_cv_lib_iconv_iconv = yes; then
45457 libiconv="-liconv"
45458 fi
45459
45460 ac_save_LIBS="$LIBS"
45461 LIBS="$LIBS $libiconv"
45462
45463
45464
45465
45466
45467 for ac_func in iconv_open iconv_close iconv nl_langinfo
45468 do
45469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45470 echo "$as_me:$LINENO: checking for $ac_func" >&5
45471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45472 if eval "test \"\${$as_ac_var+set}\" = set"; then
45473 echo $ECHO_N "(cached) $ECHO_C" >&6
45474 else
45475 if test x$gcc_no_link = xyes; then
45476 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45477 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45478 { (exit 1); exit 1; }; }
45479 fi
45480 cat >conftest.$ac_ext <<_ACEOF
45481 #line $LINENO "configure"
45482 /* confdefs.h. */
45483 _ACEOF
45484 cat confdefs.h >>conftest.$ac_ext
45485 cat >>conftest.$ac_ext <<_ACEOF
45486 /* end confdefs.h. */
45487 /* System header to define __stub macros and hopefully few prototypes,
45488 which can conflict with char $ac_func (); below.
45489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45490 <limits.h> exists even on freestanding compilers. */
45491 #ifdef __STDC__
45492 # include <limits.h>
45493 #else
45494 # include <assert.h>
45495 #endif
45496 /* Override any gcc2 internal prototype to avoid an error. */
45497 #ifdef __cplusplus
45498 extern "C"
45499 {
45500 #endif
45501 /* We use char because int might match the return type of a gcc2
45502 builtin and then its argument prototype would still apply. */
45503 char $ac_func ();
45504 /* The GNU C library defines this for functions which it implements
45505 to always fail with ENOSYS. Some functions are actually named
45506 something starting with __ and the normal name is an alias. */
45507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45508 choke me
45509 #else
45510 char (*f) () = $ac_func;
45511 #endif
45512 #ifdef __cplusplus
45513 }
45514 #endif
45515
45516 int
45517 main ()
45518 {
45519 return f != $ac_func;
45520 ;
45521 return 0;
45522 }
45523 _ACEOF
45524 rm -f conftest.$ac_objext conftest$ac_exeext
45525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45526 (eval $ac_link) 2>&5
45527 ac_status=$?
45528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45529 (exit $ac_status); } &&
45530 { ac_try='test -s conftest$ac_exeext'
45531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45532 (eval $ac_try) 2>&5
45533 ac_status=$?
45534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535 (exit $ac_status); }; }; then
45536 eval "$as_ac_var=yes"
45537 else
45538 echo "$as_me: failed program was:" >&5
45539 sed 's/^/| /' conftest.$ac_ext >&5
45540
45541 eval "$as_ac_var=no"
45542 fi
45543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45544 fi
45545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45547 if test `eval echo '${'$as_ac_var'}'` = yes; then
45548 cat >>confdefs.h <<_ACEOF
45549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45550 _ACEOF
45551 ac_XPG2funcs=yes
45552 else
45553 ac_XPG2funcs=no
45554 fi
45555 done
45556
45557
45558 LIBS="$ac_save_LIBS"
45559
45560 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
45561 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
45562 if test x"$ac_has_iconv_h" = xyes &&
45563 test x"$ac_has_langinfo_h" = xyes &&
45564 test x"$ac_XPG2funcs" = xyes;
45565 then
45566 ac_XPG2_wchar_t=yes
45567 else
45568 ac_XPG2_wchar_t=no
45569 fi
45570 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
45571 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
45572
45573 # At the moment, only enable wchar_t specializations if all the
45574 # above support is present.
45575 if test x"$ac_isoC99_wchar_t" = xyes &&
45576 test x"$ac_XPG2_wchar_t" = xyes;
45577 then
45578 cat >>confdefs.h <<\_ACEOF
45579 #define _GLIBCXX_USE_WCHAR_T 1
45580 _ACEOF
45581
45582 enable_wchar_t=yes
45583 fi
45584 fi
45585 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
45586 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
45587 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
45588 echo "${ECHO_T}$enable_wchar_t" >&6
45589
45590
45591 ac_test_CXXFLAGS="${CXXFLAGS+set}"
45592 ac_save_CXXFLAGS="$CXXFLAGS"
45593 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
45594
45595
45596 echo "$as_me:$LINENO: checking for strtold declaration" >&5
45597 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
45598 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
45599 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
45600 echo $ECHO_N "(cached) $ECHO_C" >&6
45601 else
45602
45603
45604
45605 ac_ext=cc
45606 ac_cpp='$CXXCPP $CPPFLAGS'
45607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45610
45611 cat >conftest.$ac_ext <<_ACEOF
45612 #line $LINENO "configure"
45613 /* confdefs.h. */
45614 _ACEOF
45615 cat confdefs.h >>conftest.$ac_ext
45616 cat >>conftest.$ac_ext <<_ACEOF
45617 /* end confdefs.h. */
45618 #include <stdlib.h>
45619 int
45620 main ()
45621 {
45622 strtold(0, 0);
45623 ;
45624 return 0;
45625 }
45626 _ACEOF
45627 rm -f conftest.$ac_objext
45628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45629 (eval $ac_compile) 2>&5
45630 ac_status=$?
45631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45632 (exit $ac_status); } &&
45633 { ac_try='test -s conftest.$ac_objext'
45634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45635 (eval $ac_try) 2>&5
45636 ac_status=$?
45637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45638 (exit $ac_status); }; }; then
45639 glibcxx_cv_func_strtold_use=yes
45640 else
45641 echo "$as_me: failed program was:" >&5
45642 sed 's/^/| /' conftest.$ac_ext >&5
45643
45644 glibcxx_cv_func_strtold_use=no
45645 fi
45646 rm -f conftest.$ac_objext conftest.$ac_ext
45647 ac_ext=c
45648 ac_cpp='$CPP $CPPFLAGS'
45649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45652
45653
45654 fi
45655
45656 fi
45657 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
45658 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
45659 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
45660
45661 for ac_func in strtold
45662 do
45663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45664 echo "$as_me:$LINENO: checking for $ac_func" >&5
45665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45666 if eval "test \"\${$as_ac_var+set}\" = set"; then
45667 echo $ECHO_N "(cached) $ECHO_C" >&6
45668 else
45669 if test x$gcc_no_link = xyes; then
45670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45672 { (exit 1); exit 1; }; }
45673 fi
45674 cat >conftest.$ac_ext <<_ACEOF
45675 #line $LINENO "configure"
45676 /* confdefs.h. */
45677 _ACEOF
45678 cat confdefs.h >>conftest.$ac_ext
45679 cat >>conftest.$ac_ext <<_ACEOF
45680 /* end confdefs.h. */
45681 /* System header to define __stub macros and hopefully few prototypes,
45682 which can conflict with char $ac_func (); below.
45683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45684 <limits.h> exists even on freestanding compilers. */
45685 #ifdef __STDC__
45686 # include <limits.h>
45687 #else
45688 # include <assert.h>
45689 #endif
45690 /* Override any gcc2 internal prototype to avoid an error. */
45691 #ifdef __cplusplus
45692 extern "C"
45693 {
45694 #endif
45695 /* We use char because int might match the return type of a gcc2
45696 builtin and then its argument prototype would still apply. */
45697 char $ac_func ();
45698 /* The GNU C library defines this for functions which it implements
45699 to always fail with ENOSYS. Some functions are actually named
45700 something starting with __ and the normal name is an alias. */
45701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45702 choke me
45703 #else
45704 char (*f) () = $ac_func;
45705 #endif
45706 #ifdef __cplusplus
45707 }
45708 #endif
45709
45710 int
45711 main ()
45712 {
45713 return f != $ac_func;
45714 ;
45715 return 0;
45716 }
45717 _ACEOF
45718 rm -f conftest.$ac_objext conftest$ac_exeext
45719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45720 (eval $ac_link) 2>&5
45721 ac_status=$?
45722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45723 (exit $ac_status); } &&
45724 { ac_try='test -s conftest$ac_exeext'
45725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45726 (eval $ac_try) 2>&5
45727 ac_status=$?
45728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45729 (exit $ac_status); }; }; then
45730 eval "$as_ac_var=yes"
45731 else
45732 echo "$as_me: failed program was:" >&5
45733 sed 's/^/| /' conftest.$ac_ext >&5
45734
45735 eval "$as_ac_var=no"
45736 fi
45737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45738 fi
45739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45741 if test `eval echo '${'$as_ac_var'}'` = yes; then
45742 cat >>confdefs.h <<_ACEOF
45743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45744 _ACEOF
45745
45746 fi
45747 done
45748
45749 fi
45750
45751
45752 echo "$as_me:$LINENO: checking for strtof declaration" >&5
45753 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
45754 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
45755 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
45756 echo $ECHO_N "(cached) $ECHO_C" >&6
45757 else
45758
45759
45760
45761 ac_ext=cc
45762 ac_cpp='$CXXCPP $CPPFLAGS'
45763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45766
45767 cat >conftest.$ac_ext <<_ACEOF
45768 #line $LINENO "configure"
45769 /* confdefs.h. */
45770 _ACEOF
45771 cat confdefs.h >>conftest.$ac_ext
45772 cat >>conftest.$ac_ext <<_ACEOF
45773 /* end confdefs.h. */
45774 #include <stdlib.h>
45775 int
45776 main ()
45777 {
45778 strtof(0, 0);
45779 ;
45780 return 0;
45781 }
45782 _ACEOF
45783 rm -f conftest.$ac_objext
45784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45785 (eval $ac_compile) 2>&5
45786 ac_status=$?
45787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45788 (exit $ac_status); } &&
45789 { ac_try='test -s conftest.$ac_objext'
45790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45791 (eval $ac_try) 2>&5
45792 ac_status=$?
45793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45794 (exit $ac_status); }; }; then
45795 glibcxx_cv_func_strtof_use=yes
45796 else
45797 echo "$as_me: failed program was:" >&5
45798 sed 's/^/| /' conftest.$ac_ext >&5
45799
45800 glibcxx_cv_func_strtof_use=no
45801 fi
45802 rm -f conftest.$ac_objext conftest.$ac_ext
45803 ac_ext=c
45804 ac_cpp='$CPP $CPPFLAGS'
45805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45808
45809
45810 fi
45811
45812 fi
45813 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
45814 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
45815 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
45816
45817 for ac_func in strtof
45818 do
45819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45820 echo "$as_me:$LINENO: checking for $ac_func" >&5
45821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45822 if eval "test \"\${$as_ac_var+set}\" = set"; then
45823 echo $ECHO_N "(cached) $ECHO_C" >&6
45824 else
45825 if test x$gcc_no_link = xyes; then
45826 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45827 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45828 { (exit 1); exit 1; }; }
45829 fi
45830 cat >conftest.$ac_ext <<_ACEOF
45831 #line $LINENO "configure"
45832 /* confdefs.h. */
45833 _ACEOF
45834 cat confdefs.h >>conftest.$ac_ext
45835 cat >>conftest.$ac_ext <<_ACEOF
45836 /* end confdefs.h. */
45837 /* System header to define __stub macros and hopefully few prototypes,
45838 which can conflict with char $ac_func (); below.
45839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45840 <limits.h> exists even on freestanding compilers. */
45841 #ifdef __STDC__
45842 # include <limits.h>
45843 #else
45844 # include <assert.h>
45845 #endif
45846 /* Override any gcc2 internal prototype to avoid an error. */
45847 #ifdef __cplusplus
45848 extern "C"
45849 {
45850 #endif
45851 /* We use char because int might match the return type of a gcc2
45852 builtin and then its argument prototype would still apply. */
45853 char $ac_func ();
45854 /* The GNU C library defines this for functions which it implements
45855 to always fail with ENOSYS. Some functions are actually named
45856 something starting with __ and the normal name is an alias. */
45857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45858 choke me
45859 #else
45860 char (*f) () = $ac_func;
45861 #endif
45862 #ifdef __cplusplus
45863 }
45864 #endif
45865
45866 int
45867 main ()
45868 {
45869 return f != $ac_func;
45870 ;
45871 return 0;
45872 }
45873 _ACEOF
45874 rm -f conftest.$ac_objext conftest$ac_exeext
45875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45876 (eval $ac_link) 2>&5
45877 ac_status=$?
45878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45879 (exit $ac_status); } &&
45880 { ac_try='test -s conftest$ac_exeext'
45881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45882 (eval $ac_try) 2>&5
45883 ac_status=$?
45884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45885 (exit $ac_status); }; }; then
45886 eval "$as_ac_var=yes"
45887 else
45888 echo "$as_me: failed program was:" >&5
45889 sed 's/^/| /' conftest.$ac_ext >&5
45890
45891 eval "$as_ac_var=no"
45892 fi
45893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45894 fi
45895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45897 if test `eval echo '${'$as_ac_var'}'` = yes; then
45898 cat >>confdefs.h <<_ACEOF
45899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45900 _ACEOF
45901
45902 fi
45903 done
45904
45905 fi
45906
45907
45908 for ac_func in drand48
45909 do
45910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45911 echo "$as_me:$LINENO: checking for $ac_func" >&5
45912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45913 if eval "test \"\${$as_ac_var+set}\" = set"; then
45914 echo $ECHO_N "(cached) $ECHO_C" >&6
45915 else
45916 if test x$gcc_no_link = xyes; then
45917 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45919 { (exit 1); exit 1; }; }
45920 fi
45921 cat >conftest.$ac_ext <<_ACEOF
45922 #line $LINENO "configure"
45923 /* confdefs.h. */
45924 _ACEOF
45925 cat confdefs.h >>conftest.$ac_ext
45926 cat >>conftest.$ac_ext <<_ACEOF
45927 /* end confdefs.h. */
45928 /* System header to define __stub macros and hopefully few prototypes,
45929 which can conflict with char $ac_func (); below.
45930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45931 <limits.h> exists even on freestanding compilers. */
45932 #ifdef __STDC__
45933 # include <limits.h>
45934 #else
45935 # include <assert.h>
45936 #endif
45937 /* Override any gcc2 internal prototype to avoid an error. */
45938 #ifdef __cplusplus
45939 extern "C"
45940 {
45941 #endif
45942 /* We use char because int might match the return type of a gcc2
45943 builtin and then its argument prototype would still apply. */
45944 char $ac_func ();
45945 /* The GNU C library defines this for functions which it implements
45946 to always fail with ENOSYS. Some functions are actually named
45947 something starting with __ and the normal name is an alias. */
45948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45949 choke me
45950 #else
45951 char (*f) () = $ac_func;
45952 #endif
45953 #ifdef __cplusplus
45954 }
45955 #endif
45956
45957 int
45958 main ()
45959 {
45960 return f != $ac_func;
45961 ;
45962 return 0;
45963 }
45964 _ACEOF
45965 rm -f conftest.$ac_objext conftest$ac_exeext
45966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45967 (eval $ac_link) 2>&5
45968 ac_status=$?
45969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45970 (exit $ac_status); } &&
45971 { ac_try='test -s conftest$ac_exeext'
45972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45973 (eval $ac_try) 2>&5
45974 ac_status=$?
45975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45976 (exit $ac_status); }; }; then
45977 eval "$as_ac_var=yes"
45978 else
45979 echo "$as_me: failed program was:" >&5
45980 sed 's/^/| /' conftest.$ac_ext >&5
45981
45982 eval "$as_ac_var=no"
45983 fi
45984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45985 fi
45986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45988 if test `eval echo '${'$as_ac_var'}'` = yes; then
45989 cat >>confdefs.h <<_ACEOF
45990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45991 _ACEOF
45992
45993 fi
45994 done
45995
45996
45997 CXXFLAGS="$ac_save_CXXFLAGS"
45998
45999
46000 # For showmanyc_helper().
46001
46002
46003 for ac_header in sys/ioctl.h sys/filio.h
46004 do
46005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46007 echo "$as_me:$LINENO: checking for $ac_header" >&5
46008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46010 echo $ECHO_N "(cached) $ECHO_C" >&6
46011 fi
46012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46014 else
46015 # Is the header compilable?
46016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46018 cat >conftest.$ac_ext <<_ACEOF
46019 #line $LINENO "configure"
46020 /* confdefs.h. */
46021 _ACEOF
46022 cat confdefs.h >>conftest.$ac_ext
46023 cat >>conftest.$ac_ext <<_ACEOF
46024 /* end confdefs.h. */
46025 $ac_includes_default
46026 #include <$ac_header>
46027 _ACEOF
46028 rm -f conftest.$ac_objext
46029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46030 (eval $ac_compile) 2>&5
46031 ac_status=$?
46032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46033 (exit $ac_status); } &&
46034 { ac_try='test -s conftest.$ac_objext'
46035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46036 (eval $ac_try) 2>&5
46037 ac_status=$?
46038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46039 (exit $ac_status); }; }; then
46040 ac_header_compiler=yes
46041 else
46042 echo "$as_me: failed program was:" >&5
46043 sed 's/^/| /' conftest.$ac_ext >&5
46044
46045 ac_header_compiler=no
46046 fi
46047 rm -f conftest.$ac_objext conftest.$ac_ext
46048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46049 echo "${ECHO_T}$ac_header_compiler" >&6
46050
46051 # Is the header present?
46052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46054 cat >conftest.$ac_ext <<_ACEOF
46055 #line $LINENO "configure"
46056 /* confdefs.h. */
46057 _ACEOF
46058 cat confdefs.h >>conftest.$ac_ext
46059 cat >>conftest.$ac_ext <<_ACEOF
46060 /* end confdefs.h. */
46061 #include <$ac_header>
46062 _ACEOF
46063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46065 ac_status=$?
46066 grep -v '^ *+' conftest.er1 >conftest.err
46067 rm -f conftest.er1
46068 cat conftest.err >&5
46069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46070 (exit $ac_status); } >/dev/null; then
46071 if test -s conftest.err; then
46072 ac_cpp_err=$ac_c_preproc_warn_flag
46073 else
46074 ac_cpp_err=
46075 fi
46076 else
46077 ac_cpp_err=yes
46078 fi
46079 if test -z "$ac_cpp_err"; then
46080 ac_header_preproc=yes
46081 else
46082 echo "$as_me: failed program was:" >&5
46083 sed 's/^/| /' conftest.$ac_ext >&5
46084
46085 ac_header_preproc=no
46086 fi
46087 rm -f conftest.err conftest.$ac_ext
46088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46089 echo "${ECHO_T}$ac_header_preproc" >&6
46090
46091 # So? What about this header?
46092 case $ac_header_compiler:$ac_header_preproc in
46093 yes:no )
46094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46098 (
46099 cat <<\_ASBOX
46100 ## ------------------------------------ ##
46101 ## Report this to bug-autoconf@gnu.org. ##
46102 ## ------------------------------------ ##
46103 _ASBOX
46104 ) |
46105 sed "s/^/$as_me: WARNING: /" >&2
46106 ;;
46107 no:yes )
46108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46114 (
46115 cat <<\_ASBOX
46116 ## ------------------------------------ ##
46117 ## Report this to bug-autoconf@gnu.org. ##
46118 ## ------------------------------------ ##
46119 _ASBOX
46120 ) |
46121 sed "s/^/$as_me: WARNING: /" >&2
46122 ;;
46123 esac
46124 echo "$as_me:$LINENO: checking for $ac_header" >&5
46125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46127 echo $ECHO_N "(cached) $ECHO_C" >&6
46128 else
46129 eval "$as_ac_Header=$ac_header_preproc"
46130 fi
46131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46133
46134 fi
46135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46136 cat >>confdefs.h <<_ACEOF
46137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46138 _ACEOF
46139
46140 fi
46141
46142 done
46143
46144
46145 if test "${glibcxx_cv_POLL+set}" = set; then
46146 echo $ECHO_N "(cached) $ECHO_C" >&6
46147 else
46148
46149 cat >conftest.$ac_ext <<_ACEOF
46150 #line $LINENO "configure"
46151 /* confdefs.h. */
46152 _ACEOF
46153 cat confdefs.h >>conftest.$ac_ext
46154 cat >>conftest.$ac_ext <<_ACEOF
46155 /* end confdefs.h. */
46156 #include <poll.h>
46157 int
46158 main ()
46159 {
46160 struct pollfd pfd[1];
46161 pfd[0].events = POLLIN;
46162 poll(pfd, 1, 0);
46163 ;
46164 return 0;
46165 }
46166 _ACEOF
46167 rm -f conftest.$ac_objext
46168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46169 (eval $ac_compile) 2>&5
46170 ac_status=$?
46171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46172 (exit $ac_status); } &&
46173 { ac_try='test -s conftest.$ac_objext'
46174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46175 (eval $ac_try) 2>&5
46176 ac_status=$?
46177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46178 (exit $ac_status); }; }; then
46179 glibcxx_cv_POLL=yes
46180 else
46181 echo "$as_me: failed program was:" >&5
46182 sed 's/^/| /' conftest.$ac_ext >&5
46183
46184 glibcxx_cv_POLL=no
46185 fi
46186 rm -f conftest.$ac_objext conftest.$ac_ext
46187
46188 fi
46189
46190 if test $glibcxx_cv_POLL = yes; then
46191 cat >>confdefs.h <<\_ACEOF
46192 #define HAVE_POLL 1
46193 _ACEOF
46194
46195 fi
46196
46197
46198 if test "${glibcxx_cv_S_ISREG+set}" = set; then
46199 echo $ECHO_N "(cached) $ECHO_C" >&6
46200 else
46201
46202 if test x$gcc_no_link = xyes; then
46203 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46205 { (exit 1); exit 1; }; }
46206 fi
46207 cat >conftest.$ac_ext <<_ACEOF
46208 #line $LINENO "configure"
46209 /* confdefs.h. */
46210 _ACEOF
46211 cat confdefs.h >>conftest.$ac_ext
46212 cat >>conftest.$ac_ext <<_ACEOF
46213 /* end confdefs.h. */
46214 #include <sys/stat.h>
46215 int
46216 main ()
46217 {
46218 struct stat buffer;
46219 fstat(0, &buffer);
46220 S_ISREG(buffer.st_mode);
46221 ;
46222 return 0;
46223 }
46224 _ACEOF
46225 rm -f conftest.$ac_objext conftest$ac_exeext
46226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46227 (eval $ac_link) 2>&5
46228 ac_status=$?
46229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46230 (exit $ac_status); } &&
46231 { ac_try='test -s conftest$ac_exeext'
46232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46233 (eval $ac_try) 2>&5
46234 ac_status=$?
46235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46236 (exit $ac_status); }; }; then
46237 glibcxx_cv_S_ISREG=yes
46238 else
46239 echo "$as_me: failed program was:" >&5
46240 sed 's/^/| /' conftest.$ac_ext >&5
46241
46242 glibcxx_cv_S_ISREG=no
46243 fi
46244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46245
46246 fi
46247
46248 if test "${glibcxx_cv_S_IFREG+set}" = set; then
46249 echo $ECHO_N "(cached) $ECHO_C" >&6
46250 else
46251
46252 if test x$gcc_no_link = xyes; then
46253 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46254 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46255 { (exit 1); exit 1; }; }
46256 fi
46257 cat >conftest.$ac_ext <<_ACEOF
46258 #line $LINENO "configure"
46259 /* confdefs.h. */
46260 _ACEOF
46261 cat confdefs.h >>conftest.$ac_ext
46262 cat >>conftest.$ac_ext <<_ACEOF
46263 /* end confdefs.h. */
46264 #include <sys/stat.h>
46265 int
46266 main ()
46267 {
46268 struct stat buffer;
46269 fstat(0, &buffer);
46270 S_IFREG & buffer.st_mode;
46271 ;
46272 return 0;
46273 }
46274 _ACEOF
46275 rm -f conftest.$ac_objext conftest$ac_exeext
46276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46277 (eval $ac_link) 2>&5
46278 ac_status=$?
46279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46280 (exit $ac_status); } &&
46281 { ac_try='test -s conftest$ac_exeext'
46282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46283 (eval $ac_try) 2>&5
46284 ac_status=$?
46285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46286 (exit $ac_status); }; }; then
46287 glibcxx_cv_S_IFREG=yes
46288 else
46289 echo "$as_me: failed program was:" >&5
46290 sed 's/^/| /' conftest.$ac_ext >&5
46291
46292 glibcxx_cv_S_IFREG=no
46293 fi
46294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46295
46296 fi
46297
46298 if test $glibcxx_cv_S_ISREG = yes; then
46299 cat >>confdefs.h <<\_ACEOF
46300 #define HAVE_S_ISREG 1
46301 _ACEOF
46302
46303 elif test $glibcxx_cv_S_IFREG = yes; then
46304 cat >>confdefs.h <<\_ACEOF
46305 #define HAVE_S_IFREG 1
46306 _ACEOF
46307
46308 fi
46309
46310
46311 # For xsputn_2().
46312
46313 for ac_header in sys/uio.h
46314 do
46315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46317 echo "$as_me:$LINENO: checking for $ac_header" >&5
46318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46320 echo $ECHO_N "(cached) $ECHO_C" >&6
46321 fi
46322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46324 else
46325 # Is the header compilable?
46326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46328 cat >conftest.$ac_ext <<_ACEOF
46329 #line $LINENO "configure"
46330 /* confdefs.h. */
46331 _ACEOF
46332 cat confdefs.h >>conftest.$ac_ext
46333 cat >>conftest.$ac_ext <<_ACEOF
46334 /* end confdefs.h. */
46335 $ac_includes_default
46336 #include <$ac_header>
46337 _ACEOF
46338 rm -f conftest.$ac_objext
46339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46340 (eval $ac_compile) 2>&5
46341 ac_status=$?
46342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46343 (exit $ac_status); } &&
46344 { ac_try='test -s conftest.$ac_objext'
46345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46346 (eval $ac_try) 2>&5
46347 ac_status=$?
46348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46349 (exit $ac_status); }; }; then
46350 ac_header_compiler=yes
46351 else
46352 echo "$as_me: failed program was:" >&5
46353 sed 's/^/| /' conftest.$ac_ext >&5
46354
46355 ac_header_compiler=no
46356 fi
46357 rm -f conftest.$ac_objext conftest.$ac_ext
46358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46359 echo "${ECHO_T}$ac_header_compiler" >&6
46360
46361 # Is the header present?
46362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46364 cat >conftest.$ac_ext <<_ACEOF
46365 #line $LINENO "configure"
46366 /* confdefs.h. */
46367 _ACEOF
46368 cat confdefs.h >>conftest.$ac_ext
46369 cat >>conftest.$ac_ext <<_ACEOF
46370 /* end confdefs.h. */
46371 #include <$ac_header>
46372 _ACEOF
46373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46375 ac_status=$?
46376 grep -v '^ *+' conftest.er1 >conftest.err
46377 rm -f conftest.er1
46378 cat conftest.err >&5
46379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46380 (exit $ac_status); } >/dev/null; then
46381 if test -s conftest.err; then
46382 ac_cpp_err=$ac_c_preproc_warn_flag
46383 else
46384 ac_cpp_err=
46385 fi
46386 else
46387 ac_cpp_err=yes
46388 fi
46389 if test -z "$ac_cpp_err"; then
46390 ac_header_preproc=yes
46391 else
46392 echo "$as_me: failed program was:" >&5
46393 sed 's/^/| /' conftest.$ac_ext >&5
46394
46395 ac_header_preproc=no
46396 fi
46397 rm -f conftest.err conftest.$ac_ext
46398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46399 echo "${ECHO_T}$ac_header_preproc" >&6
46400
46401 # So? What about this header?
46402 case $ac_header_compiler:$ac_header_preproc in
46403 yes:no )
46404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46408 (
46409 cat <<\_ASBOX
46410 ## ------------------------------------ ##
46411 ## Report this to bug-autoconf@gnu.org. ##
46412 ## ------------------------------------ ##
46413 _ASBOX
46414 ) |
46415 sed "s/^/$as_me: WARNING: /" >&2
46416 ;;
46417 no:yes )
46418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46424 (
46425 cat <<\_ASBOX
46426 ## ------------------------------------ ##
46427 ## Report this to bug-autoconf@gnu.org. ##
46428 ## ------------------------------------ ##
46429 _ASBOX
46430 ) |
46431 sed "s/^/$as_me: WARNING: /" >&2
46432 ;;
46433 esac
46434 echo "$as_me:$LINENO: checking for $ac_header" >&5
46435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46437 echo $ECHO_N "(cached) $ECHO_C" >&6
46438 else
46439 eval "$as_ac_Header=$ac_header_preproc"
46440 fi
46441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46443
46444 fi
46445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46446 cat >>confdefs.h <<_ACEOF
46447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46448 _ACEOF
46449
46450 fi
46451
46452 done
46453
46454
46455 if test "${glibcxx_cv_WRITEV+set}" = set; then
46456 echo $ECHO_N "(cached) $ECHO_C" >&6
46457 else
46458
46459 cat >conftest.$ac_ext <<_ACEOF
46460 #line $LINENO "configure"
46461 /* confdefs.h. */
46462 _ACEOF
46463 cat confdefs.h >>conftest.$ac_ext
46464 cat >>conftest.$ac_ext <<_ACEOF
46465 /* end confdefs.h. */
46466 #include <sys/uio.h>
46467 int
46468 main ()
46469 {
46470 struct iovec iov[2];
46471 writev(0, iov, 0);
46472 ;
46473 return 0;
46474 }
46475 _ACEOF
46476 rm -f conftest.$ac_objext
46477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46478 (eval $ac_compile) 2>&5
46479 ac_status=$?
46480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46481 (exit $ac_status); } &&
46482 { ac_try='test -s conftest.$ac_objext'
46483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46484 (eval $ac_try) 2>&5
46485 ac_status=$?
46486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46487 (exit $ac_status); }; }; then
46488 glibcxx_cv_WRITEV=yes
46489 else
46490 echo "$as_me: failed program was:" >&5
46491 sed 's/^/| /' conftest.$ac_ext >&5
46492
46493 glibcxx_cv_WRITEV=no
46494 fi
46495 rm -f conftest.$ac_objext conftest.$ac_ext
46496
46497 fi
46498
46499 if test $glibcxx_cv_WRITEV = yes; then
46500 cat >>confdefs.h <<\_ACEOF
46501 #define HAVE_WRITEV 1
46502 _ACEOF
46503
46504 fi
46505
46506
46507 cat >>confdefs.h <<\_ACEOF
46508 #define HAVE_LC_MESSAGES 1
46509 _ACEOF
46510
46511
46512 cat >conftest.$ac_ext <<_ACEOF
46513 #line $LINENO "configure"
46514 /* confdefs.h. */
46515 _ACEOF
46516 cat confdefs.h >>conftest.$ac_ext
46517 cat >>conftest.$ac_ext <<_ACEOF
46518 /* end confdefs.h. */
46519 #include <setjmp.h>
46520 int
46521 main ()
46522 {
46523 sigjmp_buf env;
46524 while (! sigsetjmp (env, 1))
46525 siglongjmp (env, 1);
46526
46527 ;
46528 return 0;
46529 }
46530 _ACEOF
46531 rm -f conftest.$ac_objext
46532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46533 (eval $ac_compile) 2>&5
46534 ac_status=$?
46535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46536 (exit $ac_status); } &&
46537 { ac_try='test -s conftest.$ac_objext'
46538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46539 (eval $ac_try) 2>&5
46540 ac_status=$?
46541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46542 (exit $ac_status); }; }; then
46543
46544 cat >>confdefs.h <<\_ACEOF
46545 #define HAVE_SIGSETJMP 1
46546 _ACEOF
46547
46548 else
46549 echo "$as_me: failed program was:" >&5
46550 sed 's/^/| /' conftest.$ac_ext >&5
46551
46552 fi
46553 rm -f conftest.$ac_objext conftest.$ac_ext
46554
46555 cat >>confdefs.h <<\_ACEOF
46556 #define HAVE_MMAP 1
46557 _ACEOF
46558
46559 ;;
46560
46561 *-freebsd*)
46562 #os_include_dir="os/bsd/freebsd"
46563
46564
46565
46566
46567
46568
46569
46570
46571
46572
46573
46574
46575
46576
46577
46578
46579 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
46580 machine/endian.h machine/param.h sys/machine.h sys/types.h \
46581 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
46582 sys/time.h unistd.h
46583 do
46584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46586 echo "$as_me:$LINENO: checking for $ac_header" >&5
46587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46589 echo $ECHO_N "(cached) $ECHO_C" >&6
46590 fi
46591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46593 else
46594 # Is the header compilable?
46595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46597 cat >conftest.$ac_ext <<_ACEOF
46598 #line $LINENO "configure"
46599 /* confdefs.h. */
46600 _ACEOF
46601 cat confdefs.h >>conftest.$ac_ext
46602 cat >>conftest.$ac_ext <<_ACEOF
46603 /* end confdefs.h. */
46604 $ac_includes_default
46605 #include <$ac_header>
46606 _ACEOF
46607 rm -f conftest.$ac_objext
46608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46609 (eval $ac_compile) 2>&5
46610 ac_status=$?
46611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46612 (exit $ac_status); } &&
46613 { ac_try='test -s conftest.$ac_objext'
46614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46615 (eval $ac_try) 2>&5
46616 ac_status=$?
46617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46618 (exit $ac_status); }; }; then
46619 ac_header_compiler=yes
46620 else
46621 echo "$as_me: failed program was:" >&5
46622 sed 's/^/| /' conftest.$ac_ext >&5
46623
46624 ac_header_compiler=no
46625 fi
46626 rm -f conftest.$ac_objext conftest.$ac_ext
46627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46628 echo "${ECHO_T}$ac_header_compiler" >&6
46629
46630 # Is the header present?
46631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46633 cat >conftest.$ac_ext <<_ACEOF
46634 #line $LINENO "configure"
46635 /* confdefs.h. */
46636 _ACEOF
46637 cat confdefs.h >>conftest.$ac_ext
46638 cat >>conftest.$ac_ext <<_ACEOF
46639 /* end confdefs.h. */
46640 #include <$ac_header>
46641 _ACEOF
46642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46644 ac_status=$?
46645 grep -v '^ *+' conftest.er1 >conftest.err
46646 rm -f conftest.er1
46647 cat conftest.err >&5
46648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46649 (exit $ac_status); } >/dev/null; then
46650 if test -s conftest.err; then
46651 ac_cpp_err=$ac_c_preproc_warn_flag
46652 else
46653 ac_cpp_err=
46654 fi
46655 else
46656 ac_cpp_err=yes
46657 fi
46658 if test -z "$ac_cpp_err"; then
46659 ac_header_preproc=yes
46660 else
46661 echo "$as_me: failed program was:" >&5
46662 sed 's/^/| /' conftest.$ac_ext >&5
46663
46664 ac_header_preproc=no
46665 fi
46666 rm -f conftest.err conftest.$ac_ext
46667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46668 echo "${ECHO_T}$ac_header_preproc" >&6
46669
46670 # So? What about this header?
46671 case $ac_header_compiler:$ac_header_preproc in
46672 yes:no )
46673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46677 (
46678 cat <<\_ASBOX
46679 ## ------------------------------------ ##
46680 ## Report this to bug-autoconf@gnu.org. ##
46681 ## ------------------------------------ ##
46682 _ASBOX
46683 ) |
46684 sed "s/^/$as_me: WARNING: /" >&2
46685 ;;
46686 no:yes )
46687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46693 (
46694 cat <<\_ASBOX
46695 ## ------------------------------------ ##
46696 ## Report this to bug-autoconf@gnu.org. ##
46697 ## ------------------------------------ ##
46698 _ASBOX
46699 ) |
46700 sed "s/^/$as_me: WARNING: /" >&2
46701 ;;
46702 esac
46703 echo "$as_me:$LINENO: checking for $ac_header" >&5
46704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46706 echo $ECHO_N "(cached) $ECHO_C" >&6
46707 else
46708 eval "$as_ac_Header=$ac_header_preproc"
46709 fi
46710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46712
46713 fi
46714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46715 cat >>confdefs.h <<_ACEOF
46716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46717 _ACEOF
46718
46719 fi
46720
46721 done
46722
46723 SECTION_FLAGS='-ffunction-sections -fdata-sections'
46724
46725
46726 # If we're not using GNU ld, then there's no point in even trying these
46727 # tests. Check for that first. We should have already tested for gld
46728 # by now (in libtool), but require it now just to be safe...
46729 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
46730 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
46731
46732
46733
46734 # The name set by libtool depends on the version of libtool. Shame on us
46735 # for depending on an impl detail, but c'est la vie. Older versions used
46736 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
46737 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
46738 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
46739 # set (hence we're using an older libtool), then set it.
46740 if test x${with_gnu_ld+set} != xset; then
46741 if test x${ac_cv_prog_gnu_ld+set} != xset; then
46742 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
46743 with_gnu_ld=no
46744 else
46745 with_gnu_ld=$ac_cv_prog_gnu_ld
46746 fi
46747 fi
46748
46749 # Start by getting the version number. I think the libtool test already
46750 # does some of this, but throws away the result.
46751
46752 ldver=`$LD --version 2>/dev/null | head -1 | \
46753 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
46754
46755 glibcxx_gnu_ld_version=`echo $ldver | \
46756 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
46757
46758 # Set --gc-sections.
46759 if test "$with_gnu_ld" = "notbroken"; then
46760 # GNU ld it is! Joy and bunny rabbits!
46761
46762 # All these tests are for C++; save the language and the compiler flags.
46763 # Need to do this so that g++ won't try to link in libstdc++
46764 ac_test_CFLAGS="${CFLAGS+set}"
46765 ac_save_CFLAGS="$CFLAGS"
46766 CFLAGS='-x c++ -Wl,--gc-sections'
46767
46768 # Check for -Wl,--gc-sections
46769 # XXX This test is broken at the moment, as symbols required for linking
46770 # are now in libsupc++ (not built yet). In addition, this test has
46771 # cored on solaris in the past. In addition, --gc-sections doesn't
46772 # really work at the moment (keeps on discarding used sections, first
46773 # .eh_frame and now some of the glibc sections for iconv).
46774 # Bzzzzt. Thanks for playing, maybe next time.
46775 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
46776 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
46777 if test "$cross_compiling" = yes; then
46778 ac_sectionLDflags=yes
46779 else
46780 cat >conftest.$ac_ext <<_ACEOF
46781 #line $LINENO "configure"
46782 /* confdefs.h. */
46783 _ACEOF
46784 cat confdefs.h >>conftest.$ac_ext
46785 cat >>conftest.$ac_ext <<_ACEOF
46786 /* end confdefs.h. */
46787
46788 int main(void)
46789 {
46790 try { throw 1; }
46791 catch (...) { };
46792 return 0;
46793 }
46794
46795 _ACEOF
46796 rm -f conftest$ac_exeext
46797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46798 (eval $ac_link) 2>&5
46799 ac_status=$?
46800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46803 (eval $ac_try) 2>&5
46804 ac_status=$?
46805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46806 (exit $ac_status); }; }; then
46807 ac_sectionLDflags=yes
46808 else
46809 echo "$as_me: program exited with status $ac_status" >&5
46810 echo "$as_me: failed program was:" >&5
46811 sed 's/^/| /' conftest.$ac_ext >&5
46812
46813 ( exit $ac_status )
46814 ac_sectionLDflags=no
46815 fi
46816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46817 fi
46818 if test "$ac_test_CFLAGS" = set; then
46819 CFLAGS="$ac_save_CFLAGS"
46820 else
46821 # this is the suspicious part
46822 CFLAGS=''
46823 fi
46824 if test "$ac_sectionLDflags" = "yes"; then
46825 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
46826 fi
46827 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
46828 echo "${ECHO_T}$ac_sectionLDflags" >&6
46829 fi
46830
46831 # Set linker optimization flags.
46832 if test x"$with_gnu_ld" = x"yes"; then
46833 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
46834 fi
46835
46836
46837
46838
46839
46840
46841 echo "$as_me:$LINENO: checking for main in -lm" >&5
46842 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
46843 if test "${ac_cv_lib_m_main+set}" = set; then
46844 echo $ECHO_N "(cached) $ECHO_C" >&6
46845 else
46846 ac_check_lib_save_LIBS=$LIBS
46847 LIBS="-lm $LIBS"
46848 if test x$gcc_no_link = xyes; then
46849 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46850 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46851 { (exit 1); exit 1; }; }
46852 fi
46853 cat >conftest.$ac_ext <<_ACEOF
46854 #line $LINENO "configure"
46855 /* confdefs.h. */
46856 _ACEOF
46857 cat confdefs.h >>conftest.$ac_ext
46858 cat >>conftest.$ac_ext <<_ACEOF
46859 /* end confdefs.h. */
46860
46861
46862 int
46863 main ()
46864 {
46865 main ();
46866 ;
46867 return 0;
46868 }
46869 _ACEOF
46870 rm -f conftest.$ac_objext conftest$ac_exeext
46871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46872 (eval $ac_link) 2>&5
46873 ac_status=$?
46874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46875 (exit $ac_status); } &&
46876 { ac_try='test -s conftest$ac_exeext'
46877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46878 (eval $ac_try) 2>&5
46879 ac_status=$?
46880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46881 (exit $ac_status); }; }; then
46882 ac_cv_lib_m_main=yes
46883 else
46884 echo "$as_me: failed program was:" >&5
46885 sed 's/^/| /' conftest.$ac_ext >&5
46886
46887 ac_cv_lib_m_main=no
46888 fi
46889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46890 LIBS=$ac_check_lib_save_LIBS
46891 fi
46892 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
46893 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
46894 if test $ac_cv_lib_m_main = yes; then
46895 cat >>confdefs.h <<_ACEOF
46896 #define HAVE_LIBM 1
46897 _ACEOF
46898
46899 LIBS="-lm $LIBS"
46900
46901 fi
46902
46903
46904
46905 for ac_func in nan copysignf
46906 do
46907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46908 echo "$as_me:$LINENO: checking for $ac_func" >&5
46909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46910 if eval "test \"\${$as_ac_var+set}\" = set"; then
46911 echo $ECHO_N "(cached) $ECHO_C" >&6
46912 else
46913 if test x$gcc_no_link = xyes; then
46914 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46915 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46916 { (exit 1); exit 1; }; }
46917 fi
46918 cat >conftest.$ac_ext <<_ACEOF
46919 #line $LINENO "configure"
46920 /* confdefs.h. */
46921 _ACEOF
46922 cat confdefs.h >>conftest.$ac_ext
46923 cat >>conftest.$ac_ext <<_ACEOF
46924 /* end confdefs.h. */
46925 /* System header to define __stub macros and hopefully few prototypes,
46926 which can conflict with char $ac_func (); below.
46927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46928 <limits.h> exists even on freestanding compilers. */
46929 #ifdef __STDC__
46930 # include <limits.h>
46931 #else
46932 # include <assert.h>
46933 #endif
46934 /* Override any gcc2 internal prototype to avoid an error. */
46935 #ifdef __cplusplus
46936 extern "C"
46937 {
46938 #endif
46939 /* We use char because int might match the return type of a gcc2
46940 builtin and then its argument prototype would still apply. */
46941 char $ac_func ();
46942 /* The GNU C library defines this for functions which it implements
46943 to always fail with ENOSYS. Some functions are actually named
46944 something starting with __ and the normal name is an alias. */
46945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46946 choke me
46947 #else
46948 char (*f) () = $ac_func;
46949 #endif
46950 #ifdef __cplusplus
46951 }
46952 #endif
46953
46954 int
46955 main ()
46956 {
46957 return f != $ac_func;
46958 ;
46959 return 0;
46960 }
46961 _ACEOF
46962 rm -f conftest.$ac_objext conftest$ac_exeext
46963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46964 (eval $ac_link) 2>&5
46965 ac_status=$?
46966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46967 (exit $ac_status); } &&
46968 { ac_try='test -s conftest$ac_exeext'
46969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46970 (eval $ac_try) 2>&5
46971 ac_status=$?
46972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46973 (exit $ac_status); }; }; then
46974 eval "$as_ac_var=yes"
46975 else
46976 echo "$as_me: failed program was:" >&5
46977 sed 's/^/| /' conftest.$ac_ext >&5
46978
46979 eval "$as_ac_var=no"
46980 fi
46981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46982 fi
46983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46985 if test `eval echo '${'$as_ac_var'}'` = yes; then
46986 cat >>confdefs.h <<_ACEOF
46987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46988 _ACEOF
46989
46990 else
46991 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
46992 fi
46993 done
46994
46995
46996
46997 for ac_func in __signbit
46998 do
46999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47000 echo "$as_me:$LINENO: checking for $ac_func" >&5
47001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47002 if eval "test \"\${$as_ac_var+set}\" = set"; then
47003 echo $ECHO_N "(cached) $ECHO_C" >&6
47004 else
47005 if test x$gcc_no_link = xyes; then
47006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47008 { (exit 1); exit 1; }; }
47009 fi
47010 cat >conftest.$ac_ext <<_ACEOF
47011 #line $LINENO "configure"
47012 /* confdefs.h. */
47013 _ACEOF
47014 cat confdefs.h >>conftest.$ac_ext
47015 cat >>conftest.$ac_ext <<_ACEOF
47016 /* end confdefs.h. */
47017 /* System header to define __stub macros and hopefully few prototypes,
47018 which can conflict with char $ac_func (); below.
47019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47020 <limits.h> exists even on freestanding compilers. */
47021 #ifdef __STDC__
47022 # include <limits.h>
47023 #else
47024 # include <assert.h>
47025 #endif
47026 /* Override any gcc2 internal prototype to avoid an error. */
47027 #ifdef __cplusplus
47028 extern "C"
47029 {
47030 #endif
47031 /* We use char because int might match the return type of a gcc2
47032 builtin and then its argument prototype would still apply. */
47033 char $ac_func ();
47034 /* The GNU C library defines this for functions which it implements
47035 to always fail with ENOSYS. Some functions are actually named
47036 something starting with __ and the normal name is an alias. */
47037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47038 choke me
47039 #else
47040 char (*f) () = $ac_func;
47041 #endif
47042 #ifdef __cplusplus
47043 }
47044 #endif
47045
47046 int
47047 main ()
47048 {
47049 return f != $ac_func;
47050 ;
47051 return 0;
47052 }
47053 _ACEOF
47054 rm -f conftest.$ac_objext conftest$ac_exeext
47055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47056 (eval $ac_link) 2>&5
47057 ac_status=$?
47058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47059 (exit $ac_status); } &&
47060 { ac_try='test -s conftest$ac_exeext'
47061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47062 (eval $ac_try) 2>&5
47063 ac_status=$?
47064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47065 (exit $ac_status); }; }; then
47066 eval "$as_ac_var=yes"
47067 else
47068 echo "$as_me: failed program was:" >&5
47069 sed 's/^/| /' conftest.$ac_ext >&5
47070
47071 eval "$as_ac_var=no"
47072 fi
47073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47074 fi
47075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47077 if test `eval echo '${'$as_ac_var'}'` = yes; then
47078 cat >>confdefs.h <<_ACEOF
47079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47080 _ACEOF
47081
47082 else
47083 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
47084 fi
47085 done
47086
47087
47088 for ac_func in __signbitf
47089 do
47090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47091 echo "$as_me:$LINENO: checking for $ac_func" >&5
47092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47093 if eval "test \"\${$as_ac_var+set}\" = set"; then
47094 echo $ECHO_N "(cached) $ECHO_C" >&6
47095 else
47096 if test x$gcc_no_link = xyes; then
47097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47099 { (exit 1); exit 1; }; }
47100 fi
47101 cat >conftest.$ac_ext <<_ACEOF
47102 #line $LINENO "configure"
47103 /* confdefs.h. */
47104 _ACEOF
47105 cat confdefs.h >>conftest.$ac_ext
47106 cat >>conftest.$ac_ext <<_ACEOF
47107 /* end confdefs.h. */
47108 /* System header to define __stub macros and hopefully few prototypes,
47109 which can conflict with char $ac_func (); below.
47110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47111 <limits.h> exists even on freestanding compilers. */
47112 #ifdef __STDC__
47113 # include <limits.h>
47114 #else
47115 # include <assert.h>
47116 #endif
47117 /* Override any gcc2 internal prototype to avoid an error. */
47118 #ifdef __cplusplus
47119 extern "C"
47120 {
47121 #endif
47122 /* We use char because int might match the return type of a gcc2
47123 builtin and then its argument prototype would still apply. */
47124 char $ac_func ();
47125 /* The GNU C library defines this for functions which it implements
47126 to always fail with ENOSYS. Some functions are actually named
47127 something starting with __ and the normal name is an alias. */
47128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47129 choke me
47130 #else
47131 char (*f) () = $ac_func;
47132 #endif
47133 #ifdef __cplusplus
47134 }
47135 #endif
47136
47137 int
47138 main ()
47139 {
47140 return f != $ac_func;
47141 ;
47142 return 0;
47143 }
47144 _ACEOF
47145 rm -f conftest.$ac_objext conftest$ac_exeext
47146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47147 (eval $ac_link) 2>&5
47148 ac_status=$?
47149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47150 (exit $ac_status); } &&
47151 { ac_try='test -s conftest$ac_exeext'
47152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47153 (eval $ac_try) 2>&5
47154 ac_status=$?
47155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47156 (exit $ac_status); }; }; then
47157 eval "$as_ac_var=yes"
47158 else
47159 echo "$as_me: failed program was:" >&5
47160 sed 's/^/| /' conftest.$ac_ext >&5
47161
47162 eval "$as_ac_var=no"
47163 fi
47164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47165 fi
47166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47168 if test `eval echo '${'$as_ac_var'}'` = yes; then
47169 cat >>confdefs.h <<_ACEOF
47170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47171 _ACEOF
47172
47173 else
47174 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
47175 fi
47176 done
47177
47178
47179 if test x$ac_cv_func_copysignl = x"yes"; then
47180
47181 for ac_func in __signbitl
47182 do
47183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47184 echo "$as_me:$LINENO: checking for $ac_func" >&5
47185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47186 if eval "test \"\${$as_ac_var+set}\" = set"; then
47187 echo $ECHO_N "(cached) $ECHO_C" >&6
47188 else
47189 if test x$gcc_no_link = xyes; then
47190 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47192 { (exit 1); exit 1; }; }
47193 fi
47194 cat >conftest.$ac_ext <<_ACEOF
47195 #line $LINENO "configure"
47196 /* confdefs.h. */
47197 _ACEOF
47198 cat confdefs.h >>conftest.$ac_ext
47199 cat >>conftest.$ac_ext <<_ACEOF
47200 /* end confdefs.h. */
47201 /* System header to define __stub macros and hopefully few prototypes,
47202 which can conflict with char $ac_func (); below.
47203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47204 <limits.h> exists even on freestanding compilers. */
47205 #ifdef __STDC__
47206 # include <limits.h>
47207 #else
47208 # include <assert.h>
47209 #endif
47210 /* Override any gcc2 internal prototype to avoid an error. */
47211 #ifdef __cplusplus
47212 extern "C"
47213 {
47214 #endif
47215 /* We use char because int might match the return type of a gcc2
47216 builtin and then its argument prototype would still apply. */
47217 char $ac_func ();
47218 /* The GNU C library defines this for functions which it implements
47219 to always fail with ENOSYS. Some functions are actually named
47220 something starting with __ and the normal name is an alias. */
47221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47222 choke me
47223 #else
47224 char (*f) () = $ac_func;
47225 #endif
47226 #ifdef __cplusplus
47227 }
47228 #endif
47229
47230 int
47231 main ()
47232 {
47233 return f != $ac_func;
47234 ;
47235 return 0;
47236 }
47237 _ACEOF
47238 rm -f conftest.$ac_objext conftest$ac_exeext
47239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47240 (eval $ac_link) 2>&5
47241 ac_status=$?
47242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47243 (exit $ac_status); } &&
47244 { ac_try='test -s conftest$ac_exeext'
47245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47246 (eval $ac_try) 2>&5
47247 ac_status=$?
47248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47249 (exit $ac_status); }; }; then
47250 eval "$as_ac_var=yes"
47251 else
47252 echo "$as_me: failed program was:" >&5
47253 sed 's/^/| /' conftest.$ac_ext >&5
47254
47255 eval "$as_ac_var=no"
47256 fi
47257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47258 fi
47259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47261 if test `eval echo '${'$as_ac_var'}'` = yes; then
47262 cat >>confdefs.h <<_ACEOF
47263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47264 _ACEOF
47265
47266 else
47267 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
47268 fi
47269 done
47270
47271 fi
47272
47273 # XXX Review this. Nothing uses it.
47274 if test -n "$LIBMATHOBJS"; then
47275 need_libmath=yes
47276 fi
47277
47278
47279
47280 # Test wchar.h for mbstate_t, which is needed for char_traits and
47281 # others even if wchar_t support is not on.
47282 echo "$as_me:$LINENO: checking for mbstate_t" >&5
47283 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
47284 cat >conftest.$ac_ext <<_ACEOF
47285 #line $LINENO "configure"
47286 /* confdefs.h. */
47287 _ACEOF
47288 cat confdefs.h >>conftest.$ac_ext
47289 cat >>conftest.$ac_ext <<_ACEOF
47290 /* end confdefs.h. */
47291 #include <wchar.h>
47292 int
47293 main ()
47294 {
47295 mbstate_t teststate;
47296 ;
47297 return 0;
47298 }
47299 _ACEOF
47300 rm -f conftest.$ac_objext
47301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47302 (eval $ac_compile) 2>&5
47303 ac_status=$?
47304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47305 (exit $ac_status); } &&
47306 { ac_try='test -s conftest.$ac_objext'
47307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47308 (eval $ac_try) 2>&5
47309 ac_status=$?
47310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47311 (exit $ac_status); }; }; then
47312 have_mbstate_t=yes
47313 else
47314 echo "$as_me: failed program was:" >&5
47315 sed 's/^/| /' conftest.$ac_ext >&5
47316
47317 have_mbstate_t=no
47318 fi
47319 rm -f conftest.$ac_objext conftest.$ac_ext
47320 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
47321 echo "${ECHO_T}$have_mbstate_t" >&6
47322 if test x"$have_mbstate_t" = xyes; then
47323 cat >>confdefs.h <<\_ACEOF
47324 #define HAVE_MBSTATE_T 1
47325 _ACEOF
47326
47327 fi
47328
47329 # Sanity check for existence of ISO C99 headers for extended encoding.
47330
47331 for ac_header in wchar.h
47332 do
47333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47335 echo "$as_me:$LINENO: checking for $ac_header" >&5
47336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47338 echo $ECHO_N "(cached) $ECHO_C" >&6
47339 fi
47340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47342 else
47343 # Is the header compilable?
47344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47346 cat >conftest.$ac_ext <<_ACEOF
47347 #line $LINENO "configure"
47348 /* confdefs.h. */
47349 _ACEOF
47350 cat confdefs.h >>conftest.$ac_ext
47351 cat >>conftest.$ac_ext <<_ACEOF
47352 /* end confdefs.h. */
47353 $ac_includes_default
47354 #include <$ac_header>
47355 _ACEOF
47356 rm -f conftest.$ac_objext
47357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47358 (eval $ac_compile) 2>&5
47359 ac_status=$?
47360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47361 (exit $ac_status); } &&
47362 { ac_try='test -s conftest.$ac_objext'
47363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47364 (eval $ac_try) 2>&5
47365 ac_status=$?
47366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47367 (exit $ac_status); }; }; then
47368 ac_header_compiler=yes
47369 else
47370 echo "$as_me: failed program was:" >&5
47371 sed 's/^/| /' conftest.$ac_ext >&5
47372
47373 ac_header_compiler=no
47374 fi
47375 rm -f conftest.$ac_objext conftest.$ac_ext
47376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47377 echo "${ECHO_T}$ac_header_compiler" >&6
47378
47379 # Is the header present?
47380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47382 cat >conftest.$ac_ext <<_ACEOF
47383 #line $LINENO "configure"
47384 /* confdefs.h. */
47385 _ACEOF
47386 cat confdefs.h >>conftest.$ac_ext
47387 cat >>conftest.$ac_ext <<_ACEOF
47388 /* end confdefs.h. */
47389 #include <$ac_header>
47390 _ACEOF
47391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47393 ac_status=$?
47394 grep -v '^ *+' conftest.er1 >conftest.err
47395 rm -f conftest.er1
47396 cat conftest.err >&5
47397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47398 (exit $ac_status); } >/dev/null; then
47399 if test -s conftest.err; then
47400 ac_cpp_err=$ac_c_preproc_warn_flag
47401 else
47402 ac_cpp_err=
47403 fi
47404 else
47405 ac_cpp_err=yes
47406 fi
47407 if test -z "$ac_cpp_err"; then
47408 ac_header_preproc=yes
47409 else
47410 echo "$as_me: failed program was:" >&5
47411 sed 's/^/| /' conftest.$ac_ext >&5
47412
47413 ac_header_preproc=no
47414 fi
47415 rm -f conftest.err conftest.$ac_ext
47416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47417 echo "${ECHO_T}$ac_header_preproc" >&6
47418
47419 # So? What about this header?
47420 case $ac_header_compiler:$ac_header_preproc in
47421 yes:no )
47422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47426 (
47427 cat <<\_ASBOX
47428 ## ------------------------------------ ##
47429 ## Report this to bug-autoconf@gnu.org. ##
47430 ## ------------------------------------ ##
47431 _ASBOX
47432 ) |
47433 sed "s/^/$as_me: WARNING: /" >&2
47434 ;;
47435 no:yes )
47436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47442 (
47443 cat <<\_ASBOX
47444 ## ------------------------------------ ##
47445 ## Report this to bug-autoconf@gnu.org. ##
47446 ## ------------------------------------ ##
47447 _ASBOX
47448 ) |
47449 sed "s/^/$as_me: WARNING: /" >&2
47450 ;;
47451 esac
47452 echo "$as_me:$LINENO: checking for $ac_header" >&5
47453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47455 echo $ECHO_N "(cached) $ECHO_C" >&6
47456 else
47457 eval "$as_ac_Header=$ac_header_preproc"
47458 fi
47459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47461
47462 fi
47463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47464 cat >>confdefs.h <<_ACEOF
47465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47466 _ACEOF
47467 ac_has_wchar_h=yes
47468 else
47469 ac_has_wchar_h=no
47470 fi
47471
47472 done
47473
47474
47475 for ac_header in wctype.h
47476 do
47477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47479 echo "$as_me:$LINENO: checking for $ac_header" >&5
47480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47482 echo $ECHO_N "(cached) $ECHO_C" >&6
47483 fi
47484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47486 else
47487 # Is the header compilable?
47488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47490 cat >conftest.$ac_ext <<_ACEOF
47491 #line $LINENO "configure"
47492 /* confdefs.h. */
47493 _ACEOF
47494 cat confdefs.h >>conftest.$ac_ext
47495 cat >>conftest.$ac_ext <<_ACEOF
47496 /* end confdefs.h. */
47497 $ac_includes_default
47498 #include <$ac_header>
47499 _ACEOF
47500 rm -f conftest.$ac_objext
47501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47502 (eval $ac_compile) 2>&5
47503 ac_status=$?
47504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47505 (exit $ac_status); } &&
47506 { ac_try='test -s conftest.$ac_objext'
47507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47508 (eval $ac_try) 2>&5
47509 ac_status=$?
47510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47511 (exit $ac_status); }; }; then
47512 ac_header_compiler=yes
47513 else
47514 echo "$as_me: failed program was:" >&5
47515 sed 's/^/| /' conftest.$ac_ext >&5
47516
47517 ac_header_compiler=no
47518 fi
47519 rm -f conftest.$ac_objext conftest.$ac_ext
47520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47521 echo "${ECHO_T}$ac_header_compiler" >&6
47522
47523 # Is the header present?
47524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47526 cat >conftest.$ac_ext <<_ACEOF
47527 #line $LINENO "configure"
47528 /* confdefs.h. */
47529 _ACEOF
47530 cat confdefs.h >>conftest.$ac_ext
47531 cat >>conftest.$ac_ext <<_ACEOF
47532 /* end confdefs.h. */
47533 #include <$ac_header>
47534 _ACEOF
47535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47537 ac_status=$?
47538 grep -v '^ *+' conftest.er1 >conftest.err
47539 rm -f conftest.er1
47540 cat conftest.err >&5
47541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47542 (exit $ac_status); } >/dev/null; then
47543 if test -s conftest.err; then
47544 ac_cpp_err=$ac_c_preproc_warn_flag
47545 else
47546 ac_cpp_err=
47547 fi
47548 else
47549 ac_cpp_err=yes
47550 fi
47551 if test -z "$ac_cpp_err"; then
47552 ac_header_preproc=yes
47553 else
47554 echo "$as_me: failed program was:" >&5
47555 sed 's/^/| /' conftest.$ac_ext >&5
47556
47557 ac_header_preproc=no
47558 fi
47559 rm -f conftest.err conftest.$ac_ext
47560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47561 echo "${ECHO_T}$ac_header_preproc" >&6
47562
47563 # So? What about this header?
47564 case $ac_header_compiler:$ac_header_preproc in
47565 yes:no )
47566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47570 (
47571 cat <<\_ASBOX
47572 ## ------------------------------------ ##
47573 ## Report this to bug-autoconf@gnu.org. ##
47574 ## ------------------------------------ ##
47575 _ASBOX
47576 ) |
47577 sed "s/^/$as_me: WARNING: /" >&2
47578 ;;
47579 no:yes )
47580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47586 (
47587 cat <<\_ASBOX
47588 ## ------------------------------------ ##
47589 ## Report this to bug-autoconf@gnu.org. ##
47590 ## ------------------------------------ ##
47591 _ASBOX
47592 ) |
47593 sed "s/^/$as_me: WARNING: /" >&2
47594 ;;
47595 esac
47596 echo "$as_me:$LINENO: checking for $ac_header" >&5
47597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47599 echo $ECHO_N "(cached) $ECHO_C" >&6
47600 else
47601 eval "$as_ac_Header=$ac_header_preproc"
47602 fi
47603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47605
47606 fi
47607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47608 cat >>confdefs.h <<_ACEOF
47609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47610 _ACEOF
47611 ac_has_wctype_h=yes
47612 else
47613 ac_has_wctype_h=no
47614 fi
47615
47616 done
47617
47618
47619 # Only continue checking if the ISO C99 headers exist and support is on.
47620 if test x"$ac_has_wchar_h" = xyes &&
47621 test x"$ac_has_wctype_h" = xyes &&
47622 test x"$enable_c_mbchar" != xno; then
47623
47624 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
47625 # numeric_limits can instantiate type_traits<wchar_t>
47626 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
47627 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
47628 cat >conftest.$ac_ext <<_ACEOF
47629 #line $LINENO "configure"
47630 /* confdefs.h. */
47631 _ACEOF
47632 cat confdefs.h >>conftest.$ac_ext
47633 cat >>conftest.$ac_ext <<_ACEOF
47634 /* end confdefs.h. */
47635 #include <wchar.h>
47636 int
47637 main ()
47638 {
47639 int i = WCHAR_MIN; int j = WCHAR_MAX;
47640 ;
47641 return 0;
47642 }
47643 _ACEOF
47644 rm -f conftest.$ac_objext
47645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47646 (eval $ac_compile) 2>&5
47647 ac_status=$?
47648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47649 (exit $ac_status); } &&
47650 { ac_try='test -s conftest.$ac_objext'
47651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47652 (eval $ac_try) 2>&5
47653 ac_status=$?
47654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47655 (exit $ac_status); }; }; then
47656 has_wchar_minmax=yes
47657 else
47658 echo "$as_me: failed program was:" >&5
47659 sed 's/^/| /' conftest.$ac_ext >&5
47660
47661 has_wchar_minmax=no
47662 fi
47663 rm -f conftest.$ac_objext conftest.$ac_ext
47664 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
47665 echo "${ECHO_T}$has_wchar_minmax" >&6
47666
47667 # Test wchar.h for WEOF, which is what we use to determine whether
47668 # to specialize for char_traits<wchar_t> or not.
47669 echo "$as_me:$LINENO: checking for WEOF" >&5
47670 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
47671 cat >conftest.$ac_ext <<_ACEOF
47672 #line $LINENO "configure"
47673 /* confdefs.h. */
47674 _ACEOF
47675 cat confdefs.h >>conftest.$ac_ext
47676 cat >>conftest.$ac_ext <<_ACEOF
47677 /* end confdefs.h. */
47678
47679 #include <wchar.h>
47680 #include <stddef.h>
47681 int
47682 main ()
47683 {
47684 wint_t i = WEOF;
47685 ;
47686 return 0;
47687 }
47688 _ACEOF
47689 rm -f conftest.$ac_objext
47690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47691 (eval $ac_compile) 2>&5
47692 ac_status=$?
47693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47694 (exit $ac_status); } &&
47695 { ac_try='test -s conftest.$ac_objext'
47696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47697 (eval $ac_try) 2>&5
47698 ac_status=$?
47699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47700 (exit $ac_status); }; }; then
47701 has_weof=yes
47702 else
47703 echo "$as_me: failed program was:" >&5
47704 sed 's/^/| /' conftest.$ac_ext >&5
47705
47706 has_weof=no
47707 fi
47708 rm -f conftest.$ac_objext conftest.$ac_ext
47709 echo "$as_me:$LINENO: result: $has_weof" >&5
47710 echo "${ECHO_T}$has_weof" >&6
47711
47712 # Tests for wide character functions used in char_traits<wchar_t>.
47713 ac_wfuncs=yes
47714
47715
47716
47717
47718
47719
47720 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
47721 do
47722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47723 echo "$as_me:$LINENO: checking for $ac_func" >&5
47724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47725 if eval "test \"\${$as_ac_var+set}\" = set"; then
47726 echo $ECHO_N "(cached) $ECHO_C" >&6
47727 else
47728 if test x$gcc_no_link = xyes; then
47729 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47731 { (exit 1); exit 1; }; }
47732 fi
47733 cat >conftest.$ac_ext <<_ACEOF
47734 #line $LINENO "configure"
47735 /* confdefs.h. */
47736 _ACEOF
47737 cat confdefs.h >>conftest.$ac_ext
47738 cat >>conftest.$ac_ext <<_ACEOF
47739 /* end confdefs.h. */
47740 /* System header to define __stub macros and hopefully few prototypes,
47741 which can conflict with char $ac_func (); below.
47742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47743 <limits.h> exists even on freestanding compilers. */
47744 #ifdef __STDC__
47745 # include <limits.h>
47746 #else
47747 # include <assert.h>
47748 #endif
47749 /* Override any gcc2 internal prototype to avoid an error. */
47750 #ifdef __cplusplus
47751 extern "C"
47752 {
47753 #endif
47754 /* We use char because int might match the return type of a gcc2
47755 builtin and then its argument prototype would still apply. */
47756 char $ac_func ();
47757 /* The GNU C library defines this for functions which it implements
47758 to always fail with ENOSYS. Some functions are actually named
47759 something starting with __ and the normal name is an alias. */
47760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47761 choke me
47762 #else
47763 char (*f) () = $ac_func;
47764 #endif
47765 #ifdef __cplusplus
47766 }
47767 #endif
47768
47769 int
47770 main ()
47771 {
47772 return f != $ac_func;
47773 ;
47774 return 0;
47775 }
47776 _ACEOF
47777 rm -f conftest.$ac_objext conftest$ac_exeext
47778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47779 (eval $ac_link) 2>&5
47780 ac_status=$?
47781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47782 (exit $ac_status); } &&
47783 { ac_try='test -s conftest$ac_exeext'
47784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47785 (eval $ac_try) 2>&5
47786 ac_status=$?
47787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47788 (exit $ac_status); }; }; then
47789 eval "$as_ac_var=yes"
47790 else
47791 echo "$as_me: failed program was:" >&5
47792 sed 's/^/| /' conftest.$ac_ext >&5
47793
47794 eval "$as_ac_var=no"
47795 fi
47796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47797 fi
47798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47800 if test `eval echo '${'$as_ac_var'}'` = yes; then
47801 cat >>confdefs.h <<_ACEOF
47802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47803 _ACEOF
47804
47805 else
47806 ac_wfuncs=no
47807 fi
47808 done
47809
47810
47811 # Checks for names injected into std:: by the c_std headers.
47812
47813
47814
47815
47816
47817
47818
47819
47820
47821
47822
47823
47824
47825
47826
47827
47828
47829
47830
47831
47832
47833
47834
47835
47836
47837
47838
47839
47840
47841
47842
47843
47844
47845
47846
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856
47857
47858
47859
47860
47861
47862 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
47863 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
47864 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
47865 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
47866 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
47867 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
47868 do
47869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47870 echo "$as_me:$LINENO: checking for $ac_func" >&5
47871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47872 if eval "test \"\${$as_ac_var+set}\" = set"; then
47873 echo $ECHO_N "(cached) $ECHO_C" >&6
47874 else
47875 if test x$gcc_no_link = xyes; then
47876 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47878 { (exit 1); exit 1; }; }
47879 fi
47880 cat >conftest.$ac_ext <<_ACEOF
47881 #line $LINENO "configure"
47882 /* confdefs.h. */
47883 _ACEOF
47884 cat confdefs.h >>conftest.$ac_ext
47885 cat >>conftest.$ac_ext <<_ACEOF
47886 /* end confdefs.h. */
47887 /* System header to define __stub macros and hopefully few prototypes,
47888 which can conflict with char $ac_func (); below.
47889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47890 <limits.h> exists even on freestanding compilers. */
47891 #ifdef __STDC__
47892 # include <limits.h>
47893 #else
47894 # include <assert.h>
47895 #endif
47896 /* Override any gcc2 internal prototype to avoid an error. */
47897 #ifdef __cplusplus
47898 extern "C"
47899 {
47900 #endif
47901 /* We use char because int might match the return type of a gcc2
47902 builtin and then its argument prototype would still apply. */
47903 char $ac_func ();
47904 /* The GNU C library defines this for functions which it implements
47905 to always fail with ENOSYS. Some functions are actually named
47906 something starting with __ and the normal name is an alias. */
47907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47908 choke me
47909 #else
47910 char (*f) () = $ac_func;
47911 #endif
47912 #ifdef __cplusplus
47913 }
47914 #endif
47915
47916 int
47917 main ()
47918 {
47919 return f != $ac_func;
47920 ;
47921 return 0;
47922 }
47923 _ACEOF
47924 rm -f conftest.$ac_objext conftest$ac_exeext
47925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47926 (eval $ac_link) 2>&5
47927 ac_status=$?
47928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47929 (exit $ac_status); } &&
47930 { ac_try='test -s conftest$ac_exeext'
47931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47932 (eval $ac_try) 2>&5
47933 ac_status=$?
47934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47935 (exit $ac_status); }; }; then
47936 eval "$as_ac_var=yes"
47937 else
47938 echo "$as_me: failed program was:" >&5
47939 sed 's/^/| /' conftest.$ac_ext >&5
47940
47941 eval "$as_ac_var=no"
47942 fi
47943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47944 fi
47945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47947 if test `eval echo '${'$as_ac_var'}'` = yes; then
47948 cat >>confdefs.h <<_ACEOF
47949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47950 _ACEOF
47951
47952 else
47953 ac_wfuncs=no
47954 fi
47955 done
47956
47957
47958 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
47959 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
47960 if test x"$has_weof" = xyes &&
47961 test x"$has_wchar_minmax" = xyes &&
47962 test x"$ac_wfuncs" = xyes;
47963 then
47964 ac_isoC99_wchar_t=yes
47965 else
47966 ac_isoC99_wchar_t=no
47967 fi
47968 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
47969 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
47970
47971 # Use iconv for wchar_t to char conversions. As such, check for
47972 # X/Open Portability Guide, version 2 features (XPG2).
47973 if test "${ac_cv_header_iconv_h+set}" = set; then
47974 echo "$as_me:$LINENO: checking for iconv.h" >&5
47975 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
47976 if test "${ac_cv_header_iconv_h+set}" = set; then
47977 echo $ECHO_N "(cached) $ECHO_C" >&6
47978 fi
47979 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
47980 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
47981 else
47982 # Is the header compilable?
47983 echo "$as_me:$LINENO: checking iconv.h usability" >&5
47984 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
47985 cat >conftest.$ac_ext <<_ACEOF
47986 #line $LINENO "configure"
47987 /* confdefs.h. */
47988 _ACEOF
47989 cat confdefs.h >>conftest.$ac_ext
47990 cat >>conftest.$ac_ext <<_ACEOF
47991 /* end confdefs.h. */
47992 $ac_includes_default
47993 #include <iconv.h>
47994 _ACEOF
47995 rm -f conftest.$ac_objext
47996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47997 (eval $ac_compile) 2>&5
47998 ac_status=$?
47999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48000 (exit $ac_status); } &&
48001 { ac_try='test -s conftest.$ac_objext'
48002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48003 (eval $ac_try) 2>&5
48004 ac_status=$?
48005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48006 (exit $ac_status); }; }; then
48007 ac_header_compiler=yes
48008 else
48009 echo "$as_me: failed program was:" >&5
48010 sed 's/^/| /' conftest.$ac_ext >&5
48011
48012 ac_header_compiler=no
48013 fi
48014 rm -f conftest.$ac_objext conftest.$ac_ext
48015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48016 echo "${ECHO_T}$ac_header_compiler" >&6
48017
48018 # Is the header present?
48019 echo "$as_me:$LINENO: checking iconv.h presence" >&5
48020 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
48021 cat >conftest.$ac_ext <<_ACEOF
48022 #line $LINENO "configure"
48023 /* confdefs.h. */
48024 _ACEOF
48025 cat confdefs.h >>conftest.$ac_ext
48026 cat >>conftest.$ac_ext <<_ACEOF
48027 /* end confdefs.h. */
48028 #include <iconv.h>
48029 _ACEOF
48030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48032 ac_status=$?
48033 grep -v '^ *+' conftest.er1 >conftest.err
48034 rm -f conftest.er1
48035 cat conftest.err >&5
48036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48037 (exit $ac_status); } >/dev/null; then
48038 if test -s conftest.err; then
48039 ac_cpp_err=$ac_c_preproc_warn_flag
48040 else
48041 ac_cpp_err=
48042 fi
48043 else
48044 ac_cpp_err=yes
48045 fi
48046 if test -z "$ac_cpp_err"; then
48047 ac_header_preproc=yes
48048 else
48049 echo "$as_me: failed program was:" >&5
48050 sed 's/^/| /' conftest.$ac_ext >&5
48051
48052 ac_header_preproc=no
48053 fi
48054 rm -f conftest.err conftest.$ac_ext
48055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48056 echo "${ECHO_T}$ac_header_preproc" >&6
48057
48058 # So? What about this header?
48059 case $ac_header_compiler:$ac_header_preproc in
48060 yes:no )
48061 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
48062 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48063 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48064 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48065 (
48066 cat <<\_ASBOX
48067 ## ------------------------------------ ##
48068 ## Report this to bug-autoconf@gnu.org. ##
48069 ## ------------------------------------ ##
48070 _ASBOX
48071 ) |
48072 sed "s/^/$as_me: WARNING: /" >&2
48073 ;;
48074 no:yes )
48075 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
48076 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
48077 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
48078 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
48079 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48080 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48081 (
48082 cat <<\_ASBOX
48083 ## ------------------------------------ ##
48084 ## Report this to bug-autoconf@gnu.org. ##
48085 ## ------------------------------------ ##
48086 _ASBOX
48087 ) |
48088 sed "s/^/$as_me: WARNING: /" >&2
48089 ;;
48090 esac
48091 echo "$as_me:$LINENO: checking for iconv.h" >&5
48092 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48093 if test "${ac_cv_header_iconv_h+set}" = set; then
48094 echo $ECHO_N "(cached) $ECHO_C" >&6
48095 else
48096 ac_cv_header_iconv_h=$ac_header_preproc
48097 fi
48098 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48099 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48100
48101 fi
48102 if test $ac_cv_header_iconv_h = yes; then
48103 ac_has_iconv_h=yes
48104 else
48105 ac_has_iconv_h=no
48106 fi
48107
48108
48109 if test "${ac_cv_header_langinfo_h+set}" = set; then
48110 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48111 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48112 if test "${ac_cv_header_langinfo_h+set}" = set; then
48113 echo $ECHO_N "(cached) $ECHO_C" >&6
48114 fi
48115 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48116 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48117 else
48118 # Is the header compilable?
48119 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
48120 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
48121 cat >conftest.$ac_ext <<_ACEOF
48122 #line $LINENO "configure"
48123 /* confdefs.h. */
48124 _ACEOF
48125 cat confdefs.h >>conftest.$ac_ext
48126 cat >>conftest.$ac_ext <<_ACEOF
48127 /* end confdefs.h. */
48128 $ac_includes_default
48129 #include <langinfo.h>
48130 _ACEOF
48131 rm -f conftest.$ac_objext
48132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48133 (eval $ac_compile) 2>&5
48134 ac_status=$?
48135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48136 (exit $ac_status); } &&
48137 { ac_try='test -s conftest.$ac_objext'
48138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48139 (eval $ac_try) 2>&5
48140 ac_status=$?
48141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48142 (exit $ac_status); }; }; then
48143 ac_header_compiler=yes
48144 else
48145 echo "$as_me: failed program was:" >&5
48146 sed 's/^/| /' conftest.$ac_ext >&5
48147
48148 ac_header_compiler=no
48149 fi
48150 rm -f conftest.$ac_objext conftest.$ac_ext
48151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48152 echo "${ECHO_T}$ac_header_compiler" >&6
48153
48154 # Is the header present?
48155 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
48156 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
48157 cat >conftest.$ac_ext <<_ACEOF
48158 #line $LINENO "configure"
48159 /* confdefs.h. */
48160 _ACEOF
48161 cat confdefs.h >>conftest.$ac_ext
48162 cat >>conftest.$ac_ext <<_ACEOF
48163 /* end confdefs.h. */
48164 #include <langinfo.h>
48165 _ACEOF
48166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48168 ac_status=$?
48169 grep -v '^ *+' conftest.er1 >conftest.err
48170 rm -f conftest.er1
48171 cat conftest.err >&5
48172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48173 (exit $ac_status); } >/dev/null; then
48174 if test -s conftest.err; then
48175 ac_cpp_err=$ac_c_preproc_warn_flag
48176 else
48177 ac_cpp_err=
48178 fi
48179 else
48180 ac_cpp_err=yes
48181 fi
48182 if test -z "$ac_cpp_err"; then
48183 ac_header_preproc=yes
48184 else
48185 echo "$as_me: failed program was:" >&5
48186 sed 's/^/| /' conftest.$ac_ext >&5
48187
48188 ac_header_preproc=no
48189 fi
48190 rm -f conftest.err conftest.$ac_ext
48191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48192 echo "${ECHO_T}$ac_header_preproc" >&6
48193
48194 # So? What about this header?
48195 case $ac_header_compiler:$ac_header_preproc in
48196 yes:no )
48197 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
48198 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48199 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48200 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48201 (
48202 cat <<\_ASBOX
48203 ## ------------------------------------ ##
48204 ## Report this to bug-autoconf@gnu.org. ##
48205 ## ------------------------------------ ##
48206 _ASBOX
48207 ) |
48208 sed "s/^/$as_me: WARNING: /" >&2
48209 ;;
48210 no:yes )
48211 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
48212 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
48213 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
48214 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
48215 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48216 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48217 (
48218 cat <<\_ASBOX
48219 ## ------------------------------------ ##
48220 ## Report this to bug-autoconf@gnu.org. ##
48221 ## ------------------------------------ ##
48222 _ASBOX
48223 ) |
48224 sed "s/^/$as_me: WARNING: /" >&2
48225 ;;
48226 esac
48227 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48228 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48229 if test "${ac_cv_header_langinfo_h+set}" = set; then
48230 echo $ECHO_N "(cached) $ECHO_C" >&6
48231 else
48232 ac_cv_header_langinfo_h=$ac_header_preproc
48233 fi
48234 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48235 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48236
48237 fi
48238 if test $ac_cv_header_langinfo_h = yes; then
48239 ac_has_langinfo_h=yes
48240 else
48241 ac_has_langinfo_h=no
48242 fi
48243
48244
48245
48246 # Check for existence of libiconv.a providing XPG2 wchar_t support.
48247 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
48248 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
48249 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
48250 echo $ECHO_N "(cached) $ECHO_C" >&6
48251 else
48252 ac_check_lib_save_LIBS=$LIBS
48253 LIBS="-liconv $LIBS"
48254 if test x$gcc_no_link = xyes; then
48255 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48257 { (exit 1); exit 1; }; }
48258 fi
48259 cat >conftest.$ac_ext <<_ACEOF
48260 #line $LINENO "configure"
48261 /* confdefs.h. */
48262 _ACEOF
48263 cat confdefs.h >>conftest.$ac_ext
48264 cat >>conftest.$ac_ext <<_ACEOF
48265 /* end confdefs.h. */
48266
48267 /* Override any gcc2 internal prototype to avoid an error. */
48268 #ifdef __cplusplus
48269 extern "C"
48270 #endif
48271 /* We use char because int might match the return type of a gcc2
48272 builtin and then its argument prototype would still apply. */
48273 char iconv ();
48274 int
48275 main ()
48276 {
48277 iconv ();
48278 ;
48279 return 0;
48280 }
48281 _ACEOF
48282 rm -f conftest.$ac_objext conftest$ac_exeext
48283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48284 (eval $ac_link) 2>&5
48285 ac_status=$?
48286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48287 (exit $ac_status); } &&
48288 { ac_try='test -s conftest$ac_exeext'
48289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48290 (eval $ac_try) 2>&5
48291 ac_status=$?
48292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48293 (exit $ac_status); }; }; then
48294 ac_cv_lib_iconv_iconv=yes
48295 else
48296 echo "$as_me: failed program was:" >&5
48297 sed 's/^/| /' conftest.$ac_ext >&5
48298
48299 ac_cv_lib_iconv_iconv=no
48300 fi
48301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48302 LIBS=$ac_check_lib_save_LIBS
48303 fi
48304 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
48305 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
48306 if test $ac_cv_lib_iconv_iconv = yes; then
48307 libiconv="-liconv"
48308 fi
48309
48310 ac_save_LIBS="$LIBS"
48311 LIBS="$LIBS $libiconv"
48312
48313
48314
48315
48316
48317 for ac_func in iconv_open iconv_close iconv nl_langinfo
48318 do
48319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48320 echo "$as_me:$LINENO: checking for $ac_func" >&5
48321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48322 if eval "test \"\${$as_ac_var+set}\" = set"; then
48323 echo $ECHO_N "(cached) $ECHO_C" >&6
48324 else
48325 if test x$gcc_no_link = xyes; then
48326 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48328 { (exit 1); exit 1; }; }
48329 fi
48330 cat >conftest.$ac_ext <<_ACEOF
48331 #line $LINENO "configure"
48332 /* confdefs.h. */
48333 _ACEOF
48334 cat confdefs.h >>conftest.$ac_ext
48335 cat >>conftest.$ac_ext <<_ACEOF
48336 /* end confdefs.h. */
48337 /* System header to define __stub macros and hopefully few prototypes,
48338 which can conflict with char $ac_func (); below.
48339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48340 <limits.h> exists even on freestanding compilers. */
48341 #ifdef __STDC__
48342 # include <limits.h>
48343 #else
48344 # include <assert.h>
48345 #endif
48346 /* Override any gcc2 internal prototype to avoid an error. */
48347 #ifdef __cplusplus
48348 extern "C"
48349 {
48350 #endif
48351 /* We use char because int might match the return type of a gcc2
48352 builtin and then its argument prototype would still apply. */
48353 char $ac_func ();
48354 /* The GNU C library defines this for functions which it implements
48355 to always fail with ENOSYS. Some functions are actually named
48356 something starting with __ and the normal name is an alias. */
48357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48358 choke me
48359 #else
48360 char (*f) () = $ac_func;
48361 #endif
48362 #ifdef __cplusplus
48363 }
48364 #endif
48365
48366 int
48367 main ()
48368 {
48369 return f != $ac_func;
48370 ;
48371 return 0;
48372 }
48373 _ACEOF
48374 rm -f conftest.$ac_objext conftest$ac_exeext
48375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48376 (eval $ac_link) 2>&5
48377 ac_status=$?
48378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48379 (exit $ac_status); } &&
48380 { ac_try='test -s conftest$ac_exeext'
48381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48382 (eval $ac_try) 2>&5
48383 ac_status=$?
48384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48385 (exit $ac_status); }; }; then
48386 eval "$as_ac_var=yes"
48387 else
48388 echo "$as_me: failed program was:" >&5
48389 sed 's/^/| /' conftest.$ac_ext >&5
48390
48391 eval "$as_ac_var=no"
48392 fi
48393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48394 fi
48395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48397 if test `eval echo '${'$as_ac_var'}'` = yes; then
48398 cat >>confdefs.h <<_ACEOF
48399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48400 _ACEOF
48401 ac_XPG2funcs=yes
48402 else
48403 ac_XPG2funcs=no
48404 fi
48405 done
48406
48407
48408 LIBS="$ac_save_LIBS"
48409
48410 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
48411 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
48412 if test x"$ac_has_iconv_h" = xyes &&
48413 test x"$ac_has_langinfo_h" = xyes &&
48414 test x"$ac_XPG2funcs" = xyes;
48415 then
48416 ac_XPG2_wchar_t=yes
48417 else
48418 ac_XPG2_wchar_t=no
48419 fi
48420 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
48421 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
48422
48423 # At the moment, only enable wchar_t specializations if all the
48424 # above support is present.
48425 if test x"$ac_isoC99_wchar_t" = xyes &&
48426 test x"$ac_XPG2_wchar_t" = xyes;
48427 then
48428 cat >>confdefs.h <<\_ACEOF
48429 #define _GLIBCXX_USE_WCHAR_T 1
48430 _ACEOF
48431
48432 enable_wchar_t=yes
48433 fi
48434 fi
48435 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
48436 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
48437 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
48438 echo "${ECHO_T}$enable_wchar_t" >&6
48439
48440 cat >>confdefs.h <<\_ACEOF
48441 #define HAVE_LC_MESSAGES 1
48442 _ACEOF
48443
48444 cat >>confdefs.h <<\_ACEOF
48445 #define HAVE_DRAND48 1
48446 _ACEOF
48447
48448 cat >>confdefs.h <<\_ACEOF
48449 #define HAVE_GETPAGESIZE 1
48450 _ACEOF
48451
48452 cat >>confdefs.h <<\_ACEOF
48453 #define HAVE_SETENV 1
48454 _ACEOF
48455
48456 cat >>confdefs.h <<\_ACEOF
48457 #define HAVE_SIGSETJMP 1
48458 _ACEOF
48459
48460 cat >>confdefs.h <<\_ACEOF
48461 #define HAVE_COPYSIGN 1
48462 _ACEOF
48463
48464 cat >>confdefs.h <<\_ACEOF
48465 #define HAVE_COPYSIGNF 1
48466 _ACEOF
48467
48468 cat >>confdefs.h <<\_ACEOF
48469 #define HAVE_FINITEF 1
48470 _ACEOF
48471
48472 cat >>confdefs.h <<\_ACEOF
48473 #define HAVE_FINITE 1
48474 _ACEOF
48475
48476 cat >>confdefs.h <<\_ACEOF
48477 #define HAVE_FREXPF 1
48478 _ACEOF
48479
48480 cat >>confdefs.h <<\_ACEOF
48481 #define HAVE_HYPOT 1
48482 _ACEOF
48483
48484 cat >>confdefs.h <<\_ACEOF
48485 #define HAVE_HYPOTF 1
48486 _ACEOF
48487
48488 cat >>confdefs.h <<\_ACEOF
48489 #define HAVE_ISINF 1
48490 _ACEOF
48491
48492 cat >>confdefs.h <<\_ACEOF
48493 #define HAVE_ISNAN 1
48494 _ACEOF
48495
48496 cat >>confdefs.h <<\_ACEOF
48497 #define HAVE_ISNANF 1
48498 _ACEOF
48499
48500
48501 cat >>confdefs.h <<\_ACEOF
48502 #define HAVE_MMAP 1
48503 _ACEOF
48504
48505 cat >>confdefs.h <<\_ACEOF
48506 #define HAVE_ACOSF 1
48507 _ACEOF
48508
48509 cat >>confdefs.h <<\_ACEOF
48510 #define HAVE_ASINF 1
48511 _ACEOF
48512
48513 cat >>confdefs.h <<\_ACEOF
48514 #define HAVE_ATAN2F 1
48515 _ACEOF
48516
48517 cat >>confdefs.h <<\_ACEOF
48518 #define HAVE_ATANF 1
48519 _ACEOF
48520
48521 cat >>confdefs.h <<\_ACEOF
48522 #define HAVE_CEILF 1
48523 _ACEOF
48524
48525 cat >>confdefs.h <<\_ACEOF
48526 #define HAVE_COPYSIGN 1
48527 _ACEOF
48528
48529 cat >>confdefs.h <<\_ACEOF
48530 #define HAVE_COPYSIGNF 1
48531 _ACEOF
48532
48533 cat >>confdefs.h <<\_ACEOF
48534 #define HAVE_COSF 1
48535 _ACEOF
48536
48537 cat >>confdefs.h <<\_ACEOF
48538 #define HAVE_COSHF 1
48539 _ACEOF
48540
48541 cat >>confdefs.h <<\_ACEOF
48542 #define HAVE_EXPF 1
48543 _ACEOF
48544
48545 cat >>confdefs.h <<\_ACEOF
48546 #define HAVE_FABSF 1
48547 _ACEOF
48548
48549 cat >>confdefs.h <<\_ACEOF
48550 #define HAVE_FLOORF 1
48551 _ACEOF
48552
48553 cat >>confdefs.h <<\_ACEOF
48554 #define HAVE_FMODF 1
48555 _ACEOF
48556
48557 cat >>confdefs.h <<\_ACEOF
48558 #define HAVE_FREXPF 1
48559 _ACEOF
48560
48561 cat >>confdefs.h <<\_ACEOF
48562 #define HAVE_LDEXPF 1
48563 _ACEOF
48564
48565 cat >>confdefs.h <<\_ACEOF
48566 #define HAVE_LOG10F 1
48567 _ACEOF
48568
48569 cat >>confdefs.h <<\_ACEOF
48570 #define HAVE_LOGF 1
48571 _ACEOF
48572
48573 cat >>confdefs.h <<\_ACEOF
48574 #define HAVE_MODFF 1
48575 _ACEOF
48576
48577 cat >>confdefs.h <<\_ACEOF
48578 #define HAVE_POWF 1
48579 _ACEOF
48580
48581 cat >>confdefs.h <<\_ACEOF
48582 #define HAVE_SINF 1
48583 _ACEOF
48584
48585 cat >>confdefs.h <<\_ACEOF
48586 #define HAVE_SINHF 1
48587 _ACEOF
48588
48589 cat >>confdefs.h <<\_ACEOF
48590 #define HAVE_SQRTF 1
48591 _ACEOF
48592
48593 cat >>confdefs.h <<\_ACEOF
48594 #define HAVE_TANF 1
48595 _ACEOF
48596
48597 cat >>confdefs.h <<\_ACEOF
48598 #define HAVE_TANHF 1
48599 _ACEOF
48600
48601 if test x"long_double_math_on_this_cpu" = x"yes"; then
48602 cat >>confdefs.h <<\_ACEOF
48603 #define HAVE_FINITEL 1
48604 _ACEOF
48605
48606 cat >>confdefs.h <<\_ACEOF
48607 #define HAVE_ISINFL 1
48608 _ACEOF
48609
48610 cat >>confdefs.h <<\_ACEOF
48611 #define HAVE_ISNANL 1
48612 _ACEOF
48613
48614 fi
48615 ;;
48616 *-hpux*)
48617 #os_include_dir="os/hpux"
48618
48619
48620
48621
48622
48623
48624
48625
48626
48627
48628
48629
48630 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
48631 machine/endian.h machine/param.h sys/machine.h sys/types.h \
48632 fp.h locale.h float.h inttypes.h
48633 do
48634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48636 echo "$as_me:$LINENO: checking for $ac_header" >&5
48637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48639 echo $ECHO_N "(cached) $ECHO_C" >&6
48640 fi
48641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48643 else
48644 # Is the header compilable?
48645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
48646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48647 cat >conftest.$ac_ext <<_ACEOF
48648 #line $LINENO "configure"
48649 /* confdefs.h. */
48650 _ACEOF
48651 cat confdefs.h >>conftest.$ac_ext
48652 cat >>conftest.$ac_ext <<_ACEOF
48653 /* end confdefs.h. */
48654 $ac_includes_default
48655 #include <$ac_header>
48656 _ACEOF
48657 rm -f conftest.$ac_objext
48658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48659 (eval $ac_compile) 2>&5
48660 ac_status=$?
48661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48662 (exit $ac_status); } &&
48663 { ac_try='test -s conftest.$ac_objext'
48664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48665 (eval $ac_try) 2>&5
48666 ac_status=$?
48667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48668 (exit $ac_status); }; }; then
48669 ac_header_compiler=yes
48670 else
48671 echo "$as_me: failed program was:" >&5
48672 sed 's/^/| /' conftest.$ac_ext >&5
48673
48674 ac_header_compiler=no
48675 fi
48676 rm -f conftest.$ac_objext conftest.$ac_ext
48677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48678 echo "${ECHO_T}$ac_header_compiler" >&6
48679
48680 # Is the header present?
48681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
48682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48683 cat >conftest.$ac_ext <<_ACEOF
48684 #line $LINENO "configure"
48685 /* confdefs.h. */
48686 _ACEOF
48687 cat confdefs.h >>conftest.$ac_ext
48688 cat >>conftest.$ac_ext <<_ACEOF
48689 /* end confdefs.h. */
48690 #include <$ac_header>
48691 _ACEOF
48692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48694 ac_status=$?
48695 grep -v '^ *+' conftest.er1 >conftest.err
48696 rm -f conftest.er1
48697 cat conftest.err >&5
48698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48699 (exit $ac_status); } >/dev/null; then
48700 if test -s conftest.err; then
48701 ac_cpp_err=$ac_c_preproc_warn_flag
48702 else
48703 ac_cpp_err=
48704 fi
48705 else
48706 ac_cpp_err=yes
48707 fi
48708 if test -z "$ac_cpp_err"; then
48709 ac_header_preproc=yes
48710 else
48711 echo "$as_me: failed program was:" >&5
48712 sed 's/^/| /' conftest.$ac_ext >&5
48713
48714 ac_header_preproc=no
48715 fi
48716 rm -f conftest.err conftest.$ac_ext
48717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48718 echo "${ECHO_T}$ac_header_preproc" >&6
48719
48720 # So? What about this header?
48721 case $ac_header_compiler:$ac_header_preproc in
48722 yes:no )
48723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48727 (
48728 cat <<\_ASBOX
48729 ## ------------------------------------ ##
48730 ## Report this to bug-autoconf@gnu.org. ##
48731 ## ------------------------------------ ##
48732 _ASBOX
48733 ) |
48734 sed "s/^/$as_me: WARNING: /" >&2
48735 ;;
48736 no:yes )
48737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48743 (
48744 cat <<\_ASBOX
48745 ## ------------------------------------ ##
48746 ## Report this to bug-autoconf@gnu.org. ##
48747 ## ------------------------------------ ##
48748 _ASBOX
48749 ) |
48750 sed "s/^/$as_me: WARNING: /" >&2
48751 ;;
48752 esac
48753 echo "$as_me:$LINENO: checking for $ac_header" >&5
48754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48756 echo $ECHO_N "(cached) $ECHO_C" >&6
48757 else
48758 eval "$as_ac_Header=$ac_header_preproc"
48759 fi
48760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48762
48763 fi
48764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48765 cat >>confdefs.h <<_ACEOF
48766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48767 _ACEOF
48768
48769 fi
48770
48771 done
48772
48773 SECTION_FLAGS='-ffunction-sections -fdata-sections'
48774
48775
48776 # If we're not using GNU ld, then there's no point in even trying these
48777 # tests. Check for that first. We should have already tested for gld
48778 # by now (in libtool), but require it now just to be safe...
48779 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
48780 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
48781
48782
48783
48784 # The name set by libtool depends on the version of libtool. Shame on us
48785 # for depending on an impl detail, but c'est la vie. Older versions used
48786 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
48787 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
48788 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
48789 # set (hence we're using an older libtool), then set it.
48790 if test x${with_gnu_ld+set} != xset; then
48791 if test x${ac_cv_prog_gnu_ld+set} != xset; then
48792 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
48793 with_gnu_ld=no
48794 else
48795 with_gnu_ld=$ac_cv_prog_gnu_ld
48796 fi
48797 fi
48798
48799 # Start by getting the version number. I think the libtool test already
48800 # does some of this, but throws away the result.
48801
48802 ldver=`$LD --version 2>/dev/null | head -1 | \
48803 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
48804
48805 glibcxx_gnu_ld_version=`echo $ldver | \
48806 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
48807
48808 # Set --gc-sections.
48809 if test "$with_gnu_ld" = "notbroken"; then
48810 # GNU ld it is! Joy and bunny rabbits!
48811
48812 # All these tests are for C++; save the language and the compiler flags.
48813 # Need to do this so that g++ won't try to link in libstdc++
48814 ac_test_CFLAGS="${CFLAGS+set}"
48815 ac_save_CFLAGS="$CFLAGS"
48816 CFLAGS='-x c++ -Wl,--gc-sections'
48817
48818 # Check for -Wl,--gc-sections
48819 # XXX This test is broken at the moment, as symbols required for linking
48820 # are now in libsupc++ (not built yet). In addition, this test has
48821 # cored on solaris in the past. In addition, --gc-sections doesn't
48822 # really work at the moment (keeps on discarding used sections, first
48823 # .eh_frame and now some of the glibc sections for iconv).
48824 # Bzzzzt. Thanks for playing, maybe next time.
48825 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
48826 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
48827 if test "$cross_compiling" = yes; then
48828 ac_sectionLDflags=yes
48829 else
48830 cat >conftest.$ac_ext <<_ACEOF
48831 #line $LINENO "configure"
48832 /* confdefs.h. */
48833 _ACEOF
48834 cat confdefs.h >>conftest.$ac_ext
48835 cat >>conftest.$ac_ext <<_ACEOF
48836 /* end confdefs.h. */
48837
48838 int main(void)
48839 {
48840 try { throw 1; }
48841 catch (...) { };
48842 return 0;
48843 }
48844
48845 _ACEOF
48846 rm -f conftest$ac_exeext
48847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48848 (eval $ac_link) 2>&5
48849 ac_status=$?
48850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48853 (eval $ac_try) 2>&5
48854 ac_status=$?
48855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48856 (exit $ac_status); }; }; then
48857 ac_sectionLDflags=yes
48858 else
48859 echo "$as_me: program exited with status $ac_status" >&5
48860 echo "$as_me: failed program was:" >&5
48861 sed 's/^/| /' conftest.$ac_ext >&5
48862
48863 ( exit $ac_status )
48864 ac_sectionLDflags=no
48865 fi
48866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48867 fi
48868 if test "$ac_test_CFLAGS" = set; then
48869 CFLAGS="$ac_save_CFLAGS"
48870 else
48871 # this is the suspicious part
48872 CFLAGS=''
48873 fi
48874 if test "$ac_sectionLDflags" = "yes"; then
48875 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
48876 fi
48877 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
48878 echo "${ECHO_T}$ac_sectionLDflags" >&6
48879 fi
48880
48881 # Set linker optimization flags.
48882 if test x"$with_gnu_ld" = x"yes"; then
48883 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
48884 fi
48885
48886
48887
48888
48889
48890
48891 echo "$as_me:$LINENO: checking for main in -lm" >&5
48892 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
48893 if test "${ac_cv_lib_m_main+set}" = set; then
48894 echo $ECHO_N "(cached) $ECHO_C" >&6
48895 else
48896 ac_check_lib_save_LIBS=$LIBS
48897 LIBS="-lm $LIBS"
48898 if test x$gcc_no_link = xyes; then
48899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48901 { (exit 1); exit 1; }; }
48902 fi
48903 cat >conftest.$ac_ext <<_ACEOF
48904 #line $LINENO "configure"
48905 /* confdefs.h. */
48906 _ACEOF
48907 cat confdefs.h >>conftest.$ac_ext
48908 cat >>conftest.$ac_ext <<_ACEOF
48909 /* end confdefs.h. */
48910
48911
48912 int
48913 main ()
48914 {
48915 main ();
48916 ;
48917 return 0;
48918 }
48919 _ACEOF
48920 rm -f conftest.$ac_objext conftest$ac_exeext
48921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48922 (eval $ac_link) 2>&5
48923 ac_status=$?
48924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48925 (exit $ac_status); } &&
48926 { ac_try='test -s conftest$ac_exeext'
48927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48928 (eval $ac_try) 2>&5
48929 ac_status=$?
48930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48931 (exit $ac_status); }; }; then
48932 ac_cv_lib_m_main=yes
48933 else
48934 echo "$as_me: failed program was:" >&5
48935 sed 's/^/| /' conftest.$ac_ext >&5
48936
48937 ac_cv_lib_m_main=no
48938 fi
48939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48940 LIBS=$ac_check_lib_save_LIBS
48941 fi
48942 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
48943 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
48944 if test $ac_cv_lib_m_main = yes; then
48945 cat >>confdefs.h <<_ACEOF
48946 #define HAVE_LIBM 1
48947 _ACEOF
48948
48949 LIBS="-lm $LIBS"
48950
48951 fi
48952
48953
48954
48955 for ac_func in nan copysignf
48956 do
48957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48958 echo "$as_me:$LINENO: checking for $ac_func" >&5
48959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48960 if eval "test \"\${$as_ac_var+set}\" = set"; then
48961 echo $ECHO_N "(cached) $ECHO_C" >&6
48962 else
48963 if test x$gcc_no_link = xyes; then
48964 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48965 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48966 { (exit 1); exit 1; }; }
48967 fi
48968 cat >conftest.$ac_ext <<_ACEOF
48969 #line $LINENO "configure"
48970 /* confdefs.h. */
48971 _ACEOF
48972 cat confdefs.h >>conftest.$ac_ext
48973 cat >>conftest.$ac_ext <<_ACEOF
48974 /* end confdefs.h. */
48975 /* System header to define __stub macros and hopefully few prototypes,
48976 which can conflict with char $ac_func (); below.
48977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48978 <limits.h> exists even on freestanding compilers. */
48979 #ifdef __STDC__
48980 # include <limits.h>
48981 #else
48982 # include <assert.h>
48983 #endif
48984 /* Override any gcc2 internal prototype to avoid an error. */
48985 #ifdef __cplusplus
48986 extern "C"
48987 {
48988 #endif
48989 /* We use char because int might match the return type of a gcc2
48990 builtin and then its argument prototype would still apply. */
48991 char $ac_func ();
48992 /* The GNU C library defines this for functions which it implements
48993 to always fail with ENOSYS. Some functions are actually named
48994 something starting with __ and the normal name is an alias. */
48995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48996 choke me
48997 #else
48998 char (*f) () = $ac_func;
48999 #endif
49000 #ifdef __cplusplus
49001 }
49002 #endif
49003
49004 int
49005 main ()
49006 {
49007 return f != $ac_func;
49008 ;
49009 return 0;
49010 }
49011 _ACEOF
49012 rm -f conftest.$ac_objext conftest$ac_exeext
49013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49014 (eval $ac_link) 2>&5
49015 ac_status=$?
49016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49017 (exit $ac_status); } &&
49018 { ac_try='test -s conftest$ac_exeext'
49019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49020 (eval $ac_try) 2>&5
49021 ac_status=$?
49022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49023 (exit $ac_status); }; }; then
49024 eval "$as_ac_var=yes"
49025 else
49026 echo "$as_me: failed program was:" >&5
49027 sed 's/^/| /' conftest.$ac_ext >&5
49028
49029 eval "$as_ac_var=no"
49030 fi
49031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49032 fi
49033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49035 if test `eval echo '${'$as_ac_var'}'` = yes; then
49036 cat >>confdefs.h <<_ACEOF
49037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49038 _ACEOF
49039
49040 else
49041 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
49042 fi
49043 done
49044
49045
49046
49047 for ac_func in __signbit
49048 do
49049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49050 echo "$as_me:$LINENO: checking for $ac_func" >&5
49051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49052 if eval "test \"\${$as_ac_var+set}\" = set"; then
49053 echo $ECHO_N "(cached) $ECHO_C" >&6
49054 else
49055 if test x$gcc_no_link = xyes; then
49056 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49057 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49058 { (exit 1); exit 1; }; }
49059 fi
49060 cat >conftest.$ac_ext <<_ACEOF
49061 #line $LINENO "configure"
49062 /* confdefs.h. */
49063 _ACEOF
49064 cat confdefs.h >>conftest.$ac_ext
49065 cat >>conftest.$ac_ext <<_ACEOF
49066 /* end confdefs.h. */
49067 /* System header to define __stub macros and hopefully few prototypes,
49068 which can conflict with char $ac_func (); below.
49069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49070 <limits.h> exists even on freestanding compilers. */
49071 #ifdef __STDC__
49072 # include <limits.h>
49073 #else
49074 # include <assert.h>
49075 #endif
49076 /* Override any gcc2 internal prototype to avoid an error. */
49077 #ifdef __cplusplus
49078 extern "C"
49079 {
49080 #endif
49081 /* We use char because int might match the return type of a gcc2
49082 builtin and then its argument prototype would still apply. */
49083 char $ac_func ();
49084 /* The GNU C library defines this for functions which it implements
49085 to always fail with ENOSYS. Some functions are actually named
49086 something starting with __ and the normal name is an alias. */
49087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49088 choke me
49089 #else
49090 char (*f) () = $ac_func;
49091 #endif
49092 #ifdef __cplusplus
49093 }
49094 #endif
49095
49096 int
49097 main ()
49098 {
49099 return f != $ac_func;
49100 ;
49101 return 0;
49102 }
49103 _ACEOF
49104 rm -f conftest.$ac_objext conftest$ac_exeext
49105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49106 (eval $ac_link) 2>&5
49107 ac_status=$?
49108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49109 (exit $ac_status); } &&
49110 { ac_try='test -s conftest$ac_exeext'
49111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49112 (eval $ac_try) 2>&5
49113 ac_status=$?
49114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49115 (exit $ac_status); }; }; then
49116 eval "$as_ac_var=yes"
49117 else
49118 echo "$as_me: failed program was:" >&5
49119 sed 's/^/| /' conftest.$ac_ext >&5
49120
49121 eval "$as_ac_var=no"
49122 fi
49123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49124 fi
49125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49127 if test `eval echo '${'$as_ac_var'}'` = yes; then
49128 cat >>confdefs.h <<_ACEOF
49129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49130 _ACEOF
49131
49132 else
49133 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
49134 fi
49135 done
49136
49137
49138 for ac_func in __signbitf
49139 do
49140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49141 echo "$as_me:$LINENO: checking for $ac_func" >&5
49142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49143 if eval "test \"\${$as_ac_var+set}\" = set"; then
49144 echo $ECHO_N "(cached) $ECHO_C" >&6
49145 else
49146 if test x$gcc_no_link = xyes; then
49147 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49149 { (exit 1); exit 1; }; }
49150 fi
49151 cat >conftest.$ac_ext <<_ACEOF
49152 #line $LINENO "configure"
49153 /* confdefs.h. */
49154 _ACEOF
49155 cat confdefs.h >>conftest.$ac_ext
49156 cat >>conftest.$ac_ext <<_ACEOF
49157 /* end confdefs.h. */
49158 /* System header to define __stub macros and hopefully few prototypes,
49159 which can conflict with char $ac_func (); below.
49160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49161 <limits.h> exists even on freestanding compilers. */
49162 #ifdef __STDC__
49163 # include <limits.h>
49164 #else
49165 # include <assert.h>
49166 #endif
49167 /* Override any gcc2 internal prototype to avoid an error. */
49168 #ifdef __cplusplus
49169 extern "C"
49170 {
49171 #endif
49172 /* We use char because int might match the return type of a gcc2
49173 builtin and then its argument prototype would still apply. */
49174 char $ac_func ();
49175 /* The GNU C library defines this for functions which it implements
49176 to always fail with ENOSYS. Some functions are actually named
49177 something starting with __ and the normal name is an alias. */
49178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49179 choke me
49180 #else
49181 char (*f) () = $ac_func;
49182 #endif
49183 #ifdef __cplusplus
49184 }
49185 #endif
49186
49187 int
49188 main ()
49189 {
49190 return f != $ac_func;
49191 ;
49192 return 0;
49193 }
49194 _ACEOF
49195 rm -f conftest.$ac_objext conftest$ac_exeext
49196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49197 (eval $ac_link) 2>&5
49198 ac_status=$?
49199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49200 (exit $ac_status); } &&
49201 { ac_try='test -s conftest$ac_exeext'
49202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49203 (eval $ac_try) 2>&5
49204 ac_status=$?
49205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49206 (exit $ac_status); }; }; then
49207 eval "$as_ac_var=yes"
49208 else
49209 echo "$as_me: failed program was:" >&5
49210 sed 's/^/| /' conftest.$ac_ext >&5
49211
49212 eval "$as_ac_var=no"
49213 fi
49214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49215 fi
49216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49218 if test `eval echo '${'$as_ac_var'}'` = yes; then
49219 cat >>confdefs.h <<_ACEOF
49220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49221 _ACEOF
49222
49223 else
49224 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
49225 fi
49226 done
49227
49228
49229 if test x$ac_cv_func_copysignl = x"yes"; then
49230
49231 for ac_func in __signbitl
49232 do
49233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49234 echo "$as_me:$LINENO: checking for $ac_func" >&5
49235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49236 if eval "test \"\${$as_ac_var+set}\" = set"; then
49237 echo $ECHO_N "(cached) $ECHO_C" >&6
49238 else
49239 if test x$gcc_no_link = xyes; then
49240 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49241 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49242 { (exit 1); exit 1; }; }
49243 fi
49244 cat >conftest.$ac_ext <<_ACEOF
49245 #line $LINENO "configure"
49246 /* confdefs.h. */
49247 _ACEOF
49248 cat confdefs.h >>conftest.$ac_ext
49249 cat >>conftest.$ac_ext <<_ACEOF
49250 /* end confdefs.h. */
49251 /* System header to define __stub macros and hopefully few prototypes,
49252 which can conflict with char $ac_func (); below.
49253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49254 <limits.h> exists even on freestanding compilers. */
49255 #ifdef __STDC__
49256 # include <limits.h>
49257 #else
49258 # include <assert.h>
49259 #endif
49260 /* Override any gcc2 internal prototype to avoid an error. */
49261 #ifdef __cplusplus
49262 extern "C"
49263 {
49264 #endif
49265 /* We use char because int might match the return type of a gcc2
49266 builtin and then its argument prototype would still apply. */
49267 char $ac_func ();
49268 /* The GNU C library defines this for functions which it implements
49269 to always fail with ENOSYS. Some functions are actually named
49270 something starting with __ and the normal name is an alias. */
49271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49272 choke me
49273 #else
49274 char (*f) () = $ac_func;
49275 #endif
49276 #ifdef __cplusplus
49277 }
49278 #endif
49279
49280 int
49281 main ()
49282 {
49283 return f != $ac_func;
49284 ;
49285 return 0;
49286 }
49287 _ACEOF
49288 rm -f conftest.$ac_objext conftest$ac_exeext
49289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49290 (eval $ac_link) 2>&5
49291 ac_status=$?
49292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49293 (exit $ac_status); } &&
49294 { ac_try='test -s conftest$ac_exeext'
49295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49296 (eval $ac_try) 2>&5
49297 ac_status=$?
49298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49299 (exit $ac_status); }; }; then
49300 eval "$as_ac_var=yes"
49301 else
49302 echo "$as_me: failed program was:" >&5
49303 sed 's/^/| /' conftest.$ac_ext >&5
49304
49305 eval "$as_ac_var=no"
49306 fi
49307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49308 fi
49309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49311 if test `eval echo '${'$as_ac_var'}'` = yes; then
49312 cat >>confdefs.h <<_ACEOF
49313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49314 _ACEOF
49315
49316 else
49317 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
49318 fi
49319 done
49320
49321 fi
49322
49323 # XXX Review this. Nothing uses it.
49324 if test -n "$LIBMATHOBJS"; then
49325 need_libmath=yes
49326 fi
49327
49328
49329
49330 # Test wchar.h for mbstate_t, which is needed for char_traits and
49331 # others even if wchar_t support is not on.
49332 echo "$as_me:$LINENO: checking for mbstate_t" >&5
49333 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
49334 cat >conftest.$ac_ext <<_ACEOF
49335 #line $LINENO "configure"
49336 /* confdefs.h. */
49337 _ACEOF
49338 cat confdefs.h >>conftest.$ac_ext
49339 cat >>conftest.$ac_ext <<_ACEOF
49340 /* end confdefs.h. */
49341 #include <wchar.h>
49342 int
49343 main ()
49344 {
49345 mbstate_t teststate;
49346 ;
49347 return 0;
49348 }
49349 _ACEOF
49350 rm -f conftest.$ac_objext
49351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49352 (eval $ac_compile) 2>&5
49353 ac_status=$?
49354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49355 (exit $ac_status); } &&
49356 { ac_try='test -s conftest.$ac_objext'
49357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49358 (eval $ac_try) 2>&5
49359 ac_status=$?
49360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49361 (exit $ac_status); }; }; then
49362 have_mbstate_t=yes
49363 else
49364 echo "$as_me: failed program was:" >&5
49365 sed 's/^/| /' conftest.$ac_ext >&5
49366
49367 have_mbstate_t=no
49368 fi
49369 rm -f conftest.$ac_objext conftest.$ac_ext
49370 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
49371 echo "${ECHO_T}$have_mbstate_t" >&6
49372 if test x"$have_mbstate_t" = xyes; then
49373 cat >>confdefs.h <<\_ACEOF
49374 #define HAVE_MBSTATE_T 1
49375 _ACEOF
49376
49377 fi
49378
49379 # Sanity check for existence of ISO C99 headers for extended encoding.
49380
49381 for ac_header in wchar.h
49382 do
49383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49385 echo "$as_me:$LINENO: checking for $ac_header" >&5
49386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49388 echo $ECHO_N "(cached) $ECHO_C" >&6
49389 fi
49390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49392 else
49393 # Is the header compilable?
49394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49396 cat >conftest.$ac_ext <<_ACEOF
49397 #line $LINENO "configure"
49398 /* confdefs.h. */
49399 _ACEOF
49400 cat confdefs.h >>conftest.$ac_ext
49401 cat >>conftest.$ac_ext <<_ACEOF
49402 /* end confdefs.h. */
49403 $ac_includes_default
49404 #include <$ac_header>
49405 _ACEOF
49406 rm -f conftest.$ac_objext
49407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49408 (eval $ac_compile) 2>&5
49409 ac_status=$?
49410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49411 (exit $ac_status); } &&
49412 { ac_try='test -s conftest.$ac_objext'
49413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49414 (eval $ac_try) 2>&5
49415 ac_status=$?
49416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49417 (exit $ac_status); }; }; then
49418 ac_header_compiler=yes
49419 else
49420 echo "$as_me: failed program was:" >&5
49421 sed 's/^/| /' conftest.$ac_ext >&5
49422
49423 ac_header_compiler=no
49424 fi
49425 rm -f conftest.$ac_objext conftest.$ac_ext
49426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49427 echo "${ECHO_T}$ac_header_compiler" >&6
49428
49429 # Is the header present?
49430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49432 cat >conftest.$ac_ext <<_ACEOF
49433 #line $LINENO "configure"
49434 /* confdefs.h. */
49435 _ACEOF
49436 cat confdefs.h >>conftest.$ac_ext
49437 cat >>conftest.$ac_ext <<_ACEOF
49438 /* end confdefs.h. */
49439 #include <$ac_header>
49440 _ACEOF
49441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49443 ac_status=$?
49444 grep -v '^ *+' conftest.er1 >conftest.err
49445 rm -f conftest.er1
49446 cat conftest.err >&5
49447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49448 (exit $ac_status); } >/dev/null; then
49449 if test -s conftest.err; then
49450 ac_cpp_err=$ac_c_preproc_warn_flag
49451 else
49452 ac_cpp_err=
49453 fi
49454 else
49455 ac_cpp_err=yes
49456 fi
49457 if test -z "$ac_cpp_err"; then
49458 ac_header_preproc=yes
49459 else
49460 echo "$as_me: failed program was:" >&5
49461 sed 's/^/| /' conftest.$ac_ext >&5
49462
49463 ac_header_preproc=no
49464 fi
49465 rm -f conftest.err conftest.$ac_ext
49466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49467 echo "${ECHO_T}$ac_header_preproc" >&6
49468
49469 # So? What about this header?
49470 case $ac_header_compiler:$ac_header_preproc in
49471 yes:no )
49472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49476 (
49477 cat <<\_ASBOX
49478 ## ------------------------------------ ##
49479 ## Report this to bug-autoconf@gnu.org. ##
49480 ## ------------------------------------ ##
49481 _ASBOX
49482 ) |
49483 sed "s/^/$as_me: WARNING: /" >&2
49484 ;;
49485 no:yes )
49486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49492 (
49493 cat <<\_ASBOX
49494 ## ------------------------------------ ##
49495 ## Report this to bug-autoconf@gnu.org. ##
49496 ## ------------------------------------ ##
49497 _ASBOX
49498 ) |
49499 sed "s/^/$as_me: WARNING: /" >&2
49500 ;;
49501 esac
49502 echo "$as_me:$LINENO: checking for $ac_header" >&5
49503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49505 echo $ECHO_N "(cached) $ECHO_C" >&6
49506 else
49507 eval "$as_ac_Header=$ac_header_preproc"
49508 fi
49509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49511
49512 fi
49513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49514 cat >>confdefs.h <<_ACEOF
49515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49516 _ACEOF
49517 ac_has_wchar_h=yes
49518 else
49519 ac_has_wchar_h=no
49520 fi
49521
49522 done
49523
49524
49525 for ac_header in wctype.h
49526 do
49527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49529 echo "$as_me:$LINENO: checking for $ac_header" >&5
49530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49532 echo $ECHO_N "(cached) $ECHO_C" >&6
49533 fi
49534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49536 else
49537 # Is the header compilable?
49538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49540 cat >conftest.$ac_ext <<_ACEOF
49541 #line $LINENO "configure"
49542 /* confdefs.h. */
49543 _ACEOF
49544 cat confdefs.h >>conftest.$ac_ext
49545 cat >>conftest.$ac_ext <<_ACEOF
49546 /* end confdefs.h. */
49547 $ac_includes_default
49548 #include <$ac_header>
49549 _ACEOF
49550 rm -f conftest.$ac_objext
49551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49552 (eval $ac_compile) 2>&5
49553 ac_status=$?
49554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49555 (exit $ac_status); } &&
49556 { ac_try='test -s conftest.$ac_objext'
49557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49558 (eval $ac_try) 2>&5
49559 ac_status=$?
49560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49561 (exit $ac_status); }; }; then
49562 ac_header_compiler=yes
49563 else
49564 echo "$as_me: failed program was:" >&5
49565 sed 's/^/| /' conftest.$ac_ext >&5
49566
49567 ac_header_compiler=no
49568 fi
49569 rm -f conftest.$ac_objext conftest.$ac_ext
49570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49571 echo "${ECHO_T}$ac_header_compiler" >&6
49572
49573 # Is the header present?
49574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49576 cat >conftest.$ac_ext <<_ACEOF
49577 #line $LINENO "configure"
49578 /* confdefs.h. */
49579 _ACEOF
49580 cat confdefs.h >>conftest.$ac_ext
49581 cat >>conftest.$ac_ext <<_ACEOF
49582 /* end confdefs.h. */
49583 #include <$ac_header>
49584 _ACEOF
49585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49587 ac_status=$?
49588 grep -v '^ *+' conftest.er1 >conftest.err
49589 rm -f conftest.er1
49590 cat conftest.err >&5
49591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49592 (exit $ac_status); } >/dev/null; then
49593 if test -s conftest.err; then
49594 ac_cpp_err=$ac_c_preproc_warn_flag
49595 else
49596 ac_cpp_err=
49597 fi
49598 else
49599 ac_cpp_err=yes
49600 fi
49601 if test -z "$ac_cpp_err"; then
49602 ac_header_preproc=yes
49603 else
49604 echo "$as_me: failed program was:" >&5
49605 sed 's/^/| /' conftest.$ac_ext >&5
49606
49607 ac_header_preproc=no
49608 fi
49609 rm -f conftest.err conftest.$ac_ext
49610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49611 echo "${ECHO_T}$ac_header_preproc" >&6
49612
49613 # So? What about this header?
49614 case $ac_header_compiler:$ac_header_preproc in
49615 yes:no )
49616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49620 (
49621 cat <<\_ASBOX
49622 ## ------------------------------------ ##
49623 ## Report this to bug-autoconf@gnu.org. ##
49624 ## ------------------------------------ ##
49625 _ASBOX
49626 ) |
49627 sed "s/^/$as_me: WARNING: /" >&2
49628 ;;
49629 no:yes )
49630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49636 (
49637 cat <<\_ASBOX
49638 ## ------------------------------------ ##
49639 ## Report this to bug-autoconf@gnu.org. ##
49640 ## ------------------------------------ ##
49641 _ASBOX
49642 ) |
49643 sed "s/^/$as_me: WARNING: /" >&2
49644 ;;
49645 esac
49646 echo "$as_me:$LINENO: checking for $ac_header" >&5
49647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49649 echo $ECHO_N "(cached) $ECHO_C" >&6
49650 else
49651 eval "$as_ac_Header=$ac_header_preproc"
49652 fi
49653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49655
49656 fi
49657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49658 cat >>confdefs.h <<_ACEOF
49659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49660 _ACEOF
49661 ac_has_wctype_h=yes
49662 else
49663 ac_has_wctype_h=no
49664 fi
49665
49666 done
49667
49668
49669 # Only continue checking if the ISO C99 headers exist and support is on.
49670 if test x"$ac_has_wchar_h" = xyes &&
49671 test x"$ac_has_wctype_h" = xyes &&
49672 test x"$enable_c_mbchar" != xno; then
49673
49674 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
49675 # numeric_limits can instantiate type_traits<wchar_t>
49676 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
49677 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
49678 cat >conftest.$ac_ext <<_ACEOF
49679 #line $LINENO "configure"
49680 /* confdefs.h. */
49681 _ACEOF
49682 cat confdefs.h >>conftest.$ac_ext
49683 cat >>conftest.$ac_ext <<_ACEOF
49684 /* end confdefs.h. */
49685 #include <wchar.h>
49686 int
49687 main ()
49688 {
49689 int i = WCHAR_MIN; int j = WCHAR_MAX;
49690 ;
49691 return 0;
49692 }
49693 _ACEOF
49694 rm -f conftest.$ac_objext
49695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49696 (eval $ac_compile) 2>&5
49697 ac_status=$?
49698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49699 (exit $ac_status); } &&
49700 { ac_try='test -s conftest.$ac_objext'
49701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49702 (eval $ac_try) 2>&5
49703 ac_status=$?
49704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49705 (exit $ac_status); }; }; then
49706 has_wchar_minmax=yes
49707 else
49708 echo "$as_me: failed program was:" >&5
49709 sed 's/^/| /' conftest.$ac_ext >&5
49710
49711 has_wchar_minmax=no
49712 fi
49713 rm -f conftest.$ac_objext conftest.$ac_ext
49714 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
49715 echo "${ECHO_T}$has_wchar_minmax" >&6
49716
49717 # Test wchar.h for WEOF, which is what we use to determine whether
49718 # to specialize for char_traits<wchar_t> or not.
49719 echo "$as_me:$LINENO: checking for WEOF" >&5
49720 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
49721 cat >conftest.$ac_ext <<_ACEOF
49722 #line $LINENO "configure"
49723 /* confdefs.h. */
49724 _ACEOF
49725 cat confdefs.h >>conftest.$ac_ext
49726 cat >>conftest.$ac_ext <<_ACEOF
49727 /* end confdefs.h. */
49728
49729 #include <wchar.h>
49730 #include <stddef.h>
49731 int
49732 main ()
49733 {
49734 wint_t i = WEOF;
49735 ;
49736 return 0;
49737 }
49738 _ACEOF
49739 rm -f conftest.$ac_objext
49740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49741 (eval $ac_compile) 2>&5
49742 ac_status=$?
49743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49744 (exit $ac_status); } &&
49745 { ac_try='test -s conftest.$ac_objext'
49746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49747 (eval $ac_try) 2>&5
49748 ac_status=$?
49749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49750 (exit $ac_status); }; }; then
49751 has_weof=yes
49752 else
49753 echo "$as_me: failed program was:" >&5
49754 sed 's/^/| /' conftest.$ac_ext >&5
49755
49756 has_weof=no
49757 fi
49758 rm -f conftest.$ac_objext conftest.$ac_ext
49759 echo "$as_me:$LINENO: result: $has_weof" >&5
49760 echo "${ECHO_T}$has_weof" >&6
49761
49762 # Tests for wide character functions used in char_traits<wchar_t>.
49763 ac_wfuncs=yes
49764
49765
49766
49767
49768
49769
49770 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
49771 do
49772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49773 echo "$as_me:$LINENO: checking for $ac_func" >&5
49774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49775 if eval "test \"\${$as_ac_var+set}\" = set"; then
49776 echo $ECHO_N "(cached) $ECHO_C" >&6
49777 else
49778 if test x$gcc_no_link = xyes; then
49779 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49781 { (exit 1); exit 1; }; }
49782 fi
49783 cat >conftest.$ac_ext <<_ACEOF
49784 #line $LINENO "configure"
49785 /* confdefs.h. */
49786 _ACEOF
49787 cat confdefs.h >>conftest.$ac_ext
49788 cat >>conftest.$ac_ext <<_ACEOF
49789 /* end confdefs.h. */
49790 /* System header to define __stub macros and hopefully few prototypes,
49791 which can conflict with char $ac_func (); below.
49792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49793 <limits.h> exists even on freestanding compilers. */
49794 #ifdef __STDC__
49795 # include <limits.h>
49796 #else
49797 # include <assert.h>
49798 #endif
49799 /* Override any gcc2 internal prototype to avoid an error. */
49800 #ifdef __cplusplus
49801 extern "C"
49802 {
49803 #endif
49804 /* We use char because int might match the return type of a gcc2
49805 builtin and then its argument prototype would still apply. */
49806 char $ac_func ();
49807 /* The GNU C library defines this for functions which it implements
49808 to always fail with ENOSYS. Some functions are actually named
49809 something starting with __ and the normal name is an alias. */
49810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49811 choke me
49812 #else
49813 char (*f) () = $ac_func;
49814 #endif
49815 #ifdef __cplusplus
49816 }
49817 #endif
49818
49819 int
49820 main ()
49821 {
49822 return f != $ac_func;
49823 ;
49824 return 0;
49825 }
49826 _ACEOF
49827 rm -f conftest.$ac_objext conftest$ac_exeext
49828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49829 (eval $ac_link) 2>&5
49830 ac_status=$?
49831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49832 (exit $ac_status); } &&
49833 { ac_try='test -s conftest$ac_exeext'
49834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49835 (eval $ac_try) 2>&5
49836 ac_status=$?
49837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49838 (exit $ac_status); }; }; then
49839 eval "$as_ac_var=yes"
49840 else
49841 echo "$as_me: failed program was:" >&5
49842 sed 's/^/| /' conftest.$ac_ext >&5
49843
49844 eval "$as_ac_var=no"
49845 fi
49846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49847 fi
49848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49850 if test `eval echo '${'$as_ac_var'}'` = yes; then
49851 cat >>confdefs.h <<_ACEOF
49852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49853 _ACEOF
49854
49855 else
49856 ac_wfuncs=no
49857 fi
49858 done
49859
49860
49861 # Checks for names injected into std:: by the c_std headers.
49862
49863
49864
49865
49866
49867
49868
49869
49870
49871
49872
49873
49874
49875
49876
49877
49878
49879
49880
49881
49882
49883
49884
49885
49886
49887
49888
49889
49890
49891
49892
49893
49894
49895
49896
49897
49898
49899
49900
49901
49902
49903
49904
49905
49906
49907
49908
49909
49910
49911
49912 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
49913 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
49914 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
49915 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
49916 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
49917 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
49918 do
49919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49920 echo "$as_me:$LINENO: checking for $ac_func" >&5
49921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49922 if eval "test \"\${$as_ac_var+set}\" = set"; then
49923 echo $ECHO_N "(cached) $ECHO_C" >&6
49924 else
49925 if test x$gcc_no_link = xyes; then
49926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49928 { (exit 1); exit 1; }; }
49929 fi
49930 cat >conftest.$ac_ext <<_ACEOF
49931 #line $LINENO "configure"
49932 /* confdefs.h. */
49933 _ACEOF
49934 cat confdefs.h >>conftest.$ac_ext
49935 cat >>conftest.$ac_ext <<_ACEOF
49936 /* end confdefs.h. */
49937 /* System header to define __stub macros and hopefully few prototypes,
49938 which can conflict with char $ac_func (); below.
49939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49940 <limits.h> exists even on freestanding compilers. */
49941 #ifdef __STDC__
49942 # include <limits.h>
49943 #else
49944 # include <assert.h>
49945 #endif
49946 /* Override any gcc2 internal prototype to avoid an error. */
49947 #ifdef __cplusplus
49948 extern "C"
49949 {
49950 #endif
49951 /* We use char because int might match the return type of a gcc2
49952 builtin and then its argument prototype would still apply. */
49953 char $ac_func ();
49954 /* The GNU C library defines this for functions which it implements
49955 to always fail with ENOSYS. Some functions are actually named
49956 something starting with __ and the normal name is an alias. */
49957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49958 choke me
49959 #else
49960 char (*f) () = $ac_func;
49961 #endif
49962 #ifdef __cplusplus
49963 }
49964 #endif
49965
49966 int
49967 main ()
49968 {
49969 return f != $ac_func;
49970 ;
49971 return 0;
49972 }
49973 _ACEOF
49974 rm -f conftest.$ac_objext conftest$ac_exeext
49975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49976 (eval $ac_link) 2>&5
49977 ac_status=$?
49978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49979 (exit $ac_status); } &&
49980 { ac_try='test -s conftest$ac_exeext'
49981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49982 (eval $ac_try) 2>&5
49983 ac_status=$?
49984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49985 (exit $ac_status); }; }; then
49986 eval "$as_ac_var=yes"
49987 else
49988 echo "$as_me: failed program was:" >&5
49989 sed 's/^/| /' conftest.$ac_ext >&5
49990
49991 eval "$as_ac_var=no"
49992 fi
49993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49994 fi
49995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49997 if test `eval echo '${'$as_ac_var'}'` = yes; then
49998 cat >>confdefs.h <<_ACEOF
49999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50000 _ACEOF
50001
50002 else
50003 ac_wfuncs=no
50004 fi
50005 done
50006
50007
50008 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
50009 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
50010 if test x"$has_weof" = xyes &&
50011 test x"$has_wchar_minmax" = xyes &&
50012 test x"$ac_wfuncs" = xyes;
50013 then
50014 ac_isoC99_wchar_t=yes
50015 else
50016 ac_isoC99_wchar_t=no
50017 fi
50018 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
50019 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
50020
50021 # Use iconv for wchar_t to char conversions. As such, check for
50022 # X/Open Portability Guide, version 2 features (XPG2).
50023 if test "${ac_cv_header_iconv_h+set}" = set; then
50024 echo "$as_me:$LINENO: checking for iconv.h" >&5
50025 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50026 if test "${ac_cv_header_iconv_h+set}" = set; then
50027 echo $ECHO_N "(cached) $ECHO_C" >&6
50028 fi
50029 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50030 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50031 else
50032 # Is the header compilable?
50033 echo "$as_me:$LINENO: checking iconv.h usability" >&5
50034 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
50035 cat >conftest.$ac_ext <<_ACEOF
50036 #line $LINENO "configure"
50037 /* confdefs.h. */
50038 _ACEOF
50039 cat confdefs.h >>conftest.$ac_ext
50040 cat >>conftest.$ac_ext <<_ACEOF
50041 /* end confdefs.h. */
50042 $ac_includes_default
50043 #include <iconv.h>
50044 _ACEOF
50045 rm -f conftest.$ac_objext
50046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50047 (eval $ac_compile) 2>&5
50048 ac_status=$?
50049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50050 (exit $ac_status); } &&
50051 { ac_try='test -s conftest.$ac_objext'
50052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50053 (eval $ac_try) 2>&5
50054 ac_status=$?
50055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50056 (exit $ac_status); }; }; then
50057 ac_header_compiler=yes
50058 else
50059 echo "$as_me: failed program was:" >&5
50060 sed 's/^/| /' conftest.$ac_ext >&5
50061
50062 ac_header_compiler=no
50063 fi
50064 rm -f conftest.$ac_objext conftest.$ac_ext
50065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50066 echo "${ECHO_T}$ac_header_compiler" >&6
50067
50068 # Is the header present?
50069 echo "$as_me:$LINENO: checking iconv.h presence" >&5
50070 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
50071 cat >conftest.$ac_ext <<_ACEOF
50072 #line $LINENO "configure"
50073 /* confdefs.h. */
50074 _ACEOF
50075 cat confdefs.h >>conftest.$ac_ext
50076 cat >>conftest.$ac_ext <<_ACEOF
50077 /* end confdefs.h. */
50078 #include <iconv.h>
50079 _ACEOF
50080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50082 ac_status=$?
50083 grep -v '^ *+' conftest.er1 >conftest.err
50084 rm -f conftest.er1
50085 cat conftest.err >&5
50086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50087 (exit $ac_status); } >/dev/null; then
50088 if test -s conftest.err; then
50089 ac_cpp_err=$ac_c_preproc_warn_flag
50090 else
50091 ac_cpp_err=
50092 fi
50093 else
50094 ac_cpp_err=yes
50095 fi
50096 if test -z "$ac_cpp_err"; then
50097 ac_header_preproc=yes
50098 else
50099 echo "$as_me: failed program was:" >&5
50100 sed 's/^/| /' conftest.$ac_ext >&5
50101
50102 ac_header_preproc=no
50103 fi
50104 rm -f conftest.err conftest.$ac_ext
50105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50106 echo "${ECHO_T}$ac_header_preproc" >&6
50107
50108 # So? What about this header?
50109 case $ac_header_compiler:$ac_header_preproc in
50110 yes:no )
50111 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
50112 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50113 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50114 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50115 (
50116 cat <<\_ASBOX
50117 ## ------------------------------------ ##
50118 ## Report this to bug-autoconf@gnu.org. ##
50119 ## ------------------------------------ ##
50120 _ASBOX
50121 ) |
50122 sed "s/^/$as_me: WARNING: /" >&2
50123 ;;
50124 no:yes )
50125 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
50126 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
50127 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
50128 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
50129 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50130 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50131 (
50132 cat <<\_ASBOX
50133 ## ------------------------------------ ##
50134 ## Report this to bug-autoconf@gnu.org. ##
50135 ## ------------------------------------ ##
50136 _ASBOX
50137 ) |
50138 sed "s/^/$as_me: WARNING: /" >&2
50139 ;;
50140 esac
50141 echo "$as_me:$LINENO: checking for iconv.h" >&5
50142 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50143 if test "${ac_cv_header_iconv_h+set}" = set; then
50144 echo $ECHO_N "(cached) $ECHO_C" >&6
50145 else
50146 ac_cv_header_iconv_h=$ac_header_preproc
50147 fi
50148 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50149 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50150
50151 fi
50152 if test $ac_cv_header_iconv_h = yes; then
50153 ac_has_iconv_h=yes
50154 else
50155 ac_has_iconv_h=no
50156 fi
50157
50158
50159 if test "${ac_cv_header_langinfo_h+set}" = set; then
50160 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50161 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50162 if test "${ac_cv_header_langinfo_h+set}" = set; then
50163 echo $ECHO_N "(cached) $ECHO_C" >&6
50164 fi
50165 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50166 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50167 else
50168 # Is the header compilable?
50169 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
50170 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
50171 cat >conftest.$ac_ext <<_ACEOF
50172 #line $LINENO "configure"
50173 /* confdefs.h. */
50174 _ACEOF
50175 cat confdefs.h >>conftest.$ac_ext
50176 cat >>conftest.$ac_ext <<_ACEOF
50177 /* end confdefs.h. */
50178 $ac_includes_default
50179 #include <langinfo.h>
50180 _ACEOF
50181 rm -f conftest.$ac_objext
50182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50183 (eval $ac_compile) 2>&5
50184 ac_status=$?
50185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50186 (exit $ac_status); } &&
50187 { ac_try='test -s conftest.$ac_objext'
50188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50189 (eval $ac_try) 2>&5
50190 ac_status=$?
50191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50192 (exit $ac_status); }; }; then
50193 ac_header_compiler=yes
50194 else
50195 echo "$as_me: failed program was:" >&5
50196 sed 's/^/| /' conftest.$ac_ext >&5
50197
50198 ac_header_compiler=no
50199 fi
50200 rm -f conftest.$ac_objext conftest.$ac_ext
50201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50202 echo "${ECHO_T}$ac_header_compiler" >&6
50203
50204 # Is the header present?
50205 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
50206 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
50207 cat >conftest.$ac_ext <<_ACEOF
50208 #line $LINENO "configure"
50209 /* confdefs.h. */
50210 _ACEOF
50211 cat confdefs.h >>conftest.$ac_ext
50212 cat >>conftest.$ac_ext <<_ACEOF
50213 /* end confdefs.h. */
50214 #include <langinfo.h>
50215 _ACEOF
50216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50218 ac_status=$?
50219 grep -v '^ *+' conftest.er1 >conftest.err
50220 rm -f conftest.er1
50221 cat conftest.err >&5
50222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50223 (exit $ac_status); } >/dev/null; then
50224 if test -s conftest.err; then
50225 ac_cpp_err=$ac_c_preproc_warn_flag
50226 else
50227 ac_cpp_err=
50228 fi
50229 else
50230 ac_cpp_err=yes
50231 fi
50232 if test -z "$ac_cpp_err"; then
50233 ac_header_preproc=yes
50234 else
50235 echo "$as_me: failed program was:" >&5
50236 sed 's/^/| /' conftest.$ac_ext >&5
50237
50238 ac_header_preproc=no
50239 fi
50240 rm -f conftest.err conftest.$ac_ext
50241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50242 echo "${ECHO_T}$ac_header_preproc" >&6
50243
50244 # So? What about this header?
50245 case $ac_header_compiler:$ac_header_preproc in
50246 yes:no )
50247 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
50248 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50249 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50250 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50251 (
50252 cat <<\_ASBOX
50253 ## ------------------------------------ ##
50254 ## Report this to bug-autoconf@gnu.org. ##
50255 ## ------------------------------------ ##
50256 _ASBOX
50257 ) |
50258 sed "s/^/$as_me: WARNING: /" >&2
50259 ;;
50260 no:yes )
50261 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
50262 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
50263 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
50264 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
50265 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50266 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50267 (
50268 cat <<\_ASBOX
50269 ## ------------------------------------ ##
50270 ## Report this to bug-autoconf@gnu.org. ##
50271 ## ------------------------------------ ##
50272 _ASBOX
50273 ) |
50274 sed "s/^/$as_me: WARNING: /" >&2
50275 ;;
50276 esac
50277 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50278 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50279 if test "${ac_cv_header_langinfo_h+set}" = set; then
50280 echo $ECHO_N "(cached) $ECHO_C" >&6
50281 else
50282 ac_cv_header_langinfo_h=$ac_header_preproc
50283 fi
50284 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50285 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50286
50287 fi
50288 if test $ac_cv_header_langinfo_h = yes; then
50289 ac_has_langinfo_h=yes
50290 else
50291 ac_has_langinfo_h=no
50292 fi
50293
50294
50295
50296 # Check for existence of libiconv.a providing XPG2 wchar_t support.
50297 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
50298 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
50299 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
50300 echo $ECHO_N "(cached) $ECHO_C" >&6
50301 else
50302 ac_check_lib_save_LIBS=$LIBS
50303 LIBS="-liconv $LIBS"
50304 if test x$gcc_no_link = xyes; then
50305 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50307 { (exit 1); exit 1; }; }
50308 fi
50309 cat >conftest.$ac_ext <<_ACEOF
50310 #line $LINENO "configure"
50311 /* confdefs.h. */
50312 _ACEOF
50313 cat confdefs.h >>conftest.$ac_ext
50314 cat >>conftest.$ac_ext <<_ACEOF
50315 /* end confdefs.h. */
50316
50317 /* Override any gcc2 internal prototype to avoid an error. */
50318 #ifdef __cplusplus
50319 extern "C"
50320 #endif
50321 /* We use char because int might match the return type of a gcc2
50322 builtin and then its argument prototype would still apply. */
50323 char iconv ();
50324 int
50325 main ()
50326 {
50327 iconv ();
50328 ;
50329 return 0;
50330 }
50331 _ACEOF
50332 rm -f conftest.$ac_objext conftest$ac_exeext
50333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50334 (eval $ac_link) 2>&5
50335 ac_status=$?
50336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50337 (exit $ac_status); } &&
50338 { ac_try='test -s conftest$ac_exeext'
50339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50340 (eval $ac_try) 2>&5
50341 ac_status=$?
50342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50343 (exit $ac_status); }; }; then
50344 ac_cv_lib_iconv_iconv=yes
50345 else
50346 echo "$as_me: failed program was:" >&5
50347 sed 's/^/| /' conftest.$ac_ext >&5
50348
50349 ac_cv_lib_iconv_iconv=no
50350 fi
50351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50352 LIBS=$ac_check_lib_save_LIBS
50353 fi
50354 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
50355 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
50356 if test $ac_cv_lib_iconv_iconv = yes; then
50357 libiconv="-liconv"
50358 fi
50359
50360 ac_save_LIBS="$LIBS"
50361 LIBS="$LIBS $libiconv"
50362
50363
50364
50365
50366
50367 for ac_func in iconv_open iconv_close iconv nl_langinfo
50368 do
50369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50370 echo "$as_me:$LINENO: checking for $ac_func" >&5
50371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50372 if eval "test \"\${$as_ac_var+set}\" = set"; then
50373 echo $ECHO_N "(cached) $ECHO_C" >&6
50374 else
50375 if test x$gcc_no_link = xyes; then
50376 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50377 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50378 { (exit 1); exit 1; }; }
50379 fi
50380 cat >conftest.$ac_ext <<_ACEOF
50381 #line $LINENO "configure"
50382 /* confdefs.h. */
50383 _ACEOF
50384 cat confdefs.h >>conftest.$ac_ext
50385 cat >>conftest.$ac_ext <<_ACEOF
50386 /* end confdefs.h. */
50387 /* System header to define __stub macros and hopefully few prototypes,
50388 which can conflict with char $ac_func (); below.
50389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50390 <limits.h> exists even on freestanding compilers. */
50391 #ifdef __STDC__
50392 # include <limits.h>
50393 #else
50394 # include <assert.h>
50395 #endif
50396 /* Override any gcc2 internal prototype to avoid an error. */
50397 #ifdef __cplusplus
50398 extern "C"
50399 {
50400 #endif
50401 /* We use char because int might match the return type of a gcc2
50402 builtin and then its argument prototype would still apply. */
50403 char $ac_func ();
50404 /* The GNU C library defines this for functions which it implements
50405 to always fail with ENOSYS. Some functions are actually named
50406 something starting with __ and the normal name is an alias. */
50407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50408 choke me
50409 #else
50410 char (*f) () = $ac_func;
50411 #endif
50412 #ifdef __cplusplus
50413 }
50414 #endif
50415
50416 int
50417 main ()
50418 {
50419 return f != $ac_func;
50420 ;
50421 return 0;
50422 }
50423 _ACEOF
50424 rm -f conftest.$ac_objext conftest$ac_exeext
50425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50426 (eval $ac_link) 2>&5
50427 ac_status=$?
50428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50429 (exit $ac_status); } &&
50430 { ac_try='test -s conftest$ac_exeext'
50431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50432 (eval $ac_try) 2>&5
50433 ac_status=$?
50434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50435 (exit $ac_status); }; }; then
50436 eval "$as_ac_var=yes"
50437 else
50438 echo "$as_me: failed program was:" >&5
50439 sed 's/^/| /' conftest.$ac_ext >&5
50440
50441 eval "$as_ac_var=no"
50442 fi
50443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50444 fi
50445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50447 if test `eval echo '${'$as_ac_var'}'` = yes; then
50448 cat >>confdefs.h <<_ACEOF
50449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50450 _ACEOF
50451 ac_XPG2funcs=yes
50452 else
50453 ac_XPG2funcs=no
50454 fi
50455 done
50456
50457
50458 LIBS="$ac_save_LIBS"
50459
50460 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
50461 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
50462 if test x"$ac_has_iconv_h" = xyes &&
50463 test x"$ac_has_langinfo_h" = xyes &&
50464 test x"$ac_XPG2funcs" = xyes;
50465 then
50466 ac_XPG2_wchar_t=yes
50467 else
50468 ac_XPG2_wchar_t=no
50469 fi
50470 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
50471 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
50472
50473 # At the moment, only enable wchar_t specializations if all the
50474 # above support is present.
50475 if test x"$ac_isoC99_wchar_t" = xyes &&
50476 test x"$ac_XPG2_wchar_t" = xyes;
50477 then
50478 cat >>confdefs.h <<\_ACEOF
50479 #define _GLIBCXX_USE_WCHAR_T 1
50480 _ACEOF
50481
50482 enable_wchar_t=yes
50483 fi
50484 fi
50485 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
50486 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
50487 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
50488 echo "${ECHO_T}$enable_wchar_t" >&6
50489
50490 cat >>confdefs.h <<\_ACEOF
50491 #define HAVE_COPYSIGN 1
50492 _ACEOF
50493
50494 cat >>confdefs.h <<\_ACEOF
50495 #define HAVE_COPYSIGNF 1
50496 _ACEOF
50497
50498 cat >>confdefs.h <<\_ACEOF
50499 #define HAVE_FREXPF 1
50500 _ACEOF
50501
50502 cat >>confdefs.h <<\_ACEOF
50503 #define HAVE_HYPOT 1
50504 _ACEOF
50505
50506 case "$target" in
50507 *-hpux10*)
50508 cat >>confdefs.h <<\_ACEOF
50509 #define HAVE_FINITE 1
50510 _ACEOF
50511
50512 cat >>confdefs.h <<\_ACEOF
50513 #define HAVE_FINITEF 1
50514 _ACEOF
50515
50516 cat >>confdefs.h <<\_ACEOF
50517 #define HAVE_ISINF 1
50518 _ACEOF
50519
50520 cat >>confdefs.h <<\_ACEOF
50521 #define HAVE_ISINFF 1
50522 _ACEOF
50523
50524 cat >>confdefs.h <<\_ACEOF
50525 #define HAVE_ISNAN 1
50526 _ACEOF
50527
50528 cat >>confdefs.h <<\_ACEOF
50529 #define HAVE_ISNANF 1
50530 _ACEOF
50531
50532 ;;
50533 esac
50534 ;;
50535 *-linux*)
50536 #os_include_dir="os/gnu-linux"
50537
50538
50539
50540
50541
50542
50543
50544
50545
50546
50547
50548
50549 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
50550 machine/endian.h machine/param.h sys/machine.h sys/types.h \
50551 fp.h locale.h float.h inttypes.h
50552 do
50553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50555 echo "$as_me:$LINENO: checking for $ac_header" >&5
50556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50558 echo $ECHO_N "(cached) $ECHO_C" >&6
50559 fi
50560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50562 else
50563 # Is the header compilable?
50564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50566 cat >conftest.$ac_ext <<_ACEOF
50567 #line $LINENO "configure"
50568 /* confdefs.h. */
50569 _ACEOF
50570 cat confdefs.h >>conftest.$ac_ext
50571 cat >>conftest.$ac_ext <<_ACEOF
50572 /* end confdefs.h. */
50573 $ac_includes_default
50574 #include <$ac_header>
50575 _ACEOF
50576 rm -f conftest.$ac_objext
50577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50578 (eval $ac_compile) 2>&5
50579 ac_status=$?
50580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50581 (exit $ac_status); } &&
50582 { ac_try='test -s conftest.$ac_objext'
50583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50584 (eval $ac_try) 2>&5
50585 ac_status=$?
50586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50587 (exit $ac_status); }; }; then
50588 ac_header_compiler=yes
50589 else
50590 echo "$as_me: failed program was:" >&5
50591 sed 's/^/| /' conftest.$ac_ext >&5
50592
50593 ac_header_compiler=no
50594 fi
50595 rm -f conftest.$ac_objext conftest.$ac_ext
50596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50597 echo "${ECHO_T}$ac_header_compiler" >&6
50598
50599 # Is the header present?
50600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50602 cat >conftest.$ac_ext <<_ACEOF
50603 #line $LINENO "configure"
50604 /* confdefs.h. */
50605 _ACEOF
50606 cat confdefs.h >>conftest.$ac_ext
50607 cat >>conftest.$ac_ext <<_ACEOF
50608 /* end confdefs.h. */
50609 #include <$ac_header>
50610 _ACEOF
50611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50613 ac_status=$?
50614 grep -v '^ *+' conftest.er1 >conftest.err
50615 rm -f conftest.er1
50616 cat conftest.err >&5
50617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50618 (exit $ac_status); } >/dev/null; then
50619 if test -s conftest.err; then
50620 ac_cpp_err=$ac_c_preproc_warn_flag
50621 else
50622 ac_cpp_err=
50623 fi
50624 else
50625 ac_cpp_err=yes
50626 fi
50627 if test -z "$ac_cpp_err"; then
50628 ac_header_preproc=yes
50629 else
50630 echo "$as_me: failed program was:" >&5
50631 sed 's/^/| /' conftest.$ac_ext >&5
50632
50633 ac_header_preproc=no
50634 fi
50635 rm -f conftest.err conftest.$ac_ext
50636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50637 echo "${ECHO_T}$ac_header_preproc" >&6
50638
50639 # So? What about this header?
50640 case $ac_header_compiler:$ac_header_preproc in
50641 yes:no )
50642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50646 (
50647 cat <<\_ASBOX
50648 ## ------------------------------------ ##
50649 ## Report this to bug-autoconf@gnu.org. ##
50650 ## ------------------------------------ ##
50651 _ASBOX
50652 ) |
50653 sed "s/^/$as_me: WARNING: /" >&2
50654 ;;
50655 no:yes )
50656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50662 (
50663 cat <<\_ASBOX
50664 ## ------------------------------------ ##
50665 ## Report this to bug-autoconf@gnu.org. ##
50666 ## ------------------------------------ ##
50667 _ASBOX
50668 ) |
50669 sed "s/^/$as_me: WARNING: /" >&2
50670 ;;
50671 esac
50672 echo "$as_me:$LINENO: checking for $ac_header" >&5
50673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50675 echo $ECHO_N "(cached) $ECHO_C" >&6
50676 else
50677 eval "$as_ac_Header=$ac_header_preproc"
50678 fi
50679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50681
50682 fi
50683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50684 cat >>confdefs.h <<_ACEOF
50685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50686 _ACEOF
50687
50688 fi
50689
50690 done
50691
50692 SECTION_FLAGS='-ffunction-sections -fdata-sections'
50693
50694
50695 # If we're not using GNU ld, then there's no point in even trying these
50696 # tests. Check for that first. We should have already tested for gld
50697 # by now (in libtool), but require it now just to be safe...
50698 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
50699 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
50700
50701
50702
50703 # The name set by libtool depends on the version of libtool. Shame on us
50704 # for depending on an impl detail, but c'est la vie. Older versions used
50705 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
50706 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
50707 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
50708 # set (hence we're using an older libtool), then set it.
50709 if test x${with_gnu_ld+set} != xset; then
50710 if test x${ac_cv_prog_gnu_ld+set} != xset; then
50711 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
50712 with_gnu_ld=no
50713 else
50714 with_gnu_ld=$ac_cv_prog_gnu_ld
50715 fi
50716 fi
50717
50718 # Start by getting the version number. I think the libtool test already
50719 # does some of this, but throws away the result.
50720
50721 ldver=`$LD --version 2>/dev/null | head -1 | \
50722 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
50723
50724 glibcxx_gnu_ld_version=`echo $ldver | \
50725 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
50726
50727 # Set --gc-sections.
50728 if test "$with_gnu_ld" = "notbroken"; then
50729 # GNU ld it is! Joy and bunny rabbits!
50730
50731 # All these tests are for C++; save the language and the compiler flags.
50732 # Need to do this so that g++ won't try to link in libstdc++
50733 ac_test_CFLAGS="${CFLAGS+set}"
50734 ac_save_CFLAGS="$CFLAGS"
50735 CFLAGS='-x c++ -Wl,--gc-sections'
50736
50737 # Check for -Wl,--gc-sections
50738 # XXX This test is broken at the moment, as symbols required for linking
50739 # are now in libsupc++ (not built yet). In addition, this test has
50740 # cored on solaris in the past. In addition, --gc-sections doesn't
50741 # really work at the moment (keeps on discarding used sections, first
50742 # .eh_frame and now some of the glibc sections for iconv).
50743 # Bzzzzt. Thanks for playing, maybe next time.
50744 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
50745 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
50746 if test "$cross_compiling" = yes; then
50747 ac_sectionLDflags=yes
50748 else
50749 cat >conftest.$ac_ext <<_ACEOF
50750 #line $LINENO "configure"
50751 /* confdefs.h. */
50752 _ACEOF
50753 cat confdefs.h >>conftest.$ac_ext
50754 cat >>conftest.$ac_ext <<_ACEOF
50755 /* end confdefs.h. */
50756
50757 int main(void)
50758 {
50759 try { throw 1; }
50760 catch (...) { };
50761 return 0;
50762 }
50763
50764 _ACEOF
50765 rm -f conftest$ac_exeext
50766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50767 (eval $ac_link) 2>&5
50768 ac_status=$?
50769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50772 (eval $ac_try) 2>&5
50773 ac_status=$?
50774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50775 (exit $ac_status); }; }; then
50776 ac_sectionLDflags=yes
50777 else
50778 echo "$as_me: program exited with status $ac_status" >&5
50779 echo "$as_me: failed program was:" >&5
50780 sed 's/^/| /' conftest.$ac_ext >&5
50781
50782 ( exit $ac_status )
50783 ac_sectionLDflags=no
50784 fi
50785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50786 fi
50787 if test "$ac_test_CFLAGS" = set; then
50788 CFLAGS="$ac_save_CFLAGS"
50789 else
50790 # this is the suspicious part
50791 CFLAGS=''
50792 fi
50793 if test "$ac_sectionLDflags" = "yes"; then
50794 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
50795 fi
50796 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
50797 echo "${ECHO_T}$ac_sectionLDflags" >&6
50798 fi
50799
50800 # Set linker optimization flags.
50801 if test x"$with_gnu_ld" = x"yes"; then
50802 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
50803 fi
50804
50805
50806
50807
50808
50809
50810 echo "$as_me:$LINENO: checking for main in -lm" >&5
50811 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
50812 if test "${ac_cv_lib_m_main+set}" = set; then
50813 echo $ECHO_N "(cached) $ECHO_C" >&6
50814 else
50815 ac_check_lib_save_LIBS=$LIBS
50816 LIBS="-lm $LIBS"
50817 if test x$gcc_no_link = xyes; then
50818 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50819 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50820 { (exit 1); exit 1; }; }
50821 fi
50822 cat >conftest.$ac_ext <<_ACEOF
50823 #line $LINENO "configure"
50824 /* confdefs.h. */
50825 _ACEOF
50826 cat confdefs.h >>conftest.$ac_ext
50827 cat >>conftest.$ac_ext <<_ACEOF
50828 /* end confdefs.h. */
50829
50830
50831 int
50832 main ()
50833 {
50834 main ();
50835 ;
50836 return 0;
50837 }
50838 _ACEOF
50839 rm -f conftest.$ac_objext conftest$ac_exeext
50840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50841 (eval $ac_link) 2>&5
50842 ac_status=$?
50843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50844 (exit $ac_status); } &&
50845 { ac_try='test -s conftest$ac_exeext'
50846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50847 (eval $ac_try) 2>&5
50848 ac_status=$?
50849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50850 (exit $ac_status); }; }; then
50851 ac_cv_lib_m_main=yes
50852 else
50853 echo "$as_me: failed program was:" >&5
50854 sed 's/^/| /' conftest.$ac_ext >&5
50855
50856 ac_cv_lib_m_main=no
50857 fi
50858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50859 LIBS=$ac_check_lib_save_LIBS
50860 fi
50861 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
50862 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
50863 if test $ac_cv_lib_m_main = yes; then
50864 cat >>confdefs.h <<_ACEOF
50865 #define HAVE_LIBM 1
50866 _ACEOF
50867
50868 LIBS="-lm $LIBS"
50869
50870 fi
50871
50872
50873
50874 for ac_func in nan copysignf
50875 do
50876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50877 echo "$as_me:$LINENO: checking for $ac_func" >&5
50878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50879 if eval "test \"\${$as_ac_var+set}\" = set"; then
50880 echo $ECHO_N "(cached) $ECHO_C" >&6
50881 else
50882 if test x$gcc_no_link = xyes; then
50883 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50884 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50885 { (exit 1); exit 1; }; }
50886 fi
50887 cat >conftest.$ac_ext <<_ACEOF
50888 #line $LINENO "configure"
50889 /* confdefs.h. */
50890 _ACEOF
50891 cat confdefs.h >>conftest.$ac_ext
50892 cat >>conftest.$ac_ext <<_ACEOF
50893 /* end confdefs.h. */
50894 /* System header to define __stub macros and hopefully few prototypes,
50895 which can conflict with char $ac_func (); below.
50896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50897 <limits.h> exists even on freestanding compilers. */
50898 #ifdef __STDC__
50899 # include <limits.h>
50900 #else
50901 # include <assert.h>
50902 #endif
50903 /* Override any gcc2 internal prototype to avoid an error. */
50904 #ifdef __cplusplus
50905 extern "C"
50906 {
50907 #endif
50908 /* We use char because int might match the return type of a gcc2
50909 builtin and then its argument prototype would still apply. */
50910 char $ac_func ();
50911 /* The GNU C library defines this for functions which it implements
50912 to always fail with ENOSYS. Some functions are actually named
50913 something starting with __ and the normal name is an alias. */
50914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50915 choke me
50916 #else
50917 char (*f) () = $ac_func;
50918 #endif
50919 #ifdef __cplusplus
50920 }
50921 #endif
50922
50923 int
50924 main ()
50925 {
50926 return f != $ac_func;
50927 ;
50928 return 0;
50929 }
50930 _ACEOF
50931 rm -f conftest.$ac_objext conftest$ac_exeext
50932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50933 (eval $ac_link) 2>&5
50934 ac_status=$?
50935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50936 (exit $ac_status); } &&
50937 { ac_try='test -s conftest$ac_exeext'
50938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50939 (eval $ac_try) 2>&5
50940 ac_status=$?
50941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50942 (exit $ac_status); }; }; then
50943 eval "$as_ac_var=yes"
50944 else
50945 echo "$as_me: failed program was:" >&5
50946 sed 's/^/| /' conftest.$ac_ext >&5
50947
50948 eval "$as_ac_var=no"
50949 fi
50950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50951 fi
50952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50954 if test `eval echo '${'$as_ac_var'}'` = yes; then
50955 cat >>confdefs.h <<_ACEOF
50956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50957 _ACEOF
50958
50959 else
50960 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50961 fi
50962 done
50963
50964
50965
50966 for ac_func in __signbit
50967 do
50968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50969 echo "$as_me:$LINENO: checking for $ac_func" >&5
50970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50971 if eval "test \"\${$as_ac_var+set}\" = set"; then
50972 echo $ECHO_N "(cached) $ECHO_C" >&6
50973 else
50974 if test x$gcc_no_link = xyes; then
50975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50977 { (exit 1); exit 1; }; }
50978 fi
50979 cat >conftest.$ac_ext <<_ACEOF
50980 #line $LINENO "configure"
50981 /* confdefs.h. */
50982 _ACEOF
50983 cat confdefs.h >>conftest.$ac_ext
50984 cat >>conftest.$ac_ext <<_ACEOF
50985 /* end confdefs.h. */
50986 /* System header to define __stub macros and hopefully few prototypes,
50987 which can conflict with char $ac_func (); below.
50988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50989 <limits.h> exists even on freestanding compilers. */
50990 #ifdef __STDC__
50991 # include <limits.h>
50992 #else
50993 # include <assert.h>
50994 #endif
50995 /* Override any gcc2 internal prototype to avoid an error. */
50996 #ifdef __cplusplus
50997 extern "C"
50998 {
50999 #endif
51000 /* We use char because int might match the return type of a gcc2
51001 builtin and then its argument prototype would still apply. */
51002 char $ac_func ();
51003 /* The GNU C library defines this for functions which it implements
51004 to always fail with ENOSYS. Some functions are actually named
51005 something starting with __ and the normal name is an alias. */
51006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51007 choke me
51008 #else
51009 char (*f) () = $ac_func;
51010 #endif
51011 #ifdef __cplusplus
51012 }
51013 #endif
51014
51015 int
51016 main ()
51017 {
51018 return f != $ac_func;
51019 ;
51020 return 0;
51021 }
51022 _ACEOF
51023 rm -f conftest.$ac_objext conftest$ac_exeext
51024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51025 (eval $ac_link) 2>&5
51026 ac_status=$?
51027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51028 (exit $ac_status); } &&
51029 { ac_try='test -s conftest$ac_exeext'
51030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51031 (eval $ac_try) 2>&5
51032 ac_status=$?
51033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51034 (exit $ac_status); }; }; then
51035 eval "$as_ac_var=yes"
51036 else
51037 echo "$as_me: failed program was:" >&5
51038 sed 's/^/| /' conftest.$ac_ext >&5
51039
51040 eval "$as_ac_var=no"
51041 fi
51042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51043 fi
51044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51046 if test `eval echo '${'$as_ac_var'}'` = yes; then
51047 cat >>confdefs.h <<_ACEOF
51048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51049 _ACEOF
51050
51051 else
51052 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
51053 fi
51054 done
51055
51056
51057 for ac_func in __signbitf
51058 do
51059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51060 echo "$as_me:$LINENO: checking for $ac_func" >&5
51061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51062 if eval "test \"\${$as_ac_var+set}\" = set"; then
51063 echo $ECHO_N "(cached) $ECHO_C" >&6
51064 else
51065 if test x$gcc_no_link = xyes; then
51066 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51067 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51068 { (exit 1); exit 1; }; }
51069 fi
51070 cat >conftest.$ac_ext <<_ACEOF
51071 #line $LINENO "configure"
51072 /* confdefs.h. */
51073 _ACEOF
51074 cat confdefs.h >>conftest.$ac_ext
51075 cat >>conftest.$ac_ext <<_ACEOF
51076 /* end confdefs.h. */
51077 /* System header to define __stub macros and hopefully few prototypes,
51078 which can conflict with char $ac_func (); below.
51079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51080 <limits.h> exists even on freestanding compilers. */
51081 #ifdef __STDC__
51082 # include <limits.h>
51083 #else
51084 # include <assert.h>
51085 #endif
51086 /* Override any gcc2 internal prototype to avoid an error. */
51087 #ifdef __cplusplus
51088 extern "C"
51089 {
51090 #endif
51091 /* We use char because int might match the return type of a gcc2
51092 builtin and then its argument prototype would still apply. */
51093 char $ac_func ();
51094 /* The GNU C library defines this for functions which it implements
51095 to always fail with ENOSYS. Some functions are actually named
51096 something starting with __ and the normal name is an alias. */
51097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51098 choke me
51099 #else
51100 char (*f) () = $ac_func;
51101 #endif
51102 #ifdef __cplusplus
51103 }
51104 #endif
51105
51106 int
51107 main ()
51108 {
51109 return f != $ac_func;
51110 ;
51111 return 0;
51112 }
51113 _ACEOF
51114 rm -f conftest.$ac_objext conftest$ac_exeext
51115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51116 (eval $ac_link) 2>&5
51117 ac_status=$?
51118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51119 (exit $ac_status); } &&
51120 { ac_try='test -s conftest$ac_exeext'
51121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51122 (eval $ac_try) 2>&5
51123 ac_status=$?
51124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51125 (exit $ac_status); }; }; then
51126 eval "$as_ac_var=yes"
51127 else
51128 echo "$as_me: failed program was:" >&5
51129 sed 's/^/| /' conftest.$ac_ext >&5
51130
51131 eval "$as_ac_var=no"
51132 fi
51133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51134 fi
51135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51137 if test `eval echo '${'$as_ac_var'}'` = yes; then
51138 cat >>confdefs.h <<_ACEOF
51139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51140 _ACEOF
51141
51142 else
51143 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
51144 fi
51145 done
51146
51147
51148 if test x$ac_cv_func_copysignl = x"yes"; then
51149
51150 for ac_func in __signbitl
51151 do
51152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51153 echo "$as_me:$LINENO: checking for $ac_func" >&5
51154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51155 if eval "test \"\${$as_ac_var+set}\" = set"; then
51156 echo $ECHO_N "(cached) $ECHO_C" >&6
51157 else
51158 if test x$gcc_no_link = xyes; then
51159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51161 { (exit 1); exit 1; }; }
51162 fi
51163 cat >conftest.$ac_ext <<_ACEOF
51164 #line $LINENO "configure"
51165 /* confdefs.h. */
51166 _ACEOF
51167 cat confdefs.h >>conftest.$ac_ext
51168 cat >>conftest.$ac_ext <<_ACEOF
51169 /* end confdefs.h. */
51170 /* System header to define __stub macros and hopefully few prototypes,
51171 which can conflict with char $ac_func (); below.
51172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51173 <limits.h> exists even on freestanding compilers. */
51174 #ifdef __STDC__
51175 # include <limits.h>
51176 #else
51177 # include <assert.h>
51178 #endif
51179 /* Override any gcc2 internal prototype to avoid an error. */
51180 #ifdef __cplusplus
51181 extern "C"
51182 {
51183 #endif
51184 /* We use char because int might match the return type of a gcc2
51185 builtin and then its argument prototype would still apply. */
51186 char $ac_func ();
51187 /* The GNU C library defines this for functions which it implements
51188 to always fail with ENOSYS. Some functions are actually named
51189 something starting with __ and the normal name is an alias. */
51190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51191 choke me
51192 #else
51193 char (*f) () = $ac_func;
51194 #endif
51195 #ifdef __cplusplus
51196 }
51197 #endif
51198
51199 int
51200 main ()
51201 {
51202 return f != $ac_func;
51203 ;
51204 return 0;
51205 }
51206 _ACEOF
51207 rm -f conftest.$ac_objext conftest$ac_exeext
51208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51209 (eval $ac_link) 2>&5
51210 ac_status=$?
51211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51212 (exit $ac_status); } &&
51213 { ac_try='test -s conftest$ac_exeext'
51214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51215 (eval $ac_try) 2>&5
51216 ac_status=$?
51217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51218 (exit $ac_status); }; }; then
51219 eval "$as_ac_var=yes"
51220 else
51221 echo "$as_me: failed program was:" >&5
51222 sed 's/^/| /' conftest.$ac_ext >&5
51223
51224 eval "$as_ac_var=no"
51225 fi
51226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51227 fi
51228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51230 if test `eval echo '${'$as_ac_var'}'` = yes; then
51231 cat >>confdefs.h <<_ACEOF
51232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51233 _ACEOF
51234
51235 else
51236 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51237 fi
51238 done
51239
51240 fi
51241
51242 # XXX Review this. Nothing uses it.
51243 if test -n "$LIBMATHOBJS"; then
51244 need_libmath=yes
51245 fi
51246
51247
51248
51249 # Test wchar.h for mbstate_t, which is needed for char_traits and
51250 # others even if wchar_t support is not on.
51251 echo "$as_me:$LINENO: checking for mbstate_t" >&5
51252 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51253 cat >conftest.$ac_ext <<_ACEOF
51254 #line $LINENO "configure"
51255 /* confdefs.h. */
51256 _ACEOF
51257 cat confdefs.h >>conftest.$ac_ext
51258 cat >>conftest.$ac_ext <<_ACEOF
51259 /* end confdefs.h. */
51260 #include <wchar.h>
51261 int
51262 main ()
51263 {
51264 mbstate_t teststate;
51265 ;
51266 return 0;
51267 }
51268 _ACEOF
51269 rm -f conftest.$ac_objext
51270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51271 (eval $ac_compile) 2>&5
51272 ac_status=$?
51273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51274 (exit $ac_status); } &&
51275 { ac_try='test -s conftest.$ac_objext'
51276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51277 (eval $ac_try) 2>&5
51278 ac_status=$?
51279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51280 (exit $ac_status); }; }; then
51281 have_mbstate_t=yes
51282 else
51283 echo "$as_me: failed program was:" >&5
51284 sed 's/^/| /' conftest.$ac_ext >&5
51285
51286 have_mbstate_t=no
51287 fi
51288 rm -f conftest.$ac_objext conftest.$ac_ext
51289 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51290 echo "${ECHO_T}$have_mbstate_t" >&6
51291 if test x"$have_mbstate_t" = xyes; then
51292 cat >>confdefs.h <<\_ACEOF
51293 #define HAVE_MBSTATE_T 1
51294 _ACEOF
51295
51296 fi
51297
51298 # Sanity check for existence of ISO C99 headers for extended encoding.
51299
51300 for ac_header in wchar.h
51301 do
51302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51304 echo "$as_me:$LINENO: checking for $ac_header" >&5
51305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51307 echo $ECHO_N "(cached) $ECHO_C" >&6
51308 fi
51309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51311 else
51312 # Is the header compilable?
51313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51315 cat >conftest.$ac_ext <<_ACEOF
51316 #line $LINENO "configure"
51317 /* confdefs.h. */
51318 _ACEOF
51319 cat confdefs.h >>conftest.$ac_ext
51320 cat >>conftest.$ac_ext <<_ACEOF
51321 /* end confdefs.h. */
51322 $ac_includes_default
51323 #include <$ac_header>
51324 _ACEOF
51325 rm -f conftest.$ac_objext
51326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51327 (eval $ac_compile) 2>&5
51328 ac_status=$?
51329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51330 (exit $ac_status); } &&
51331 { ac_try='test -s conftest.$ac_objext'
51332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51333 (eval $ac_try) 2>&5
51334 ac_status=$?
51335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51336 (exit $ac_status); }; }; then
51337 ac_header_compiler=yes
51338 else
51339 echo "$as_me: failed program was:" >&5
51340 sed 's/^/| /' conftest.$ac_ext >&5
51341
51342 ac_header_compiler=no
51343 fi
51344 rm -f conftest.$ac_objext conftest.$ac_ext
51345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51346 echo "${ECHO_T}$ac_header_compiler" >&6
51347
51348 # Is the header present?
51349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51351 cat >conftest.$ac_ext <<_ACEOF
51352 #line $LINENO "configure"
51353 /* confdefs.h. */
51354 _ACEOF
51355 cat confdefs.h >>conftest.$ac_ext
51356 cat >>conftest.$ac_ext <<_ACEOF
51357 /* end confdefs.h. */
51358 #include <$ac_header>
51359 _ACEOF
51360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51362 ac_status=$?
51363 grep -v '^ *+' conftest.er1 >conftest.err
51364 rm -f conftest.er1
51365 cat conftest.err >&5
51366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51367 (exit $ac_status); } >/dev/null; then
51368 if test -s conftest.err; then
51369 ac_cpp_err=$ac_c_preproc_warn_flag
51370 else
51371 ac_cpp_err=
51372 fi
51373 else
51374 ac_cpp_err=yes
51375 fi
51376 if test -z "$ac_cpp_err"; then
51377 ac_header_preproc=yes
51378 else
51379 echo "$as_me: failed program was:" >&5
51380 sed 's/^/| /' conftest.$ac_ext >&5
51381
51382 ac_header_preproc=no
51383 fi
51384 rm -f conftest.err conftest.$ac_ext
51385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51386 echo "${ECHO_T}$ac_header_preproc" >&6
51387
51388 # So? What about this header?
51389 case $ac_header_compiler:$ac_header_preproc in
51390 yes:no )
51391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51395 (
51396 cat <<\_ASBOX
51397 ## ------------------------------------ ##
51398 ## Report this to bug-autoconf@gnu.org. ##
51399 ## ------------------------------------ ##
51400 _ASBOX
51401 ) |
51402 sed "s/^/$as_me: WARNING: /" >&2
51403 ;;
51404 no:yes )
51405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51411 (
51412 cat <<\_ASBOX
51413 ## ------------------------------------ ##
51414 ## Report this to bug-autoconf@gnu.org. ##
51415 ## ------------------------------------ ##
51416 _ASBOX
51417 ) |
51418 sed "s/^/$as_me: WARNING: /" >&2
51419 ;;
51420 esac
51421 echo "$as_me:$LINENO: checking for $ac_header" >&5
51422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51424 echo $ECHO_N "(cached) $ECHO_C" >&6
51425 else
51426 eval "$as_ac_Header=$ac_header_preproc"
51427 fi
51428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51430
51431 fi
51432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51433 cat >>confdefs.h <<_ACEOF
51434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51435 _ACEOF
51436 ac_has_wchar_h=yes
51437 else
51438 ac_has_wchar_h=no
51439 fi
51440
51441 done
51442
51443
51444 for ac_header in wctype.h
51445 do
51446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51448 echo "$as_me:$LINENO: checking for $ac_header" >&5
51449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51451 echo $ECHO_N "(cached) $ECHO_C" >&6
51452 fi
51453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51455 else
51456 # Is the header compilable?
51457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51459 cat >conftest.$ac_ext <<_ACEOF
51460 #line $LINENO "configure"
51461 /* confdefs.h. */
51462 _ACEOF
51463 cat confdefs.h >>conftest.$ac_ext
51464 cat >>conftest.$ac_ext <<_ACEOF
51465 /* end confdefs.h. */
51466 $ac_includes_default
51467 #include <$ac_header>
51468 _ACEOF
51469 rm -f conftest.$ac_objext
51470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51471 (eval $ac_compile) 2>&5
51472 ac_status=$?
51473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51474 (exit $ac_status); } &&
51475 { ac_try='test -s conftest.$ac_objext'
51476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51477 (eval $ac_try) 2>&5
51478 ac_status=$?
51479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51480 (exit $ac_status); }; }; then
51481 ac_header_compiler=yes
51482 else
51483 echo "$as_me: failed program was:" >&5
51484 sed 's/^/| /' conftest.$ac_ext >&5
51485
51486 ac_header_compiler=no
51487 fi
51488 rm -f conftest.$ac_objext conftest.$ac_ext
51489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51490 echo "${ECHO_T}$ac_header_compiler" >&6
51491
51492 # Is the header present?
51493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51495 cat >conftest.$ac_ext <<_ACEOF
51496 #line $LINENO "configure"
51497 /* confdefs.h. */
51498 _ACEOF
51499 cat confdefs.h >>conftest.$ac_ext
51500 cat >>conftest.$ac_ext <<_ACEOF
51501 /* end confdefs.h. */
51502 #include <$ac_header>
51503 _ACEOF
51504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51506 ac_status=$?
51507 grep -v '^ *+' conftest.er1 >conftest.err
51508 rm -f conftest.er1
51509 cat conftest.err >&5
51510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51511 (exit $ac_status); } >/dev/null; then
51512 if test -s conftest.err; then
51513 ac_cpp_err=$ac_c_preproc_warn_flag
51514 else
51515 ac_cpp_err=
51516 fi
51517 else
51518 ac_cpp_err=yes
51519 fi
51520 if test -z "$ac_cpp_err"; then
51521 ac_header_preproc=yes
51522 else
51523 echo "$as_me: failed program was:" >&5
51524 sed 's/^/| /' conftest.$ac_ext >&5
51525
51526 ac_header_preproc=no
51527 fi
51528 rm -f conftest.err conftest.$ac_ext
51529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51530 echo "${ECHO_T}$ac_header_preproc" >&6
51531
51532 # So? What about this header?
51533 case $ac_header_compiler:$ac_header_preproc in
51534 yes:no )
51535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51539 (
51540 cat <<\_ASBOX
51541 ## ------------------------------------ ##
51542 ## Report this to bug-autoconf@gnu.org. ##
51543 ## ------------------------------------ ##
51544 _ASBOX
51545 ) |
51546 sed "s/^/$as_me: WARNING: /" >&2
51547 ;;
51548 no:yes )
51549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51555 (
51556 cat <<\_ASBOX
51557 ## ------------------------------------ ##
51558 ## Report this to bug-autoconf@gnu.org. ##
51559 ## ------------------------------------ ##
51560 _ASBOX
51561 ) |
51562 sed "s/^/$as_me: WARNING: /" >&2
51563 ;;
51564 esac
51565 echo "$as_me:$LINENO: checking for $ac_header" >&5
51566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51568 echo $ECHO_N "(cached) $ECHO_C" >&6
51569 else
51570 eval "$as_ac_Header=$ac_header_preproc"
51571 fi
51572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51574
51575 fi
51576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51577 cat >>confdefs.h <<_ACEOF
51578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51579 _ACEOF
51580 ac_has_wctype_h=yes
51581 else
51582 ac_has_wctype_h=no
51583 fi
51584
51585 done
51586
51587
51588 # Only continue checking if the ISO C99 headers exist and support is on.
51589 if test x"$ac_has_wchar_h" = xyes &&
51590 test x"$ac_has_wctype_h" = xyes &&
51591 test x"$enable_c_mbchar" != xno; then
51592
51593 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51594 # numeric_limits can instantiate type_traits<wchar_t>
51595 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51596 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51597 cat >conftest.$ac_ext <<_ACEOF
51598 #line $LINENO "configure"
51599 /* confdefs.h. */
51600 _ACEOF
51601 cat confdefs.h >>conftest.$ac_ext
51602 cat >>conftest.$ac_ext <<_ACEOF
51603 /* end confdefs.h. */
51604 #include <wchar.h>
51605 int
51606 main ()
51607 {
51608 int i = WCHAR_MIN; int j = WCHAR_MAX;
51609 ;
51610 return 0;
51611 }
51612 _ACEOF
51613 rm -f conftest.$ac_objext
51614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51615 (eval $ac_compile) 2>&5
51616 ac_status=$?
51617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51618 (exit $ac_status); } &&
51619 { ac_try='test -s conftest.$ac_objext'
51620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51621 (eval $ac_try) 2>&5
51622 ac_status=$?
51623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51624 (exit $ac_status); }; }; then
51625 has_wchar_minmax=yes
51626 else
51627 echo "$as_me: failed program was:" >&5
51628 sed 's/^/| /' conftest.$ac_ext >&5
51629
51630 has_wchar_minmax=no
51631 fi
51632 rm -f conftest.$ac_objext conftest.$ac_ext
51633 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51634 echo "${ECHO_T}$has_wchar_minmax" >&6
51635
51636 # Test wchar.h for WEOF, which is what we use to determine whether
51637 # to specialize for char_traits<wchar_t> or not.
51638 echo "$as_me:$LINENO: checking for WEOF" >&5
51639 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51640 cat >conftest.$ac_ext <<_ACEOF
51641 #line $LINENO "configure"
51642 /* confdefs.h. */
51643 _ACEOF
51644 cat confdefs.h >>conftest.$ac_ext
51645 cat >>conftest.$ac_ext <<_ACEOF
51646 /* end confdefs.h. */
51647
51648 #include <wchar.h>
51649 #include <stddef.h>
51650 int
51651 main ()
51652 {
51653 wint_t i = WEOF;
51654 ;
51655 return 0;
51656 }
51657 _ACEOF
51658 rm -f conftest.$ac_objext
51659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51660 (eval $ac_compile) 2>&5
51661 ac_status=$?
51662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51663 (exit $ac_status); } &&
51664 { ac_try='test -s conftest.$ac_objext'
51665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51666 (eval $ac_try) 2>&5
51667 ac_status=$?
51668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51669 (exit $ac_status); }; }; then
51670 has_weof=yes
51671 else
51672 echo "$as_me: failed program was:" >&5
51673 sed 's/^/| /' conftest.$ac_ext >&5
51674
51675 has_weof=no
51676 fi
51677 rm -f conftest.$ac_objext conftest.$ac_ext
51678 echo "$as_me:$LINENO: result: $has_weof" >&5
51679 echo "${ECHO_T}$has_weof" >&6
51680
51681 # Tests for wide character functions used in char_traits<wchar_t>.
51682 ac_wfuncs=yes
51683
51684
51685
51686
51687
51688
51689 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
51690 do
51691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51692 echo "$as_me:$LINENO: checking for $ac_func" >&5
51693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51694 if eval "test \"\${$as_ac_var+set}\" = set"; then
51695 echo $ECHO_N "(cached) $ECHO_C" >&6
51696 else
51697 if test x$gcc_no_link = xyes; then
51698 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51699 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51700 { (exit 1); exit 1; }; }
51701 fi
51702 cat >conftest.$ac_ext <<_ACEOF
51703 #line $LINENO "configure"
51704 /* confdefs.h. */
51705 _ACEOF
51706 cat confdefs.h >>conftest.$ac_ext
51707 cat >>conftest.$ac_ext <<_ACEOF
51708 /* end confdefs.h. */
51709 /* System header to define __stub macros and hopefully few prototypes,
51710 which can conflict with char $ac_func (); below.
51711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51712 <limits.h> exists even on freestanding compilers. */
51713 #ifdef __STDC__
51714 # include <limits.h>
51715 #else
51716 # include <assert.h>
51717 #endif
51718 /* Override any gcc2 internal prototype to avoid an error. */
51719 #ifdef __cplusplus
51720 extern "C"
51721 {
51722 #endif
51723 /* We use char because int might match the return type of a gcc2
51724 builtin and then its argument prototype would still apply. */
51725 char $ac_func ();
51726 /* The GNU C library defines this for functions which it implements
51727 to always fail with ENOSYS. Some functions are actually named
51728 something starting with __ and the normal name is an alias. */
51729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51730 choke me
51731 #else
51732 char (*f) () = $ac_func;
51733 #endif
51734 #ifdef __cplusplus
51735 }
51736 #endif
51737
51738 int
51739 main ()
51740 {
51741 return f != $ac_func;
51742 ;
51743 return 0;
51744 }
51745 _ACEOF
51746 rm -f conftest.$ac_objext conftest$ac_exeext
51747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51748 (eval $ac_link) 2>&5
51749 ac_status=$?
51750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51751 (exit $ac_status); } &&
51752 { ac_try='test -s conftest$ac_exeext'
51753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51754 (eval $ac_try) 2>&5
51755 ac_status=$?
51756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51757 (exit $ac_status); }; }; then
51758 eval "$as_ac_var=yes"
51759 else
51760 echo "$as_me: failed program was:" >&5
51761 sed 's/^/| /' conftest.$ac_ext >&5
51762
51763 eval "$as_ac_var=no"
51764 fi
51765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51766 fi
51767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51769 if test `eval echo '${'$as_ac_var'}'` = yes; then
51770 cat >>confdefs.h <<_ACEOF
51771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51772 _ACEOF
51773
51774 else
51775 ac_wfuncs=no
51776 fi
51777 done
51778
51779
51780 # Checks for names injected into std:: by the c_std headers.
51781
51782
51783
51784
51785
51786
51787
51788
51789
51790
51791
51792
51793
51794
51795
51796
51797
51798
51799
51800
51801
51802
51803
51804
51805
51806
51807
51808
51809
51810
51811
51812
51813
51814
51815
51816
51817
51818
51819
51820
51821
51822
51823
51824
51825
51826
51827
51828
51829
51830
51831 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51832 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
51833 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51834 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
51835 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51836 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51837 do
51838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51839 echo "$as_me:$LINENO: checking for $ac_func" >&5
51840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51841 if eval "test \"\${$as_ac_var+set}\" = set"; then
51842 echo $ECHO_N "(cached) $ECHO_C" >&6
51843 else
51844 if test x$gcc_no_link = xyes; then
51845 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51847 { (exit 1); exit 1; }; }
51848 fi
51849 cat >conftest.$ac_ext <<_ACEOF
51850 #line $LINENO "configure"
51851 /* confdefs.h. */
51852 _ACEOF
51853 cat confdefs.h >>conftest.$ac_ext
51854 cat >>conftest.$ac_ext <<_ACEOF
51855 /* end confdefs.h. */
51856 /* System header to define __stub macros and hopefully few prototypes,
51857 which can conflict with char $ac_func (); below.
51858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51859 <limits.h> exists even on freestanding compilers. */
51860 #ifdef __STDC__
51861 # include <limits.h>
51862 #else
51863 # include <assert.h>
51864 #endif
51865 /* Override any gcc2 internal prototype to avoid an error. */
51866 #ifdef __cplusplus
51867 extern "C"
51868 {
51869 #endif
51870 /* We use char because int might match the return type of a gcc2
51871 builtin and then its argument prototype would still apply. */
51872 char $ac_func ();
51873 /* The GNU C library defines this for functions which it implements
51874 to always fail with ENOSYS. Some functions are actually named
51875 something starting with __ and the normal name is an alias. */
51876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51877 choke me
51878 #else
51879 char (*f) () = $ac_func;
51880 #endif
51881 #ifdef __cplusplus
51882 }
51883 #endif
51884
51885 int
51886 main ()
51887 {
51888 return f != $ac_func;
51889 ;
51890 return 0;
51891 }
51892 _ACEOF
51893 rm -f conftest.$ac_objext conftest$ac_exeext
51894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51895 (eval $ac_link) 2>&5
51896 ac_status=$?
51897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51898 (exit $ac_status); } &&
51899 { ac_try='test -s conftest$ac_exeext'
51900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51901 (eval $ac_try) 2>&5
51902 ac_status=$?
51903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51904 (exit $ac_status); }; }; then
51905 eval "$as_ac_var=yes"
51906 else
51907 echo "$as_me: failed program was:" >&5
51908 sed 's/^/| /' conftest.$ac_ext >&5
51909
51910 eval "$as_ac_var=no"
51911 fi
51912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51913 fi
51914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51916 if test `eval echo '${'$as_ac_var'}'` = yes; then
51917 cat >>confdefs.h <<_ACEOF
51918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51919 _ACEOF
51920
51921 else
51922 ac_wfuncs=no
51923 fi
51924 done
51925
51926
51927 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
51928 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
51929 if test x"$has_weof" = xyes &&
51930 test x"$has_wchar_minmax" = xyes &&
51931 test x"$ac_wfuncs" = xyes;
51932 then
51933 ac_isoC99_wchar_t=yes
51934 else
51935 ac_isoC99_wchar_t=no
51936 fi
51937 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
51938 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
51939
51940 # Use iconv for wchar_t to char conversions. As such, check for
51941 # X/Open Portability Guide, version 2 features (XPG2).
51942 if test "${ac_cv_header_iconv_h+set}" = set; then
51943 echo "$as_me:$LINENO: checking for iconv.h" >&5
51944 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51945 if test "${ac_cv_header_iconv_h+set}" = set; then
51946 echo $ECHO_N "(cached) $ECHO_C" >&6
51947 fi
51948 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51949 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51950 else
51951 # Is the header compilable?
51952 echo "$as_me:$LINENO: checking iconv.h usability" >&5
51953 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
51954 cat >conftest.$ac_ext <<_ACEOF
51955 #line $LINENO "configure"
51956 /* confdefs.h. */
51957 _ACEOF
51958 cat confdefs.h >>conftest.$ac_ext
51959 cat >>conftest.$ac_ext <<_ACEOF
51960 /* end confdefs.h. */
51961 $ac_includes_default
51962 #include <iconv.h>
51963 _ACEOF
51964 rm -f conftest.$ac_objext
51965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51966 (eval $ac_compile) 2>&5
51967 ac_status=$?
51968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51969 (exit $ac_status); } &&
51970 { ac_try='test -s conftest.$ac_objext'
51971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51972 (eval $ac_try) 2>&5
51973 ac_status=$?
51974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51975 (exit $ac_status); }; }; then
51976 ac_header_compiler=yes
51977 else
51978 echo "$as_me: failed program was:" >&5
51979 sed 's/^/| /' conftest.$ac_ext >&5
51980
51981 ac_header_compiler=no
51982 fi
51983 rm -f conftest.$ac_objext conftest.$ac_ext
51984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51985 echo "${ECHO_T}$ac_header_compiler" >&6
51986
51987 # Is the header present?
51988 echo "$as_me:$LINENO: checking iconv.h presence" >&5
51989 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
51990 cat >conftest.$ac_ext <<_ACEOF
51991 #line $LINENO "configure"
51992 /* confdefs.h. */
51993 _ACEOF
51994 cat confdefs.h >>conftest.$ac_ext
51995 cat >>conftest.$ac_ext <<_ACEOF
51996 /* end confdefs.h. */
51997 #include <iconv.h>
51998 _ACEOF
51999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52001 ac_status=$?
52002 grep -v '^ *+' conftest.er1 >conftest.err
52003 rm -f conftest.er1
52004 cat conftest.err >&5
52005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52006 (exit $ac_status); } >/dev/null; then
52007 if test -s conftest.err; then
52008 ac_cpp_err=$ac_c_preproc_warn_flag
52009 else
52010 ac_cpp_err=
52011 fi
52012 else
52013 ac_cpp_err=yes
52014 fi
52015 if test -z "$ac_cpp_err"; then
52016 ac_header_preproc=yes
52017 else
52018 echo "$as_me: failed program was:" >&5
52019 sed 's/^/| /' conftest.$ac_ext >&5
52020
52021 ac_header_preproc=no
52022 fi
52023 rm -f conftest.err conftest.$ac_ext
52024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52025 echo "${ECHO_T}$ac_header_preproc" >&6
52026
52027 # So? What about this header?
52028 case $ac_header_compiler:$ac_header_preproc in
52029 yes:no )
52030 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52031 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52032 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52033 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52034 (
52035 cat <<\_ASBOX
52036 ## ------------------------------------ ##
52037 ## Report this to bug-autoconf@gnu.org. ##
52038 ## ------------------------------------ ##
52039 _ASBOX
52040 ) |
52041 sed "s/^/$as_me: WARNING: /" >&2
52042 ;;
52043 no:yes )
52044 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52045 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52046 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
52047 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
52048 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52049 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52050 (
52051 cat <<\_ASBOX
52052 ## ------------------------------------ ##
52053 ## Report this to bug-autoconf@gnu.org. ##
52054 ## ------------------------------------ ##
52055 _ASBOX
52056 ) |
52057 sed "s/^/$as_me: WARNING: /" >&2
52058 ;;
52059 esac
52060 echo "$as_me:$LINENO: checking for iconv.h" >&5
52061 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52062 if test "${ac_cv_header_iconv_h+set}" = set; then
52063 echo $ECHO_N "(cached) $ECHO_C" >&6
52064 else
52065 ac_cv_header_iconv_h=$ac_header_preproc
52066 fi
52067 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52068 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52069
52070 fi
52071 if test $ac_cv_header_iconv_h = yes; then
52072 ac_has_iconv_h=yes
52073 else
52074 ac_has_iconv_h=no
52075 fi
52076
52077
52078 if test "${ac_cv_header_langinfo_h+set}" = set; then
52079 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52080 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52081 if test "${ac_cv_header_langinfo_h+set}" = set; then
52082 echo $ECHO_N "(cached) $ECHO_C" >&6
52083 fi
52084 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52085 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52086 else
52087 # Is the header compilable?
52088 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52089 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52090 cat >conftest.$ac_ext <<_ACEOF
52091 #line $LINENO "configure"
52092 /* confdefs.h. */
52093 _ACEOF
52094 cat confdefs.h >>conftest.$ac_ext
52095 cat >>conftest.$ac_ext <<_ACEOF
52096 /* end confdefs.h. */
52097 $ac_includes_default
52098 #include <langinfo.h>
52099 _ACEOF
52100 rm -f conftest.$ac_objext
52101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52102 (eval $ac_compile) 2>&5
52103 ac_status=$?
52104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52105 (exit $ac_status); } &&
52106 { ac_try='test -s conftest.$ac_objext'
52107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52108 (eval $ac_try) 2>&5
52109 ac_status=$?
52110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52111 (exit $ac_status); }; }; then
52112 ac_header_compiler=yes
52113 else
52114 echo "$as_me: failed program was:" >&5
52115 sed 's/^/| /' conftest.$ac_ext >&5
52116
52117 ac_header_compiler=no
52118 fi
52119 rm -f conftest.$ac_objext conftest.$ac_ext
52120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52121 echo "${ECHO_T}$ac_header_compiler" >&6
52122
52123 # Is the header present?
52124 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52125 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52126 cat >conftest.$ac_ext <<_ACEOF
52127 #line $LINENO "configure"
52128 /* confdefs.h. */
52129 _ACEOF
52130 cat confdefs.h >>conftest.$ac_ext
52131 cat >>conftest.$ac_ext <<_ACEOF
52132 /* end confdefs.h. */
52133 #include <langinfo.h>
52134 _ACEOF
52135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52137 ac_status=$?
52138 grep -v '^ *+' conftest.er1 >conftest.err
52139 rm -f conftest.er1
52140 cat conftest.err >&5
52141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52142 (exit $ac_status); } >/dev/null; then
52143 if test -s conftest.err; then
52144 ac_cpp_err=$ac_c_preproc_warn_flag
52145 else
52146 ac_cpp_err=
52147 fi
52148 else
52149 ac_cpp_err=yes
52150 fi
52151 if test -z "$ac_cpp_err"; then
52152 ac_header_preproc=yes
52153 else
52154 echo "$as_me: failed program was:" >&5
52155 sed 's/^/| /' conftest.$ac_ext >&5
52156
52157 ac_header_preproc=no
52158 fi
52159 rm -f conftest.err conftest.$ac_ext
52160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52161 echo "${ECHO_T}$ac_header_preproc" >&6
52162
52163 # So? What about this header?
52164 case $ac_header_compiler:$ac_header_preproc in
52165 yes:no )
52166 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52167 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52168 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52169 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52170 (
52171 cat <<\_ASBOX
52172 ## ------------------------------------ ##
52173 ## Report this to bug-autoconf@gnu.org. ##
52174 ## ------------------------------------ ##
52175 _ASBOX
52176 ) |
52177 sed "s/^/$as_me: WARNING: /" >&2
52178 ;;
52179 no:yes )
52180 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52181 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52182 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52183 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52184 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52185 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52186 (
52187 cat <<\_ASBOX
52188 ## ------------------------------------ ##
52189 ## Report this to bug-autoconf@gnu.org. ##
52190 ## ------------------------------------ ##
52191 _ASBOX
52192 ) |
52193 sed "s/^/$as_me: WARNING: /" >&2
52194 ;;
52195 esac
52196 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52197 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52198 if test "${ac_cv_header_langinfo_h+set}" = set; then
52199 echo $ECHO_N "(cached) $ECHO_C" >&6
52200 else
52201 ac_cv_header_langinfo_h=$ac_header_preproc
52202 fi
52203 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52204 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52205
52206 fi
52207 if test $ac_cv_header_langinfo_h = yes; then
52208 ac_has_langinfo_h=yes
52209 else
52210 ac_has_langinfo_h=no
52211 fi
52212
52213
52214
52215 # Check for existence of libiconv.a providing XPG2 wchar_t support.
52216 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52217 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52218 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52219 echo $ECHO_N "(cached) $ECHO_C" >&6
52220 else
52221 ac_check_lib_save_LIBS=$LIBS
52222 LIBS="-liconv $LIBS"
52223 if test x$gcc_no_link = xyes; then
52224 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52226 { (exit 1); exit 1; }; }
52227 fi
52228 cat >conftest.$ac_ext <<_ACEOF
52229 #line $LINENO "configure"
52230 /* confdefs.h. */
52231 _ACEOF
52232 cat confdefs.h >>conftest.$ac_ext
52233 cat >>conftest.$ac_ext <<_ACEOF
52234 /* end confdefs.h. */
52235
52236 /* Override any gcc2 internal prototype to avoid an error. */
52237 #ifdef __cplusplus
52238 extern "C"
52239 #endif
52240 /* We use char because int might match the return type of a gcc2
52241 builtin and then its argument prototype would still apply. */
52242 char iconv ();
52243 int
52244 main ()
52245 {
52246 iconv ();
52247 ;
52248 return 0;
52249 }
52250 _ACEOF
52251 rm -f conftest.$ac_objext conftest$ac_exeext
52252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52253 (eval $ac_link) 2>&5
52254 ac_status=$?
52255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52256 (exit $ac_status); } &&
52257 { ac_try='test -s conftest$ac_exeext'
52258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52259 (eval $ac_try) 2>&5
52260 ac_status=$?
52261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52262 (exit $ac_status); }; }; then
52263 ac_cv_lib_iconv_iconv=yes
52264 else
52265 echo "$as_me: failed program was:" >&5
52266 sed 's/^/| /' conftest.$ac_ext >&5
52267
52268 ac_cv_lib_iconv_iconv=no
52269 fi
52270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52271 LIBS=$ac_check_lib_save_LIBS
52272 fi
52273 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52274 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52275 if test $ac_cv_lib_iconv_iconv = yes; then
52276 libiconv="-liconv"
52277 fi
52278
52279 ac_save_LIBS="$LIBS"
52280 LIBS="$LIBS $libiconv"
52281
52282
52283
52284
52285
52286 for ac_func in iconv_open iconv_close iconv nl_langinfo
52287 do
52288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52289 echo "$as_me:$LINENO: checking for $ac_func" >&5
52290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52291 if eval "test \"\${$as_ac_var+set}\" = set"; then
52292 echo $ECHO_N "(cached) $ECHO_C" >&6
52293 else
52294 if test x$gcc_no_link = xyes; then
52295 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52297 { (exit 1); exit 1; }; }
52298 fi
52299 cat >conftest.$ac_ext <<_ACEOF
52300 #line $LINENO "configure"
52301 /* confdefs.h. */
52302 _ACEOF
52303 cat confdefs.h >>conftest.$ac_ext
52304 cat >>conftest.$ac_ext <<_ACEOF
52305 /* end confdefs.h. */
52306 /* System header to define __stub macros and hopefully few prototypes,
52307 which can conflict with char $ac_func (); below.
52308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52309 <limits.h> exists even on freestanding compilers. */
52310 #ifdef __STDC__
52311 # include <limits.h>
52312 #else
52313 # include <assert.h>
52314 #endif
52315 /* Override any gcc2 internal prototype to avoid an error. */
52316 #ifdef __cplusplus
52317 extern "C"
52318 {
52319 #endif
52320 /* We use char because int might match the return type of a gcc2
52321 builtin and then its argument prototype would still apply. */
52322 char $ac_func ();
52323 /* The GNU C library defines this for functions which it implements
52324 to always fail with ENOSYS. Some functions are actually named
52325 something starting with __ and the normal name is an alias. */
52326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52327 choke me
52328 #else
52329 char (*f) () = $ac_func;
52330 #endif
52331 #ifdef __cplusplus
52332 }
52333 #endif
52334
52335 int
52336 main ()
52337 {
52338 return f != $ac_func;
52339 ;
52340 return 0;
52341 }
52342 _ACEOF
52343 rm -f conftest.$ac_objext conftest$ac_exeext
52344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52345 (eval $ac_link) 2>&5
52346 ac_status=$?
52347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52348 (exit $ac_status); } &&
52349 { ac_try='test -s conftest$ac_exeext'
52350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52351 (eval $ac_try) 2>&5
52352 ac_status=$?
52353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52354 (exit $ac_status); }; }; then
52355 eval "$as_ac_var=yes"
52356 else
52357 echo "$as_me: failed program was:" >&5
52358 sed 's/^/| /' conftest.$ac_ext >&5
52359
52360 eval "$as_ac_var=no"
52361 fi
52362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52363 fi
52364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52366 if test `eval echo '${'$as_ac_var'}'` = yes; then
52367 cat >>confdefs.h <<_ACEOF
52368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52369 _ACEOF
52370 ac_XPG2funcs=yes
52371 else
52372 ac_XPG2funcs=no
52373 fi
52374 done
52375
52376
52377 LIBS="$ac_save_LIBS"
52378
52379 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52380 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52381 if test x"$ac_has_iconv_h" = xyes &&
52382 test x"$ac_has_langinfo_h" = xyes &&
52383 test x"$ac_XPG2funcs" = xyes;
52384 then
52385 ac_XPG2_wchar_t=yes
52386 else
52387 ac_XPG2_wchar_t=no
52388 fi
52389 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52390 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52391
52392 # At the moment, only enable wchar_t specializations if all the
52393 # above support is present.
52394 if test x"$ac_isoC99_wchar_t" = xyes &&
52395 test x"$ac_XPG2_wchar_t" = xyes;
52396 then
52397 cat >>confdefs.h <<\_ACEOF
52398 #define _GLIBCXX_USE_WCHAR_T 1
52399 _ACEOF
52400
52401 enable_wchar_t=yes
52402 fi
52403 fi
52404 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52405 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52406 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52407 echo "${ECHO_T}$enable_wchar_t" >&6
52408
52409 cat >>confdefs.h <<\_ACEOF
52410 #define HAVE_COPYSIGN 1
52411 _ACEOF
52412
52413 cat >>confdefs.h <<\_ACEOF
52414 #define HAVE_COPYSIGNF 1
52415 _ACEOF
52416
52417 cat >>confdefs.h <<\_ACEOF
52418 #define HAVE_FINITE 1
52419 _ACEOF
52420
52421 cat >>confdefs.h <<\_ACEOF
52422 #define HAVE_FINITEF 1
52423 _ACEOF
52424
52425 cat >>confdefs.h <<\_ACEOF
52426 #define HAVE_FREXPF 1
52427 _ACEOF
52428
52429 cat >>confdefs.h <<\_ACEOF
52430 #define HAVE_HYPOTF 1
52431 _ACEOF
52432
52433 cat >>confdefs.h <<\_ACEOF
52434 #define HAVE_ISINF 1
52435 _ACEOF
52436
52437 cat >>confdefs.h <<\_ACEOF
52438 #define HAVE_ISINFF 1
52439 _ACEOF
52440
52441 cat >>confdefs.h <<\_ACEOF
52442 #define HAVE_ISNAN 1
52443 _ACEOF
52444
52445 cat >>confdefs.h <<\_ACEOF
52446 #define HAVE_ISNANF 1
52447 _ACEOF
52448
52449 cat >>confdefs.h <<\_ACEOF
52450 #define HAVE_SINCOS 1
52451 _ACEOF
52452
52453 cat >>confdefs.h <<\_ACEOF
52454 #define HAVE_SINCOSF 1
52455 _ACEOF
52456
52457 if test x"long_double_math_on_this_cpu" = x"yes"; then
52458 cat >>confdefs.h <<\_ACEOF
52459 #define HAVE_FINITEL 1
52460 _ACEOF
52461
52462 cat >>confdefs.h <<\_ACEOF
52463 #define HAVE_HYPOTL 1
52464 _ACEOF
52465
52466 cat >>confdefs.h <<\_ACEOF
52467 #define HAVE_ISINFL 1
52468 _ACEOF
52469
52470 cat >>confdefs.h <<\_ACEOF
52471 #define HAVE_ISNANL 1
52472 _ACEOF
52473
52474 fi
52475 ;;
52476 *-mingw32*)
52477 #os_include_dir="os/mingw32"
52478
52479
52480
52481 for ac_header in sys/types.h locale.h float.h
52482 do
52483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52485 echo "$as_me:$LINENO: checking for $ac_header" >&5
52486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52488 echo $ECHO_N "(cached) $ECHO_C" >&6
52489 fi
52490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52492 else
52493 # Is the header compilable?
52494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52496 cat >conftest.$ac_ext <<_ACEOF
52497 #line $LINENO "configure"
52498 /* confdefs.h. */
52499 _ACEOF
52500 cat confdefs.h >>conftest.$ac_ext
52501 cat >>conftest.$ac_ext <<_ACEOF
52502 /* end confdefs.h. */
52503 $ac_includes_default
52504 #include <$ac_header>
52505 _ACEOF
52506 rm -f conftest.$ac_objext
52507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52508 (eval $ac_compile) 2>&5
52509 ac_status=$?
52510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52511 (exit $ac_status); } &&
52512 { ac_try='test -s conftest.$ac_objext'
52513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52514 (eval $ac_try) 2>&5
52515 ac_status=$?
52516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52517 (exit $ac_status); }; }; then
52518 ac_header_compiler=yes
52519 else
52520 echo "$as_me: failed program was:" >&5
52521 sed 's/^/| /' conftest.$ac_ext >&5
52522
52523 ac_header_compiler=no
52524 fi
52525 rm -f conftest.$ac_objext conftest.$ac_ext
52526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52527 echo "${ECHO_T}$ac_header_compiler" >&6
52528
52529 # Is the header present?
52530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52532 cat >conftest.$ac_ext <<_ACEOF
52533 #line $LINENO "configure"
52534 /* confdefs.h. */
52535 _ACEOF
52536 cat confdefs.h >>conftest.$ac_ext
52537 cat >>conftest.$ac_ext <<_ACEOF
52538 /* end confdefs.h. */
52539 #include <$ac_header>
52540 _ACEOF
52541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52543 ac_status=$?
52544 grep -v '^ *+' conftest.er1 >conftest.err
52545 rm -f conftest.er1
52546 cat conftest.err >&5
52547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52548 (exit $ac_status); } >/dev/null; then
52549 if test -s conftest.err; then
52550 ac_cpp_err=$ac_c_preproc_warn_flag
52551 else
52552 ac_cpp_err=
52553 fi
52554 else
52555 ac_cpp_err=yes
52556 fi
52557 if test -z "$ac_cpp_err"; then
52558 ac_header_preproc=yes
52559 else
52560 echo "$as_me: failed program was:" >&5
52561 sed 's/^/| /' conftest.$ac_ext >&5
52562
52563 ac_header_preproc=no
52564 fi
52565 rm -f conftest.err conftest.$ac_ext
52566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52567 echo "${ECHO_T}$ac_header_preproc" >&6
52568
52569 # So? What about this header?
52570 case $ac_header_compiler:$ac_header_preproc in
52571 yes:no )
52572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52576 (
52577 cat <<\_ASBOX
52578 ## ------------------------------------ ##
52579 ## Report this to bug-autoconf@gnu.org. ##
52580 ## ------------------------------------ ##
52581 _ASBOX
52582 ) |
52583 sed "s/^/$as_me: WARNING: /" >&2
52584 ;;
52585 no:yes )
52586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52592 (
52593 cat <<\_ASBOX
52594 ## ------------------------------------ ##
52595 ## Report this to bug-autoconf@gnu.org. ##
52596 ## ------------------------------------ ##
52597 _ASBOX
52598 ) |
52599 sed "s/^/$as_me: WARNING: /" >&2
52600 ;;
52601 esac
52602 echo "$as_me:$LINENO: checking for $ac_header" >&5
52603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52605 echo $ECHO_N "(cached) $ECHO_C" >&6
52606 else
52607 eval "$as_ac_Header=$ac_header_preproc"
52608 fi
52609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52611
52612 fi
52613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52614 cat >>confdefs.h <<_ACEOF
52615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52616 _ACEOF
52617
52618 fi
52619
52620 done
52621
52622
52623 # If we're not using GNU ld, then there's no point in even trying these
52624 # tests. Check for that first. We should have already tested for gld
52625 # by now (in libtool), but require it now just to be safe...
52626 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
52627 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
52628
52629
52630
52631 # The name set by libtool depends on the version of libtool. Shame on us
52632 # for depending on an impl detail, but c'est la vie. Older versions used
52633 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
52634 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
52635 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
52636 # set (hence we're using an older libtool), then set it.
52637 if test x${with_gnu_ld+set} != xset; then
52638 if test x${ac_cv_prog_gnu_ld+set} != xset; then
52639 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
52640 with_gnu_ld=no
52641 else
52642 with_gnu_ld=$ac_cv_prog_gnu_ld
52643 fi
52644 fi
52645
52646 # Start by getting the version number. I think the libtool test already
52647 # does some of this, but throws away the result.
52648
52649 ldver=`$LD --version 2>/dev/null | head -1 | \
52650 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
52651
52652 glibcxx_gnu_ld_version=`echo $ldver | \
52653 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
52654
52655 # Set --gc-sections.
52656 if test "$with_gnu_ld" = "notbroken"; then
52657 # GNU ld it is! Joy and bunny rabbits!
52658
52659 # All these tests are for C++; save the language and the compiler flags.
52660 # Need to do this so that g++ won't try to link in libstdc++
52661 ac_test_CFLAGS="${CFLAGS+set}"
52662 ac_save_CFLAGS="$CFLAGS"
52663 CFLAGS='-x c++ -Wl,--gc-sections'
52664
52665 # Check for -Wl,--gc-sections
52666 # XXX This test is broken at the moment, as symbols required for linking
52667 # are now in libsupc++ (not built yet). In addition, this test has
52668 # cored on solaris in the past. In addition, --gc-sections doesn't
52669 # really work at the moment (keeps on discarding used sections, first
52670 # .eh_frame and now some of the glibc sections for iconv).
52671 # Bzzzzt. Thanks for playing, maybe next time.
52672 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
52673 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
52674 if test "$cross_compiling" = yes; then
52675 ac_sectionLDflags=yes
52676 else
52677 cat >conftest.$ac_ext <<_ACEOF
52678 #line $LINENO "configure"
52679 /* confdefs.h. */
52680 _ACEOF
52681 cat confdefs.h >>conftest.$ac_ext
52682 cat >>conftest.$ac_ext <<_ACEOF
52683 /* end confdefs.h. */
52684
52685 int main(void)
52686 {
52687 try { throw 1; }
52688 catch (...) { };
52689 return 0;
52690 }
52691
52692 _ACEOF
52693 rm -f conftest$ac_exeext
52694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52695 (eval $ac_link) 2>&5
52696 ac_status=$?
52697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52700 (eval $ac_try) 2>&5
52701 ac_status=$?
52702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52703 (exit $ac_status); }; }; then
52704 ac_sectionLDflags=yes
52705 else
52706 echo "$as_me: program exited with status $ac_status" >&5
52707 echo "$as_me: failed program was:" >&5
52708 sed 's/^/| /' conftest.$ac_ext >&5
52709
52710 ( exit $ac_status )
52711 ac_sectionLDflags=no
52712 fi
52713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52714 fi
52715 if test "$ac_test_CFLAGS" = set; then
52716 CFLAGS="$ac_save_CFLAGS"
52717 else
52718 # this is the suspicious part
52719 CFLAGS=''
52720 fi
52721 if test "$ac_sectionLDflags" = "yes"; then
52722 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
52723 fi
52724 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
52725 echo "${ECHO_T}$ac_sectionLDflags" >&6
52726 fi
52727
52728 # Set linker optimization flags.
52729 if test x"$with_gnu_ld" = x"yes"; then
52730 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
52731 fi
52732
52733
52734
52735
52736
52737
52738 echo "$as_me:$LINENO: checking for main in -lm" >&5
52739 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
52740 if test "${ac_cv_lib_m_main+set}" = set; then
52741 echo $ECHO_N "(cached) $ECHO_C" >&6
52742 else
52743 ac_check_lib_save_LIBS=$LIBS
52744 LIBS="-lm $LIBS"
52745 if test x$gcc_no_link = xyes; then
52746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52748 { (exit 1); exit 1; }; }
52749 fi
52750 cat >conftest.$ac_ext <<_ACEOF
52751 #line $LINENO "configure"
52752 /* confdefs.h. */
52753 _ACEOF
52754 cat confdefs.h >>conftest.$ac_ext
52755 cat >>conftest.$ac_ext <<_ACEOF
52756 /* end confdefs.h. */
52757
52758
52759 int
52760 main ()
52761 {
52762 main ();
52763 ;
52764 return 0;
52765 }
52766 _ACEOF
52767 rm -f conftest.$ac_objext conftest$ac_exeext
52768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52769 (eval $ac_link) 2>&5
52770 ac_status=$?
52771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52772 (exit $ac_status); } &&
52773 { ac_try='test -s conftest$ac_exeext'
52774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52775 (eval $ac_try) 2>&5
52776 ac_status=$?
52777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52778 (exit $ac_status); }; }; then
52779 ac_cv_lib_m_main=yes
52780 else
52781 echo "$as_me: failed program was:" >&5
52782 sed 's/^/| /' conftest.$ac_ext >&5
52783
52784 ac_cv_lib_m_main=no
52785 fi
52786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52787 LIBS=$ac_check_lib_save_LIBS
52788 fi
52789 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
52790 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
52791 if test $ac_cv_lib_m_main = yes; then
52792 cat >>confdefs.h <<_ACEOF
52793 #define HAVE_LIBM 1
52794 _ACEOF
52795
52796 LIBS="-lm $LIBS"
52797
52798 fi
52799
52800
52801
52802 for ac_func in nan copysignf
52803 do
52804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52805 echo "$as_me:$LINENO: checking for $ac_func" >&5
52806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52807 if eval "test \"\${$as_ac_var+set}\" = set"; then
52808 echo $ECHO_N "(cached) $ECHO_C" >&6
52809 else
52810 if test x$gcc_no_link = xyes; then
52811 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52812 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52813 { (exit 1); exit 1; }; }
52814 fi
52815 cat >conftest.$ac_ext <<_ACEOF
52816 #line $LINENO "configure"
52817 /* confdefs.h. */
52818 _ACEOF
52819 cat confdefs.h >>conftest.$ac_ext
52820 cat >>conftest.$ac_ext <<_ACEOF
52821 /* end confdefs.h. */
52822 /* System header to define __stub macros and hopefully few prototypes,
52823 which can conflict with char $ac_func (); below.
52824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52825 <limits.h> exists even on freestanding compilers. */
52826 #ifdef __STDC__
52827 # include <limits.h>
52828 #else
52829 # include <assert.h>
52830 #endif
52831 /* Override any gcc2 internal prototype to avoid an error. */
52832 #ifdef __cplusplus
52833 extern "C"
52834 {
52835 #endif
52836 /* We use char because int might match the return type of a gcc2
52837 builtin and then its argument prototype would still apply. */
52838 char $ac_func ();
52839 /* The GNU C library defines this for functions which it implements
52840 to always fail with ENOSYS. Some functions are actually named
52841 something starting with __ and the normal name is an alias. */
52842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52843 choke me
52844 #else
52845 char (*f) () = $ac_func;
52846 #endif
52847 #ifdef __cplusplus
52848 }
52849 #endif
52850
52851 int
52852 main ()
52853 {
52854 return f != $ac_func;
52855 ;
52856 return 0;
52857 }
52858 _ACEOF
52859 rm -f conftest.$ac_objext conftest$ac_exeext
52860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52861 (eval $ac_link) 2>&5
52862 ac_status=$?
52863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52864 (exit $ac_status); } &&
52865 { ac_try='test -s conftest$ac_exeext'
52866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52867 (eval $ac_try) 2>&5
52868 ac_status=$?
52869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52870 (exit $ac_status); }; }; then
52871 eval "$as_ac_var=yes"
52872 else
52873 echo "$as_me: failed program was:" >&5
52874 sed 's/^/| /' conftest.$ac_ext >&5
52875
52876 eval "$as_ac_var=no"
52877 fi
52878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52879 fi
52880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52882 if test `eval echo '${'$as_ac_var'}'` = yes; then
52883 cat >>confdefs.h <<_ACEOF
52884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52885 _ACEOF
52886
52887 else
52888 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
52889 fi
52890 done
52891
52892
52893
52894 for ac_func in __signbit
52895 do
52896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52897 echo "$as_me:$LINENO: checking for $ac_func" >&5
52898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52899 if eval "test \"\${$as_ac_var+set}\" = set"; then
52900 echo $ECHO_N "(cached) $ECHO_C" >&6
52901 else
52902 if test x$gcc_no_link = xyes; then
52903 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52904 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52905 { (exit 1); exit 1; }; }
52906 fi
52907 cat >conftest.$ac_ext <<_ACEOF
52908 #line $LINENO "configure"
52909 /* confdefs.h. */
52910 _ACEOF
52911 cat confdefs.h >>conftest.$ac_ext
52912 cat >>conftest.$ac_ext <<_ACEOF
52913 /* end confdefs.h. */
52914 /* System header to define __stub macros and hopefully few prototypes,
52915 which can conflict with char $ac_func (); below.
52916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52917 <limits.h> exists even on freestanding compilers. */
52918 #ifdef __STDC__
52919 # include <limits.h>
52920 #else
52921 # include <assert.h>
52922 #endif
52923 /* Override any gcc2 internal prototype to avoid an error. */
52924 #ifdef __cplusplus
52925 extern "C"
52926 {
52927 #endif
52928 /* We use char because int might match the return type of a gcc2
52929 builtin and then its argument prototype would still apply. */
52930 char $ac_func ();
52931 /* The GNU C library defines this for functions which it implements
52932 to always fail with ENOSYS. Some functions are actually named
52933 something starting with __ and the normal name is an alias. */
52934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52935 choke me
52936 #else
52937 char (*f) () = $ac_func;
52938 #endif
52939 #ifdef __cplusplus
52940 }
52941 #endif
52942
52943 int
52944 main ()
52945 {
52946 return f != $ac_func;
52947 ;
52948 return 0;
52949 }
52950 _ACEOF
52951 rm -f conftest.$ac_objext conftest$ac_exeext
52952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52953 (eval $ac_link) 2>&5
52954 ac_status=$?
52955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52956 (exit $ac_status); } &&
52957 { ac_try='test -s conftest$ac_exeext'
52958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52959 (eval $ac_try) 2>&5
52960 ac_status=$?
52961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52962 (exit $ac_status); }; }; then
52963 eval "$as_ac_var=yes"
52964 else
52965 echo "$as_me: failed program was:" >&5
52966 sed 's/^/| /' conftest.$ac_ext >&5
52967
52968 eval "$as_ac_var=no"
52969 fi
52970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52971 fi
52972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52974 if test `eval echo '${'$as_ac_var'}'` = yes; then
52975 cat >>confdefs.h <<_ACEOF
52976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52977 _ACEOF
52978
52979 else
52980 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
52981 fi
52982 done
52983
52984
52985 for ac_func in __signbitf
52986 do
52987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52988 echo "$as_me:$LINENO: checking for $ac_func" >&5
52989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52990 if eval "test \"\${$as_ac_var+set}\" = set"; then
52991 echo $ECHO_N "(cached) $ECHO_C" >&6
52992 else
52993 if test x$gcc_no_link = xyes; then
52994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52996 { (exit 1); exit 1; }; }
52997 fi
52998 cat >conftest.$ac_ext <<_ACEOF
52999 #line $LINENO "configure"
53000 /* confdefs.h. */
53001 _ACEOF
53002 cat confdefs.h >>conftest.$ac_ext
53003 cat >>conftest.$ac_ext <<_ACEOF
53004 /* end confdefs.h. */
53005 /* System header to define __stub macros and hopefully few prototypes,
53006 which can conflict with char $ac_func (); below.
53007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53008 <limits.h> exists even on freestanding compilers. */
53009 #ifdef __STDC__
53010 # include <limits.h>
53011 #else
53012 # include <assert.h>
53013 #endif
53014 /* Override any gcc2 internal prototype to avoid an error. */
53015 #ifdef __cplusplus
53016 extern "C"
53017 {
53018 #endif
53019 /* We use char because int might match the return type of a gcc2
53020 builtin and then its argument prototype would still apply. */
53021 char $ac_func ();
53022 /* The GNU C library defines this for functions which it implements
53023 to always fail with ENOSYS. Some functions are actually named
53024 something starting with __ and the normal name is an alias. */
53025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53026 choke me
53027 #else
53028 char (*f) () = $ac_func;
53029 #endif
53030 #ifdef __cplusplus
53031 }
53032 #endif
53033
53034 int
53035 main ()
53036 {
53037 return f != $ac_func;
53038 ;
53039 return 0;
53040 }
53041 _ACEOF
53042 rm -f conftest.$ac_objext conftest$ac_exeext
53043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53044 (eval $ac_link) 2>&5
53045 ac_status=$?
53046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53047 (exit $ac_status); } &&
53048 { ac_try='test -s conftest$ac_exeext'
53049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53050 (eval $ac_try) 2>&5
53051 ac_status=$?
53052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53053 (exit $ac_status); }; }; then
53054 eval "$as_ac_var=yes"
53055 else
53056 echo "$as_me: failed program was:" >&5
53057 sed 's/^/| /' conftest.$ac_ext >&5
53058
53059 eval "$as_ac_var=no"
53060 fi
53061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53062 fi
53063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53065 if test `eval echo '${'$as_ac_var'}'` = yes; then
53066 cat >>confdefs.h <<_ACEOF
53067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53068 _ACEOF
53069
53070 else
53071 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
53072 fi
53073 done
53074
53075
53076 if test x$ac_cv_func_copysignl = x"yes"; then
53077
53078 for ac_func in __signbitl
53079 do
53080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53081 echo "$as_me:$LINENO: checking for $ac_func" >&5
53082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53083 if eval "test \"\${$as_ac_var+set}\" = set"; then
53084 echo $ECHO_N "(cached) $ECHO_C" >&6
53085 else
53086 if test x$gcc_no_link = xyes; then
53087 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53088 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53089 { (exit 1); exit 1; }; }
53090 fi
53091 cat >conftest.$ac_ext <<_ACEOF
53092 #line $LINENO "configure"
53093 /* confdefs.h. */
53094 _ACEOF
53095 cat confdefs.h >>conftest.$ac_ext
53096 cat >>conftest.$ac_ext <<_ACEOF
53097 /* end confdefs.h. */
53098 /* System header to define __stub macros and hopefully few prototypes,
53099 which can conflict with char $ac_func (); below.
53100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53101 <limits.h> exists even on freestanding compilers. */
53102 #ifdef __STDC__
53103 # include <limits.h>
53104 #else
53105 # include <assert.h>
53106 #endif
53107 /* Override any gcc2 internal prototype to avoid an error. */
53108 #ifdef __cplusplus
53109 extern "C"
53110 {
53111 #endif
53112 /* We use char because int might match the return type of a gcc2
53113 builtin and then its argument prototype would still apply. */
53114 char $ac_func ();
53115 /* The GNU C library defines this for functions which it implements
53116 to always fail with ENOSYS. Some functions are actually named
53117 something starting with __ and the normal name is an alias. */
53118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53119 choke me
53120 #else
53121 char (*f) () = $ac_func;
53122 #endif
53123 #ifdef __cplusplus
53124 }
53125 #endif
53126
53127 int
53128 main ()
53129 {
53130 return f != $ac_func;
53131 ;
53132 return 0;
53133 }
53134 _ACEOF
53135 rm -f conftest.$ac_objext conftest$ac_exeext
53136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53137 (eval $ac_link) 2>&5
53138 ac_status=$?
53139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53140 (exit $ac_status); } &&
53141 { ac_try='test -s conftest$ac_exeext'
53142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53143 (eval $ac_try) 2>&5
53144 ac_status=$?
53145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53146 (exit $ac_status); }; }; then
53147 eval "$as_ac_var=yes"
53148 else
53149 echo "$as_me: failed program was:" >&5
53150 sed 's/^/| /' conftest.$ac_ext >&5
53151
53152 eval "$as_ac_var=no"
53153 fi
53154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53155 fi
53156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53158 if test `eval echo '${'$as_ac_var'}'` = yes; then
53159 cat >>confdefs.h <<_ACEOF
53160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53161 _ACEOF
53162
53163 else
53164 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
53165 fi
53166 done
53167
53168 fi
53169
53170 # XXX Review this. Nothing uses it.
53171 if test -n "$LIBMATHOBJS"; then
53172 need_libmath=yes
53173 fi
53174
53175
53176
53177 # Test wchar.h for mbstate_t, which is needed for char_traits and
53178 # others even if wchar_t support is not on.
53179 echo "$as_me:$LINENO: checking for mbstate_t" >&5
53180 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
53181 cat >conftest.$ac_ext <<_ACEOF
53182 #line $LINENO "configure"
53183 /* confdefs.h. */
53184 _ACEOF
53185 cat confdefs.h >>conftest.$ac_ext
53186 cat >>conftest.$ac_ext <<_ACEOF
53187 /* end confdefs.h. */
53188 #include <wchar.h>
53189 int
53190 main ()
53191 {
53192 mbstate_t teststate;
53193 ;
53194 return 0;
53195 }
53196 _ACEOF
53197 rm -f conftest.$ac_objext
53198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53199 (eval $ac_compile) 2>&5
53200 ac_status=$?
53201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53202 (exit $ac_status); } &&
53203 { ac_try='test -s conftest.$ac_objext'
53204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53205 (eval $ac_try) 2>&5
53206 ac_status=$?
53207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53208 (exit $ac_status); }; }; then
53209 have_mbstate_t=yes
53210 else
53211 echo "$as_me: failed program was:" >&5
53212 sed 's/^/| /' conftest.$ac_ext >&5
53213
53214 have_mbstate_t=no
53215 fi
53216 rm -f conftest.$ac_objext conftest.$ac_ext
53217 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
53218 echo "${ECHO_T}$have_mbstate_t" >&6
53219 if test x"$have_mbstate_t" = xyes; then
53220 cat >>confdefs.h <<\_ACEOF
53221 #define HAVE_MBSTATE_T 1
53222 _ACEOF
53223
53224 fi
53225
53226 # Sanity check for existence of ISO C99 headers for extended encoding.
53227
53228 for ac_header in wchar.h
53229 do
53230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53232 echo "$as_me:$LINENO: checking for $ac_header" >&5
53233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53235 echo $ECHO_N "(cached) $ECHO_C" >&6
53236 fi
53237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53239 else
53240 # Is the header compilable?
53241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53243 cat >conftest.$ac_ext <<_ACEOF
53244 #line $LINENO "configure"
53245 /* confdefs.h. */
53246 _ACEOF
53247 cat confdefs.h >>conftest.$ac_ext
53248 cat >>conftest.$ac_ext <<_ACEOF
53249 /* end confdefs.h. */
53250 $ac_includes_default
53251 #include <$ac_header>
53252 _ACEOF
53253 rm -f conftest.$ac_objext
53254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53255 (eval $ac_compile) 2>&5
53256 ac_status=$?
53257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53258 (exit $ac_status); } &&
53259 { ac_try='test -s conftest.$ac_objext'
53260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53261 (eval $ac_try) 2>&5
53262 ac_status=$?
53263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53264 (exit $ac_status); }; }; then
53265 ac_header_compiler=yes
53266 else
53267 echo "$as_me: failed program was:" >&5
53268 sed 's/^/| /' conftest.$ac_ext >&5
53269
53270 ac_header_compiler=no
53271 fi
53272 rm -f conftest.$ac_objext conftest.$ac_ext
53273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53274 echo "${ECHO_T}$ac_header_compiler" >&6
53275
53276 # Is the header present?
53277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53279 cat >conftest.$ac_ext <<_ACEOF
53280 #line $LINENO "configure"
53281 /* confdefs.h. */
53282 _ACEOF
53283 cat confdefs.h >>conftest.$ac_ext
53284 cat >>conftest.$ac_ext <<_ACEOF
53285 /* end confdefs.h. */
53286 #include <$ac_header>
53287 _ACEOF
53288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53290 ac_status=$?
53291 grep -v '^ *+' conftest.er1 >conftest.err
53292 rm -f conftest.er1
53293 cat conftest.err >&5
53294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53295 (exit $ac_status); } >/dev/null; then
53296 if test -s conftest.err; then
53297 ac_cpp_err=$ac_c_preproc_warn_flag
53298 else
53299 ac_cpp_err=
53300 fi
53301 else
53302 ac_cpp_err=yes
53303 fi
53304 if test -z "$ac_cpp_err"; then
53305 ac_header_preproc=yes
53306 else
53307 echo "$as_me: failed program was:" >&5
53308 sed 's/^/| /' conftest.$ac_ext >&5
53309
53310 ac_header_preproc=no
53311 fi
53312 rm -f conftest.err conftest.$ac_ext
53313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53314 echo "${ECHO_T}$ac_header_preproc" >&6
53315
53316 # So? What about this header?
53317 case $ac_header_compiler:$ac_header_preproc in
53318 yes:no )
53319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53323 (
53324 cat <<\_ASBOX
53325 ## ------------------------------------ ##
53326 ## Report this to bug-autoconf@gnu.org. ##
53327 ## ------------------------------------ ##
53328 _ASBOX
53329 ) |
53330 sed "s/^/$as_me: WARNING: /" >&2
53331 ;;
53332 no:yes )
53333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53339 (
53340 cat <<\_ASBOX
53341 ## ------------------------------------ ##
53342 ## Report this to bug-autoconf@gnu.org. ##
53343 ## ------------------------------------ ##
53344 _ASBOX
53345 ) |
53346 sed "s/^/$as_me: WARNING: /" >&2
53347 ;;
53348 esac
53349 echo "$as_me:$LINENO: checking for $ac_header" >&5
53350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53352 echo $ECHO_N "(cached) $ECHO_C" >&6
53353 else
53354 eval "$as_ac_Header=$ac_header_preproc"
53355 fi
53356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53358
53359 fi
53360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53361 cat >>confdefs.h <<_ACEOF
53362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53363 _ACEOF
53364 ac_has_wchar_h=yes
53365 else
53366 ac_has_wchar_h=no
53367 fi
53368
53369 done
53370
53371
53372 for ac_header in wctype.h
53373 do
53374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53376 echo "$as_me:$LINENO: checking for $ac_header" >&5
53377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53379 echo $ECHO_N "(cached) $ECHO_C" >&6
53380 fi
53381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53383 else
53384 # Is the header compilable?
53385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53387 cat >conftest.$ac_ext <<_ACEOF
53388 #line $LINENO "configure"
53389 /* confdefs.h. */
53390 _ACEOF
53391 cat confdefs.h >>conftest.$ac_ext
53392 cat >>conftest.$ac_ext <<_ACEOF
53393 /* end confdefs.h. */
53394 $ac_includes_default
53395 #include <$ac_header>
53396 _ACEOF
53397 rm -f conftest.$ac_objext
53398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53399 (eval $ac_compile) 2>&5
53400 ac_status=$?
53401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53402 (exit $ac_status); } &&
53403 { ac_try='test -s conftest.$ac_objext'
53404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53405 (eval $ac_try) 2>&5
53406 ac_status=$?
53407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53408 (exit $ac_status); }; }; then
53409 ac_header_compiler=yes
53410 else
53411 echo "$as_me: failed program was:" >&5
53412 sed 's/^/| /' conftest.$ac_ext >&5
53413
53414 ac_header_compiler=no
53415 fi
53416 rm -f conftest.$ac_objext conftest.$ac_ext
53417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53418 echo "${ECHO_T}$ac_header_compiler" >&6
53419
53420 # Is the header present?
53421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53423 cat >conftest.$ac_ext <<_ACEOF
53424 #line $LINENO "configure"
53425 /* confdefs.h. */
53426 _ACEOF
53427 cat confdefs.h >>conftest.$ac_ext
53428 cat >>conftest.$ac_ext <<_ACEOF
53429 /* end confdefs.h. */
53430 #include <$ac_header>
53431 _ACEOF
53432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53434 ac_status=$?
53435 grep -v '^ *+' conftest.er1 >conftest.err
53436 rm -f conftest.er1
53437 cat conftest.err >&5
53438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53439 (exit $ac_status); } >/dev/null; then
53440 if test -s conftest.err; then
53441 ac_cpp_err=$ac_c_preproc_warn_flag
53442 else
53443 ac_cpp_err=
53444 fi
53445 else
53446 ac_cpp_err=yes
53447 fi
53448 if test -z "$ac_cpp_err"; then
53449 ac_header_preproc=yes
53450 else
53451 echo "$as_me: failed program was:" >&5
53452 sed 's/^/| /' conftest.$ac_ext >&5
53453
53454 ac_header_preproc=no
53455 fi
53456 rm -f conftest.err conftest.$ac_ext
53457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53458 echo "${ECHO_T}$ac_header_preproc" >&6
53459
53460 # So? What about this header?
53461 case $ac_header_compiler:$ac_header_preproc in
53462 yes:no )
53463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53467 (
53468 cat <<\_ASBOX
53469 ## ------------------------------------ ##
53470 ## Report this to bug-autoconf@gnu.org. ##
53471 ## ------------------------------------ ##
53472 _ASBOX
53473 ) |
53474 sed "s/^/$as_me: WARNING: /" >&2
53475 ;;
53476 no:yes )
53477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53483 (
53484 cat <<\_ASBOX
53485 ## ------------------------------------ ##
53486 ## Report this to bug-autoconf@gnu.org. ##
53487 ## ------------------------------------ ##
53488 _ASBOX
53489 ) |
53490 sed "s/^/$as_me: WARNING: /" >&2
53491 ;;
53492 esac
53493 echo "$as_me:$LINENO: checking for $ac_header" >&5
53494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53496 echo $ECHO_N "(cached) $ECHO_C" >&6
53497 else
53498 eval "$as_ac_Header=$ac_header_preproc"
53499 fi
53500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53502
53503 fi
53504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53505 cat >>confdefs.h <<_ACEOF
53506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53507 _ACEOF
53508 ac_has_wctype_h=yes
53509 else
53510 ac_has_wctype_h=no
53511 fi
53512
53513 done
53514
53515
53516 # Only continue checking if the ISO C99 headers exist and support is on.
53517 if test x"$ac_has_wchar_h" = xyes &&
53518 test x"$ac_has_wctype_h" = xyes &&
53519 test x"$enable_c_mbchar" != xno; then
53520
53521 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
53522 # numeric_limits can instantiate type_traits<wchar_t>
53523 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
53524 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
53525 cat >conftest.$ac_ext <<_ACEOF
53526 #line $LINENO "configure"
53527 /* confdefs.h. */
53528 _ACEOF
53529 cat confdefs.h >>conftest.$ac_ext
53530 cat >>conftest.$ac_ext <<_ACEOF
53531 /* end confdefs.h. */
53532 #include <wchar.h>
53533 int
53534 main ()
53535 {
53536 int i = WCHAR_MIN; int j = WCHAR_MAX;
53537 ;
53538 return 0;
53539 }
53540 _ACEOF
53541 rm -f conftest.$ac_objext
53542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53543 (eval $ac_compile) 2>&5
53544 ac_status=$?
53545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53546 (exit $ac_status); } &&
53547 { ac_try='test -s conftest.$ac_objext'
53548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53549 (eval $ac_try) 2>&5
53550 ac_status=$?
53551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53552 (exit $ac_status); }; }; then
53553 has_wchar_minmax=yes
53554 else
53555 echo "$as_me: failed program was:" >&5
53556 sed 's/^/| /' conftest.$ac_ext >&5
53557
53558 has_wchar_minmax=no
53559 fi
53560 rm -f conftest.$ac_objext conftest.$ac_ext
53561 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
53562 echo "${ECHO_T}$has_wchar_minmax" >&6
53563
53564 # Test wchar.h for WEOF, which is what we use to determine whether
53565 # to specialize for char_traits<wchar_t> or not.
53566 echo "$as_me:$LINENO: checking for WEOF" >&5
53567 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
53568 cat >conftest.$ac_ext <<_ACEOF
53569 #line $LINENO "configure"
53570 /* confdefs.h. */
53571 _ACEOF
53572 cat confdefs.h >>conftest.$ac_ext
53573 cat >>conftest.$ac_ext <<_ACEOF
53574 /* end confdefs.h. */
53575
53576 #include <wchar.h>
53577 #include <stddef.h>
53578 int
53579 main ()
53580 {
53581 wint_t i = WEOF;
53582 ;
53583 return 0;
53584 }
53585 _ACEOF
53586 rm -f conftest.$ac_objext
53587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53588 (eval $ac_compile) 2>&5
53589 ac_status=$?
53590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53591 (exit $ac_status); } &&
53592 { ac_try='test -s conftest.$ac_objext'
53593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53594 (eval $ac_try) 2>&5
53595 ac_status=$?
53596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53597 (exit $ac_status); }; }; then
53598 has_weof=yes
53599 else
53600 echo "$as_me: failed program was:" >&5
53601 sed 's/^/| /' conftest.$ac_ext >&5
53602
53603 has_weof=no
53604 fi
53605 rm -f conftest.$ac_objext conftest.$ac_ext
53606 echo "$as_me:$LINENO: result: $has_weof" >&5
53607 echo "${ECHO_T}$has_weof" >&6
53608
53609 # Tests for wide character functions used in char_traits<wchar_t>.
53610 ac_wfuncs=yes
53611
53612
53613
53614
53615
53616
53617 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
53618 do
53619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53620 echo "$as_me:$LINENO: checking for $ac_func" >&5
53621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53622 if eval "test \"\${$as_ac_var+set}\" = set"; then
53623 echo $ECHO_N "(cached) $ECHO_C" >&6
53624 else
53625 if test x$gcc_no_link = xyes; then
53626 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53628 { (exit 1); exit 1; }; }
53629 fi
53630 cat >conftest.$ac_ext <<_ACEOF
53631 #line $LINENO "configure"
53632 /* confdefs.h. */
53633 _ACEOF
53634 cat confdefs.h >>conftest.$ac_ext
53635 cat >>conftest.$ac_ext <<_ACEOF
53636 /* end confdefs.h. */
53637 /* System header to define __stub macros and hopefully few prototypes,
53638 which can conflict with char $ac_func (); below.
53639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53640 <limits.h> exists even on freestanding compilers. */
53641 #ifdef __STDC__
53642 # include <limits.h>
53643 #else
53644 # include <assert.h>
53645 #endif
53646 /* Override any gcc2 internal prototype to avoid an error. */
53647 #ifdef __cplusplus
53648 extern "C"
53649 {
53650 #endif
53651 /* We use char because int might match the return type of a gcc2
53652 builtin and then its argument prototype would still apply. */
53653 char $ac_func ();
53654 /* The GNU C library defines this for functions which it implements
53655 to always fail with ENOSYS. Some functions are actually named
53656 something starting with __ and the normal name is an alias. */
53657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53658 choke me
53659 #else
53660 char (*f) () = $ac_func;
53661 #endif
53662 #ifdef __cplusplus
53663 }
53664 #endif
53665
53666 int
53667 main ()
53668 {
53669 return f != $ac_func;
53670 ;
53671 return 0;
53672 }
53673 _ACEOF
53674 rm -f conftest.$ac_objext conftest$ac_exeext
53675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53676 (eval $ac_link) 2>&5
53677 ac_status=$?
53678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53679 (exit $ac_status); } &&
53680 { ac_try='test -s conftest$ac_exeext'
53681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53682 (eval $ac_try) 2>&5
53683 ac_status=$?
53684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53685 (exit $ac_status); }; }; then
53686 eval "$as_ac_var=yes"
53687 else
53688 echo "$as_me: failed program was:" >&5
53689 sed 's/^/| /' conftest.$ac_ext >&5
53690
53691 eval "$as_ac_var=no"
53692 fi
53693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53694 fi
53695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53697 if test `eval echo '${'$as_ac_var'}'` = yes; then
53698 cat >>confdefs.h <<_ACEOF
53699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53700 _ACEOF
53701
53702 else
53703 ac_wfuncs=no
53704 fi
53705 done
53706
53707
53708 # Checks for names injected into std:: by the c_std headers.
53709
53710
53711
53712
53713
53714
53715
53716
53717
53718
53719
53720
53721
53722
53723
53724
53725
53726
53727
53728
53729
53730
53731
53732
53733
53734
53735
53736
53737
53738
53739
53740
53741
53742
53743
53744
53745
53746
53747
53748
53749
53750
53751
53752
53753
53754
53755
53756
53757
53758
53759 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
53760 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
53761 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
53762 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
53763 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
53764 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
53765 do
53766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53767 echo "$as_me:$LINENO: checking for $ac_func" >&5
53768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53769 if eval "test \"\${$as_ac_var+set}\" = set"; then
53770 echo $ECHO_N "(cached) $ECHO_C" >&6
53771 else
53772 if test x$gcc_no_link = xyes; then
53773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53775 { (exit 1); exit 1; }; }
53776 fi
53777 cat >conftest.$ac_ext <<_ACEOF
53778 #line $LINENO "configure"
53779 /* confdefs.h. */
53780 _ACEOF
53781 cat confdefs.h >>conftest.$ac_ext
53782 cat >>conftest.$ac_ext <<_ACEOF
53783 /* end confdefs.h. */
53784 /* System header to define __stub macros and hopefully few prototypes,
53785 which can conflict with char $ac_func (); below.
53786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53787 <limits.h> exists even on freestanding compilers. */
53788 #ifdef __STDC__
53789 # include <limits.h>
53790 #else
53791 # include <assert.h>
53792 #endif
53793 /* Override any gcc2 internal prototype to avoid an error. */
53794 #ifdef __cplusplus
53795 extern "C"
53796 {
53797 #endif
53798 /* We use char because int might match the return type of a gcc2
53799 builtin and then its argument prototype would still apply. */
53800 char $ac_func ();
53801 /* The GNU C library defines this for functions which it implements
53802 to always fail with ENOSYS. Some functions are actually named
53803 something starting with __ and the normal name is an alias. */
53804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53805 choke me
53806 #else
53807 char (*f) () = $ac_func;
53808 #endif
53809 #ifdef __cplusplus
53810 }
53811 #endif
53812
53813 int
53814 main ()
53815 {
53816 return f != $ac_func;
53817 ;
53818 return 0;
53819 }
53820 _ACEOF
53821 rm -f conftest.$ac_objext conftest$ac_exeext
53822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53823 (eval $ac_link) 2>&5
53824 ac_status=$?
53825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53826 (exit $ac_status); } &&
53827 { ac_try='test -s conftest$ac_exeext'
53828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53829 (eval $ac_try) 2>&5
53830 ac_status=$?
53831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53832 (exit $ac_status); }; }; then
53833 eval "$as_ac_var=yes"
53834 else
53835 echo "$as_me: failed program was:" >&5
53836 sed 's/^/| /' conftest.$ac_ext >&5
53837
53838 eval "$as_ac_var=no"
53839 fi
53840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53841 fi
53842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53844 if test `eval echo '${'$as_ac_var'}'` = yes; then
53845 cat >>confdefs.h <<_ACEOF
53846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53847 _ACEOF
53848
53849 else
53850 ac_wfuncs=no
53851 fi
53852 done
53853
53854
53855 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
53856 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
53857 if test x"$has_weof" = xyes &&
53858 test x"$has_wchar_minmax" = xyes &&
53859 test x"$ac_wfuncs" = xyes;
53860 then
53861 ac_isoC99_wchar_t=yes
53862 else
53863 ac_isoC99_wchar_t=no
53864 fi
53865 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
53866 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
53867
53868 # Use iconv for wchar_t to char conversions. As such, check for
53869 # X/Open Portability Guide, version 2 features (XPG2).
53870 if test "${ac_cv_header_iconv_h+set}" = set; then
53871 echo "$as_me:$LINENO: checking for iconv.h" >&5
53872 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
53873 if test "${ac_cv_header_iconv_h+set}" = set; then
53874 echo $ECHO_N "(cached) $ECHO_C" >&6
53875 fi
53876 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
53877 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
53878 else
53879 # Is the header compilable?
53880 echo "$as_me:$LINENO: checking iconv.h usability" >&5
53881 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
53882 cat >conftest.$ac_ext <<_ACEOF
53883 #line $LINENO "configure"
53884 /* confdefs.h. */
53885 _ACEOF
53886 cat confdefs.h >>conftest.$ac_ext
53887 cat >>conftest.$ac_ext <<_ACEOF
53888 /* end confdefs.h. */
53889 $ac_includes_default
53890 #include <iconv.h>
53891 _ACEOF
53892 rm -f conftest.$ac_objext
53893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53894 (eval $ac_compile) 2>&5
53895 ac_status=$?
53896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53897 (exit $ac_status); } &&
53898 { ac_try='test -s conftest.$ac_objext'
53899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53900 (eval $ac_try) 2>&5
53901 ac_status=$?
53902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53903 (exit $ac_status); }; }; then
53904 ac_header_compiler=yes
53905 else
53906 echo "$as_me: failed program was:" >&5
53907 sed 's/^/| /' conftest.$ac_ext >&5
53908
53909 ac_header_compiler=no
53910 fi
53911 rm -f conftest.$ac_objext conftest.$ac_ext
53912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53913 echo "${ECHO_T}$ac_header_compiler" >&6
53914
53915 # Is the header present?
53916 echo "$as_me:$LINENO: checking iconv.h presence" >&5
53917 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
53918 cat >conftest.$ac_ext <<_ACEOF
53919 #line $LINENO "configure"
53920 /* confdefs.h. */
53921 _ACEOF
53922 cat confdefs.h >>conftest.$ac_ext
53923 cat >>conftest.$ac_ext <<_ACEOF
53924 /* end confdefs.h. */
53925 #include <iconv.h>
53926 _ACEOF
53927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53929 ac_status=$?
53930 grep -v '^ *+' conftest.er1 >conftest.err
53931 rm -f conftest.er1
53932 cat conftest.err >&5
53933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53934 (exit $ac_status); } >/dev/null; then
53935 if test -s conftest.err; then
53936 ac_cpp_err=$ac_c_preproc_warn_flag
53937 else
53938 ac_cpp_err=
53939 fi
53940 else
53941 ac_cpp_err=yes
53942 fi
53943 if test -z "$ac_cpp_err"; then
53944 ac_header_preproc=yes
53945 else
53946 echo "$as_me: failed program was:" >&5
53947 sed 's/^/| /' conftest.$ac_ext >&5
53948
53949 ac_header_preproc=no
53950 fi
53951 rm -f conftest.err conftest.$ac_ext
53952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53953 echo "${ECHO_T}$ac_header_preproc" >&6
53954
53955 # So? What about this header?
53956 case $ac_header_compiler:$ac_header_preproc in
53957 yes:no )
53958 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
53959 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53960 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
53961 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
53962 (
53963 cat <<\_ASBOX
53964 ## ------------------------------------ ##
53965 ## Report this to bug-autoconf@gnu.org. ##
53966 ## ------------------------------------ ##
53967 _ASBOX
53968 ) |
53969 sed "s/^/$as_me: WARNING: /" >&2
53970 ;;
53971 no:yes )
53972 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
53973 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
53974 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
53975 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
53976 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
53977 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
53978 (
53979 cat <<\_ASBOX
53980 ## ------------------------------------ ##
53981 ## Report this to bug-autoconf@gnu.org. ##
53982 ## ------------------------------------ ##
53983 _ASBOX
53984 ) |
53985 sed "s/^/$as_me: WARNING: /" >&2
53986 ;;
53987 esac
53988 echo "$as_me:$LINENO: checking for iconv.h" >&5
53989 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
53990 if test "${ac_cv_header_iconv_h+set}" = set; then
53991 echo $ECHO_N "(cached) $ECHO_C" >&6
53992 else
53993 ac_cv_header_iconv_h=$ac_header_preproc
53994 fi
53995 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
53996 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
53997
53998 fi
53999 if test $ac_cv_header_iconv_h = yes; then
54000 ac_has_iconv_h=yes
54001 else
54002 ac_has_iconv_h=no
54003 fi
54004
54005
54006 if test "${ac_cv_header_langinfo_h+set}" = set; then
54007 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54008 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54009 if test "${ac_cv_header_langinfo_h+set}" = set; then
54010 echo $ECHO_N "(cached) $ECHO_C" >&6
54011 fi
54012 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54013 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54014 else
54015 # Is the header compilable?
54016 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
54017 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
54018 cat >conftest.$ac_ext <<_ACEOF
54019 #line $LINENO "configure"
54020 /* confdefs.h. */
54021 _ACEOF
54022 cat confdefs.h >>conftest.$ac_ext
54023 cat >>conftest.$ac_ext <<_ACEOF
54024 /* end confdefs.h. */
54025 $ac_includes_default
54026 #include <langinfo.h>
54027 _ACEOF
54028 rm -f conftest.$ac_objext
54029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54030 (eval $ac_compile) 2>&5
54031 ac_status=$?
54032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54033 (exit $ac_status); } &&
54034 { ac_try='test -s conftest.$ac_objext'
54035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54036 (eval $ac_try) 2>&5
54037 ac_status=$?
54038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54039 (exit $ac_status); }; }; then
54040 ac_header_compiler=yes
54041 else
54042 echo "$as_me: failed program was:" >&5
54043 sed 's/^/| /' conftest.$ac_ext >&5
54044
54045 ac_header_compiler=no
54046 fi
54047 rm -f conftest.$ac_objext conftest.$ac_ext
54048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54049 echo "${ECHO_T}$ac_header_compiler" >&6
54050
54051 # Is the header present?
54052 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
54053 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
54054 cat >conftest.$ac_ext <<_ACEOF
54055 #line $LINENO "configure"
54056 /* confdefs.h. */
54057 _ACEOF
54058 cat confdefs.h >>conftest.$ac_ext
54059 cat >>conftest.$ac_ext <<_ACEOF
54060 /* end confdefs.h. */
54061 #include <langinfo.h>
54062 _ACEOF
54063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54065 ac_status=$?
54066 grep -v '^ *+' conftest.er1 >conftest.err
54067 rm -f conftest.er1
54068 cat conftest.err >&5
54069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54070 (exit $ac_status); } >/dev/null; then
54071 if test -s conftest.err; then
54072 ac_cpp_err=$ac_c_preproc_warn_flag
54073 else
54074 ac_cpp_err=
54075 fi
54076 else
54077 ac_cpp_err=yes
54078 fi
54079 if test -z "$ac_cpp_err"; then
54080 ac_header_preproc=yes
54081 else
54082 echo "$as_me: failed program was:" >&5
54083 sed 's/^/| /' conftest.$ac_ext >&5
54084
54085 ac_header_preproc=no
54086 fi
54087 rm -f conftest.err conftest.$ac_ext
54088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54089 echo "${ECHO_T}$ac_header_preproc" >&6
54090
54091 # So? What about this header?
54092 case $ac_header_compiler:$ac_header_preproc in
54093 yes:no )
54094 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
54095 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54096 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54097 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54098 (
54099 cat <<\_ASBOX
54100 ## ------------------------------------ ##
54101 ## Report this to bug-autoconf@gnu.org. ##
54102 ## ------------------------------------ ##
54103 _ASBOX
54104 ) |
54105 sed "s/^/$as_me: WARNING: /" >&2
54106 ;;
54107 no:yes )
54108 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
54109 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
54110 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
54111 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
54112 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54113 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54114 (
54115 cat <<\_ASBOX
54116 ## ------------------------------------ ##
54117 ## Report this to bug-autoconf@gnu.org. ##
54118 ## ------------------------------------ ##
54119 _ASBOX
54120 ) |
54121 sed "s/^/$as_me: WARNING: /" >&2
54122 ;;
54123 esac
54124 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54125 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54126 if test "${ac_cv_header_langinfo_h+set}" = set; then
54127 echo $ECHO_N "(cached) $ECHO_C" >&6
54128 else
54129 ac_cv_header_langinfo_h=$ac_header_preproc
54130 fi
54131 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54132 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54133
54134 fi
54135 if test $ac_cv_header_langinfo_h = yes; then
54136 ac_has_langinfo_h=yes
54137 else
54138 ac_has_langinfo_h=no
54139 fi
54140
54141
54142
54143 # Check for existence of libiconv.a providing XPG2 wchar_t support.
54144 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
54145 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
54146 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
54147 echo $ECHO_N "(cached) $ECHO_C" >&6
54148 else
54149 ac_check_lib_save_LIBS=$LIBS
54150 LIBS="-liconv $LIBS"
54151 if test x$gcc_no_link = xyes; then
54152 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54154 { (exit 1); exit 1; }; }
54155 fi
54156 cat >conftest.$ac_ext <<_ACEOF
54157 #line $LINENO "configure"
54158 /* confdefs.h. */
54159 _ACEOF
54160 cat confdefs.h >>conftest.$ac_ext
54161 cat >>conftest.$ac_ext <<_ACEOF
54162 /* end confdefs.h. */
54163
54164 /* Override any gcc2 internal prototype to avoid an error. */
54165 #ifdef __cplusplus
54166 extern "C"
54167 #endif
54168 /* We use char because int might match the return type of a gcc2
54169 builtin and then its argument prototype would still apply. */
54170 char iconv ();
54171 int
54172 main ()
54173 {
54174 iconv ();
54175 ;
54176 return 0;
54177 }
54178 _ACEOF
54179 rm -f conftest.$ac_objext conftest$ac_exeext
54180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54181 (eval $ac_link) 2>&5
54182 ac_status=$?
54183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54184 (exit $ac_status); } &&
54185 { ac_try='test -s conftest$ac_exeext'
54186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54187 (eval $ac_try) 2>&5
54188 ac_status=$?
54189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54190 (exit $ac_status); }; }; then
54191 ac_cv_lib_iconv_iconv=yes
54192 else
54193 echo "$as_me: failed program was:" >&5
54194 sed 's/^/| /' conftest.$ac_ext >&5
54195
54196 ac_cv_lib_iconv_iconv=no
54197 fi
54198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54199 LIBS=$ac_check_lib_save_LIBS
54200 fi
54201 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
54202 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
54203 if test $ac_cv_lib_iconv_iconv = yes; then
54204 libiconv="-liconv"
54205 fi
54206
54207 ac_save_LIBS="$LIBS"
54208 LIBS="$LIBS $libiconv"
54209
54210
54211
54212
54213
54214 for ac_func in iconv_open iconv_close iconv nl_langinfo
54215 do
54216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54217 echo "$as_me:$LINENO: checking for $ac_func" >&5
54218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54219 if eval "test \"\${$as_ac_var+set}\" = set"; then
54220 echo $ECHO_N "(cached) $ECHO_C" >&6
54221 else
54222 if test x$gcc_no_link = xyes; then
54223 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54225 { (exit 1); exit 1; }; }
54226 fi
54227 cat >conftest.$ac_ext <<_ACEOF
54228 #line $LINENO "configure"
54229 /* confdefs.h. */
54230 _ACEOF
54231 cat confdefs.h >>conftest.$ac_ext
54232 cat >>conftest.$ac_ext <<_ACEOF
54233 /* end confdefs.h. */
54234 /* System header to define __stub macros and hopefully few prototypes,
54235 which can conflict with char $ac_func (); below.
54236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54237 <limits.h> exists even on freestanding compilers. */
54238 #ifdef __STDC__
54239 # include <limits.h>
54240 #else
54241 # include <assert.h>
54242 #endif
54243 /* Override any gcc2 internal prototype to avoid an error. */
54244 #ifdef __cplusplus
54245 extern "C"
54246 {
54247 #endif
54248 /* We use char because int might match the return type of a gcc2
54249 builtin and then its argument prototype would still apply. */
54250 char $ac_func ();
54251 /* The GNU C library defines this for functions which it implements
54252 to always fail with ENOSYS. Some functions are actually named
54253 something starting with __ and the normal name is an alias. */
54254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54255 choke me
54256 #else
54257 char (*f) () = $ac_func;
54258 #endif
54259 #ifdef __cplusplus
54260 }
54261 #endif
54262
54263 int
54264 main ()
54265 {
54266 return f != $ac_func;
54267 ;
54268 return 0;
54269 }
54270 _ACEOF
54271 rm -f conftest.$ac_objext conftest$ac_exeext
54272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54273 (eval $ac_link) 2>&5
54274 ac_status=$?
54275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54276 (exit $ac_status); } &&
54277 { ac_try='test -s conftest$ac_exeext'
54278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54279 (eval $ac_try) 2>&5
54280 ac_status=$?
54281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54282 (exit $ac_status); }; }; then
54283 eval "$as_ac_var=yes"
54284 else
54285 echo "$as_me: failed program was:" >&5
54286 sed 's/^/| /' conftest.$ac_ext >&5
54287
54288 eval "$as_ac_var=no"
54289 fi
54290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54291 fi
54292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54294 if test `eval echo '${'$as_ac_var'}'` = yes; then
54295 cat >>confdefs.h <<_ACEOF
54296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54297 _ACEOF
54298 ac_XPG2funcs=yes
54299 else
54300 ac_XPG2funcs=no
54301 fi
54302 done
54303
54304
54305 LIBS="$ac_save_LIBS"
54306
54307 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
54308 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
54309 if test x"$ac_has_iconv_h" = xyes &&
54310 test x"$ac_has_langinfo_h" = xyes &&
54311 test x"$ac_XPG2funcs" = xyes;
54312 then
54313 ac_XPG2_wchar_t=yes
54314 else
54315 ac_XPG2_wchar_t=no
54316 fi
54317 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
54318 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
54319
54320 # At the moment, only enable wchar_t specializations if all the
54321 # above support is present.
54322 if test x"$ac_isoC99_wchar_t" = xyes &&
54323 test x"$ac_XPG2_wchar_t" = xyes;
54324 then
54325 cat >>confdefs.h <<\_ACEOF
54326 #define _GLIBCXX_USE_WCHAR_T 1
54327 _ACEOF
54328
54329 enable_wchar_t=yes
54330 fi
54331 fi
54332 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
54333 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
54334 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
54335 echo "${ECHO_T}$enable_wchar_t" >&6
54336
54337 ;;
54338 *-netbsd*)
54339 #os_include_dir="os/bsd/netbsd"
54340
54341
54342
54343
54344
54345
54346
54347
54348
54349
54350
54351
54352 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
54353 machine/endian.h machine/param.h sys/machine.h sys/types.h \
54354 fp.h locale.h float.h inttypes.h
54355 do
54356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54358 echo "$as_me:$LINENO: checking for $ac_header" >&5
54359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54361 echo $ECHO_N "(cached) $ECHO_C" >&6
54362 fi
54363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54365 else
54366 # Is the header compilable?
54367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54369 cat >conftest.$ac_ext <<_ACEOF
54370 #line $LINENO "configure"
54371 /* confdefs.h. */
54372 _ACEOF
54373 cat confdefs.h >>conftest.$ac_ext
54374 cat >>conftest.$ac_ext <<_ACEOF
54375 /* end confdefs.h. */
54376 $ac_includes_default
54377 #include <$ac_header>
54378 _ACEOF
54379 rm -f conftest.$ac_objext
54380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54381 (eval $ac_compile) 2>&5
54382 ac_status=$?
54383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54384 (exit $ac_status); } &&
54385 { ac_try='test -s conftest.$ac_objext'
54386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54387 (eval $ac_try) 2>&5
54388 ac_status=$?
54389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54390 (exit $ac_status); }; }; then
54391 ac_header_compiler=yes
54392 else
54393 echo "$as_me: failed program was:" >&5
54394 sed 's/^/| /' conftest.$ac_ext >&5
54395
54396 ac_header_compiler=no
54397 fi
54398 rm -f conftest.$ac_objext conftest.$ac_ext
54399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54400 echo "${ECHO_T}$ac_header_compiler" >&6
54401
54402 # Is the header present?
54403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54405 cat >conftest.$ac_ext <<_ACEOF
54406 #line $LINENO "configure"
54407 /* confdefs.h. */
54408 _ACEOF
54409 cat confdefs.h >>conftest.$ac_ext
54410 cat >>conftest.$ac_ext <<_ACEOF
54411 /* end confdefs.h. */
54412 #include <$ac_header>
54413 _ACEOF
54414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54416 ac_status=$?
54417 grep -v '^ *+' conftest.er1 >conftest.err
54418 rm -f conftest.er1
54419 cat conftest.err >&5
54420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54421 (exit $ac_status); } >/dev/null; then
54422 if test -s conftest.err; then
54423 ac_cpp_err=$ac_c_preproc_warn_flag
54424 else
54425 ac_cpp_err=
54426 fi
54427 else
54428 ac_cpp_err=yes
54429 fi
54430 if test -z "$ac_cpp_err"; then
54431 ac_header_preproc=yes
54432 else
54433 echo "$as_me: failed program was:" >&5
54434 sed 's/^/| /' conftest.$ac_ext >&5
54435
54436 ac_header_preproc=no
54437 fi
54438 rm -f conftest.err conftest.$ac_ext
54439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54440 echo "${ECHO_T}$ac_header_preproc" >&6
54441
54442 # So? What about this header?
54443 case $ac_header_compiler:$ac_header_preproc in
54444 yes:no )
54445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54449 (
54450 cat <<\_ASBOX
54451 ## ------------------------------------ ##
54452 ## Report this to bug-autoconf@gnu.org. ##
54453 ## ------------------------------------ ##
54454 _ASBOX
54455 ) |
54456 sed "s/^/$as_me: WARNING: /" >&2
54457 ;;
54458 no:yes )
54459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54465 (
54466 cat <<\_ASBOX
54467 ## ------------------------------------ ##
54468 ## Report this to bug-autoconf@gnu.org. ##
54469 ## ------------------------------------ ##
54470 _ASBOX
54471 ) |
54472 sed "s/^/$as_me: WARNING: /" >&2
54473 ;;
54474 esac
54475 echo "$as_me:$LINENO: checking for $ac_header" >&5
54476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54478 echo $ECHO_N "(cached) $ECHO_C" >&6
54479 else
54480 eval "$as_ac_Header=$ac_header_preproc"
54481 fi
54482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54484
54485 fi
54486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54487 cat >>confdefs.h <<_ACEOF
54488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54489 _ACEOF
54490
54491 fi
54492
54493 done
54494
54495 SECTION_FLAGS='-ffunction-sections -fdata-sections'
54496
54497
54498 # If we're not using GNU ld, then there's no point in even trying these
54499 # tests. Check for that first. We should have already tested for gld
54500 # by now (in libtool), but require it now just to be safe...
54501 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
54502 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
54503
54504
54505
54506 # The name set by libtool depends on the version of libtool. Shame on us
54507 # for depending on an impl detail, but c'est la vie. Older versions used
54508 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
54509 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
54510 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
54511 # set (hence we're using an older libtool), then set it.
54512 if test x${with_gnu_ld+set} != xset; then
54513 if test x${ac_cv_prog_gnu_ld+set} != xset; then
54514 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
54515 with_gnu_ld=no
54516 else
54517 with_gnu_ld=$ac_cv_prog_gnu_ld
54518 fi
54519 fi
54520
54521 # Start by getting the version number. I think the libtool test already
54522 # does some of this, but throws away the result.
54523
54524 ldver=`$LD --version 2>/dev/null | head -1 | \
54525 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
54526
54527 glibcxx_gnu_ld_version=`echo $ldver | \
54528 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
54529
54530 # Set --gc-sections.
54531 if test "$with_gnu_ld" = "notbroken"; then
54532 # GNU ld it is! Joy and bunny rabbits!
54533
54534 # All these tests are for C++; save the language and the compiler flags.
54535 # Need to do this so that g++ won't try to link in libstdc++
54536 ac_test_CFLAGS="${CFLAGS+set}"
54537 ac_save_CFLAGS="$CFLAGS"
54538 CFLAGS='-x c++ -Wl,--gc-sections'
54539
54540 # Check for -Wl,--gc-sections
54541 # XXX This test is broken at the moment, as symbols required for linking
54542 # are now in libsupc++ (not built yet). In addition, this test has
54543 # cored on solaris in the past. In addition, --gc-sections doesn't
54544 # really work at the moment (keeps on discarding used sections, first
54545 # .eh_frame and now some of the glibc sections for iconv).
54546 # Bzzzzt. Thanks for playing, maybe next time.
54547 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
54548 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
54549 if test "$cross_compiling" = yes; then
54550 ac_sectionLDflags=yes
54551 else
54552 cat >conftest.$ac_ext <<_ACEOF
54553 #line $LINENO "configure"
54554 /* confdefs.h. */
54555 _ACEOF
54556 cat confdefs.h >>conftest.$ac_ext
54557 cat >>conftest.$ac_ext <<_ACEOF
54558 /* end confdefs.h. */
54559
54560 int main(void)
54561 {
54562 try { throw 1; }
54563 catch (...) { };
54564 return 0;
54565 }
54566
54567 _ACEOF
54568 rm -f conftest$ac_exeext
54569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54570 (eval $ac_link) 2>&5
54571 ac_status=$?
54572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54575 (eval $ac_try) 2>&5
54576 ac_status=$?
54577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54578 (exit $ac_status); }; }; then
54579 ac_sectionLDflags=yes
54580 else
54581 echo "$as_me: program exited with status $ac_status" >&5
54582 echo "$as_me: failed program was:" >&5
54583 sed 's/^/| /' conftest.$ac_ext >&5
54584
54585 ( exit $ac_status )
54586 ac_sectionLDflags=no
54587 fi
54588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54589 fi
54590 if test "$ac_test_CFLAGS" = set; then
54591 CFLAGS="$ac_save_CFLAGS"
54592 else
54593 # this is the suspicious part
54594 CFLAGS=''
54595 fi
54596 if test "$ac_sectionLDflags" = "yes"; then
54597 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
54598 fi
54599 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
54600 echo "${ECHO_T}$ac_sectionLDflags" >&6
54601 fi
54602
54603 # Set linker optimization flags.
54604 if test x"$with_gnu_ld" = x"yes"; then
54605 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
54606 fi
54607
54608
54609
54610
54611
54612
54613 echo "$as_me:$LINENO: checking for main in -lm" >&5
54614 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
54615 if test "${ac_cv_lib_m_main+set}" = set; then
54616 echo $ECHO_N "(cached) $ECHO_C" >&6
54617 else
54618 ac_check_lib_save_LIBS=$LIBS
54619 LIBS="-lm $LIBS"
54620 if test x$gcc_no_link = xyes; then
54621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54623 { (exit 1); exit 1; }; }
54624 fi
54625 cat >conftest.$ac_ext <<_ACEOF
54626 #line $LINENO "configure"
54627 /* confdefs.h. */
54628 _ACEOF
54629 cat confdefs.h >>conftest.$ac_ext
54630 cat >>conftest.$ac_ext <<_ACEOF
54631 /* end confdefs.h. */
54632
54633
54634 int
54635 main ()
54636 {
54637 main ();
54638 ;
54639 return 0;
54640 }
54641 _ACEOF
54642 rm -f conftest.$ac_objext conftest$ac_exeext
54643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54644 (eval $ac_link) 2>&5
54645 ac_status=$?
54646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54647 (exit $ac_status); } &&
54648 { ac_try='test -s conftest$ac_exeext'
54649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54650 (eval $ac_try) 2>&5
54651 ac_status=$?
54652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54653 (exit $ac_status); }; }; then
54654 ac_cv_lib_m_main=yes
54655 else
54656 echo "$as_me: failed program was:" >&5
54657 sed 's/^/| /' conftest.$ac_ext >&5
54658
54659 ac_cv_lib_m_main=no
54660 fi
54661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54662 LIBS=$ac_check_lib_save_LIBS
54663 fi
54664 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
54665 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
54666 if test $ac_cv_lib_m_main = yes; then
54667 cat >>confdefs.h <<_ACEOF
54668 #define HAVE_LIBM 1
54669 _ACEOF
54670
54671 LIBS="-lm $LIBS"
54672
54673 fi
54674
54675
54676
54677 for ac_func in nan copysignf
54678 do
54679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54680 echo "$as_me:$LINENO: checking for $ac_func" >&5
54681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54682 if eval "test \"\${$as_ac_var+set}\" = set"; then
54683 echo $ECHO_N "(cached) $ECHO_C" >&6
54684 else
54685 if test x$gcc_no_link = xyes; then
54686 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54687 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54688 { (exit 1); exit 1; }; }
54689 fi
54690 cat >conftest.$ac_ext <<_ACEOF
54691 #line $LINENO "configure"
54692 /* confdefs.h. */
54693 _ACEOF
54694 cat confdefs.h >>conftest.$ac_ext
54695 cat >>conftest.$ac_ext <<_ACEOF
54696 /* end confdefs.h. */
54697 /* System header to define __stub macros and hopefully few prototypes,
54698 which can conflict with char $ac_func (); below.
54699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54700 <limits.h> exists even on freestanding compilers. */
54701 #ifdef __STDC__
54702 # include <limits.h>
54703 #else
54704 # include <assert.h>
54705 #endif
54706 /* Override any gcc2 internal prototype to avoid an error. */
54707 #ifdef __cplusplus
54708 extern "C"
54709 {
54710 #endif
54711 /* We use char because int might match the return type of a gcc2
54712 builtin and then its argument prototype would still apply. */
54713 char $ac_func ();
54714 /* The GNU C library defines this for functions which it implements
54715 to always fail with ENOSYS. Some functions are actually named
54716 something starting with __ and the normal name is an alias. */
54717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54718 choke me
54719 #else
54720 char (*f) () = $ac_func;
54721 #endif
54722 #ifdef __cplusplus
54723 }
54724 #endif
54725
54726 int
54727 main ()
54728 {
54729 return f != $ac_func;
54730 ;
54731 return 0;
54732 }
54733 _ACEOF
54734 rm -f conftest.$ac_objext conftest$ac_exeext
54735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54736 (eval $ac_link) 2>&5
54737 ac_status=$?
54738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54739 (exit $ac_status); } &&
54740 { ac_try='test -s conftest$ac_exeext'
54741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54742 (eval $ac_try) 2>&5
54743 ac_status=$?
54744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54745 (exit $ac_status); }; }; then
54746 eval "$as_ac_var=yes"
54747 else
54748 echo "$as_me: failed program was:" >&5
54749 sed 's/^/| /' conftest.$ac_ext >&5
54750
54751 eval "$as_ac_var=no"
54752 fi
54753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54754 fi
54755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54757 if test `eval echo '${'$as_ac_var'}'` = yes; then
54758 cat >>confdefs.h <<_ACEOF
54759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54760 _ACEOF
54761
54762 else
54763 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
54764 fi
54765 done
54766
54767
54768
54769 for ac_func in __signbit
54770 do
54771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54772 echo "$as_me:$LINENO: checking for $ac_func" >&5
54773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54774 if eval "test \"\${$as_ac_var+set}\" = set"; then
54775 echo $ECHO_N "(cached) $ECHO_C" >&6
54776 else
54777 if test x$gcc_no_link = xyes; then
54778 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54779 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54780 { (exit 1); exit 1; }; }
54781 fi
54782 cat >conftest.$ac_ext <<_ACEOF
54783 #line $LINENO "configure"
54784 /* confdefs.h. */
54785 _ACEOF
54786 cat confdefs.h >>conftest.$ac_ext
54787 cat >>conftest.$ac_ext <<_ACEOF
54788 /* end confdefs.h. */
54789 /* System header to define __stub macros and hopefully few prototypes,
54790 which can conflict with char $ac_func (); below.
54791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54792 <limits.h> exists even on freestanding compilers. */
54793 #ifdef __STDC__
54794 # include <limits.h>
54795 #else
54796 # include <assert.h>
54797 #endif
54798 /* Override any gcc2 internal prototype to avoid an error. */
54799 #ifdef __cplusplus
54800 extern "C"
54801 {
54802 #endif
54803 /* We use char because int might match the return type of a gcc2
54804 builtin and then its argument prototype would still apply. */
54805 char $ac_func ();
54806 /* The GNU C library defines this for functions which it implements
54807 to always fail with ENOSYS. Some functions are actually named
54808 something starting with __ and the normal name is an alias. */
54809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54810 choke me
54811 #else
54812 char (*f) () = $ac_func;
54813 #endif
54814 #ifdef __cplusplus
54815 }
54816 #endif
54817
54818 int
54819 main ()
54820 {
54821 return f != $ac_func;
54822 ;
54823 return 0;
54824 }
54825 _ACEOF
54826 rm -f conftest.$ac_objext conftest$ac_exeext
54827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54828 (eval $ac_link) 2>&5
54829 ac_status=$?
54830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54831 (exit $ac_status); } &&
54832 { ac_try='test -s conftest$ac_exeext'
54833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54834 (eval $ac_try) 2>&5
54835 ac_status=$?
54836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54837 (exit $ac_status); }; }; then
54838 eval "$as_ac_var=yes"
54839 else
54840 echo "$as_me: failed program was:" >&5
54841 sed 's/^/| /' conftest.$ac_ext >&5
54842
54843 eval "$as_ac_var=no"
54844 fi
54845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54846 fi
54847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54849 if test `eval echo '${'$as_ac_var'}'` = yes; then
54850 cat >>confdefs.h <<_ACEOF
54851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54852 _ACEOF
54853
54854 else
54855 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
54856 fi
54857 done
54858
54859
54860 for ac_func in __signbitf
54861 do
54862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54863 echo "$as_me:$LINENO: checking for $ac_func" >&5
54864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54865 if eval "test \"\${$as_ac_var+set}\" = set"; then
54866 echo $ECHO_N "(cached) $ECHO_C" >&6
54867 else
54868 if test x$gcc_no_link = xyes; then
54869 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54870 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54871 { (exit 1); exit 1; }; }
54872 fi
54873 cat >conftest.$ac_ext <<_ACEOF
54874 #line $LINENO "configure"
54875 /* confdefs.h. */
54876 _ACEOF
54877 cat confdefs.h >>conftest.$ac_ext
54878 cat >>conftest.$ac_ext <<_ACEOF
54879 /* end confdefs.h. */
54880 /* System header to define __stub macros and hopefully few prototypes,
54881 which can conflict with char $ac_func (); below.
54882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54883 <limits.h> exists even on freestanding compilers. */
54884 #ifdef __STDC__
54885 # include <limits.h>
54886 #else
54887 # include <assert.h>
54888 #endif
54889 /* Override any gcc2 internal prototype to avoid an error. */
54890 #ifdef __cplusplus
54891 extern "C"
54892 {
54893 #endif
54894 /* We use char because int might match the return type of a gcc2
54895 builtin and then its argument prototype would still apply. */
54896 char $ac_func ();
54897 /* The GNU C library defines this for functions which it implements
54898 to always fail with ENOSYS. Some functions are actually named
54899 something starting with __ and the normal name is an alias. */
54900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54901 choke me
54902 #else
54903 char (*f) () = $ac_func;
54904 #endif
54905 #ifdef __cplusplus
54906 }
54907 #endif
54908
54909 int
54910 main ()
54911 {
54912 return f != $ac_func;
54913 ;
54914 return 0;
54915 }
54916 _ACEOF
54917 rm -f conftest.$ac_objext conftest$ac_exeext
54918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54919 (eval $ac_link) 2>&5
54920 ac_status=$?
54921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54922 (exit $ac_status); } &&
54923 { ac_try='test -s conftest$ac_exeext'
54924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54925 (eval $ac_try) 2>&5
54926 ac_status=$?
54927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54928 (exit $ac_status); }; }; then
54929 eval "$as_ac_var=yes"
54930 else
54931 echo "$as_me: failed program was:" >&5
54932 sed 's/^/| /' conftest.$ac_ext >&5
54933
54934 eval "$as_ac_var=no"
54935 fi
54936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54937 fi
54938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54940 if test `eval echo '${'$as_ac_var'}'` = yes; then
54941 cat >>confdefs.h <<_ACEOF
54942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54943 _ACEOF
54944
54945 else
54946 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
54947 fi
54948 done
54949
54950
54951 if test x$ac_cv_func_copysignl = x"yes"; then
54952
54953 for ac_func in __signbitl
54954 do
54955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54956 echo "$as_me:$LINENO: checking for $ac_func" >&5
54957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54958 if eval "test \"\${$as_ac_var+set}\" = set"; then
54959 echo $ECHO_N "(cached) $ECHO_C" >&6
54960 else
54961 if test x$gcc_no_link = xyes; then
54962 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54963 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54964 { (exit 1); exit 1; }; }
54965 fi
54966 cat >conftest.$ac_ext <<_ACEOF
54967 #line $LINENO "configure"
54968 /* confdefs.h. */
54969 _ACEOF
54970 cat confdefs.h >>conftest.$ac_ext
54971 cat >>conftest.$ac_ext <<_ACEOF
54972 /* end confdefs.h. */
54973 /* System header to define __stub macros and hopefully few prototypes,
54974 which can conflict with char $ac_func (); below.
54975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54976 <limits.h> exists even on freestanding compilers. */
54977 #ifdef __STDC__
54978 # include <limits.h>
54979 #else
54980 # include <assert.h>
54981 #endif
54982 /* Override any gcc2 internal prototype to avoid an error. */
54983 #ifdef __cplusplus
54984 extern "C"
54985 {
54986 #endif
54987 /* We use char because int might match the return type of a gcc2
54988 builtin and then its argument prototype would still apply. */
54989 char $ac_func ();
54990 /* The GNU C library defines this for functions which it implements
54991 to always fail with ENOSYS. Some functions are actually named
54992 something starting with __ and the normal name is an alias. */
54993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54994 choke me
54995 #else
54996 char (*f) () = $ac_func;
54997 #endif
54998 #ifdef __cplusplus
54999 }
55000 #endif
55001
55002 int
55003 main ()
55004 {
55005 return f != $ac_func;
55006 ;
55007 return 0;
55008 }
55009 _ACEOF
55010 rm -f conftest.$ac_objext conftest$ac_exeext
55011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55012 (eval $ac_link) 2>&5
55013 ac_status=$?
55014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55015 (exit $ac_status); } &&
55016 { ac_try='test -s conftest$ac_exeext'
55017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55018 (eval $ac_try) 2>&5
55019 ac_status=$?
55020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55021 (exit $ac_status); }; }; then
55022 eval "$as_ac_var=yes"
55023 else
55024 echo "$as_me: failed program was:" >&5
55025 sed 's/^/| /' conftest.$ac_ext >&5
55026
55027 eval "$as_ac_var=no"
55028 fi
55029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55030 fi
55031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55033 if test `eval echo '${'$as_ac_var'}'` = yes; then
55034 cat >>confdefs.h <<_ACEOF
55035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55036 _ACEOF
55037
55038 else
55039 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
55040 fi
55041 done
55042
55043 fi
55044
55045 # XXX Review this. Nothing uses it.
55046 if test -n "$LIBMATHOBJS"; then
55047 need_libmath=yes
55048 fi
55049
55050
55051
55052 # Test wchar.h for mbstate_t, which is needed for char_traits and
55053 # others even if wchar_t support is not on.
55054 echo "$as_me:$LINENO: checking for mbstate_t" >&5
55055 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
55056 cat >conftest.$ac_ext <<_ACEOF
55057 #line $LINENO "configure"
55058 /* confdefs.h. */
55059 _ACEOF
55060 cat confdefs.h >>conftest.$ac_ext
55061 cat >>conftest.$ac_ext <<_ACEOF
55062 /* end confdefs.h. */
55063 #include <wchar.h>
55064 int
55065 main ()
55066 {
55067 mbstate_t teststate;
55068 ;
55069 return 0;
55070 }
55071 _ACEOF
55072 rm -f conftest.$ac_objext
55073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55074 (eval $ac_compile) 2>&5
55075 ac_status=$?
55076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55077 (exit $ac_status); } &&
55078 { ac_try='test -s conftest.$ac_objext'
55079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55080 (eval $ac_try) 2>&5
55081 ac_status=$?
55082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55083 (exit $ac_status); }; }; then
55084 have_mbstate_t=yes
55085 else
55086 echo "$as_me: failed program was:" >&5
55087 sed 's/^/| /' conftest.$ac_ext >&5
55088
55089 have_mbstate_t=no
55090 fi
55091 rm -f conftest.$ac_objext conftest.$ac_ext
55092 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
55093 echo "${ECHO_T}$have_mbstate_t" >&6
55094 if test x"$have_mbstate_t" = xyes; then
55095 cat >>confdefs.h <<\_ACEOF
55096 #define HAVE_MBSTATE_T 1
55097 _ACEOF
55098
55099 fi
55100
55101 # Sanity check for existence of ISO C99 headers for extended encoding.
55102
55103 for ac_header in wchar.h
55104 do
55105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55107 echo "$as_me:$LINENO: checking for $ac_header" >&5
55108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55110 echo $ECHO_N "(cached) $ECHO_C" >&6
55111 fi
55112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55114 else
55115 # Is the header compilable?
55116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55118 cat >conftest.$ac_ext <<_ACEOF
55119 #line $LINENO "configure"
55120 /* confdefs.h. */
55121 _ACEOF
55122 cat confdefs.h >>conftest.$ac_ext
55123 cat >>conftest.$ac_ext <<_ACEOF
55124 /* end confdefs.h. */
55125 $ac_includes_default
55126 #include <$ac_header>
55127 _ACEOF
55128 rm -f conftest.$ac_objext
55129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55130 (eval $ac_compile) 2>&5
55131 ac_status=$?
55132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55133 (exit $ac_status); } &&
55134 { ac_try='test -s conftest.$ac_objext'
55135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55136 (eval $ac_try) 2>&5
55137 ac_status=$?
55138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55139 (exit $ac_status); }; }; then
55140 ac_header_compiler=yes
55141 else
55142 echo "$as_me: failed program was:" >&5
55143 sed 's/^/| /' conftest.$ac_ext >&5
55144
55145 ac_header_compiler=no
55146 fi
55147 rm -f conftest.$ac_objext conftest.$ac_ext
55148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55149 echo "${ECHO_T}$ac_header_compiler" >&6
55150
55151 # Is the header present?
55152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55154 cat >conftest.$ac_ext <<_ACEOF
55155 #line $LINENO "configure"
55156 /* confdefs.h. */
55157 _ACEOF
55158 cat confdefs.h >>conftest.$ac_ext
55159 cat >>conftest.$ac_ext <<_ACEOF
55160 /* end confdefs.h. */
55161 #include <$ac_header>
55162 _ACEOF
55163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55165 ac_status=$?
55166 grep -v '^ *+' conftest.er1 >conftest.err
55167 rm -f conftest.er1
55168 cat conftest.err >&5
55169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55170 (exit $ac_status); } >/dev/null; then
55171 if test -s conftest.err; then
55172 ac_cpp_err=$ac_c_preproc_warn_flag
55173 else
55174 ac_cpp_err=
55175 fi
55176 else
55177 ac_cpp_err=yes
55178 fi
55179 if test -z "$ac_cpp_err"; then
55180 ac_header_preproc=yes
55181 else
55182 echo "$as_me: failed program was:" >&5
55183 sed 's/^/| /' conftest.$ac_ext >&5
55184
55185 ac_header_preproc=no
55186 fi
55187 rm -f conftest.err conftest.$ac_ext
55188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55189 echo "${ECHO_T}$ac_header_preproc" >&6
55190
55191 # So? What about this header?
55192 case $ac_header_compiler:$ac_header_preproc in
55193 yes:no )
55194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55198 (
55199 cat <<\_ASBOX
55200 ## ------------------------------------ ##
55201 ## Report this to bug-autoconf@gnu.org. ##
55202 ## ------------------------------------ ##
55203 _ASBOX
55204 ) |
55205 sed "s/^/$as_me: WARNING: /" >&2
55206 ;;
55207 no:yes )
55208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55214 (
55215 cat <<\_ASBOX
55216 ## ------------------------------------ ##
55217 ## Report this to bug-autoconf@gnu.org. ##
55218 ## ------------------------------------ ##
55219 _ASBOX
55220 ) |
55221 sed "s/^/$as_me: WARNING: /" >&2
55222 ;;
55223 esac
55224 echo "$as_me:$LINENO: checking for $ac_header" >&5
55225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55227 echo $ECHO_N "(cached) $ECHO_C" >&6
55228 else
55229 eval "$as_ac_Header=$ac_header_preproc"
55230 fi
55231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55233
55234 fi
55235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55236 cat >>confdefs.h <<_ACEOF
55237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55238 _ACEOF
55239 ac_has_wchar_h=yes
55240 else
55241 ac_has_wchar_h=no
55242 fi
55243
55244 done
55245
55246
55247 for ac_header in wctype.h
55248 do
55249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55251 echo "$as_me:$LINENO: checking for $ac_header" >&5
55252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55254 echo $ECHO_N "(cached) $ECHO_C" >&6
55255 fi
55256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55258 else
55259 # Is the header compilable?
55260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55262 cat >conftest.$ac_ext <<_ACEOF
55263 #line $LINENO "configure"
55264 /* confdefs.h. */
55265 _ACEOF
55266 cat confdefs.h >>conftest.$ac_ext
55267 cat >>conftest.$ac_ext <<_ACEOF
55268 /* end confdefs.h. */
55269 $ac_includes_default
55270 #include <$ac_header>
55271 _ACEOF
55272 rm -f conftest.$ac_objext
55273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55274 (eval $ac_compile) 2>&5
55275 ac_status=$?
55276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55277 (exit $ac_status); } &&
55278 { ac_try='test -s conftest.$ac_objext'
55279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55280 (eval $ac_try) 2>&5
55281 ac_status=$?
55282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55283 (exit $ac_status); }; }; then
55284 ac_header_compiler=yes
55285 else
55286 echo "$as_me: failed program was:" >&5
55287 sed 's/^/| /' conftest.$ac_ext >&5
55288
55289 ac_header_compiler=no
55290 fi
55291 rm -f conftest.$ac_objext conftest.$ac_ext
55292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55293 echo "${ECHO_T}$ac_header_compiler" >&6
55294
55295 # Is the header present?
55296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55298 cat >conftest.$ac_ext <<_ACEOF
55299 #line $LINENO "configure"
55300 /* confdefs.h. */
55301 _ACEOF
55302 cat confdefs.h >>conftest.$ac_ext
55303 cat >>conftest.$ac_ext <<_ACEOF
55304 /* end confdefs.h. */
55305 #include <$ac_header>
55306 _ACEOF
55307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55309 ac_status=$?
55310 grep -v '^ *+' conftest.er1 >conftest.err
55311 rm -f conftest.er1
55312 cat conftest.err >&5
55313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55314 (exit $ac_status); } >/dev/null; then
55315 if test -s conftest.err; then
55316 ac_cpp_err=$ac_c_preproc_warn_flag
55317 else
55318 ac_cpp_err=
55319 fi
55320 else
55321 ac_cpp_err=yes
55322 fi
55323 if test -z "$ac_cpp_err"; then
55324 ac_header_preproc=yes
55325 else
55326 echo "$as_me: failed program was:" >&5
55327 sed 's/^/| /' conftest.$ac_ext >&5
55328
55329 ac_header_preproc=no
55330 fi
55331 rm -f conftest.err conftest.$ac_ext
55332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55333 echo "${ECHO_T}$ac_header_preproc" >&6
55334
55335 # So? What about this header?
55336 case $ac_header_compiler:$ac_header_preproc in
55337 yes:no )
55338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55342 (
55343 cat <<\_ASBOX
55344 ## ------------------------------------ ##
55345 ## Report this to bug-autoconf@gnu.org. ##
55346 ## ------------------------------------ ##
55347 _ASBOX
55348 ) |
55349 sed "s/^/$as_me: WARNING: /" >&2
55350 ;;
55351 no:yes )
55352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55358 (
55359 cat <<\_ASBOX
55360 ## ------------------------------------ ##
55361 ## Report this to bug-autoconf@gnu.org. ##
55362 ## ------------------------------------ ##
55363 _ASBOX
55364 ) |
55365 sed "s/^/$as_me: WARNING: /" >&2
55366 ;;
55367 esac
55368 echo "$as_me:$LINENO: checking for $ac_header" >&5
55369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55371 echo $ECHO_N "(cached) $ECHO_C" >&6
55372 else
55373 eval "$as_ac_Header=$ac_header_preproc"
55374 fi
55375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55377
55378 fi
55379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55380 cat >>confdefs.h <<_ACEOF
55381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55382 _ACEOF
55383 ac_has_wctype_h=yes
55384 else
55385 ac_has_wctype_h=no
55386 fi
55387
55388 done
55389
55390
55391 # Only continue checking if the ISO C99 headers exist and support is on.
55392 if test x"$ac_has_wchar_h" = xyes &&
55393 test x"$ac_has_wctype_h" = xyes &&
55394 test x"$enable_c_mbchar" != xno; then
55395
55396 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
55397 # numeric_limits can instantiate type_traits<wchar_t>
55398 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
55399 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
55400 cat >conftest.$ac_ext <<_ACEOF
55401 #line $LINENO "configure"
55402 /* confdefs.h. */
55403 _ACEOF
55404 cat confdefs.h >>conftest.$ac_ext
55405 cat >>conftest.$ac_ext <<_ACEOF
55406 /* end confdefs.h. */
55407 #include <wchar.h>
55408 int
55409 main ()
55410 {
55411 int i = WCHAR_MIN; int j = WCHAR_MAX;
55412 ;
55413 return 0;
55414 }
55415 _ACEOF
55416 rm -f conftest.$ac_objext
55417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55418 (eval $ac_compile) 2>&5
55419 ac_status=$?
55420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55421 (exit $ac_status); } &&
55422 { ac_try='test -s conftest.$ac_objext'
55423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55424 (eval $ac_try) 2>&5
55425 ac_status=$?
55426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55427 (exit $ac_status); }; }; then
55428 has_wchar_minmax=yes
55429 else
55430 echo "$as_me: failed program was:" >&5
55431 sed 's/^/| /' conftest.$ac_ext >&5
55432
55433 has_wchar_minmax=no
55434 fi
55435 rm -f conftest.$ac_objext conftest.$ac_ext
55436 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
55437 echo "${ECHO_T}$has_wchar_minmax" >&6
55438
55439 # Test wchar.h for WEOF, which is what we use to determine whether
55440 # to specialize for char_traits<wchar_t> or not.
55441 echo "$as_me:$LINENO: checking for WEOF" >&5
55442 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
55443 cat >conftest.$ac_ext <<_ACEOF
55444 #line $LINENO "configure"
55445 /* confdefs.h. */
55446 _ACEOF
55447 cat confdefs.h >>conftest.$ac_ext
55448 cat >>conftest.$ac_ext <<_ACEOF
55449 /* end confdefs.h. */
55450
55451 #include <wchar.h>
55452 #include <stddef.h>
55453 int
55454 main ()
55455 {
55456 wint_t i = WEOF;
55457 ;
55458 return 0;
55459 }
55460 _ACEOF
55461 rm -f conftest.$ac_objext
55462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55463 (eval $ac_compile) 2>&5
55464 ac_status=$?
55465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55466 (exit $ac_status); } &&
55467 { ac_try='test -s conftest.$ac_objext'
55468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55469 (eval $ac_try) 2>&5
55470 ac_status=$?
55471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55472 (exit $ac_status); }; }; then
55473 has_weof=yes
55474 else
55475 echo "$as_me: failed program was:" >&5
55476 sed 's/^/| /' conftest.$ac_ext >&5
55477
55478 has_weof=no
55479 fi
55480 rm -f conftest.$ac_objext conftest.$ac_ext
55481 echo "$as_me:$LINENO: result: $has_weof" >&5
55482 echo "${ECHO_T}$has_weof" >&6
55483
55484 # Tests for wide character functions used in char_traits<wchar_t>.
55485 ac_wfuncs=yes
55486
55487
55488
55489
55490
55491
55492 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
55493 do
55494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55495 echo "$as_me:$LINENO: checking for $ac_func" >&5
55496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55497 if eval "test \"\${$as_ac_var+set}\" = set"; then
55498 echo $ECHO_N "(cached) $ECHO_C" >&6
55499 else
55500 if test x$gcc_no_link = xyes; then
55501 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55502 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55503 { (exit 1); exit 1; }; }
55504 fi
55505 cat >conftest.$ac_ext <<_ACEOF
55506 #line $LINENO "configure"
55507 /* confdefs.h. */
55508 _ACEOF
55509 cat confdefs.h >>conftest.$ac_ext
55510 cat >>conftest.$ac_ext <<_ACEOF
55511 /* end confdefs.h. */
55512 /* System header to define __stub macros and hopefully few prototypes,
55513 which can conflict with char $ac_func (); below.
55514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55515 <limits.h> exists even on freestanding compilers. */
55516 #ifdef __STDC__
55517 # include <limits.h>
55518 #else
55519 # include <assert.h>
55520 #endif
55521 /* Override any gcc2 internal prototype to avoid an error. */
55522 #ifdef __cplusplus
55523 extern "C"
55524 {
55525 #endif
55526 /* We use char because int might match the return type of a gcc2
55527 builtin and then its argument prototype would still apply. */
55528 char $ac_func ();
55529 /* The GNU C library defines this for functions which it implements
55530 to always fail with ENOSYS. Some functions are actually named
55531 something starting with __ and the normal name is an alias. */
55532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55533 choke me
55534 #else
55535 char (*f) () = $ac_func;
55536 #endif
55537 #ifdef __cplusplus
55538 }
55539 #endif
55540
55541 int
55542 main ()
55543 {
55544 return f != $ac_func;
55545 ;
55546 return 0;
55547 }
55548 _ACEOF
55549 rm -f conftest.$ac_objext conftest$ac_exeext
55550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55551 (eval $ac_link) 2>&5
55552 ac_status=$?
55553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55554 (exit $ac_status); } &&
55555 { ac_try='test -s conftest$ac_exeext'
55556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55557 (eval $ac_try) 2>&5
55558 ac_status=$?
55559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55560 (exit $ac_status); }; }; then
55561 eval "$as_ac_var=yes"
55562 else
55563 echo "$as_me: failed program was:" >&5
55564 sed 's/^/| /' conftest.$ac_ext >&5
55565
55566 eval "$as_ac_var=no"
55567 fi
55568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55569 fi
55570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55572 if test `eval echo '${'$as_ac_var'}'` = yes; then
55573 cat >>confdefs.h <<_ACEOF
55574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55575 _ACEOF
55576
55577 else
55578 ac_wfuncs=no
55579 fi
55580 done
55581
55582
55583 # Checks for names injected into std:: by the c_std headers.
55584
55585
55586
55587
55588
55589
55590
55591
55592
55593
55594
55595
55596
55597
55598
55599
55600
55601
55602
55603
55604
55605
55606
55607
55608
55609
55610
55611
55612
55613
55614
55615
55616
55617
55618
55619
55620
55621
55622
55623
55624
55625
55626
55627
55628
55629
55630
55631
55632
55633
55634 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
55635 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
55636 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
55637 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
55638 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
55639 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
55640 do
55641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55642 echo "$as_me:$LINENO: checking for $ac_func" >&5
55643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55644 if eval "test \"\${$as_ac_var+set}\" = set"; then
55645 echo $ECHO_N "(cached) $ECHO_C" >&6
55646 else
55647 if test x$gcc_no_link = xyes; then
55648 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55649 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55650 { (exit 1); exit 1; }; }
55651 fi
55652 cat >conftest.$ac_ext <<_ACEOF
55653 #line $LINENO "configure"
55654 /* confdefs.h. */
55655 _ACEOF
55656 cat confdefs.h >>conftest.$ac_ext
55657 cat >>conftest.$ac_ext <<_ACEOF
55658 /* end confdefs.h. */
55659 /* System header to define __stub macros and hopefully few prototypes,
55660 which can conflict with char $ac_func (); below.
55661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55662 <limits.h> exists even on freestanding compilers. */
55663 #ifdef __STDC__
55664 # include <limits.h>
55665 #else
55666 # include <assert.h>
55667 #endif
55668 /* Override any gcc2 internal prototype to avoid an error. */
55669 #ifdef __cplusplus
55670 extern "C"
55671 {
55672 #endif
55673 /* We use char because int might match the return type of a gcc2
55674 builtin and then its argument prototype would still apply. */
55675 char $ac_func ();
55676 /* The GNU C library defines this for functions which it implements
55677 to always fail with ENOSYS. Some functions are actually named
55678 something starting with __ and the normal name is an alias. */
55679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55680 choke me
55681 #else
55682 char (*f) () = $ac_func;
55683 #endif
55684 #ifdef __cplusplus
55685 }
55686 #endif
55687
55688 int
55689 main ()
55690 {
55691 return f != $ac_func;
55692 ;
55693 return 0;
55694 }
55695 _ACEOF
55696 rm -f conftest.$ac_objext conftest$ac_exeext
55697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55698 (eval $ac_link) 2>&5
55699 ac_status=$?
55700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55701 (exit $ac_status); } &&
55702 { ac_try='test -s conftest$ac_exeext'
55703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55704 (eval $ac_try) 2>&5
55705 ac_status=$?
55706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55707 (exit $ac_status); }; }; then
55708 eval "$as_ac_var=yes"
55709 else
55710 echo "$as_me: failed program was:" >&5
55711 sed 's/^/| /' conftest.$ac_ext >&5
55712
55713 eval "$as_ac_var=no"
55714 fi
55715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55716 fi
55717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55719 if test `eval echo '${'$as_ac_var'}'` = yes; then
55720 cat >>confdefs.h <<_ACEOF
55721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55722 _ACEOF
55723
55724 else
55725 ac_wfuncs=no
55726 fi
55727 done
55728
55729
55730 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
55731 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
55732 if test x"$has_weof" = xyes &&
55733 test x"$has_wchar_minmax" = xyes &&
55734 test x"$ac_wfuncs" = xyes;
55735 then
55736 ac_isoC99_wchar_t=yes
55737 else
55738 ac_isoC99_wchar_t=no
55739 fi
55740 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
55741 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
55742
55743 # Use iconv for wchar_t to char conversions. As such, check for
55744 # X/Open Portability Guide, version 2 features (XPG2).
55745 if test "${ac_cv_header_iconv_h+set}" = set; then
55746 echo "$as_me:$LINENO: checking for iconv.h" >&5
55747 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55748 if test "${ac_cv_header_iconv_h+set}" = set; then
55749 echo $ECHO_N "(cached) $ECHO_C" >&6
55750 fi
55751 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55752 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55753 else
55754 # Is the header compilable?
55755 echo "$as_me:$LINENO: checking iconv.h usability" >&5
55756 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
55757 cat >conftest.$ac_ext <<_ACEOF
55758 #line $LINENO "configure"
55759 /* confdefs.h. */
55760 _ACEOF
55761 cat confdefs.h >>conftest.$ac_ext
55762 cat >>conftest.$ac_ext <<_ACEOF
55763 /* end confdefs.h. */
55764 $ac_includes_default
55765 #include <iconv.h>
55766 _ACEOF
55767 rm -f conftest.$ac_objext
55768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55769 (eval $ac_compile) 2>&5
55770 ac_status=$?
55771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55772 (exit $ac_status); } &&
55773 { ac_try='test -s conftest.$ac_objext'
55774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55775 (eval $ac_try) 2>&5
55776 ac_status=$?
55777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55778 (exit $ac_status); }; }; then
55779 ac_header_compiler=yes
55780 else
55781 echo "$as_me: failed program was:" >&5
55782 sed 's/^/| /' conftest.$ac_ext >&5
55783
55784 ac_header_compiler=no
55785 fi
55786 rm -f conftest.$ac_objext conftest.$ac_ext
55787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55788 echo "${ECHO_T}$ac_header_compiler" >&6
55789
55790 # Is the header present?
55791 echo "$as_me:$LINENO: checking iconv.h presence" >&5
55792 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
55793 cat >conftest.$ac_ext <<_ACEOF
55794 #line $LINENO "configure"
55795 /* confdefs.h. */
55796 _ACEOF
55797 cat confdefs.h >>conftest.$ac_ext
55798 cat >>conftest.$ac_ext <<_ACEOF
55799 /* end confdefs.h. */
55800 #include <iconv.h>
55801 _ACEOF
55802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55804 ac_status=$?
55805 grep -v '^ *+' conftest.er1 >conftest.err
55806 rm -f conftest.er1
55807 cat conftest.err >&5
55808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55809 (exit $ac_status); } >/dev/null; then
55810 if test -s conftest.err; then
55811 ac_cpp_err=$ac_c_preproc_warn_flag
55812 else
55813 ac_cpp_err=
55814 fi
55815 else
55816 ac_cpp_err=yes
55817 fi
55818 if test -z "$ac_cpp_err"; then
55819 ac_header_preproc=yes
55820 else
55821 echo "$as_me: failed program was:" >&5
55822 sed 's/^/| /' conftest.$ac_ext >&5
55823
55824 ac_header_preproc=no
55825 fi
55826 rm -f conftest.err conftest.$ac_ext
55827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55828 echo "${ECHO_T}$ac_header_preproc" >&6
55829
55830 # So? What about this header?
55831 case $ac_header_compiler:$ac_header_preproc in
55832 yes:no )
55833 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
55834 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55835 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55836 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55837 (
55838 cat <<\_ASBOX
55839 ## ------------------------------------ ##
55840 ## Report this to bug-autoconf@gnu.org. ##
55841 ## ------------------------------------ ##
55842 _ASBOX
55843 ) |
55844 sed "s/^/$as_me: WARNING: /" >&2
55845 ;;
55846 no:yes )
55847 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
55848 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
55849 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
55850 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
55851 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55852 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55853 (
55854 cat <<\_ASBOX
55855 ## ------------------------------------ ##
55856 ## Report this to bug-autoconf@gnu.org. ##
55857 ## ------------------------------------ ##
55858 _ASBOX
55859 ) |
55860 sed "s/^/$as_me: WARNING: /" >&2
55861 ;;
55862 esac
55863 echo "$as_me:$LINENO: checking for iconv.h" >&5
55864 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55865 if test "${ac_cv_header_iconv_h+set}" = set; then
55866 echo $ECHO_N "(cached) $ECHO_C" >&6
55867 else
55868 ac_cv_header_iconv_h=$ac_header_preproc
55869 fi
55870 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55871 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55872
55873 fi
55874 if test $ac_cv_header_iconv_h = yes; then
55875 ac_has_iconv_h=yes
55876 else
55877 ac_has_iconv_h=no
55878 fi
55879
55880
55881 if test "${ac_cv_header_langinfo_h+set}" = set; then
55882 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55883 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55884 if test "${ac_cv_header_langinfo_h+set}" = set; then
55885 echo $ECHO_N "(cached) $ECHO_C" >&6
55886 fi
55887 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55888 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55889 else
55890 # Is the header compilable?
55891 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55892 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55893 cat >conftest.$ac_ext <<_ACEOF
55894 #line $LINENO "configure"
55895 /* confdefs.h. */
55896 _ACEOF
55897 cat confdefs.h >>conftest.$ac_ext
55898 cat >>conftest.$ac_ext <<_ACEOF
55899 /* end confdefs.h. */
55900 $ac_includes_default
55901 #include <langinfo.h>
55902 _ACEOF
55903 rm -f conftest.$ac_objext
55904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55905 (eval $ac_compile) 2>&5
55906 ac_status=$?
55907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55908 (exit $ac_status); } &&
55909 { ac_try='test -s conftest.$ac_objext'
55910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55911 (eval $ac_try) 2>&5
55912 ac_status=$?
55913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55914 (exit $ac_status); }; }; then
55915 ac_header_compiler=yes
55916 else
55917 echo "$as_me: failed program was:" >&5
55918 sed 's/^/| /' conftest.$ac_ext >&5
55919
55920 ac_header_compiler=no
55921 fi
55922 rm -f conftest.$ac_objext conftest.$ac_ext
55923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55924 echo "${ECHO_T}$ac_header_compiler" >&6
55925
55926 # Is the header present?
55927 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55928 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55929 cat >conftest.$ac_ext <<_ACEOF
55930 #line $LINENO "configure"
55931 /* confdefs.h. */
55932 _ACEOF
55933 cat confdefs.h >>conftest.$ac_ext
55934 cat >>conftest.$ac_ext <<_ACEOF
55935 /* end confdefs.h. */
55936 #include <langinfo.h>
55937 _ACEOF
55938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55940 ac_status=$?
55941 grep -v '^ *+' conftest.er1 >conftest.err
55942 rm -f conftest.er1
55943 cat conftest.err >&5
55944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55945 (exit $ac_status); } >/dev/null; then
55946 if test -s conftest.err; then
55947 ac_cpp_err=$ac_c_preproc_warn_flag
55948 else
55949 ac_cpp_err=
55950 fi
55951 else
55952 ac_cpp_err=yes
55953 fi
55954 if test -z "$ac_cpp_err"; then
55955 ac_header_preproc=yes
55956 else
55957 echo "$as_me: failed program was:" >&5
55958 sed 's/^/| /' conftest.$ac_ext >&5
55959
55960 ac_header_preproc=no
55961 fi
55962 rm -f conftest.err conftest.$ac_ext
55963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55964 echo "${ECHO_T}$ac_header_preproc" >&6
55965
55966 # So? What about this header?
55967 case $ac_header_compiler:$ac_header_preproc in
55968 yes:no )
55969 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55970 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55971 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55972 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55973 (
55974 cat <<\_ASBOX
55975 ## ------------------------------------ ##
55976 ## Report this to bug-autoconf@gnu.org. ##
55977 ## ------------------------------------ ##
55978 _ASBOX
55979 ) |
55980 sed "s/^/$as_me: WARNING: /" >&2
55981 ;;
55982 no:yes )
55983 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55984 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55985 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
55986 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
55987 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55988 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55989 (
55990 cat <<\_ASBOX
55991 ## ------------------------------------ ##
55992 ## Report this to bug-autoconf@gnu.org. ##
55993 ## ------------------------------------ ##
55994 _ASBOX
55995 ) |
55996 sed "s/^/$as_me: WARNING: /" >&2
55997 ;;
55998 esac
55999 echo "$as_me:$LINENO: checking for langinfo.h" >&5
56000 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
56001 if test "${ac_cv_header_langinfo_h+set}" = set; then
56002 echo $ECHO_N "(cached) $ECHO_C" >&6
56003 else
56004 ac_cv_header_langinfo_h=$ac_header_preproc
56005 fi
56006 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
56007 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
56008
56009 fi
56010 if test $ac_cv_header_langinfo_h = yes; then
56011 ac_has_langinfo_h=yes
56012 else
56013 ac_has_langinfo_h=no
56014 fi
56015
56016
56017
56018 # Check for existence of libiconv.a providing XPG2 wchar_t support.
56019 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
56020 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
56021 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
56022 echo $ECHO_N "(cached) $ECHO_C" >&6
56023 else
56024 ac_check_lib_save_LIBS=$LIBS
56025 LIBS="-liconv $LIBS"
56026 if test x$gcc_no_link = xyes; then
56027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56029 { (exit 1); exit 1; }; }
56030 fi
56031 cat >conftest.$ac_ext <<_ACEOF
56032 #line $LINENO "configure"
56033 /* confdefs.h. */
56034 _ACEOF
56035 cat confdefs.h >>conftest.$ac_ext
56036 cat >>conftest.$ac_ext <<_ACEOF
56037 /* end confdefs.h. */
56038
56039 /* Override any gcc2 internal prototype to avoid an error. */
56040 #ifdef __cplusplus
56041 extern "C"
56042 #endif
56043 /* We use char because int might match the return type of a gcc2
56044 builtin and then its argument prototype would still apply. */
56045 char iconv ();
56046 int
56047 main ()
56048 {
56049 iconv ();
56050 ;
56051 return 0;
56052 }
56053 _ACEOF
56054 rm -f conftest.$ac_objext conftest$ac_exeext
56055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56056 (eval $ac_link) 2>&5
56057 ac_status=$?
56058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56059 (exit $ac_status); } &&
56060 { ac_try='test -s conftest$ac_exeext'
56061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56062 (eval $ac_try) 2>&5
56063 ac_status=$?
56064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56065 (exit $ac_status); }; }; then
56066 ac_cv_lib_iconv_iconv=yes
56067 else
56068 echo "$as_me: failed program was:" >&5
56069 sed 's/^/| /' conftest.$ac_ext >&5
56070
56071 ac_cv_lib_iconv_iconv=no
56072 fi
56073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56074 LIBS=$ac_check_lib_save_LIBS
56075 fi
56076 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
56077 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
56078 if test $ac_cv_lib_iconv_iconv = yes; then
56079 libiconv="-liconv"
56080 fi
56081
56082 ac_save_LIBS="$LIBS"
56083 LIBS="$LIBS $libiconv"
56084
56085
56086
56087
56088
56089 for ac_func in iconv_open iconv_close iconv nl_langinfo
56090 do
56091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56092 echo "$as_me:$LINENO: checking for $ac_func" >&5
56093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56094 if eval "test \"\${$as_ac_var+set}\" = set"; then
56095 echo $ECHO_N "(cached) $ECHO_C" >&6
56096 else
56097 if test x$gcc_no_link = xyes; then
56098 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56100 { (exit 1); exit 1; }; }
56101 fi
56102 cat >conftest.$ac_ext <<_ACEOF
56103 #line $LINENO "configure"
56104 /* confdefs.h. */
56105 _ACEOF
56106 cat confdefs.h >>conftest.$ac_ext
56107 cat >>conftest.$ac_ext <<_ACEOF
56108 /* end confdefs.h. */
56109 /* System header to define __stub macros and hopefully few prototypes,
56110 which can conflict with char $ac_func (); below.
56111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56112 <limits.h> exists even on freestanding compilers. */
56113 #ifdef __STDC__
56114 # include <limits.h>
56115 #else
56116 # include <assert.h>
56117 #endif
56118 /* Override any gcc2 internal prototype to avoid an error. */
56119 #ifdef __cplusplus
56120 extern "C"
56121 {
56122 #endif
56123 /* We use char because int might match the return type of a gcc2
56124 builtin and then its argument prototype would still apply. */
56125 char $ac_func ();
56126 /* The GNU C library defines this for functions which it implements
56127 to always fail with ENOSYS. Some functions are actually named
56128 something starting with __ and the normal name is an alias. */
56129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56130 choke me
56131 #else
56132 char (*f) () = $ac_func;
56133 #endif
56134 #ifdef __cplusplus
56135 }
56136 #endif
56137
56138 int
56139 main ()
56140 {
56141 return f != $ac_func;
56142 ;
56143 return 0;
56144 }
56145 _ACEOF
56146 rm -f conftest.$ac_objext conftest$ac_exeext
56147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56148 (eval $ac_link) 2>&5
56149 ac_status=$?
56150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56151 (exit $ac_status); } &&
56152 { ac_try='test -s conftest$ac_exeext'
56153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56154 (eval $ac_try) 2>&5
56155 ac_status=$?
56156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56157 (exit $ac_status); }; }; then
56158 eval "$as_ac_var=yes"
56159 else
56160 echo "$as_me: failed program was:" >&5
56161 sed 's/^/| /' conftest.$ac_ext >&5
56162
56163 eval "$as_ac_var=no"
56164 fi
56165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56166 fi
56167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56169 if test `eval echo '${'$as_ac_var'}'` = yes; then
56170 cat >>confdefs.h <<_ACEOF
56171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56172 _ACEOF
56173 ac_XPG2funcs=yes
56174 else
56175 ac_XPG2funcs=no
56176 fi
56177 done
56178
56179
56180 LIBS="$ac_save_LIBS"
56181
56182 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
56183 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
56184 if test x"$ac_has_iconv_h" = xyes &&
56185 test x"$ac_has_langinfo_h" = xyes &&
56186 test x"$ac_XPG2funcs" = xyes;
56187 then
56188 ac_XPG2_wchar_t=yes
56189 else
56190 ac_XPG2_wchar_t=no
56191 fi
56192 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
56193 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
56194
56195 # At the moment, only enable wchar_t specializations if all the
56196 # above support is present.
56197 if test x"$ac_isoC99_wchar_t" = xyes &&
56198 test x"$ac_XPG2_wchar_t" = xyes;
56199 then
56200 cat >>confdefs.h <<\_ACEOF
56201 #define _GLIBCXX_USE_WCHAR_T 1
56202 _ACEOF
56203
56204 enable_wchar_t=yes
56205 fi
56206 fi
56207 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
56208 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
56209 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
56210 echo "${ECHO_T}$enable_wchar_t" >&6
56211
56212 cat >>confdefs.h <<\_ACEOF
56213 #define HAVE_COPYSIGN 1
56214 _ACEOF
56215
56216 cat >>confdefs.h <<\_ACEOF
56217 #define HAVE_COPYSIGNF 1
56218 _ACEOF
56219
56220 cat >>confdefs.h <<\_ACEOF
56221 #define HAVE_FINITEF 1
56222 _ACEOF
56223
56224 cat >>confdefs.h <<\_ACEOF
56225 #define HAVE_FINITE 1
56226 _ACEOF
56227
56228 cat >>confdefs.h <<\_ACEOF
56229 #define HAVE_FREXPF 1
56230 _ACEOF
56231
56232 cat >>confdefs.h <<\_ACEOF
56233 #define HAVE_HYPOTF 1
56234 _ACEOF
56235
56236 cat >>confdefs.h <<\_ACEOF
56237 #define HAVE_ISINF 1
56238 _ACEOF
56239
56240 cat >>confdefs.h <<\_ACEOF
56241 #define HAVE_ISINFF 1
56242 _ACEOF
56243
56244 cat >>confdefs.h <<\_ACEOF
56245 #define HAVE_ISNAN 1
56246 _ACEOF
56247
56248 cat >>confdefs.h <<\_ACEOF
56249 #define HAVE_ISNANF 1
56250 _ACEOF
56251
56252 if test x"long_double_math_on_this_cpu" = x"yes"; then
56253 cat >>confdefs.h <<\_ACEOF
56254 #define HAVE_FINITEL 1
56255 _ACEOF
56256
56257 cat >>confdefs.h <<\_ACEOF
56258 #define HAVE_ISINFL 1
56259 _ACEOF
56260
56261 cat >>confdefs.h <<\_ACEOF
56262 #define HAVE_ISNANL 1
56263 _ACEOF
56264
56265 fi
56266 ;;
56267 *-qnx6.1* | *-qnx6.2*)
56268 #os_include_dir="os/qnx/qnx6.1"
56269 SECTION_FLAGS='-ffunction-sections -fdata-sections'
56270
56271
56272 # If we're not using GNU ld, then there's no point in even trying these
56273 # tests. Check for that first. We should have already tested for gld
56274 # by now (in libtool), but require it now just to be safe...
56275 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
56276 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
56277
56278
56279
56280 # The name set by libtool depends on the version of libtool. Shame on us
56281 # for depending on an impl detail, but c'est la vie. Older versions used
56282 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
56283 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
56284 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
56285 # set (hence we're using an older libtool), then set it.
56286 if test x${with_gnu_ld+set} != xset; then
56287 if test x${ac_cv_prog_gnu_ld+set} != xset; then
56288 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
56289 with_gnu_ld=no
56290 else
56291 with_gnu_ld=$ac_cv_prog_gnu_ld
56292 fi
56293 fi
56294
56295 # Start by getting the version number. I think the libtool test already
56296 # does some of this, but throws away the result.
56297
56298 ldver=`$LD --version 2>/dev/null | head -1 | \
56299 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
56300
56301 glibcxx_gnu_ld_version=`echo $ldver | \
56302 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
56303
56304 # Set --gc-sections.
56305 if test "$with_gnu_ld" = "notbroken"; then
56306 # GNU ld it is! Joy and bunny rabbits!
56307
56308 # All these tests are for C++; save the language and the compiler flags.
56309 # Need to do this so that g++ won't try to link in libstdc++
56310 ac_test_CFLAGS="${CFLAGS+set}"
56311 ac_save_CFLAGS="$CFLAGS"
56312 CFLAGS='-x c++ -Wl,--gc-sections'
56313
56314 # Check for -Wl,--gc-sections
56315 # XXX This test is broken at the moment, as symbols required for linking
56316 # are now in libsupc++ (not built yet). In addition, this test has
56317 # cored on solaris in the past. In addition, --gc-sections doesn't
56318 # really work at the moment (keeps on discarding used sections, first
56319 # .eh_frame and now some of the glibc sections for iconv).
56320 # Bzzzzt. Thanks for playing, maybe next time.
56321 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
56322 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
56323 if test "$cross_compiling" = yes; then
56324 ac_sectionLDflags=yes
56325 else
56326 cat >conftest.$ac_ext <<_ACEOF
56327 #line $LINENO "configure"
56328 /* confdefs.h. */
56329 _ACEOF
56330 cat confdefs.h >>conftest.$ac_ext
56331 cat >>conftest.$ac_ext <<_ACEOF
56332 /* end confdefs.h. */
56333
56334 int main(void)
56335 {
56336 try { throw 1; }
56337 catch (...) { };
56338 return 0;
56339 }
56340
56341 _ACEOF
56342 rm -f conftest$ac_exeext
56343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56344 (eval $ac_link) 2>&5
56345 ac_status=$?
56346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56349 (eval $ac_try) 2>&5
56350 ac_status=$?
56351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56352 (exit $ac_status); }; }; then
56353 ac_sectionLDflags=yes
56354 else
56355 echo "$as_me: program exited with status $ac_status" >&5
56356 echo "$as_me: failed program was:" >&5
56357 sed 's/^/| /' conftest.$ac_ext >&5
56358
56359 ( exit $ac_status )
56360 ac_sectionLDflags=no
56361 fi
56362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56363 fi
56364 if test "$ac_test_CFLAGS" = set; then
56365 CFLAGS="$ac_save_CFLAGS"
56366 else
56367 # this is the suspicious part
56368 CFLAGS=''
56369 fi
56370 if test "$ac_sectionLDflags" = "yes"; then
56371 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
56372 fi
56373 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
56374 echo "${ECHO_T}$ac_sectionLDflags" >&6
56375 fi
56376
56377 # Set linker optimization flags.
56378 if test x"$with_gnu_ld" = x"yes"; then
56379 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
56380 fi
56381
56382
56383
56384
56385
56386
56387 echo "$as_me:$LINENO: checking for main in -lm" >&5
56388 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
56389 if test "${ac_cv_lib_m_main+set}" = set; then
56390 echo $ECHO_N "(cached) $ECHO_C" >&6
56391 else
56392 ac_check_lib_save_LIBS=$LIBS
56393 LIBS="-lm $LIBS"
56394 if test x$gcc_no_link = xyes; then
56395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56397 { (exit 1); exit 1; }; }
56398 fi
56399 cat >conftest.$ac_ext <<_ACEOF
56400 #line $LINENO "configure"
56401 /* confdefs.h. */
56402 _ACEOF
56403 cat confdefs.h >>conftest.$ac_ext
56404 cat >>conftest.$ac_ext <<_ACEOF
56405 /* end confdefs.h. */
56406
56407
56408 int
56409 main ()
56410 {
56411 main ();
56412 ;
56413 return 0;
56414 }
56415 _ACEOF
56416 rm -f conftest.$ac_objext conftest$ac_exeext
56417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56418 (eval $ac_link) 2>&5
56419 ac_status=$?
56420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56421 (exit $ac_status); } &&
56422 { ac_try='test -s conftest$ac_exeext'
56423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56424 (eval $ac_try) 2>&5
56425 ac_status=$?
56426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56427 (exit $ac_status); }; }; then
56428 ac_cv_lib_m_main=yes
56429 else
56430 echo "$as_me: failed program was:" >&5
56431 sed 's/^/| /' conftest.$ac_ext >&5
56432
56433 ac_cv_lib_m_main=no
56434 fi
56435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56436 LIBS=$ac_check_lib_save_LIBS
56437 fi
56438 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
56439 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
56440 if test $ac_cv_lib_m_main = yes; then
56441 cat >>confdefs.h <<_ACEOF
56442 #define HAVE_LIBM 1
56443 _ACEOF
56444
56445 LIBS="-lm $LIBS"
56446
56447 fi
56448
56449
56450
56451 for ac_func in nan copysignf
56452 do
56453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56454 echo "$as_me:$LINENO: checking for $ac_func" >&5
56455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56456 if eval "test \"\${$as_ac_var+set}\" = set"; then
56457 echo $ECHO_N "(cached) $ECHO_C" >&6
56458 else
56459 if test x$gcc_no_link = xyes; then
56460 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56462 { (exit 1); exit 1; }; }
56463 fi
56464 cat >conftest.$ac_ext <<_ACEOF
56465 #line $LINENO "configure"
56466 /* confdefs.h. */
56467 _ACEOF
56468 cat confdefs.h >>conftest.$ac_ext
56469 cat >>conftest.$ac_ext <<_ACEOF
56470 /* end confdefs.h. */
56471 /* System header to define __stub macros and hopefully few prototypes,
56472 which can conflict with char $ac_func (); below.
56473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56474 <limits.h> exists even on freestanding compilers. */
56475 #ifdef __STDC__
56476 # include <limits.h>
56477 #else
56478 # include <assert.h>
56479 #endif
56480 /* Override any gcc2 internal prototype to avoid an error. */
56481 #ifdef __cplusplus
56482 extern "C"
56483 {
56484 #endif
56485 /* We use char because int might match the return type of a gcc2
56486 builtin and then its argument prototype would still apply. */
56487 char $ac_func ();
56488 /* The GNU C library defines this for functions which it implements
56489 to always fail with ENOSYS. Some functions are actually named
56490 something starting with __ and the normal name is an alias. */
56491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56492 choke me
56493 #else
56494 char (*f) () = $ac_func;
56495 #endif
56496 #ifdef __cplusplus
56497 }
56498 #endif
56499
56500 int
56501 main ()
56502 {
56503 return f != $ac_func;
56504 ;
56505 return 0;
56506 }
56507 _ACEOF
56508 rm -f conftest.$ac_objext conftest$ac_exeext
56509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56510 (eval $ac_link) 2>&5
56511 ac_status=$?
56512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56513 (exit $ac_status); } &&
56514 { ac_try='test -s conftest$ac_exeext'
56515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56516 (eval $ac_try) 2>&5
56517 ac_status=$?
56518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56519 (exit $ac_status); }; }; then
56520 eval "$as_ac_var=yes"
56521 else
56522 echo "$as_me: failed program was:" >&5
56523 sed 's/^/| /' conftest.$ac_ext >&5
56524
56525 eval "$as_ac_var=no"
56526 fi
56527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56528 fi
56529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56531 if test `eval echo '${'$as_ac_var'}'` = yes; then
56532 cat >>confdefs.h <<_ACEOF
56533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56534 _ACEOF
56535
56536 else
56537 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
56538 fi
56539 done
56540
56541
56542
56543 for ac_func in __signbit
56544 do
56545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56546 echo "$as_me:$LINENO: checking for $ac_func" >&5
56547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56548 if eval "test \"\${$as_ac_var+set}\" = set"; then
56549 echo $ECHO_N "(cached) $ECHO_C" >&6
56550 else
56551 if test x$gcc_no_link = xyes; then
56552 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56554 { (exit 1); exit 1; }; }
56555 fi
56556 cat >conftest.$ac_ext <<_ACEOF
56557 #line $LINENO "configure"
56558 /* confdefs.h. */
56559 _ACEOF
56560 cat confdefs.h >>conftest.$ac_ext
56561 cat >>conftest.$ac_ext <<_ACEOF
56562 /* end confdefs.h. */
56563 /* System header to define __stub macros and hopefully few prototypes,
56564 which can conflict with char $ac_func (); below.
56565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56566 <limits.h> exists even on freestanding compilers. */
56567 #ifdef __STDC__
56568 # include <limits.h>
56569 #else
56570 # include <assert.h>
56571 #endif
56572 /* Override any gcc2 internal prototype to avoid an error. */
56573 #ifdef __cplusplus
56574 extern "C"
56575 {
56576 #endif
56577 /* We use char because int might match the return type of a gcc2
56578 builtin and then its argument prototype would still apply. */
56579 char $ac_func ();
56580 /* The GNU C library defines this for functions which it implements
56581 to always fail with ENOSYS. Some functions are actually named
56582 something starting with __ and the normal name is an alias. */
56583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56584 choke me
56585 #else
56586 char (*f) () = $ac_func;
56587 #endif
56588 #ifdef __cplusplus
56589 }
56590 #endif
56591
56592 int
56593 main ()
56594 {
56595 return f != $ac_func;
56596 ;
56597 return 0;
56598 }
56599 _ACEOF
56600 rm -f conftest.$ac_objext conftest$ac_exeext
56601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56602 (eval $ac_link) 2>&5
56603 ac_status=$?
56604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56605 (exit $ac_status); } &&
56606 { ac_try='test -s conftest$ac_exeext'
56607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56608 (eval $ac_try) 2>&5
56609 ac_status=$?
56610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56611 (exit $ac_status); }; }; then
56612 eval "$as_ac_var=yes"
56613 else
56614 echo "$as_me: failed program was:" >&5
56615 sed 's/^/| /' conftest.$ac_ext >&5
56616
56617 eval "$as_ac_var=no"
56618 fi
56619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56620 fi
56621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56623 if test `eval echo '${'$as_ac_var'}'` = yes; then
56624 cat >>confdefs.h <<_ACEOF
56625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56626 _ACEOF
56627
56628 else
56629 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
56630 fi
56631 done
56632
56633
56634 for ac_func in __signbitf
56635 do
56636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56637 echo "$as_me:$LINENO: checking for $ac_func" >&5
56638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56639 if eval "test \"\${$as_ac_var+set}\" = set"; then
56640 echo $ECHO_N "(cached) $ECHO_C" >&6
56641 else
56642 if test x$gcc_no_link = xyes; then
56643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56645 { (exit 1); exit 1; }; }
56646 fi
56647 cat >conftest.$ac_ext <<_ACEOF
56648 #line $LINENO "configure"
56649 /* confdefs.h. */
56650 _ACEOF
56651 cat confdefs.h >>conftest.$ac_ext
56652 cat >>conftest.$ac_ext <<_ACEOF
56653 /* end confdefs.h. */
56654 /* System header to define __stub macros and hopefully few prototypes,
56655 which can conflict with char $ac_func (); below.
56656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56657 <limits.h> exists even on freestanding compilers. */
56658 #ifdef __STDC__
56659 # include <limits.h>
56660 #else
56661 # include <assert.h>
56662 #endif
56663 /* Override any gcc2 internal prototype to avoid an error. */
56664 #ifdef __cplusplus
56665 extern "C"
56666 {
56667 #endif
56668 /* We use char because int might match the return type of a gcc2
56669 builtin and then its argument prototype would still apply. */
56670 char $ac_func ();
56671 /* The GNU C library defines this for functions which it implements
56672 to always fail with ENOSYS. Some functions are actually named
56673 something starting with __ and the normal name is an alias. */
56674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56675 choke me
56676 #else
56677 char (*f) () = $ac_func;
56678 #endif
56679 #ifdef __cplusplus
56680 }
56681 #endif
56682
56683 int
56684 main ()
56685 {
56686 return f != $ac_func;
56687 ;
56688 return 0;
56689 }
56690 _ACEOF
56691 rm -f conftest.$ac_objext conftest$ac_exeext
56692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56693 (eval $ac_link) 2>&5
56694 ac_status=$?
56695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56696 (exit $ac_status); } &&
56697 { ac_try='test -s conftest$ac_exeext'
56698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56699 (eval $ac_try) 2>&5
56700 ac_status=$?
56701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56702 (exit $ac_status); }; }; then
56703 eval "$as_ac_var=yes"
56704 else
56705 echo "$as_me: failed program was:" >&5
56706 sed 's/^/| /' conftest.$ac_ext >&5
56707
56708 eval "$as_ac_var=no"
56709 fi
56710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56711 fi
56712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56714 if test `eval echo '${'$as_ac_var'}'` = yes; then
56715 cat >>confdefs.h <<_ACEOF
56716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56717 _ACEOF
56718
56719 else
56720 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
56721 fi
56722 done
56723
56724
56725 if test x$ac_cv_func_copysignl = x"yes"; then
56726
56727 for ac_func in __signbitl
56728 do
56729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56730 echo "$as_me:$LINENO: checking for $ac_func" >&5
56731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56732 if eval "test \"\${$as_ac_var+set}\" = set"; then
56733 echo $ECHO_N "(cached) $ECHO_C" >&6
56734 else
56735 if test x$gcc_no_link = xyes; then
56736 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56738 { (exit 1); exit 1; }; }
56739 fi
56740 cat >conftest.$ac_ext <<_ACEOF
56741 #line $LINENO "configure"
56742 /* confdefs.h. */
56743 _ACEOF
56744 cat confdefs.h >>conftest.$ac_ext
56745 cat >>conftest.$ac_ext <<_ACEOF
56746 /* end confdefs.h. */
56747 /* System header to define __stub macros and hopefully few prototypes,
56748 which can conflict with char $ac_func (); below.
56749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56750 <limits.h> exists even on freestanding compilers. */
56751 #ifdef __STDC__
56752 # include <limits.h>
56753 #else
56754 # include <assert.h>
56755 #endif
56756 /* Override any gcc2 internal prototype to avoid an error. */
56757 #ifdef __cplusplus
56758 extern "C"
56759 {
56760 #endif
56761 /* We use char because int might match the return type of a gcc2
56762 builtin and then its argument prototype would still apply. */
56763 char $ac_func ();
56764 /* The GNU C library defines this for functions which it implements
56765 to always fail with ENOSYS. Some functions are actually named
56766 something starting with __ and the normal name is an alias. */
56767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56768 choke me
56769 #else
56770 char (*f) () = $ac_func;
56771 #endif
56772 #ifdef __cplusplus
56773 }
56774 #endif
56775
56776 int
56777 main ()
56778 {
56779 return f != $ac_func;
56780 ;
56781 return 0;
56782 }
56783 _ACEOF
56784 rm -f conftest.$ac_objext conftest$ac_exeext
56785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56786 (eval $ac_link) 2>&5
56787 ac_status=$?
56788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56789 (exit $ac_status); } &&
56790 { ac_try='test -s conftest$ac_exeext'
56791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56792 (eval $ac_try) 2>&5
56793 ac_status=$?
56794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56795 (exit $ac_status); }; }; then
56796 eval "$as_ac_var=yes"
56797 else
56798 echo "$as_me: failed program was:" >&5
56799 sed 's/^/| /' conftest.$ac_ext >&5
56800
56801 eval "$as_ac_var=no"
56802 fi
56803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56804 fi
56805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56807 if test `eval echo '${'$as_ac_var'}'` = yes; then
56808 cat >>confdefs.h <<_ACEOF
56809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56810 _ACEOF
56811
56812 else
56813 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56814 fi
56815 done
56816
56817 fi
56818
56819 # XXX Review this. Nothing uses it.
56820 if test -n "$LIBMATHOBJS"; then
56821 need_libmath=yes
56822 fi
56823
56824
56825
56826 # Test wchar.h for mbstate_t, which is needed for char_traits and
56827 # others even if wchar_t support is not on.
56828 echo "$as_me:$LINENO: checking for mbstate_t" >&5
56829 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56830 cat >conftest.$ac_ext <<_ACEOF
56831 #line $LINENO "configure"
56832 /* confdefs.h. */
56833 _ACEOF
56834 cat confdefs.h >>conftest.$ac_ext
56835 cat >>conftest.$ac_ext <<_ACEOF
56836 /* end confdefs.h. */
56837 #include <wchar.h>
56838 int
56839 main ()
56840 {
56841 mbstate_t teststate;
56842 ;
56843 return 0;
56844 }
56845 _ACEOF
56846 rm -f conftest.$ac_objext
56847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56848 (eval $ac_compile) 2>&5
56849 ac_status=$?
56850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56851 (exit $ac_status); } &&
56852 { ac_try='test -s conftest.$ac_objext'
56853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56854 (eval $ac_try) 2>&5
56855 ac_status=$?
56856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56857 (exit $ac_status); }; }; then
56858 have_mbstate_t=yes
56859 else
56860 echo "$as_me: failed program was:" >&5
56861 sed 's/^/| /' conftest.$ac_ext >&5
56862
56863 have_mbstate_t=no
56864 fi
56865 rm -f conftest.$ac_objext conftest.$ac_ext
56866 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56867 echo "${ECHO_T}$have_mbstate_t" >&6
56868 if test x"$have_mbstate_t" = xyes; then
56869 cat >>confdefs.h <<\_ACEOF
56870 #define HAVE_MBSTATE_T 1
56871 _ACEOF
56872
56873 fi
56874
56875 # Sanity check for existence of ISO C99 headers for extended encoding.
56876
56877 for ac_header in wchar.h
56878 do
56879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56881 echo "$as_me:$LINENO: checking for $ac_header" >&5
56882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56884 echo $ECHO_N "(cached) $ECHO_C" >&6
56885 fi
56886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56888 else
56889 # Is the header compilable?
56890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56892 cat >conftest.$ac_ext <<_ACEOF
56893 #line $LINENO "configure"
56894 /* confdefs.h. */
56895 _ACEOF
56896 cat confdefs.h >>conftest.$ac_ext
56897 cat >>conftest.$ac_ext <<_ACEOF
56898 /* end confdefs.h. */
56899 $ac_includes_default
56900 #include <$ac_header>
56901 _ACEOF
56902 rm -f conftest.$ac_objext
56903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56904 (eval $ac_compile) 2>&5
56905 ac_status=$?
56906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56907 (exit $ac_status); } &&
56908 { ac_try='test -s conftest.$ac_objext'
56909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56910 (eval $ac_try) 2>&5
56911 ac_status=$?
56912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56913 (exit $ac_status); }; }; then
56914 ac_header_compiler=yes
56915 else
56916 echo "$as_me: failed program was:" >&5
56917 sed 's/^/| /' conftest.$ac_ext >&5
56918
56919 ac_header_compiler=no
56920 fi
56921 rm -f conftest.$ac_objext conftest.$ac_ext
56922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56923 echo "${ECHO_T}$ac_header_compiler" >&6
56924
56925 # Is the header present?
56926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56928 cat >conftest.$ac_ext <<_ACEOF
56929 #line $LINENO "configure"
56930 /* confdefs.h. */
56931 _ACEOF
56932 cat confdefs.h >>conftest.$ac_ext
56933 cat >>conftest.$ac_ext <<_ACEOF
56934 /* end confdefs.h. */
56935 #include <$ac_header>
56936 _ACEOF
56937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56939 ac_status=$?
56940 grep -v '^ *+' conftest.er1 >conftest.err
56941 rm -f conftest.er1
56942 cat conftest.err >&5
56943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56944 (exit $ac_status); } >/dev/null; then
56945 if test -s conftest.err; then
56946 ac_cpp_err=$ac_c_preproc_warn_flag
56947 else
56948 ac_cpp_err=
56949 fi
56950 else
56951 ac_cpp_err=yes
56952 fi
56953 if test -z "$ac_cpp_err"; then
56954 ac_header_preproc=yes
56955 else
56956 echo "$as_me: failed program was:" >&5
56957 sed 's/^/| /' conftest.$ac_ext >&5
56958
56959 ac_header_preproc=no
56960 fi
56961 rm -f conftest.err conftest.$ac_ext
56962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56963 echo "${ECHO_T}$ac_header_preproc" >&6
56964
56965 # So? What about this header?
56966 case $ac_header_compiler:$ac_header_preproc in
56967 yes:no )
56968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56972 (
56973 cat <<\_ASBOX
56974 ## ------------------------------------ ##
56975 ## Report this to bug-autoconf@gnu.org. ##
56976 ## ------------------------------------ ##
56977 _ASBOX
56978 ) |
56979 sed "s/^/$as_me: WARNING: /" >&2
56980 ;;
56981 no:yes )
56982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56988 (
56989 cat <<\_ASBOX
56990 ## ------------------------------------ ##
56991 ## Report this to bug-autoconf@gnu.org. ##
56992 ## ------------------------------------ ##
56993 _ASBOX
56994 ) |
56995 sed "s/^/$as_me: WARNING: /" >&2
56996 ;;
56997 esac
56998 echo "$as_me:$LINENO: checking for $ac_header" >&5
56999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57001 echo $ECHO_N "(cached) $ECHO_C" >&6
57002 else
57003 eval "$as_ac_Header=$ac_header_preproc"
57004 fi
57005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57007
57008 fi
57009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57010 cat >>confdefs.h <<_ACEOF
57011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57012 _ACEOF
57013 ac_has_wchar_h=yes
57014 else
57015 ac_has_wchar_h=no
57016 fi
57017
57018 done
57019
57020
57021 for ac_header in wctype.h
57022 do
57023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57025 echo "$as_me:$LINENO: checking for $ac_header" >&5
57026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57028 echo $ECHO_N "(cached) $ECHO_C" >&6
57029 fi
57030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57032 else
57033 # Is the header compilable?
57034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
57035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
57036 cat >conftest.$ac_ext <<_ACEOF
57037 #line $LINENO "configure"
57038 /* confdefs.h. */
57039 _ACEOF
57040 cat confdefs.h >>conftest.$ac_ext
57041 cat >>conftest.$ac_ext <<_ACEOF
57042 /* end confdefs.h. */
57043 $ac_includes_default
57044 #include <$ac_header>
57045 _ACEOF
57046 rm -f conftest.$ac_objext
57047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57048 (eval $ac_compile) 2>&5
57049 ac_status=$?
57050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57051 (exit $ac_status); } &&
57052 { ac_try='test -s conftest.$ac_objext'
57053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57054 (eval $ac_try) 2>&5
57055 ac_status=$?
57056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57057 (exit $ac_status); }; }; then
57058 ac_header_compiler=yes
57059 else
57060 echo "$as_me: failed program was:" >&5
57061 sed 's/^/| /' conftest.$ac_ext >&5
57062
57063 ac_header_compiler=no
57064 fi
57065 rm -f conftest.$ac_objext conftest.$ac_ext
57066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57067 echo "${ECHO_T}$ac_header_compiler" >&6
57068
57069 # Is the header present?
57070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
57071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
57072 cat >conftest.$ac_ext <<_ACEOF
57073 #line $LINENO "configure"
57074 /* confdefs.h. */
57075 _ACEOF
57076 cat confdefs.h >>conftest.$ac_ext
57077 cat >>conftest.$ac_ext <<_ACEOF
57078 /* end confdefs.h. */
57079 #include <$ac_header>
57080 _ACEOF
57081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57083 ac_status=$?
57084 grep -v '^ *+' conftest.er1 >conftest.err
57085 rm -f conftest.er1
57086 cat conftest.err >&5
57087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57088 (exit $ac_status); } >/dev/null; then
57089 if test -s conftest.err; then
57090 ac_cpp_err=$ac_c_preproc_warn_flag
57091 else
57092 ac_cpp_err=
57093 fi
57094 else
57095 ac_cpp_err=yes
57096 fi
57097 if test -z "$ac_cpp_err"; then
57098 ac_header_preproc=yes
57099 else
57100 echo "$as_me: failed program was:" >&5
57101 sed 's/^/| /' conftest.$ac_ext >&5
57102
57103 ac_header_preproc=no
57104 fi
57105 rm -f conftest.err conftest.$ac_ext
57106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57107 echo "${ECHO_T}$ac_header_preproc" >&6
57108
57109 # So? What about this header?
57110 case $ac_header_compiler:$ac_header_preproc in
57111 yes:no )
57112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57116 (
57117 cat <<\_ASBOX
57118 ## ------------------------------------ ##
57119 ## Report this to bug-autoconf@gnu.org. ##
57120 ## ------------------------------------ ##
57121 _ASBOX
57122 ) |
57123 sed "s/^/$as_me: WARNING: /" >&2
57124 ;;
57125 no:yes )
57126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57132 (
57133 cat <<\_ASBOX
57134 ## ------------------------------------ ##
57135 ## Report this to bug-autoconf@gnu.org. ##
57136 ## ------------------------------------ ##
57137 _ASBOX
57138 ) |
57139 sed "s/^/$as_me: WARNING: /" >&2
57140 ;;
57141 esac
57142 echo "$as_me:$LINENO: checking for $ac_header" >&5
57143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57145 echo $ECHO_N "(cached) $ECHO_C" >&6
57146 else
57147 eval "$as_ac_Header=$ac_header_preproc"
57148 fi
57149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57151
57152 fi
57153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57154 cat >>confdefs.h <<_ACEOF
57155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57156 _ACEOF
57157 ac_has_wctype_h=yes
57158 else
57159 ac_has_wctype_h=no
57160 fi
57161
57162 done
57163
57164
57165 # Only continue checking if the ISO C99 headers exist and support is on.
57166 if test x"$ac_has_wchar_h" = xyes &&
57167 test x"$ac_has_wctype_h" = xyes &&
57168 test x"$enable_c_mbchar" != xno; then
57169
57170 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
57171 # numeric_limits can instantiate type_traits<wchar_t>
57172 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
57173 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
57174 cat >conftest.$ac_ext <<_ACEOF
57175 #line $LINENO "configure"
57176 /* confdefs.h. */
57177 _ACEOF
57178 cat confdefs.h >>conftest.$ac_ext
57179 cat >>conftest.$ac_ext <<_ACEOF
57180 /* end confdefs.h. */
57181 #include <wchar.h>
57182 int
57183 main ()
57184 {
57185 int i = WCHAR_MIN; int j = WCHAR_MAX;
57186 ;
57187 return 0;
57188 }
57189 _ACEOF
57190 rm -f conftest.$ac_objext
57191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57192 (eval $ac_compile) 2>&5
57193 ac_status=$?
57194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57195 (exit $ac_status); } &&
57196 { ac_try='test -s conftest.$ac_objext'
57197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57198 (eval $ac_try) 2>&5
57199 ac_status=$?
57200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57201 (exit $ac_status); }; }; then
57202 has_wchar_minmax=yes
57203 else
57204 echo "$as_me: failed program was:" >&5
57205 sed 's/^/| /' conftest.$ac_ext >&5
57206
57207 has_wchar_minmax=no
57208 fi
57209 rm -f conftest.$ac_objext conftest.$ac_ext
57210 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
57211 echo "${ECHO_T}$has_wchar_minmax" >&6
57212
57213 # Test wchar.h for WEOF, which is what we use to determine whether
57214 # to specialize for char_traits<wchar_t> or not.
57215 echo "$as_me:$LINENO: checking for WEOF" >&5
57216 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
57217 cat >conftest.$ac_ext <<_ACEOF
57218 #line $LINENO "configure"
57219 /* confdefs.h. */
57220 _ACEOF
57221 cat confdefs.h >>conftest.$ac_ext
57222 cat >>conftest.$ac_ext <<_ACEOF
57223 /* end confdefs.h. */
57224
57225 #include <wchar.h>
57226 #include <stddef.h>
57227 int
57228 main ()
57229 {
57230 wint_t i = WEOF;
57231 ;
57232 return 0;
57233 }
57234 _ACEOF
57235 rm -f conftest.$ac_objext
57236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57237 (eval $ac_compile) 2>&5
57238 ac_status=$?
57239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57240 (exit $ac_status); } &&
57241 { ac_try='test -s conftest.$ac_objext'
57242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57243 (eval $ac_try) 2>&5
57244 ac_status=$?
57245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57246 (exit $ac_status); }; }; then
57247 has_weof=yes
57248 else
57249 echo "$as_me: failed program was:" >&5
57250 sed 's/^/| /' conftest.$ac_ext >&5
57251
57252 has_weof=no
57253 fi
57254 rm -f conftest.$ac_objext conftest.$ac_ext
57255 echo "$as_me:$LINENO: result: $has_weof" >&5
57256 echo "${ECHO_T}$has_weof" >&6
57257
57258 # Tests for wide character functions used in char_traits<wchar_t>.
57259 ac_wfuncs=yes
57260
57261
57262
57263
57264
57265
57266 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
57267 do
57268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57269 echo "$as_me:$LINENO: checking for $ac_func" >&5
57270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57271 if eval "test \"\${$as_ac_var+set}\" = set"; then
57272 echo $ECHO_N "(cached) $ECHO_C" >&6
57273 else
57274 if test x$gcc_no_link = xyes; then
57275 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57276 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57277 { (exit 1); exit 1; }; }
57278 fi
57279 cat >conftest.$ac_ext <<_ACEOF
57280 #line $LINENO "configure"
57281 /* confdefs.h. */
57282 _ACEOF
57283 cat confdefs.h >>conftest.$ac_ext
57284 cat >>conftest.$ac_ext <<_ACEOF
57285 /* end confdefs.h. */
57286 /* System header to define __stub macros and hopefully few prototypes,
57287 which can conflict with char $ac_func (); below.
57288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57289 <limits.h> exists even on freestanding compilers. */
57290 #ifdef __STDC__
57291 # include <limits.h>
57292 #else
57293 # include <assert.h>
57294 #endif
57295 /* Override any gcc2 internal prototype to avoid an error. */
57296 #ifdef __cplusplus
57297 extern "C"
57298 {
57299 #endif
57300 /* We use char because int might match the return type of a gcc2
57301 builtin and then its argument prototype would still apply. */
57302 char $ac_func ();
57303 /* The GNU C library defines this for functions which it implements
57304 to always fail with ENOSYS. Some functions are actually named
57305 something starting with __ and the normal name is an alias. */
57306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57307 choke me
57308 #else
57309 char (*f) () = $ac_func;
57310 #endif
57311 #ifdef __cplusplus
57312 }
57313 #endif
57314
57315 int
57316 main ()
57317 {
57318 return f != $ac_func;
57319 ;
57320 return 0;
57321 }
57322 _ACEOF
57323 rm -f conftest.$ac_objext conftest$ac_exeext
57324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57325 (eval $ac_link) 2>&5
57326 ac_status=$?
57327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57328 (exit $ac_status); } &&
57329 { ac_try='test -s conftest$ac_exeext'
57330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57331 (eval $ac_try) 2>&5
57332 ac_status=$?
57333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57334 (exit $ac_status); }; }; then
57335 eval "$as_ac_var=yes"
57336 else
57337 echo "$as_me: failed program was:" >&5
57338 sed 's/^/| /' conftest.$ac_ext >&5
57339
57340 eval "$as_ac_var=no"
57341 fi
57342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57343 fi
57344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57346 if test `eval echo '${'$as_ac_var'}'` = yes; then
57347 cat >>confdefs.h <<_ACEOF
57348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57349 _ACEOF
57350
57351 else
57352 ac_wfuncs=no
57353 fi
57354 done
57355
57356
57357 # Checks for names injected into std:: by the c_std headers.
57358
57359
57360
57361
57362
57363
57364
57365
57366
57367
57368
57369
57370
57371
57372
57373
57374
57375
57376
57377
57378
57379
57380
57381
57382
57383
57384
57385
57386
57387
57388
57389
57390
57391
57392
57393
57394
57395
57396
57397
57398
57399
57400
57401
57402
57403
57404
57405
57406
57407
57408 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
57409 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
57410 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
57411 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
57412 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
57413 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
57414 do
57415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57416 echo "$as_me:$LINENO: checking for $ac_func" >&5
57417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57418 if eval "test \"\${$as_ac_var+set}\" = set"; then
57419 echo $ECHO_N "(cached) $ECHO_C" >&6
57420 else
57421 if test x$gcc_no_link = xyes; then
57422 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57423 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57424 { (exit 1); exit 1; }; }
57425 fi
57426 cat >conftest.$ac_ext <<_ACEOF
57427 #line $LINENO "configure"
57428 /* confdefs.h. */
57429 _ACEOF
57430 cat confdefs.h >>conftest.$ac_ext
57431 cat >>conftest.$ac_ext <<_ACEOF
57432 /* end confdefs.h. */
57433 /* System header to define __stub macros and hopefully few prototypes,
57434 which can conflict with char $ac_func (); below.
57435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57436 <limits.h> exists even on freestanding compilers. */
57437 #ifdef __STDC__
57438 # include <limits.h>
57439 #else
57440 # include <assert.h>
57441 #endif
57442 /* Override any gcc2 internal prototype to avoid an error. */
57443 #ifdef __cplusplus
57444 extern "C"
57445 {
57446 #endif
57447 /* We use char because int might match the return type of a gcc2
57448 builtin and then its argument prototype would still apply. */
57449 char $ac_func ();
57450 /* The GNU C library defines this for functions which it implements
57451 to always fail with ENOSYS. Some functions are actually named
57452 something starting with __ and the normal name is an alias. */
57453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57454 choke me
57455 #else
57456 char (*f) () = $ac_func;
57457 #endif
57458 #ifdef __cplusplus
57459 }
57460 #endif
57461
57462 int
57463 main ()
57464 {
57465 return f != $ac_func;
57466 ;
57467 return 0;
57468 }
57469 _ACEOF
57470 rm -f conftest.$ac_objext conftest$ac_exeext
57471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57472 (eval $ac_link) 2>&5
57473 ac_status=$?
57474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57475 (exit $ac_status); } &&
57476 { ac_try='test -s conftest$ac_exeext'
57477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57478 (eval $ac_try) 2>&5
57479 ac_status=$?
57480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57481 (exit $ac_status); }; }; then
57482 eval "$as_ac_var=yes"
57483 else
57484 echo "$as_me: failed program was:" >&5
57485 sed 's/^/| /' conftest.$ac_ext >&5
57486
57487 eval "$as_ac_var=no"
57488 fi
57489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57490 fi
57491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57493 if test `eval echo '${'$as_ac_var'}'` = yes; then
57494 cat >>confdefs.h <<_ACEOF
57495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57496 _ACEOF
57497
57498 else
57499 ac_wfuncs=no
57500 fi
57501 done
57502
57503
57504 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
57505 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
57506 if test x"$has_weof" = xyes &&
57507 test x"$has_wchar_minmax" = xyes &&
57508 test x"$ac_wfuncs" = xyes;
57509 then
57510 ac_isoC99_wchar_t=yes
57511 else
57512 ac_isoC99_wchar_t=no
57513 fi
57514 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
57515 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
57516
57517 # Use iconv for wchar_t to char conversions. As such, check for
57518 # X/Open Portability Guide, version 2 features (XPG2).
57519 if test "${ac_cv_header_iconv_h+set}" = set; then
57520 echo "$as_me:$LINENO: checking for iconv.h" >&5
57521 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57522 if test "${ac_cv_header_iconv_h+set}" = set; then
57523 echo $ECHO_N "(cached) $ECHO_C" >&6
57524 fi
57525 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57526 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57527 else
57528 # Is the header compilable?
57529 echo "$as_me:$LINENO: checking iconv.h usability" >&5
57530 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
57531 cat >conftest.$ac_ext <<_ACEOF
57532 #line $LINENO "configure"
57533 /* confdefs.h. */
57534 _ACEOF
57535 cat confdefs.h >>conftest.$ac_ext
57536 cat >>conftest.$ac_ext <<_ACEOF
57537 /* end confdefs.h. */
57538 $ac_includes_default
57539 #include <iconv.h>
57540 _ACEOF
57541 rm -f conftest.$ac_objext
57542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57543 (eval $ac_compile) 2>&5
57544 ac_status=$?
57545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57546 (exit $ac_status); } &&
57547 { ac_try='test -s conftest.$ac_objext'
57548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57549 (eval $ac_try) 2>&5
57550 ac_status=$?
57551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57552 (exit $ac_status); }; }; then
57553 ac_header_compiler=yes
57554 else
57555 echo "$as_me: failed program was:" >&5
57556 sed 's/^/| /' conftest.$ac_ext >&5
57557
57558 ac_header_compiler=no
57559 fi
57560 rm -f conftest.$ac_objext conftest.$ac_ext
57561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57562 echo "${ECHO_T}$ac_header_compiler" >&6
57563
57564 # Is the header present?
57565 echo "$as_me:$LINENO: checking iconv.h presence" >&5
57566 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
57567 cat >conftest.$ac_ext <<_ACEOF
57568 #line $LINENO "configure"
57569 /* confdefs.h. */
57570 _ACEOF
57571 cat confdefs.h >>conftest.$ac_ext
57572 cat >>conftest.$ac_ext <<_ACEOF
57573 /* end confdefs.h. */
57574 #include <iconv.h>
57575 _ACEOF
57576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57578 ac_status=$?
57579 grep -v '^ *+' conftest.er1 >conftest.err
57580 rm -f conftest.er1
57581 cat conftest.err >&5
57582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57583 (exit $ac_status); } >/dev/null; then
57584 if test -s conftest.err; then
57585 ac_cpp_err=$ac_c_preproc_warn_flag
57586 else
57587 ac_cpp_err=
57588 fi
57589 else
57590 ac_cpp_err=yes
57591 fi
57592 if test -z "$ac_cpp_err"; then
57593 ac_header_preproc=yes
57594 else
57595 echo "$as_me: failed program was:" >&5
57596 sed 's/^/| /' conftest.$ac_ext >&5
57597
57598 ac_header_preproc=no
57599 fi
57600 rm -f conftest.err conftest.$ac_ext
57601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57602 echo "${ECHO_T}$ac_header_preproc" >&6
57603
57604 # So? What about this header?
57605 case $ac_header_compiler:$ac_header_preproc in
57606 yes:no )
57607 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
57608 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57609 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57610 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57611 (
57612 cat <<\_ASBOX
57613 ## ------------------------------------ ##
57614 ## Report this to bug-autoconf@gnu.org. ##
57615 ## ------------------------------------ ##
57616 _ASBOX
57617 ) |
57618 sed "s/^/$as_me: WARNING: /" >&2
57619 ;;
57620 no:yes )
57621 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
57622 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
57623 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
57624 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
57625 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57626 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57627 (
57628 cat <<\_ASBOX
57629 ## ------------------------------------ ##
57630 ## Report this to bug-autoconf@gnu.org. ##
57631 ## ------------------------------------ ##
57632 _ASBOX
57633 ) |
57634 sed "s/^/$as_me: WARNING: /" >&2
57635 ;;
57636 esac
57637 echo "$as_me:$LINENO: checking for iconv.h" >&5
57638 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57639 if test "${ac_cv_header_iconv_h+set}" = set; then
57640 echo $ECHO_N "(cached) $ECHO_C" >&6
57641 else
57642 ac_cv_header_iconv_h=$ac_header_preproc
57643 fi
57644 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57645 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57646
57647 fi
57648 if test $ac_cv_header_iconv_h = yes; then
57649 ac_has_iconv_h=yes
57650 else
57651 ac_has_iconv_h=no
57652 fi
57653
57654
57655 if test "${ac_cv_header_langinfo_h+set}" = set; then
57656 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57657 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57658 if test "${ac_cv_header_langinfo_h+set}" = set; then
57659 echo $ECHO_N "(cached) $ECHO_C" >&6
57660 fi
57661 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57662 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57663 else
57664 # Is the header compilable?
57665 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57666 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57667 cat >conftest.$ac_ext <<_ACEOF
57668 #line $LINENO "configure"
57669 /* confdefs.h. */
57670 _ACEOF
57671 cat confdefs.h >>conftest.$ac_ext
57672 cat >>conftest.$ac_ext <<_ACEOF
57673 /* end confdefs.h. */
57674 $ac_includes_default
57675 #include <langinfo.h>
57676 _ACEOF
57677 rm -f conftest.$ac_objext
57678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57679 (eval $ac_compile) 2>&5
57680 ac_status=$?
57681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57682 (exit $ac_status); } &&
57683 { ac_try='test -s conftest.$ac_objext'
57684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57685 (eval $ac_try) 2>&5
57686 ac_status=$?
57687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57688 (exit $ac_status); }; }; then
57689 ac_header_compiler=yes
57690 else
57691 echo "$as_me: failed program was:" >&5
57692 sed 's/^/| /' conftest.$ac_ext >&5
57693
57694 ac_header_compiler=no
57695 fi
57696 rm -f conftest.$ac_objext conftest.$ac_ext
57697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57698 echo "${ECHO_T}$ac_header_compiler" >&6
57699
57700 # Is the header present?
57701 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57702 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57703 cat >conftest.$ac_ext <<_ACEOF
57704 #line $LINENO "configure"
57705 /* confdefs.h. */
57706 _ACEOF
57707 cat confdefs.h >>conftest.$ac_ext
57708 cat >>conftest.$ac_ext <<_ACEOF
57709 /* end confdefs.h. */
57710 #include <langinfo.h>
57711 _ACEOF
57712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57714 ac_status=$?
57715 grep -v '^ *+' conftest.er1 >conftest.err
57716 rm -f conftest.er1
57717 cat conftest.err >&5
57718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57719 (exit $ac_status); } >/dev/null; then
57720 if test -s conftest.err; then
57721 ac_cpp_err=$ac_c_preproc_warn_flag
57722 else
57723 ac_cpp_err=
57724 fi
57725 else
57726 ac_cpp_err=yes
57727 fi
57728 if test -z "$ac_cpp_err"; then
57729 ac_header_preproc=yes
57730 else
57731 echo "$as_me: failed program was:" >&5
57732 sed 's/^/| /' conftest.$ac_ext >&5
57733
57734 ac_header_preproc=no
57735 fi
57736 rm -f conftest.err conftest.$ac_ext
57737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57738 echo "${ECHO_T}$ac_header_preproc" >&6
57739
57740 # So? What about this header?
57741 case $ac_header_compiler:$ac_header_preproc in
57742 yes:no )
57743 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57744 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57745 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57746 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57747 (
57748 cat <<\_ASBOX
57749 ## ------------------------------------ ##
57750 ## Report this to bug-autoconf@gnu.org. ##
57751 ## ------------------------------------ ##
57752 _ASBOX
57753 ) |
57754 sed "s/^/$as_me: WARNING: /" >&2
57755 ;;
57756 no:yes )
57757 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57758 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57759 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
57760 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
57761 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57762 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57763 (
57764 cat <<\_ASBOX
57765 ## ------------------------------------ ##
57766 ## Report this to bug-autoconf@gnu.org. ##
57767 ## ------------------------------------ ##
57768 _ASBOX
57769 ) |
57770 sed "s/^/$as_me: WARNING: /" >&2
57771 ;;
57772 esac
57773 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57774 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57775 if test "${ac_cv_header_langinfo_h+set}" = set; then
57776 echo $ECHO_N "(cached) $ECHO_C" >&6
57777 else
57778 ac_cv_header_langinfo_h=$ac_header_preproc
57779 fi
57780 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57781 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57782
57783 fi
57784 if test $ac_cv_header_langinfo_h = yes; then
57785 ac_has_langinfo_h=yes
57786 else
57787 ac_has_langinfo_h=no
57788 fi
57789
57790
57791
57792 # Check for existence of libiconv.a providing XPG2 wchar_t support.
57793 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57794 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57795 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57796 echo $ECHO_N "(cached) $ECHO_C" >&6
57797 else
57798 ac_check_lib_save_LIBS=$LIBS
57799 LIBS="-liconv $LIBS"
57800 if test x$gcc_no_link = xyes; then
57801 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57802 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57803 { (exit 1); exit 1; }; }
57804 fi
57805 cat >conftest.$ac_ext <<_ACEOF
57806 #line $LINENO "configure"
57807 /* confdefs.h. */
57808 _ACEOF
57809 cat confdefs.h >>conftest.$ac_ext
57810 cat >>conftest.$ac_ext <<_ACEOF
57811 /* end confdefs.h. */
57812
57813 /* Override any gcc2 internal prototype to avoid an error. */
57814 #ifdef __cplusplus
57815 extern "C"
57816 #endif
57817 /* We use char because int might match the return type of a gcc2
57818 builtin and then its argument prototype would still apply. */
57819 char iconv ();
57820 int
57821 main ()
57822 {
57823 iconv ();
57824 ;
57825 return 0;
57826 }
57827 _ACEOF
57828 rm -f conftest.$ac_objext conftest$ac_exeext
57829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57830 (eval $ac_link) 2>&5
57831 ac_status=$?
57832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57833 (exit $ac_status); } &&
57834 { ac_try='test -s conftest$ac_exeext'
57835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57836 (eval $ac_try) 2>&5
57837 ac_status=$?
57838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57839 (exit $ac_status); }; }; then
57840 ac_cv_lib_iconv_iconv=yes
57841 else
57842 echo "$as_me: failed program was:" >&5
57843 sed 's/^/| /' conftest.$ac_ext >&5
57844
57845 ac_cv_lib_iconv_iconv=no
57846 fi
57847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57848 LIBS=$ac_check_lib_save_LIBS
57849 fi
57850 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57851 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57852 if test $ac_cv_lib_iconv_iconv = yes; then
57853 libiconv="-liconv"
57854 fi
57855
57856 ac_save_LIBS="$LIBS"
57857 LIBS="$LIBS $libiconv"
57858
57859
57860
57861
57862
57863 for ac_func in iconv_open iconv_close iconv nl_langinfo
57864 do
57865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57866 echo "$as_me:$LINENO: checking for $ac_func" >&5
57867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57868 if eval "test \"\${$as_ac_var+set}\" = set"; then
57869 echo $ECHO_N "(cached) $ECHO_C" >&6
57870 else
57871 if test x$gcc_no_link = xyes; then
57872 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57873 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57874 { (exit 1); exit 1; }; }
57875 fi
57876 cat >conftest.$ac_ext <<_ACEOF
57877 #line $LINENO "configure"
57878 /* confdefs.h. */
57879 _ACEOF
57880 cat confdefs.h >>conftest.$ac_ext
57881 cat >>conftest.$ac_ext <<_ACEOF
57882 /* end confdefs.h. */
57883 /* System header to define __stub macros and hopefully few prototypes,
57884 which can conflict with char $ac_func (); below.
57885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57886 <limits.h> exists even on freestanding compilers. */
57887 #ifdef __STDC__
57888 # include <limits.h>
57889 #else
57890 # include <assert.h>
57891 #endif
57892 /* Override any gcc2 internal prototype to avoid an error. */
57893 #ifdef __cplusplus
57894 extern "C"
57895 {
57896 #endif
57897 /* We use char because int might match the return type of a gcc2
57898 builtin and then its argument prototype would still apply. */
57899 char $ac_func ();
57900 /* The GNU C library defines this for functions which it implements
57901 to always fail with ENOSYS. Some functions are actually named
57902 something starting with __ and the normal name is an alias. */
57903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57904 choke me
57905 #else
57906 char (*f) () = $ac_func;
57907 #endif
57908 #ifdef __cplusplus
57909 }
57910 #endif
57911
57912 int
57913 main ()
57914 {
57915 return f != $ac_func;
57916 ;
57917 return 0;
57918 }
57919 _ACEOF
57920 rm -f conftest.$ac_objext conftest$ac_exeext
57921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57922 (eval $ac_link) 2>&5
57923 ac_status=$?
57924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57925 (exit $ac_status); } &&
57926 { ac_try='test -s conftest$ac_exeext'
57927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57928 (eval $ac_try) 2>&5
57929 ac_status=$?
57930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57931 (exit $ac_status); }; }; then
57932 eval "$as_ac_var=yes"
57933 else
57934 echo "$as_me: failed program was:" >&5
57935 sed 's/^/| /' conftest.$ac_ext >&5
57936
57937 eval "$as_ac_var=no"
57938 fi
57939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57940 fi
57941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57943 if test `eval echo '${'$as_ac_var'}'` = yes; then
57944 cat >>confdefs.h <<_ACEOF
57945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57946 _ACEOF
57947 ac_XPG2funcs=yes
57948 else
57949 ac_XPG2funcs=no
57950 fi
57951 done
57952
57953
57954 LIBS="$ac_save_LIBS"
57955
57956 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57957 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57958 if test x"$ac_has_iconv_h" = xyes &&
57959 test x"$ac_has_langinfo_h" = xyes &&
57960 test x"$ac_XPG2funcs" = xyes;
57961 then
57962 ac_XPG2_wchar_t=yes
57963 else
57964 ac_XPG2_wchar_t=no
57965 fi
57966 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57967 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57968
57969 # At the moment, only enable wchar_t specializations if all the
57970 # above support is present.
57971 if test x"$ac_isoC99_wchar_t" = xyes &&
57972 test x"$ac_XPG2_wchar_t" = xyes;
57973 then
57974 cat >>confdefs.h <<\_ACEOF
57975 #define _GLIBCXX_USE_WCHAR_T 1
57976 _ACEOF
57977
57978 enable_wchar_t=yes
57979 fi
57980 fi
57981 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
57982 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
57983 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
57984 echo "${ECHO_T}$enable_wchar_t" >&6
57985
57986 cat >>confdefs.h <<\_ACEOF
57987 #define HAVE_COSF 1
57988 _ACEOF
57989
57990 cat >>confdefs.h <<\_ACEOF
57991 #define HAVE_COSL 1
57992 _ACEOF
57993
57994 cat >>confdefs.h <<\_ACEOF
57995 #define HAVE_COSHF 1
57996 _ACEOF
57997
57998 cat >>confdefs.h <<\_ACEOF
57999 #define HAVE_COSHL 1
58000 _ACEOF
58001
58002 cat >>confdefs.h <<\_ACEOF
58003 #define HAVE_LOGF 1
58004 _ACEOF
58005
58006 cat >>confdefs.h <<\_ACEOF
58007 #define HAVE_LOGL 1
58008 _ACEOF
58009
58010 cat >>confdefs.h <<\_ACEOF
58011 #define HAVE_LOG10F 1
58012 _ACEOF
58013
58014 cat >>confdefs.h <<\_ACEOF
58015 #define HAVE_LOG10L 1
58016 _ACEOF
58017
58018 cat >>confdefs.h <<\_ACEOF
58019 #define HAVE_SINF 1
58020 _ACEOF
58021
58022 cat >>confdefs.h <<\_ACEOF
58023 #define HAVE_SINL 1
58024 _ACEOF
58025
58026 cat >>confdefs.h <<\_ACEOF
58027 #define HAVE_SINHF 1
58028 _ACEOF
58029
58030 cat >>confdefs.h <<\_ACEOF
58031 #define HAVE_SINHL 1
58032 _ACEOF
58033
58034 ;;
58035 *-solaris*)
58036 #case "$target" in
58037 # *-solaris2.5)
58038 # os_include_dir="os/solaris/solaris2.5"
58039 # ;;
58040 # *-solaris2.6)
58041 # os_include_dir="os/solaris/solaris2.6"
58042 # ;;
58043 # *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
58044 # os_include_dir="os/solaris/solaris2.7"
58045 # ;;
58046 #esac
58047 cat >>confdefs.h <<\_ACEOF
58048 #define HAVE_STRTOF 1
58049 _ACEOF
58050
58051 cat >>confdefs.h <<\_ACEOF
58052 #define HAVE_STRTOLD 1
58053 _ACEOF
58054
58055 cat >>confdefs.h <<\_ACEOF
58056 #define HAVE_MMAP 1
58057 _ACEOF
58058
58059 cat >>confdefs.h <<\_ACEOF
58060 #define HAVE_COPYSIGN 1
58061 _ACEOF
58062
58063 cat >>confdefs.h <<\_ACEOF
58064 #define HAVE_ISNAN 1
58065 _ACEOF
58066
58067 cat >>confdefs.h <<\_ACEOF
58068 #define HAVE_ISNANF 1
58069 _ACEOF
58070
58071 cat >>confdefs.h <<\_ACEOF
58072 #define HAVE_MODFF 1
58073 _ACEOF
58074
58075 cat >>confdefs.h <<\_ACEOF
58076 #define HAVE_HYPOT 1
58077 _ACEOF
58078
58079 ;;
58080 *-windiss*)
58081 #os_include_dir="os/windiss"
58082 cat >>confdefs.h <<\_ACEOF
58083 #define HAVE_ACOSF 1
58084 _ACEOF
58085
58086 cat >>confdefs.h <<\_ACEOF
58087 #define HAVE_ASINF 1
58088 _ACEOF
58089
58090 cat >>confdefs.h <<\_ACEOF
58091 #define HAVE_ATAN2F 1
58092 _ACEOF
58093
58094 cat >>confdefs.h <<\_ACEOF
58095 #define HAVE_ATANF 1
58096 _ACEOF
58097
58098 cat >>confdefs.h <<\_ACEOF
58099 #define HAVE_CEILF 1
58100 _ACEOF
58101
58102 cat >>confdefs.h <<\_ACEOF
58103 #define HAVE_COPYSIGN 1
58104 _ACEOF
58105
58106 cat >>confdefs.h <<\_ACEOF
58107 #define HAVE_COPYSIGNF 1
58108 _ACEOF
58109
58110 cat >>confdefs.h <<\_ACEOF
58111 #define HAVE_COSF 1
58112 _ACEOF
58113
58114 cat >>confdefs.h <<\_ACEOF
58115 #define HAVE_COSHF 1
58116 _ACEOF
58117
58118 cat >>confdefs.h <<\_ACEOF
58119 #define HAVE_EXPF 1
58120 _ACEOF
58121
58122 cat >>confdefs.h <<\_ACEOF
58123 #define HAVE_FABSF 1
58124 _ACEOF
58125
58126 cat >>confdefs.h <<\_ACEOF
58127 #define HAVE_FLOORF 1
58128 _ACEOF
58129
58130 cat >>confdefs.h <<\_ACEOF
58131 #define HAVE_FMODF 1
58132 _ACEOF
58133
58134 cat >>confdefs.h <<\_ACEOF
58135 #define HAVE_FREXPF 1
58136 _ACEOF
58137
58138 cat >>confdefs.h <<\_ACEOF
58139 #define HAVE_LDEXPF 1
58140 _ACEOF
58141
58142 cat >>confdefs.h <<\_ACEOF
58143 #define HAVE_LOG10F 1
58144 _ACEOF
58145
58146 cat >>confdefs.h <<\_ACEOF
58147 #define HAVE_LOGF 1
58148 _ACEOF
58149
58150 cat >>confdefs.h <<\_ACEOF
58151 #define HAVE_MODFF 1
58152 _ACEOF
58153
58154 cat >>confdefs.h <<\_ACEOF
58155 #define HAVE_POWF 1
58156 _ACEOF
58157
58158 cat >>confdefs.h <<\_ACEOF
58159 #define HAVE_SINF 1
58160 _ACEOF
58161
58162 cat >>confdefs.h <<\_ACEOF
58163 #define HAVE_SINHF 1
58164 _ACEOF
58165
58166 cat >>confdefs.h <<\_ACEOF
58167 #define HAVE_SQRTF 1
58168 _ACEOF
58169
58170 cat >>confdefs.h <<\_ACEOF
58171 #define HAVE_TANF 1
58172 _ACEOF
58173
58174 cat >>confdefs.h <<\_ACEOF
58175 #define HAVE_TANHF 1
58176 _ACEOF
58177
58178 ;;
58179 *)
58180 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
58181 echo "$as_me: error: No support for this host/target combination." >&2;}
58182 { (exit 1); exit 1; }; }
58183 ;;
58184 esac
58185
58186
58187 fi
58188
58189 # At some point, we should differentiate between architectures
58190 # like x86, which have long double versions, and alpha/powerpc/etc.,
58191 # which don't. For the time being, punt.
58192 if test x"long_double_math_on_this_cpu" = x"yes"; then
58193 cat >>confdefs.h <<\_ACEOF
58194 #define HAVE_ACOSL 1
58195 _ACEOF
58196
58197 cat >>confdefs.h <<\_ACEOF
58198 #define HAVE_ASINL 1
58199 _ACEOF
58200
58201 cat >>confdefs.h <<\_ACEOF
58202 #define HAVE_ATAN2L 1
58203 _ACEOF
58204
58205 cat >>confdefs.h <<\_ACEOF
58206 #define HAVE_ATANL 1
58207 _ACEOF
58208
58209 cat >>confdefs.h <<\_ACEOF
58210 #define HAVE_CEILL 1
58211 _ACEOF
58212
58213 cat >>confdefs.h <<\_ACEOF
58214 #define HAVE_COPYSIGNL 1
58215 _ACEOF
58216
58217 cat >>confdefs.h <<\_ACEOF
58218 #define HAVE_COSL 1
58219 _ACEOF
58220
58221 cat >>confdefs.h <<\_ACEOF
58222 #define HAVE_COSHL 1
58223 _ACEOF
58224
58225 cat >>confdefs.h <<\_ACEOF
58226 #define HAVE_EXPL 1
58227 _ACEOF
58228
58229 cat >>confdefs.h <<\_ACEOF
58230 #define HAVE_FABSL 1
58231 _ACEOF
58232
58233 cat >>confdefs.h <<\_ACEOF
58234 #define HAVE_FLOORL 1
58235 _ACEOF
58236
58237 cat >>confdefs.h <<\_ACEOF
58238 #define HAVE_FMODL 1
58239 _ACEOF
58240
58241 cat >>confdefs.h <<\_ACEOF
58242 #define HAVE_FREXPL 1
58243 _ACEOF
58244
58245 cat >>confdefs.h <<\_ACEOF
58246 #define HAVE_LDEXPL 1
58247 _ACEOF
58248
58249 cat >>confdefs.h <<\_ACEOF
58250 #define HAVE_LOG10L 1
58251 _ACEOF
58252
58253 cat >>confdefs.h <<\_ACEOF
58254 #define HAVE_LOGL 1
58255 _ACEOF
58256
58257 cat >>confdefs.h <<\_ACEOF
58258 #define HAVE_MODFL 1
58259 _ACEOF
58260
58261 cat >>confdefs.h <<\_ACEOF
58262 #define HAVE_POWL 1
58263 _ACEOF
58264
58265 cat >>confdefs.h <<\_ACEOF
58266 #define HAVE_SINCOSL 1
58267 _ACEOF
58268
58269 cat >>confdefs.h <<\_ACEOF
58270 #define HAVE_SINL 1
58271 _ACEOF
58272
58273 cat >>confdefs.h <<\_ACEOF
58274 #define HAVE_SINHL 1
58275 _ACEOF
58276
58277 cat >>confdefs.h <<\_ACEOF
58278 #define HAVE_SQRTL 1
58279 _ACEOF
58280
58281 cat >>confdefs.h <<\_ACEOF
58282 #define HAVE_TANL 1
58283 _ACEOF
58284
58285 cat >>confdefs.h <<\_ACEOF
58286 #define HAVE_TANHL 1
58287 _ACEOF
58288
58289 fi
58290
58291 fi
58292
58293 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
58294
58295
58296 # Check whether --enable-symvers or --disable-symvers was given.
58297 if test "${enable_symvers+set}" = set; then
58298 enableval="$enable_symvers"
58299
58300 case "$enableval" in
58301 yes|no|gnu) ;;
58302 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
58303 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
58304 { (exit 1); exit 1; }; } ;;
58305 esac
58306
58307 else
58308 enable_symvers=yes
58309 fi;
58310
58311
58312 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
58313 # don't know enough about $LD to do tricks...
58314
58315 # FIXME The following test is too strict, in theory.
58316 if test $enable_shared = no ||
58317 test "x$LD" = x ||
58318 test x$glibcxx_gnu_ld_version = x; then
58319 enable_symvers=no
58320 fi
58321
58322 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
58323 if test $enable_symvers != no; then
58324 echo "$as_me:$LINENO: checking for shared libgcc" >&5
58325 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
58326 ac_save_CFLAGS="$CFLAGS"
58327 CFLAGS=' -lgcc_s'
58328 if test x$gcc_no_link = xyes; then
58329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58331 { (exit 1); exit 1; }; }
58332 fi
58333 cat >conftest.$ac_ext <<_ACEOF
58334 #line $LINENO "configure"
58335 /* confdefs.h. */
58336 _ACEOF
58337 cat confdefs.h >>conftest.$ac_ext
58338 cat >>conftest.$ac_ext <<_ACEOF
58339 /* end confdefs.h. */
58340
58341 int
58342 main ()
58343 {
58344 return 0;
58345 ;
58346 return 0;
58347 }
58348 _ACEOF
58349 rm -f conftest.$ac_objext conftest$ac_exeext
58350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58351 (eval $ac_link) 2>&5
58352 ac_status=$?
58353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58354 (exit $ac_status); } &&
58355 { ac_try='test -s conftest$ac_exeext'
58356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58357 (eval $ac_try) 2>&5
58358 ac_status=$?
58359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58360 (exit $ac_status); }; }; then
58361 glibcxx_shared_libgcc=yes
58362 else
58363 echo "$as_me: failed program was:" >&5
58364 sed 's/^/| /' conftest.$ac_ext >&5
58365
58366 glibcxx_shared_libgcc=no
58367 fi
58368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58369 CFLAGS="$ac_save_CFLAGS"
58370 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
58371 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
58372 fi
58373
58374 # For GNU ld, we need at least this version. The format is described in
58375 # GLIBCXX_CHECK_LINKER_FEATURES above.
58376 glibcxx_min_gnu_ld_version=21400
58377 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
58378
58379 # Check to see if unspecified "yes" value can win, given results above.
58380 # Change "yes" into either "no" or a style name.
58381 if test $enable_symvers = yes; then
58382 if test $with_gnu_ld = yes &&
58383 test $glibcxx_shared_libgcc = yes;
58384 then
58385 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
58386 enable_symvers=gnu
58387 else
58388 # The right tools, the right setup, but too old. Fallbacks?
58389 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
58390 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
58391 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
58392 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
58393 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
58394 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
58395 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
58396 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
58397 if test $glibcxx_gnu_ld_version -ge 21200 ; then
58398 # Globbing fix is present, proper block support is not.
58399 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
58400 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
58401 enable_symvers=no
58402 else
58403 # 2.11 or older.
58404 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
58405 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
58406 enable_symvers=no
58407 fi
58408 fi
58409 else
58410 # just fail for now
58411 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
58412 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
58413 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
58414 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
58415 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
58416 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
58417 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
58418 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
58419 enable_symvers=no
58420 fi
58421 fi
58422
58423 # Everything parsed; figure out what file to use.
58424 case $enable_symvers in
58425 no)
58426 SYMVER_MAP=config/linker-map.dummy
58427 ;;
58428 gnu)
58429 SYMVER_MAP=config/linker-map.gnu
58430 cat >>confdefs.h <<\_ACEOF
58431 #define _GLIBCXX_SYMVER 1
58432 _ACEOF
58433
58434 ;;
58435 esac
58436
58437
58438
58439
58440 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
58441 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
58442
58443
58444 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
58445
58446 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
58447 # Do checks for memory limit functions.
58448
58449 setrlimit_have_headers=yes
58450
58451
58452
58453 for ac_header in unistd.h sys/time.h sys/resource.h
58454 do
58455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58457 echo "$as_me:$LINENO: checking for $ac_header" >&5
58458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58460 echo $ECHO_N "(cached) $ECHO_C" >&6
58461 fi
58462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58464 else
58465 # Is the header compilable?
58466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58468 cat >conftest.$ac_ext <<_ACEOF
58469 #line $LINENO "configure"
58470 /* confdefs.h. */
58471 _ACEOF
58472 cat confdefs.h >>conftest.$ac_ext
58473 cat >>conftest.$ac_ext <<_ACEOF
58474 /* end confdefs.h. */
58475 $ac_includes_default
58476 #include <$ac_header>
58477 _ACEOF
58478 rm -f conftest.$ac_objext
58479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58480 (eval $ac_compile) 2>&5
58481 ac_status=$?
58482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58483 (exit $ac_status); } &&
58484 { ac_try='test -s conftest.$ac_objext'
58485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58486 (eval $ac_try) 2>&5
58487 ac_status=$?
58488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58489 (exit $ac_status); }; }; then
58490 ac_header_compiler=yes
58491 else
58492 echo "$as_me: failed program was:" >&5
58493 sed 's/^/| /' conftest.$ac_ext >&5
58494
58495 ac_header_compiler=no
58496 fi
58497 rm -f conftest.$ac_objext conftest.$ac_ext
58498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58499 echo "${ECHO_T}$ac_header_compiler" >&6
58500
58501 # Is the header present?
58502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58504 cat >conftest.$ac_ext <<_ACEOF
58505 #line $LINENO "configure"
58506 /* confdefs.h. */
58507 _ACEOF
58508 cat confdefs.h >>conftest.$ac_ext
58509 cat >>conftest.$ac_ext <<_ACEOF
58510 /* end confdefs.h. */
58511 #include <$ac_header>
58512 _ACEOF
58513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58515 ac_status=$?
58516 grep -v '^ *+' conftest.er1 >conftest.err
58517 rm -f conftest.er1
58518 cat conftest.err >&5
58519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58520 (exit $ac_status); } >/dev/null; then
58521 if test -s conftest.err; then
58522 ac_cpp_err=$ac_c_preproc_warn_flag
58523 else
58524 ac_cpp_err=
58525 fi
58526 else
58527 ac_cpp_err=yes
58528 fi
58529 if test -z "$ac_cpp_err"; then
58530 ac_header_preproc=yes
58531 else
58532 echo "$as_me: failed program was:" >&5
58533 sed 's/^/| /' conftest.$ac_ext >&5
58534
58535 ac_header_preproc=no
58536 fi
58537 rm -f conftest.err conftest.$ac_ext
58538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58539 echo "${ECHO_T}$ac_header_preproc" >&6
58540
58541 # So? What about this header?
58542 case $ac_header_compiler:$ac_header_preproc in
58543 yes:no )
58544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58548 (
58549 cat <<\_ASBOX
58550 ## ------------------------------------ ##
58551 ## Report this to bug-autoconf@gnu.org. ##
58552 ## ------------------------------------ ##
58553 _ASBOX
58554 ) |
58555 sed "s/^/$as_me: WARNING: /" >&2
58556 ;;
58557 no:yes )
58558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58564 (
58565 cat <<\_ASBOX
58566 ## ------------------------------------ ##
58567 ## Report this to bug-autoconf@gnu.org. ##
58568 ## ------------------------------------ ##
58569 _ASBOX
58570 ) |
58571 sed "s/^/$as_me: WARNING: /" >&2
58572 ;;
58573 esac
58574 echo "$as_me:$LINENO: checking for $ac_header" >&5
58575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58577 echo $ECHO_N "(cached) $ECHO_C" >&6
58578 else
58579 eval "$as_ac_Header=$ac_header_preproc"
58580 fi
58581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58583
58584 fi
58585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58586 cat >>confdefs.h <<_ACEOF
58587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58588 _ACEOF
58589
58590 else
58591 setrlimit_have_headers=no
58592 fi
58593
58594 done
58595
58596 # If don't have the headers, then we can't run the tests now, and we
58597 # won't be seeing any of these during testsuite compilation.
58598 if test $setrlimit_have_headers = yes; then
58599 # Can't do these in a loop, else the resulting syntax is wrong.
58600
58601 cat >conftest.$ac_ext <<_ACEOF
58602 #line $LINENO "configure"
58603 /* confdefs.h. */
58604 _ACEOF
58605 cat confdefs.h >>conftest.$ac_ext
58606 cat >>conftest.$ac_ext <<_ACEOF
58607 /* end confdefs.h. */
58608 #include <unistd.h>
58609 #include <sys/time.h>
58610 #include <sys/resource.h>
58611
58612 int
58613 main ()
58614 {
58615 int f = RLIMIT_DATA ;
58616 ;
58617 return 0;
58618 }
58619 _ACEOF
58620 rm -f conftest.$ac_objext
58621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58622 (eval $ac_compile) 2>&5
58623 ac_status=$?
58624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58625 (exit $ac_status); } &&
58626 { ac_try='test -s conftest.$ac_objext'
58627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58628 (eval $ac_try) 2>&5
58629 ac_status=$?
58630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58631 (exit $ac_status); }; }; then
58632 glibcxx_mresult=1
58633 else
58634 echo "$as_me: failed program was:" >&5
58635 sed 's/^/| /' conftest.$ac_ext >&5
58636
58637 glibcxx_mresult=0
58638 fi
58639 rm -f conftest.$ac_objext conftest.$ac_ext
58640
58641 cat >>confdefs.h <<_ACEOF
58642 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
58643 _ACEOF
58644
58645
58646
58647 cat >conftest.$ac_ext <<_ACEOF
58648 #line $LINENO "configure"
58649 /* confdefs.h. */
58650 _ACEOF
58651 cat confdefs.h >>conftest.$ac_ext
58652 cat >>conftest.$ac_ext <<_ACEOF
58653 /* end confdefs.h. */
58654 #include <unistd.h>
58655 #include <sys/time.h>
58656 #include <sys/resource.h>
58657
58658 int
58659 main ()
58660 {
58661 int f = RLIMIT_RSS ;
58662 ;
58663 return 0;
58664 }
58665 _ACEOF
58666 rm -f conftest.$ac_objext
58667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58668 (eval $ac_compile) 2>&5
58669 ac_status=$?
58670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58671 (exit $ac_status); } &&
58672 { ac_try='test -s conftest.$ac_objext'
58673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58674 (eval $ac_try) 2>&5
58675 ac_status=$?
58676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58677 (exit $ac_status); }; }; then
58678 glibcxx_mresult=1
58679 else
58680 echo "$as_me: failed program was:" >&5
58681 sed 's/^/| /' conftest.$ac_ext >&5
58682
58683 glibcxx_mresult=0
58684 fi
58685 rm -f conftest.$ac_objext conftest.$ac_ext
58686
58687 cat >>confdefs.h <<_ACEOF
58688 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
58689 _ACEOF
58690
58691
58692
58693 cat >conftest.$ac_ext <<_ACEOF
58694 #line $LINENO "configure"
58695 /* confdefs.h. */
58696 _ACEOF
58697 cat confdefs.h >>conftest.$ac_ext
58698 cat >>conftest.$ac_ext <<_ACEOF
58699 /* end confdefs.h. */
58700 #include <unistd.h>
58701 #include <sys/time.h>
58702 #include <sys/resource.h>
58703
58704 int
58705 main ()
58706 {
58707 int f = RLIMIT_VMEM ;
58708 ;
58709 return 0;
58710 }
58711 _ACEOF
58712 rm -f conftest.$ac_objext
58713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58714 (eval $ac_compile) 2>&5
58715 ac_status=$?
58716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58717 (exit $ac_status); } &&
58718 { ac_try='test -s conftest.$ac_objext'
58719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58720 (eval $ac_try) 2>&5
58721 ac_status=$?
58722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58723 (exit $ac_status); }; }; then
58724 glibcxx_mresult=1
58725 else
58726 echo "$as_me: failed program was:" >&5
58727 sed 's/^/| /' conftest.$ac_ext >&5
58728
58729 glibcxx_mresult=0
58730 fi
58731 rm -f conftest.$ac_objext conftest.$ac_ext
58732
58733 cat >>confdefs.h <<_ACEOF
58734 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
58735 _ACEOF
58736
58737
58738
58739 cat >conftest.$ac_ext <<_ACEOF
58740 #line $LINENO "configure"
58741 /* confdefs.h. */
58742 _ACEOF
58743 cat confdefs.h >>conftest.$ac_ext
58744 cat >>conftest.$ac_ext <<_ACEOF
58745 /* end confdefs.h. */
58746 #include <unistd.h>
58747 #include <sys/time.h>
58748 #include <sys/resource.h>
58749
58750 int
58751 main ()
58752 {
58753 int f = RLIMIT_AS ;
58754 ;
58755 return 0;
58756 }
58757 _ACEOF
58758 rm -f conftest.$ac_objext
58759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58760 (eval $ac_compile) 2>&5
58761 ac_status=$?
58762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58763 (exit $ac_status); } &&
58764 { ac_try='test -s conftest.$ac_objext'
58765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58766 (eval $ac_try) 2>&5
58767 ac_status=$?
58768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58769 (exit $ac_status); }; }; then
58770 glibcxx_mresult=1
58771 else
58772 echo "$as_me: failed program was:" >&5
58773 sed 's/^/| /' conftest.$ac_ext >&5
58774
58775 glibcxx_mresult=0
58776 fi
58777 rm -f conftest.$ac_objext conftest.$ac_ext
58778
58779 cat >>confdefs.h <<_ACEOF
58780 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
58781 _ACEOF
58782
58783
58784
58785 # Check for rlimit, setrlimit.
58786 if test "${ac_setrlimit+set}" = set; then
58787 echo $ECHO_N "(cached) $ECHO_C" >&6
58788 else
58789
58790 cat >conftest.$ac_ext <<_ACEOF
58791 #line $LINENO "configure"
58792 /* confdefs.h. */
58793 _ACEOF
58794 cat confdefs.h >>conftest.$ac_ext
58795 cat >>conftest.$ac_ext <<_ACEOF
58796 /* end confdefs.h. */
58797 #include <unistd.h>
58798 #include <sys/time.h>
58799 #include <sys/resource.h>
58800
58801 int
58802 main ()
58803 {
58804 struct rlimit r;
58805 setrlimit(0, &r);
58806 ;
58807 return 0;
58808 }
58809 _ACEOF
58810 rm -f conftest.$ac_objext
58811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58812 (eval $ac_compile) 2>&5
58813 ac_status=$?
58814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58815 (exit $ac_status); } &&
58816 { ac_try='test -s conftest.$ac_objext'
58817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58818 (eval $ac_try) 2>&5
58819 ac_status=$?
58820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58821 (exit $ac_status); }; }; then
58822 ac_setrlimit=yes
58823 else
58824 echo "$as_me: failed program was:" >&5
58825 sed 's/^/| /' conftest.$ac_ext >&5
58826
58827 ac_setrlimit=no
58828 fi
58829 rm -f conftest.$ac_objext conftest.$ac_ext
58830
58831 fi
58832
58833 fi
58834
58835 echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
58836 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
58837 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
58838 ac_mem_limits=yes
58839 cat >>confdefs.h <<\_ACEOF
58840 #define _GLIBCXX_MEM_LIMITS 1
58841 _ACEOF
58842
58843 else
58844 ac_mem_limits=no
58845 fi
58846 echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
58847 echo "${ECHO_T}$ac_mem_limits" >&6
58848
58849
58850 # Look for setenv, so that extended locale tests can be performed.
58851
58852 echo "$as_me:$LINENO: checking for setenv declaration" >&5
58853 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
58854 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
58855 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
58856 echo $ECHO_N "(cached) $ECHO_C" >&6
58857 else
58858
58859
58860
58861 ac_ext=cc
58862 ac_cpp='$CXXCPP $CPPFLAGS'
58863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
58866
58867 cat >conftest.$ac_ext <<_ACEOF
58868 #line $LINENO "configure"
58869 /* confdefs.h. */
58870 _ACEOF
58871 cat confdefs.h >>conftest.$ac_ext
58872 cat >>conftest.$ac_ext <<_ACEOF
58873 /* end confdefs.h. */
58874 #include <stdlib.h>
58875 int
58876 main ()
58877 {
58878 setenv(0, 0, 0);
58879 ;
58880 return 0;
58881 }
58882 _ACEOF
58883 rm -f conftest.$ac_objext
58884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58885 (eval $ac_compile) 2>&5
58886 ac_status=$?
58887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58888 (exit $ac_status); } &&
58889 { ac_try='test -s conftest.$ac_objext'
58890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58891 (eval $ac_try) 2>&5
58892 ac_status=$?
58893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58894 (exit $ac_status); }; }; then
58895 glibcxx_cv_func_setenv_use=yes
58896 else
58897 echo "$as_me: failed program was:" >&5
58898 sed 's/^/| /' conftest.$ac_ext >&5
58899
58900 glibcxx_cv_func_setenv_use=no
58901 fi
58902 rm -f conftest.$ac_objext conftest.$ac_ext
58903 ac_ext=c
58904 ac_cpp='$CPP $CPPFLAGS'
58905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
58908
58909
58910 fi
58911
58912 fi
58913 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
58914 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
58915 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
58916
58917 for ac_func in setenv
58918 do
58919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58920 echo "$as_me:$LINENO: checking for $ac_func" >&5
58921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58922 if eval "test \"\${$as_ac_var+set}\" = set"; then
58923 echo $ECHO_N "(cached) $ECHO_C" >&6
58924 else
58925 if test x$gcc_no_link = xyes; then
58926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58928 { (exit 1); exit 1; }; }
58929 fi
58930 cat >conftest.$ac_ext <<_ACEOF
58931 #line $LINENO "configure"
58932 /* confdefs.h. */
58933 _ACEOF
58934 cat confdefs.h >>conftest.$ac_ext
58935 cat >>conftest.$ac_ext <<_ACEOF
58936 /* end confdefs.h. */
58937 /* System header to define __stub macros and hopefully few prototypes,
58938 which can conflict with char $ac_func (); below.
58939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58940 <limits.h> exists even on freestanding compilers. */
58941 #ifdef __STDC__
58942 # include <limits.h>
58943 #else
58944 # include <assert.h>
58945 #endif
58946 /* Override any gcc2 internal prototype to avoid an error. */
58947 #ifdef __cplusplus
58948 extern "C"
58949 {
58950 #endif
58951 /* We use char because int might match the return type of a gcc2
58952 builtin and then its argument prototype would still apply. */
58953 char $ac_func ();
58954 /* The GNU C library defines this for functions which it implements
58955 to always fail with ENOSYS. Some functions are actually named
58956 something starting with __ and the normal name is an alias. */
58957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58958 choke me
58959 #else
58960 char (*f) () = $ac_func;
58961 #endif
58962 #ifdef __cplusplus
58963 }
58964 #endif
58965
58966 int
58967 main ()
58968 {
58969 return f != $ac_func;
58970 ;
58971 return 0;
58972 }
58973 _ACEOF
58974 rm -f conftest.$ac_objext conftest$ac_exeext
58975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58976 (eval $ac_link) 2>&5
58977 ac_status=$?
58978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58979 (exit $ac_status); } &&
58980 { ac_try='test -s conftest$ac_exeext'
58981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58982 (eval $ac_try) 2>&5
58983 ac_status=$?
58984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58985 (exit $ac_status); }; }; then
58986 eval "$as_ac_var=yes"
58987 else
58988 echo "$as_me: failed program was:" >&5
58989 sed 's/^/| /' conftest.$ac_ext >&5
58990
58991 eval "$as_ac_var=no"
58992 fi
58993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58994 fi
58995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58997 if test `eval echo '${'$as_ac_var'}'` = yes; then
58998 cat >>confdefs.h <<_ACEOF
58999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59000 _ACEOF
59001
59002 fi
59003 done
59004
59005 fi
59006
59007 fi
59008
59009 # Export file names for ABI checking.
59010 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
59011
59012
59013 # Determine if checking the ABI is desirable.
59014 if test $enable_symvers = no || test $is_hosted = no; then
59015 enable_abi_check=no
59016 else
59017 case "$host" in
59018 *-*-cygwin*)
59019 enable_abi_check=no ;;
59020 *)
59021 enable_abi_check=yes ;;
59022 esac
59023 fi
59024
59025
59026
59027
59028
59029 # Propagate the target-specific source directories through the build chain.
59030 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
59031 # uses it, and it only gets used in this file.)
59032 ATOMICITY_INC_SRCDIR=config/${atomicity_include_dir}
59033 OS_INC_SRCDIR=config/${os_include_dir}
59034 FPOS_INC_SRCDIR=config/${fpos_include_dir}
59035
59036
59037
59038
59039 # Determine cross-compile flags and AM_CONDITIONALs.
59040 #AC_SUBST(GLIBCXX_IS_NATIVE)
59041 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
59042 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
59043 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
59044
59045
59046 if test $is_hosted = yes; then
59047 GLIBCXX_HOSTED_TRUE=
59048 GLIBCXX_HOSTED_FALSE='#'
59049 else
59050 GLIBCXX_HOSTED_TRUE='#'
59051 GLIBCXX_HOSTED_FALSE=
59052 fi
59053
59054
59055
59056
59057 if test $enable_libstdcxx_pch = yes; then
59058 GLIBCXX_BUILD_PCH_TRUE=
59059 GLIBCXX_BUILD_PCH_FALSE='#'
59060 else
59061 GLIBCXX_BUILD_PCH_TRUE='#'
59062 GLIBCXX_BUILD_PCH_FALSE=
59063 fi
59064
59065
59066
59067
59068 if test $enable_cheaders = c; then
59069 GLIBCXX_C_HEADERS_C_TRUE=
59070 GLIBCXX_C_HEADERS_C_FALSE='#'
59071 else
59072 GLIBCXX_C_HEADERS_C_TRUE='#'
59073 GLIBCXX_C_HEADERS_C_FALSE=
59074 fi
59075
59076
59077
59078
59079 if test $enable_cheaders = c_std; then
59080 GLIBCXX_C_HEADERS_C_STD_TRUE=
59081 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
59082 else
59083 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
59084 GLIBCXX_C_HEADERS_C_STD_FALSE=
59085 fi
59086
59087
59088
59089
59090 if test $c_compatibility = yes; then
59091 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
59092 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
59093 else
59094 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
59095 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
59096 fi
59097
59098
59099
59100
59101 if test $enable_libstdcxx_debug = yes; then
59102 GLIBCXX_BUILD_DEBUG_TRUE=
59103 GLIBCXX_BUILD_DEBUG_FALSE='#'
59104 else
59105 GLIBCXX_BUILD_DEBUG_TRUE='#'
59106 GLIBCXX_BUILD_DEBUG_FALSE=
59107 fi
59108
59109
59110
59111
59112 if test $enable_symvers != no; then
59113 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
59114 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
59115 else
59116 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
59117 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
59118 fi
59119
59120
59121
59122
59123 if test $enable_wchar_t = yes; then
59124 GLIBCXX_TEST_WCHAR_T_TRUE=
59125 GLIBCXX_TEST_WCHAR_T_FALSE='#'
59126 else
59127 GLIBCXX_TEST_WCHAR_T_TRUE='#'
59128 GLIBCXX_TEST_WCHAR_T_FALSE=
59129 fi
59130
59131
59132
59133
59134 if test $enable_abi_check = yes; then
59135 GLIBCXX_TEST_ABI_TRUE=
59136 GLIBCXX_TEST_ABI_FALSE='#'
59137 else
59138 GLIBCXX_TEST_ABI_TRUE='#'
59139 GLIBCXX_TEST_ABI_FALSE=
59140 fi
59141
59142
59143
59144
59145 cat >confcache <<\_ACEOF
59146 # This file is a shell script that caches the results of configure
59147 # tests run on this system so they can be shared between configure
59148 # scripts and configure runs, see configure's option --config-cache.
59149 # It is not useful on other systems. If it contains results you don't
59150 # want to keep, you may remove or edit it.
59151 #
59152 # config.status only pays attention to the cache file if you give it
59153 # the --recheck option to rerun configure.
59154 #
59155 # `ac_cv_env_foo' variables (set or unset) will be overridden when
59156 # loading this file, other *unset* `ac_cv_foo' will be assigned the
59157 # following values.
59158
59159 _ACEOF
59160
59161 # The following way of writing the cache mishandles newlines in values,
59162 # but we know of no workaround that is simple, portable, and efficient.
59163 # So, don't put newlines in cache variables' values.
59164 # Ultrix sh set writes to stderr and can't be redirected directly,
59165 # and sets the high bit in the cache file unless we assign to the vars.
59166 {
59167 (set) 2>&1 |
59168 case `(ac_space=' '; set | grep ac_space) 2>&1` in
59169 *ac_space=\ *)
59170 # `set' does not quote correctly, so add quotes (double-quote
59171 # substitution turns \\\\ into \\, and sed turns \\ into \).
59172 sed -n \
59173 "s/'/'\\\\''/g;
59174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59175 ;;
59176 *)
59177 # `set' quotes correctly as required by POSIX, so do not add quotes.
59178 sed -n \
59179 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
59180 ;;
59181 esac;
59182 } |
59183 sed '
59184 t clear
59185 : clear
59186 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59187 t end
59188 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59189 : end' >>confcache
59190 if diff $cache_file confcache >/dev/null 2>&1; then :; else
59191 if test -w $cache_file; then
59192 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
59193 cat confcache >$cache_file
59194 else
59195 echo "not updating unwritable cache $cache_file"
59196 fi
59197 fi
59198 rm -f confcache
59199
59200 if test ${multilib} = yes; then
59201 multilib_arg="--enable-multilib"
59202 else
59203 multilib_arg=
59204 fi
59205
59206 # Export all the install information.
59207
59208 glibcxx_toolexecdir=no
59209 glibcxx_toolexeclibdir=no
59210 glibcxx_prefixdir=$prefix
59211
59212 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
59213 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
59214
59215 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
59216 if test "${with_gxx_include_dir+set}" = set; then
59217 withval="$with_gxx_include_dir"
59218 case "$withval" in
59219 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
59220 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
59221 { (exit 1); exit 1; }; } ;;
59222 no) gxx_include_dir=no ;;
59223 *) gxx_include_dir=$withval ;;
59224 esac
59225 else
59226 gxx_include_dir=no
59227 fi;
59228 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
59229 echo "${ECHO_T}$gxx_include_dir" >&6
59230
59231 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
59232 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
59233 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
59234 if test "${enable_version_specific_runtime_libs+set}" = set; then
59235 enableval="$enable_version_specific_runtime_libs"
59236 case "$enableval" in
59237 yes) version_specific_libs=yes ;;
59238 no) version_specific_libs=no ;;
59239 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
59240 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
59241 { (exit 1); exit 1; }; };;
59242 esac
59243 else
59244 version_specific_libs=no
59245 fi;
59246 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
59247 echo "${ECHO_T}$version_specific_libs" >&6
59248
59249 # Default case for install directory for include files.
59250 if test $version_specific_libs = no && test $gxx_include_dir = no; then
59251 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
59252 fi
59253
59254 # Version-specific runtime libs processing.
59255 if test $version_specific_libs = yes; then
59256 # Need the gcc compiler version to know where to install libraries
59257 # and header files if --enable-version-specific-runtime-libs option
59258 # is selected.
59259 if test x"$gxx_include_dir" = x"no"; then
59260 gxx_include_dir='${libdir}/gcc-lib/${host_alias}/'$gcc_version/include/c++
59261 fi
59262 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
59263 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
59264 fi
59265
59266 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
59267 # Install a library built with a cross compiler in tooldir, not libdir.
59268 if test x"$glibcxx_toolexecdir" = x"no"; then
59269 if test -n "$with_cross_host" &&
59270 test x"$with_cross_host" != x"no"; then
59271 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
59272 glibcxx_toolexeclibdir='${toolexecdir}/lib'
59273 else
59274 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
59275 glibcxx_toolexeclibdir='${libdir}'
59276 fi
59277 multi_os_directory=`$CXX -print-multi-os-directory`
59278 case $multi_os_directory in
59279 .) ;; # Avoid trailing /.
59280 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
59281 esac
59282 fi
59283
59284 echo "$as_me:$LINENO: checking for install location" >&5
59285 echo $ECHO_N "checking for install location... $ECHO_C" >&6
59286 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
59287 echo "${ECHO_T}$gxx_include_dir" >&6
59288
59289
59290
59291
59292
59293
59294
59295 # Export all the include and flag information to Makefiles.
59296
59297 # Used for every C++ compile we perform.
59298 GLIBCXX_INCLUDES="\
59299 -I$glibcxx_builddir/include/$host_alias \
59300 -I$glibcxx_builddir/include \
59301 -I$glibcxx_srcdir/libsupc++"
59302
59303 # For Canadian crosses, pick this up too.
59304 if test $CANADIAN = yes; then
59305 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
59306 fi
59307
59308 # Stuff in the actual top level. Currently only used by libsupc++ to
59309 # get unwind* headers from the gcc dir.
59310 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
59311 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
59312
59313 # Now, export this to all the little Makefiles....
59314
59315
59316
59317
59318 # Optimization flags that are probably a good idea for thrill-seekers. Just
59319 # uncomment the lines below and make, everything else is ready to go...
59320 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
59321 OPTIMIZE_CXXFLAGS=
59322
59323
59324 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
59325
59326
59327
59328 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
59329 grep "enable shared" > /dev/null;
59330 then
59331 LIBSUPCXX_PICFLAGS=-prefer-pic
59332 else
59333 LIBSUPCXX_PICFLAGS=
59334 fi
59335
59336
59337 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
59338
59339 ac_config_files="$ac_config_files scripts/check_survey"
59340
59341 ac_config_files="$ac_config_files scripts/testsuite_flags"
59342
59343
59344 ac_config_commands="$ac_config_commands default"
59345
59346
59347 cat >confcache <<\_ACEOF
59348 # This file is a shell script that caches the results of configure
59349 # tests run on this system so they can be shared between configure
59350 # scripts and configure runs, see configure's option --config-cache.
59351 # It is not useful on other systems. If it contains results you don't
59352 # want to keep, you may remove or edit it.
59353 #
59354 # config.status only pays attention to the cache file if you give it
59355 # the --recheck option to rerun configure.
59356 #
59357 # `ac_cv_env_foo' variables (set or unset) will be overridden when
59358 # loading this file, other *unset* `ac_cv_foo' will be assigned the
59359 # following values.
59360
59361 _ACEOF
59362
59363 # The following way of writing the cache mishandles newlines in values,
59364 # but we know of no workaround that is simple, portable, and efficient.
59365 # So, don't put newlines in cache variables' values.
59366 # Ultrix sh set writes to stderr and can't be redirected directly,
59367 # and sets the high bit in the cache file unless we assign to the vars.
59368 {
59369 (set) 2>&1 |
59370 case `(ac_space=' '; set | grep ac_space) 2>&1` in
59371 *ac_space=\ *)
59372 # `set' does not quote correctly, so add quotes (double-quote
59373 # substitution turns \\\\ into \\, and sed turns \\ into \).
59374 sed -n \
59375 "s/'/'\\\\''/g;
59376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59377 ;;
59378 *)
59379 # `set' quotes correctly as required by POSIX, so do not add quotes.
59380 sed -n \
59381 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
59382 ;;
59383 esac;
59384 } |
59385 sed '
59386 t clear
59387 : clear
59388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59389 t end
59390 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59391 : end' >>confcache
59392 if diff $cache_file confcache >/dev/null 2>&1; then :; else
59393 if test -w $cache_file; then
59394 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
59395 cat confcache >$cache_file
59396 else
59397 echo "not updating unwritable cache $cache_file"
59398 fi
59399 fi
59400 rm -f confcache
59401
59402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
59403 # Let make expand exec_prefix.
59404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
59405
59406 # VPATH may cause trouble with some makes, so we remove $(srcdir),
59407 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
59408 # trailing colons and then remove the whole line if VPATH becomes empty
59409 # (actually we leave an empty line to preserve line numbers).
59410 if test "x$srcdir" = x.; then
59411 ac_vpsub='/^[ ]*VPATH[ ]*=/{
59412 s/:*\$(srcdir):*/:/;
59413 s/:*\${srcdir}:*/:/;
59414 s/:*@srcdir@:*/:/;
59415 s/^\([^=]*=[ ]*\):*/\1/;
59416 s/:*$//;
59417 s/^[^=]*=[ ]*$//;
59418 }'
59419 fi
59420
59421 DEFS=-DHAVE_CONFIG_H
59422
59423 ac_libobjs=
59424 ac_ltlibobjs=
59425 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
59426 # 1. Remove the extension, and $U if already installed.
59427 ac_i=`echo "$ac_i" |
59428 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
59429 # 2. Add them.
59430 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
59431 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
59432 done
59433 LIBOBJS=$ac_libobjs
59434
59435 LTLIBOBJS=$ac_ltlibobjs
59436
59437
59438 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
59439 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
59440 Usually this means the macro was only invoked conditionally." >&5
59441 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
59442 Usually this means the macro was only invoked conditionally." >&2;}
59443 { (exit 1); exit 1; }; }
59444 fi
59445 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
59446 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
59447 Usually this means the macro was only invoked conditionally." >&5
59448 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
59449 Usually this means the macro was only invoked conditionally." >&2;}
59450 { (exit 1); exit 1; }; }
59451 fi
59452 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
59453 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
59454 Usually this means the macro was only invoked conditionally." >&5
59455 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
59456 Usually this means the macro was only invoked conditionally." >&2;}
59457 { (exit 1); exit 1; }; }
59458 fi
59459 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
59460 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
59461 Usually this means the macro was only invoked conditionally." >&5
59462 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
59463 Usually this means the macro was only invoked conditionally." >&2;}
59464 { (exit 1); exit 1; }; }
59465 fi
59466 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
59467 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
59468 Usually this means the macro was only invoked conditionally." >&5
59469 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
59470 Usually this means the macro was only invoked conditionally." >&2;}
59471 { (exit 1); exit 1; }; }
59472 fi
59473 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
59474 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
59475 Usually this means the macro was only invoked conditionally." >&5
59476 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
59477 Usually this means the macro was only invoked conditionally." >&2;}
59478 { (exit 1); exit 1; }; }
59479 fi
59480 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
59481 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
59482 Usually this means the macro was only invoked conditionally." >&5
59483 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
59484 Usually this means the macro was only invoked conditionally." >&2;}
59485 { (exit 1); exit 1; }; }
59486 fi
59487 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
59488 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
59489 Usually this means the macro was only invoked conditionally." >&5
59490 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
59491 Usually this means the macro was only invoked conditionally." >&2;}
59492 { (exit 1); exit 1; }; }
59493 fi
59494 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
59495 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
59496 Usually this means the macro was only invoked conditionally." >&5
59497 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
59498 Usually this means the macro was only invoked conditionally." >&2;}
59499 { (exit 1); exit 1; }; }
59500 fi
59501 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
59502 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
59503 Usually this means the macro was only invoked conditionally." >&5
59504 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
59505 Usually this means the macro was only invoked conditionally." >&2;}
59506 { (exit 1); exit 1; }; }
59507 fi
59508
59509 : ${CONFIG_STATUS=./config.status}
59510 ac_clean_files_save=$ac_clean_files
59511 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
59512 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
59513 echo "$as_me: creating $CONFIG_STATUS" >&6;}
59514 cat >$CONFIG_STATUS <<_ACEOF
59515 #! $SHELL
59516 # Generated by $as_me.
59517 # Run this file to recreate the current configuration.
59518 # Compiler output produced by configure, useful for debugging
59519 # configure, is in config.log if it exists.
59520
59521 debug=false
59522 ac_cs_recheck=false
59523 ac_cs_silent=false
59524 SHELL=\${CONFIG_SHELL-$SHELL}
59525 _ACEOF
59526
59527 cat >>$CONFIG_STATUS <<\_ACEOF
59528 ## --------------------- ##
59529 ## M4sh Initialization. ##
59530 ## --------------------- ##
59531
59532 # Be Bourne compatible
59533 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
59534 emulate sh
59535 NULLCMD=:
59536 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
59537 # is contrary to our usage. Disable this feature.
59538 alias -g '${1+"$@"}'='"$@"'
59539 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
59540 set -o posix
59541 fi
59542
59543 # Support unset when possible.
59544 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
59545 as_unset=unset
59546 else
59547 as_unset=false
59548 fi
59549
59550
59551 # Work around bugs in pre-3.0 UWIN ksh.
59552 $as_unset ENV MAIL MAILPATH
59553 PS1='$ '
59554 PS2='> '
59555 PS4='+ '
59556
59557 # NLS nuisances.
59558 for as_var in \
59559 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
59560 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
59561 LC_TELEPHONE LC_TIME
59562 do
59563 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
59564 eval $as_var=C; export $as_var
59565 else
59566 $as_unset $as_var
59567 fi
59568 done
59569
59570 # Required to use basename.
59571 if expr a : '\(a\)' >/dev/null 2>&1; then
59572 as_expr=expr
59573 else
59574 as_expr=false
59575 fi
59576
59577 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59578 as_basename=basename
59579 else
59580 as_basename=false
59581 fi
59582
59583
59584 # Name of the executable.
59585 as_me=`$as_basename "$0" ||
59586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
59587 X"$0" : 'X\(//\)$' \| \
59588 X"$0" : 'X\(/\)$' \| \
59589 . : '\(.\)' 2>/dev/null ||
59590 echo X/"$0" |
59591 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
59592 /^X\/\(\/\/\)$/{ s//\1/; q; }
59593 /^X\/\(\/\).*/{ s//\1/; q; }
59594 s/.*/./; q'`
59595
59596
59597 # PATH needs CR, and LINENO needs CR and PATH.
59598 # Avoid depending upon Character Ranges.
59599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
59600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
59602 as_cr_digits='0123456789'
59603 as_cr_alnum=$as_cr_Letters$as_cr_digits
59604
59605 # The user is always right.
59606 if test "${PATH_SEPARATOR+set}" != set; then
59607 echo "#! /bin/sh" >conf$$.sh
59608 echo "exit 0" >>conf$$.sh
59609 chmod +x conf$$.sh
59610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59611 PATH_SEPARATOR=';'
59612 else
59613 PATH_SEPARATOR=:
59614 fi
59615 rm -f conf$$.sh
59616 fi
59617
59618
59619 as_lineno_1=$LINENO
59620 as_lineno_2=$LINENO
59621 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
59622 test "x$as_lineno_1" != "x$as_lineno_2" &&
59623 test "x$as_lineno_3" = "x$as_lineno_2" || {
59624 # Find who we are. Look in the path if we contain no path at all
59625 # relative or not.
59626 case $0 in
59627 *[\\/]* ) as_myself=$0 ;;
59628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59629 for as_dir in $PATH
59630 do
59631 IFS=$as_save_IFS
59632 test -z "$as_dir" && as_dir=.
59633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
59634 done
59635
59636 ;;
59637 esac
59638 # We did not find ourselves, most probably we were run as `sh COMMAND'
59639 # in which case we are not to be found in the path.
59640 if test "x$as_myself" = x; then
59641 as_myself=$0
59642 fi
59643 if test ! -f "$as_myself"; then
59644 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
59645 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
59646 { (exit 1); exit 1; }; }
59647 fi
59648 case $CONFIG_SHELL in
59649 '')
59650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59651 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
59652 do
59653 IFS=$as_save_IFS
59654 test -z "$as_dir" && as_dir=.
59655 for as_base in sh bash ksh sh5; do
59656 case $as_dir in
59657 /*)
59658 if ("$as_dir/$as_base" -c '
59659 as_lineno_1=$LINENO
59660 as_lineno_2=$LINENO
59661 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
59662 test "x$as_lineno_1" != "x$as_lineno_2" &&
59663 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
59664 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
59665 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
59666 CONFIG_SHELL=$as_dir/$as_base
59667 export CONFIG_SHELL
59668 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
59669 fi;;
59670 esac
59671 done
59672 done
59673 ;;
59674 esac
59675
59676 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
59677 # uniformly replaced by the line number. The first 'sed' inserts a
59678 # line-number line before each line; the second 'sed' does the real
59679 # work. The second script uses 'N' to pair each line-number line
59680 # with the numbered line, and appends trailing '-' during
59681 # substitution so that $LINENO is not a special case at line end.
59682 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
59683 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
59684 sed '=' <$as_myself |
59685 sed '
59686 N
59687 s,$,-,
59688 : loop
59689 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
59690 t loop
59691 s,-$,,
59692 s,^['$as_cr_digits']*\n,,
59693 ' >$as_me.lineno &&
59694 chmod +x $as_me.lineno ||
59695 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
59696 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
59697 { (exit 1); exit 1; }; }
59698
59699 # Don't try to exec as it changes $[0], causing all sort of problems
59700 # (the dirname of $[0] is not the place where we might find the
59701 # original and so on. Autoconf is especially sensible to this).
59702 . ./$as_me.lineno
59703 # Exit status is that of the last command.
59704 exit
59705 }
59706
59707
59708 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
59709 *c*,-n*) ECHO_N= ECHO_C='
59710 ' ECHO_T=' ' ;;
59711 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
59712 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
59713 esac
59714
59715 if expr a : '\(a\)' >/dev/null 2>&1; then
59716 as_expr=expr
59717 else
59718 as_expr=false
59719 fi
59720
59721 rm -f conf$$ conf$$.exe conf$$.file
59722 echo >conf$$.file
59723 if ln -s conf$$.file conf$$ 2>/dev/null; then
59724 # We could just check for DJGPP; but this test a) works b) is more generic
59725 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
59726 if test -f conf$$.exe; then
59727 # Don't use ln at all; we don't have any links
59728 as_ln_s='cp -p'
59729 else
59730 as_ln_s='ln -s'
59731 fi
59732 elif ln conf$$.file conf$$ 2>/dev/null; then
59733 as_ln_s=ln
59734 else
59735 as_ln_s='cp -p'
59736 fi
59737 rm -f conf$$ conf$$.exe conf$$.file
59738
59739 if mkdir -p . 2>/dev/null; then
59740 as_mkdir_p=:
59741 else
59742 as_mkdir_p=false
59743 fi
59744
59745 as_executable_p="test -f"
59746
59747 # Sed expression to map a string onto a valid CPP name.
59748 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
59749
59750 # Sed expression to map a string onto a valid variable name.
59751 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
59752
59753
59754 # IFS
59755 # We need space, tab and new line, in precisely that order.
59756 as_nl='
59757 '
59758 IFS=" $as_nl"
59759
59760 # CDPATH.
59761 $as_unset CDPATH
59762
59763 exec 6>&1
59764
59765 # Open the log real soon, to keep \$[0] and so on meaningful, and to
59766 # report actual input values of CONFIG_FILES etc. instead of their
59767 # values after options handling. Logging --version etc. is OK.
59768 exec 5>>config.log
59769 {
59770 echo
59771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
59772 ## Running $as_me. ##
59773 _ASBOX
59774 } >&5
59775 cat >&5 <<_CSEOF
59776
59777 This file was extended by package-unused $as_me version-unused, which was
59778 generated by GNU Autoconf 2.57. Invocation command line was
59779
59780 CONFIG_FILES = $CONFIG_FILES
59781 CONFIG_HEADERS = $CONFIG_HEADERS
59782 CONFIG_LINKS = $CONFIG_LINKS
59783 CONFIG_COMMANDS = $CONFIG_COMMANDS
59784 $ $0 $@
59785
59786 _CSEOF
59787 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
59788 echo >&5
59789 _ACEOF
59790
59791 # Files that config.status was made for.
59792 if test -n "$ac_config_files"; then
59793 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
59794 fi
59795
59796 if test -n "$ac_config_headers"; then
59797 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
59798 fi
59799
59800 if test -n "$ac_config_links"; then
59801 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
59802 fi
59803
59804 if test -n "$ac_config_commands"; then
59805 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
59806 fi
59807
59808 cat >>$CONFIG_STATUS <<\_ACEOF
59809
59810 ac_cs_usage="\
59811 \`$as_me' instantiates files from templates according to the
59812 current configuration.
59813
59814 Usage: $0 [OPTIONS] [FILE]...
59815
59816 -h, --help print this help, then exit
59817 -V, --version print version number, then exit
59818 -q, --quiet do not print progress messages
59819 -d, --debug don't remove temporary files
59820 --recheck update $as_me by reconfiguring in the same conditions
59821 --file=FILE[:TEMPLATE]
59822 instantiate the configuration file FILE
59823 --header=FILE[:TEMPLATE]
59824 instantiate the configuration header FILE
59825
59826 Configuration files:
59827 $config_files
59828
59829 Configuration headers:
59830 $config_headers
59831
59832 Configuration commands:
59833 $config_commands
59834
59835 Report bugs to <bug-autoconf@gnu.org>."
59836 _ACEOF
59837
59838 cat >>$CONFIG_STATUS <<_ACEOF
59839 ac_cs_version="\\
59840 package-unused config.status version-unused
59841 configured by $0, generated by GNU Autoconf 2.57,
59842 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
59843
59844 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
59845 Free Software Foundation, Inc.
59846 This config.status script is free software; the Free Software Foundation
59847 gives unlimited permission to copy, distribute and modify it."
59848 srcdir=$srcdir
59849 INSTALL="$INSTALL"
59850 _ACEOF
59851
59852 cat >>$CONFIG_STATUS <<\_ACEOF
59853 # If no file are specified by the user, then we need to provide default
59854 # value. By we need to know if files were specified by the user.
59855 ac_need_defaults=:
59856 while test $# != 0
59857 do
59858 case $1 in
59859 --*=*)
59860 ac_option=`expr "x$1" : 'x\([^=]*\)='`
59861 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
59862 ac_shift=:
59863 ;;
59864 -*)
59865 ac_option=$1
59866 ac_optarg=$2
59867 ac_shift=shift
59868 ;;
59869 *) # This is not an option, so the user has probably given explicit
59870 # arguments.
59871 ac_option=$1
59872 ac_need_defaults=false;;
59873 esac
59874
59875 case $ac_option in
59876 # Handling of the options.
59877 _ACEOF
59878 cat >>$CONFIG_STATUS <<\_ACEOF
59879 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
59880 ac_cs_recheck=: ;;
59881 --version | --vers* | -V )
59882 echo "$ac_cs_version"; exit 0 ;;
59883 --he | --h)
59884 # Conflict between --help and --header
59885 { { echo "$as_me:$LINENO: error: ambiguous option: $1
59886 Try \`$0 --help' for more information." >&5
59887 echo "$as_me: error: ambiguous option: $1
59888 Try \`$0 --help' for more information." >&2;}
59889 { (exit 1); exit 1; }; };;
59890 --help | --hel | -h )
59891 echo "$ac_cs_usage"; exit 0 ;;
59892 --debug | --d* | -d )
59893 debug=: ;;
59894 --file | --fil | --fi | --f )
59895 $ac_shift
59896 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
59897 ac_need_defaults=false;;
59898 --header | --heade | --head | --hea )
59899 $ac_shift
59900 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
59901 ac_need_defaults=false;;
59902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
59903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
59904 ac_cs_silent=: ;;
59905
59906 # This is an error.
59907 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
59908 Try \`$0 --help' for more information." >&5
59909 echo "$as_me: error: unrecognized option: $1
59910 Try \`$0 --help' for more information." >&2;}
59911 { (exit 1); exit 1; }; } ;;
59912
59913 *) ac_config_targets="$ac_config_targets $1" ;;
59914
59915 esac
59916 shift
59917 done
59918
59919 ac_configure_extra_args=
59920
59921 if $ac_cs_silent; then
59922 exec 6>/dev/null
59923 ac_configure_extra_args="$ac_configure_extra_args --silent"
59924 fi
59925
59926 _ACEOF
59927 cat >>$CONFIG_STATUS <<_ACEOF
59928 if \$ac_cs_recheck; then
59929 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
59930 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
59931 fi
59932
59933 _ACEOF
59934
59935 cat >>$CONFIG_STATUS <<_ACEOF
59936 #
59937 # INIT-COMMANDS section.
59938 #
59939
59940
59941 srcdir="$srcdir"
59942 host="$host"
59943 target="$target"
59944 with_multisubdir="$with_multisubdir"
59945 with_multisrctop="$with_multisrctop"
59946 with_target_subdir="$with_target_subdir"
59947 ac_configure_args="${multilib_arg} ${ac_configure_args}"
59948 multi_basedir="$multi_basedir"
59949 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
59950 CC="$CC"
59951
59952 # Variables needed in config.status (file generation) which aren't already
59953 # passed by autoconf.
59954 SUBDIRS="$SUBDIRS"
59955
59956
59957 _ACEOF
59958
59959
59960
59961 cat >>$CONFIG_STATUS <<\_ACEOF
59962 for ac_config_target in $ac_config_targets
59963 do
59964 case "$ac_config_target" in
59965 # Handling of arguments.
59966 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
59967 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
59968 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
59969 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
59970 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
59971 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
59972 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
59973 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
59974 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
59975 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
59976 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
59977 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
59978 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
59979 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
59980 { (exit 1); exit 1; }; };;
59981 esac
59982 done
59983
59984 # If the user did not use the arguments to specify the items to instantiate,
59985 # then the envvar interface is used. Set only those that are not.
59986 # We use the long form for the default assignment because of an extremely
59987 # bizarre bug on SunOS 4.1.3.
59988 if $ac_need_defaults; then
59989 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
59990 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
59991 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
59992 fi
59993
59994 # Have a temporary directory for convenience. Make it in the build tree
59995 # simply because there is no reason to put it here, and in addition,
59996 # creating and moving files from /tmp can sometimes cause problems.
59997 # Create a temporary directory, and hook for its removal unless debugging.
59998 $debug ||
59999 {
60000 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
60001 trap '{ (exit 1); exit 1; }' 1 2 13 15
60002 }
60003
60004 # Create a (secure) tmp directory for tmp files.
60005
60006 {
60007 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
60008 test -n "$tmp" && test -d "$tmp"
60009 } ||
60010 {
60011 tmp=./confstat$$-$RANDOM
60012 (umask 077 && mkdir $tmp)
60013 } ||
60014 {
60015 echo "$me: cannot create a temporary directory in ." >&2
60016 { (exit 1); exit 1; }
60017 }
60018
60019 _ACEOF
60020
60021 cat >>$CONFIG_STATUS <<_ACEOF
60022
60023 #
60024 # CONFIG_FILES section.
60025 #
60026
60027 # No need to generate the scripts if there are no CONFIG_FILES.
60028 # This happens for instance when ./config.status config.h
60029 if test -n "\$CONFIG_FILES"; then
60030 # Protect against being on the right side of a sed subst in config.status.
60031 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
60032 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
60033 s,@SHELL@,$SHELL,;t t
60034 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
60035 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
60036 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
60037 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
60038 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
60039 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
60040 s,@exec_prefix@,$exec_prefix,;t t
60041 s,@prefix@,$prefix,;t t
60042 s,@program_transform_name@,$program_transform_name,;t t
60043 s,@bindir@,$bindir,;t t
60044 s,@sbindir@,$sbindir,;t t
60045 s,@libexecdir@,$libexecdir,;t t
60046 s,@datadir@,$datadir,;t t
60047 s,@sysconfdir@,$sysconfdir,;t t
60048 s,@sharedstatedir@,$sharedstatedir,;t t
60049 s,@localstatedir@,$localstatedir,;t t
60050 s,@libdir@,$libdir,;t t
60051 s,@includedir@,$includedir,;t t
60052 s,@oldincludedir@,$oldincludedir,;t t
60053 s,@infodir@,$infodir,;t t
60054 s,@mandir@,$mandir,;t t
60055 s,@build_alias@,$build_alias,;t t
60056 s,@host_alias@,$host_alias,;t t
60057 s,@target_alias@,$target_alias,;t t
60058 s,@DEFS@,$DEFS,;t t
60059 s,@ECHO_C@,$ECHO_C,;t t
60060 s,@ECHO_N@,$ECHO_N,;t t
60061 s,@ECHO_T@,$ECHO_T,;t t
60062 s,@LIBS@,$LIBS,;t t
60063 s,@libtool_VERSION@,$libtool_VERSION,;t t
60064 s,@multi_basedir@,$multi_basedir,;t t
60065 s,@build@,$build,;t t
60066 s,@build_cpu@,$build_cpu,;t t
60067 s,@build_vendor@,$build_vendor,;t t
60068 s,@build_os@,$build_os,;t t
60069 s,@host@,$host,;t t
60070 s,@host_cpu@,$host_cpu,;t t
60071 s,@host_vendor@,$host_vendor,;t t
60072 s,@host_os@,$host_os,;t t
60073 s,@target@,$target,;t t
60074 s,@target_cpu@,$target_cpu,;t t
60075 s,@target_vendor@,$target_vendor,;t t
60076 s,@target_os@,$target_os,;t t
60077 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
60078 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
60079 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
60080 s,@CYGPATH_W@,$CYGPATH_W,;t t
60081 s,@PACKAGE@,$PACKAGE,;t t
60082 s,@VERSION@,$VERSION,;t t
60083 s,@ACLOCAL@,$ACLOCAL,;t t
60084 s,@AUTOCONF@,$AUTOCONF,;t t
60085 s,@AUTOMAKE@,$AUTOMAKE,;t t
60086 s,@AUTOHEADER@,$AUTOHEADER,;t t
60087 s,@MAKEINFO@,$MAKEINFO,;t t
60088 s,@AMTAR@,$AMTAR,;t t
60089 s,@install_sh@,$install_sh,;t t
60090 s,@STRIP@,$STRIP,;t t
60091 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
60092 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
60093 s,@AWK@,$AWK,;t t
60094 s,@SET_MAKE@,$SET_MAKE,;t t
60095 s,@am__leading_dot@,$am__leading_dot,;t t
60096 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
60097 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
60098 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
60099 s,@CC@,$CC,;t t
60100 s,@ac_ct_CC@,$ac_ct_CC,;t t
60101 s,@EXEEXT@,$EXEEXT,;t t
60102 s,@OBJEXT@,$OBJEXT,;t t
60103 s,@CXX@,$CXX,;t t
60104 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
60105 s,@CFLAGS@,$CFLAGS,;t t
60106 s,@CXXFLAGS@,$CXXFLAGS,;t t
60107 s,@LN_S@,$LN_S,;t t
60108 s,@AS@,$AS,;t t
60109 s,@ac_ct_AS@,$ac_ct_AS,;t t
60110 s,@AR@,$AR,;t t
60111 s,@ac_ct_AR@,$ac_ct_AR,;t t
60112 s,@RANLIB@,$RANLIB,;t t
60113 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
60114 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
60115 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
60116 s,@MAINT@,$MAINT,;t t
60117 s,@LIBTOOL@,$LIBTOOL,;t t
60118 s,@CXXCPP@,$CXXCPP,;t t
60119 s,@CPPFLAGS@,$CPPFLAGS,;t t
60120 s,@enable_shared@,$enable_shared,;t t
60121 s,@enable_static@,$enable_static,;t t
60122 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
60123 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
60124 s,@LIBUNWIND_FLAG@,$LIBUNWIND_FLAG,;t t
60125 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
60126 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
60127 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
60128 s,@CSTDIO_H@,$CSTDIO_H,;t t
60129 s,@FPOS_H@,$FPOS_H,;t t
60130 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
60131 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
60132 s,@CPP@,$CPP,;t t
60133 s,@EGREP@,$EGREP,;t t
60134 s,@check_msgfmt@,$check_msgfmt,;t t
60135 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
60136 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
60137 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
60138 s,@USE_NLS@,$USE_NLS,;t t
60139 s,@CLOCALE_H@,$CLOCALE_H,;t t
60140 s,@CCODECVT_H@,$CCODECVT_H,;t t
60141 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
60142 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
60143 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
60144 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
60145 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
60146 s,@CMONEY_CC@,$CMONEY_CC,;t t
60147 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
60148 s,@CTIME_H@,$CTIME_H,;t t
60149 s,@CTIME_CC@,$CTIME_CC,;t t
60150 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
60151 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
60152 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
60153 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
60154 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
60155 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
60156 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
60157 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
60158 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
60159 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
60160 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
60161 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
60162 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
60163 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
60164 s,@WERROR@,$WERROR,;t t
60165 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
60166 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
60167 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
60168 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
60169 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
60170 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
60171 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
60172 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
60173 s,@baseline_dir@,$baseline_dir,;t t
60174 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
60175 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
60176 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
60177 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
60178 s,@ATOMICITY_INC_SRCDIR@,$ATOMICITY_INC_SRCDIR,;t t
60179 s,@FPOS_INC_SRCDIR@,$FPOS_INC_SRCDIR,;t t
60180 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
60181 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
60182 s,@gxx_include_dir@,$gxx_include_dir,;t t
60183 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
60184 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
60185 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
60186 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
60187 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
60188 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
60189 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
60190 s,@LIBOBJS@,$LIBOBJS,;t t
60191 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
60192 CEOF
60193
60194 _ACEOF
60195
60196 cat >>$CONFIG_STATUS <<\_ACEOF
60197 # Split the substitutions into bite-sized pieces for seds with
60198 # small command number limits, like on Digital OSF/1 and HP-UX.
60199 ac_max_sed_lines=48
60200 ac_sed_frag=1 # Number of current file.
60201 ac_beg=1 # First line for current file.
60202 ac_end=$ac_max_sed_lines # Line after last line for current file.
60203 ac_more_lines=:
60204 ac_sed_cmds=
60205 while $ac_more_lines; do
60206 if test $ac_beg -gt 1; then
60207 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
60208 else
60209 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
60210 fi
60211 if test ! -s $tmp/subs.frag; then
60212 ac_more_lines=false
60213 else
60214 # The purpose of the label and of the branching condition is to
60215 # speed up the sed processing (if there are no `@' at all, there
60216 # is no need to browse any of the substitutions).
60217 # These are the two extra sed commands mentioned above.
60218 (echo ':t
60219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
60220 if test -z "$ac_sed_cmds"; then
60221 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
60222 else
60223 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
60224 fi
60225 ac_sed_frag=`expr $ac_sed_frag + 1`
60226 ac_beg=$ac_end
60227 ac_end=`expr $ac_end + $ac_max_sed_lines`
60228 fi
60229 done
60230 if test -z "$ac_sed_cmds"; then
60231 ac_sed_cmds=cat
60232 fi
60233 fi # test -n "$CONFIG_FILES"
60234
60235 _ACEOF
60236 cat >>$CONFIG_STATUS <<\_ACEOF
60237 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
60238 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
60239 case $ac_file in
60240 - | *:- | *:-:* ) # input from stdin
60241 cat >$tmp/stdin
60242 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60243 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60244 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60246 * ) ac_file_in=$ac_file.in ;;
60247 esac
60248
60249 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
60250 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
60251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60252 X"$ac_file" : 'X\(//\)[^/]' \| \
60253 X"$ac_file" : 'X\(//\)$' \| \
60254 X"$ac_file" : 'X\(/\)' \| \
60255 . : '\(.\)' 2>/dev/null ||
60256 echo X"$ac_file" |
60257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60259 /^X\(\/\/\)$/{ s//\1/; q; }
60260 /^X\(\/\).*/{ s//\1/; q; }
60261 s/.*/./; q'`
60262 { if $as_mkdir_p; then
60263 mkdir -p "$ac_dir"
60264 else
60265 as_dir="$ac_dir"
60266 as_dirs=
60267 while test ! -d "$as_dir"; do
60268 as_dirs="$as_dir $as_dirs"
60269 as_dir=`(dirname "$as_dir") 2>/dev/null ||
60270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60271 X"$as_dir" : 'X\(//\)[^/]' \| \
60272 X"$as_dir" : 'X\(//\)$' \| \
60273 X"$as_dir" : 'X\(/\)' \| \
60274 . : '\(.\)' 2>/dev/null ||
60275 echo X"$as_dir" |
60276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60278 /^X\(\/\/\)$/{ s//\1/; q; }
60279 /^X\(\/\).*/{ s//\1/; q; }
60280 s/.*/./; q'`
60281 done
60282 test ! -n "$as_dirs" || mkdir $as_dirs
60283 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
60284 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
60285 { (exit 1); exit 1; }; }; }
60286
60287 ac_builddir=.
60288
60289 if test "$ac_dir" != .; then
60290 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
60291 # A "../" for each directory in $ac_dir_suffix.
60292 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
60293 else
60294 ac_dir_suffix= ac_top_builddir=
60295 fi
60296
60297 case $srcdir in
60298 .) # No --srcdir option. We are building in place.
60299 ac_srcdir=.
60300 if test -z "$ac_top_builddir"; then
60301 ac_top_srcdir=.
60302 else
60303 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
60304 fi ;;
60305 [\\/]* | ?:[\\/]* ) # Absolute path.
60306 ac_srcdir=$srcdir$ac_dir_suffix;
60307 ac_top_srcdir=$srcdir ;;
60308 *) # Relative path.
60309 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
60310 ac_top_srcdir=$ac_top_builddir$srcdir ;;
60311 esac
60312 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
60313 # absolute.
60314 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
60315 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
60316 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
60317 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
60318
60319
60320 case $INSTALL in
60321 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
60322 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
60323 esac
60324
60325 if test x"$ac_file" != x-; then
60326 { echo "$as_me:$LINENO: creating $ac_file" >&5
60327 echo "$as_me: creating $ac_file" >&6;}
60328 rm -f "$ac_file"
60329 fi
60330 # Let's still pretend it is `configure' which instantiates (i.e., don't
60331 # use $as_me), people would be surprised to read:
60332 # /* config.h. Generated by config.status. */
60333 if test x"$ac_file" = x-; then
60334 configure_input=
60335 else
60336 configure_input="$ac_file. "
60337 fi
60338 configure_input=$configure_input"Generated from `echo $ac_file_in |
60339 sed 's,.*/,,'` by configure."
60340
60341 # First look for the input files in the build tree, otherwise in the
60342 # src tree.
60343 ac_file_inputs=`IFS=:
60344 for f in $ac_file_in; do
60345 case $f in
60346 -) echo $tmp/stdin ;;
60347 [\\/$]*)
60348 # Absolute (can't be DOS-style, as IFS=:)
60349 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60350 echo "$as_me: error: cannot find input file: $f" >&2;}
60351 { (exit 1); exit 1; }; }
60352 echo $f;;
60353 *) # Relative
60354 if test -f "$f"; then
60355 # Build tree
60356 echo $f
60357 elif test -f "$srcdir/$f"; then
60358 # Source tree
60359 echo $srcdir/$f
60360 else
60361 # /dev/null tree
60362 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60363 echo "$as_me: error: cannot find input file: $f" >&2;}
60364 { (exit 1); exit 1; }; }
60365 fi;;
60366 esac
60367 done` || { (exit 1); exit 1; }
60368 _ACEOF
60369 cat >>$CONFIG_STATUS <<_ACEOF
60370 sed "$ac_vpsub
60371 $extrasub
60372 _ACEOF
60373 cat >>$CONFIG_STATUS <<\_ACEOF
60374 :t
60375 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
60376 s,@configure_input@,$configure_input,;t t
60377 s,@srcdir@,$ac_srcdir,;t t
60378 s,@abs_srcdir@,$ac_abs_srcdir,;t t
60379 s,@top_srcdir@,$ac_top_srcdir,;t t
60380 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
60381 s,@builddir@,$ac_builddir,;t t
60382 s,@abs_builddir@,$ac_abs_builddir,;t t
60383 s,@top_builddir@,$ac_top_builddir,;t t
60384 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
60385 s,@INSTALL@,$ac_INSTALL,;t t
60386 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
60387 rm -f $tmp/stdin
60388 if test x"$ac_file" != x-; then
60389 mv $tmp/out $ac_file
60390 else
60391 cat $tmp/out
60392 rm -f $tmp/out
60393 fi
60394
60395 # Run the commands associated with the file.
60396 case $ac_file in
60397 scripts/check_survey ) chmod +x scripts/check_survey ;;
60398 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
60399 esac
60400 done
60401 _ACEOF
60402 cat >>$CONFIG_STATUS <<\_ACEOF
60403
60404 #
60405 # CONFIG_HEADER section.
60406 #
60407
60408 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
60409 # NAME is the cpp macro being defined and VALUE is the value it is being given.
60410 #
60411 # ac_d sets the value in "#define NAME VALUE" lines.
60412 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
60413 ac_dB='[ ].*$,\1#\2'
60414 ac_dC=' '
60415 ac_dD=',;t'
60416 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
60417 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
60418 ac_uB='$,\1#\2define\3'
60419 ac_uC=' '
60420 ac_uD=',;t'
60421
60422 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
60423 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
60424 case $ac_file in
60425 - | *:- | *:-:* ) # input from stdin
60426 cat >$tmp/stdin
60427 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60428 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60429 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
60430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
60431 * ) ac_file_in=$ac_file.in ;;
60432 esac
60433
60434 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
60435 echo "$as_me: creating $ac_file" >&6;}
60436
60437 # First look for the input files in the build tree, otherwise in the
60438 # src tree.
60439 ac_file_inputs=`IFS=:
60440 for f in $ac_file_in; do
60441 case $f in
60442 -) echo $tmp/stdin ;;
60443 [\\/$]*)
60444 # Absolute (can't be DOS-style, as IFS=:)
60445 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60446 echo "$as_me: error: cannot find input file: $f" >&2;}
60447 { (exit 1); exit 1; }; }
60448 echo $f;;
60449 *) # Relative
60450 if test -f "$f"; then
60451 # Build tree
60452 echo $f
60453 elif test -f "$srcdir/$f"; then
60454 # Source tree
60455 echo $srcdir/$f
60456 else
60457 # /dev/null tree
60458 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
60459 echo "$as_me: error: cannot find input file: $f" >&2;}
60460 { (exit 1); exit 1; }; }
60461 fi;;
60462 esac
60463 done` || { (exit 1); exit 1; }
60464 # Remove the trailing spaces.
60465 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
60466
60467 _ACEOF
60468
60469 # Transform confdefs.h into two sed scripts, `conftest.defines' and
60470 # `conftest.undefs', that substitutes the proper values into
60471 # config.h.in to produce config.h. The first handles `#define'
60472 # templates, and the second `#undef' templates.
60473 # And first: Protect against being on the right side of a sed subst in
60474 # config.status. Protect against being in an unquoted here document
60475 # in config.status.
60476 rm -f conftest.defines conftest.undefs
60477 # Using a here document instead of a string reduces the quoting nightmare.
60478 # Putting comments in sed scripts is not portable.
60479 #
60480 # `end' is used to avoid that the second main sed command (meant for
60481 # 0-ary CPP macros) applies to n-ary macro definitions.
60482 # See the Autoconf documentation for `clear'.
60483 cat >confdef2sed.sed <<\_ACEOF
60484 s/[\\&,]/\\&/g
60485 s,[\\$`],\\&,g
60486 t clear
60487 : clear
60488 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
60489 t end
60490 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
60491 : end
60492 _ACEOF
60493 # If some macros were called several times there might be several times
60494 # the same #defines, which is useless. Nevertheless, we may not want to
60495 # sort them, since we want the *last* AC-DEFINE to be honored.
60496 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
60497 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
60498 rm -f confdef2sed.sed
60499
60500 # This sed command replaces #undef with comments. This is necessary, for
60501 # example, in the case of _POSIX_SOURCE, which is predefined and required
60502 # on some systems where configure will not decide to define it.
60503 cat >>conftest.undefs <<\_ACEOF
60504 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
60505 _ACEOF
60506
60507 # Break up conftest.defines because some shells have a limit on the size
60508 # of here documents, and old seds have small limits too (100 cmds).
60509 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
60510 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
60511 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
60512 echo ' :' >>$CONFIG_STATUS
60513 rm -f conftest.tail
60514 while grep . conftest.defines >/dev/null
60515 do
60516 # Write a limited-size here document to $tmp/defines.sed.
60517 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
60518 # Speed up: don't consider the non `#define' lines.
60519 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
60520 # Work around the forget-to-reset-the-flag bug.
60521 echo 't clr' >>$CONFIG_STATUS
60522 echo ': clr' >>$CONFIG_STATUS
60523 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
60524 echo 'CEOF
60525 sed -f $tmp/defines.sed $tmp/in >$tmp/out
60526 rm -f $tmp/in
60527 mv $tmp/out $tmp/in
60528 ' >>$CONFIG_STATUS
60529 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
60530 rm -f conftest.defines
60531 mv conftest.tail conftest.defines
60532 done
60533 rm -f conftest.defines
60534 echo ' fi # grep' >>$CONFIG_STATUS
60535 echo >>$CONFIG_STATUS
60536
60537 # Break up conftest.undefs because some shells have a limit on the size
60538 # of here documents, and old seds have small limits too (100 cmds).
60539 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
60540 rm -f conftest.tail
60541 while grep . conftest.undefs >/dev/null
60542 do
60543 # Write a limited-size here document to $tmp/undefs.sed.
60544 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
60545 # Speed up: don't consider the non `#undef'
60546 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
60547 # Work around the forget-to-reset-the-flag bug.
60548 echo 't clr' >>$CONFIG_STATUS
60549 echo ': clr' >>$CONFIG_STATUS
60550 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
60551 echo 'CEOF
60552 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
60553 rm -f $tmp/in
60554 mv $tmp/out $tmp/in
60555 ' >>$CONFIG_STATUS
60556 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
60557 rm -f conftest.undefs
60558 mv conftest.tail conftest.undefs
60559 done
60560 rm -f conftest.undefs
60561
60562 cat >>$CONFIG_STATUS <<\_ACEOF
60563 # Let's still pretend it is `configure' which instantiates (i.e., don't
60564 # use $as_me), people would be surprised to read:
60565 # /* config.h. Generated by config.status. */
60566 if test x"$ac_file" = x-; then
60567 echo "/* Generated by configure. */" >$tmp/config.h
60568 else
60569 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
60570 fi
60571 cat $tmp/in >>$tmp/config.h
60572 rm -f $tmp/in
60573 if test x"$ac_file" != x-; then
60574 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
60575 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
60576 echo "$as_me: $ac_file is unchanged" >&6;}
60577 else
60578 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
60579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60580 X"$ac_file" : 'X\(//\)[^/]' \| \
60581 X"$ac_file" : 'X\(//\)$' \| \
60582 X"$ac_file" : 'X\(/\)' \| \
60583 . : '\(.\)' 2>/dev/null ||
60584 echo X"$ac_file" |
60585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60587 /^X\(\/\/\)$/{ s//\1/; q; }
60588 /^X\(\/\).*/{ s//\1/; q; }
60589 s/.*/./; q'`
60590 { if $as_mkdir_p; then
60591 mkdir -p "$ac_dir"
60592 else
60593 as_dir="$ac_dir"
60594 as_dirs=
60595 while test ! -d "$as_dir"; do
60596 as_dirs="$as_dir $as_dirs"
60597 as_dir=`(dirname "$as_dir") 2>/dev/null ||
60598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60599 X"$as_dir" : 'X\(//\)[^/]' \| \
60600 X"$as_dir" : 'X\(//\)$' \| \
60601 X"$as_dir" : 'X\(/\)' \| \
60602 . : '\(.\)' 2>/dev/null ||
60603 echo X"$as_dir" |
60604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60606 /^X\(\/\/\)$/{ s//\1/; q; }
60607 /^X\(\/\).*/{ s//\1/; q; }
60608 s/.*/./; q'`
60609 done
60610 test ! -n "$as_dirs" || mkdir $as_dirs
60611 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
60612 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
60613 { (exit 1); exit 1; }; }; }
60614
60615 rm -f $ac_file
60616 mv $tmp/config.h $ac_file
60617 fi
60618 else
60619 cat $tmp/config.h
60620 rm -f $tmp/config.h
60621 fi
60622 # Compute $ac_file's index in $config_headers.
60623 _am_stamp_count=1
60624 for _am_header in $config_headers :; do
60625 case $_am_header in
60626 $ac_file | $ac_file:* )
60627 break ;;
60628 * )
60629 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
60630 esac
60631 done
60632 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
60633 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60634 X$ac_file : 'X\(//\)[^/]' \| \
60635 X$ac_file : 'X\(//\)$' \| \
60636 X$ac_file : 'X\(/\)' \| \
60637 . : '\(.\)' 2>/dev/null ||
60638 echo X$ac_file |
60639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60641 /^X\(\/\/\)$/{ s//\1/; q; }
60642 /^X\(\/\).*/{ s//\1/; q; }
60643 s/.*/./; q'`/stamp-h$_am_stamp_count
60644 done
60645 _ACEOF
60646 cat >>$CONFIG_STATUS <<\_ACEOF
60647
60648 #
60649 # CONFIG_COMMANDS section.
60650 #
60651 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
60652 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
60653 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
60654 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
60655 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60656 X"$ac_dest" : 'X\(//\)[^/]' \| \
60657 X"$ac_dest" : 'X\(//\)$' \| \
60658 X"$ac_dest" : 'X\(/\)' \| \
60659 . : '\(.\)' 2>/dev/null ||
60660 echo X"$ac_dest" |
60661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
60662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
60663 /^X\(\/\/\)$/{ s//\1/; q; }
60664 /^X\(\/\).*/{ s//\1/; q; }
60665 s/.*/./; q'`
60666 ac_builddir=.
60667
60668 if test "$ac_dir" != .; then
60669 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
60670 # A "../" for each directory in $ac_dir_suffix.
60671 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
60672 else
60673 ac_dir_suffix= ac_top_builddir=
60674 fi
60675
60676 case $srcdir in
60677 .) # No --srcdir option. We are building in place.
60678 ac_srcdir=.
60679 if test -z "$ac_top_builddir"; then
60680 ac_top_srcdir=.
60681 else
60682 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
60683 fi ;;
60684 [\\/]* | ?:[\\/]* ) # Absolute path.
60685 ac_srcdir=$srcdir$ac_dir_suffix;
60686 ac_top_srcdir=$srcdir ;;
60687 *) # Relative path.
60688 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
60689 ac_top_srcdir=$ac_top_builddir$srcdir ;;
60690 esac
60691 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
60692 # absolute.
60693 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
60694 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
60695 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
60696 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
60697
60698
60699 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
60700 echo "$as_me: executing $ac_dest commands" >&6;}
60701 case $ac_dest in
60702 default-1 )
60703 # Only add multilib support code if we just rebuilt the top-level
60704 # Makefile.
60705 case " $CONFIG_FILES " in
60706 *" Makefile "*)
60707 ac_file=Makefile . ${multi_basedir}/config-ml.in
60708 ;;
60709 esac ;;
60710 default ) if test -n "$CONFIG_FILES"; then
60711 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
60712 # that multilib installs will end up installed in the correct place.
60713 # The testsuite needs it for multilib-aware ABI baseline files.
60714 # To work around this not being passed down from config-ml.in ->
60715 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
60716 # append it here. Only modify Makefiles that have just been created.
60717 #
60718 # Also, get rid of this simulated-VPATH thing that automake does.
60719 cat > vpsed << \_EOF
60720 s!`test -f '$<' || echo '$(srcdir)/'`!!
60721 _EOF
60722 for i in $SUBDIRS; do
60723 case $CONFIG_FILES in
60724 *${i}/Makefile*)
60725 #echo "Adding MULTISUBDIR to $i/Makefile"
60726 sed -f vpsed $i/Makefile > tmp
60727 grep '^MULTISUBDIR =' Makefile >> tmp
60728 mv tmp $i/Makefile
60729 ;;
60730 esac
60731 done
60732 rm vpsed
60733 fi
60734 (cd include && ${MAKE-make})
60735 ;;
60736 esac
60737 done
60738 _ACEOF
60739
60740 cat >>$CONFIG_STATUS <<\_ACEOF
60741
60742 { (exit 0); exit 0; }
60743 _ACEOF
60744 chmod +x $CONFIG_STATUS
60745 ac_clean_files=$ac_clean_files_save
60746
60747
60748 # configure is writing to config.log, and then calls config.status.
60749 # config.status does its own redirection, appending to config.log.
60750 # Unfortunately, on DOS this fails, as config.log is still kept open
60751 # by configure, so config.status won't be able to write to it; its
60752 # output is simply discarded. So we exec the FD to /dev/null,
60753 # effectively closing config.log, so it can be properly (re)opened and
60754 # appended to by config.status. When coming back to configure, we
60755 # need to make the FD available again.
60756 if test "$no_create" != yes; then
60757 ac_cs_success=:
60758 ac_config_status_args=
60759 test "$silent" = yes &&
60760 ac_config_status_args="$ac_config_status_args --quiet"
60761 exec 5>/dev/null
60762 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
60763 exec 5>>config.log
60764 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
60765 # would make configure fail if this is the last instruction.
60766 $ac_cs_success || { (exit 1); exit 1; }
60767 fi
60768