OSDN Git Service

* emit-rtl.c: Update the comment about the file.
[pf3gnuchains/gcc-fork.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 GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_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 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-libstdcxx-pch  build pre-compiled libstdc++ headers
859                           [default=$is_hosted]
860   --enable-cstdio=PACKAGE use target-specific I/O package
861                           [default=stdio]
862   --enable-clocale[=MODEL]
863                           use MODEL for target locale package
864                           [default=auto]
865   --enable-nls            use Native Language Support (default)
866   --enable-cheaders=KIND  construct "C" headers for g++
867                           [default=$c_model]
868   --enable-c-mbchar       enable multibyte (wide) characters
869                           [default=yes]
870   --enable-c99            turns on ISO/IEC 9899:1999 support
871                           [default=yes]
872   --enable-long-long      enables I/O support for 'long long'
873                           [default=yes]
874   --enable-concept-checks use Boost-derived template checks [default=no]
875   --enable-libstdcxx-debug-flags=FLAGS
876                           pass compiler FLAGS when building debug library
877                           [default="-g3 -O0"]
878   --enable-libstdcxx-debug
879                           build extra debug library [default=no]
880   --enable-cxx-flags=FLAGS
881                           pass compiler FLAGS when building library
882                           [default=]
883   --enable-symvers=STYLE  enables symbol versioning of the shared library
884                           [default=yes]
885   --enable-version-specific-runtime-libs
886                           Specify that runtime libraries should be installed
887                           in a compiler-specific directory
888
889 Optional Packages:
890   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
891   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
892   --with-target-subdir=SUBDIR
893                           configuring in a subdirectory
894   --with-cross-host=HOST  configuring with a cross compiler
895   --with-newlib           assume newlib as a system C library
896   --with-gnu-ld           assume the C compiler uses GNU ld default=no
897   --with-pic              try to use only PIC/non-PIC objects default=use both
898   --with-gxx-include-dir=DIR
899                           installation directory for include files
900
901 Some influential environment variables:
902   CC          C compiler command
903   CFLAGS      C compiler flags
904   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
905               nonstandard directory <lib dir>
906   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
907               headers in a nonstandard directory <include dir>
908   CXX         C++ compiler command
909   CXXFLAGS    C++ compiler flags
910   CXXCPP      C++ preprocessor
911   CPP         C preprocessor
912
913 Use these variables to override the choices made by `configure' or to help
914 it to find libraries and programs with nonstandard names/locations.
915
916 _ACEOF
917 fi
918
919 if test "$ac_init_help" = "recursive"; then
920   # If there are subdirs, report their specific --help.
921   ac_popdir=`pwd`
922   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923     test -d $ac_dir || continue
924     ac_builddir=.
925
926 if test "$ac_dir" != .; then
927   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928   # A "../" for each directory in $ac_dir_suffix.
929   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 else
931   ac_dir_suffix= ac_top_builddir=
932 fi
933
934 case $srcdir in
935   .)  # No --srcdir option.  We are building in place.
936     ac_srcdir=.
937     if test -z "$ac_top_builddir"; then
938        ac_top_srcdir=.
939     else
940        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941     fi ;;
942   [\\/]* | ?:[\\/]* )  # Absolute path.
943     ac_srcdir=$srcdir$ac_dir_suffix;
944     ac_top_srcdir=$srcdir ;;
945   *) # Relative path.
946     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947     ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 esac
949 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
950 # absolute.
951 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
952 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
953 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
954 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
955
956     cd $ac_dir
957     # Check for guested configure; otherwise get Cygnus style configure.
958     if test -f $ac_srcdir/configure.gnu; then
959       echo
960       $SHELL $ac_srcdir/configure.gnu  --help=recursive
961     elif test -f $ac_srcdir/configure; then
962       echo
963       $SHELL $ac_srcdir/configure  --help=recursive
964     elif test -f $ac_srcdir/configure.ac ||
965            test -f $ac_srcdir/configure.in; then
966       echo
967       $ac_configure --help
968     else
969       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970     fi
971     cd $ac_popdir
972   done
973 fi
974
975 test -n "$ac_init_help" && exit 0
976 if $ac_init_version; then
977   cat <<\_ACEOF
978 package-unused configure version-unused
979 generated by GNU Autoconf 2.57
980
981 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
982 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986   exit 0
987 fi
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
992
993 It was created by package-unused $as_me version-unused, which was
994 generated by GNU Autoconf 2.57.  Invocation command line was
995
996   $ $0 $@
997
998 _ACEOF
999 {
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1004
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1013
1014 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1015 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1018 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1019 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1020 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1021
1022 _ASUNAME
1023
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1026 do
1027   IFS=$as_save_IFS
1028   test -z "$as_dir" && as_dir=.
1029   echo "PATH: $as_dir"
1030 done
1031
1032 } >&5
1033
1034 cat >&5 <<_ACEOF
1035
1036
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1040
1041 _ACEOF
1042
1043
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1055 do
1056   for ac_arg
1057   do
1058     case $ac_arg in
1059     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061     | -silent | --silent | --silen | --sile | --sil)
1062       continue ;;
1063     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065     esac
1066     case $ac_pass in
1067     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068     2)
1069       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070       if test $ac_must_keep_next = true; then
1071         ac_must_keep_next=false # Got value, back to normal.
1072       else
1073         case $ac_arg in
1074           *=* | --config-cache | -C | -disable-* | --disable-* \
1075           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077           | -with-* | --with-* | -without-* | --without-* | --x)
1078             case "$ac_configure_args0 " in
1079               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080             esac
1081             ;;
1082           -* ) ac_must_keep_next=true ;;
1083         esac
1084       fi
1085       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086       # Get rid of the leading space.
1087       ac_sep=" "
1088       ;;
1089     esac
1090   done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log.  We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101   # Save into config.log some information that might help in debugging.
1102   {
1103     echo
1104
1105     cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110     echo
1111     # The following way of writing the cache mishandles newlines in values,
1112 {
1113   (set) 2>&1 |
1114     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115     *ac_space=\ *)
1116       sed -n \
1117         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119       ;;
1120     *)
1121       sed -n \
1122         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123       ;;
1124     esac;
1125 }
1126     echo
1127
1128     cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133     echo
1134     for ac_var in $ac_subst_vars
1135     do
1136       eval ac_val=$`echo $ac_var`
1137       echo "$ac_var='"'"'$ac_val'"'"'"
1138     done | sort
1139     echo
1140
1141     if test -n "$ac_subst_files"; then
1142       cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147       echo
1148       for ac_var in $ac_subst_files
1149       do
1150         eval ac_val=$`echo $ac_var`
1151         echo "$ac_var='"'"'$ac_val'"'"'"
1152       done | sort
1153       echo
1154     fi
1155
1156     if test -s confdefs.h; then
1157       cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162       echo
1163       sed "/^$/d" confdefs.h | sort
1164       echo
1165     fi
1166     test "$ac_signal" != 0 &&
1167       echo "$as_me: caught signal $ac_signal"
1168     echo "$as_me: exit $exit_status"
1169   } >&5
1170   rm -f core core.* *.core &&
1171   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172     exit $exit_status
1173      ' 0
1174 for ac_signal in 1 2 13 15; do
1175   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1178
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1183
1184 # Predefined preprocessor variables.
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1209
1210
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214   if test "x$prefix" != xNONE; then
1215     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216   else
1217     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218   fi
1219 fi
1220 for ac_site_file in $CONFIG_SITE; do
1221   if test -r "$ac_site_file"; then
1222     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224     sed 's/^/| /' "$ac_site_file" >&5
1225     . "$ac_site_file"
1226   fi
1227 done
1228
1229 if test -r "$cache_file"; then
1230   # Some versions of bash will fail to source /dev/null (special
1231   # files actually), so we avoid doing that.
1232   if test -f "$cache_file"; then
1233     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235     case $cache_file in
1236       [\\/]* | ?:[\\/]* ) . $cache_file;;
1237       *)                      . ./$cache_file;;
1238     esac
1239   fi
1240 else
1241   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243   >$cache_file
1244 fi
1245
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252   eval ac_new_set=\$ac_env_${ac_var}_set
1253   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254   eval ac_new_val="\$ac_env_${ac_var}_value"
1255   case $ac_old_set,$ac_new_set in
1256     set,)
1257       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259       ac_cache_corrupted=: ;;
1260     ,set)
1261       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263       ac_cache_corrupted=: ;;
1264     ,);;
1265     *)
1266       if test "x$ac_old_val" != "x$ac_new_val"; then
1267         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1270 echo "$as_me:   former value:  $ac_old_val" >&2;}
1271         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1272 echo "$as_me:   current value: $ac_new_val" >&2;}
1273         ac_cache_corrupted=:
1274       fi;;
1275   esac
1276   # Pass precious variables to config.status.
1277   if test "$ac_new_set" = set; then
1278     case $ac_new_val in
1279     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281     *) ac_arg=$ac_var=$ac_new_val ;;
1282     esac
1283     case " $ac_configure_args " in
1284       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1285       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286     esac
1287   fi
1288 done
1289 if $ac_cache_corrupted; then
1290   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294    { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
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           ac_config_headers="$ac_config_headers config.h"
1331
1332
1333 # This works around the fact that libtool configuration may change LD
1334 # for this particular configuration, but some shells, instead of
1335 # keeping the changes in LD private, export them just because LD is
1336 # exported.  Only used at the end of this file.
1337 ### am handles this now?  ORIGINAL_LD_FOR_MULTILIBS=$LD
1338
1339 # For libtool versioning info, format is CURRENT:REVISION:AGE
1340 libtool_VERSION=6:0:0
1341
1342
1343 # Find the rest of the source tree framework.
1344
1345   # Sets up multi_basedir, which is srcdir/.. plus the usual
1346   # "multi_source_toprel_bottom_adjust" lunacy as needed.
1347   # Default to --enable-multilib
1348 # Check whether --enable-multilib or --disable-multilib was given.
1349 if test "${enable_multilib+set}" = set; then
1350   enableval="$enable_multilib"
1351   case "$enableval" in
1352   yes) multilib=yes ;;
1353   no)  multilib=no ;;
1354   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1355 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1356    { (exit 1); exit 1; }; } ;;
1357  esac
1358 else
1359   multilib=yes
1360 fi;
1361
1362 # We may get other options which we leave undocumented:
1363 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1364 # See config-ml.in if you want the gory details.
1365
1366 if test "$srcdir" = "."; then
1367   if test "$with_target_subdir" != "."; then
1368     multi_basedir="$srcdir/$with_multisrctop../.."
1369   else
1370     multi_basedir="$srcdir/$with_multisrctop.."
1371   fi
1372 else
1373   multi_basedir="$srcdir/.."
1374 fi
1375
1376
1377           ac_config_commands="$ac_config_commands default-1"
1378
1379
1380   # The generated code is exactly the same, except that automake's looks in
1381   # ".. $srcdir/.." and autoconf's looks in multi_basedir.  Apparently other
1382   # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1383   # know what they are or what the other differences might be (and they keep
1384   # changing anyhow).
1385   #
1386   # Looking in multi_basedir seems smarter, so actually execute that branch.
1387   if false; then
1388     # this is for automake
1389     ac_aux_dir=
1390 for ac_dir in .. $srcdir/..; do
1391   if test -f $ac_dir/install-sh; then
1392     ac_aux_dir=$ac_dir
1393     ac_install_sh="$ac_aux_dir/install-sh -c"
1394     break
1395   elif test -f $ac_dir/install.sh; then
1396     ac_aux_dir=$ac_dir
1397     ac_install_sh="$ac_aux_dir/install.sh -c"
1398     break
1399   elif test -f $ac_dir/shtool; then
1400     ac_aux_dir=$ac_dir
1401     ac_install_sh="$ac_aux_dir/shtool install -c"
1402     break
1403   fi
1404 done
1405 if test -z "$ac_aux_dir"; then
1406   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1407 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1408    { (exit 1); exit 1; }; }
1409 fi
1410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1412 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413
1414   else
1415     # this is for autoconf
1416     ac_aux_dir=
1417 for ac_dir in ${multi_basedir}; do
1418   if test -f $ac_dir/install-sh; then
1419     ac_aux_dir=$ac_dir
1420     ac_install_sh="$ac_aux_dir/install-sh -c"
1421     break
1422   elif test -f $ac_dir/install.sh; then
1423     ac_aux_dir=$ac_dir
1424     ac_install_sh="$ac_aux_dir/install.sh -c"
1425     break
1426   elif test -f $ac_dir/shtool; then
1427     ac_aux_dir=$ac_dir
1428     ac_install_sh="$ac_aux_dir/shtool install -c"
1429     break
1430   fi
1431 done
1432 if test -z "$ac_aux_dir"; then
1433   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1434 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1435    { (exit 1); exit 1; }; }
1436 fi
1437 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1438 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1439 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1440
1441   fi
1442
1443
1444
1445 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1446 #
1447 # You will slowly go insane if you do not grok the following fact:  when
1448 # building v3 as part of the compiler, the top-level /target/ becomes the
1449 # library's /host/.  configure then causes --target to default to --host,
1450 # exactly like any other package using autoconf.  Therefore, 'target' and
1451 # 'host' will always be the same.  This makes sense both for native and
1452 # cross compilers, just think about it for a little while.  :-)
1453 #
1454 # Also, if v3 is being configured as part of a cross compiler, the top-level
1455 # configure script will pass the "real" host as $with_cross_host.
1456 #
1457 # Do not delete or change the following two lines.  For why, see
1458 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1459 # Make sure we can run config.sub.
1460 $ac_config_sub sun4 >/dev/null 2>&1 ||
1461   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1462 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1463    { (exit 1); exit 1; }; }
1464
1465 echo "$as_me:$LINENO: checking build system type" >&5
1466 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1467 if test "${ac_cv_build+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   ac_cv_build_alias=$build_alias
1471 test -z "$ac_cv_build_alias" &&
1472   ac_cv_build_alias=`$ac_config_guess`
1473 test -z "$ac_cv_build_alias" &&
1474   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1475 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1476    { (exit 1); exit 1; }; }
1477 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1478   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1480    { (exit 1); exit 1; }; }
1481
1482 fi
1483 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1484 echo "${ECHO_T}$ac_cv_build" >&6
1485 build=$ac_cv_build
1486 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1487 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1488 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489
1490
1491 echo "$as_me:$LINENO: checking host system type" >&5
1492 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1493 if test "${ac_cv_host+set}" = set; then
1494   echo $ECHO_N "(cached) $ECHO_C" >&6
1495 else
1496   ac_cv_host_alias=$host_alias
1497 test -z "$ac_cv_host_alias" &&
1498   ac_cv_host_alias=$ac_cv_build_alias
1499 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1500   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1501 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1502    { (exit 1); exit 1; }; }
1503
1504 fi
1505 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1506 echo "${ECHO_T}$ac_cv_host" >&6
1507 host=$ac_cv_host
1508 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1509 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1510 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1511
1512
1513 echo "$as_me:$LINENO: checking target system type" >&5
1514 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1515 if test "${ac_cv_target+set}" = set; then
1516   echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518   ac_cv_target_alias=$target_alias
1519 test "x$ac_cv_target_alias" = "x" &&
1520   ac_cv_target_alias=$ac_cv_host_alias
1521 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1522   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1523 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1524    { (exit 1); exit 1; }; }
1525
1526 fi
1527 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1528 echo "${ECHO_T}$ac_cv_target" >&6
1529 target=$ac_cv_target
1530 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533
1534
1535 # The aliases save the names the user supplied, while $host etc.
1536 # will get canonicalized.
1537 test -n "$target_alias" &&
1538   test "$program_prefix$program_suffix$program_transform_name" = \
1539     NONENONEs,x,x, &&
1540   program_prefix=${target_alias}-
1541 target_alias=${target_alias-$host_alias}
1542
1543 # Handy for debugging:
1544 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1545
1546 if test "$build" != "$host"; then
1547   # We are being configured with some form of cross compiler.
1548   GLIBCXX_IS_NATIVE=false
1549
1550 else
1551   GLIBCXX_IS_NATIVE=true
1552 fi
1553
1554 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1555 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1556 #  1.x:  minimum required version
1557 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1558 #              of other PACKAGE_* variables will, however, and there's nothing
1559 #              we can do about that; they come from AC_INIT).
1560 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1561 #            file in the top srcdir, etc, etc), so stop complaining.
1562 #  no-dependencies:  turns off auto dependency generation (just for now)
1563 #  -Wall:  turns on all automake warnings...
1564 #  -Wno-portability:  ...except this one, since GNU make is now required.
1565 am__api_version="1.7"
1566 # Find a good install program.  We prefer a C program (faster),
1567 # so one script is as good as another.  But avoid the broken or
1568 # incompatible versions:
1569 # SysV /etc/install, /usr/sbin/install
1570 # SunOS /usr/etc/install
1571 # IRIX /sbin/install
1572 # AIX /bin/install
1573 # AmigaOS /C/install, which installs bootblocks on floppy discs
1574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1577 # ./install, which can be erroneously created by make from ./install.sh.
1578 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1579 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1580 if test -z "$INSTALL"; then
1581 if test "${ac_cv_path_install+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   # Account for people who put trailing slashes in PATH elements.
1590 case $as_dir/ in
1591   ./ | .// | /cC/* | \
1592   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1593   /usr/ucb/* ) ;;
1594   *)
1595     # OSF1 and SCO ODT 3.0 have their own names for install.
1596     # Don't use installbsd from OSF since it installs stuff as root
1597     # by default.
1598     for ac_prog in ginstall scoinst install; do
1599       for ac_exec_ext in '' $ac_executable_extensions; do
1600         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1601           if test $ac_prog = install &&
1602             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603             # AIX install.  It has an incompatible calling convention.
1604             :
1605           elif test $ac_prog = install &&
1606             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1607             # program-specific install script used by HP pwplus--don't use.
1608             :
1609           else
1610             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1611             break 3
1612           fi
1613         fi
1614       done
1615     done
1616     ;;
1617 esac
1618 done
1619
1620
1621 fi
1622   if test "${ac_cv_path_install+set}" = set; then
1623     INSTALL=$ac_cv_path_install
1624   else
1625     # As a last resort, use the slow shell script.  We don't cache a
1626     # path for INSTALL within a source directory, because that will
1627     # break other packages using the cache if that directory is
1628     # removed, or if the path is relative.
1629     INSTALL=$ac_install_sh
1630   fi
1631 fi
1632 echo "$as_me:$LINENO: result: $INSTALL" >&5
1633 echo "${ECHO_T}$INSTALL" >&6
1634
1635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1636 # It thinks the first close brace ends the variable substitution.
1637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1638
1639 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1640
1641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1642
1643 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1644 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1645 # Just in case
1646 sleep 1
1647 echo timestamp > conftest.file
1648 # Do `set' in a subshell so we don't clobber the current shell's
1649 # arguments.  Must try -L first in case configure is actually a
1650 # symlink; some systems play weird games with the mod time of symlinks
1651 # (eg FreeBSD returns the mod time of the symlink's containing
1652 # directory).
1653 if (
1654    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1655    if test "$*" = "X"; then
1656       # -L didn't work.
1657       set X `ls -t $srcdir/configure conftest.file`
1658    fi
1659    rm -f conftest.file
1660    if test "$*" != "X $srcdir/configure conftest.file" \
1661       && test "$*" != "X conftest.file $srcdir/configure"; then
1662
1663       # If neither matched, then we have a broken ls.  This can happen
1664       # if, for instance, CONFIG_SHELL is bash and it inherits a
1665       # broken ls alias from the environment.  This has actually
1666       # happened.  Such a system could not be considered "sane".
1667       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1668 alias in your environment" >&5
1669 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1670 alias in your environment" >&2;}
1671    { (exit 1); exit 1; }; }
1672    fi
1673
1674    test "$2" = conftest.file
1675    )
1676 then
1677    # Ok.
1678    :
1679 else
1680    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1681 Check your system clock" >&5
1682 echo "$as_me: error: newly created file is older than distributed files!
1683 Check your system clock" >&2;}
1684    { (exit 1); exit 1; }; }
1685 fi
1686 echo "$as_me:$LINENO: result: yes" >&5
1687 echo "${ECHO_T}yes" >&6
1688 test "$program_prefix" != NONE &&
1689   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1690 # Use a double $ so make ignores it.
1691 test "$program_suffix" != NONE &&
1692   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1693 # Double any \ or $.  echo might interpret backslashes.
1694 # By default was `s,x,x', remove it if useless.
1695 cat <<\_ACEOF >conftest.sed
1696 s/[\\$]/&&/g;s/;s,x,x,$//
1697 _ACEOF
1698 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1699 rm conftest.sed
1700
1701
1702 # expand $ac_aux_dir to an absolute path
1703 am_aux_dir=`cd $ac_aux_dir && pwd`
1704
1705 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1706 # Use eval to expand $SHELL
1707 if eval "$MISSING --run true"; then
1708   am_missing_run="$MISSING --run "
1709 else
1710   am_missing_run=
1711   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1712 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1713 fi
1714
1715 for ac_prog in gawk mawk nawk awk
1716 do
1717   # Extract the first word of "$ac_prog", so it can be a program name with args.
1718 set dummy $ac_prog; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_AWK+set}" = set; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   if test -n "$AWK"; then
1725   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1726 else
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   for ac_exec_ext in '' $ac_executable_extensions; do
1733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734     ac_cv_prog_AWK="$ac_prog"
1735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736     break 2
1737   fi
1738 done
1739 done
1740
1741 fi
1742 fi
1743 AWK=$ac_cv_prog_AWK
1744 if test -n "$AWK"; then
1745   echo "$as_me:$LINENO: result: $AWK" >&5
1746 echo "${ECHO_T}$AWK" >&6
1747 else
1748   echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
1751
1752   test -n "$AWK" && break
1753 done
1754
1755 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1756 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1758 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   cat >conftest.make <<\_ACEOF
1762 all:
1763         @echo 'ac_maketemp="$(MAKE)"'
1764 _ACEOF
1765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1766 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1767 if test -n "$ac_maketemp"; then
1768   eval ac_cv_prog_make_${ac_make}_set=yes
1769 else
1770   eval ac_cv_prog_make_${ac_make}_set=no
1771 fi
1772 rm -f conftest.make
1773 fi
1774 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1775   echo "$as_me:$LINENO: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1777   SET_MAKE=
1778 else
1779   echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1781   SET_MAKE="MAKE=${MAKE-make}"
1782 fi
1783
1784 rm -rf .tst 2>/dev/null
1785 mkdir .tst 2>/dev/null
1786 if test -d .tst; then
1787   am__leading_dot=.
1788 else
1789   am__leading_dot=_
1790 fi
1791 rmdir .tst 2>/dev/null
1792
1793  # test to see if srcdir already configured
1794 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1795    test -f $srcdir/config.status; then
1796   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1797 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1798    { (exit 1); exit 1; }; }
1799 fi
1800
1801 # test whether we have cygpath
1802 if test -z "$CYGPATH_W"; then
1803   if (cygpath --version) >/dev/null 2>/dev/null; then
1804     CYGPATH_W='cygpath -w'
1805   else
1806     CYGPATH_W=echo
1807   fi
1808 fi
1809
1810
1811 # Define the identity of the package.
1812  PACKAGE='libstdc++'
1813  VERSION='version-unused'
1814
1815
1816 # Some tools Automake needs.
1817
1818 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1819
1820
1821 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1822
1823
1824 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1825
1826
1827 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1828
1829
1830 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1831
1832
1833 AMTAR=${AMTAR-"${am_missing_run}tar"}
1834
1835 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836
1837 # Installed binaries are usually stripped using `strip' when the user
1838 # run `make install-strip'.  However `strip' might not be the right
1839 # tool to use in cross-compilation environments, therefore Automake
1840 # will honor the `STRIP' environment variable to overrule this program.
1841 if test "$cross_compiling" != no; then
1842   if test -n "$ac_tool_prefix"; then
1843   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}strip; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_STRIP+set}" = set; then
1848   echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850   if test -n "$STRIP"; then
1851   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1855 do
1856   IFS=$as_save_IFS
1857   test -z "$as_dir" && as_dir=.
1858   for ac_exec_ext in '' $ac_executable_extensions; do
1859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862     break 2
1863   fi
1864 done
1865 done
1866
1867 fi
1868 fi
1869 STRIP=$ac_cv_prog_STRIP
1870 if test -n "$STRIP"; then
1871   echo "$as_me:$LINENO: result: $STRIP" >&5
1872 echo "${ECHO_T}$STRIP" >&6
1873 else
1874   echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878 fi
1879 if test -z "$ac_cv_prog_STRIP"; then
1880   ac_ct_STRIP=$STRIP
1881   # Extract the first word of "strip", so it can be a program name with args.
1882 set dummy strip; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$ac_ct_STRIP"; then
1889   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_ac_ct_STRIP="strip"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1906 fi
1907 fi
1908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909 if test -n "$ac_ct_STRIP"; then
1910   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911 echo "${ECHO_T}$ac_ct_STRIP" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917   STRIP=$ac_ct_STRIP
1918 else
1919   STRIP="$ac_cv_prog_STRIP"
1920 fi
1921
1922 fi
1923 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924
1925 # We need awk for the "check" target.  The system "awk" is bad on
1926 # some platforms.
1927
1928
1929
1930
1931 # Runs configure.host, finds CC, CXX, and assorted other critical bits.  Sets
1932 # up critical shell variables.
1933
1934   # Keep these sync'd with the list in Makefile.am.  The first provides an
1935   # expandable list at autoconf time; the second provides an expandable list
1936   # (i.e., shell variable) at configure time.
1937
1938   SUBDIRS='include libmath libsupc++ src po testsuite'
1939
1940   # These need to be absolute paths, yet at the same time need to
1941   # canonicalize only relative paths, because then amd will not unmount
1942   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1943   glibcxx_builddir=`${PWDCMD-pwd}`
1944   case $srcdir in
1945     \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1946     *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1947   esac
1948   toplevel_srcdir=${glibcxx_srcdir}/..
1949
1950
1951
1952
1953   # We use these options to decide which functions to include.  They are
1954   # set from the top level.
1955
1956 # Check whether --with-target-subdir or --without-target-subdir was given.
1957 if test "${with_target_subdir+set}" = set; then
1958   withval="$with_target_subdir"
1959
1960 fi;
1961
1962
1963 # Check whether --with-cross-host or --without-cross-host was given.
1964 if test "${with_cross_host+set}" = set; then
1965   withval="$with_cross_host"
1966
1967 fi;
1968
1969
1970 # Check whether --with-newlib or --without-newlib was given.
1971 if test "${with_newlib+set}" = set; then
1972   withval="$with_newlib"
1973
1974 fi;
1975
1976   # We're almost certainly being configured before anything else which uses
1977   # C++, so all of our AC_PROG_* discoveries will be cached.  It's vital that
1978   # we not cache the value of CXX that we "discover" here, because it's set
1979   # to something unique for us and libjava.  Other target libraries need to
1980   # find CXX for themselves.  We yank the rug out from under the normal AC_*
1981   # process by sneakily renaming the cache variable.  This also lets us debug
1982   # the value of "our" CXX in postmortems.
1983   #
1984   # We must also force CXX to /not/ be a precious variable, otherwise the
1985   # wrong (non-multilib-adjusted) value will be used in multilibs.  This
1986   # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS.  And as a side
1987   # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
1988   # that ourselves.  Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
1989   #
1990   # -fno-builtin must be present here so that a non-conflicting form of
1991   # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
1992
1993
1994
1995
1996   save_CXXFLAGS="$CXXFLAGS"
1997   CXXFLAGS="$CXXFLAGS -fno-builtin"
1998   ac_ext=c
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 if test -n "$ac_tool_prefix"; then
2004   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   if test -n "$CC"; then
2012   ac_cv_prog_CC="$CC" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023     break 2
2024   fi
2025 done
2026 done
2027
2028 fi
2029 fi
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032   echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6
2034 else
2035   echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2037 fi
2038
2039 fi
2040 if test -z "$ac_cv_prog_CC"; then
2041   ac_ct_CC=$CC
2042   # Extract the first word of "gcc", so it can be a program name with args.
2043 set dummy gcc; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   if test -n "$ac_ct_CC"; then
2050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     ac_cv_prog_ac_ct_CC="gcc"
2060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061     break 2
2062   fi
2063 done
2064 done
2065
2066 fi
2067 fi
2068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2069 if test -n "$ac_ct_CC"; then
2070   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2071 echo "${ECHO_T}$ac_ct_CC" >&6
2072 else
2073   echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2075 fi
2076
2077   CC=$ac_ct_CC
2078 else
2079   CC="$ac_cv_prog_CC"
2080 fi
2081
2082 if test -z "$CC"; then
2083   if test -n "$ac_tool_prefix"; then
2084   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2085 set dummy ${ac_tool_prefix}cc; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_CC+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test -n "$CC"; then
2092   ac_cv_prog_CC="$CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101     ac_cv_prog_CC="${ac_tool_prefix}cc"
2102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107
2108 fi
2109 fi
2110 CC=$ac_cv_prog_CC
2111 if test -n "$CC"; then
2112   echo "$as_me:$LINENO: result: $CC" >&5
2113 echo "${ECHO_T}$CC" >&6
2114 else
2115   echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2117 fi
2118
2119 fi
2120 if test -z "$ac_cv_prog_CC"; then
2121   ac_ct_CC=$CC
2122   # Extract the first word of "cc", so it can be a program name with args.
2123 set dummy cc; ac_word=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   if test -n "$ac_ct_CC"; then
2130   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135   IFS=$as_save_IFS
2136   test -z "$as_dir" && as_dir=.
2137   for ac_exec_ext in '' $ac_executable_extensions; do
2138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139     ac_cv_prog_ac_ct_CC="cc"
2140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141     break 2
2142   fi
2143 done
2144 done
2145
2146 fi
2147 fi
2148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2149 if test -n "$ac_ct_CC"; then
2150   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2151 echo "${ECHO_T}$ac_ct_CC" >&6
2152 else
2153   echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2155 fi
2156
2157   CC=$ac_ct_CC
2158 else
2159   CC="$ac_cv_prog_CC"
2160 fi
2161
2162 fi
2163 if test -z "$CC"; then
2164   # Extract the first word of "cc", so it can be a program name with args.
2165 set dummy cc; ac_word=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   if test -n "$CC"; then
2172   ac_cv_prog_CC="$CC" # Let the user override the test.
2173 else
2174   ac_prog_rejected=no
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2182     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2183        ac_prog_rejected=yes
2184        continue
2185      fi
2186     ac_cv_prog_CC="cc"
2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188     break 2
2189   fi
2190 done
2191 done
2192
2193 if test $ac_prog_rejected = yes; then
2194   # We found a bogon in the path, so make sure we never use it.
2195   set dummy $ac_cv_prog_CC
2196   shift
2197   if test $# != 0; then
2198     # We chose a different compiler from the bogus one.
2199     # However, it has the same basename, so the bogon will be chosen
2200     # first if we set CC to just the basename; use the full file name.
2201     shift
2202     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2203   fi
2204 fi
2205 fi
2206 fi
2207 CC=$ac_cv_prog_CC
2208 if test -n "$CC"; then
2209   echo "$as_me:$LINENO: result: $CC" >&5
2210 echo "${ECHO_T}$CC" >&6
2211 else
2212   echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6
2214 fi
2215
2216 fi
2217 if test -z "$CC"; then
2218   if test -n "$ac_tool_prefix"; then
2219   for ac_prog in cl
2220   do
2221     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2223 echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_CC+set}" = set; then
2226   echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228   if test -n "$CC"; then
2229   ac_cv_prog_CC="$CC" # Let the user override the test.
2230 else
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234   IFS=$as_save_IFS
2235   test -z "$as_dir" && as_dir=.
2236   for ac_exec_ext in '' $ac_executable_extensions; do
2237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240     break 2
2241   fi
2242 done
2243 done
2244
2245 fi
2246 fi
2247 CC=$ac_cv_prog_CC
2248 if test -n "$CC"; then
2249   echo "$as_me:$LINENO: result: $CC" >&5
2250 echo "${ECHO_T}$CC" >&6
2251 else
2252   echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6
2254 fi
2255
2256     test -n "$CC" && break
2257   done
2258 fi
2259 if test -z "$CC"; then
2260   ac_ct_CC=$CC
2261   for ac_prog in cl
2262 do
2263   # Extract the first word of "$ac_prog", so it can be a program name with args.
2264 set dummy $ac_prog; ac_word=$2
2265 echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2268   echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270   if test -n "$ac_ct_CC"; then
2271   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2272 else
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276   IFS=$as_save_IFS
2277   test -z "$as_dir" && as_dir=.
2278   for ac_exec_ext in '' $ac_executable_extensions; do
2279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280     ac_cv_prog_ac_ct_CC="$ac_prog"
2281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282     break 2
2283   fi
2284 done
2285 done
2286
2287 fi
2288 fi
2289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2290 if test -n "$ac_ct_CC"; then
2291   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2292 echo "${ECHO_T}$ac_ct_CC" >&6
2293 else
2294   echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6
2296 fi
2297
2298   test -n "$ac_ct_CC" && break
2299 done
2300
2301   CC=$ac_ct_CC
2302 fi
2303
2304 fi
2305
2306
2307 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2308 See \`config.log' for more details." >&5
2309 echo "$as_me: error: no acceptable C compiler found in \$PATH
2310 See \`config.log' for more details." >&2;}
2311    { (exit 1); exit 1; }; }
2312
2313 # Provide some information about the compiler.
2314 echo "$as_me:$LINENO:" \
2315      "checking for C compiler version" >&5
2316 ac_compiler=`set X $ac_compile; echo $2`
2317 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2318   (eval $ac_compiler --version </dev/null >&5) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2323   (eval $ac_compiler -v </dev/null >&5) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2328   (eval $ac_compiler -V </dev/null >&5) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }
2332
2333 cat >conftest.$ac_ext <<_ACEOF
2334 #line $LINENO "configure"
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340
2341 int
2342 main ()
2343 {
2344
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 # FIXME: Cleanup?
2350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2351   (eval $ac_link) 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); }; then
2355   gcc_no_link=no
2356 else
2357   gcc_no_link=yes
2358 fi
2359
2360 if test x$gcc_no_link = xyes; then
2361   # Setting cross_compile will disable run tests; it will
2362   # also disable AC_CHECK_FILE but that's generally
2363   # correct if we can't link.
2364   cross_compiling=yes
2365   EXEEXT=
2366 else
2367   cat >conftest.$ac_ext <<_ACEOF
2368 #line $LINENO "configure"
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 ac_clean_files_save=$ac_clean_files
2384 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2385 # Try to create an executable without -o first, disregard a.out.
2386 # It will help us diagnose broken compilers, and finding out an intuition
2387 # of exeext.
2388 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2389 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2390 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2391 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2392   (eval $ac_link_default) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; then
2396   # Find the output, starting from the most likely.  This scheme is
2397 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2398 # resort.
2399
2400 # Be careful to initialize this variable, since it used to be cached.
2401 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2402 ac_cv_exeext=
2403 # b.out is created by i960 compilers.
2404 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2405 do
2406   test -f "$ac_file" || continue
2407   case $ac_file in
2408     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2409         ;;
2410     conftest.$ac_ext )
2411         # This is the source file.
2412         ;;
2413     [ab].out )
2414         # We found the default executable, but exeext='' is most
2415         # certainly right.
2416         break;;
2417     *.* )
2418         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419         # FIXME: I believe we export ac_cv_exeext for Libtool,
2420         # but it would be cool to find out if it's true.  Does anybody
2421         # maintain Libtool? --akim.
2422         export ac_cv_exeext
2423         break;;
2424     * )
2425         break;;
2426   esac
2427 done
2428 else
2429   echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&2;}
2436    { (exit 77); exit 77; }; }
2437 fi
2438
2439 ac_exeext=$ac_cv_exeext
2440 echo "$as_me:$LINENO: result: $ac_file" >&5
2441 echo "${ECHO_T}$ac_file" >&6
2442
2443 # Check the compiler produces executables we can run.  If not, either
2444 # the compiler is broken, or we cross compile.
2445 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2446 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2447 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2448 # If not cross compiling, check that we can run a simple program.
2449 if test "$cross_compiling" != yes; then
2450   if { ac_try='./$ac_file'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456     cross_compiling=no
2457   else
2458     if test "$cross_compiling" = maybe; then
2459         cross_compiling=yes
2460     else
2461         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2462 If you meant to cross compile, use \`--host'.
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&2;}
2467    { (exit 1); exit 1; }; }
2468     fi
2469   fi
2470 fi
2471 echo "$as_me:$LINENO: result: yes" >&5
2472 echo "${ECHO_T}yes" >&6
2473
2474 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2475 ac_clean_files=$ac_clean_files_save
2476 # Check the compiler produces executables we can run.  If not, either
2477 # the compiler is broken, or we cross compile.
2478 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2479 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2480 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2481 echo "${ECHO_T}$cross_compiling" >&6
2482
2483 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2484 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2486   (eval $ac_link) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; then
2490   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2491 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2492 # work properly (i.e., refer to `conftest.exe'), while it won't with
2493 # `rm'.
2494 for ac_file in conftest.exe conftest conftest.*; do
2495   test -f "$ac_file" || continue
2496   case $ac_file in
2497     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2498     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2499           export ac_cv_exeext
2500           break;;
2501     * ) break;;
2502   esac
2503 done
2504 else
2505   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&2;}
2509    { (exit 1); exit 1; }; }
2510 fi
2511
2512 rm -f conftest$ac_cv_exeext
2513 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2514 echo "${ECHO_T}$ac_cv_exeext" >&6
2515
2516 rm -f conftest.$ac_ext
2517 EXEEXT=$ac_cv_exeext
2518 ac_exeext=$EXEEXT
2519 fi
2520 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2521 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2522 if test "${ac_cv_objext+set}" = set; then
2523   echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525   cat >conftest.$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532
2533 int
2534 main ()
2535 {
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.o conftest.obj
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543   (eval $ac_compile) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; then
2547   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2548   case $ac_file in
2549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2550     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2551        break;;
2552   esac
2553 done
2554 else
2555   echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2559 See \`config.log' for more details." >&5
2560 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&2;}
2562    { (exit 1); exit 1; }; }
2563 fi
2564
2565 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2566 fi
2567 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2568 echo "${ECHO_T}$ac_cv_objext" >&6
2569 OBJEXT=$ac_cv_objext
2570 ac_objext=$OBJEXT
2571 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2572 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2573 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   cat >conftest.$ac_ext <<_ACEOF
2577 #line $LINENO "configure"
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2583
2584 int
2585 main ()
2586 {
2587 #ifndef __GNUC__
2588        choke me
2589 #endif
2590
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597   (eval $ac_compile) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); } &&
2601          { ac_try='test -s conftest.$ac_objext'
2602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603   (eval $ac_try) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }; }; then
2607   ac_compiler_gnu=yes
2608 else
2609   echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612 ac_compiler_gnu=no
2613 fi
2614 rm -f conftest.$ac_objext conftest.$ac_ext
2615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2616
2617 fi
2618 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2619 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2620 GCC=`test $ac_compiler_gnu = yes && echo yes`
2621 ac_test_CFLAGS=${CFLAGS+set}
2622 ac_save_CFLAGS=$CFLAGS
2623 CFLAGS="-g"
2624 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2625 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2626 if test "${ac_cv_prog_cc_g+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   cat >conftest.$ac_ext <<_ACEOF
2630 #line $LINENO "configure"
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636
2637 int
2638 main ()
2639 {
2640
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647   (eval $ac_compile) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); } &&
2651          { ac_try='test -s conftest.$ac_objext'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; }; then
2657   ac_cv_prog_cc_g=yes
2658 else
2659   echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 ac_cv_prog_cc_g=no
2663 fi
2664 rm -f conftest.$ac_objext conftest.$ac_ext
2665 fi
2666 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2667 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2668 if test "$ac_test_CFLAGS" = set; then
2669   CFLAGS=$ac_save_CFLAGS
2670 elif test $ac_cv_prog_cc_g = yes; then
2671   if test "$GCC" = yes; then
2672     CFLAGS="-g -O2"
2673   else
2674     CFLAGS="-g"
2675   fi
2676 else
2677   if test "$GCC" = yes; then
2678     CFLAGS="-O2"
2679   else
2680     CFLAGS=
2681   fi
2682 fi
2683 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2684 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2685 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2686   echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688   ac_cv_prog_cc_stdc=no
2689 ac_save_CC=$CC
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2692 /* confdefs.h.  */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h.  */
2697 #include <stdarg.h>
2698 #include <stdio.h>
2699 #include <sys/types.h>
2700 #include <sys/stat.h>
2701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2702 struct buf { int x; };
2703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2704 static char *e (p, i)
2705      char **p;
2706      int i;
2707 {
2708   return p[i];
2709 }
2710 static char *f (char * (*g) (char **, int), char **p, ...)
2711 {
2712   char *s;
2713   va_list v;
2714   va_start (v,p);
2715   s = g (p, va_arg (v,int));
2716   va_end (v);
2717   return s;
2718 }
2719 int test (int i, double x);
2720 struct s1 {int (*f) (int a);};
2721 struct s2 {int (*f) (double a);};
2722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2723 int argc;
2724 char **argv;
2725 int
2726 main ()
2727 {
2728 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2729   ;
2730   return 0;
2731 }
2732 _ACEOF
2733 # Don't try gcc -ansi; that turns off useful extensions and
2734 # breaks some systems' header files.
2735 # AIX                   -qlanglvl=ansi
2736 # Ultrix and OSF/1      -std1
2737 # HP-UX 10.20 and later -Ae
2738 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2739 # SVR4                  -Xc -D__EXTENSIONS__
2740 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2741 do
2742   CC="$ac_save_CC $ac_arg"
2743   rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745   (eval $ac_compile) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } &&
2749          { ac_try='test -s conftest.$ac_objext'
2750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751   (eval $ac_try) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; }; then
2755   ac_cv_prog_cc_stdc=$ac_arg
2756 break
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 fi
2762 rm -f conftest.$ac_objext
2763 done
2764 rm -f conftest.$ac_ext conftest.$ac_objext
2765 CC=$ac_save_CC
2766
2767 fi
2768
2769 case "x$ac_cv_prog_cc_stdc" in
2770   x|xno)
2771     echo "$as_me:$LINENO: result: none needed" >&5
2772 echo "${ECHO_T}none needed" >&6 ;;
2773   *)
2774     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2775 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2776     CC="$CC $ac_cv_prog_cc_stdc" ;;
2777 esac
2778
2779 # Some people use a C++ compiler to compile C.  Since we use `exit',
2780 # in C++ we need to declare it.  In case someone uses the same compiler
2781 # for both compiling C and C++ we need to have the C++ compiler decide
2782 # the declaration of exit, since it's the most demanding environment.
2783 cat >conftest.$ac_ext <<_ACEOF
2784 #ifndef __cplusplus
2785   choke me
2786 #endif
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790   (eval $ac_compile) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   for ac_declaration in \
2801    ''\
2802    '#include <stdlib.h>' \
2803    'extern "C" void std::exit (int) throw (); using std::exit;' \
2804    'extern "C" void std::exit (int); using std::exit;' \
2805    'extern "C" void exit (int) throw ();' \
2806    'extern "C" void exit (int);' \
2807    'void exit (int);'
2808 do
2809   cat >conftest.$ac_ext <<_ACEOF
2810 #line $LINENO "configure"
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816 #include <stdlib.h>
2817 $ac_declaration
2818 int
2819 main ()
2820 {
2821 exit (42);
2822   ;
2823   return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828   (eval $ac_compile) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); } &&
2832          { ac_try='test -s conftest.$ac_objext'
2833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834   (eval $ac_try) 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; }; then
2838   :
2839 else
2840   echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843 continue
2844 fi
2845 rm -f conftest.$ac_objext conftest.$ac_ext
2846   cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853 $ac_declaration
2854 int
2855 main ()
2856 {
2857 exit (42);
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 rm -f conftest.$ac_objext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864   (eval $ac_compile) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } &&
2868          { ac_try='test -s conftest.$ac_objext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   break
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 fi
2880 rm -f conftest.$ac_objext conftest.$ac_ext
2881 done
2882 rm -f conftest*
2883 if test -n "$ac_declaration"; then
2884   echo '#ifdef __cplusplus' >>confdefs.h
2885   echo $ac_declaration      >>confdefs.h
2886   echo '#endif'             >>confdefs.h
2887 fi
2888
2889 else
2890   echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893 fi
2894 rm -f conftest.$ac_objext conftest.$ac_ext
2895 ac_ext=c
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900
2901   ac_ext=cc
2902 ac_cpp='$CXXCPP $CPPFLAGS'
2903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2906 if test -n "$ac_tool_prefix"; then
2907   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2908   do
2909     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2914   echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916   if test -n "$CXX"; then
2917   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924   for ac_exec_ext in '' $ac_executable_extensions; do
2925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931 done
2932
2933 fi
2934 fi
2935 CXX=$glibcxx_cv_prog_CXX
2936 if test -n "$CXX"; then
2937   echo "$as_me:$LINENO: result: $CXX" >&5
2938 echo "${ECHO_T}$CXX" >&6
2939 else
2940   echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2942 fi
2943
2944     test -n "$CXX" && break
2945   done
2946 fi
2947 if test -z "$CXX"; then
2948   ac_ct_CXX=$CXX
2949   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2950 do
2951   # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy $ac_prog; ac_word=$2
2953 echo "$as_me:$LINENO: checking for $ac_word" >&5
2954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2955 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958   if test -n "$ac_ct_CXX"; then
2959   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964   IFS=$as_save_IFS
2965   test -z "$as_dir" && as_dir=.
2966   for ac_exec_ext in '' $ac_executable_extensions; do
2967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968     ac_cv_prog_ac_ct_CXX="$ac_prog"
2969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970     break 2
2971   fi
2972 done
2973 done
2974
2975 fi
2976 fi
2977 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2978 if test -n "$ac_ct_CXX"; then
2979   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2980 echo "${ECHO_T}$ac_ct_CXX" >&6
2981 else
2982   echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6
2984 fi
2985
2986   test -n "$ac_ct_CXX" && break
2987 done
2988 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2989
2990   CXX=$ac_ct_CXX
2991 fi
2992
2993
2994 # Provide some information about the compiler.
2995 echo "$as_me:$LINENO:" \
2996      "checking for C++ compiler version" >&5
2997 ac_compiler=`set X $ac_compile; echo $2`
2998 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2999   (eval $ac_compiler --version </dev/null >&5) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }
3003 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3004   (eval $ac_compiler -v </dev/null >&5) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }
3008 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3009   (eval $ac_compiler -V </dev/null >&5) 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }
3013
3014 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3015 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3016 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019   cat >conftest.$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026
3027 int
3028 main ()
3029 {
3030 #ifndef __GNUC__
3031        choke me
3032 #endif
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040   (eval $ac_compile) 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046   (eval $ac_try) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; }; then
3050   ac_compiler_gnu=yes
3051 else
3052   echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 ac_compiler_gnu=no
3056 fi
3057 rm -f conftest.$ac_objext conftest.$ac_ext
3058 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3059
3060 fi
3061 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3062 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3063 GXX=`test $ac_compiler_gnu = yes && echo yes`
3064 ac_test_CXXFLAGS=${CXXFLAGS+set}
3065 ac_save_CXXFLAGS=$CXXFLAGS
3066 CXXFLAGS="-g"
3067 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3068 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3069 if test "${ac_cv_prog_cxx_g+set}" = set; then
3070   echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072   cat >conftest.$ac_ext <<_ACEOF
3073 #line $LINENO "configure"
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079
3080 int
3081 main ()
3082 {
3083
3084   ;
3085   return 0;
3086 }
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090   (eval $ac_compile) 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -s conftest.$ac_objext'
3095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096   (eval $ac_try) 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; }; then
3100   ac_cv_prog_cxx_g=yes
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_cv_prog_cxx_g=no
3106 fi
3107 rm -f conftest.$ac_objext conftest.$ac_ext
3108 fi
3109 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3110 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3111 if test "$ac_test_CXXFLAGS" = set; then
3112   CXXFLAGS=$ac_save_CXXFLAGS
3113 elif test $ac_cv_prog_cxx_g = yes; then
3114   if test "$GXX" = yes; then
3115     CXXFLAGS="-g -O2"
3116   else
3117     CXXFLAGS="-g"
3118   fi
3119 else
3120   if test "$GXX" = yes; then
3121     CXXFLAGS="-O2"
3122   else
3123     CXXFLAGS=
3124   fi
3125 fi
3126 for ac_declaration in \
3127    ''\
3128    '#include <stdlib.h>' \
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 #include <stdlib.h>
3143 $ac_declaration
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   # this will be overwritten by pass_all, but leave it in just in case
3797   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3798   lt_cv_file_magic_cmd='/usr/bin/file -L'
3799   case "$host_os" in
3800   rhapsody* | darwin1.012)
3801     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3802     ;;
3803   *) # Darwin 1.3 on
3804     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3805     ;;
3806   esac
3807   lt_cv_deplibs_check_method=pass_all
3808   ;;
3809
3810 freebsd* )
3811   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3812     case $host_cpu in
3813     i*86 )
3814       # Not sure whether the presence of OpenBSD here was a mistake.
3815       # Let's accept both of them until this is cleared up.
3816       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3817       lt_cv_file_magic_cmd=/usr/bin/file
3818       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3819       ;;
3820     esac
3821   else
3822     lt_cv_deplibs_check_method=pass_all
3823   fi
3824   ;;
3825
3826 gnu*)
3827   lt_cv_deplibs_check_method=pass_all
3828   ;;
3829
3830 hpux10.20*|hpux11*)
3831   case $host_cpu in
3832   hppa*)
3833     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3834     lt_cv_file_magic_cmd=/usr/bin/file
3835     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3836     ;;
3837   ia64*)
3838     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3839     lt_cv_file_magic_cmd=/usr/bin/file
3840     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3841     ;;
3842   esac
3843   ;;
3844
3845 irix5* | irix6*)
3846   case $host_os in
3847   irix5*)
3848     # this will be overridden with pass_all, but let us keep it just in case
3849     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3850     ;;
3851   *)
3852     case $LD in
3853     *-32|*"-32 ") libmagic=32-bit;;
3854     *-n32|*"-n32 ") libmagic=N32;;
3855     *-64|*"-64 ") libmagic=64-bit;;
3856     *) libmagic=never-match;;
3857     esac
3858     # this will be overridden with pass_all, but let us keep it just in case
3859     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3860     ;;
3861   esac
3862   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3863   lt_cv_deplibs_check_method=pass_all
3864   ;;
3865
3866 # This must be Linux ELF.
3867 linux-gnu*)
3868   case $host_cpu in
3869   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3870     lt_cv_deplibs_check_method=pass_all ;;
3871   *)
3872     # glibc up to 2.1.1 does not perform some relocations on ARM
3873     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3874   esac
3875   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3876   ;;
3877
3878 netbsd*)
3879   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3880     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3881   else
3882     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3883   fi
3884   ;;
3885
3886 newsos6)
3887   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3888   lt_cv_file_magic_cmd=/usr/bin/file
3889   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3890   ;;
3891
3892 osf3* | osf4* | osf5*)
3893   # this will be overridden with pass_all, but let us keep it just in case
3894   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3895   lt_cv_file_magic_test_file=/shlib/libc.so
3896   lt_cv_deplibs_check_method=pass_all
3897   ;;
3898
3899 sco3.2v5*)
3900   lt_cv_deplibs_check_method=pass_all
3901   ;;
3902
3903 solaris*)
3904   lt_cv_deplibs_check_method=pass_all
3905   lt_cv_file_magic_test_file=/lib/libc.so
3906   ;;
3907
3908 sysv5uw[78]* | sysv4*uw2*)
3909   lt_cv_deplibs_check_method=pass_all
3910   ;;
3911
3912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3913   case $host_vendor in
3914   ncr)
3915     lt_cv_deplibs_check_method=pass_all
3916     ;;
3917   motorola)
3918     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]'
3919     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3920     ;;
3921   esac
3922   ;;
3923 esac
3924
3925 fi
3926 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3927 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3928 file_magic_cmd=$lt_cv_file_magic_cmd
3929 deplibs_check_method=$lt_cv_deplibs_check_method
3930
3931
3932
3933
3934
3935 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3936
3937 # Only perform the check for file, if the check method requires it
3938 case $deplibs_check_method in
3939 file_magic*)
3940   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3941     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3942 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3943 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   case $MAGIC_CMD in
3947   /*)
3948   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3949   ;;
3950   ?:/*)
3951   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3952   ;;
3953   *)
3954   ac_save_MAGIC_CMD="$MAGIC_CMD"
3955   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3956   ac_dummy="/usr/bin:$PATH"
3957   for ac_dir in $ac_dummy; do
3958     test -z "$ac_dir" && ac_dir=.
3959     if test -f $ac_dir/${ac_tool_prefix}file; then
3960       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3961       if test -n "$file_magic_test_file"; then
3962         case $deplibs_check_method in
3963         "file_magic "*)
3964           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3965           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3966           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3967             egrep "$file_magic_regex" > /dev/null; then
3968             :
3969           else
3970             cat <<EOF 1>&2
3971
3972 *** Warning: the command libtool uses to detect shared libraries,
3973 *** $file_magic_cmd, produces output that libtool cannot recognize.
3974 *** The result is that libtool may fail to recognize shared libraries
3975 *** as such.  This will affect the creation of libtool libraries that
3976 *** depend on shared libraries, but programs linked with such libtool
3977 *** libraries will work regardless of this problem.  Nevertheless, you
3978 *** may want to report the problem to your system manager and/or to
3979 *** bug-libtool@gnu.org
3980
3981 EOF
3982           fi ;;
3983         esac
3984       fi
3985       break
3986     fi
3987   done
3988   IFS="$ac_save_ifs"
3989   MAGIC_CMD="$ac_save_MAGIC_CMD"
3990   ;;
3991 esac
3992 fi
3993
3994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3995 if test -n "$MAGIC_CMD"; then
3996   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3997 echo "${ECHO_T}$MAGIC_CMD" >&6
3998 else
3999   echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4001 fi
4002
4003 if test -z "$lt_cv_path_MAGIC_CMD"; then
4004   if test -n "$ac_tool_prefix"; then
4005     echo "$as_me:$LINENO: checking for file" >&5
4006 echo $ECHO_N "checking for file... $ECHO_C" >&6
4007 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   case $MAGIC_CMD in
4011   /*)
4012   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4013   ;;
4014   ?:/*)
4015   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4016   ;;
4017   *)
4018   ac_save_MAGIC_CMD="$MAGIC_CMD"
4019   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4020   ac_dummy="/usr/bin:$PATH"
4021   for ac_dir in $ac_dummy; do
4022     test -z "$ac_dir" && ac_dir=.
4023     if test -f $ac_dir/file; then
4024       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4025       if test -n "$file_magic_test_file"; then
4026         case $deplibs_check_method in
4027         "file_magic "*)
4028           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4029           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4030           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4031             egrep "$file_magic_regex" > /dev/null; then
4032             :
4033           else
4034             cat <<EOF 1>&2
4035
4036 *** Warning: the command libtool uses to detect shared libraries,
4037 *** $file_magic_cmd, produces output that libtool cannot recognize.
4038 *** The result is that libtool may fail to recognize shared libraries
4039 *** as such.  This will affect the creation of libtool libraries that
4040 *** depend on shared libraries, but programs linked with such libtool
4041 *** libraries will work regardless of this problem.  Nevertheless, you
4042 *** may want to report the problem to your system manager and/or to
4043 *** bug-libtool@gnu.org
4044
4045 EOF
4046           fi ;;
4047         esac
4048       fi
4049       break
4050     fi
4051   done
4052   IFS="$ac_save_ifs"
4053   MAGIC_CMD="$ac_save_MAGIC_CMD"
4054   ;;
4055 esac
4056 fi
4057
4058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4059 if test -n "$MAGIC_CMD"; then
4060   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4061 echo "${ECHO_T}$MAGIC_CMD" >&6
4062 else
4063   echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4065 fi
4066
4067   else
4068     MAGIC_CMD=:
4069   fi
4070 fi
4071
4072   fi
4073   ;;
4074 esac
4075
4076 if test -n "$ac_tool_prefix"; then
4077   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4079 echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_prog_RANLIB+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   if test -n "$RANLIB"; then
4085   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090   IFS=$as_save_IFS
4091   test -z "$as_dir" && as_dir=.
4092   for ac_exec_ext in '' $ac_executable_extensions; do
4093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096     break 2
4097   fi
4098 done
4099 done
4100
4101 fi
4102 fi
4103 RANLIB=$ac_cv_prog_RANLIB
4104 if test -n "$RANLIB"; then
4105   echo "$as_me:$LINENO: result: $RANLIB" >&5
4106 echo "${ECHO_T}$RANLIB" >&6
4107 else
4108   echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4110 fi
4111
4112 fi
4113 if test -z "$ac_cv_prog_RANLIB"; then
4114   ac_ct_RANLIB=$RANLIB
4115   # Extract the first word of "ranlib", so it can be a program name with args.
4116 set dummy ranlib; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test -n "$ac_ct_RANLIB"; then
4123   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132     ac_cv_prog_ac_ct_RANLIB="ranlib"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138
4139   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4140 fi
4141 fi
4142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4143 if test -n "$ac_ct_RANLIB"; then
4144   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4145 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4146 else
4147   echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4149 fi
4150
4151   RANLIB=$ac_ct_RANLIB
4152 else
4153   RANLIB="$ac_cv_prog_RANLIB"
4154 fi
4155
4156 if test -n "$ac_tool_prefix"; then
4157   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4158 set dummy ${ac_tool_prefix}strip; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_prog_STRIP+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   if test -n "$STRIP"; then
4165   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172   for ac_exec_ext in '' $ac_executable_extensions; do
4173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176     break 2
4177   fi
4178 done
4179 done
4180
4181 fi
4182 fi
4183 STRIP=$ac_cv_prog_STRIP
4184 if test -n "$STRIP"; then
4185   echo "$as_me:$LINENO: result: $STRIP" >&5
4186 echo "${ECHO_T}$STRIP" >&6
4187 else
4188   echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4190 fi
4191
4192 fi
4193 if test -z "$ac_cv_prog_STRIP"; then
4194   ac_ct_STRIP=$STRIP
4195   # Extract the first word of "strip", so it can be a program name with args.
4196 set dummy strip; ac_word=$2
4197 echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   if test -n "$ac_ct_STRIP"; then
4203   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for ac_exec_ext in '' $ac_executable_extensions; do
4211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212     ac_cv_prog_ac_ct_STRIP="strip"
4213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214     break 2
4215   fi
4216 done
4217 done
4218
4219   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4220 fi
4221 fi
4222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4223 if test -n "$ac_ct_STRIP"; then
4224   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4225 echo "${ECHO_T}$ac_ct_STRIP" >&6
4226 else
4227   echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6
4229 fi
4230
4231   STRIP=$ac_ct_STRIP
4232 else
4233   STRIP="$ac_cv_prog_STRIP"
4234 fi
4235
4236
4237 # Check for any special flags to pass to ltconfig.
4238 libtool_flags="--cache-file=$cache_file"
4239 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4240 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4241 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4242 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4243 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4244
4245
4246 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4247 if test "${enable_libtool_lock+set}" = set; then
4248   enableval="$enable_libtool_lock"
4249
4250 fi;
4251 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4252 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4253
4254
4255 # Check whether --with-pic or --without-pic was given.
4256 if test "${with_pic+set}" = set; then
4257   withval="$with_pic"
4258   pic_mode="$withval"
4259 else
4260   pic_mode=default
4261 fi;
4262 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4263 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4264
4265 # Some flags need to be propagated to the compiler or linker for good
4266 # libtool support.
4267 case $host in
4268 *-*-irix6*)
4269   # Find out which ABI we are using.
4270   echo '#line 4270 "configure"' > conftest.$ac_ext
4271   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272   (eval $ac_compile) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; then
4276    if test "$lt_cv_prog_gnu_ld" = yes; then
4277     case `/usr/bin/file conftest.$ac_objext` in
4278     *32-bit*)
4279       LD="${LD-ld} -melf32bsmip"
4280       ;;
4281     *N32*)
4282       LD="${LD-ld} -melf32bmipn32"
4283       ;;
4284     *64-bit*)
4285       LD="${LD-ld} -melf64bmip"
4286       ;;
4287     esac
4288    else
4289     case `/usr/bin/file conftest.$ac_objext` in
4290     *32-bit*)
4291       LD="${LD-ld} -32"
4292       ;;
4293     *N32*)
4294       LD="${LD-ld} -n32"
4295       ;;
4296     *64-bit*)
4297       LD="${LD-ld} -64"
4298       ;;
4299     esac
4300    fi
4301   fi
4302   rm -rf conftest*
4303   ;;
4304
4305 ia64-*-hpux*)
4306   # Find out which ABI we are using.
4307   echo 'int i;' > conftest.$ac_ext
4308   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309   (eval $ac_compile) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; then
4313     case "`/usr/bin/file conftest.o`" in
4314     *ELF-32*)
4315       HPUX_IA64_MODE="32"
4316       ;;
4317     *ELF-64*)
4318       HPUX_IA64_MODE="64"
4319       ;;
4320     esac
4321   fi
4322   rm -rf conftest*
4323   ;;
4324
4325 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4326   # Find out which ABI we are using.
4327   echo 'int i;' > conftest.$ac_ext
4328   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329   (eval $ac_compile) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; then
4333     case "`/usr/bin/file conftest.o`" in
4334     *32-bit*)
4335       case $host in
4336         x86_64-*linux*)
4337           LD="${LD-ld} -m elf_i386"
4338           ;;
4339         ppc64-*linux*|powerpc64-*linux*)
4340           LD="${LD-ld} -m elf32ppclinux"
4341           ;;
4342         s390x-*linux*)
4343           LD="${LD-ld} -m elf_s390"
4344           ;;
4345         sparc64-*linux*)
4346           LD="${LD-ld} -m elf32_sparc"
4347           ;;
4348       esac
4349       ;;
4350     *64-bit*)
4351       case $host in
4352         x86_64-*linux*)
4353           LD="${LD-ld} -m elf_x86_64"
4354           ;;
4355         ppc*-*linux*|powerpc*-*linux*)
4356           LD="${LD-ld} -m elf64ppc"
4357           ;;
4358         s390*-*linux*)
4359           LD="${LD-ld} -m elf64_s390"
4360           ;;
4361         sparc*-*linux*)
4362           LD="${LD-ld} -m elf64_sparc"
4363           ;;
4364       esac
4365       ;;
4366     esac
4367   fi
4368   rm -rf conftest*
4369   ;;
4370
4371 *-*-sco3.2v5*)
4372   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4373   SAVE_CFLAGS="$CFLAGS"
4374   CFLAGS="$CFLAGS -belf"
4375   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4376 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4377 if test "${lt_cv_cc_needs_belf+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380
4381
4382      ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387
4388      if test x$gcc_no_link = xyes; then
4389   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4391    { (exit 1); exit 1; }; }
4392 fi
4393 cat >conftest.$ac_ext <<_ACEOF
4394 #line $LINENO "configure"
4395 /* confdefs.h.  */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h.  */
4400
4401 int
4402 main ()
4403 {
4404
4405   ;
4406   return 0;
4407 }
4408 _ACEOF
4409 rm -f conftest.$ac_objext conftest$ac_exeext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411   (eval $ac_link) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } &&
4415          { ac_try='test -s conftest$ac_exeext'
4416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417   (eval $ac_try) 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; }; then
4421   lt_cv_cc_needs_belf=yes
4422 else
4423   echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4425
4426 lt_cv_cc_needs_belf=no
4427 fi
4428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4429      ac_ext=c
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434
4435 fi
4436 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4437 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4438   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4439     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4440     CFLAGS="$SAVE_CFLAGS"
4441   fi
4442   ;;
4443
4444
4445 esac
4446
4447
4448 # Save cache, so that ltconfig can load it
4449 cat >confcache <<\_ACEOF
4450 # This file is a shell script that caches the results of configure
4451 # tests run on this system so they can be shared between configure
4452 # scripts and configure runs, see configure's option --config-cache.
4453 # It is not useful on other systems.  If it contains results you don't
4454 # want to keep, you may remove or edit it.
4455 #
4456 # config.status only pays attention to the cache file if you give it
4457 # the --recheck option to rerun configure.
4458 #
4459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4461 # following values.
4462
4463 _ACEOF
4464
4465 # The following way of writing the cache mishandles newlines in values,
4466 # but we know of no workaround that is simple, portable, and efficient.
4467 # So, don't put newlines in cache variables' values.
4468 # Ultrix sh set writes to stderr and can't be redirected directly,
4469 # and sets the high bit in the cache file unless we assign to the vars.
4470 {
4471   (set) 2>&1 |
4472     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4473     *ac_space=\ *)
4474       # `set' does not quote correctly, so add quotes (double-quote
4475       # substitution turns \\\\ into \\, and sed turns \\ into \).
4476       sed -n \
4477         "s/'/'\\\\''/g;
4478           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4479       ;;
4480     *)
4481       # `set' quotes correctly as required by POSIX, so do not add quotes.
4482       sed -n \
4483         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4484       ;;
4485     esac;
4486 } |
4487   sed '
4488      t clear
4489      : clear
4490      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4491      t end
4492      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4493      : end' >>confcache
4494 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4495   if test -w $cache_file; then
4496     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4497     cat confcache >$cache_file
4498   else
4499     echo "not updating unwritable cache $cache_file"
4500   fi
4501 fi
4502 rm -f confcache
4503
4504 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4505 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4506 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4507 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4508 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4509 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4510 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4511 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4512 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4513 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4514 echo "$as_me: error: libtool configure failed" >&2;}
4515    { (exit 1); exit 1; }; }
4516
4517 # Reload cache, that may have been modified by ltconfig
4518 if test -r "$cache_file"; then
4519   # Some versions of bash will fail to source /dev/null (special
4520   # files actually), so we avoid doing that.
4521   if test -f "$cache_file"; then
4522     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4523 echo "$as_me: loading cache $cache_file" >&6;}
4524     case $cache_file in
4525       [\\/]* | ?:[\\/]* ) . $cache_file;;
4526       *)                      . ./$cache_file;;
4527     esac
4528   fi
4529 else
4530   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4531 echo "$as_me: creating cache $cache_file" >&6;}
4532   >$cache_file
4533 fi
4534
4535
4536 # This can be used to rebuild libtool when needed
4537 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4538
4539 # Always use our own libtool.
4540 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4541
4542 # Redirect the config.log output again, so that the ltconfig log is not
4543 # clobbered by the next message.
4544 exec 5>>./config.log
4545
4546 ac_ext=cc
4547 ac_cpp='$CXXCPP $CPPFLAGS'
4548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4551 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4552 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4553 if test -z "$CXXCPP"; then
4554   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557       # Double quotes because CXXCPP needs to be expanded
4558     for CXXCPP in "$CXX -E" "/lib/cpp"
4559     do
4560       ac_preproc_ok=false
4561 for ac_cxx_preproc_warn_flag in '' yes
4562 do
4563   # Use a header file that comes with gcc, so configuring glibc
4564   # with a fresh cross-compiler works.
4565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4566   # <limits.h> exists even on freestanding compilers.
4567   # On the NeXT, cc -E runs the code through the compiler's parser,
4568   # not just through cpp. "Syntax error" is here to catch this case.
4569   cat >conftest.$ac_ext <<_ACEOF
4570 #line $LINENO "configure"
4571 /* confdefs.h.  */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h.  */
4576 #ifdef __STDC__
4577 # include <limits.h>
4578 #else
4579 # include <assert.h>
4580 #endif
4581                      Syntax error
4582 _ACEOF
4583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4585   ac_status=$?
4586   grep -v '^ *+' conftest.er1 >conftest.err
4587   rm -f conftest.er1
4588   cat conftest.err >&5
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); } >/dev/null; then
4591   if test -s conftest.err; then
4592     ac_cpp_err=$ac_cxx_preproc_warn_flag
4593   else
4594     ac_cpp_err=
4595   fi
4596 else
4597   ac_cpp_err=yes
4598 fi
4599 if test -z "$ac_cpp_err"; then
4600   :
4601 else
4602   echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605   # Broken: fails on valid input.
4606 continue
4607 fi
4608 rm -f conftest.err conftest.$ac_ext
4609
4610   # OK, works on sane cases.  Now check whether non-existent headers
4611   # can be detected and how.
4612   cat >conftest.$ac_ext <<_ACEOF
4613 #line $LINENO "configure"
4614 /* confdefs.h.  */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h.  */
4619 #include <ac_nonexistent.h>
4620 _ACEOF
4621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4623   ac_status=$?
4624   grep -v '^ *+' conftest.er1 >conftest.err
4625   rm -f conftest.er1
4626   cat conftest.err >&5
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); } >/dev/null; then
4629   if test -s conftest.err; then
4630     ac_cpp_err=$ac_cxx_preproc_warn_flag
4631   else
4632     ac_cpp_err=
4633   fi
4634 else
4635   ac_cpp_err=yes
4636 fi
4637 if test -z "$ac_cpp_err"; then
4638   # Broken: success on invalid input.
4639 continue
4640 else
4641   echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644   # Passes both tests.
4645 ac_preproc_ok=:
4646 break
4647 fi
4648 rm -f conftest.err conftest.$ac_ext
4649
4650 done
4651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4652 rm -f conftest.err conftest.$ac_ext
4653 if $ac_preproc_ok; then
4654   break
4655 fi
4656
4657     done
4658     ac_cv_prog_CXXCPP=$CXXCPP
4659
4660 fi
4661   CXXCPP=$ac_cv_prog_CXXCPP
4662 else
4663   ac_cv_prog_CXXCPP=$CXXCPP
4664 fi
4665 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4666 echo "${ECHO_T}$CXXCPP" >&6
4667 ac_preproc_ok=false
4668 for ac_cxx_preproc_warn_flag in '' yes
4669 do
4670   # Use a header file that comes with gcc, so configuring glibc
4671   # with a fresh cross-compiler works.
4672   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4673   # <limits.h> exists even on freestanding compilers.
4674   # On the NeXT, cc -E runs the code through the compiler's parser,
4675   # not just through cpp. "Syntax error" is here to catch this case.
4676   cat >conftest.$ac_ext <<_ACEOF
4677 #line $LINENO "configure"
4678 /* confdefs.h.  */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h.  */
4683 #ifdef __STDC__
4684 # include <limits.h>
4685 #else
4686 # include <assert.h>
4687 #endif
4688                      Syntax error
4689 _ACEOF
4690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4692   ac_status=$?
4693   grep -v '^ *+' conftest.er1 >conftest.err
4694   rm -f conftest.er1
4695   cat conftest.err >&5
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); } >/dev/null; then
4698   if test -s conftest.err; then
4699     ac_cpp_err=$ac_cxx_preproc_warn_flag
4700   else
4701     ac_cpp_err=
4702   fi
4703 else
4704   ac_cpp_err=yes
4705 fi
4706 if test -z "$ac_cpp_err"; then
4707   :
4708 else
4709   echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712   # Broken: fails on valid input.
4713 continue
4714 fi
4715 rm -f conftest.err conftest.$ac_ext
4716
4717   # OK, works on sane cases.  Now check whether non-existent headers
4718   # can be detected and how.
4719   cat >conftest.$ac_ext <<_ACEOF
4720 #line $LINENO "configure"
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726 #include <ac_nonexistent.h>
4727 _ACEOF
4728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4730   ac_status=$?
4731   grep -v '^ *+' conftest.er1 >conftest.err
4732   rm -f conftest.er1
4733   cat conftest.err >&5
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } >/dev/null; then
4736   if test -s conftest.err; then
4737     ac_cpp_err=$ac_cxx_preproc_warn_flag
4738   else
4739     ac_cpp_err=
4740   fi
4741 else
4742   ac_cpp_err=yes
4743 fi
4744 if test -z "$ac_cpp_err"; then
4745   # Broken: success on invalid input.
4746 continue
4747 else
4748   echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751   # Passes both tests.
4752 ac_preproc_ok=:
4753 break
4754 fi
4755 rm -f conftest.err conftest.$ac_ext
4756
4757 done
4758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4759 rm -f conftest.err conftest.$ac_ext
4760 if $ac_preproc_ok; then
4761   :
4762 else
4763   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4764 See \`config.log' for more details." >&5
4765 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4766 See \`config.log' for more details." >&2;}
4767    { (exit 1); exit 1; }; }
4768 fi
4769
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775
4776
4777
4778 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4779 lt_save_CC="$CC"
4780 lt_save_CFLAGS="$CFLAGS"
4781 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4782 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4783 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4784 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4785 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4786 deplibs_check_method="$deplibs_check_method" \
4787 file_magic_cmd="$file_magic_cmd" \
4788 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4789 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4790 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4791 echo "$as_me: error: libtool tag configuration failed" >&2;}
4792    { (exit 1); exit 1; }; }
4793 CC="$lt_save_CC"
4794 CFLAGS="$lt_save_CFLAGS"
4795
4796 # Redirect the config.log output again, so that the ltconfig log is not
4797 # clobbered by the next message.
4798 exec 5>>./config.log
4799
4800
4801
4802
4803
4804
4805
4806
4807 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4808
4809 # Possibly disable most of the library.
4810 ## XXX Consider skipping unncessary tests altogether in this case, rather
4811 ## than just ignoring the results.  Faster /and/ more correct, win win.
4812
4813   # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4814 if test "${enable_hosted_libstdcxx+set}" = set; then
4815   enableval="$enable_hosted_libstdcxx"
4816
4817 else
4818   enable_hosted_libstdcxx=yes
4819 fi;
4820   if test "$enable_hosted_libstdcxx" = no; then
4821     { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4822 echo "$as_me: Only freestanding libraries will be built" >&6;}
4823     is_hosted=no
4824     hosted_define=0
4825     enable_abi_check=no
4826     enable_libstdcxx_pch=no
4827   else
4828     is_hosted=yes
4829     hosted_define=1
4830   fi
4831
4832
4833 cat >>confdefs.h <<_ACEOF
4834 #define _GLIBCXX_HOSTED $hosted_define
4835 _ACEOF
4836
4837
4838
4839 # Check for support bits and g++ features that don't require linking.
4840
4841   echo "$as_me:$LINENO: checking for exception model to use" >&5
4842 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4843
4844
4845   ac_ext=cc
4846 ac_cpp='$CXXCPP $CPPFLAGS'
4847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4850
4851    # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4852 if test "${enable_sjlj_exceptions+set}" = set; then
4853   enableval="$enable_sjlj_exceptions"
4854
4855       case "$enableval" in
4856        yes|no|auto) ;;
4857        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4858 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4859    { (exit 1); exit 1; }; } ;;
4860                           esac
4861
4862 else
4863   enable_sjlj_exceptions=auto
4864 fi;
4865
4866
4867   if test $enable_sjlj_exceptions = auto; then
4868     # Botheration.  Now we've got to detect the exception model.  Link tests
4869     # against libgcc.a are problematic since we've not been given proper -L
4870     # bits for single-tree newlib and libgloss.
4871     #
4872     # Fake what AC_TRY_COMPILE does.  XXX Look at redoing this new-style.
4873     cat > conftest.$ac_ext << EOF
4874 #line 4874 "configure"
4875 struct S { ~S(); };
4876 void bar();
4877 void foo()
4878 {
4879   S s;
4880   bar();
4881 }
4882 EOF
4883     old_CXXFLAGS="$CXXFLAGS"
4884     CXXFLAGS=-S
4885     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886   (eval $ac_compile) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); }; then
4890       if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4891         enable_sjlj_exceptions=yes
4892       elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4893         enable_sjlj_exceptions=no
4894       fi
4895     fi
4896     CXXFLAGS="$old_CXXFLAGS"
4897     rm -f conftest*
4898   fi
4899
4900   # This is a tad weird, for hysterical raisins.  We have to map enable/disable
4901   # to two different models.
4902   case $enable_sjlj_exceptions in
4903     yes)
4904
4905 cat >>confdefs.h <<\_ACEOF
4906 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
4907 _ACEOF
4908
4909       ac_exception_model_name=sjlj
4910       ;;
4911     no)
4912       ac_exception_model_name="call frame"
4913       ;;
4914     *)
4915       { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
4916 echo "$as_me: error: unable to detect exception model" >&2;}
4917    { (exit 1); exit 1; }; }
4918       ;;
4919   esac
4920  ac_ext=c
4921 ac_cpp='$CPP $CPPFLAGS'
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4925
4926  echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
4927 echo "${ECHO_T}$ac_exception_model_name" >&6
4928
4929
4930   echo "$as_me:$LINENO: checking for enabled PCH" >&5
4931 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
4932    # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
4933 if test "${enable_libstdcxx_pch+set}" = set; then
4934   enableval="$enable_libstdcxx_pch"
4935
4936       case "$enableval" in
4937        yes|no) ;;
4938        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
4939 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
4940    { (exit 1); exit 1; }; } ;;
4941       esac
4942
4943 else
4944   enable_libstdcxx_pch=$is_hosted
4945 fi;
4946
4947   echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
4948 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4949
4950   if test $enable_libstdcxx_pch = yes; then
4951     echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
4952 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
4953 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
4954   echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956   ac_save_CXXFLAGS="$CXXFLAGS"
4957        CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4958
4959
4960        ac_ext=cc
4961 ac_cpp='$CXXCPP $CPPFLAGS'
4962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965
4966        echo '#include <math.h>' > conftest.h
4967        if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
4968                           -o conftest.h.gch 1>&5 2>&1 &&
4969                 echo '#error "pch failed"' > conftest.h &&
4970           echo '#include "conftest.h"' > conftest.cc &&
4971                $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
4972        then
4973          glibcxx_cv_prog_CXX_pch=yes
4974        else
4975          glibcxx_cv_prog_CXX_pch=no
4976        fi
4977        rm -f conftest*
4978        CXXFLAGS=$ac_save_CXXFLAGS
4979        ac_ext=c
4980 ac_cpp='$CPP $CPPFLAGS'
4981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984
4985
4986 fi
4987 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
4988 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
4989     enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
4990   fi
4991
4992
4993   if test $enable_libstdcxx_pch = yes; then
4994     glibcxx_PCHFLAGS="-include bits/stdc++.h"
4995   else
4996     glibcxx_PCHFLAGS=""
4997   fi
4998
4999
5000
5001 # Enable all the variable C++ runtime options.
5002 # NB: C_MBCHAR must come early.
5003
5004   echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5005 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5006    # Check whether --enable-cstdio or --disable-cstdio was given.
5007 if test "${enable_cstdio+set}" = set; then
5008   enableval="$enable_cstdio"
5009
5010       case "$enableval" in
5011        stdio) ;;
5012        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5013 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5014    { (exit 1); exit 1; }; } ;;
5015                           esac
5016
5017 else
5018   enable_cstdio=stdio
5019 fi;
5020
5021
5022   # Now that libio has been removed, you can have any color you want as long
5023   # as it's black.  This is one big no-op until other packages are added, but
5024   # showing the framework never hurts.
5025   case ${enable_cstdio} in
5026     stdio)
5027       CSTDIO_H=config/io/c_io_stdio.h
5028       BASIC_FILE_H=config/io/basic_file_stdio.h
5029       BASIC_FILE_CC=config/io/basic_file_stdio.cc
5030       echo "$as_me:$LINENO: result: stdio" >&5
5031 echo "${ECHO_T}stdio" >&6
5032       ;;
5033   esac
5034
5035
5036
5037
5038
5039 ac_ext=c
5040 ac_cpp='$CPP $CPPFLAGS'
5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5045 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5046 # On Suns, sometimes $CPP names a directory.
5047 if test -n "$CPP" && test -d "$CPP"; then
5048   CPP=
5049 fi
5050 if test -z "$CPP"; then
5051   if test "${ac_cv_prog_CPP+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054       # Double quotes because CPP needs to be expanded
5055     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5056     do
5057       ac_preproc_ok=false
5058 for ac_c_preproc_warn_flag in '' yes
5059 do
5060   # Use a header file that comes with gcc, so configuring glibc
5061   # with a fresh cross-compiler works.
5062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5063   # <limits.h> exists even on freestanding compilers.
5064   # On the NeXT, cc -E runs the code through the compiler's parser,
5065   # not just through cpp. "Syntax error" is here to catch this case.
5066   cat >conftest.$ac_ext <<_ACEOF
5067 #line $LINENO "configure"
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 #ifdef __STDC__
5074 # include <limits.h>
5075 #else
5076 # include <assert.h>
5077 #endif
5078                      Syntax error
5079 _ACEOF
5080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5082   ac_status=$?
5083   grep -v '^ *+' conftest.er1 >conftest.err
5084   rm -f conftest.er1
5085   cat conftest.err >&5
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); } >/dev/null; then
5088   if test -s conftest.err; then
5089     ac_cpp_err=$ac_c_preproc_warn_flag
5090   else
5091     ac_cpp_err=
5092   fi
5093 else
5094   ac_cpp_err=yes
5095 fi
5096 if test -z "$ac_cpp_err"; then
5097   :
5098 else
5099   echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102   # Broken: fails on valid input.
5103 continue
5104 fi
5105 rm -f conftest.err conftest.$ac_ext
5106
5107   # OK, works on sane cases.  Now check whether non-existent headers
5108   # can be detected and how.
5109   cat >conftest.$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116 #include <ac_nonexistent.h>
5117 _ACEOF
5118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5120   ac_status=$?
5121   grep -v '^ *+' conftest.er1 >conftest.err
5122   rm -f conftest.er1
5123   cat conftest.err >&5
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); } >/dev/null; then
5126   if test -s conftest.err; then
5127     ac_cpp_err=$ac_c_preproc_warn_flag
5128   else
5129     ac_cpp_err=
5130   fi
5131 else
5132   ac_cpp_err=yes
5133 fi
5134 if test -z "$ac_cpp_err"; then
5135   # Broken: success on invalid input.
5136 continue
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141   # Passes both tests.
5142 ac_preproc_ok=:
5143 break
5144 fi
5145 rm -f conftest.err conftest.$ac_ext
5146
5147 done
5148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149 rm -f conftest.err conftest.$ac_ext
5150 if $ac_preproc_ok; then
5151   break
5152 fi
5153
5154     done
5155     ac_cv_prog_CPP=$CPP
5156
5157 fi
5158   CPP=$ac_cv_prog_CPP
5159 else
5160   ac_cv_prog_CPP=$CPP
5161 fi
5162 echo "$as_me:$LINENO: result: $CPP" >&5
5163 echo "${ECHO_T}$CPP" >&6
5164 ac_preproc_ok=false
5165 for ac_c_preproc_warn_flag in '' yes
5166 do
5167   # Use a header file that comes with gcc, so configuring glibc
5168   # with a fresh cross-compiler works.
5169   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5170   # <limits.h> exists even on freestanding compilers.
5171   # On the NeXT, cc -E runs the code through the compiler's parser,
5172   # not just through cpp. "Syntax error" is here to catch this case.
5173   cat >conftest.$ac_ext <<_ACEOF
5174 #line $LINENO "configure"
5175 /* confdefs.h.  */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h.  */
5180 #ifdef __STDC__
5181 # include <limits.h>
5182 #else
5183 # include <assert.h>
5184 #endif
5185                      Syntax error
5186 _ACEOF
5187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5189   ac_status=$?
5190   grep -v '^ *+' conftest.er1 >conftest.err
5191   rm -f conftest.er1
5192   cat conftest.err >&5
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); } >/dev/null; then
5195   if test -s conftest.err; then
5196     ac_cpp_err=$ac_c_preproc_warn_flag
5197   else
5198     ac_cpp_err=
5199   fi
5200 else
5201   ac_cpp_err=yes
5202 fi
5203 if test -z "$ac_cpp_err"; then
5204   :
5205 else
5206   echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209   # Broken: fails on valid input.
5210 continue
5211 fi
5212 rm -f conftest.err conftest.$ac_ext
5213
5214   # OK, works on sane cases.  Now check whether non-existent headers
5215   # can be detected and how.
5216   cat >conftest.$ac_ext <<_ACEOF
5217 #line $LINENO "configure"
5218 /* confdefs.h.  */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h.  */
5223 #include <ac_nonexistent.h>
5224 _ACEOF
5225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5227   ac_status=$?
5228   grep -v '^ *+' conftest.er1 >conftest.err
5229   rm -f conftest.er1
5230   cat conftest.err >&5
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); } >/dev/null; then
5233   if test -s conftest.err; then
5234     ac_cpp_err=$ac_c_preproc_warn_flag
5235   else
5236     ac_cpp_err=
5237   fi
5238 else
5239   ac_cpp_err=yes
5240 fi
5241 if test -z "$ac_cpp_err"; then
5242   # Broken: success on invalid input.
5243 continue
5244 else
5245   echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248   # Passes both tests.
5249 ac_preproc_ok=:
5250 break
5251 fi
5252 rm -f conftest.err conftest.$ac_ext
5253
5254 done
5255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5256 rm -f conftest.err conftest.$ac_ext
5257 if $ac_preproc_ok; then
5258   :
5259 else
5260   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5261 See \`config.log' for more details." >&5
5262 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5263 See \`config.log' for more details." >&2;}
5264    { (exit 1); exit 1; }; }
5265 fi
5266
5267 ac_ext=c
5268 ac_cpp='$CPP $CPPFLAGS'
5269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5272
5273
5274 echo "$as_me:$LINENO: checking for egrep" >&5
5275 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5276 if test "${ac_cv_prog_egrep+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5280     then ac_cv_prog_egrep='grep -E'
5281     else ac_cv_prog_egrep='egrep'
5282     fi
5283 fi
5284 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5285 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5286  EGREP=$ac_cv_prog_egrep
5287
5288
5289 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5290 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5291 if test "${ac_cv_header_stdc+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   cat >conftest.$ac_ext <<_ACEOF
5295 #line $LINENO "configure"
5296 /* confdefs.h.  */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h.  */
5301 #include <stdlib.h>
5302 #include <stdarg.h>
5303 #include <string.h>
5304 #include <float.h>
5305
5306 int
5307 main ()
5308 {
5309
5310   ;
5311   return 0;
5312 }
5313 _ACEOF
5314 rm -f conftest.$ac_objext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5316   (eval $ac_compile) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } &&
5320          { ac_try='test -s conftest.$ac_objext'
5321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322   (eval $ac_try) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); }; }; then
5326   ac_cv_header_stdc=yes
5327 else
5328   echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 ac_cv_header_stdc=no
5332 fi
5333 rm -f conftest.$ac_objext conftest.$ac_ext
5334
5335 if test $ac_cv_header_stdc = yes; then
5336   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5337   cat >conftest.$ac_ext <<_ACEOF
5338 #line $LINENO "configure"
5339 /* confdefs.h.  */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h.  */
5344 #include <string.h>
5345
5346 _ACEOF
5347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5348   $EGREP "memchr" >/dev/null 2>&1; then
5349   :
5350 else
5351   ac_cv_header_stdc=no
5352 fi
5353 rm -f conftest*
5354
5355 fi
5356
5357 if test $ac_cv_header_stdc = yes; then
5358   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5359   cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5361 /* confdefs.h.  */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h.  */
5366 #include <stdlib.h>
5367
5368 _ACEOF
5369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5370   $EGREP "free" >/dev/null 2>&1; then
5371   :
5372 else
5373   ac_cv_header_stdc=no
5374 fi
5375 rm -f conftest*
5376
5377 fi
5378
5379 if test $ac_cv_header_stdc = yes; then
5380   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5381   if test "$cross_compiling" = yes; then
5382   :
5383 else
5384   cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391 #include <ctype.h>
5392 #if ((' ' & 0x0FF) == 0x020)
5393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5395 #else
5396 # define ISLOWER(c) \
5397                    (('a' <= (c) && (c) <= 'i') \
5398                      || ('j' <= (c) && (c) <= 'r') \
5399                      || ('s' <= (c) && (c) <= 'z'))
5400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5401 #endif
5402
5403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5404 int
5405 main ()
5406 {
5407   int i;
5408   for (i = 0; i < 256; i++)
5409     if (XOR (islower (i), ISLOWER (i))
5410         || toupper (i) != TOUPPER (i))
5411       exit(2);
5412   exit (0);
5413 }
5414 _ACEOF
5415 rm -f conftest$ac_exeext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5417   (eval $ac_link) 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422   (eval $ac_try) 2>&5
5423   ac_status=$?
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); }; }; then
5426   :
5427 else
5428   echo "$as_me: program exited with status $ac_status" >&5
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5431
5432 ( exit $ac_status )
5433 ac_cv_header_stdc=no
5434 fi
5435 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5436 fi
5437 fi
5438 fi
5439 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5440 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5441 if test $ac_cv_header_stdc = yes; then
5442
5443 cat >>confdefs.h <<\_ACEOF
5444 #define STDC_HEADERS 1
5445 _ACEOF
5446
5447 fi
5448
5449 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5460                   inttypes.h stdint.h unistd.h
5461 do
5462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5463 echo "$as_me:$LINENO: checking for $ac_header" >&5
5464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 $ac_includes_default
5476
5477 #include <$ac_header>
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481   (eval $ac_compile) 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } &&
5485          { ac_try='test -s conftest.$ac_objext'
5486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487   (eval $ac_try) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   eval "$as_ac_Header=yes"
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 eval "$as_ac_Header=no"
5497 fi
5498 rm -f conftest.$ac_objext conftest.$ac_ext
5499 fi
5500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5503   cat >>confdefs.h <<_ACEOF
5504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5505 _ACEOF
5506
5507 fi
5508
5509 done
5510
5511
5512
5513   echo "$as_me:$LINENO: checking for C locale to use" >&5
5514 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5515    # Check whether --enable-clocale or --disable-clocale was given.
5516 if test "${enable_clocale+set}" = set; then
5517   enableval="$enable_clocale"
5518
5519       case "$enableval" in
5520        generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5521        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5522 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5523    { (exit 1); exit 1; }; } ;;
5524                           esac
5525
5526 else
5527   enable_clocale=auto
5528 fi;
5529
5530
5531   # If they didn't use this option switch, or if they specified --enable
5532   # with no specific model, we'll have to look for one.  If they
5533   # specified --disable (???), do likewise.
5534   if test $enable_clocale = no || test $enable_clocale = yes; then
5535      enable_clocale=auto
5536   fi
5537
5538   # Either a known package, or "auto"
5539   enable_clocale_flag=$enable_clocale
5540
5541   # Probe for locale support if no specific model is specified.
5542   # Default to "generic".
5543   if test $enable_clocale_flag = auto; then
5544     case x${target_os} in
5545       xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5546         cat >conftest.$ac_ext <<_ACEOF
5547 #line $LINENO "configure"
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553
5554         #include <features.h>
5555         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5556           _GLIBCXX_ok
5557         #endif
5558
5559 _ACEOF
5560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5561   $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5562   enable_clocale_flag=gnu
5563 else
5564   enable_clocale_flag=generic
5565 fi
5566 rm -f conftest*
5567
5568
5569         # Test for bugs early in glibc-2.2.x series
5570           if test x$enable_clocale_flag = xgnu; then
5571           if test "$cross_compiling" = yes; then
5572   enable_clocale_flag=generic
5573 else
5574   cat >conftest.$ac_ext <<_ACEOF
5575 #line $LINENO "configure"
5576 /* confdefs.h.  */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h.  */
5581
5582           #define _GNU_SOURCE 1
5583           #include <locale.h>
5584           #include <string.h>
5585           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5586           extern __typeof(newlocale) __newlocale;
5587           extern __typeof(duplocale) __duplocale;
5588           extern __typeof(strcoll_l) __strcoll_l;
5589           #endif
5590           int main()
5591           {
5592               const char __one[] = "Äuglein Augmen";
5593               const char __two[] = "Äuglein";
5594               int i;
5595               int j;
5596               __locale_t        loc;
5597                __locale_t        loc_dup;
5598               loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5599               loc_dup = __duplocale(loc);
5600               i = __strcoll_l(__one, __two, loc);
5601               j = __strcoll_l(__one, __two, loc_dup);
5602               return 0;
5603           }
5604
5605 _ACEOF
5606 rm -f conftest$ac_exeext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608   (eval $ac_link) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; }; then
5617   enable_clocale_flag=gnu
5618 else
5619   echo "$as_me: program exited with status $ac_status" >&5
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ( exit $ac_status )
5624 enable_clocale_flag=generic
5625 fi
5626 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5627 fi
5628           fi
5629
5630         # ... at some point put __strxfrm_l tests in as well.
5631         ;;
5632       *)
5633         enable_clocale_flag=generic
5634         ;;
5635     esac
5636   fi
5637
5638   # Deal with gettext issues.  Default to not using it (=no) until we detect
5639   # support for it later.  Let the user turn it off via --e/d, but let that
5640   # default to on for easier handling.
5641   USE_NLS=no
5642   # Check whether --enable-nls or --disable-nls was given.
5643 if test "${enable_nls+set}" = set; then
5644   enableval="$enable_nls"
5645
5646 else
5647   enable_nls=yes
5648 fi;
5649
5650   # Set configure bits for specified locale package
5651   case ${enable_clocale_flag} in
5652     generic)
5653       echo "$as_me:$LINENO: result: generic" >&5
5654 echo "${ECHO_T}generic" >&6
5655
5656       CLOCALE_H=config/locale/generic/c_locale.h
5657       CLOCALE_CC=config/locale/generic/c_locale.cc
5658       CCODECVT_H=config/locale/generic/codecvt_specializations.h
5659       CCODECVT_CC=config/locale/generic/codecvt_members.cc
5660       CCOLLATE_CC=config/locale/generic/collate_members.cc
5661       CCTYPE_CC=config/locale/generic/ctype_members.cc
5662       CMESSAGES_H=config/locale/generic/messages_members.h
5663       CMESSAGES_CC=config/locale/generic/messages_members.cc
5664       CMONEY_CC=config/locale/generic/monetary_members.cc
5665       CNUMERIC_CC=config/locale/generic/numeric_members.cc
5666       CTIME_H=config/locale/generic/time_members.h
5667       CTIME_CC=config/locale/generic/time_members.cc
5668       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5669       ;;
5670     gnu)
5671       echo "$as_me:$LINENO: result: gnu" >&5
5672 echo "${ECHO_T}gnu" >&6
5673
5674       # Declare intention to use gettext, and add support for specific
5675       # languages.
5676       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5677       ALL_LINGUAS="de fr"
5678
5679       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5680       # Extract the first word of "msgfmt", so it can be a program name with args.
5681 set dummy msgfmt; ac_word=$2
5682 echo "$as_me:$LINENO: checking for $ac_word" >&5
5683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5684 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   if test -n "$check_msgfmt"; then
5688   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693   IFS=$as_save_IFS
5694   test -z "$as_dir" && as_dir=.
5695   for ac_exec_ext in '' $ac_executable_extensions; do
5696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697     ac_cv_prog_check_msgfmt="yes"
5698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699     break 2
5700   fi
5701 done
5702 done
5703
5704   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5705 fi
5706 fi
5707 check_msgfmt=$ac_cv_prog_check_msgfmt
5708 if test -n "$check_msgfmt"; then
5709   echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5710 echo "${ECHO_T}$check_msgfmt" >&6
5711 else
5712   echo "$as_me:$LINENO: result: no" >&5
5713 echo "${ECHO_T}no" >&6
5714 fi
5715
5716       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5717         USE_NLS=yes
5718       fi
5719       # Export the build objects.
5720       for ling in $ALL_LINGUAS; do \
5721         glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5722         glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5723       done
5724
5725
5726
5727       CLOCALE_H=config/locale/gnu/c_locale.h
5728       CLOCALE_CC=config/locale/gnu/c_locale.cc
5729       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5730       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5731       CCOLLATE_CC=config/locale/gnu/collate_members.cc
5732       CCTYPE_CC=config/locale/gnu/ctype_members.cc
5733       CMESSAGES_H=config/locale/gnu/messages_members.h
5734       CMESSAGES_CC=config/locale/gnu/messages_members.cc
5735       CMONEY_CC=config/locale/gnu/monetary_members.cc
5736       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5737       CTIME_H=config/locale/gnu/time_members.h
5738       CTIME_CC=config/locale/gnu/time_members.cc
5739       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5740       ;;
5741     ieee_1003.1-2001)
5742       echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5743 echo "${ECHO_T}IEEE 1003.1" >&6
5744
5745       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5746       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5747       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5748       CCODECVT_CC=config/locale/generic/codecvt_members.cc
5749       CCOLLATE_CC=config/locale/generic/collate_members.cc
5750       CCTYPE_CC=config/locale/generic/ctype_members.cc
5751       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5752       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5753       CMONEY_CC=config/locale/generic/monetary_members.cc
5754       CNUMERIC_CC=config/locale/generic/numeric_members.cc
5755       CTIME_H=config/locale/generic/time_members.h
5756       CTIME_CC=config/locale/generic/time_members.cc
5757       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5758       ;;
5759   esac
5760
5761   # This is where the testsuite looks for locale catalogs, using the
5762   # -DLOCALEDIR define during testsuite compilation.
5763   glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5764
5765
5766   # A standalone libintl (e.g., GNU libintl) may be in use.
5767   if test $USE_NLS = yes; then
5768
5769 for ac_header in libintl.h
5770 do
5771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5773   echo "$as_me:$LINENO: checking for $ac_header" >&5
5774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 fi
5778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5780 else
5781   # Is the header compilable?
5782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5784 cat >conftest.$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791 $ac_includes_default
5792 #include <$ac_header>
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796   (eval $ac_compile) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } &&
5800          { ac_try='test -s conftest.$ac_objext'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   ac_header_compiler=yes
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 ac_header_compiler=no
5812 fi
5813 rm -f conftest.$ac_objext conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5815 echo "${ECHO_T}$ac_header_compiler" >&6
5816
5817 # Is the header present?
5818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5822 /* confdefs.h.  */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h.  */
5827 #include <$ac_header>
5828 _ACEOF
5829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5830   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } >/dev/null; then
5837   if test -s conftest.err; then
5838     ac_cpp_err=$ac_c_preproc_warn_flag
5839   else
5840     ac_cpp_err=
5841   fi
5842 else
5843   ac_cpp_err=yes
5844 fi
5845 if test -z "$ac_cpp_err"; then
5846   ac_header_preproc=yes
5847 else
5848   echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851   ac_header_preproc=no
5852 fi
5853 rm -f conftest.err conftest.$ac_ext
5854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5855 echo "${ECHO_T}$ac_header_preproc" >&6
5856
5857 # So?  What about this header?
5858 case $ac_header_compiler:$ac_header_preproc in
5859   yes:no )
5860     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5864     (
5865       cat <<\_ASBOX
5866 ## ------------------------------------ ##
5867 ## Report this to bug-autoconf@gnu.org. ##
5868 ## ------------------------------------ ##
5869 _ASBOX
5870     ) |
5871       sed "s/^/$as_me: WARNING:     /" >&2
5872     ;;
5873   no:yes )
5874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5876     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5880     (
5881       cat <<\_ASBOX
5882 ## ------------------------------------ ##
5883 ## Report this to bug-autoconf@gnu.org. ##
5884 ## ------------------------------------ ##
5885 _ASBOX
5886     ) |
5887       sed "s/^/$as_me: WARNING:     /" >&2
5888     ;;
5889 esac
5890 echo "$as_me:$LINENO: checking for $ac_header" >&5
5891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   eval "$as_ac_Header=$ac_header_preproc"
5896 fi
5897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5899
5900 fi
5901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5902   cat >>confdefs.h <<_ACEOF
5903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5904 _ACEOF
5905
5906 else
5907   USE_NLS=no
5908 fi
5909
5910 done
5911
5912     echo "$as_me:$LINENO: checking for library containing gettext" >&5
5913 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
5914 if test "${ac_cv_search_gettext+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   ac_func_search_save_LIBS=$LIBS
5918 ac_cv_search_gettext=no
5919 if test x$gcc_no_link = xyes; then
5920   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5921 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5922    { (exit 1); exit 1; }; }
5923 fi
5924 cat >conftest.$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931
5932 /* Override any gcc2 internal prototype to avoid an error.  */
5933 #ifdef __cplusplus
5934 extern "C"
5935 #endif
5936 /* We use char because int might match the return type of a gcc2
5937    builtin and then its argument prototype would still apply.  */
5938 char gettext ();
5939 int
5940 main ()
5941 {
5942 gettext ();
5943   ;
5944   return 0;
5945 }
5946 _ACEOF
5947 rm -f conftest.$ac_objext conftest$ac_exeext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5949   (eval $ac_link) 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } &&
5953          { ac_try='test -s conftest$ac_exeext'
5954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955   (eval $ac_try) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }; }; then
5959   ac_cv_search_gettext="none required"
5960 else
5961   echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 fi
5965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5966 if test "$ac_cv_search_gettext" = no; then
5967   for ac_lib in intl; do
5968     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5969     if test x$gcc_no_link = xyes; then
5970   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5971 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5972    { (exit 1); exit 1; }; }
5973 fi
5974 cat >conftest.$ac_ext <<_ACEOF
5975 #line $LINENO "configure"
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981
5982 /* Override any gcc2 internal prototype to avoid an error.  */
5983 #ifdef __cplusplus
5984 extern "C"
5985 #endif
5986 /* We use char because int might match the return type of a gcc2
5987    builtin and then its argument prototype would still apply.  */
5988 char gettext ();
5989 int
5990 main ()
5991 {
5992 gettext ();
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } &&
6003          { ac_try='test -s conftest$ac_exeext'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   ac_cv_search_gettext="-l$ac_lib"
6010 break
6011 else
6012   echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 fi
6016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6017   done
6018 fi
6019 LIBS=$ac_func_search_save_LIBS
6020 fi
6021 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6022 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6023 if test "$ac_cv_search_gettext" != no; then
6024   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6025
6026 else
6027   USE_NLS=no
6028 fi
6029
6030   fi
6031   if test $USE_NLS = yes; then
6032     cat >>confdefs.h <<\_ACEOF
6033 #define _GLIBCXX_USE_NLS 1
6034 _ACEOF
6035
6036   fi
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054    # Check whether --enable-cheaders or --disable-cheaders was given.
6055 if test "${enable_cheaders+set}" = set; then
6056   enableval="$enable_cheaders"
6057
6058       case "$enableval" in
6059        c|c_std) ;;
6060        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6061 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6062    { (exit 1); exit 1; }; } ;;
6063                           esac
6064
6065 else
6066   enable_cheaders=$c_model
6067 fi;
6068
6069   { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6070 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6071
6072   C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6073
6074
6075
6076
6077
6078
6079    # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6080 if test "${enable_c_mbchar+set}" = set; then
6081   enableval="$enable_c_mbchar"
6082
6083       case "$enableval" in
6084        yes|no) ;;
6085        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6086 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6087    { (exit 1); exit 1; }; } ;;
6088       esac
6089
6090 else
6091   enable_c_mbchar=yes
6092 fi;
6093
6094   # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6095
6096
6097
6098    # Check whether --enable-c99 or --disable-c99 was given.
6099 if test "${enable_c99+set}" = set; then
6100   enableval="$enable_c99"
6101
6102       case "$enableval" in
6103        yes|no) ;;
6104        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6105 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6106    { (exit 1); exit 1; }; } ;;
6107       esac
6108
6109 else
6110   enable_c99=yes
6111 fi;
6112
6113
6114
6115
6116   ac_ext=cc
6117 ac_cpp='$CXXCPP $CPPFLAGS'
6118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6121
6122
6123   # Check for the existence of <math.h> functions used if C99 is enabled.
6124   ac_c99_math=yes;
6125   echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6126 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6127   cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134 #include <math.h>
6135 int
6136 main ()
6137 {
6138 fpclassify(0.0);
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145   (eval $ac_compile) 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); } &&
6149          { ac_try='test -s conftest.$ac_objext'
6150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151   (eval $ac_try) 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }; }; then
6155   :
6156 else
6157   echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160 ac_c99_math=no
6161 fi
6162 rm -f conftest.$ac_objext conftest.$ac_ext
6163   cat >conftest.$ac_ext <<_ACEOF
6164 #line $LINENO "configure"
6165 /* confdefs.h.  */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h.  */
6170 #include <math.h>
6171 int
6172 main ()
6173 {
6174 isfinite(0.0);
6175   ;
6176   return 0;
6177 }
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181   (eval $ac_compile) 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } &&
6185          { ac_try='test -s conftest.$ac_objext'
6186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187   (eval $ac_try) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); }; }; then
6191   :
6192 else
6193   echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 ac_c99_math=no
6197 fi
6198 rm -f conftest.$ac_objext conftest.$ac_ext
6199   cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206 #include <math.h>
6207 int
6208 main ()
6209 {
6210 isinf(0.0);
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 rm -f conftest.$ac_objext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6217   (eval $ac_compile) 2>&5
6218   ac_status=$?
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); } &&
6221          { ac_try='test -s conftest.$ac_objext'
6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223   (eval $ac_try) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; }; then
6227   :
6228 else
6229   echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232 ac_c99_math=no
6233 fi
6234 rm -f conftest.$ac_objext conftest.$ac_ext
6235   cat >conftest.$ac_ext <<_ACEOF
6236 #line $LINENO "configure"
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 #include <math.h>
6243 int
6244 main ()
6245 {
6246 isnan(0.0);
6247   ;
6248   return 0;
6249 }
6250 _ACEOF
6251 rm -f conftest.$ac_objext
6252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6253   (eval $ac_compile) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); } &&
6257          { ac_try='test -s conftest.$ac_objext'
6258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259   (eval $ac_try) 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); }; }; then
6263   :
6264 else
6265   echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6267
6268 ac_c99_math=no
6269 fi
6270 rm -f conftest.$ac_objext conftest.$ac_ext
6271   cat >conftest.$ac_ext <<_ACEOF
6272 #line $LINENO "configure"
6273 /* confdefs.h.  */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h.  */
6278 #include <math.h>
6279 int
6280 main ()
6281 {
6282 isnormal(0.0);
6283   ;
6284   return 0;
6285 }
6286 _ACEOF
6287 rm -f conftest.$ac_objext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6289   (eval $ac_compile) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); } &&
6293          { ac_try='test -s conftest.$ac_objext'
6294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295   (eval $ac_try) 2>&5
6296   ac_status=$?
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); }; }; then
6299   :
6300 else
6301   echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 ac_c99_math=no
6305 fi
6306 rm -f conftest.$ac_objext conftest.$ac_ext
6307   cat >conftest.$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314 #include <math.h>
6315 int
6316 main ()
6317 {
6318 signbit(0.0);
6319   ;
6320   return 0;
6321 }
6322 _ACEOF
6323 rm -f conftest.$ac_objext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6325   (eval $ac_compile) 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); } &&
6329          { ac_try='test -s conftest.$ac_objext'
6330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331   (eval $ac_try) 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); }; }; then
6335   :
6336 else
6337   echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6339
6340 ac_c99_math=no
6341 fi
6342 rm -f conftest.$ac_objext conftest.$ac_ext
6343   cat >conftest.$ac_ext <<_ACEOF
6344 #line $LINENO "configure"
6345 /* confdefs.h.  */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h.  */
6350 #include <math.h>
6351 int
6352 main ()
6353 {
6354 isgreater(0.0,0.0);
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361   (eval $ac_compile) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } &&
6365          { ac_try='test -s conftest.$ac_objext'
6366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367   (eval $ac_try) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; }; then
6371   :
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376 ac_c99_math=no
6377 fi
6378 rm -f conftest.$ac_objext conftest.$ac_ext
6379   cat >conftest.$ac_ext <<_ACEOF
6380 #line $LINENO "configure"
6381 /* confdefs.h.  */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h.  */
6386 #include <math.h>
6387 int
6388 main ()
6389 {
6390 isgreaterequal(0.0,0.0);
6391   ;
6392   return 0;
6393 }
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397   (eval $ac_compile) 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); } &&
6401          { ac_try='test -s conftest.$ac_objext'
6402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403   (eval $ac_try) 2>&5
6404   ac_status=$?
6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406   (exit $ac_status); }; }; then
6407   :
6408 else
6409   echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412 ac_c99_math=no
6413 fi
6414 rm -f conftest.$ac_objext conftest.$ac_ext
6415   cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 /* confdefs.h.  */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h.  */
6422 #include <math.h>
6423 int
6424 main ()
6425 {
6426 isless(0.0,0.0);
6427   ;
6428   return 0;
6429 }
6430 _ACEOF
6431 rm -f conftest.$ac_objext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433   (eval $ac_compile) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } &&
6437          { ac_try='test -s conftest.$ac_objext'
6438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439   (eval $ac_try) 2>&5
6440   ac_status=$?
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); }; }; then
6443   :
6444 else
6445   echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6447
6448 ac_c99_math=no
6449 fi
6450 rm -f conftest.$ac_objext conftest.$ac_ext
6451   cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 #include <math.h>
6459 int
6460 main ()
6461 {
6462 islessequal(0.0,0.0);
6463   ;
6464   return 0;
6465 }
6466 _ACEOF
6467 rm -f conftest.$ac_objext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469   (eval $ac_compile) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } &&
6473          { ac_try='test -s conftest.$ac_objext'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; }; then
6479   :
6480 else
6481   echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 ac_c99_math=no
6485 fi
6486 rm -f conftest.$ac_objext conftest.$ac_ext
6487   cat >conftest.$ac_ext <<_ACEOF
6488 #line $LINENO "configure"
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494 #include <math.h>
6495 int
6496 main ()
6497 {
6498 islessgreater(0.0,0.0);
6499   ;
6500   return 0;
6501 }
6502 _ACEOF
6503 rm -f conftest.$ac_objext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505   (eval $ac_compile) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); } &&
6509          { ac_try='test -s conftest.$ac_objext'
6510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511   (eval $ac_try) 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); }; }; then
6515   :
6516 else
6517   echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520 ac_c99_math=no
6521 fi
6522 rm -f conftest.$ac_objext conftest.$ac_ext
6523   cat >conftest.$ac_ext <<_ACEOF
6524 #line $LINENO "configure"
6525 /* confdefs.h.  */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h.  */
6530 #include <math.h>
6531 int
6532 main ()
6533 {
6534 isunordered(0.0,0.0);
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541   (eval $ac_compile) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); } &&
6545          { ac_try='test -s conftest.$ac_objext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   :
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_c99_math=no
6557 fi
6558 rm -f conftest.$ac_objext conftest.$ac_ext
6559   echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6560 echo "${ECHO_T}$ac_c99_math" >&6
6561
6562   if test x"$ac_c99_math" = x"yes"; then
6563     cat >>confdefs.h <<\_ACEOF
6564 #define _GLIBCXX_USE_C99_MATH 1
6565 _ACEOF
6566
6567   fi
6568
6569   # Check for the existence in <stdio.h> of vscanf, et. al.
6570   ac_c99_stdio=yes;
6571   echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6572 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6573   cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 /* confdefs.h.  */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h.  */
6580 #include <stdio.h>
6581 int
6582 main ()
6583 {
6584 snprintf("12", 0, "%i");
6585   ;
6586   return 0;
6587 }
6588 _ACEOF
6589 rm -f conftest.$ac_objext
6590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591   (eval $ac_compile) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); } &&
6595          { ac_try='test -s conftest.$ac_objext'
6596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597   (eval $ac_try) 2>&5
6598   ac_status=$?
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); }; }; then
6601   :
6602 else
6603   echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 ac_c99_stdio=no
6607 fi
6608 rm -f conftest.$ac_objext conftest.$ac_ext
6609   cat >conftest.$ac_ext <<_ACEOF
6610 #line $LINENO "configure"
6611 /* confdefs.h.  */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h.  */
6616 #include <stdio.h>
6617                   #include <stdarg.h>
6618                   void foo(char* fmt, ...)
6619                   {va_list args; va_start(args, fmt);
6620                   vfscanf(stderr, "%i", args);}
6621 int
6622 main ()
6623 {
6624
6625   ;
6626   return 0;
6627 }
6628 _ACEOF
6629 rm -f conftest.$ac_objext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631   (eval $ac_compile) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } &&
6635          { ac_try='test -s conftest.$ac_objext'
6636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637   (eval $ac_try) 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }; }; then
6641   :
6642 else
6643   echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 ac_c99_stdio=no
6647 fi
6648 rm -f conftest.$ac_objext conftest.$ac_ext
6649   cat >conftest.$ac_ext <<_ACEOF
6650 #line $LINENO "configure"
6651 /* confdefs.h.  */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h.  */
6656 #include <stdio.h>
6657                   #include <stdarg.h>
6658                   void foo(char* fmt, ...)
6659                   {va_list args; va_start(args, fmt);
6660                   vscanf("%i", args);}
6661 int
6662 main ()
6663 {
6664
6665   ;
6666   return 0;
6667 }
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671   (eval $ac_compile) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); } &&
6675          { ac_try='test -s conftest.$ac_objext'
6676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677   (eval $ac_try) 2>&5
6678   ac_status=$?
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); }; }; then
6681   :
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 ac_c99_stdio=no
6687 fi
6688 rm -f conftest.$ac_objext conftest.$ac_ext
6689   cat >conftest.$ac_ext <<_ACEOF
6690 #line $LINENO "configure"
6691 /* confdefs.h.  */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h.  */
6696 #include <stdio.h>
6697                   #include <stdarg.h>
6698                   void foo(char* fmt, ...)
6699                   {va_list args; va_start(args, fmt);
6700                   vsnprintf(fmt, 0, "%i", args);}
6701 int
6702 main ()
6703 {
6704
6705   ;
6706   return 0;
6707 }
6708 _ACEOF
6709 rm -f conftest.$ac_objext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711   (eval $ac_compile) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); } &&
6715          { ac_try='test -s conftest.$ac_objext'
6716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717   (eval $ac_try) 2>&5
6718   ac_status=$?
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); }; }; then
6721   :
6722 else
6723   echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6725
6726 ac_c99_stdio=no
6727 fi
6728 rm -f conftest.$ac_objext conftest.$ac_ext
6729   cat >conftest.$ac_ext <<_ACEOF
6730 #line $LINENO "configure"
6731 /* confdefs.h.  */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h.  */
6736 #include <stdio.h>
6737                   #include <stdarg.h>
6738                   void foo(char* fmt, ...)
6739                   {va_list args; va_start(args, fmt);
6740                   vsscanf(fmt, "%i", args);}
6741 int
6742 main ()
6743 {
6744
6745   ;
6746   return 0;
6747 }
6748 _ACEOF
6749 rm -f conftest.$ac_objext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6751   (eval $ac_compile) 2>&5
6752   ac_status=$?
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); } &&
6755          { ac_try='test -s conftest.$ac_objext'
6756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757   (eval $ac_try) 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); }; }; then
6761   :
6762 else
6763   echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766 ac_c99_stdio=no
6767 fi
6768 rm -f conftest.$ac_objext conftest.$ac_ext
6769   echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
6770 echo "${ECHO_T}$ac_c99_stdio" >&6
6771
6772   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
6773   ac_c99_stdlib=yes;
6774   echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
6775 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
6776   if test "${ac_c99_lldiv_t+set}" = set; then
6777   echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779
6780   cat >conftest.$ac_ext <<_ACEOF
6781 #line $LINENO "configure"
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787 #include <stdlib.h>
6788 int
6789 main ()
6790 {
6791  lldiv_t mydivt;
6792   ;
6793   return 0;
6794 }
6795 _ACEOF
6796 rm -f conftest.$ac_objext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798   (eval $ac_compile) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); } &&
6802          { ac_try='test -s conftest.$ac_objext'
6803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804   (eval $ac_try) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; }; then
6808   ac_c99_lldiv_t=yes
6809 else
6810   echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 ac_c99_lldiv_t=no
6814 fi
6815 rm -f conftest.$ac_objext conftest.$ac_ext
6816
6817 fi
6818
6819   echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
6820 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
6821
6822   echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
6823 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
6824   cat >conftest.$ac_ext <<_ACEOF
6825 #line $LINENO "configure"
6826 /* confdefs.h.  */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h.  */
6831 #include <stdlib.h>
6832 int
6833 main ()
6834 {
6835 char* tmp; strtof("gnu", &tmp);
6836   ;
6837   return 0;
6838 }
6839 _ACEOF
6840 rm -f conftest.$ac_objext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842   (eval $ac_compile) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); } &&
6846          { ac_try='test -s conftest.$ac_objext'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   :
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_c99_stdlib=no
6858 fi
6859 rm -f conftest.$ac_objext conftest.$ac_ext
6860   cat >conftest.$ac_ext <<_ACEOF
6861 #line $LINENO "configure"
6862 /* confdefs.h.  */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h.  */
6867 #include <stdlib.h>
6868 int
6869 main ()
6870 {
6871 char* tmp; strtold("gnu", &tmp);
6872   ;
6873   return 0;
6874 }
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6878   (eval $ac_compile) 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); } &&
6882          { ac_try='test -s conftest.$ac_objext'
6883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884   (eval $ac_try) 2>&5
6885   ac_status=$?
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); }; }; then
6888   :
6889 else
6890   echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6892
6893 ac_c99_stdlib=no
6894 fi
6895 rm -f conftest.$ac_objext conftest.$ac_ext
6896   cat >conftest.$ac_ext <<_ACEOF
6897 #line $LINENO "configure"
6898 /* confdefs.h.  */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h.  */
6903 #include <stdlib.h>
6904 int
6905 main ()
6906 {
6907 llabs(10);
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914   (eval $ac_compile) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } &&
6918          { ac_try='test -s conftest.$ac_objext'
6919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920   (eval $ac_try) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; }; then
6924   :
6925 else
6926   echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929 ac_c99_stdlib=no
6930 fi
6931 rm -f conftest.$ac_objext conftest.$ac_ext
6932   cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939 #include <stdlib.h>
6940 int
6941 main ()
6942 {
6943 lldiv(10,1);
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6950   (eval $ac_compile) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } &&
6954          { ac_try='test -s conftest.$ac_objext'
6955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956   (eval $ac_try) 2>&5
6957   ac_status=$?
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); }; }; then
6960   :
6961 else
6962   echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 ac_c99_stdlib=no
6966 fi
6967 rm -f conftest.$ac_objext conftest.$ac_ext
6968   cat >conftest.$ac_ext <<_ACEOF
6969 #line $LINENO "configure"
6970 /* confdefs.h.  */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h.  */
6975 #include <stdlib.h>
6976 int
6977 main ()
6978 {
6979 atoll("10");
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986   (eval $ac_compile) 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } &&
6990          { ac_try='test -s conftest.$ac_objext'
6991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992   (eval $ac_try) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; }; then
6996   :
6997 else
6998   echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_c99_stdlib=no
7002 fi
7003 rm -f conftest.$ac_objext conftest.$ac_ext
7004   cat >conftest.$ac_ext <<_ACEOF
7005 #line $LINENO "configure"
7006 /* confdefs.h.  */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h.  */
7011 #include <stdlib.h>
7012 int
7013 main ()
7014 {
7015 _Exit(0);
7016   ;
7017   return 0;
7018 }
7019 _ACEOF
7020 rm -f conftest.$ac_objext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7022   (eval $ac_compile) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); } &&
7026          { ac_try='test -s conftest.$ac_objext'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032   :
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037 ac_c99_stdlib=no
7038 fi
7039 rm -f conftest.$ac_objext conftest.$ac_ext
7040   if test x"$ac_c99_lldiv_t" = x"no"; then
7041     ac_c99_stdlib=no;
7042   fi;
7043   echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7044 echo "${ECHO_T}$ac_c99_stdlib" >&6
7045
7046   # Check for the existence of <wchar.h> functions used if C99 is enabled.
7047   # XXX the wchar.h checks should be rolled into the general C99 bits.
7048   ac_c99_wchar=yes;
7049   echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7050 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7051   cat >conftest.$ac_ext <<_ACEOF
7052 #line $LINENO "configure"
7053 /* confdefs.h.  */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h.  */
7058 #include <wchar.h>
7059 int
7060 main ()
7061 {
7062 wcstold(L"10.0", NULL);
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069   (eval $ac_compile) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } &&
7073          { ac_try='test -s conftest.$ac_objext'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; }; then
7079   :
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084 ac_c99_wchar=no
7085 fi
7086 rm -f conftest.$ac_objext conftest.$ac_ext
7087   cat >conftest.$ac_ext <<_ACEOF
7088 #line $LINENO "configure"
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094 #include <wchar.h>
7095 int
7096 main ()
7097 {
7098 wcstoll(L"10", NULL, 10);
7099   ;
7100   return 0;
7101 }
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105   (eval $ac_compile) 2>&5
7106   ac_status=$?
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } &&
7109          { ac_try='test -s conftest.$ac_objext'
7110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111   (eval $ac_try) 2>&5
7112   ac_status=$?
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); }; }; then
7115   :
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 ac_c99_wchar=no
7121 fi
7122 rm -f conftest.$ac_objext conftest.$ac_ext
7123   cat >conftest.$ac_ext <<_ACEOF
7124 #line $LINENO "configure"
7125 /* confdefs.h.  */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h.  */
7130 #include <wchar.h>
7131 int
7132 main ()
7133 {
7134 wcstoull(L"10", NULL, 10);
7135   ;
7136   return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141   (eval $ac_compile) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); } &&
7145          { ac_try='test -s conftest.$ac_objext'
7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147   (eval $ac_try) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }; }; then
7151   :
7152 else
7153   echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7155
7156 ac_c99_wchar=no
7157 fi
7158 rm -f conftest.$ac_objext conftest.$ac_ext
7159   echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7160 echo "${ECHO_T}$ac_c99_wchar" >&6
7161
7162   echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7163 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7164   if test x"$ac_c99_math" = x"no" ||
7165      test x"$ac_c99_stdio" = x"no" ||
7166      test x"$ac_c99_stdlib" = x"no" ||
7167      test x"$ac_c99_wchar" = x"no"; then
7168     enable_c99=no;
7169   fi;
7170   echo "$as_me:$LINENO: result: $enable_c99" >&5
7171 echo "${ECHO_T}$enable_c99" >&6
7172
7173   if test x"$ac_99_math" = x"yes"; then
7174     cat >>confdefs.h <<\_ACEOF
7175 #define _GLIBCXX_USE_C99_MATH 1
7176 _ACEOF
7177
7178   fi
7179
7180   # Option parsed, now set things appropriately
7181   if test x"$enable_c99" = x"yes"; then
7182     cat >>confdefs.h <<\_ACEOF
7183 #define _GLIBCXX_USE_C99 1
7184 _ACEOF
7185
7186   fi
7187
7188   ac_ext=c
7189 ac_cpp='$CPP $CPPFLAGS'
7190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7193
7194
7195
7196    # Check whether --enable-long-long or --disable-long-long was given.
7197 if test "${enable_long_long+set}" = set; then
7198   enableval="$enable_long_long"
7199
7200       case "$enableval" in
7201        yes|no) ;;
7202        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7203 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7204    { (exit 1); exit 1; }; } ;;
7205       esac
7206
7207 else
7208   enable_long_long=yes
7209 fi;
7210
7211
7212
7213
7214   ac_ext=cc
7215 ac_cpp='$CXXCPP $CPPFLAGS'
7216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7219
7220
7221   echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7222 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7223   # iostreams require strtoll, strtoull to compile
7224   cat >conftest.$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7226 /* confdefs.h.  */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h.  */
7231 #include <stdlib.h>
7232 int
7233 main ()
7234 {
7235 char* tmp; strtoll("gnu", &tmp, 10);
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242   (eval $ac_compile) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } &&
7246          { ac_try='test -s conftest.$ac_objext'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; }; then
7252   :
7253 else
7254   echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 enable_long_long=no
7258 fi
7259 rm -f conftest.$ac_objext conftest.$ac_ext
7260   cat >conftest.$ac_ext <<_ACEOF
7261 #line $LINENO "configure"
7262 /* confdefs.h.  */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h.  */
7267 #include <stdlib.h>
7268 int
7269 main ()
7270 {
7271 char* tmp; strtoull("gnu", &tmp, 10);
7272   ;
7273   return 0;
7274 }
7275 _ACEOF
7276 rm -f conftest.$ac_objext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278   (eval $ac_compile) 2>&5
7279   ac_status=$?
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); } &&
7282          { ac_try='test -s conftest.$ac_objext'
7283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284   (eval $ac_try) 2>&5
7285   ac_status=$?
7286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287   (exit $ac_status); }; }; then
7288   :
7289 else
7290   echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293 enable_long_long=no
7294 fi
7295 rm -f conftest.$ac_objext conftest.$ac_ext
7296
7297   # Option parsed, now set things appropriately
7298   if test $enable_long_long = yes; then
7299     cat >>confdefs.h <<\_ACEOF
7300 #define _GLIBCXX_USE_LONG_LONG 1
7301 _ACEOF
7302
7303   fi
7304   echo "$as_me:$LINENO: result: $enable_long_long" >&5
7305 echo "${ECHO_T}$enable_long_long" >&6
7306
7307   ac_ext=c
7308 ac_cpp='$CPP $CPPFLAGS'
7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7312
7313
7314
7315   echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7316 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7317   target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7318   echo "$as_me:$LINENO: result: $target_thread_file" >&5
7319 echo "${ECHO_T}$target_thread_file" >&6
7320
7321   if test $target_thread_file != single; then
7322     cat >>confdefs.h <<\_ACEOF
7323 #define HAVE_GTHR_DEFAULT 1
7324 _ACEOF
7325
7326     cat >>confdefs.h <<\_ACEOF
7327 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
7328 _ACEOF
7329
7330   fi
7331
7332   glibcxx_thread_h=gthr-$target_thread_file.h
7333
7334
7335
7336    # Check whether --enable-concept-checks or --disable-concept-checks was given.
7337 if test "${enable_concept_checks+set}" = set; then
7338   enableval="$enable_concept_checks"
7339
7340       case "$enableval" in
7341        yes|no) ;;
7342        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7343 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7344    { (exit 1); exit 1; }; } ;;
7345       esac
7346
7347 else
7348   enable_concept_checks=no
7349 fi;
7350
7351   if test $enable_concept_checks = yes; then
7352     cat >>confdefs.h <<\_ACEOF
7353 #define _GLIBCXX_CONCEPT_CHECKS 1
7354 _ACEOF
7355
7356   fi
7357
7358
7359    # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7360 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7361   enableval="$enable_libstdcxx_debug_flags"
7362   case "x$enable_libstdcxx_debug_flags" in
7363       xno | x)    enable_libstdcxx_debug_flags= ;;
7364       x-*)        ;;
7365       *)          { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7366 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7367    { (exit 1); exit 1; }; } ;;
7368      esac
7369 else
7370   enable_libstdcxx_debug_flags="-g3 -O0"
7371 fi;
7372
7373
7374   # Option parsed, now set things appropriately
7375   DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7376
7377
7378   { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7379 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7380
7381
7382   echo "$as_me:$LINENO: checking for additional debug build" >&5
7383 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7384    # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7385 if test "${enable_libstdcxx_debug+set}" = set; then
7386   enableval="$enable_libstdcxx_debug"
7387
7388       case "$enableval" in
7389        yes|no) ;;
7390        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7391 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7392    { (exit 1); exit 1; }; } ;;
7393       esac
7394
7395 else
7396   enable_libstdcxx_debug=no
7397 fi;
7398
7399   echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7400 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7401
7402
7403   echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7404 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7405    # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7406 if test "${enable_cxx_flags+set}" = set; then
7407   enableval="$enable_cxx_flags"
7408   case "x$enable_cxx_flags" in
7409       xno | x)   enable_cxx_flags= ;;
7410       x-*)       ;;
7411       *)         { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7412 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7413    { (exit 1); exit 1; }; } ;;
7414      esac
7415 else
7416   enable_cxx_flags=
7417 fi;
7418
7419
7420   # Run through flags (either default or command-line) and set anything
7421   # extra (e.g., #defines) that must accompany particular g++ options.
7422   if test -n "$enable_cxx_flags"; then
7423     for f in $enable_cxx_flags; do
7424       case "$f" in
7425         -fhonor-std)  ;;
7426         -*)  ;;
7427         *)   # and we're trying to pass /what/ exactly?
7428              { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7429 echo "$as_me: error: compiler flags start with a -" >&2;}
7430    { (exit 1); exit 1; }; } ;;
7431       esac
7432     done
7433   fi
7434
7435   EXTRA_CXX_FLAGS="$enable_cxx_flags"
7436   echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7437 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7438
7439
7440
7441 # No surprises, no surprises...
7442 if test $atomicity_include_dir = cpu/generic ; then
7443   { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7444 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7445   if test $target_thread_file = single; then
7446     { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7447 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7448     { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7449 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7450   else
7451     { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7452 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7453     { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7454 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7455   fi
7456 fi
7457
7458
7459 if $GLIBCXX_IS_NATIVE; then
7460
7461   # We can do more elaborate tests that assume a working linker.
7462   CANADIAN=no
7463
7464   # Check for available headers.
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7479   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7480   sys/types.h
7481 do
7482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7484   echo "$as_me:$LINENO: checking for $ac_header" >&5
7485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 fi
7489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7491 else
7492   # Is the header compilable?
7493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7495 cat >conftest.$ac_ext <<_ACEOF
7496 #line $LINENO "configure"
7497 /* confdefs.h.  */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h.  */
7502 $ac_includes_default
7503 #include <$ac_header>
7504 _ACEOF
7505 rm -f conftest.$ac_objext
7506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507   (eval $ac_compile) 2>&5
7508   ac_status=$?
7509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); } &&
7511          { ac_try='test -s conftest.$ac_objext'
7512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513   (eval $ac_try) 2>&5
7514   ac_status=$?
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); }; }; then
7517   ac_header_compiler=yes
7518 else
7519   echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7521
7522 ac_header_compiler=no
7523 fi
7524 rm -f conftest.$ac_objext conftest.$ac_ext
7525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7526 echo "${ECHO_T}$ac_header_compiler" >&6
7527
7528 # Is the header present?
7529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7531 cat >conftest.$ac_ext <<_ACEOF
7532 #line $LINENO "configure"
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538 #include <$ac_header>
7539 _ACEOF
7540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7542   ac_status=$?
7543   grep -v '^ *+' conftest.er1 >conftest.err
7544   rm -f conftest.er1
7545   cat conftest.err >&5
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); } >/dev/null; then
7548   if test -s conftest.err; then
7549     ac_cpp_err=$ac_c_preproc_warn_flag
7550   else
7551     ac_cpp_err=
7552   fi
7553 else
7554   ac_cpp_err=yes
7555 fi
7556 if test -z "$ac_cpp_err"; then
7557   ac_header_preproc=yes
7558 else
7559   echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7561
7562   ac_header_preproc=no
7563 fi
7564 rm -f conftest.err conftest.$ac_ext
7565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566 echo "${ECHO_T}$ac_header_preproc" >&6
7567
7568 # So?  What about this header?
7569 case $ac_header_compiler:$ac_header_preproc in
7570   yes:no )
7571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7575     (
7576       cat <<\_ASBOX
7577 ## ------------------------------------ ##
7578 ## Report this to bug-autoconf@gnu.org. ##
7579 ## ------------------------------------ ##
7580 _ASBOX
7581     ) |
7582       sed "s/^/$as_me: WARNING:     /" >&2
7583     ;;
7584   no:yes )
7585     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7587     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7591     (
7592       cat <<\_ASBOX
7593 ## ------------------------------------ ##
7594 ## Report this to bug-autoconf@gnu.org. ##
7595 ## ------------------------------------ ##
7596 _ASBOX
7597     ) |
7598       sed "s/^/$as_me: WARNING:     /" >&2
7599     ;;
7600 esac
7601 echo "$as_me:$LINENO: checking for $ac_header" >&5
7602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7604   echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606   eval "$as_ac_Header=$ac_header_preproc"
7607 fi
7608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7610
7611 fi
7612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7613   cat >>confdefs.h <<_ACEOF
7614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7615 _ACEOF
7616
7617 fi
7618
7619 done
7620
7621
7622
7623   # All these tests are for C++; save the language and the compiler flags.
7624   # The CXXFLAGS thing is suspicious, but based on similar bits previously
7625   # found in GLIBCXX_CONFIGURE.
7626
7627
7628   ac_ext=cc
7629 ac_cpp='$CXXCPP $CPPFLAGS'
7630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7633
7634   ac_test_CXXFLAGS="${CXXFLAGS+set}"
7635   ac_save_CXXFLAGS="$CXXFLAGS"
7636
7637   # Check for maintainer-mode bits.
7638   if test x"$USE_MAINTAINER_MODE" = xno; then
7639     WERROR=''
7640   else
7641     WERROR='-Werror'
7642   fi
7643
7644   # Check for -ffunction-sections -fdata-sections
7645   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7646 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
7647   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7648   cat >conftest.$ac_ext <<_ACEOF
7649 #line $LINENO "configure"
7650 /* confdefs.h.  */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h.  */
7655
7656 int
7657 main ()
7658 {
7659 int foo;
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 rm -f conftest.$ac_objext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7666   (eval $ac_compile) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); } &&
7670          { ac_try='test -s conftest.$ac_objext'
7671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672   (eval $ac_try) 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }; }; then
7676   ac_fdsections=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681 ac_fdsections=no
7682 fi
7683 rm -f conftest.$ac_objext conftest.$ac_ext
7684   if test "$ac_test_CXXFLAGS" = set; then
7685     CXXFLAGS="$ac_save_CXXFLAGS"
7686   else
7687     # this is the suspicious part
7688     CXXFLAGS=''
7689   fi
7690   if test x"$ac_fdsections" = x"yes"; then
7691     SECTION_FLAGS='-ffunction-sections -fdata-sections'
7692   fi
7693   echo "$as_me:$LINENO: result: $ac_fdsections" >&5
7694 echo "${ECHO_T}$ac_fdsections" >&6
7695
7696   ac_ext=c
7697 ac_cpp='$CPP $CPPFLAGS'
7698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7701
7702
7703
7704
7705
7706   # If we're not using GNU ld, then there's no point in even trying these
7707   # tests.  Check for that first.  We should have already tested for gld
7708   # by now (in libtool), but require it now just to be safe...
7709   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7710   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7711
7712
7713
7714   # The name set by libtool depends on the version of libtool.  Shame on us
7715   # for depending on an impl detail, but c'est la vie.  Older versions used
7716   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7717   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7718   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7719   # set (hence we're using an older libtool), then set it.
7720   if test x${with_gnu_ld+set} != xset; then
7721     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7722       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7723       with_gnu_ld=no
7724     else
7725       with_gnu_ld=$ac_cv_prog_gnu_ld
7726     fi
7727   fi
7728
7729   # Start by getting the version number.  I think the libtool test already
7730   # does some of this, but throws away the result.
7731
7732   ldver=`$LD --version 2>/dev/null | head -1 | \
7733          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7734
7735   glibcxx_gnu_ld_version=`echo $ldver | \
7736          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7737
7738   # Set --gc-sections.
7739   if test "$with_gnu_ld" = "notbroken"; then
7740     # GNU ld it is!  Joy and bunny rabbits!
7741
7742     # All these tests are for C++; save the language and the compiler flags.
7743     # Need to do this so that g++ won't try to link in libstdc++
7744     ac_test_CFLAGS="${CFLAGS+set}"
7745     ac_save_CFLAGS="$CFLAGS"
7746     CFLAGS='-x c++  -Wl,--gc-sections'
7747
7748     # Check for -Wl,--gc-sections
7749     # XXX This test is broken at the moment, as symbols required for linking
7750     # are now in libsupc++ (not built yet).  In addition, this test has
7751     # cored on solaris in the past.  In addition, --gc-sections doesn't
7752     # really work at the moment (keeps on discarding used sections, first
7753     # .eh_frame and now some of the glibc sections for iconv).
7754     # Bzzzzt.  Thanks for playing, maybe next time.
7755     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
7756 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
7757     if test "$cross_compiling" = yes; then
7758   ac_sectionLDflags=yes
7759 else
7760   cat >conftest.$ac_ext <<_ACEOF
7761 #line $LINENO "configure"
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767
7768      int main(void)
7769      {
7770        try { throw 1; }
7771        catch (...) { };
7772        return 0;
7773      }
7774
7775 _ACEOF
7776 rm -f conftest$ac_exeext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778   (eval $ac_link) 2>&5
7779   ac_status=$?
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783   (eval $ac_try) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); }; }; then
7787   ac_sectionLDflags=yes
7788 else
7789   echo "$as_me: program exited with status $ac_status" >&5
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7792
7793 ( exit $ac_status )
7794 ac_sectionLDflags=no
7795 fi
7796 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7797 fi
7798     if test "$ac_test_CFLAGS" = set; then
7799       CFLAGS="$ac_save_CFLAGS"
7800     else
7801       # this is the suspicious part
7802       CFLAGS=''
7803     fi
7804     if test "$ac_sectionLDflags" = "yes"; then
7805       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7806     fi
7807     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
7808 echo "${ECHO_T}$ac_sectionLDflags" >&6
7809   fi
7810
7811   # Set linker optimization flags.
7812   if test x"$with_gnu_ld" = x"yes"; then
7813     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7814   fi
7815
7816
7817
7818
7819
7820   ac_test_CXXFLAGS="${CXXFLAGS+set}"
7821   ac_save_CXXFLAGS="$CXXFLAGS"
7822   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
7823
7824     echo "$as_me:$LINENO: checking for sin in -lm" >&5
7825 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
7826 if test "${ac_cv_lib_m_sin+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   ac_check_lib_save_LIBS=$LIBS
7830 LIBS="-lm  $LIBS"
7831 if test x$gcc_no_link = xyes; then
7832   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7834    { (exit 1); exit 1; }; }
7835 fi
7836 cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843
7844 /* Override any gcc2 internal prototype to avoid an error.  */
7845 #ifdef __cplusplus
7846 extern "C"
7847 #endif
7848 /* We use char because int might match the return type of a gcc2
7849    builtin and then its argument prototype would still apply.  */
7850 char sin ();
7851 int
7852 main ()
7853 {
7854 sin ();
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7861   (eval $ac_link) 2>&5
7862   ac_status=$?
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } &&
7865          { ac_try='test -s conftest$ac_exeext'
7866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867   (eval $ac_try) 2>&5
7868   ac_status=$?
7869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); }; }; then
7871   ac_cv_lib_m_sin=yes
7872 else
7873   echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876 ac_cv_lib_m_sin=no
7877 fi
7878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7879 LIBS=$ac_check_lib_save_LIBS
7880 fi
7881 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7882 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
7883 if test $ac_cv_lib_m_sin = yes; then
7884   libm="-lm"
7885 fi
7886
7887   ac_save_LIBS="$LIBS"
7888   LIBS="$LIBS $libm"
7889
7890
7891
7892   echo "$as_me:$LINENO: checking for isinf declaration" >&5
7893 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
7894   if test x${glibcxx_cv_func_isinf_use+set} != xset; then
7895     if test "${glibcxx_cv_func_isinf_use+set}" = set; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898
7899
7900
7901       ac_ext=cc
7902 ac_cpp='$CXXCPP $CPPFLAGS'
7903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7906
7907       cat >conftest.$ac_ext <<_ACEOF
7908 #line $LINENO "configure"
7909 /* confdefs.h.  */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h.  */
7914 #include <math.h>
7915                       #ifdef HAVE_IEEEFP_H
7916                       #include <ieeefp.h>
7917                       #endif
7918
7919 int
7920 main ()
7921 {
7922  isinf(0);
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929   (eval $ac_compile) 2>&5
7930   ac_status=$?
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } &&
7933          { ac_try='test -s conftest.$ac_objext'
7934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935   (eval $ac_try) 2>&5
7936   ac_status=$?
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); }; }; then
7939   glibcxx_cv_func_isinf_use=yes
7940 else
7941   echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7943
7944 glibcxx_cv_func_isinf_use=no
7945 fi
7946 rm -f conftest.$ac_objext conftest.$ac_ext
7947       ac_ext=c
7948 ac_cpp='$CPP $CPPFLAGS'
7949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952
7953
7954 fi
7955
7956   fi
7957   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
7958 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
7959
7960   if test x$glibcxx_cv_func_isinf_use = x"yes"; then
7961
7962 for ac_func in isinf
7963 do
7964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7965 echo "$as_me:$LINENO: checking for $ac_func" >&5
7966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7967 if eval "test \"\${$as_ac_var+set}\" = set"; then
7968   echo $ECHO_N "(cached) $ECHO_C" >&6
7969 else
7970   if test x$gcc_no_link = xyes; then
7971   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7972 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7973    { (exit 1); exit 1; }; }
7974 fi
7975 cat >conftest.$ac_ext <<_ACEOF
7976 #line $LINENO "configure"
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982 /* System header to define __stub macros and hopefully few prototypes,
7983     which can conflict with char $ac_func (); below.
7984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7985     <limits.h> exists even on freestanding compilers.  */
7986 #ifdef __STDC__
7987 # include <limits.h>
7988 #else
7989 # include <assert.h>
7990 #endif
7991 /* Override any gcc2 internal prototype to avoid an error.  */
7992 #ifdef __cplusplus
7993 extern "C"
7994 {
7995 #endif
7996 /* We use char because int might match the return type of a gcc2
7997    builtin and then its argument prototype would still apply.  */
7998 char $ac_func ();
7999 /* The GNU C library defines this for functions which it implements
8000     to always fail with ENOSYS.  Some functions are actually named
8001     something starting with __ and the normal name is an alias.  */
8002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8003 choke me
8004 #else
8005 char (*f) () = $ac_func;
8006 #endif
8007 #ifdef __cplusplus
8008 }
8009 #endif
8010
8011 int
8012 main ()
8013 {
8014 return f != $ac_func;
8015   ;
8016   return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021   (eval $ac_link) 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); } &&
8025          { ac_try='test -s conftest$ac_exeext'
8026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027   (eval $ac_try) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); }; }; then
8031   eval "$as_ac_var=yes"
8032 else
8033   echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 eval "$as_ac_var=no"
8037 fi
8038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8039 fi
8040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8042 if test `eval echo '${'$as_ac_var'}'` = yes; then
8043   cat >>confdefs.h <<_ACEOF
8044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8045 _ACEOF
8046
8047 fi
8048 done
8049
8050   else
8051
8052   echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8053 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8054   if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8055     if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8056   echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058
8059
8060
8061       ac_ext=cc
8062 ac_cpp='$CXXCPP $CPPFLAGS'
8063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8066
8067       cat >conftest.$ac_ext <<_ACEOF
8068 #line $LINENO "configure"
8069 /* confdefs.h.  */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h.  */
8074 #include <math.h>
8075                       #ifdef HAVE_IEEEFP_H
8076                       #include <ieeefp.h>
8077                       #endif
8078
8079 int
8080 main ()
8081 {
8082  _isinf(0);
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8089   (eval $ac_compile) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); } &&
8093          { ac_try='test -s conftest.$ac_objext'
8094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095   (eval $ac_try) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; }; then
8099   glibcxx_cv_func__isinf_use=yes
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104 glibcxx_cv_func__isinf_use=no
8105 fi
8106 rm -f conftest.$ac_objext conftest.$ac_ext
8107       ac_ext=c
8108 ac_cpp='$CPP $CPPFLAGS'
8109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113
8114 fi
8115
8116   fi
8117   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8118 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8119
8120     if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8121
8122 for ac_func in _isinf
8123 do
8124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8125 echo "$as_me:$LINENO: checking for $ac_func" >&5
8126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8127 if eval "test \"\${$as_ac_var+set}\" = set"; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   if test x$gcc_no_link = xyes; then
8131   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8133    { (exit 1); exit 1; }; }
8134 fi
8135 cat >conftest.$ac_ext <<_ACEOF
8136 #line $LINENO "configure"
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142 /* System header to define __stub macros and hopefully few prototypes,
8143     which can conflict with char $ac_func (); below.
8144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8145     <limits.h> exists even on freestanding compilers.  */
8146 #ifdef __STDC__
8147 # include <limits.h>
8148 #else
8149 # include <assert.h>
8150 #endif
8151 /* Override any gcc2 internal prototype to avoid an error.  */
8152 #ifdef __cplusplus
8153 extern "C"
8154 {
8155 #endif
8156 /* We use char because int might match the return type of a gcc2
8157    builtin and then its argument prototype would still apply.  */
8158 char $ac_func ();
8159 /* The GNU C library defines this for functions which it implements
8160     to always fail with ENOSYS.  Some functions are actually named
8161     something starting with __ and the normal name is an alias.  */
8162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8163 choke me
8164 #else
8165 char (*f) () = $ac_func;
8166 #endif
8167 #ifdef __cplusplus
8168 }
8169 #endif
8170
8171 int
8172 main ()
8173 {
8174 return f != $ac_func;
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181   (eval $ac_link) 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } &&
8185          { ac_try='test -s conftest$ac_exeext'
8186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187   (eval $ac_try) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; }; then
8191   eval "$as_ac_var=yes"
8192 else
8193   echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 eval "$as_ac_var=no"
8197 fi
8198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8199 fi
8200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8202 if test `eval echo '${'$as_ac_var'}'` = yes; then
8203   cat >>confdefs.h <<_ACEOF
8204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8205 _ACEOF
8206
8207 fi
8208 done
8209
8210     fi
8211   fi
8212
8213
8214
8215   echo "$as_me:$LINENO: checking for isnan declaration" >&5
8216 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8217   if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8218     if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221
8222
8223
8224       ac_ext=cc
8225 ac_cpp='$CXXCPP $CPPFLAGS'
8226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8229
8230       cat >conftest.$ac_ext <<_ACEOF
8231 #line $LINENO "configure"
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237 #include <math.h>
8238                       #ifdef HAVE_IEEEFP_H
8239                       #include <ieeefp.h>
8240                       #endif
8241
8242 int
8243 main ()
8244 {
8245  isnan(0);
8246   ;
8247   return 0;
8248 }
8249 _ACEOF
8250 rm -f conftest.$ac_objext
8251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8252   (eval $ac_compile) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } &&
8256          { ac_try='test -s conftest.$ac_objext'
8257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258   (eval $ac_try) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); }; }; then
8262   glibcxx_cv_func_isnan_use=yes
8263 else
8264   echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 glibcxx_cv_func_isnan_use=no
8268 fi
8269 rm -f conftest.$ac_objext conftest.$ac_ext
8270       ac_ext=c
8271 ac_cpp='$CPP $CPPFLAGS'
8272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275
8276
8277 fi
8278
8279   fi
8280   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8281 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8282
8283   if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8284
8285 for ac_func in isnan
8286 do
8287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8288 echo "$as_me:$LINENO: checking for $ac_func" >&5
8289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8290 if eval "test \"\${$as_ac_var+set}\" = set"; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293   if test x$gcc_no_link = xyes; then
8294   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8296    { (exit 1); exit 1; }; }
8297 fi
8298 cat >conftest.$ac_ext <<_ACEOF
8299 #line $LINENO "configure"
8300 /* confdefs.h.  */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h.  */
8305 /* System header to define __stub macros and hopefully few prototypes,
8306     which can conflict with char $ac_func (); below.
8307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8308     <limits.h> exists even on freestanding compilers.  */
8309 #ifdef __STDC__
8310 # include <limits.h>
8311 #else
8312 # include <assert.h>
8313 #endif
8314 /* Override any gcc2 internal prototype to avoid an error.  */
8315 #ifdef __cplusplus
8316 extern "C"
8317 {
8318 #endif
8319 /* We use char because int might match the return type of a gcc2
8320    builtin and then its argument prototype would still apply.  */
8321 char $ac_func ();
8322 /* The GNU C library defines this for functions which it implements
8323     to always fail with ENOSYS.  Some functions are actually named
8324     something starting with __ and the normal name is an alias.  */
8325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8326 choke me
8327 #else
8328 char (*f) () = $ac_func;
8329 #endif
8330 #ifdef __cplusplus
8331 }
8332 #endif
8333
8334 int
8335 main ()
8336 {
8337 return f != $ac_func;
8338   ;
8339   return 0;
8340 }
8341 _ACEOF
8342 rm -f conftest.$ac_objext conftest$ac_exeext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344   (eval $ac_link) 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } &&
8348          { ac_try='test -s conftest$ac_exeext'
8349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350   (eval $ac_try) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; }; then
8354   eval "$as_ac_var=yes"
8355 else
8356   echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8358
8359 eval "$as_ac_var=no"
8360 fi
8361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8362 fi
8363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8365 if test `eval echo '${'$as_ac_var'}'` = yes; then
8366   cat >>confdefs.h <<_ACEOF
8367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8368 _ACEOF
8369
8370 fi
8371 done
8372
8373   else
8374
8375   echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8376 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8377   if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8378     if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381
8382
8383
8384       ac_ext=cc
8385 ac_cpp='$CXXCPP $CPPFLAGS'
8386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8389
8390       cat >conftest.$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397 #include <math.h>
8398                       #ifdef HAVE_IEEEFP_H
8399                       #include <ieeefp.h>
8400                       #endif
8401
8402 int
8403 main ()
8404 {
8405  _isnan(0);
8406   ;
8407   return 0;
8408 }
8409 _ACEOF
8410 rm -f conftest.$ac_objext
8411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8412   (eval $ac_compile) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); } &&
8416          { ac_try='test -s conftest.$ac_objext'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; }; then
8422   glibcxx_cv_func__isnan_use=yes
8423 else
8424   echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 glibcxx_cv_func__isnan_use=no
8428 fi
8429 rm -f conftest.$ac_objext conftest.$ac_ext
8430       ac_ext=c
8431 ac_cpp='$CPP $CPPFLAGS'
8432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8435
8436
8437 fi
8438
8439   fi
8440   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
8441 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
8442
8443     if test x$glibcxx_cv_func__isnan_use = x"yes"; then
8444
8445 for ac_func in _isnan
8446 do
8447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8448 echo "$as_me:$LINENO: checking for $ac_func" >&5
8449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8450 if eval "test \"\${$as_ac_var+set}\" = set"; then
8451   echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453   if test x$gcc_no_link = xyes; then
8454   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8456    { (exit 1); exit 1; }; }
8457 fi
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line $LINENO "configure"
8460 /* confdefs.h.  */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h.  */
8465 /* System header to define __stub macros and hopefully few prototypes,
8466     which can conflict with char $ac_func (); below.
8467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8468     <limits.h> exists even on freestanding compilers.  */
8469 #ifdef __STDC__
8470 # include <limits.h>
8471 #else
8472 # include <assert.h>
8473 #endif
8474 /* Override any gcc2 internal prototype to avoid an error.  */
8475 #ifdef __cplusplus
8476 extern "C"
8477 {
8478 #endif
8479 /* We use char because int might match the return type of a gcc2
8480    builtin and then its argument prototype would still apply.  */
8481 char $ac_func ();
8482 /* The GNU C library defines this for functions which it implements
8483     to always fail with ENOSYS.  Some functions are actually named
8484     something starting with __ and the normal name is an alias.  */
8485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8486 choke me
8487 #else
8488 char (*f) () = $ac_func;
8489 #endif
8490 #ifdef __cplusplus
8491 }
8492 #endif
8493
8494 int
8495 main ()
8496 {
8497 return f != $ac_func;
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504   (eval $ac_link) 2>&5
8505   ac_status=$?
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); } &&
8508          { ac_try='test -s conftest$ac_exeext'
8509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510   (eval $ac_try) 2>&5
8511   ac_status=$?
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); }; }; then
8514   eval "$as_ac_var=yes"
8515 else
8516   echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 eval "$as_ac_var=no"
8520 fi
8521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8522 fi
8523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8525 if test `eval echo '${'$as_ac_var'}'` = yes; then
8526   cat >>confdefs.h <<_ACEOF
8527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8528 _ACEOF
8529
8530 fi
8531 done
8532
8533     fi
8534   fi
8535
8536
8537
8538   echo "$as_me:$LINENO: checking for finite declaration" >&5
8539 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
8540   if test x${glibcxx_cv_func_finite_use+set} != xset; then
8541     if test "${glibcxx_cv_func_finite_use+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544
8545
8546
8547       ac_ext=cc
8548 ac_cpp='$CXXCPP $CPPFLAGS'
8549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8552
8553       cat >conftest.$ac_ext <<_ACEOF
8554 #line $LINENO "configure"
8555 /* confdefs.h.  */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h.  */
8560 #include <math.h>
8561                       #ifdef HAVE_IEEEFP_H
8562                       #include <ieeefp.h>
8563                       #endif
8564
8565 int
8566 main ()
8567 {
8568  finite(0);
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575   (eval $ac_compile) 2>&5
8576   ac_status=$?
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); } &&
8579          { ac_try='test -s conftest.$ac_objext'
8580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581   (eval $ac_try) 2>&5
8582   ac_status=$?
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); }; }; then
8585   glibcxx_cv_func_finite_use=yes
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 glibcxx_cv_func_finite_use=no
8591 fi
8592 rm -f conftest.$ac_objext conftest.$ac_ext
8593       ac_ext=c
8594 ac_cpp='$CPP $CPPFLAGS'
8595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8598
8599
8600 fi
8601
8602   fi
8603   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
8604 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
8605
8606   if test x$glibcxx_cv_func_finite_use = x"yes"; then
8607
8608 for ac_func in finite
8609 do
8610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8611 echo "$as_me:$LINENO: checking for $ac_func" >&5
8612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8613 if eval "test \"\${$as_ac_var+set}\" = set"; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616   if test x$gcc_no_link = xyes; then
8617   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8619    { (exit 1); exit 1; }; }
8620 fi
8621 cat >conftest.$ac_ext <<_ACEOF
8622 #line $LINENO "configure"
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628 /* System header to define __stub macros and hopefully few prototypes,
8629     which can conflict with char $ac_func (); below.
8630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631     <limits.h> exists even on freestanding compilers.  */
8632 #ifdef __STDC__
8633 # include <limits.h>
8634 #else
8635 # include <assert.h>
8636 #endif
8637 /* Override any gcc2 internal prototype to avoid an error.  */
8638 #ifdef __cplusplus
8639 extern "C"
8640 {
8641 #endif
8642 /* We use char because int might match the return type of a gcc2
8643    builtin and then its argument prototype would still apply.  */
8644 char $ac_func ();
8645 /* The GNU C library defines this for functions which it implements
8646     to always fail with ENOSYS.  Some functions are actually named
8647     something starting with __ and the normal name is an alias.  */
8648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8649 choke me
8650 #else
8651 char (*f) () = $ac_func;
8652 #endif
8653 #ifdef __cplusplus
8654 }
8655 #endif
8656
8657 int
8658 main ()
8659 {
8660 return f != $ac_func;
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667   (eval $ac_link) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -s conftest$ac_exeext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   eval "$as_ac_var=yes"
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 eval "$as_ac_var=no"
8683 fi
8684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8685 fi
8686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8688 if test `eval echo '${'$as_ac_var'}'` = yes; then
8689   cat >>confdefs.h <<_ACEOF
8690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8691 _ACEOF
8692
8693 fi
8694 done
8695
8696   else
8697
8698   echo "$as_me:$LINENO: checking for _finite declaration" >&5
8699 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
8700   if test x${glibcxx_cv_func__finite_use+set} != xset; then
8701     if test "${glibcxx_cv_func__finite_use+set}" = set; then
8702   echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704
8705
8706
8707       ac_ext=cc
8708 ac_cpp='$CXXCPP $CPPFLAGS'
8709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8712
8713       cat >conftest.$ac_ext <<_ACEOF
8714 #line $LINENO "configure"
8715 /* confdefs.h.  */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h.  */
8720 #include <math.h>
8721                       #ifdef HAVE_IEEEFP_H
8722                       #include <ieeefp.h>
8723                       #endif
8724
8725 int
8726 main ()
8727 {
8728  _finite(0);
8729   ;
8730   return 0;
8731 }
8732 _ACEOF
8733 rm -f conftest.$ac_objext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8735   (eval $ac_compile) 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } &&
8739          { ac_try='test -s conftest.$ac_objext'
8740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741   (eval $ac_try) 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); }; }; then
8745   glibcxx_cv_func__finite_use=yes
8746 else
8747   echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 glibcxx_cv_func__finite_use=no
8751 fi
8752 rm -f conftest.$ac_objext conftest.$ac_ext
8753       ac_ext=c
8754 ac_cpp='$CPP $CPPFLAGS'
8755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8758
8759
8760 fi
8761
8762   fi
8763   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
8764 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
8765
8766     if test x$glibcxx_cv_func__finite_use = x"yes"; then
8767
8768 for ac_func in _finite
8769 do
8770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8771 echo "$as_me:$LINENO: checking for $ac_func" >&5
8772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8773 if eval "test \"\${$as_ac_var+set}\" = set"; then
8774   echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776   if test x$gcc_no_link = xyes; then
8777   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8778 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8779    { (exit 1); exit 1; }; }
8780 fi
8781 cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8783 /* confdefs.h.  */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h.  */
8788 /* System header to define __stub macros and hopefully few prototypes,
8789     which can conflict with char $ac_func (); below.
8790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791     <limits.h> exists even on freestanding compilers.  */
8792 #ifdef __STDC__
8793 # include <limits.h>
8794 #else
8795 # include <assert.h>
8796 #endif
8797 /* Override any gcc2 internal prototype to avoid an error.  */
8798 #ifdef __cplusplus
8799 extern "C"
8800 {
8801 #endif
8802 /* We use char because int might match the return type of a gcc2
8803    builtin and then its argument prototype would still apply.  */
8804 char $ac_func ();
8805 /* The GNU C library defines this for functions which it implements
8806     to always fail with ENOSYS.  Some functions are actually named
8807     something starting with __ and the normal name is an alias.  */
8808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8809 choke me
8810 #else
8811 char (*f) () = $ac_func;
8812 #endif
8813 #ifdef __cplusplus
8814 }
8815 #endif
8816
8817 int
8818 main ()
8819 {
8820 return f != $ac_func;
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827   (eval $ac_link) 2>&5
8828   ac_status=$?
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } &&
8831          { ac_try='test -s conftest$ac_exeext'
8832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833   (eval $ac_try) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; }; then
8837   eval "$as_ac_var=yes"
8838 else
8839   echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 eval "$as_ac_var=no"
8843 fi
8844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8845 fi
8846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8848 if test `eval echo '${'$as_ac_var'}'` = yes; then
8849   cat >>confdefs.h <<_ACEOF
8850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8851 _ACEOF
8852
8853 fi
8854 done
8855
8856     fi
8857   fi
8858
8859
8860
8861   echo "$as_me:$LINENO: checking for copysign declaration" >&5
8862 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
8863   if test x${glibcxx_cv_func_copysign_use+set} != xset; then
8864     if test "${glibcxx_cv_func_copysign_use+set}" = set; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867
8868
8869
8870       ac_ext=cc
8871 ac_cpp='$CXXCPP $CPPFLAGS'
8872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8875
8876       cat >conftest.$ac_ext <<_ACEOF
8877 #line $LINENO "configure"
8878 /* confdefs.h.  */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h.  */
8883 #include <math.h>
8884 int
8885 main ()
8886 {
8887  copysign(0, 0);
8888   ;
8889   return 0;
8890 }
8891 _ACEOF
8892 rm -f conftest.$ac_objext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8894   (eval $ac_compile) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } &&
8898          { ac_try='test -s conftest.$ac_objext'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; }; then
8904   glibcxx_cv_func_copysign_use=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 glibcxx_cv_func_copysign_use=no
8910 fi
8911 rm -f conftest.$ac_objext conftest.$ac_ext
8912       ac_ext=c
8913 ac_cpp='$CPP $CPPFLAGS'
8914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8917
8918
8919 fi
8920
8921   fi
8922   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
8923 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
8924
8925   if test x$glibcxx_cv_func_copysign_use = x"yes"; then
8926
8927 for ac_func in copysign
8928 do
8929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8930 echo "$as_me:$LINENO: checking for $ac_func" >&5
8931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8932 if eval "test \"\${$as_ac_var+set}\" = set"; then
8933   echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935   if test x$gcc_no_link = xyes; then
8936   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8938    { (exit 1); exit 1; }; }
8939 fi
8940 cat >conftest.$ac_ext <<_ACEOF
8941 #line $LINENO "configure"
8942 /* confdefs.h.  */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h.  */
8947 /* System header to define __stub macros and hopefully few prototypes,
8948     which can conflict with char $ac_func (); below.
8949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8950     <limits.h> exists even on freestanding compilers.  */
8951 #ifdef __STDC__
8952 # include <limits.h>
8953 #else
8954 # include <assert.h>
8955 #endif
8956 /* Override any gcc2 internal prototype to avoid an error.  */
8957 #ifdef __cplusplus
8958 extern "C"
8959 {
8960 #endif
8961 /* We use char because int might match the return type of a gcc2
8962    builtin and then its argument prototype would still apply.  */
8963 char $ac_func ();
8964 /* The GNU C library defines this for functions which it implements
8965     to always fail with ENOSYS.  Some functions are actually named
8966     something starting with __ and the normal name is an alias.  */
8967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8968 choke me
8969 #else
8970 char (*f) () = $ac_func;
8971 #endif
8972 #ifdef __cplusplus
8973 }
8974 #endif
8975
8976 int
8977 main ()
8978 {
8979 return f != $ac_func;
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986   (eval $ac_link) 2>&5
8987   ac_status=$?
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } &&
8990          { ac_try='test -s conftest$ac_exeext'
8991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992   (eval $ac_try) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; }; then
8996   eval "$as_ac_var=yes"
8997 else
8998   echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001 eval "$as_ac_var=no"
9002 fi
9003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9004 fi
9005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9007 if test `eval echo '${'$as_ac_var'}'` = yes; then
9008   cat >>confdefs.h <<_ACEOF
9009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9010 _ACEOF
9011
9012 fi
9013 done
9014
9015   else
9016
9017   echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9018 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9019   if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9020     if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9021   echo $ECHO_N "(cached) $ECHO_C" >&6
9022 else
9023
9024
9025
9026       ac_ext=cc
9027 ac_cpp='$CXXCPP $CPPFLAGS'
9028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9031
9032       cat >conftest.$ac_ext <<_ACEOF
9033 #line $LINENO "configure"
9034 /* confdefs.h.  */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h.  */
9039 #include <math.h>
9040 int
9041 main ()
9042 {
9043  _copysign(0, 0);
9044   ;
9045   return 0;
9046 }
9047 _ACEOF
9048 rm -f conftest.$ac_objext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9050   (eval $ac_compile) 2>&5
9051   ac_status=$?
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); } &&
9054          { ac_try='test -s conftest.$ac_objext'
9055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056   (eval $ac_try) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; }; then
9060   glibcxx_cv_func__copysign_use=yes
9061 else
9062   echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9064
9065 glibcxx_cv_func__copysign_use=no
9066 fi
9067 rm -f conftest.$ac_objext conftest.$ac_ext
9068       ac_ext=c
9069 ac_cpp='$CPP $CPPFLAGS'
9070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9073
9074
9075 fi
9076
9077   fi
9078   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9079 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9080
9081     if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9082
9083 for ac_func in _copysign
9084 do
9085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9086 echo "$as_me:$LINENO: checking for $ac_func" >&5
9087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9088 if eval "test \"\${$as_ac_var+set}\" = set"; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091   if test x$gcc_no_link = xyes; then
9092   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9093 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9094    { (exit 1); exit 1; }; }
9095 fi
9096 cat >conftest.$ac_ext <<_ACEOF
9097 #line $LINENO "configure"
9098 /* confdefs.h.  */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h.  */
9103 /* System header to define __stub macros and hopefully few prototypes,
9104     which can conflict with char $ac_func (); below.
9105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9106     <limits.h> exists even on freestanding compilers.  */
9107 #ifdef __STDC__
9108 # include <limits.h>
9109 #else
9110 # include <assert.h>
9111 #endif
9112 /* Override any gcc2 internal prototype to avoid an error.  */
9113 #ifdef __cplusplus
9114 extern "C"
9115 {
9116 #endif
9117 /* We use char because int might match the return type of a gcc2
9118    builtin and then its argument prototype would still apply.  */
9119 char $ac_func ();
9120 /* The GNU C library defines this for functions which it implements
9121     to always fail with ENOSYS.  Some functions are actually named
9122     something starting with __ and the normal name is an alias.  */
9123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9124 choke me
9125 #else
9126 char (*f) () = $ac_func;
9127 #endif
9128 #ifdef __cplusplus
9129 }
9130 #endif
9131
9132 int
9133 main ()
9134 {
9135 return f != $ac_func;
9136   ;
9137   return 0;
9138 }
9139 _ACEOF
9140 rm -f conftest.$ac_objext conftest$ac_exeext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9142   (eval $ac_link) 2>&5
9143   ac_status=$?
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); } &&
9146          { ac_try='test -s conftest$ac_exeext'
9147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148   (eval $ac_try) 2>&5
9149   ac_status=$?
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); }; }; then
9152   eval "$as_ac_var=yes"
9153 else
9154   echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157 eval "$as_ac_var=no"
9158 fi
9159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9160 fi
9161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9163 if test `eval echo '${'$as_ac_var'}'` = yes; then
9164   cat >>confdefs.h <<_ACEOF
9165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9166 _ACEOF
9167
9168 fi
9169 done
9170
9171     fi
9172   fi
9173
9174
9175
9176   echo "$as_me:$LINENO: checking for sincos declaration" >&5
9177 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9178   if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9179     if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182
9183
9184
9185       ac_ext=cc
9186 ac_cpp='$CXXCPP $CPPFLAGS'
9187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9190
9191       cat >conftest.$ac_ext <<_ACEOF
9192 #line $LINENO "configure"
9193 /* confdefs.h.  */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h.  */
9198 #include <math.h>
9199 int
9200 main ()
9201 {
9202  sincos(0, 0, 0);
9203   ;
9204   return 0;
9205 }
9206 _ACEOF
9207 rm -f conftest.$ac_objext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209   (eval $ac_compile) 2>&5
9210   ac_status=$?
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); } &&
9213          { ac_try='test -s conftest.$ac_objext'
9214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215   (eval $ac_try) 2>&5
9216   ac_status=$?
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); }; }; then
9219   glibcxx_cv_func_sincos_use=yes
9220 else
9221   echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9223
9224 glibcxx_cv_func_sincos_use=no
9225 fi
9226 rm -f conftest.$ac_objext conftest.$ac_ext
9227       ac_ext=c
9228 ac_cpp='$CPP $CPPFLAGS'
9229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9232
9233
9234 fi
9235
9236   fi
9237   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9238 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9239
9240   if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9241
9242 for ac_func in sincos
9243 do
9244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9245 echo "$as_me:$LINENO: checking for $ac_func" >&5
9246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9247 if eval "test \"\${$as_ac_var+set}\" = set"; then
9248   echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250   if test x$gcc_no_link = xyes; then
9251   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9253    { (exit 1); exit 1; }; }
9254 fi
9255 cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9257 /* confdefs.h.  */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h.  */
9262 /* System header to define __stub macros and hopefully few prototypes,
9263     which can conflict with char $ac_func (); below.
9264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9265     <limits.h> exists even on freestanding compilers.  */
9266 #ifdef __STDC__
9267 # include <limits.h>
9268 #else
9269 # include <assert.h>
9270 #endif
9271 /* Override any gcc2 internal prototype to avoid an error.  */
9272 #ifdef __cplusplus
9273 extern "C"
9274 {
9275 #endif
9276 /* We use char because int might match the return type of a gcc2
9277    builtin and then its argument prototype would still apply.  */
9278 char $ac_func ();
9279 /* The GNU C library defines this for functions which it implements
9280     to always fail with ENOSYS.  Some functions are actually named
9281     something starting with __ and the normal name is an alias.  */
9282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9283 choke me
9284 #else
9285 char (*f) () = $ac_func;
9286 #endif
9287 #ifdef __cplusplus
9288 }
9289 #endif
9290
9291 int
9292 main ()
9293 {
9294 return f != $ac_func;
9295   ;
9296   return 0;
9297 }
9298 _ACEOF
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301   (eval $ac_link) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); } &&
9305          { ac_try='test -s conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   eval "$as_ac_var=yes"
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 eval "$as_ac_var=no"
9317 fi
9318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9319 fi
9320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9322 if test `eval echo '${'$as_ac_var'}'` = yes; then
9323   cat >>confdefs.h <<_ACEOF
9324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9325 _ACEOF
9326
9327 fi
9328 done
9329
9330   else
9331
9332   echo "$as_me:$LINENO: checking for _sincos declaration" >&5
9333 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
9334   if test x${glibcxx_cv_func__sincos_use+set} != xset; then
9335     if test "${glibcxx_cv_func__sincos_use+set}" = set; then
9336   echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338
9339
9340
9341       ac_ext=cc
9342 ac_cpp='$CXXCPP $CPPFLAGS'
9343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9346
9347       cat >conftest.$ac_ext <<_ACEOF
9348 #line $LINENO "configure"
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 #include <math.h>
9355 int
9356 main ()
9357 {
9358  _sincos(0, 0, 0);
9359   ;
9360   return 0;
9361 }
9362 _ACEOF
9363 rm -f conftest.$ac_objext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9365   (eval $ac_compile) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); } &&
9369          { ac_try='test -s conftest.$ac_objext'
9370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371   (eval $ac_try) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); }; }; then
9375   glibcxx_cv_func__sincos_use=yes
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 glibcxx_cv_func__sincos_use=no
9381 fi
9382 rm -f conftest.$ac_objext conftest.$ac_ext
9383       ac_ext=c
9384 ac_cpp='$CPP $CPPFLAGS'
9385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9388
9389
9390 fi
9391
9392   fi
9393   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
9394 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
9395
9396     if test x$glibcxx_cv_func__sincos_use = x"yes"; then
9397
9398 for ac_func in _sincos
9399 do
9400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9401 echo "$as_me:$LINENO: checking for $ac_func" >&5
9402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9403 if eval "test \"\${$as_ac_var+set}\" = set"; then
9404   echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406   if test x$gcc_no_link = xyes; then
9407   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9409    { (exit 1); exit 1; }; }
9410 fi
9411 cat >conftest.$ac_ext <<_ACEOF
9412 #line $LINENO "configure"
9413 /* confdefs.h.  */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h.  */
9418 /* System header to define __stub macros and hopefully few prototypes,
9419     which can conflict with char $ac_func (); below.
9420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9421     <limits.h> exists even on freestanding compilers.  */
9422 #ifdef __STDC__
9423 # include <limits.h>
9424 #else
9425 # include <assert.h>
9426 #endif
9427 /* Override any gcc2 internal prototype to avoid an error.  */
9428 #ifdef __cplusplus
9429 extern "C"
9430 {
9431 #endif
9432 /* We use char because int might match the return type of a gcc2
9433    builtin and then its argument prototype would still apply.  */
9434 char $ac_func ();
9435 /* The GNU C library defines this for functions which it implements
9436     to always fail with ENOSYS.  Some functions are actually named
9437     something starting with __ and the normal name is an alias.  */
9438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9439 choke me
9440 #else
9441 char (*f) () = $ac_func;
9442 #endif
9443 #ifdef __cplusplus
9444 }
9445 #endif
9446
9447 int
9448 main ()
9449 {
9450 return f != $ac_func;
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457   (eval $ac_link) 2>&5
9458   ac_status=$?
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); } &&
9461          { ac_try='test -s conftest$ac_exeext'
9462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463   (eval $ac_try) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); }; }; then
9467   eval "$as_ac_var=yes"
9468 else
9469   echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9471
9472 eval "$as_ac_var=no"
9473 fi
9474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9475 fi
9476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9478 if test `eval echo '${'$as_ac_var'}'` = yes; then
9479   cat >>confdefs.h <<_ACEOF
9480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9481 _ACEOF
9482
9483 fi
9484 done
9485
9486     fi
9487   fi
9488
9489
9490
9491   echo "$as_me:$LINENO: checking for fpclass declaration" >&5
9492 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
9493   if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
9494     if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
9495   echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497
9498
9499
9500       ac_ext=cc
9501 ac_cpp='$CXXCPP $CPPFLAGS'
9502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9505
9506       cat >conftest.$ac_ext <<_ACEOF
9507 #line $LINENO "configure"
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513 #include <math.h>
9514                       #ifdef HAVE_IEEEFP_H
9515                       #include <ieeefp.h>
9516                       #endif
9517
9518 int
9519 main ()
9520 {
9521  fpclass(0);
9522   ;
9523   return 0;
9524 }
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528   (eval $ac_compile) 2>&5
9529   ac_status=$?
9530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531   (exit $ac_status); } &&
9532          { ac_try='test -s conftest.$ac_objext'
9533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534   (eval $ac_try) 2>&5
9535   ac_status=$?
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); }; }; then
9538   glibcxx_cv_func_fpclass_use=yes
9539 else
9540   echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543 glibcxx_cv_func_fpclass_use=no
9544 fi
9545 rm -f conftest.$ac_objext conftest.$ac_ext
9546       ac_ext=c
9547 ac_cpp='$CPP $CPPFLAGS'
9548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9551
9552
9553 fi
9554
9555   fi
9556   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
9557 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
9558
9559   if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
9560
9561 for ac_func in fpclass
9562 do
9563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9564 echo "$as_me:$LINENO: checking for $ac_func" >&5
9565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9566 if eval "test \"\${$as_ac_var+set}\" = set"; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569   if test x$gcc_no_link = xyes; then
9570   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9571 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9572    { (exit 1); exit 1; }; }
9573 fi
9574 cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 /* System header to define __stub macros and hopefully few prototypes,
9582     which can conflict with char $ac_func (); below.
9583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9584     <limits.h> exists even on freestanding compilers.  */
9585 #ifdef __STDC__
9586 # include <limits.h>
9587 #else
9588 # include <assert.h>
9589 #endif
9590 /* Override any gcc2 internal prototype to avoid an error.  */
9591 #ifdef __cplusplus
9592 extern "C"
9593 {
9594 #endif
9595 /* We use char because int might match the return type of a gcc2
9596    builtin and then its argument prototype would still apply.  */
9597 char $ac_func ();
9598 /* The GNU C library defines this for functions which it implements
9599     to always fail with ENOSYS.  Some functions are actually named
9600     something starting with __ and the normal name is an alias.  */
9601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9602 choke me
9603 #else
9604 char (*f) () = $ac_func;
9605 #endif
9606 #ifdef __cplusplus
9607 }
9608 #endif
9609
9610 int
9611 main ()
9612 {
9613 return f != $ac_func;
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620   (eval $ac_link) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); } &&
9624          { ac_try='test -s conftest$ac_exeext'
9625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626   (eval $ac_try) 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); }; }; then
9630   eval "$as_ac_var=yes"
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635 eval "$as_ac_var=no"
9636 fi
9637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9638 fi
9639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9641 if test `eval echo '${'$as_ac_var'}'` = yes; then
9642   cat >>confdefs.h <<_ACEOF
9643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9644 _ACEOF
9645
9646 fi
9647 done
9648
9649   else
9650
9651   echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
9652 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
9653   if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
9654     if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
9655   echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657
9658
9659
9660       ac_ext=cc
9661 ac_cpp='$CXXCPP $CPPFLAGS'
9662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9665
9666       cat >conftest.$ac_ext <<_ACEOF
9667 #line $LINENO "configure"
9668 /* confdefs.h.  */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h.  */
9673 #include <math.h>
9674                       #ifdef HAVE_IEEEFP_H
9675                       #include <ieeefp.h>
9676                       #endif
9677
9678 int
9679 main ()
9680 {
9681  _fpclass(0);
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688   (eval $ac_compile) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -s conftest.$ac_objext'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; }; then
9698   glibcxx_cv_func__fpclass_use=yes
9699 else
9700   echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703 glibcxx_cv_func__fpclass_use=no
9704 fi
9705 rm -f conftest.$ac_objext conftest.$ac_ext
9706       ac_ext=c
9707 ac_cpp='$CPP $CPPFLAGS'
9708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9711
9712
9713 fi
9714
9715   fi
9716   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
9717 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
9718
9719     if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
9720
9721 for ac_func in _fpclass
9722 do
9723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9724 echo "$as_me:$LINENO: checking for $ac_func" >&5
9725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9726 if eval "test \"\${$as_ac_var+set}\" = set"; then
9727   echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729   if test x$gcc_no_link = xyes; then
9730   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9731 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9732    { (exit 1); exit 1; }; }
9733 fi
9734 cat >conftest.$ac_ext <<_ACEOF
9735 #line $LINENO "configure"
9736 /* confdefs.h.  */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h.  */
9741 /* System header to define __stub macros and hopefully few prototypes,
9742     which can conflict with char $ac_func (); below.
9743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9744     <limits.h> exists even on freestanding compilers.  */
9745 #ifdef __STDC__
9746 # include <limits.h>
9747 #else
9748 # include <assert.h>
9749 #endif
9750 /* Override any gcc2 internal prototype to avoid an error.  */
9751 #ifdef __cplusplus
9752 extern "C"
9753 {
9754 #endif
9755 /* We use char because int might match the return type of a gcc2
9756    builtin and then its argument prototype would still apply.  */
9757 char $ac_func ();
9758 /* The GNU C library defines this for functions which it implements
9759     to always fail with ENOSYS.  Some functions are actually named
9760     something starting with __ and the normal name is an alias.  */
9761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9762 choke me
9763 #else
9764 char (*f) () = $ac_func;
9765 #endif
9766 #ifdef __cplusplus
9767 }
9768 #endif
9769
9770 int
9771 main ()
9772 {
9773 return f != $ac_func;
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9780   (eval $ac_link) 2>&5
9781   ac_status=$?
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); } &&
9784          { ac_try='test -s conftest$ac_exeext'
9785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786   (eval $ac_try) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); }; }; then
9790   eval "$as_ac_var=yes"
9791 else
9792   echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795 eval "$as_ac_var=no"
9796 fi
9797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9798 fi
9799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9801 if test `eval echo '${'$as_ac_var'}'` = yes; then
9802   cat >>confdefs.h <<_ACEOF
9803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9804 _ACEOF
9805
9806 fi
9807 done
9808
9809     fi
9810   fi
9811
9812
9813
9814   echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
9815 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
9816   if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
9817     if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820
9821
9822
9823       ac_ext=cc
9824 ac_cpp='$CXXCPP $CPPFLAGS'
9825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9828
9829       cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9831 /* confdefs.h.  */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h.  */
9836 #include <math.h>
9837                       #ifdef HAVE_IEEEFP_H
9838                       #include <ieeefp.h>
9839                       #endif
9840
9841 int
9842 main ()
9843 {
9844  qfpclass(0);
9845   ;
9846   return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9851   (eval $ac_compile) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } &&
9855          { ac_try='test -s conftest.$ac_objext'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; }; then
9861   glibcxx_cv_func_qfpclass_use=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 glibcxx_cv_func_qfpclass_use=no
9867 fi
9868 rm -f conftest.$ac_objext conftest.$ac_ext
9869       ac_ext=c
9870 ac_cpp='$CPP $CPPFLAGS'
9871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9874
9875
9876 fi
9877
9878   fi
9879   echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
9880 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
9881
9882   if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
9883
9884 for ac_func in qfpclass
9885 do
9886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9887 echo "$as_me:$LINENO: checking for $ac_func" >&5
9888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9889 if eval "test \"\${$as_ac_var+set}\" = set"; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   if test x$gcc_no_link = xyes; then
9893   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9895    { (exit 1); exit 1; }; }
9896 fi
9897 cat >conftest.$ac_ext <<_ACEOF
9898 #line $LINENO "configure"
9899 /* confdefs.h.  */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h.  */
9904 /* System header to define __stub macros and hopefully few prototypes,
9905     which can conflict with char $ac_func (); below.
9906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907     <limits.h> exists even on freestanding compilers.  */
9908 #ifdef __STDC__
9909 # include <limits.h>
9910 #else
9911 # include <assert.h>
9912 #endif
9913 /* Override any gcc2 internal prototype to avoid an error.  */
9914 #ifdef __cplusplus
9915 extern "C"
9916 {
9917 #endif
9918 /* We use char because int might match the return type of a gcc2
9919    builtin and then its argument prototype would still apply.  */
9920 char $ac_func ();
9921 /* The GNU C library defines this for functions which it implements
9922     to always fail with ENOSYS.  Some functions are actually named
9923     something starting with __ and the normal name is an alias.  */
9924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9925 choke me
9926 #else
9927 char (*f) () = $ac_func;
9928 #endif
9929 #ifdef __cplusplus
9930 }
9931 #endif
9932
9933 int
9934 main ()
9935 {
9936 return f != $ac_func;
9937   ;
9938   return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943   (eval $ac_link) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); } &&
9947          { ac_try='test -s conftest$ac_exeext'
9948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949   (eval $ac_try) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; }; then
9953   eval "$as_ac_var=yes"
9954 else
9955   echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9957
9958 eval "$as_ac_var=no"
9959 fi
9960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9961 fi
9962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9964 if test `eval echo '${'$as_ac_var'}'` = yes; then
9965   cat >>confdefs.h <<_ACEOF
9966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9967 _ACEOF
9968
9969 fi
9970 done
9971
9972   else
9973
9974   echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
9975 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
9976   if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
9977     if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980
9981
9982
9983       ac_ext=cc
9984 ac_cpp='$CXXCPP $CPPFLAGS'
9985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9988
9989       cat >conftest.$ac_ext <<_ACEOF
9990 #line $LINENO "configure"
9991 /* confdefs.h.  */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h.  */
9996 #include <math.h>
9997                       #ifdef HAVE_IEEEFP_H
9998                       #include <ieeefp.h>
9999                       #endif
10000
10001 int
10002 main ()
10003 {
10004  _qfpclass(0);
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011   (eval $ac_compile) 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); } &&
10015          { ac_try='test -s conftest.$ac_objext'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   glibcxx_cv_func__qfpclass_use=yes
10022 else
10023   echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 glibcxx_cv_func__qfpclass_use=no
10027 fi
10028 rm -f conftest.$ac_objext conftest.$ac_ext
10029       ac_ext=c
10030 ac_cpp='$CPP $CPPFLAGS'
10031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10034
10035
10036 fi
10037
10038   fi
10039   echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10040 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10041
10042     if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10043
10044 for ac_func in _qfpclass
10045 do
10046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10047 echo "$as_me:$LINENO: checking for $ac_func" >&5
10048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10049 if eval "test \"\${$as_ac_var+set}\" = set"; then
10050   echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052   if test x$gcc_no_link = xyes; then
10053   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10055    { (exit 1); exit 1; }; }
10056 fi
10057 cat >conftest.$ac_ext <<_ACEOF
10058 #line $LINENO "configure"
10059 /* confdefs.h.  */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h.  */
10064 /* System header to define __stub macros and hopefully few prototypes,
10065     which can conflict with char $ac_func (); below.
10066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10067     <limits.h> exists even on freestanding compilers.  */
10068 #ifdef __STDC__
10069 # include <limits.h>
10070 #else
10071 # include <assert.h>
10072 #endif
10073 /* Override any gcc2 internal prototype to avoid an error.  */
10074 #ifdef __cplusplus
10075 extern "C"
10076 {
10077 #endif
10078 /* We use char because int might match the return type of a gcc2
10079    builtin and then its argument prototype would still apply.  */
10080 char $ac_func ();
10081 /* The GNU C library defines this for functions which it implements
10082     to always fail with ENOSYS.  Some functions are actually named
10083     something starting with __ and the normal name is an alias.  */
10084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10085 choke me
10086 #else
10087 char (*f) () = $ac_func;
10088 #endif
10089 #ifdef __cplusplus
10090 }
10091 #endif
10092
10093 int
10094 main ()
10095 {
10096 return f != $ac_func;
10097   ;
10098   return 0;
10099 }
10100 _ACEOF
10101 rm -f conftest.$ac_objext conftest$ac_exeext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103   (eval $ac_link) 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); } &&
10107          { ac_try='test -s conftest$ac_exeext'
10108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109   (eval $ac_try) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; }; then
10113   eval "$as_ac_var=yes"
10114 else
10115   echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 eval "$as_ac_var=no"
10119 fi
10120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10121 fi
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125   cat >>confdefs.h <<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10127 _ACEOF
10128
10129 fi
10130 done
10131
10132     fi
10133   fi
10134
10135
10136
10137   echo "$as_me:$LINENO: checking for hypot declaration" >&5
10138 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
10139   if test x${glibcxx_cv_func_hypot_use+set} != xset; then
10140     if test "${glibcxx_cv_func_hypot_use+set}" = set; then
10141   echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143
10144
10145
10146       ac_ext=cc
10147 ac_cpp='$CXXCPP $CPPFLAGS'
10148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10151
10152       cat >conftest.$ac_ext <<_ACEOF
10153 #line $LINENO "configure"
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159 #include <math.h>
10160 int
10161 main ()
10162 {
10163  hypot(0, 0);
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170   (eval $ac_compile) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -s conftest.$ac_objext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   glibcxx_cv_func_hypot_use=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 glibcxx_cv_func_hypot_use=no
10186 fi
10187 rm -f conftest.$ac_objext conftest.$ac_ext
10188       ac_ext=c
10189 ac_cpp='$CPP $CPPFLAGS'
10190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10193
10194
10195 fi
10196
10197   fi
10198   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
10199 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
10200
10201   if test x$glibcxx_cv_func_hypot_use = x"yes"; then
10202
10203 for ac_func in hypot
10204 do
10205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10206 echo "$as_me:$LINENO: checking for $ac_func" >&5
10207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10208 if eval "test \"\${$as_ac_var+set}\" = set"; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211   if test x$gcc_no_link = xyes; then
10212   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10214    { (exit 1); exit 1; }; }
10215 fi
10216 cat >conftest.$ac_ext <<_ACEOF
10217 #line $LINENO "configure"
10218 /* confdefs.h.  */
10219 _ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h.  */
10223 /* System header to define __stub macros and hopefully few prototypes,
10224     which can conflict with char $ac_func (); below.
10225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10226     <limits.h> exists even on freestanding compilers.  */
10227 #ifdef __STDC__
10228 # include <limits.h>
10229 #else
10230 # include <assert.h>
10231 #endif
10232 /* Override any gcc2 internal prototype to avoid an error.  */
10233 #ifdef __cplusplus
10234 extern "C"
10235 {
10236 #endif
10237 /* We use char because int might match the return type of a gcc2
10238    builtin and then its argument prototype would still apply.  */
10239 char $ac_func ();
10240 /* The GNU C library defines this for functions which it implements
10241     to always fail with ENOSYS.  Some functions are actually named
10242     something starting with __ and the normal name is an alias.  */
10243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10244 choke me
10245 #else
10246 char (*f) () = $ac_func;
10247 #endif
10248 #ifdef __cplusplus
10249 }
10250 #endif
10251
10252 int
10253 main ()
10254 {
10255 return f != $ac_func;
10256   ;
10257   return 0;
10258 }
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262   (eval $ac_link) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); } &&
10266          { ac_try='test -s conftest$ac_exeext'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; }; then
10272   eval "$as_ac_var=yes"
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 eval "$as_ac_var=no"
10278 fi
10279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10280 fi
10281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10283 if test `eval echo '${'$as_ac_var'}'` = yes; then
10284   cat >>confdefs.h <<_ACEOF
10285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10286 _ACEOF
10287
10288 fi
10289 done
10290
10291   else
10292
10293   echo "$as_me:$LINENO: checking for _hypot declaration" >&5
10294 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
10295   if test x${glibcxx_cv_func__hypot_use+set} != xset; then
10296     if test "${glibcxx_cv_func__hypot_use+set}" = set; then
10297   echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299
10300
10301
10302       ac_ext=cc
10303 ac_cpp='$CXXCPP $CPPFLAGS'
10304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10307
10308       cat >conftest.$ac_ext <<_ACEOF
10309 #line $LINENO "configure"
10310 /* confdefs.h.  */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h.  */
10315 #include <math.h>
10316 int
10317 main ()
10318 {
10319  _hypot(0, 0);
10320   ;
10321   return 0;
10322 }
10323 _ACEOF
10324 rm -f conftest.$ac_objext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10326   (eval $ac_compile) 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); } &&
10330          { ac_try='test -s conftest.$ac_objext'
10331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332   (eval $ac_try) 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; }; then
10336   glibcxx_cv_func__hypot_use=yes
10337 else
10338   echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341 glibcxx_cv_func__hypot_use=no
10342 fi
10343 rm -f conftest.$ac_objext conftest.$ac_ext
10344       ac_ext=c
10345 ac_cpp='$CPP $CPPFLAGS'
10346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10349
10350
10351 fi
10352
10353   fi
10354   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
10355 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
10356
10357     if test x$glibcxx_cv_func__hypot_use = x"yes"; then
10358
10359 for ac_func in _hypot
10360 do
10361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10362 echo "$as_me:$LINENO: checking for $ac_func" >&5
10363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10364 if eval "test \"\${$as_ac_var+set}\" = set"; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367   if test x$gcc_no_link = xyes; then
10368   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10369 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10370    { (exit 1); exit 1; }; }
10371 fi
10372 cat >conftest.$ac_ext <<_ACEOF
10373 #line $LINENO "configure"
10374 /* confdefs.h.  */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h.  */
10379 /* System header to define __stub macros and hopefully few prototypes,
10380     which can conflict with char $ac_func (); below.
10381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10382     <limits.h> exists even on freestanding compilers.  */
10383 #ifdef __STDC__
10384 # include <limits.h>
10385 #else
10386 # include <assert.h>
10387 #endif
10388 /* Override any gcc2 internal prototype to avoid an error.  */
10389 #ifdef __cplusplus
10390 extern "C"
10391 {
10392 #endif
10393 /* We use char because int might match the return type of a gcc2
10394    builtin and then its argument prototype would still apply.  */
10395 char $ac_func ();
10396 /* The GNU C library defines this for functions which it implements
10397     to always fail with ENOSYS.  Some functions are actually named
10398     something starting with __ and the normal name is an alias.  */
10399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10400 choke me
10401 #else
10402 char (*f) () = $ac_func;
10403 #endif
10404 #ifdef __cplusplus
10405 }
10406 #endif
10407
10408 int
10409 main ()
10410 {
10411 return f != $ac_func;
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10418   (eval $ac_link) 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); } &&
10422          { ac_try='test -s conftest$ac_exeext'
10423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424   (eval $ac_try) 2>&5
10425   ac_status=$?
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); }; }; then
10428   eval "$as_ac_var=yes"
10429 else
10430   echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10432
10433 eval "$as_ac_var=no"
10434 fi
10435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10436 fi
10437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10439 if test `eval echo '${'$as_ac_var'}'` = yes; then
10440   cat >>confdefs.h <<_ACEOF
10441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10442 _ACEOF
10443
10444 fi
10445 done
10446
10447     fi
10448   fi
10449
10450
10451
10452   echo "$as_me:$LINENO: checking for float trig functions" >&5
10453 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
10454   if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457
10458
10459
10460     ac_ext=cc
10461 ac_cpp='$CXXCPP $CPPFLAGS'
10462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10465
10466     cat >conftest.$ac_ext <<_ACEOF
10467 #line $LINENO "configure"
10468 /* confdefs.h.  */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h.  */
10473 #include <math.h>
10474 int
10475 main ()
10476 {
10477  `for x in acosf asinf atanf \
10478                                           cosf sinf tanf \
10479                                           coshf sinhf tanhf; do echo "$x (0);"; done`
10480   ;
10481   return 0;
10482 }
10483 _ACEOF
10484 rm -f conftest.$ac_objext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486   (eval $ac_compile) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); } &&
10490          { ac_try='test -s conftest.$ac_objext'
10491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492   (eval $ac_try) 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); }; }; then
10496   glibcxx_cv_func_float_trig_use=yes
10497 else
10498   echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10500
10501 glibcxx_cv_func_float_trig_use=no
10502 fi
10503 rm -f conftest.$ac_objext conftest.$ac_ext
10504     ac_ext=c
10505 ac_cpp='$CPP $CPPFLAGS'
10506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10509
10510 fi
10511
10512   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
10513 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
10514   if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524 for ac_func in acosf asinf atanf \
10525                                           cosf sinf tanf \
10526                                           coshf sinhf tanhf
10527 do
10528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10529 echo "$as_me:$LINENO: checking for $ac_func" >&5
10530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10531 if eval "test \"\${$as_ac_var+set}\" = set"; then
10532   echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534   if test x$gcc_no_link = xyes; then
10535   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10537    { (exit 1); exit 1; }; }
10538 fi
10539 cat >conftest.$ac_ext <<_ACEOF
10540 #line $LINENO "configure"
10541 /* confdefs.h.  */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h.  */
10546 /* System header to define __stub macros and hopefully few prototypes,
10547     which can conflict with char $ac_func (); below.
10548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10549     <limits.h> exists even on freestanding compilers.  */
10550 #ifdef __STDC__
10551 # include <limits.h>
10552 #else
10553 # include <assert.h>
10554 #endif
10555 /* Override any gcc2 internal prototype to avoid an error.  */
10556 #ifdef __cplusplus
10557 extern "C"
10558 {
10559 #endif
10560 /* We use char because int might match the return type of a gcc2
10561    builtin and then its argument prototype would still apply.  */
10562 char $ac_func ();
10563 /* The GNU C library defines this for functions which it implements
10564     to always fail with ENOSYS.  Some functions are actually named
10565     something starting with __ and the normal name is an alias.  */
10566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10567 choke me
10568 #else
10569 char (*f) () = $ac_func;
10570 #endif
10571 #ifdef __cplusplus
10572 }
10573 #endif
10574
10575 int
10576 main ()
10577 {
10578 return f != $ac_func;
10579   ;
10580   return 0;
10581 }
10582 _ACEOF
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10585   (eval $ac_link) 2>&5
10586   ac_status=$?
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); } &&
10589          { ac_try='test -s conftest$ac_exeext'
10590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591   (eval $ac_try) 2>&5
10592   ac_status=$?
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); }; }; then
10595   eval "$as_ac_var=yes"
10596 else
10597   echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10599
10600 eval "$as_ac_var=no"
10601 fi
10602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10603 fi
10604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10606 if test `eval echo '${'$as_ac_var'}'` = yes; then
10607   cat >>confdefs.h <<_ACEOF
10608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10609 _ACEOF
10610
10611 fi
10612 done
10613
10614   fi
10615
10616
10617   echo "$as_me:$LINENO: checking for float round functions" >&5
10618 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
10619   if test "${glibcxx_cv_func_float_round_use+set}" = set; then
10620   echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622
10623
10624
10625     ac_ext=cc
10626 ac_cpp='$CXXCPP $CPPFLAGS'
10627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10630
10631     cat >conftest.$ac_ext <<_ACEOF
10632 #line $LINENO "configure"
10633 /* confdefs.h.  */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h.  */
10638 #include <math.h>
10639 int
10640 main ()
10641 {
10642  `for x in ceilf floorf; do echo "$x (0);"; done`
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649   (eval $ac_compile) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); } &&
10653          { ac_try='test -s conftest.$ac_objext'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }; then
10659   glibcxx_cv_func_float_round_use=yes
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664 glibcxx_cv_func_float_round_use=no
10665 fi
10666 rm -f conftest.$ac_objext conftest.$ac_ext
10667     ac_ext=c
10668 ac_cpp='$CPP $CPPFLAGS'
10669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10672
10673 fi
10674
10675   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
10676 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
10677   if test x$glibcxx_cv_func_float_round_use = x"yes"; then
10678
10679
10680 for ac_func in ceilf floorf
10681 do
10682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10683 echo "$as_me:$LINENO: checking for $ac_func" >&5
10684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10685 if eval "test \"\${$as_ac_var+set}\" = set"; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688   if test x$gcc_no_link = xyes; then
10689   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10690 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10691    { (exit 1); exit 1; }; }
10692 fi
10693 cat >conftest.$ac_ext <<_ACEOF
10694 #line $LINENO "configure"
10695 /* confdefs.h.  */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h.  */
10700 /* System header to define __stub macros and hopefully few prototypes,
10701     which can conflict with char $ac_func (); below.
10702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10703     <limits.h> exists even on freestanding compilers.  */
10704 #ifdef __STDC__
10705 # include <limits.h>
10706 #else
10707 # include <assert.h>
10708 #endif
10709 /* Override any gcc2 internal prototype to avoid an error.  */
10710 #ifdef __cplusplus
10711 extern "C"
10712 {
10713 #endif
10714 /* We use char because int might match the return type of a gcc2
10715    builtin and then its argument prototype would still apply.  */
10716 char $ac_func ();
10717 /* The GNU C library defines this for functions which it implements
10718     to always fail with ENOSYS.  Some functions are actually named
10719     something starting with __ and the normal name is an alias.  */
10720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10721 choke me
10722 #else
10723 char (*f) () = $ac_func;
10724 #endif
10725 #ifdef __cplusplus
10726 }
10727 #endif
10728
10729 int
10730 main ()
10731 {
10732 return f != $ac_func;
10733   ;
10734   return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10739   (eval $ac_link) 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); } &&
10743          { ac_try='test -s conftest$ac_exeext'
10744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745   (eval $ac_try) 2>&5
10746   ac_status=$?
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); }; }; then
10749   eval "$as_ac_var=yes"
10750 else
10751   echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754 eval "$as_ac_var=no"
10755 fi
10756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10757 fi
10758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10760 if test `eval echo '${'$as_ac_var'}'` = yes; then
10761   cat >>confdefs.h <<_ACEOF
10762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10763 _ACEOF
10764
10765 fi
10766 done
10767
10768   fi
10769
10770
10771
10772   echo "$as_me:$LINENO: checking for expf declaration" >&5
10773 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
10774   if test x${glibcxx_cv_func_expf_use+set} != xset; then
10775     if test "${glibcxx_cv_func_expf_use+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778
10779
10780
10781       ac_ext=cc
10782 ac_cpp='$CXXCPP $CPPFLAGS'
10783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10786
10787       cat >conftest.$ac_ext <<_ACEOF
10788 #line $LINENO "configure"
10789 /* confdefs.h.  */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h.  */
10794 #include <math.h>
10795                       #ifdef HAVE_IEEEFP_H
10796                       #include <ieeefp.h>
10797                       #endif
10798
10799 int
10800 main ()
10801 {
10802  expf(0);
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 rm -f conftest.$ac_objext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10809   (eval $ac_compile) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } &&
10813          { ac_try='test -s conftest.$ac_objext'
10814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815   (eval $ac_try) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; }; then
10819   glibcxx_cv_func_expf_use=yes
10820 else
10821   echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824 glibcxx_cv_func_expf_use=no
10825 fi
10826 rm -f conftest.$ac_objext conftest.$ac_ext
10827       ac_ext=c
10828 ac_cpp='$CPP $CPPFLAGS'
10829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10832
10833
10834 fi
10835
10836   fi
10837   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
10838 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
10839
10840   if test x$glibcxx_cv_func_expf_use = x"yes"; then
10841
10842 for ac_func in expf
10843 do
10844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10845 echo "$as_me:$LINENO: checking for $ac_func" >&5
10846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10847 if eval "test \"\${$as_ac_var+set}\" = set"; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   if test x$gcc_no_link = xyes; then
10851   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10852 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10853    { (exit 1); exit 1; }; }
10854 fi
10855 cat >conftest.$ac_ext <<_ACEOF
10856 #line $LINENO "configure"
10857 /* confdefs.h.  */
10858 _ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h.  */
10862 /* System header to define __stub macros and hopefully few prototypes,
10863     which can conflict with char $ac_func (); below.
10864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10865     <limits.h> exists even on freestanding compilers.  */
10866 #ifdef __STDC__
10867 # include <limits.h>
10868 #else
10869 # include <assert.h>
10870 #endif
10871 /* Override any gcc2 internal prototype to avoid an error.  */
10872 #ifdef __cplusplus
10873 extern "C"
10874 {
10875 #endif
10876 /* We use char because int might match the return type of a gcc2
10877    builtin and then its argument prototype would still apply.  */
10878 char $ac_func ();
10879 /* The GNU C library defines this for functions which it implements
10880     to always fail with ENOSYS.  Some functions are actually named
10881     something starting with __ and the normal name is an alias.  */
10882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10883 choke me
10884 #else
10885 char (*f) () = $ac_func;
10886 #endif
10887 #ifdef __cplusplus
10888 }
10889 #endif
10890
10891 int
10892 main ()
10893 {
10894 return f != $ac_func;
10895   ;
10896   return 0;
10897 }
10898 _ACEOF
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10901   (eval $ac_link) 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); } &&
10905          { ac_try='test -s conftest$ac_exeext'
10906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907   (eval $ac_try) 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); }; }; then
10911   eval "$as_ac_var=yes"
10912 else
10913   echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10915
10916 eval "$as_ac_var=no"
10917 fi
10918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10919 fi
10920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10922 if test `eval echo '${'$as_ac_var'}'` = yes; then
10923   cat >>confdefs.h <<_ACEOF
10924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10925 _ACEOF
10926
10927 fi
10928 done
10929
10930   else
10931
10932   echo "$as_me:$LINENO: checking for _expf declaration" >&5
10933 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
10934   if test x${glibcxx_cv_func__expf_use+set} != xset; then
10935     if test "${glibcxx_cv_func__expf_use+set}" = set; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938
10939
10940
10941       ac_ext=cc
10942 ac_cpp='$CXXCPP $CPPFLAGS'
10943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10946
10947       cat >conftest.$ac_ext <<_ACEOF
10948 #line $LINENO "configure"
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954 #include <math.h>
10955                       #ifdef HAVE_IEEEFP_H
10956                       #include <ieeefp.h>
10957                       #endif
10958
10959 int
10960 main ()
10961 {
10962  _expf(0);
10963   ;
10964   return 0;
10965 }
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969   (eval $ac_compile) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } &&
10973          { ac_try='test -s conftest.$ac_objext'
10974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975   (eval $ac_try) 2>&5
10976   ac_status=$?
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); }; }; then
10979   glibcxx_cv_func__expf_use=yes
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984 glibcxx_cv_func__expf_use=no
10985 fi
10986 rm -f conftest.$ac_objext conftest.$ac_ext
10987       ac_ext=c
10988 ac_cpp='$CPP $CPPFLAGS'
10989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10992
10993
10994 fi
10995
10996   fi
10997   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
10998 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
10999
11000     if test x$glibcxx_cv_func__expf_use = x"yes"; then
11001
11002 for ac_func in _expf
11003 do
11004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11005 echo "$as_me:$LINENO: checking for $ac_func" >&5
11006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11007 if eval "test \"\${$as_ac_var+set}\" = set"; then
11008   echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010   if test x$gcc_no_link = xyes; then
11011   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11012 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11013    { (exit 1); exit 1; }; }
11014 fi
11015 cat >conftest.$ac_ext <<_ACEOF
11016 #line $LINENO "configure"
11017 /* confdefs.h.  */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h.  */
11022 /* System header to define __stub macros and hopefully few prototypes,
11023     which can conflict with char $ac_func (); below.
11024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11025     <limits.h> exists even on freestanding compilers.  */
11026 #ifdef __STDC__
11027 # include <limits.h>
11028 #else
11029 # include <assert.h>
11030 #endif
11031 /* Override any gcc2 internal prototype to avoid an error.  */
11032 #ifdef __cplusplus
11033 extern "C"
11034 {
11035 #endif
11036 /* We use char because int might match the return type of a gcc2
11037    builtin and then its argument prototype would still apply.  */
11038 char $ac_func ();
11039 /* The GNU C library defines this for functions which it implements
11040     to always fail with ENOSYS.  Some functions are actually named
11041     something starting with __ and the normal name is an alias.  */
11042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11043 choke me
11044 #else
11045 char (*f) () = $ac_func;
11046 #endif
11047 #ifdef __cplusplus
11048 }
11049 #endif
11050
11051 int
11052 main ()
11053 {
11054 return f != $ac_func;
11055   ;
11056   return 0;
11057 }
11058 _ACEOF
11059 rm -f conftest.$ac_objext conftest$ac_exeext
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061   (eval $ac_link) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } &&
11065          { ac_try='test -s conftest$ac_exeext'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; }; then
11071   eval "$as_ac_var=yes"
11072 else
11073   echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 eval "$as_ac_var=no"
11077 fi
11078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11079 fi
11080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11082 if test `eval echo '${'$as_ac_var'}'` = yes; then
11083   cat >>confdefs.h <<_ACEOF
11084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11085 _ACEOF
11086
11087 fi
11088 done
11089
11090     fi
11091   fi
11092
11093
11094
11095   echo "$as_me:$LINENO: checking for isnanf declaration" >&5
11096 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
11097   if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
11098     if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101
11102
11103
11104       ac_ext=cc
11105 ac_cpp='$CXXCPP $CPPFLAGS'
11106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11109
11110       cat >conftest.$ac_ext <<_ACEOF
11111 #line $LINENO "configure"
11112 /* confdefs.h.  */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h.  */
11117 #include <math.h>
11118                       #ifdef HAVE_IEEEFP_H
11119                       #include <ieeefp.h>
11120                       #endif
11121
11122 int
11123 main ()
11124 {
11125  isnanf(0);
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11132   (eval $ac_compile) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } &&
11136          { ac_try='test -s conftest.$ac_objext'
11137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138   (eval $ac_try) 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; }; then
11142   glibcxx_cv_func_isnanf_use=yes
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 glibcxx_cv_func_isnanf_use=no
11148 fi
11149 rm -f conftest.$ac_objext conftest.$ac_ext
11150       ac_ext=c
11151 ac_cpp='$CPP $CPPFLAGS'
11152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11155
11156
11157 fi
11158
11159   fi
11160   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
11161 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
11162
11163   if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
11164
11165 for ac_func in isnanf
11166 do
11167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11168 echo "$as_me:$LINENO: checking for $ac_func" >&5
11169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11170 if eval "test \"\${$as_ac_var+set}\" = set"; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   if test x$gcc_no_link = xyes; then
11174   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11176    { (exit 1); exit 1; }; }
11177 fi
11178 cat >conftest.$ac_ext <<_ACEOF
11179 #line $LINENO "configure"
11180 /* confdefs.h.  */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h.  */
11185 /* System header to define __stub macros and hopefully few prototypes,
11186     which can conflict with char $ac_func (); below.
11187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11188     <limits.h> exists even on freestanding compilers.  */
11189 #ifdef __STDC__
11190 # include <limits.h>
11191 #else
11192 # include <assert.h>
11193 #endif
11194 /* Override any gcc2 internal prototype to avoid an error.  */
11195 #ifdef __cplusplus
11196 extern "C"
11197 {
11198 #endif
11199 /* We use char because int might match the return type of a gcc2
11200    builtin and then its argument prototype would still apply.  */
11201 char $ac_func ();
11202 /* The GNU C library defines this for functions which it implements
11203     to always fail with ENOSYS.  Some functions are actually named
11204     something starting with __ and the normal name is an alias.  */
11205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11206 choke me
11207 #else
11208 char (*f) () = $ac_func;
11209 #endif
11210 #ifdef __cplusplus
11211 }
11212 #endif
11213
11214 int
11215 main ()
11216 {
11217 return f != $ac_func;
11218   ;
11219   return 0;
11220 }
11221 _ACEOF
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11224   (eval $ac_link) 2>&5
11225   ac_status=$?
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); } &&
11228          { ac_try='test -s conftest$ac_exeext'
11229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230   (eval $ac_try) 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); }; }; then
11234   eval "$as_ac_var=yes"
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239 eval "$as_ac_var=no"
11240 fi
11241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11242 fi
11243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11245 if test `eval echo '${'$as_ac_var'}'` = yes; then
11246   cat >>confdefs.h <<_ACEOF
11247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11248 _ACEOF
11249
11250 fi
11251 done
11252
11253   else
11254
11255   echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
11256 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
11257   if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
11258     if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261
11262
11263
11264       ac_ext=cc
11265 ac_cpp='$CXXCPP $CPPFLAGS'
11266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11269
11270       cat >conftest.$ac_ext <<_ACEOF
11271 #line $LINENO "configure"
11272 /* confdefs.h.  */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h.  */
11277 #include <math.h>
11278                       #ifdef HAVE_IEEEFP_H
11279                       #include <ieeefp.h>
11280                       #endif
11281
11282 int
11283 main ()
11284 {
11285  _isnanf(0);
11286   ;
11287   return 0;
11288 }
11289 _ACEOF
11290 rm -f conftest.$ac_objext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11292   (eval $ac_compile) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } &&
11296          { ac_try='test -s conftest.$ac_objext'
11297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298   (eval $ac_try) 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; }; then
11302   glibcxx_cv_func__isnanf_use=yes
11303 else
11304   echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11306
11307 glibcxx_cv_func__isnanf_use=no
11308 fi
11309 rm -f conftest.$ac_objext conftest.$ac_ext
11310       ac_ext=c
11311 ac_cpp='$CPP $CPPFLAGS'
11312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11315
11316
11317 fi
11318
11319   fi
11320   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
11321 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
11322
11323     if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
11324
11325 for ac_func in _isnanf
11326 do
11327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11328 echo "$as_me:$LINENO: checking for $ac_func" >&5
11329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11330 if eval "test \"\${$as_ac_var+set}\" = set"; then
11331   echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333   if test x$gcc_no_link = xyes; then
11334   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11336    { (exit 1); exit 1; }; }
11337 fi
11338 cat >conftest.$ac_ext <<_ACEOF
11339 #line $LINENO "configure"
11340 /* confdefs.h.  */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h.  */
11345 /* System header to define __stub macros and hopefully few prototypes,
11346     which can conflict with char $ac_func (); below.
11347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11348     <limits.h> exists even on freestanding compilers.  */
11349 #ifdef __STDC__
11350 # include <limits.h>
11351 #else
11352 # include <assert.h>
11353 #endif
11354 /* Override any gcc2 internal prototype to avoid an error.  */
11355 #ifdef __cplusplus
11356 extern "C"
11357 {
11358 #endif
11359 /* We use char because int might match the return type of a gcc2
11360    builtin and then its argument prototype would still apply.  */
11361 char $ac_func ();
11362 /* The GNU C library defines this for functions which it implements
11363     to always fail with ENOSYS.  Some functions are actually named
11364     something starting with __ and the normal name is an alias.  */
11365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11366 choke me
11367 #else
11368 char (*f) () = $ac_func;
11369 #endif
11370 #ifdef __cplusplus
11371 }
11372 #endif
11373
11374 int
11375 main ()
11376 {
11377 return f != $ac_func;
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 rm -f conftest.$ac_objext conftest$ac_exeext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11384   (eval $ac_link) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); } &&
11388          { ac_try='test -s conftest$ac_exeext'
11389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390   (eval $ac_try) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; }; then
11394   eval "$as_ac_var=yes"
11395 else
11396   echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399 eval "$as_ac_var=no"
11400 fi
11401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11402 fi
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405 if test `eval echo '${'$as_ac_var'}'` = yes; then
11406   cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11408 _ACEOF
11409
11410 fi
11411 done
11412
11413     fi
11414   fi
11415
11416
11417
11418   echo "$as_me:$LINENO: checking for isinff declaration" >&5
11419 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
11420   if test x${glibcxx_cv_func_isinff_use+set} != xset; then
11421     if test "${glibcxx_cv_func_isinff_use+set}" = set; then
11422   echo $ECHO_N "(cached) $ECHO_C" >&6
11423 else
11424
11425
11426
11427       ac_ext=cc
11428 ac_cpp='$CXXCPP $CPPFLAGS'
11429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11432
11433       cat >conftest.$ac_ext <<_ACEOF
11434 #line $LINENO "configure"
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440 #include <math.h>
11441                       #ifdef HAVE_IEEEFP_H
11442                       #include <ieeefp.h>
11443                       #endif
11444
11445 int
11446 main ()
11447 {
11448  isinff(0);
11449   ;
11450   return 0;
11451 }
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455   (eval $ac_compile) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } &&
11459          { ac_try='test -s conftest.$ac_objext'
11460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461   (eval $ac_try) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; }; then
11465   glibcxx_cv_func_isinff_use=yes
11466 else
11467   echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11469
11470 glibcxx_cv_func_isinff_use=no
11471 fi
11472 rm -f conftest.$ac_objext conftest.$ac_ext
11473       ac_ext=c
11474 ac_cpp='$CPP $CPPFLAGS'
11475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11478
11479
11480 fi
11481
11482   fi
11483   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
11484 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
11485
11486   if test x$glibcxx_cv_func_isinff_use = x"yes"; then
11487
11488 for ac_func in isinff
11489 do
11490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11491 echo "$as_me:$LINENO: checking for $ac_func" >&5
11492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11493 if eval "test \"\${$as_ac_var+set}\" = set"; then
11494   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496   if test x$gcc_no_link = xyes; then
11497   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11499    { (exit 1); exit 1; }; }
11500 fi
11501 cat >conftest.$ac_ext <<_ACEOF
11502 #line $LINENO "configure"
11503 /* confdefs.h.  */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h.  */
11508 /* System header to define __stub macros and hopefully few prototypes,
11509     which can conflict with char $ac_func (); below.
11510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511     <limits.h> exists even on freestanding compilers.  */
11512 #ifdef __STDC__
11513 # include <limits.h>
11514 #else
11515 # include <assert.h>
11516 #endif
11517 /* Override any gcc2 internal prototype to avoid an error.  */
11518 #ifdef __cplusplus
11519 extern "C"
11520 {
11521 #endif
11522 /* We use char because int might match the return type of a gcc2
11523    builtin and then its argument prototype would still apply.  */
11524 char $ac_func ();
11525 /* The GNU C library defines this for functions which it implements
11526     to always fail with ENOSYS.  Some functions are actually named
11527     something starting with __ and the normal name is an alias.  */
11528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11529 choke me
11530 #else
11531 char (*f) () = $ac_func;
11532 #endif
11533 #ifdef __cplusplus
11534 }
11535 #endif
11536
11537 int
11538 main ()
11539 {
11540 return f != $ac_func;
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 rm -f conftest.$ac_objext conftest$ac_exeext
11546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11547   (eval $ac_link) 2>&5
11548   ac_status=$?
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } &&
11551          { ac_try='test -s conftest$ac_exeext'
11552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553   (eval $ac_try) 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); }; }; then
11557   eval "$as_ac_var=yes"
11558 else
11559   echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11561
11562 eval "$as_ac_var=no"
11563 fi
11564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11565 fi
11566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11568 if test `eval echo '${'$as_ac_var'}'` = yes; then
11569   cat >>confdefs.h <<_ACEOF
11570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11571 _ACEOF
11572
11573 fi
11574 done
11575
11576   else
11577
11578   echo "$as_me:$LINENO: checking for _isinff declaration" >&5
11579 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
11580   if test x${glibcxx_cv_func__isinff_use+set} != xset; then
11581     if test "${glibcxx_cv_func__isinff_use+set}" = set; then
11582   echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584
11585
11586
11587       ac_ext=cc
11588 ac_cpp='$CXXCPP $CPPFLAGS'
11589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11592
11593       cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11595 /* confdefs.h.  */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h.  */
11600 #include <math.h>
11601                       #ifdef HAVE_IEEEFP_H
11602                       #include <ieeefp.h>
11603                       #endif
11604
11605 int
11606 main ()
11607 {
11608  _isinff(0);
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615   (eval $ac_compile) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); } &&
11619          { ac_try='test -s conftest.$ac_objext'
11620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621   (eval $ac_try) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; }; then
11625   glibcxx_cv_func__isinff_use=yes
11626 else
11627   echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 glibcxx_cv_func__isinff_use=no
11631 fi
11632 rm -f conftest.$ac_objext conftest.$ac_ext
11633       ac_ext=c
11634 ac_cpp='$CPP $CPPFLAGS'
11635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11638
11639
11640 fi
11641
11642   fi
11643   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
11644 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
11645
11646     if test x$glibcxx_cv_func__isinff_use = x"yes"; then
11647
11648 for ac_func in _isinff
11649 do
11650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11651 echo "$as_me:$LINENO: checking for $ac_func" >&5
11652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11653 if eval "test \"\${$as_ac_var+set}\" = set"; then
11654   echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656   if test x$gcc_no_link = xyes; then
11657   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11658 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11659    { (exit 1); exit 1; }; }
11660 fi
11661 cat >conftest.$ac_ext <<_ACEOF
11662 #line $LINENO "configure"
11663 /* confdefs.h.  */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h.  */
11668 /* System header to define __stub macros and hopefully few prototypes,
11669     which can conflict with char $ac_func (); below.
11670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671     <limits.h> exists even on freestanding compilers.  */
11672 #ifdef __STDC__
11673 # include <limits.h>
11674 #else
11675 # include <assert.h>
11676 #endif
11677 /* Override any gcc2 internal prototype to avoid an error.  */
11678 #ifdef __cplusplus
11679 extern "C"
11680 {
11681 #endif
11682 /* We use char because int might match the return type of a gcc2
11683    builtin and then its argument prototype would still apply.  */
11684 char $ac_func ();
11685 /* The GNU C library defines this for functions which it implements
11686     to always fail with ENOSYS.  Some functions are actually named
11687     something starting with __ and the normal name is an alias.  */
11688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11689 choke me
11690 #else
11691 char (*f) () = $ac_func;
11692 #endif
11693 #ifdef __cplusplus
11694 }
11695 #endif
11696
11697 int
11698 main ()
11699 {
11700 return f != $ac_func;
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11707   (eval $ac_link) 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); } &&
11711          { ac_try='test -s conftest$ac_exeext'
11712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713   (eval $ac_try) 2>&5
11714   ac_status=$?
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); }; }; then
11717   eval "$as_ac_var=yes"
11718 else
11719   echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 eval "$as_ac_var=no"
11723 fi
11724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11725 fi
11726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11728 if test `eval echo '${'$as_ac_var'}'` = yes; then
11729   cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11731 _ACEOF
11732
11733 fi
11734 done
11735
11736     fi
11737   fi
11738
11739
11740
11741   echo "$as_me:$LINENO: checking for atan2f declaration" >&5
11742 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
11743   if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
11744     if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747
11748
11749
11750       ac_ext=cc
11751 ac_cpp='$CXXCPP $CPPFLAGS'
11752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11755
11756       cat >conftest.$ac_ext <<_ACEOF
11757 #line $LINENO "configure"
11758 /* confdefs.h.  */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h.  */
11763 #include <math.h>
11764 int
11765 main ()
11766 {
11767  atan2f(0, 0);
11768   ;
11769   return 0;
11770 }
11771 _ACEOF
11772 rm -f conftest.$ac_objext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11774   (eval $ac_compile) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } &&
11778          { ac_try='test -s conftest.$ac_objext'
11779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780   (eval $ac_try) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; }; then
11784   glibcxx_cv_func_atan2f_use=yes
11785 else
11786   echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789 glibcxx_cv_func_atan2f_use=no
11790 fi
11791 rm -f conftest.$ac_objext conftest.$ac_ext
11792       ac_ext=c
11793 ac_cpp='$CPP $CPPFLAGS'
11794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11797
11798
11799 fi
11800
11801   fi
11802   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
11803 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
11804
11805   if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
11806
11807 for ac_func in atan2f
11808 do
11809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11810 echo "$as_me:$LINENO: checking for $ac_func" >&5
11811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11812 if eval "test \"\${$as_ac_var+set}\" = set"; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   if test x$gcc_no_link = xyes; then
11816   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11818    { (exit 1); exit 1; }; }
11819 fi
11820 cat >conftest.$ac_ext <<_ACEOF
11821 #line $LINENO "configure"
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 /* System header to define __stub macros and hopefully few prototypes,
11828     which can conflict with char $ac_func (); below.
11829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11830     <limits.h> exists even on freestanding compilers.  */
11831 #ifdef __STDC__
11832 # include <limits.h>
11833 #else
11834 # include <assert.h>
11835 #endif
11836 /* Override any gcc2 internal prototype to avoid an error.  */
11837 #ifdef __cplusplus
11838 extern "C"
11839 {
11840 #endif
11841 /* We use char because int might match the return type of a gcc2
11842    builtin and then its argument prototype would still apply.  */
11843 char $ac_func ();
11844 /* The GNU C library defines this for functions which it implements
11845     to always fail with ENOSYS.  Some functions are actually named
11846     something starting with __ and the normal name is an alias.  */
11847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11848 choke me
11849 #else
11850 char (*f) () = $ac_func;
11851 #endif
11852 #ifdef __cplusplus
11853 }
11854 #endif
11855
11856 int
11857 main ()
11858 {
11859 return f != $ac_func;
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
11864 rm -f conftest.$ac_objext conftest$ac_exeext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866   (eval $ac_link) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); } &&
11870          { ac_try='test -s conftest$ac_exeext'
11871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872   (eval $ac_try) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; }; then
11876   eval "$as_ac_var=yes"
11877 else
11878   echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881 eval "$as_ac_var=no"
11882 fi
11883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11884 fi
11885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11887 if test `eval echo '${'$as_ac_var'}'` = yes; then
11888   cat >>confdefs.h <<_ACEOF
11889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11890 _ACEOF
11891
11892 fi
11893 done
11894
11895   else
11896
11897   echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
11898 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
11899   if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
11900     if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
11901   echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903
11904
11905
11906       ac_ext=cc
11907 ac_cpp='$CXXCPP $CPPFLAGS'
11908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11911
11912       cat >conftest.$ac_ext <<_ACEOF
11913 #line $LINENO "configure"
11914 /* confdefs.h.  */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h.  */
11919 #include <math.h>
11920 int
11921 main ()
11922 {
11923  _atan2f(0, 0);
11924   ;
11925   return 0;
11926 }
11927 _ACEOF
11928 rm -f conftest.$ac_objext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11930   (eval $ac_compile) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); } &&
11934          { ac_try='test -s conftest.$ac_objext'
11935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936   (eval $ac_try) 2>&5
11937   ac_status=$?
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); }; }; then
11940   glibcxx_cv_func__atan2f_use=yes
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 glibcxx_cv_func__atan2f_use=no
11946 fi
11947 rm -f conftest.$ac_objext conftest.$ac_ext
11948       ac_ext=c
11949 ac_cpp='$CPP $CPPFLAGS'
11950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11953
11954
11955 fi
11956
11957   fi
11958   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
11959 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
11960
11961     if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
11962
11963 for ac_func in _atan2f
11964 do
11965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 echo "$as_me:$LINENO: checking for $ac_func" >&5
11967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11968 if eval "test \"\${$as_ac_var+set}\" = set"; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   if test x$gcc_no_link = xyes; then
11972   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11973 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11974    { (exit 1); exit 1; }; }
11975 fi
11976 cat >conftest.$ac_ext <<_ACEOF
11977 #line $LINENO "configure"
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983 /* System header to define __stub macros and hopefully few prototypes,
11984     which can conflict with char $ac_func (); below.
11985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11986     <limits.h> exists even on freestanding compilers.  */
11987 #ifdef __STDC__
11988 # include <limits.h>
11989 #else
11990 # include <assert.h>
11991 #endif
11992 /* Override any gcc2 internal prototype to avoid an error.  */
11993 #ifdef __cplusplus
11994 extern "C"
11995 {
11996 #endif
11997 /* We use char because int might match the return type of a gcc2
11998    builtin and then its argument prototype would still apply.  */
11999 char $ac_func ();
12000 /* The GNU C library defines this for functions which it implements
12001     to always fail with ENOSYS.  Some functions are actually named
12002     something starting with __ and the normal name is an alias.  */
12003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12004 choke me
12005 #else
12006 char (*f) () = $ac_func;
12007 #endif
12008 #ifdef __cplusplus
12009 }
12010 #endif
12011
12012 int
12013 main ()
12014 {
12015 return f != $ac_func;
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022   (eval $ac_link) 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); } &&
12026          { ac_try='test -s conftest$ac_exeext'
12027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028   (eval $ac_try) 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); }; }; then
12032   eval "$as_ac_var=yes"
12033 else
12034   echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12036
12037 eval "$as_ac_var=no"
12038 fi
12039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12040 fi
12041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12043 if test `eval echo '${'$as_ac_var'}'` = yes; then
12044   cat >>confdefs.h <<_ACEOF
12045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12046 _ACEOF
12047
12048 fi
12049 done
12050
12051     fi
12052   fi
12053
12054
12055
12056   echo "$as_me:$LINENO: checking for fabsf declaration" >&5
12057 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
12058   if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
12059     if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
12060   echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062
12063
12064
12065       ac_ext=cc
12066 ac_cpp='$CXXCPP $CPPFLAGS'
12067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12070
12071       cat >conftest.$ac_ext <<_ACEOF
12072 #line $LINENO "configure"
12073 /* confdefs.h.  */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h.  */
12078 #include <math.h>
12079                       #ifdef HAVE_IEEEFP_H
12080                       #include <ieeefp.h>
12081                       #endif
12082
12083 int
12084 main ()
12085 {
12086  fabsf(0);
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12093   (eval $ac_compile) 2>&5
12094   ac_status=$?
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); } &&
12097          { ac_try='test -s conftest.$ac_objext'
12098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099   (eval $ac_try) 2>&5
12100   ac_status=$?
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); }; }; then
12103   glibcxx_cv_func_fabsf_use=yes
12104 else
12105   echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108 glibcxx_cv_func_fabsf_use=no
12109 fi
12110 rm -f conftest.$ac_objext conftest.$ac_ext
12111       ac_ext=c
12112 ac_cpp='$CPP $CPPFLAGS'
12113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12116
12117
12118 fi
12119
12120   fi
12121   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
12122 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
12123
12124   if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
12125
12126 for ac_func in fabsf
12127 do
12128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12129 echo "$as_me:$LINENO: checking for $ac_func" >&5
12130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12131 if eval "test \"\${$as_ac_var+set}\" = set"; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134   if test x$gcc_no_link = xyes; then
12135   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12137    { (exit 1); exit 1; }; }
12138 fi
12139 cat >conftest.$ac_ext <<_ACEOF
12140 #line $LINENO "configure"
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146 /* System header to define __stub macros and hopefully few prototypes,
12147     which can conflict with char $ac_func (); below.
12148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12149     <limits.h> exists even on freestanding compilers.  */
12150 #ifdef __STDC__
12151 # include <limits.h>
12152 #else
12153 # include <assert.h>
12154 #endif
12155 /* Override any gcc2 internal prototype to avoid an error.  */
12156 #ifdef __cplusplus
12157 extern "C"
12158 {
12159 #endif
12160 /* We use char because int might match the return type of a gcc2
12161    builtin and then its argument prototype would still apply.  */
12162 char $ac_func ();
12163 /* The GNU C library defines this for functions which it implements
12164     to always fail with ENOSYS.  Some functions are actually named
12165     something starting with __ and the normal name is an alias.  */
12166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12167 choke me
12168 #else
12169 char (*f) () = $ac_func;
12170 #endif
12171 #ifdef __cplusplus
12172 }
12173 #endif
12174
12175 int
12176 main ()
12177 {
12178 return f != $ac_func;
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 rm -f conftest.$ac_objext conftest$ac_exeext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12185   (eval $ac_link) 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } &&
12189          { ac_try='test -s conftest$ac_exeext'
12190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191   (eval $ac_try) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; }; then
12195   eval "$as_ac_var=yes"
12196 else
12197   echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12199
12200 eval "$as_ac_var=no"
12201 fi
12202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12203 fi
12204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12206 if test `eval echo '${'$as_ac_var'}'` = yes; then
12207   cat >>confdefs.h <<_ACEOF
12208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12209 _ACEOF
12210
12211 fi
12212 done
12213
12214   else
12215
12216   echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
12217 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
12218   if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
12219     if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
12220   echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222
12223
12224
12225       ac_ext=cc
12226 ac_cpp='$CXXCPP $CPPFLAGS'
12227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12230
12231       cat >conftest.$ac_ext <<_ACEOF
12232 #line $LINENO "configure"
12233 /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238 #include <math.h>
12239                       #ifdef HAVE_IEEEFP_H
12240                       #include <ieeefp.h>
12241                       #endif
12242
12243 int
12244 main ()
12245 {
12246  _fabsf(0);
12247   ;
12248   return 0;
12249 }
12250 _ACEOF
12251 rm -f conftest.$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253   (eval $ac_compile) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } &&
12257          { ac_try='test -s conftest.$ac_objext'
12258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259   (eval $ac_try) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; }; then
12263   glibcxx_cv_func__fabsf_use=yes
12264 else
12265   echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 glibcxx_cv_func__fabsf_use=no
12269 fi
12270 rm -f conftest.$ac_objext conftest.$ac_ext
12271       ac_ext=c
12272 ac_cpp='$CPP $CPPFLAGS'
12273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12276
12277
12278 fi
12279
12280   fi
12281   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
12282 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
12283
12284     if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
12285
12286 for ac_func in _fabsf
12287 do
12288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12289 echo "$as_me:$LINENO: checking for $ac_func" >&5
12290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12291 if eval "test \"\${$as_ac_var+set}\" = set"; then
12292   echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294   if test x$gcc_no_link = xyes; then
12295   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12297    { (exit 1); exit 1; }; }
12298 fi
12299 cat >conftest.$ac_ext <<_ACEOF
12300 #line $LINENO "configure"
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12306 /* System header to define __stub macros and hopefully few prototypes,
12307     which can conflict with char $ac_func (); below.
12308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12309     <limits.h> exists even on freestanding compilers.  */
12310 #ifdef __STDC__
12311 # include <limits.h>
12312 #else
12313 # include <assert.h>
12314 #endif
12315 /* Override any gcc2 internal prototype to avoid an error.  */
12316 #ifdef __cplusplus
12317 extern "C"
12318 {
12319 #endif
12320 /* We use char because int might match the return type of a gcc2
12321    builtin and then its argument prototype would still apply.  */
12322 char $ac_func ();
12323 /* The GNU C library defines this for functions which it implements
12324     to always fail with ENOSYS.  Some functions are actually named
12325     something starting with __ and the normal name is an alias.  */
12326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12327 choke me
12328 #else
12329 char (*f) () = $ac_func;
12330 #endif
12331 #ifdef __cplusplus
12332 }
12333 #endif
12334
12335 int
12336 main ()
12337 {
12338 return f != $ac_func;
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12345   (eval $ac_link) 2>&5
12346   ac_status=$?
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); } &&
12349          { ac_try='test -s conftest$ac_exeext'
12350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351   (eval $ac_try) 2>&5
12352   ac_status=$?
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); }; }; then
12355   eval "$as_ac_var=yes"
12356 else
12357   echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360 eval "$as_ac_var=no"
12361 fi
12362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12363 fi
12364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12366 if test `eval echo '${'$as_ac_var'}'` = yes; then
12367   cat >>confdefs.h <<_ACEOF
12368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12369 _ACEOF
12370
12371 fi
12372 done
12373
12374     fi
12375   fi
12376
12377
12378
12379   echo "$as_me:$LINENO: checking for fmodf declaration" >&5
12380 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
12381   if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
12382     if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
12383   echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385
12386
12387
12388       ac_ext=cc
12389 ac_cpp='$CXXCPP $CPPFLAGS'
12390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12393
12394       cat >conftest.$ac_ext <<_ACEOF
12395 #line $LINENO "configure"
12396 /* confdefs.h.  */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h.  */
12401 #include <math.h>
12402 int
12403 main ()
12404 {
12405  fmodf(0, 0);
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12412   (eval $ac_compile) 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } &&
12416          { ac_try='test -s conftest.$ac_objext'
12417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418   (eval $ac_try) 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; }; then
12422   glibcxx_cv_func_fmodf_use=yes
12423 else
12424   echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12426
12427 glibcxx_cv_func_fmodf_use=no
12428 fi
12429 rm -f conftest.$ac_objext conftest.$ac_ext
12430       ac_ext=c
12431 ac_cpp='$CPP $CPPFLAGS'
12432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12435
12436
12437 fi
12438
12439   fi
12440   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
12441 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
12442
12443   if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
12444
12445 for ac_func in fmodf
12446 do
12447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12448 echo "$as_me:$LINENO: checking for $ac_func" >&5
12449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12450 if eval "test \"\${$as_ac_var+set}\" = set"; then
12451   echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453   if test x$gcc_no_link = xyes; then
12454   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12456    { (exit 1); exit 1; }; }
12457 fi
12458 cat >conftest.$ac_ext <<_ACEOF
12459 #line $LINENO "configure"
12460 /* confdefs.h.  */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h.  */
12465 /* System header to define __stub macros and hopefully few prototypes,
12466     which can conflict with char $ac_func (); below.
12467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12468     <limits.h> exists even on freestanding compilers.  */
12469 #ifdef __STDC__
12470 # include <limits.h>
12471 #else
12472 # include <assert.h>
12473 #endif
12474 /* Override any gcc2 internal prototype to avoid an error.  */
12475 #ifdef __cplusplus
12476 extern "C"
12477 {
12478 #endif
12479 /* We use char because int might match the return type of a gcc2
12480    builtin and then its argument prototype would still apply.  */
12481 char $ac_func ();
12482 /* The GNU C library defines this for functions which it implements
12483     to always fail with ENOSYS.  Some functions are actually named
12484     something starting with __ and the normal name is an alias.  */
12485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12486 choke me
12487 #else
12488 char (*f) () = $ac_func;
12489 #endif
12490 #ifdef __cplusplus
12491 }
12492 #endif
12493
12494 int
12495 main ()
12496 {
12497 return f != $ac_func;
12498   ;
12499   return 0;
12500 }
12501 _ACEOF
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504   (eval $ac_link) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } &&
12508          { ac_try='test -s conftest$ac_exeext'
12509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510   (eval $ac_try) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; }; then
12514   eval "$as_ac_var=yes"
12515 else
12516   echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12518
12519 eval "$as_ac_var=no"
12520 fi
12521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12522 fi
12523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12525 if test `eval echo '${'$as_ac_var'}'` = yes; then
12526   cat >>confdefs.h <<_ACEOF
12527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12528 _ACEOF
12529
12530 fi
12531 done
12532
12533   else
12534
12535   echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
12536 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
12537   if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
12538     if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
12539   echo $ECHO_N "(cached) $ECHO_C" >&6
12540 else
12541
12542
12543
12544       ac_ext=cc
12545 ac_cpp='$CXXCPP $CPPFLAGS'
12546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12549
12550       cat >conftest.$ac_ext <<_ACEOF
12551 #line $LINENO "configure"
12552 /* confdefs.h.  */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h.  */
12557 #include <math.h>
12558 int
12559 main ()
12560 {
12561  _fmodf(0, 0);
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 rm -f conftest.$ac_objext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568   (eval $ac_compile) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } &&
12572          { ac_try='test -s conftest.$ac_objext'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; }; then
12578   glibcxx_cv_func__fmodf_use=yes
12579 else
12580   echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 glibcxx_cv_func__fmodf_use=no
12584 fi
12585 rm -f conftest.$ac_objext conftest.$ac_ext
12586       ac_ext=c
12587 ac_cpp='$CPP $CPPFLAGS'
12588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12591
12592
12593 fi
12594
12595   fi
12596   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
12597 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
12598
12599     if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
12600
12601 for ac_func in _fmodf
12602 do
12603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12604 echo "$as_me:$LINENO: checking for $ac_func" >&5
12605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12606 if eval "test \"\${$as_ac_var+set}\" = set"; then
12607   echo $ECHO_N "(cached) $ECHO_C" >&6
12608 else
12609   if test x$gcc_no_link = xyes; then
12610   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12612    { (exit 1); exit 1; }; }
12613 fi
12614 cat >conftest.$ac_ext <<_ACEOF
12615 #line $LINENO "configure"
12616 /* confdefs.h.  */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h.  */
12621 /* System header to define __stub macros and hopefully few prototypes,
12622     which can conflict with char $ac_func (); below.
12623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624     <limits.h> exists even on freestanding compilers.  */
12625 #ifdef __STDC__
12626 # include <limits.h>
12627 #else
12628 # include <assert.h>
12629 #endif
12630 /* Override any gcc2 internal prototype to avoid an error.  */
12631 #ifdef __cplusplus
12632 extern "C"
12633 {
12634 #endif
12635 /* We use char because int might match the return type of a gcc2
12636    builtin and then its argument prototype would still apply.  */
12637 char $ac_func ();
12638 /* The GNU C library defines this for functions which it implements
12639     to always fail with ENOSYS.  Some functions are actually named
12640     something starting with __ and the normal name is an alias.  */
12641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12642 choke me
12643 #else
12644 char (*f) () = $ac_func;
12645 #endif
12646 #ifdef __cplusplus
12647 }
12648 #endif
12649
12650 int
12651 main ()
12652 {
12653 return f != $ac_func;
12654   ;
12655   return 0;
12656 }
12657 _ACEOF
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660   (eval $ac_link) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); } &&
12664          { ac_try='test -s conftest$ac_exeext'
12665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666   (eval $ac_try) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }; }; then
12670   eval "$as_ac_var=yes"
12671 else
12672   echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12674
12675 eval "$as_ac_var=no"
12676 fi
12677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12678 fi
12679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12681 if test `eval echo '${'$as_ac_var'}'` = yes; then
12682   cat >>confdefs.h <<_ACEOF
12683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12684 _ACEOF
12685
12686 fi
12687 done
12688
12689     fi
12690   fi
12691
12692
12693
12694   echo "$as_me:$LINENO: checking for frexpf declaration" >&5
12695 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
12696   if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
12697     if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
12698   echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700
12701
12702
12703       ac_ext=cc
12704 ac_cpp='$CXXCPP $CPPFLAGS'
12705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12708
12709       cat >conftest.$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12711 /* confdefs.h.  */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h.  */
12716 #include <math.h>
12717 int
12718 main ()
12719 {
12720  frexpf(0, 0);
12721   ;
12722   return 0;
12723 }
12724 _ACEOF
12725 rm -f conftest.$ac_objext
12726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12727   (eval $ac_compile) 2>&5
12728   ac_status=$?
12729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); } &&
12731          { ac_try='test -s conftest.$ac_objext'
12732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733   (eval $ac_try) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; }; then
12737   glibcxx_cv_func_frexpf_use=yes
12738 else
12739   echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12741
12742 glibcxx_cv_func_frexpf_use=no
12743 fi
12744 rm -f conftest.$ac_objext conftest.$ac_ext
12745       ac_ext=c
12746 ac_cpp='$CPP $CPPFLAGS'
12747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12750
12751
12752 fi
12753
12754   fi
12755   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
12756 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
12757
12758   if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
12759
12760 for ac_func in frexpf
12761 do
12762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12763 echo "$as_me:$LINENO: checking for $ac_func" >&5
12764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12765 if eval "test \"\${$as_ac_var+set}\" = set"; then
12766   echo $ECHO_N "(cached) $ECHO_C" >&6
12767 else
12768   if test x$gcc_no_link = xyes; then
12769   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12771    { (exit 1); exit 1; }; }
12772 fi
12773 cat >conftest.$ac_ext <<_ACEOF
12774 #line $LINENO "configure"
12775 /* confdefs.h.  */
12776 _ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h.  */
12780 /* System header to define __stub macros and hopefully few prototypes,
12781     which can conflict with char $ac_func (); below.
12782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12783     <limits.h> exists even on freestanding compilers.  */
12784 #ifdef __STDC__
12785 # include <limits.h>
12786 #else
12787 # include <assert.h>
12788 #endif
12789 /* Override any gcc2 internal prototype to avoid an error.  */
12790 #ifdef __cplusplus
12791 extern "C"
12792 {
12793 #endif
12794 /* We use char because int might match the return type of a gcc2
12795    builtin and then its argument prototype would still apply.  */
12796 char $ac_func ();
12797 /* The GNU C library defines this for functions which it implements
12798     to always fail with ENOSYS.  Some functions are actually named
12799     something starting with __ and the normal name is an alias.  */
12800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12801 choke me
12802 #else
12803 char (*f) () = $ac_func;
12804 #endif
12805 #ifdef __cplusplus
12806 }
12807 #endif
12808
12809 int
12810 main ()
12811 {
12812 return f != $ac_func;
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819   (eval $ac_link) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); } &&
12823          { ac_try='test -s conftest$ac_exeext'
12824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825   (eval $ac_try) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; }; then
12829   eval "$as_ac_var=yes"
12830 else
12831   echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12833
12834 eval "$as_ac_var=no"
12835 fi
12836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12837 fi
12838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12840 if test `eval echo '${'$as_ac_var'}'` = yes; then
12841   cat >>confdefs.h <<_ACEOF
12842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12843 _ACEOF
12844
12845 fi
12846 done
12847
12848   else
12849
12850   echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
12851 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
12852   if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
12853     if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856
12857
12858
12859       ac_ext=cc
12860 ac_cpp='$CXXCPP $CPPFLAGS'
12861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12864
12865       cat >conftest.$ac_ext <<_ACEOF
12866 #line $LINENO "configure"
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872 #include <math.h>
12873 int
12874 main ()
12875 {
12876  _frexpf(0, 0);
12877   ;
12878   return 0;
12879 }
12880 _ACEOF
12881 rm -f conftest.$ac_objext
12882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12883   (eval $ac_compile) 2>&5
12884   ac_status=$?
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); } &&
12887          { ac_try='test -s conftest.$ac_objext'
12888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889   (eval $ac_try) 2>&5
12890   ac_status=$?
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); }; }; then
12893   glibcxx_cv_func__frexpf_use=yes
12894 else
12895   echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12897
12898 glibcxx_cv_func__frexpf_use=no
12899 fi
12900 rm -f conftest.$ac_objext conftest.$ac_ext
12901       ac_ext=c
12902 ac_cpp='$CPP $CPPFLAGS'
12903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12906
12907
12908 fi
12909
12910   fi
12911   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
12912 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
12913
12914     if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
12915
12916 for ac_func in _frexpf
12917 do
12918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12919 echo "$as_me:$LINENO: checking for $ac_func" >&5
12920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12921 if eval "test \"\${$as_ac_var+set}\" = set"; then
12922   echo $ECHO_N "(cached) $ECHO_C" >&6
12923 else
12924   if test x$gcc_no_link = xyes; then
12925   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12927    { (exit 1); exit 1; }; }
12928 fi
12929 cat >conftest.$ac_ext <<_ACEOF
12930 #line $LINENO "configure"
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 /* System header to define __stub macros and hopefully few prototypes,
12937     which can conflict with char $ac_func (); below.
12938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12939     <limits.h> exists even on freestanding compilers.  */
12940 #ifdef __STDC__
12941 # include <limits.h>
12942 #else
12943 # include <assert.h>
12944 #endif
12945 /* Override any gcc2 internal prototype to avoid an error.  */
12946 #ifdef __cplusplus
12947 extern "C"
12948 {
12949 #endif
12950 /* We use char because int might match the return type of a gcc2
12951    builtin and then its argument prototype would still apply.  */
12952 char $ac_func ();
12953 /* The GNU C library defines this for functions which it implements
12954     to always fail with ENOSYS.  Some functions are actually named
12955     something starting with __ and the normal name is an alias.  */
12956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12957 choke me
12958 #else
12959 char (*f) () = $ac_func;
12960 #endif
12961 #ifdef __cplusplus
12962 }
12963 #endif
12964
12965 int
12966 main ()
12967 {
12968 return f != $ac_func;
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12975   (eval $ac_link) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); } &&
12979          { ac_try='test -s conftest$ac_exeext'
12980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981   (eval $ac_try) 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; }; then
12985   eval "$as_ac_var=yes"
12986 else
12987   echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12989
12990 eval "$as_ac_var=no"
12991 fi
12992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12993 fi
12994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12996 if test `eval echo '${'$as_ac_var'}'` = yes; then
12997   cat >>confdefs.h <<_ACEOF
12998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12999 _ACEOF
13000
13001 fi
13002 done
13003
13004     fi
13005   fi
13006
13007
13008
13009   echo "$as_me:$LINENO: checking for hypotf declaration" >&5
13010 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
13011   if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
13012     if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
13013   echo $ECHO_N "(cached) $ECHO_C" >&6
13014 else
13015
13016
13017
13018       ac_ext=cc
13019 ac_cpp='$CXXCPP $CPPFLAGS'
13020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13023
13024       cat >conftest.$ac_ext <<_ACEOF
13025 #line $LINENO "configure"
13026 /* confdefs.h.  */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h.  */
13031 #include <math.h>
13032 int
13033 main ()
13034 {
13035  hypotf(0, 0);
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042   (eval $ac_compile) 2>&5
13043   ac_status=$?
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } &&
13046          { ac_try='test -s conftest.$ac_objext'
13047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048   (eval $ac_try) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; }; then
13052   glibcxx_cv_func_hypotf_use=yes
13053 else
13054   echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13056
13057 glibcxx_cv_func_hypotf_use=no
13058 fi
13059 rm -f conftest.$ac_objext conftest.$ac_ext
13060       ac_ext=c
13061 ac_cpp='$CPP $CPPFLAGS'
13062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13065
13066
13067 fi
13068
13069   fi
13070   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
13071 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
13072
13073   if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
13074
13075 for ac_func in hypotf
13076 do
13077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13078 echo "$as_me:$LINENO: checking for $ac_func" >&5
13079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13080 if eval "test \"\${$as_ac_var+set}\" = set"; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083   if test x$gcc_no_link = xyes; then
13084   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13085 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13086    { (exit 1); exit 1; }; }
13087 fi
13088 cat >conftest.$ac_ext <<_ACEOF
13089 #line $LINENO "configure"
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095 /* System header to define __stub macros and hopefully few prototypes,
13096     which can conflict with char $ac_func (); below.
13097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13098     <limits.h> exists even on freestanding compilers.  */
13099 #ifdef __STDC__
13100 # include <limits.h>
13101 #else
13102 # include <assert.h>
13103 #endif
13104 /* Override any gcc2 internal prototype to avoid an error.  */
13105 #ifdef __cplusplus
13106 extern "C"
13107 {
13108 #endif
13109 /* We use char because int might match the return type of a gcc2
13110    builtin and then its argument prototype would still apply.  */
13111 char $ac_func ();
13112 /* The GNU C library defines this for functions which it implements
13113     to always fail with ENOSYS.  Some functions are actually named
13114     something starting with __ and the normal name is an alias.  */
13115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13116 choke me
13117 #else
13118 char (*f) () = $ac_func;
13119 #endif
13120 #ifdef __cplusplus
13121 }
13122 #endif
13123
13124 int
13125 main ()
13126 {
13127 return f != $ac_func;
13128   ;
13129   return 0;
13130 }
13131 _ACEOF
13132 rm -f conftest.$ac_objext conftest$ac_exeext
13133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13134   (eval $ac_link) 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); } &&
13138          { ac_try='test -s conftest$ac_exeext'
13139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140   (eval $ac_try) 2>&5
13141   ac_status=$?
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); }; }; then
13144   eval "$as_ac_var=yes"
13145 else
13146   echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13148
13149 eval "$as_ac_var=no"
13150 fi
13151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13152 fi
13153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13155 if test `eval echo '${'$as_ac_var'}'` = yes; then
13156   cat >>confdefs.h <<_ACEOF
13157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13158 _ACEOF
13159
13160 fi
13161 done
13162
13163   else
13164
13165   echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
13166 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
13167   if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
13168     if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171
13172
13173
13174       ac_ext=cc
13175 ac_cpp='$CXXCPP $CPPFLAGS'
13176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13179
13180       cat >conftest.$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13182 /* confdefs.h.  */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h.  */
13187 #include <math.h>
13188 int
13189 main ()
13190 {
13191  _hypotf(0, 0);
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198   (eval $ac_compile) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } &&
13202          { ac_try='test -s conftest.$ac_objext'
13203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204   (eval $ac_try) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   glibcxx_cv_func__hypotf_use=yes
13209 else
13210   echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13212
13213 glibcxx_cv_func__hypotf_use=no
13214 fi
13215 rm -f conftest.$ac_objext conftest.$ac_ext
13216       ac_ext=c
13217 ac_cpp='$CPP $CPPFLAGS'
13218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13221
13222
13223 fi
13224
13225   fi
13226   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
13227 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
13228
13229     if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
13230
13231 for ac_func in _hypotf
13232 do
13233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13234 echo "$as_me:$LINENO: checking for $ac_func" >&5
13235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13236 if eval "test \"\${$as_ac_var+set}\" = set"; then
13237   echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239   if test x$gcc_no_link = xyes; then
13240   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13241 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13242    { (exit 1); exit 1; }; }
13243 fi
13244 cat >conftest.$ac_ext <<_ACEOF
13245 #line $LINENO "configure"
13246 /* confdefs.h.  */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h.  */
13251 /* System header to define __stub macros and hopefully few prototypes,
13252     which can conflict with char $ac_func (); below.
13253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13254     <limits.h> exists even on freestanding compilers.  */
13255 #ifdef __STDC__
13256 # include <limits.h>
13257 #else
13258 # include <assert.h>
13259 #endif
13260 /* Override any gcc2 internal prototype to avoid an error.  */
13261 #ifdef __cplusplus
13262 extern "C"
13263 {
13264 #endif
13265 /* We use char because int might match the return type of a gcc2
13266    builtin and then its argument prototype would still apply.  */
13267 char $ac_func ();
13268 /* The GNU C library defines this for functions which it implements
13269     to always fail with ENOSYS.  Some functions are actually named
13270     something starting with __ and the normal name is an alias.  */
13271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13272 choke me
13273 #else
13274 char (*f) () = $ac_func;
13275 #endif
13276 #ifdef __cplusplus
13277 }
13278 #endif
13279
13280 int
13281 main ()
13282 {
13283 return f != $ac_func;
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 rm -f conftest.$ac_objext conftest$ac_exeext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13290   (eval $ac_link) 2>&5
13291   ac_status=$?
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -s conftest$ac_exeext'
13295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296   (eval $ac_try) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; }; then
13300   eval "$as_ac_var=yes"
13301 else
13302   echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13304
13305 eval "$as_ac_var=no"
13306 fi
13307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13308 fi
13309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13311 if test `eval echo '${'$as_ac_var'}'` = yes; then
13312   cat >>confdefs.h <<_ACEOF
13313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13314 _ACEOF
13315
13316 fi
13317 done
13318
13319     fi
13320   fi
13321
13322
13323
13324   echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
13325 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
13326   if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
13327     if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
13328   echo $ECHO_N "(cached) $ECHO_C" >&6
13329 else
13330
13331
13332
13333       ac_ext=cc
13334 ac_cpp='$CXXCPP $CPPFLAGS'
13335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13338
13339       cat >conftest.$ac_ext <<_ACEOF
13340 #line $LINENO "configure"
13341 /* confdefs.h.  */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h.  */
13346 #include <math.h>
13347 int
13348 main ()
13349 {
13350  ldexpf(0, 0);
13351   ;
13352   return 0;
13353 }
13354 _ACEOF
13355 rm -f conftest.$ac_objext
13356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13357   (eval $ac_compile) 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } &&
13361          { ac_try='test -s conftest.$ac_objext'
13362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363   (eval $ac_try) 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); }; }; then
13367   glibcxx_cv_func_ldexpf_use=yes
13368 else
13369   echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13371
13372 glibcxx_cv_func_ldexpf_use=no
13373 fi
13374 rm -f conftest.$ac_objext conftest.$ac_ext
13375       ac_ext=c
13376 ac_cpp='$CPP $CPPFLAGS'
13377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13380
13381
13382 fi
13383
13384   fi
13385   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
13386 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
13387
13388   if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
13389
13390 for ac_func in ldexpf
13391 do
13392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13393 echo "$as_me:$LINENO: checking for $ac_func" >&5
13394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13395 if eval "test \"\${$as_ac_var+set}\" = set"; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398   if test x$gcc_no_link = xyes; then
13399   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13400 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13401    { (exit 1); exit 1; }; }
13402 fi
13403 cat >conftest.$ac_ext <<_ACEOF
13404 #line $LINENO "configure"
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410 /* System header to define __stub macros and hopefully few prototypes,
13411     which can conflict with char $ac_func (); below.
13412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13413     <limits.h> exists even on freestanding compilers.  */
13414 #ifdef __STDC__
13415 # include <limits.h>
13416 #else
13417 # include <assert.h>
13418 #endif
13419 /* Override any gcc2 internal prototype to avoid an error.  */
13420 #ifdef __cplusplus
13421 extern "C"
13422 {
13423 #endif
13424 /* We use char because int might match the return type of a gcc2
13425    builtin and then its argument prototype would still apply.  */
13426 char $ac_func ();
13427 /* The GNU C library defines this for functions which it implements
13428     to always fail with ENOSYS.  Some functions are actually named
13429     something starting with __ and the normal name is an alias.  */
13430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13431 choke me
13432 #else
13433 char (*f) () = $ac_func;
13434 #endif
13435 #ifdef __cplusplus
13436 }
13437 #endif
13438
13439 int
13440 main ()
13441 {
13442 return f != $ac_func;
13443   ;
13444   return 0;
13445 }
13446 _ACEOF
13447 rm -f conftest.$ac_objext conftest$ac_exeext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449   (eval $ac_link) 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); } &&
13453          { ac_try='test -s conftest$ac_exeext'
13454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455   (eval $ac_try) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; }; then
13459   eval "$as_ac_var=yes"
13460 else
13461   echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464 eval "$as_ac_var=no"
13465 fi
13466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13467 fi
13468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13470 if test `eval echo '${'$as_ac_var'}'` = yes; then
13471   cat >>confdefs.h <<_ACEOF
13472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13473 _ACEOF
13474
13475 fi
13476 done
13477
13478   else
13479
13480   echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
13481 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
13482   if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
13483     if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486
13487
13488
13489       ac_ext=cc
13490 ac_cpp='$CXXCPP $CPPFLAGS'
13491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13494
13495       cat >conftest.$ac_ext <<_ACEOF
13496 #line $LINENO "configure"
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502 #include <math.h>
13503 int
13504 main ()
13505 {
13506  _ldexpf(0, 0);
13507   ;
13508   return 0;
13509 }
13510 _ACEOF
13511 rm -f conftest.$ac_objext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513   (eval $ac_compile) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } &&
13517          { ac_try='test -s conftest.$ac_objext'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; }; then
13523   glibcxx_cv_func__ldexpf_use=yes
13524 else
13525   echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528 glibcxx_cv_func__ldexpf_use=no
13529 fi
13530 rm -f conftest.$ac_objext conftest.$ac_ext
13531       ac_ext=c
13532 ac_cpp='$CPP $CPPFLAGS'
13533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13536
13537
13538 fi
13539
13540   fi
13541   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
13542 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
13543
13544     if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
13545
13546 for ac_func in _ldexpf
13547 do
13548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13549 echo "$as_me:$LINENO: checking for $ac_func" >&5
13550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13551 if eval "test \"\${$as_ac_var+set}\" = set"; then
13552   echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554   if test x$gcc_no_link = xyes; then
13555   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13557    { (exit 1); exit 1; }; }
13558 fi
13559 cat >conftest.$ac_ext <<_ACEOF
13560 #line $LINENO "configure"
13561 /* confdefs.h.  */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h.  */
13566 /* System header to define __stub macros and hopefully few prototypes,
13567     which can conflict with char $ac_func (); below.
13568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13569     <limits.h> exists even on freestanding compilers.  */
13570 #ifdef __STDC__
13571 # include <limits.h>
13572 #else
13573 # include <assert.h>
13574 #endif
13575 /* Override any gcc2 internal prototype to avoid an error.  */
13576 #ifdef __cplusplus
13577 extern "C"
13578 {
13579 #endif
13580 /* We use char because int might match the return type of a gcc2
13581    builtin and then its argument prototype would still apply.  */
13582 char $ac_func ();
13583 /* The GNU C library defines this for functions which it implements
13584     to always fail with ENOSYS.  Some functions are actually named
13585     something starting with __ and the normal name is an alias.  */
13586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13587 choke me
13588 #else
13589 char (*f) () = $ac_func;
13590 #endif
13591 #ifdef __cplusplus
13592 }
13593 #endif
13594
13595 int
13596 main ()
13597 {
13598 return f != $ac_func;
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605   (eval $ac_link) 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); } &&
13609          { ac_try='test -s conftest$ac_exeext'
13610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611   (eval $ac_try) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; }; then
13615   eval "$as_ac_var=yes"
13616 else
13617   echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13619
13620 eval "$as_ac_var=no"
13621 fi
13622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13623 fi
13624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13626 if test `eval echo '${'$as_ac_var'}'` = yes; then
13627   cat >>confdefs.h <<_ACEOF
13628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13629 _ACEOF
13630
13631 fi
13632 done
13633
13634     fi
13635   fi
13636
13637
13638
13639   echo "$as_me:$LINENO: checking for logf declaration" >&5
13640 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
13641   if test x${glibcxx_cv_func_logf_use+set} != xset; then
13642     if test "${glibcxx_cv_func_logf_use+set}" = set; then
13643   echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645
13646
13647
13648       ac_ext=cc
13649 ac_cpp='$CXXCPP $CPPFLAGS'
13650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13653
13654       cat >conftest.$ac_ext <<_ACEOF
13655 #line $LINENO "configure"
13656 /* confdefs.h.  */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h.  */
13661 #include <math.h>
13662                       #ifdef HAVE_IEEEFP_H
13663                       #include <ieeefp.h>
13664                       #endif
13665
13666 int
13667 main ()
13668 {
13669  logf(0);
13670   ;
13671   return 0;
13672 }
13673 _ACEOF
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676   (eval $ac_compile) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); } &&
13680          { ac_try='test -s conftest.$ac_objext'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; }; then
13686   glibcxx_cv_func_logf_use=yes
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 glibcxx_cv_func_logf_use=no
13692 fi
13693 rm -f conftest.$ac_objext conftest.$ac_ext
13694       ac_ext=c
13695 ac_cpp='$CPP $CPPFLAGS'
13696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13699
13700
13701 fi
13702
13703   fi
13704   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
13705 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
13706
13707   if test x$glibcxx_cv_func_logf_use = x"yes"; then
13708
13709 for ac_func in logf
13710 do
13711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13712 echo "$as_me:$LINENO: checking for $ac_func" >&5
13713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13714 if eval "test \"\${$as_ac_var+set}\" = set"; then
13715   echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717   if test x$gcc_no_link = xyes; then
13718   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13720    { (exit 1); exit 1; }; }
13721 fi
13722 cat >conftest.$ac_ext <<_ACEOF
13723 #line $LINENO "configure"
13724 /* confdefs.h.  */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h.  */
13729 /* System header to define __stub macros and hopefully few prototypes,
13730     which can conflict with char $ac_func (); below.
13731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13732     <limits.h> exists even on freestanding compilers.  */
13733 #ifdef __STDC__
13734 # include <limits.h>
13735 #else
13736 # include <assert.h>
13737 #endif
13738 /* Override any gcc2 internal prototype to avoid an error.  */
13739 #ifdef __cplusplus
13740 extern "C"
13741 {
13742 #endif
13743 /* We use char because int might match the return type of a gcc2
13744    builtin and then its argument prototype would still apply.  */
13745 char $ac_func ();
13746 /* The GNU C library defines this for functions which it implements
13747     to always fail with ENOSYS.  Some functions are actually named
13748     something starting with __ and the normal name is an alias.  */
13749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13750 choke me
13751 #else
13752 char (*f) () = $ac_func;
13753 #endif
13754 #ifdef __cplusplus
13755 }
13756 #endif
13757
13758 int
13759 main ()
13760 {
13761 return f != $ac_func;
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13768   (eval $ac_link) 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); } &&
13772          { ac_try='test -s conftest$ac_exeext'
13773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774   (eval $ac_try) 2>&5
13775   ac_status=$?
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); }; }; then
13778   eval "$as_ac_var=yes"
13779 else
13780   echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13782
13783 eval "$as_ac_var=no"
13784 fi
13785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13786 fi
13787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13789 if test `eval echo '${'$as_ac_var'}'` = yes; then
13790   cat >>confdefs.h <<_ACEOF
13791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13792 _ACEOF
13793
13794 fi
13795 done
13796
13797   else
13798
13799   echo "$as_me:$LINENO: checking for _logf declaration" >&5
13800 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
13801   if test x${glibcxx_cv_func__logf_use+set} != xset; then
13802     if test "${glibcxx_cv_func__logf_use+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805
13806
13807
13808       ac_ext=cc
13809 ac_cpp='$CXXCPP $CPPFLAGS'
13810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13813
13814       cat >conftest.$ac_ext <<_ACEOF
13815 #line $LINENO "configure"
13816 /* confdefs.h.  */
13817 _ACEOF
13818 cat confdefs.h >>conftest.$ac_ext
13819 cat >>conftest.$ac_ext <<_ACEOF
13820 /* end confdefs.h.  */
13821 #include <math.h>
13822                       #ifdef HAVE_IEEEFP_H
13823                       #include <ieeefp.h>
13824                       #endif
13825
13826 int
13827 main ()
13828 {
13829  _logf(0);
13830   ;
13831   return 0;
13832 }
13833 _ACEOF
13834 rm -f conftest.$ac_objext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13836   (eval $ac_compile) 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); } &&
13840          { ac_try='test -s conftest.$ac_objext'
13841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842   (eval $ac_try) 2>&5
13843   ac_status=$?
13844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845   (exit $ac_status); }; }; then
13846   glibcxx_cv_func__logf_use=yes
13847 else
13848   echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.$ac_ext >&5
13850
13851 glibcxx_cv_func__logf_use=no
13852 fi
13853 rm -f conftest.$ac_objext conftest.$ac_ext
13854       ac_ext=c
13855 ac_cpp='$CPP $CPPFLAGS'
13856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13859
13860
13861 fi
13862
13863   fi
13864   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
13865 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
13866
13867     if test x$glibcxx_cv_func__logf_use = x"yes"; then
13868
13869 for ac_func in _logf
13870 do
13871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13872 echo "$as_me:$LINENO: checking for $ac_func" >&5
13873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13874 if eval "test \"\${$as_ac_var+set}\" = set"; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877   if test x$gcc_no_link = xyes; then
13878   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13880    { (exit 1); exit 1; }; }
13881 fi
13882 cat >conftest.$ac_ext <<_ACEOF
13883 #line $LINENO "configure"
13884 /* confdefs.h.  */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h.  */
13889 /* System header to define __stub macros and hopefully few prototypes,
13890     which can conflict with char $ac_func (); below.
13891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13892     <limits.h> exists even on freestanding compilers.  */
13893 #ifdef __STDC__
13894 # include <limits.h>
13895 #else
13896 # include <assert.h>
13897 #endif
13898 /* Override any gcc2 internal prototype to avoid an error.  */
13899 #ifdef __cplusplus
13900 extern "C"
13901 {
13902 #endif
13903 /* We use char because int might match the return type of a gcc2
13904    builtin and then its argument prototype would still apply.  */
13905 char $ac_func ();
13906 /* The GNU C library defines this for functions which it implements
13907     to always fail with ENOSYS.  Some functions are actually named
13908     something starting with __ and the normal name is an alias.  */
13909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13910 choke me
13911 #else
13912 char (*f) () = $ac_func;
13913 #endif
13914 #ifdef __cplusplus
13915 }
13916 #endif
13917
13918 int
13919 main ()
13920 {
13921 return f != $ac_func;
13922   ;
13923   return 0;
13924 }
13925 _ACEOF
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928   (eval $ac_link) 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); } &&
13932          { ac_try='test -s conftest$ac_exeext'
13933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934   (eval $ac_try) 2>&5
13935   ac_status=$?
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); }; }; then
13938   eval "$as_ac_var=yes"
13939 else
13940   echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13942
13943 eval "$as_ac_var=no"
13944 fi
13945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13946 fi
13947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13949 if test `eval echo '${'$as_ac_var'}'` = yes; then
13950   cat >>confdefs.h <<_ACEOF
13951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13952 _ACEOF
13953
13954 fi
13955 done
13956
13957     fi
13958   fi
13959
13960
13961
13962   echo "$as_me:$LINENO: checking for log10f declaration" >&5
13963 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
13964   if test x${glibcxx_cv_func_log10f_use+set} != xset; then
13965     if test "${glibcxx_cv_func_log10f_use+set}" = set; then
13966   echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968
13969
13970
13971       ac_ext=cc
13972 ac_cpp='$CXXCPP $CPPFLAGS'
13973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13976
13977       cat >conftest.$ac_ext <<_ACEOF
13978 #line $LINENO "configure"
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984 #include <math.h>
13985                       #ifdef HAVE_IEEEFP_H
13986                       #include <ieeefp.h>
13987                       #endif
13988
13989 int
13990 main ()
13991 {
13992  log10f(0);
13993   ;
13994   return 0;
13995 }
13996 _ACEOF
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999   (eval $ac_compile) 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); } &&
14003          { ac_try='test -s conftest.$ac_objext'
14004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005   (eval $ac_try) 2>&5
14006   ac_status=$?
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); }; }; then
14009   glibcxx_cv_func_log10f_use=yes
14010 else
14011   echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 glibcxx_cv_func_log10f_use=no
14015 fi
14016 rm -f conftest.$ac_objext conftest.$ac_ext
14017       ac_ext=c
14018 ac_cpp='$CPP $CPPFLAGS'
14019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14022
14023
14024 fi
14025
14026   fi
14027   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
14028 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
14029
14030   if test x$glibcxx_cv_func_log10f_use = x"yes"; then
14031
14032 for ac_func in log10f
14033 do
14034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14035 echo "$as_me:$LINENO: checking for $ac_func" >&5
14036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14037 if eval "test \"\${$as_ac_var+set}\" = set"; then
14038   echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040   if test x$gcc_no_link = xyes; then
14041   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14043    { (exit 1); exit 1; }; }
14044 fi
14045 cat >conftest.$ac_ext <<_ACEOF
14046 #line $LINENO "configure"
14047 /* confdefs.h.  */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h.  */
14052 /* System header to define __stub macros and hopefully few prototypes,
14053     which can conflict with char $ac_func (); below.
14054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14055     <limits.h> exists even on freestanding compilers.  */
14056 #ifdef __STDC__
14057 # include <limits.h>
14058 #else
14059 # include <assert.h>
14060 #endif
14061 /* Override any gcc2 internal prototype to avoid an error.  */
14062 #ifdef __cplusplus
14063 extern "C"
14064 {
14065 #endif
14066 /* We use char because int might match the return type of a gcc2
14067    builtin and then its argument prototype would still apply.  */
14068 char $ac_func ();
14069 /* The GNU C library defines this for functions which it implements
14070     to always fail with ENOSYS.  Some functions are actually named
14071     something starting with __ and the normal name is an alias.  */
14072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14073 choke me
14074 #else
14075 char (*f) () = $ac_func;
14076 #endif
14077 #ifdef __cplusplus
14078 }
14079 #endif
14080
14081 int
14082 main ()
14083 {
14084 return f != $ac_func;
14085   ;
14086   return 0;
14087 }
14088 _ACEOF
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091   (eval $ac_link) 2>&5
14092   ac_status=$?
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); } &&
14095          { ac_try='test -s conftest$ac_exeext'
14096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097   (eval $ac_try) 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); }; }; then
14101   eval "$as_ac_var=yes"
14102 else
14103   echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14105
14106 eval "$as_ac_var=no"
14107 fi
14108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14109 fi
14110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14112 if test `eval echo '${'$as_ac_var'}'` = yes; then
14113   cat >>confdefs.h <<_ACEOF
14114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14115 _ACEOF
14116
14117 fi
14118 done
14119
14120   else
14121
14122   echo "$as_me:$LINENO: checking for _log10f declaration" >&5
14123 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
14124   if test x${glibcxx_cv_func__log10f_use+set} != xset; then
14125     if test "${glibcxx_cv_func__log10f_use+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128
14129
14130
14131       ac_ext=cc
14132 ac_cpp='$CXXCPP $CPPFLAGS'
14133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14136
14137       cat >conftest.$ac_ext <<_ACEOF
14138 #line $LINENO "configure"
14139 /* confdefs.h.  */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h.  */
14144 #include <math.h>
14145                       #ifdef HAVE_IEEEFP_H
14146                       #include <ieeefp.h>
14147                       #endif
14148
14149 int
14150 main ()
14151 {
14152  _log10f(0);
14153   ;
14154   return 0;
14155 }
14156 _ACEOF
14157 rm -f conftest.$ac_objext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14159   (eval $ac_compile) 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); } &&
14163          { ac_try='test -s conftest.$ac_objext'
14164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165   (eval $ac_try) 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; }; then
14169   glibcxx_cv_func__log10f_use=yes
14170 else
14171   echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14173
14174 glibcxx_cv_func__log10f_use=no
14175 fi
14176 rm -f conftest.$ac_objext conftest.$ac_ext
14177       ac_ext=c
14178 ac_cpp='$CPP $CPPFLAGS'
14179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14182
14183
14184 fi
14185
14186   fi
14187   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
14188 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
14189
14190     if test x$glibcxx_cv_func__log10f_use = x"yes"; then
14191
14192 for ac_func in _log10f
14193 do
14194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14195 echo "$as_me:$LINENO: checking for $ac_func" >&5
14196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14197 if eval "test \"\${$as_ac_var+set}\" = set"; then
14198   echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200   if test x$gcc_no_link = xyes; then
14201   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14203    { (exit 1); exit 1; }; }
14204 fi
14205 cat >conftest.$ac_ext <<_ACEOF
14206 #line $LINENO "configure"
14207 /* confdefs.h.  */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h.  */
14212 /* System header to define __stub macros and hopefully few prototypes,
14213     which can conflict with char $ac_func (); below.
14214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14215     <limits.h> exists even on freestanding compilers.  */
14216 #ifdef __STDC__
14217 # include <limits.h>
14218 #else
14219 # include <assert.h>
14220 #endif
14221 /* Override any gcc2 internal prototype to avoid an error.  */
14222 #ifdef __cplusplus
14223 extern "C"
14224 {
14225 #endif
14226 /* We use char because int might match the return type of a gcc2
14227    builtin and then its argument prototype would still apply.  */
14228 char $ac_func ();
14229 /* The GNU C library defines this for functions which it implements
14230     to always fail with ENOSYS.  Some functions are actually named
14231     something starting with __ and the normal name is an alias.  */
14232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14233 choke me
14234 #else
14235 char (*f) () = $ac_func;
14236 #endif
14237 #ifdef __cplusplus
14238 }
14239 #endif
14240
14241 int
14242 main ()
14243 {
14244 return f != $ac_func;
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext conftest$ac_exeext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251   (eval $ac_link) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } &&
14255          { ac_try='test -s conftest$ac_exeext'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261   eval "$as_ac_var=yes"
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 eval "$as_ac_var=no"
14267 fi
14268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14269 fi
14270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14272 if test `eval echo '${'$as_ac_var'}'` = yes; then
14273   cat >>confdefs.h <<_ACEOF
14274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14275 _ACEOF
14276
14277 fi
14278 done
14279
14280     fi
14281   fi
14282
14283
14284
14285   echo "$as_me:$LINENO: checking for modff declaration" >&5
14286 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
14287   if test x${glibcxx_cv_func_modff_use+set} != xset; then
14288     if test "${glibcxx_cv_func_modff_use+set}" = set; then
14289   echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291
14292
14293
14294       ac_ext=cc
14295 ac_cpp='$CXXCPP $CPPFLAGS'
14296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14299
14300       cat >conftest.$ac_ext <<_ACEOF
14301 #line $LINENO "configure"
14302 /* confdefs.h.  */
14303 _ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h.  */
14307 #include <math.h>
14308 int
14309 main ()
14310 {
14311  modff(0, 0);
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 rm -f conftest.$ac_objext
14317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14318   (eval $ac_compile) 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); } &&
14322          { ac_try='test -s conftest.$ac_objext'
14323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324   (eval $ac_try) 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); }; }; then
14328   glibcxx_cv_func_modff_use=yes
14329 else
14330   echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14332
14333 glibcxx_cv_func_modff_use=no
14334 fi
14335 rm -f conftest.$ac_objext conftest.$ac_ext
14336       ac_ext=c
14337 ac_cpp='$CPP $CPPFLAGS'
14338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14341
14342
14343 fi
14344
14345   fi
14346   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
14347 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
14348
14349   if test x$glibcxx_cv_func_modff_use = x"yes"; then
14350
14351 for ac_func in modff
14352 do
14353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14354 echo "$as_me:$LINENO: checking for $ac_func" >&5
14355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14356 if eval "test \"\${$as_ac_var+set}\" = set"; then
14357   echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359   if test x$gcc_no_link = xyes; then
14360   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14362    { (exit 1); exit 1; }; }
14363 fi
14364 cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 /* confdefs.h.  */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h.  */
14371 /* System header to define __stub macros and hopefully few prototypes,
14372     which can conflict with char $ac_func (); below.
14373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14374     <limits.h> exists even on freestanding compilers.  */
14375 #ifdef __STDC__
14376 # include <limits.h>
14377 #else
14378 # include <assert.h>
14379 #endif
14380 /* Override any gcc2 internal prototype to avoid an error.  */
14381 #ifdef __cplusplus
14382 extern "C"
14383 {
14384 #endif
14385 /* We use char because int might match the return type of a gcc2
14386    builtin and then its argument prototype would still apply.  */
14387 char $ac_func ();
14388 /* The GNU C library defines this for functions which it implements
14389     to always fail with ENOSYS.  Some functions are actually named
14390     something starting with __ and the normal name is an alias.  */
14391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14392 choke me
14393 #else
14394 char (*f) () = $ac_func;
14395 #endif
14396 #ifdef __cplusplus
14397 }
14398 #endif
14399
14400 int
14401 main ()
14402 {
14403 return f != $ac_func;
14404   ;
14405   return 0;
14406 }
14407 _ACEOF
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14410   (eval $ac_link) 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); } &&
14414          { ac_try='test -s conftest$ac_exeext'
14415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416   (eval $ac_try) 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); }; }; then
14420   eval "$as_ac_var=yes"
14421 else
14422   echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425 eval "$as_ac_var=no"
14426 fi
14427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14428 fi
14429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14431 if test `eval echo '${'$as_ac_var'}'` = yes; then
14432   cat >>confdefs.h <<_ACEOF
14433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14434 _ACEOF
14435
14436 fi
14437 done
14438
14439   else
14440
14441   echo "$as_me:$LINENO: checking for _modff declaration" >&5
14442 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
14443   if test x${glibcxx_cv_func__modff_use+set} != xset; then
14444     if test "${glibcxx_cv_func__modff_use+set}" = set; then
14445   echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447
14448
14449
14450       ac_ext=cc
14451 ac_cpp='$CXXCPP $CPPFLAGS'
14452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14455
14456       cat >conftest.$ac_ext <<_ACEOF
14457 #line $LINENO "configure"
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 #include <math.h>
14464 int
14465 main ()
14466 {
14467  _modff(0, 0);
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 rm -f conftest.$ac_objext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474   (eval $ac_compile) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } &&
14478          { ac_try='test -s conftest.$ac_objext'
14479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480   (eval $ac_try) 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); }; }; then
14484   glibcxx_cv_func__modff_use=yes
14485 else
14486   echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14488
14489 glibcxx_cv_func__modff_use=no
14490 fi
14491 rm -f conftest.$ac_objext conftest.$ac_ext
14492       ac_ext=c
14493 ac_cpp='$CPP $CPPFLAGS'
14494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14497
14498
14499 fi
14500
14501   fi
14502   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
14503 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
14504
14505     if test x$glibcxx_cv_func__modff_use = x"yes"; then
14506
14507 for ac_func in _modff
14508 do
14509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14510 echo "$as_me:$LINENO: checking for $ac_func" >&5
14511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14512 if eval "test \"\${$as_ac_var+set}\" = set"; then
14513   echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515   if test x$gcc_no_link = xyes; then
14516   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14518    { (exit 1); exit 1; }; }
14519 fi
14520 cat >conftest.$ac_ext <<_ACEOF
14521 #line $LINENO "configure"
14522 /* confdefs.h.  */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h.  */
14527 /* System header to define __stub macros and hopefully few prototypes,
14528     which can conflict with char $ac_func (); below.
14529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14530     <limits.h> exists even on freestanding compilers.  */
14531 #ifdef __STDC__
14532 # include <limits.h>
14533 #else
14534 # include <assert.h>
14535 #endif
14536 /* Override any gcc2 internal prototype to avoid an error.  */
14537 #ifdef __cplusplus
14538 extern "C"
14539 {
14540 #endif
14541 /* We use char because int might match the return type of a gcc2
14542    builtin and then its argument prototype would still apply.  */
14543 char $ac_func ();
14544 /* The GNU C library defines this for functions which it implements
14545     to always fail with ENOSYS.  Some functions are actually named
14546     something starting with __ and the normal name is an alias.  */
14547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14548 choke me
14549 #else
14550 char (*f) () = $ac_func;
14551 #endif
14552 #ifdef __cplusplus
14553 }
14554 #endif
14555
14556 int
14557 main ()
14558 {
14559 return f != $ac_func;
14560   ;
14561   return 0;
14562 }
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14566   (eval $ac_link) 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); } &&
14570          { ac_try='test -s conftest$ac_exeext'
14571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572   (eval $ac_try) 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); }; }; then
14576   eval "$as_ac_var=yes"
14577 else
14578   echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14580
14581 eval "$as_ac_var=no"
14582 fi
14583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14584 fi
14585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14587 if test `eval echo '${'$as_ac_var'}'` = yes; then
14588   cat >>confdefs.h <<_ACEOF
14589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14590 _ACEOF
14591
14592 fi
14593 done
14594
14595     fi
14596   fi
14597
14598
14599
14600   echo "$as_me:$LINENO: checking for powf declaration" >&5
14601 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
14602   if test x${glibcxx_cv_func_powf_use+set} != xset; then
14603     if test "${glibcxx_cv_func_powf_use+set}" = set; then
14604   echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606
14607
14608
14609       ac_ext=cc
14610 ac_cpp='$CXXCPP $CPPFLAGS'
14611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14614
14615       cat >conftest.$ac_ext <<_ACEOF
14616 #line $LINENO "configure"
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622 #include <math.h>
14623 int
14624 main ()
14625 {
14626  powf(0, 0);
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 rm -f conftest.$ac_objext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14633   (eval $ac_compile) 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } &&
14637          { ac_try='test -s conftest.$ac_objext'
14638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639   (eval $ac_try) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; }; then
14643   glibcxx_cv_func_powf_use=yes
14644 else
14645   echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648 glibcxx_cv_func_powf_use=no
14649 fi
14650 rm -f conftest.$ac_objext conftest.$ac_ext
14651       ac_ext=c
14652 ac_cpp='$CPP $CPPFLAGS'
14653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14656
14657
14658 fi
14659
14660   fi
14661   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
14662 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
14663
14664   if test x$glibcxx_cv_func_powf_use = x"yes"; then
14665
14666 for ac_func in powf
14667 do
14668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14669 echo "$as_me:$LINENO: checking for $ac_func" >&5
14670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14671 if eval "test \"\${$as_ac_var+set}\" = set"; then
14672   echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674   if test x$gcc_no_link = xyes; then
14675   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14677    { (exit 1); exit 1; }; }
14678 fi
14679 cat >conftest.$ac_ext <<_ACEOF
14680 #line $LINENO "configure"
14681 /* confdefs.h.  */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h.  */
14686 /* System header to define __stub macros and hopefully few prototypes,
14687     which can conflict with char $ac_func (); below.
14688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14689     <limits.h> exists even on freestanding compilers.  */
14690 #ifdef __STDC__
14691 # include <limits.h>
14692 #else
14693 # include <assert.h>
14694 #endif
14695 /* Override any gcc2 internal prototype to avoid an error.  */
14696 #ifdef __cplusplus
14697 extern "C"
14698 {
14699 #endif
14700 /* We use char because int might match the return type of a gcc2
14701    builtin and then its argument prototype would still apply.  */
14702 char $ac_func ();
14703 /* The GNU C library defines this for functions which it implements
14704     to always fail with ENOSYS.  Some functions are actually named
14705     something starting with __ and the normal name is an alias.  */
14706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14707 choke me
14708 #else
14709 char (*f) () = $ac_func;
14710 #endif
14711 #ifdef __cplusplus
14712 }
14713 #endif
14714
14715 int
14716 main ()
14717 {
14718 return f != $ac_func;
14719   ;
14720   return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14725   (eval $ac_link) 2>&5
14726   ac_status=$?
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } &&
14729          { ac_try='test -s conftest$ac_exeext'
14730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731   (eval $ac_try) 2>&5
14732   ac_status=$?
14733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734   (exit $ac_status); }; }; then
14735   eval "$as_ac_var=yes"
14736 else
14737   echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14739
14740 eval "$as_ac_var=no"
14741 fi
14742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14743 fi
14744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14746 if test `eval echo '${'$as_ac_var'}'` = yes; then
14747   cat >>confdefs.h <<_ACEOF
14748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14749 _ACEOF
14750
14751 fi
14752 done
14753
14754   else
14755
14756   echo "$as_me:$LINENO: checking for _powf declaration" >&5
14757 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
14758   if test x${glibcxx_cv_func__powf_use+set} != xset; then
14759     if test "${glibcxx_cv_func__powf_use+set}" = set; then
14760   echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762
14763
14764
14765       ac_ext=cc
14766 ac_cpp='$CXXCPP $CPPFLAGS'
14767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14770
14771       cat >conftest.$ac_ext <<_ACEOF
14772 #line $LINENO "configure"
14773 /* confdefs.h.  */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h.  */
14778 #include <math.h>
14779 int
14780 main ()
14781 {
14782  _powf(0, 0);
14783   ;
14784   return 0;
14785 }
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789   (eval $ac_compile) 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); } &&
14793          { ac_try='test -s conftest.$ac_objext'
14794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795   (eval $ac_try) 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); }; }; then
14799   glibcxx_cv_func__powf_use=yes
14800 else
14801   echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14803
14804 glibcxx_cv_func__powf_use=no
14805 fi
14806 rm -f conftest.$ac_objext conftest.$ac_ext
14807       ac_ext=c
14808 ac_cpp='$CPP $CPPFLAGS'
14809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14812
14813
14814 fi
14815
14816   fi
14817   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
14818 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
14819
14820     if test x$glibcxx_cv_func__powf_use = x"yes"; then
14821
14822 for ac_func in _powf
14823 do
14824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14825 echo "$as_me:$LINENO: checking for $ac_func" >&5
14826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14827 if eval "test \"\${$as_ac_var+set}\" = set"; then
14828   echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830   if test x$gcc_no_link = xyes; then
14831   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14832 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14833    { (exit 1); exit 1; }; }
14834 fi
14835 cat >conftest.$ac_ext <<_ACEOF
14836 #line $LINENO "configure"
14837 /* confdefs.h.  */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h.  */
14842 /* System header to define __stub macros and hopefully few prototypes,
14843     which can conflict with char $ac_func (); below.
14844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14845     <limits.h> exists even on freestanding compilers.  */
14846 #ifdef __STDC__
14847 # include <limits.h>
14848 #else
14849 # include <assert.h>
14850 #endif
14851 /* Override any gcc2 internal prototype to avoid an error.  */
14852 #ifdef __cplusplus
14853 extern "C"
14854 {
14855 #endif
14856 /* We use char because int might match the return type of a gcc2
14857    builtin and then its argument prototype would still apply.  */
14858 char $ac_func ();
14859 /* The GNU C library defines this for functions which it implements
14860     to always fail with ENOSYS.  Some functions are actually named
14861     something starting with __ and the normal name is an alias.  */
14862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14863 choke me
14864 #else
14865 char (*f) () = $ac_func;
14866 #endif
14867 #ifdef __cplusplus
14868 }
14869 #endif
14870
14871 int
14872 main ()
14873 {
14874 return f != $ac_func;
14875   ;
14876   return 0;
14877 }
14878 _ACEOF
14879 rm -f conftest.$ac_objext conftest$ac_exeext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881   (eval $ac_link) 2>&5
14882   ac_status=$?
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); } &&
14885          { ac_try='test -s conftest$ac_exeext'
14886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887   (eval $ac_try) 2>&5
14888   ac_status=$?
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); }; }; then
14891   eval "$as_ac_var=yes"
14892 else
14893   echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14895
14896 eval "$as_ac_var=no"
14897 fi
14898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14899 fi
14900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14902 if test `eval echo '${'$as_ac_var'}'` = yes; then
14903   cat >>confdefs.h <<_ACEOF
14904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14905 _ACEOF
14906
14907 fi
14908 done
14909
14910     fi
14911   fi
14912
14913
14914
14915   echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
14916 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
14917   if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
14918     if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
14919   echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921
14922
14923
14924       ac_ext=cc
14925 ac_cpp='$CXXCPP $CPPFLAGS'
14926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14929
14930       cat >conftest.$ac_ext <<_ACEOF
14931 #line $LINENO "configure"
14932 /* confdefs.h.  */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h.  */
14937 #include <math.h>
14938                       #ifdef HAVE_IEEEFP_H
14939                       #include <ieeefp.h>
14940                       #endif
14941
14942 int
14943 main ()
14944 {
14945  sqrtf(0);
14946   ;
14947   return 0;
14948 }
14949 _ACEOF
14950 rm -f conftest.$ac_objext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952   (eval $ac_compile) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); } &&
14956          { ac_try='test -s conftest.$ac_objext'
14957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958   (eval $ac_try) 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); }; }; then
14962   glibcxx_cv_func_sqrtf_use=yes
14963 else
14964   echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14966
14967 glibcxx_cv_func_sqrtf_use=no
14968 fi
14969 rm -f conftest.$ac_objext conftest.$ac_ext
14970       ac_ext=c
14971 ac_cpp='$CPP $CPPFLAGS'
14972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14975
14976
14977 fi
14978
14979   fi
14980   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
14981 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
14982
14983   if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
14984
14985 for ac_func in sqrtf
14986 do
14987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14988 echo "$as_me:$LINENO: checking for $ac_func" >&5
14989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14990 if eval "test \"\${$as_ac_var+set}\" = set"; then
14991   echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993   if test x$gcc_no_link = xyes; then
14994   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14996    { (exit 1); exit 1; }; }
14997 fi
14998 cat >conftest.$ac_ext <<_ACEOF
14999 #line $LINENO "configure"
15000 /* confdefs.h.  */
15001 _ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h.  */
15005 /* System header to define __stub macros and hopefully few prototypes,
15006     which can conflict with char $ac_func (); below.
15007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15008     <limits.h> exists even on freestanding compilers.  */
15009 #ifdef __STDC__
15010 # include <limits.h>
15011 #else
15012 # include <assert.h>
15013 #endif
15014 /* Override any gcc2 internal prototype to avoid an error.  */
15015 #ifdef __cplusplus
15016 extern "C"
15017 {
15018 #endif
15019 /* We use char because int might match the return type of a gcc2
15020    builtin and then its argument prototype would still apply.  */
15021 char $ac_func ();
15022 /* The GNU C library defines this for functions which it implements
15023     to always fail with ENOSYS.  Some functions are actually named
15024     something starting with __ and the normal name is an alias.  */
15025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15026 choke me
15027 #else
15028 char (*f) () = $ac_func;
15029 #endif
15030 #ifdef __cplusplus
15031 }
15032 #endif
15033
15034 int
15035 main ()
15036 {
15037 return f != $ac_func;
15038   ;
15039   return 0;
15040 }
15041 _ACEOF
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044   (eval $ac_link) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -s conftest$ac_exeext'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; }; then
15054   eval "$as_ac_var=yes"
15055 else
15056   echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15058
15059 eval "$as_ac_var=no"
15060 fi
15061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15062 fi
15063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15065 if test `eval echo '${'$as_ac_var'}'` = yes; then
15066   cat >>confdefs.h <<_ACEOF
15067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15068 _ACEOF
15069
15070 fi
15071 done
15072
15073   else
15074
15075   echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
15076 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
15077   if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
15078     if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
15079   echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081
15082
15083
15084       ac_ext=cc
15085 ac_cpp='$CXXCPP $CPPFLAGS'
15086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15089
15090       cat >conftest.$ac_ext <<_ACEOF
15091 #line $LINENO "configure"
15092 /* confdefs.h.  */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h.  */
15097 #include <math.h>
15098                       #ifdef HAVE_IEEEFP_H
15099                       #include <ieeefp.h>
15100                       #endif
15101
15102 int
15103 main ()
15104 {
15105  _sqrtf(0);
15106   ;
15107   return 0;
15108 }
15109 _ACEOF
15110 rm -f conftest.$ac_objext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15112   (eval $ac_compile) 2>&5
15113   ac_status=$?
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); } &&
15116          { ac_try='test -s conftest.$ac_objext'
15117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118   (eval $ac_try) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }; }; then
15122   glibcxx_cv_func__sqrtf_use=yes
15123 else
15124   echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15126
15127 glibcxx_cv_func__sqrtf_use=no
15128 fi
15129 rm -f conftest.$ac_objext conftest.$ac_ext
15130       ac_ext=c
15131 ac_cpp='$CPP $CPPFLAGS'
15132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15135
15136
15137 fi
15138
15139   fi
15140   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
15141 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
15142
15143     if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
15144
15145 for ac_func in _sqrtf
15146 do
15147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15148 echo "$as_me:$LINENO: checking for $ac_func" >&5
15149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15150 if eval "test \"\${$as_ac_var+set}\" = set"; then
15151   echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153   if test x$gcc_no_link = xyes; then
15154   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15156    { (exit 1); exit 1; }; }
15157 fi
15158 cat >conftest.$ac_ext <<_ACEOF
15159 #line $LINENO "configure"
15160 /* confdefs.h.  */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h.  */
15165 /* System header to define __stub macros and hopefully few prototypes,
15166     which can conflict with char $ac_func (); below.
15167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168     <limits.h> exists even on freestanding compilers.  */
15169 #ifdef __STDC__
15170 # include <limits.h>
15171 #else
15172 # include <assert.h>
15173 #endif
15174 /* Override any gcc2 internal prototype to avoid an error.  */
15175 #ifdef __cplusplus
15176 extern "C"
15177 {
15178 #endif
15179 /* We use char because int might match the return type of a gcc2
15180    builtin and then its argument prototype would still apply.  */
15181 char $ac_func ();
15182 /* The GNU C library defines this for functions which it implements
15183     to always fail with ENOSYS.  Some functions are actually named
15184     something starting with __ and the normal name is an alias.  */
15185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15186 choke me
15187 #else
15188 char (*f) () = $ac_func;
15189 #endif
15190 #ifdef __cplusplus
15191 }
15192 #endif
15193
15194 int
15195 main ()
15196 {
15197 return f != $ac_func;
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15204   (eval $ac_link) 2>&5
15205   ac_status=$?
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); } &&
15208          { ac_try='test -s conftest$ac_exeext'
15209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210   (eval $ac_try) 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); }; }; then
15214   eval "$as_ac_var=yes"
15215 else
15216   echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15218
15219 eval "$as_ac_var=no"
15220 fi
15221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15222 fi
15223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15225 if test `eval echo '${'$as_ac_var'}'` = yes; then
15226   cat >>confdefs.h <<_ACEOF
15227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15228 _ACEOF
15229
15230 fi
15231 done
15232
15233     fi
15234   fi
15235
15236
15237
15238   echo "$as_me:$LINENO: checking for sincosf declaration" >&5
15239 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
15240   if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
15241     if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
15242   echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244
15245
15246
15247       ac_ext=cc
15248 ac_cpp='$CXXCPP $CPPFLAGS'
15249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15252
15253       cat >conftest.$ac_ext <<_ACEOF
15254 #line $LINENO "configure"
15255 /* confdefs.h.  */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h.  */
15260 #include <math.h>
15261 int
15262 main ()
15263 {
15264  sincosf(0, 0, 0);
15265   ;
15266   return 0;
15267 }
15268 _ACEOF
15269 rm -f conftest.$ac_objext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15271   (eval $ac_compile) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } &&
15275          { ac_try='test -s conftest.$ac_objext'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; }; then
15281   glibcxx_cv_func_sincosf_use=yes
15282 else
15283   echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15285
15286 glibcxx_cv_func_sincosf_use=no
15287 fi
15288 rm -f conftest.$ac_objext conftest.$ac_ext
15289       ac_ext=c
15290 ac_cpp='$CPP $CPPFLAGS'
15291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15294
15295
15296 fi
15297
15298   fi
15299   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
15300 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
15301
15302   if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15303
15304 for ac_func in sincosf
15305 do
15306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15307 echo "$as_me:$LINENO: checking for $ac_func" >&5
15308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15309 if eval "test \"\${$as_ac_var+set}\" = set"; then
15310   echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312   if test x$gcc_no_link = xyes; then
15313   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15314 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15315    { (exit 1); exit 1; }; }
15316 fi
15317 cat >conftest.$ac_ext <<_ACEOF
15318 #line $LINENO "configure"
15319 /* confdefs.h.  */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h.  */
15324 /* System header to define __stub macros and hopefully few prototypes,
15325     which can conflict with char $ac_func (); below.
15326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15327     <limits.h> exists even on freestanding compilers.  */
15328 #ifdef __STDC__
15329 # include <limits.h>
15330 #else
15331 # include <assert.h>
15332 #endif
15333 /* Override any gcc2 internal prototype to avoid an error.  */
15334 #ifdef __cplusplus
15335 extern "C"
15336 {
15337 #endif
15338 /* We use char because int might match the return type of a gcc2
15339    builtin and then its argument prototype would still apply.  */
15340 char $ac_func ();
15341 /* The GNU C library defines this for functions which it implements
15342     to always fail with ENOSYS.  Some functions are actually named
15343     something starting with __ and the normal name is an alias.  */
15344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15345 choke me
15346 #else
15347 char (*f) () = $ac_func;
15348 #endif
15349 #ifdef __cplusplus
15350 }
15351 #endif
15352
15353 int
15354 main ()
15355 {
15356 return f != $ac_func;
15357   ;
15358   return 0;
15359 }
15360 _ACEOF
15361 rm -f conftest.$ac_objext conftest$ac_exeext
15362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15363   (eval $ac_link) 2>&5
15364   ac_status=$?
15365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366   (exit $ac_status); } &&
15367          { ac_try='test -s conftest$ac_exeext'
15368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369   (eval $ac_try) 2>&5
15370   ac_status=$?
15371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372   (exit $ac_status); }; }; then
15373   eval "$as_ac_var=yes"
15374 else
15375   echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15377
15378 eval "$as_ac_var=no"
15379 fi
15380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15381 fi
15382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15384 if test `eval echo '${'$as_ac_var'}'` = yes; then
15385   cat >>confdefs.h <<_ACEOF
15386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15387 _ACEOF
15388
15389 fi
15390 done
15391
15392   else
15393
15394   echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
15395 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
15396   if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15397     if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
15398   echo $ECHO_N "(cached) $ECHO_C" >&6
15399 else
15400
15401
15402
15403       ac_ext=cc
15404 ac_cpp='$CXXCPP $CPPFLAGS'
15405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15408
15409       cat >conftest.$ac_ext <<_ACEOF
15410 #line $LINENO "configure"
15411 /* confdefs.h.  */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h.  */
15416 #include <math.h>
15417 int
15418 main ()
15419 {
15420  _sincosf(0, 0, 0);
15421   ;
15422   return 0;
15423 }
15424 _ACEOF
15425 rm -f conftest.$ac_objext
15426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15427   (eval $ac_compile) 2>&5
15428   ac_status=$?
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); } &&
15431          { ac_try='test -s conftest.$ac_objext'
15432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433   (eval $ac_try) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); }; }; then
15437   glibcxx_cv_func__sincosf_use=yes
15438 else
15439   echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 glibcxx_cv_func__sincosf_use=no
15443 fi
15444 rm -f conftest.$ac_objext conftest.$ac_ext
15445       ac_ext=c
15446 ac_cpp='$CPP $CPPFLAGS'
15447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15450
15451
15452 fi
15453
15454   fi
15455   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
15456 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
15457
15458     if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15459
15460 for ac_func in _sincosf
15461 do
15462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15463 echo "$as_me:$LINENO: checking for $ac_func" >&5
15464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15465 if eval "test \"\${$as_ac_var+set}\" = set"; then
15466   echo $ECHO_N "(cached) $ECHO_C" >&6
15467 else
15468   if test x$gcc_no_link = xyes; then
15469   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15471    { (exit 1); exit 1; }; }
15472 fi
15473 cat >conftest.$ac_ext <<_ACEOF
15474 #line $LINENO "configure"
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480 /* System header to define __stub macros and hopefully few prototypes,
15481     which can conflict with char $ac_func (); below.
15482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15483     <limits.h> exists even on freestanding compilers.  */
15484 #ifdef __STDC__
15485 # include <limits.h>
15486 #else
15487 # include <assert.h>
15488 #endif
15489 /* Override any gcc2 internal prototype to avoid an error.  */
15490 #ifdef __cplusplus
15491 extern "C"
15492 {
15493 #endif
15494 /* We use char because int might match the return type of a gcc2
15495    builtin and then its argument prototype would still apply.  */
15496 char $ac_func ();
15497 /* The GNU C library defines this for functions which it implements
15498     to always fail with ENOSYS.  Some functions are actually named
15499     something starting with __ and the normal name is an alias.  */
15500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15501 choke me
15502 #else
15503 char (*f) () = $ac_func;
15504 #endif
15505 #ifdef __cplusplus
15506 }
15507 #endif
15508
15509 int
15510 main ()
15511 {
15512 return f != $ac_func;
15513   ;
15514   return 0;
15515 }
15516 _ACEOF
15517 rm -f conftest.$ac_objext conftest$ac_exeext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519   (eval $ac_link) 2>&5
15520   ac_status=$?
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); } &&
15523          { ac_try='test -s conftest$ac_exeext'
15524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525   (eval $ac_try) 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); }; }; then
15529   eval "$as_ac_var=yes"
15530 else
15531   echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534 eval "$as_ac_var=no"
15535 fi
15536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15537 fi
15538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15540 if test `eval echo '${'$as_ac_var'}'` = yes; then
15541   cat >>confdefs.h <<_ACEOF
15542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15543 _ACEOF
15544
15545 fi
15546 done
15547
15548     fi
15549   fi
15550
15551
15552
15553   echo "$as_me:$LINENO: checking for finitef declaration" >&5
15554 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
15555   if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15556     if test "${glibcxx_cv_func_finitef_use+set}" = set; then
15557   echo $ECHO_N "(cached) $ECHO_C" >&6
15558 else
15559
15560
15561
15562       ac_ext=cc
15563 ac_cpp='$CXXCPP $CPPFLAGS'
15564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15567
15568       cat >conftest.$ac_ext <<_ACEOF
15569 #line $LINENO "configure"
15570 /* confdefs.h.  */
15571 _ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h.  */
15575 #include <math.h>
15576                       #ifdef HAVE_IEEEFP_H
15577                       #include <ieeefp.h>
15578                       #endif
15579
15580 int
15581 main ()
15582 {
15583  finitef(0);
15584   ;
15585   return 0;
15586 }
15587 _ACEOF
15588 rm -f conftest.$ac_objext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15590   (eval $ac_compile) 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); } &&
15594          { ac_try='test -s conftest.$ac_objext'
15595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596   (eval $ac_try) 2>&5
15597   ac_status=$?
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); }; }; then
15600   glibcxx_cv_func_finitef_use=yes
15601 else
15602   echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15604
15605 glibcxx_cv_func_finitef_use=no
15606 fi
15607 rm -f conftest.$ac_objext conftest.$ac_ext
15608       ac_ext=c
15609 ac_cpp='$CPP $CPPFLAGS'
15610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15613
15614
15615 fi
15616
15617   fi
15618   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
15619 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
15620
15621   if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15622
15623 for ac_func in finitef
15624 do
15625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15626 echo "$as_me:$LINENO: checking for $ac_func" >&5
15627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15628 if eval "test \"\${$as_ac_var+set}\" = set"; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631   if test x$gcc_no_link = xyes; then
15632   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15634    { (exit 1); exit 1; }; }
15635 fi
15636 cat >conftest.$ac_ext <<_ACEOF
15637 #line $LINENO "configure"
15638 /* confdefs.h.  */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h.  */
15643 /* System header to define __stub macros and hopefully few prototypes,
15644     which can conflict with char $ac_func (); below.
15645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15646     <limits.h> exists even on freestanding compilers.  */
15647 #ifdef __STDC__
15648 # include <limits.h>
15649 #else
15650 # include <assert.h>
15651 #endif
15652 /* Override any gcc2 internal prototype to avoid an error.  */
15653 #ifdef __cplusplus
15654 extern "C"
15655 {
15656 #endif
15657 /* We use char because int might match the return type of a gcc2
15658    builtin and then its argument prototype would still apply.  */
15659 char $ac_func ();
15660 /* The GNU C library defines this for functions which it implements
15661     to always fail with ENOSYS.  Some functions are actually named
15662     something starting with __ and the normal name is an alias.  */
15663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15664 choke me
15665 #else
15666 char (*f) () = $ac_func;
15667 #endif
15668 #ifdef __cplusplus
15669 }
15670 #endif
15671
15672 int
15673 main ()
15674 {
15675 return f != $ac_func;
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682   (eval $ac_link) 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); } &&
15686          { ac_try='test -s conftest$ac_exeext'
15687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688   (eval $ac_try) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; }; then
15692   eval "$as_ac_var=yes"
15693 else
15694   echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697 eval "$as_ac_var=no"
15698 fi
15699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15700 fi
15701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15703 if test `eval echo '${'$as_ac_var'}'` = yes; then
15704   cat >>confdefs.h <<_ACEOF
15705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15706 _ACEOF
15707
15708 fi
15709 done
15710
15711   else
15712
15713   echo "$as_me:$LINENO: checking for _finitef declaration" >&5
15714 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
15715   if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15716     if test "${glibcxx_cv_func__finitef_use+set}" = set; then
15717   echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719
15720
15721
15722       ac_ext=cc
15723 ac_cpp='$CXXCPP $CPPFLAGS'
15724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15727
15728       cat >conftest.$ac_ext <<_ACEOF
15729 #line $LINENO "configure"
15730 /* confdefs.h.  */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h.  */
15735 #include <math.h>
15736                       #ifdef HAVE_IEEEFP_H
15737                       #include <ieeefp.h>
15738                       #endif
15739
15740 int
15741 main ()
15742 {
15743  _finitef(0);
15744   ;
15745   return 0;
15746 }
15747 _ACEOF
15748 rm -f conftest.$ac_objext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15750   (eval $ac_compile) 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); } &&
15754          { ac_try='test -s conftest.$ac_objext'
15755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756   (eval $ac_try) 2>&5
15757   ac_status=$?
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); }; }; then
15760   glibcxx_cv_func__finitef_use=yes
15761 else
15762   echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15764
15765 glibcxx_cv_func__finitef_use=no
15766 fi
15767 rm -f conftest.$ac_objext conftest.$ac_ext
15768       ac_ext=c
15769 ac_cpp='$CPP $CPPFLAGS'
15770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15773
15774
15775 fi
15776
15777   fi
15778   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
15779 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
15780
15781     if test x$glibcxx_cv_func__finitef_use = x"yes"; then
15782
15783 for ac_func in _finitef
15784 do
15785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15786 echo "$as_me:$LINENO: checking for $ac_func" >&5
15787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15788 if eval "test \"\${$as_ac_var+set}\" = set"; then
15789   echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791   if test x$gcc_no_link = xyes; then
15792   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15794    { (exit 1); exit 1; }; }
15795 fi
15796 cat >conftest.$ac_ext <<_ACEOF
15797 #line $LINENO "configure"
15798 /* confdefs.h.  */
15799 _ACEOF
15800 cat confdefs.h >>conftest.$ac_ext
15801 cat >>conftest.$ac_ext <<_ACEOF
15802 /* end confdefs.h.  */
15803 /* System header to define __stub macros and hopefully few prototypes,
15804     which can conflict with char $ac_func (); below.
15805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15806     <limits.h> exists even on freestanding compilers.  */
15807 #ifdef __STDC__
15808 # include <limits.h>
15809 #else
15810 # include <assert.h>
15811 #endif
15812 /* Override any gcc2 internal prototype to avoid an error.  */
15813 #ifdef __cplusplus
15814 extern "C"
15815 {
15816 #endif
15817 /* We use char because int might match the return type of a gcc2
15818    builtin and then its argument prototype would still apply.  */
15819 char $ac_func ();
15820 /* The GNU C library defines this for functions which it implements
15821     to always fail with ENOSYS.  Some functions are actually named
15822     something starting with __ and the normal name is an alias.  */
15823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15824 choke me
15825 #else
15826 char (*f) () = $ac_func;
15827 #endif
15828 #ifdef __cplusplus
15829 }
15830 #endif
15831
15832 int
15833 main ()
15834 {
15835 return f != $ac_func;
15836   ;
15837   return 0;
15838 }
15839 _ACEOF
15840 rm -f conftest.$ac_objext conftest$ac_exeext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15842   (eval $ac_link) 2>&5
15843   ac_status=$?
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); } &&
15846          { ac_try='test -s conftest$ac_exeext'
15847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848   (eval $ac_try) 2>&5
15849   ac_status=$?
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); }; }; then
15852   eval "$as_ac_var=yes"
15853 else
15854   echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15856
15857 eval "$as_ac_var=no"
15858 fi
15859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15860 fi
15861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15863 if test `eval echo '${'$as_ac_var'}'` = yes; then
15864   cat >>confdefs.h <<_ACEOF
15865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15866 _ACEOF
15867
15868 fi
15869 done
15870
15871     fi
15872   fi
15873
15874
15875
15876   echo "$as_me:$LINENO: checking for long double trig functions" >&5
15877 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
15878   if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
15879   echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881
15882
15883
15884     ac_ext=cc
15885 ac_cpp='$CXXCPP $CPPFLAGS'
15886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15889
15890     cat >conftest.$ac_ext <<_ACEOF
15891 #line $LINENO "configure"
15892 /* confdefs.h.  */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h.  */
15897 #include <math.h>
15898 int
15899 main ()
15900 {
15901  `for x in acosl asinl atanl \
15902                                           cosl sinl tanl \
15903                                           coshl sinhl tanhl; do echo "$x (0);"; done`
15904   ;
15905   return 0;
15906 }
15907 _ACEOF
15908 rm -f conftest.$ac_objext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910   (eval $ac_compile) 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); } &&
15914          { ac_try='test -s conftest.$ac_objext'
15915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916   (eval $ac_try) 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); }; }; then
15920   glibcxx_cv_func_long_double_trig_use=yes
15921 else
15922   echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924
15925 glibcxx_cv_func_long_double_trig_use=no
15926 fi
15927 rm -f conftest.$ac_objext conftest.$ac_ext
15928     ac_ext=c
15929 ac_cpp='$CPP $CPPFLAGS'
15930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15933
15934 fi
15935
15936   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
15937 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
15938   if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948 for ac_func in acosl asinl atanl \
15949                                           cosl sinl tanl \
15950                                           coshl sinhl tanhl
15951 do
15952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15953 echo "$as_me:$LINENO: checking for $ac_func" >&5
15954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15955 if eval "test \"\${$as_ac_var+set}\" = set"; then
15956   echo $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958   if test x$gcc_no_link = xyes; then
15959   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15961    { (exit 1); exit 1; }; }
15962 fi
15963 cat >conftest.$ac_ext <<_ACEOF
15964 #line $LINENO "configure"
15965 /* confdefs.h.  */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h.  */
15970 /* System header to define __stub macros and hopefully few prototypes,
15971     which can conflict with char $ac_func (); below.
15972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15973     <limits.h> exists even on freestanding compilers.  */
15974 #ifdef __STDC__
15975 # include <limits.h>
15976 #else
15977 # include <assert.h>
15978 #endif
15979 /* Override any gcc2 internal prototype to avoid an error.  */
15980 #ifdef __cplusplus
15981 extern "C"
15982 {
15983 #endif
15984 /* We use char because int might match the return type of a gcc2
15985    builtin and then its argument prototype would still apply.  */
15986 char $ac_func ();
15987 /* The GNU C library defines this for functions which it implements
15988     to always fail with ENOSYS.  Some functions are actually named
15989     something starting with __ and the normal name is an alias.  */
15990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15991 choke me
15992 #else
15993 char (*f) () = $ac_func;
15994 #endif
15995 #ifdef __cplusplus
15996 }
15997 #endif
15998
15999 int
16000 main ()
16001 {
16002 return f != $ac_func;
16003   ;
16004   return 0;
16005 }
16006 _ACEOF
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16009   (eval $ac_link) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } &&
16013          { ac_try='test -s conftest$ac_exeext'
16014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015   (eval $ac_try) 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; }; then
16019   eval "$as_ac_var=yes"
16020 else
16021   echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 eval "$as_ac_var=no"
16025 fi
16026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16027 fi
16028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16030 if test `eval echo '${'$as_ac_var'}'` = yes; then
16031   cat >>confdefs.h <<_ACEOF
16032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16033 _ACEOF
16034
16035 fi
16036 done
16037
16038   fi
16039
16040
16041   echo "$as_me:$LINENO: checking for long double round functions" >&5
16042 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
16043   if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
16044   echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046
16047
16048
16049     ac_ext=cc
16050 ac_cpp='$CXXCPP $CPPFLAGS'
16051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16054
16055     cat >conftest.$ac_ext <<_ACEOF
16056 #line $LINENO "configure"
16057 /* confdefs.h.  */
16058 _ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h.  */
16062 #include <math.h>
16063 int
16064 main ()
16065 {
16066  `for x in ceill floorl; do echo "$x (0);"; done`
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16073   (eval $ac_compile) 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); } &&
16077          { ac_try='test -s conftest.$ac_objext'
16078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079   (eval $ac_try) 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; }; then
16083   glibcxx_cv_func_long_double_round_use=yes
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 glibcxx_cv_func_long_double_round_use=no
16089 fi
16090 rm -f conftest.$ac_objext conftest.$ac_ext
16091     ac_ext=c
16092 ac_cpp='$CPP $CPPFLAGS'
16093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16096
16097 fi
16098
16099   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
16100 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
16101   if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
16102
16103
16104 for ac_func in ceill floorl
16105 do
16106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16107 echo "$as_me:$LINENO: checking for $ac_func" >&5
16108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16109 if eval "test \"\${$as_ac_var+set}\" = set"; then
16110   echo $ECHO_N "(cached) $ECHO_C" >&6
16111 else
16112   if test x$gcc_no_link = xyes; then
16113   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16115    { (exit 1); exit 1; }; }
16116 fi
16117 cat >conftest.$ac_ext <<_ACEOF
16118 #line $LINENO "configure"
16119 /* confdefs.h.  */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h.  */
16124 /* System header to define __stub macros and hopefully few prototypes,
16125     which can conflict with char $ac_func (); below.
16126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16127     <limits.h> exists even on freestanding compilers.  */
16128 #ifdef __STDC__
16129 # include <limits.h>
16130 #else
16131 # include <assert.h>
16132 #endif
16133 /* Override any gcc2 internal prototype to avoid an error.  */
16134 #ifdef __cplusplus
16135 extern "C"
16136 {
16137 #endif
16138 /* We use char because int might match the return type of a gcc2
16139    builtin and then its argument prototype would still apply.  */
16140 char $ac_func ();
16141 /* The GNU C library defines this for functions which it implements
16142     to always fail with ENOSYS.  Some functions are actually named
16143     something starting with __ and the normal name is an alias.  */
16144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16145 choke me
16146 #else
16147 char (*f) () = $ac_func;
16148 #endif
16149 #ifdef __cplusplus
16150 }
16151 #endif
16152
16153 int
16154 main ()
16155 {
16156 return f != $ac_func;
16157   ;
16158   return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest.$ac_objext conftest$ac_exeext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16163   (eval $ac_link) 2>&5
16164   ac_status=$?
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } &&
16167          { ac_try='test -s conftest$ac_exeext'
16168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169   (eval $ac_try) 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; }; then
16173   eval "$as_ac_var=yes"
16174 else
16175   echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16177
16178 eval "$as_ac_var=no"
16179 fi
16180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16181 fi
16182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16184 if test `eval echo '${'$as_ac_var'}'` = yes; then
16185   cat >>confdefs.h <<_ACEOF
16186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16187 _ACEOF
16188
16189 fi
16190 done
16191
16192   fi
16193
16194
16195
16196   echo "$as_me:$LINENO: checking for isnanl declaration" >&5
16197 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
16198   if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
16199     if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
16200   echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202
16203
16204
16205       ac_ext=cc
16206 ac_cpp='$CXXCPP $CPPFLAGS'
16207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16210
16211       cat >conftest.$ac_ext <<_ACEOF
16212 #line $LINENO "configure"
16213 /* confdefs.h.  */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h.  */
16218 #include <math.h>
16219                       #ifdef HAVE_IEEEFP_H
16220                       #include <ieeefp.h>
16221                       #endif
16222
16223 int
16224 main ()
16225 {
16226  isnanl(0);
16227   ;
16228   return 0;
16229 }
16230 _ACEOF
16231 rm -f conftest.$ac_objext
16232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16233   (eval $ac_compile) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); } &&
16237          { ac_try='test -s conftest.$ac_objext'
16238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239   (eval $ac_try) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }; }; then
16243   glibcxx_cv_func_isnanl_use=yes
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248 glibcxx_cv_func_isnanl_use=no
16249 fi
16250 rm -f conftest.$ac_objext conftest.$ac_ext
16251       ac_ext=c
16252 ac_cpp='$CPP $CPPFLAGS'
16253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16256
16257
16258 fi
16259
16260   fi
16261   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
16262 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
16263
16264   if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
16265
16266 for ac_func in isnanl
16267 do
16268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16269 echo "$as_me:$LINENO: checking for $ac_func" >&5
16270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16271 if eval "test \"\${$as_ac_var+set}\" = set"; then
16272   echo $ECHO_N "(cached) $ECHO_C" >&6
16273 else
16274   if test x$gcc_no_link = xyes; then
16275   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16276 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16277    { (exit 1); exit 1; }; }
16278 fi
16279 cat >conftest.$ac_ext <<_ACEOF
16280 #line $LINENO "configure"
16281 /* confdefs.h.  */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h.  */
16286 /* System header to define __stub macros and hopefully few prototypes,
16287     which can conflict with char $ac_func (); below.
16288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16289     <limits.h> exists even on freestanding compilers.  */
16290 #ifdef __STDC__
16291 # include <limits.h>
16292 #else
16293 # include <assert.h>
16294 #endif
16295 /* Override any gcc2 internal prototype to avoid an error.  */
16296 #ifdef __cplusplus
16297 extern "C"
16298 {
16299 #endif
16300 /* We use char because int might match the return type of a gcc2
16301    builtin and then its argument prototype would still apply.  */
16302 char $ac_func ();
16303 /* The GNU C library defines this for functions which it implements
16304     to always fail with ENOSYS.  Some functions are actually named
16305     something starting with __ and the normal name is an alias.  */
16306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16307 choke me
16308 #else
16309 char (*f) () = $ac_func;
16310 #endif
16311 #ifdef __cplusplus
16312 }
16313 #endif
16314
16315 int
16316 main ()
16317 {
16318 return f != $ac_func;
16319   ;
16320   return 0;
16321 }
16322 _ACEOF
16323 rm -f conftest.$ac_objext conftest$ac_exeext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16325   (eval $ac_link) 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } &&
16329          { ac_try='test -s conftest$ac_exeext'
16330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331   (eval $ac_try) 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; }; then
16335   eval "$as_ac_var=yes"
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 eval "$as_ac_var=no"
16341 fi
16342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16343 fi
16344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16346 if test `eval echo '${'$as_ac_var'}'` = yes; then
16347   cat >>confdefs.h <<_ACEOF
16348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16349 _ACEOF
16350
16351 fi
16352 done
16353
16354   else
16355
16356   echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
16357 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
16358   if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16359     if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
16360   echo $ECHO_N "(cached) $ECHO_C" >&6
16361 else
16362
16363
16364
16365       ac_ext=cc
16366 ac_cpp='$CXXCPP $CPPFLAGS'
16367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16370
16371       cat >conftest.$ac_ext <<_ACEOF
16372 #line $LINENO "configure"
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 #include <math.h>
16379                       #ifdef HAVE_IEEEFP_H
16380                       #include <ieeefp.h>
16381                       #endif
16382
16383 int
16384 main ()
16385 {
16386  _isnanl(0);
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393   (eval $ac_compile) 2>&5
16394   ac_status=$?
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); } &&
16397          { ac_try='test -s conftest.$ac_objext'
16398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399   (eval $ac_try) 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; }; then
16403   glibcxx_cv_func__isnanl_use=yes
16404 else
16405   echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408 glibcxx_cv_func__isnanl_use=no
16409 fi
16410 rm -f conftest.$ac_objext conftest.$ac_ext
16411       ac_ext=c
16412 ac_cpp='$CPP $CPPFLAGS'
16413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16416
16417
16418 fi
16419
16420   fi
16421   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
16422 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
16423
16424     if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16425
16426 for ac_func in _isnanl
16427 do
16428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16429 echo "$as_me:$LINENO: checking for $ac_func" >&5
16430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16431 if eval "test \"\${$as_ac_var+set}\" = set"; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   if test x$gcc_no_link = xyes; then
16435   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16436 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16437    { (exit 1); exit 1; }; }
16438 fi
16439 cat >conftest.$ac_ext <<_ACEOF
16440 #line $LINENO "configure"
16441 /* confdefs.h.  */
16442 _ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h.  */
16446 /* System header to define __stub macros and hopefully few prototypes,
16447     which can conflict with char $ac_func (); below.
16448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16449     <limits.h> exists even on freestanding compilers.  */
16450 #ifdef __STDC__
16451 # include <limits.h>
16452 #else
16453 # include <assert.h>
16454 #endif
16455 /* Override any gcc2 internal prototype to avoid an error.  */
16456 #ifdef __cplusplus
16457 extern "C"
16458 {
16459 #endif
16460 /* We use char because int might match the return type of a gcc2
16461    builtin and then its argument prototype would still apply.  */
16462 char $ac_func ();
16463 /* The GNU C library defines this for functions which it implements
16464     to always fail with ENOSYS.  Some functions are actually named
16465     something starting with __ and the normal name is an alias.  */
16466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16467 choke me
16468 #else
16469 char (*f) () = $ac_func;
16470 #endif
16471 #ifdef __cplusplus
16472 }
16473 #endif
16474
16475 int
16476 main ()
16477 {
16478 return f != $ac_func;
16479   ;
16480   return 0;
16481 }
16482 _ACEOF
16483 rm -f conftest.$ac_objext conftest$ac_exeext
16484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16485   (eval $ac_link) 2>&5
16486   ac_status=$?
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); } &&
16489          { ac_try='test -s conftest$ac_exeext'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; }; then
16495   eval "$as_ac_var=yes"
16496 else
16497   echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 eval "$as_ac_var=no"
16501 fi
16502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16503 fi
16504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16506 if test `eval echo '${'$as_ac_var'}'` = yes; then
16507   cat >>confdefs.h <<_ACEOF
16508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16509 _ACEOF
16510
16511 fi
16512 done
16513
16514     fi
16515   fi
16516
16517
16518
16519   echo "$as_me:$LINENO: checking for isinfl declaration" >&5
16520 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
16521   if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16522     if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525
16526
16527
16528       ac_ext=cc
16529 ac_cpp='$CXXCPP $CPPFLAGS'
16530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16533
16534       cat >conftest.$ac_ext <<_ACEOF
16535 #line $LINENO "configure"
16536 /* confdefs.h.  */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h.  */
16541 #include <math.h>
16542                       #ifdef HAVE_IEEEFP_H
16543                       #include <ieeefp.h>
16544                       #endif
16545
16546 int
16547 main ()
16548 {
16549  isinfl(0);
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 rm -f conftest.$ac_objext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16556   (eval $ac_compile) 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } &&
16560          { ac_try='test -s conftest.$ac_objext'
16561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562   (eval $ac_try) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; }; then
16566   glibcxx_cv_func_isinfl_use=yes
16567 else
16568   echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571 glibcxx_cv_func_isinfl_use=no
16572 fi
16573 rm -f conftest.$ac_objext conftest.$ac_ext
16574       ac_ext=c
16575 ac_cpp='$CPP $CPPFLAGS'
16576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16579
16580
16581 fi
16582
16583   fi
16584   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
16585 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
16586
16587   if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16588
16589 for ac_func in isinfl
16590 do
16591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16592 echo "$as_me:$LINENO: checking for $ac_func" >&5
16593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16594 if eval "test \"\${$as_ac_var+set}\" = set"; then
16595   echo $ECHO_N "(cached) $ECHO_C" >&6
16596 else
16597   if test x$gcc_no_link = xyes; then
16598   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16599 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16600    { (exit 1); exit 1; }; }
16601 fi
16602 cat >conftest.$ac_ext <<_ACEOF
16603 #line $LINENO "configure"
16604 /* confdefs.h.  */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h.  */
16609 /* System header to define __stub macros and hopefully few prototypes,
16610     which can conflict with char $ac_func (); below.
16611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16612     <limits.h> exists even on freestanding compilers.  */
16613 #ifdef __STDC__
16614 # include <limits.h>
16615 #else
16616 # include <assert.h>
16617 #endif
16618 /* Override any gcc2 internal prototype to avoid an error.  */
16619 #ifdef __cplusplus
16620 extern "C"
16621 {
16622 #endif
16623 /* We use char because int might match the return type of a gcc2
16624    builtin and then its argument prototype would still apply.  */
16625 char $ac_func ();
16626 /* The GNU C library defines this for functions which it implements
16627     to always fail with ENOSYS.  Some functions are actually named
16628     something starting with __ and the normal name is an alias.  */
16629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16630 choke me
16631 #else
16632 char (*f) () = $ac_func;
16633 #endif
16634 #ifdef __cplusplus
16635 }
16636 #endif
16637
16638 int
16639 main ()
16640 {
16641 return f != $ac_func;
16642   ;
16643   return 0;
16644 }
16645 _ACEOF
16646 rm -f conftest.$ac_objext conftest$ac_exeext
16647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16648   (eval $ac_link) 2>&5
16649   ac_status=$?
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); } &&
16652          { ac_try='test -s conftest$ac_exeext'
16653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654   (eval $ac_try) 2>&5
16655   ac_status=$?
16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); }; }; then
16658   eval "$as_ac_var=yes"
16659 else
16660   echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16662
16663 eval "$as_ac_var=no"
16664 fi
16665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16666 fi
16667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16669 if test `eval echo '${'$as_ac_var'}'` = yes; then
16670   cat >>confdefs.h <<_ACEOF
16671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16672 _ACEOF
16673
16674 fi
16675 done
16676
16677   else
16678
16679   echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
16680 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
16681   if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16682     if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685
16686
16687
16688       ac_ext=cc
16689 ac_cpp='$CXXCPP $CPPFLAGS'
16690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16693
16694       cat >conftest.$ac_ext <<_ACEOF
16695 #line $LINENO "configure"
16696 /* confdefs.h.  */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h.  */
16701 #include <math.h>
16702                       #ifdef HAVE_IEEEFP_H
16703                       #include <ieeefp.h>
16704                       #endif
16705
16706 int
16707 main ()
16708 {
16709  _isinfl(0);
16710   ;
16711   return 0;
16712 }
16713 _ACEOF
16714 rm -f conftest.$ac_objext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716   (eval $ac_compile) 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); } &&
16720          { ac_try='test -s conftest.$ac_objext'
16721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722   (eval $ac_try) 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; }; then
16726   glibcxx_cv_func__isinfl_use=yes
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 glibcxx_cv_func__isinfl_use=no
16732 fi
16733 rm -f conftest.$ac_objext conftest.$ac_ext
16734       ac_ext=c
16735 ac_cpp='$CPP $CPPFLAGS'
16736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16739
16740
16741 fi
16742
16743   fi
16744   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
16745 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
16746
16747     if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16748
16749 for ac_func in _isinfl
16750 do
16751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16752 echo "$as_me:$LINENO: checking for $ac_func" >&5
16753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16754 if eval "test \"\${$as_ac_var+set}\" = set"; then
16755   echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757   if test x$gcc_no_link = xyes; then
16758   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16759 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16760    { (exit 1); exit 1; }; }
16761 fi
16762 cat >conftest.$ac_ext <<_ACEOF
16763 #line $LINENO "configure"
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769 /* System header to define __stub macros and hopefully few prototypes,
16770     which can conflict with char $ac_func (); below.
16771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16772     <limits.h> exists even on freestanding compilers.  */
16773 #ifdef __STDC__
16774 # include <limits.h>
16775 #else
16776 # include <assert.h>
16777 #endif
16778 /* Override any gcc2 internal prototype to avoid an error.  */
16779 #ifdef __cplusplus
16780 extern "C"
16781 {
16782 #endif
16783 /* We use char because int might match the return type of a gcc2
16784    builtin and then its argument prototype would still apply.  */
16785 char $ac_func ();
16786 /* The GNU C library defines this for functions which it implements
16787     to always fail with ENOSYS.  Some functions are actually named
16788     something starting with __ and the normal name is an alias.  */
16789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16790 choke me
16791 #else
16792 char (*f) () = $ac_func;
16793 #endif
16794 #ifdef __cplusplus
16795 }
16796 #endif
16797
16798 int
16799 main ()
16800 {
16801 return f != $ac_func;
16802   ;
16803   return 0;
16804 }
16805 _ACEOF
16806 rm -f conftest.$ac_objext conftest$ac_exeext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16808   (eval $ac_link) 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } &&
16812          { ac_try='test -s conftest$ac_exeext'
16813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814   (eval $ac_try) 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); }; }; then
16818   eval "$as_ac_var=yes"
16819 else
16820   echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823 eval "$as_ac_var=no"
16824 fi
16825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16826 fi
16827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16829 if test `eval echo '${'$as_ac_var'}'` = yes; then
16830   cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16832 _ACEOF
16833
16834 fi
16835 done
16836
16837     fi
16838   fi
16839
16840
16841
16842   echo "$as_me:$LINENO: checking for copysignl declaration" >&5
16843 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
16844   if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16845     if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848
16849
16850
16851       ac_ext=cc
16852 ac_cpp='$CXXCPP $CPPFLAGS'
16853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16856
16857       cat >conftest.$ac_ext <<_ACEOF
16858 #line $LINENO "configure"
16859 /* confdefs.h.  */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h.  */
16864 #include <math.h>
16865 int
16866 main ()
16867 {
16868  copysignl(0, 0);
16869   ;
16870   return 0;
16871 }
16872 _ACEOF
16873 rm -f conftest.$ac_objext
16874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16875   (eval $ac_compile) 2>&5
16876   ac_status=$?
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } &&
16879          { ac_try='test -s conftest.$ac_objext'
16880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881   (eval $ac_try) 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; }; then
16885   glibcxx_cv_func_copysignl_use=yes
16886 else
16887   echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890 glibcxx_cv_func_copysignl_use=no
16891 fi
16892 rm -f conftest.$ac_objext conftest.$ac_ext
16893       ac_ext=c
16894 ac_cpp='$CPP $CPPFLAGS'
16895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16898
16899
16900 fi
16901
16902   fi
16903   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
16904 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
16905
16906   if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16907
16908 for ac_func in copysignl
16909 do
16910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16911 echo "$as_me:$LINENO: checking for $ac_func" >&5
16912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16913 if eval "test \"\${$as_ac_var+set}\" = set"; then
16914   echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916   if test x$gcc_no_link = xyes; then
16917   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16919    { (exit 1); exit 1; }; }
16920 fi
16921 cat >conftest.$ac_ext <<_ACEOF
16922 #line $LINENO "configure"
16923 /* confdefs.h.  */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h.  */
16928 /* System header to define __stub macros and hopefully few prototypes,
16929     which can conflict with char $ac_func (); below.
16930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931     <limits.h> exists even on freestanding compilers.  */
16932 #ifdef __STDC__
16933 # include <limits.h>
16934 #else
16935 # include <assert.h>
16936 #endif
16937 /* Override any gcc2 internal prototype to avoid an error.  */
16938 #ifdef __cplusplus
16939 extern "C"
16940 {
16941 #endif
16942 /* We use char because int might match the return type of a gcc2
16943    builtin and then its argument prototype would still apply.  */
16944 char $ac_func ();
16945 /* The GNU C library defines this for functions which it implements
16946     to always fail with ENOSYS.  Some functions are actually named
16947     something starting with __ and the normal name is an alias.  */
16948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16949 choke me
16950 #else
16951 char (*f) () = $ac_func;
16952 #endif
16953 #ifdef __cplusplus
16954 }
16955 #endif
16956
16957 int
16958 main ()
16959 {
16960 return f != $ac_func;
16961   ;
16962   return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16967   (eval $ac_link) 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); } &&
16971          { ac_try='test -s conftest$ac_exeext'
16972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973   (eval $ac_try) 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); }; }; then
16977   eval "$as_ac_var=yes"
16978 else
16979   echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16981
16982 eval "$as_ac_var=no"
16983 fi
16984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16985 fi
16986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16988 if test `eval echo '${'$as_ac_var'}'` = yes; then
16989   cat >>confdefs.h <<_ACEOF
16990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16991 _ACEOF
16992
16993 fi
16994 done
16995
16996   else
16997
16998   echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
16999 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
17000   if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
17001     if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
17002   echo $ECHO_N "(cached) $ECHO_C" >&6
17003 else
17004
17005
17006
17007       ac_ext=cc
17008 ac_cpp='$CXXCPP $CPPFLAGS'
17009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17012
17013       cat >conftest.$ac_ext <<_ACEOF
17014 #line $LINENO "configure"
17015 /* confdefs.h.  */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h.  */
17020 #include <math.h>
17021 int
17022 main ()
17023 {
17024  _copysignl(0, 0);
17025   ;
17026   return 0;
17027 }
17028 _ACEOF
17029 rm -f conftest.$ac_objext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17031   (eval $ac_compile) 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); } &&
17035          { ac_try='test -s conftest.$ac_objext'
17036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037   (eval $ac_try) 2>&5
17038   ac_status=$?
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); }; }; then
17041   glibcxx_cv_func__copysignl_use=yes
17042 else
17043   echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 glibcxx_cv_func__copysignl_use=no
17047 fi
17048 rm -f conftest.$ac_objext conftest.$ac_ext
17049       ac_ext=c
17050 ac_cpp='$CPP $CPPFLAGS'
17051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17054
17055
17056 fi
17057
17058   fi
17059   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
17060 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
17061
17062     if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
17063
17064 for ac_func in _copysignl
17065 do
17066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17067 echo "$as_me:$LINENO: checking for $ac_func" >&5
17068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17069 if eval "test \"\${$as_ac_var+set}\" = set"; then
17070   echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072   if test x$gcc_no_link = xyes; then
17073   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17075    { (exit 1); exit 1; }; }
17076 fi
17077 cat >conftest.$ac_ext <<_ACEOF
17078 #line $LINENO "configure"
17079 /* confdefs.h.  */
17080 _ACEOF
17081 cat confdefs.h >>conftest.$ac_ext
17082 cat >>conftest.$ac_ext <<_ACEOF
17083 /* end confdefs.h.  */
17084 /* System header to define __stub macros and hopefully few prototypes,
17085     which can conflict with char $ac_func (); below.
17086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17087     <limits.h> exists even on freestanding compilers.  */
17088 #ifdef __STDC__
17089 # include <limits.h>
17090 #else
17091 # include <assert.h>
17092 #endif
17093 /* Override any gcc2 internal prototype to avoid an error.  */
17094 #ifdef __cplusplus
17095 extern "C"
17096 {
17097 #endif
17098 /* We use char because int might match the return type of a gcc2
17099    builtin and then its argument prototype would still apply.  */
17100 char $ac_func ();
17101 /* The GNU C library defines this for functions which it implements
17102     to always fail with ENOSYS.  Some functions are actually named
17103     something starting with __ and the normal name is an alias.  */
17104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17105 choke me
17106 #else
17107 char (*f) () = $ac_func;
17108 #endif
17109 #ifdef __cplusplus
17110 }
17111 #endif
17112
17113 int
17114 main ()
17115 {
17116 return f != $ac_func;
17117   ;
17118   return 0;
17119 }
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17123   (eval $ac_link) 2>&5
17124   ac_status=$?
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); } &&
17127          { ac_try='test -s conftest$ac_exeext'
17128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129   (eval $ac_try) 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; }; then
17133   eval "$as_ac_var=yes"
17134 else
17135   echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17137
17138 eval "$as_ac_var=no"
17139 fi
17140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17141 fi
17142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17144 if test `eval echo '${'$as_ac_var'}'` = yes; then
17145   cat >>confdefs.h <<_ACEOF
17146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17147 _ACEOF
17148
17149 fi
17150 done
17151
17152     fi
17153   fi
17154
17155
17156
17157   echo "$as_me:$LINENO: checking for atan2l declaration" >&5
17158 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
17159   if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
17160     if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163
17164
17165
17166       ac_ext=cc
17167 ac_cpp='$CXXCPP $CPPFLAGS'
17168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17171
17172       cat >conftest.$ac_ext <<_ACEOF
17173 #line $LINENO "configure"
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179 #include <math.h>
17180 int
17181 main ()
17182 {
17183  atan2l(0, 0);
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190   (eval $ac_compile) 2>&5
17191   ac_status=$?
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } &&
17194          { ac_try='test -s conftest.$ac_objext'
17195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196   (eval $ac_try) 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; }; then
17200   glibcxx_cv_func_atan2l_use=yes
17201 else
17202   echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 glibcxx_cv_func_atan2l_use=no
17206 fi
17207 rm -f conftest.$ac_objext conftest.$ac_ext
17208       ac_ext=c
17209 ac_cpp='$CPP $CPPFLAGS'
17210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17213
17214
17215 fi
17216
17217   fi
17218   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
17219 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
17220
17221   if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
17222
17223 for ac_func in atan2l
17224 do
17225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17226 echo "$as_me:$LINENO: checking for $ac_func" >&5
17227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17228 if eval "test \"\${$as_ac_var+set}\" = set"; then
17229   echo $ECHO_N "(cached) $ECHO_C" >&6
17230 else
17231   if test x$gcc_no_link = xyes; then
17232   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17234    { (exit 1); exit 1; }; }
17235 fi
17236 cat >conftest.$ac_ext <<_ACEOF
17237 #line $LINENO "configure"
17238 /* confdefs.h.  */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h.  */
17243 /* System header to define __stub macros and hopefully few prototypes,
17244     which can conflict with char $ac_func (); below.
17245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17246     <limits.h> exists even on freestanding compilers.  */
17247 #ifdef __STDC__
17248 # include <limits.h>
17249 #else
17250 # include <assert.h>
17251 #endif
17252 /* Override any gcc2 internal prototype to avoid an error.  */
17253 #ifdef __cplusplus
17254 extern "C"
17255 {
17256 #endif
17257 /* We use char because int might match the return type of a gcc2
17258    builtin and then its argument prototype would still apply.  */
17259 char $ac_func ();
17260 /* The GNU C library defines this for functions which it implements
17261     to always fail with ENOSYS.  Some functions are actually named
17262     something starting with __ and the normal name is an alias.  */
17263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17264 choke me
17265 #else
17266 char (*f) () = $ac_func;
17267 #endif
17268 #ifdef __cplusplus
17269 }
17270 #endif
17271
17272 int
17273 main ()
17274 {
17275 return f != $ac_func;
17276   ;
17277   return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17282   (eval $ac_link) 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } &&
17286          { ac_try='test -s conftest$ac_exeext'
17287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288   (eval $ac_try) 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; }; then
17292   eval "$as_ac_var=yes"
17293 else
17294   echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 eval "$as_ac_var=no"
17298 fi
17299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17300 fi
17301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17303 if test `eval echo '${'$as_ac_var'}'` = yes; then
17304   cat >>confdefs.h <<_ACEOF
17305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17306 _ACEOF
17307
17308 fi
17309 done
17310
17311   else
17312
17313   echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
17314 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
17315   if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
17316     if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319
17320
17321
17322       ac_ext=cc
17323 ac_cpp='$CXXCPP $CPPFLAGS'
17324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17327
17328       cat >conftest.$ac_ext <<_ACEOF
17329 #line $LINENO "configure"
17330 /* confdefs.h.  */
17331 _ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h.  */
17335 #include <math.h>
17336 int
17337 main ()
17338 {
17339  _atan2l(0, 0);
17340   ;
17341   return 0;
17342 }
17343 _ACEOF
17344 rm -f conftest.$ac_objext
17345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17346   (eval $ac_compile) 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); } &&
17350          { ac_try='test -s conftest.$ac_objext'
17351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352   (eval $ac_try) 2>&5
17353   ac_status=$?
17354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); }; }; then
17356   glibcxx_cv_func__atan2l_use=yes
17357 else
17358   echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17360
17361 glibcxx_cv_func__atan2l_use=no
17362 fi
17363 rm -f conftest.$ac_objext conftest.$ac_ext
17364       ac_ext=c
17365 ac_cpp='$CPP $CPPFLAGS'
17366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17369
17370
17371 fi
17372
17373   fi
17374   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
17375 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
17376
17377     if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17378
17379 for ac_func in _atan2l
17380 do
17381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17382 echo "$as_me:$LINENO: checking for $ac_func" >&5
17383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17384 if eval "test \"\${$as_ac_var+set}\" = set"; then
17385   echo $ECHO_N "(cached) $ECHO_C" >&6
17386 else
17387   if test x$gcc_no_link = xyes; then
17388   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17389 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17390    { (exit 1); exit 1; }; }
17391 fi
17392 cat >conftest.$ac_ext <<_ACEOF
17393 #line $LINENO "configure"
17394 /* confdefs.h.  */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h.  */
17399 /* System header to define __stub macros and hopefully few prototypes,
17400     which can conflict with char $ac_func (); below.
17401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17402     <limits.h> exists even on freestanding compilers.  */
17403 #ifdef __STDC__
17404 # include <limits.h>
17405 #else
17406 # include <assert.h>
17407 #endif
17408 /* Override any gcc2 internal prototype to avoid an error.  */
17409 #ifdef __cplusplus
17410 extern "C"
17411 {
17412 #endif
17413 /* We use char because int might match the return type of a gcc2
17414    builtin and then its argument prototype would still apply.  */
17415 char $ac_func ();
17416 /* The GNU C library defines this for functions which it implements
17417     to always fail with ENOSYS.  Some functions are actually named
17418     something starting with __ and the normal name is an alias.  */
17419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17420 choke me
17421 #else
17422 char (*f) () = $ac_func;
17423 #endif
17424 #ifdef __cplusplus
17425 }
17426 #endif
17427
17428 int
17429 main ()
17430 {
17431 return f != $ac_func;
17432   ;
17433   return 0;
17434 }
17435 _ACEOF
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17438   (eval $ac_link) 2>&5
17439   ac_status=$?
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); } &&
17442          { ac_try='test -s conftest$ac_exeext'
17443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444   (eval $ac_try) 2>&5
17445   ac_status=$?
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); }; }; then
17448   eval "$as_ac_var=yes"
17449 else
17450   echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17452
17453 eval "$as_ac_var=no"
17454 fi
17455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17456 fi
17457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17459 if test `eval echo '${'$as_ac_var'}'` = yes; then
17460   cat >>confdefs.h <<_ACEOF
17461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17462 _ACEOF
17463
17464 fi
17465 done
17466
17467     fi
17468   fi
17469
17470
17471
17472   echo "$as_me:$LINENO: checking for expl declaration" >&5
17473 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
17474   if test x${glibcxx_cv_func_expl_use+set} != xset; then
17475     if test "${glibcxx_cv_func_expl_use+set}" = set; then
17476   echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478
17479
17480
17481       ac_ext=cc
17482 ac_cpp='$CXXCPP $CPPFLAGS'
17483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17486
17487       cat >conftest.$ac_ext <<_ACEOF
17488 #line $LINENO "configure"
17489 /* confdefs.h.  */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h.  */
17494 #include <math.h>
17495                       #ifdef HAVE_IEEEFP_H
17496                       #include <ieeefp.h>
17497                       #endif
17498
17499 int
17500 main ()
17501 {
17502  expl(0);
17503   ;
17504   return 0;
17505 }
17506 _ACEOF
17507 rm -f conftest.$ac_objext
17508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17509   (eval $ac_compile) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); } &&
17513          { ac_try='test -s conftest.$ac_objext'
17514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515   (eval $ac_try) 2>&5
17516   ac_status=$?
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); }; }; then
17519   glibcxx_cv_func_expl_use=yes
17520 else
17521   echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 glibcxx_cv_func_expl_use=no
17525 fi
17526 rm -f conftest.$ac_objext conftest.$ac_ext
17527       ac_ext=c
17528 ac_cpp='$CPP $CPPFLAGS'
17529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17532
17533
17534 fi
17535
17536   fi
17537   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
17538 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
17539
17540   if test x$glibcxx_cv_func_expl_use = x"yes"; then
17541
17542 for ac_func in expl
17543 do
17544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17545 echo "$as_me:$LINENO: checking for $ac_func" >&5
17546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17547 if eval "test \"\${$as_ac_var+set}\" = set"; then
17548   echo $ECHO_N "(cached) $ECHO_C" >&6
17549 else
17550   if test x$gcc_no_link = xyes; then
17551   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17552 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17553    { (exit 1); exit 1; }; }
17554 fi
17555 cat >conftest.$ac_ext <<_ACEOF
17556 #line $LINENO "configure"
17557 /* confdefs.h.  */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h.  */
17562 /* System header to define __stub macros and hopefully few prototypes,
17563     which can conflict with char $ac_func (); below.
17564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17565     <limits.h> exists even on freestanding compilers.  */
17566 #ifdef __STDC__
17567 # include <limits.h>
17568 #else
17569 # include <assert.h>
17570 #endif
17571 /* Override any gcc2 internal prototype to avoid an error.  */
17572 #ifdef __cplusplus
17573 extern "C"
17574 {
17575 #endif
17576 /* We use char because int might match the return type of a gcc2
17577    builtin and then its argument prototype would still apply.  */
17578 char $ac_func ();
17579 /* The GNU C library defines this for functions which it implements
17580     to always fail with ENOSYS.  Some functions are actually named
17581     something starting with __ and the normal name is an alias.  */
17582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17583 choke me
17584 #else
17585 char (*f) () = $ac_func;
17586 #endif
17587 #ifdef __cplusplus
17588 }
17589 #endif
17590
17591 int
17592 main ()
17593 {
17594 return f != $ac_func;
17595   ;
17596   return 0;
17597 }
17598 _ACEOF
17599 rm -f conftest.$ac_objext conftest$ac_exeext
17600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17601   (eval $ac_link) 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); } &&
17605          { ac_try='test -s conftest$ac_exeext'
17606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607   (eval $ac_try) 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); }; }; then
17611   eval "$as_ac_var=yes"
17612 else
17613   echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616 eval "$as_ac_var=no"
17617 fi
17618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17619 fi
17620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17622 if test `eval echo '${'$as_ac_var'}'` = yes; then
17623   cat >>confdefs.h <<_ACEOF
17624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17625 _ACEOF
17626
17627 fi
17628 done
17629
17630   else
17631
17632   echo "$as_me:$LINENO: checking for _expl declaration" >&5
17633 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
17634   if test x${glibcxx_cv_func__expl_use+set} != xset; then
17635     if test "${glibcxx_cv_func__expl_use+set}" = set; then
17636   echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638
17639
17640
17641       ac_ext=cc
17642 ac_cpp='$CXXCPP $CPPFLAGS'
17643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17646
17647       cat >conftest.$ac_ext <<_ACEOF
17648 #line $LINENO "configure"
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654 #include <math.h>
17655                       #ifdef HAVE_IEEEFP_H
17656                       #include <ieeefp.h>
17657                       #endif
17658
17659 int
17660 main ()
17661 {
17662  _expl(0);
17663   ;
17664   return 0;
17665 }
17666 _ACEOF
17667 rm -f conftest.$ac_objext
17668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17669   (eval $ac_compile) 2>&5
17670   ac_status=$?
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } &&
17673          { ac_try='test -s conftest.$ac_objext'
17674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675   (eval $ac_try) 2>&5
17676   ac_status=$?
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); }; }; then
17679   glibcxx_cv_func__expl_use=yes
17680 else
17681   echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 glibcxx_cv_func__expl_use=no
17685 fi
17686 rm -f conftest.$ac_objext conftest.$ac_ext
17687       ac_ext=c
17688 ac_cpp='$CPP $CPPFLAGS'
17689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17692
17693
17694 fi
17695
17696   fi
17697   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
17698 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
17699
17700     if test x$glibcxx_cv_func__expl_use = x"yes"; then
17701
17702 for ac_func in _expl
17703 do
17704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17705 echo "$as_me:$LINENO: checking for $ac_func" >&5
17706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17707 if eval "test \"\${$as_ac_var+set}\" = set"; then
17708   echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710   if test x$gcc_no_link = xyes; then
17711   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17713    { (exit 1); exit 1; }; }
17714 fi
17715 cat >conftest.$ac_ext <<_ACEOF
17716 #line $LINENO "configure"
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722 /* System header to define __stub macros and hopefully few prototypes,
17723     which can conflict with char $ac_func (); below.
17724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17725     <limits.h> exists even on freestanding compilers.  */
17726 #ifdef __STDC__
17727 # include <limits.h>
17728 #else
17729 # include <assert.h>
17730 #endif
17731 /* Override any gcc2 internal prototype to avoid an error.  */
17732 #ifdef __cplusplus
17733 extern "C"
17734 {
17735 #endif
17736 /* We use char because int might match the return type of a gcc2
17737    builtin and then its argument prototype would still apply.  */
17738 char $ac_func ();
17739 /* The GNU C library defines this for functions which it implements
17740     to always fail with ENOSYS.  Some functions are actually named
17741     something starting with __ and the normal name is an alias.  */
17742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17743 choke me
17744 #else
17745 char (*f) () = $ac_func;
17746 #endif
17747 #ifdef __cplusplus
17748 }
17749 #endif
17750
17751 int
17752 main ()
17753 {
17754 return f != $ac_func;
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761   (eval $ac_link) 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); } &&
17765          { ac_try='test -s conftest$ac_exeext'
17766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767   (eval $ac_try) 2>&5
17768   ac_status=$?
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); }; }; then
17771   eval "$as_ac_var=yes"
17772 else
17773   echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17775
17776 eval "$as_ac_var=no"
17777 fi
17778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17779 fi
17780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17782 if test `eval echo '${'$as_ac_var'}'` = yes; then
17783   cat >>confdefs.h <<_ACEOF
17784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17785 _ACEOF
17786
17787 fi
17788 done
17789
17790     fi
17791   fi
17792
17793
17794
17795   echo "$as_me:$LINENO: checking for fabsl declaration" >&5
17796 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
17797   if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17798     if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
17799   echo $ECHO_N "(cached) $ECHO_C" >&6
17800 else
17801
17802
17803
17804       ac_ext=cc
17805 ac_cpp='$CXXCPP $CPPFLAGS'
17806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17809
17810       cat >conftest.$ac_ext <<_ACEOF
17811 #line $LINENO "configure"
17812 /* confdefs.h.  */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h.  */
17817 #include <math.h>
17818                       #ifdef HAVE_IEEEFP_H
17819                       #include <ieeefp.h>
17820                       #endif
17821
17822 int
17823 main ()
17824 {
17825  fabsl(0);
17826   ;
17827   return 0;
17828 }
17829 _ACEOF
17830 rm -f conftest.$ac_objext
17831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17832   (eval $ac_compile) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); } &&
17836          { ac_try='test -s conftest.$ac_objext'
17837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838   (eval $ac_try) 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; }; then
17842   glibcxx_cv_func_fabsl_use=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847 glibcxx_cv_func_fabsl_use=no
17848 fi
17849 rm -f conftest.$ac_objext conftest.$ac_ext
17850       ac_ext=c
17851 ac_cpp='$CPP $CPPFLAGS'
17852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17855
17856
17857 fi
17858
17859   fi
17860   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
17861 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
17862
17863   if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17864
17865 for ac_func in fabsl
17866 do
17867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17868 echo "$as_me:$LINENO: checking for $ac_func" >&5
17869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17870 if eval "test \"\${$as_ac_var+set}\" = set"; then
17871   echo $ECHO_N "(cached) $ECHO_C" >&6
17872 else
17873   if test x$gcc_no_link = xyes; then
17874   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17876    { (exit 1); exit 1; }; }
17877 fi
17878 cat >conftest.$ac_ext <<_ACEOF
17879 #line $LINENO "configure"
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885 /* System header to define __stub macros and hopefully few prototypes,
17886     which can conflict with char $ac_func (); below.
17887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17888     <limits.h> exists even on freestanding compilers.  */
17889 #ifdef __STDC__
17890 # include <limits.h>
17891 #else
17892 # include <assert.h>
17893 #endif
17894 /* Override any gcc2 internal prototype to avoid an error.  */
17895 #ifdef __cplusplus
17896 extern "C"
17897 {
17898 #endif
17899 /* We use char because int might match the return type of a gcc2
17900    builtin and then its argument prototype would still apply.  */
17901 char $ac_func ();
17902 /* The GNU C library defines this for functions which it implements
17903     to always fail with ENOSYS.  Some functions are actually named
17904     something starting with __ and the normal name is an alias.  */
17905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17906 choke me
17907 #else
17908 char (*f) () = $ac_func;
17909 #endif
17910 #ifdef __cplusplus
17911 }
17912 #endif
17913
17914 int
17915 main ()
17916 {
17917 return f != $ac_func;
17918   ;
17919   return 0;
17920 }
17921 _ACEOF
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17924   (eval $ac_link) 2>&5
17925   ac_status=$?
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); } &&
17928          { ac_try='test -s conftest$ac_exeext'
17929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930   (eval $ac_try) 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; }; then
17934   eval "$as_ac_var=yes"
17935 else
17936   echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17938
17939 eval "$as_ac_var=no"
17940 fi
17941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17942 fi
17943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17945 if test `eval echo '${'$as_ac_var'}'` = yes; then
17946   cat >>confdefs.h <<_ACEOF
17947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17948 _ACEOF
17949
17950 fi
17951 done
17952
17953   else
17954
17955   echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
17956 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
17957   if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17958     if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
17959   echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961
17962
17963
17964       ac_ext=cc
17965 ac_cpp='$CXXCPP $CPPFLAGS'
17966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17969
17970       cat >conftest.$ac_ext <<_ACEOF
17971 #line $LINENO "configure"
17972 /* confdefs.h.  */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h.  */
17977 #include <math.h>
17978                       #ifdef HAVE_IEEEFP_H
17979                       #include <ieeefp.h>
17980                       #endif
17981
17982 int
17983 main ()
17984 {
17985  _fabsl(0);
17986   ;
17987   return 0;
17988 }
17989 _ACEOF
17990 rm -f conftest.$ac_objext
17991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17992   (eval $ac_compile) 2>&5
17993   ac_status=$?
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); } &&
17996          { ac_try='test -s conftest.$ac_objext'
17997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998   (eval $ac_try) 2>&5
17999   ac_status=$?
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); }; }; then
18002   glibcxx_cv_func__fabsl_use=yes
18003 else
18004   echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18006
18007 glibcxx_cv_func__fabsl_use=no
18008 fi
18009 rm -f conftest.$ac_objext conftest.$ac_ext
18010       ac_ext=c
18011 ac_cpp='$CPP $CPPFLAGS'
18012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18015
18016
18017 fi
18018
18019   fi
18020   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
18021 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
18022
18023     if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
18024
18025 for ac_func in _fabsl
18026 do
18027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18028 echo "$as_me:$LINENO: checking for $ac_func" >&5
18029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18030 if eval "test \"\${$as_ac_var+set}\" = set"; then
18031   echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033   if test x$gcc_no_link = xyes; then
18034   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18035 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18036    { (exit 1); exit 1; }; }
18037 fi
18038 cat >conftest.$ac_ext <<_ACEOF
18039 #line $LINENO "configure"
18040 /* confdefs.h.  */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h.  */
18045 /* System header to define __stub macros and hopefully few prototypes,
18046     which can conflict with char $ac_func (); below.
18047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18048     <limits.h> exists even on freestanding compilers.  */
18049 #ifdef __STDC__
18050 # include <limits.h>
18051 #else
18052 # include <assert.h>
18053 #endif
18054 /* Override any gcc2 internal prototype to avoid an error.  */
18055 #ifdef __cplusplus
18056 extern "C"
18057 {
18058 #endif
18059 /* We use char because int might match the return type of a gcc2
18060    builtin and then its argument prototype would still apply.  */
18061 char $ac_func ();
18062 /* The GNU C library defines this for functions which it implements
18063     to always fail with ENOSYS.  Some functions are actually named
18064     something starting with __ and the normal name is an alias.  */
18065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18066 choke me
18067 #else
18068 char (*f) () = $ac_func;
18069 #endif
18070 #ifdef __cplusplus
18071 }
18072 #endif
18073
18074 int
18075 main ()
18076 {
18077 return f != $ac_func;
18078   ;
18079   return 0;
18080 }
18081 _ACEOF
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084   (eval $ac_link) 2>&5
18085   ac_status=$?
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); } &&
18088          { ac_try='test -s conftest$ac_exeext'
18089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090   (eval $ac_try) 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; }; then
18094   eval "$as_ac_var=yes"
18095 else
18096   echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18098
18099 eval "$as_ac_var=no"
18100 fi
18101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18102 fi
18103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18105 if test `eval echo '${'$as_ac_var'}'` = yes; then
18106   cat >>confdefs.h <<_ACEOF
18107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18108 _ACEOF
18109
18110 fi
18111 done
18112
18113     fi
18114   fi
18115
18116
18117
18118   echo "$as_me:$LINENO: checking for fmodl declaration" >&5
18119 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
18120   if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
18121     if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
18122   echo $ECHO_N "(cached) $ECHO_C" >&6
18123 else
18124
18125
18126
18127       ac_ext=cc
18128 ac_cpp='$CXXCPP $CPPFLAGS'
18129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18132
18133       cat >conftest.$ac_ext <<_ACEOF
18134 #line $LINENO "configure"
18135 /* confdefs.h.  */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h.  */
18140 #include <math.h>
18141 int
18142 main ()
18143 {
18144  fmodl(0, 0);
18145   ;
18146   return 0;
18147 }
18148 _ACEOF
18149 rm -f conftest.$ac_objext
18150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18151   (eval $ac_compile) 2>&5
18152   ac_status=$?
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); } &&
18155          { ac_try='test -s conftest.$ac_objext'
18156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157   (eval $ac_try) 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; }; then
18161   glibcxx_cv_func_fmodl_use=yes
18162 else
18163   echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 glibcxx_cv_func_fmodl_use=no
18167 fi
18168 rm -f conftest.$ac_objext conftest.$ac_ext
18169       ac_ext=c
18170 ac_cpp='$CPP $CPPFLAGS'
18171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18174
18175
18176 fi
18177
18178   fi
18179   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
18180 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
18181
18182   if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
18183
18184 for ac_func in fmodl
18185 do
18186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18187 echo "$as_me:$LINENO: checking for $ac_func" >&5
18188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18189 if eval "test \"\${$as_ac_var+set}\" = set"; then
18190   echo $ECHO_N "(cached) $ECHO_C" >&6
18191 else
18192   if test x$gcc_no_link = xyes; then
18193   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18194 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18195    { (exit 1); exit 1; }; }
18196 fi
18197 cat >conftest.$ac_ext <<_ACEOF
18198 #line $LINENO "configure"
18199 /* confdefs.h.  */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h.  */
18204 /* System header to define __stub macros and hopefully few prototypes,
18205     which can conflict with char $ac_func (); below.
18206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18207     <limits.h> exists even on freestanding compilers.  */
18208 #ifdef __STDC__
18209 # include <limits.h>
18210 #else
18211 # include <assert.h>
18212 #endif
18213 /* Override any gcc2 internal prototype to avoid an error.  */
18214 #ifdef __cplusplus
18215 extern "C"
18216 {
18217 #endif
18218 /* We use char because int might match the return type of a gcc2
18219    builtin and then its argument prototype would still apply.  */
18220 char $ac_func ();
18221 /* The GNU C library defines this for functions which it implements
18222     to always fail with ENOSYS.  Some functions are actually named
18223     something starting with __ and the normal name is an alias.  */
18224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18225 choke me
18226 #else
18227 char (*f) () = $ac_func;
18228 #endif
18229 #ifdef __cplusplus
18230 }
18231 #endif
18232
18233 int
18234 main ()
18235 {
18236 return f != $ac_func;
18237   ;
18238   return 0;
18239 }
18240 _ACEOF
18241 rm -f conftest.$ac_objext conftest$ac_exeext
18242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18243   (eval $ac_link) 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); } &&
18247          { ac_try='test -s conftest$ac_exeext'
18248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249   (eval $ac_try) 2>&5
18250   ac_status=$?
18251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252   (exit $ac_status); }; }; then
18253   eval "$as_ac_var=yes"
18254 else
18255   echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18257
18258 eval "$as_ac_var=no"
18259 fi
18260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18261 fi
18262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18264 if test `eval echo '${'$as_ac_var'}'` = yes; then
18265   cat >>confdefs.h <<_ACEOF
18266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18267 _ACEOF
18268
18269 fi
18270 done
18271
18272   else
18273
18274   echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
18275 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
18276   if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
18277     if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280
18281
18282
18283       ac_ext=cc
18284 ac_cpp='$CXXCPP $CPPFLAGS'
18285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18288
18289       cat >conftest.$ac_ext <<_ACEOF
18290 #line $LINENO "configure"
18291 /* confdefs.h.  */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h.  */
18296 #include <math.h>
18297 int
18298 main ()
18299 {
18300  _fmodl(0, 0);
18301   ;
18302   return 0;
18303 }
18304 _ACEOF
18305 rm -f conftest.$ac_objext
18306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18307   (eval $ac_compile) 2>&5
18308   ac_status=$?
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); } &&
18311          { ac_try='test -s conftest.$ac_objext'
18312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313   (eval $ac_try) 2>&5
18314   ac_status=$?
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); }; }; then
18317   glibcxx_cv_func__fmodl_use=yes
18318 else
18319   echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18321
18322 glibcxx_cv_func__fmodl_use=no
18323 fi
18324 rm -f conftest.$ac_objext conftest.$ac_ext
18325       ac_ext=c
18326 ac_cpp='$CPP $CPPFLAGS'
18327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18330
18331
18332 fi
18333
18334   fi
18335   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
18336 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
18337
18338     if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
18339
18340 for ac_func in _fmodl
18341 do
18342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18343 echo "$as_me:$LINENO: checking for $ac_func" >&5
18344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18345 if eval "test \"\${$as_ac_var+set}\" = set"; then
18346   echo $ECHO_N "(cached) $ECHO_C" >&6
18347 else
18348   if test x$gcc_no_link = xyes; then
18349   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18351    { (exit 1); exit 1; }; }
18352 fi
18353 cat >conftest.$ac_ext <<_ACEOF
18354 #line $LINENO "configure"
18355 /* confdefs.h.  */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h.  */
18360 /* System header to define __stub macros and hopefully few prototypes,
18361     which can conflict with char $ac_func (); below.
18362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18363     <limits.h> exists even on freestanding compilers.  */
18364 #ifdef __STDC__
18365 # include <limits.h>
18366 #else
18367 # include <assert.h>
18368 #endif
18369 /* Override any gcc2 internal prototype to avoid an error.  */
18370 #ifdef __cplusplus
18371 extern "C"
18372 {
18373 #endif
18374 /* We use char because int might match the return type of a gcc2
18375    builtin and then its argument prototype would still apply.  */
18376 char $ac_func ();
18377 /* The GNU C library defines this for functions which it implements
18378     to always fail with ENOSYS.  Some functions are actually named
18379     something starting with __ and the normal name is an alias.  */
18380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18381 choke me
18382 #else
18383 char (*f) () = $ac_func;
18384 #endif
18385 #ifdef __cplusplus
18386 }
18387 #endif
18388
18389 int
18390 main ()
18391 {
18392 return f != $ac_func;
18393   ;
18394   return 0;
18395 }
18396 _ACEOF
18397 rm -f conftest.$ac_objext conftest$ac_exeext
18398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18399   (eval $ac_link) 2>&5
18400   ac_status=$?
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); } &&
18403          { ac_try='test -s conftest$ac_exeext'
18404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405   (eval $ac_try) 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); }; }; then
18409   eval "$as_ac_var=yes"
18410 else
18411   echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414 eval "$as_ac_var=no"
18415 fi
18416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18417 fi
18418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18420 if test `eval echo '${'$as_ac_var'}'` = yes; then
18421   cat >>confdefs.h <<_ACEOF
18422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18423 _ACEOF
18424
18425 fi
18426 done
18427
18428     fi
18429   fi
18430
18431
18432
18433   echo "$as_me:$LINENO: checking for frexpl declaration" >&5
18434 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
18435   if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
18436     if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
18437   echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439
18440
18441
18442       ac_ext=cc
18443 ac_cpp='$CXXCPP $CPPFLAGS'
18444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18447
18448       cat >conftest.$ac_ext <<_ACEOF
18449 #line $LINENO "configure"
18450 /* confdefs.h.  */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h.  */
18455 #include <math.h>
18456 int
18457 main ()
18458 {
18459  frexpl(0, 0);
18460   ;
18461   return 0;
18462 }
18463 _ACEOF
18464 rm -f conftest.$ac_objext
18465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18466   (eval $ac_compile) 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); } &&
18470          { ac_try='test -s conftest.$ac_objext'
18471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472   (eval $ac_try) 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }; }; then
18476   glibcxx_cv_func_frexpl_use=yes
18477 else
18478   echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18480
18481 glibcxx_cv_func_frexpl_use=no
18482 fi
18483 rm -f conftest.$ac_objext conftest.$ac_ext
18484       ac_ext=c
18485 ac_cpp='$CPP $CPPFLAGS'
18486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489
18490
18491 fi
18492
18493   fi
18494   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
18495 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
18496
18497   if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
18498
18499 for ac_func in frexpl
18500 do
18501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18502 echo "$as_me:$LINENO: checking for $ac_func" >&5
18503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18504 if eval "test \"\${$as_ac_var+set}\" = set"; then
18505   echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507   if test x$gcc_no_link = xyes; then
18508   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18510    { (exit 1); exit 1; }; }
18511 fi
18512 cat >conftest.$ac_ext <<_ACEOF
18513 #line $LINENO "configure"
18514 /* confdefs.h.  */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h.  */
18519 /* System header to define __stub macros and hopefully few prototypes,
18520     which can conflict with char $ac_func (); below.
18521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18522     <limits.h> exists even on freestanding compilers.  */
18523 #ifdef __STDC__
18524 # include <limits.h>
18525 #else
18526 # include <assert.h>
18527 #endif
18528 /* Override any gcc2 internal prototype to avoid an error.  */
18529 #ifdef __cplusplus
18530 extern "C"
18531 {
18532 #endif
18533 /* We use char because int might match the return type of a gcc2
18534    builtin and then its argument prototype would still apply.  */
18535 char $ac_func ();
18536 /* The GNU C library defines this for functions which it implements
18537     to always fail with ENOSYS.  Some functions are actually named
18538     something starting with __ and the normal name is an alias.  */
18539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18540 choke me
18541 #else
18542 char (*f) () = $ac_func;
18543 #endif
18544 #ifdef __cplusplus
18545 }
18546 #endif
18547
18548 int
18549 main ()
18550 {
18551 return f != $ac_func;
18552   ;
18553   return 0;
18554 }
18555 _ACEOF
18556 rm -f conftest.$ac_objext conftest$ac_exeext
18557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18558   (eval $ac_link) 2>&5
18559   ac_status=$?
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); } &&
18562          { ac_try='test -s conftest$ac_exeext'
18563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564   (eval $ac_try) 2>&5
18565   ac_status=$?
18566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567   (exit $ac_status); }; }; then
18568   eval "$as_ac_var=yes"
18569 else
18570   echo "$as_me: failed program was:" >&5
18571 sed 's/^/| /' conftest.$ac_ext >&5
18572
18573 eval "$as_ac_var=no"
18574 fi
18575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18576 fi
18577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18579 if test `eval echo '${'$as_ac_var'}'` = yes; then
18580   cat >>confdefs.h <<_ACEOF
18581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18582 _ACEOF
18583
18584 fi
18585 done
18586
18587   else
18588
18589   echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
18590 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
18591   if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
18592     if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
18593   echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595
18596
18597
18598       ac_ext=cc
18599 ac_cpp='$CXXCPP $CPPFLAGS'
18600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18603
18604       cat >conftest.$ac_ext <<_ACEOF
18605 #line $LINENO "configure"
18606 /* confdefs.h.  */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h.  */
18611 #include <math.h>
18612 int
18613 main ()
18614 {
18615  _frexpl(0, 0);
18616   ;
18617   return 0;
18618 }
18619 _ACEOF
18620 rm -f conftest.$ac_objext
18621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18622   (eval $ac_compile) 2>&5
18623   ac_status=$?
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); } &&
18626          { ac_try='test -s conftest.$ac_objext'
18627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628   (eval $ac_try) 2>&5
18629   ac_status=$?
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); }; }; then
18632   glibcxx_cv_func__frexpl_use=yes
18633 else
18634   echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637 glibcxx_cv_func__frexpl_use=no
18638 fi
18639 rm -f conftest.$ac_objext conftest.$ac_ext
18640       ac_ext=c
18641 ac_cpp='$CPP $CPPFLAGS'
18642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18645
18646
18647 fi
18648
18649   fi
18650   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
18651 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
18652
18653     if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
18654
18655 for ac_func in _frexpl
18656 do
18657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18658 echo "$as_me:$LINENO: checking for $ac_func" >&5
18659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18660 if eval "test \"\${$as_ac_var+set}\" = set"; then
18661   echo $ECHO_N "(cached) $ECHO_C" >&6
18662 else
18663   if test x$gcc_no_link = xyes; then
18664   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18665 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18666    { (exit 1); exit 1; }; }
18667 fi
18668 cat >conftest.$ac_ext <<_ACEOF
18669 #line $LINENO "configure"
18670 /* confdefs.h.  */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h.  */
18675 /* System header to define __stub macros and hopefully few prototypes,
18676     which can conflict with char $ac_func (); below.
18677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18678     <limits.h> exists even on freestanding compilers.  */
18679 #ifdef __STDC__
18680 # include <limits.h>
18681 #else
18682 # include <assert.h>
18683 #endif
18684 /* Override any gcc2 internal prototype to avoid an error.  */
18685 #ifdef __cplusplus
18686 extern "C"
18687 {
18688 #endif
18689 /* We use char because int might match the return type of a gcc2
18690    builtin and then its argument prototype would still apply.  */
18691 char $ac_func ();
18692 /* The GNU C library defines this for functions which it implements
18693     to always fail with ENOSYS.  Some functions are actually named
18694     something starting with __ and the normal name is an alias.  */
18695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18696 choke me
18697 #else
18698 char (*f) () = $ac_func;
18699 #endif
18700 #ifdef __cplusplus
18701 }
18702 #endif
18703
18704 int
18705 main ()
18706 {
18707 return f != $ac_func;
18708   ;
18709   return 0;
18710 }
18711 _ACEOF
18712 rm -f conftest.$ac_objext conftest$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714   (eval $ac_link) 2>&5
18715   ac_status=$?
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); } &&
18718          { ac_try='test -s conftest$ac_exeext'
18719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720   (eval $ac_try) 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; }; then
18724   eval "$as_ac_var=yes"
18725 else
18726   echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18728
18729 eval "$as_ac_var=no"
18730 fi
18731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18732 fi
18733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18735 if test `eval echo '${'$as_ac_var'}'` = yes; then
18736   cat >>confdefs.h <<_ACEOF
18737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18738 _ACEOF
18739
18740 fi
18741 done
18742
18743     fi
18744   fi
18745
18746
18747
18748   echo "$as_me:$LINENO: checking for hypotl declaration" >&5
18749 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
18750   if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18751     if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
18752   echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754
18755
18756
18757       ac_ext=cc
18758 ac_cpp='$CXXCPP $CPPFLAGS'
18759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18762
18763       cat >conftest.$ac_ext <<_ACEOF
18764 #line $LINENO "configure"
18765 /* confdefs.h.  */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h.  */
18770 #include <math.h>
18771 int
18772 main ()
18773 {
18774  hypotl(0, 0);
18775   ;
18776   return 0;
18777 }
18778 _ACEOF
18779 rm -f conftest.$ac_objext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18781   (eval $ac_compile) 2>&5
18782   ac_status=$?
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); } &&
18785          { ac_try='test -s conftest.$ac_objext'
18786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787   (eval $ac_try) 2>&5
18788   ac_status=$?
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); }; }; then
18791   glibcxx_cv_func_hypotl_use=yes
18792 else
18793   echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796 glibcxx_cv_func_hypotl_use=no
18797 fi
18798 rm -f conftest.$ac_objext conftest.$ac_ext
18799       ac_ext=c
18800 ac_cpp='$CPP $CPPFLAGS'
18801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18804
18805
18806 fi
18807
18808   fi
18809   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
18810 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
18811
18812   if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18813
18814 for ac_func in hypotl
18815 do
18816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18817 echo "$as_me:$LINENO: checking for $ac_func" >&5
18818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18819 if eval "test \"\${$as_ac_var+set}\" = set"; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   if test x$gcc_no_link = xyes; then
18823   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18825    { (exit 1); exit 1; }; }
18826 fi
18827 cat >conftest.$ac_ext <<_ACEOF
18828 #line $LINENO "configure"
18829 /* confdefs.h.  */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h.  */
18834 /* System header to define __stub macros and hopefully few prototypes,
18835     which can conflict with char $ac_func (); below.
18836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18837     <limits.h> exists even on freestanding compilers.  */
18838 #ifdef __STDC__
18839 # include <limits.h>
18840 #else
18841 # include <assert.h>
18842 #endif
18843 /* Override any gcc2 internal prototype to avoid an error.  */
18844 #ifdef __cplusplus
18845 extern "C"
18846 {
18847 #endif
18848 /* We use char because int might match the return type of a gcc2
18849    builtin and then its argument prototype would still apply.  */
18850 char $ac_func ();
18851 /* The GNU C library defines this for functions which it implements
18852     to always fail with ENOSYS.  Some functions are actually named
18853     something starting with __ and the normal name is an alias.  */
18854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18855 choke me
18856 #else
18857 char (*f) () = $ac_func;
18858 #endif
18859 #ifdef __cplusplus
18860 }
18861 #endif
18862
18863 int
18864 main ()
18865 {
18866 return f != $ac_func;
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18873   (eval $ac_link) 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); } &&
18877          { ac_try='test -s conftest$ac_exeext'
18878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879   (eval $ac_try) 2>&5
18880   ac_status=$?
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); }; }; then
18883   eval "$as_ac_var=yes"
18884 else
18885   echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888 eval "$as_ac_var=no"
18889 fi
18890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18891 fi
18892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18894 if test `eval echo '${'$as_ac_var'}'` = yes; then
18895   cat >>confdefs.h <<_ACEOF
18896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18897 _ACEOF
18898
18899 fi
18900 done
18901
18902   else
18903
18904   echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
18905 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
18906   if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18907     if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
18908   echo $ECHO_N "(cached) $ECHO_C" >&6
18909 else
18910
18911
18912
18913       ac_ext=cc
18914 ac_cpp='$CXXCPP $CPPFLAGS'
18915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18918
18919       cat >conftest.$ac_ext <<_ACEOF
18920 #line $LINENO "configure"
18921 /* confdefs.h.  */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h.  */
18926 #include <math.h>
18927 int
18928 main ()
18929 {
18930  _hypotl(0, 0);
18931   ;
18932   return 0;
18933 }
18934 _ACEOF
18935 rm -f conftest.$ac_objext
18936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18937   (eval $ac_compile) 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); } &&
18941          { ac_try='test -s conftest.$ac_objext'
18942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943   (eval $ac_try) 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); }; }; then
18947   glibcxx_cv_func__hypotl_use=yes
18948 else
18949   echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18951
18952 glibcxx_cv_func__hypotl_use=no
18953 fi
18954 rm -f conftest.$ac_objext conftest.$ac_ext
18955       ac_ext=c
18956 ac_cpp='$CPP $CPPFLAGS'
18957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18960
18961
18962 fi
18963
18964   fi
18965   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
18966 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
18967
18968     if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18969
18970 for ac_func in _hypotl
18971 do
18972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18973 echo "$as_me:$LINENO: checking for $ac_func" >&5
18974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18975 if eval "test \"\${$as_ac_var+set}\" = set"; then
18976   echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978   if test x$gcc_no_link = xyes; then
18979   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18980 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18981    { (exit 1); exit 1; }; }
18982 fi
18983 cat >conftest.$ac_ext <<_ACEOF
18984 #line $LINENO "configure"
18985 /* confdefs.h.  */
18986 _ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h.  */
18990 /* System header to define __stub macros and hopefully few prototypes,
18991     which can conflict with char $ac_func (); below.
18992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18993     <limits.h> exists even on freestanding compilers.  */
18994 #ifdef __STDC__
18995 # include <limits.h>
18996 #else
18997 # include <assert.h>
18998 #endif
18999 /* Override any gcc2 internal prototype to avoid an error.  */
19000 #ifdef __cplusplus
19001 extern "C"
19002 {
19003 #endif
19004 /* We use char because int might match the return type of a gcc2
19005    builtin and then its argument prototype would still apply.  */
19006 char $ac_func ();
19007 /* The GNU C library defines this for functions which it implements
19008     to always fail with ENOSYS.  Some functions are actually named
19009     something starting with __ and the normal name is an alias.  */
19010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19011 choke me
19012 #else
19013 char (*f) () = $ac_func;
19014 #endif
19015 #ifdef __cplusplus
19016 }
19017 #endif
19018
19019 int
19020 main ()
19021 {
19022 return f != $ac_func;
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 rm -f conftest.$ac_objext conftest$ac_exeext
19028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19029   (eval $ac_link) 2>&5
19030   ac_status=$?
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); } &&
19033          { ac_try='test -s conftest$ac_exeext'
19034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035   (eval $ac_try) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; }; then
19039   eval "$as_ac_var=yes"
19040 else
19041   echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19043
19044 eval "$as_ac_var=no"
19045 fi
19046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19047 fi
19048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19050 if test `eval echo '${'$as_ac_var'}'` = yes; then
19051   cat >>confdefs.h <<_ACEOF
19052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19053 _ACEOF
19054
19055 fi
19056 done
19057
19058     fi
19059   fi
19060
19061
19062
19063   echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
19064 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
19065   if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
19066     if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
19067   echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069
19070
19071
19072       ac_ext=cc
19073 ac_cpp='$CXXCPP $CPPFLAGS'
19074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19077
19078       cat >conftest.$ac_ext <<_ACEOF
19079 #line $LINENO "configure"
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 #include <math.h>
19086 int
19087 main ()
19088 {
19089  ldexpl(0, 0);
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19096   (eval $ac_compile) 2>&5
19097   ac_status=$?
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); } &&
19100          { ac_try='test -s conftest.$ac_objext'
19101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102   (eval $ac_try) 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; }; then
19106   glibcxx_cv_func_ldexpl_use=yes
19107 else
19108   echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19110
19111 glibcxx_cv_func_ldexpl_use=no
19112 fi
19113 rm -f conftest.$ac_objext conftest.$ac_ext
19114       ac_ext=c
19115 ac_cpp='$CPP $CPPFLAGS'
19116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19119
19120
19121 fi
19122
19123   fi
19124   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
19125 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
19126
19127   if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
19128
19129 for ac_func in ldexpl
19130 do
19131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19132 echo "$as_me:$LINENO: checking for $ac_func" >&5
19133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19134 if eval "test \"\${$as_ac_var+set}\" = set"; then
19135   echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137   if test x$gcc_no_link = xyes; then
19138   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19140    { (exit 1); exit 1; }; }
19141 fi
19142 cat >conftest.$ac_ext <<_ACEOF
19143 #line $LINENO "configure"
19144 /* confdefs.h.  */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h.  */
19149 /* System header to define __stub macros and hopefully few prototypes,
19150     which can conflict with char $ac_func (); below.
19151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19152     <limits.h> exists even on freestanding compilers.  */
19153 #ifdef __STDC__
19154 # include <limits.h>
19155 #else
19156 # include <assert.h>
19157 #endif
19158 /* Override any gcc2 internal prototype to avoid an error.  */
19159 #ifdef __cplusplus
19160 extern "C"
19161 {
19162 #endif
19163 /* We use char because int might match the return type of a gcc2
19164    builtin and then its argument prototype would still apply.  */
19165 char $ac_func ();
19166 /* The GNU C library defines this for functions which it implements
19167     to always fail with ENOSYS.  Some functions are actually named
19168     something starting with __ and the normal name is an alias.  */
19169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19170 choke me
19171 #else
19172 char (*f) () = $ac_func;
19173 #endif
19174 #ifdef __cplusplus
19175 }
19176 #endif
19177
19178 int
19179 main ()
19180 {
19181 return f != $ac_func;
19182   ;
19183   return 0;
19184 }
19185 _ACEOF
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19188   (eval $ac_link) 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); } &&
19192          { ac_try='test -s conftest$ac_exeext'
19193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194   (eval $ac_try) 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); }; }; then
19198   eval "$as_ac_var=yes"
19199 else
19200   echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202
19203 eval "$as_ac_var=no"
19204 fi
19205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19206 fi
19207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19209 if test `eval echo '${'$as_ac_var'}'` = yes; then
19210   cat >>confdefs.h <<_ACEOF
19211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19212 _ACEOF
19213
19214 fi
19215 done
19216
19217   else
19218
19219   echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
19220 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
19221   if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
19222     if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
19223   echo $ECHO_N "(cached) $ECHO_C" >&6
19224 else
19225
19226
19227
19228       ac_ext=cc
19229 ac_cpp='$CXXCPP $CPPFLAGS'
19230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19233
19234       cat >conftest.$ac_ext <<_ACEOF
19235 #line $LINENO "configure"
19236 /* confdefs.h.  */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h.  */
19241 #include <math.h>
19242 int
19243 main ()
19244 {
19245  _ldexpl(0, 0);
19246   ;
19247   return 0;
19248 }
19249 _ACEOF
19250 rm -f conftest.$ac_objext
19251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19252   (eval $ac_compile) 2>&5
19253   ac_status=$?
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); } &&
19256          { ac_try='test -s conftest.$ac_objext'
19257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258   (eval $ac_try) 2>&5
19259   ac_status=$?
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); }; }; then
19262   glibcxx_cv_func__ldexpl_use=yes
19263 else
19264   echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19266
19267 glibcxx_cv_func__ldexpl_use=no
19268 fi
19269 rm -f conftest.$ac_objext conftest.$ac_ext
19270       ac_ext=c
19271 ac_cpp='$CPP $CPPFLAGS'
19272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19275
19276
19277 fi
19278
19279   fi
19280   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
19281 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
19282
19283     if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
19284
19285 for ac_func in _ldexpl
19286 do
19287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19288 echo "$as_me:$LINENO: checking for $ac_func" >&5
19289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19290 if eval "test \"\${$as_ac_var+set}\" = set"; then
19291   echo $ECHO_N "(cached) $ECHO_C" >&6
19292 else
19293   if test x$gcc_no_link = xyes; then
19294   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19296    { (exit 1); exit 1; }; }
19297 fi
19298 cat >conftest.$ac_ext <<_ACEOF
19299 #line $LINENO "configure"
19300 /* confdefs.h.  */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h.  */
19305 /* System header to define __stub macros and hopefully few prototypes,
19306     which can conflict with char $ac_func (); below.
19307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19308     <limits.h> exists even on freestanding compilers.  */
19309 #ifdef __STDC__
19310 # include <limits.h>
19311 #else
19312 # include <assert.h>
19313 #endif
19314 /* Override any gcc2 internal prototype to avoid an error.  */
19315 #ifdef __cplusplus
19316 extern "C"
19317 {
19318 #endif
19319 /* We use char because int might match the return type of a gcc2
19320    builtin and then its argument prototype would still apply.  */
19321 char $ac_func ();
19322 /* The GNU C library defines this for functions which it implements
19323     to always fail with ENOSYS.  Some functions are actually named
19324     something starting with __ and the normal name is an alias.  */
19325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19326 choke me
19327 #else
19328 char (*f) () = $ac_func;
19329 #endif
19330 #ifdef __cplusplus
19331 }
19332 #endif
19333
19334 int
19335 main ()
19336 {
19337 return f != $ac_func;
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19344   (eval $ac_link) 2>&5
19345   ac_status=$?
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); } &&
19348          { ac_try='test -s conftest$ac_exeext'
19349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350   (eval $ac_try) 2>&5
19351   ac_status=$?
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); }; }; then
19354   eval "$as_ac_var=yes"
19355 else
19356   echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19358
19359 eval "$as_ac_var=no"
19360 fi
19361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19362 fi
19363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19365 if test `eval echo '${'$as_ac_var'}'` = yes; then
19366   cat >>confdefs.h <<_ACEOF
19367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19368 _ACEOF
19369
19370 fi
19371 done
19372
19373     fi
19374   fi
19375
19376
19377
19378   echo "$as_me:$LINENO: checking for logl declaration" >&5
19379 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
19380   if test x${glibcxx_cv_func_logl_use+set} != xset; then
19381     if test "${glibcxx_cv_func_logl_use+set}" = set; then
19382   echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384
19385
19386
19387       ac_ext=cc
19388 ac_cpp='$CXXCPP $CPPFLAGS'
19389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19392
19393       cat >conftest.$ac_ext <<_ACEOF
19394 #line $LINENO "configure"
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400 #include <math.h>
19401                       #ifdef HAVE_IEEEFP_H
19402                       #include <ieeefp.h>
19403                       #endif
19404
19405 int
19406 main ()
19407 {
19408  logl(0);
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415   (eval $ac_compile) 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } &&
19419          { ac_try='test -s conftest.$ac_objext'
19420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421   (eval $ac_try) 2>&5
19422   ac_status=$?
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); }; }; then
19425   glibcxx_cv_func_logl_use=yes
19426 else
19427   echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19429
19430 glibcxx_cv_func_logl_use=no
19431 fi
19432 rm -f conftest.$ac_objext conftest.$ac_ext
19433       ac_ext=c
19434 ac_cpp='$CPP $CPPFLAGS'
19435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19438
19439
19440 fi
19441
19442   fi
19443   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
19444 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
19445
19446   if test x$glibcxx_cv_func_logl_use = x"yes"; then
19447
19448 for ac_func in logl
19449 do
19450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19451 echo "$as_me:$LINENO: checking for $ac_func" >&5
19452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19453 if eval "test \"\${$as_ac_var+set}\" = set"; then
19454   echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456   if test x$gcc_no_link = xyes; then
19457   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19458 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19459    { (exit 1); exit 1; }; }
19460 fi
19461 cat >conftest.$ac_ext <<_ACEOF
19462 #line $LINENO "configure"
19463 /* confdefs.h.  */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h.  */
19468 /* System header to define __stub macros and hopefully few prototypes,
19469     which can conflict with char $ac_func (); below.
19470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19471     <limits.h> exists even on freestanding compilers.  */
19472 #ifdef __STDC__
19473 # include <limits.h>
19474 #else
19475 # include <assert.h>
19476 #endif
19477 /* Override any gcc2 internal prototype to avoid an error.  */
19478 #ifdef __cplusplus
19479 extern "C"
19480 {
19481 #endif
19482 /* We use char because int might match the return type of a gcc2
19483    builtin and then its argument prototype would still apply.  */
19484 char $ac_func ();
19485 /* The GNU C library defines this for functions which it implements
19486     to always fail with ENOSYS.  Some functions are actually named
19487     something starting with __ and the normal name is an alias.  */
19488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19489 choke me
19490 #else
19491 char (*f) () = $ac_func;
19492 #endif
19493 #ifdef __cplusplus
19494 }
19495 #endif
19496
19497 int
19498 main ()
19499 {
19500 return f != $ac_func;
19501   ;
19502   return 0;
19503 }
19504 _ACEOF
19505 rm -f conftest.$ac_objext conftest$ac_exeext
19506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19507   (eval $ac_link) 2>&5
19508   ac_status=$?
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); } &&
19511          { ac_try='test -s conftest$ac_exeext'
19512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513   (eval $ac_try) 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; }; then
19517   eval "$as_ac_var=yes"
19518 else
19519   echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522 eval "$as_ac_var=no"
19523 fi
19524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19525 fi
19526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19528 if test `eval echo '${'$as_ac_var'}'` = yes; then
19529   cat >>confdefs.h <<_ACEOF
19530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19531 _ACEOF
19532
19533 fi
19534 done
19535
19536   else
19537
19538   echo "$as_me:$LINENO: checking for _logl declaration" >&5
19539 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
19540   if test x${glibcxx_cv_func__logl_use+set} != xset; then
19541     if test "${glibcxx_cv_func__logl_use+set}" = set; then
19542   echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544
19545
19546
19547       ac_ext=cc
19548 ac_cpp='$CXXCPP $CPPFLAGS'
19549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19552
19553       cat >conftest.$ac_ext <<_ACEOF
19554 #line $LINENO "configure"
19555 /* confdefs.h.  */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h.  */
19560 #include <math.h>
19561                       #ifdef HAVE_IEEEFP_H
19562                       #include <ieeefp.h>
19563                       #endif
19564
19565 int
19566 main ()
19567 {
19568  _logl(0);
19569   ;
19570   return 0;
19571 }
19572 _ACEOF
19573 rm -f conftest.$ac_objext
19574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19575   (eval $ac_compile) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); } &&
19579          { ac_try='test -s conftest.$ac_objext'
19580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581   (eval $ac_try) 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; }; then
19585   glibcxx_cv_func__logl_use=yes
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590 glibcxx_cv_func__logl_use=no
19591 fi
19592 rm -f conftest.$ac_objext conftest.$ac_ext
19593       ac_ext=c
19594 ac_cpp='$CPP $CPPFLAGS'
19595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19598
19599
19600 fi
19601
19602   fi
19603   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
19604 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
19605
19606     if test x$glibcxx_cv_func__logl_use = x"yes"; then
19607
19608 for ac_func in _logl
19609 do
19610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19611 echo "$as_me:$LINENO: checking for $ac_func" >&5
19612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19613 if eval "test \"\${$as_ac_var+set}\" = set"; then
19614   echo $ECHO_N "(cached) $ECHO_C" >&6
19615 else
19616   if test x$gcc_no_link = xyes; then
19617   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19619    { (exit 1); exit 1; }; }
19620 fi
19621 cat >conftest.$ac_ext <<_ACEOF
19622 #line $LINENO "configure"
19623 /* confdefs.h.  */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h.  */
19628 /* System header to define __stub macros and hopefully few prototypes,
19629     which can conflict with char $ac_func (); below.
19630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19631     <limits.h> exists even on freestanding compilers.  */
19632 #ifdef __STDC__
19633 # include <limits.h>
19634 #else
19635 # include <assert.h>
19636 #endif
19637 /* Override any gcc2 internal prototype to avoid an error.  */
19638 #ifdef __cplusplus
19639 extern "C"
19640 {
19641 #endif
19642 /* We use char because int might match the return type of a gcc2
19643    builtin and then its argument prototype would still apply.  */
19644 char $ac_func ();
19645 /* The GNU C library defines this for functions which it implements
19646     to always fail with ENOSYS.  Some functions are actually named
19647     something starting with __ and the normal name is an alias.  */
19648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19649 choke me
19650 #else
19651 char (*f) () = $ac_func;
19652 #endif
19653 #ifdef __cplusplus
19654 }
19655 #endif
19656
19657 int
19658 main ()
19659 {
19660 return f != $ac_func;
19661   ;
19662   return 0;
19663 }
19664 _ACEOF
19665 rm -f conftest.$ac_objext conftest$ac_exeext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19667   (eval $ac_link) 2>&5
19668   ac_status=$?
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); } &&
19671          { ac_try='test -s conftest$ac_exeext'
19672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673   (eval $ac_try) 2>&5
19674   ac_status=$?
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); }; }; then
19677   eval "$as_ac_var=yes"
19678 else
19679   echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19681
19682 eval "$as_ac_var=no"
19683 fi
19684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19685 fi
19686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19688 if test `eval echo '${'$as_ac_var'}'` = yes; then
19689   cat >>confdefs.h <<_ACEOF
19690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19691 _ACEOF
19692
19693 fi
19694 done
19695
19696     fi
19697   fi
19698
19699
19700
19701   echo "$as_me:$LINENO: checking for log10l declaration" >&5
19702 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
19703   if test x${glibcxx_cv_func_log10l_use+set} != xset; then
19704     if test "${glibcxx_cv_func_log10l_use+set}" = set; then
19705   echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707
19708
19709
19710       ac_ext=cc
19711 ac_cpp='$CXXCPP $CPPFLAGS'
19712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19715
19716       cat >conftest.$ac_ext <<_ACEOF
19717 #line $LINENO "configure"
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 #include <math.h>
19724                       #ifdef HAVE_IEEEFP_H
19725                       #include <ieeefp.h>
19726                       #endif
19727
19728 int
19729 main ()
19730 {
19731  log10l(0);
19732   ;
19733   return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext
19737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19738   (eval $ac_compile) 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); } &&
19742          { ac_try='test -s conftest.$ac_objext'
19743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744   (eval $ac_try) 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); }; }; then
19748   glibcxx_cv_func_log10l_use=yes
19749 else
19750   echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753 glibcxx_cv_func_log10l_use=no
19754 fi
19755 rm -f conftest.$ac_objext conftest.$ac_ext
19756       ac_ext=c
19757 ac_cpp='$CPP $CPPFLAGS'
19758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19761
19762
19763 fi
19764
19765   fi
19766   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
19767 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
19768
19769   if test x$glibcxx_cv_func_log10l_use = x"yes"; then
19770
19771 for ac_func in log10l
19772 do
19773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19774 echo "$as_me:$LINENO: checking for $ac_func" >&5
19775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19776 if eval "test \"\${$as_ac_var+set}\" = set"; then
19777   echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779   if test x$gcc_no_link = xyes; then
19780   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19781 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19782    { (exit 1); exit 1; }; }
19783 fi
19784 cat >conftest.$ac_ext <<_ACEOF
19785 #line $LINENO "configure"
19786 /* confdefs.h.  */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h.  */
19791 /* System header to define __stub macros and hopefully few prototypes,
19792     which can conflict with char $ac_func (); below.
19793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19794     <limits.h> exists even on freestanding compilers.  */
19795 #ifdef __STDC__
19796 # include <limits.h>
19797 #else
19798 # include <assert.h>
19799 #endif
19800 /* Override any gcc2 internal prototype to avoid an error.  */
19801 #ifdef __cplusplus
19802 extern "C"
19803 {
19804 #endif
19805 /* We use char because int might match the return type of a gcc2
19806    builtin and then its argument prototype would still apply.  */
19807 char $ac_func ();
19808 /* The GNU C library defines this for functions which it implements
19809     to always fail with ENOSYS.  Some functions are actually named
19810     something starting with __ and the normal name is an alias.  */
19811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19812 choke me
19813 #else
19814 char (*f) () = $ac_func;
19815 #endif
19816 #ifdef __cplusplus
19817 }
19818 #endif
19819
19820 int
19821 main ()
19822 {
19823 return f != $ac_func;
19824   ;
19825   return 0;
19826 }
19827 _ACEOF
19828 rm -f conftest.$ac_objext conftest$ac_exeext
19829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19830   (eval $ac_link) 2>&5
19831   ac_status=$?
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); } &&
19834          { ac_try='test -s conftest$ac_exeext'
19835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836   (eval $ac_try) 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; }; then
19840   eval "$as_ac_var=yes"
19841 else
19842   echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845 eval "$as_ac_var=no"
19846 fi
19847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19848 fi
19849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19851 if test `eval echo '${'$as_ac_var'}'` = yes; then
19852   cat >>confdefs.h <<_ACEOF
19853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19854 _ACEOF
19855
19856 fi
19857 done
19858
19859   else
19860
19861   echo "$as_me:$LINENO: checking for _log10l declaration" >&5
19862 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
19863   if test x${glibcxx_cv_func__log10l_use+set} != xset; then
19864     if test "${glibcxx_cv_func__log10l_use+set}" = set; then
19865   echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867
19868
19869
19870       ac_ext=cc
19871 ac_cpp='$CXXCPP $CPPFLAGS'
19872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19875
19876       cat >conftest.$ac_ext <<_ACEOF
19877 #line $LINENO "configure"
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883 #include <math.h>
19884                       #ifdef HAVE_IEEEFP_H
19885                       #include <ieeefp.h>
19886                       #endif
19887
19888 int
19889 main ()
19890 {
19891  _log10l(0);
19892   ;
19893   return 0;
19894 }
19895 _ACEOF
19896 rm -f conftest.$ac_objext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898   (eval $ac_compile) 2>&5
19899   ac_status=$?
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); } &&
19902          { ac_try='test -s conftest.$ac_objext'
19903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904   (eval $ac_try) 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; }; then
19908   glibcxx_cv_func__log10l_use=yes
19909 else
19910   echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913 glibcxx_cv_func__log10l_use=no
19914 fi
19915 rm -f conftest.$ac_objext conftest.$ac_ext
19916       ac_ext=c
19917 ac_cpp='$CPP $CPPFLAGS'
19918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19921
19922
19923 fi
19924
19925   fi
19926   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
19927 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
19928
19929     if test x$glibcxx_cv_func__log10l_use = x"yes"; then
19930
19931 for ac_func in _log10l
19932 do
19933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19934 echo "$as_me:$LINENO: checking for $ac_func" >&5
19935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19936 if eval "test \"\${$as_ac_var+set}\" = set"; then
19937   echo $ECHO_N "(cached) $ECHO_C" >&6
19938 else
19939   if test x$gcc_no_link = xyes; then
19940   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19941 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19942    { (exit 1); exit 1; }; }
19943 fi
19944 cat >conftest.$ac_ext <<_ACEOF
19945 #line $LINENO "configure"
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951 /* System header to define __stub macros and hopefully few prototypes,
19952     which can conflict with char $ac_func (); below.
19953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19954     <limits.h> exists even on freestanding compilers.  */
19955 #ifdef __STDC__
19956 # include <limits.h>
19957 #else
19958 # include <assert.h>
19959 #endif
19960 /* Override any gcc2 internal prototype to avoid an error.  */
19961 #ifdef __cplusplus
19962 extern "C"
19963 {
19964 #endif
19965 /* We use char because int might match the return type of a gcc2
19966    builtin and then its argument prototype would still apply.  */
19967 char $ac_func ();
19968 /* The GNU C library defines this for functions which it implements
19969     to always fail with ENOSYS.  Some functions are actually named
19970     something starting with __ and the normal name is an alias.  */
19971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19972 choke me
19973 #else
19974 char (*f) () = $ac_func;
19975 #endif
19976 #ifdef __cplusplus
19977 }
19978 #endif
19979
19980 int
19981 main ()
19982 {
19983 return f != $ac_func;
19984   ;
19985   return 0;
19986 }
19987 _ACEOF
19988 rm -f conftest.$ac_objext conftest$ac_exeext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990   (eval $ac_link) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } &&
19994          { ac_try='test -s conftest$ac_exeext'
19995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996   (eval $ac_try) 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; }; then
20000   eval "$as_ac_var=yes"
20001 else
20002   echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005 eval "$as_ac_var=no"
20006 fi
20007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20008 fi
20009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20011 if test `eval echo '${'$as_ac_var'}'` = yes; then
20012   cat >>confdefs.h <<_ACEOF
20013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20014 _ACEOF
20015
20016 fi
20017 done
20018
20019     fi
20020   fi
20021
20022
20023
20024   echo "$as_me:$LINENO: checking for modfl declaration" >&5
20025 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
20026   if test x${glibcxx_cv_func_modfl_use+set} != xset; then
20027     if test "${glibcxx_cv_func_modfl_use+set}" = set; then
20028   echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030
20031
20032
20033       ac_ext=cc
20034 ac_cpp='$CXXCPP $CPPFLAGS'
20035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20038
20039       cat >conftest.$ac_ext <<_ACEOF
20040 #line $LINENO "configure"
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046 #include <math.h>
20047 int
20048 main ()
20049 {
20050  modfl(0, 0);
20051   ;
20052   return 0;
20053 }
20054 _ACEOF
20055 rm -f conftest.$ac_objext
20056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20057   (eval $ac_compile) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } &&
20061          { ac_try='test -s conftest.$ac_objext'
20062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063   (eval $ac_try) 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); }; }; then
20067   glibcxx_cv_func_modfl_use=yes
20068 else
20069   echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20071
20072 glibcxx_cv_func_modfl_use=no
20073 fi
20074 rm -f conftest.$ac_objext conftest.$ac_ext
20075       ac_ext=c
20076 ac_cpp='$CPP $CPPFLAGS'
20077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20080
20081
20082 fi
20083
20084   fi
20085   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
20086 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
20087
20088   if test x$glibcxx_cv_func_modfl_use = x"yes"; then
20089
20090 for ac_func in modfl
20091 do
20092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20093 echo "$as_me:$LINENO: checking for $ac_func" >&5
20094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20095 if eval "test \"\${$as_ac_var+set}\" = set"; then
20096   echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098   if test x$gcc_no_link = xyes; then
20099   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20100 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20101    { (exit 1); exit 1; }; }
20102 fi
20103 cat >conftest.$ac_ext <<_ACEOF
20104 #line $LINENO "configure"
20105 /* confdefs.h.  */
20106 _ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h.  */
20110 /* System header to define __stub macros and hopefully few prototypes,
20111     which can conflict with char $ac_func (); below.
20112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20113     <limits.h> exists even on freestanding compilers.  */
20114 #ifdef __STDC__
20115 # include <limits.h>
20116 #else
20117 # include <assert.h>
20118 #endif
20119 /* Override any gcc2 internal prototype to avoid an error.  */
20120 #ifdef __cplusplus
20121 extern "C"
20122 {
20123 #endif
20124 /* We use char because int might match the return type of a gcc2
20125    builtin and then its argument prototype would still apply.  */
20126 char $ac_func ();
20127 /* The GNU C library defines this for functions which it implements
20128     to always fail with ENOSYS.  Some functions are actually named
20129     something starting with __ and the normal name is an alias.  */
20130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20131 choke me
20132 #else
20133 char (*f) () = $ac_func;
20134 #endif
20135 #ifdef __cplusplus
20136 }
20137 #endif
20138
20139 int
20140 main ()
20141 {
20142 return f != $ac_func;
20143   ;
20144   return 0;
20145 }
20146 _ACEOF
20147 rm -f conftest.$ac_objext conftest$ac_exeext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20149   (eval $ac_link) 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); } &&
20153          { ac_try='test -s conftest$ac_exeext'
20154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155   (eval $ac_try) 2>&5
20156   ac_status=$?
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); }; }; then
20159   eval "$as_ac_var=yes"
20160 else
20161   echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164 eval "$as_ac_var=no"
20165 fi
20166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20167 fi
20168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20170 if test `eval echo '${'$as_ac_var'}'` = yes; then
20171   cat >>confdefs.h <<_ACEOF
20172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20173 _ACEOF
20174
20175 fi
20176 done
20177
20178   else
20179
20180   echo "$as_me:$LINENO: checking for _modfl declaration" >&5
20181 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
20182   if test x${glibcxx_cv_func__modfl_use+set} != xset; then
20183     if test "${glibcxx_cv_func__modfl_use+set}" = set; then
20184   echo $ECHO_N "(cached) $ECHO_C" >&6
20185 else
20186
20187
20188
20189       ac_ext=cc
20190 ac_cpp='$CXXCPP $CPPFLAGS'
20191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20194
20195       cat >conftest.$ac_ext <<_ACEOF
20196 #line $LINENO "configure"
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 #include <math.h>
20203 int
20204 main ()
20205 {
20206  _modfl(0, 0);
20207   ;
20208   return 0;
20209 }
20210 _ACEOF
20211 rm -f conftest.$ac_objext
20212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20213   (eval $ac_compile) 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); } &&
20217          { ac_try='test -s conftest.$ac_objext'
20218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219   (eval $ac_try) 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); }; }; then
20223   glibcxx_cv_func__modfl_use=yes
20224 else
20225   echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 glibcxx_cv_func__modfl_use=no
20229 fi
20230 rm -f conftest.$ac_objext conftest.$ac_ext
20231       ac_ext=c
20232 ac_cpp='$CPP $CPPFLAGS'
20233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20236
20237
20238 fi
20239
20240   fi
20241   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
20242 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
20243
20244     if test x$glibcxx_cv_func__modfl_use = x"yes"; then
20245
20246 for ac_func in _modfl
20247 do
20248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20249 echo "$as_me:$LINENO: checking for $ac_func" >&5
20250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20251 if eval "test \"\${$as_ac_var+set}\" = set"; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254   if test x$gcc_no_link = xyes; then
20255   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20257    { (exit 1); exit 1; }; }
20258 fi
20259 cat >conftest.$ac_ext <<_ACEOF
20260 #line $LINENO "configure"
20261 /* confdefs.h.  */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h.  */
20266 /* System header to define __stub macros and hopefully few prototypes,
20267     which can conflict with char $ac_func (); below.
20268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20269     <limits.h> exists even on freestanding compilers.  */
20270 #ifdef __STDC__
20271 # include <limits.h>
20272 #else
20273 # include <assert.h>
20274 #endif
20275 /* Override any gcc2 internal prototype to avoid an error.  */
20276 #ifdef __cplusplus
20277 extern "C"
20278 {
20279 #endif
20280 /* We use char because int might match the return type of a gcc2
20281    builtin and then its argument prototype would still apply.  */
20282 char $ac_func ();
20283 /* The GNU C library defines this for functions which it implements
20284     to always fail with ENOSYS.  Some functions are actually named
20285     something starting with __ and the normal name is an alias.  */
20286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20287 choke me
20288 #else
20289 char (*f) () = $ac_func;
20290 #endif
20291 #ifdef __cplusplus
20292 }
20293 #endif
20294
20295 int
20296 main ()
20297 {
20298 return f != $ac_func;
20299   ;
20300   return 0;
20301 }
20302 _ACEOF
20303 rm -f conftest.$ac_objext conftest$ac_exeext
20304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20305   (eval $ac_link) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } &&
20309          { ac_try='test -s conftest$ac_exeext'
20310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311   (eval $ac_try) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; }; then
20315   eval "$as_ac_var=yes"
20316 else
20317   echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 eval "$as_ac_var=no"
20321 fi
20322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20323 fi
20324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20326 if test `eval echo '${'$as_ac_var'}'` = yes; then
20327   cat >>confdefs.h <<_ACEOF
20328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20329 _ACEOF
20330
20331 fi
20332 done
20333
20334     fi
20335   fi
20336
20337
20338
20339   echo "$as_me:$LINENO: checking for powl declaration" >&5
20340 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
20341   if test x${glibcxx_cv_func_powl_use+set} != xset; then
20342     if test "${glibcxx_cv_func_powl_use+set}" = set; then
20343   echo $ECHO_N "(cached) $ECHO_C" >&6
20344 else
20345
20346
20347
20348       ac_ext=cc
20349 ac_cpp='$CXXCPP $CPPFLAGS'
20350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20353
20354       cat >conftest.$ac_ext <<_ACEOF
20355 #line $LINENO "configure"
20356 /* confdefs.h.  */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h.  */
20361 #include <math.h>
20362 int
20363 main ()
20364 {
20365  powl(0, 0);
20366   ;
20367   return 0;
20368 }
20369 _ACEOF
20370 rm -f conftest.$ac_objext
20371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372   (eval $ac_compile) 2>&5
20373   ac_status=$?
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); } &&
20376          { ac_try='test -s conftest.$ac_objext'
20377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378   (eval $ac_try) 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; }; then
20382   glibcxx_cv_func_powl_use=yes
20383 else
20384   echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387 glibcxx_cv_func_powl_use=no
20388 fi
20389 rm -f conftest.$ac_objext conftest.$ac_ext
20390       ac_ext=c
20391 ac_cpp='$CPP $CPPFLAGS'
20392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20395
20396
20397 fi
20398
20399   fi
20400   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
20401 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
20402
20403   if test x$glibcxx_cv_func_powl_use = x"yes"; then
20404
20405 for ac_func in powl
20406 do
20407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20408 echo "$as_me:$LINENO: checking for $ac_func" >&5
20409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20410 if eval "test \"\${$as_ac_var+set}\" = set"; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413   if test x$gcc_no_link = xyes; then
20414   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20416    { (exit 1); exit 1; }; }
20417 fi
20418 cat >conftest.$ac_ext <<_ACEOF
20419 #line $LINENO "configure"
20420 /* confdefs.h.  */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h.  */
20425 /* System header to define __stub macros and hopefully few prototypes,
20426     which can conflict with char $ac_func (); below.
20427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20428     <limits.h> exists even on freestanding compilers.  */
20429 #ifdef __STDC__
20430 # include <limits.h>
20431 #else
20432 # include <assert.h>
20433 #endif
20434 /* Override any gcc2 internal prototype to avoid an error.  */
20435 #ifdef __cplusplus
20436 extern "C"
20437 {
20438 #endif
20439 /* We use char because int might match the return type of a gcc2
20440    builtin and then its argument prototype would still apply.  */
20441 char $ac_func ();
20442 /* The GNU C library defines this for functions which it implements
20443     to always fail with ENOSYS.  Some functions are actually named
20444     something starting with __ and the normal name is an alias.  */
20445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20446 choke me
20447 #else
20448 char (*f) () = $ac_func;
20449 #endif
20450 #ifdef __cplusplus
20451 }
20452 #endif
20453
20454 int
20455 main ()
20456 {
20457 return f != $ac_func;
20458   ;
20459   return 0;
20460 }
20461 _ACEOF
20462 rm -f conftest.$ac_objext conftest$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464   (eval $ac_link) 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); } &&
20468          { ac_try='test -s conftest$ac_exeext'
20469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470   (eval $ac_try) 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; }; then
20474   eval "$as_ac_var=yes"
20475 else
20476   echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 eval "$as_ac_var=no"
20480 fi
20481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20482 fi
20483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20485 if test `eval echo '${'$as_ac_var'}'` = yes; then
20486   cat >>confdefs.h <<_ACEOF
20487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20488 _ACEOF
20489
20490 fi
20491 done
20492
20493   else
20494
20495   echo "$as_me:$LINENO: checking for _powl declaration" >&5
20496 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
20497   if test x${glibcxx_cv_func__powl_use+set} != xset; then
20498     if test "${glibcxx_cv_func__powl_use+set}" = set; then
20499   echo $ECHO_N "(cached) $ECHO_C" >&6
20500 else
20501
20502
20503
20504       ac_ext=cc
20505 ac_cpp='$CXXCPP $CPPFLAGS'
20506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20509
20510       cat >conftest.$ac_ext <<_ACEOF
20511 #line $LINENO "configure"
20512 /* confdefs.h.  */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h.  */
20517 #include <math.h>
20518 int
20519 main ()
20520 {
20521  _powl(0, 0);
20522   ;
20523   return 0;
20524 }
20525 _ACEOF
20526 rm -f conftest.$ac_objext
20527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20528   (eval $ac_compile) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } &&
20532          { ac_try='test -s conftest.$ac_objext'
20533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534   (eval $ac_try) 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; }; then
20538   glibcxx_cv_func__powl_use=yes
20539 else
20540   echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20542
20543 glibcxx_cv_func__powl_use=no
20544 fi
20545 rm -f conftest.$ac_objext conftest.$ac_ext
20546       ac_ext=c
20547 ac_cpp='$CPP $CPPFLAGS'
20548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20551
20552
20553 fi
20554
20555   fi
20556   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
20557 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
20558
20559     if test x$glibcxx_cv_func__powl_use = x"yes"; then
20560
20561 for ac_func in _powl
20562 do
20563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20564 echo "$as_me:$LINENO: checking for $ac_func" >&5
20565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20566 if eval "test \"\${$as_ac_var+set}\" = set"; then
20567   echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569   if test x$gcc_no_link = xyes; then
20570   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20571 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20572    { (exit 1); exit 1; }; }
20573 fi
20574 cat >conftest.$ac_ext <<_ACEOF
20575 #line $LINENO "configure"
20576 /* confdefs.h.  */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h.  */
20581 /* System header to define __stub macros and hopefully few prototypes,
20582     which can conflict with char $ac_func (); below.
20583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20584     <limits.h> exists even on freestanding compilers.  */
20585 #ifdef __STDC__
20586 # include <limits.h>
20587 #else
20588 # include <assert.h>
20589 #endif
20590 /* Override any gcc2 internal prototype to avoid an error.  */
20591 #ifdef __cplusplus
20592 extern "C"
20593 {
20594 #endif
20595 /* We use char because int might match the return type of a gcc2
20596    builtin and then its argument prototype would still apply.  */
20597 char $ac_func ();
20598 /* The GNU C library defines this for functions which it implements
20599     to always fail with ENOSYS.  Some functions are actually named
20600     something starting with __ and the normal name is an alias.  */
20601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20602 choke me
20603 #else
20604 char (*f) () = $ac_func;
20605 #endif
20606 #ifdef __cplusplus
20607 }
20608 #endif
20609
20610 int
20611 main ()
20612 {
20613 return f != $ac_func;
20614   ;
20615   return 0;
20616 }
20617 _ACEOF
20618 rm -f conftest.$ac_objext conftest$ac_exeext
20619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20620   (eval $ac_link) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } &&
20624          { ac_try='test -s conftest$ac_exeext'
20625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626   (eval $ac_try) 2>&5
20627   ac_status=$?
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); }; }; then
20630   eval "$as_ac_var=yes"
20631 else
20632   echo "$as_me: failed program was:" >&5
20633 sed 's/^/| /' conftest.$ac_ext >&5
20634
20635 eval "$as_ac_var=no"
20636 fi
20637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20638 fi
20639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20641 if test `eval echo '${'$as_ac_var'}'` = yes; then
20642   cat >>confdefs.h <<_ACEOF
20643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20644 _ACEOF
20645
20646 fi
20647 done
20648
20649     fi
20650   fi
20651
20652
20653
20654   echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
20655 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
20656   if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
20657     if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660
20661
20662
20663       ac_ext=cc
20664 ac_cpp='$CXXCPP $CPPFLAGS'
20665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20668
20669       cat >conftest.$ac_ext <<_ACEOF
20670 #line $LINENO "configure"
20671 /* confdefs.h.  */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h.  */
20676 #include <math.h>
20677                       #ifdef HAVE_IEEEFP_H
20678                       #include <ieeefp.h>
20679                       #endif
20680
20681 int
20682 main ()
20683 {
20684  sqrtl(0);
20685   ;
20686   return 0;
20687 }
20688 _ACEOF
20689 rm -f conftest.$ac_objext
20690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20691   (eval $ac_compile) 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); } &&
20695          { ac_try='test -s conftest.$ac_objext'
20696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697   (eval $ac_try) 2>&5
20698   ac_status=$?
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); }; }; then
20701   glibcxx_cv_func_sqrtl_use=yes
20702 else
20703   echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20705
20706 glibcxx_cv_func_sqrtl_use=no
20707 fi
20708 rm -f conftest.$ac_objext conftest.$ac_ext
20709       ac_ext=c
20710 ac_cpp='$CPP $CPPFLAGS'
20711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20714
20715
20716 fi
20717
20718   fi
20719   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
20720 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
20721
20722   if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
20723
20724 for ac_func in sqrtl
20725 do
20726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20727 echo "$as_me:$LINENO: checking for $ac_func" >&5
20728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20729 if eval "test \"\${$as_ac_var+set}\" = set"; then
20730   echo $ECHO_N "(cached) $ECHO_C" >&6
20731 else
20732   if test x$gcc_no_link = xyes; then
20733   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20734 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20735    { (exit 1); exit 1; }; }
20736 fi
20737 cat >conftest.$ac_ext <<_ACEOF
20738 #line $LINENO "configure"
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744 /* System header to define __stub macros and hopefully few prototypes,
20745     which can conflict with char $ac_func (); below.
20746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20747     <limits.h> exists even on freestanding compilers.  */
20748 #ifdef __STDC__
20749 # include <limits.h>
20750 #else
20751 # include <assert.h>
20752 #endif
20753 /* Override any gcc2 internal prototype to avoid an error.  */
20754 #ifdef __cplusplus
20755 extern "C"
20756 {
20757 #endif
20758 /* We use char because int might match the return type of a gcc2
20759    builtin and then its argument prototype would still apply.  */
20760 char $ac_func ();
20761 /* The GNU C library defines this for functions which it implements
20762     to always fail with ENOSYS.  Some functions are actually named
20763     something starting with __ and the normal name is an alias.  */
20764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20765 choke me
20766 #else
20767 char (*f) () = $ac_func;
20768 #endif
20769 #ifdef __cplusplus
20770 }
20771 #endif
20772
20773 int
20774 main ()
20775 {
20776 return f != $ac_func;
20777   ;
20778   return 0;
20779 }
20780 _ACEOF
20781 rm -f conftest.$ac_objext conftest$ac_exeext
20782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20783   (eval $ac_link) 2>&5
20784   ac_status=$?
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); } &&
20787          { ac_try='test -s conftest$ac_exeext'
20788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789   (eval $ac_try) 2>&5
20790   ac_status=$?
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); }; }; then
20793   eval "$as_ac_var=yes"
20794 else
20795   echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20797
20798 eval "$as_ac_var=no"
20799 fi
20800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20801 fi
20802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20804 if test `eval echo '${'$as_ac_var'}'` = yes; then
20805   cat >>confdefs.h <<_ACEOF
20806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20807 _ACEOF
20808
20809 fi
20810 done
20811
20812   else
20813
20814   echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
20815 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
20816   if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
20817     if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
20818   echo $ECHO_N "(cached) $ECHO_C" >&6
20819 else
20820
20821
20822
20823       ac_ext=cc
20824 ac_cpp='$CXXCPP $CPPFLAGS'
20825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20828
20829       cat >conftest.$ac_ext <<_ACEOF
20830 #line $LINENO "configure"
20831 /* confdefs.h.  */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h.  */
20836 #include <math.h>
20837                       #ifdef HAVE_IEEEFP_H
20838                       #include <ieeefp.h>
20839                       #endif
20840
20841 int
20842 main ()
20843 {
20844  _sqrtl(0);
20845   ;
20846   return 0;
20847 }
20848 _ACEOF
20849 rm -f conftest.$ac_objext
20850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20851   (eval $ac_compile) 2>&5
20852   ac_status=$?
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); } &&
20855          { ac_try='test -s conftest.$ac_objext'
20856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857   (eval $ac_try) 2>&5
20858   ac_status=$?
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); }; }; then
20861   glibcxx_cv_func__sqrtl_use=yes
20862 else
20863   echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20865
20866 glibcxx_cv_func__sqrtl_use=no
20867 fi
20868 rm -f conftest.$ac_objext conftest.$ac_ext
20869       ac_ext=c
20870 ac_cpp='$CPP $CPPFLAGS'
20871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20874
20875
20876 fi
20877
20878   fi
20879   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
20880 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
20881
20882     if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
20883
20884 for ac_func in _sqrtl
20885 do
20886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20887 echo "$as_me:$LINENO: checking for $ac_func" >&5
20888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20889 if eval "test \"\${$as_ac_var+set}\" = set"; then
20890   echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892   if test x$gcc_no_link = xyes; then
20893   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20895    { (exit 1); exit 1; }; }
20896 fi
20897 cat >conftest.$ac_ext <<_ACEOF
20898 #line $LINENO "configure"
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904 /* System header to define __stub macros and hopefully few prototypes,
20905     which can conflict with char $ac_func (); below.
20906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20907     <limits.h> exists even on freestanding compilers.  */
20908 #ifdef __STDC__
20909 # include <limits.h>
20910 #else
20911 # include <assert.h>
20912 #endif
20913 /* Override any gcc2 internal prototype to avoid an error.  */
20914 #ifdef __cplusplus
20915 extern "C"
20916 {
20917 #endif
20918 /* We use char because int might match the return type of a gcc2
20919    builtin and then its argument prototype would still apply.  */
20920 char $ac_func ();
20921 /* The GNU C library defines this for functions which it implements
20922     to always fail with ENOSYS.  Some functions are actually named
20923     something starting with __ and the normal name is an alias.  */
20924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20925 choke me
20926 #else
20927 char (*f) () = $ac_func;
20928 #endif
20929 #ifdef __cplusplus
20930 }
20931 #endif
20932
20933 int
20934 main ()
20935 {
20936 return f != $ac_func;
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20943   (eval $ac_link) 2>&5
20944   ac_status=$?
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); } &&
20947          { ac_try='test -s conftest$ac_exeext'
20948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949   (eval $ac_try) 2>&5
20950   ac_status=$?
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); }; }; then
20953   eval "$as_ac_var=yes"
20954 else
20955   echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958 eval "$as_ac_var=no"
20959 fi
20960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20961 fi
20962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20964 if test `eval echo '${'$as_ac_var'}'` = yes; then
20965   cat >>confdefs.h <<_ACEOF
20966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20967 _ACEOF
20968
20969 fi
20970 done
20971
20972     fi
20973   fi
20974
20975
20976
20977   echo "$as_me:$LINENO: checking for sincosl declaration" >&5
20978 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
20979   if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
20980     if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
20981   echo $ECHO_N "(cached) $ECHO_C" >&6
20982 else
20983
20984
20985
20986       ac_ext=cc
20987 ac_cpp='$CXXCPP $CPPFLAGS'
20988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20991
20992       cat >conftest.$ac_ext <<_ACEOF
20993 #line $LINENO "configure"
20994 /* confdefs.h.  */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h.  */
20999 #include <math.h>
21000 int
21001 main ()
21002 {
21003  sincosl(0, 0, 0);
21004   ;
21005   return 0;
21006 }
21007 _ACEOF
21008 rm -f conftest.$ac_objext
21009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21010   (eval $ac_compile) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); } &&
21014          { ac_try='test -s conftest.$ac_objext'
21015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016   (eval $ac_try) 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; }; then
21020   glibcxx_cv_func_sincosl_use=yes
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025 glibcxx_cv_func_sincosl_use=no
21026 fi
21027 rm -f conftest.$ac_objext conftest.$ac_ext
21028       ac_ext=c
21029 ac_cpp='$CPP $CPPFLAGS'
21030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21033
21034
21035 fi
21036
21037   fi
21038   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
21039 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
21040
21041   if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
21042
21043 for ac_func in sincosl
21044 do
21045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21046 echo "$as_me:$LINENO: checking for $ac_func" >&5
21047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21048 if eval "test \"\${$as_ac_var+set}\" = set"; then
21049   echo $ECHO_N "(cached) $ECHO_C" >&6
21050 else
21051   if test x$gcc_no_link = xyes; then
21052   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21054    { (exit 1); exit 1; }; }
21055 fi
21056 cat >conftest.$ac_ext <<_ACEOF
21057 #line $LINENO "configure"
21058 /* confdefs.h.  */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h.  */
21063 /* System header to define __stub macros and hopefully few prototypes,
21064     which can conflict with char $ac_func (); below.
21065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21066     <limits.h> exists even on freestanding compilers.  */
21067 #ifdef __STDC__
21068 # include <limits.h>
21069 #else
21070 # include <assert.h>
21071 #endif
21072 /* Override any gcc2 internal prototype to avoid an error.  */
21073 #ifdef __cplusplus
21074 extern "C"
21075 {
21076 #endif
21077 /* We use char because int might match the return type of a gcc2
21078    builtin and then its argument prototype would still apply.  */
21079 char $ac_func ();
21080 /* The GNU C library defines this for functions which it implements
21081     to always fail with ENOSYS.  Some functions are actually named
21082     something starting with __ and the normal name is an alias.  */
21083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21084 choke me
21085 #else
21086 char (*f) () = $ac_func;
21087 #endif
21088 #ifdef __cplusplus
21089 }
21090 #endif
21091
21092 int
21093 main ()
21094 {
21095 return f != $ac_func;
21096   ;
21097   return 0;
21098 }
21099 _ACEOF
21100 rm -f conftest.$ac_objext conftest$ac_exeext
21101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21102   (eval $ac_link) 2>&5
21103   ac_status=$?
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); } &&
21106          { ac_try='test -s conftest$ac_exeext'
21107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108   (eval $ac_try) 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); }; }; then
21112   eval "$as_ac_var=yes"
21113 else
21114   echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21116
21117 eval "$as_ac_var=no"
21118 fi
21119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21120 fi
21121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21123 if test `eval echo '${'$as_ac_var'}'` = yes; then
21124   cat >>confdefs.h <<_ACEOF
21125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21126 _ACEOF
21127
21128 fi
21129 done
21130
21131   else
21132
21133   echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
21134 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
21135   if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
21136     if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
21137   echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139
21140
21141
21142       ac_ext=cc
21143 ac_cpp='$CXXCPP $CPPFLAGS'
21144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21147
21148       cat >conftest.$ac_ext <<_ACEOF
21149 #line $LINENO "configure"
21150 /* confdefs.h.  */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h.  */
21155 #include <math.h>
21156 int
21157 main ()
21158 {
21159  _sincosl(0, 0, 0);
21160   ;
21161   return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21166   (eval $ac_compile) 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); } &&
21170          { ac_try='test -s conftest.$ac_objext'
21171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172   (eval $ac_try) 2>&5
21173   ac_status=$?
21174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175   (exit $ac_status); }; }; then
21176   glibcxx_cv_func__sincosl_use=yes
21177 else
21178   echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21180
21181 glibcxx_cv_func__sincosl_use=no
21182 fi
21183 rm -f conftest.$ac_objext conftest.$ac_ext
21184       ac_ext=c
21185 ac_cpp='$CPP $CPPFLAGS'
21186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21189
21190
21191 fi
21192
21193   fi
21194   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
21195 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
21196
21197     if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
21198
21199 for ac_func in _sincosl
21200 do
21201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21202 echo "$as_me:$LINENO: checking for $ac_func" >&5
21203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21204 if eval "test \"\${$as_ac_var+set}\" = set"; then
21205   echo $ECHO_N "(cached) $ECHO_C" >&6
21206 else
21207   if test x$gcc_no_link = xyes; then
21208   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21210    { (exit 1); exit 1; }; }
21211 fi
21212 cat >conftest.$ac_ext <<_ACEOF
21213 #line $LINENO "configure"
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219 /* System header to define __stub macros and hopefully few prototypes,
21220     which can conflict with char $ac_func (); below.
21221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21222     <limits.h> exists even on freestanding compilers.  */
21223 #ifdef __STDC__
21224 # include <limits.h>
21225 #else
21226 # include <assert.h>
21227 #endif
21228 /* Override any gcc2 internal prototype to avoid an error.  */
21229 #ifdef __cplusplus
21230 extern "C"
21231 {
21232 #endif
21233 /* We use char because int might match the return type of a gcc2
21234    builtin and then its argument prototype would still apply.  */
21235 char $ac_func ();
21236 /* The GNU C library defines this for functions which it implements
21237     to always fail with ENOSYS.  Some functions are actually named
21238     something starting with __ and the normal name is an alias.  */
21239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21240 choke me
21241 #else
21242 char (*f) () = $ac_func;
21243 #endif
21244 #ifdef __cplusplus
21245 }
21246 #endif
21247
21248 int
21249 main ()
21250 {
21251 return f != $ac_func;
21252   ;
21253   return 0;
21254 }
21255 _ACEOF
21256 rm -f conftest.$ac_objext conftest$ac_exeext
21257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21258   (eval $ac_link) 2>&5
21259   ac_status=$?
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); } &&
21262          { ac_try='test -s conftest$ac_exeext'
21263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264   (eval $ac_try) 2>&5
21265   ac_status=$?
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); }; }; then
21268   eval "$as_ac_var=yes"
21269 else
21270   echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 eval "$as_ac_var=no"
21274 fi
21275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21276 fi
21277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21279 if test `eval echo '${'$as_ac_var'}'` = yes; then
21280   cat >>confdefs.h <<_ACEOF
21281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21282 _ACEOF
21283
21284 fi
21285 done
21286
21287     fi
21288   fi
21289
21290
21291
21292   echo "$as_me:$LINENO: checking for finitel declaration" >&5
21293 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
21294   if test x${glibcxx_cv_func_finitel_use+set} != xset; then
21295     if test "${glibcxx_cv_func_finitel_use+set}" = set; then
21296   echo $ECHO_N "(cached) $ECHO_C" >&6
21297 else
21298
21299
21300
21301       ac_ext=cc
21302 ac_cpp='$CXXCPP $CPPFLAGS'
21303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21306
21307       cat >conftest.$ac_ext <<_ACEOF
21308 #line $LINENO "configure"
21309 /* confdefs.h.  */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h.  */
21314 #include <math.h>
21315                       #ifdef HAVE_IEEEFP_H
21316                       #include <ieeefp.h>
21317                       #endif
21318
21319 int
21320 main ()
21321 {
21322  finitel(0);
21323   ;
21324   return 0;
21325 }
21326 _ACEOF
21327 rm -f conftest.$ac_objext
21328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21329   (eval $ac_compile) 2>&5
21330   ac_status=$?
21331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332   (exit $ac_status); } &&
21333          { ac_try='test -s conftest.$ac_objext'
21334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335   (eval $ac_try) 2>&5
21336   ac_status=$?
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); }; }; then
21339   glibcxx_cv_func_finitel_use=yes
21340 else
21341   echo "$as_me: failed program was:" >&5
21342 sed 's/^/| /' conftest.$ac_ext >&5
21343
21344 glibcxx_cv_func_finitel_use=no
21345 fi
21346 rm -f conftest.$ac_objext conftest.$ac_ext
21347       ac_ext=c
21348 ac_cpp='$CPP $CPPFLAGS'
21349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21352
21353
21354 fi
21355
21356   fi
21357   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
21358 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
21359
21360   if test x$glibcxx_cv_func_finitel_use = x"yes"; then
21361
21362 for ac_func in finitel
21363 do
21364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21365 echo "$as_me:$LINENO: checking for $ac_func" >&5
21366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21367 if eval "test \"\${$as_ac_var+set}\" = set"; then
21368   echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370   if test x$gcc_no_link = xyes; then
21371   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21372 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21373    { (exit 1); exit 1; }; }
21374 fi
21375 cat >conftest.$ac_ext <<_ACEOF
21376 #line $LINENO "configure"
21377 /* confdefs.h.  */
21378 _ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h.  */
21382 /* System header to define __stub macros and hopefully few prototypes,
21383     which can conflict with char $ac_func (); below.
21384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21385     <limits.h> exists even on freestanding compilers.  */
21386 #ifdef __STDC__
21387 # include <limits.h>
21388 #else
21389 # include <assert.h>
21390 #endif
21391 /* Override any gcc2 internal prototype to avoid an error.  */
21392 #ifdef __cplusplus
21393 extern "C"
21394 {
21395 #endif
21396 /* We use char because int might match the return type of a gcc2
21397    builtin and then its argument prototype would still apply.  */
21398 char $ac_func ();
21399 /* The GNU C library defines this for functions which it implements
21400     to always fail with ENOSYS.  Some functions are actually named
21401     something starting with __ and the normal name is an alias.  */
21402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21403 choke me
21404 #else
21405 char (*f) () = $ac_func;
21406 #endif
21407 #ifdef __cplusplus
21408 }
21409 #endif
21410
21411 int
21412 main ()
21413 {
21414 return f != $ac_func;
21415   ;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest.$ac_objext conftest$ac_exeext
21420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21421   (eval $ac_link) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); } &&
21425          { ac_try='test -s conftest$ac_exeext'
21426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427   (eval $ac_try) 2>&5
21428   ac_status=$?
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); }; }; then
21431   eval "$as_ac_var=yes"
21432 else
21433   echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21435
21436 eval "$as_ac_var=no"
21437 fi
21438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21439 fi
21440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21442 if test `eval echo '${'$as_ac_var'}'` = yes; then
21443   cat >>confdefs.h <<_ACEOF
21444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21445 _ACEOF
21446
21447 fi
21448 done
21449
21450   else
21451
21452   echo "$as_me:$LINENO: checking for _finitel declaration" >&5
21453 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
21454   if test x${glibcxx_cv_func__finitel_use+set} != xset; then
21455     if test "${glibcxx_cv_func__finitel_use+set}" = set; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458
21459
21460
21461       ac_ext=cc
21462 ac_cpp='$CXXCPP $CPPFLAGS'
21463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21466
21467       cat >conftest.$ac_ext <<_ACEOF
21468 #line $LINENO "configure"
21469 /* confdefs.h.  */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h.  */
21474 #include <math.h>
21475                       #ifdef HAVE_IEEEFP_H
21476                       #include <ieeefp.h>
21477                       #endif
21478
21479 int
21480 main ()
21481 {
21482  _finitel(0);
21483   ;
21484   return 0;
21485 }
21486 _ACEOF
21487 rm -f conftest.$ac_objext
21488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21489   (eval $ac_compile) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); } &&
21493          { ac_try='test -s conftest.$ac_objext'
21494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495   (eval $ac_try) 2>&5
21496   ac_status=$?
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); }; }; then
21499   glibcxx_cv_func__finitel_use=yes
21500 else
21501   echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504 glibcxx_cv_func__finitel_use=no
21505 fi
21506 rm -f conftest.$ac_objext conftest.$ac_ext
21507       ac_ext=c
21508 ac_cpp='$CPP $CPPFLAGS'
21509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21512
21513
21514 fi
21515
21516   fi
21517   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
21518 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
21519
21520     if test x$glibcxx_cv_func__finitel_use = x"yes"; then
21521
21522 for ac_func in _finitel
21523 do
21524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21525 echo "$as_me:$LINENO: checking for $ac_func" >&5
21526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21527 if eval "test \"\${$as_ac_var+set}\" = set"; then
21528   echo $ECHO_N "(cached) $ECHO_C" >&6
21529 else
21530   if test x$gcc_no_link = xyes; then
21531   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21533    { (exit 1); exit 1; }; }
21534 fi
21535 cat >conftest.$ac_ext <<_ACEOF
21536 #line $LINENO "configure"
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 /* System header to define __stub macros and hopefully few prototypes,
21543     which can conflict with char $ac_func (); below.
21544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21545     <limits.h> exists even on freestanding compilers.  */
21546 #ifdef __STDC__
21547 # include <limits.h>
21548 #else
21549 # include <assert.h>
21550 #endif
21551 /* Override any gcc2 internal prototype to avoid an error.  */
21552 #ifdef __cplusplus
21553 extern "C"
21554 {
21555 #endif
21556 /* We use char because int might match the return type of a gcc2
21557    builtin and then its argument prototype would still apply.  */
21558 char $ac_func ();
21559 /* The GNU C library defines this for functions which it implements
21560     to always fail with ENOSYS.  Some functions are actually named
21561     something starting with __ and the normal name is an alias.  */
21562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21563 choke me
21564 #else
21565 char (*f) () = $ac_func;
21566 #endif
21567 #ifdef __cplusplus
21568 }
21569 #endif
21570
21571 int
21572 main ()
21573 {
21574 return f != $ac_func;
21575   ;
21576   return 0;
21577 }
21578 _ACEOF
21579 rm -f conftest.$ac_objext conftest$ac_exeext
21580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21581   (eval $ac_link) 2>&5
21582   ac_status=$?
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); } &&
21585          { ac_try='test -s conftest$ac_exeext'
21586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587   (eval $ac_try) 2>&5
21588   ac_status=$?
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); }; }; then
21591   eval "$as_ac_var=yes"
21592 else
21593   echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596 eval "$as_ac_var=no"
21597 fi
21598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21599 fi
21600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21602 if test `eval echo '${'$as_ac_var'}'` = yes; then
21603   cat >>confdefs.h <<_ACEOF
21604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21605 _ACEOF
21606
21607 fi
21608 done
21609
21610     fi
21611   fi
21612
21613
21614
21615
21616   echo "$as_me:$LINENO: checking for _float trig functions" >&5
21617 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
21618   if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
21619   echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621
21622
21623
21624     ac_ext=cc
21625 ac_cpp='$CXXCPP $CPPFLAGS'
21626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21629
21630     cat >conftest.$ac_ext <<_ACEOF
21631 #line $LINENO "configure"
21632 /* confdefs.h.  */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h.  */
21637 #include <math.h>
21638 int
21639 main ()
21640 {
21641  `for x in _acosf _asinf _atanf \
21642                                           _cosf _sinf _tanf \
21643                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21644   ;
21645   return 0;
21646 }
21647 _ACEOF
21648 rm -f conftest.$ac_objext
21649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21650   (eval $ac_compile) 2>&5
21651   ac_status=$?
21652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653   (exit $ac_status); } &&
21654          { ac_try='test -s conftest.$ac_objext'
21655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656   (eval $ac_try) 2>&5
21657   ac_status=$?
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); }; }; then
21660   glibcxx_cv_func__float_trig_use=yes
21661 else
21662   echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21664
21665 glibcxx_cv_func__float_trig_use=no
21666 fi
21667 rm -f conftest.$ac_objext conftest.$ac_ext
21668     ac_ext=c
21669 ac_cpp='$CPP $CPPFLAGS'
21670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21673
21674 fi
21675
21676   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
21677 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
21678   if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688 for ac_func in _acosf _asinf _atanf \
21689                                           _cosf _sinf _tanf \
21690                                           _coshf _sinhf _tanhf
21691 do
21692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21693 echo "$as_me:$LINENO: checking for $ac_func" >&5
21694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21695 if eval "test \"\${$as_ac_var+set}\" = set"; then
21696   echo $ECHO_N "(cached) $ECHO_C" >&6
21697 else
21698   if test x$gcc_no_link = xyes; then
21699   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21700 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21701    { (exit 1); exit 1; }; }
21702 fi
21703 cat >conftest.$ac_ext <<_ACEOF
21704 #line $LINENO "configure"
21705 /* confdefs.h.  */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h.  */
21710 /* System header to define __stub macros and hopefully few prototypes,
21711     which can conflict with char $ac_func (); below.
21712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21713     <limits.h> exists even on freestanding compilers.  */
21714 #ifdef __STDC__
21715 # include <limits.h>
21716 #else
21717 # include <assert.h>
21718 #endif
21719 /* Override any gcc2 internal prototype to avoid an error.  */
21720 #ifdef __cplusplus
21721 extern "C"
21722 {
21723 #endif
21724 /* We use char because int might match the return type of a gcc2
21725    builtin and then its argument prototype would still apply.  */
21726 char $ac_func ();
21727 /* The GNU C library defines this for functions which it implements
21728     to always fail with ENOSYS.  Some functions are actually named
21729     something starting with __ and the normal name is an alias.  */
21730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21731 choke me
21732 #else
21733 char (*f) () = $ac_func;
21734 #endif
21735 #ifdef __cplusplus
21736 }
21737 #endif
21738
21739 int
21740 main ()
21741 {
21742 return f != $ac_func;
21743   ;
21744   return 0;
21745 }
21746 _ACEOF
21747 rm -f conftest.$ac_objext conftest$ac_exeext
21748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21749   (eval $ac_link) 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); } &&
21753          { ac_try='test -s conftest$ac_exeext'
21754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755   (eval $ac_try) 2>&5
21756   ac_status=$?
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); }; }; then
21759   eval "$as_ac_var=yes"
21760 else
21761   echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21763
21764 eval "$as_ac_var=no"
21765 fi
21766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21767 fi
21768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21770 if test `eval echo '${'$as_ac_var'}'` = yes; then
21771   cat >>confdefs.h <<_ACEOF
21772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21773 _ACEOF
21774
21775 fi
21776 done
21777
21778   fi
21779
21780
21781   echo "$as_me:$LINENO: checking for _float round functions" >&5
21782 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
21783   if test "${glibcxx_cv_func__float_round_use+set}" = set; then
21784   echo $ECHO_N "(cached) $ECHO_C" >&6
21785 else
21786
21787
21788
21789     ac_ext=cc
21790 ac_cpp='$CXXCPP $CPPFLAGS'
21791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21794
21795     cat >conftest.$ac_ext <<_ACEOF
21796 #line $LINENO "configure"
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802 #include <math.h>
21803 int
21804 main ()
21805 {
21806  `for x in _ceilf _floorf; do echo "$x (0);"; done`
21807   ;
21808   return 0;
21809 }
21810 _ACEOF
21811 rm -f conftest.$ac_objext
21812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21813   (eval $ac_compile) 2>&5
21814   ac_status=$?
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } &&
21817          { ac_try='test -s conftest.$ac_objext'
21818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819   (eval $ac_try) 2>&5
21820   ac_status=$?
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); }; }; then
21823   glibcxx_cv_func__float_round_use=yes
21824 else
21825   echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21827
21828 glibcxx_cv_func__float_round_use=no
21829 fi
21830 rm -f conftest.$ac_objext conftest.$ac_ext
21831     ac_ext=c
21832 ac_cpp='$CPP $CPPFLAGS'
21833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21836
21837 fi
21838
21839   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
21840 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
21841   if test x$glibcxx_cv_func__float_round_use = x"yes"; then
21842
21843
21844 for ac_func in _ceilf _floorf
21845 do
21846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21847 echo "$as_me:$LINENO: checking for $ac_func" >&5
21848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21849 if eval "test \"\${$as_ac_var+set}\" = set"; then
21850   echo $ECHO_N "(cached) $ECHO_C" >&6
21851 else
21852   if test x$gcc_no_link = xyes; then
21853   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21855    { (exit 1); exit 1; }; }
21856 fi
21857 cat >conftest.$ac_ext <<_ACEOF
21858 #line $LINENO "configure"
21859 /* confdefs.h.  */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h.  */
21864 /* System header to define __stub macros and hopefully few prototypes,
21865     which can conflict with char $ac_func (); below.
21866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21867     <limits.h> exists even on freestanding compilers.  */
21868 #ifdef __STDC__
21869 # include <limits.h>
21870 #else
21871 # include <assert.h>
21872 #endif
21873 /* Override any gcc2 internal prototype to avoid an error.  */
21874 #ifdef __cplusplus
21875 extern "C"
21876 {
21877 #endif
21878 /* We use char because int might match the return type of a gcc2
21879    builtin and then its argument prototype would still apply.  */
21880 char $ac_func ();
21881 /* The GNU C library defines this for functions which it implements
21882     to always fail with ENOSYS.  Some functions are actually named
21883     something starting with __ and the normal name is an alias.  */
21884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21885 choke me
21886 #else
21887 char (*f) () = $ac_func;
21888 #endif
21889 #ifdef __cplusplus
21890 }
21891 #endif
21892
21893 int
21894 main ()
21895 {
21896 return f != $ac_func;
21897   ;
21898   return 0;
21899 }
21900 _ACEOF
21901 rm -f conftest.$ac_objext conftest$ac_exeext
21902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21903   (eval $ac_link) 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); } &&
21907          { ac_try='test -s conftest$ac_exeext'
21908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909   (eval $ac_try) 2>&5
21910   ac_status=$?
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); }; }; then
21913   eval "$as_ac_var=yes"
21914 else
21915   echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918 eval "$as_ac_var=no"
21919 fi
21920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21921 fi
21922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21924 if test `eval echo '${'$as_ac_var'}'` = yes; then
21925   cat >>confdefs.h <<_ACEOF
21926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21927 _ACEOF
21928
21929 fi
21930 done
21931
21932   fi
21933
21934
21935
21936   echo "$as_me:$LINENO: checking for _long double trig functions" >&5
21937 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
21938   if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
21939   echo $ECHO_N "(cached) $ECHO_C" >&6
21940 else
21941
21942
21943
21944     ac_ext=cc
21945 ac_cpp='$CXXCPP $CPPFLAGS'
21946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21949
21950     cat >conftest.$ac_ext <<_ACEOF
21951 #line $LINENO "configure"
21952 /* confdefs.h.  */
21953 _ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h.  */
21957 #include <math.h>
21958 int
21959 main ()
21960 {
21961  `for x in _acosl _asinl _atanl \
21962                                           _cosl _sinl _tanl \
21963                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21964   ;
21965   return 0;
21966 }
21967 _ACEOF
21968 rm -f conftest.$ac_objext
21969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21970   (eval $ac_compile) 2>&5
21971   ac_status=$?
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); } &&
21974          { ac_try='test -s conftest.$ac_objext'
21975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976   (eval $ac_try) 2>&5
21977   ac_status=$?
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); }; }; then
21980   glibcxx_cv_func__long_double_trig_use=yes
21981 else
21982   echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985 glibcxx_cv_func__long_double_trig_use=no
21986 fi
21987 rm -f conftest.$ac_objext conftest.$ac_ext
21988     ac_ext=c
21989 ac_cpp='$CPP $CPPFLAGS'
21990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21993
21994 fi
21995
21996   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
21997 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
21998   if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008 for ac_func in _acosl _asinl _atanl \
22009                                           _cosl _sinl _tanl \
22010                                           _coshl _sinhl _tanhl
22011 do
22012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22013 echo "$as_me:$LINENO: checking for $ac_func" >&5
22014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22015 if eval "test \"\${$as_ac_var+set}\" = set"; then
22016   echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018   if test x$gcc_no_link = xyes; then
22019   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22021    { (exit 1); exit 1; }; }
22022 fi
22023 cat >conftest.$ac_ext <<_ACEOF
22024 #line $LINENO "configure"
22025 /* confdefs.h.  */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h.  */
22030 /* System header to define __stub macros and hopefully few prototypes,
22031     which can conflict with char $ac_func (); below.
22032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22033     <limits.h> exists even on freestanding compilers.  */
22034 #ifdef __STDC__
22035 # include <limits.h>
22036 #else
22037 # include <assert.h>
22038 #endif
22039 /* Override any gcc2 internal prototype to avoid an error.  */
22040 #ifdef __cplusplus
22041 extern "C"
22042 {
22043 #endif
22044 /* We use char because int might match the return type of a gcc2
22045    builtin and then its argument prototype would still apply.  */
22046 char $ac_func ();
22047 /* The GNU C library defines this for functions which it implements
22048     to always fail with ENOSYS.  Some functions are actually named
22049     something starting with __ and the normal name is an alias.  */
22050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22051 choke me
22052 #else
22053 char (*f) () = $ac_func;
22054 #endif
22055 #ifdef __cplusplus
22056 }
22057 #endif
22058
22059 int
22060 main ()
22061 {
22062 return f != $ac_func;
22063   ;
22064   return 0;
22065 }
22066 _ACEOF
22067 rm -f conftest.$ac_objext conftest$ac_exeext
22068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22069   (eval $ac_link) 2>&5
22070   ac_status=$?
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); } &&
22073          { ac_try='test -s conftest$ac_exeext'
22074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22075   (eval $ac_try) 2>&5
22076   ac_status=$?
22077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078   (exit $ac_status); }; }; then
22079   eval "$as_ac_var=yes"
22080 else
22081   echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22083
22084 eval "$as_ac_var=no"
22085 fi
22086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22087 fi
22088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22090 if test `eval echo '${'$as_ac_var'}'` = yes; then
22091   cat >>confdefs.h <<_ACEOF
22092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22093 _ACEOF
22094
22095 fi
22096 done
22097
22098   fi
22099
22100
22101   echo "$as_me:$LINENO: checking for _long double round functions" >&5
22102 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
22103   if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
22104   echo $ECHO_N "(cached) $ECHO_C" >&6
22105 else
22106
22107
22108
22109     ac_ext=cc
22110 ac_cpp='$CXXCPP $CPPFLAGS'
22111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22114
22115     cat >conftest.$ac_ext <<_ACEOF
22116 #line $LINENO "configure"
22117 /* confdefs.h.  */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h.  */
22122 #include <math.h>
22123 int
22124 main ()
22125 {
22126  `for x in _ceill _floorl; do echo "$x (0);"; done`
22127   ;
22128   return 0;
22129 }
22130 _ACEOF
22131 rm -f conftest.$ac_objext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22133   (eval $ac_compile) 2>&5
22134   ac_status=$?
22135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136   (exit $ac_status); } &&
22137          { ac_try='test -s conftest.$ac_objext'
22138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139   (eval $ac_try) 2>&5
22140   ac_status=$?
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); }; }; then
22143   glibcxx_cv_func__long_double_round_use=yes
22144 else
22145   echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148 glibcxx_cv_func__long_double_round_use=no
22149 fi
22150 rm -f conftest.$ac_objext conftest.$ac_ext
22151     ac_ext=c
22152 ac_cpp='$CPP $CPPFLAGS'
22153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22156
22157 fi
22158
22159   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
22160 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
22161   if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
22162
22163
22164 for ac_func in _ceill _floorl
22165 do
22166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22167 echo "$as_me:$LINENO: checking for $ac_func" >&5
22168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22169 if eval "test \"\${$as_ac_var+set}\" = set"; then
22170   echo $ECHO_N "(cached) $ECHO_C" >&6
22171 else
22172   if test x$gcc_no_link = xyes; then
22173   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22174 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22175    { (exit 1); exit 1; }; }
22176 fi
22177 cat >conftest.$ac_ext <<_ACEOF
22178 #line $LINENO "configure"
22179 /* confdefs.h.  */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h.  */
22184 /* System header to define __stub macros and hopefully few prototypes,
22185     which can conflict with char $ac_func (); below.
22186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22187     <limits.h> exists even on freestanding compilers.  */
22188 #ifdef __STDC__
22189 # include <limits.h>
22190 #else
22191 # include <assert.h>
22192 #endif
22193 /* Override any gcc2 internal prototype to avoid an error.  */
22194 #ifdef __cplusplus
22195 extern "C"
22196 {
22197 #endif
22198 /* We use char because int might match the return type of a gcc2
22199    builtin and then its argument prototype would still apply.  */
22200 char $ac_func ();
22201 /* The GNU C library defines this for functions which it implements
22202     to always fail with ENOSYS.  Some functions are actually named
22203     something starting with __ and the normal name is an alias.  */
22204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22205 choke me
22206 #else
22207 char (*f) () = $ac_func;
22208 #endif
22209 #ifdef __cplusplus
22210 }
22211 #endif
22212
22213 int
22214 main ()
22215 {
22216 return f != $ac_func;
22217   ;
22218   return 0;
22219 }
22220 _ACEOF
22221 rm -f conftest.$ac_objext conftest$ac_exeext
22222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22223   (eval $ac_link) 2>&5
22224   ac_status=$?
22225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226   (exit $ac_status); } &&
22227          { ac_try='test -s conftest$ac_exeext'
22228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229   (eval $ac_try) 2>&5
22230   ac_status=$?
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); }; }; then
22233   eval "$as_ac_var=yes"
22234 else
22235   echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22237
22238 eval "$as_ac_var=no"
22239 fi
22240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22241 fi
22242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22244 if test `eval echo '${'$as_ac_var'}'` = yes; then
22245   cat >>confdefs.h <<_ACEOF
22246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22247 _ACEOF
22248
22249 fi
22250 done
22251
22252   fi
22253
22254
22255   LIBS="$ac_save_LIBS"
22256   CXXFLAGS="$ac_save_CXXFLAGS"
22257
22258
22259
22260   echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
22261 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
22262   if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
22263     if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
22264   echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266
22267
22268
22269       ac_ext=cc
22270 ac_cpp='$CXXCPP $CPPFLAGS'
22271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22274
22275       cat >conftest.$ac_ext <<_ACEOF
22276 #line $LINENO "configure"
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282 #include <math.h>
22283 int
22284 main ()
22285 {
22286  __builtin_abs(0);
22287   ;
22288   return 0;
22289 }
22290 _ACEOF
22291 rm -f conftest.$ac_objext
22292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22293   (eval $ac_compile) 2>&5
22294   ac_status=$?
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); } &&
22297          { ac_try='test -s conftest.$ac_objext'
22298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299   (eval $ac_try) 2>&5
22300   ac_status=$?
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); }; }; then
22303   glibcxx_cv_func___builtin_abs_use=yes
22304 else
22305   echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22307
22308 glibcxx_cv_func___builtin_abs_use=no
22309 fi
22310 rm -f conftest.$ac_objext conftest.$ac_ext
22311       ac_ext=c
22312 ac_cpp='$CPP $CPPFLAGS'
22313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22316
22317
22318 fi
22319
22320   fi
22321   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
22322 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
22323   if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
22324     echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
22325 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
22326     if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
22327       if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
22328   echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330
22331         if test x$gcc_no_link = xyes; then
22332   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22334    { (exit 1); exit 1; }; }
22335 fi
22336 cat >conftest.$ac_ext <<_ACEOF
22337 #line $LINENO "configure"
22338 /* confdefs.h.  */
22339 _ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h.  */
22343 #include <math.h>
22344 int
22345 main ()
22346 {
22347  __builtin_abs(0);
22348   ;
22349   return 0;
22350 }
22351 _ACEOF
22352 rm -f conftest.$ac_objext conftest$ac_exeext
22353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22354   (eval $ac_link) 2>&5
22355   ac_status=$?
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } &&
22358          { ac_try='test -s conftest$ac_exeext'
22359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360   (eval $ac_try) 2>&5
22361   ac_status=$?
22362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363   (exit $ac_status); }; }; then
22364   glibcxx_cv_func___builtin_abs_link=yes
22365 else
22366   echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22368
22369 glibcxx_cv_func___builtin_abs_link=no
22370 fi
22371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22372
22373 fi
22374
22375     fi
22376     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
22377 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
22378     if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
22379       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22380       cat >>confdefs.h <<_ACEOF
22381 #define ${ac_tr_func} 1
22382 _ACEOF
22383
22384     fi
22385   fi
22386
22387
22388   echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
22389 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
22390   if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
22391     if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
22392   echo $ECHO_N "(cached) $ECHO_C" >&6
22393 else
22394
22395
22396
22397       ac_ext=cc
22398 ac_cpp='$CXXCPP $CPPFLAGS'
22399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22402
22403       cat >conftest.$ac_ext <<_ACEOF
22404 #line $LINENO "configure"
22405 /* confdefs.h.  */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h.  */
22410 #include <math.h>
22411 int
22412 main ()
22413 {
22414  __builtin_fabsf(0);
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 rm -f conftest.$ac_objext
22420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22421   (eval $ac_compile) 2>&5
22422   ac_status=$?
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); } &&
22425          { ac_try='test -s conftest.$ac_objext'
22426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427   (eval $ac_try) 2>&5
22428   ac_status=$?
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); }; }; then
22431   glibcxx_cv_func___builtin_fabsf_use=yes
22432 else
22433   echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22435
22436 glibcxx_cv_func___builtin_fabsf_use=no
22437 fi
22438 rm -f conftest.$ac_objext conftest.$ac_ext
22439       ac_ext=c
22440 ac_cpp='$CPP $CPPFLAGS'
22441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22444
22445
22446 fi
22447
22448   fi
22449   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
22450 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
22451   if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
22452     echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
22453 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
22454     if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
22455       if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
22456   echo $ECHO_N "(cached) $ECHO_C" >&6
22457 else
22458
22459         if test x$gcc_no_link = xyes; then
22460   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22462    { (exit 1); exit 1; }; }
22463 fi
22464 cat >conftest.$ac_ext <<_ACEOF
22465 #line $LINENO "configure"
22466 /* confdefs.h.  */
22467 _ACEOF
22468 cat confdefs.h >>conftest.$ac_ext
22469 cat >>conftest.$ac_ext <<_ACEOF
22470 /* end confdefs.h.  */
22471 #include <math.h>
22472 int
22473 main ()
22474 {
22475  __builtin_fabsf(0);
22476   ;
22477   return 0;
22478 }
22479 _ACEOF
22480 rm -f conftest.$ac_objext conftest$ac_exeext
22481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22482   (eval $ac_link) 2>&5
22483   ac_status=$?
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); } &&
22486          { ac_try='test -s conftest$ac_exeext'
22487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488   (eval $ac_try) 2>&5
22489   ac_status=$?
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); }; }; then
22492   glibcxx_cv_func___builtin_fabsf_link=yes
22493 else
22494   echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22496
22497 glibcxx_cv_func___builtin_fabsf_link=no
22498 fi
22499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22500
22501 fi
22502
22503     fi
22504     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
22505 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
22506     if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
22507       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22508       cat >>confdefs.h <<_ACEOF
22509 #define ${ac_tr_func} 1
22510 _ACEOF
22511
22512     fi
22513   fi
22514
22515
22516   echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
22517 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
22518   if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
22519     if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
22520   echo $ECHO_N "(cached) $ECHO_C" >&6
22521 else
22522
22523
22524
22525       ac_ext=cc
22526 ac_cpp='$CXXCPP $CPPFLAGS'
22527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22530
22531       cat >conftest.$ac_ext <<_ACEOF
22532 #line $LINENO "configure"
22533 /* confdefs.h.  */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h.  */
22538 #include <math.h>
22539 int
22540 main ()
22541 {
22542  __builtin_fabs(0);
22543   ;
22544   return 0;
22545 }
22546 _ACEOF
22547 rm -f conftest.$ac_objext
22548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22549   (eval $ac_compile) 2>&5
22550   ac_status=$?
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); } &&
22553          { ac_try='test -s conftest.$ac_objext'
22554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555   (eval $ac_try) 2>&5
22556   ac_status=$?
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); }; }; then
22559   glibcxx_cv_func___builtin_fabs_use=yes
22560 else
22561   echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22563
22564 glibcxx_cv_func___builtin_fabs_use=no
22565 fi
22566 rm -f conftest.$ac_objext conftest.$ac_ext
22567       ac_ext=c
22568 ac_cpp='$CPP $CPPFLAGS'
22569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22572
22573
22574 fi
22575
22576   fi
22577   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
22578 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
22579   if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
22580     echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
22581 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
22582     if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
22583       if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
22584   echo $ECHO_N "(cached) $ECHO_C" >&6
22585 else
22586
22587         if test x$gcc_no_link = xyes; then
22588   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22590    { (exit 1); exit 1; }; }
22591 fi
22592 cat >conftest.$ac_ext <<_ACEOF
22593 #line $LINENO "configure"
22594 /* confdefs.h.  */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h.  */
22599 #include <math.h>
22600 int
22601 main ()
22602 {
22603  __builtin_fabs(0);
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext conftest$ac_exeext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22610   (eval $ac_link) 2>&5
22611   ac_status=$?
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); } &&
22614          { ac_try='test -s conftest$ac_exeext'
22615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616   (eval $ac_try) 2>&5
22617   ac_status=$?
22618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619   (exit $ac_status); }; }; then
22620   glibcxx_cv_func___builtin_fabs_link=yes
22621 else
22622   echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22624
22625 glibcxx_cv_func___builtin_fabs_link=no
22626 fi
22627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22628
22629 fi
22630
22631     fi
22632     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
22633 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
22634     if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
22635       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22636       cat >>confdefs.h <<_ACEOF
22637 #define ${ac_tr_func} 1
22638 _ACEOF
22639
22640     fi
22641   fi
22642
22643
22644   echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
22645 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
22646   if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
22647     if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
22648   echo $ECHO_N "(cached) $ECHO_C" >&6
22649 else
22650
22651
22652
22653       ac_ext=cc
22654 ac_cpp='$CXXCPP $CPPFLAGS'
22655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22658
22659       cat >conftest.$ac_ext <<_ACEOF
22660 #line $LINENO "configure"
22661 /* confdefs.h.  */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h.  */
22666 #include <math.h>
22667 int
22668 main ()
22669 {
22670  __builtin_fabsl(0);
22671   ;
22672   return 0;
22673 }
22674 _ACEOF
22675 rm -f conftest.$ac_objext
22676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22677   (eval $ac_compile) 2>&5
22678   ac_status=$?
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); } &&
22681          { ac_try='test -s conftest.$ac_objext'
22682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683   (eval $ac_try) 2>&5
22684   ac_status=$?
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); }; }; then
22687   glibcxx_cv_func___builtin_fabsl_use=yes
22688 else
22689   echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22691
22692 glibcxx_cv_func___builtin_fabsl_use=no
22693 fi
22694 rm -f conftest.$ac_objext conftest.$ac_ext
22695       ac_ext=c
22696 ac_cpp='$CPP $CPPFLAGS'
22697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22700
22701
22702 fi
22703
22704   fi
22705   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
22706 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
22707   if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
22708     echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
22709 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
22710     if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
22711       if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
22712   echo $ECHO_N "(cached) $ECHO_C" >&6
22713 else
22714
22715         if test x$gcc_no_link = xyes; then
22716   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22718    { (exit 1); exit 1; }; }
22719 fi
22720 cat >conftest.$ac_ext <<_ACEOF
22721 #line $LINENO "configure"
22722 /* confdefs.h.  */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h.  */
22727 #include <math.h>
22728 int
22729 main ()
22730 {
22731  __builtin_fabsl(0);
22732   ;
22733   return 0;
22734 }
22735 _ACEOF
22736 rm -f conftest.$ac_objext conftest$ac_exeext
22737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22738   (eval $ac_link) 2>&5
22739   ac_status=$?
22740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741   (exit $ac_status); } &&
22742          { ac_try='test -s conftest$ac_exeext'
22743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744   (eval $ac_try) 2>&5
22745   ac_status=$?
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); }; }; then
22748   glibcxx_cv_func___builtin_fabsl_link=yes
22749 else
22750   echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22752
22753 glibcxx_cv_func___builtin_fabsl_link=no
22754 fi
22755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22756
22757 fi
22758
22759     fi
22760     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
22761 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
22762     if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
22763       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22764       cat >>confdefs.h <<_ACEOF
22765 #define ${ac_tr_func} 1
22766 _ACEOF
22767
22768     fi
22769   fi
22770
22771
22772   echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
22773 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
22774   if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
22775     if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
22776   echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778
22779
22780
22781       ac_ext=cc
22782 ac_cpp='$CXXCPP $CPPFLAGS'
22783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22786
22787       cat >conftest.$ac_ext <<_ACEOF
22788 #line $LINENO "configure"
22789 /* confdefs.h.  */
22790 _ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h.  */
22794 #include <math.h>
22795 int
22796 main ()
22797 {
22798  __builtin_labs(0);
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest.$ac_objext
22804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22805   (eval $ac_compile) 2>&5
22806   ac_status=$?
22807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); } &&
22809          { ac_try='test -s conftest.$ac_objext'
22810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811   (eval $ac_try) 2>&5
22812   ac_status=$?
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); }; }; then
22815   glibcxx_cv_func___builtin_labs_use=yes
22816 else
22817   echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22819
22820 glibcxx_cv_func___builtin_labs_use=no
22821 fi
22822 rm -f conftest.$ac_objext conftest.$ac_ext
22823       ac_ext=c
22824 ac_cpp='$CPP $CPPFLAGS'
22825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22828
22829
22830 fi
22831
22832   fi
22833   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
22834 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
22835   if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
22836     echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
22837 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
22838     if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
22839       if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
22840   echo $ECHO_N "(cached) $ECHO_C" >&6
22841 else
22842
22843         if test x$gcc_no_link = xyes; then
22844   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22846    { (exit 1); exit 1; }; }
22847 fi
22848 cat >conftest.$ac_ext <<_ACEOF
22849 #line $LINENO "configure"
22850 /* confdefs.h.  */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h.  */
22855 #include <math.h>
22856 int
22857 main ()
22858 {
22859  __builtin_labs(0);
22860   ;
22861   return 0;
22862 }
22863 _ACEOF
22864 rm -f conftest.$ac_objext conftest$ac_exeext
22865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22866   (eval $ac_link) 2>&5
22867   ac_status=$?
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); } &&
22870          { ac_try='test -s conftest$ac_exeext'
22871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872   (eval $ac_try) 2>&5
22873   ac_status=$?
22874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875   (exit $ac_status); }; }; then
22876   glibcxx_cv_func___builtin_labs_link=yes
22877 else
22878   echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22880
22881 glibcxx_cv_func___builtin_labs_link=no
22882 fi
22883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22884
22885 fi
22886
22887     fi
22888     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
22889 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
22890     if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
22891       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22892       cat >>confdefs.h <<_ACEOF
22893 #define ${ac_tr_func} 1
22894 _ACEOF
22895
22896     fi
22897   fi
22898
22899
22900
22901   echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
22902 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
22903   if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
22904     if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
22905   echo $ECHO_N "(cached) $ECHO_C" >&6
22906 else
22907
22908
22909
22910       ac_ext=cc
22911 ac_cpp='$CXXCPP $CPPFLAGS'
22912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22915
22916       cat >conftest.$ac_ext <<_ACEOF
22917 #line $LINENO "configure"
22918 /* confdefs.h.  */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h.  */
22923 #include <math.h>
22924 int
22925 main ()
22926 {
22927  __builtin_sqrtf(0);
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 rm -f conftest.$ac_objext
22933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22934   (eval $ac_compile) 2>&5
22935   ac_status=$?
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); } &&
22938          { ac_try='test -s conftest.$ac_objext'
22939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940   (eval $ac_try) 2>&5
22941   ac_status=$?
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); }; }; then
22944   glibcxx_cv_func___builtin_sqrtf_use=yes
22945 else
22946   echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22948
22949 glibcxx_cv_func___builtin_sqrtf_use=no
22950 fi
22951 rm -f conftest.$ac_objext conftest.$ac_ext
22952       ac_ext=c
22953 ac_cpp='$CPP $CPPFLAGS'
22954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22957
22958
22959 fi
22960
22961   fi
22962   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
22963 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
22964   if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
22965     echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
22966 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
22967     if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
22968       if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
22969   echo $ECHO_N "(cached) $ECHO_C" >&6
22970 else
22971
22972         if test x$gcc_no_link = xyes; then
22973   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22975    { (exit 1); exit 1; }; }
22976 fi
22977 cat >conftest.$ac_ext <<_ACEOF
22978 #line $LINENO "configure"
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 #include <math.h>
22985 int
22986 main ()
22987 {
22988  __builtin_sqrtf(0);
22989   ;
22990   return 0;
22991 }
22992 _ACEOF
22993 rm -f conftest.$ac_objext conftest$ac_exeext
22994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22995   (eval $ac_link) 2>&5
22996   ac_status=$?
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); } &&
22999          { ac_try='test -s conftest$ac_exeext'
23000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001   (eval $ac_try) 2>&5
23002   ac_status=$?
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); }; }; then
23005   glibcxx_cv_func___builtin_sqrtf_link=yes
23006 else
23007   echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23009
23010 glibcxx_cv_func___builtin_sqrtf_link=no
23011 fi
23012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23013
23014 fi
23015
23016     fi
23017     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
23018 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
23019     if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
23020       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23021       cat >>confdefs.h <<_ACEOF
23022 #define ${ac_tr_func} 1
23023 _ACEOF
23024
23025     fi
23026   fi
23027
23028
23029   echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
23030 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
23031   if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
23032     if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
23033   echo $ECHO_N "(cached) $ECHO_C" >&6
23034 else
23035
23036
23037
23038       ac_ext=cc
23039 ac_cpp='$CXXCPP $CPPFLAGS'
23040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23043
23044       cat >conftest.$ac_ext <<_ACEOF
23045 #line $LINENO "configure"
23046 /* confdefs.h.  */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h.  */
23051 #include <math.h>
23052 int
23053 main ()
23054 {
23055  __builtin_sqrt(0);
23056   ;
23057   return 0;
23058 }
23059 _ACEOF
23060 rm -f conftest.$ac_objext
23061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23062   (eval $ac_compile) 2>&5
23063   ac_status=$?
23064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065   (exit $ac_status); } &&
23066          { ac_try='test -s conftest.$ac_objext'
23067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068   (eval $ac_try) 2>&5
23069   ac_status=$?
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); }; }; then
23072   glibcxx_cv_func___builtin_sqrt_use=yes
23073 else
23074   echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077 glibcxx_cv_func___builtin_sqrt_use=no
23078 fi
23079 rm -f conftest.$ac_objext conftest.$ac_ext
23080       ac_ext=c
23081 ac_cpp='$CPP $CPPFLAGS'
23082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23085
23086
23087 fi
23088
23089   fi
23090   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
23091 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
23092   if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
23093     echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
23094 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
23095     if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
23096       if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
23097   echo $ECHO_N "(cached) $ECHO_C" >&6
23098 else
23099
23100         if test x$gcc_no_link = xyes; then
23101   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23102 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23103    { (exit 1); exit 1; }; }
23104 fi
23105 cat >conftest.$ac_ext <<_ACEOF
23106 #line $LINENO "configure"
23107 /* confdefs.h.  */
23108 _ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h.  */
23112 #include <math.h>
23113 int
23114 main ()
23115 {
23116  __builtin_sqrt(0);
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123   (eval $ac_link) 2>&5
23124   ac_status=$?
23125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126   (exit $ac_status); } &&
23127          { ac_try='test -s conftest$ac_exeext'
23128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129   (eval $ac_try) 2>&5
23130   ac_status=$?
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); }; }; then
23133   glibcxx_cv_func___builtin_sqrt_link=yes
23134 else
23135   echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23137
23138 glibcxx_cv_func___builtin_sqrt_link=no
23139 fi
23140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23141
23142 fi
23143
23144     fi
23145     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
23146 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
23147     if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
23148       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23149       cat >>confdefs.h <<_ACEOF
23150 #define ${ac_tr_func} 1
23151 _ACEOF
23152
23153     fi
23154   fi
23155
23156
23157   echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
23158 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
23159   if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
23160     if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
23161   echo $ECHO_N "(cached) $ECHO_C" >&6
23162 else
23163
23164
23165
23166       ac_ext=cc
23167 ac_cpp='$CXXCPP $CPPFLAGS'
23168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23171
23172       cat >conftest.$ac_ext <<_ACEOF
23173 #line $LINENO "configure"
23174 /* confdefs.h.  */
23175 _ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h.  */
23179 #include <math.h>
23180 int
23181 main ()
23182 {
23183  __builtin_sqrtl(0);
23184   ;
23185   return 0;
23186 }
23187 _ACEOF
23188 rm -f conftest.$ac_objext
23189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23190   (eval $ac_compile) 2>&5
23191   ac_status=$?
23192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); } &&
23194          { ac_try='test -s conftest.$ac_objext'
23195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196   (eval $ac_try) 2>&5
23197   ac_status=$?
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); }; }; then
23200   glibcxx_cv_func___builtin_sqrtl_use=yes
23201 else
23202   echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23204
23205 glibcxx_cv_func___builtin_sqrtl_use=no
23206 fi
23207 rm -f conftest.$ac_objext conftest.$ac_ext
23208       ac_ext=c
23209 ac_cpp='$CPP $CPPFLAGS'
23210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23213
23214
23215 fi
23216
23217   fi
23218   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
23219 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
23220   if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
23221     echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
23222 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
23223     if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
23224       if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
23225   echo $ECHO_N "(cached) $ECHO_C" >&6
23226 else
23227
23228         if test x$gcc_no_link = xyes; then
23229   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23230 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23231    { (exit 1); exit 1; }; }
23232 fi
23233 cat >conftest.$ac_ext <<_ACEOF
23234 #line $LINENO "configure"
23235 /* confdefs.h.  */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h.  */
23240 #include <math.h>
23241 int
23242 main ()
23243 {
23244  __builtin_sqrtl(0);
23245   ;
23246   return 0;
23247 }
23248 _ACEOF
23249 rm -f conftest.$ac_objext conftest$ac_exeext
23250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23251   (eval $ac_link) 2>&5
23252   ac_status=$?
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); } &&
23255          { ac_try='test -s conftest$ac_exeext'
23256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257   (eval $ac_try) 2>&5
23258   ac_status=$?
23259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260   (exit $ac_status); }; }; then
23261   glibcxx_cv_func___builtin_sqrtl_link=yes
23262 else
23263   echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23265
23266 glibcxx_cv_func___builtin_sqrtl_link=no
23267 fi
23268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23269
23270 fi
23271
23272     fi
23273     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
23274 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
23275     if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
23276       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23277       cat >>confdefs.h <<_ACEOF
23278 #define ${ac_tr_func} 1
23279 _ACEOF
23280
23281     fi
23282   fi
23283
23284
23285
23286   echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
23287 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
23288   if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
23289     if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
23290   echo $ECHO_N "(cached) $ECHO_C" >&6
23291 else
23292
23293
23294
23295       ac_ext=cc
23296 ac_cpp='$CXXCPP $CPPFLAGS'
23297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23300
23301       cat >conftest.$ac_ext <<_ACEOF
23302 #line $LINENO "configure"
23303 /* confdefs.h.  */
23304 _ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h.  */
23308 #include <math.h>
23309 int
23310 main ()
23311 {
23312  __builtin_sinf(0);
23313   ;
23314   return 0;
23315 }
23316 _ACEOF
23317 rm -f conftest.$ac_objext
23318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23319   (eval $ac_compile) 2>&5
23320   ac_status=$?
23321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322   (exit $ac_status); } &&
23323          { ac_try='test -s conftest.$ac_objext'
23324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23325   (eval $ac_try) 2>&5
23326   ac_status=$?
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); }; }; then
23329   glibcxx_cv_func___builtin_sinf_use=yes
23330 else
23331   echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23333
23334 glibcxx_cv_func___builtin_sinf_use=no
23335 fi
23336 rm -f conftest.$ac_objext conftest.$ac_ext
23337       ac_ext=c
23338 ac_cpp='$CPP $CPPFLAGS'
23339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23342
23343
23344 fi
23345
23346   fi
23347   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
23348 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
23349   if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
23350     echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
23351 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
23352     if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
23353       if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
23354   echo $ECHO_N "(cached) $ECHO_C" >&6
23355 else
23356
23357         if test x$gcc_no_link = xyes; then
23358   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23360    { (exit 1); exit 1; }; }
23361 fi
23362 cat >conftest.$ac_ext <<_ACEOF
23363 #line $LINENO "configure"
23364 /* confdefs.h.  */
23365 _ACEOF
23366 cat confdefs.h >>conftest.$ac_ext
23367 cat >>conftest.$ac_ext <<_ACEOF
23368 /* end confdefs.h.  */
23369 #include <math.h>
23370 int
23371 main ()
23372 {
23373  __builtin_sinf(0);
23374   ;
23375   return 0;
23376 }
23377 _ACEOF
23378 rm -f conftest.$ac_objext conftest$ac_exeext
23379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23380   (eval $ac_link) 2>&5
23381   ac_status=$?
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); } &&
23384          { ac_try='test -s conftest$ac_exeext'
23385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386   (eval $ac_try) 2>&5
23387   ac_status=$?
23388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389   (exit $ac_status); }; }; then
23390   glibcxx_cv_func___builtin_sinf_link=yes
23391 else
23392   echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23394
23395 glibcxx_cv_func___builtin_sinf_link=no
23396 fi
23397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23398
23399 fi
23400
23401     fi
23402     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
23403 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
23404     if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
23405       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23406       cat >>confdefs.h <<_ACEOF
23407 #define ${ac_tr_func} 1
23408 _ACEOF
23409
23410     fi
23411   fi
23412
23413
23414   echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
23415 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
23416   if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
23417     if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
23418   echo $ECHO_N "(cached) $ECHO_C" >&6
23419 else
23420
23421
23422
23423       ac_ext=cc
23424 ac_cpp='$CXXCPP $CPPFLAGS'
23425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23428
23429       cat >conftest.$ac_ext <<_ACEOF
23430 #line $LINENO "configure"
23431 /* confdefs.h.  */
23432 _ACEOF
23433 cat confdefs.h >>conftest.$ac_ext
23434 cat >>conftest.$ac_ext <<_ACEOF
23435 /* end confdefs.h.  */
23436 #include <math.h>
23437 int
23438 main ()
23439 {
23440  __builtin_sin(0);
23441   ;
23442   return 0;
23443 }
23444 _ACEOF
23445 rm -f conftest.$ac_objext
23446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23447   (eval $ac_compile) 2>&5
23448   ac_status=$?
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); } &&
23451          { ac_try='test -s conftest.$ac_objext'
23452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453   (eval $ac_try) 2>&5
23454   ac_status=$?
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); }; }; then
23457   glibcxx_cv_func___builtin_sin_use=yes
23458 else
23459   echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23461
23462 glibcxx_cv_func___builtin_sin_use=no
23463 fi
23464 rm -f conftest.$ac_objext conftest.$ac_ext
23465       ac_ext=c
23466 ac_cpp='$CPP $CPPFLAGS'
23467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23470
23471
23472 fi
23473
23474   fi
23475   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
23476 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
23477   if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
23478     echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
23479 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
23480     if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
23481       if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
23482   echo $ECHO_N "(cached) $ECHO_C" >&6
23483 else
23484
23485         if test x$gcc_no_link = xyes; then
23486   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23488    { (exit 1); exit 1; }; }
23489 fi
23490 cat >conftest.$ac_ext <<_ACEOF
23491 #line $LINENO "configure"
23492 /* confdefs.h.  */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h.  */
23497 #include <math.h>
23498 int
23499 main ()
23500 {
23501  __builtin_sin(0);
23502   ;
23503   return 0;
23504 }
23505 _ACEOF
23506 rm -f conftest.$ac_objext conftest$ac_exeext
23507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508   (eval $ac_link) 2>&5
23509   ac_status=$?
23510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511   (exit $ac_status); } &&
23512          { ac_try='test -s conftest$ac_exeext'
23513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514   (eval $ac_try) 2>&5
23515   ac_status=$?
23516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517   (exit $ac_status); }; }; then
23518   glibcxx_cv_func___builtin_sin_link=yes
23519 else
23520   echo "$as_me: failed program was:" >&5
23521 sed 's/^/| /' conftest.$ac_ext >&5
23522
23523 glibcxx_cv_func___builtin_sin_link=no
23524 fi
23525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23526
23527 fi
23528
23529     fi
23530     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
23531 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
23532     if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
23533       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23534       cat >>confdefs.h <<_ACEOF
23535 #define ${ac_tr_func} 1
23536 _ACEOF
23537
23538     fi
23539   fi
23540
23541
23542   echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
23543 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
23544   if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
23545     if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
23546   echo $ECHO_N "(cached) $ECHO_C" >&6
23547 else
23548
23549
23550
23551       ac_ext=cc
23552 ac_cpp='$CXXCPP $CPPFLAGS'
23553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23556
23557       cat >conftest.$ac_ext <<_ACEOF
23558 #line $LINENO "configure"
23559 /* confdefs.h.  */
23560 _ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h.  */
23564 #include <math.h>
23565 int
23566 main ()
23567 {
23568  __builtin_sinl(0);
23569   ;
23570   return 0;
23571 }
23572 _ACEOF
23573 rm -f conftest.$ac_objext
23574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23575   (eval $ac_compile) 2>&5
23576   ac_status=$?
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); } &&
23579          { ac_try='test -s conftest.$ac_objext'
23580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581   (eval $ac_try) 2>&5
23582   ac_status=$?
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); }; }; then
23585   glibcxx_cv_func___builtin_sinl_use=yes
23586 else
23587   echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23589
23590 glibcxx_cv_func___builtin_sinl_use=no
23591 fi
23592 rm -f conftest.$ac_objext conftest.$ac_ext
23593       ac_ext=c
23594 ac_cpp='$CPP $CPPFLAGS'
23595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23598
23599
23600 fi
23601
23602   fi
23603   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
23604 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
23605   if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
23606     echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
23607 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
23608     if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
23609       if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
23610   echo $ECHO_N "(cached) $ECHO_C" >&6
23611 else
23612
23613         if test x$gcc_no_link = xyes; then
23614   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23616    { (exit 1); exit 1; }; }
23617 fi
23618 cat >conftest.$ac_ext <<_ACEOF
23619 #line $LINENO "configure"
23620 /* confdefs.h.  */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h.  */
23625 #include <math.h>
23626 int
23627 main ()
23628 {
23629  __builtin_sinl(0);
23630   ;
23631   return 0;
23632 }
23633 _ACEOF
23634 rm -f conftest.$ac_objext conftest$ac_exeext
23635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23636   (eval $ac_link) 2>&5
23637   ac_status=$?
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); } &&
23640          { ac_try='test -s conftest$ac_exeext'
23641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642   (eval $ac_try) 2>&5
23643   ac_status=$?
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); }; }; then
23646   glibcxx_cv_func___builtin_sinl_link=yes
23647 else
23648   echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23650
23651 glibcxx_cv_func___builtin_sinl_link=no
23652 fi
23653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23654
23655 fi
23656
23657     fi
23658     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
23659 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
23660     if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
23661       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23662       cat >>confdefs.h <<_ACEOF
23663 #define ${ac_tr_func} 1
23664 _ACEOF
23665
23666     fi
23667   fi
23668
23669
23670
23671   echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
23672 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
23673   if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
23674     if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
23675   echo $ECHO_N "(cached) $ECHO_C" >&6
23676 else
23677
23678
23679
23680       ac_ext=cc
23681 ac_cpp='$CXXCPP $CPPFLAGS'
23682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23685
23686       cat >conftest.$ac_ext <<_ACEOF
23687 #line $LINENO "configure"
23688 /* confdefs.h.  */
23689 _ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h.  */
23693 #include <math.h>
23694 int
23695 main ()
23696 {
23697  __builtin_cosf(0);
23698   ;
23699   return 0;
23700 }
23701 _ACEOF
23702 rm -f conftest.$ac_objext
23703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23704   (eval $ac_compile) 2>&5
23705   ac_status=$?
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); } &&
23708          { ac_try='test -s conftest.$ac_objext'
23709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710   (eval $ac_try) 2>&5
23711   ac_status=$?
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); }; }; then
23714   glibcxx_cv_func___builtin_cosf_use=yes
23715 else
23716   echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23718
23719 glibcxx_cv_func___builtin_cosf_use=no
23720 fi
23721 rm -f conftest.$ac_objext conftest.$ac_ext
23722       ac_ext=c
23723 ac_cpp='$CPP $CPPFLAGS'
23724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23727
23728
23729 fi
23730
23731   fi
23732   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
23733 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
23734   if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
23735     echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
23736 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
23737     if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
23738       if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
23739   echo $ECHO_N "(cached) $ECHO_C" >&6
23740 else
23741
23742         if test x$gcc_no_link = xyes; then
23743   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23744 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23745    { (exit 1); exit 1; }; }
23746 fi
23747 cat >conftest.$ac_ext <<_ACEOF
23748 #line $LINENO "configure"
23749 /* confdefs.h.  */
23750 _ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h.  */
23754 #include <math.h>
23755 int
23756 main ()
23757 {
23758  __builtin_cosf(0);
23759   ;
23760   return 0;
23761 }
23762 _ACEOF
23763 rm -f conftest.$ac_objext conftest$ac_exeext
23764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23765   (eval $ac_link) 2>&5
23766   ac_status=$?
23767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768   (exit $ac_status); } &&
23769          { ac_try='test -s conftest$ac_exeext'
23770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771   (eval $ac_try) 2>&5
23772   ac_status=$?
23773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774   (exit $ac_status); }; }; then
23775   glibcxx_cv_func___builtin_cosf_link=yes
23776 else
23777   echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23779
23780 glibcxx_cv_func___builtin_cosf_link=no
23781 fi
23782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23783
23784 fi
23785
23786     fi
23787     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
23788 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
23789     if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
23790       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23791       cat >>confdefs.h <<_ACEOF
23792 #define ${ac_tr_func} 1
23793 _ACEOF
23794
23795     fi
23796   fi
23797
23798
23799   echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
23800 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
23801   if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
23802     if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
23803   echo $ECHO_N "(cached) $ECHO_C" >&6
23804 else
23805
23806
23807
23808       ac_ext=cc
23809 ac_cpp='$CXXCPP $CPPFLAGS'
23810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23813
23814       cat >conftest.$ac_ext <<_ACEOF
23815 #line $LINENO "configure"
23816 /* confdefs.h.  */
23817 _ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h.  */
23821 #include <math.h>
23822 int
23823 main ()
23824 {
23825  __builtin_cos(0);
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23832   (eval $ac_compile) 2>&5
23833   ac_status=$?
23834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); } &&
23836          { ac_try='test -s conftest.$ac_objext'
23837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838   (eval $ac_try) 2>&5
23839   ac_status=$?
23840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841   (exit $ac_status); }; }; then
23842   glibcxx_cv_func___builtin_cos_use=yes
23843 else
23844   echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847 glibcxx_cv_func___builtin_cos_use=no
23848 fi
23849 rm -f conftest.$ac_objext conftest.$ac_ext
23850       ac_ext=c
23851 ac_cpp='$CPP $CPPFLAGS'
23852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23855
23856
23857 fi
23858
23859   fi
23860   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
23861 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
23862   if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
23863     echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
23864 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
23865     if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
23866       if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
23867   echo $ECHO_N "(cached) $ECHO_C" >&6
23868 else
23869
23870         if test x$gcc_no_link = xyes; then
23871   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23872 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23873    { (exit 1); exit 1; }; }
23874 fi
23875 cat >conftest.$ac_ext <<_ACEOF
23876 #line $LINENO "configure"
23877 /* confdefs.h.  */
23878 _ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h.  */
23882 #include <math.h>
23883 int
23884 main ()
23885 {
23886  __builtin_cos(0);
23887   ;
23888   return 0;
23889 }
23890 _ACEOF
23891 rm -f conftest.$ac_objext conftest$ac_exeext
23892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23893   (eval $ac_link) 2>&5
23894   ac_status=$?
23895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896   (exit $ac_status); } &&
23897          { ac_try='test -s conftest$ac_exeext'
23898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23899   (eval $ac_try) 2>&5
23900   ac_status=$?
23901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902   (exit $ac_status); }; }; then
23903   glibcxx_cv_func___builtin_cos_link=yes
23904 else
23905   echo "$as_me: failed program was:" >&5
23906 sed 's/^/| /' conftest.$ac_ext >&5
23907
23908 glibcxx_cv_func___builtin_cos_link=no
23909 fi
23910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23911
23912 fi
23913
23914     fi
23915     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
23916 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
23917     if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
23918       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23919       cat >>confdefs.h <<_ACEOF
23920 #define ${ac_tr_func} 1
23921 _ACEOF
23922
23923     fi
23924   fi
23925
23926
23927   echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
23928 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
23929   if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
23930     if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
23931   echo $ECHO_N "(cached) $ECHO_C" >&6
23932 else
23933
23934
23935
23936       ac_ext=cc
23937 ac_cpp='$CXXCPP $CPPFLAGS'
23938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23941
23942       cat >conftest.$ac_ext <<_ACEOF
23943 #line $LINENO "configure"
23944 /* confdefs.h.  */
23945 _ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h.  */
23949 #include <math.h>
23950 int
23951 main ()
23952 {
23953  __builtin_cosl(0);
23954   ;
23955   return 0;
23956 }
23957 _ACEOF
23958 rm -f conftest.$ac_objext
23959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23960   (eval $ac_compile) 2>&5
23961   ac_status=$?
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); } &&
23964          { ac_try='test -s conftest.$ac_objext'
23965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966   (eval $ac_try) 2>&5
23967   ac_status=$?
23968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969   (exit $ac_status); }; }; then
23970   glibcxx_cv_func___builtin_cosl_use=yes
23971 else
23972   echo "$as_me: failed program was:" >&5
23973 sed 's/^/| /' conftest.$ac_ext >&5
23974
23975 glibcxx_cv_func___builtin_cosl_use=no
23976 fi
23977 rm -f conftest.$ac_objext conftest.$ac_ext
23978       ac_ext=c
23979 ac_cpp='$CPP $CPPFLAGS'
23980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23983
23984
23985 fi
23986
23987   fi
23988   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
23989 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
23990   if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
23991     echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
23992 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
23993     if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
23994       if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
23995   echo $ECHO_N "(cached) $ECHO_C" >&6
23996 else
23997
23998         if test x$gcc_no_link = xyes; then
23999   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24000 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24001    { (exit 1); exit 1; }; }
24002 fi
24003 cat >conftest.$ac_ext <<_ACEOF
24004 #line $LINENO "configure"
24005 /* confdefs.h.  */
24006 _ACEOF
24007 cat confdefs.h >>conftest.$ac_ext
24008 cat >>conftest.$ac_ext <<_ACEOF
24009 /* end confdefs.h.  */
24010 #include <math.h>
24011 int
24012 main ()
24013 {
24014  __builtin_cosl(0);
24015   ;
24016   return 0;
24017 }
24018 _ACEOF
24019 rm -f conftest.$ac_objext conftest$ac_exeext
24020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24021   (eval $ac_link) 2>&5
24022   ac_status=$?
24023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024   (exit $ac_status); } &&
24025          { ac_try='test -s conftest$ac_exeext'
24026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027   (eval $ac_try) 2>&5
24028   ac_status=$?
24029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030   (exit $ac_status); }; }; then
24031   glibcxx_cv_func___builtin_cosl_link=yes
24032 else
24033   echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24035
24036 glibcxx_cv_func___builtin_cosl_link=no
24037 fi
24038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24039
24040 fi
24041
24042     fi
24043     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
24044 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
24045     if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
24046       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24047       cat >>confdefs.h <<_ACEOF
24048 #define ${ac_tr_func} 1
24049 _ACEOF
24050
24051     fi
24052   fi
24053
24054
24055               dummyvar=no
24056   if test x$dummyvar = x"yes"; then
24057     cat >>confdefs.h <<\_ACEOF
24058 #define HAVE___BUILTIN_ABS 1
24059 _ACEOF
24060
24061     cat >>confdefs.h <<\_ACEOF
24062 #define HAVE___BUILTIN_LABS 1
24063 _ACEOF
24064
24065     cat >>confdefs.h <<\_ACEOF
24066 #define HAVE___BUILTIN_COS 1
24067 _ACEOF
24068
24069     cat >>confdefs.h <<\_ACEOF
24070 #define HAVE___BUILTIN_COSF 1
24071 _ACEOF
24072
24073     cat >>confdefs.h <<\_ACEOF
24074 #define HAVE___BUILTIN_COSL 1
24075 _ACEOF
24076
24077     cat >>confdefs.h <<\_ACEOF
24078 #define HAVE___BUILTIN_FABS 1
24079 _ACEOF
24080
24081     cat >>confdefs.h <<\_ACEOF
24082 #define HAVE___BUILTIN_FABSF 1
24083 _ACEOF
24084
24085     cat >>confdefs.h <<\_ACEOF
24086 #define HAVE___BUILTIN_FABSL 1
24087 _ACEOF
24088
24089     cat >>confdefs.h <<\_ACEOF
24090 #define HAVE___BUILTIN_SIN 1
24091 _ACEOF
24092
24093     cat >>confdefs.h <<\_ACEOF
24094 #define HAVE___BUILTIN_SINF 1
24095 _ACEOF
24096
24097     cat >>confdefs.h <<\_ACEOF
24098 #define HAVE___BUILTIN_SINL 1
24099 _ACEOF
24100
24101     cat >>confdefs.h <<\_ACEOF
24102 #define HAVE___BUILTIN_SQRT 1
24103 _ACEOF
24104
24105     cat >>confdefs.h <<\_ACEOF
24106 #define HAVE___BUILTIN_SQRTF 1
24107 _ACEOF
24108
24109     cat >>confdefs.h <<\_ACEOF
24110 #define HAVE___BUILTIN_SQRTL 1
24111 _ACEOF
24112
24113   fi
24114
24115
24116
24117 echo "$as_me:$LINENO: checking for main in -lm" >&5
24118 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
24119 if test "${ac_cv_lib_m_main+set}" = set; then
24120   echo $ECHO_N "(cached) $ECHO_C" >&6
24121 else
24122   ac_check_lib_save_LIBS=$LIBS
24123 LIBS="-lm  $LIBS"
24124 if test x$gcc_no_link = xyes; then
24125   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24126 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24127    { (exit 1); exit 1; }; }
24128 fi
24129 cat >conftest.$ac_ext <<_ACEOF
24130 #line $LINENO "configure"
24131 /* confdefs.h.  */
24132 _ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h.  */
24136
24137
24138 int
24139 main ()
24140 {
24141 main ();
24142   ;
24143   return 0;
24144 }
24145 _ACEOF
24146 rm -f conftest.$ac_objext conftest$ac_exeext
24147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24148   (eval $ac_link) 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); } &&
24152          { ac_try='test -s conftest$ac_exeext'
24153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154   (eval $ac_try) 2>&5
24155   ac_status=$?
24156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157   (exit $ac_status); }; }; then
24158   ac_cv_lib_m_main=yes
24159 else
24160   echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24162
24163 ac_cv_lib_m_main=no
24164 fi
24165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24166 LIBS=$ac_check_lib_save_LIBS
24167 fi
24168 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
24169 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
24170 if test $ac_cv_lib_m_main = yes; then
24171   cat >>confdefs.h <<_ACEOF
24172 #define HAVE_LIBM 1
24173 _ACEOF
24174
24175   LIBS="-lm $LIBS"
24176
24177 fi
24178
24179
24180 for ac_func in copysignf
24181 do
24182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24183 echo "$as_me:$LINENO: checking for $ac_func" >&5
24184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24185 if eval "test \"\${$as_ac_var+set}\" = set"; then
24186   echo $ECHO_N "(cached) $ECHO_C" >&6
24187 else
24188   if test x$gcc_no_link = xyes; then
24189   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24190 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24191    { (exit 1); exit 1; }; }
24192 fi
24193 cat >conftest.$ac_ext <<_ACEOF
24194 #line $LINENO "configure"
24195 /* confdefs.h.  */
24196 _ACEOF
24197 cat confdefs.h >>conftest.$ac_ext
24198 cat >>conftest.$ac_ext <<_ACEOF
24199 /* end confdefs.h.  */
24200 /* System header to define __stub macros and hopefully few prototypes,
24201     which can conflict with char $ac_func (); below.
24202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24203     <limits.h> exists even on freestanding compilers.  */
24204 #ifdef __STDC__
24205 # include <limits.h>
24206 #else
24207 # include <assert.h>
24208 #endif
24209 /* Override any gcc2 internal prototype to avoid an error.  */
24210 #ifdef __cplusplus
24211 extern "C"
24212 {
24213 #endif
24214 /* We use char because int might match the return type of a gcc2
24215    builtin and then its argument prototype would still apply.  */
24216 char $ac_func ();
24217 /* The GNU C library defines this for functions which it implements
24218     to always fail with ENOSYS.  Some functions are actually named
24219     something starting with __ and the normal name is an alias.  */
24220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24221 choke me
24222 #else
24223 char (*f) () = $ac_func;
24224 #endif
24225 #ifdef __cplusplus
24226 }
24227 #endif
24228
24229 int
24230 main ()
24231 {
24232 return f != $ac_func;
24233   ;
24234   return 0;
24235 }
24236 _ACEOF
24237 rm -f conftest.$ac_objext conftest$ac_exeext
24238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24239   (eval $ac_link) 2>&5
24240   ac_status=$?
24241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242   (exit $ac_status); } &&
24243          { ac_try='test -s conftest$ac_exeext'
24244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245   (eval $ac_try) 2>&5
24246   ac_status=$?
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); }; }; then
24249   eval "$as_ac_var=yes"
24250 else
24251   echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24253
24254 eval "$as_ac_var=no"
24255 fi
24256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24257 fi
24258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24260 if test `eval echo '${'$as_ac_var'}'` = yes; then
24261   cat >>confdefs.h <<_ACEOF
24262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24263 _ACEOF
24264
24265 else
24266   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
24267 fi
24268 done
24269
24270
24271
24272 for ac_func in __signbit
24273 do
24274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24275 echo "$as_me:$LINENO: checking for $ac_func" >&5
24276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24277 if eval "test \"\${$as_ac_var+set}\" = set"; then
24278   echo $ECHO_N "(cached) $ECHO_C" >&6
24279 else
24280   if test x$gcc_no_link = xyes; then
24281   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24282 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24283    { (exit 1); exit 1; }; }
24284 fi
24285 cat >conftest.$ac_ext <<_ACEOF
24286 #line $LINENO "configure"
24287 /* confdefs.h.  */
24288 _ACEOF
24289 cat confdefs.h >>conftest.$ac_ext
24290 cat >>conftest.$ac_ext <<_ACEOF
24291 /* end confdefs.h.  */
24292 /* System header to define __stub macros and hopefully few prototypes,
24293     which can conflict with char $ac_func (); below.
24294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24295     <limits.h> exists even on freestanding compilers.  */
24296 #ifdef __STDC__
24297 # include <limits.h>
24298 #else
24299 # include <assert.h>
24300 #endif
24301 /* Override any gcc2 internal prototype to avoid an error.  */
24302 #ifdef __cplusplus
24303 extern "C"
24304 {
24305 #endif
24306 /* We use char because int might match the return type of a gcc2
24307    builtin and then its argument prototype would still apply.  */
24308 char $ac_func ();
24309 /* The GNU C library defines this for functions which it implements
24310     to always fail with ENOSYS.  Some functions are actually named
24311     something starting with __ and the normal name is an alias.  */
24312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24313 choke me
24314 #else
24315 char (*f) () = $ac_func;
24316 #endif
24317 #ifdef __cplusplus
24318 }
24319 #endif
24320
24321 int
24322 main ()
24323 {
24324 return f != $ac_func;
24325   ;
24326   return 0;
24327 }
24328 _ACEOF
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24331   (eval $ac_link) 2>&5
24332   ac_status=$?
24333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334   (exit $ac_status); } &&
24335          { ac_try='test -s conftest$ac_exeext'
24336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337   (eval $ac_try) 2>&5
24338   ac_status=$?
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); }; }; then
24341   eval "$as_ac_var=yes"
24342 else
24343   echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24345
24346 eval "$as_ac_var=no"
24347 fi
24348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24349 fi
24350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24352 if test `eval echo '${'$as_ac_var'}'` = yes; then
24353   cat >>confdefs.h <<_ACEOF
24354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24355 _ACEOF
24356
24357 else
24358   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
24359 fi
24360 done
24361
24362
24363 for ac_func in __signbitf
24364 do
24365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24366 echo "$as_me:$LINENO: checking for $ac_func" >&5
24367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24368 if eval "test \"\${$as_ac_var+set}\" = set"; then
24369   echo $ECHO_N "(cached) $ECHO_C" >&6
24370 else
24371   if test x$gcc_no_link = xyes; then
24372   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24374    { (exit 1); exit 1; }; }
24375 fi
24376 cat >conftest.$ac_ext <<_ACEOF
24377 #line $LINENO "configure"
24378 /* confdefs.h.  */
24379 _ACEOF
24380 cat confdefs.h >>conftest.$ac_ext
24381 cat >>conftest.$ac_ext <<_ACEOF
24382 /* end confdefs.h.  */
24383 /* System header to define __stub macros and hopefully few prototypes,
24384     which can conflict with char $ac_func (); below.
24385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24386     <limits.h> exists even on freestanding compilers.  */
24387 #ifdef __STDC__
24388 # include <limits.h>
24389 #else
24390 # include <assert.h>
24391 #endif
24392 /* Override any gcc2 internal prototype to avoid an error.  */
24393 #ifdef __cplusplus
24394 extern "C"
24395 {
24396 #endif
24397 /* We use char because int might match the return type of a gcc2
24398    builtin and then its argument prototype would still apply.  */
24399 char $ac_func ();
24400 /* The GNU C library defines this for functions which it implements
24401     to always fail with ENOSYS.  Some functions are actually named
24402     something starting with __ and the normal name is an alias.  */
24403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24404 choke me
24405 #else
24406 char (*f) () = $ac_func;
24407 #endif
24408 #ifdef __cplusplus
24409 }
24410 #endif
24411
24412 int
24413 main ()
24414 {
24415 return f != $ac_func;
24416   ;
24417   return 0;
24418 }
24419 _ACEOF
24420 rm -f conftest.$ac_objext conftest$ac_exeext
24421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24422   (eval $ac_link) 2>&5
24423   ac_status=$?
24424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425   (exit $ac_status); } &&
24426          { ac_try='test -s conftest$ac_exeext'
24427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428   (eval $ac_try) 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); }; }; then
24432   eval "$as_ac_var=yes"
24433 else
24434   echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24436
24437 eval "$as_ac_var=no"
24438 fi
24439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24440 fi
24441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24443 if test `eval echo '${'$as_ac_var'}'` = yes; then
24444   cat >>confdefs.h <<_ACEOF
24445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24446 _ACEOF
24447
24448 else
24449   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
24450 fi
24451 done
24452
24453
24454           if test x$ac_cv_func_copysignl = x"yes"; then
24455
24456 for ac_func in __signbitl
24457 do
24458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24459 echo "$as_me:$LINENO: checking for $ac_func" >&5
24460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24461 if eval "test \"\${$as_ac_var+set}\" = set"; then
24462   echo $ECHO_N "(cached) $ECHO_C" >&6
24463 else
24464   if test x$gcc_no_link = xyes; then
24465   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24467    { (exit 1); exit 1; }; }
24468 fi
24469 cat >conftest.$ac_ext <<_ACEOF
24470 #line $LINENO "configure"
24471 /* confdefs.h.  */
24472 _ACEOF
24473 cat confdefs.h >>conftest.$ac_ext
24474 cat >>conftest.$ac_ext <<_ACEOF
24475 /* end confdefs.h.  */
24476 /* System header to define __stub macros and hopefully few prototypes,
24477     which can conflict with char $ac_func (); below.
24478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24479     <limits.h> exists even on freestanding compilers.  */
24480 #ifdef __STDC__
24481 # include <limits.h>
24482 #else
24483 # include <assert.h>
24484 #endif
24485 /* Override any gcc2 internal prototype to avoid an error.  */
24486 #ifdef __cplusplus
24487 extern "C"
24488 {
24489 #endif
24490 /* We use char because int might match the return type of a gcc2
24491    builtin and then its argument prototype would still apply.  */
24492 char $ac_func ();
24493 /* The GNU C library defines this for functions which it implements
24494     to always fail with ENOSYS.  Some functions are actually named
24495     something starting with __ and the normal name is an alias.  */
24496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24497 choke me
24498 #else
24499 char (*f) () = $ac_func;
24500 #endif
24501 #ifdef __cplusplus
24502 }
24503 #endif
24504
24505 int
24506 main ()
24507 {
24508 return f != $ac_func;
24509   ;
24510   return 0;
24511 }
24512 _ACEOF
24513 rm -f conftest.$ac_objext conftest$ac_exeext
24514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24515   (eval $ac_link) 2>&5
24516   ac_status=$?
24517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); } &&
24519          { ac_try='test -s conftest$ac_exeext'
24520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24521   (eval $ac_try) 2>&5
24522   ac_status=$?
24523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524   (exit $ac_status); }; }; then
24525   eval "$as_ac_var=yes"
24526 else
24527   echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24529
24530 eval "$as_ac_var=no"
24531 fi
24532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24533 fi
24534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24536 if test `eval echo '${'$as_ac_var'}'` = yes; then
24537   cat >>confdefs.h <<_ACEOF
24538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24539 _ACEOF
24540
24541 else
24542   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
24543 fi
24544 done
24545
24546   fi
24547
24548   # XXX Review this.  Nothing uses it.
24549   if test -n "$LIBMATHOBJS"; then
24550     need_libmath=yes
24551   fi
24552
24553
24554
24555   # Test wchar.h for mbstate_t, which is needed for char_traits and
24556   # others even if wchar_t support is not on.
24557   echo "$as_me:$LINENO: checking for mbstate_t" >&5
24558 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24559   cat >conftest.$ac_ext <<_ACEOF
24560 #line $LINENO "configure"
24561 /* confdefs.h.  */
24562 _ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h.  */
24566 #include <wchar.h>
24567 int
24568 main ()
24569 {
24570 mbstate_t teststate;
24571   ;
24572   return 0;
24573 }
24574 _ACEOF
24575 rm -f conftest.$ac_objext
24576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24577   (eval $ac_compile) 2>&5
24578   ac_status=$?
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); } &&
24581          { ac_try='test -s conftest.$ac_objext'
24582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583   (eval $ac_try) 2>&5
24584   ac_status=$?
24585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586   (exit $ac_status); }; }; then
24587   have_mbstate_t=yes
24588 else
24589   echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24591
24592 have_mbstate_t=no
24593 fi
24594 rm -f conftest.$ac_objext conftest.$ac_ext
24595   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
24596 echo "${ECHO_T}$have_mbstate_t" >&6
24597   if test x"$have_mbstate_t" = xyes; then
24598     cat >>confdefs.h <<\_ACEOF
24599 #define HAVE_MBSTATE_T 1
24600 _ACEOF
24601
24602   fi
24603
24604   # Sanity check for existence of ISO C99 headers for extended encoding.
24605
24606 for ac_header in wchar.h
24607 do
24608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24610   echo "$as_me:$LINENO: checking for $ac_header" >&5
24611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24613   echo $ECHO_N "(cached) $ECHO_C" >&6
24614 fi
24615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24617 else
24618   # Is the header compilable?
24619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24621 cat >conftest.$ac_ext <<_ACEOF
24622 #line $LINENO "configure"
24623 /* confdefs.h.  */
24624 _ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h.  */
24628 $ac_includes_default
24629 #include <$ac_header>
24630 _ACEOF
24631 rm -f conftest.$ac_objext
24632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24633   (eval $ac_compile) 2>&5
24634   ac_status=$?
24635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636   (exit $ac_status); } &&
24637          { ac_try='test -s conftest.$ac_objext'
24638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639   (eval $ac_try) 2>&5
24640   ac_status=$?
24641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642   (exit $ac_status); }; }; then
24643   ac_header_compiler=yes
24644 else
24645   echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24647
24648 ac_header_compiler=no
24649 fi
24650 rm -f conftest.$ac_objext conftest.$ac_ext
24651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24652 echo "${ECHO_T}$ac_header_compiler" >&6
24653
24654 # Is the header present?
24655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24657 cat >conftest.$ac_ext <<_ACEOF
24658 #line $LINENO "configure"
24659 /* confdefs.h.  */
24660 _ACEOF
24661 cat confdefs.h >>conftest.$ac_ext
24662 cat >>conftest.$ac_ext <<_ACEOF
24663 /* end confdefs.h.  */
24664 #include <$ac_header>
24665 _ACEOF
24666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24668   ac_status=$?
24669   grep -v '^ *+' conftest.er1 >conftest.err
24670   rm -f conftest.er1
24671   cat conftest.err >&5
24672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); } >/dev/null; then
24674   if test -s conftest.err; then
24675     ac_cpp_err=$ac_c_preproc_warn_flag
24676   else
24677     ac_cpp_err=
24678   fi
24679 else
24680   ac_cpp_err=yes
24681 fi
24682 if test -z "$ac_cpp_err"; then
24683   ac_header_preproc=yes
24684 else
24685   echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24687
24688   ac_header_preproc=no
24689 fi
24690 rm -f conftest.err conftest.$ac_ext
24691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24692 echo "${ECHO_T}$ac_header_preproc" >&6
24693
24694 # So?  What about this header?
24695 case $ac_header_compiler:$ac_header_preproc in
24696   yes:no )
24697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24701     (
24702       cat <<\_ASBOX
24703 ## ------------------------------------ ##
24704 ## Report this to bug-autoconf@gnu.org. ##
24705 ## ------------------------------------ ##
24706 _ASBOX
24707     ) |
24708       sed "s/^/$as_me: WARNING:     /" >&2
24709     ;;
24710   no:yes )
24711     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24713     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24717     (
24718       cat <<\_ASBOX
24719 ## ------------------------------------ ##
24720 ## Report this to bug-autoconf@gnu.org. ##
24721 ## ------------------------------------ ##
24722 _ASBOX
24723     ) |
24724       sed "s/^/$as_me: WARNING:     /" >&2
24725     ;;
24726 esac
24727 echo "$as_me:$LINENO: checking for $ac_header" >&5
24728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24730   echo $ECHO_N "(cached) $ECHO_C" >&6
24731 else
24732   eval "$as_ac_Header=$ac_header_preproc"
24733 fi
24734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24736
24737 fi
24738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24739   cat >>confdefs.h <<_ACEOF
24740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24741 _ACEOF
24742  ac_has_wchar_h=yes
24743 else
24744   ac_has_wchar_h=no
24745 fi
24746
24747 done
24748
24749
24750 for ac_header in wctype.h
24751 do
24752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24754   echo "$as_me:$LINENO: checking for $ac_header" >&5
24755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24757   echo $ECHO_N "(cached) $ECHO_C" >&6
24758 fi
24759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24761 else
24762   # Is the header compilable?
24763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24765 cat >conftest.$ac_ext <<_ACEOF
24766 #line $LINENO "configure"
24767 /* confdefs.h.  */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h.  */
24772 $ac_includes_default
24773 #include <$ac_header>
24774 _ACEOF
24775 rm -f conftest.$ac_objext
24776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24777   (eval $ac_compile) 2>&5
24778   ac_status=$?
24779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780   (exit $ac_status); } &&
24781          { ac_try='test -s conftest.$ac_objext'
24782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783   (eval $ac_try) 2>&5
24784   ac_status=$?
24785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); }; }; then
24787   ac_header_compiler=yes
24788 else
24789   echo "$as_me: failed program was:" >&5
24790 sed 's/^/| /' conftest.$ac_ext >&5
24791
24792 ac_header_compiler=no
24793 fi
24794 rm -f conftest.$ac_objext conftest.$ac_ext
24795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24796 echo "${ECHO_T}$ac_header_compiler" >&6
24797
24798 # Is the header present?
24799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24801 cat >conftest.$ac_ext <<_ACEOF
24802 #line $LINENO "configure"
24803 /* confdefs.h.  */
24804 _ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h.  */
24808 #include <$ac_header>
24809 _ACEOF
24810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24812   ac_status=$?
24813   grep -v '^ *+' conftest.er1 >conftest.err
24814   rm -f conftest.er1
24815   cat conftest.err >&5
24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); } >/dev/null; then
24818   if test -s conftest.err; then
24819     ac_cpp_err=$ac_c_preproc_warn_flag
24820   else
24821     ac_cpp_err=
24822   fi
24823 else
24824   ac_cpp_err=yes
24825 fi
24826 if test -z "$ac_cpp_err"; then
24827   ac_header_preproc=yes
24828 else
24829   echo "$as_me: failed program was:" >&5
24830 sed 's/^/| /' conftest.$ac_ext >&5
24831
24832   ac_header_preproc=no
24833 fi
24834 rm -f conftest.err conftest.$ac_ext
24835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24836 echo "${ECHO_T}$ac_header_preproc" >&6
24837
24838 # So?  What about this header?
24839 case $ac_header_compiler:$ac_header_preproc in
24840   yes:no )
24841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24845     (
24846       cat <<\_ASBOX
24847 ## ------------------------------------ ##
24848 ## Report this to bug-autoconf@gnu.org. ##
24849 ## ------------------------------------ ##
24850 _ASBOX
24851     ) |
24852       sed "s/^/$as_me: WARNING:     /" >&2
24853     ;;
24854   no:yes )
24855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24857     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24861     (
24862       cat <<\_ASBOX
24863 ## ------------------------------------ ##
24864 ## Report this to bug-autoconf@gnu.org. ##
24865 ## ------------------------------------ ##
24866 _ASBOX
24867     ) |
24868       sed "s/^/$as_me: WARNING:     /" >&2
24869     ;;
24870 esac
24871 echo "$as_me:$LINENO: checking for $ac_header" >&5
24872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24874   echo $ECHO_N "(cached) $ECHO_C" >&6
24875 else
24876   eval "$as_ac_Header=$ac_header_preproc"
24877 fi
24878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24880
24881 fi
24882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24883   cat >>confdefs.h <<_ACEOF
24884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24885 _ACEOF
24886  ac_has_wctype_h=yes
24887 else
24888   ac_has_wctype_h=no
24889 fi
24890
24891 done
24892
24893
24894   # Only continue checking if the ISO C99 headers exist and support is on.
24895   if test x"$ac_has_wchar_h" = xyes &&
24896      test x"$ac_has_wctype_h" = xyes &&
24897      test x"$enable_c_mbchar" != xno; then
24898
24899     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
24900     # numeric_limits can instantiate type_traits<wchar_t>
24901     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
24902 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
24903     cat >conftest.$ac_ext <<_ACEOF
24904 #line $LINENO "configure"
24905 /* confdefs.h.  */
24906 _ACEOF
24907 cat confdefs.h >>conftest.$ac_ext
24908 cat >>conftest.$ac_ext <<_ACEOF
24909 /* end confdefs.h.  */
24910 #include <wchar.h>
24911 int
24912 main ()
24913 {
24914 int i = WCHAR_MIN; int j = WCHAR_MAX;
24915   ;
24916   return 0;
24917 }
24918 _ACEOF
24919 rm -f conftest.$ac_objext
24920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24921   (eval $ac_compile) 2>&5
24922   ac_status=$?
24923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924   (exit $ac_status); } &&
24925          { ac_try='test -s conftest.$ac_objext'
24926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24927   (eval $ac_try) 2>&5
24928   ac_status=$?
24929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930   (exit $ac_status); }; }; then
24931   has_wchar_minmax=yes
24932 else
24933   echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24935
24936 has_wchar_minmax=no
24937 fi
24938 rm -f conftest.$ac_objext conftest.$ac_ext
24939     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
24940 echo "${ECHO_T}$has_wchar_minmax" >&6
24941
24942     # Test wchar.h for WEOF, which is what we use to determine whether
24943     # to specialize for char_traits<wchar_t> or not.
24944     echo "$as_me:$LINENO: checking for WEOF" >&5
24945 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
24946     cat >conftest.$ac_ext <<_ACEOF
24947 #line $LINENO "configure"
24948 /* confdefs.h.  */
24949 _ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h.  */
24953
24954       #include <wchar.h>
24955       #include <stddef.h>
24956 int
24957 main ()
24958 {
24959 wint_t i = WEOF;
24960   ;
24961   return 0;
24962 }
24963 _ACEOF
24964 rm -f conftest.$ac_objext
24965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24966   (eval $ac_compile) 2>&5
24967   ac_status=$?
24968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); } &&
24970          { ac_try='test -s conftest.$ac_objext'
24971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24972   (eval $ac_try) 2>&5
24973   ac_status=$?
24974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975   (exit $ac_status); }; }; then
24976   has_weof=yes
24977 else
24978   echo "$as_me: failed program was:" >&5
24979 sed 's/^/| /' conftest.$ac_ext >&5
24980
24981 has_weof=no
24982 fi
24983 rm -f conftest.$ac_objext conftest.$ac_ext
24984     echo "$as_me:$LINENO: result: $has_weof" >&5
24985 echo "${ECHO_T}$has_weof" >&6
24986
24987     # Tests for wide character functions used in char_traits<wchar_t>.
24988     ac_wfuncs=yes
24989
24990
24991
24992
24993
24994
24995 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
24996 do
24997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24998 echo "$as_me:$LINENO: checking for $ac_func" >&5
24999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25000 if eval "test \"\${$as_ac_var+set}\" = set"; then
25001   echo $ECHO_N "(cached) $ECHO_C" >&6
25002 else
25003   if test x$gcc_no_link = xyes; then
25004   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25005 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25006    { (exit 1); exit 1; }; }
25007 fi
25008 cat >conftest.$ac_ext <<_ACEOF
25009 #line $LINENO "configure"
25010 /* confdefs.h.  */
25011 _ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h.  */
25015 /* System header to define __stub macros and hopefully few prototypes,
25016     which can conflict with char $ac_func (); below.
25017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25018     <limits.h> exists even on freestanding compilers.  */
25019 #ifdef __STDC__
25020 # include <limits.h>
25021 #else
25022 # include <assert.h>
25023 #endif
25024 /* Override any gcc2 internal prototype to avoid an error.  */
25025 #ifdef __cplusplus
25026 extern "C"
25027 {
25028 #endif
25029 /* We use char because int might match the return type of a gcc2
25030    builtin and then its argument prototype would still apply.  */
25031 char $ac_func ();
25032 /* The GNU C library defines this for functions which it implements
25033     to always fail with ENOSYS.  Some functions are actually named
25034     something starting with __ and the normal name is an alias.  */
25035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25036 choke me
25037 #else
25038 char (*f) () = $ac_func;
25039 #endif
25040 #ifdef __cplusplus
25041 }
25042 #endif
25043
25044 int
25045 main ()
25046 {
25047 return f != $ac_func;
25048   ;
25049   return 0;
25050 }
25051 _ACEOF
25052 rm -f conftest.$ac_objext conftest$ac_exeext
25053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25054   (eval $ac_link) 2>&5
25055   ac_status=$?
25056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057   (exit $ac_status); } &&
25058          { ac_try='test -s conftest$ac_exeext'
25059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060   (eval $ac_try) 2>&5
25061   ac_status=$?
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); }; }; then
25064   eval "$as_ac_var=yes"
25065 else
25066   echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25068
25069 eval "$as_ac_var=no"
25070 fi
25071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25072 fi
25073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25075 if test `eval echo '${'$as_ac_var'}'` = yes; then
25076   cat >>confdefs.h <<_ACEOF
25077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25078 _ACEOF
25079
25080 else
25081   ac_wfuncs=no
25082 fi
25083 done
25084
25085
25086     # Checks for names injected into std:: by the c_std headers.
25087
25088
25089
25090
25091
25092
25093
25094
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 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
25134     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
25135     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
25136     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
25137     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
25138     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
25139 do
25140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25141 echo "$as_me:$LINENO: checking for $ac_func" >&5
25142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25143 if eval "test \"\${$as_ac_var+set}\" = set"; then
25144   echo $ECHO_N "(cached) $ECHO_C" >&6
25145 else
25146   if test x$gcc_no_link = xyes; then
25147   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25149    { (exit 1); exit 1; }; }
25150 fi
25151 cat >conftest.$ac_ext <<_ACEOF
25152 #line $LINENO "configure"
25153 /* confdefs.h.  */
25154 _ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h.  */
25158 /* System header to define __stub macros and hopefully few prototypes,
25159     which can conflict with char $ac_func (); below.
25160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25161     <limits.h> exists even on freestanding compilers.  */
25162 #ifdef __STDC__
25163 # include <limits.h>
25164 #else
25165 # include <assert.h>
25166 #endif
25167 /* Override any gcc2 internal prototype to avoid an error.  */
25168 #ifdef __cplusplus
25169 extern "C"
25170 {
25171 #endif
25172 /* We use char because int might match the return type of a gcc2
25173    builtin and then its argument prototype would still apply.  */
25174 char $ac_func ();
25175 /* The GNU C library defines this for functions which it implements
25176     to always fail with ENOSYS.  Some functions are actually named
25177     something starting with __ and the normal name is an alias.  */
25178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25179 choke me
25180 #else
25181 char (*f) () = $ac_func;
25182 #endif
25183 #ifdef __cplusplus
25184 }
25185 #endif
25186
25187 int
25188 main ()
25189 {
25190 return f != $ac_func;
25191   ;
25192   return 0;
25193 }
25194 _ACEOF
25195 rm -f conftest.$ac_objext conftest$ac_exeext
25196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25197   (eval $ac_link) 2>&5
25198   ac_status=$?
25199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200   (exit $ac_status); } &&
25201          { ac_try='test -s conftest$ac_exeext'
25202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203   (eval $ac_try) 2>&5
25204   ac_status=$?
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); }; }; then
25207   eval "$as_ac_var=yes"
25208 else
25209   echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25211
25212 eval "$as_ac_var=no"
25213 fi
25214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25215 fi
25216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25218 if test `eval echo '${'$as_ac_var'}'` = yes; then
25219   cat >>confdefs.h <<_ACEOF
25220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25221 _ACEOF
25222
25223 else
25224   ac_wfuncs=no
25225 fi
25226 done
25227
25228
25229     # Checks for wide character functions that are not required
25230     # for basic wchar_t support.  Don't disable support if they are missing.
25231     # Injection of these is wrapped with guard macros.
25232
25233
25234
25235
25236
25237 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
25238 do
25239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25240 echo "$as_me:$LINENO: checking for $ac_func" >&5
25241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25242 if eval "test \"\${$as_ac_var+set}\" = set"; then
25243   echo $ECHO_N "(cached) $ECHO_C" >&6
25244 else
25245   if test x$gcc_no_link = xyes; then
25246   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25247 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25248    { (exit 1); exit 1; }; }
25249 fi
25250 cat >conftest.$ac_ext <<_ACEOF
25251 #line $LINENO "configure"
25252 /* confdefs.h.  */
25253 _ACEOF
25254 cat confdefs.h >>conftest.$ac_ext
25255 cat >>conftest.$ac_ext <<_ACEOF
25256 /* end confdefs.h.  */
25257 /* System header to define __stub macros and hopefully few prototypes,
25258     which can conflict with char $ac_func (); below.
25259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25260     <limits.h> exists even on freestanding compilers.  */
25261 #ifdef __STDC__
25262 # include <limits.h>
25263 #else
25264 # include <assert.h>
25265 #endif
25266 /* Override any gcc2 internal prototype to avoid an error.  */
25267 #ifdef __cplusplus
25268 extern "C"
25269 {
25270 #endif
25271 /* We use char because int might match the return type of a gcc2
25272    builtin and then its argument prototype would still apply.  */
25273 char $ac_func ();
25274 /* The GNU C library defines this for functions which it implements
25275     to always fail with ENOSYS.  Some functions are actually named
25276     something starting with __ and the normal name is an alias.  */
25277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25278 choke me
25279 #else
25280 char (*f) () = $ac_func;
25281 #endif
25282 #ifdef __cplusplus
25283 }
25284 #endif
25285
25286 int
25287 main ()
25288 {
25289 return f != $ac_func;
25290   ;
25291   return 0;
25292 }
25293 _ACEOF
25294 rm -f conftest.$ac_objext conftest$ac_exeext
25295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25296   (eval $ac_link) 2>&5
25297   ac_status=$?
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); } &&
25300          { ac_try='test -s conftest$ac_exeext'
25301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25302   (eval $ac_try) 2>&5
25303   ac_status=$?
25304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305   (exit $ac_status); }; }; then
25306   eval "$as_ac_var=yes"
25307 else
25308   echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25310
25311 eval "$as_ac_var=no"
25312 fi
25313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25314 fi
25315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25317 if test `eval echo '${'$as_ac_var'}'` = yes; then
25318   cat >>confdefs.h <<_ACEOF
25319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25320 _ACEOF
25321
25322 fi
25323 done
25324
25325
25326     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
25327 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
25328     if test x"$has_weof" = xyes &&
25329        test x"$has_wchar_minmax" = xyes &&
25330        test x"$ac_wfuncs" = xyes;
25331     then
25332       ac_isoC99_wchar_t=yes
25333     else
25334       ac_isoC99_wchar_t=no
25335     fi
25336     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
25337 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
25338
25339     # Use iconv for wchar_t to char conversions. As such, check for
25340     # X/Open Portability Guide, version 2 features (XPG2).
25341     if test "${ac_cv_header_iconv_h+set}" = set; then
25342   echo "$as_me:$LINENO: checking for iconv.h" >&5
25343 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25344 if test "${ac_cv_header_iconv_h+set}" = set; then
25345   echo $ECHO_N "(cached) $ECHO_C" >&6
25346 fi
25347 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25348 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25349 else
25350   # Is the header compilable?
25351 echo "$as_me:$LINENO: checking iconv.h usability" >&5
25352 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
25353 cat >conftest.$ac_ext <<_ACEOF
25354 #line $LINENO "configure"
25355 /* confdefs.h.  */
25356 _ACEOF
25357 cat confdefs.h >>conftest.$ac_ext
25358 cat >>conftest.$ac_ext <<_ACEOF
25359 /* end confdefs.h.  */
25360 $ac_includes_default
25361 #include <iconv.h>
25362 _ACEOF
25363 rm -f conftest.$ac_objext
25364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25365   (eval $ac_compile) 2>&5
25366   ac_status=$?
25367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368   (exit $ac_status); } &&
25369          { ac_try='test -s conftest.$ac_objext'
25370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25371   (eval $ac_try) 2>&5
25372   ac_status=$?
25373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374   (exit $ac_status); }; }; then
25375   ac_header_compiler=yes
25376 else
25377   echo "$as_me: failed program was:" >&5
25378 sed 's/^/| /' conftest.$ac_ext >&5
25379
25380 ac_header_compiler=no
25381 fi
25382 rm -f conftest.$ac_objext conftest.$ac_ext
25383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25384 echo "${ECHO_T}$ac_header_compiler" >&6
25385
25386 # Is the header present?
25387 echo "$as_me:$LINENO: checking iconv.h presence" >&5
25388 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
25389 cat >conftest.$ac_ext <<_ACEOF
25390 #line $LINENO "configure"
25391 /* confdefs.h.  */
25392 _ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h.  */
25396 #include <iconv.h>
25397 _ACEOF
25398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25400   ac_status=$?
25401   grep -v '^ *+' conftest.er1 >conftest.err
25402   rm -f conftest.er1
25403   cat conftest.err >&5
25404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405   (exit $ac_status); } >/dev/null; then
25406   if test -s conftest.err; then
25407     ac_cpp_err=$ac_c_preproc_warn_flag
25408   else
25409     ac_cpp_err=
25410   fi
25411 else
25412   ac_cpp_err=yes
25413 fi
25414 if test -z "$ac_cpp_err"; then
25415   ac_header_preproc=yes
25416 else
25417   echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25419
25420   ac_header_preproc=no
25421 fi
25422 rm -f conftest.err conftest.$ac_ext
25423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25424 echo "${ECHO_T}$ac_header_preproc" >&6
25425
25426 # So?  What about this header?
25427 case $ac_header_compiler:$ac_header_preproc in
25428   yes:no )
25429     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
25430 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25431     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25432 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25433     (
25434       cat <<\_ASBOX
25435 ## ------------------------------------ ##
25436 ## Report this to bug-autoconf@gnu.org. ##
25437 ## ------------------------------------ ##
25438 _ASBOX
25439     ) |
25440       sed "s/^/$as_me: WARNING:     /" >&2
25441     ;;
25442   no:yes )
25443     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
25444 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
25445     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
25446 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
25447     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25448 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25449     (
25450       cat <<\_ASBOX
25451 ## ------------------------------------ ##
25452 ## Report this to bug-autoconf@gnu.org. ##
25453 ## ------------------------------------ ##
25454 _ASBOX
25455     ) |
25456       sed "s/^/$as_me: WARNING:     /" >&2
25457     ;;
25458 esac
25459 echo "$as_me:$LINENO: checking for iconv.h" >&5
25460 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25461 if test "${ac_cv_header_iconv_h+set}" = set; then
25462   echo $ECHO_N "(cached) $ECHO_C" >&6
25463 else
25464   ac_cv_header_iconv_h=$ac_header_preproc
25465 fi
25466 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25467 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25468
25469 fi
25470 if test $ac_cv_header_iconv_h = yes; then
25471   ac_has_iconv_h=yes
25472 else
25473   ac_has_iconv_h=no
25474 fi
25475
25476
25477     if test "${ac_cv_header_langinfo_h+set}" = set; then
25478   echo "$as_me:$LINENO: checking for langinfo.h" >&5
25479 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25480 if test "${ac_cv_header_langinfo_h+set}" = set; then
25481   echo $ECHO_N "(cached) $ECHO_C" >&6
25482 fi
25483 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25484 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25485 else
25486   # Is the header compilable?
25487 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
25488 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
25489 cat >conftest.$ac_ext <<_ACEOF
25490 #line $LINENO "configure"
25491 /* confdefs.h.  */
25492 _ACEOF
25493 cat confdefs.h >>conftest.$ac_ext
25494 cat >>conftest.$ac_ext <<_ACEOF
25495 /* end confdefs.h.  */
25496 $ac_includes_default
25497 #include <langinfo.h>
25498 _ACEOF
25499 rm -f conftest.$ac_objext
25500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25501   (eval $ac_compile) 2>&5
25502   ac_status=$?
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); } &&
25505          { ac_try='test -s conftest.$ac_objext'
25506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25507   (eval $ac_try) 2>&5
25508   ac_status=$?
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); }; }; then
25511   ac_header_compiler=yes
25512 else
25513   echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25515
25516 ac_header_compiler=no
25517 fi
25518 rm -f conftest.$ac_objext conftest.$ac_ext
25519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25520 echo "${ECHO_T}$ac_header_compiler" >&6
25521
25522 # Is the header present?
25523 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
25524 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
25525 cat >conftest.$ac_ext <<_ACEOF
25526 #line $LINENO "configure"
25527 /* confdefs.h.  */
25528 _ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h.  */
25532 #include <langinfo.h>
25533 _ACEOF
25534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25536   ac_status=$?
25537   grep -v '^ *+' conftest.er1 >conftest.err
25538   rm -f conftest.er1
25539   cat conftest.err >&5
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); } >/dev/null; then
25542   if test -s conftest.err; then
25543     ac_cpp_err=$ac_c_preproc_warn_flag
25544   else
25545     ac_cpp_err=
25546   fi
25547 else
25548   ac_cpp_err=yes
25549 fi
25550 if test -z "$ac_cpp_err"; then
25551   ac_header_preproc=yes
25552 else
25553   echo "$as_me: failed program was:" >&5
25554 sed 's/^/| /' conftest.$ac_ext >&5
25555
25556   ac_header_preproc=no
25557 fi
25558 rm -f conftest.err conftest.$ac_ext
25559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25560 echo "${ECHO_T}$ac_header_preproc" >&6
25561
25562 # So?  What about this header?
25563 case $ac_header_compiler:$ac_header_preproc in
25564   yes:no )
25565     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
25566 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25567     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25568 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25569     (
25570       cat <<\_ASBOX
25571 ## ------------------------------------ ##
25572 ## Report this to bug-autoconf@gnu.org. ##
25573 ## ------------------------------------ ##
25574 _ASBOX
25575     ) |
25576       sed "s/^/$as_me: WARNING:     /" >&2
25577     ;;
25578   no:yes )
25579     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
25580 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
25581     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
25582 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
25583     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
25584 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
25585     (
25586       cat <<\_ASBOX
25587 ## ------------------------------------ ##
25588 ## Report this to bug-autoconf@gnu.org. ##
25589 ## ------------------------------------ ##
25590 _ASBOX
25591     ) |
25592       sed "s/^/$as_me: WARNING:     /" >&2
25593     ;;
25594 esac
25595 echo "$as_me:$LINENO: checking for langinfo.h" >&5
25596 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
25597 if test "${ac_cv_header_langinfo_h+set}" = set; then
25598   echo $ECHO_N "(cached) $ECHO_C" >&6
25599 else
25600   ac_cv_header_langinfo_h=$ac_header_preproc
25601 fi
25602 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
25603 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
25604
25605 fi
25606 if test $ac_cv_header_langinfo_h = yes; then
25607   ac_has_langinfo_h=yes
25608 else
25609   ac_has_langinfo_h=no
25610 fi
25611
25612
25613
25614     # Check for existence of libiconv.a providing XPG2 wchar_t support.
25615     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
25616 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
25617 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
25618   echo $ECHO_N "(cached) $ECHO_C" >&6
25619 else
25620   ac_check_lib_save_LIBS=$LIBS
25621 LIBS="-liconv  $LIBS"
25622 if test x$gcc_no_link = xyes; then
25623   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25624 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25625    { (exit 1); exit 1; }; }
25626 fi
25627 cat >conftest.$ac_ext <<_ACEOF
25628 #line $LINENO "configure"
25629 /* confdefs.h.  */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h.  */
25634
25635 /* Override any gcc2 internal prototype to avoid an error.  */
25636 #ifdef __cplusplus
25637 extern "C"
25638 #endif
25639 /* We use char because int might match the return type of a gcc2
25640    builtin and then its argument prototype would still apply.  */
25641 char iconv ();
25642 int
25643 main ()
25644 {
25645 iconv ();
25646   ;
25647   return 0;
25648 }
25649 _ACEOF
25650 rm -f conftest.$ac_objext conftest$ac_exeext
25651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25652   (eval $ac_link) 2>&5
25653   ac_status=$?
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); } &&
25656          { ac_try='test -s conftest$ac_exeext'
25657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25658   (eval $ac_try) 2>&5
25659   ac_status=$?
25660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661   (exit $ac_status); }; }; then
25662   ac_cv_lib_iconv_iconv=yes
25663 else
25664   echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25666
25667 ac_cv_lib_iconv_iconv=no
25668 fi
25669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25670 LIBS=$ac_check_lib_save_LIBS
25671 fi
25672 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
25673 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
25674 if test $ac_cv_lib_iconv_iconv = yes; then
25675   libiconv="-liconv"
25676 fi
25677
25678     ac_save_LIBS="$LIBS"
25679     LIBS="$LIBS $libiconv"
25680
25681
25682
25683
25684
25685 for ac_func in iconv_open iconv_close iconv nl_langinfo
25686 do
25687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25688 echo "$as_me:$LINENO: checking for $ac_func" >&5
25689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25690 if eval "test \"\${$as_ac_var+set}\" = set"; then
25691   echo $ECHO_N "(cached) $ECHO_C" >&6
25692 else
25693   if test x$gcc_no_link = xyes; then
25694   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25695 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25696    { (exit 1); exit 1; }; }
25697 fi
25698 cat >conftest.$ac_ext <<_ACEOF
25699 #line $LINENO "configure"
25700 /* confdefs.h.  */
25701 _ACEOF
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h.  */
25705 /* System header to define __stub macros and hopefully few prototypes,
25706     which can conflict with char $ac_func (); below.
25707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25708     <limits.h> exists even on freestanding compilers.  */
25709 #ifdef __STDC__
25710 # include <limits.h>
25711 #else
25712 # include <assert.h>
25713 #endif
25714 /* Override any gcc2 internal prototype to avoid an error.  */
25715 #ifdef __cplusplus
25716 extern "C"
25717 {
25718 #endif
25719 /* We use char because int might match the return type of a gcc2
25720    builtin and then its argument prototype would still apply.  */
25721 char $ac_func ();
25722 /* The GNU C library defines this for functions which it implements
25723     to always fail with ENOSYS.  Some functions are actually named
25724     something starting with __ and the normal name is an alias.  */
25725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25726 choke me
25727 #else
25728 char (*f) () = $ac_func;
25729 #endif
25730 #ifdef __cplusplus
25731 }
25732 #endif
25733
25734 int
25735 main ()
25736 {
25737 return f != $ac_func;
25738   ;
25739   return 0;
25740 }
25741 _ACEOF
25742 rm -f conftest.$ac_objext conftest$ac_exeext
25743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25744   (eval $ac_link) 2>&5
25745   ac_status=$?
25746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747   (exit $ac_status); } &&
25748          { ac_try='test -s conftest$ac_exeext'
25749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25750   (eval $ac_try) 2>&5
25751   ac_status=$?
25752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753   (exit $ac_status); }; }; then
25754   eval "$as_ac_var=yes"
25755 else
25756   echo "$as_me: failed program was:" >&5
25757 sed 's/^/| /' conftest.$ac_ext >&5
25758
25759 eval "$as_ac_var=no"
25760 fi
25761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25762 fi
25763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25765 if test `eval echo '${'$as_ac_var'}'` = yes; then
25766   cat >>confdefs.h <<_ACEOF
25767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25768 _ACEOF
25769  ac_XPG2funcs=yes
25770 else
25771   ac_XPG2funcs=no
25772 fi
25773 done
25774
25775
25776     LIBS="$ac_save_LIBS"
25777
25778     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
25779 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
25780     if test x"$ac_has_iconv_h" = xyes &&
25781        test x"$ac_has_langinfo_h" = xyes &&
25782        test x"$ac_XPG2funcs" = xyes;
25783     then
25784       ac_XPG2_wchar_t=yes
25785     else
25786       ac_XPG2_wchar_t=no
25787     fi
25788     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
25789 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
25790
25791     # At the moment, only enable wchar_t specializations if all the
25792     # above support is present.
25793     if test x"$ac_isoC99_wchar_t" = xyes &&
25794        test x"$ac_XPG2_wchar_t" = xyes;
25795     then
25796       cat >>confdefs.h <<\_ACEOF
25797 #define _GLIBCXX_USE_WCHAR_T 1
25798 _ACEOF
25799
25800       enable_wchar_t=yes
25801     fi
25802   fi
25803   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
25804 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
25805   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
25806 echo "${ECHO_T}$enable_wchar_t" >&6
25807
25808
25809   ac_test_CXXFLAGS="${CXXFLAGS+set}"
25810   ac_save_CXXFLAGS="$CXXFLAGS"
25811   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25812
25813
25814   echo "$as_me:$LINENO: checking for strtold declaration" >&5
25815 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
25816   if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25817     if test "${glibcxx_cv_func_strtold_use+set}" = set; then
25818   echo $ECHO_N "(cached) $ECHO_C" >&6
25819 else
25820
25821
25822
25823       ac_ext=cc
25824 ac_cpp='$CXXCPP $CPPFLAGS'
25825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25828
25829       cat >conftest.$ac_ext <<_ACEOF
25830 #line $LINENO "configure"
25831 /* confdefs.h.  */
25832 _ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h.  */
25836 #include <stdlib.h>
25837 int
25838 main ()
25839 {
25840  strtold(0, 0);
25841   ;
25842   return 0;
25843 }
25844 _ACEOF
25845 rm -f conftest.$ac_objext
25846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25847   (eval $ac_compile) 2>&5
25848   ac_status=$?
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); } &&
25851          { ac_try='test -s conftest.$ac_objext'
25852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853   (eval $ac_try) 2>&5
25854   ac_status=$?
25855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856   (exit $ac_status); }; }; then
25857   glibcxx_cv_func_strtold_use=yes
25858 else
25859   echo "$as_me: failed program was:" >&5
25860 sed 's/^/| /' conftest.$ac_ext >&5
25861
25862 glibcxx_cv_func_strtold_use=no
25863 fi
25864 rm -f conftest.$ac_objext conftest.$ac_ext
25865       ac_ext=c
25866 ac_cpp='$CPP $CPPFLAGS'
25867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25870
25871
25872 fi
25873
25874   fi
25875   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
25876 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
25877   if test x$glibcxx_cv_func_strtold_use = x"yes"; then
25878
25879 for ac_func in strtold
25880 do
25881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25882 echo "$as_me:$LINENO: checking for $ac_func" >&5
25883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25884 if eval "test \"\${$as_ac_var+set}\" = set"; then
25885   echo $ECHO_N "(cached) $ECHO_C" >&6
25886 else
25887   if test x$gcc_no_link = xyes; then
25888   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25890    { (exit 1); exit 1; }; }
25891 fi
25892 cat >conftest.$ac_ext <<_ACEOF
25893 #line $LINENO "configure"
25894 /* confdefs.h.  */
25895 _ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h.  */
25899 /* System header to define __stub macros and hopefully few prototypes,
25900     which can conflict with char $ac_func (); below.
25901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25902     <limits.h> exists even on freestanding compilers.  */
25903 #ifdef __STDC__
25904 # include <limits.h>
25905 #else
25906 # include <assert.h>
25907 #endif
25908 /* Override any gcc2 internal prototype to avoid an error.  */
25909 #ifdef __cplusplus
25910 extern "C"
25911 {
25912 #endif
25913 /* We use char because int might match the return type of a gcc2
25914    builtin and then its argument prototype would still apply.  */
25915 char $ac_func ();
25916 /* The GNU C library defines this for functions which it implements
25917     to always fail with ENOSYS.  Some functions are actually named
25918     something starting with __ and the normal name is an alias.  */
25919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25920 choke me
25921 #else
25922 char (*f) () = $ac_func;
25923 #endif
25924 #ifdef __cplusplus
25925 }
25926 #endif
25927
25928 int
25929 main ()
25930 {
25931 return f != $ac_func;
25932   ;
25933   return 0;
25934 }
25935 _ACEOF
25936 rm -f conftest.$ac_objext conftest$ac_exeext
25937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25938   (eval $ac_link) 2>&5
25939   ac_status=$?
25940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941   (exit $ac_status); } &&
25942          { ac_try='test -s conftest$ac_exeext'
25943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25944   (eval $ac_try) 2>&5
25945   ac_status=$?
25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); }; }; then
25948   eval "$as_ac_var=yes"
25949 else
25950   echo "$as_me: failed program was:" >&5
25951 sed 's/^/| /' conftest.$ac_ext >&5
25952
25953 eval "$as_ac_var=no"
25954 fi
25955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25956 fi
25957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25959 if test `eval echo '${'$as_ac_var'}'` = yes; then
25960   cat >>confdefs.h <<_ACEOF
25961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25962 _ACEOF
25963
25964 fi
25965 done
25966
25967   fi
25968
25969
25970   echo "$as_me:$LINENO: checking for strtof declaration" >&5
25971 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
25972   if test x${glibcxx_cv_func_strtof_use+set} != xset; then
25973     if test "${glibcxx_cv_func_strtof_use+set}" = set; then
25974   echo $ECHO_N "(cached) $ECHO_C" >&6
25975 else
25976
25977
25978
25979       ac_ext=cc
25980 ac_cpp='$CXXCPP $CPPFLAGS'
25981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25984
25985       cat >conftest.$ac_ext <<_ACEOF
25986 #line $LINENO "configure"
25987 /* confdefs.h.  */
25988 _ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h.  */
25992 #include <stdlib.h>
25993 int
25994 main ()
25995 {
25996  strtof(0, 0);
25997   ;
25998   return 0;
25999 }
26000 _ACEOF
26001 rm -f conftest.$ac_objext
26002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26003   (eval $ac_compile) 2>&5
26004   ac_status=$?
26005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006   (exit $ac_status); } &&
26007          { ac_try='test -s conftest.$ac_objext'
26008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26009   (eval $ac_try) 2>&5
26010   ac_status=$?
26011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012   (exit $ac_status); }; }; then
26013   glibcxx_cv_func_strtof_use=yes
26014 else
26015   echo "$as_me: failed program was:" >&5
26016 sed 's/^/| /' conftest.$ac_ext >&5
26017
26018 glibcxx_cv_func_strtof_use=no
26019 fi
26020 rm -f conftest.$ac_objext conftest.$ac_ext
26021       ac_ext=c
26022 ac_cpp='$CPP $CPPFLAGS'
26023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26026
26027
26028 fi
26029
26030   fi
26031   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
26032 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
26033   if test x$glibcxx_cv_func_strtof_use = x"yes"; then
26034
26035 for ac_func in strtof
26036 do
26037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26038 echo "$as_me:$LINENO: checking for $ac_func" >&5
26039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26040 if eval "test \"\${$as_ac_var+set}\" = set"; then
26041   echo $ECHO_N "(cached) $ECHO_C" >&6
26042 else
26043   if test x$gcc_no_link = xyes; then
26044   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26045 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26046    { (exit 1); exit 1; }; }
26047 fi
26048 cat >conftest.$ac_ext <<_ACEOF
26049 #line $LINENO "configure"
26050 /* confdefs.h.  */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h.  */
26055 /* System header to define __stub macros and hopefully few prototypes,
26056     which can conflict with char $ac_func (); below.
26057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26058     <limits.h> exists even on freestanding compilers.  */
26059 #ifdef __STDC__
26060 # include <limits.h>
26061 #else
26062 # include <assert.h>
26063 #endif
26064 /* Override any gcc2 internal prototype to avoid an error.  */
26065 #ifdef __cplusplus
26066 extern "C"
26067 {
26068 #endif
26069 /* We use char because int might match the return type of a gcc2
26070    builtin and then its argument prototype would still apply.  */
26071 char $ac_func ();
26072 /* The GNU C library defines this for functions which it implements
26073     to always fail with ENOSYS.  Some functions are actually named
26074     something starting with __ and the normal name is an alias.  */
26075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26076 choke me
26077 #else
26078 char (*f) () = $ac_func;
26079 #endif
26080 #ifdef __cplusplus
26081 }
26082 #endif
26083
26084 int
26085 main ()
26086 {
26087 return f != $ac_func;
26088   ;
26089   return 0;
26090 }
26091 _ACEOF
26092 rm -f conftest.$ac_objext conftest$ac_exeext
26093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26094   (eval $ac_link) 2>&5
26095   ac_status=$?
26096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097   (exit $ac_status); } &&
26098          { ac_try='test -s conftest$ac_exeext'
26099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100   (eval $ac_try) 2>&5
26101   ac_status=$?
26102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103   (exit $ac_status); }; }; then
26104   eval "$as_ac_var=yes"
26105 else
26106   echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26108
26109 eval "$as_ac_var=no"
26110 fi
26111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26112 fi
26113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26115 if test `eval echo '${'$as_ac_var'}'` = yes; then
26116   cat >>confdefs.h <<_ACEOF
26117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26118 _ACEOF
26119
26120 fi
26121 done
26122
26123   fi
26124
26125
26126   CXXFLAGS="$ac_save_CXXFLAGS"
26127
26128
26129   # For showmanyc_helper().
26130
26131
26132 for ac_header in sys/ioctl.h sys/filio.h
26133 do
26134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26136   echo "$as_me:$LINENO: checking for $ac_header" >&5
26137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26139   echo $ECHO_N "(cached) $ECHO_C" >&6
26140 fi
26141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26143 else
26144   # Is the header compilable?
26145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26147 cat >conftest.$ac_ext <<_ACEOF
26148 #line $LINENO "configure"
26149 /* confdefs.h.  */
26150 _ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h.  */
26154 $ac_includes_default
26155 #include <$ac_header>
26156 _ACEOF
26157 rm -f conftest.$ac_objext
26158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26159   (eval $ac_compile) 2>&5
26160   ac_status=$?
26161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); } &&
26163          { ac_try='test -s conftest.$ac_objext'
26164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26165   (eval $ac_try) 2>&5
26166   ac_status=$?
26167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168   (exit $ac_status); }; }; then
26169   ac_header_compiler=yes
26170 else
26171   echo "$as_me: failed program was:" >&5
26172 sed 's/^/| /' conftest.$ac_ext >&5
26173
26174 ac_header_compiler=no
26175 fi
26176 rm -f conftest.$ac_objext conftest.$ac_ext
26177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26178 echo "${ECHO_T}$ac_header_compiler" >&6
26179
26180 # Is the header present?
26181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26183 cat >conftest.$ac_ext <<_ACEOF
26184 #line $LINENO "configure"
26185 /* confdefs.h.  */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h.  */
26190 #include <$ac_header>
26191 _ACEOF
26192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26194   ac_status=$?
26195   grep -v '^ *+' conftest.er1 >conftest.err
26196   rm -f conftest.er1
26197   cat conftest.err >&5
26198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199   (exit $ac_status); } >/dev/null; then
26200   if test -s conftest.err; then
26201     ac_cpp_err=$ac_c_preproc_warn_flag
26202   else
26203     ac_cpp_err=
26204   fi
26205 else
26206   ac_cpp_err=yes
26207 fi
26208 if test -z "$ac_cpp_err"; then
26209   ac_header_preproc=yes
26210 else
26211   echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26213
26214   ac_header_preproc=no
26215 fi
26216 rm -f conftest.err conftest.$ac_ext
26217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26218 echo "${ECHO_T}$ac_header_preproc" >&6
26219
26220 # So?  What about this header?
26221 case $ac_header_compiler:$ac_header_preproc in
26222   yes:no )
26223     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26227     (
26228       cat <<\_ASBOX
26229 ## ------------------------------------ ##
26230 ## Report this to bug-autoconf@gnu.org. ##
26231 ## ------------------------------------ ##
26232 _ASBOX
26233     ) |
26234       sed "s/^/$as_me: WARNING:     /" >&2
26235     ;;
26236   no:yes )
26237     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26239     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26243     (
26244       cat <<\_ASBOX
26245 ## ------------------------------------ ##
26246 ## Report this to bug-autoconf@gnu.org. ##
26247 ## ------------------------------------ ##
26248 _ASBOX
26249     ) |
26250       sed "s/^/$as_me: WARNING:     /" >&2
26251     ;;
26252 esac
26253 echo "$as_me:$LINENO: checking for $ac_header" >&5
26254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26256   echo $ECHO_N "(cached) $ECHO_C" >&6
26257 else
26258   eval "$as_ac_Header=$ac_header_preproc"
26259 fi
26260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26262
26263 fi
26264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26265   cat >>confdefs.h <<_ACEOF
26266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26267 _ACEOF
26268
26269 fi
26270
26271 done
26272
26273
26274   if test "${glibcxx_cv_POLL+set}" = set; then
26275   echo $ECHO_N "(cached) $ECHO_C" >&6
26276 else
26277
26278     if test x$gcc_no_link = xyes; then
26279   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26281    { (exit 1); exit 1; }; }
26282 fi
26283 cat >conftest.$ac_ext <<_ACEOF
26284 #line $LINENO "configure"
26285 /* confdefs.h.  */
26286 _ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h.  */
26290 #include <poll.h>
26291 int
26292 main ()
26293 {
26294 struct pollfd pfd[1];
26295        pfd[0].events = POLLIN;
26296        poll(pfd, 1, 0);
26297   ;
26298   return 0;
26299 }
26300 _ACEOF
26301 rm -f conftest.$ac_objext conftest$ac_exeext
26302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26303   (eval $ac_link) 2>&5
26304   ac_status=$?
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); } &&
26307          { ac_try='test -s conftest$ac_exeext'
26308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309   (eval $ac_try) 2>&5
26310   ac_status=$?
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); }; }; then
26313   glibcxx_cv_POLL=yes
26314 else
26315   echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26317
26318 glibcxx_cv_POLL=no
26319 fi
26320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26321
26322 fi
26323
26324   if test $glibcxx_cv_POLL = yes; then
26325     cat >>confdefs.h <<\_ACEOF
26326 #define HAVE_POLL 1
26327 _ACEOF
26328
26329   fi
26330
26331
26332   if test "${glibcxx_cv_S_ISREG+set}" = set; then
26333   echo $ECHO_N "(cached) $ECHO_C" >&6
26334 else
26335
26336     if test x$gcc_no_link = xyes; then
26337   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26339    { (exit 1); exit 1; }; }
26340 fi
26341 cat >conftest.$ac_ext <<_ACEOF
26342 #line $LINENO "configure"
26343 /* confdefs.h.  */
26344 _ACEOF
26345 cat confdefs.h >>conftest.$ac_ext
26346 cat >>conftest.$ac_ext <<_ACEOF
26347 /* end confdefs.h.  */
26348 #include <sys/stat.h>
26349 int
26350 main ()
26351 {
26352 struct stat buffer;
26353        fstat(0, &buffer);
26354        S_ISREG(buffer.st_mode);
26355   ;
26356   return 0;
26357 }
26358 _ACEOF
26359 rm -f conftest.$ac_objext conftest$ac_exeext
26360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26361   (eval $ac_link) 2>&5
26362   ac_status=$?
26363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364   (exit $ac_status); } &&
26365          { ac_try='test -s conftest$ac_exeext'
26366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26367   (eval $ac_try) 2>&5
26368   ac_status=$?
26369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370   (exit $ac_status); }; }; then
26371   glibcxx_cv_S_ISREG=yes
26372 else
26373   echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26375
26376 glibcxx_cv_S_ISREG=no
26377 fi
26378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26379
26380 fi
26381
26382   if test "${glibcxx_cv_S_IFREG+set}" = set; then
26383   echo $ECHO_N "(cached) $ECHO_C" >&6
26384 else
26385
26386     if test x$gcc_no_link = xyes; then
26387   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26389    { (exit 1); exit 1; }; }
26390 fi
26391 cat >conftest.$ac_ext <<_ACEOF
26392 #line $LINENO "configure"
26393 /* confdefs.h.  */
26394 _ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h.  */
26398 #include <sys/stat.h>
26399 int
26400 main ()
26401 {
26402 struct stat buffer;
26403        fstat(0, &buffer);
26404        S_IFREG & buffer.st_mode;
26405   ;
26406   return 0;
26407 }
26408 _ACEOF
26409 rm -f conftest.$ac_objext conftest$ac_exeext
26410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26411   (eval $ac_link) 2>&5
26412   ac_status=$?
26413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414   (exit $ac_status); } &&
26415          { ac_try='test -s conftest$ac_exeext'
26416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26417   (eval $ac_try) 2>&5
26418   ac_status=$?
26419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420   (exit $ac_status); }; }; then
26421   glibcxx_cv_S_IFREG=yes
26422 else
26423   echo "$as_me: failed program was:" >&5
26424 sed 's/^/| /' conftest.$ac_ext >&5
26425
26426 glibcxx_cv_S_IFREG=no
26427 fi
26428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26429
26430 fi
26431
26432   if test $glibcxx_cv_S_ISREG = yes; then
26433     cat >>confdefs.h <<\_ACEOF
26434 #define HAVE_S_ISREG 1
26435 _ACEOF
26436
26437   elif test $glibcxx_cv_S_IFREG = yes; then
26438     cat >>confdefs.h <<\_ACEOF
26439 #define HAVE_S_IFREG 1
26440 _ACEOF
26441
26442   fi
26443
26444
26445   # For xsputn_2().
26446
26447 for ac_header in sys/uio.h
26448 do
26449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26451   echo "$as_me:$LINENO: checking for $ac_header" >&5
26452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26454   echo $ECHO_N "(cached) $ECHO_C" >&6
26455 fi
26456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26458 else
26459   # Is the header compilable?
26460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26462 cat >conftest.$ac_ext <<_ACEOF
26463 #line $LINENO "configure"
26464 /* confdefs.h.  */
26465 _ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h.  */
26469 $ac_includes_default
26470 #include <$ac_header>
26471 _ACEOF
26472 rm -f conftest.$ac_objext
26473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26474   (eval $ac_compile) 2>&5
26475   ac_status=$?
26476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477   (exit $ac_status); } &&
26478          { ac_try='test -s conftest.$ac_objext'
26479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480   (eval $ac_try) 2>&5
26481   ac_status=$?
26482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); }; }; then
26484   ac_header_compiler=yes
26485 else
26486   echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26488
26489 ac_header_compiler=no
26490 fi
26491 rm -f conftest.$ac_objext conftest.$ac_ext
26492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26493 echo "${ECHO_T}$ac_header_compiler" >&6
26494
26495 # Is the header present?
26496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26498 cat >conftest.$ac_ext <<_ACEOF
26499 #line $LINENO "configure"
26500 /* confdefs.h.  */
26501 _ACEOF
26502 cat confdefs.h >>conftest.$ac_ext
26503 cat >>conftest.$ac_ext <<_ACEOF
26504 /* end confdefs.h.  */
26505 #include <$ac_header>
26506 _ACEOF
26507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26509   ac_status=$?
26510   grep -v '^ *+' conftest.er1 >conftest.err
26511   rm -f conftest.er1
26512   cat conftest.err >&5
26513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514   (exit $ac_status); } >/dev/null; then
26515   if test -s conftest.err; then
26516     ac_cpp_err=$ac_c_preproc_warn_flag
26517   else
26518     ac_cpp_err=
26519   fi
26520 else
26521   ac_cpp_err=yes
26522 fi
26523 if test -z "$ac_cpp_err"; then
26524   ac_header_preproc=yes
26525 else
26526   echo "$as_me: failed program was:" >&5
26527 sed 's/^/| /' conftest.$ac_ext >&5
26528
26529   ac_header_preproc=no
26530 fi
26531 rm -f conftest.err conftest.$ac_ext
26532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26533 echo "${ECHO_T}$ac_header_preproc" >&6
26534
26535 # So?  What about this header?
26536 case $ac_header_compiler:$ac_header_preproc in
26537   yes:no )
26538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26542     (
26543       cat <<\_ASBOX
26544 ## ------------------------------------ ##
26545 ## Report this to bug-autoconf@gnu.org. ##
26546 ## ------------------------------------ ##
26547 _ASBOX
26548     ) |
26549       sed "s/^/$as_me: WARNING:     /" >&2
26550     ;;
26551   no:yes )
26552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26554     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26558     (
26559       cat <<\_ASBOX
26560 ## ------------------------------------ ##
26561 ## Report this to bug-autoconf@gnu.org. ##
26562 ## ------------------------------------ ##
26563 _ASBOX
26564     ) |
26565       sed "s/^/$as_me: WARNING:     /" >&2
26566     ;;
26567 esac
26568 echo "$as_me:$LINENO: checking for $ac_header" >&5
26569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26571   echo $ECHO_N "(cached) $ECHO_C" >&6
26572 else
26573   eval "$as_ac_Header=$ac_header_preproc"
26574 fi
26575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26577
26578 fi
26579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26580   cat >>confdefs.h <<_ACEOF
26581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26582 _ACEOF
26583
26584 fi
26585
26586 done
26587
26588
26589   if test "${glibcxx_cv_WRITEV+set}" = set; then
26590   echo $ECHO_N "(cached) $ECHO_C" >&6
26591 else
26592
26593     if test x$gcc_no_link = xyes; then
26594   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26596    { (exit 1); exit 1; }; }
26597 fi
26598 cat >conftest.$ac_ext <<_ACEOF
26599 #line $LINENO "configure"
26600 /* confdefs.h.  */
26601 _ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h.  */
26605 #include <sys/uio.h>
26606 int
26607 main ()
26608 {
26609 struct iovec iov[2];
26610        writev(0, iov, 0);
26611   ;
26612   return 0;
26613 }
26614 _ACEOF
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26617   (eval $ac_link) 2>&5
26618   ac_status=$?
26619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620   (exit $ac_status); } &&
26621          { ac_try='test -s conftest$ac_exeext'
26622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623   (eval $ac_try) 2>&5
26624   ac_status=$?
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); }; }; then
26627   glibcxx_cv_WRITEV=yes
26628 else
26629   echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632 glibcxx_cv_WRITEV=no
26633 fi
26634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26635
26636 fi
26637
26638   if test $glibcxx_cv_WRITEV = yes; then
26639     cat >>confdefs.h <<\_ACEOF
26640 #define HAVE_WRITEV 1
26641 _ACEOF
26642
26643   fi
26644
26645
26646   # For the __streamoff_base_type typedef.
26647
26648   if test "${glibcxx_cv_INT64_T+set}" = set; then
26649   echo $ECHO_N "(cached) $ECHO_C" >&6
26650 else
26651
26652     cat >conftest.$ac_ext <<_ACEOF
26653 #line $LINENO "configure"
26654 /* confdefs.h.  */
26655 _ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h.  */
26659 #include <stdint.h>
26660 int
26661 main ()
26662 {
26663 int64_t var;
26664   ;
26665   return 0;
26666 }
26667 _ACEOF
26668 rm -f conftest.$ac_objext
26669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26670   (eval $ac_compile) 2>&5
26671   ac_status=$?
26672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673   (exit $ac_status); } &&
26674          { ac_try='test -s conftest.$ac_objext'
26675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26676   (eval $ac_try) 2>&5
26677   ac_status=$?
26678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679   (exit $ac_status); }; }; then
26680   glibcxx_cv_INT64_T=yes
26681 else
26682   echo "$as_me: failed program was:" >&5
26683 sed 's/^/| /' conftest.$ac_ext >&5
26684
26685 glibcxx_cv_INT64_T=no
26686 fi
26687 rm -f conftest.$ac_objext conftest.$ac_ext
26688
26689 fi
26690
26691   if test $glibcxx_cv_INT64_T = yes; then
26692     cat >>confdefs.h <<\_ACEOF
26693 #define HAVE_INT64_T 1
26694 _ACEOF
26695
26696   fi
26697
26698
26699   # For LFS support.
26700
26701
26702
26703   ac_ext=cc
26704 ac_cpp='$CXXCPP $CPPFLAGS'
26705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26708
26709   ac_save_CXXFLAGS="$CXXFLAGS"
26710   CXXFLAGS="$CXXFLAGS -fno-exceptions"
26711   if test "${glibcxx_cv_LFS+set}" = set; then
26712   echo $ECHO_N "(cached) $ECHO_C" >&6
26713 else
26714
26715     if test x$gcc_no_link = xyes; then
26716   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26718    { (exit 1); exit 1; }; }
26719 fi
26720 cat >conftest.$ac_ext <<_ACEOF
26721 #line $LINENO "configure"
26722 /* confdefs.h.  */
26723 _ACEOF
26724 cat confdefs.h >>conftest.$ac_ext
26725 cat >>conftest.$ac_ext <<_ACEOF
26726 /* end confdefs.h.  */
26727 #include <unistd.h>
26728        #include <stdio.h>
26729
26730 int
26731 main ()
26732 {
26733 FILE* fp;
26734        fopen64("t", "w");
26735        fseeko64(fp, 0, SEEK_CUR);
26736        ftello64(fp);
26737        lseek64(1, 0, SEEK_CUR);
26738   ;
26739   return 0;
26740 }
26741 _ACEOF
26742 rm -f conftest.$ac_objext conftest$ac_exeext
26743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26744   (eval $ac_link) 2>&5
26745   ac_status=$?
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); } &&
26748          { ac_try='test -s conftest$ac_exeext'
26749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750   (eval $ac_try) 2>&5
26751   ac_status=$?
26752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); }; }; then
26754   glibcxx_cv_LFS=yes
26755 else
26756   echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26758
26759 glibcxx_cv_LFS=no
26760 fi
26761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26762
26763 fi
26764
26765   if test $glibcxx_cv_LFS = yes; then
26766     cat >>confdefs.h <<\_ACEOF
26767 #define _GLIBCXX_USE_LFS 1
26768 _ACEOF
26769
26770   fi
26771   CXXFLAGS="$ac_save_CXXFLAGS"
26772   ac_ext=c
26773 ac_cpp='$CPP $CPPFLAGS'
26774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26777
26778
26779
26780
26781   if test "${ac_cv_header_locale_h+set}" = set; then
26782   echo "$as_me:$LINENO: checking for locale.h" >&5
26783 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26784 if test "${ac_cv_header_locale_h+set}" = set; then
26785   echo $ECHO_N "(cached) $ECHO_C" >&6
26786 fi
26787 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26788 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26789 else
26790   # Is the header compilable?
26791 echo "$as_me:$LINENO: checking locale.h usability" >&5
26792 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
26793 cat >conftest.$ac_ext <<_ACEOF
26794 #line $LINENO "configure"
26795 /* confdefs.h.  */
26796 _ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h.  */
26800 $ac_includes_default
26801 #include <locale.h>
26802 _ACEOF
26803 rm -f conftest.$ac_objext
26804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26805   (eval $ac_compile) 2>&5
26806   ac_status=$?
26807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808   (exit $ac_status); } &&
26809          { ac_try='test -s conftest.$ac_objext'
26810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811   (eval $ac_try) 2>&5
26812   ac_status=$?
26813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814   (exit $ac_status); }; }; then
26815   ac_header_compiler=yes
26816 else
26817   echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26819
26820 ac_header_compiler=no
26821 fi
26822 rm -f conftest.$ac_objext conftest.$ac_ext
26823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26824 echo "${ECHO_T}$ac_header_compiler" >&6
26825
26826 # Is the header present?
26827 echo "$as_me:$LINENO: checking locale.h presence" >&5
26828 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
26829 cat >conftest.$ac_ext <<_ACEOF
26830 #line $LINENO "configure"
26831 /* confdefs.h.  */
26832 _ACEOF
26833 cat confdefs.h >>conftest.$ac_ext
26834 cat >>conftest.$ac_ext <<_ACEOF
26835 /* end confdefs.h.  */
26836 #include <locale.h>
26837 _ACEOF
26838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26840   ac_status=$?
26841   grep -v '^ *+' conftest.er1 >conftest.err
26842   rm -f conftest.er1
26843   cat conftest.err >&5
26844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845   (exit $ac_status); } >/dev/null; then
26846   if test -s conftest.err; then
26847     ac_cpp_err=$ac_c_preproc_warn_flag
26848   else
26849     ac_cpp_err=
26850   fi
26851 else
26852   ac_cpp_err=yes
26853 fi
26854 if test -z "$ac_cpp_err"; then
26855   ac_header_preproc=yes
26856 else
26857   echo "$as_me: failed program was:" >&5
26858 sed 's/^/| /' conftest.$ac_ext >&5
26859
26860   ac_header_preproc=no
26861 fi
26862 rm -f conftest.err conftest.$ac_ext
26863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26864 echo "${ECHO_T}$ac_header_preproc" >&6
26865
26866 # So?  What about this header?
26867 case $ac_header_compiler:$ac_header_preproc in
26868   yes:no )
26869     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
26870 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26871     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26872 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26873     (
26874       cat <<\_ASBOX
26875 ## ------------------------------------ ##
26876 ## Report this to bug-autoconf@gnu.org. ##
26877 ## ------------------------------------ ##
26878 _ASBOX
26879     ) |
26880       sed "s/^/$as_me: WARNING:     /" >&2
26881     ;;
26882   no:yes )
26883     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
26884 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
26885     { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
26886 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
26887     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26888 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26889     (
26890       cat <<\_ASBOX
26891 ## ------------------------------------ ##
26892 ## Report this to bug-autoconf@gnu.org. ##
26893 ## ------------------------------------ ##
26894 _ASBOX
26895     ) |
26896       sed "s/^/$as_me: WARNING:     /" >&2
26897     ;;
26898 esac
26899 echo "$as_me:$LINENO: checking for locale.h" >&5
26900 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26901 if test "${ac_cv_header_locale_h+set}" = set; then
26902   echo $ECHO_N "(cached) $ECHO_C" >&6
26903 else
26904   ac_cv_header_locale_h=$ac_header_preproc
26905 fi
26906 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26907 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26908
26909 fi
26910 if test $ac_cv_header_locale_h = yes; then
26911
26912     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
26913 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
26914 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
26915   echo $ECHO_N "(cached) $ECHO_C" >&6
26916 else
26917   if test x$gcc_no_link = xyes; then
26918   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26919 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26920    { (exit 1); exit 1; }; }
26921 fi
26922 cat >conftest.$ac_ext <<_ACEOF
26923 #line $LINENO "configure"
26924 /* confdefs.h.  */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h.  */
26929 #include <locale.h>
26930 int
26931 main ()
26932 {
26933 return LC_MESSAGES
26934   ;
26935   return 0;
26936 }
26937 _ACEOF
26938 rm -f conftest.$ac_objext conftest$ac_exeext
26939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26940   (eval $ac_link) 2>&5
26941   ac_status=$?
26942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943   (exit $ac_status); } &&
26944          { ac_try='test -s conftest$ac_exeext'
26945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946   (eval $ac_try) 2>&5
26947   ac_status=$?
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); }; }; then
26950   ac_cv_val_LC_MESSAGES=yes
26951 else
26952   echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26954
26955 ac_cv_val_LC_MESSAGES=no
26956 fi
26957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26958 fi
26959 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
26960 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
26961     if test $ac_cv_val_LC_MESSAGES = yes; then
26962       cat >>confdefs.h <<\_ACEOF
26963 #define HAVE_LC_MESSAGES 1
26964 _ACEOF
26965
26966     fi
26967
26968 fi
26969
26970
26971
26972
26973   cat >conftest.$ac_ext <<_ACEOF
26974 #line $LINENO "configure"
26975 /* confdefs.h.  */
26976 _ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h.  */
26980 #include <setjmp.h>
26981 int
26982 main ()
26983 {
26984 sigjmp_buf env;
26985      while (! sigsetjmp (env, 1))
26986        siglongjmp (env, 1);
26987
26988   ;
26989   return 0;
26990 }
26991 _ACEOF
26992 rm -f conftest.$ac_objext
26993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26994   (eval $ac_compile) 2>&5
26995   ac_status=$?
26996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); } &&
26998          { ac_try='test -s conftest.$ac_objext'
26999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27000   (eval $ac_try) 2>&5
27001   ac_status=$?
27002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003   (exit $ac_status); }; }; then
27004
27005 cat >>confdefs.h <<\_ACEOF
27006 #define HAVE_SIGSETJMP 1
27007 _ACEOF
27008
27009 else
27010   echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27012
27013 fi
27014 rm -f conftest.$ac_objext conftest.$ac_ext
27015
27016   if test x$gcc_no_link = xyes; then
27017   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
27018     ac_cv_func_mmap_fixed_mapped=no
27019   fi
27020 fi
27021 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
27022
27023
27024 for ac_header in stdlib.h unistd.h
27025 do
27026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27028   echo "$as_me:$LINENO: checking for $ac_header" >&5
27029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27031   echo $ECHO_N "(cached) $ECHO_C" >&6
27032 fi
27033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27035 else
27036   # Is the header compilable?
27037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
27047 #include <$ac_header>
27048 _ACEOF
27049 rm -f conftest.$ac_objext
27050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27051   (eval $ac_compile) 2>&5
27052   ac_status=$?
27053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054   (exit $ac_status); } &&
27055          { ac_try='test -s conftest.$ac_objext'
27056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057   (eval $ac_try) 2>&5
27058   ac_status=$?
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); }; }; then
27061   ac_header_compiler=yes
27062 else
27063   echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27065
27066 ac_header_compiler=no
27067 fi
27068 rm -f conftest.$ac_objext conftest.$ac_ext
27069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27070 echo "${ECHO_T}$ac_header_compiler" >&6
27071
27072 # Is the header present?
27073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27075 cat >conftest.$ac_ext <<_ACEOF
27076 #line $LINENO "configure"
27077 /* confdefs.h.  */
27078 _ACEOF
27079 cat confdefs.h >>conftest.$ac_ext
27080 cat >>conftest.$ac_ext <<_ACEOF
27081 /* end confdefs.h.  */
27082 #include <$ac_header>
27083 _ACEOF
27084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27086   ac_status=$?
27087   grep -v '^ *+' conftest.er1 >conftest.err
27088   rm -f conftest.er1
27089   cat conftest.err >&5
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); } >/dev/null; then
27092   if test -s conftest.err; then
27093     ac_cpp_err=$ac_c_preproc_warn_flag
27094   else
27095     ac_cpp_err=
27096   fi
27097 else
27098   ac_cpp_err=yes
27099 fi
27100 if test -z "$ac_cpp_err"; then
27101   ac_header_preproc=yes
27102 else
27103   echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.$ac_ext >&5
27105
27106   ac_header_preproc=no
27107 fi
27108 rm -f conftest.err conftest.$ac_ext
27109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27110 echo "${ECHO_T}$ac_header_preproc" >&6
27111
27112 # So?  What about this header?
27113 case $ac_header_compiler:$ac_header_preproc in
27114   yes:no )
27115     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27119     (
27120       cat <<\_ASBOX
27121 ## ------------------------------------ ##
27122 ## Report this to bug-autoconf@gnu.org. ##
27123 ## ------------------------------------ ##
27124 _ASBOX
27125     ) |
27126       sed "s/^/$as_me: WARNING:     /" >&2
27127     ;;
27128   no:yes )
27129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27131     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27135     (
27136       cat <<\_ASBOX
27137 ## ------------------------------------ ##
27138 ## Report this to bug-autoconf@gnu.org. ##
27139 ## ------------------------------------ ##
27140 _ASBOX
27141     ) |
27142       sed "s/^/$as_me: WARNING:     /" >&2
27143     ;;
27144 esac
27145 echo "$as_me:$LINENO: checking for $ac_header" >&5
27146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27148   echo $ECHO_N "(cached) $ECHO_C" >&6
27149 else
27150   eval "$as_ac_Header=$ac_header_preproc"
27151 fi
27152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27154
27155 fi
27156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27157   cat >>confdefs.h <<_ACEOF
27158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27159 _ACEOF
27160
27161 fi
27162
27163 done
27164
27165
27166 for ac_func in getpagesize
27167 do
27168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27169 echo "$as_me:$LINENO: checking for $ac_func" >&5
27170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27171 if eval "test \"\${$as_ac_var+set}\" = set"; then
27172   echo $ECHO_N "(cached) $ECHO_C" >&6
27173 else
27174   if test x$gcc_no_link = xyes; then
27175   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27176 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27177    { (exit 1); exit 1; }; }
27178 fi
27179 cat >conftest.$ac_ext <<_ACEOF
27180 #line $LINENO "configure"
27181 /* confdefs.h.  */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h.  */
27186 /* System header to define __stub macros and hopefully few prototypes,
27187     which can conflict with char $ac_func (); below.
27188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27189     <limits.h> exists even on freestanding compilers.  */
27190 #ifdef __STDC__
27191 # include <limits.h>
27192 #else
27193 # include <assert.h>
27194 #endif
27195 /* Override any gcc2 internal prototype to avoid an error.  */
27196 #ifdef __cplusplus
27197 extern "C"
27198 {
27199 #endif
27200 /* We use char because int might match the return type of a gcc2
27201    builtin and then its argument prototype would still apply.  */
27202 char $ac_func ();
27203 /* The GNU C library defines this for functions which it implements
27204     to always fail with ENOSYS.  Some functions are actually named
27205     something starting with __ and the normal name is an alias.  */
27206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27207 choke me
27208 #else
27209 char (*f) () = $ac_func;
27210 #endif
27211 #ifdef __cplusplus
27212 }
27213 #endif
27214
27215 int
27216 main ()
27217 {
27218 return f != $ac_func;
27219   ;
27220   return 0;
27221 }
27222 _ACEOF
27223 rm -f conftest.$ac_objext conftest$ac_exeext
27224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27225   (eval $ac_link) 2>&5
27226   ac_status=$?
27227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228   (exit $ac_status); } &&
27229          { ac_try='test -s conftest$ac_exeext'
27230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231   (eval $ac_try) 2>&5
27232   ac_status=$?
27233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); }; }; then
27235   eval "$as_ac_var=yes"
27236 else
27237   echo "$as_me: failed program was:" >&5
27238 sed 's/^/| /' conftest.$ac_ext >&5
27239
27240 eval "$as_ac_var=no"
27241 fi
27242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27243 fi
27244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27246 if test `eval echo '${'$as_ac_var'}'` = yes; then
27247   cat >>confdefs.h <<_ACEOF
27248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27249 _ACEOF
27250
27251 fi
27252 done
27253
27254 echo "$as_me:$LINENO: checking for working mmap" >&5
27255 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
27256 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
27257   echo $ECHO_N "(cached) $ECHO_C" >&6
27258 else
27259   if test "$cross_compiling" = yes; then
27260   ac_cv_func_mmap_fixed_mapped=no
27261 else
27262   cat >conftest.$ac_ext <<_ACEOF
27263 #line $LINENO "configure"
27264 /* confdefs.h.  */
27265 _ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h.  */
27269 $ac_includes_default
27270 /* malloc might have been renamed as rpl_malloc. */
27271 #undef malloc
27272
27273 /* Thanks to Mike Haertel and Jim Avera for this test.
27274    Here is a matrix of mmap possibilities:
27275         mmap private not fixed
27276         mmap private fixed at somewhere currently unmapped
27277         mmap private fixed at somewhere already mapped
27278         mmap shared not fixed
27279         mmap shared fixed at somewhere currently unmapped
27280         mmap shared fixed at somewhere already mapped
27281    For private mappings, we should verify that changes cannot be read()
27282    back from the file, nor mmap's back from the file at a different
27283    address.  (There have been systems where private was not correctly
27284    implemented like the infamous i386 svr4.0, and systems where the
27285    VM page cache was not coherent with the file system buffer cache
27286    like early versions of FreeBSD and possibly contemporary NetBSD.)
27287    For shared mappings, we should conversely verify that changes get
27288    propagated back to all the places they're supposed to be.
27289
27290    Grep wants private fixed already mapped.
27291    The main things grep needs to know about mmap are:
27292    * does it exist and is it safe to write into the mmap'd area
27293    * how to use it (BSD variants)  */
27294
27295 #include <fcntl.h>
27296 #include <sys/mman.h>
27297
27298 #if !STDC_HEADERS && !HAVE_STDLIB_H
27299 char *malloc ();
27300 #endif
27301
27302 /* This mess was copied from the GNU getpagesize.h.  */
27303 #if !HAVE_GETPAGESIZE
27304 /* Assume that all systems that can run configure have sys/param.h.  */
27305 # if !HAVE_SYS_PARAM_H
27306 #  define HAVE_SYS_PARAM_H 1
27307 # endif
27308
27309 # ifdef _SC_PAGESIZE
27310 #  define getpagesize() sysconf(_SC_PAGESIZE)
27311 # else /* no _SC_PAGESIZE */
27312 #  if HAVE_SYS_PARAM_H
27313 #   include <sys/param.h>
27314 #   ifdef EXEC_PAGESIZE
27315 #    define getpagesize() EXEC_PAGESIZE
27316 #   else /* no EXEC_PAGESIZE */
27317 #    ifdef NBPG
27318 #     define getpagesize() NBPG * CLSIZE
27319 #     ifndef CLSIZE
27320 #      define CLSIZE 1
27321 #     endif /* no CLSIZE */
27322 #    else /* no NBPG */
27323 #     ifdef NBPC
27324 #      define getpagesize() NBPC
27325 #     else /* no NBPC */
27326 #      ifdef PAGESIZE
27327 #       define getpagesize() PAGESIZE
27328 #      endif /* PAGESIZE */
27329 #     endif /* no NBPC */
27330 #    endif /* no NBPG */
27331 #   endif /* no EXEC_PAGESIZE */
27332 #  else /* no HAVE_SYS_PARAM_H */
27333 #   define getpagesize() 8192   /* punt totally */
27334 #  endif /* no HAVE_SYS_PARAM_H */
27335 # endif /* no _SC_PAGESIZE */
27336
27337 #endif /* no HAVE_GETPAGESIZE */
27338
27339 int
27340 main ()
27341 {
27342   char *data, *data2, *data3;
27343   int i, pagesize;
27344   int fd;
27345
27346   pagesize = getpagesize ();
27347
27348   /* First, make a file with some known garbage in it. */
27349   data = (char *) malloc (pagesize);
27350   if (!data)
27351     exit (1);
27352   for (i = 0; i < pagesize; ++i)
27353     *(data + i) = rand ();
27354   umask (0);
27355   fd = creat ("conftest.mmap", 0600);
27356   if (fd < 0)
27357     exit (1);
27358   if (write (fd, data, pagesize) != pagesize)
27359     exit (1);
27360   close (fd);
27361
27362   /* Next, try to mmap the file at a fixed address which already has
27363      something else allocated at it.  If we can, also make sure that
27364      we see the same garbage.  */
27365   fd = open ("conftest.mmap", O_RDWR);
27366   if (fd < 0)
27367     exit (1);
27368   data2 = (char *) malloc (2 * pagesize);
27369   if (!data2)
27370     exit (1);
27371   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
27372   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27373                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
27374     exit (1);
27375   for (i = 0; i < pagesize; ++i)
27376     if (*(data + i) != *(data2 + i))
27377       exit (1);
27378
27379   /* Finally, make sure that changes to the mapped area do not
27380      percolate back to the file as seen by read().  (This is a bug on
27381      some variants of i386 svr4.0.)  */
27382   for (i = 0; i < pagesize; ++i)
27383     *(data2 + i) = *(data2 + i) + 1;
27384   data3 = (char *) malloc (pagesize);
27385   if (!data3)
27386     exit (1);
27387   if (read (fd, data3, pagesize) != pagesize)
27388     exit (1);
27389   for (i = 0; i < pagesize; ++i)
27390     if (*(data + i) != *(data3 + i))
27391       exit (1);
27392   close (fd);
27393   exit (0);
27394 }
27395 _ACEOF
27396 rm -f conftest$ac_exeext
27397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27398   (eval $ac_link) 2>&5
27399   ac_status=$?
27400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27403   (eval $ac_try) 2>&5
27404   ac_status=$?
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); }; }; then
27407   ac_cv_func_mmap_fixed_mapped=yes
27408 else
27409   echo "$as_me: program exited with status $ac_status" >&5
27410 echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27412
27413 ( exit $ac_status )
27414 ac_cv_func_mmap_fixed_mapped=no
27415 fi
27416 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27417 fi
27418 fi
27419 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
27420 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
27421 if test $ac_cv_func_mmap_fixed_mapped = yes; then
27422
27423 cat >>confdefs.h <<\_ACEOF
27424 #define HAVE_MMAP 1
27425 _ACEOF
27426
27427 fi
27428 rm -f conftest.mmap
27429
27430 fi
27431
27432 else
27433
27434   # This lets us hard-code the functionality we know we'll have in the cross
27435   # target environment.  "Let" is a sugar-coated word placed on an especially
27436   # dull and tedious hack, actually.
27437   #
27438   # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
27439   # that involve linking, can't be used:
27440   #    "cannot open sim-crt0.o"
27441   #    "cannot open crt0.o"
27442   # etc.  All this is because there currently exists no unified, consistent
27443   # way for top level CC information to be passed down to target directories:
27444   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
27445   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
27446   # crosses can be removed.
27447
27448   # If Canadian cross, then don't pick up tools from the build directory.
27449   # Used only in GLIBCXX_EXPORT_INCLUDES.
27450   if test -n "$with_cross_host" &&
27451      test x"$build_alias" != x"$with_cross_host" &&
27452      test x"$build" != x"$target";
27453   then
27454     CANADIAN=yes
27455   else
27456     CANADIAN=no
27457   fi
27458
27459   # Construct crosses by hand, eliminating bits that need ld...
27460   # GLIBCXX_CHECK_COMPILER_FEATURES
27461   # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
27462   # GLIBCXX_CHECK_MATH_SUPPORT
27463
27464   # First, test for "known" system libraries.  We may be using newlib even
27465   # on a hosted environment.
27466   if test "x${with_newlib}" = "xyes"; then
27467     os_include_dir="os/newlib"
27468     cat >>confdefs.h <<\_ACEOF
27469 #define HAVE_HYPOT 1
27470 _ACEOF
27471
27472
27473     # GLIBCXX_CHECK_STDLIB_SUPPORT
27474     cat >>confdefs.h <<\_ACEOF
27475 #define HAVE_STRTOF 1
27476 _ACEOF
27477
27478     cat >>confdefs.h <<\_ACEOF
27479 #define HAVE_STRTOLD 1
27480 _ACEOF
27481
27482     # AC_FUNC_MMAP
27483     cat >>confdefs.h <<\_ACEOF
27484 #define HAVE_MMAP 1
27485 _ACEOF
27486
27487
27488     cat >>confdefs.h <<\_ACEOF
27489 #define HAVE_ACOSF 1
27490 _ACEOF
27491
27492     cat >>confdefs.h <<\_ACEOF
27493 #define HAVE_ASINF 1
27494 _ACEOF
27495
27496     cat >>confdefs.h <<\_ACEOF
27497 #define HAVE_ATAN2F 1
27498 _ACEOF
27499
27500     cat >>confdefs.h <<\_ACEOF
27501 #define HAVE_ATANF 1
27502 _ACEOF
27503
27504     cat >>confdefs.h <<\_ACEOF
27505 #define HAVE_CEILF 1
27506 _ACEOF
27507
27508     cat >>confdefs.h <<\_ACEOF
27509 #define HAVE_COPYSIGN 1
27510 _ACEOF
27511
27512     cat >>confdefs.h <<\_ACEOF
27513 #define HAVE_COPYSIGNF 1
27514 _ACEOF
27515
27516     cat >>confdefs.h <<\_ACEOF
27517 #define HAVE_COSF 1
27518 _ACEOF
27519
27520     cat >>confdefs.h <<\_ACEOF
27521 #define HAVE_COSHF 1
27522 _ACEOF
27523
27524     cat >>confdefs.h <<\_ACEOF
27525 #define HAVE_EXPF 1
27526 _ACEOF
27527
27528     cat >>confdefs.h <<\_ACEOF
27529 #define HAVE_FABSF 1
27530 _ACEOF
27531
27532     cat >>confdefs.h <<\_ACEOF
27533 #define HAVE_FLOORF 1
27534 _ACEOF
27535
27536     cat >>confdefs.h <<\_ACEOF
27537 #define HAVE_FMODF 1
27538 _ACEOF
27539
27540     cat >>confdefs.h <<\_ACEOF
27541 #define HAVE_FREXPF 1
27542 _ACEOF
27543
27544     cat >>confdefs.h <<\_ACEOF
27545 #define HAVE_LDEXPF 1
27546 _ACEOF
27547
27548     cat >>confdefs.h <<\_ACEOF
27549 #define HAVE_LOG10F 1
27550 _ACEOF
27551
27552     cat >>confdefs.h <<\_ACEOF
27553 #define HAVE_LOGF 1
27554 _ACEOF
27555
27556     cat >>confdefs.h <<\_ACEOF
27557 #define HAVE_MODFF 1
27558 _ACEOF
27559
27560     cat >>confdefs.h <<\_ACEOF
27561 #define HAVE_POWF 1
27562 _ACEOF
27563
27564     cat >>confdefs.h <<\_ACEOF
27565 #define HAVE_SINF 1
27566 _ACEOF
27567
27568     cat >>confdefs.h <<\_ACEOF
27569 #define HAVE_SINHF 1
27570 _ACEOF
27571
27572     cat >>confdefs.h <<\_ACEOF
27573 #define HAVE_SQRTF 1
27574 _ACEOF
27575
27576     cat >>confdefs.h <<\_ACEOF
27577 #define HAVE_TANF 1
27578 _ACEOF
27579
27580     cat >>confdefs.h <<\_ACEOF
27581 #define HAVE_TANHF 1
27582 _ACEOF
27583
27584
27585     cat >>confdefs.h <<\_ACEOF
27586 #define HAVE_S_ISREG 1
27587 _ACEOF
27588
27589     cat >>confdefs.h <<\_ACEOF
27590 #define HAVE_S_IFREG 1
27591 _ACEOF
27592
27593   else
27594
27595 # Base decisions on target environment.
27596 case "${host}" in
27597   *-darwin*)
27598     # Darwin versions vary, but the linker should work in a cross environment,
27599     # so we just check for all the features here.
27600     # Check for available headers.
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
27615     machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
27616     sys/types.h
27617 do
27618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27620   echo "$as_me:$LINENO: checking for $ac_header" >&5
27621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27623   echo $ECHO_N "(cached) $ECHO_C" >&6
27624 fi
27625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27627 else
27628   # Is the header compilable?
27629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27631 cat >conftest.$ac_ext <<_ACEOF
27632 #line $LINENO "configure"
27633 /* confdefs.h.  */
27634 _ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h.  */
27638 $ac_includes_default
27639 #include <$ac_header>
27640 _ACEOF
27641 rm -f conftest.$ac_objext
27642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27643   (eval $ac_compile) 2>&5
27644   ac_status=$?
27645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646   (exit $ac_status); } &&
27647          { ac_try='test -s conftest.$ac_objext'
27648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27649   (eval $ac_try) 2>&5
27650   ac_status=$?
27651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652   (exit $ac_status); }; }; then
27653   ac_header_compiler=yes
27654 else
27655   echo "$as_me: failed program was:" >&5
27656 sed 's/^/| /' conftest.$ac_ext >&5
27657
27658 ac_header_compiler=no
27659 fi
27660 rm -f conftest.$ac_objext conftest.$ac_ext
27661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27662 echo "${ECHO_T}$ac_header_compiler" >&6
27663
27664 # Is the header present?
27665 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27667 cat >conftest.$ac_ext <<_ACEOF
27668 #line $LINENO "configure"
27669 /* confdefs.h.  */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h.  */
27674 #include <$ac_header>
27675 _ACEOF
27676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27677   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27678   ac_status=$?
27679   grep -v '^ *+' conftest.er1 >conftest.err
27680   rm -f conftest.er1
27681   cat conftest.err >&5
27682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683   (exit $ac_status); } >/dev/null; then
27684   if test -s conftest.err; then
27685     ac_cpp_err=$ac_c_preproc_warn_flag
27686   else
27687     ac_cpp_err=
27688   fi
27689 else
27690   ac_cpp_err=yes
27691 fi
27692 if test -z "$ac_cpp_err"; then
27693   ac_header_preproc=yes
27694 else
27695   echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27697
27698   ac_header_preproc=no
27699 fi
27700 rm -f conftest.err conftest.$ac_ext
27701 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27702 echo "${ECHO_T}$ac_header_preproc" >&6
27703
27704 # So?  What about this header?
27705 case $ac_header_compiler:$ac_header_preproc in
27706   yes:no )
27707     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27711     (
27712       cat <<\_ASBOX
27713 ## ------------------------------------ ##
27714 ## Report this to bug-autoconf@gnu.org. ##
27715 ## ------------------------------------ ##
27716 _ASBOX
27717     ) |
27718       sed "s/^/$as_me: WARNING:     /" >&2
27719     ;;
27720   no:yes )
27721     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27723     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27727     (
27728       cat <<\_ASBOX
27729 ## ------------------------------------ ##
27730 ## Report this to bug-autoconf@gnu.org. ##
27731 ## ------------------------------------ ##
27732 _ASBOX
27733     ) |
27734       sed "s/^/$as_me: WARNING:     /" >&2
27735     ;;
27736 esac
27737 echo "$as_me:$LINENO: checking for $ac_header" >&5
27738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27740   echo $ECHO_N "(cached) $ECHO_C" >&6
27741 else
27742   eval "$as_ac_Header=$ac_header_preproc"
27743 fi
27744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27746
27747 fi
27748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27749   cat >>confdefs.h <<_ACEOF
27750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27751 _ACEOF
27752
27753 fi
27754
27755 done
27756
27757
27758
27759   # All these tests are for C++; save the language and the compiler flags.
27760   # The CXXFLAGS thing is suspicious, but based on similar bits previously
27761   # found in GLIBCXX_CONFIGURE.
27762
27763
27764   ac_ext=cc
27765 ac_cpp='$CXXCPP $CPPFLAGS'
27766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27769
27770   ac_test_CXXFLAGS="${CXXFLAGS+set}"
27771   ac_save_CXXFLAGS="$CXXFLAGS"
27772
27773   # Check for maintainer-mode bits.
27774   if test x"$USE_MAINTAINER_MODE" = xno; then
27775     WERROR=''
27776   else
27777     WERROR='-Werror'
27778   fi
27779
27780   # Check for -ffunction-sections -fdata-sections
27781   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
27782 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
27783   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
27784   cat >conftest.$ac_ext <<_ACEOF
27785 #line $LINENO "configure"
27786 /* confdefs.h.  */
27787 _ACEOF
27788 cat confdefs.h >>conftest.$ac_ext
27789 cat >>conftest.$ac_ext <<_ACEOF
27790 /* end confdefs.h.  */
27791
27792 int
27793 main ()
27794 {
27795 int foo;
27796   ;
27797   return 0;
27798 }
27799 _ACEOF
27800 rm -f conftest.$ac_objext
27801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27802   (eval $ac_compile) 2>&5
27803   ac_status=$?
27804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805   (exit $ac_status); } &&
27806          { ac_try='test -s conftest.$ac_objext'
27807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808   (eval $ac_try) 2>&5
27809   ac_status=$?
27810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811   (exit $ac_status); }; }; then
27812   ac_fdsections=yes
27813 else
27814   echo "$as_me: failed program was:" >&5
27815 sed 's/^/| /' conftest.$ac_ext >&5
27816
27817 ac_fdsections=no
27818 fi
27819 rm -f conftest.$ac_objext conftest.$ac_ext
27820   if test "$ac_test_CXXFLAGS" = set; then
27821     CXXFLAGS="$ac_save_CXXFLAGS"
27822   else
27823     # this is the suspicious part
27824     CXXFLAGS=''
27825   fi
27826   if test x"$ac_fdsections" = x"yes"; then
27827     SECTION_FLAGS='-ffunction-sections -fdata-sections'
27828   fi
27829   echo "$as_me:$LINENO: result: $ac_fdsections" >&5
27830 echo "${ECHO_T}$ac_fdsections" >&6
27831
27832   ac_ext=c
27833 ac_cpp='$CPP $CPPFLAGS'
27834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27837
27838
27839
27840
27841     # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
27842
27843   ac_test_CXXFLAGS="${CXXFLAGS+set}"
27844   ac_save_CXXFLAGS="$CXXFLAGS"
27845   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
27846
27847     echo "$as_me:$LINENO: checking for sin in -lm" >&5
27848 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
27849 if test "${ac_cv_lib_m_sin+set}" = set; then
27850   echo $ECHO_N "(cached) $ECHO_C" >&6
27851 else
27852   ac_check_lib_save_LIBS=$LIBS
27853 LIBS="-lm  $LIBS"
27854 if test x$gcc_no_link = xyes; then
27855   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27857    { (exit 1); exit 1; }; }
27858 fi
27859 cat >conftest.$ac_ext <<_ACEOF
27860 #line $LINENO "configure"
27861 /* confdefs.h.  */
27862 _ACEOF
27863 cat confdefs.h >>conftest.$ac_ext
27864 cat >>conftest.$ac_ext <<_ACEOF
27865 /* end confdefs.h.  */
27866
27867 /* Override any gcc2 internal prototype to avoid an error.  */
27868 #ifdef __cplusplus
27869 extern "C"
27870 #endif
27871 /* We use char because int might match the return type of a gcc2
27872    builtin and then its argument prototype would still apply.  */
27873 char sin ();
27874 int
27875 main ()
27876 {
27877 sin ();
27878   ;
27879   return 0;
27880 }
27881 _ACEOF
27882 rm -f conftest.$ac_objext conftest$ac_exeext
27883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27884   (eval $ac_link) 2>&5
27885   ac_status=$?
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); } &&
27888          { ac_try='test -s conftest$ac_exeext'
27889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27890   (eval $ac_try) 2>&5
27891   ac_status=$?
27892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893   (exit $ac_status); }; }; then
27894   ac_cv_lib_m_sin=yes
27895 else
27896   echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27898
27899 ac_cv_lib_m_sin=no
27900 fi
27901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27902 LIBS=$ac_check_lib_save_LIBS
27903 fi
27904 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27905 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
27906 if test $ac_cv_lib_m_sin = yes; then
27907   libm="-lm"
27908 fi
27909
27910   ac_save_LIBS="$LIBS"
27911   LIBS="$LIBS $libm"
27912
27913
27914
27915   echo "$as_me:$LINENO: checking for isinf declaration" >&5
27916 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
27917   if test x${glibcxx_cv_func_isinf_use+set} != xset; then
27918     if test "${glibcxx_cv_func_isinf_use+set}" = set; then
27919   echo $ECHO_N "(cached) $ECHO_C" >&6
27920 else
27921
27922
27923
27924       ac_ext=cc
27925 ac_cpp='$CXXCPP $CPPFLAGS'
27926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27929
27930       cat >conftest.$ac_ext <<_ACEOF
27931 #line $LINENO "configure"
27932 /* confdefs.h.  */
27933 _ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h.  */
27937 #include <math.h>
27938                       #ifdef HAVE_IEEEFP_H
27939                       #include <ieeefp.h>
27940                       #endif
27941
27942 int
27943 main ()
27944 {
27945  isinf(0);
27946   ;
27947   return 0;
27948 }
27949 _ACEOF
27950 rm -f conftest.$ac_objext
27951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27952   (eval $ac_compile) 2>&5
27953   ac_status=$?
27954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955   (exit $ac_status); } &&
27956          { ac_try='test -s conftest.$ac_objext'
27957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27958   (eval $ac_try) 2>&5
27959   ac_status=$?
27960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961   (exit $ac_status); }; }; then
27962   glibcxx_cv_func_isinf_use=yes
27963 else
27964   echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27966
27967 glibcxx_cv_func_isinf_use=no
27968 fi
27969 rm -f conftest.$ac_objext conftest.$ac_ext
27970       ac_ext=c
27971 ac_cpp='$CPP $CPPFLAGS'
27972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27975
27976
27977 fi
27978
27979   fi
27980   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
27981 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
27982
27983   if test x$glibcxx_cv_func_isinf_use = x"yes"; then
27984
27985 for ac_func in isinf
27986 do
27987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27988 echo "$as_me:$LINENO: checking for $ac_func" >&5
27989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27990 if eval "test \"\${$as_ac_var+set}\" = set"; then
27991   echo $ECHO_N "(cached) $ECHO_C" >&6
27992 else
27993   if test x$gcc_no_link = xyes; then
27994   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27996    { (exit 1); exit 1; }; }
27997 fi
27998 cat >conftest.$ac_ext <<_ACEOF
27999 #line $LINENO "configure"
28000 /* confdefs.h.  */
28001 _ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h.  */
28005 /* System header to define __stub macros and hopefully few prototypes,
28006     which can conflict with char $ac_func (); below.
28007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28008     <limits.h> exists even on freestanding compilers.  */
28009 #ifdef __STDC__
28010 # include <limits.h>
28011 #else
28012 # include <assert.h>
28013 #endif
28014 /* Override any gcc2 internal prototype to avoid an error.  */
28015 #ifdef __cplusplus
28016 extern "C"
28017 {
28018 #endif
28019 /* We use char because int might match the return type of a gcc2
28020    builtin and then its argument prototype would still apply.  */
28021 char $ac_func ();
28022 /* The GNU C library defines this for functions which it implements
28023     to always fail with ENOSYS.  Some functions are actually named
28024     something starting with __ and the normal name is an alias.  */
28025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28026 choke me
28027 #else
28028 char (*f) () = $ac_func;
28029 #endif
28030 #ifdef __cplusplus
28031 }
28032 #endif
28033
28034 int
28035 main ()
28036 {
28037 return f != $ac_func;
28038   ;
28039   return 0;
28040 }
28041 _ACEOF
28042 rm -f conftest.$ac_objext conftest$ac_exeext
28043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28044   (eval $ac_link) 2>&5
28045   ac_status=$?
28046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047   (exit $ac_status); } &&
28048          { ac_try='test -s conftest$ac_exeext'
28049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28050   (eval $ac_try) 2>&5
28051   ac_status=$?
28052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053   (exit $ac_status); }; }; then
28054   eval "$as_ac_var=yes"
28055 else
28056   echo "$as_me: failed program was:" >&5
28057 sed 's/^/| /' conftest.$ac_ext >&5
28058
28059 eval "$as_ac_var=no"
28060 fi
28061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28062 fi
28063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28065 if test `eval echo '${'$as_ac_var'}'` = yes; then
28066   cat >>confdefs.h <<_ACEOF
28067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28068 _ACEOF
28069
28070 fi
28071 done
28072
28073   else
28074
28075   echo "$as_me:$LINENO: checking for _isinf declaration" >&5
28076 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
28077   if test x${glibcxx_cv_func__isinf_use+set} != xset; then
28078     if test "${glibcxx_cv_func__isinf_use+set}" = set; then
28079   echo $ECHO_N "(cached) $ECHO_C" >&6
28080 else
28081
28082
28083
28084       ac_ext=cc
28085 ac_cpp='$CXXCPP $CPPFLAGS'
28086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28089
28090       cat >conftest.$ac_ext <<_ACEOF
28091 #line $LINENO "configure"
28092 /* confdefs.h.  */
28093 _ACEOF
28094 cat confdefs.h >>conftest.$ac_ext
28095 cat >>conftest.$ac_ext <<_ACEOF
28096 /* end confdefs.h.  */
28097 #include <math.h>
28098                       #ifdef HAVE_IEEEFP_H
28099                       #include <ieeefp.h>
28100                       #endif
28101
28102 int
28103 main ()
28104 {
28105  _isinf(0);
28106   ;
28107   return 0;
28108 }
28109 _ACEOF
28110 rm -f conftest.$ac_objext
28111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28112   (eval $ac_compile) 2>&5
28113   ac_status=$?
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); } &&
28116          { ac_try='test -s conftest.$ac_objext'
28117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118   (eval $ac_try) 2>&5
28119   ac_status=$?
28120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121   (exit $ac_status); }; }; then
28122   glibcxx_cv_func__isinf_use=yes
28123 else
28124   echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28126
28127 glibcxx_cv_func__isinf_use=no
28128 fi
28129 rm -f conftest.$ac_objext conftest.$ac_ext
28130       ac_ext=c
28131 ac_cpp='$CPP $CPPFLAGS'
28132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28135
28136
28137 fi
28138
28139   fi
28140   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
28141 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
28142
28143     if test x$glibcxx_cv_func__isinf_use = x"yes"; then
28144
28145 for ac_func in _isinf
28146 do
28147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28148 echo "$as_me:$LINENO: checking for $ac_func" >&5
28149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28150 if eval "test \"\${$as_ac_var+set}\" = set"; then
28151   echo $ECHO_N "(cached) $ECHO_C" >&6
28152 else
28153   if test x$gcc_no_link = xyes; then
28154   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28156    { (exit 1); exit 1; }; }
28157 fi
28158 cat >conftest.$ac_ext <<_ACEOF
28159 #line $LINENO "configure"
28160 /* confdefs.h.  */
28161 _ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h.  */
28165 /* System header to define __stub macros and hopefully few prototypes,
28166     which can conflict with char $ac_func (); below.
28167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28168     <limits.h> exists even on freestanding compilers.  */
28169 #ifdef __STDC__
28170 # include <limits.h>
28171 #else
28172 # include <assert.h>
28173 #endif
28174 /* Override any gcc2 internal prototype to avoid an error.  */
28175 #ifdef __cplusplus
28176 extern "C"
28177 {
28178 #endif
28179 /* We use char because int might match the return type of a gcc2
28180    builtin and then its argument prototype would still apply.  */
28181 char $ac_func ();
28182 /* The GNU C library defines this for functions which it implements
28183     to always fail with ENOSYS.  Some functions are actually named
28184     something starting with __ and the normal name is an alias.  */
28185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28186 choke me
28187 #else
28188 char (*f) () = $ac_func;
28189 #endif
28190 #ifdef __cplusplus
28191 }
28192 #endif
28193
28194 int
28195 main ()
28196 {
28197 return f != $ac_func;
28198   ;
28199   return 0;
28200 }
28201 _ACEOF
28202 rm -f conftest.$ac_objext conftest$ac_exeext
28203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28204   (eval $ac_link) 2>&5
28205   ac_status=$?
28206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207   (exit $ac_status); } &&
28208          { ac_try='test -s conftest$ac_exeext'
28209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28210   (eval $ac_try) 2>&5
28211   ac_status=$?
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); }; }; then
28214   eval "$as_ac_var=yes"
28215 else
28216   echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28218
28219 eval "$as_ac_var=no"
28220 fi
28221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28222 fi
28223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28225 if test `eval echo '${'$as_ac_var'}'` = yes; then
28226   cat >>confdefs.h <<_ACEOF
28227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28228 _ACEOF
28229
28230 fi
28231 done
28232
28233     fi
28234   fi
28235
28236
28237
28238   echo "$as_me:$LINENO: checking for isnan declaration" >&5
28239 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
28240   if test x${glibcxx_cv_func_isnan_use+set} != xset; then
28241     if test "${glibcxx_cv_func_isnan_use+set}" = set; then
28242   echo $ECHO_N "(cached) $ECHO_C" >&6
28243 else
28244
28245
28246
28247       ac_ext=cc
28248 ac_cpp='$CXXCPP $CPPFLAGS'
28249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28252
28253       cat >conftest.$ac_ext <<_ACEOF
28254 #line $LINENO "configure"
28255 /* confdefs.h.  */
28256 _ACEOF
28257 cat confdefs.h >>conftest.$ac_ext
28258 cat >>conftest.$ac_ext <<_ACEOF
28259 /* end confdefs.h.  */
28260 #include <math.h>
28261                       #ifdef HAVE_IEEEFP_H
28262                       #include <ieeefp.h>
28263                       #endif
28264
28265 int
28266 main ()
28267 {
28268  isnan(0);
28269   ;
28270   return 0;
28271 }
28272 _ACEOF
28273 rm -f conftest.$ac_objext
28274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28275   (eval $ac_compile) 2>&5
28276   ac_status=$?
28277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); } &&
28279          { ac_try='test -s conftest.$ac_objext'
28280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281   (eval $ac_try) 2>&5
28282   ac_status=$?
28283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284   (exit $ac_status); }; }; then
28285   glibcxx_cv_func_isnan_use=yes
28286 else
28287   echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28289
28290 glibcxx_cv_func_isnan_use=no
28291 fi
28292 rm -f conftest.$ac_objext conftest.$ac_ext
28293       ac_ext=c
28294 ac_cpp='$CPP $CPPFLAGS'
28295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28298
28299
28300 fi
28301
28302   fi
28303   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
28304 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
28305
28306   if test x$glibcxx_cv_func_isnan_use = x"yes"; then
28307
28308 for ac_func in isnan
28309 do
28310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28311 echo "$as_me:$LINENO: checking for $ac_func" >&5
28312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28313 if eval "test \"\${$as_ac_var+set}\" = set"; then
28314   echo $ECHO_N "(cached) $ECHO_C" >&6
28315 else
28316   if test x$gcc_no_link = xyes; then
28317   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28318 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28319    { (exit 1); exit 1; }; }
28320 fi
28321 cat >conftest.$ac_ext <<_ACEOF
28322 #line $LINENO "configure"
28323 /* confdefs.h.  */
28324 _ACEOF
28325 cat confdefs.h >>conftest.$ac_ext
28326 cat >>conftest.$ac_ext <<_ACEOF
28327 /* end confdefs.h.  */
28328 /* System header to define __stub macros and hopefully few prototypes,
28329     which can conflict with char $ac_func (); below.
28330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28331     <limits.h> exists even on freestanding compilers.  */
28332 #ifdef __STDC__
28333 # include <limits.h>
28334 #else
28335 # include <assert.h>
28336 #endif
28337 /* Override any gcc2 internal prototype to avoid an error.  */
28338 #ifdef __cplusplus
28339 extern "C"
28340 {
28341 #endif
28342 /* We use char because int might match the return type of a gcc2
28343    builtin and then its argument prototype would still apply.  */
28344 char $ac_func ();
28345 /* The GNU C library defines this for functions which it implements
28346     to always fail with ENOSYS.  Some functions are actually named
28347     something starting with __ and the normal name is an alias.  */
28348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28349 choke me
28350 #else
28351 char (*f) () = $ac_func;
28352 #endif
28353 #ifdef __cplusplus
28354 }
28355 #endif
28356
28357 int
28358 main ()
28359 {
28360 return f != $ac_func;
28361   ;
28362   return 0;
28363 }
28364 _ACEOF
28365 rm -f conftest.$ac_objext conftest$ac_exeext
28366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28367   (eval $ac_link) 2>&5
28368   ac_status=$?
28369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370   (exit $ac_status); } &&
28371          { ac_try='test -s conftest$ac_exeext'
28372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373   (eval $ac_try) 2>&5
28374   ac_status=$?
28375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376   (exit $ac_status); }; }; then
28377   eval "$as_ac_var=yes"
28378 else
28379   echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28381
28382 eval "$as_ac_var=no"
28383 fi
28384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28385 fi
28386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28388 if test `eval echo '${'$as_ac_var'}'` = yes; then
28389   cat >>confdefs.h <<_ACEOF
28390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28391 _ACEOF
28392
28393 fi
28394 done
28395
28396   else
28397
28398   echo "$as_me:$LINENO: checking for _isnan declaration" >&5
28399 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
28400   if test x${glibcxx_cv_func__isnan_use+set} != xset; then
28401     if test "${glibcxx_cv_func__isnan_use+set}" = set; then
28402   echo $ECHO_N "(cached) $ECHO_C" >&6
28403 else
28404
28405
28406
28407       ac_ext=cc
28408 ac_cpp='$CXXCPP $CPPFLAGS'
28409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28412
28413       cat >conftest.$ac_ext <<_ACEOF
28414 #line $LINENO "configure"
28415 /* confdefs.h.  */
28416 _ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h.  */
28420 #include <math.h>
28421                       #ifdef HAVE_IEEEFP_H
28422                       #include <ieeefp.h>
28423                       #endif
28424
28425 int
28426 main ()
28427 {
28428  _isnan(0);
28429   ;
28430   return 0;
28431 }
28432 _ACEOF
28433 rm -f conftest.$ac_objext
28434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28435   (eval $ac_compile) 2>&5
28436   ac_status=$?
28437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438   (exit $ac_status); } &&
28439          { ac_try='test -s conftest.$ac_objext'
28440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441   (eval $ac_try) 2>&5
28442   ac_status=$?
28443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444   (exit $ac_status); }; }; then
28445   glibcxx_cv_func__isnan_use=yes
28446 else
28447   echo "$as_me: failed program was:" >&5
28448 sed 's/^/| /' conftest.$ac_ext >&5
28449
28450 glibcxx_cv_func__isnan_use=no
28451 fi
28452 rm -f conftest.$ac_objext conftest.$ac_ext
28453       ac_ext=c
28454 ac_cpp='$CPP $CPPFLAGS'
28455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28458
28459
28460 fi
28461
28462   fi
28463   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
28464 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
28465
28466     if test x$glibcxx_cv_func__isnan_use = x"yes"; then
28467
28468 for ac_func in _isnan
28469 do
28470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28471 echo "$as_me:$LINENO: checking for $ac_func" >&5
28472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28473 if eval "test \"\${$as_ac_var+set}\" = set"; then
28474   echo $ECHO_N "(cached) $ECHO_C" >&6
28475 else
28476   if test x$gcc_no_link = xyes; then
28477   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28479    { (exit 1); exit 1; }; }
28480 fi
28481 cat >conftest.$ac_ext <<_ACEOF
28482 #line $LINENO "configure"
28483 /* confdefs.h.  */
28484 _ACEOF
28485 cat confdefs.h >>conftest.$ac_ext
28486 cat >>conftest.$ac_ext <<_ACEOF
28487 /* end confdefs.h.  */
28488 /* System header to define __stub macros and hopefully few prototypes,
28489     which can conflict with char $ac_func (); below.
28490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28491     <limits.h> exists even on freestanding compilers.  */
28492 #ifdef __STDC__
28493 # include <limits.h>
28494 #else
28495 # include <assert.h>
28496 #endif
28497 /* Override any gcc2 internal prototype to avoid an error.  */
28498 #ifdef __cplusplus
28499 extern "C"
28500 {
28501 #endif
28502 /* We use char because int might match the return type of a gcc2
28503    builtin and then its argument prototype would still apply.  */
28504 char $ac_func ();
28505 /* The GNU C library defines this for functions which it implements
28506     to always fail with ENOSYS.  Some functions are actually named
28507     something starting with __ and the normal name is an alias.  */
28508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28509 choke me
28510 #else
28511 char (*f) () = $ac_func;
28512 #endif
28513 #ifdef __cplusplus
28514 }
28515 #endif
28516
28517 int
28518 main ()
28519 {
28520 return f != $ac_func;
28521   ;
28522   return 0;
28523 }
28524 _ACEOF
28525 rm -f conftest.$ac_objext conftest$ac_exeext
28526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28527   (eval $ac_link) 2>&5
28528   ac_status=$?
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); } &&
28531          { ac_try='test -s conftest$ac_exeext'
28532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28533   (eval $ac_try) 2>&5
28534   ac_status=$?
28535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536   (exit $ac_status); }; }; then
28537   eval "$as_ac_var=yes"
28538 else
28539   echo "$as_me: failed program was:" >&5
28540 sed 's/^/| /' conftest.$ac_ext >&5
28541
28542 eval "$as_ac_var=no"
28543 fi
28544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28545 fi
28546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28548 if test `eval echo '${'$as_ac_var'}'` = yes; then
28549   cat >>confdefs.h <<_ACEOF
28550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28551 _ACEOF
28552
28553 fi
28554 done
28555
28556     fi
28557   fi
28558
28559
28560
28561   echo "$as_me:$LINENO: checking for finite declaration" >&5
28562 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
28563   if test x${glibcxx_cv_func_finite_use+set} != xset; then
28564     if test "${glibcxx_cv_func_finite_use+set}" = set; then
28565   echo $ECHO_N "(cached) $ECHO_C" >&6
28566 else
28567
28568
28569
28570       ac_ext=cc
28571 ac_cpp='$CXXCPP $CPPFLAGS'
28572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28575
28576       cat >conftest.$ac_ext <<_ACEOF
28577 #line $LINENO "configure"
28578 /* confdefs.h.  */
28579 _ACEOF
28580 cat confdefs.h >>conftest.$ac_ext
28581 cat >>conftest.$ac_ext <<_ACEOF
28582 /* end confdefs.h.  */
28583 #include <math.h>
28584                       #ifdef HAVE_IEEEFP_H
28585                       #include <ieeefp.h>
28586                       #endif
28587
28588 int
28589 main ()
28590 {
28591  finite(0);
28592   ;
28593   return 0;
28594 }
28595 _ACEOF
28596 rm -f conftest.$ac_objext
28597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28598   (eval $ac_compile) 2>&5
28599   ac_status=$?
28600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601   (exit $ac_status); } &&
28602          { ac_try='test -s conftest.$ac_objext'
28603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28604   (eval $ac_try) 2>&5
28605   ac_status=$?
28606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607   (exit $ac_status); }; }; then
28608   glibcxx_cv_func_finite_use=yes
28609 else
28610   echo "$as_me: failed program was:" >&5
28611 sed 's/^/| /' conftest.$ac_ext >&5
28612
28613 glibcxx_cv_func_finite_use=no
28614 fi
28615 rm -f conftest.$ac_objext conftest.$ac_ext
28616       ac_ext=c
28617 ac_cpp='$CPP $CPPFLAGS'
28618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28621
28622
28623 fi
28624
28625   fi
28626   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
28627 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
28628
28629   if test x$glibcxx_cv_func_finite_use = x"yes"; then
28630
28631 for ac_func in finite
28632 do
28633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28634 echo "$as_me:$LINENO: checking for $ac_func" >&5
28635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28636 if eval "test \"\${$as_ac_var+set}\" = set"; then
28637   echo $ECHO_N "(cached) $ECHO_C" >&6
28638 else
28639   if test x$gcc_no_link = xyes; then
28640   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28641 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28642    { (exit 1); exit 1; }; }
28643 fi
28644 cat >conftest.$ac_ext <<_ACEOF
28645 #line $LINENO "configure"
28646 /* confdefs.h.  */
28647 _ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h.  */
28651 /* System header to define __stub macros and hopefully few prototypes,
28652     which can conflict with char $ac_func (); below.
28653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28654     <limits.h> exists even on freestanding compilers.  */
28655 #ifdef __STDC__
28656 # include <limits.h>
28657 #else
28658 # include <assert.h>
28659 #endif
28660 /* Override any gcc2 internal prototype to avoid an error.  */
28661 #ifdef __cplusplus
28662 extern "C"
28663 {
28664 #endif
28665 /* We use char because int might match the return type of a gcc2
28666    builtin and then its argument prototype would still apply.  */
28667 char $ac_func ();
28668 /* The GNU C library defines this for functions which it implements
28669     to always fail with ENOSYS.  Some functions are actually named
28670     something starting with __ and the normal name is an alias.  */
28671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28672 choke me
28673 #else
28674 char (*f) () = $ac_func;
28675 #endif
28676 #ifdef __cplusplus
28677 }
28678 #endif
28679
28680 int
28681 main ()
28682 {
28683 return f != $ac_func;
28684   ;
28685   return 0;
28686 }
28687 _ACEOF
28688 rm -f conftest.$ac_objext conftest$ac_exeext
28689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28690   (eval $ac_link) 2>&5
28691   ac_status=$?
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); } &&
28694          { ac_try='test -s conftest$ac_exeext'
28695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696   (eval $ac_try) 2>&5
28697   ac_status=$?
28698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699   (exit $ac_status); }; }; then
28700   eval "$as_ac_var=yes"
28701 else
28702   echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28704
28705 eval "$as_ac_var=no"
28706 fi
28707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28708 fi
28709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28711 if test `eval echo '${'$as_ac_var'}'` = yes; then
28712   cat >>confdefs.h <<_ACEOF
28713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28714 _ACEOF
28715
28716 fi
28717 done
28718
28719   else
28720
28721   echo "$as_me:$LINENO: checking for _finite declaration" >&5
28722 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
28723   if test x${glibcxx_cv_func__finite_use+set} != xset; then
28724     if test "${glibcxx_cv_func__finite_use+set}" = set; then
28725   echo $ECHO_N "(cached) $ECHO_C" >&6
28726 else
28727
28728
28729
28730       ac_ext=cc
28731 ac_cpp='$CXXCPP $CPPFLAGS'
28732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28735
28736       cat >conftest.$ac_ext <<_ACEOF
28737 #line $LINENO "configure"
28738 /* confdefs.h.  */
28739 _ACEOF
28740 cat confdefs.h >>conftest.$ac_ext
28741 cat >>conftest.$ac_ext <<_ACEOF
28742 /* end confdefs.h.  */
28743 #include <math.h>
28744                       #ifdef HAVE_IEEEFP_H
28745                       #include <ieeefp.h>
28746                       #endif
28747
28748 int
28749 main ()
28750 {
28751  _finite(0);
28752   ;
28753   return 0;
28754 }
28755 _ACEOF
28756 rm -f conftest.$ac_objext
28757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28758   (eval $ac_compile) 2>&5
28759   ac_status=$?
28760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761   (exit $ac_status); } &&
28762          { ac_try='test -s conftest.$ac_objext'
28763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28764   (eval $ac_try) 2>&5
28765   ac_status=$?
28766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767   (exit $ac_status); }; }; then
28768   glibcxx_cv_func__finite_use=yes
28769 else
28770   echo "$as_me: failed program was:" >&5
28771 sed 's/^/| /' conftest.$ac_ext >&5
28772
28773 glibcxx_cv_func__finite_use=no
28774 fi
28775 rm -f conftest.$ac_objext conftest.$ac_ext
28776       ac_ext=c
28777 ac_cpp='$CPP $CPPFLAGS'
28778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28781
28782
28783 fi
28784
28785   fi
28786   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
28787 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
28788
28789     if test x$glibcxx_cv_func__finite_use = x"yes"; then
28790
28791 for ac_func in _finite
28792 do
28793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28794 echo "$as_me:$LINENO: checking for $ac_func" >&5
28795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28796 if eval "test \"\${$as_ac_var+set}\" = set"; then
28797   echo $ECHO_N "(cached) $ECHO_C" >&6
28798 else
28799   if test x$gcc_no_link = xyes; then
28800   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28801 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28802    { (exit 1); exit 1; }; }
28803 fi
28804 cat >conftest.$ac_ext <<_ACEOF
28805 #line $LINENO "configure"
28806 /* confdefs.h.  */
28807 _ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h.  */
28811 /* System header to define __stub macros and hopefully few prototypes,
28812     which can conflict with char $ac_func (); below.
28813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28814     <limits.h> exists even on freestanding compilers.  */
28815 #ifdef __STDC__
28816 # include <limits.h>
28817 #else
28818 # include <assert.h>
28819 #endif
28820 /* Override any gcc2 internal prototype to avoid an error.  */
28821 #ifdef __cplusplus
28822 extern "C"
28823 {
28824 #endif
28825 /* We use char because int might match the return type of a gcc2
28826    builtin and then its argument prototype would still apply.  */
28827 char $ac_func ();
28828 /* The GNU C library defines this for functions which it implements
28829     to always fail with ENOSYS.  Some functions are actually named
28830     something starting with __ and the normal name is an alias.  */
28831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28832 choke me
28833 #else
28834 char (*f) () = $ac_func;
28835 #endif
28836 #ifdef __cplusplus
28837 }
28838 #endif
28839
28840 int
28841 main ()
28842 {
28843 return f != $ac_func;
28844   ;
28845   return 0;
28846 }
28847 _ACEOF
28848 rm -f conftest.$ac_objext conftest$ac_exeext
28849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28850   (eval $ac_link) 2>&5
28851   ac_status=$?
28852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); } &&
28854          { ac_try='test -s conftest$ac_exeext'
28855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28856   (eval $ac_try) 2>&5
28857   ac_status=$?
28858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); }; }; then
28860   eval "$as_ac_var=yes"
28861 else
28862   echo "$as_me: failed program was:" >&5
28863 sed 's/^/| /' conftest.$ac_ext >&5
28864
28865 eval "$as_ac_var=no"
28866 fi
28867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28868 fi
28869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28871 if test `eval echo '${'$as_ac_var'}'` = yes; then
28872   cat >>confdefs.h <<_ACEOF
28873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28874 _ACEOF
28875
28876 fi
28877 done
28878
28879     fi
28880   fi
28881
28882
28883
28884   echo "$as_me:$LINENO: checking for copysign declaration" >&5
28885 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
28886   if test x${glibcxx_cv_func_copysign_use+set} != xset; then
28887     if test "${glibcxx_cv_func_copysign_use+set}" = set; then
28888   echo $ECHO_N "(cached) $ECHO_C" >&6
28889 else
28890
28891
28892
28893       ac_ext=cc
28894 ac_cpp='$CXXCPP $CPPFLAGS'
28895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28898
28899       cat >conftest.$ac_ext <<_ACEOF
28900 #line $LINENO "configure"
28901 /* confdefs.h.  */
28902 _ACEOF
28903 cat confdefs.h >>conftest.$ac_ext
28904 cat >>conftest.$ac_ext <<_ACEOF
28905 /* end confdefs.h.  */
28906 #include <math.h>
28907 int
28908 main ()
28909 {
28910  copysign(0, 0);
28911   ;
28912   return 0;
28913 }
28914 _ACEOF
28915 rm -f conftest.$ac_objext
28916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28917   (eval $ac_compile) 2>&5
28918   ac_status=$?
28919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920   (exit $ac_status); } &&
28921          { ac_try='test -s conftest.$ac_objext'
28922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923   (eval $ac_try) 2>&5
28924   ac_status=$?
28925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926   (exit $ac_status); }; }; then
28927   glibcxx_cv_func_copysign_use=yes
28928 else
28929   echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28931
28932 glibcxx_cv_func_copysign_use=no
28933 fi
28934 rm -f conftest.$ac_objext conftest.$ac_ext
28935       ac_ext=c
28936 ac_cpp='$CPP $CPPFLAGS'
28937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28940
28941
28942 fi
28943
28944   fi
28945   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
28946 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
28947
28948   if test x$glibcxx_cv_func_copysign_use = x"yes"; then
28949
28950 for ac_func in copysign
28951 do
28952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28953 echo "$as_me:$LINENO: checking for $ac_func" >&5
28954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28955 if eval "test \"\${$as_ac_var+set}\" = set"; then
28956   echo $ECHO_N "(cached) $ECHO_C" >&6
28957 else
28958   if test x$gcc_no_link = xyes; then
28959   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28961    { (exit 1); exit 1; }; }
28962 fi
28963 cat >conftest.$ac_ext <<_ACEOF
28964 #line $LINENO "configure"
28965 /* confdefs.h.  */
28966 _ACEOF
28967 cat confdefs.h >>conftest.$ac_ext
28968 cat >>conftest.$ac_ext <<_ACEOF
28969 /* end confdefs.h.  */
28970 /* System header to define __stub macros and hopefully few prototypes,
28971     which can conflict with char $ac_func (); below.
28972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28973     <limits.h> exists even on freestanding compilers.  */
28974 #ifdef __STDC__
28975 # include <limits.h>
28976 #else
28977 # include <assert.h>
28978 #endif
28979 /* Override any gcc2 internal prototype to avoid an error.  */
28980 #ifdef __cplusplus
28981 extern "C"
28982 {
28983 #endif
28984 /* We use char because int might match the return type of a gcc2
28985    builtin and then its argument prototype would still apply.  */
28986 char $ac_func ();
28987 /* The GNU C library defines this for functions which it implements
28988     to always fail with ENOSYS.  Some functions are actually named
28989     something starting with __ and the normal name is an alias.  */
28990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28991 choke me
28992 #else
28993 char (*f) () = $ac_func;
28994 #endif
28995 #ifdef __cplusplus
28996 }
28997 #endif
28998
28999 int
29000 main ()
29001 {
29002 return f != $ac_func;
29003   ;
29004   return 0;
29005 }
29006 _ACEOF
29007 rm -f conftest.$ac_objext conftest$ac_exeext
29008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29009   (eval $ac_link) 2>&5
29010   ac_status=$?
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); } &&
29013          { ac_try='test -s conftest$ac_exeext'
29014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29015   (eval $ac_try) 2>&5
29016   ac_status=$?
29017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); }; }; then
29019   eval "$as_ac_var=yes"
29020 else
29021   echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29023
29024 eval "$as_ac_var=no"
29025 fi
29026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29027 fi
29028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29030 if test `eval echo '${'$as_ac_var'}'` = yes; then
29031   cat >>confdefs.h <<_ACEOF
29032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29033 _ACEOF
29034
29035 fi
29036 done
29037
29038   else
29039
29040   echo "$as_me:$LINENO: checking for _copysign declaration" >&5
29041 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
29042   if test x${glibcxx_cv_func__copysign_use+set} != xset; then
29043     if test "${glibcxx_cv_func__copysign_use+set}" = set; then
29044   echo $ECHO_N "(cached) $ECHO_C" >&6
29045 else
29046
29047
29048
29049       ac_ext=cc
29050 ac_cpp='$CXXCPP $CPPFLAGS'
29051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29054
29055       cat >conftest.$ac_ext <<_ACEOF
29056 #line $LINENO "configure"
29057 /* confdefs.h.  */
29058 _ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h.  */
29062 #include <math.h>
29063 int
29064 main ()
29065 {
29066  _copysign(0, 0);
29067   ;
29068   return 0;
29069 }
29070 _ACEOF
29071 rm -f conftest.$ac_objext
29072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29073   (eval $ac_compile) 2>&5
29074   ac_status=$?
29075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076   (exit $ac_status); } &&
29077          { ac_try='test -s conftest.$ac_objext'
29078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29079   (eval $ac_try) 2>&5
29080   ac_status=$?
29081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082   (exit $ac_status); }; }; then
29083   glibcxx_cv_func__copysign_use=yes
29084 else
29085   echo "$as_me: failed program was:" >&5
29086 sed 's/^/| /' conftest.$ac_ext >&5
29087
29088 glibcxx_cv_func__copysign_use=no
29089 fi
29090 rm -f conftest.$ac_objext conftest.$ac_ext
29091       ac_ext=c
29092 ac_cpp='$CPP $CPPFLAGS'
29093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29096
29097
29098 fi
29099
29100   fi
29101   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
29102 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
29103
29104     if test x$glibcxx_cv_func__copysign_use = x"yes"; then
29105
29106 for ac_func in _copysign
29107 do
29108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29109 echo "$as_me:$LINENO: checking for $ac_func" >&5
29110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29111 if eval "test \"\${$as_ac_var+set}\" = set"; then
29112   echo $ECHO_N "(cached) $ECHO_C" >&6
29113 else
29114   if test x$gcc_no_link = xyes; then
29115   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29117    { (exit 1); exit 1; }; }
29118 fi
29119 cat >conftest.$ac_ext <<_ACEOF
29120 #line $LINENO "configure"
29121 /* confdefs.h.  */
29122 _ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h.  */
29126 /* System header to define __stub macros and hopefully few prototypes,
29127     which can conflict with char $ac_func (); below.
29128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29129     <limits.h> exists even on freestanding compilers.  */
29130 #ifdef __STDC__
29131 # include <limits.h>
29132 #else
29133 # include <assert.h>
29134 #endif
29135 /* Override any gcc2 internal prototype to avoid an error.  */
29136 #ifdef __cplusplus
29137 extern "C"
29138 {
29139 #endif
29140 /* We use char because int might match the return type of a gcc2
29141    builtin and then its argument prototype would still apply.  */
29142 char $ac_func ();
29143 /* The GNU C library defines this for functions which it implements
29144     to always fail with ENOSYS.  Some functions are actually named
29145     something starting with __ and the normal name is an alias.  */
29146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29147 choke me
29148 #else
29149 char (*f) () = $ac_func;
29150 #endif
29151 #ifdef __cplusplus
29152 }
29153 #endif
29154
29155 int
29156 main ()
29157 {
29158 return f != $ac_func;
29159   ;
29160   return 0;
29161 }
29162 _ACEOF
29163 rm -f conftest.$ac_objext conftest$ac_exeext
29164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29165   (eval $ac_link) 2>&5
29166   ac_status=$?
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); } &&
29169          { ac_try='test -s conftest$ac_exeext'
29170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29171   (eval $ac_try) 2>&5
29172   ac_status=$?
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); }; }; then
29175   eval "$as_ac_var=yes"
29176 else
29177   echo "$as_me: failed program was:" >&5
29178 sed 's/^/| /' conftest.$ac_ext >&5
29179
29180 eval "$as_ac_var=no"
29181 fi
29182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29183 fi
29184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29186 if test `eval echo '${'$as_ac_var'}'` = yes; then
29187   cat >>confdefs.h <<_ACEOF
29188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29189 _ACEOF
29190
29191 fi
29192 done
29193
29194     fi
29195   fi
29196
29197
29198
29199   echo "$as_me:$LINENO: checking for sincos declaration" >&5
29200 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
29201   if test x${glibcxx_cv_func_sincos_use+set} != xset; then
29202     if test "${glibcxx_cv_func_sincos_use+set}" = set; then
29203   echo $ECHO_N "(cached) $ECHO_C" >&6
29204 else
29205
29206
29207
29208       ac_ext=cc
29209 ac_cpp='$CXXCPP $CPPFLAGS'
29210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29213
29214       cat >conftest.$ac_ext <<_ACEOF
29215 #line $LINENO "configure"
29216 /* confdefs.h.  */
29217 _ACEOF
29218 cat confdefs.h >>conftest.$ac_ext
29219 cat >>conftest.$ac_ext <<_ACEOF
29220 /* end confdefs.h.  */
29221 #include <math.h>
29222 int
29223 main ()
29224 {
29225  sincos(0, 0, 0);
29226   ;
29227   return 0;
29228 }
29229 _ACEOF
29230 rm -f conftest.$ac_objext
29231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29232   (eval $ac_compile) 2>&5
29233   ac_status=$?
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); } &&
29236          { ac_try='test -s conftest.$ac_objext'
29237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238   (eval $ac_try) 2>&5
29239   ac_status=$?
29240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241   (exit $ac_status); }; }; then
29242   glibcxx_cv_func_sincos_use=yes
29243 else
29244   echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247 glibcxx_cv_func_sincos_use=no
29248 fi
29249 rm -f conftest.$ac_objext conftest.$ac_ext
29250       ac_ext=c
29251 ac_cpp='$CPP $CPPFLAGS'
29252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29255
29256
29257 fi
29258
29259   fi
29260   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
29261 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
29262
29263   if test x$glibcxx_cv_func_sincos_use = x"yes"; then
29264
29265 for ac_func in sincos
29266 do
29267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29268 echo "$as_me:$LINENO: checking for $ac_func" >&5
29269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29270 if eval "test \"\${$as_ac_var+set}\" = set"; then
29271   echo $ECHO_N "(cached) $ECHO_C" >&6
29272 else
29273   if test x$gcc_no_link = xyes; then
29274   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29275 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29276    { (exit 1); exit 1; }; }
29277 fi
29278 cat >conftest.$ac_ext <<_ACEOF
29279 #line $LINENO "configure"
29280 /* confdefs.h.  */
29281 _ACEOF
29282 cat confdefs.h >>conftest.$ac_ext
29283 cat >>conftest.$ac_ext <<_ACEOF
29284 /* end confdefs.h.  */
29285 /* System header to define __stub macros and hopefully few prototypes,
29286     which can conflict with char $ac_func (); below.
29287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29288     <limits.h> exists even on freestanding compilers.  */
29289 #ifdef __STDC__
29290 # include <limits.h>
29291 #else
29292 # include <assert.h>
29293 #endif
29294 /* Override any gcc2 internal prototype to avoid an error.  */
29295 #ifdef __cplusplus
29296 extern "C"
29297 {
29298 #endif
29299 /* We use char because int might match the return type of a gcc2
29300    builtin and then its argument prototype would still apply.  */
29301 char $ac_func ();
29302 /* The GNU C library defines this for functions which it implements
29303     to always fail with ENOSYS.  Some functions are actually named
29304     something starting with __ and the normal name is an alias.  */
29305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29306 choke me
29307 #else
29308 char (*f) () = $ac_func;
29309 #endif
29310 #ifdef __cplusplus
29311 }
29312 #endif
29313
29314 int
29315 main ()
29316 {
29317 return f != $ac_func;
29318   ;
29319   return 0;
29320 }
29321 _ACEOF
29322 rm -f conftest.$ac_objext conftest$ac_exeext
29323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29324   (eval $ac_link) 2>&5
29325   ac_status=$?
29326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327   (exit $ac_status); } &&
29328          { ac_try='test -s conftest$ac_exeext'
29329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330   (eval $ac_try) 2>&5
29331   ac_status=$?
29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333   (exit $ac_status); }; }; then
29334   eval "$as_ac_var=yes"
29335 else
29336   echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29338
29339 eval "$as_ac_var=no"
29340 fi
29341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29342 fi
29343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29345 if test `eval echo '${'$as_ac_var'}'` = yes; then
29346   cat >>confdefs.h <<_ACEOF
29347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29348 _ACEOF
29349
29350 fi
29351 done
29352
29353   else
29354
29355   echo "$as_me:$LINENO: checking for _sincos declaration" >&5
29356 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
29357   if test x${glibcxx_cv_func__sincos_use+set} != xset; then
29358     if test "${glibcxx_cv_func__sincos_use+set}" = set; then
29359   echo $ECHO_N "(cached) $ECHO_C" >&6
29360 else
29361
29362
29363
29364       ac_ext=cc
29365 ac_cpp='$CXXCPP $CPPFLAGS'
29366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29369
29370       cat >conftest.$ac_ext <<_ACEOF
29371 #line $LINENO "configure"
29372 /* confdefs.h.  */
29373 _ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h.  */
29377 #include <math.h>
29378 int
29379 main ()
29380 {
29381  _sincos(0, 0, 0);
29382   ;
29383   return 0;
29384 }
29385 _ACEOF
29386 rm -f conftest.$ac_objext
29387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29388   (eval $ac_compile) 2>&5
29389   ac_status=$?
29390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391   (exit $ac_status); } &&
29392          { ac_try='test -s conftest.$ac_objext'
29393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394   (eval $ac_try) 2>&5
29395   ac_status=$?
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); }; }; then
29398   glibcxx_cv_func__sincos_use=yes
29399 else
29400   echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.$ac_ext >&5
29402
29403 glibcxx_cv_func__sincos_use=no
29404 fi
29405 rm -f conftest.$ac_objext conftest.$ac_ext
29406       ac_ext=c
29407 ac_cpp='$CPP $CPPFLAGS'
29408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29411
29412
29413 fi
29414
29415   fi
29416   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
29417 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
29418
29419     if test x$glibcxx_cv_func__sincos_use = x"yes"; then
29420
29421 for ac_func in _sincos
29422 do
29423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29424 echo "$as_me:$LINENO: checking for $ac_func" >&5
29425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29426 if eval "test \"\${$as_ac_var+set}\" = set"; then
29427   echo $ECHO_N "(cached) $ECHO_C" >&6
29428 else
29429   if test x$gcc_no_link = xyes; then
29430   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29432    { (exit 1); exit 1; }; }
29433 fi
29434 cat >conftest.$ac_ext <<_ACEOF
29435 #line $LINENO "configure"
29436 /* confdefs.h.  */
29437 _ACEOF
29438 cat confdefs.h >>conftest.$ac_ext
29439 cat >>conftest.$ac_ext <<_ACEOF
29440 /* end confdefs.h.  */
29441 /* System header to define __stub macros and hopefully few prototypes,
29442     which can conflict with char $ac_func (); below.
29443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29444     <limits.h> exists even on freestanding compilers.  */
29445 #ifdef __STDC__
29446 # include <limits.h>
29447 #else
29448 # include <assert.h>
29449 #endif
29450 /* Override any gcc2 internal prototype to avoid an error.  */
29451 #ifdef __cplusplus
29452 extern "C"
29453 {
29454 #endif
29455 /* We use char because int might match the return type of a gcc2
29456    builtin and then its argument prototype would still apply.  */
29457 char $ac_func ();
29458 /* The GNU C library defines this for functions which it implements
29459     to always fail with ENOSYS.  Some functions are actually named
29460     something starting with __ and the normal name is an alias.  */
29461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29462 choke me
29463 #else
29464 char (*f) () = $ac_func;
29465 #endif
29466 #ifdef __cplusplus
29467 }
29468 #endif
29469
29470 int
29471 main ()
29472 {
29473 return f != $ac_func;
29474   ;
29475   return 0;
29476 }
29477 _ACEOF
29478 rm -f conftest.$ac_objext conftest$ac_exeext
29479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29480   (eval $ac_link) 2>&5
29481   ac_status=$?
29482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483   (exit $ac_status); } &&
29484          { ac_try='test -s conftest$ac_exeext'
29485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29486   (eval $ac_try) 2>&5
29487   ac_status=$?
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); }; }; then
29490   eval "$as_ac_var=yes"
29491 else
29492   echo "$as_me: failed program was:" >&5
29493 sed 's/^/| /' conftest.$ac_ext >&5
29494
29495 eval "$as_ac_var=no"
29496 fi
29497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29498 fi
29499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29501 if test `eval echo '${'$as_ac_var'}'` = yes; then
29502   cat >>confdefs.h <<_ACEOF
29503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29504 _ACEOF
29505
29506 fi
29507 done
29508
29509     fi
29510   fi
29511
29512
29513
29514   echo "$as_me:$LINENO: checking for fpclass declaration" >&5
29515 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
29516   if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
29517     if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
29518   echo $ECHO_N "(cached) $ECHO_C" >&6
29519 else
29520
29521
29522
29523       ac_ext=cc
29524 ac_cpp='$CXXCPP $CPPFLAGS'
29525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29528
29529       cat >conftest.$ac_ext <<_ACEOF
29530 #line $LINENO "configure"
29531 /* confdefs.h.  */
29532 _ACEOF
29533 cat confdefs.h >>conftest.$ac_ext
29534 cat >>conftest.$ac_ext <<_ACEOF
29535 /* end confdefs.h.  */
29536 #include <math.h>
29537                       #ifdef HAVE_IEEEFP_H
29538                       #include <ieeefp.h>
29539                       #endif
29540
29541 int
29542 main ()
29543 {
29544  fpclass(0);
29545   ;
29546   return 0;
29547 }
29548 _ACEOF
29549 rm -f conftest.$ac_objext
29550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29551   (eval $ac_compile) 2>&5
29552   ac_status=$?
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); } &&
29555          { ac_try='test -s conftest.$ac_objext'
29556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29557   (eval $ac_try) 2>&5
29558   ac_status=$?
29559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560   (exit $ac_status); }; }; then
29561   glibcxx_cv_func_fpclass_use=yes
29562 else
29563   echo "$as_me: failed program was:" >&5
29564 sed 's/^/| /' conftest.$ac_ext >&5
29565
29566 glibcxx_cv_func_fpclass_use=no
29567 fi
29568 rm -f conftest.$ac_objext conftest.$ac_ext
29569       ac_ext=c
29570 ac_cpp='$CPP $CPPFLAGS'
29571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29574
29575
29576 fi
29577
29578   fi
29579   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
29580 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
29581
29582   if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
29583
29584 for ac_func in fpclass
29585 do
29586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29587 echo "$as_me:$LINENO: checking for $ac_func" >&5
29588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29589 if eval "test \"\${$as_ac_var+set}\" = set"; then
29590   echo $ECHO_N "(cached) $ECHO_C" >&6
29591 else
29592   if test x$gcc_no_link = xyes; then
29593   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29595    { (exit 1); exit 1; }; }
29596 fi
29597 cat >conftest.$ac_ext <<_ACEOF
29598 #line $LINENO "configure"
29599 /* confdefs.h.  */
29600 _ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h.  */
29604 /* System header to define __stub macros and hopefully few prototypes,
29605     which can conflict with char $ac_func (); below.
29606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29607     <limits.h> exists even on freestanding compilers.  */
29608 #ifdef __STDC__
29609 # include <limits.h>
29610 #else
29611 # include <assert.h>
29612 #endif
29613 /* Override any gcc2 internal prototype to avoid an error.  */
29614 #ifdef __cplusplus
29615 extern "C"
29616 {
29617 #endif
29618 /* We use char because int might match the return type of a gcc2
29619    builtin and then its argument prototype would still apply.  */
29620 char $ac_func ();
29621 /* The GNU C library defines this for functions which it implements
29622     to always fail with ENOSYS.  Some functions are actually named
29623     something starting with __ and the normal name is an alias.  */
29624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29625 choke me
29626 #else
29627 char (*f) () = $ac_func;
29628 #endif
29629 #ifdef __cplusplus
29630 }
29631 #endif
29632
29633 int
29634 main ()
29635 {
29636 return f != $ac_func;
29637   ;
29638   return 0;
29639 }
29640 _ACEOF
29641 rm -f conftest.$ac_objext conftest$ac_exeext
29642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29643   (eval $ac_link) 2>&5
29644   ac_status=$?
29645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646   (exit $ac_status); } &&
29647          { ac_try='test -s conftest$ac_exeext'
29648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29649   (eval $ac_try) 2>&5
29650   ac_status=$?
29651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652   (exit $ac_status); }; }; then
29653   eval "$as_ac_var=yes"
29654 else
29655   echo "$as_me: failed program was:" >&5
29656 sed 's/^/| /' conftest.$ac_ext >&5
29657
29658 eval "$as_ac_var=no"
29659 fi
29660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29661 fi
29662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29664 if test `eval echo '${'$as_ac_var'}'` = yes; then
29665   cat >>confdefs.h <<_ACEOF
29666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29667 _ACEOF
29668
29669 fi
29670 done
29671
29672   else
29673
29674   echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
29675 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
29676   if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
29677     if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
29678   echo $ECHO_N "(cached) $ECHO_C" >&6
29679 else
29680
29681
29682
29683       ac_ext=cc
29684 ac_cpp='$CXXCPP $CPPFLAGS'
29685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29688
29689       cat >conftest.$ac_ext <<_ACEOF
29690 #line $LINENO "configure"
29691 /* confdefs.h.  */
29692 _ACEOF
29693 cat confdefs.h >>conftest.$ac_ext
29694 cat >>conftest.$ac_ext <<_ACEOF
29695 /* end confdefs.h.  */
29696 #include <math.h>
29697                       #ifdef HAVE_IEEEFP_H
29698                       #include <ieeefp.h>
29699                       #endif
29700
29701 int
29702 main ()
29703 {
29704  _fpclass(0);
29705   ;
29706   return 0;
29707 }
29708 _ACEOF
29709 rm -f conftest.$ac_objext
29710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29711   (eval $ac_compile) 2>&5
29712   ac_status=$?
29713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714   (exit $ac_status); } &&
29715          { ac_try='test -s conftest.$ac_objext'
29716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29717   (eval $ac_try) 2>&5
29718   ac_status=$?
29719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720   (exit $ac_status); }; }; then
29721   glibcxx_cv_func__fpclass_use=yes
29722 else
29723   echo "$as_me: failed program was:" >&5
29724 sed 's/^/| /' conftest.$ac_ext >&5
29725
29726 glibcxx_cv_func__fpclass_use=no
29727 fi
29728 rm -f conftest.$ac_objext conftest.$ac_ext
29729       ac_ext=c
29730 ac_cpp='$CPP $CPPFLAGS'
29731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29734
29735
29736 fi
29737
29738   fi
29739   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
29740 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
29741
29742     if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
29743
29744 for ac_func in _fpclass
29745 do
29746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29747 echo "$as_me:$LINENO: checking for $ac_func" >&5
29748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29749 if eval "test \"\${$as_ac_var+set}\" = set"; then
29750   echo $ECHO_N "(cached) $ECHO_C" >&6
29751 else
29752   if test x$gcc_no_link = xyes; then
29753   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29754 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29755    { (exit 1); exit 1; }; }
29756 fi
29757 cat >conftest.$ac_ext <<_ACEOF
29758 #line $LINENO "configure"
29759 /* confdefs.h.  */
29760 _ACEOF
29761 cat confdefs.h >>conftest.$ac_ext
29762 cat >>conftest.$ac_ext <<_ACEOF
29763 /* end confdefs.h.  */
29764 /* System header to define __stub macros and hopefully few prototypes,
29765     which can conflict with char $ac_func (); below.
29766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29767     <limits.h> exists even on freestanding compilers.  */
29768 #ifdef __STDC__
29769 # include <limits.h>
29770 #else
29771 # include <assert.h>
29772 #endif
29773 /* Override any gcc2 internal prototype to avoid an error.  */
29774 #ifdef __cplusplus
29775 extern "C"
29776 {
29777 #endif
29778 /* We use char because int might match the return type of a gcc2
29779    builtin and then its argument prototype would still apply.  */
29780 char $ac_func ();
29781 /* The GNU C library defines this for functions which it implements
29782     to always fail with ENOSYS.  Some functions are actually named
29783     something starting with __ and the normal name is an alias.  */
29784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29785 choke me
29786 #else
29787 char (*f) () = $ac_func;
29788 #endif
29789 #ifdef __cplusplus
29790 }
29791 #endif
29792
29793 int
29794 main ()
29795 {
29796 return f != $ac_func;
29797   ;
29798   return 0;
29799 }
29800 _ACEOF
29801 rm -f conftest.$ac_objext conftest$ac_exeext
29802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29803   (eval $ac_link) 2>&5
29804   ac_status=$?
29805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806   (exit $ac_status); } &&
29807          { ac_try='test -s conftest$ac_exeext'
29808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29809   (eval $ac_try) 2>&5
29810   ac_status=$?
29811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812   (exit $ac_status); }; }; then
29813   eval "$as_ac_var=yes"
29814 else
29815   echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29817
29818 eval "$as_ac_var=no"
29819 fi
29820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29821 fi
29822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29824 if test `eval echo '${'$as_ac_var'}'` = yes; then
29825   cat >>confdefs.h <<_ACEOF
29826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29827 _ACEOF
29828
29829 fi
29830 done
29831
29832     fi
29833   fi
29834
29835
29836
29837   echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
29838 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
29839   if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
29840     if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
29841   echo $ECHO_N "(cached) $ECHO_C" >&6
29842 else
29843
29844
29845
29846       ac_ext=cc
29847 ac_cpp='$CXXCPP $CPPFLAGS'
29848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29851
29852       cat >conftest.$ac_ext <<_ACEOF
29853 #line $LINENO "configure"
29854 /* confdefs.h.  */
29855 _ACEOF
29856 cat confdefs.h >>conftest.$ac_ext
29857 cat >>conftest.$ac_ext <<_ACEOF
29858 /* end confdefs.h.  */
29859 #include <math.h>
29860                       #ifdef HAVE_IEEEFP_H
29861                       #include <ieeefp.h>
29862                       #endif
29863
29864 int
29865 main ()
29866 {
29867  qfpclass(0);
29868   ;
29869   return 0;
29870 }
29871 _ACEOF
29872 rm -f conftest.$ac_objext
29873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29874   (eval $ac_compile) 2>&5
29875   ac_status=$?
29876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877   (exit $ac_status); } &&
29878          { ac_try='test -s conftest.$ac_objext'
29879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880   (eval $ac_try) 2>&5
29881   ac_status=$?
29882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883   (exit $ac_status); }; }; then
29884   glibcxx_cv_func_qfpclass_use=yes
29885 else
29886   echo "$as_me: failed program was:" >&5
29887 sed 's/^/| /' conftest.$ac_ext >&5
29888
29889 glibcxx_cv_func_qfpclass_use=no
29890 fi
29891 rm -f conftest.$ac_objext conftest.$ac_ext
29892       ac_ext=c
29893 ac_cpp='$CPP $CPPFLAGS'
29894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29897
29898
29899 fi
29900
29901   fi
29902   echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
29903 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
29904
29905   if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
29906
29907 for ac_func in qfpclass
29908 do
29909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29910 echo "$as_me:$LINENO: checking for $ac_func" >&5
29911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29912 if eval "test \"\${$as_ac_var+set}\" = set"; then
29913   echo $ECHO_N "(cached) $ECHO_C" >&6
29914 else
29915   if test x$gcc_no_link = xyes; then
29916   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29917 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29918    { (exit 1); exit 1; }; }
29919 fi
29920 cat >conftest.$ac_ext <<_ACEOF
29921 #line $LINENO "configure"
29922 /* confdefs.h.  */
29923 _ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h.  */
29927 /* System header to define __stub macros and hopefully few prototypes,
29928     which can conflict with char $ac_func (); below.
29929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29930     <limits.h> exists even on freestanding compilers.  */
29931 #ifdef __STDC__
29932 # include <limits.h>
29933 #else
29934 # include <assert.h>
29935 #endif
29936 /* Override any gcc2 internal prototype to avoid an error.  */
29937 #ifdef __cplusplus
29938 extern "C"
29939 {
29940 #endif
29941 /* We use char because int might match the return type of a gcc2
29942    builtin and then its argument prototype would still apply.  */
29943 char $ac_func ();
29944 /* The GNU C library defines this for functions which it implements
29945     to always fail with ENOSYS.  Some functions are actually named
29946     something starting with __ and the normal name is an alias.  */
29947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29948 choke me
29949 #else
29950 char (*f) () = $ac_func;
29951 #endif
29952 #ifdef __cplusplus
29953 }
29954 #endif
29955
29956 int
29957 main ()
29958 {
29959 return f != $ac_func;
29960   ;
29961   return 0;
29962 }
29963 _ACEOF
29964 rm -f conftest.$ac_objext conftest$ac_exeext
29965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29966   (eval $ac_link) 2>&5
29967   ac_status=$?
29968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969   (exit $ac_status); } &&
29970          { ac_try='test -s conftest$ac_exeext'
29971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29972   (eval $ac_try) 2>&5
29973   ac_status=$?
29974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); }; }; then
29976   eval "$as_ac_var=yes"
29977 else
29978   echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29980
29981 eval "$as_ac_var=no"
29982 fi
29983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29984 fi
29985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29987 if test `eval echo '${'$as_ac_var'}'` = yes; then
29988   cat >>confdefs.h <<_ACEOF
29989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29990 _ACEOF
29991
29992 fi
29993 done
29994
29995   else
29996
29997   echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
29998 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
29999   if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
30000     if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
30001   echo $ECHO_N "(cached) $ECHO_C" >&6
30002 else
30003
30004
30005
30006       ac_ext=cc
30007 ac_cpp='$CXXCPP $CPPFLAGS'
30008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30011
30012       cat >conftest.$ac_ext <<_ACEOF
30013 #line $LINENO "configure"
30014 /* confdefs.h.  */
30015 _ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h.  */
30019 #include <math.h>
30020                       #ifdef HAVE_IEEEFP_H
30021                       #include <ieeefp.h>
30022                       #endif
30023
30024 int
30025 main ()
30026 {
30027  _qfpclass(0);
30028   ;
30029   return 0;
30030 }
30031 _ACEOF
30032 rm -f conftest.$ac_objext
30033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30034   (eval $ac_compile) 2>&5
30035   ac_status=$?
30036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037   (exit $ac_status); } &&
30038          { ac_try='test -s conftest.$ac_objext'
30039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30040   (eval $ac_try) 2>&5
30041   ac_status=$?
30042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043   (exit $ac_status); }; }; then
30044   glibcxx_cv_func__qfpclass_use=yes
30045 else
30046   echo "$as_me: failed program was:" >&5
30047 sed 's/^/| /' conftest.$ac_ext >&5
30048
30049 glibcxx_cv_func__qfpclass_use=no
30050 fi
30051 rm -f conftest.$ac_objext conftest.$ac_ext
30052       ac_ext=c
30053 ac_cpp='$CPP $CPPFLAGS'
30054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30057
30058
30059 fi
30060
30061   fi
30062   echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
30063 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
30064
30065     if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
30066
30067 for ac_func in _qfpclass
30068 do
30069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30070 echo "$as_me:$LINENO: checking for $ac_func" >&5
30071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30072 if eval "test \"\${$as_ac_var+set}\" = set"; then
30073   echo $ECHO_N "(cached) $ECHO_C" >&6
30074 else
30075   if test x$gcc_no_link = xyes; then
30076   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30078    { (exit 1); exit 1; }; }
30079 fi
30080 cat >conftest.$ac_ext <<_ACEOF
30081 #line $LINENO "configure"
30082 /* confdefs.h.  */
30083 _ACEOF
30084 cat confdefs.h >>conftest.$ac_ext
30085 cat >>conftest.$ac_ext <<_ACEOF
30086 /* end confdefs.h.  */
30087 /* System header to define __stub macros and hopefully few prototypes,
30088     which can conflict with char $ac_func (); below.
30089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30090     <limits.h> exists even on freestanding compilers.  */
30091 #ifdef __STDC__
30092 # include <limits.h>
30093 #else
30094 # include <assert.h>
30095 #endif
30096 /* Override any gcc2 internal prototype to avoid an error.  */
30097 #ifdef __cplusplus
30098 extern "C"
30099 {
30100 #endif
30101 /* We use char because int might match the return type of a gcc2
30102    builtin and then its argument prototype would still apply.  */
30103 char $ac_func ();
30104 /* The GNU C library defines this for functions which it implements
30105     to always fail with ENOSYS.  Some functions are actually named
30106     something starting with __ and the normal name is an alias.  */
30107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30108 choke me
30109 #else
30110 char (*f) () = $ac_func;
30111 #endif
30112 #ifdef __cplusplus
30113 }
30114 #endif
30115
30116 int
30117 main ()
30118 {
30119 return f != $ac_func;
30120   ;
30121   return 0;
30122 }
30123 _ACEOF
30124 rm -f conftest.$ac_objext conftest$ac_exeext
30125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30126   (eval $ac_link) 2>&5
30127   ac_status=$?
30128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129   (exit $ac_status); } &&
30130          { ac_try='test -s conftest$ac_exeext'
30131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30132   (eval $ac_try) 2>&5
30133   ac_status=$?
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); }; }; then
30136   eval "$as_ac_var=yes"
30137 else
30138   echo "$as_me: failed program was:" >&5
30139 sed 's/^/| /' conftest.$ac_ext >&5
30140
30141 eval "$as_ac_var=no"
30142 fi
30143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30144 fi
30145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30147 if test `eval echo '${'$as_ac_var'}'` = yes; then
30148   cat >>confdefs.h <<_ACEOF
30149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30150 _ACEOF
30151
30152 fi
30153 done
30154
30155     fi
30156   fi
30157
30158
30159
30160   echo "$as_me:$LINENO: checking for hypot declaration" >&5
30161 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
30162   if test x${glibcxx_cv_func_hypot_use+set} != xset; then
30163     if test "${glibcxx_cv_func_hypot_use+set}" = set; then
30164   echo $ECHO_N "(cached) $ECHO_C" >&6
30165 else
30166
30167
30168
30169       ac_ext=cc
30170 ac_cpp='$CXXCPP $CPPFLAGS'
30171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30174
30175       cat >conftest.$ac_ext <<_ACEOF
30176 #line $LINENO "configure"
30177 /* confdefs.h.  */
30178 _ACEOF
30179 cat confdefs.h >>conftest.$ac_ext
30180 cat >>conftest.$ac_ext <<_ACEOF
30181 /* end confdefs.h.  */
30182 #include <math.h>
30183 int
30184 main ()
30185 {
30186  hypot(0, 0);
30187   ;
30188   return 0;
30189 }
30190 _ACEOF
30191 rm -f conftest.$ac_objext
30192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30193   (eval $ac_compile) 2>&5
30194   ac_status=$?
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); } &&
30197          { ac_try='test -s conftest.$ac_objext'
30198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30199   (eval $ac_try) 2>&5
30200   ac_status=$?
30201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202   (exit $ac_status); }; }; then
30203   glibcxx_cv_func_hypot_use=yes
30204 else
30205   echo "$as_me: failed program was:" >&5
30206 sed 's/^/| /' conftest.$ac_ext >&5
30207
30208 glibcxx_cv_func_hypot_use=no
30209 fi
30210 rm -f conftest.$ac_objext conftest.$ac_ext
30211       ac_ext=c
30212 ac_cpp='$CPP $CPPFLAGS'
30213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30216
30217
30218 fi
30219
30220   fi
30221   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
30222 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
30223
30224   if test x$glibcxx_cv_func_hypot_use = x"yes"; then
30225
30226 for ac_func in hypot
30227 do
30228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30229 echo "$as_me:$LINENO: checking for $ac_func" >&5
30230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30231 if eval "test \"\${$as_ac_var+set}\" = set"; then
30232   echo $ECHO_N "(cached) $ECHO_C" >&6
30233 else
30234   if test x$gcc_no_link = xyes; then
30235   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30237    { (exit 1); exit 1; }; }
30238 fi
30239 cat >conftest.$ac_ext <<_ACEOF
30240 #line $LINENO "configure"
30241 /* confdefs.h.  */
30242 _ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h.  */
30246 /* System header to define __stub macros and hopefully few prototypes,
30247     which can conflict with char $ac_func (); below.
30248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30249     <limits.h> exists even on freestanding compilers.  */
30250 #ifdef __STDC__
30251 # include <limits.h>
30252 #else
30253 # include <assert.h>
30254 #endif
30255 /* Override any gcc2 internal prototype to avoid an error.  */
30256 #ifdef __cplusplus
30257 extern "C"
30258 {
30259 #endif
30260 /* We use char because int might match the return type of a gcc2
30261    builtin and then its argument prototype would still apply.  */
30262 char $ac_func ();
30263 /* The GNU C library defines this for functions which it implements
30264     to always fail with ENOSYS.  Some functions are actually named
30265     something starting with __ and the normal name is an alias.  */
30266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30267 choke me
30268 #else
30269 char (*f) () = $ac_func;
30270 #endif
30271 #ifdef __cplusplus
30272 }
30273 #endif
30274
30275 int
30276 main ()
30277 {
30278 return f != $ac_func;
30279   ;
30280   return 0;
30281 }
30282 _ACEOF
30283 rm -f conftest.$ac_objext conftest$ac_exeext
30284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30285   (eval $ac_link) 2>&5
30286   ac_status=$?
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); } &&
30289          { ac_try='test -s conftest$ac_exeext'
30290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30291   (eval $ac_try) 2>&5
30292   ac_status=$?
30293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294   (exit $ac_status); }; }; then
30295   eval "$as_ac_var=yes"
30296 else
30297   echo "$as_me: failed program was:" >&5
30298 sed 's/^/| /' conftest.$ac_ext >&5
30299
30300 eval "$as_ac_var=no"
30301 fi
30302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30303 fi
30304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30306 if test `eval echo '${'$as_ac_var'}'` = yes; then
30307   cat >>confdefs.h <<_ACEOF
30308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30309 _ACEOF
30310
30311 fi
30312 done
30313
30314   else
30315
30316   echo "$as_me:$LINENO: checking for _hypot declaration" >&5
30317 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
30318   if test x${glibcxx_cv_func__hypot_use+set} != xset; then
30319     if test "${glibcxx_cv_func__hypot_use+set}" = set; then
30320   echo $ECHO_N "(cached) $ECHO_C" >&6
30321 else
30322
30323
30324
30325       ac_ext=cc
30326 ac_cpp='$CXXCPP $CPPFLAGS'
30327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30330
30331       cat >conftest.$ac_ext <<_ACEOF
30332 #line $LINENO "configure"
30333 /* confdefs.h.  */
30334 _ACEOF
30335 cat confdefs.h >>conftest.$ac_ext
30336 cat >>conftest.$ac_ext <<_ACEOF
30337 /* end confdefs.h.  */
30338 #include <math.h>
30339 int
30340 main ()
30341 {
30342  _hypot(0, 0);
30343   ;
30344   return 0;
30345 }
30346 _ACEOF
30347 rm -f conftest.$ac_objext
30348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30349   (eval $ac_compile) 2>&5
30350   ac_status=$?
30351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352   (exit $ac_status); } &&
30353          { ac_try='test -s conftest.$ac_objext'
30354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355   (eval $ac_try) 2>&5
30356   ac_status=$?
30357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358   (exit $ac_status); }; }; then
30359   glibcxx_cv_func__hypot_use=yes
30360 else
30361   echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.$ac_ext >&5
30363
30364 glibcxx_cv_func__hypot_use=no
30365 fi
30366 rm -f conftest.$ac_objext conftest.$ac_ext
30367       ac_ext=c
30368 ac_cpp='$CPP $CPPFLAGS'
30369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30372
30373
30374 fi
30375
30376   fi
30377   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
30378 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
30379
30380     if test x$glibcxx_cv_func__hypot_use = x"yes"; then
30381
30382 for ac_func in _hypot
30383 do
30384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30385 echo "$as_me:$LINENO: checking for $ac_func" >&5
30386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30387 if eval "test \"\${$as_ac_var+set}\" = set"; then
30388   echo $ECHO_N "(cached) $ECHO_C" >&6
30389 else
30390   if test x$gcc_no_link = xyes; then
30391   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30393    { (exit 1); exit 1; }; }
30394 fi
30395 cat >conftest.$ac_ext <<_ACEOF
30396 #line $LINENO "configure"
30397 /* confdefs.h.  */
30398 _ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h.  */
30402 /* System header to define __stub macros and hopefully few prototypes,
30403     which can conflict with char $ac_func (); below.
30404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30405     <limits.h> exists even on freestanding compilers.  */
30406 #ifdef __STDC__
30407 # include <limits.h>
30408 #else
30409 # include <assert.h>
30410 #endif
30411 /* Override any gcc2 internal prototype to avoid an error.  */
30412 #ifdef __cplusplus
30413 extern "C"
30414 {
30415 #endif
30416 /* We use char because int might match the return type of a gcc2
30417    builtin and then its argument prototype would still apply.  */
30418 char $ac_func ();
30419 /* The GNU C library defines this for functions which it implements
30420     to always fail with ENOSYS.  Some functions are actually named
30421     something starting with __ and the normal name is an alias.  */
30422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30423 choke me
30424 #else
30425 char (*f) () = $ac_func;
30426 #endif
30427 #ifdef __cplusplus
30428 }
30429 #endif
30430
30431 int
30432 main ()
30433 {
30434 return f != $ac_func;
30435   ;
30436   return 0;
30437 }
30438 _ACEOF
30439 rm -f conftest.$ac_objext conftest$ac_exeext
30440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30441   (eval $ac_link) 2>&5
30442   ac_status=$?
30443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444   (exit $ac_status); } &&
30445          { ac_try='test -s conftest$ac_exeext'
30446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30447   (eval $ac_try) 2>&5
30448   ac_status=$?
30449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450   (exit $ac_status); }; }; then
30451   eval "$as_ac_var=yes"
30452 else
30453   echo "$as_me: failed program was:" >&5
30454 sed 's/^/| /' conftest.$ac_ext >&5
30455
30456 eval "$as_ac_var=no"
30457 fi
30458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30459 fi
30460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30462 if test `eval echo '${'$as_ac_var'}'` = yes; then
30463   cat >>confdefs.h <<_ACEOF
30464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30465 _ACEOF
30466
30467 fi
30468 done
30469
30470     fi
30471   fi
30472
30473
30474
30475   echo "$as_me:$LINENO: checking for float trig functions" >&5
30476 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
30477   if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
30478   echo $ECHO_N "(cached) $ECHO_C" >&6
30479 else
30480
30481
30482
30483     ac_ext=cc
30484 ac_cpp='$CXXCPP $CPPFLAGS'
30485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30488
30489     cat >conftest.$ac_ext <<_ACEOF
30490 #line $LINENO "configure"
30491 /* confdefs.h.  */
30492 _ACEOF
30493 cat confdefs.h >>conftest.$ac_ext
30494 cat >>conftest.$ac_ext <<_ACEOF
30495 /* end confdefs.h.  */
30496 #include <math.h>
30497 int
30498 main ()
30499 {
30500  `for x in acosf asinf atanf \
30501                                           cosf sinf tanf \
30502                                           coshf sinhf tanhf; do echo "$x (0);"; done`
30503   ;
30504   return 0;
30505 }
30506 _ACEOF
30507 rm -f conftest.$ac_objext
30508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30509   (eval $ac_compile) 2>&5
30510   ac_status=$?
30511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512   (exit $ac_status); } &&
30513          { ac_try='test -s conftest.$ac_objext'
30514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30515   (eval $ac_try) 2>&5
30516   ac_status=$?
30517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518   (exit $ac_status); }; }; then
30519   glibcxx_cv_func_float_trig_use=yes
30520 else
30521   echo "$as_me: failed program was:" >&5
30522 sed 's/^/| /' conftest.$ac_ext >&5
30523
30524 glibcxx_cv_func_float_trig_use=no
30525 fi
30526 rm -f conftest.$ac_objext conftest.$ac_ext
30527     ac_ext=c
30528 ac_cpp='$CPP $CPPFLAGS'
30529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30532
30533 fi
30534
30535   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
30536 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
30537   if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547 for ac_func in acosf asinf atanf \
30548                                           cosf sinf tanf \
30549                                           coshf sinhf tanhf
30550 do
30551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30552 echo "$as_me:$LINENO: checking for $ac_func" >&5
30553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30554 if eval "test \"\${$as_ac_var+set}\" = set"; then
30555   echo $ECHO_N "(cached) $ECHO_C" >&6
30556 else
30557   if test x$gcc_no_link = xyes; then
30558   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30559 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30560    { (exit 1); exit 1; }; }
30561 fi
30562 cat >conftest.$ac_ext <<_ACEOF
30563 #line $LINENO "configure"
30564 /* confdefs.h.  */
30565 _ACEOF
30566 cat confdefs.h >>conftest.$ac_ext
30567 cat >>conftest.$ac_ext <<_ACEOF
30568 /* end confdefs.h.  */
30569 /* System header to define __stub macros and hopefully few prototypes,
30570     which can conflict with char $ac_func (); below.
30571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30572     <limits.h> exists even on freestanding compilers.  */
30573 #ifdef __STDC__
30574 # include <limits.h>
30575 #else
30576 # include <assert.h>
30577 #endif
30578 /* Override any gcc2 internal prototype to avoid an error.  */
30579 #ifdef __cplusplus
30580 extern "C"
30581 {
30582 #endif
30583 /* We use char because int might match the return type of a gcc2
30584    builtin and then its argument prototype would still apply.  */
30585 char $ac_func ();
30586 /* The GNU C library defines this for functions which it implements
30587     to always fail with ENOSYS.  Some functions are actually named
30588     something starting with __ and the normal name is an alias.  */
30589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30590 choke me
30591 #else
30592 char (*f) () = $ac_func;
30593 #endif
30594 #ifdef __cplusplus
30595 }
30596 #endif
30597
30598 int
30599 main ()
30600 {
30601 return f != $ac_func;
30602   ;
30603   return 0;
30604 }
30605 _ACEOF
30606 rm -f conftest.$ac_objext conftest$ac_exeext
30607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30608   (eval $ac_link) 2>&5
30609   ac_status=$?
30610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611   (exit $ac_status); } &&
30612          { ac_try='test -s conftest$ac_exeext'
30613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614   (eval $ac_try) 2>&5
30615   ac_status=$?
30616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617   (exit $ac_status); }; }; then
30618   eval "$as_ac_var=yes"
30619 else
30620   echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30622
30623 eval "$as_ac_var=no"
30624 fi
30625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30626 fi
30627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30629 if test `eval echo '${'$as_ac_var'}'` = yes; then
30630   cat >>confdefs.h <<_ACEOF
30631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30632 _ACEOF
30633
30634 fi
30635 done
30636
30637   fi
30638
30639
30640   echo "$as_me:$LINENO: checking for float round functions" >&5
30641 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
30642   if test "${glibcxx_cv_func_float_round_use+set}" = set; then
30643   echo $ECHO_N "(cached) $ECHO_C" >&6
30644 else
30645
30646
30647
30648     ac_ext=cc
30649 ac_cpp='$CXXCPP $CPPFLAGS'
30650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30653
30654     cat >conftest.$ac_ext <<_ACEOF
30655 #line $LINENO "configure"
30656 /* confdefs.h.  */
30657 _ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h.  */
30661 #include <math.h>
30662 int
30663 main ()
30664 {
30665  `for x in ceilf floorf; do echo "$x (0);"; done`
30666   ;
30667   return 0;
30668 }
30669 _ACEOF
30670 rm -f conftest.$ac_objext
30671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30672   (eval $ac_compile) 2>&5
30673   ac_status=$?
30674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675   (exit $ac_status); } &&
30676          { ac_try='test -s conftest.$ac_objext'
30677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30678   (eval $ac_try) 2>&5
30679   ac_status=$?
30680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681   (exit $ac_status); }; }; then
30682   glibcxx_cv_func_float_round_use=yes
30683 else
30684   echo "$as_me: failed program was:" >&5
30685 sed 's/^/| /' conftest.$ac_ext >&5
30686
30687 glibcxx_cv_func_float_round_use=no
30688 fi
30689 rm -f conftest.$ac_objext conftest.$ac_ext
30690     ac_ext=c
30691 ac_cpp='$CPP $CPPFLAGS'
30692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30695
30696 fi
30697
30698   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
30699 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
30700   if test x$glibcxx_cv_func_float_round_use = x"yes"; then
30701
30702
30703 for ac_func in ceilf floorf
30704 do
30705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30706 echo "$as_me:$LINENO: checking for $ac_func" >&5
30707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30708 if eval "test \"\${$as_ac_var+set}\" = set"; then
30709   echo $ECHO_N "(cached) $ECHO_C" >&6
30710 else
30711   if test x$gcc_no_link = xyes; then
30712   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30714    { (exit 1); exit 1; }; }
30715 fi
30716 cat >conftest.$ac_ext <<_ACEOF
30717 #line $LINENO "configure"
30718 /* confdefs.h.  */
30719 _ACEOF
30720 cat confdefs.h >>conftest.$ac_ext
30721 cat >>conftest.$ac_ext <<_ACEOF
30722 /* end confdefs.h.  */
30723 /* System header to define __stub macros and hopefully few prototypes,
30724     which can conflict with char $ac_func (); below.
30725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30726     <limits.h> exists even on freestanding compilers.  */
30727 #ifdef __STDC__
30728 # include <limits.h>
30729 #else
30730 # include <assert.h>
30731 #endif
30732 /* Override any gcc2 internal prototype to avoid an error.  */
30733 #ifdef __cplusplus
30734 extern "C"
30735 {
30736 #endif
30737 /* We use char because int might match the return type of a gcc2
30738    builtin and then its argument prototype would still apply.  */
30739 char $ac_func ();
30740 /* The GNU C library defines this for functions which it implements
30741     to always fail with ENOSYS.  Some functions are actually named
30742     something starting with __ and the normal name is an alias.  */
30743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30744 choke me
30745 #else
30746 char (*f) () = $ac_func;
30747 #endif
30748 #ifdef __cplusplus
30749 }
30750 #endif
30751
30752 int
30753 main ()
30754 {
30755 return f != $ac_func;
30756   ;
30757   return 0;
30758 }
30759 _ACEOF
30760 rm -f conftest.$ac_objext conftest$ac_exeext
30761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30762   (eval $ac_link) 2>&5
30763   ac_status=$?
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); } &&
30766          { ac_try='test -s conftest$ac_exeext'
30767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768   (eval $ac_try) 2>&5
30769   ac_status=$?
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); }; }; then
30772   eval "$as_ac_var=yes"
30773 else
30774   echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30776
30777 eval "$as_ac_var=no"
30778 fi
30779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30780 fi
30781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30783 if test `eval echo '${'$as_ac_var'}'` = yes; then
30784   cat >>confdefs.h <<_ACEOF
30785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30786 _ACEOF
30787
30788 fi
30789 done
30790
30791   fi
30792
30793
30794
30795   echo "$as_me:$LINENO: checking for expf declaration" >&5
30796 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
30797   if test x${glibcxx_cv_func_expf_use+set} != xset; then
30798     if test "${glibcxx_cv_func_expf_use+set}" = set; then
30799   echo $ECHO_N "(cached) $ECHO_C" >&6
30800 else
30801
30802
30803
30804       ac_ext=cc
30805 ac_cpp='$CXXCPP $CPPFLAGS'
30806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30809
30810       cat >conftest.$ac_ext <<_ACEOF
30811 #line $LINENO "configure"
30812 /* confdefs.h.  */
30813 _ACEOF
30814 cat confdefs.h >>conftest.$ac_ext
30815 cat >>conftest.$ac_ext <<_ACEOF
30816 /* end confdefs.h.  */
30817 #include <math.h>
30818                       #ifdef HAVE_IEEEFP_H
30819                       #include <ieeefp.h>
30820                       #endif
30821
30822 int
30823 main ()
30824 {
30825  expf(0);
30826   ;
30827   return 0;
30828 }
30829 _ACEOF
30830 rm -f conftest.$ac_objext
30831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30832   (eval $ac_compile) 2>&5
30833   ac_status=$?
30834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835   (exit $ac_status); } &&
30836          { ac_try='test -s conftest.$ac_objext'
30837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30838   (eval $ac_try) 2>&5
30839   ac_status=$?
30840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841   (exit $ac_status); }; }; then
30842   glibcxx_cv_func_expf_use=yes
30843 else
30844   echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30846
30847 glibcxx_cv_func_expf_use=no
30848 fi
30849 rm -f conftest.$ac_objext conftest.$ac_ext
30850       ac_ext=c
30851 ac_cpp='$CPP $CPPFLAGS'
30852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30855
30856
30857 fi
30858
30859   fi
30860   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
30861 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
30862
30863   if test x$glibcxx_cv_func_expf_use = x"yes"; then
30864
30865 for ac_func in expf
30866 do
30867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30868 echo "$as_me:$LINENO: checking for $ac_func" >&5
30869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30870 if eval "test \"\${$as_ac_var+set}\" = set"; then
30871   echo $ECHO_N "(cached) $ECHO_C" >&6
30872 else
30873   if test x$gcc_no_link = xyes; then
30874   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30876    { (exit 1); exit 1; }; }
30877 fi
30878 cat >conftest.$ac_ext <<_ACEOF
30879 #line $LINENO "configure"
30880 /* confdefs.h.  */
30881 _ACEOF
30882 cat confdefs.h >>conftest.$ac_ext
30883 cat >>conftest.$ac_ext <<_ACEOF
30884 /* end confdefs.h.  */
30885 /* System header to define __stub macros and hopefully few prototypes,
30886     which can conflict with char $ac_func (); below.
30887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30888     <limits.h> exists even on freestanding compilers.  */
30889 #ifdef __STDC__
30890 # include <limits.h>
30891 #else
30892 # include <assert.h>
30893 #endif
30894 /* Override any gcc2 internal prototype to avoid an error.  */
30895 #ifdef __cplusplus
30896 extern "C"
30897 {
30898 #endif
30899 /* We use char because int might match the return type of a gcc2
30900    builtin and then its argument prototype would still apply.  */
30901 char $ac_func ();
30902 /* The GNU C library defines this for functions which it implements
30903     to always fail with ENOSYS.  Some functions are actually named
30904     something starting with __ and the normal name is an alias.  */
30905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30906 choke me
30907 #else
30908 char (*f) () = $ac_func;
30909 #endif
30910 #ifdef __cplusplus
30911 }
30912 #endif
30913
30914 int
30915 main ()
30916 {
30917 return f != $ac_func;
30918   ;
30919   return 0;
30920 }
30921 _ACEOF
30922 rm -f conftest.$ac_objext conftest$ac_exeext
30923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30924   (eval $ac_link) 2>&5
30925   ac_status=$?
30926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927   (exit $ac_status); } &&
30928          { ac_try='test -s conftest$ac_exeext'
30929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30930   (eval $ac_try) 2>&5
30931   ac_status=$?
30932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933   (exit $ac_status); }; }; then
30934   eval "$as_ac_var=yes"
30935 else
30936   echo "$as_me: failed program was:" >&5
30937 sed 's/^/| /' conftest.$ac_ext >&5
30938
30939 eval "$as_ac_var=no"
30940 fi
30941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30942 fi
30943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30945 if test `eval echo '${'$as_ac_var'}'` = yes; then
30946   cat >>confdefs.h <<_ACEOF
30947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30948 _ACEOF
30949
30950 fi
30951 done
30952
30953   else
30954
30955   echo "$as_me:$LINENO: checking for _expf declaration" >&5
30956 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
30957   if test x${glibcxx_cv_func__expf_use+set} != xset; then
30958     if test "${glibcxx_cv_func__expf_use+set}" = set; then
30959   echo $ECHO_N "(cached) $ECHO_C" >&6
30960 else
30961
30962
30963
30964       ac_ext=cc
30965 ac_cpp='$CXXCPP $CPPFLAGS'
30966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30969
30970       cat >conftest.$ac_ext <<_ACEOF
30971 #line $LINENO "configure"
30972 /* confdefs.h.  */
30973 _ACEOF
30974 cat confdefs.h >>conftest.$ac_ext
30975 cat >>conftest.$ac_ext <<_ACEOF
30976 /* end confdefs.h.  */
30977 #include <math.h>
30978                       #ifdef HAVE_IEEEFP_H
30979                       #include <ieeefp.h>
30980                       #endif
30981
30982 int
30983 main ()
30984 {
30985  _expf(0);
30986   ;
30987   return 0;
30988 }
30989 _ACEOF
30990 rm -f conftest.$ac_objext
30991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30992   (eval $ac_compile) 2>&5
30993   ac_status=$?
30994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995   (exit $ac_status); } &&
30996          { ac_try='test -s conftest.$ac_objext'
30997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30998   (eval $ac_try) 2>&5
30999   ac_status=$?
31000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001   (exit $ac_status); }; }; then
31002   glibcxx_cv_func__expf_use=yes
31003 else
31004   echo "$as_me: failed program was:" >&5
31005 sed 's/^/| /' conftest.$ac_ext >&5
31006
31007 glibcxx_cv_func__expf_use=no
31008 fi
31009 rm -f conftest.$ac_objext conftest.$ac_ext
31010       ac_ext=c
31011 ac_cpp='$CPP $CPPFLAGS'
31012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31015
31016
31017 fi
31018
31019   fi
31020   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
31021 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
31022
31023     if test x$glibcxx_cv_func__expf_use = x"yes"; then
31024
31025 for ac_func in _expf
31026 do
31027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31028 echo "$as_me:$LINENO: checking for $ac_func" >&5
31029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31030 if eval "test \"\${$as_ac_var+set}\" = set"; then
31031   echo $ECHO_N "(cached) $ECHO_C" >&6
31032 else
31033   if test x$gcc_no_link = xyes; then
31034   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31035 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31036    { (exit 1); exit 1; }; }
31037 fi
31038 cat >conftest.$ac_ext <<_ACEOF
31039 #line $LINENO "configure"
31040 /* confdefs.h.  */
31041 _ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h.  */
31045 /* System header to define __stub macros and hopefully few prototypes,
31046     which can conflict with char $ac_func (); below.
31047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31048     <limits.h> exists even on freestanding compilers.  */
31049 #ifdef __STDC__
31050 # include <limits.h>
31051 #else
31052 # include <assert.h>
31053 #endif
31054 /* Override any gcc2 internal prototype to avoid an error.  */
31055 #ifdef __cplusplus
31056 extern "C"
31057 {
31058 #endif
31059 /* We use char because int might match the return type of a gcc2
31060    builtin and then its argument prototype would still apply.  */
31061 char $ac_func ();
31062 /* The GNU C library defines this for functions which it implements
31063     to always fail with ENOSYS.  Some functions are actually named
31064     something starting with __ and the normal name is an alias.  */
31065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31066 choke me
31067 #else
31068 char (*f) () = $ac_func;
31069 #endif
31070 #ifdef __cplusplus
31071 }
31072 #endif
31073
31074 int
31075 main ()
31076 {
31077 return f != $ac_func;
31078   ;
31079   return 0;
31080 }
31081 _ACEOF
31082 rm -f conftest.$ac_objext conftest$ac_exeext
31083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31084   (eval $ac_link) 2>&5
31085   ac_status=$?
31086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087   (exit $ac_status); } &&
31088          { ac_try='test -s conftest$ac_exeext'
31089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31090   (eval $ac_try) 2>&5
31091   ac_status=$?
31092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093   (exit $ac_status); }; }; then
31094   eval "$as_ac_var=yes"
31095 else
31096   echo "$as_me: failed program was:" >&5
31097 sed 's/^/| /' conftest.$ac_ext >&5
31098
31099 eval "$as_ac_var=no"
31100 fi
31101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31102 fi
31103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31105 if test `eval echo '${'$as_ac_var'}'` = yes; then
31106   cat >>confdefs.h <<_ACEOF
31107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31108 _ACEOF
31109
31110 fi
31111 done
31112
31113     fi
31114   fi
31115
31116
31117
31118   echo "$as_me:$LINENO: checking for isnanf declaration" >&5
31119 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
31120   if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
31121     if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
31122   echo $ECHO_N "(cached) $ECHO_C" >&6
31123 else
31124
31125
31126
31127       ac_ext=cc
31128 ac_cpp='$CXXCPP $CPPFLAGS'
31129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31132
31133       cat >conftest.$ac_ext <<_ACEOF
31134 #line $LINENO "configure"
31135 /* confdefs.h.  */
31136 _ACEOF
31137 cat confdefs.h >>conftest.$ac_ext
31138 cat >>conftest.$ac_ext <<_ACEOF
31139 /* end confdefs.h.  */
31140 #include <math.h>
31141                       #ifdef HAVE_IEEEFP_H
31142                       #include <ieeefp.h>
31143                       #endif
31144
31145 int
31146 main ()
31147 {
31148  isnanf(0);
31149   ;
31150   return 0;
31151 }
31152 _ACEOF
31153 rm -f conftest.$ac_objext
31154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31155   (eval $ac_compile) 2>&5
31156   ac_status=$?
31157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158   (exit $ac_status); } &&
31159          { ac_try='test -s conftest.$ac_objext'
31160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31161   (eval $ac_try) 2>&5
31162   ac_status=$?
31163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164   (exit $ac_status); }; }; then
31165   glibcxx_cv_func_isnanf_use=yes
31166 else
31167   echo "$as_me: failed program was:" >&5
31168 sed 's/^/| /' conftest.$ac_ext >&5
31169
31170 glibcxx_cv_func_isnanf_use=no
31171 fi
31172 rm -f conftest.$ac_objext conftest.$ac_ext
31173       ac_ext=c
31174 ac_cpp='$CPP $CPPFLAGS'
31175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31178
31179
31180 fi
31181
31182   fi
31183   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
31184 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
31185
31186   if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
31187
31188 for ac_func in isnanf
31189 do
31190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31191 echo "$as_me:$LINENO: checking for $ac_func" >&5
31192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31193 if eval "test \"\${$as_ac_var+set}\" = set"; then
31194   echo $ECHO_N "(cached) $ECHO_C" >&6
31195 else
31196   if test x$gcc_no_link = xyes; then
31197   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31198 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31199    { (exit 1); exit 1; }; }
31200 fi
31201 cat >conftest.$ac_ext <<_ACEOF
31202 #line $LINENO "configure"
31203 /* confdefs.h.  */
31204 _ACEOF
31205 cat confdefs.h >>conftest.$ac_ext
31206 cat >>conftest.$ac_ext <<_ACEOF
31207 /* end confdefs.h.  */
31208 /* System header to define __stub macros and hopefully few prototypes,
31209     which can conflict with char $ac_func (); below.
31210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31211     <limits.h> exists even on freestanding compilers.  */
31212 #ifdef __STDC__
31213 # include <limits.h>
31214 #else
31215 # include <assert.h>
31216 #endif
31217 /* Override any gcc2 internal prototype to avoid an error.  */
31218 #ifdef __cplusplus
31219 extern "C"
31220 {
31221 #endif
31222 /* We use char because int might match the return type of a gcc2
31223    builtin and then its argument prototype would still apply.  */
31224 char $ac_func ();
31225 /* The GNU C library defines this for functions which it implements
31226     to always fail with ENOSYS.  Some functions are actually named
31227     something starting with __ and the normal name is an alias.  */
31228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31229 choke me
31230 #else
31231 char (*f) () = $ac_func;
31232 #endif
31233 #ifdef __cplusplus
31234 }
31235 #endif
31236
31237 int
31238 main ()
31239 {
31240 return f != $ac_func;
31241   ;
31242   return 0;
31243 }
31244 _ACEOF
31245 rm -f conftest.$ac_objext conftest$ac_exeext
31246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31247   (eval $ac_link) 2>&5
31248   ac_status=$?
31249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250   (exit $ac_status); } &&
31251          { ac_try='test -s conftest$ac_exeext'
31252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31253   (eval $ac_try) 2>&5
31254   ac_status=$?
31255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256   (exit $ac_status); }; }; then
31257   eval "$as_ac_var=yes"
31258 else
31259   echo "$as_me: failed program was:" >&5
31260 sed 's/^/| /' conftest.$ac_ext >&5
31261
31262 eval "$as_ac_var=no"
31263 fi
31264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31265 fi
31266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31268 if test `eval echo '${'$as_ac_var'}'` = yes; then
31269   cat >>confdefs.h <<_ACEOF
31270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31271 _ACEOF
31272
31273 fi
31274 done
31275
31276   else
31277
31278   echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
31279 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
31280   if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
31281     if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
31282   echo $ECHO_N "(cached) $ECHO_C" >&6
31283 else
31284
31285
31286
31287       ac_ext=cc
31288 ac_cpp='$CXXCPP $CPPFLAGS'
31289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31292
31293       cat >conftest.$ac_ext <<_ACEOF
31294 #line $LINENO "configure"
31295 /* confdefs.h.  */
31296 _ACEOF
31297 cat confdefs.h >>conftest.$ac_ext
31298 cat >>conftest.$ac_ext <<_ACEOF
31299 /* end confdefs.h.  */
31300 #include <math.h>
31301                       #ifdef HAVE_IEEEFP_H
31302                       #include <ieeefp.h>
31303                       #endif
31304
31305 int
31306 main ()
31307 {
31308  _isnanf(0);
31309   ;
31310   return 0;
31311 }
31312 _ACEOF
31313 rm -f conftest.$ac_objext
31314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31315   (eval $ac_compile) 2>&5
31316   ac_status=$?
31317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318   (exit $ac_status); } &&
31319          { ac_try='test -s conftest.$ac_objext'
31320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31321   (eval $ac_try) 2>&5
31322   ac_status=$?
31323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324   (exit $ac_status); }; }; then
31325   glibcxx_cv_func__isnanf_use=yes
31326 else
31327   echo "$as_me: failed program was:" >&5
31328 sed 's/^/| /' conftest.$ac_ext >&5
31329
31330 glibcxx_cv_func__isnanf_use=no
31331 fi
31332 rm -f conftest.$ac_objext conftest.$ac_ext
31333       ac_ext=c
31334 ac_cpp='$CPP $CPPFLAGS'
31335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31338
31339
31340 fi
31341
31342   fi
31343   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
31344 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
31345
31346     if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
31347
31348 for ac_func in _isnanf
31349 do
31350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31351 echo "$as_me:$LINENO: checking for $ac_func" >&5
31352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31353 if eval "test \"\${$as_ac_var+set}\" = set"; then
31354   echo $ECHO_N "(cached) $ECHO_C" >&6
31355 else
31356   if test x$gcc_no_link = xyes; then
31357   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31358 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31359    { (exit 1); exit 1; }; }
31360 fi
31361 cat >conftest.$ac_ext <<_ACEOF
31362 #line $LINENO "configure"
31363 /* confdefs.h.  */
31364 _ACEOF
31365 cat confdefs.h >>conftest.$ac_ext
31366 cat >>conftest.$ac_ext <<_ACEOF
31367 /* end confdefs.h.  */
31368 /* System header to define __stub macros and hopefully few prototypes,
31369     which can conflict with char $ac_func (); below.
31370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31371     <limits.h> exists even on freestanding compilers.  */
31372 #ifdef __STDC__
31373 # include <limits.h>
31374 #else
31375 # include <assert.h>
31376 #endif
31377 /* Override any gcc2 internal prototype to avoid an error.  */
31378 #ifdef __cplusplus
31379 extern "C"
31380 {
31381 #endif
31382 /* We use char because int might match the return type of a gcc2
31383    builtin and then its argument prototype would still apply.  */
31384 char $ac_func ();
31385 /* The GNU C library defines this for functions which it implements
31386     to always fail with ENOSYS.  Some functions are actually named
31387     something starting with __ and the normal name is an alias.  */
31388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31389 choke me
31390 #else
31391 char (*f) () = $ac_func;
31392 #endif
31393 #ifdef __cplusplus
31394 }
31395 #endif
31396
31397 int
31398 main ()
31399 {
31400 return f != $ac_func;
31401   ;
31402   return 0;
31403 }
31404 _ACEOF
31405 rm -f conftest.$ac_objext conftest$ac_exeext
31406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31407   (eval $ac_link) 2>&5
31408   ac_status=$?
31409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410   (exit $ac_status); } &&
31411          { ac_try='test -s conftest$ac_exeext'
31412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31413   (eval $ac_try) 2>&5
31414   ac_status=$?
31415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416   (exit $ac_status); }; }; then
31417   eval "$as_ac_var=yes"
31418 else
31419   echo "$as_me: failed program was:" >&5
31420 sed 's/^/| /' conftest.$ac_ext >&5
31421
31422 eval "$as_ac_var=no"
31423 fi
31424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31425 fi
31426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31428 if test `eval echo '${'$as_ac_var'}'` = yes; then
31429   cat >>confdefs.h <<_ACEOF
31430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31431 _ACEOF
31432
31433 fi
31434 done
31435
31436     fi
31437   fi
31438
31439
31440
31441   echo "$as_me:$LINENO: checking for isinff declaration" >&5
31442 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
31443   if test x${glibcxx_cv_func_isinff_use+set} != xset; then
31444     if test "${glibcxx_cv_func_isinff_use+set}" = set; then
31445   echo $ECHO_N "(cached) $ECHO_C" >&6
31446 else
31447
31448
31449
31450       ac_ext=cc
31451 ac_cpp='$CXXCPP $CPPFLAGS'
31452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31455
31456       cat >conftest.$ac_ext <<_ACEOF
31457 #line $LINENO "configure"
31458 /* confdefs.h.  */
31459 _ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h.  */
31463 #include <math.h>
31464                       #ifdef HAVE_IEEEFP_H
31465                       #include <ieeefp.h>
31466                       #endif
31467
31468 int
31469 main ()
31470 {
31471  isinff(0);
31472   ;
31473   return 0;
31474 }
31475 _ACEOF
31476 rm -f conftest.$ac_objext
31477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31478   (eval $ac_compile) 2>&5
31479   ac_status=$?
31480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481   (exit $ac_status); } &&
31482          { ac_try='test -s conftest.$ac_objext'
31483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31484   (eval $ac_try) 2>&5
31485   ac_status=$?
31486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487   (exit $ac_status); }; }; then
31488   glibcxx_cv_func_isinff_use=yes
31489 else
31490   echo "$as_me: failed program was:" >&5
31491 sed 's/^/| /' conftest.$ac_ext >&5
31492
31493 glibcxx_cv_func_isinff_use=no
31494 fi
31495 rm -f conftest.$ac_objext conftest.$ac_ext
31496       ac_ext=c
31497 ac_cpp='$CPP $CPPFLAGS'
31498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31501
31502
31503 fi
31504
31505   fi
31506   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
31507 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
31508
31509   if test x$glibcxx_cv_func_isinff_use = x"yes"; then
31510
31511 for ac_func in isinff
31512 do
31513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31514 echo "$as_me:$LINENO: checking for $ac_func" >&5
31515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31516 if eval "test \"\${$as_ac_var+set}\" = set"; then
31517   echo $ECHO_N "(cached) $ECHO_C" >&6
31518 else
31519   if test x$gcc_no_link = xyes; then
31520   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31522    { (exit 1); exit 1; }; }
31523 fi
31524 cat >conftest.$ac_ext <<_ACEOF
31525 #line $LINENO "configure"
31526 /* confdefs.h.  */
31527 _ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h.  */
31531 /* System header to define __stub macros and hopefully few prototypes,
31532     which can conflict with char $ac_func (); below.
31533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31534     <limits.h> exists even on freestanding compilers.  */
31535 #ifdef __STDC__
31536 # include <limits.h>
31537 #else
31538 # include <assert.h>
31539 #endif
31540 /* Override any gcc2 internal prototype to avoid an error.  */
31541 #ifdef __cplusplus
31542 extern "C"
31543 {
31544 #endif
31545 /* We use char because int might match the return type of a gcc2
31546    builtin and then its argument prototype would still apply.  */
31547 char $ac_func ();
31548 /* The GNU C library defines this for functions which it implements
31549     to always fail with ENOSYS.  Some functions are actually named
31550     something starting with __ and the normal name is an alias.  */
31551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31552 choke me
31553 #else
31554 char (*f) () = $ac_func;
31555 #endif
31556 #ifdef __cplusplus
31557 }
31558 #endif
31559
31560 int
31561 main ()
31562 {
31563 return f != $ac_func;
31564   ;
31565   return 0;
31566 }
31567 _ACEOF
31568 rm -f conftest.$ac_objext conftest$ac_exeext
31569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31570   (eval $ac_link) 2>&5
31571   ac_status=$?
31572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573   (exit $ac_status); } &&
31574          { ac_try='test -s conftest$ac_exeext'
31575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31576   (eval $ac_try) 2>&5
31577   ac_status=$?
31578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579   (exit $ac_status); }; }; then
31580   eval "$as_ac_var=yes"
31581 else
31582   echo "$as_me: failed program was:" >&5
31583 sed 's/^/| /' conftest.$ac_ext >&5
31584
31585 eval "$as_ac_var=no"
31586 fi
31587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31588 fi
31589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31591 if test `eval echo '${'$as_ac_var'}'` = yes; then
31592   cat >>confdefs.h <<_ACEOF
31593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31594 _ACEOF
31595
31596 fi
31597 done
31598
31599   else
31600
31601   echo "$as_me:$LINENO: checking for _isinff declaration" >&5
31602 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
31603   if test x${glibcxx_cv_func__isinff_use+set} != xset; then
31604     if test "${glibcxx_cv_func__isinff_use+set}" = set; then
31605   echo $ECHO_N "(cached) $ECHO_C" >&6
31606 else
31607
31608
31609
31610       ac_ext=cc
31611 ac_cpp='$CXXCPP $CPPFLAGS'
31612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31615
31616       cat >conftest.$ac_ext <<_ACEOF
31617 #line $LINENO "configure"
31618 /* confdefs.h.  */
31619 _ACEOF
31620 cat confdefs.h >>conftest.$ac_ext
31621 cat >>conftest.$ac_ext <<_ACEOF
31622 /* end confdefs.h.  */
31623 #include <math.h>
31624                       #ifdef HAVE_IEEEFP_H
31625                       #include <ieeefp.h>
31626                       #endif
31627
31628 int
31629 main ()
31630 {
31631  _isinff(0);
31632   ;
31633   return 0;
31634 }
31635 _ACEOF
31636 rm -f conftest.$ac_objext
31637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31638   (eval $ac_compile) 2>&5
31639   ac_status=$?
31640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641   (exit $ac_status); } &&
31642          { ac_try='test -s conftest.$ac_objext'
31643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31644   (eval $ac_try) 2>&5
31645   ac_status=$?
31646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647   (exit $ac_status); }; }; then
31648   glibcxx_cv_func__isinff_use=yes
31649 else
31650   echo "$as_me: failed program was:" >&5
31651 sed 's/^/| /' conftest.$ac_ext >&5
31652
31653 glibcxx_cv_func__isinff_use=no
31654 fi
31655 rm -f conftest.$ac_objext conftest.$ac_ext
31656       ac_ext=c
31657 ac_cpp='$CPP $CPPFLAGS'
31658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31661
31662
31663 fi
31664
31665   fi
31666   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
31667 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
31668
31669     if test x$glibcxx_cv_func__isinff_use = x"yes"; then
31670
31671 for ac_func in _isinff
31672 do
31673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31674 echo "$as_me:$LINENO: checking for $ac_func" >&5
31675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31676 if eval "test \"\${$as_ac_var+set}\" = set"; then
31677   echo $ECHO_N "(cached) $ECHO_C" >&6
31678 else
31679   if test x$gcc_no_link = xyes; then
31680   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31682    { (exit 1); exit 1; }; }
31683 fi
31684 cat >conftest.$ac_ext <<_ACEOF
31685 #line $LINENO "configure"
31686 /* confdefs.h.  */
31687 _ACEOF
31688 cat confdefs.h >>conftest.$ac_ext
31689 cat >>conftest.$ac_ext <<_ACEOF
31690 /* end confdefs.h.  */
31691 /* System header to define __stub macros and hopefully few prototypes,
31692     which can conflict with char $ac_func (); below.
31693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31694     <limits.h> exists even on freestanding compilers.  */
31695 #ifdef __STDC__
31696 # include <limits.h>
31697 #else
31698 # include <assert.h>
31699 #endif
31700 /* Override any gcc2 internal prototype to avoid an error.  */
31701 #ifdef __cplusplus
31702 extern "C"
31703 {
31704 #endif
31705 /* We use char because int might match the return type of a gcc2
31706    builtin and then its argument prototype would still apply.  */
31707 char $ac_func ();
31708 /* The GNU C library defines this for functions which it implements
31709     to always fail with ENOSYS.  Some functions are actually named
31710     something starting with __ and the normal name is an alias.  */
31711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31712 choke me
31713 #else
31714 char (*f) () = $ac_func;
31715 #endif
31716 #ifdef __cplusplus
31717 }
31718 #endif
31719
31720 int
31721 main ()
31722 {
31723 return f != $ac_func;
31724   ;
31725   return 0;
31726 }
31727 _ACEOF
31728 rm -f conftest.$ac_objext conftest$ac_exeext
31729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31730   (eval $ac_link) 2>&5
31731   ac_status=$?
31732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733   (exit $ac_status); } &&
31734          { ac_try='test -s conftest$ac_exeext'
31735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736   (eval $ac_try) 2>&5
31737   ac_status=$?
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); }; }; then
31740   eval "$as_ac_var=yes"
31741 else
31742   echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31744
31745 eval "$as_ac_var=no"
31746 fi
31747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31748 fi
31749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31751 if test `eval echo '${'$as_ac_var'}'` = yes; then
31752   cat >>confdefs.h <<_ACEOF
31753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31754 _ACEOF
31755
31756 fi
31757 done
31758
31759     fi
31760   fi
31761
31762
31763
31764   echo "$as_me:$LINENO: checking for atan2f declaration" >&5
31765 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
31766   if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
31767     if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
31768   echo $ECHO_N "(cached) $ECHO_C" >&6
31769 else
31770
31771
31772
31773       ac_ext=cc
31774 ac_cpp='$CXXCPP $CPPFLAGS'
31775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31778
31779       cat >conftest.$ac_ext <<_ACEOF
31780 #line $LINENO "configure"
31781 /* confdefs.h.  */
31782 _ACEOF
31783 cat confdefs.h >>conftest.$ac_ext
31784 cat >>conftest.$ac_ext <<_ACEOF
31785 /* end confdefs.h.  */
31786 #include <math.h>
31787 int
31788 main ()
31789 {
31790  atan2f(0, 0);
31791   ;
31792   return 0;
31793 }
31794 _ACEOF
31795 rm -f conftest.$ac_objext
31796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31797   (eval $ac_compile) 2>&5
31798   ac_status=$?
31799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800   (exit $ac_status); } &&
31801          { ac_try='test -s conftest.$ac_objext'
31802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31803   (eval $ac_try) 2>&5
31804   ac_status=$?
31805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806   (exit $ac_status); }; }; then
31807   glibcxx_cv_func_atan2f_use=yes
31808 else
31809   echo "$as_me: failed program was:" >&5
31810 sed 's/^/| /' conftest.$ac_ext >&5
31811
31812 glibcxx_cv_func_atan2f_use=no
31813 fi
31814 rm -f conftest.$ac_objext conftest.$ac_ext
31815       ac_ext=c
31816 ac_cpp='$CPP $CPPFLAGS'
31817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31820
31821
31822 fi
31823
31824   fi
31825   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
31826 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
31827
31828   if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
31829
31830 for ac_func in atan2f
31831 do
31832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31833 echo "$as_me:$LINENO: checking for $ac_func" >&5
31834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31835 if eval "test \"\${$as_ac_var+set}\" = set"; then
31836   echo $ECHO_N "(cached) $ECHO_C" >&6
31837 else
31838   if test x$gcc_no_link = xyes; then
31839   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31841    { (exit 1); exit 1; }; }
31842 fi
31843 cat >conftest.$ac_ext <<_ACEOF
31844 #line $LINENO "configure"
31845 /* confdefs.h.  */
31846 _ACEOF
31847 cat confdefs.h >>conftest.$ac_ext
31848 cat >>conftest.$ac_ext <<_ACEOF
31849 /* end confdefs.h.  */
31850 /* System header to define __stub macros and hopefully few prototypes,
31851     which can conflict with char $ac_func (); below.
31852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31853     <limits.h> exists even on freestanding compilers.  */
31854 #ifdef __STDC__
31855 # include <limits.h>
31856 #else
31857 # include <assert.h>
31858 #endif
31859 /* Override any gcc2 internal prototype to avoid an error.  */
31860 #ifdef __cplusplus
31861 extern "C"
31862 {
31863 #endif
31864 /* We use char because int might match the return type of a gcc2
31865    builtin and then its argument prototype would still apply.  */
31866 char $ac_func ();
31867 /* The GNU C library defines this for functions which it implements
31868     to always fail with ENOSYS.  Some functions are actually named
31869     something starting with __ and the normal name is an alias.  */
31870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31871 choke me
31872 #else
31873 char (*f) () = $ac_func;
31874 #endif
31875 #ifdef __cplusplus
31876 }
31877 #endif
31878
31879 int
31880 main ()
31881 {
31882 return f != $ac_func;
31883   ;
31884   return 0;
31885 }
31886 _ACEOF
31887 rm -f conftest.$ac_objext conftest$ac_exeext
31888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31889   (eval $ac_link) 2>&5
31890   ac_status=$?
31891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892   (exit $ac_status); } &&
31893          { ac_try='test -s conftest$ac_exeext'
31894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31895   (eval $ac_try) 2>&5
31896   ac_status=$?
31897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898   (exit $ac_status); }; }; then
31899   eval "$as_ac_var=yes"
31900 else
31901   echo "$as_me: failed program was:" >&5
31902 sed 's/^/| /' conftest.$ac_ext >&5
31903
31904 eval "$as_ac_var=no"
31905 fi
31906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31907 fi
31908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31910 if test `eval echo '${'$as_ac_var'}'` = yes; then
31911   cat >>confdefs.h <<_ACEOF
31912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31913 _ACEOF
31914
31915 fi
31916 done
31917
31918   else
31919
31920   echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
31921 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
31922   if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
31923     if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
31924   echo $ECHO_N "(cached) $ECHO_C" >&6
31925 else
31926
31927
31928
31929       ac_ext=cc
31930 ac_cpp='$CXXCPP $CPPFLAGS'
31931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31934
31935       cat >conftest.$ac_ext <<_ACEOF
31936 #line $LINENO "configure"
31937 /* confdefs.h.  */
31938 _ACEOF
31939 cat confdefs.h >>conftest.$ac_ext
31940 cat >>conftest.$ac_ext <<_ACEOF
31941 /* end confdefs.h.  */
31942 #include <math.h>
31943 int
31944 main ()
31945 {
31946  _atan2f(0, 0);
31947   ;
31948   return 0;
31949 }
31950 _ACEOF
31951 rm -f conftest.$ac_objext
31952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31953   (eval $ac_compile) 2>&5
31954   ac_status=$?
31955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956   (exit $ac_status); } &&
31957          { ac_try='test -s conftest.$ac_objext'
31958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31959   (eval $ac_try) 2>&5
31960   ac_status=$?
31961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962   (exit $ac_status); }; }; then
31963   glibcxx_cv_func__atan2f_use=yes
31964 else
31965   echo "$as_me: failed program was:" >&5
31966 sed 's/^/| /' conftest.$ac_ext >&5
31967
31968 glibcxx_cv_func__atan2f_use=no
31969 fi
31970 rm -f conftest.$ac_objext conftest.$ac_ext
31971       ac_ext=c
31972 ac_cpp='$CPP $CPPFLAGS'
31973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31976
31977
31978 fi
31979
31980   fi
31981   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
31982 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
31983
31984     if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
31985
31986 for ac_func in _atan2f
31987 do
31988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31989 echo "$as_me:$LINENO: checking for $ac_func" >&5
31990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31991 if eval "test \"\${$as_ac_var+set}\" = set"; then
31992   echo $ECHO_N "(cached) $ECHO_C" >&6
31993 else
31994   if test x$gcc_no_link = xyes; then
31995   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31996 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31997    { (exit 1); exit 1; }; }
31998 fi
31999 cat >conftest.$ac_ext <<_ACEOF
32000 #line $LINENO "configure"
32001 /* confdefs.h.  */
32002 _ACEOF
32003 cat confdefs.h >>conftest.$ac_ext
32004 cat >>conftest.$ac_ext <<_ACEOF
32005 /* end confdefs.h.  */
32006 /* System header to define __stub macros and hopefully few prototypes,
32007     which can conflict with char $ac_func (); below.
32008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32009     <limits.h> exists even on freestanding compilers.  */
32010 #ifdef __STDC__
32011 # include <limits.h>
32012 #else
32013 # include <assert.h>
32014 #endif
32015 /* Override any gcc2 internal prototype to avoid an error.  */
32016 #ifdef __cplusplus
32017 extern "C"
32018 {
32019 #endif
32020 /* We use char because int might match the return type of a gcc2
32021    builtin and then its argument prototype would still apply.  */
32022 char $ac_func ();
32023 /* The GNU C library defines this for functions which it implements
32024     to always fail with ENOSYS.  Some functions are actually named
32025     something starting with __ and the normal name is an alias.  */
32026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32027 choke me
32028 #else
32029 char (*f) () = $ac_func;
32030 #endif
32031 #ifdef __cplusplus
32032 }
32033 #endif
32034
32035 int
32036 main ()
32037 {
32038 return f != $ac_func;
32039   ;
32040   return 0;
32041 }
32042 _ACEOF
32043 rm -f conftest.$ac_objext conftest$ac_exeext
32044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32045   (eval $ac_link) 2>&5
32046   ac_status=$?
32047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048   (exit $ac_status); } &&
32049          { ac_try='test -s conftest$ac_exeext'
32050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32051   (eval $ac_try) 2>&5
32052   ac_status=$?
32053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054   (exit $ac_status); }; }; then
32055   eval "$as_ac_var=yes"
32056 else
32057   echo "$as_me: failed program was:" >&5
32058 sed 's/^/| /' conftest.$ac_ext >&5
32059
32060 eval "$as_ac_var=no"
32061 fi
32062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32063 fi
32064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32066 if test `eval echo '${'$as_ac_var'}'` = yes; then
32067   cat >>confdefs.h <<_ACEOF
32068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32069 _ACEOF
32070
32071 fi
32072 done
32073
32074     fi
32075   fi
32076
32077
32078
32079   echo "$as_me:$LINENO: checking for fabsf declaration" >&5
32080 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
32081   if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
32082     if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
32083   echo $ECHO_N "(cached) $ECHO_C" >&6
32084 else
32085
32086
32087
32088       ac_ext=cc
32089 ac_cpp='$CXXCPP $CPPFLAGS'
32090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32093
32094       cat >conftest.$ac_ext <<_ACEOF
32095 #line $LINENO "configure"
32096 /* confdefs.h.  */
32097 _ACEOF
32098 cat confdefs.h >>conftest.$ac_ext
32099 cat >>conftest.$ac_ext <<_ACEOF
32100 /* end confdefs.h.  */
32101 #include <math.h>
32102                       #ifdef HAVE_IEEEFP_H
32103                       #include <ieeefp.h>
32104                       #endif
32105
32106 int
32107 main ()
32108 {
32109  fabsf(0);
32110   ;
32111   return 0;
32112 }
32113 _ACEOF
32114 rm -f conftest.$ac_objext
32115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32116   (eval $ac_compile) 2>&5
32117   ac_status=$?
32118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119   (exit $ac_status); } &&
32120          { ac_try='test -s conftest.$ac_objext'
32121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32122   (eval $ac_try) 2>&5
32123   ac_status=$?
32124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125   (exit $ac_status); }; }; then
32126   glibcxx_cv_func_fabsf_use=yes
32127 else
32128   echo "$as_me: failed program was:" >&5
32129 sed 's/^/| /' conftest.$ac_ext >&5
32130
32131 glibcxx_cv_func_fabsf_use=no
32132 fi
32133 rm -f conftest.$ac_objext conftest.$ac_ext
32134       ac_ext=c
32135 ac_cpp='$CPP $CPPFLAGS'
32136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32139
32140
32141 fi
32142
32143   fi
32144   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
32145 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
32146
32147   if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
32148
32149 for ac_func in fabsf
32150 do
32151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32152 echo "$as_me:$LINENO: checking for $ac_func" >&5
32153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32154 if eval "test \"\${$as_ac_var+set}\" = set"; then
32155   echo $ECHO_N "(cached) $ECHO_C" >&6
32156 else
32157   if test x$gcc_no_link = xyes; then
32158   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32159 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32160    { (exit 1); exit 1; }; }
32161 fi
32162 cat >conftest.$ac_ext <<_ACEOF
32163 #line $LINENO "configure"
32164 /* confdefs.h.  */
32165 _ACEOF
32166 cat confdefs.h >>conftest.$ac_ext
32167 cat >>conftest.$ac_ext <<_ACEOF
32168 /* end confdefs.h.  */
32169 /* System header to define __stub macros and hopefully few prototypes,
32170     which can conflict with char $ac_func (); below.
32171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32172     <limits.h> exists even on freestanding compilers.  */
32173 #ifdef __STDC__
32174 # include <limits.h>
32175 #else
32176 # include <assert.h>
32177 #endif
32178 /* Override any gcc2 internal prototype to avoid an error.  */
32179 #ifdef __cplusplus
32180 extern "C"
32181 {
32182 #endif
32183 /* We use char because int might match the return type of a gcc2
32184    builtin and then its argument prototype would still apply.  */
32185 char $ac_func ();
32186 /* The GNU C library defines this for functions which it implements
32187     to always fail with ENOSYS.  Some functions are actually named
32188     something starting with __ and the normal name is an alias.  */
32189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32190 choke me
32191 #else
32192 char (*f) () = $ac_func;
32193 #endif
32194 #ifdef __cplusplus
32195 }
32196 #endif
32197
32198 int
32199 main ()
32200 {
32201 return f != $ac_func;
32202   ;
32203   return 0;
32204 }
32205 _ACEOF
32206 rm -f conftest.$ac_objext conftest$ac_exeext
32207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32208   (eval $ac_link) 2>&5
32209   ac_status=$?
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); } &&
32212          { ac_try='test -s conftest$ac_exeext'
32213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32214   (eval $ac_try) 2>&5
32215   ac_status=$?
32216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217   (exit $ac_status); }; }; then
32218   eval "$as_ac_var=yes"
32219 else
32220   echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32222
32223 eval "$as_ac_var=no"
32224 fi
32225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32226 fi
32227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32229 if test `eval echo '${'$as_ac_var'}'` = yes; then
32230   cat >>confdefs.h <<_ACEOF
32231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32232 _ACEOF
32233
32234 fi
32235 done
32236
32237   else
32238
32239   echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
32240 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
32241   if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
32242     if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
32243   echo $ECHO_N "(cached) $ECHO_C" >&6
32244 else
32245
32246
32247
32248       ac_ext=cc
32249 ac_cpp='$CXXCPP $CPPFLAGS'
32250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32253
32254       cat >conftest.$ac_ext <<_ACEOF
32255 #line $LINENO "configure"
32256 /* confdefs.h.  */
32257 _ACEOF
32258 cat confdefs.h >>conftest.$ac_ext
32259 cat >>conftest.$ac_ext <<_ACEOF
32260 /* end confdefs.h.  */
32261 #include <math.h>
32262                       #ifdef HAVE_IEEEFP_H
32263                       #include <ieeefp.h>
32264                       #endif
32265
32266 int
32267 main ()
32268 {
32269  _fabsf(0);
32270   ;
32271   return 0;
32272 }
32273 _ACEOF
32274 rm -f conftest.$ac_objext
32275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32276   (eval $ac_compile) 2>&5
32277   ac_status=$?
32278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279   (exit $ac_status); } &&
32280          { ac_try='test -s conftest.$ac_objext'
32281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282   (eval $ac_try) 2>&5
32283   ac_status=$?
32284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285   (exit $ac_status); }; }; then
32286   glibcxx_cv_func__fabsf_use=yes
32287 else
32288   echo "$as_me: failed program was:" >&5
32289 sed 's/^/| /' conftest.$ac_ext >&5
32290
32291 glibcxx_cv_func__fabsf_use=no
32292 fi
32293 rm -f conftest.$ac_objext conftest.$ac_ext
32294       ac_ext=c
32295 ac_cpp='$CPP $CPPFLAGS'
32296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32299
32300
32301 fi
32302
32303   fi
32304   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
32305 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
32306
32307     if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
32308
32309 for ac_func in _fabsf
32310 do
32311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32312 echo "$as_me:$LINENO: checking for $ac_func" >&5
32313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32314 if eval "test \"\${$as_ac_var+set}\" = set"; then
32315   echo $ECHO_N "(cached) $ECHO_C" >&6
32316 else
32317   if test x$gcc_no_link = xyes; then
32318   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32320    { (exit 1); exit 1; }; }
32321 fi
32322 cat >conftest.$ac_ext <<_ACEOF
32323 #line $LINENO "configure"
32324 /* confdefs.h.  */
32325 _ACEOF
32326 cat confdefs.h >>conftest.$ac_ext
32327 cat >>conftest.$ac_ext <<_ACEOF
32328 /* end confdefs.h.  */
32329 /* System header to define __stub macros and hopefully few prototypes,
32330     which can conflict with char $ac_func (); below.
32331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32332     <limits.h> exists even on freestanding compilers.  */
32333 #ifdef __STDC__
32334 # include <limits.h>
32335 #else
32336 # include <assert.h>
32337 #endif
32338 /* Override any gcc2 internal prototype to avoid an error.  */
32339 #ifdef __cplusplus
32340 extern "C"
32341 {
32342 #endif
32343 /* We use char because int might match the return type of a gcc2
32344    builtin and then its argument prototype would still apply.  */
32345 char $ac_func ();
32346 /* The GNU C library defines this for functions which it implements
32347     to always fail with ENOSYS.  Some functions are actually named
32348     something starting with __ and the normal name is an alias.  */
32349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32350 choke me
32351 #else
32352 char (*f) () = $ac_func;
32353 #endif
32354 #ifdef __cplusplus
32355 }
32356 #endif
32357
32358 int
32359 main ()
32360 {
32361 return f != $ac_func;
32362   ;
32363   return 0;
32364 }
32365 _ACEOF
32366 rm -f conftest.$ac_objext conftest$ac_exeext
32367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32368   (eval $ac_link) 2>&5
32369   ac_status=$?
32370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371   (exit $ac_status); } &&
32372          { ac_try='test -s conftest$ac_exeext'
32373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32374   (eval $ac_try) 2>&5
32375   ac_status=$?
32376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377   (exit $ac_status); }; }; then
32378   eval "$as_ac_var=yes"
32379 else
32380   echo "$as_me: failed program was:" >&5
32381 sed 's/^/| /' conftest.$ac_ext >&5
32382
32383 eval "$as_ac_var=no"
32384 fi
32385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32386 fi
32387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32389 if test `eval echo '${'$as_ac_var'}'` = yes; then
32390   cat >>confdefs.h <<_ACEOF
32391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32392 _ACEOF
32393
32394 fi
32395 done
32396
32397     fi
32398   fi
32399
32400
32401
32402   echo "$as_me:$LINENO: checking for fmodf declaration" >&5
32403 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
32404   if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
32405     if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
32406   echo $ECHO_N "(cached) $ECHO_C" >&6
32407 else
32408
32409
32410
32411       ac_ext=cc
32412 ac_cpp='$CXXCPP $CPPFLAGS'
32413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32416
32417       cat >conftest.$ac_ext <<_ACEOF
32418 #line $LINENO "configure"
32419 /* confdefs.h.  */
32420 _ACEOF
32421 cat confdefs.h >>conftest.$ac_ext
32422 cat >>conftest.$ac_ext <<_ACEOF
32423 /* end confdefs.h.  */
32424 #include <math.h>
32425 int
32426 main ()
32427 {
32428  fmodf(0, 0);
32429   ;
32430   return 0;
32431 }
32432 _ACEOF
32433 rm -f conftest.$ac_objext
32434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32435   (eval $ac_compile) 2>&5
32436   ac_status=$?
32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438   (exit $ac_status); } &&
32439          { ac_try='test -s conftest.$ac_objext'
32440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32441   (eval $ac_try) 2>&5
32442   ac_status=$?
32443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444   (exit $ac_status); }; }; then
32445   glibcxx_cv_func_fmodf_use=yes
32446 else
32447   echo "$as_me: failed program was:" >&5
32448 sed 's/^/| /' conftest.$ac_ext >&5
32449
32450 glibcxx_cv_func_fmodf_use=no
32451 fi
32452 rm -f conftest.$ac_objext conftest.$ac_ext
32453       ac_ext=c
32454 ac_cpp='$CPP $CPPFLAGS'
32455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32458
32459
32460 fi
32461
32462   fi
32463   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
32464 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
32465
32466   if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
32467
32468 for ac_func in fmodf
32469 do
32470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32471 echo "$as_me:$LINENO: checking for $ac_func" >&5
32472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32473 if eval "test \"\${$as_ac_var+set}\" = set"; then
32474   echo $ECHO_N "(cached) $ECHO_C" >&6
32475 else
32476   if test x$gcc_no_link = xyes; then
32477   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32479    { (exit 1); exit 1; }; }
32480 fi
32481 cat >conftest.$ac_ext <<_ACEOF
32482 #line $LINENO "configure"
32483 /* confdefs.h.  */
32484 _ACEOF
32485 cat confdefs.h >>conftest.$ac_ext
32486 cat >>conftest.$ac_ext <<_ACEOF
32487 /* end confdefs.h.  */
32488 /* System header to define __stub macros and hopefully few prototypes,
32489     which can conflict with char $ac_func (); below.
32490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32491     <limits.h> exists even on freestanding compilers.  */
32492 #ifdef __STDC__
32493 # include <limits.h>
32494 #else
32495 # include <assert.h>
32496 #endif
32497 /* Override any gcc2 internal prototype to avoid an error.  */
32498 #ifdef __cplusplus
32499 extern "C"
32500 {
32501 #endif
32502 /* We use char because int might match the return type of a gcc2
32503    builtin and then its argument prototype would still apply.  */
32504 char $ac_func ();
32505 /* The GNU C library defines this for functions which it implements
32506     to always fail with ENOSYS.  Some functions are actually named
32507     something starting with __ and the normal name is an alias.  */
32508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32509 choke me
32510 #else
32511 char (*f) () = $ac_func;
32512 #endif
32513 #ifdef __cplusplus
32514 }
32515 #endif
32516
32517 int
32518 main ()
32519 {
32520 return f != $ac_func;
32521   ;
32522   return 0;
32523 }
32524 _ACEOF
32525 rm -f conftest.$ac_objext conftest$ac_exeext
32526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32527   (eval $ac_link) 2>&5
32528   ac_status=$?
32529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530   (exit $ac_status); } &&
32531          { ac_try='test -s conftest$ac_exeext'
32532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32533   (eval $ac_try) 2>&5
32534   ac_status=$?
32535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536   (exit $ac_status); }; }; then
32537   eval "$as_ac_var=yes"
32538 else
32539   echo "$as_me: failed program was:" >&5
32540 sed 's/^/| /' conftest.$ac_ext >&5
32541
32542 eval "$as_ac_var=no"
32543 fi
32544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32545 fi
32546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32548 if test `eval echo '${'$as_ac_var'}'` = yes; then
32549   cat >>confdefs.h <<_ACEOF
32550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32551 _ACEOF
32552
32553 fi
32554 done
32555
32556   else
32557
32558   echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
32559 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
32560   if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
32561     if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
32562   echo $ECHO_N "(cached) $ECHO_C" >&6
32563 else
32564
32565
32566
32567       ac_ext=cc
32568 ac_cpp='$CXXCPP $CPPFLAGS'
32569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32572
32573       cat >conftest.$ac_ext <<_ACEOF
32574 #line $LINENO "configure"
32575 /* confdefs.h.  */
32576 _ACEOF
32577 cat confdefs.h >>conftest.$ac_ext
32578 cat >>conftest.$ac_ext <<_ACEOF
32579 /* end confdefs.h.  */
32580 #include <math.h>
32581 int
32582 main ()
32583 {
32584  _fmodf(0, 0);
32585   ;
32586   return 0;
32587 }
32588 _ACEOF
32589 rm -f conftest.$ac_objext
32590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32591   (eval $ac_compile) 2>&5
32592   ac_status=$?
32593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594   (exit $ac_status); } &&
32595          { ac_try='test -s conftest.$ac_objext'
32596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32597   (eval $ac_try) 2>&5
32598   ac_status=$?
32599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600   (exit $ac_status); }; }; then
32601   glibcxx_cv_func__fmodf_use=yes
32602 else
32603   echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32605
32606 glibcxx_cv_func__fmodf_use=no
32607 fi
32608 rm -f conftest.$ac_objext conftest.$ac_ext
32609       ac_ext=c
32610 ac_cpp='$CPP $CPPFLAGS'
32611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32614
32615
32616 fi
32617
32618   fi
32619   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
32620 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
32621
32622     if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
32623
32624 for ac_func in _fmodf
32625 do
32626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32627 echo "$as_me:$LINENO: checking for $ac_func" >&5
32628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32629 if eval "test \"\${$as_ac_var+set}\" = set"; then
32630   echo $ECHO_N "(cached) $ECHO_C" >&6
32631 else
32632   if test x$gcc_no_link = xyes; then
32633   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32635    { (exit 1); exit 1; }; }
32636 fi
32637 cat >conftest.$ac_ext <<_ACEOF
32638 #line $LINENO "configure"
32639 /* confdefs.h.  */
32640 _ACEOF
32641 cat confdefs.h >>conftest.$ac_ext
32642 cat >>conftest.$ac_ext <<_ACEOF
32643 /* end confdefs.h.  */
32644 /* System header to define __stub macros and hopefully few prototypes,
32645     which can conflict with char $ac_func (); below.
32646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32647     <limits.h> exists even on freestanding compilers.  */
32648 #ifdef __STDC__
32649 # include <limits.h>
32650 #else
32651 # include <assert.h>
32652 #endif
32653 /* Override any gcc2 internal prototype to avoid an error.  */
32654 #ifdef __cplusplus
32655 extern "C"
32656 {
32657 #endif
32658 /* We use char because int might match the return type of a gcc2
32659    builtin and then its argument prototype would still apply.  */
32660 char $ac_func ();
32661 /* The GNU C library defines this for functions which it implements
32662     to always fail with ENOSYS.  Some functions are actually named
32663     something starting with __ and the normal name is an alias.  */
32664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32665 choke me
32666 #else
32667 char (*f) () = $ac_func;
32668 #endif
32669 #ifdef __cplusplus
32670 }
32671 #endif
32672
32673 int
32674 main ()
32675 {
32676 return f != $ac_func;
32677   ;
32678   return 0;
32679 }
32680 _ACEOF
32681 rm -f conftest.$ac_objext conftest$ac_exeext
32682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32683   (eval $ac_link) 2>&5
32684   ac_status=$?
32685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686   (exit $ac_status); } &&
32687          { ac_try='test -s conftest$ac_exeext'
32688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32689   (eval $ac_try) 2>&5
32690   ac_status=$?
32691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692   (exit $ac_status); }; }; then
32693   eval "$as_ac_var=yes"
32694 else
32695   echo "$as_me: failed program was:" >&5
32696 sed 's/^/| /' conftest.$ac_ext >&5
32697
32698 eval "$as_ac_var=no"
32699 fi
32700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32701 fi
32702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32704 if test `eval echo '${'$as_ac_var'}'` = yes; then
32705   cat >>confdefs.h <<_ACEOF
32706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32707 _ACEOF
32708
32709 fi
32710 done
32711
32712     fi
32713   fi
32714
32715
32716
32717   echo "$as_me:$LINENO: checking for frexpf declaration" >&5
32718 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
32719   if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
32720     if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
32721   echo $ECHO_N "(cached) $ECHO_C" >&6
32722 else
32723
32724
32725
32726       ac_ext=cc
32727 ac_cpp='$CXXCPP $CPPFLAGS'
32728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32731
32732       cat >conftest.$ac_ext <<_ACEOF
32733 #line $LINENO "configure"
32734 /* confdefs.h.  */
32735 _ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h.  */
32739 #include <math.h>
32740 int
32741 main ()
32742 {
32743  frexpf(0, 0);
32744   ;
32745   return 0;
32746 }
32747 _ACEOF
32748 rm -f conftest.$ac_objext
32749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32750   (eval $ac_compile) 2>&5
32751   ac_status=$?
32752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753   (exit $ac_status); } &&
32754          { ac_try='test -s conftest.$ac_objext'
32755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32756   (eval $ac_try) 2>&5
32757   ac_status=$?
32758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759   (exit $ac_status); }; }; then
32760   glibcxx_cv_func_frexpf_use=yes
32761 else
32762   echo "$as_me: failed program was:" >&5
32763 sed 's/^/| /' conftest.$ac_ext >&5
32764
32765 glibcxx_cv_func_frexpf_use=no
32766 fi
32767 rm -f conftest.$ac_objext conftest.$ac_ext
32768       ac_ext=c
32769 ac_cpp='$CPP $CPPFLAGS'
32770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32773
32774
32775 fi
32776
32777   fi
32778   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
32779 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
32780
32781   if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
32782
32783 for ac_func in frexpf
32784 do
32785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32786 echo "$as_me:$LINENO: checking for $ac_func" >&5
32787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32788 if eval "test \"\${$as_ac_var+set}\" = set"; then
32789   echo $ECHO_N "(cached) $ECHO_C" >&6
32790 else
32791   if test x$gcc_no_link = xyes; then
32792   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32794    { (exit 1); exit 1; }; }
32795 fi
32796 cat >conftest.$ac_ext <<_ACEOF
32797 #line $LINENO "configure"
32798 /* confdefs.h.  */
32799 _ACEOF
32800 cat confdefs.h >>conftest.$ac_ext
32801 cat >>conftest.$ac_ext <<_ACEOF
32802 /* end confdefs.h.  */
32803 /* System header to define __stub macros and hopefully few prototypes,
32804     which can conflict with char $ac_func (); below.
32805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32806     <limits.h> exists even on freestanding compilers.  */
32807 #ifdef __STDC__
32808 # include <limits.h>
32809 #else
32810 # include <assert.h>
32811 #endif
32812 /* Override any gcc2 internal prototype to avoid an error.  */
32813 #ifdef __cplusplus
32814 extern "C"
32815 {
32816 #endif
32817 /* We use char because int might match the return type of a gcc2
32818    builtin and then its argument prototype would still apply.  */
32819 char $ac_func ();
32820 /* The GNU C library defines this for functions which it implements
32821     to always fail with ENOSYS.  Some functions are actually named
32822     something starting with __ and the normal name is an alias.  */
32823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32824 choke me
32825 #else
32826 char (*f) () = $ac_func;
32827 #endif
32828 #ifdef __cplusplus
32829 }
32830 #endif
32831
32832 int
32833 main ()
32834 {
32835 return f != $ac_func;
32836   ;
32837   return 0;
32838 }
32839 _ACEOF
32840 rm -f conftest.$ac_objext conftest$ac_exeext
32841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32842   (eval $ac_link) 2>&5
32843   ac_status=$?
32844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845   (exit $ac_status); } &&
32846          { ac_try='test -s conftest$ac_exeext'
32847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32848   (eval $ac_try) 2>&5
32849   ac_status=$?
32850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851   (exit $ac_status); }; }; then
32852   eval "$as_ac_var=yes"
32853 else
32854   echo "$as_me: failed program was:" >&5
32855 sed 's/^/| /' conftest.$ac_ext >&5
32856
32857 eval "$as_ac_var=no"
32858 fi
32859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32860 fi
32861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32863 if test `eval echo '${'$as_ac_var'}'` = yes; then
32864   cat >>confdefs.h <<_ACEOF
32865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32866 _ACEOF
32867
32868 fi
32869 done
32870
32871   else
32872
32873   echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
32874 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
32875   if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
32876     if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
32877   echo $ECHO_N "(cached) $ECHO_C" >&6
32878 else
32879
32880
32881
32882       ac_ext=cc
32883 ac_cpp='$CXXCPP $CPPFLAGS'
32884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32887
32888       cat >conftest.$ac_ext <<_ACEOF
32889 #line $LINENO "configure"
32890 /* confdefs.h.  */
32891 _ACEOF
32892 cat confdefs.h >>conftest.$ac_ext
32893 cat >>conftest.$ac_ext <<_ACEOF
32894 /* end confdefs.h.  */
32895 #include <math.h>
32896 int
32897 main ()
32898 {
32899  _frexpf(0, 0);
32900   ;
32901   return 0;
32902 }
32903 _ACEOF
32904 rm -f conftest.$ac_objext
32905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32906   (eval $ac_compile) 2>&5
32907   ac_status=$?
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); } &&
32910          { ac_try='test -s conftest.$ac_objext'
32911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912   (eval $ac_try) 2>&5
32913   ac_status=$?
32914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915   (exit $ac_status); }; }; then
32916   glibcxx_cv_func__frexpf_use=yes
32917 else
32918   echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32920
32921 glibcxx_cv_func__frexpf_use=no
32922 fi
32923 rm -f conftest.$ac_objext conftest.$ac_ext
32924       ac_ext=c
32925 ac_cpp='$CPP $CPPFLAGS'
32926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32929
32930
32931 fi
32932
32933   fi
32934   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
32935 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
32936
32937     if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
32938
32939 for ac_func in _frexpf
32940 do
32941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32942 echo "$as_me:$LINENO: checking for $ac_func" >&5
32943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32944 if eval "test \"\${$as_ac_var+set}\" = set"; then
32945   echo $ECHO_N "(cached) $ECHO_C" >&6
32946 else
32947   if test x$gcc_no_link = xyes; then
32948   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32950    { (exit 1); exit 1; }; }
32951 fi
32952 cat >conftest.$ac_ext <<_ACEOF
32953 #line $LINENO "configure"
32954 /* confdefs.h.  */
32955 _ACEOF
32956 cat confdefs.h >>conftest.$ac_ext
32957 cat >>conftest.$ac_ext <<_ACEOF
32958 /* end confdefs.h.  */
32959 /* System header to define __stub macros and hopefully few prototypes,
32960     which can conflict with char $ac_func (); below.
32961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32962     <limits.h> exists even on freestanding compilers.  */
32963 #ifdef __STDC__
32964 # include <limits.h>
32965 #else
32966 # include <assert.h>
32967 #endif
32968 /* Override any gcc2 internal prototype to avoid an error.  */
32969 #ifdef __cplusplus
32970 extern "C"
32971 {
32972 #endif
32973 /* We use char because int might match the return type of a gcc2
32974    builtin and then its argument prototype would still apply.  */
32975 char $ac_func ();
32976 /* The GNU C library defines this for functions which it implements
32977     to always fail with ENOSYS.  Some functions are actually named
32978     something starting with __ and the normal name is an alias.  */
32979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32980 choke me
32981 #else
32982 char (*f) () = $ac_func;
32983 #endif
32984 #ifdef __cplusplus
32985 }
32986 #endif
32987
32988 int
32989 main ()
32990 {
32991 return f != $ac_func;
32992   ;
32993   return 0;
32994 }
32995 _ACEOF
32996 rm -f conftest.$ac_objext conftest$ac_exeext
32997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32998   (eval $ac_link) 2>&5
32999   ac_status=$?
33000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001   (exit $ac_status); } &&
33002          { ac_try='test -s conftest$ac_exeext'
33003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33004   (eval $ac_try) 2>&5
33005   ac_status=$?
33006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007   (exit $ac_status); }; }; then
33008   eval "$as_ac_var=yes"
33009 else
33010   echo "$as_me: failed program was:" >&5
33011 sed 's/^/| /' conftest.$ac_ext >&5
33012
33013 eval "$as_ac_var=no"
33014 fi
33015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33016 fi
33017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33019 if test `eval echo '${'$as_ac_var'}'` = yes; then
33020   cat >>confdefs.h <<_ACEOF
33021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33022 _ACEOF
33023
33024 fi
33025 done
33026
33027     fi
33028   fi
33029
33030
33031
33032   echo "$as_me:$LINENO: checking for hypotf declaration" >&5
33033 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
33034   if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
33035     if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
33036   echo $ECHO_N "(cached) $ECHO_C" >&6
33037 else
33038
33039
33040
33041       ac_ext=cc
33042 ac_cpp='$CXXCPP $CPPFLAGS'
33043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33046
33047       cat >conftest.$ac_ext <<_ACEOF
33048 #line $LINENO "configure"
33049 /* confdefs.h.  */
33050 _ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h.  */
33054 #include <math.h>
33055 int
33056 main ()
33057 {
33058  hypotf(0, 0);
33059   ;
33060   return 0;
33061 }
33062 _ACEOF
33063 rm -f conftest.$ac_objext
33064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33065   (eval $ac_compile) 2>&5
33066   ac_status=$?
33067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068   (exit $ac_status); } &&
33069          { ac_try='test -s conftest.$ac_objext'
33070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33071   (eval $ac_try) 2>&5
33072   ac_status=$?
33073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074   (exit $ac_status); }; }; then
33075   glibcxx_cv_func_hypotf_use=yes
33076 else
33077   echo "$as_me: failed program was:" >&5
33078 sed 's/^/| /' conftest.$ac_ext >&5
33079
33080 glibcxx_cv_func_hypotf_use=no
33081 fi
33082 rm -f conftest.$ac_objext conftest.$ac_ext
33083       ac_ext=c
33084 ac_cpp='$CPP $CPPFLAGS'
33085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33088
33089
33090 fi
33091
33092   fi
33093   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
33094 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
33095
33096   if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
33097
33098 for ac_func in hypotf
33099 do
33100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33101 echo "$as_me:$LINENO: checking for $ac_func" >&5
33102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33103 if eval "test \"\${$as_ac_var+set}\" = set"; then
33104   echo $ECHO_N "(cached) $ECHO_C" >&6
33105 else
33106   if test x$gcc_no_link = xyes; then
33107   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33108 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33109    { (exit 1); exit 1; }; }
33110 fi
33111 cat >conftest.$ac_ext <<_ACEOF
33112 #line $LINENO "configure"
33113 /* confdefs.h.  */
33114 _ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h.  */
33118 /* System header to define __stub macros and hopefully few prototypes,
33119     which can conflict with char $ac_func (); below.
33120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33121     <limits.h> exists even on freestanding compilers.  */
33122 #ifdef __STDC__
33123 # include <limits.h>
33124 #else
33125 # include <assert.h>
33126 #endif
33127 /* Override any gcc2 internal prototype to avoid an error.  */
33128 #ifdef __cplusplus
33129 extern "C"
33130 {
33131 #endif
33132 /* We use char because int might match the return type of a gcc2
33133    builtin and then its argument prototype would still apply.  */
33134 char $ac_func ();
33135 /* The GNU C library defines this for functions which it implements
33136     to always fail with ENOSYS.  Some functions are actually named
33137     something starting with __ and the normal name is an alias.  */
33138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33139 choke me
33140 #else
33141 char (*f) () = $ac_func;
33142 #endif
33143 #ifdef __cplusplus
33144 }
33145 #endif
33146
33147 int
33148 main ()
33149 {
33150 return f != $ac_func;
33151   ;
33152   return 0;
33153 }
33154 _ACEOF
33155 rm -f conftest.$ac_objext conftest$ac_exeext
33156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33157   (eval $ac_link) 2>&5
33158   ac_status=$?
33159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160   (exit $ac_status); } &&
33161          { ac_try='test -s conftest$ac_exeext'
33162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33163   (eval $ac_try) 2>&5
33164   ac_status=$?
33165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166   (exit $ac_status); }; }; then
33167   eval "$as_ac_var=yes"
33168 else
33169   echo "$as_me: failed program was:" >&5
33170 sed 's/^/| /' conftest.$ac_ext >&5
33171
33172 eval "$as_ac_var=no"
33173 fi
33174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33175 fi
33176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33178 if test `eval echo '${'$as_ac_var'}'` = yes; then
33179   cat >>confdefs.h <<_ACEOF
33180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33181 _ACEOF
33182
33183 fi
33184 done
33185
33186   else
33187
33188   echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
33189 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
33190   if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
33191     if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
33192   echo $ECHO_N "(cached) $ECHO_C" >&6
33193 else
33194
33195
33196
33197       ac_ext=cc
33198 ac_cpp='$CXXCPP $CPPFLAGS'
33199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33202
33203       cat >conftest.$ac_ext <<_ACEOF
33204 #line $LINENO "configure"
33205 /* confdefs.h.  */
33206 _ACEOF
33207 cat confdefs.h >>conftest.$ac_ext
33208 cat >>conftest.$ac_ext <<_ACEOF
33209 /* end confdefs.h.  */
33210 #include <math.h>
33211 int
33212 main ()
33213 {
33214  _hypotf(0, 0);
33215   ;
33216   return 0;
33217 }
33218 _ACEOF
33219 rm -f conftest.$ac_objext
33220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33221   (eval $ac_compile) 2>&5
33222   ac_status=$?
33223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224   (exit $ac_status); } &&
33225          { ac_try='test -s conftest.$ac_objext'
33226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33227   (eval $ac_try) 2>&5
33228   ac_status=$?
33229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230   (exit $ac_status); }; }; then
33231   glibcxx_cv_func__hypotf_use=yes
33232 else
33233   echo "$as_me: failed program was:" >&5
33234 sed 's/^/| /' conftest.$ac_ext >&5
33235
33236 glibcxx_cv_func__hypotf_use=no
33237 fi
33238 rm -f conftest.$ac_objext conftest.$ac_ext
33239       ac_ext=c
33240 ac_cpp='$CPP $CPPFLAGS'
33241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33244
33245
33246 fi
33247
33248   fi
33249   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
33250 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
33251
33252     if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
33253
33254 for ac_func in _hypotf
33255 do
33256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33257 echo "$as_me:$LINENO: checking for $ac_func" >&5
33258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33259 if eval "test \"\${$as_ac_var+set}\" = set"; then
33260   echo $ECHO_N "(cached) $ECHO_C" >&6
33261 else
33262   if test x$gcc_no_link = xyes; then
33263   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33264 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33265    { (exit 1); exit 1; }; }
33266 fi
33267 cat >conftest.$ac_ext <<_ACEOF
33268 #line $LINENO "configure"
33269 /* confdefs.h.  */
33270 _ACEOF
33271 cat confdefs.h >>conftest.$ac_ext
33272 cat >>conftest.$ac_ext <<_ACEOF
33273 /* end confdefs.h.  */
33274 /* System header to define __stub macros and hopefully few prototypes,
33275     which can conflict with char $ac_func (); below.
33276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33277     <limits.h> exists even on freestanding compilers.  */
33278 #ifdef __STDC__
33279 # include <limits.h>
33280 #else
33281 # include <assert.h>
33282 #endif
33283 /* Override any gcc2 internal prototype to avoid an error.  */
33284 #ifdef __cplusplus
33285 extern "C"
33286 {
33287 #endif
33288 /* We use char because int might match the return type of a gcc2
33289    builtin and then its argument prototype would still apply.  */
33290 char $ac_func ();
33291 /* The GNU C library defines this for functions which it implements
33292     to always fail with ENOSYS.  Some functions are actually named
33293     something starting with __ and the normal name is an alias.  */
33294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33295 choke me
33296 #else
33297 char (*f) () = $ac_func;
33298 #endif
33299 #ifdef __cplusplus
33300 }
33301 #endif
33302
33303 int
33304 main ()
33305 {
33306 return f != $ac_func;
33307   ;
33308   return 0;
33309 }
33310 _ACEOF
33311 rm -f conftest.$ac_objext conftest$ac_exeext
33312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33313   (eval $ac_link) 2>&5
33314   ac_status=$?
33315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316   (exit $ac_status); } &&
33317          { ac_try='test -s conftest$ac_exeext'
33318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33319   (eval $ac_try) 2>&5
33320   ac_status=$?
33321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322   (exit $ac_status); }; }; then
33323   eval "$as_ac_var=yes"
33324 else
33325   echo "$as_me: failed program was:" >&5
33326 sed 's/^/| /' conftest.$ac_ext >&5
33327
33328 eval "$as_ac_var=no"
33329 fi
33330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33331 fi
33332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33334 if test `eval echo '${'$as_ac_var'}'` = yes; then
33335   cat >>confdefs.h <<_ACEOF
33336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33337 _ACEOF
33338
33339 fi
33340 done
33341
33342     fi
33343   fi
33344
33345
33346
33347   echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
33348 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
33349   if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
33350     if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
33351   echo $ECHO_N "(cached) $ECHO_C" >&6
33352 else
33353
33354
33355
33356       ac_ext=cc
33357 ac_cpp='$CXXCPP $CPPFLAGS'
33358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33361
33362       cat >conftest.$ac_ext <<_ACEOF
33363 #line $LINENO "configure"
33364 /* confdefs.h.  */
33365 _ACEOF
33366 cat confdefs.h >>conftest.$ac_ext
33367 cat >>conftest.$ac_ext <<_ACEOF
33368 /* end confdefs.h.  */
33369 #include <math.h>
33370 int
33371 main ()
33372 {
33373  ldexpf(0, 0);
33374   ;
33375   return 0;
33376 }
33377 _ACEOF
33378 rm -f conftest.$ac_objext
33379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33380   (eval $ac_compile) 2>&5
33381   ac_status=$?
33382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383   (exit $ac_status); } &&
33384          { ac_try='test -s conftest.$ac_objext'
33385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33386   (eval $ac_try) 2>&5
33387   ac_status=$?
33388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389   (exit $ac_status); }; }; then
33390   glibcxx_cv_func_ldexpf_use=yes
33391 else
33392   echo "$as_me: failed program was:" >&5
33393 sed 's/^/| /' conftest.$ac_ext >&5
33394
33395 glibcxx_cv_func_ldexpf_use=no
33396 fi
33397 rm -f conftest.$ac_objext conftest.$ac_ext
33398       ac_ext=c
33399 ac_cpp='$CPP $CPPFLAGS'
33400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33403
33404
33405 fi
33406
33407   fi
33408   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
33409 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
33410
33411   if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
33412
33413 for ac_func in ldexpf
33414 do
33415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33416 echo "$as_me:$LINENO: checking for $ac_func" >&5
33417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33418 if eval "test \"\${$as_ac_var+set}\" = set"; then
33419   echo $ECHO_N "(cached) $ECHO_C" >&6
33420 else
33421   if test x$gcc_no_link = xyes; then
33422   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33423 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33424    { (exit 1); exit 1; }; }
33425 fi
33426 cat >conftest.$ac_ext <<_ACEOF
33427 #line $LINENO "configure"
33428 /* confdefs.h.  */
33429 _ACEOF
33430 cat confdefs.h >>conftest.$ac_ext
33431 cat >>conftest.$ac_ext <<_ACEOF
33432 /* end confdefs.h.  */
33433 /* System header to define __stub macros and hopefully few prototypes,
33434     which can conflict with char $ac_func (); below.
33435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33436     <limits.h> exists even on freestanding compilers.  */
33437 #ifdef __STDC__
33438 # include <limits.h>
33439 #else
33440 # include <assert.h>
33441 #endif
33442 /* Override any gcc2 internal prototype to avoid an error.  */
33443 #ifdef __cplusplus
33444 extern "C"
33445 {
33446 #endif
33447 /* We use char because int might match the return type of a gcc2
33448    builtin and then its argument prototype would still apply.  */
33449 char $ac_func ();
33450 /* The GNU C library defines this for functions which it implements
33451     to always fail with ENOSYS.  Some functions are actually named
33452     something starting with __ and the normal name is an alias.  */
33453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33454 choke me
33455 #else
33456 char (*f) () = $ac_func;
33457 #endif
33458 #ifdef __cplusplus
33459 }
33460 #endif
33461
33462 int
33463 main ()
33464 {
33465 return f != $ac_func;
33466   ;
33467   return 0;
33468 }
33469 _ACEOF
33470 rm -f conftest.$ac_objext conftest$ac_exeext
33471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33472   (eval $ac_link) 2>&5
33473   ac_status=$?
33474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475   (exit $ac_status); } &&
33476          { ac_try='test -s conftest$ac_exeext'
33477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33478   (eval $ac_try) 2>&5
33479   ac_status=$?
33480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481   (exit $ac_status); }; }; then
33482   eval "$as_ac_var=yes"
33483 else
33484   echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33486
33487 eval "$as_ac_var=no"
33488 fi
33489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33490 fi
33491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33493 if test `eval echo '${'$as_ac_var'}'` = yes; then
33494   cat >>confdefs.h <<_ACEOF
33495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33496 _ACEOF
33497
33498 fi
33499 done
33500
33501   else
33502
33503   echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
33504 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
33505   if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
33506     if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
33507   echo $ECHO_N "(cached) $ECHO_C" >&6
33508 else
33509
33510
33511
33512       ac_ext=cc
33513 ac_cpp='$CXXCPP $CPPFLAGS'
33514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33517
33518       cat >conftest.$ac_ext <<_ACEOF
33519 #line $LINENO "configure"
33520 /* confdefs.h.  */
33521 _ACEOF
33522 cat confdefs.h >>conftest.$ac_ext
33523 cat >>conftest.$ac_ext <<_ACEOF
33524 /* end confdefs.h.  */
33525 #include <math.h>
33526 int
33527 main ()
33528 {
33529  _ldexpf(0, 0);
33530   ;
33531   return 0;
33532 }
33533 _ACEOF
33534 rm -f conftest.$ac_objext
33535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33536   (eval $ac_compile) 2>&5
33537   ac_status=$?
33538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539   (exit $ac_status); } &&
33540          { ac_try='test -s conftest.$ac_objext'
33541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542   (eval $ac_try) 2>&5
33543   ac_status=$?
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); }; }; then
33546   glibcxx_cv_func__ldexpf_use=yes
33547 else
33548   echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33550
33551 glibcxx_cv_func__ldexpf_use=no
33552 fi
33553 rm -f conftest.$ac_objext conftest.$ac_ext
33554       ac_ext=c
33555 ac_cpp='$CPP $CPPFLAGS'
33556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33559
33560
33561 fi
33562
33563   fi
33564   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
33565 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
33566
33567     if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
33568
33569 for ac_func in _ldexpf
33570 do
33571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33572 echo "$as_me:$LINENO: checking for $ac_func" >&5
33573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33574 if eval "test \"\${$as_ac_var+set}\" = set"; then
33575   echo $ECHO_N "(cached) $ECHO_C" >&6
33576 else
33577   if test x$gcc_no_link = xyes; then
33578   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33580    { (exit 1); exit 1; }; }
33581 fi
33582 cat >conftest.$ac_ext <<_ACEOF
33583 #line $LINENO "configure"
33584 /* confdefs.h.  */
33585 _ACEOF
33586 cat confdefs.h >>conftest.$ac_ext
33587 cat >>conftest.$ac_ext <<_ACEOF
33588 /* end confdefs.h.  */
33589 /* System header to define __stub macros and hopefully few prototypes,
33590     which can conflict with char $ac_func (); below.
33591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33592     <limits.h> exists even on freestanding compilers.  */
33593 #ifdef __STDC__
33594 # include <limits.h>
33595 #else
33596 # include <assert.h>
33597 #endif
33598 /* Override any gcc2 internal prototype to avoid an error.  */
33599 #ifdef __cplusplus
33600 extern "C"
33601 {
33602 #endif
33603 /* We use char because int might match the return type of a gcc2
33604    builtin and then its argument prototype would still apply.  */
33605 char $ac_func ();
33606 /* The GNU C library defines this for functions which it implements
33607     to always fail with ENOSYS.  Some functions are actually named
33608     something starting with __ and the normal name is an alias.  */
33609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33610 choke me
33611 #else
33612 char (*f) () = $ac_func;
33613 #endif
33614 #ifdef __cplusplus
33615 }
33616 #endif
33617
33618 int
33619 main ()
33620 {
33621 return f != $ac_func;
33622   ;
33623   return 0;
33624 }
33625 _ACEOF
33626 rm -f conftest.$ac_objext conftest$ac_exeext
33627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33628   (eval $ac_link) 2>&5
33629   ac_status=$?
33630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631   (exit $ac_status); } &&
33632          { ac_try='test -s conftest$ac_exeext'
33633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33634   (eval $ac_try) 2>&5
33635   ac_status=$?
33636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33637   (exit $ac_status); }; }; then
33638   eval "$as_ac_var=yes"
33639 else
33640   echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33642
33643 eval "$as_ac_var=no"
33644 fi
33645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33646 fi
33647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33649 if test `eval echo '${'$as_ac_var'}'` = yes; then
33650   cat >>confdefs.h <<_ACEOF
33651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33652 _ACEOF
33653
33654 fi
33655 done
33656
33657     fi
33658   fi
33659
33660
33661
33662   echo "$as_me:$LINENO: checking for logf declaration" >&5
33663 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
33664   if test x${glibcxx_cv_func_logf_use+set} != xset; then
33665     if test "${glibcxx_cv_func_logf_use+set}" = set; then
33666   echo $ECHO_N "(cached) $ECHO_C" >&6
33667 else
33668
33669
33670
33671       ac_ext=cc
33672 ac_cpp='$CXXCPP $CPPFLAGS'
33673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33676
33677       cat >conftest.$ac_ext <<_ACEOF
33678 #line $LINENO "configure"
33679 /* confdefs.h.  */
33680 _ACEOF
33681 cat confdefs.h >>conftest.$ac_ext
33682 cat >>conftest.$ac_ext <<_ACEOF
33683 /* end confdefs.h.  */
33684 #include <math.h>
33685                       #ifdef HAVE_IEEEFP_H
33686                       #include <ieeefp.h>
33687                       #endif
33688
33689 int
33690 main ()
33691 {
33692  logf(0);
33693   ;
33694   return 0;
33695 }
33696 _ACEOF
33697 rm -f conftest.$ac_objext
33698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33699   (eval $ac_compile) 2>&5
33700   ac_status=$?
33701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702   (exit $ac_status); } &&
33703          { ac_try='test -s conftest.$ac_objext'
33704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33705   (eval $ac_try) 2>&5
33706   ac_status=$?
33707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33708   (exit $ac_status); }; }; then
33709   glibcxx_cv_func_logf_use=yes
33710 else
33711   echo "$as_me: failed program was:" >&5
33712 sed 's/^/| /' conftest.$ac_ext >&5
33713
33714 glibcxx_cv_func_logf_use=no
33715 fi
33716 rm -f conftest.$ac_objext conftest.$ac_ext
33717       ac_ext=c
33718 ac_cpp='$CPP $CPPFLAGS'
33719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33722
33723
33724 fi
33725
33726   fi
33727   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
33728 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
33729
33730   if test x$glibcxx_cv_func_logf_use = x"yes"; then
33731
33732 for ac_func in logf
33733 do
33734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33735 echo "$as_me:$LINENO: checking for $ac_func" >&5
33736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33737 if eval "test \"\${$as_ac_var+set}\" = set"; then
33738   echo $ECHO_N "(cached) $ECHO_C" >&6
33739 else
33740   if test x$gcc_no_link = xyes; then
33741   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33742 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33743    { (exit 1); exit 1; }; }
33744 fi
33745 cat >conftest.$ac_ext <<_ACEOF
33746 #line $LINENO "configure"
33747 /* confdefs.h.  */
33748 _ACEOF
33749 cat confdefs.h >>conftest.$ac_ext
33750 cat >>conftest.$ac_ext <<_ACEOF
33751 /* end confdefs.h.  */
33752 /* System header to define __stub macros and hopefully few prototypes,
33753     which can conflict with char $ac_func (); below.
33754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33755     <limits.h> exists even on freestanding compilers.  */
33756 #ifdef __STDC__
33757 # include <limits.h>
33758 #else
33759 # include <assert.h>
33760 #endif
33761 /* Override any gcc2 internal prototype to avoid an error.  */
33762 #ifdef __cplusplus
33763 extern "C"
33764 {
33765 #endif
33766 /* We use char because int might match the return type of a gcc2
33767    builtin and then its argument prototype would still apply.  */
33768 char $ac_func ();
33769 /* The GNU C library defines this for functions which it implements
33770     to always fail with ENOSYS.  Some functions are actually named
33771     something starting with __ and the normal name is an alias.  */
33772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33773 choke me
33774 #else
33775 char (*f) () = $ac_func;
33776 #endif
33777 #ifdef __cplusplus
33778 }
33779 #endif
33780
33781 int
33782 main ()
33783 {
33784 return f != $ac_func;
33785   ;
33786   return 0;
33787 }
33788 _ACEOF
33789 rm -f conftest.$ac_objext conftest$ac_exeext
33790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33791   (eval $ac_link) 2>&5
33792   ac_status=$?
33793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794   (exit $ac_status); } &&
33795          { ac_try='test -s conftest$ac_exeext'
33796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797   (eval $ac_try) 2>&5
33798   ac_status=$?
33799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800   (exit $ac_status); }; }; then
33801   eval "$as_ac_var=yes"
33802 else
33803   echo "$as_me: failed program was:" >&5
33804 sed 's/^/| /' conftest.$ac_ext >&5
33805
33806 eval "$as_ac_var=no"
33807 fi
33808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33809 fi
33810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33812 if test `eval echo '${'$as_ac_var'}'` = yes; then
33813   cat >>confdefs.h <<_ACEOF
33814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33815 _ACEOF
33816
33817 fi
33818 done
33819
33820   else
33821
33822   echo "$as_me:$LINENO: checking for _logf declaration" >&5
33823 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
33824   if test x${glibcxx_cv_func__logf_use+set} != xset; then
33825     if test "${glibcxx_cv_func__logf_use+set}" = set; then
33826   echo $ECHO_N "(cached) $ECHO_C" >&6
33827 else
33828
33829
33830
33831       ac_ext=cc
33832 ac_cpp='$CXXCPP $CPPFLAGS'
33833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33836
33837       cat >conftest.$ac_ext <<_ACEOF
33838 #line $LINENO "configure"
33839 /* confdefs.h.  */
33840 _ACEOF
33841 cat confdefs.h >>conftest.$ac_ext
33842 cat >>conftest.$ac_ext <<_ACEOF
33843 /* end confdefs.h.  */
33844 #include <math.h>
33845                       #ifdef HAVE_IEEEFP_H
33846                       #include <ieeefp.h>
33847                       #endif
33848
33849 int
33850 main ()
33851 {
33852  _logf(0);
33853   ;
33854   return 0;
33855 }
33856 _ACEOF
33857 rm -f conftest.$ac_objext
33858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33859   (eval $ac_compile) 2>&5
33860   ac_status=$?
33861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862   (exit $ac_status); } &&
33863          { ac_try='test -s conftest.$ac_objext'
33864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33865   (eval $ac_try) 2>&5
33866   ac_status=$?
33867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868   (exit $ac_status); }; }; then
33869   glibcxx_cv_func__logf_use=yes
33870 else
33871   echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33873
33874 glibcxx_cv_func__logf_use=no
33875 fi
33876 rm -f conftest.$ac_objext conftest.$ac_ext
33877       ac_ext=c
33878 ac_cpp='$CPP $CPPFLAGS'
33879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33882
33883
33884 fi
33885
33886   fi
33887   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
33888 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
33889
33890     if test x$glibcxx_cv_func__logf_use = x"yes"; then
33891
33892 for ac_func in _logf
33893 do
33894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33895 echo "$as_me:$LINENO: checking for $ac_func" >&5
33896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33897 if eval "test \"\${$as_ac_var+set}\" = set"; then
33898   echo $ECHO_N "(cached) $ECHO_C" >&6
33899 else
33900   if test x$gcc_no_link = xyes; then
33901   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33902 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33903    { (exit 1); exit 1; }; }
33904 fi
33905 cat >conftest.$ac_ext <<_ACEOF
33906 #line $LINENO "configure"
33907 /* confdefs.h.  */
33908 _ACEOF
33909 cat confdefs.h >>conftest.$ac_ext
33910 cat >>conftest.$ac_ext <<_ACEOF
33911 /* end confdefs.h.  */
33912 /* System header to define __stub macros and hopefully few prototypes,
33913     which can conflict with char $ac_func (); below.
33914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33915     <limits.h> exists even on freestanding compilers.  */
33916 #ifdef __STDC__
33917 # include <limits.h>
33918 #else
33919 # include <assert.h>
33920 #endif
33921 /* Override any gcc2 internal prototype to avoid an error.  */
33922 #ifdef __cplusplus
33923 extern "C"
33924 {
33925 #endif
33926 /* We use char because int might match the return type of a gcc2
33927    builtin and then its argument prototype would still apply.  */
33928 char $ac_func ();
33929 /* The GNU C library defines this for functions which it implements
33930     to always fail with ENOSYS.  Some functions are actually named
33931     something starting with __ and the normal name is an alias.  */
33932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33933 choke me
33934 #else
33935 char (*f) () = $ac_func;
33936 #endif
33937 #ifdef __cplusplus
33938 }
33939 #endif
33940
33941 int
33942 main ()
33943 {
33944 return f != $ac_func;
33945   ;
33946   return 0;
33947 }
33948 _ACEOF
33949 rm -f conftest.$ac_objext conftest$ac_exeext
33950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33951   (eval $ac_link) 2>&5
33952   ac_status=$?
33953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954   (exit $ac_status); } &&
33955          { ac_try='test -s conftest$ac_exeext'
33956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33957   (eval $ac_try) 2>&5
33958   ac_status=$?
33959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960   (exit $ac_status); }; }; then
33961   eval "$as_ac_var=yes"
33962 else
33963   echo "$as_me: failed program was:" >&5
33964 sed 's/^/| /' conftest.$ac_ext >&5
33965
33966 eval "$as_ac_var=no"
33967 fi
33968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33969 fi
33970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33972 if test `eval echo '${'$as_ac_var'}'` = yes; then
33973   cat >>confdefs.h <<_ACEOF
33974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33975 _ACEOF
33976
33977 fi
33978 done
33979
33980     fi
33981   fi
33982
33983
33984
33985   echo "$as_me:$LINENO: checking for log10f declaration" >&5
33986 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
33987   if test x${glibcxx_cv_func_log10f_use+set} != xset; then
33988     if test "${glibcxx_cv_func_log10f_use+set}" = set; then
33989   echo $ECHO_N "(cached) $ECHO_C" >&6
33990 else
33991
33992
33993
33994       ac_ext=cc
33995 ac_cpp='$CXXCPP $CPPFLAGS'
33996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33999
34000       cat >conftest.$ac_ext <<_ACEOF
34001 #line $LINENO "configure"
34002 /* confdefs.h.  */
34003 _ACEOF
34004 cat confdefs.h >>conftest.$ac_ext
34005 cat >>conftest.$ac_ext <<_ACEOF
34006 /* end confdefs.h.  */
34007 #include <math.h>
34008                       #ifdef HAVE_IEEEFP_H
34009                       #include <ieeefp.h>
34010                       #endif
34011
34012 int
34013 main ()
34014 {
34015  log10f(0);
34016   ;
34017   return 0;
34018 }
34019 _ACEOF
34020 rm -f conftest.$ac_objext
34021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34022   (eval $ac_compile) 2>&5
34023   ac_status=$?
34024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); } &&
34026          { ac_try='test -s conftest.$ac_objext'
34027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34028   (eval $ac_try) 2>&5
34029   ac_status=$?
34030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031   (exit $ac_status); }; }; then
34032   glibcxx_cv_func_log10f_use=yes
34033 else
34034   echo "$as_me: failed program was:" >&5
34035 sed 's/^/| /' conftest.$ac_ext >&5
34036
34037 glibcxx_cv_func_log10f_use=no
34038 fi
34039 rm -f conftest.$ac_objext conftest.$ac_ext
34040       ac_ext=c
34041 ac_cpp='$CPP $CPPFLAGS'
34042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34045
34046
34047 fi
34048
34049   fi
34050   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
34051 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
34052
34053   if test x$glibcxx_cv_func_log10f_use = x"yes"; then
34054
34055 for ac_func in log10f
34056 do
34057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34058 echo "$as_me:$LINENO: checking for $ac_func" >&5
34059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34060 if eval "test \"\${$as_ac_var+set}\" = set"; then
34061   echo $ECHO_N "(cached) $ECHO_C" >&6
34062 else
34063   if test x$gcc_no_link = xyes; then
34064   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34066    { (exit 1); exit 1; }; }
34067 fi
34068 cat >conftest.$ac_ext <<_ACEOF
34069 #line $LINENO "configure"
34070 /* confdefs.h.  */
34071 _ACEOF
34072 cat confdefs.h >>conftest.$ac_ext
34073 cat >>conftest.$ac_ext <<_ACEOF
34074 /* end confdefs.h.  */
34075 /* System header to define __stub macros and hopefully few prototypes,
34076     which can conflict with char $ac_func (); below.
34077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34078     <limits.h> exists even on freestanding compilers.  */
34079 #ifdef __STDC__
34080 # include <limits.h>
34081 #else
34082 # include <assert.h>
34083 #endif
34084 /* Override any gcc2 internal prototype to avoid an error.  */
34085 #ifdef __cplusplus
34086 extern "C"
34087 {
34088 #endif
34089 /* We use char because int might match the return type of a gcc2
34090    builtin and then its argument prototype would still apply.  */
34091 char $ac_func ();
34092 /* The GNU C library defines this for functions which it implements
34093     to always fail with ENOSYS.  Some functions are actually named
34094     something starting with __ and the normal name is an alias.  */
34095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34096 choke me
34097 #else
34098 char (*f) () = $ac_func;
34099 #endif
34100 #ifdef __cplusplus
34101 }
34102 #endif
34103
34104 int
34105 main ()
34106 {
34107 return f != $ac_func;
34108   ;
34109   return 0;
34110 }
34111 _ACEOF
34112 rm -f conftest.$ac_objext conftest$ac_exeext
34113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34114   (eval $ac_link) 2>&5
34115   ac_status=$?
34116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117   (exit $ac_status); } &&
34118          { ac_try='test -s conftest$ac_exeext'
34119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34120   (eval $ac_try) 2>&5
34121   ac_status=$?
34122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123   (exit $ac_status); }; }; then
34124   eval "$as_ac_var=yes"
34125 else
34126   echo "$as_me: failed program was:" >&5
34127 sed 's/^/| /' conftest.$ac_ext >&5
34128
34129 eval "$as_ac_var=no"
34130 fi
34131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34132 fi
34133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34135 if test `eval echo '${'$as_ac_var'}'` = yes; then
34136   cat >>confdefs.h <<_ACEOF
34137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34138 _ACEOF
34139
34140 fi
34141 done
34142
34143   else
34144
34145   echo "$as_me:$LINENO: checking for _log10f declaration" >&5
34146 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
34147   if test x${glibcxx_cv_func__log10f_use+set} != xset; then
34148     if test "${glibcxx_cv_func__log10f_use+set}" = set; then
34149   echo $ECHO_N "(cached) $ECHO_C" >&6
34150 else
34151
34152
34153
34154       ac_ext=cc
34155 ac_cpp='$CXXCPP $CPPFLAGS'
34156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34159
34160       cat >conftest.$ac_ext <<_ACEOF
34161 #line $LINENO "configure"
34162 /* confdefs.h.  */
34163 _ACEOF
34164 cat confdefs.h >>conftest.$ac_ext
34165 cat >>conftest.$ac_ext <<_ACEOF
34166 /* end confdefs.h.  */
34167 #include <math.h>
34168                       #ifdef HAVE_IEEEFP_H
34169                       #include <ieeefp.h>
34170                       #endif
34171
34172 int
34173 main ()
34174 {
34175  _log10f(0);
34176   ;
34177   return 0;
34178 }
34179 _ACEOF
34180 rm -f conftest.$ac_objext
34181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34182   (eval $ac_compile) 2>&5
34183   ac_status=$?
34184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185   (exit $ac_status); } &&
34186          { ac_try='test -s conftest.$ac_objext'
34187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34188   (eval $ac_try) 2>&5
34189   ac_status=$?
34190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34191   (exit $ac_status); }; }; then
34192   glibcxx_cv_func__log10f_use=yes
34193 else
34194   echo "$as_me: failed program was:" >&5
34195 sed 's/^/| /' conftest.$ac_ext >&5
34196
34197 glibcxx_cv_func__log10f_use=no
34198 fi
34199 rm -f conftest.$ac_objext conftest.$ac_ext
34200       ac_ext=c
34201 ac_cpp='$CPP $CPPFLAGS'
34202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34205
34206
34207 fi
34208
34209   fi
34210   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
34211 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
34212
34213     if test x$glibcxx_cv_func__log10f_use = x"yes"; then
34214
34215 for ac_func in _log10f
34216 do
34217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34218 echo "$as_me:$LINENO: checking for $ac_func" >&5
34219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34220 if eval "test \"\${$as_ac_var+set}\" = set"; then
34221   echo $ECHO_N "(cached) $ECHO_C" >&6
34222 else
34223   if test x$gcc_no_link = xyes; then
34224   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34226    { (exit 1); exit 1; }; }
34227 fi
34228 cat >conftest.$ac_ext <<_ACEOF
34229 #line $LINENO "configure"
34230 /* confdefs.h.  */
34231 _ACEOF
34232 cat confdefs.h >>conftest.$ac_ext
34233 cat >>conftest.$ac_ext <<_ACEOF
34234 /* end confdefs.h.  */
34235 /* System header to define __stub macros and hopefully few prototypes,
34236     which can conflict with char $ac_func (); below.
34237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34238     <limits.h> exists even on freestanding compilers.  */
34239 #ifdef __STDC__
34240 # include <limits.h>
34241 #else
34242 # include <assert.h>
34243 #endif
34244 /* Override any gcc2 internal prototype to avoid an error.  */
34245 #ifdef __cplusplus
34246 extern "C"
34247 {
34248 #endif
34249 /* We use char because int might match the return type of a gcc2
34250    builtin and then its argument prototype would still apply.  */
34251 char $ac_func ();
34252 /* The GNU C library defines this for functions which it implements
34253     to always fail with ENOSYS.  Some functions are actually named
34254     something starting with __ and the normal name is an alias.  */
34255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34256 choke me
34257 #else
34258 char (*f) () = $ac_func;
34259 #endif
34260 #ifdef __cplusplus
34261 }
34262 #endif
34263
34264 int
34265 main ()
34266 {
34267 return f != $ac_func;
34268   ;
34269   return 0;
34270 }
34271 _ACEOF
34272 rm -f conftest.$ac_objext conftest$ac_exeext
34273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34274   (eval $ac_link) 2>&5
34275   ac_status=$?
34276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277   (exit $ac_status); } &&
34278          { ac_try='test -s conftest$ac_exeext'
34279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34280   (eval $ac_try) 2>&5
34281   ac_status=$?
34282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34283   (exit $ac_status); }; }; then
34284   eval "$as_ac_var=yes"
34285 else
34286   echo "$as_me: failed program was:" >&5
34287 sed 's/^/| /' conftest.$ac_ext >&5
34288
34289 eval "$as_ac_var=no"
34290 fi
34291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34292 fi
34293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34295 if test `eval echo '${'$as_ac_var'}'` = yes; then
34296   cat >>confdefs.h <<_ACEOF
34297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34298 _ACEOF
34299
34300 fi
34301 done
34302
34303     fi
34304   fi
34305
34306
34307
34308   echo "$as_me:$LINENO: checking for modff declaration" >&5
34309 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
34310   if test x${glibcxx_cv_func_modff_use+set} != xset; then
34311     if test "${glibcxx_cv_func_modff_use+set}" = set; then
34312   echo $ECHO_N "(cached) $ECHO_C" >&6
34313 else
34314
34315
34316
34317       ac_ext=cc
34318 ac_cpp='$CXXCPP $CPPFLAGS'
34319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34322
34323       cat >conftest.$ac_ext <<_ACEOF
34324 #line $LINENO "configure"
34325 /* confdefs.h.  */
34326 _ACEOF
34327 cat confdefs.h >>conftest.$ac_ext
34328 cat >>conftest.$ac_ext <<_ACEOF
34329 /* end confdefs.h.  */
34330 #include <math.h>
34331 int
34332 main ()
34333 {
34334  modff(0, 0);
34335   ;
34336   return 0;
34337 }
34338 _ACEOF
34339 rm -f conftest.$ac_objext
34340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34341   (eval $ac_compile) 2>&5
34342   ac_status=$?
34343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34344   (exit $ac_status); } &&
34345          { ac_try='test -s conftest.$ac_objext'
34346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34347   (eval $ac_try) 2>&5
34348   ac_status=$?
34349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34350   (exit $ac_status); }; }; then
34351   glibcxx_cv_func_modff_use=yes
34352 else
34353   echo "$as_me: failed program was:" >&5
34354 sed 's/^/| /' conftest.$ac_ext >&5
34355
34356 glibcxx_cv_func_modff_use=no
34357 fi
34358 rm -f conftest.$ac_objext conftest.$ac_ext
34359       ac_ext=c
34360 ac_cpp='$CPP $CPPFLAGS'
34361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34364
34365
34366 fi
34367
34368   fi
34369   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
34370 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
34371
34372   if test x$glibcxx_cv_func_modff_use = x"yes"; then
34373
34374 for ac_func in modff
34375 do
34376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34377 echo "$as_me:$LINENO: checking for $ac_func" >&5
34378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34379 if eval "test \"\${$as_ac_var+set}\" = set"; then
34380   echo $ECHO_N "(cached) $ECHO_C" >&6
34381 else
34382   if test x$gcc_no_link = xyes; then
34383   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34385    { (exit 1); exit 1; }; }
34386 fi
34387 cat >conftest.$ac_ext <<_ACEOF
34388 #line $LINENO "configure"
34389 /* confdefs.h.  */
34390 _ACEOF
34391 cat confdefs.h >>conftest.$ac_ext
34392 cat >>conftest.$ac_ext <<_ACEOF
34393 /* end confdefs.h.  */
34394 /* System header to define __stub macros and hopefully few prototypes,
34395     which can conflict with char $ac_func (); below.
34396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34397     <limits.h> exists even on freestanding compilers.  */
34398 #ifdef __STDC__
34399 # include <limits.h>
34400 #else
34401 # include <assert.h>
34402 #endif
34403 /* Override any gcc2 internal prototype to avoid an error.  */
34404 #ifdef __cplusplus
34405 extern "C"
34406 {
34407 #endif
34408 /* We use char because int might match the return type of a gcc2
34409    builtin and then its argument prototype would still apply.  */
34410 char $ac_func ();
34411 /* The GNU C library defines this for functions which it implements
34412     to always fail with ENOSYS.  Some functions are actually named
34413     something starting with __ and the normal name is an alias.  */
34414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34415 choke me
34416 #else
34417 char (*f) () = $ac_func;
34418 #endif
34419 #ifdef __cplusplus
34420 }
34421 #endif
34422
34423 int
34424 main ()
34425 {
34426 return f != $ac_func;
34427   ;
34428   return 0;
34429 }
34430 _ACEOF
34431 rm -f conftest.$ac_objext conftest$ac_exeext
34432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34433   (eval $ac_link) 2>&5
34434   ac_status=$?
34435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34436   (exit $ac_status); } &&
34437          { ac_try='test -s conftest$ac_exeext'
34438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439   (eval $ac_try) 2>&5
34440   ac_status=$?
34441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442   (exit $ac_status); }; }; then
34443   eval "$as_ac_var=yes"
34444 else
34445   echo "$as_me: failed program was:" >&5
34446 sed 's/^/| /' conftest.$ac_ext >&5
34447
34448 eval "$as_ac_var=no"
34449 fi
34450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34451 fi
34452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34454 if test `eval echo '${'$as_ac_var'}'` = yes; then
34455   cat >>confdefs.h <<_ACEOF
34456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34457 _ACEOF
34458
34459 fi
34460 done
34461
34462   else
34463
34464   echo "$as_me:$LINENO: checking for _modff declaration" >&5
34465 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
34466   if test x${glibcxx_cv_func__modff_use+set} != xset; then
34467     if test "${glibcxx_cv_func__modff_use+set}" = set; then
34468   echo $ECHO_N "(cached) $ECHO_C" >&6
34469 else
34470
34471
34472
34473       ac_ext=cc
34474 ac_cpp='$CXXCPP $CPPFLAGS'
34475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34478
34479       cat >conftest.$ac_ext <<_ACEOF
34480 #line $LINENO "configure"
34481 /* confdefs.h.  */
34482 _ACEOF
34483 cat confdefs.h >>conftest.$ac_ext
34484 cat >>conftest.$ac_ext <<_ACEOF
34485 /* end confdefs.h.  */
34486 #include <math.h>
34487 int
34488 main ()
34489 {
34490  _modff(0, 0);
34491   ;
34492   return 0;
34493 }
34494 _ACEOF
34495 rm -f conftest.$ac_objext
34496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34497   (eval $ac_compile) 2>&5
34498   ac_status=$?
34499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500   (exit $ac_status); } &&
34501          { ac_try='test -s conftest.$ac_objext'
34502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34503   (eval $ac_try) 2>&5
34504   ac_status=$?
34505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506   (exit $ac_status); }; }; then
34507   glibcxx_cv_func__modff_use=yes
34508 else
34509   echo "$as_me: failed program was:" >&5
34510 sed 's/^/| /' conftest.$ac_ext >&5
34511
34512 glibcxx_cv_func__modff_use=no
34513 fi
34514 rm -f conftest.$ac_objext conftest.$ac_ext
34515       ac_ext=c
34516 ac_cpp='$CPP $CPPFLAGS'
34517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34520
34521
34522 fi
34523
34524   fi
34525   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
34526 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
34527
34528     if test x$glibcxx_cv_func__modff_use = x"yes"; then
34529
34530 for ac_func in _modff
34531 do
34532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34533 echo "$as_me:$LINENO: checking for $ac_func" >&5
34534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34535 if eval "test \"\${$as_ac_var+set}\" = set"; then
34536   echo $ECHO_N "(cached) $ECHO_C" >&6
34537 else
34538   if test x$gcc_no_link = xyes; then
34539   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34540 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34541    { (exit 1); exit 1; }; }
34542 fi
34543 cat >conftest.$ac_ext <<_ACEOF
34544 #line $LINENO "configure"
34545 /* confdefs.h.  */
34546 _ACEOF
34547 cat confdefs.h >>conftest.$ac_ext
34548 cat >>conftest.$ac_ext <<_ACEOF
34549 /* end confdefs.h.  */
34550 /* System header to define __stub macros and hopefully few prototypes,
34551     which can conflict with char $ac_func (); below.
34552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34553     <limits.h> exists even on freestanding compilers.  */
34554 #ifdef __STDC__
34555 # include <limits.h>
34556 #else
34557 # include <assert.h>
34558 #endif
34559 /* Override any gcc2 internal prototype to avoid an error.  */
34560 #ifdef __cplusplus
34561 extern "C"
34562 {
34563 #endif
34564 /* We use char because int might match the return type of a gcc2
34565    builtin and then its argument prototype would still apply.  */
34566 char $ac_func ();
34567 /* The GNU C library defines this for functions which it implements
34568     to always fail with ENOSYS.  Some functions are actually named
34569     something starting with __ and the normal name is an alias.  */
34570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34571 choke me
34572 #else
34573 char (*f) () = $ac_func;
34574 #endif
34575 #ifdef __cplusplus
34576 }
34577 #endif
34578
34579 int
34580 main ()
34581 {
34582 return f != $ac_func;
34583   ;
34584   return 0;
34585 }
34586 _ACEOF
34587 rm -f conftest.$ac_objext conftest$ac_exeext
34588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34589   (eval $ac_link) 2>&5
34590   ac_status=$?
34591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592   (exit $ac_status); } &&
34593          { ac_try='test -s conftest$ac_exeext'
34594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34595   (eval $ac_try) 2>&5
34596   ac_status=$?
34597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598   (exit $ac_status); }; }; then
34599   eval "$as_ac_var=yes"
34600 else
34601   echo "$as_me: failed program was:" >&5
34602 sed 's/^/| /' conftest.$ac_ext >&5
34603
34604 eval "$as_ac_var=no"
34605 fi
34606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34607 fi
34608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34610 if test `eval echo '${'$as_ac_var'}'` = yes; then
34611   cat >>confdefs.h <<_ACEOF
34612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34613 _ACEOF
34614
34615 fi
34616 done
34617
34618     fi
34619   fi
34620
34621
34622
34623   echo "$as_me:$LINENO: checking for powf declaration" >&5
34624 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
34625   if test x${glibcxx_cv_func_powf_use+set} != xset; then
34626     if test "${glibcxx_cv_func_powf_use+set}" = set; then
34627   echo $ECHO_N "(cached) $ECHO_C" >&6
34628 else
34629
34630
34631
34632       ac_ext=cc
34633 ac_cpp='$CXXCPP $CPPFLAGS'
34634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34637
34638       cat >conftest.$ac_ext <<_ACEOF
34639 #line $LINENO "configure"
34640 /* confdefs.h.  */
34641 _ACEOF
34642 cat confdefs.h >>conftest.$ac_ext
34643 cat >>conftest.$ac_ext <<_ACEOF
34644 /* end confdefs.h.  */
34645 #include <math.h>
34646 int
34647 main ()
34648 {
34649  powf(0, 0);
34650   ;
34651   return 0;
34652 }
34653 _ACEOF
34654 rm -f conftest.$ac_objext
34655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34656   (eval $ac_compile) 2>&5
34657   ac_status=$?
34658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659   (exit $ac_status); } &&
34660          { ac_try='test -s conftest.$ac_objext'
34661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34662   (eval $ac_try) 2>&5
34663   ac_status=$?
34664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665   (exit $ac_status); }; }; then
34666   glibcxx_cv_func_powf_use=yes
34667 else
34668   echo "$as_me: failed program was:" >&5
34669 sed 's/^/| /' conftest.$ac_ext >&5
34670
34671 glibcxx_cv_func_powf_use=no
34672 fi
34673 rm -f conftest.$ac_objext conftest.$ac_ext
34674       ac_ext=c
34675 ac_cpp='$CPP $CPPFLAGS'
34676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34679
34680
34681 fi
34682
34683   fi
34684   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
34685 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
34686
34687   if test x$glibcxx_cv_func_powf_use = x"yes"; then
34688
34689 for ac_func in powf
34690 do
34691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34692 echo "$as_me:$LINENO: checking for $ac_func" >&5
34693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34694 if eval "test \"\${$as_ac_var+set}\" = set"; then
34695   echo $ECHO_N "(cached) $ECHO_C" >&6
34696 else
34697   if test x$gcc_no_link = xyes; then
34698   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34699 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34700    { (exit 1); exit 1; }; }
34701 fi
34702 cat >conftest.$ac_ext <<_ACEOF
34703 #line $LINENO "configure"
34704 /* confdefs.h.  */
34705 _ACEOF
34706 cat confdefs.h >>conftest.$ac_ext
34707 cat >>conftest.$ac_ext <<_ACEOF
34708 /* end confdefs.h.  */
34709 /* System header to define __stub macros and hopefully few prototypes,
34710     which can conflict with char $ac_func (); below.
34711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34712     <limits.h> exists even on freestanding compilers.  */
34713 #ifdef __STDC__
34714 # include <limits.h>
34715 #else
34716 # include <assert.h>
34717 #endif
34718 /* Override any gcc2 internal prototype to avoid an error.  */
34719 #ifdef __cplusplus
34720 extern "C"
34721 {
34722 #endif
34723 /* We use char because int might match the return type of a gcc2
34724    builtin and then its argument prototype would still apply.  */
34725 char $ac_func ();
34726 /* The GNU C library defines this for functions which it implements
34727     to always fail with ENOSYS.  Some functions are actually named
34728     something starting with __ and the normal name is an alias.  */
34729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34730 choke me
34731 #else
34732 char (*f) () = $ac_func;
34733 #endif
34734 #ifdef __cplusplus
34735 }
34736 #endif
34737
34738 int
34739 main ()
34740 {
34741 return f != $ac_func;
34742   ;
34743   return 0;
34744 }
34745 _ACEOF
34746 rm -f conftest.$ac_objext conftest$ac_exeext
34747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34748   (eval $ac_link) 2>&5
34749   ac_status=$?
34750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751   (exit $ac_status); } &&
34752          { ac_try='test -s conftest$ac_exeext'
34753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34754   (eval $ac_try) 2>&5
34755   ac_status=$?
34756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757   (exit $ac_status); }; }; then
34758   eval "$as_ac_var=yes"
34759 else
34760   echo "$as_me: failed program was:" >&5
34761 sed 's/^/| /' conftest.$ac_ext >&5
34762
34763 eval "$as_ac_var=no"
34764 fi
34765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34766 fi
34767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34769 if test `eval echo '${'$as_ac_var'}'` = yes; then
34770   cat >>confdefs.h <<_ACEOF
34771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34772 _ACEOF
34773
34774 fi
34775 done
34776
34777   else
34778
34779   echo "$as_me:$LINENO: checking for _powf declaration" >&5
34780 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
34781   if test x${glibcxx_cv_func__powf_use+set} != xset; then
34782     if test "${glibcxx_cv_func__powf_use+set}" = set; then
34783   echo $ECHO_N "(cached) $ECHO_C" >&6
34784 else
34785
34786
34787
34788       ac_ext=cc
34789 ac_cpp='$CXXCPP $CPPFLAGS'
34790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34793
34794       cat >conftest.$ac_ext <<_ACEOF
34795 #line $LINENO "configure"
34796 /* confdefs.h.  */
34797 _ACEOF
34798 cat confdefs.h >>conftest.$ac_ext
34799 cat >>conftest.$ac_ext <<_ACEOF
34800 /* end confdefs.h.  */
34801 #include <math.h>
34802 int
34803 main ()
34804 {
34805  _powf(0, 0);
34806   ;
34807   return 0;
34808 }
34809 _ACEOF
34810 rm -f conftest.$ac_objext
34811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34812   (eval $ac_compile) 2>&5
34813   ac_status=$?
34814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815   (exit $ac_status); } &&
34816          { ac_try='test -s conftest.$ac_objext'
34817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34818   (eval $ac_try) 2>&5
34819   ac_status=$?
34820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821   (exit $ac_status); }; }; then
34822   glibcxx_cv_func__powf_use=yes
34823 else
34824   echo "$as_me: failed program was:" >&5
34825 sed 's/^/| /' conftest.$ac_ext >&5
34826
34827 glibcxx_cv_func__powf_use=no
34828 fi
34829 rm -f conftest.$ac_objext conftest.$ac_ext
34830       ac_ext=c
34831 ac_cpp='$CPP $CPPFLAGS'
34832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34835
34836
34837 fi
34838
34839   fi
34840   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
34841 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
34842
34843     if test x$glibcxx_cv_func__powf_use = x"yes"; then
34844
34845 for ac_func in _powf
34846 do
34847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34848 echo "$as_me:$LINENO: checking for $ac_func" >&5
34849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34850 if eval "test \"\${$as_ac_var+set}\" = set"; then
34851   echo $ECHO_N "(cached) $ECHO_C" >&6
34852 else
34853   if test x$gcc_no_link = xyes; then
34854   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34856    { (exit 1); exit 1; }; }
34857 fi
34858 cat >conftest.$ac_ext <<_ACEOF
34859 #line $LINENO "configure"
34860 /* confdefs.h.  */
34861 _ACEOF
34862 cat confdefs.h >>conftest.$ac_ext
34863 cat >>conftest.$ac_ext <<_ACEOF
34864 /* end confdefs.h.  */
34865 /* System header to define __stub macros and hopefully few prototypes,
34866     which can conflict with char $ac_func (); below.
34867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34868     <limits.h> exists even on freestanding compilers.  */
34869 #ifdef __STDC__
34870 # include <limits.h>
34871 #else
34872 # include <assert.h>
34873 #endif
34874 /* Override any gcc2 internal prototype to avoid an error.  */
34875 #ifdef __cplusplus
34876 extern "C"
34877 {
34878 #endif
34879 /* We use char because int might match the return type of a gcc2
34880    builtin and then its argument prototype would still apply.  */
34881 char $ac_func ();
34882 /* The GNU C library defines this for functions which it implements
34883     to always fail with ENOSYS.  Some functions are actually named
34884     something starting with __ and the normal name is an alias.  */
34885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34886 choke me
34887 #else
34888 char (*f) () = $ac_func;
34889 #endif
34890 #ifdef __cplusplus
34891 }
34892 #endif
34893
34894 int
34895 main ()
34896 {
34897 return f != $ac_func;
34898   ;
34899   return 0;
34900 }
34901 _ACEOF
34902 rm -f conftest.$ac_objext conftest$ac_exeext
34903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34904   (eval $ac_link) 2>&5
34905   ac_status=$?
34906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907   (exit $ac_status); } &&
34908          { ac_try='test -s conftest$ac_exeext'
34909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34910   (eval $ac_try) 2>&5
34911   ac_status=$?
34912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913   (exit $ac_status); }; }; then
34914   eval "$as_ac_var=yes"
34915 else
34916   echo "$as_me: failed program was:" >&5
34917 sed 's/^/| /' conftest.$ac_ext >&5
34918
34919 eval "$as_ac_var=no"
34920 fi
34921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34922 fi
34923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34925 if test `eval echo '${'$as_ac_var'}'` = yes; then
34926   cat >>confdefs.h <<_ACEOF
34927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34928 _ACEOF
34929
34930 fi
34931 done
34932
34933     fi
34934   fi
34935
34936
34937
34938   echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
34939 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
34940   if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
34941     if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
34942   echo $ECHO_N "(cached) $ECHO_C" >&6
34943 else
34944
34945
34946
34947       ac_ext=cc
34948 ac_cpp='$CXXCPP $CPPFLAGS'
34949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34952
34953       cat >conftest.$ac_ext <<_ACEOF
34954 #line $LINENO "configure"
34955 /* confdefs.h.  */
34956 _ACEOF
34957 cat confdefs.h >>conftest.$ac_ext
34958 cat >>conftest.$ac_ext <<_ACEOF
34959 /* end confdefs.h.  */
34960 #include <math.h>
34961                       #ifdef HAVE_IEEEFP_H
34962                       #include <ieeefp.h>
34963                       #endif
34964
34965 int
34966 main ()
34967 {
34968  sqrtf(0);
34969   ;
34970   return 0;
34971 }
34972 _ACEOF
34973 rm -f conftest.$ac_objext
34974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34975   (eval $ac_compile) 2>&5
34976   ac_status=$?
34977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978   (exit $ac_status); } &&
34979          { ac_try='test -s conftest.$ac_objext'
34980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34981   (eval $ac_try) 2>&5
34982   ac_status=$?
34983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984   (exit $ac_status); }; }; then
34985   glibcxx_cv_func_sqrtf_use=yes
34986 else
34987   echo "$as_me: failed program was:" >&5
34988 sed 's/^/| /' conftest.$ac_ext >&5
34989
34990 glibcxx_cv_func_sqrtf_use=no
34991 fi
34992 rm -f conftest.$ac_objext conftest.$ac_ext
34993       ac_ext=c
34994 ac_cpp='$CPP $CPPFLAGS'
34995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34998
34999
35000 fi
35001
35002   fi
35003   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
35004 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
35005
35006   if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
35007
35008 for ac_func in sqrtf
35009 do
35010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35011 echo "$as_me:$LINENO: checking for $ac_func" >&5
35012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35013 if eval "test \"\${$as_ac_var+set}\" = set"; then
35014   echo $ECHO_N "(cached) $ECHO_C" >&6
35015 else
35016   if test x$gcc_no_link = xyes; then
35017   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35018 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35019    { (exit 1); exit 1; }; }
35020 fi
35021 cat >conftest.$ac_ext <<_ACEOF
35022 #line $LINENO "configure"
35023 /* confdefs.h.  */
35024 _ACEOF
35025 cat confdefs.h >>conftest.$ac_ext
35026 cat >>conftest.$ac_ext <<_ACEOF
35027 /* end confdefs.h.  */
35028 /* System header to define __stub macros and hopefully few prototypes,
35029     which can conflict with char $ac_func (); below.
35030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35031     <limits.h> exists even on freestanding compilers.  */
35032 #ifdef __STDC__
35033 # include <limits.h>
35034 #else
35035 # include <assert.h>
35036 #endif
35037 /* Override any gcc2 internal prototype to avoid an error.  */
35038 #ifdef __cplusplus
35039 extern "C"
35040 {
35041 #endif
35042 /* We use char because int might match the return type of a gcc2
35043    builtin and then its argument prototype would still apply.  */
35044 char $ac_func ();
35045 /* The GNU C library defines this for functions which it implements
35046     to always fail with ENOSYS.  Some functions are actually named
35047     something starting with __ and the normal name is an alias.  */
35048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35049 choke me
35050 #else
35051 char (*f) () = $ac_func;
35052 #endif
35053 #ifdef __cplusplus
35054 }
35055 #endif
35056
35057 int
35058 main ()
35059 {
35060 return f != $ac_func;
35061   ;
35062   return 0;
35063 }
35064 _ACEOF
35065 rm -f conftest.$ac_objext conftest$ac_exeext
35066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35067   (eval $ac_link) 2>&5
35068   ac_status=$?
35069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070   (exit $ac_status); } &&
35071          { ac_try='test -s conftest$ac_exeext'
35072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35073   (eval $ac_try) 2>&5
35074   ac_status=$?
35075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076   (exit $ac_status); }; }; then
35077   eval "$as_ac_var=yes"
35078 else
35079   echo "$as_me: failed program was:" >&5
35080 sed 's/^/| /' conftest.$ac_ext >&5
35081
35082 eval "$as_ac_var=no"
35083 fi
35084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35085 fi
35086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35088 if test `eval echo '${'$as_ac_var'}'` = yes; then
35089   cat >>confdefs.h <<_ACEOF
35090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35091 _ACEOF
35092
35093 fi
35094 done
35095
35096   else
35097
35098   echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
35099 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
35100   if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
35101     if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
35102   echo $ECHO_N "(cached) $ECHO_C" >&6
35103 else
35104
35105
35106
35107       ac_ext=cc
35108 ac_cpp='$CXXCPP $CPPFLAGS'
35109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35112
35113       cat >conftest.$ac_ext <<_ACEOF
35114 #line $LINENO "configure"
35115 /* confdefs.h.  */
35116 _ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h.  */
35120 #include <math.h>
35121                       #ifdef HAVE_IEEEFP_H
35122                       #include <ieeefp.h>
35123                       #endif
35124
35125 int
35126 main ()
35127 {
35128  _sqrtf(0);
35129   ;
35130   return 0;
35131 }
35132 _ACEOF
35133 rm -f conftest.$ac_objext
35134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35135   (eval $ac_compile) 2>&5
35136   ac_status=$?
35137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138   (exit $ac_status); } &&
35139          { ac_try='test -s conftest.$ac_objext'
35140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35141   (eval $ac_try) 2>&5
35142   ac_status=$?
35143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144   (exit $ac_status); }; }; then
35145   glibcxx_cv_func__sqrtf_use=yes
35146 else
35147   echo "$as_me: failed program was:" >&5
35148 sed 's/^/| /' conftest.$ac_ext >&5
35149
35150 glibcxx_cv_func__sqrtf_use=no
35151 fi
35152 rm -f conftest.$ac_objext conftest.$ac_ext
35153       ac_ext=c
35154 ac_cpp='$CPP $CPPFLAGS'
35155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35158
35159
35160 fi
35161
35162   fi
35163   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
35164 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
35165
35166     if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
35167
35168 for ac_func in _sqrtf
35169 do
35170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35171 echo "$as_me:$LINENO: checking for $ac_func" >&5
35172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35173 if eval "test \"\${$as_ac_var+set}\" = set"; then
35174   echo $ECHO_N "(cached) $ECHO_C" >&6
35175 else
35176   if test x$gcc_no_link = xyes; then
35177   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35179    { (exit 1); exit 1; }; }
35180 fi
35181 cat >conftest.$ac_ext <<_ACEOF
35182 #line $LINENO "configure"
35183 /* confdefs.h.  */
35184 _ACEOF
35185 cat confdefs.h >>conftest.$ac_ext
35186 cat >>conftest.$ac_ext <<_ACEOF
35187 /* end confdefs.h.  */
35188 /* System header to define __stub macros and hopefully few prototypes,
35189     which can conflict with char $ac_func (); below.
35190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35191     <limits.h> exists even on freestanding compilers.  */
35192 #ifdef __STDC__
35193 # include <limits.h>
35194 #else
35195 # include <assert.h>
35196 #endif
35197 /* Override any gcc2 internal prototype to avoid an error.  */
35198 #ifdef __cplusplus
35199 extern "C"
35200 {
35201 #endif
35202 /* We use char because int might match the return type of a gcc2
35203    builtin and then its argument prototype would still apply.  */
35204 char $ac_func ();
35205 /* The GNU C library defines this for functions which it implements
35206     to always fail with ENOSYS.  Some functions are actually named
35207     something starting with __ and the normal name is an alias.  */
35208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35209 choke me
35210 #else
35211 char (*f) () = $ac_func;
35212 #endif
35213 #ifdef __cplusplus
35214 }
35215 #endif
35216
35217 int
35218 main ()
35219 {
35220 return f != $ac_func;
35221   ;
35222   return 0;
35223 }
35224 _ACEOF
35225 rm -f conftest.$ac_objext conftest$ac_exeext
35226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35227   (eval $ac_link) 2>&5
35228   ac_status=$?
35229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230   (exit $ac_status); } &&
35231          { ac_try='test -s conftest$ac_exeext'
35232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35233   (eval $ac_try) 2>&5
35234   ac_status=$?
35235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236   (exit $ac_status); }; }; then
35237   eval "$as_ac_var=yes"
35238 else
35239   echo "$as_me: failed program was:" >&5
35240 sed 's/^/| /' conftest.$ac_ext >&5
35241
35242 eval "$as_ac_var=no"
35243 fi
35244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35245 fi
35246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35248 if test `eval echo '${'$as_ac_var'}'` = yes; then
35249   cat >>confdefs.h <<_ACEOF
35250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35251 _ACEOF
35252
35253 fi
35254 done
35255
35256     fi
35257   fi
35258
35259
35260
35261   echo "$as_me:$LINENO: checking for sincosf declaration" >&5
35262 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
35263   if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
35264     if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
35265   echo $ECHO_N "(cached) $ECHO_C" >&6
35266 else
35267
35268
35269
35270       ac_ext=cc
35271 ac_cpp='$CXXCPP $CPPFLAGS'
35272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35275
35276       cat >conftest.$ac_ext <<_ACEOF
35277 #line $LINENO "configure"
35278 /* confdefs.h.  */
35279 _ACEOF
35280 cat confdefs.h >>conftest.$ac_ext
35281 cat >>conftest.$ac_ext <<_ACEOF
35282 /* end confdefs.h.  */
35283 #include <math.h>
35284 int
35285 main ()
35286 {
35287  sincosf(0, 0, 0);
35288   ;
35289   return 0;
35290 }
35291 _ACEOF
35292 rm -f conftest.$ac_objext
35293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35294   (eval $ac_compile) 2>&5
35295   ac_status=$?
35296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297   (exit $ac_status); } &&
35298          { ac_try='test -s conftest.$ac_objext'
35299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35300   (eval $ac_try) 2>&5
35301   ac_status=$?
35302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303   (exit $ac_status); }; }; then
35304   glibcxx_cv_func_sincosf_use=yes
35305 else
35306   echo "$as_me: failed program was:" >&5
35307 sed 's/^/| /' conftest.$ac_ext >&5
35308
35309 glibcxx_cv_func_sincosf_use=no
35310 fi
35311 rm -f conftest.$ac_objext conftest.$ac_ext
35312       ac_ext=c
35313 ac_cpp='$CPP $CPPFLAGS'
35314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35317
35318
35319 fi
35320
35321   fi
35322   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
35323 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
35324
35325   if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
35326
35327 for ac_func in sincosf
35328 do
35329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35330 echo "$as_me:$LINENO: checking for $ac_func" >&5
35331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35332 if eval "test \"\${$as_ac_var+set}\" = set"; then
35333   echo $ECHO_N "(cached) $ECHO_C" >&6
35334 else
35335   if test x$gcc_no_link = xyes; then
35336   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35337 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35338    { (exit 1); exit 1; }; }
35339 fi
35340 cat >conftest.$ac_ext <<_ACEOF
35341 #line $LINENO "configure"
35342 /* confdefs.h.  */
35343 _ACEOF
35344 cat confdefs.h >>conftest.$ac_ext
35345 cat >>conftest.$ac_ext <<_ACEOF
35346 /* end confdefs.h.  */
35347 /* System header to define __stub macros and hopefully few prototypes,
35348     which can conflict with char $ac_func (); below.
35349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35350     <limits.h> exists even on freestanding compilers.  */
35351 #ifdef __STDC__
35352 # include <limits.h>
35353 #else
35354 # include <assert.h>
35355 #endif
35356 /* Override any gcc2 internal prototype to avoid an error.  */
35357 #ifdef __cplusplus
35358 extern "C"
35359 {
35360 #endif
35361 /* We use char because int might match the return type of a gcc2
35362    builtin and then its argument prototype would still apply.  */
35363 char $ac_func ();
35364 /* The GNU C library defines this for functions which it implements
35365     to always fail with ENOSYS.  Some functions are actually named
35366     something starting with __ and the normal name is an alias.  */
35367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35368 choke me
35369 #else
35370 char (*f) () = $ac_func;
35371 #endif
35372 #ifdef __cplusplus
35373 }
35374 #endif
35375
35376 int
35377 main ()
35378 {
35379 return f != $ac_func;
35380   ;
35381   return 0;
35382 }
35383 _ACEOF
35384 rm -f conftest.$ac_objext conftest$ac_exeext
35385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35386   (eval $ac_link) 2>&5
35387   ac_status=$?
35388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389   (exit $ac_status); } &&
35390          { ac_try='test -s conftest$ac_exeext'
35391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35392   (eval $ac_try) 2>&5
35393   ac_status=$?
35394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395   (exit $ac_status); }; }; then
35396   eval "$as_ac_var=yes"
35397 else
35398   echo "$as_me: failed program was:" >&5
35399 sed 's/^/| /' conftest.$ac_ext >&5
35400
35401 eval "$as_ac_var=no"
35402 fi
35403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35404 fi
35405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35407 if test `eval echo '${'$as_ac_var'}'` = yes; then
35408   cat >>confdefs.h <<_ACEOF
35409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35410 _ACEOF
35411
35412 fi
35413 done
35414
35415   else
35416
35417   echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
35418 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
35419   if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
35420     if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
35421   echo $ECHO_N "(cached) $ECHO_C" >&6
35422 else
35423
35424
35425
35426       ac_ext=cc
35427 ac_cpp='$CXXCPP $CPPFLAGS'
35428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35431
35432       cat >conftest.$ac_ext <<_ACEOF
35433 #line $LINENO "configure"
35434 /* confdefs.h.  */
35435 _ACEOF
35436 cat confdefs.h >>conftest.$ac_ext
35437 cat >>conftest.$ac_ext <<_ACEOF
35438 /* end confdefs.h.  */
35439 #include <math.h>
35440 int
35441 main ()
35442 {
35443  _sincosf(0, 0, 0);
35444   ;
35445   return 0;
35446 }
35447 _ACEOF
35448 rm -f conftest.$ac_objext
35449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35450   (eval $ac_compile) 2>&5
35451   ac_status=$?
35452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453   (exit $ac_status); } &&
35454          { ac_try='test -s conftest.$ac_objext'
35455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456   (eval $ac_try) 2>&5
35457   ac_status=$?
35458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459   (exit $ac_status); }; }; then
35460   glibcxx_cv_func__sincosf_use=yes
35461 else
35462   echo "$as_me: failed program was:" >&5
35463 sed 's/^/| /' conftest.$ac_ext >&5
35464
35465 glibcxx_cv_func__sincosf_use=no
35466 fi
35467 rm -f conftest.$ac_objext conftest.$ac_ext
35468       ac_ext=c
35469 ac_cpp='$CPP $CPPFLAGS'
35470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35473
35474
35475 fi
35476
35477   fi
35478   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
35479 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
35480
35481     if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
35482
35483 for ac_func in _sincosf
35484 do
35485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35486 echo "$as_me:$LINENO: checking for $ac_func" >&5
35487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35488 if eval "test \"\${$as_ac_var+set}\" = set"; then
35489   echo $ECHO_N "(cached) $ECHO_C" >&6
35490 else
35491   if test x$gcc_no_link = xyes; then
35492   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35494    { (exit 1); exit 1; }; }
35495 fi
35496 cat >conftest.$ac_ext <<_ACEOF
35497 #line $LINENO "configure"
35498 /* confdefs.h.  */
35499 _ACEOF
35500 cat confdefs.h >>conftest.$ac_ext
35501 cat >>conftest.$ac_ext <<_ACEOF
35502 /* end confdefs.h.  */
35503 /* System header to define __stub macros and hopefully few prototypes,
35504     which can conflict with char $ac_func (); below.
35505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35506     <limits.h> exists even on freestanding compilers.  */
35507 #ifdef __STDC__
35508 # include <limits.h>
35509 #else
35510 # include <assert.h>
35511 #endif
35512 /* Override any gcc2 internal prototype to avoid an error.  */
35513 #ifdef __cplusplus
35514 extern "C"
35515 {
35516 #endif
35517 /* We use char because int might match the return type of a gcc2
35518    builtin and then its argument prototype would still apply.  */
35519 char $ac_func ();
35520 /* The GNU C library defines this for functions which it implements
35521     to always fail with ENOSYS.  Some functions are actually named
35522     something starting with __ and the normal name is an alias.  */
35523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35524 choke me
35525 #else
35526 char (*f) () = $ac_func;
35527 #endif
35528 #ifdef __cplusplus
35529 }
35530 #endif
35531
35532 int
35533 main ()
35534 {
35535 return f != $ac_func;
35536   ;
35537   return 0;
35538 }
35539 _ACEOF
35540 rm -f conftest.$ac_objext conftest$ac_exeext
35541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35542   (eval $ac_link) 2>&5
35543   ac_status=$?
35544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35545   (exit $ac_status); } &&
35546          { ac_try='test -s conftest$ac_exeext'
35547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35548   (eval $ac_try) 2>&5
35549   ac_status=$?
35550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551   (exit $ac_status); }; }; then
35552   eval "$as_ac_var=yes"
35553 else
35554   echo "$as_me: failed program was:" >&5
35555 sed 's/^/| /' conftest.$ac_ext >&5
35556
35557 eval "$as_ac_var=no"
35558 fi
35559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35560 fi
35561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35563 if test `eval echo '${'$as_ac_var'}'` = yes; then
35564   cat >>confdefs.h <<_ACEOF
35565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35566 _ACEOF
35567
35568 fi
35569 done
35570
35571     fi
35572   fi
35573
35574
35575
35576   echo "$as_me:$LINENO: checking for finitef declaration" >&5
35577 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
35578   if test x${glibcxx_cv_func_finitef_use+set} != xset; then
35579     if test "${glibcxx_cv_func_finitef_use+set}" = set; then
35580   echo $ECHO_N "(cached) $ECHO_C" >&6
35581 else
35582
35583
35584
35585       ac_ext=cc
35586 ac_cpp='$CXXCPP $CPPFLAGS'
35587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35590
35591       cat >conftest.$ac_ext <<_ACEOF
35592 #line $LINENO "configure"
35593 /* confdefs.h.  */
35594 _ACEOF
35595 cat confdefs.h >>conftest.$ac_ext
35596 cat >>conftest.$ac_ext <<_ACEOF
35597 /* end confdefs.h.  */
35598 #include <math.h>
35599                       #ifdef HAVE_IEEEFP_H
35600                       #include <ieeefp.h>
35601                       #endif
35602
35603 int
35604 main ()
35605 {
35606  finitef(0);
35607   ;
35608   return 0;
35609 }
35610 _ACEOF
35611 rm -f conftest.$ac_objext
35612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35613   (eval $ac_compile) 2>&5
35614   ac_status=$?
35615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616   (exit $ac_status); } &&
35617          { ac_try='test -s conftest.$ac_objext'
35618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35619   (eval $ac_try) 2>&5
35620   ac_status=$?
35621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35622   (exit $ac_status); }; }; then
35623   glibcxx_cv_func_finitef_use=yes
35624 else
35625   echo "$as_me: failed program was:" >&5
35626 sed 's/^/| /' conftest.$ac_ext >&5
35627
35628 glibcxx_cv_func_finitef_use=no
35629 fi
35630 rm -f conftest.$ac_objext conftest.$ac_ext
35631       ac_ext=c
35632 ac_cpp='$CPP $CPPFLAGS'
35633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35636
35637
35638 fi
35639
35640   fi
35641   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
35642 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
35643
35644   if test x$glibcxx_cv_func_finitef_use = x"yes"; then
35645
35646 for ac_func in finitef
35647 do
35648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35649 echo "$as_me:$LINENO: checking for $ac_func" >&5
35650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35651 if eval "test \"\${$as_ac_var+set}\" = set"; then
35652   echo $ECHO_N "(cached) $ECHO_C" >&6
35653 else
35654   if test x$gcc_no_link = xyes; then
35655   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35657    { (exit 1); exit 1; }; }
35658 fi
35659 cat >conftest.$ac_ext <<_ACEOF
35660 #line $LINENO "configure"
35661 /* confdefs.h.  */
35662 _ACEOF
35663 cat confdefs.h >>conftest.$ac_ext
35664 cat >>conftest.$ac_ext <<_ACEOF
35665 /* end confdefs.h.  */
35666 /* System header to define __stub macros and hopefully few prototypes,
35667     which can conflict with char $ac_func (); below.
35668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35669     <limits.h> exists even on freestanding compilers.  */
35670 #ifdef __STDC__
35671 # include <limits.h>
35672 #else
35673 # include <assert.h>
35674 #endif
35675 /* Override any gcc2 internal prototype to avoid an error.  */
35676 #ifdef __cplusplus
35677 extern "C"
35678 {
35679 #endif
35680 /* We use char because int might match the return type of a gcc2
35681    builtin and then its argument prototype would still apply.  */
35682 char $ac_func ();
35683 /* The GNU C library defines this for functions which it implements
35684     to always fail with ENOSYS.  Some functions are actually named
35685     something starting with __ and the normal name is an alias.  */
35686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35687 choke me
35688 #else
35689 char (*f) () = $ac_func;
35690 #endif
35691 #ifdef __cplusplus
35692 }
35693 #endif
35694
35695 int
35696 main ()
35697 {
35698 return f != $ac_func;
35699   ;
35700   return 0;
35701 }
35702 _ACEOF
35703 rm -f conftest.$ac_objext conftest$ac_exeext
35704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35705   (eval $ac_link) 2>&5
35706   ac_status=$?
35707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35708   (exit $ac_status); } &&
35709          { ac_try='test -s conftest$ac_exeext'
35710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35711   (eval $ac_try) 2>&5
35712   ac_status=$?
35713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35714   (exit $ac_status); }; }; then
35715   eval "$as_ac_var=yes"
35716 else
35717   echo "$as_me: failed program was:" >&5
35718 sed 's/^/| /' conftest.$ac_ext >&5
35719
35720 eval "$as_ac_var=no"
35721 fi
35722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35723 fi
35724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35726 if test `eval echo '${'$as_ac_var'}'` = yes; then
35727   cat >>confdefs.h <<_ACEOF
35728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35729 _ACEOF
35730
35731 fi
35732 done
35733
35734   else
35735
35736   echo "$as_me:$LINENO: checking for _finitef declaration" >&5
35737 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
35738   if test x${glibcxx_cv_func__finitef_use+set} != xset; then
35739     if test "${glibcxx_cv_func__finitef_use+set}" = set; then
35740   echo $ECHO_N "(cached) $ECHO_C" >&6
35741 else
35742
35743
35744
35745       ac_ext=cc
35746 ac_cpp='$CXXCPP $CPPFLAGS'
35747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35750
35751       cat >conftest.$ac_ext <<_ACEOF
35752 #line $LINENO "configure"
35753 /* confdefs.h.  */
35754 _ACEOF
35755 cat confdefs.h >>conftest.$ac_ext
35756 cat >>conftest.$ac_ext <<_ACEOF
35757 /* end confdefs.h.  */
35758 #include <math.h>
35759                       #ifdef HAVE_IEEEFP_H
35760                       #include <ieeefp.h>
35761                       #endif
35762
35763 int
35764 main ()
35765 {
35766  _finitef(0);
35767   ;
35768   return 0;
35769 }
35770 _ACEOF
35771 rm -f conftest.$ac_objext
35772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35773   (eval $ac_compile) 2>&5
35774   ac_status=$?
35775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35776   (exit $ac_status); } &&
35777          { ac_try='test -s conftest.$ac_objext'
35778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35779   (eval $ac_try) 2>&5
35780   ac_status=$?
35781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782   (exit $ac_status); }; }; then
35783   glibcxx_cv_func__finitef_use=yes
35784 else
35785   echo "$as_me: failed program was:" >&5
35786 sed 's/^/| /' conftest.$ac_ext >&5
35787
35788 glibcxx_cv_func__finitef_use=no
35789 fi
35790 rm -f conftest.$ac_objext conftest.$ac_ext
35791       ac_ext=c
35792 ac_cpp='$CPP $CPPFLAGS'
35793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35796
35797
35798 fi
35799
35800   fi
35801   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
35802 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
35803
35804     if test x$glibcxx_cv_func__finitef_use = x"yes"; then
35805
35806 for ac_func in _finitef
35807 do
35808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35809 echo "$as_me:$LINENO: checking for $ac_func" >&5
35810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35811 if eval "test \"\${$as_ac_var+set}\" = set"; then
35812   echo $ECHO_N "(cached) $ECHO_C" >&6
35813 else
35814   if test x$gcc_no_link = xyes; then
35815   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35817    { (exit 1); exit 1; }; }
35818 fi
35819 cat >conftest.$ac_ext <<_ACEOF
35820 #line $LINENO "configure"
35821 /* confdefs.h.  */
35822 _ACEOF
35823 cat confdefs.h >>conftest.$ac_ext
35824 cat >>conftest.$ac_ext <<_ACEOF
35825 /* end confdefs.h.  */
35826 /* System header to define __stub macros and hopefully few prototypes,
35827     which can conflict with char $ac_func (); below.
35828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35829     <limits.h> exists even on freestanding compilers.  */
35830 #ifdef __STDC__
35831 # include <limits.h>
35832 #else
35833 # include <assert.h>
35834 #endif
35835 /* Override any gcc2 internal prototype to avoid an error.  */
35836 #ifdef __cplusplus
35837 extern "C"
35838 {
35839 #endif
35840 /* We use char because int might match the return type of a gcc2
35841    builtin and then its argument prototype would still apply.  */
35842 char $ac_func ();
35843 /* The GNU C library defines this for functions which it implements
35844     to always fail with ENOSYS.  Some functions are actually named
35845     something starting with __ and the normal name is an alias.  */
35846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35847 choke me
35848 #else
35849 char (*f) () = $ac_func;
35850 #endif
35851 #ifdef __cplusplus
35852 }
35853 #endif
35854
35855 int
35856 main ()
35857 {
35858 return f != $ac_func;
35859   ;
35860   return 0;
35861 }
35862 _ACEOF
35863 rm -f conftest.$ac_objext conftest$ac_exeext
35864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35865   (eval $ac_link) 2>&5
35866   ac_status=$?
35867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868   (exit $ac_status); } &&
35869          { ac_try='test -s conftest$ac_exeext'
35870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35871   (eval $ac_try) 2>&5
35872   ac_status=$?
35873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35874   (exit $ac_status); }; }; then
35875   eval "$as_ac_var=yes"
35876 else
35877   echo "$as_me: failed program was:" >&5
35878 sed 's/^/| /' conftest.$ac_ext >&5
35879
35880 eval "$as_ac_var=no"
35881 fi
35882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35883 fi
35884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35886 if test `eval echo '${'$as_ac_var'}'` = yes; then
35887   cat >>confdefs.h <<_ACEOF
35888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35889 _ACEOF
35890
35891 fi
35892 done
35893
35894     fi
35895   fi
35896
35897
35898
35899   echo "$as_me:$LINENO: checking for long double trig functions" >&5
35900 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
35901   if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
35902   echo $ECHO_N "(cached) $ECHO_C" >&6
35903 else
35904
35905
35906
35907     ac_ext=cc
35908 ac_cpp='$CXXCPP $CPPFLAGS'
35909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35912
35913     cat >conftest.$ac_ext <<_ACEOF
35914 #line $LINENO "configure"
35915 /* confdefs.h.  */
35916 _ACEOF
35917 cat confdefs.h >>conftest.$ac_ext
35918 cat >>conftest.$ac_ext <<_ACEOF
35919 /* end confdefs.h.  */
35920 #include <math.h>
35921 int
35922 main ()
35923 {
35924  `for x in acosl asinl atanl \
35925                                           cosl sinl tanl \
35926                                           coshl sinhl tanhl; do echo "$x (0);"; done`
35927   ;
35928   return 0;
35929 }
35930 _ACEOF
35931 rm -f conftest.$ac_objext
35932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35933   (eval $ac_compile) 2>&5
35934   ac_status=$?
35935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936   (exit $ac_status); } &&
35937          { ac_try='test -s conftest.$ac_objext'
35938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35939   (eval $ac_try) 2>&5
35940   ac_status=$?
35941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942   (exit $ac_status); }; }; then
35943   glibcxx_cv_func_long_double_trig_use=yes
35944 else
35945   echo "$as_me: failed program was:" >&5
35946 sed 's/^/| /' conftest.$ac_ext >&5
35947
35948 glibcxx_cv_func_long_double_trig_use=no
35949 fi
35950 rm -f conftest.$ac_objext conftest.$ac_ext
35951     ac_ext=c
35952 ac_cpp='$CPP $CPPFLAGS'
35953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35956
35957 fi
35958
35959   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
35960 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
35961   if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971 for ac_func in acosl asinl atanl \
35972                                           cosl sinl tanl \
35973                                           coshl sinhl tanhl
35974 do
35975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35976 echo "$as_me:$LINENO: checking for $ac_func" >&5
35977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35978 if eval "test \"\${$as_ac_var+set}\" = set"; then
35979   echo $ECHO_N "(cached) $ECHO_C" >&6
35980 else
35981   if test x$gcc_no_link = xyes; then
35982   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35984    { (exit 1); exit 1; }; }
35985 fi
35986 cat >conftest.$ac_ext <<_ACEOF
35987 #line $LINENO "configure"
35988 /* confdefs.h.  */
35989 _ACEOF
35990 cat confdefs.h >>conftest.$ac_ext
35991 cat >>conftest.$ac_ext <<_ACEOF
35992 /* end confdefs.h.  */
35993 /* System header to define __stub macros and hopefully few prototypes,
35994     which can conflict with char $ac_func (); below.
35995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35996     <limits.h> exists even on freestanding compilers.  */
35997 #ifdef __STDC__
35998 # include <limits.h>
35999 #else
36000 # include <assert.h>
36001 #endif
36002 /* Override any gcc2 internal prototype to avoid an error.  */
36003 #ifdef __cplusplus
36004 extern "C"
36005 {
36006 #endif
36007 /* We use char because int might match the return type of a gcc2
36008    builtin and then its argument prototype would still apply.  */
36009 char $ac_func ();
36010 /* The GNU C library defines this for functions which it implements
36011     to always fail with ENOSYS.  Some functions are actually named
36012     something starting with __ and the normal name is an alias.  */
36013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36014 choke me
36015 #else
36016 char (*f) () = $ac_func;
36017 #endif
36018 #ifdef __cplusplus
36019 }
36020 #endif
36021
36022 int
36023 main ()
36024 {
36025 return f != $ac_func;
36026   ;
36027   return 0;
36028 }
36029 _ACEOF
36030 rm -f conftest.$ac_objext conftest$ac_exeext
36031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36032   (eval $ac_link) 2>&5
36033   ac_status=$?
36034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035   (exit $ac_status); } &&
36036          { ac_try='test -s conftest$ac_exeext'
36037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36038   (eval $ac_try) 2>&5
36039   ac_status=$?
36040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36041   (exit $ac_status); }; }; then
36042   eval "$as_ac_var=yes"
36043 else
36044   echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36046
36047 eval "$as_ac_var=no"
36048 fi
36049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36050 fi
36051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36053 if test `eval echo '${'$as_ac_var'}'` = yes; then
36054   cat >>confdefs.h <<_ACEOF
36055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36056 _ACEOF
36057
36058 fi
36059 done
36060
36061   fi
36062
36063
36064   echo "$as_me:$LINENO: checking for long double round functions" >&5
36065 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
36066   if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
36067   echo $ECHO_N "(cached) $ECHO_C" >&6
36068 else
36069
36070
36071
36072     ac_ext=cc
36073 ac_cpp='$CXXCPP $CPPFLAGS'
36074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36077
36078     cat >conftest.$ac_ext <<_ACEOF
36079 #line $LINENO "configure"
36080 /* confdefs.h.  */
36081 _ACEOF
36082 cat confdefs.h >>conftest.$ac_ext
36083 cat >>conftest.$ac_ext <<_ACEOF
36084 /* end confdefs.h.  */
36085 #include <math.h>
36086 int
36087 main ()
36088 {
36089  `for x in ceill floorl; do echo "$x (0);"; done`
36090   ;
36091   return 0;
36092 }
36093 _ACEOF
36094 rm -f conftest.$ac_objext
36095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36096   (eval $ac_compile) 2>&5
36097   ac_status=$?
36098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099   (exit $ac_status); } &&
36100          { ac_try='test -s conftest.$ac_objext'
36101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36102   (eval $ac_try) 2>&5
36103   ac_status=$?
36104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36105   (exit $ac_status); }; }; then
36106   glibcxx_cv_func_long_double_round_use=yes
36107 else
36108   echo "$as_me: failed program was:" >&5
36109 sed 's/^/| /' conftest.$ac_ext >&5
36110
36111 glibcxx_cv_func_long_double_round_use=no
36112 fi
36113 rm -f conftest.$ac_objext conftest.$ac_ext
36114     ac_ext=c
36115 ac_cpp='$CPP $CPPFLAGS'
36116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36119
36120 fi
36121
36122   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
36123 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
36124   if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
36125
36126
36127 for ac_func in ceill floorl
36128 do
36129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36130 echo "$as_me:$LINENO: checking for $ac_func" >&5
36131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36132 if eval "test \"\${$as_ac_var+set}\" = set"; then
36133   echo $ECHO_N "(cached) $ECHO_C" >&6
36134 else
36135   if test x$gcc_no_link = xyes; then
36136   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36138    { (exit 1); exit 1; }; }
36139 fi
36140 cat >conftest.$ac_ext <<_ACEOF
36141 #line $LINENO "configure"
36142 /* confdefs.h.  */
36143 _ACEOF
36144 cat confdefs.h >>conftest.$ac_ext
36145 cat >>conftest.$ac_ext <<_ACEOF
36146 /* end confdefs.h.  */
36147 /* System header to define __stub macros and hopefully few prototypes,
36148     which can conflict with char $ac_func (); below.
36149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36150     <limits.h> exists even on freestanding compilers.  */
36151 #ifdef __STDC__
36152 # include <limits.h>
36153 #else
36154 # include <assert.h>
36155 #endif
36156 /* Override any gcc2 internal prototype to avoid an error.  */
36157 #ifdef __cplusplus
36158 extern "C"
36159 {
36160 #endif
36161 /* We use char because int might match the return type of a gcc2
36162    builtin and then its argument prototype would still apply.  */
36163 char $ac_func ();
36164 /* The GNU C library defines this for functions which it implements
36165     to always fail with ENOSYS.  Some functions are actually named
36166     something starting with __ and the normal name is an alias.  */
36167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36168 choke me
36169 #else
36170 char (*f) () = $ac_func;
36171 #endif
36172 #ifdef __cplusplus
36173 }
36174 #endif
36175
36176 int
36177 main ()
36178 {
36179 return f != $ac_func;
36180   ;
36181   return 0;
36182 }
36183 _ACEOF
36184 rm -f conftest.$ac_objext conftest$ac_exeext
36185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36186   (eval $ac_link) 2>&5
36187   ac_status=$?
36188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189   (exit $ac_status); } &&
36190          { ac_try='test -s conftest$ac_exeext'
36191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36192   (eval $ac_try) 2>&5
36193   ac_status=$?
36194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195   (exit $ac_status); }; }; then
36196   eval "$as_ac_var=yes"
36197 else
36198   echo "$as_me: failed program was:" >&5
36199 sed 's/^/| /' conftest.$ac_ext >&5
36200
36201 eval "$as_ac_var=no"
36202 fi
36203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36204 fi
36205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36207 if test `eval echo '${'$as_ac_var'}'` = yes; then
36208   cat >>confdefs.h <<_ACEOF
36209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36210 _ACEOF
36211
36212 fi
36213 done
36214
36215   fi
36216
36217
36218
36219   echo "$as_me:$LINENO: checking for isnanl declaration" >&5
36220 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
36221   if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
36222     if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
36223   echo $ECHO_N "(cached) $ECHO_C" >&6
36224 else
36225
36226
36227
36228       ac_ext=cc
36229 ac_cpp='$CXXCPP $CPPFLAGS'
36230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36233
36234       cat >conftest.$ac_ext <<_ACEOF
36235 #line $LINENO "configure"
36236 /* confdefs.h.  */
36237 _ACEOF
36238 cat confdefs.h >>conftest.$ac_ext
36239 cat >>conftest.$ac_ext <<_ACEOF
36240 /* end confdefs.h.  */
36241 #include <math.h>
36242                       #ifdef HAVE_IEEEFP_H
36243                       #include <ieeefp.h>
36244                       #endif
36245
36246 int
36247 main ()
36248 {
36249  isnanl(0);
36250   ;
36251   return 0;
36252 }
36253 _ACEOF
36254 rm -f conftest.$ac_objext
36255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36256   (eval $ac_compile) 2>&5
36257   ac_status=$?
36258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259   (exit $ac_status); } &&
36260          { ac_try='test -s conftest.$ac_objext'
36261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36262   (eval $ac_try) 2>&5
36263   ac_status=$?
36264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265   (exit $ac_status); }; }; then
36266   glibcxx_cv_func_isnanl_use=yes
36267 else
36268   echo "$as_me: failed program was:" >&5
36269 sed 's/^/| /' conftest.$ac_ext >&5
36270
36271 glibcxx_cv_func_isnanl_use=no
36272 fi
36273 rm -f conftest.$ac_objext conftest.$ac_ext
36274       ac_ext=c
36275 ac_cpp='$CPP $CPPFLAGS'
36276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36279
36280
36281 fi
36282
36283   fi
36284   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
36285 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
36286
36287   if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
36288
36289 for ac_func in isnanl
36290 do
36291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36292 echo "$as_me:$LINENO: checking for $ac_func" >&5
36293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36294 if eval "test \"\${$as_ac_var+set}\" = set"; then
36295   echo $ECHO_N "(cached) $ECHO_C" >&6
36296 else
36297   if test x$gcc_no_link = xyes; then
36298   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36300    { (exit 1); exit 1; }; }
36301 fi
36302 cat >conftest.$ac_ext <<_ACEOF
36303 #line $LINENO "configure"
36304 /* confdefs.h.  */
36305 _ACEOF
36306 cat confdefs.h >>conftest.$ac_ext
36307 cat >>conftest.$ac_ext <<_ACEOF
36308 /* end confdefs.h.  */
36309 /* System header to define __stub macros and hopefully few prototypes,
36310     which can conflict with char $ac_func (); below.
36311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36312     <limits.h> exists even on freestanding compilers.  */
36313 #ifdef __STDC__
36314 # include <limits.h>
36315 #else
36316 # include <assert.h>
36317 #endif
36318 /* Override any gcc2 internal prototype to avoid an error.  */
36319 #ifdef __cplusplus
36320 extern "C"
36321 {
36322 #endif
36323 /* We use char because int might match the return type of a gcc2
36324    builtin and then its argument prototype would still apply.  */
36325 char $ac_func ();
36326 /* The GNU C library defines this for functions which it implements
36327     to always fail with ENOSYS.  Some functions are actually named
36328     something starting with __ and the normal name is an alias.  */
36329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36330 choke me
36331 #else
36332 char (*f) () = $ac_func;
36333 #endif
36334 #ifdef __cplusplus
36335 }
36336 #endif
36337
36338 int
36339 main ()
36340 {
36341 return f != $ac_func;
36342   ;
36343   return 0;
36344 }
36345 _ACEOF
36346 rm -f conftest.$ac_objext conftest$ac_exeext
36347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36348   (eval $ac_link) 2>&5
36349   ac_status=$?
36350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351   (exit $ac_status); } &&
36352          { ac_try='test -s conftest$ac_exeext'
36353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36354   (eval $ac_try) 2>&5
36355   ac_status=$?
36356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36357   (exit $ac_status); }; }; then
36358   eval "$as_ac_var=yes"
36359 else
36360   echo "$as_me: failed program was:" >&5
36361 sed 's/^/| /' conftest.$ac_ext >&5
36362
36363 eval "$as_ac_var=no"
36364 fi
36365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36366 fi
36367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36369 if test `eval echo '${'$as_ac_var'}'` = yes; then
36370   cat >>confdefs.h <<_ACEOF
36371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36372 _ACEOF
36373
36374 fi
36375 done
36376
36377   else
36378
36379   echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
36380 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
36381   if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
36382     if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
36383   echo $ECHO_N "(cached) $ECHO_C" >&6
36384 else
36385
36386
36387
36388       ac_ext=cc
36389 ac_cpp='$CXXCPP $CPPFLAGS'
36390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36393
36394       cat >conftest.$ac_ext <<_ACEOF
36395 #line $LINENO "configure"
36396 /* confdefs.h.  */
36397 _ACEOF
36398 cat confdefs.h >>conftest.$ac_ext
36399 cat >>conftest.$ac_ext <<_ACEOF
36400 /* end confdefs.h.  */
36401 #include <math.h>
36402                       #ifdef HAVE_IEEEFP_H
36403                       #include <ieeefp.h>
36404                       #endif
36405
36406 int
36407 main ()
36408 {
36409  _isnanl(0);
36410   ;
36411   return 0;
36412 }
36413 _ACEOF
36414 rm -f conftest.$ac_objext
36415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36416   (eval $ac_compile) 2>&5
36417   ac_status=$?
36418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419   (exit $ac_status); } &&
36420          { ac_try='test -s conftest.$ac_objext'
36421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36422   (eval $ac_try) 2>&5
36423   ac_status=$?
36424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425   (exit $ac_status); }; }; then
36426   glibcxx_cv_func__isnanl_use=yes
36427 else
36428   echo "$as_me: failed program was:" >&5
36429 sed 's/^/| /' conftest.$ac_ext >&5
36430
36431 glibcxx_cv_func__isnanl_use=no
36432 fi
36433 rm -f conftest.$ac_objext conftest.$ac_ext
36434       ac_ext=c
36435 ac_cpp='$CPP $CPPFLAGS'
36436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36439
36440
36441 fi
36442
36443   fi
36444   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
36445 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
36446
36447     if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
36448
36449 for ac_func in _isnanl
36450 do
36451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36452 echo "$as_me:$LINENO: checking for $ac_func" >&5
36453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36454 if eval "test \"\${$as_ac_var+set}\" = set"; then
36455   echo $ECHO_N "(cached) $ECHO_C" >&6
36456 else
36457   if test x$gcc_no_link = xyes; then
36458   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36460    { (exit 1); exit 1; }; }
36461 fi
36462 cat >conftest.$ac_ext <<_ACEOF
36463 #line $LINENO "configure"
36464 /* confdefs.h.  */
36465 _ACEOF
36466 cat confdefs.h >>conftest.$ac_ext
36467 cat >>conftest.$ac_ext <<_ACEOF
36468 /* end confdefs.h.  */
36469 /* System header to define __stub macros and hopefully few prototypes,
36470     which can conflict with char $ac_func (); below.
36471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36472     <limits.h> exists even on freestanding compilers.  */
36473 #ifdef __STDC__
36474 # include <limits.h>
36475 #else
36476 # include <assert.h>
36477 #endif
36478 /* Override any gcc2 internal prototype to avoid an error.  */
36479 #ifdef __cplusplus
36480 extern "C"
36481 {
36482 #endif
36483 /* We use char because int might match the return type of a gcc2
36484    builtin and then its argument prototype would still apply.  */
36485 char $ac_func ();
36486 /* The GNU C library defines this for functions which it implements
36487     to always fail with ENOSYS.  Some functions are actually named
36488     something starting with __ and the normal name is an alias.  */
36489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36490 choke me
36491 #else
36492 char (*f) () = $ac_func;
36493 #endif
36494 #ifdef __cplusplus
36495 }
36496 #endif
36497
36498 int
36499 main ()
36500 {
36501 return f != $ac_func;
36502   ;
36503   return 0;
36504 }
36505 _ACEOF
36506 rm -f conftest.$ac_objext conftest$ac_exeext
36507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36508   (eval $ac_link) 2>&5
36509   ac_status=$?
36510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511   (exit $ac_status); } &&
36512          { ac_try='test -s conftest$ac_exeext'
36513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36514   (eval $ac_try) 2>&5
36515   ac_status=$?
36516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517   (exit $ac_status); }; }; then
36518   eval "$as_ac_var=yes"
36519 else
36520   echo "$as_me: failed program was:" >&5
36521 sed 's/^/| /' conftest.$ac_ext >&5
36522
36523 eval "$as_ac_var=no"
36524 fi
36525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36526 fi
36527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36529 if test `eval echo '${'$as_ac_var'}'` = yes; then
36530   cat >>confdefs.h <<_ACEOF
36531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36532 _ACEOF
36533
36534 fi
36535 done
36536
36537     fi
36538   fi
36539
36540
36541
36542   echo "$as_me:$LINENO: checking for isinfl declaration" >&5
36543 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
36544   if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
36545     if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
36546   echo $ECHO_N "(cached) $ECHO_C" >&6
36547 else
36548
36549
36550
36551       ac_ext=cc
36552 ac_cpp='$CXXCPP $CPPFLAGS'
36553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36556
36557       cat >conftest.$ac_ext <<_ACEOF
36558 #line $LINENO "configure"
36559 /* confdefs.h.  */
36560 _ACEOF
36561 cat confdefs.h >>conftest.$ac_ext
36562 cat >>conftest.$ac_ext <<_ACEOF
36563 /* end confdefs.h.  */
36564 #include <math.h>
36565                       #ifdef HAVE_IEEEFP_H
36566                       #include <ieeefp.h>
36567                       #endif
36568
36569 int
36570 main ()
36571 {
36572  isinfl(0);
36573   ;
36574   return 0;
36575 }
36576 _ACEOF
36577 rm -f conftest.$ac_objext
36578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36579   (eval $ac_compile) 2>&5
36580   ac_status=$?
36581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582   (exit $ac_status); } &&
36583          { ac_try='test -s conftest.$ac_objext'
36584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585   (eval $ac_try) 2>&5
36586   ac_status=$?
36587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588   (exit $ac_status); }; }; then
36589   glibcxx_cv_func_isinfl_use=yes
36590 else
36591   echo "$as_me: failed program was:" >&5
36592 sed 's/^/| /' conftest.$ac_ext >&5
36593
36594 glibcxx_cv_func_isinfl_use=no
36595 fi
36596 rm -f conftest.$ac_objext conftest.$ac_ext
36597       ac_ext=c
36598 ac_cpp='$CPP $CPPFLAGS'
36599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36602
36603
36604 fi
36605
36606   fi
36607   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
36608 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
36609
36610   if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
36611
36612 for ac_func in isinfl
36613 do
36614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36615 echo "$as_me:$LINENO: checking for $ac_func" >&5
36616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36617 if eval "test \"\${$as_ac_var+set}\" = set"; then
36618   echo $ECHO_N "(cached) $ECHO_C" >&6
36619 else
36620   if test x$gcc_no_link = xyes; then
36621   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36623    { (exit 1); exit 1; }; }
36624 fi
36625 cat >conftest.$ac_ext <<_ACEOF
36626 #line $LINENO "configure"
36627 /* confdefs.h.  */
36628 _ACEOF
36629 cat confdefs.h >>conftest.$ac_ext
36630 cat >>conftest.$ac_ext <<_ACEOF
36631 /* end confdefs.h.  */
36632 /* System header to define __stub macros and hopefully few prototypes,
36633     which can conflict with char $ac_func (); below.
36634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36635     <limits.h> exists even on freestanding compilers.  */
36636 #ifdef __STDC__
36637 # include <limits.h>
36638 #else
36639 # include <assert.h>
36640 #endif
36641 /* Override any gcc2 internal prototype to avoid an error.  */
36642 #ifdef __cplusplus
36643 extern "C"
36644 {
36645 #endif
36646 /* We use char because int might match the return type of a gcc2
36647    builtin and then its argument prototype would still apply.  */
36648 char $ac_func ();
36649 /* The GNU C library defines this for functions which it implements
36650     to always fail with ENOSYS.  Some functions are actually named
36651     something starting with __ and the normal name is an alias.  */
36652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36653 choke me
36654 #else
36655 char (*f) () = $ac_func;
36656 #endif
36657 #ifdef __cplusplus
36658 }
36659 #endif
36660
36661 int
36662 main ()
36663 {
36664 return f != $ac_func;
36665   ;
36666   return 0;
36667 }
36668 _ACEOF
36669 rm -f conftest.$ac_objext conftest$ac_exeext
36670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36671   (eval $ac_link) 2>&5
36672   ac_status=$?
36673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674   (exit $ac_status); } &&
36675          { ac_try='test -s conftest$ac_exeext'
36676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36677   (eval $ac_try) 2>&5
36678   ac_status=$?
36679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680   (exit $ac_status); }; }; then
36681   eval "$as_ac_var=yes"
36682 else
36683   echo "$as_me: failed program was:" >&5
36684 sed 's/^/| /' conftest.$ac_ext >&5
36685
36686 eval "$as_ac_var=no"
36687 fi
36688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36689 fi
36690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36692 if test `eval echo '${'$as_ac_var'}'` = yes; then
36693   cat >>confdefs.h <<_ACEOF
36694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36695 _ACEOF
36696
36697 fi
36698 done
36699
36700   else
36701
36702   echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
36703 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
36704   if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
36705     if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
36706   echo $ECHO_N "(cached) $ECHO_C" >&6
36707 else
36708
36709
36710
36711       ac_ext=cc
36712 ac_cpp='$CXXCPP $CPPFLAGS'
36713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36716
36717       cat >conftest.$ac_ext <<_ACEOF
36718 #line $LINENO "configure"
36719 /* confdefs.h.  */
36720 _ACEOF
36721 cat confdefs.h >>conftest.$ac_ext
36722 cat >>conftest.$ac_ext <<_ACEOF
36723 /* end confdefs.h.  */
36724 #include <math.h>
36725                       #ifdef HAVE_IEEEFP_H
36726                       #include <ieeefp.h>
36727                       #endif
36728
36729 int
36730 main ()
36731 {
36732  _isinfl(0);
36733   ;
36734   return 0;
36735 }
36736 _ACEOF
36737 rm -f conftest.$ac_objext
36738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36739   (eval $ac_compile) 2>&5
36740   ac_status=$?
36741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742   (exit $ac_status); } &&
36743          { ac_try='test -s conftest.$ac_objext'
36744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36745   (eval $ac_try) 2>&5
36746   ac_status=$?
36747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748   (exit $ac_status); }; }; then
36749   glibcxx_cv_func__isinfl_use=yes
36750 else
36751   echo "$as_me: failed program was:" >&5
36752 sed 's/^/| /' conftest.$ac_ext >&5
36753
36754 glibcxx_cv_func__isinfl_use=no
36755 fi
36756 rm -f conftest.$ac_objext conftest.$ac_ext
36757       ac_ext=c
36758 ac_cpp='$CPP $CPPFLAGS'
36759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36762
36763
36764 fi
36765
36766   fi
36767   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
36768 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
36769
36770     if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
36771
36772 for ac_func in _isinfl
36773 do
36774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36775 echo "$as_me:$LINENO: checking for $ac_func" >&5
36776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36777 if eval "test \"\${$as_ac_var+set}\" = set"; then
36778   echo $ECHO_N "(cached) $ECHO_C" >&6
36779 else
36780   if test x$gcc_no_link = xyes; then
36781   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36782 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36783    { (exit 1); exit 1; }; }
36784 fi
36785 cat >conftest.$ac_ext <<_ACEOF
36786 #line $LINENO "configure"
36787 /* confdefs.h.  */
36788 _ACEOF
36789 cat confdefs.h >>conftest.$ac_ext
36790 cat >>conftest.$ac_ext <<_ACEOF
36791 /* end confdefs.h.  */
36792 /* System header to define __stub macros and hopefully few prototypes,
36793     which can conflict with char $ac_func (); below.
36794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36795     <limits.h> exists even on freestanding compilers.  */
36796 #ifdef __STDC__
36797 # include <limits.h>
36798 #else
36799 # include <assert.h>
36800 #endif
36801 /* Override any gcc2 internal prototype to avoid an error.  */
36802 #ifdef __cplusplus
36803 extern "C"
36804 {
36805 #endif
36806 /* We use char because int might match the return type of a gcc2
36807    builtin and then its argument prototype would still apply.  */
36808 char $ac_func ();
36809 /* The GNU C library defines this for functions which it implements
36810     to always fail with ENOSYS.  Some functions are actually named
36811     something starting with __ and the normal name is an alias.  */
36812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36813 choke me
36814 #else
36815 char (*f) () = $ac_func;
36816 #endif
36817 #ifdef __cplusplus
36818 }
36819 #endif
36820
36821 int
36822 main ()
36823 {
36824 return f != $ac_func;
36825   ;
36826   return 0;
36827 }
36828 _ACEOF
36829 rm -f conftest.$ac_objext conftest$ac_exeext
36830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36831   (eval $ac_link) 2>&5
36832   ac_status=$?
36833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36834   (exit $ac_status); } &&
36835          { ac_try='test -s conftest$ac_exeext'
36836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36837   (eval $ac_try) 2>&5
36838   ac_status=$?
36839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840   (exit $ac_status); }; }; then
36841   eval "$as_ac_var=yes"
36842 else
36843   echo "$as_me: failed program was:" >&5
36844 sed 's/^/| /' conftest.$ac_ext >&5
36845
36846 eval "$as_ac_var=no"
36847 fi
36848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36849 fi
36850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36852 if test `eval echo '${'$as_ac_var'}'` = yes; then
36853   cat >>confdefs.h <<_ACEOF
36854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36855 _ACEOF
36856
36857 fi
36858 done
36859
36860     fi
36861   fi
36862
36863
36864
36865   echo "$as_me:$LINENO: checking for copysignl declaration" >&5
36866 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
36867   if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
36868     if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
36869   echo $ECHO_N "(cached) $ECHO_C" >&6
36870 else
36871
36872
36873
36874       ac_ext=cc
36875 ac_cpp='$CXXCPP $CPPFLAGS'
36876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36879
36880       cat >conftest.$ac_ext <<_ACEOF
36881 #line $LINENO "configure"
36882 /* confdefs.h.  */
36883 _ACEOF
36884 cat confdefs.h >>conftest.$ac_ext
36885 cat >>conftest.$ac_ext <<_ACEOF
36886 /* end confdefs.h.  */
36887 #include <math.h>
36888 int
36889 main ()
36890 {
36891  copysignl(0, 0);
36892   ;
36893   return 0;
36894 }
36895 _ACEOF
36896 rm -f conftest.$ac_objext
36897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36898   (eval $ac_compile) 2>&5
36899   ac_status=$?
36900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901   (exit $ac_status); } &&
36902          { ac_try='test -s conftest.$ac_objext'
36903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36904   (eval $ac_try) 2>&5
36905   ac_status=$?
36906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907   (exit $ac_status); }; }; then
36908   glibcxx_cv_func_copysignl_use=yes
36909 else
36910   echo "$as_me: failed program was:" >&5
36911 sed 's/^/| /' conftest.$ac_ext >&5
36912
36913 glibcxx_cv_func_copysignl_use=no
36914 fi
36915 rm -f conftest.$ac_objext conftest.$ac_ext
36916       ac_ext=c
36917 ac_cpp='$CPP $CPPFLAGS'
36918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36921
36922
36923 fi
36924
36925   fi
36926   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
36927 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
36928
36929   if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
36930
36931 for ac_func in copysignl
36932 do
36933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36934 echo "$as_me:$LINENO: checking for $ac_func" >&5
36935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36936 if eval "test \"\${$as_ac_var+set}\" = set"; then
36937   echo $ECHO_N "(cached) $ECHO_C" >&6
36938 else
36939   if test x$gcc_no_link = xyes; then
36940   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36941 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36942    { (exit 1); exit 1; }; }
36943 fi
36944 cat >conftest.$ac_ext <<_ACEOF
36945 #line $LINENO "configure"
36946 /* confdefs.h.  */
36947 _ACEOF
36948 cat confdefs.h >>conftest.$ac_ext
36949 cat >>conftest.$ac_ext <<_ACEOF
36950 /* end confdefs.h.  */
36951 /* System header to define __stub macros and hopefully few prototypes,
36952     which can conflict with char $ac_func (); below.
36953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36954     <limits.h> exists even on freestanding compilers.  */
36955 #ifdef __STDC__
36956 # include <limits.h>
36957 #else
36958 # include <assert.h>
36959 #endif
36960 /* Override any gcc2 internal prototype to avoid an error.  */
36961 #ifdef __cplusplus
36962 extern "C"
36963 {
36964 #endif
36965 /* We use char because int might match the return type of a gcc2
36966    builtin and then its argument prototype would still apply.  */
36967 char $ac_func ();
36968 /* The GNU C library defines this for functions which it implements
36969     to always fail with ENOSYS.  Some functions are actually named
36970     something starting with __ and the normal name is an alias.  */
36971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36972 choke me
36973 #else
36974 char (*f) () = $ac_func;
36975 #endif
36976 #ifdef __cplusplus
36977 }
36978 #endif
36979
36980 int
36981 main ()
36982 {
36983 return f != $ac_func;
36984   ;
36985   return 0;
36986 }
36987 _ACEOF
36988 rm -f conftest.$ac_objext conftest$ac_exeext
36989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36990   (eval $ac_link) 2>&5
36991   ac_status=$?
36992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993   (exit $ac_status); } &&
36994          { ac_try='test -s conftest$ac_exeext'
36995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36996   (eval $ac_try) 2>&5
36997   ac_status=$?
36998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999   (exit $ac_status); }; }; then
37000   eval "$as_ac_var=yes"
37001 else
37002   echo "$as_me: failed program was:" >&5
37003 sed 's/^/| /' conftest.$ac_ext >&5
37004
37005 eval "$as_ac_var=no"
37006 fi
37007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37008 fi
37009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37011 if test `eval echo '${'$as_ac_var'}'` = yes; then
37012   cat >>confdefs.h <<_ACEOF
37013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37014 _ACEOF
37015
37016 fi
37017 done
37018
37019   else
37020
37021   echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
37022 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
37023   if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
37024     if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
37025   echo $ECHO_N "(cached) $ECHO_C" >&6
37026 else
37027
37028
37029
37030       ac_ext=cc
37031 ac_cpp='$CXXCPP $CPPFLAGS'
37032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37035
37036       cat >conftest.$ac_ext <<_ACEOF
37037 #line $LINENO "configure"
37038 /* confdefs.h.  */
37039 _ACEOF
37040 cat confdefs.h >>conftest.$ac_ext
37041 cat >>conftest.$ac_ext <<_ACEOF
37042 /* end confdefs.h.  */
37043 #include <math.h>
37044 int
37045 main ()
37046 {
37047  _copysignl(0, 0);
37048   ;
37049   return 0;
37050 }
37051 _ACEOF
37052 rm -f conftest.$ac_objext
37053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37054   (eval $ac_compile) 2>&5
37055   ac_status=$?
37056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057   (exit $ac_status); } &&
37058          { ac_try='test -s conftest.$ac_objext'
37059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37060   (eval $ac_try) 2>&5
37061   ac_status=$?
37062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063   (exit $ac_status); }; }; then
37064   glibcxx_cv_func__copysignl_use=yes
37065 else
37066   echo "$as_me: failed program was:" >&5
37067 sed 's/^/| /' conftest.$ac_ext >&5
37068
37069 glibcxx_cv_func__copysignl_use=no
37070 fi
37071 rm -f conftest.$ac_objext conftest.$ac_ext
37072       ac_ext=c
37073 ac_cpp='$CPP $CPPFLAGS'
37074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37077
37078
37079 fi
37080
37081   fi
37082   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
37083 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
37084
37085     if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
37086
37087 for ac_func in _copysignl
37088 do
37089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37090 echo "$as_me:$LINENO: checking for $ac_func" >&5
37091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37092 if eval "test \"\${$as_ac_var+set}\" = set"; then
37093   echo $ECHO_N "(cached) $ECHO_C" >&6
37094 else
37095   if test x$gcc_no_link = xyes; then
37096   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37098    { (exit 1); exit 1; }; }
37099 fi
37100 cat >conftest.$ac_ext <<_ACEOF
37101 #line $LINENO "configure"
37102 /* confdefs.h.  */
37103 _ACEOF
37104 cat confdefs.h >>conftest.$ac_ext
37105 cat >>conftest.$ac_ext <<_ACEOF
37106 /* end confdefs.h.  */
37107 /* System header to define __stub macros and hopefully few prototypes,
37108     which can conflict with char $ac_func (); below.
37109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37110     <limits.h> exists even on freestanding compilers.  */
37111 #ifdef __STDC__
37112 # include <limits.h>
37113 #else
37114 # include <assert.h>
37115 #endif
37116 /* Override any gcc2 internal prototype to avoid an error.  */
37117 #ifdef __cplusplus
37118 extern "C"
37119 {
37120 #endif
37121 /* We use char because int might match the return type of a gcc2
37122    builtin and then its argument prototype would still apply.  */
37123 char $ac_func ();
37124 /* The GNU C library defines this for functions which it implements
37125     to always fail with ENOSYS.  Some functions are actually named
37126     something starting with __ and the normal name is an alias.  */
37127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37128 choke me
37129 #else
37130 char (*f) () = $ac_func;
37131 #endif
37132 #ifdef __cplusplus
37133 }
37134 #endif
37135
37136 int
37137 main ()
37138 {
37139 return f != $ac_func;
37140   ;
37141   return 0;
37142 }
37143 _ACEOF
37144 rm -f conftest.$ac_objext conftest$ac_exeext
37145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37146   (eval $ac_link) 2>&5
37147   ac_status=$?
37148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149   (exit $ac_status); } &&
37150          { ac_try='test -s conftest$ac_exeext'
37151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37152   (eval $ac_try) 2>&5
37153   ac_status=$?
37154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155   (exit $ac_status); }; }; then
37156   eval "$as_ac_var=yes"
37157 else
37158   echo "$as_me: failed program was:" >&5
37159 sed 's/^/| /' conftest.$ac_ext >&5
37160
37161 eval "$as_ac_var=no"
37162 fi
37163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37164 fi
37165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37167 if test `eval echo '${'$as_ac_var'}'` = yes; then
37168   cat >>confdefs.h <<_ACEOF
37169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37170 _ACEOF
37171
37172 fi
37173 done
37174
37175     fi
37176   fi
37177
37178
37179
37180   echo "$as_me:$LINENO: checking for atan2l declaration" >&5
37181 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
37182   if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
37183     if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
37184   echo $ECHO_N "(cached) $ECHO_C" >&6
37185 else
37186
37187
37188
37189       ac_ext=cc
37190 ac_cpp='$CXXCPP $CPPFLAGS'
37191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37194
37195       cat >conftest.$ac_ext <<_ACEOF
37196 #line $LINENO "configure"
37197 /* confdefs.h.  */
37198 _ACEOF
37199 cat confdefs.h >>conftest.$ac_ext
37200 cat >>conftest.$ac_ext <<_ACEOF
37201 /* end confdefs.h.  */
37202 #include <math.h>
37203 int
37204 main ()
37205 {
37206  atan2l(0, 0);
37207   ;
37208   return 0;
37209 }
37210 _ACEOF
37211 rm -f conftest.$ac_objext
37212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37213   (eval $ac_compile) 2>&5
37214   ac_status=$?
37215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216   (exit $ac_status); } &&
37217          { ac_try='test -s conftest.$ac_objext'
37218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37219   (eval $ac_try) 2>&5
37220   ac_status=$?
37221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37222   (exit $ac_status); }; }; then
37223   glibcxx_cv_func_atan2l_use=yes
37224 else
37225   echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37227
37228 glibcxx_cv_func_atan2l_use=no
37229 fi
37230 rm -f conftest.$ac_objext conftest.$ac_ext
37231       ac_ext=c
37232 ac_cpp='$CPP $CPPFLAGS'
37233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37236
37237
37238 fi
37239
37240   fi
37241   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
37242 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
37243
37244   if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
37245
37246 for ac_func in atan2l
37247 do
37248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37249 echo "$as_me:$LINENO: checking for $ac_func" >&5
37250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37251 if eval "test \"\${$as_ac_var+set}\" = set"; then
37252   echo $ECHO_N "(cached) $ECHO_C" >&6
37253 else
37254   if test x$gcc_no_link = xyes; then
37255   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37257    { (exit 1); exit 1; }; }
37258 fi
37259 cat >conftest.$ac_ext <<_ACEOF
37260 #line $LINENO "configure"
37261 /* confdefs.h.  */
37262 _ACEOF
37263 cat confdefs.h >>conftest.$ac_ext
37264 cat >>conftest.$ac_ext <<_ACEOF
37265 /* end confdefs.h.  */
37266 /* System header to define __stub macros and hopefully few prototypes,
37267     which can conflict with char $ac_func (); below.
37268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37269     <limits.h> exists even on freestanding compilers.  */
37270 #ifdef __STDC__
37271 # include <limits.h>
37272 #else
37273 # include <assert.h>
37274 #endif
37275 /* Override any gcc2 internal prototype to avoid an error.  */
37276 #ifdef __cplusplus
37277 extern "C"
37278 {
37279 #endif
37280 /* We use char because int might match the return type of a gcc2
37281    builtin and then its argument prototype would still apply.  */
37282 char $ac_func ();
37283 /* The GNU C library defines this for functions which it implements
37284     to always fail with ENOSYS.  Some functions are actually named
37285     something starting with __ and the normal name is an alias.  */
37286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37287 choke me
37288 #else
37289 char (*f) () = $ac_func;
37290 #endif
37291 #ifdef __cplusplus
37292 }
37293 #endif
37294
37295 int
37296 main ()
37297 {
37298 return f != $ac_func;
37299   ;
37300   return 0;
37301 }
37302 _ACEOF
37303 rm -f conftest.$ac_objext conftest$ac_exeext
37304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37305   (eval $ac_link) 2>&5
37306   ac_status=$?
37307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37308   (exit $ac_status); } &&
37309          { ac_try='test -s conftest$ac_exeext'
37310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37311   (eval $ac_try) 2>&5
37312   ac_status=$?
37313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37314   (exit $ac_status); }; }; then
37315   eval "$as_ac_var=yes"
37316 else
37317   echo "$as_me: failed program was:" >&5
37318 sed 's/^/| /' conftest.$ac_ext >&5
37319
37320 eval "$as_ac_var=no"
37321 fi
37322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37323 fi
37324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37326 if test `eval echo '${'$as_ac_var'}'` = yes; then
37327   cat >>confdefs.h <<_ACEOF
37328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37329 _ACEOF
37330
37331 fi
37332 done
37333
37334   else
37335
37336   echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
37337 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
37338   if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
37339     if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
37340   echo $ECHO_N "(cached) $ECHO_C" >&6
37341 else
37342
37343
37344
37345       ac_ext=cc
37346 ac_cpp='$CXXCPP $CPPFLAGS'
37347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37350
37351       cat >conftest.$ac_ext <<_ACEOF
37352 #line $LINENO "configure"
37353 /* confdefs.h.  */
37354 _ACEOF
37355 cat confdefs.h >>conftest.$ac_ext
37356 cat >>conftest.$ac_ext <<_ACEOF
37357 /* end confdefs.h.  */
37358 #include <math.h>
37359 int
37360 main ()
37361 {
37362  _atan2l(0, 0);
37363   ;
37364   return 0;
37365 }
37366 _ACEOF
37367 rm -f conftest.$ac_objext
37368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37369   (eval $ac_compile) 2>&5
37370   ac_status=$?
37371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37372   (exit $ac_status); } &&
37373          { ac_try='test -s conftest.$ac_objext'
37374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37375   (eval $ac_try) 2>&5
37376   ac_status=$?
37377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37378   (exit $ac_status); }; }; then
37379   glibcxx_cv_func__atan2l_use=yes
37380 else
37381   echo "$as_me: failed program was:" >&5
37382 sed 's/^/| /' conftest.$ac_ext >&5
37383
37384 glibcxx_cv_func__atan2l_use=no
37385 fi
37386 rm -f conftest.$ac_objext conftest.$ac_ext
37387       ac_ext=c
37388 ac_cpp='$CPP $CPPFLAGS'
37389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37392
37393
37394 fi
37395
37396   fi
37397   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
37398 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
37399
37400     if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
37401
37402 for ac_func in _atan2l
37403 do
37404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37405 echo "$as_me:$LINENO: checking for $ac_func" >&5
37406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37407 if eval "test \"\${$as_ac_var+set}\" = set"; then
37408   echo $ECHO_N "(cached) $ECHO_C" >&6
37409 else
37410   if test x$gcc_no_link = xyes; then
37411   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37413    { (exit 1); exit 1; }; }
37414 fi
37415 cat >conftest.$ac_ext <<_ACEOF
37416 #line $LINENO "configure"
37417 /* confdefs.h.  */
37418 _ACEOF
37419 cat confdefs.h >>conftest.$ac_ext
37420 cat >>conftest.$ac_ext <<_ACEOF
37421 /* end confdefs.h.  */
37422 /* System header to define __stub macros and hopefully few prototypes,
37423     which can conflict with char $ac_func (); below.
37424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37425     <limits.h> exists even on freestanding compilers.  */
37426 #ifdef __STDC__
37427 # include <limits.h>
37428 #else
37429 # include <assert.h>
37430 #endif
37431 /* Override any gcc2 internal prototype to avoid an error.  */
37432 #ifdef __cplusplus
37433 extern "C"
37434 {
37435 #endif
37436 /* We use char because int might match the return type of a gcc2
37437    builtin and then its argument prototype would still apply.  */
37438 char $ac_func ();
37439 /* The GNU C library defines this for functions which it implements
37440     to always fail with ENOSYS.  Some functions are actually named
37441     something starting with __ and the normal name is an alias.  */
37442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37443 choke me
37444 #else
37445 char (*f) () = $ac_func;
37446 #endif
37447 #ifdef __cplusplus
37448 }
37449 #endif
37450
37451 int
37452 main ()
37453 {
37454 return f != $ac_func;
37455   ;
37456   return 0;
37457 }
37458 _ACEOF
37459 rm -f conftest.$ac_objext conftest$ac_exeext
37460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37461   (eval $ac_link) 2>&5
37462   ac_status=$?
37463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464   (exit $ac_status); } &&
37465          { ac_try='test -s conftest$ac_exeext'
37466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37467   (eval $ac_try) 2>&5
37468   ac_status=$?
37469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470   (exit $ac_status); }; }; then
37471   eval "$as_ac_var=yes"
37472 else
37473   echo "$as_me: failed program was:" >&5
37474 sed 's/^/| /' conftest.$ac_ext >&5
37475
37476 eval "$as_ac_var=no"
37477 fi
37478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37479 fi
37480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37482 if test `eval echo '${'$as_ac_var'}'` = yes; then
37483   cat >>confdefs.h <<_ACEOF
37484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37485 _ACEOF
37486
37487 fi
37488 done
37489
37490     fi
37491   fi
37492
37493
37494
37495   echo "$as_me:$LINENO: checking for expl declaration" >&5
37496 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
37497   if test x${glibcxx_cv_func_expl_use+set} != xset; then
37498     if test "${glibcxx_cv_func_expl_use+set}" = set; then
37499   echo $ECHO_N "(cached) $ECHO_C" >&6
37500 else
37501
37502
37503
37504       ac_ext=cc
37505 ac_cpp='$CXXCPP $CPPFLAGS'
37506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37509
37510       cat >conftest.$ac_ext <<_ACEOF
37511 #line $LINENO "configure"
37512 /* confdefs.h.  */
37513 _ACEOF
37514 cat confdefs.h >>conftest.$ac_ext
37515 cat >>conftest.$ac_ext <<_ACEOF
37516 /* end confdefs.h.  */
37517 #include <math.h>
37518                       #ifdef HAVE_IEEEFP_H
37519                       #include <ieeefp.h>
37520                       #endif
37521
37522 int
37523 main ()
37524 {
37525  expl(0);
37526   ;
37527   return 0;
37528 }
37529 _ACEOF
37530 rm -f conftest.$ac_objext
37531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37532   (eval $ac_compile) 2>&5
37533   ac_status=$?
37534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37535   (exit $ac_status); } &&
37536          { ac_try='test -s conftest.$ac_objext'
37537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37538   (eval $ac_try) 2>&5
37539   ac_status=$?
37540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541   (exit $ac_status); }; }; then
37542   glibcxx_cv_func_expl_use=yes
37543 else
37544   echo "$as_me: failed program was:" >&5
37545 sed 's/^/| /' conftest.$ac_ext >&5
37546
37547 glibcxx_cv_func_expl_use=no
37548 fi
37549 rm -f conftest.$ac_objext conftest.$ac_ext
37550       ac_ext=c
37551 ac_cpp='$CPP $CPPFLAGS'
37552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37555
37556
37557 fi
37558
37559   fi
37560   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
37561 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
37562
37563   if test x$glibcxx_cv_func_expl_use = x"yes"; then
37564
37565 for ac_func in expl
37566 do
37567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37568 echo "$as_me:$LINENO: checking for $ac_func" >&5
37569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37570 if eval "test \"\${$as_ac_var+set}\" = set"; then
37571   echo $ECHO_N "(cached) $ECHO_C" >&6
37572 else
37573   if test x$gcc_no_link = xyes; then
37574   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37576    { (exit 1); exit 1; }; }
37577 fi
37578 cat >conftest.$ac_ext <<_ACEOF
37579 #line $LINENO "configure"
37580 /* confdefs.h.  */
37581 _ACEOF
37582 cat confdefs.h >>conftest.$ac_ext
37583 cat >>conftest.$ac_ext <<_ACEOF
37584 /* end confdefs.h.  */
37585 /* System header to define __stub macros and hopefully few prototypes,
37586     which can conflict with char $ac_func (); below.
37587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37588     <limits.h> exists even on freestanding compilers.  */
37589 #ifdef __STDC__
37590 # include <limits.h>
37591 #else
37592 # include <assert.h>
37593 #endif
37594 /* Override any gcc2 internal prototype to avoid an error.  */
37595 #ifdef __cplusplus
37596 extern "C"
37597 {
37598 #endif
37599 /* We use char because int might match the return type of a gcc2
37600    builtin and then its argument prototype would still apply.  */
37601 char $ac_func ();
37602 /* The GNU C library defines this for functions which it implements
37603     to always fail with ENOSYS.  Some functions are actually named
37604     something starting with __ and the normal name is an alias.  */
37605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37606 choke me
37607 #else
37608 char (*f) () = $ac_func;
37609 #endif
37610 #ifdef __cplusplus
37611 }
37612 #endif
37613
37614 int
37615 main ()
37616 {
37617 return f != $ac_func;
37618   ;
37619   return 0;
37620 }
37621 _ACEOF
37622 rm -f conftest.$ac_objext conftest$ac_exeext
37623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37624   (eval $ac_link) 2>&5
37625   ac_status=$?
37626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627   (exit $ac_status); } &&
37628          { ac_try='test -s conftest$ac_exeext'
37629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37630   (eval $ac_try) 2>&5
37631   ac_status=$?
37632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37633   (exit $ac_status); }; }; then
37634   eval "$as_ac_var=yes"
37635 else
37636   echo "$as_me: failed program was:" >&5
37637 sed 's/^/| /' conftest.$ac_ext >&5
37638
37639 eval "$as_ac_var=no"
37640 fi
37641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37642 fi
37643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37645 if test `eval echo '${'$as_ac_var'}'` = yes; then
37646   cat >>confdefs.h <<_ACEOF
37647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37648 _ACEOF
37649
37650 fi
37651 done
37652
37653   else
37654
37655   echo "$as_me:$LINENO: checking for _expl declaration" >&5
37656 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
37657   if test x${glibcxx_cv_func__expl_use+set} != xset; then
37658     if test "${glibcxx_cv_func__expl_use+set}" = set; then
37659   echo $ECHO_N "(cached) $ECHO_C" >&6
37660 else
37661
37662
37663
37664       ac_ext=cc
37665 ac_cpp='$CXXCPP $CPPFLAGS'
37666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37669
37670       cat >conftest.$ac_ext <<_ACEOF
37671 #line $LINENO "configure"
37672 /* confdefs.h.  */
37673 _ACEOF
37674 cat confdefs.h >>conftest.$ac_ext
37675 cat >>conftest.$ac_ext <<_ACEOF
37676 /* end confdefs.h.  */
37677 #include <math.h>
37678                       #ifdef HAVE_IEEEFP_H
37679                       #include <ieeefp.h>
37680                       #endif
37681
37682 int
37683 main ()
37684 {
37685  _expl(0);
37686   ;
37687   return 0;
37688 }
37689 _ACEOF
37690 rm -f conftest.$ac_objext
37691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37692   (eval $ac_compile) 2>&5
37693   ac_status=$?
37694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37695   (exit $ac_status); } &&
37696          { ac_try='test -s conftest.$ac_objext'
37697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37698   (eval $ac_try) 2>&5
37699   ac_status=$?
37700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37701   (exit $ac_status); }; }; then
37702   glibcxx_cv_func__expl_use=yes
37703 else
37704   echo "$as_me: failed program was:" >&5
37705 sed 's/^/| /' conftest.$ac_ext >&5
37706
37707 glibcxx_cv_func__expl_use=no
37708 fi
37709 rm -f conftest.$ac_objext conftest.$ac_ext
37710       ac_ext=c
37711 ac_cpp='$CPP $CPPFLAGS'
37712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37715
37716
37717 fi
37718
37719   fi
37720   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
37721 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
37722
37723     if test x$glibcxx_cv_func__expl_use = x"yes"; then
37724
37725 for ac_func in _expl
37726 do
37727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37728 echo "$as_me:$LINENO: checking for $ac_func" >&5
37729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37730 if eval "test \"\${$as_ac_var+set}\" = set"; then
37731   echo $ECHO_N "(cached) $ECHO_C" >&6
37732 else
37733   if test x$gcc_no_link = xyes; then
37734   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37736    { (exit 1); exit 1; }; }
37737 fi
37738 cat >conftest.$ac_ext <<_ACEOF
37739 #line $LINENO "configure"
37740 /* confdefs.h.  */
37741 _ACEOF
37742 cat confdefs.h >>conftest.$ac_ext
37743 cat >>conftest.$ac_ext <<_ACEOF
37744 /* end confdefs.h.  */
37745 /* System header to define __stub macros and hopefully few prototypes,
37746     which can conflict with char $ac_func (); below.
37747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37748     <limits.h> exists even on freestanding compilers.  */
37749 #ifdef __STDC__
37750 # include <limits.h>
37751 #else
37752 # include <assert.h>
37753 #endif
37754 /* Override any gcc2 internal prototype to avoid an error.  */
37755 #ifdef __cplusplus
37756 extern "C"
37757 {
37758 #endif
37759 /* We use char because int might match the return type of a gcc2
37760    builtin and then its argument prototype would still apply.  */
37761 char $ac_func ();
37762 /* The GNU C library defines this for functions which it implements
37763     to always fail with ENOSYS.  Some functions are actually named
37764     something starting with __ and the normal name is an alias.  */
37765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37766 choke me
37767 #else
37768 char (*f) () = $ac_func;
37769 #endif
37770 #ifdef __cplusplus
37771 }
37772 #endif
37773
37774 int
37775 main ()
37776 {
37777 return f != $ac_func;
37778   ;
37779   return 0;
37780 }
37781 _ACEOF
37782 rm -f conftest.$ac_objext conftest$ac_exeext
37783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37784   (eval $ac_link) 2>&5
37785   ac_status=$?
37786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787   (exit $ac_status); } &&
37788          { ac_try='test -s conftest$ac_exeext'
37789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790   (eval $ac_try) 2>&5
37791   ac_status=$?
37792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793   (exit $ac_status); }; }; then
37794   eval "$as_ac_var=yes"
37795 else
37796   echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37798
37799 eval "$as_ac_var=no"
37800 fi
37801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37802 fi
37803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37805 if test `eval echo '${'$as_ac_var'}'` = yes; then
37806   cat >>confdefs.h <<_ACEOF
37807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37808 _ACEOF
37809
37810 fi
37811 done
37812
37813     fi
37814   fi
37815
37816
37817
37818   echo "$as_me:$LINENO: checking for fabsl declaration" >&5
37819 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
37820   if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
37821     if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
37822   echo $ECHO_N "(cached) $ECHO_C" >&6
37823 else
37824
37825
37826
37827       ac_ext=cc
37828 ac_cpp='$CXXCPP $CPPFLAGS'
37829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37832
37833       cat >conftest.$ac_ext <<_ACEOF
37834 #line $LINENO "configure"
37835 /* confdefs.h.  */
37836 _ACEOF
37837 cat confdefs.h >>conftest.$ac_ext
37838 cat >>conftest.$ac_ext <<_ACEOF
37839 /* end confdefs.h.  */
37840 #include <math.h>
37841                       #ifdef HAVE_IEEEFP_H
37842                       #include <ieeefp.h>
37843                       #endif
37844
37845 int
37846 main ()
37847 {
37848  fabsl(0);
37849   ;
37850   return 0;
37851 }
37852 _ACEOF
37853 rm -f conftest.$ac_objext
37854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37855   (eval $ac_compile) 2>&5
37856   ac_status=$?
37857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858   (exit $ac_status); } &&
37859          { ac_try='test -s conftest.$ac_objext'
37860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37861   (eval $ac_try) 2>&5
37862   ac_status=$?
37863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864   (exit $ac_status); }; }; then
37865   glibcxx_cv_func_fabsl_use=yes
37866 else
37867   echo "$as_me: failed program was:" >&5
37868 sed 's/^/| /' conftest.$ac_ext >&5
37869
37870 glibcxx_cv_func_fabsl_use=no
37871 fi
37872 rm -f conftest.$ac_objext conftest.$ac_ext
37873       ac_ext=c
37874 ac_cpp='$CPP $CPPFLAGS'
37875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37878
37879
37880 fi
37881
37882   fi
37883   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
37884 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
37885
37886   if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
37887
37888 for ac_func in fabsl
37889 do
37890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37891 echo "$as_me:$LINENO: checking for $ac_func" >&5
37892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37893 if eval "test \"\${$as_ac_var+set}\" = set"; then
37894   echo $ECHO_N "(cached) $ECHO_C" >&6
37895 else
37896   if test x$gcc_no_link = xyes; then
37897   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37898 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37899    { (exit 1); exit 1; }; }
37900 fi
37901 cat >conftest.$ac_ext <<_ACEOF
37902 #line $LINENO "configure"
37903 /* confdefs.h.  */
37904 _ACEOF
37905 cat confdefs.h >>conftest.$ac_ext
37906 cat >>conftest.$ac_ext <<_ACEOF
37907 /* end confdefs.h.  */
37908 /* System header to define __stub macros and hopefully few prototypes,
37909     which can conflict with char $ac_func (); below.
37910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37911     <limits.h> exists even on freestanding compilers.  */
37912 #ifdef __STDC__
37913 # include <limits.h>
37914 #else
37915 # include <assert.h>
37916 #endif
37917 /* Override any gcc2 internal prototype to avoid an error.  */
37918 #ifdef __cplusplus
37919 extern "C"
37920 {
37921 #endif
37922 /* We use char because int might match the return type of a gcc2
37923    builtin and then its argument prototype would still apply.  */
37924 char $ac_func ();
37925 /* The GNU C library defines this for functions which it implements
37926     to always fail with ENOSYS.  Some functions are actually named
37927     something starting with __ and the normal name is an alias.  */
37928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37929 choke me
37930 #else
37931 char (*f) () = $ac_func;
37932 #endif
37933 #ifdef __cplusplus
37934 }
37935 #endif
37936
37937 int
37938 main ()
37939 {
37940 return f != $ac_func;
37941   ;
37942   return 0;
37943 }
37944 _ACEOF
37945 rm -f conftest.$ac_objext conftest$ac_exeext
37946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37947   (eval $ac_link) 2>&5
37948   ac_status=$?
37949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950   (exit $ac_status); } &&
37951          { ac_try='test -s conftest$ac_exeext'
37952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37953   (eval $ac_try) 2>&5
37954   ac_status=$?
37955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956   (exit $ac_status); }; }; then
37957   eval "$as_ac_var=yes"
37958 else
37959   echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37961
37962 eval "$as_ac_var=no"
37963 fi
37964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37965 fi
37966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37968 if test `eval echo '${'$as_ac_var'}'` = yes; then
37969   cat >>confdefs.h <<_ACEOF
37970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37971 _ACEOF
37972
37973 fi
37974 done
37975
37976   else
37977
37978   echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
37979 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
37980   if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
37981     if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
37982   echo $ECHO_N "(cached) $ECHO_C" >&6
37983 else
37984
37985
37986
37987       ac_ext=cc
37988 ac_cpp='$CXXCPP $CPPFLAGS'
37989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37992
37993       cat >conftest.$ac_ext <<_ACEOF
37994 #line $LINENO "configure"
37995 /* confdefs.h.  */
37996 _ACEOF
37997 cat confdefs.h >>conftest.$ac_ext
37998 cat >>conftest.$ac_ext <<_ACEOF
37999 /* end confdefs.h.  */
38000 #include <math.h>
38001                       #ifdef HAVE_IEEEFP_H
38002                       #include <ieeefp.h>
38003                       #endif
38004
38005 int
38006 main ()
38007 {
38008  _fabsl(0);
38009   ;
38010   return 0;
38011 }
38012 _ACEOF
38013 rm -f conftest.$ac_objext
38014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38015   (eval $ac_compile) 2>&5
38016   ac_status=$?
38017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38018   (exit $ac_status); } &&
38019          { ac_try='test -s conftest.$ac_objext'
38020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38021   (eval $ac_try) 2>&5
38022   ac_status=$?
38023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38024   (exit $ac_status); }; }; then
38025   glibcxx_cv_func__fabsl_use=yes
38026 else
38027   echo "$as_me: failed program was:" >&5
38028 sed 's/^/| /' conftest.$ac_ext >&5
38029
38030 glibcxx_cv_func__fabsl_use=no
38031 fi
38032 rm -f conftest.$ac_objext conftest.$ac_ext
38033       ac_ext=c
38034 ac_cpp='$CPP $CPPFLAGS'
38035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38038
38039
38040 fi
38041
38042   fi
38043   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
38044 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
38045
38046     if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
38047
38048 for ac_func in _fabsl
38049 do
38050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38051 echo "$as_me:$LINENO: checking for $ac_func" >&5
38052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38053 if eval "test \"\${$as_ac_var+set}\" = set"; then
38054   echo $ECHO_N "(cached) $ECHO_C" >&6
38055 else
38056   if test x$gcc_no_link = xyes; then
38057   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38059    { (exit 1); exit 1; }; }
38060 fi
38061 cat >conftest.$ac_ext <<_ACEOF
38062 #line $LINENO "configure"
38063 /* confdefs.h.  */
38064 _ACEOF
38065 cat confdefs.h >>conftest.$ac_ext
38066 cat >>conftest.$ac_ext <<_ACEOF
38067 /* end confdefs.h.  */
38068 /* System header to define __stub macros and hopefully few prototypes,
38069     which can conflict with char $ac_func (); below.
38070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38071     <limits.h> exists even on freestanding compilers.  */
38072 #ifdef __STDC__
38073 # include <limits.h>
38074 #else
38075 # include <assert.h>
38076 #endif
38077 /* Override any gcc2 internal prototype to avoid an error.  */
38078 #ifdef __cplusplus
38079 extern "C"
38080 {
38081 #endif
38082 /* We use char because int might match the return type of a gcc2
38083    builtin and then its argument prototype would still apply.  */
38084 char $ac_func ();
38085 /* The GNU C library defines this for functions which it implements
38086     to always fail with ENOSYS.  Some functions are actually named
38087     something starting with __ and the normal name is an alias.  */
38088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38089 choke me
38090 #else
38091 char (*f) () = $ac_func;
38092 #endif
38093 #ifdef __cplusplus
38094 }
38095 #endif
38096
38097 int
38098 main ()
38099 {
38100 return f != $ac_func;
38101   ;
38102   return 0;
38103 }
38104 _ACEOF
38105 rm -f conftest.$ac_objext conftest$ac_exeext
38106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38107   (eval $ac_link) 2>&5
38108   ac_status=$?
38109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110   (exit $ac_status); } &&
38111          { ac_try='test -s conftest$ac_exeext'
38112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38113   (eval $ac_try) 2>&5
38114   ac_status=$?
38115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38116   (exit $ac_status); }; }; then
38117   eval "$as_ac_var=yes"
38118 else
38119   echo "$as_me: failed program was:" >&5
38120 sed 's/^/| /' conftest.$ac_ext >&5
38121
38122 eval "$as_ac_var=no"
38123 fi
38124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38125 fi
38126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38128 if test `eval echo '${'$as_ac_var'}'` = yes; then
38129   cat >>confdefs.h <<_ACEOF
38130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38131 _ACEOF
38132
38133 fi
38134 done
38135
38136     fi
38137   fi
38138
38139
38140
38141   echo "$as_me:$LINENO: checking for fmodl declaration" >&5
38142 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
38143   if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
38144     if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
38145   echo $ECHO_N "(cached) $ECHO_C" >&6
38146 else
38147
38148
38149
38150       ac_ext=cc
38151 ac_cpp='$CXXCPP $CPPFLAGS'
38152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38155
38156       cat >conftest.$ac_ext <<_ACEOF
38157 #line $LINENO "configure"
38158 /* confdefs.h.  */
38159 _ACEOF
38160 cat confdefs.h >>conftest.$ac_ext
38161 cat >>conftest.$ac_ext <<_ACEOF
38162 /* end confdefs.h.  */
38163 #include <math.h>
38164 int
38165 main ()
38166 {
38167  fmodl(0, 0);
38168   ;
38169   return 0;
38170 }
38171 _ACEOF
38172 rm -f conftest.$ac_objext
38173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38174   (eval $ac_compile) 2>&5
38175   ac_status=$?
38176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177   (exit $ac_status); } &&
38178          { ac_try='test -s conftest.$ac_objext'
38179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38180   (eval $ac_try) 2>&5
38181   ac_status=$?
38182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38183   (exit $ac_status); }; }; then
38184   glibcxx_cv_func_fmodl_use=yes
38185 else
38186   echo "$as_me: failed program was:" >&5
38187 sed 's/^/| /' conftest.$ac_ext >&5
38188
38189 glibcxx_cv_func_fmodl_use=no
38190 fi
38191 rm -f conftest.$ac_objext conftest.$ac_ext
38192       ac_ext=c
38193 ac_cpp='$CPP $CPPFLAGS'
38194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38197
38198
38199 fi
38200
38201   fi
38202   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
38203 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
38204
38205   if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
38206
38207 for ac_func in fmodl
38208 do
38209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38210 echo "$as_me:$LINENO: checking for $ac_func" >&5
38211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38212 if eval "test \"\${$as_ac_var+set}\" = set"; then
38213   echo $ECHO_N "(cached) $ECHO_C" >&6
38214 else
38215   if test x$gcc_no_link = xyes; then
38216   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38218    { (exit 1); exit 1; }; }
38219 fi
38220 cat >conftest.$ac_ext <<_ACEOF
38221 #line $LINENO "configure"
38222 /* confdefs.h.  */
38223 _ACEOF
38224 cat confdefs.h >>conftest.$ac_ext
38225 cat >>conftest.$ac_ext <<_ACEOF
38226 /* end confdefs.h.  */
38227 /* System header to define __stub macros and hopefully few prototypes,
38228     which can conflict with char $ac_func (); below.
38229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38230     <limits.h> exists even on freestanding compilers.  */
38231 #ifdef __STDC__
38232 # include <limits.h>
38233 #else
38234 # include <assert.h>
38235 #endif
38236 /* Override any gcc2 internal prototype to avoid an error.  */
38237 #ifdef __cplusplus
38238 extern "C"
38239 {
38240 #endif
38241 /* We use char because int might match the return type of a gcc2
38242    builtin and then its argument prototype would still apply.  */
38243 char $ac_func ();
38244 /* The GNU C library defines this for functions which it implements
38245     to always fail with ENOSYS.  Some functions are actually named
38246     something starting with __ and the normal name is an alias.  */
38247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38248 choke me
38249 #else
38250 char (*f) () = $ac_func;
38251 #endif
38252 #ifdef __cplusplus
38253 }
38254 #endif
38255
38256 int
38257 main ()
38258 {
38259 return f != $ac_func;
38260   ;
38261   return 0;
38262 }
38263 _ACEOF
38264 rm -f conftest.$ac_objext conftest$ac_exeext
38265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38266   (eval $ac_link) 2>&5
38267   ac_status=$?
38268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269   (exit $ac_status); } &&
38270          { ac_try='test -s conftest$ac_exeext'
38271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38272   (eval $ac_try) 2>&5
38273   ac_status=$?
38274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275   (exit $ac_status); }; }; then
38276   eval "$as_ac_var=yes"
38277 else
38278   echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38280
38281 eval "$as_ac_var=no"
38282 fi
38283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38284 fi
38285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38287 if test `eval echo '${'$as_ac_var'}'` = yes; then
38288   cat >>confdefs.h <<_ACEOF
38289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38290 _ACEOF
38291
38292 fi
38293 done
38294
38295   else
38296
38297   echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
38298 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
38299   if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
38300     if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
38301   echo $ECHO_N "(cached) $ECHO_C" >&6
38302 else
38303
38304
38305
38306       ac_ext=cc
38307 ac_cpp='$CXXCPP $CPPFLAGS'
38308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38311
38312       cat >conftest.$ac_ext <<_ACEOF
38313 #line $LINENO "configure"
38314 /* confdefs.h.  */
38315 _ACEOF
38316 cat confdefs.h >>conftest.$ac_ext
38317 cat >>conftest.$ac_ext <<_ACEOF
38318 /* end confdefs.h.  */
38319 #include <math.h>
38320 int
38321 main ()
38322 {
38323  _fmodl(0, 0);
38324   ;
38325   return 0;
38326 }
38327 _ACEOF
38328 rm -f conftest.$ac_objext
38329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38330   (eval $ac_compile) 2>&5
38331   ac_status=$?
38332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333   (exit $ac_status); } &&
38334          { ac_try='test -s conftest.$ac_objext'
38335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38336   (eval $ac_try) 2>&5
38337   ac_status=$?
38338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339   (exit $ac_status); }; }; then
38340   glibcxx_cv_func__fmodl_use=yes
38341 else
38342   echo "$as_me: failed program was:" >&5
38343 sed 's/^/| /' conftest.$ac_ext >&5
38344
38345 glibcxx_cv_func__fmodl_use=no
38346 fi
38347 rm -f conftest.$ac_objext conftest.$ac_ext
38348       ac_ext=c
38349 ac_cpp='$CPP $CPPFLAGS'
38350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38353
38354
38355 fi
38356
38357   fi
38358   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
38359 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
38360
38361     if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
38362
38363 for ac_func in _fmodl
38364 do
38365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38366 echo "$as_me:$LINENO: checking for $ac_func" >&5
38367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38368 if eval "test \"\${$as_ac_var+set}\" = set"; then
38369   echo $ECHO_N "(cached) $ECHO_C" >&6
38370 else
38371   if test x$gcc_no_link = xyes; then
38372   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38374    { (exit 1); exit 1; }; }
38375 fi
38376 cat >conftest.$ac_ext <<_ACEOF
38377 #line $LINENO "configure"
38378 /* confdefs.h.  */
38379 _ACEOF
38380 cat confdefs.h >>conftest.$ac_ext
38381 cat >>conftest.$ac_ext <<_ACEOF
38382 /* end confdefs.h.  */
38383 /* System header to define __stub macros and hopefully few prototypes,
38384     which can conflict with char $ac_func (); below.
38385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38386     <limits.h> exists even on freestanding compilers.  */
38387 #ifdef __STDC__
38388 # include <limits.h>
38389 #else
38390 # include <assert.h>
38391 #endif
38392 /* Override any gcc2 internal prototype to avoid an error.  */
38393 #ifdef __cplusplus
38394 extern "C"
38395 {
38396 #endif
38397 /* We use char because int might match the return type of a gcc2
38398    builtin and then its argument prototype would still apply.  */
38399 char $ac_func ();
38400 /* The GNU C library defines this for functions which it implements
38401     to always fail with ENOSYS.  Some functions are actually named
38402     something starting with __ and the normal name is an alias.  */
38403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38404 choke me
38405 #else
38406 char (*f) () = $ac_func;
38407 #endif
38408 #ifdef __cplusplus
38409 }
38410 #endif
38411
38412 int
38413 main ()
38414 {
38415 return f != $ac_func;
38416   ;
38417   return 0;
38418 }
38419 _ACEOF
38420 rm -f conftest.$ac_objext conftest$ac_exeext
38421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38422   (eval $ac_link) 2>&5
38423   ac_status=$?
38424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38425   (exit $ac_status); } &&
38426          { ac_try='test -s conftest$ac_exeext'
38427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38428   (eval $ac_try) 2>&5
38429   ac_status=$?
38430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38431   (exit $ac_status); }; }; then
38432   eval "$as_ac_var=yes"
38433 else
38434   echo "$as_me: failed program was:" >&5
38435 sed 's/^/| /' conftest.$ac_ext >&5
38436
38437 eval "$as_ac_var=no"
38438 fi
38439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38440 fi
38441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38443 if test `eval echo '${'$as_ac_var'}'` = yes; then
38444   cat >>confdefs.h <<_ACEOF
38445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38446 _ACEOF
38447
38448 fi
38449 done
38450
38451     fi
38452   fi
38453
38454
38455
38456   echo "$as_me:$LINENO: checking for frexpl declaration" >&5
38457 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
38458   if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
38459     if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
38460   echo $ECHO_N "(cached) $ECHO_C" >&6
38461 else
38462
38463
38464
38465       ac_ext=cc
38466 ac_cpp='$CXXCPP $CPPFLAGS'
38467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38470
38471       cat >conftest.$ac_ext <<_ACEOF
38472 #line $LINENO "configure"
38473 /* confdefs.h.  */
38474 _ACEOF
38475 cat confdefs.h >>conftest.$ac_ext
38476 cat >>conftest.$ac_ext <<_ACEOF
38477 /* end confdefs.h.  */
38478 #include <math.h>
38479 int
38480 main ()
38481 {
38482  frexpl(0, 0);
38483   ;
38484   return 0;
38485 }
38486 _ACEOF
38487 rm -f conftest.$ac_objext
38488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38489   (eval $ac_compile) 2>&5
38490   ac_status=$?
38491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38492   (exit $ac_status); } &&
38493          { ac_try='test -s conftest.$ac_objext'
38494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38495   (eval $ac_try) 2>&5
38496   ac_status=$?
38497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38498   (exit $ac_status); }; }; then
38499   glibcxx_cv_func_frexpl_use=yes
38500 else
38501   echo "$as_me: failed program was:" >&5
38502 sed 's/^/| /' conftest.$ac_ext >&5
38503
38504 glibcxx_cv_func_frexpl_use=no
38505 fi
38506 rm -f conftest.$ac_objext conftest.$ac_ext
38507       ac_ext=c
38508 ac_cpp='$CPP $CPPFLAGS'
38509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38512
38513
38514 fi
38515
38516   fi
38517   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
38518 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
38519
38520   if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
38521
38522 for ac_func in frexpl
38523 do
38524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38525 echo "$as_me:$LINENO: checking for $ac_func" >&5
38526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38527 if eval "test \"\${$as_ac_var+set}\" = set"; then
38528   echo $ECHO_N "(cached) $ECHO_C" >&6
38529 else
38530   if test x$gcc_no_link = xyes; then
38531   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38533    { (exit 1); exit 1; }; }
38534 fi
38535 cat >conftest.$ac_ext <<_ACEOF
38536 #line $LINENO "configure"
38537 /* confdefs.h.  */
38538 _ACEOF
38539 cat confdefs.h >>conftest.$ac_ext
38540 cat >>conftest.$ac_ext <<_ACEOF
38541 /* end confdefs.h.  */
38542 /* System header to define __stub macros and hopefully few prototypes,
38543     which can conflict with char $ac_func (); below.
38544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38545     <limits.h> exists even on freestanding compilers.  */
38546 #ifdef __STDC__
38547 # include <limits.h>
38548 #else
38549 # include <assert.h>
38550 #endif
38551 /* Override any gcc2 internal prototype to avoid an error.  */
38552 #ifdef __cplusplus
38553 extern "C"
38554 {
38555 #endif
38556 /* We use char because int might match the return type of a gcc2
38557    builtin and then its argument prototype would still apply.  */
38558 char $ac_func ();
38559 /* The GNU C library defines this for functions which it implements
38560     to always fail with ENOSYS.  Some functions are actually named
38561     something starting with __ and the normal name is an alias.  */
38562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38563 choke me
38564 #else
38565 char (*f) () = $ac_func;
38566 #endif
38567 #ifdef __cplusplus
38568 }
38569 #endif
38570
38571 int
38572 main ()
38573 {
38574 return f != $ac_func;
38575   ;
38576   return 0;
38577 }
38578 _ACEOF
38579 rm -f conftest.$ac_objext conftest$ac_exeext
38580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38581   (eval $ac_link) 2>&5
38582   ac_status=$?
38583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584   (exit $ac_status); } &&
38585          { ac_try='test -s conftest$ac_exeext'
38586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38587   (eval $ac_try) 2>&5
38588   ac_status=$?
38589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590   (exit $ac_status); }; }; then
38591   eval "$as_ac_var=yes"
38592 else
38593   echo "$as_me: failed program was:" >&5
38594 sed 's/^/| /' conftest.$ac_ext >&5
38595
38596 eval "$as_ac_var=no"
38597 fi
38598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38599 fi
38600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38602 if test `eval echo '${'$as_ac_var'}'` = yes; then
38603   cat >>confdefs.h <<_ACEOF
38604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38605 _ACEOF
38606
38607 fi
38608 done
38609
38610   else
38611
38612   echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
38613 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
38614   if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
38615     if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
38616   echo $ECHO_N "(cached) $ECHO_C" >&6
38617 else
38618
38619
38620
38621       ac_ext=cc
38622 ac_cpp='$CXXCPP $CPPFLAGS'
38623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38626
38627       cat >conftest.$ac_ext <<_ACEOF
38628 #line $LINENO "configure"
38629 /* confdefs.h.  */
38630 _ACEOF
38631 cat confdefs.h >>conftest.$ac_ext
38632 cat >>conftest.$ac_ext <<_ACEOF
38633 /* end confdefs.h.  */
38634 #include <math.h>
38635 int
38636 main ()
38637 {
38638  _frexpl(0, 0);
38639   ;
38640   return 0;
38641 }
38642 _ACEOF
38643 rm -f conftest.$ac_objext
38644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38645   (eval $ac_compile) 2>&5
38646   ac_status=$?
38647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38648   (exit $ac_status); } &&
38649          { ac_try='test -s conftest.$ac_objext'
38650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38651   (eval $ac_try) 2>&5
38652   ac_status=$?
38653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38654   (exit $ac_status); }; }; then
38655   glibcxx_cv_func__frexpl_use=yes
38656 else
38657   echo "$as_me: failed program was:" >&5
38658 sed 's/^/| /' conftest.$ac_ext >&5
38659
38660 glibcxx_cv_func__frexpl_use=no
38661 fi
38662 rm -f conftest.$ac_objext conftest.$ac_ext
38663       ac_ext=c
38664 ac_cpp='$CPP $CPPFLAGS'
38665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38668
38669
38670 fi
38671
38672   fi
38673   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
38674 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
38675
38676     if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
38677
38678 for ac_func in _frexpl
38679 do
38680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38681 echo "$as_me:$LINENO: checking for $ac_func" >&5
38682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38683 if eval "test \"\${$as_ac_var+set}\" = set"; then
38684   echo $ECHO_N "(cached) $ECHO_C" >&6
38685 else
38686   if test x$gcc_no_link = xyes; then
38687   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38689    { (exit 1); exit 1; }; }
38690 fi
38691 cat >conftest.$ac_ext <<_ACEOF
38692 #line $LINENO "configure"
38693 /* confdefs.h.  */
38694 _ACEOF
38695 cat confdefs.h >>conftest.$ac_ext
38696 cat >>conftest.$ac_ext <<_ACEOF
38697 /* end confdefs.h.  */
38698 /* System header to define __stub macros and hopefully few prototypes,
38699     which can conflict with char $ac_func (); below.
38700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38701     <limits.h> exists even on freestanding compilers.  */
38702 #ifdef __STDC__
38703 # include <limits.h>
38704 #else
38705 # include <assert.h>
38706 #endif
38707 /* Override any gcc2 internal prototype to avoid an error.  */
38708 #ifdef __cplusplus
38709 extern "C"
38710 {
38711 #endif
38712 /* We use char because int might match the return type of a gcc2
38713    builtin and then its argument prototype would still apply.  */
38714 char $ac_func ();
38715 /* The GNU C library defines this for functions which it implements
38716     to always fail with ENOSYS.  Some functions are actually named
38717     something starting with __ and the normal name is an alias.  */
38718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38719 choke me
38720 #else
38721 char (*f) () = $ac_func;
38722 #endif
38723 #ifdef __cplusplus
38724 }
38725 #endif
38726
38727 int
38728 main ()
38729 {
38730 return f != $ac_func;
38731   ;
38732   return 0;
38733 }
38734 _ACEOF
38735 rm -f conftest.$ac_objext conftest$ac_exeext
38736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38737   (eval $ac_link) 2>&5
38738   ac_status=$?
38739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740   (exit $ac_status); } &&
38741          { ac_try='test -s conftest$ac_exeext'
38742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38743   (eval $ac_try) 2>&5
38744   ac_status=$?
38745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746   (exit $ac_status); }; }; then
38747   eval "$as_ac_var=yes"
38748 else
38749   echo "$as_me: failed program was:" >&5
38750 sed 's/^/| /' conftest.$ac_ext >&5
38751
38752 eval "$as_ac_var=no"
38753 fi
38754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38755 fi
38756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38758 if test `eval echo '${'$as_ac_var'}'` = yes; then
38759   cat >>confdefs.h <<_ACEOF
38760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38761 _ACEOF
38762
38763 fi
38764 done
38765
38766     fi
38767   fi
38768
38769
38770
38771   echo "$as_me:$LINENO: checking for hypotl declaration" >&5
38772 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
38773   if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
38774     if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
38775   echo $ECHO_N "(cached) $ECHO_C" >&6
38776 else
38777
38778
38779
38780       ac_ext=cc
38781 ac_cpp='$CXXCPP $CPPFLAGS'
38782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38785
38786       cat >conftest.$ac_ext <<_ACEOF
38787 #line $LINENO "configure"
38788 /* confdefs.h.  */
38789 _ACEOF
38790 cat confdefs.h >>conftest.$ac_ext
38791 cat >>conftest.$ac_ext <<_ACEOF
38792 /* end confdefs.h.  */
38793 #include <math.h>
38794 int
38795 main ()
38796 {
38797  hypotl(0, 0);
38798   ;
38799   return 0;
38800 }
38801 _ACEOF
38802 rm -f conftest.$ac_objext
38803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38804   (eval $ac_compile) 2>&5
38805   ac_status=$?
38806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38807   (exit $ac_status); } &&
38808          { ac_try='test -s conftest.$ac_objext'
38809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38810   (eval $ac_try) 2>&5
38811   ac_status=$?
38812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813   (exit $ac_status); }; }; then
38814   glibcxx_cv_func_hypotl_use=yes
38815 else
38816   echo "$as_me: failed program was:" >&5
38817 sed 's/^/| /' conftest.$ac_ext >&5
38818
38819 glibcxx_cv_func_hypotl_use=no
38820 fi
38821 rm -f conftest.$ac_objext conftest.$ac_ext
38822       ac_ext=c
38823 ac_cpp='$CPP $CPPFLAGS'
38824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38827
38828
38829 fi
38830
38831   fi
38832   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
38833 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
38834
38835   if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
38836
38837 for ac_func in hypotl
38838 do
38839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38840 echo "$as_me:$LINENO: checking for $ac_func" >&5
38841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38842 if eval "test \"\${$as_ac_var+set}\" = set"; then
38843   echo $ECHO_N "(cached) $ECHO_C" >&6
38844 else
38845   if test x$gcc_no_link = xyes; then
38846   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38848    { (exit 1); exit 1; }; }
38849 fi
38850 cat >conftest.$ac_ext <<_ACEOF
38851 #line $LINENO "configure"
38852 /* confdefs.h.  */
38853 _ACEOF
38854 cat confdefs.h >>conftest.$ac_ext
38855 cat >>conftest.$ac_ext <<_ACEOF
38856 /* end confdefs.h.  */
38857 /* System header to define __stub macros and hopefully few prototypes,
38858     which can conflict with char $ac_func (); below.
38859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38860     <limits.h> exists even on freestanding compilers.  */
38861 #ifdef __STDC__
38862 # include <limits.h>
38863 #else
38864 # include <assert.h>
38865 #endif
38866 /* Override any gcc2 internal prototype to avoid an error.  */
38867 #ifdef __cplusplus
38868 extern "C"
38869 {
38870 #endif
38871 /* We use char because int might match the return type of a gcc2
38872    builtin and then its argument prototype would still apply.  */
38873 char $ac_func ();
38874 /* The GNU C library defines this for functions which it implements
38875     to always fail with ENOSYS.  Some functions are actually named
38876     something starting with __ and the normal name is an alias.  */
38877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38878 choke me
38879 #else
38880 char (*f) () = $ac_func;
38881 #endif
38882 #ifdef __cplusplus
38883 }
38884 #endif
38885
38886 int
38887 main ()
38888 {
38889 return f != $ac_func;
38890   ;
38891   return 0;
38892 }
38893 _ACEOF
38894 rm -f conftest.$ac_objext conftest$ac_exeext
38895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38896   (eval $ac_link) 2>&5
38897   ac_status=$?
38898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899   (exit $ac_status); } &&
38900          { ac_try='test -s conftest$ac_exeext'
38901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38902   (eval $ac_try) 2>&5
38903   ac_status=$?
38904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38905   (exit $ac_status); }; }; then
38906   eval "$as_ac_var=yes"
38907 else
38908   echo "$as_me: failed program was:" >&5
38909 sed 's/^/| /' conftest.$ac_ext >&5
38910
38911 eval "$as_ac_var=no"
38912 fi
38913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38914 fi
38915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38917 if test `eval echo '${'$as_ac_var'}'` = yes; then
38918   cat >>confdefs.h <<_ACEOF
38919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38920 _ACEOF
38921
38922 fi
38923 done
38924
38925   else
38926
38927   echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
38928 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
38929   if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
38930     if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
38931   echo $ECHO_N "(cached) $ECHO_C" >&6
38932 else
38933
38934
38935
38936       ac_ext=cc
38937 ac_cpp='$CXXCPP $CPPFLAGS'
38938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38941
38942       cat >conftest.$ac_ext <<_ACEOF
38943 #line $LINENO "configure"
38944 /* confdefs.h.  */
38945 _ACEOF
38946 cat confdefs.h >>conftest.$ac_ext
38947 cat >>conftest.$ac_ext <<_ACEOF
38948 /* end confdefs.h.  */
38949 #include <math.h>
38950 int
38951 main ()
38952 {
38953  _hypotl(0, 0);
38954   ;
38955   return 0;
38956 }
38957 _ACEOF
38958 rm -f conftest.$ac_objext
38959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38960   (eval $ac_compile) 2>&5
38961   ac_status=$?
38962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963   (exit $ac_status); } &&
38964          { ac_try='test -s conftest.$ac_objext'
38965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38966   (eval $ac_try) 2>&5
38967   ac_status=$?
38968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969   (exit $ac_status); }; }; then
38970   glibcxx_cv_func__hypotl_use=yes
38971 else
38972   echo "$as_me: failed program was:" >&5
38973 sed 's/^/| /' conftest.$ac_ext >&5
38974
38975 glibcxx_cv_func__hypotl_use=no
38976 fi
38977 rm -f conftest.$ac_objext conftest.$ac_ext
38978       ac_ext=c
38979 ac_cpp='$CPP $CPPFLAGS'
38980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38983
38984
38985 fi
38986
38987   fi
38988   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
38989 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
38990
38991     if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
38992
38993 for ac_func in _hypotl
38994 do
38995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38996 echo "$as_me:$LINENO: checking for $ac_func" >&5
38997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38998 if eval "test \"\${$as_ac_var+set}\" = set"; then
38999   echo $ECHO_N "(cached) $ECHO_C" >&6
39000 else
39001   if test x$gcc_no_link = xyes; then
39002   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39003 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39004    { (exit 1); exit 1; }; }
39005 fi
39006 cat >conftest.$ac_ext <<_ACEOF
39007 #line $LINENO "configure"
39008 /* confdefs.h.  */
39009 _ACEOF
39010 cat confdefs.h >>conftest.$ac_ext
39011 cat >>conftest.$ac_ext <<_ACEOF
39012 /* end confdefs.h.  */
39013 /* System header to define __stub macros and hopefully few prototypes,
39014     which can conflict with char $ac_func (); below.
39015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39016     <limits.h> exists even on freestanding compilers.  */
39017 #ifdef __STDC__
39018 # include <limits.h>
39019 #else
39020 # include <assert.h>
39021 #endif
39022 /* Override any gcc2 internal prototype to avoid an error.  */
39023 #ifdef __cplusplus
39024 extern "C"
39025 {
39026 #endif
39027 /* We use char because int might match the return type of a gcc2
39028    builtin and then its argument prototype would still apply.  */
39029 char $ac_func ();
39030 /* The GNU C library defines this for functions which it implements
39031     to always fail with ENOSYS.  Some functions are actually named
39032     something starting with __ and the normal name is an alias.  */
39033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39034 choke me
39035 #else
39036 char (*f) () = $ac_func;
39037 #endif
39038 #ifdef __cplusplus
39039 }
39040 #endif
39041
39042 int
39043 main ()
39044 {
39045 return f != $ac_func;
39046   ;
39047   return 0;
39048 }
39049 _ACEOF
39050 rm -f conftest.$ac_objext conftest$ac_exeext
39051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39052   (eval $ac_link) 2>&5
39053   ac_status=$?
39054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39055   (exit $ac_status); } &&
39056          { ac_try='test -s conftest$ac_exeext'
39057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39058   (eval $ac_try) 2>&5
39059   ac_status=$?
39060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061   (exit $ac_status); }; }; then
39062   eval "$as_ac_var=yes"
39063 else
39064   echo "$as_me: failed program was:" >&5
39065 sed 's/^/| /' conftest.$ac_ext >&5
39066
39067 eval "$as_ac_var=no"
39068 fi
39069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39070 fi
39071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39073 if test `eval echo '${'$as_ac_var'}'` = yes; then
39074   cat >>confdefs.h <<_ACEOF
39075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39076 _ACEOF
39077
39078 fi
39079 done
39080
39081     fi
39082   fi
39083
39084
39085
39086   echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
39087 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
39088   if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
39089     if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
39090   echo $ECHO_N "(cached) $ECHO_C" >&6
39091 else
39092
39093
39094
39095       ac_ext=cc
39096 ac_cpp='$CXXCPP $CPPFLAGS'
39097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39100
39101       cat >conftest.$ac_ext <<_ACEOF
39102 #line $LINENO "configure"
39103 /* confdefs.h.  */
39104 _ACEOF
39105 cat confdefs.h >>conftest.$ac_ext
39106 cat >>conftest.$ac_ext <<_ACEOF
39107 /* end confdefs.h.  */
39108 #include <math.h>
39109 int
39110 main ()
39111 {
39112  ldexpl(0, 0);
39113   ;
39114   return 0;
39115 }
39116 _ACEOF
39117 rm -f conftest.$ac_objext
39118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39119   (eval $ac_compile) 2>&5
39120   ac_status=$?
39121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122   (exit $ac_status); } &&
39123          { ac_try='test -s conftest.$ac_objext'
39124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39125   (eval $ac_try) 2>&5
39126   ac_status=$?
39127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39128   (exit $ac_status); }; }; then
39129   glibcxx_cv_func_ldexpl_use=yes
39130 else
39131   echo "$as_me: failed program was:" >&5
39132 sed 's/^/| /' conftest.$ac_ext >&5
39133
39134 glibcxx_cv_func_ldexpl_use=no
39135 fi
39136 rm -f conftest.$ac_objext conftest.$ac_ext
39137       ac_ext=c
39138 ac_cpp='$CPP $CPPFLAGS'
39139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39142
39143
39144 fi
39145
39146   fi
39147   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
39148 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
39149
39150   if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
39151
39152 for ac_func in ldexpl
39153 do
39154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39155 echo "$as_me:$LINENO: checking for $ac_func" >&5
39156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39157 if eval "test \"\${$as_ac_var+set}\" = set"; then
39158   echo $ECHO_N "(cached) $ECHO_C" >&6
39159 else
39160   if test x$gcc_no_link = xyes; then
39161   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39162 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39163    { (exit 1); exit 1; }; }
39164 fi
39165 cat >conftest.$ac_ext <<_ACEOF
39166 #line $LINENO "configure"
39167 /* confdefs.h.  */
39168 _ACEOF
39169 cat confdefs.h >>conftest.$ac_ext
39170 cat >>conftest.$ac_ext <<_ACEOF
39171 /* end confdefs.h.  */
39172 /* System header to define __stub macros and hopefully few prototypes,
39173     which can conflict with char $ac_func (); below.
39174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39175     <limits.h> exists even on freestanding compilers.  */
39176 #ifdef __STDC__
39177 # include <limits.h>
39178 #else
39179 # include <assert.h>
39180 #endif
39181 /* Override any gcc2 internal prototype to avoid an error.  */
39182 #ifdef __cplusplus
39183 extern "C"
39184 {
39185 #endif
39186 /* We use char because int might match the return type of a gcc2
39187    builtin and then its argument prototype would still apply.  */
39188 char $ac_func ();
39189 /* The GNU C library defines this for functions which it implements
39190     to always fail with ENOSYS.  Some functions are actually named
39191     something starting with __ and the normal name is an alias.  */
39192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39193 choke me
39194 #else
39195 char (*f) () = $ac_func;
39196 #endif
39197 #ifdef __cplusplus
39198 }
39199 #endif
39200
39201 int
39202 main ()
39203 {
39204 return f != $ac_func;
39205   ;
39206   return 0;
39207 }
39208 _ACEOF
39209 rm -f conftest.$ac_objext conftest$ac_exeext
39210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39211   (eval $ac_link) 2>&5
39212   ac_status=$?
39213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214   (exit $ac_status); } &&
39215          { ac_try='test -s conftest$ac_exeext'
39216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39217   (eval $ac_try) 2>&5
39218   ac_status=$?
39219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220   (exit $ac_status); }; }; then
39221   eval "$as_ac_var=yes"
39222 else
39223   echo "$as_me: failed program was:" >&5
39224 sed 's/^/| /' conftest.$ac_ext >&5
39225
39226 eval "$as_ac_var=no"
39227 fi
39228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39229 fi
39230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39232 if test `eval echo '${'$as_ac_var'}'` = yes; then
39233   cat >>confdefs.h <<_ACEOF
39234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39235 _ACEOF
39236
39237 fi
39238 done
39239
39240   else
39241
39242   echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
39243 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
39244   if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
39245     if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
39246   echo $ECHO_N "(cached) $ECHO_C" >&6
39247 else
39248
39249
39250
39251       ac_ext=cc
39252 ac_cpp='$CXXCPP $CPPFLAGS'
39253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39256
39257       cat >conftest.$ac_ext <<_ACEOF
39258 #line $LINENO "configure"
39259 /* confdefs.h.  */
39260 _ACEOF
39261 cat confdefs.h >>conftest.$ac_ext
39262 cat >>conftest.$ac_ext <<_ACEOF
39263 /* end confdefs.h.  */
39264 #include <math.h>
39265 int
39266 main ()
39267 {
39268  _ldexpl(0, 0);
39269   ;
39270   return 0;
39271 }
39272 _ACEOF
39273 rm -f conftest.$ac_objext
39274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39275   (eval $ac_compile) 2>&5
39276   ac_status=$?
39277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278   (exit $ac_status); } &&
39279          { ac_try='test -s conftest.$ac_objext'
39280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281   (eval $ac_try) 2>&5
39282   ac_status=$?
39283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284   (exit $ac_status); }; }; then
39285   glibcxx_cv_func__ldexpl_use=yes
39286 else
39287   echo "$as_me: failed program was:" >&5
39288 sed 's/^/| /' conftest.$ac_ext >&5
39289
39290 glibcxx_cv_func__ldexpl_use=no
39291 fi
39292 rm -f conftest.$ac_objext conftest.$ac_ext
39293       ac_ext=c
39294 ac_cpp='$CPP $CPPFLAGS'
39295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39298
39299
39300 fi
39301
39302   fi
39303   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
39304 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
39305
39306     if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
39307
39308 for ac_func in _ldexpl
39309 do
39310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39311 echo "$as_me:$LINENO: checking for $ac_func" >&5
39312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39313 if eval "test \"\${$as_ac_var+set}\" = set"; then
39314   echo $ECHO_N "(cached) $ECHO_C" >&6
39315 else
39316   if test x$gcc_no_link = xyes; then
39317   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39318 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39319    { (exit 1); exit 1; }; }
39320 fi
39321 cat >conftest.$ac_ext <<_ACEOF
39322 #line $LINENO "configure"
39323 /* confdefs.h.  */
39324 _ACEOF
39325 cat confdefs.h >>conftest.$ac_ext
39326 cat >>conftest.$ac_ext <<_ACEOF
39327 /* end confdefs.h.  */
39328 /* System header to define __stub macros and hopefully few prototypes,
39329     which can conflict with char $ac_func (); below.
39330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39331     <limits.h> exists even on freestanding compilers.  */
39332 #ifdef __STDC__
39333 # include <limits.h>
39334 #else
39335 # include <assert.h>
39336 #endif
39337 /* Override any gcc2 internal prototype to avoid an error.  */
39338 #ifdef __cplusplus
39339 extern "C"
39340 {
39341 #endif
39342 /* We use char because int might match the return type of a gcc2
39343    builtin and then its argument prototype would still apply.  */
39344 char $ac_func ();
39345 /* The GNU C library defines this for functions which it implements
39346     to always fail with ENOSYS.  Some functions are actually named
39347     something starting with __ and the normal name is an alias.  */
39348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39349 choke me
39350 #else
39351 char (*f) () = $ac_func;
39352 #endif
39353 #ifdef __cplusplus
39354 }
39355 #endif
39356
39357 int
39358 main ()
39359 {
39360 return f != $ac_func;
39361   ;
39362   return 0;
39363 }
39364 _ACEOF
39365 rm -f conftest.$ac_objext conftest$ac_exeext
39366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39367   (eval $ac_link) 2>&5
39368   ac_status=$?
39369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39370   (exit $ac_status); } &&
39371          { ac_try='test -s conftest$ac_exeext'
39372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39373   (eval $ac_try) 2>&5
39374   ac_status=$?
39375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39376   (exit $ac_status); }; }; then
39377   eval "$as_ac_var=yes"
39378 else
39379   echo "$as_me: failed program was:" >&5
39380 sed 's/^/| /' conftest.$ac_ext >&5
39381
39382 eval "$as_ac_var=no"
39383 fi
39384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39385 fi
39386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39388 if test `eval echo '${'$as_ac_var'}'` = yes; then
39389   cat >>confdefs.h <<_ACEOF
39390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39391 _ACEOF
39392
39393 fi
39394 done
39395
39396     fi
39397   fi
39398
39399
39400
39401   echo "$as_me:$LINENO: checking for logl declaration" >&5
39402 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
39403   if test x${glibcxx_cv_func_logl_use+set} != xset; then
39404     if test "${glibcxx_cv_func_logl_use+set}" = set; then
39405   echo $ECHO_N "(cached) $ECHO_C" >&6
39406 else
39407
39408
39409
39410       ac_ext=cc
39411 ac_cpp='$CXXCPP $CPPFLAGS'
39412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39415
39416       cat >conftest.$ac_ext <<_ACEOF
39417 #line $LINENO "configure"
39418 /* confdefs.h.  */
39419 _ACEOF
39420 cat confdefs.h >>conftest.$ac_ext
39421 cat >>conftest.$ac_ext <<_ACEOF
39422 /* end confdefs.h.  */
39423 #include <math.h>
39424                       #ifdef HAVE_IEEEFP_H
39425                       #include <ieeefp.h>
39426                       #endif
39427
39428 int
39429 main ()
39430 {
39431  logl(0);
39432   ;
39433   return 0;
39434 }
39435 _ACEOF
39436 rm -f conftest.$ac_objext
39437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39438   (eval $ac_compile) 2>&5
39439   ac_status=$?
39440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39441   (exit $ac_status); } &&
39442          { ac_try='test -s conftest.$ac_objext'
39443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39444   (eval $ac_try) 2>&5
39445   ac_status=$?
39446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39447   (exit $ac_status); }; }; then
39448   glibcxx_cv_func_logl_use=yes
39449 else
39450   echo "$as_me: failed program was:" >&5
39451 sed 's/^/| /' conftest.$ac_ext >&5
39452
39453 glibcxx_cv_func_logl_use=no
39454 fi
39455 rm -f conftest.$ac_objext conftest.$ac_ext
39456       ac_ext=c
39457 ac_cpp='$CPP $CPPFLAGS'
39458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39461
39462
39463 fi
39464
39465   fi
39466   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
39467 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
39468
39469   if test x$glibcxx_cv_func_logl_use = x"yes"; then
39470
39471 for ac_func in logl
39472 do
39473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39474 echo "$as_me:$LINENO: checking for $ac_func" >&5
39475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39476 if eval "test \"\${$as_ac_var+set}\" = set"; then
39477   echo $ECHO_N "(cached) $ECHO_C" >&6
39478 else
39479   if test x$gcc_no_link = xyes; then
39480   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39481 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39482    { (exit 1); exit 1; }; }
39483 fi
39484 cat >conftest.$ac_ext <<_ACEOF
39485 #line $LINENO "configure"
39486 /* confdefs.h.  */
39487 _ACEOF
39488 cat confdefs.h >>conftest.$ac_ext
39489 cat >>conftest.$ac_ext <<_ACEOF
39490 /* end confdefs.h.  */
39491 /* System header to define __stub macros and hopefully few prototypes,
39492     which can conflict with char $ac_func (); below.
39493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39494     <limits.h> exists even on freestanding compilers.  */
39495 #ifdef __STDC__
39496 # include <limits.h>
39497 #else
39498 # include <assert.h>
39499 #endif
39500 /* Override any gcc2 internal prototype to avoid an error.  */
39501 #ifdef __cplusplus
39502 extern "C"
39503 {
39504 #endif
39505 /* We use char because int might match the return type of a gcc2
39506    builtin and then its argument prototype would still apply.  */
39507 char $ac_func ();
39508 /* The GNU C library defines this for functions which it implements
39509     to always fail with ENOSYS.  Some functions are actually named
39510     something starting with __ and the normal name is an alias.  */
39511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39512 choke me
39513 #else
39514 char (*f) () = $ac_func;
39515 #endif
39516 #ifdef __cplusplus
39517 }
39518 #endif
39519
39520 int
39521 main ()
39522 {
39523 return f != $ac_func;
39524   ;
39525   return 0;
39526 }
39527 _ACEOF
39528 rm -f conftest.$ac_objext conftest$ac_exeext
39529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39530   (eval $ac_link) 2>&5
39531   ac_status=$?
39532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39533   (exit $ac_status); } &&
39534          { ac_try='test -s conftest$ac_exeext'
39535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39536   (eval $ac_try) 2>&5
39537   ac_status=$?
39538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39539   (exit $ac_status); }; }; then
39540   eval "$as_ac_var=yes"
39541 else
39542   echo "$as_me: failed program was:" >&5
39543 sed 's/^/| /' conftest.$ac_ext >&5
39544
39545 eval "$as_ac_var=no"
39546 fi
39547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39548 fi
39549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39551 if test `eval echo '${'$as_ac_var'}'` = yes; then
39552   cat >>confdefs.h <<_ACEOF
39553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39554 _ACEOF
39555
39556 fi
39557 done
39558
39559   else
39560
39561   echo "$as_me:$LINENO: checking for _logl declaration" >&5
39562 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
39563   if test x${glibcxx_cv_func__logl_use+set} != xset; then
39564     if test "${glibcxx_cv_func__logl_use+set}" = set; then
39565   echo $ECHO_N "(cached) $ECHO_C" >&6
39566 else
39567
39568
39569
39570       ac_ext=cc
39571 ac_cpp='$CXXCPP $CPPFLAGS'
39572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39575
39576       cat >conftest.$ac_ext <<_ACEOF
39577 #line $LINENO "configure"
39578 /* confdefs.h.  */
39579 _ACEOF
39580 cat confdefs.h >>conftest.$ac_ext
39581 cat >>conftest.$ac_ext <<_ACEOF
39582 /* end confdefs.h.  */
39583 #include <math.h>
39584                       #ifdef HAVE_IEEEFP_H
39585                       #include <ieeefp.h>
39586                       #endif
39587
39588 int
39589 main ()
39590 {
39591  _logl(0);
39592   ;
39593   return 0;
39594 }
39595 _ACEOF
39596 rm -f conftest.$ac_objext
39597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39598   (eval $ac_compile) 2>&5
39599   ac_status=$?
39600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601   (exit $ac_status); } &&
39602          { ac_try='test -s conftest.$ac_objext'
39603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39604   (eval $ac_try) 2>&5
39605   ac_status=$?
39606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607   (exit $ac_status); }; }; then
39608   glibcxx_cv_func__logl_use=yes
39609 else
39610   echo "$as_me: failed program was:" >&5
39611 sed 's/^/| /' conftest.$ac_ext >&5
39612
39613 glibcxx_cv_func__logl_use=no
39614 fi
39615 rm -f conftest.$ac_objext conftest.$ac_ext
39616       ac_ext=c
39617 ac_cpp='$CPP $CPPFLAGS'
39618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39621
39622
39623 fi
39624
39625   fi
39626   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
39627 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
39628
39629     if test x$glibcxx_cv_func__logl_use = x"yes"; then
39630
39631 for ac_func in _logl
39632 do
39633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39634 echo "$as_me:$LINENO: checking for $ac_func" >&5
39635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39636 if eval "test \"\${$as_ac_var+set}\" = set"; then
39637   echo $ECHO_N "(cached) $ECHO_C" >&6
39638 else
39639   if test x$gcc_no_link = xyes; then
39640   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39641 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39642    { (exit 1); exit 1; }; }
39643 fi
39644 cat >conftest.$ac_ext <<_ACEOF
39645 #line $LINENO "configure"
39646 /* confdefs.h.  */
39647 _ACEOF
39648 cat confdefs.h >>conftest.$ac_ext
39649 cat >>conftest.$ac_ext <<_ACEOF
39650 /* end confdefs.h.  */
39651 /* System header to define __stub macros and hopefully few prototypes,
39652     which can conflict with char $ac_func (); below.
39653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39654     <limits.h> exists even on freestanding compilers.  */
39655 #ifdef __STDC__
39656 # include <limits.h>
39657 #else
39658 # include <assert.h>
39659 #endif
39660 /* Override any gcc2 internal prototype to avoid an error.  */
39661 #ifdef __cplusplus
39662 extern "C"
39663 {
39664 #endif
39665 /* We use char because int might match the return type of a gcc2
39666    builtin and then its argument prototype would still apply.  */
39667 char $ac_func ();
39668 /* The GNU C library defines this for functions which it implements
39669     to always fail with ENOSYS.  Some functions are actually named
39670     something starting with __ and the normal name is an alias.  */
39671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39672 choke me
39673 #else
39674 char (*f) () = $ac_func;
39675 #endif
39676 #ifdef __cplusplus
39677 }
39678 #endif
39679
39680 int
39681 main ()
39682 {
39683 return f != $ac_func;
39684   ;
39685   return 0;
39686 }
39687 _ACEOF
39688 rm -f conftest.$ac_objext conftest$ac_exeext
39689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39690   (eval $ac_link) 2>&5
39691   ac_status=$?
39692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39693   (exit $ac_status); } &&
39694          { ac_try='test -s conftest$ac_exeext'
39695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39696   (eval $ac_try) 2>&5
39697   ac_status=$?
39698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699   (exit $ac_status); }; }; then
39700   eval "$as_ac_var=yes"
39701 else
39702   echo "$as_me: failed program was:" >&5
39703 sed 's/^/| /' conftest.$ac_ext >&5
39704
39705 eval "$as_ac_var=no"
39706 fi
39707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39708 fi
39709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39711 if test `eval echo '${'$as_ac_var'}'` = yes; then
39712   cat >>confdefs.h <<_ACEOF
39713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39714 _ACEOF
39715
39716 fi
39717 done
39718
39719     fi
39720   fi
39721
39722
39723
39724   echo "$as_me:$LINENO: checking for log10l declaration" >&5
39725 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
39726   if test x${glibcxx_cv_func_log10l_use+set} != xset; then
39727     if test "${glibcxx_cv_func_log10l_use+set}" = set; then
39728   echo $ECHO_N "(cached) $ECHO_C" >&6
39729 else
39730
39731
39732
39733       ac_ext=cc
39734 ac_cpp='$CXXCPP $CPPFLAGS'
39735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39738
39739       cat >conftest.$ac_ext <<_ACEOF
39740 #line $LINENO "configure"
39741 /* confdefs.h.  */
39742 _ACEOF
39743 cat confdefs.h >>conftest.$ac_ext
39744 cat >>conftest.$ac_ext <<_ACEOF
39745 /* end confdefs.h.  */
39746 #include <math.h>
39747                       #ifdef HAVE_IEEEFP_H
39748                       #include <ieeefp.h>
39749                       #endif
39750
39751 int
39752 main ()
39753 {
39754  log10l(0);
39755   ;
39756   return 0;
39757 }
39758 _ACEOF
39759 rm -f conftest.$ac_objext
39760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39761   (eval $ac_compile) 2>&5
39762   ac_status=$?
39763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764   (exit $ac_status); } &&
39765          { ac_try='test -s conftest.$ac_objext'
39766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39767   (eval $ac_try) 2>&5
39768   ac_status=$?
39769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770   (exit $ac_status); }; }; then
39771   glibcxx_cv_func_log10l_use=yes
39772 else
39773   echo "$as_me: failed program was:" >&5
39774 sed 's/^/| /' conftest.$ac_ext >&5
39775
39776 glibcxx_cv_func_log10l_use=no
39777 fi
39778 rm -f conftest.$ac_objext conftest.$ac_ext
39779       ac_ext=c
39780 ac_cpp='$CPP $CPPFLAGS'
39781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39784
39785
39786 fi
39787
39788   fi
39789   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
39790 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
39791
39792   if test x$glibcxx_cv_func_log10l_use = x"yes"; then
39793
39794 for ac_func in log10l
39795 do
39796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39797 echo "$as_me:$LINENO: checking for $ac_func" >&5
39798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39799 if eval "test \"\${$as_ac_var+set}\" = set"; then
39800   echo $ECHO_N "(cached) $ECHO_C" >&6
39801 else
39802   if test x$gcc_no_link = xyes; then
39803   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39804 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39805    { (exit 1); exit 1; }; }
39806 fi
39807 cat >conftest.$ac_ext <<_ACEOF
39808 #line $LINENO "configure"
39809 /* confdefs.h.  */
39810 _ACEOF
39811 cat confdefs.h >>conftest.$ac_ext
39812 cat >>conftest.$ac_ext <<_ACEOF
39813 /* end confdefs.h.  */
39814 /* System header to define __stub macros and hopefully few prototypes,
39815     which can conflict with char $ac_func (); below.
39816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39817     <limits.h> exists even on freestanding compilers.  */
39818 #ifdef __STDC__
39819 # include <limits.h>
39820 #else
39821 # include <assert.h>
39822 #endif
39823 /* Override any gcc2 internal prototype to avoid an error.  */
39824 #ifdef __cplusplus
39825 extern "C"
39826 {
39827 #endif
39828 /* We use char because int might match the return type of a gcc2
39829    builtin and then its argument prototype would still apply.  */
39830 char $ac_func ();
39831 /* The GNU C library defines this for functions which it implements
39832     to always fail with ENOSYS.  Some functions are actually named
39833     something starting with __ and the normal name is an alias.  */
39834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39835 choke me
39836 #else
39837 char (*f) () = $ac_func;
39838 #endif
39839 #ifdef __cplusplus
39840 }
39841 #endif
39842
39843 int
39844 main ()
39845 {
39846 return f != $ac_func;
39847   ;
39848   return 0;
39849 }
39850 _ACEOF
39851 rm -f conftest.$ac_objext conftest$ac_exeext
39852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39853   (eval $ac_link) 2>&5
39854   ac_status=$?
39855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39856   (exit $ac_status); } &&
39857          { ac_try='test -s conftest$ac_exeext'
39858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39859   (eval $ac_try) 2>&5
39860   ac_status=$?
39861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39862   (exit $ac_status); }; }; then
39863   eval "$as_ac_var=yes"
39864 else
39865   echo "$as_me: failed program was:" >&5
39866 sed 's/^/| /' conftest.$ac_ext >&5
39867
39868 eval "$as_ac_var=no"
39869 fi
39870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39871 fi
39872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39874 if test `eval echo '${'$as_ac_var'}'` = yes; then
39875   cat >>confdefs.h <<_ACEOF
39876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39877 _ACEOF
39878
39879 fi
39880 done
39881
39882   else
39883
39884   echo "$as_me:$LINENO: checking for _log10l declaration" >&5
39885 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
39886   if test x${glibcxx_cv_func__log10l_use+set} != xset; then
39887     if test "${glibcxx_cv_func__log10l_use+set}" = set; then
39888   echo $ECHO_N "(cached) $ECHO_C" >&6
39889 else
39890
39891
39892
39893       ac_ext=cc
39894 ac_cpp='$CXXCPP $CPPFLAGS'
39895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39898
39899       cat >conftest.$ac_ext <<_ACEOF
39900 #line $LINENO "configure"
39901 /* confdefs.h.  */
39902 _ACEOF
39903 cat confdefs.h >>conftest.$ac_ext
39904 cat >>conftest.$ac_ext <<_ACEOF
39905 /* end confdefs.h.  */
39906 #include <math.h>
39907                       #ifdef HAVE_IEEEFP_H
39908                       #include <ieeefp.h>
39909                       #endif
39910
39911 int
39912 main ()
39913 {
39914  _log10l(0);
39915   ;
39916   return 0;
39917 }
39918 _ACEOF
39919 rm -f conftest.$ac_objext
39920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39921   (eval $ac_compile) 2>&5
39922   ac_status=$?
39923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39924   (exit $ac_status); } &&
39925          { ac_try='test -s conftest.$ac_objext'
39926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39927   (eval $ac_try) 2>&5
39928   ac_status=$?
39929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930   (exit $ac_status); }; }; then
39931   glibcxx_cv_func__log10l_use=yes
39932 else
39933   echo "$as_me: failed program was:" >&5
39934 sed 's/^/| /' conftest.$ac_ext >&5
39935
39936 glibcxx_cv_func__log10l_use=no
39937 fi
39938 rm -f conftest.$ac_objext conftest.$ac_ext
39939       ac_ext=c
39940 ac_cpp='$CPP $CPPFLAGS'
39941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39944
39945
39946 fi
39947
39948   fi
39949   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
39950 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
39951
39952     if test x$glibcxx_cv_func__log10l_use = x"yes"; then
39953
39954 for ac_func in _log10l
39955 do
39956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39957 echo "$as_me:$LINENO: checking for $ac_func" >&5
39958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39959 if eval "test \"\${$as_ac_var+set}\" = set"; then
39960   echo $ECHO_N "(cached) $ECHO_C" >&6
39961 else
39962   if test x$gcc_no_link = xyes; then
39963   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39965    { (exit 1); exit 1; }; }
39966 fi
39967 cat >conftest.$ac_ext <<_ACEOF
39968 #line $LINENO "configure"
39969 /* confdefs.h.  */
39970 _ACEOF
39971 cat confdefs.h >>conftest.$ac_ext
39972 cat >>conftest.$ac_ext <<_ACEOF
39973 /* end confdefs.h.  */
39974 /* System header to define __stub macros and hopefully few prototypes,
39975     which can conflict with char $ac_func (); below.
39976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39977     <limits.h> exists even on freestanding compilers.  */
39978 #ifdef __STDC__
39979 # include <limits.h>
39980 #else
39981 # include <assert.h>
39982 #endif
39983 /* Override any gcc2 internal prototype to avoid an error.  */
39984 #ifdef __cplusplus
39985 extern "C"
39986 {
39987 #endif
39988 /* We use char because int might match the return type of a gcc2
39989    builtin and then its argument prototype would still apply.  */
39990 char $ac_func ();
39991 /* The GNU C library defines this for functions which it implements
39992     to always fail with ENOSYS.  Some functions are actually named
39993     something starting with __ and the normal name is an alias.  */
39994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39995 choke me
39996 #else
39997 char (*f) () = $ac_func;
39998 #endif
39999 #ifdef __cplusplus
40000 }
40001 #endif
40002
40003 int
40004 main ()
40005 {
40006 return f != $ac_func;
40007   ;
40008   return 0;
40009 }
40010 _ACEOF
40011 rm -f conftest.$ac_objext conftest$ac_exeext
40012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40013   (eval $ac_link) 2>&5
40014   ac_status=$?
40015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40016   (exit $ac_status); } &&
40017          { ac_try='test -s conftest$ac_exeext'
40018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40019   (eval $ac_try) 2>&5
40020   ac_status=$?
40021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022   (exit $ac_status); }; }; then
40023   eval "$as_ac_var=yes"
40024 else
40025   echo "$as_me: failed program was:" >&5
40026 sed 's/^/| /' conftest.$ac_ext >&5
40027
40028 eval "$as_ac_var=no"
40029 fi
40030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40031 fi
40032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40034 if test `eval echo '${'$as_ac_var'}'` = yes; then
40035   cat >>confdefs.h <<_ACEOF
40036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40037 _ACEOF
40038
40039 fi
40040 done
40041
40042     fi
40043   fi
40044
40045
40046
40047   echo "$as_me:$LINENO: checking for modfl declaration" >&5
40048 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
40049   if test x${glibcxx_cv_func_modfl_use+set} != xset; then
40050     if test "${glibcxx_cv_func_modfl_use+set}" = set; then
40051   echo $ECHO_N "(cached) $ECHO_C" >&6
40052 else
40053
40054
40055
40056       ac_ext=cc
40057 ac_cpp='$CXXCPP $CPPFLAGS'
40058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40061
40062       cat >conftest.$ac_ext <<_ACEOF
40063 #line $LINENO "configure"
40064 /* confdefs.h.  */
40065 _ACEOF
40066 cat confdefs.h >>conftest.$ac_ext
40067 cat >>conftest.$ac_ext <<_ACEOF
40068 /* end confdefs.h.  */
40069 #include <math.h>
40070 int
40071 main ()
40072 {
40073  modfl(0, 0);
40074   ;
40075   return 0;
40076 }
40077 _ACEOF
40078 rm -f conftest.$ac_objext
40079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40080   (eval $ac_compile) 2>&5
40081   ac_status=$?
40082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40083   (exit $ac_status); } &&
40084          { ac_try='test -s conftest.$ac_objext'
40085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40086   (eval $ac_try) 2>&5
40087   ac_status=$?
40088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40089   (exit $ac_status); }; }; then
40090   glibcxx_cv_func_modfl_use=yes
40091 else
40092   echo "$as_me: failed program was:" >&5
40093 sed 's/^/| /' conftest.$ac_ext >&5
40094
40095 glibcxx_cv_func_modfl_use=no
40096 fi
40097 rm -f conftest.$ac_objext conftest.$ac_ext
40098       ac_ext=c
40099 ac_cpp='$CPP $CPPFLAGS'
40100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40103
40104
40105 fi
40106
40107   fi
40108   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
40109 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
40110
40111   if test x$glibcxx_cv_func_modfl_use = x"yes"; then
40112
40113 for ac_func in modfl
40114 do
40115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40116 echo "$as_me:$LINENO: checking for $ac_func" >&5
40117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40118 if eval "test \"\${$as_ac_var+set}\" = set"; then
40119   echo $ECHO_N "(cached) $ECHO_C" >&6
40120 else
40121   if test x$gcc_no_link = xyes; then
40122   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40124    { (exit 1); exit 1; }; }
40125 fi
40126 cat >conftest.$ac_ext <<_ACEOF
40127 #line $LINENO "configure"
40128 /* confdefs.h.  */
40129 _ACEOF
40130 cat confdefs.h >>conftest.$ac_ext
40131 cat >>conftest.$ac_ext <<_ACEOF
40132 /* end confdefs.h.  */
40133 /* System header to define __stub macros and hopefully few prototypes,
40134     which can conflict with char $ac_func (); below.
40135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40136     <limits.h> exists even on freestanding compilers.  */
40137 #ifdef __STDC__
40138 # include <limits.h>
40139 #else
40140 # include <assert.h>
40141 #endif
40142 /* Override any gcc2 internal prototype to avoid an error.  */
40143 #ifdef __cplusplus
40144 extern "C"
40145 {
40146 #endif
40147 /* We use char because int might match the return type of a gcc2
40148    builtin and then its argument prototype would still apply.  */
40149 char $ac_func ();
40150 /* The GNU C library defines this for functions which it implements
40151     to always fail with ENOSYS.  Some functions are actually named
40152     something starting with __ and the normal name is an alias.  */
40153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40154 choke me
40155 #else
40156 char (*f) () = $ac_func;
40157 #endif
40158 #ifdef __cplusplus
40159 }
40160 #endif
40161
40162 int
40163 main ()
40164 {
40165 return f != $ac_func;
40166   ;
40167   return 0;
40168 }
40169 _ACEOF
40170 rm -f conftest.$ac_objext conftest$ac_exeext
40171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40172   (eval $ac_link) 2>&5
40173   ac_status=$?
40174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40175   (exit $ac_status); } &&
40176          { ac_try='test -s conftest$ac_exeext'
40177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40178   (eval $ac_try) 2>&5
40179   ac_status=$?
40180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181   (exit $ac_status); }; }; then
40182   eval "$as_ac_var=yes"
40183 else
40184   echo "$as_me: failed program was:" >&5
40185 sed 's/^/| /' conftest.$ac_ext >&5
40186
40187 eval "$as_ac_var=no"
40188 fi
40189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40190 fi
40191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40193 if test `eval echo '${'$as_ac_var'}'` = yes; then
40194   cat >>confdefs.h <<_ACEOF
40195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40196 _ACEOF
40197
40198 fi
40199 done
40200
40201   else
40202
40203   echo "$as_me:$LINENO: checking for _modfl declaration" >&5
40204 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
40205   if test x${glibcxx_cv_func__modfl_use+set} != xset; then
40206     if test "${glibcxx_cv_func__modfl_use+set}" = set; then
40207   echo $ECHO_N "(cached) $ECHO_C" >&6
40208 else
40209
40210
40211
40212       ac_ext=cc
40213 ac_cpp='$CXXCPP $CPPFLAGS'
40214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40217
40218       cat >conftest.$ac_ext <<_ACEOF
40219 #line $LINENO "configure"
40220 /* confdefs.h.  */
40221 _ACEOF
40222 cat confdefs.h >>conftest.$ac_ext
40223 cat >>conftest.$ac_ext <<_ACEOF
40224 /* end confdefs.h.  */
40225 #include <math.h>
40226 int
40227 main ()
40228 {
40229  _modfl(0, 0);
40230   ;
40231   return 0;
40232 }
40233 _ACEOF
40234 rm -f conftest.$ac_objext
40235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40236   (eval $ac_compile) 2>&5
40237   ac_status=$?
40238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239   (exit $ac_status); } &&
40240          { ac_try='test -s conftest.$ac_objext'
40241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40242   (eval $ac_try) 2>&5
40243   ac_status=$?
40244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40245   (exit $ac_status); }; }; then
40246   glibcxx_cv_func__modfl_use=yes
40247 else
40248   echo "$as_me: failed program was:" >&5
40249 sed 's/^/| /' conftest.$ac_ext >&5
40250
40251 glibcxx_cv_func__modfl_use=no
40252 fi
40253 rm -f conftest.$ac_objext conftest.$ac_ext
40254       ac_ext=c
40255 ac_cpp='$CPP $CPPFLAGS'
40256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40259
40260
40261 fi
40262
40263   fi
40264   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
40265 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
40266
40267     if test x$glibcxx_cv_func__modfl_use = x"yes"; then
40268
40269 for ac_func in _modfl
40270 do
40271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40272 echo "$as_me:$LINENO: checking for $ac_func" >&5
40273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40274 if eval "test \"\${$as_ac_var+set}\" = set"; then
40275   echo $ECHO_N "(cached) $ECHO_C" >&6
40276 else
40277   if test x$gcc_no_link = xyes; then
40278   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40280    { (exit 1); exit 1; }; }
40281 fi
40282 cat >conftest.$ac_ext <<_ACEOF
40283 #line $LINENO "configure"
40284 /* confdefs.h.  */
40285 _ACEOF
40286 cat confdefs.h >>conftest.$ac_ext
40287 cat >>conftest.$ac_ext <<_ACEOF
40288 /* end confdefs.h.  */
40289 /* System header to define __stub macros and hopefully few prototypes,
40290     which can conflict with char $ac_func (); below.
40291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40292     <limits.h> exists even on freestanding compilers.  */
40293 #ifdef __STDC__
40294 # include <limits.h>
40295 #else
40296 # include <assert.h>
40297 #endif
40298 /* Override any gcc2 internal prototype to avoid an error.  */
40299 #ifdef __cplusplus
40300 extern "C"
40301 {
40302 #endif
40303 /* We use char because int might match the return type of a gcc2
40304    builtin and then its argument prototype would still apply.  */
40305 char $ac_func ();
40306 /* The GNU C library defines this for functions which it implements
40307     to always fail with ENOSYS.  Some functions are actually named
40308     something starting with __ and the normal name is an alias.  */
40309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40310 choke me
40311 #else
40312 char (*f) () = $ac_func;
40313 #endif
40314 #ifdef __cplusplus
40315 }
40316 #endif
40317
40318 int
40319 main ()
40320 {
40321 return f != $ac_func;
40322   ;
40323   return 0;
40324 }
40325 _ACEOF
40326 rm -f conftest.$ac_objext conftest$ac_exeext
40327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40328   (eval $ac_link) 2>&5
40329   ac_status=$?
40330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331   (exit $ac_status); } &&
40332          { ac_try='test -s conftest$ac_exeext'
40333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40334   (eval $ac_try) 2>&5
40335   ac_status=$?
40336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40337   (exit $ac_status); }; }; then
40338   eval "$as_ac_var=yes"
40339 else
40340   echo "$as_me: failed program was:" >&5
40341 sed 's/^/| /' conftest.$ac_ext >&5
40342
40343 eval "$as_ac_var=no"
40344 fi
40345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40346 fi
40347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40349 if test `eval echo '${'$as_ac_var'}'` = yes; then
40350   cat >>confdefs.h <<_ACEOF
40351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40352 _ACEOF
40353
40354 fi
40355 done
40356
40357     fi
40358   fi
40359
40360
40361
40362   echo "$as_me:$LINENO: checking for powl declaration" >&5
40363 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
40364   if test x${glibcxx_cv_func_powl_use+set} != xset; then
40365     if test "${glibcxx_cv_func_powl_use+set}" = set; then
40366   echo $ECHO_N "(cached) $ECHO_C" >&6
40367 else
40368
40369
40370
40371       ac_ext=cc
40372 ac_cpp='$CXXCPP $CPPFLAGS'
40373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40376
40377       cat >conftest.$ac_ext <<_ACEOF
40378 #line $LINENO "configure"
40379 /* confdefs.h.  */
40380 _ACEOF
40381 cat confdefs.h >>conftest.$ac_ext
40382 cat >>conftest.$ac_ext <<_ACEOF
40383 /* end confdefs.h.  */
40384 #include <math.h>
40385 int
40386 main ()
40387 {
40388  powl(0, 0);
40389   ;
40390   return 0;
40391 }
40392 _ACEOF
40393 rm -f conftest.$ac_objext
40394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40395   (eval $ac_compile) 2>&5
40396   ac_status=$?
40397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40398   (exit $ac_status); } &&
40399          { ac_try='test -s conftest.$ac_objext'
40400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40401   (eval $ac_try) 2>&5
40402   ac_status=$?
40403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404   (exit $ac_status); }; }; then
40405   glibcxx_cv_func_powl_use=yes
40406 else
40407   echo "$as_me: failed program was:" >&5
40408 sed 's/^/| /' conftest.$ac_ext >&5
40409
40410 glibcxx_cv_func_powl_use=no
40411 fi
40412 rm -f conftest.$ac_objext conftest.$ac_ext
40413       ac_ext=c
40414 ac_cpp='$CPP $CPPFLAGS'
40415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40418
40419
40420 fi
40421
40422   fi
40423   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
40424 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
40425
40426   if test x$glibcxx_cv_func_powl_use = x"yes"; then
40427
40428 for ac_func in powl
40429 do
40430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40431 echo "$as_me:$LINENO: checking for $ac_func" >&5
40432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40433 if eval "test \"\${$as_ac_var+set}\" = set"; then
40434   echo $ECHO_N "(cached) $ECHO_C" >&6
40435 else
40436   if test x$gcc_no_link = xyes; then
40437   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40438 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40439    { (exit 1); exit 1; }; }
40440 fi
40441 cat >conftest.$ac_ext <<_ACEOF
40442 #line $LINENO "configure"
40443 /* confdefs.h.  */
40444 _ACEOF
40445 cat confdefs.h >>conftest.$ac_ext
40446 cat >>conftest.$ac_ext <<_ACEOF
40447 /* end confdefs.h.  */
40448 /* System header to define __stub macros and hopefully few prototypes,
40449     which can conflict with char $ac_func (); below.
40450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40451     <limits.h> exists even on freestanding compilers.  */
40452 #ifdef __STDC__
40453 # include <limits.h>
40454 #else
40455 # include <assert.h>
40456 #endif
40457 /* Override any gcc2 internal prototype to avoid an error.  */
40458 #ifdef __cplusplus
40459 extern "C"
40460 {
40461 #endif
40462 /* We use char because int might match the return type of a gcc2
40463    builtin and then its argument prototype would still apply.  */
40464 char $ac_func ();
40465 /* The GNU C library defines this for functions which it implements
40466     to always fail with ENOSYS.  Some functions are actually named
40467     something starting with __ and the normal name is an alias.  */
40468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40469 choke me
40470 #else
40471 char (*f) () = $ac_func;
40472 #endif
40473 #ifdef __cplusplus
40474 }
40475 #endif
40476
40477 int
40478 main ()
40479 {
40480 return f != $ac_func;
40481   ;
40482   return 0;
40483 }
40484 _ACEOF
40485 rm -f conftest.$ac_objext conftest$ac_exeext
40486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40487   (eval $ac_link) 2>&5
40488   ac_status=$?
40489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40490   (exit $ac_status); } &&
40491          { ac_try='test -s conftest$ac_exeext'
40492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40493   (eval $ac_try) 2>&5
40494   ac_status=$?
40495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40496   (exit $ac_status); }; }; then
40497   eval "$as_ac_var=yes"
40498 else
40499   echo "$as_me: failed program was:" >&5
40500 sed 's/^/| /' conftest.$ac_ext >&5
40501
40502 eval "$as_ac_var=no"
40503 fi
40504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40505 fi
40506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40508 if test `eval echo '${'$as_ac_var'}'` = yes; then
40509   cat >>confdefs.h <<_ACEOF
40510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40511 _ACEOF
40512
40513 fi
40514 done
40515
40516   else
40517
40518   echo "$as_me:$LINENO: checking for _powl declaration" >&5
40519 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
40520   if test x${glibcxx_cv_func__powl_use+set} != xset; then
40521     if test "${glibcxx_cv_func__powl_use+set}" = set; then
40522   echo $ECHO_N "(cached) $ECHO_C" >&6
40523 else
40524
40525
40526
40527       ac_ext=cc
40528 ac_cpp='$CXXCPP $CPPFLAGS'
40529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40532
40533       cat >conftest.$ac_ext <<_ACEOF
40534 #line $LINENO "configure"
40535 /* confdefs.h.  */
40536 _ACEOF
40537 cat confdefs.h >>conftest.$ac_ext
40538 cat >>conftest.$ac_ext <<_ACEOF
40539 /* end confdefs.h.  */
40540 #include <math.h>
40541 int
40542 main ()
40543 {
40544  _powl(0, 0);
40545   ;
40546   return 0;
40547 }
40548 _ACEOF
40549 rm -f conftest.$ac_objext
40550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40551   (eval $ac_compile) 2>&5
40552   ac_status=$?
40553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40554   (exit $ac_status); } &&
40555          { ac_try='test -s conftest.$ac_objext'
40556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40557   (eval $ac_try) 2>&5
40558   ac_status=$?
40559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40560   (exit $ac_status); }; }; then
40561   glibcxx_cv_func__powl_use=yes
40562 else
40563   echo "$as_me: failed program was:" >&5
40564 sed 's/^/| /' conftest.$ac_ext >&5
40565
40566 glibcxx_cv_func__powl_use=no
40567 fi
40568 rm -f conftest.$ac_objext conftest.$ac_ext
40569       ac_ext=c
40570 ac_cpp='$CPP $CPPFLAGS'
40571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40574
40575
40576 fi
40577
40578   fi
40579   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
40580 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
40581
40582     if test x$glibcxx_cv_func__powl_use = x"yes"; then
40583
40584 for ac_func in _powl
40585 do
40586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40587 echo "$as_me:$LINENO: checking for $ac_func" >&5
40588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40589 if eval "test \"\${$as_ac_var+set}\" = set"; then
40590   echo $ECHO_N "(cached) $ECHO_C" >&6
40591 else
40592   if test x$gcc_no_link = xyes; then
40593   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40595    { (exit 1); exit 1; }; }
40596 fi
40597 cat >conftest.$ac_ext <<_ACEOF
40598 #line $LINENO "configure"
40599 /* confdefs.h.  */
40600 _ACEOF
40601 cat confdefs.h >>conftest.$ac_ext
40602 cat >>conftest.$ac_ext <<_ACEOF
40603 /* end confdefs.h.  */
40604 /* System header to define __stub macros and hopefully few prototypes,
40605     which can conflict with char $ac_func (); below.
40606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40607     <limits.h> exists even on freestanding compilers.  */
40608 #ifdef __STDC__
40609 # include <limits.h>
40610 #else
40611 # include <assert.h>
40612 #endif
40613 /* Override any gcc2 internal prototype to avoid an error.  */
40614 #ifdef __cplusplus
40615 extern "C"
40616 {
40617 #endif
40618 /* We use char because int might match the return type of a gcc2
40619    builtin and then its argument prototype would still apply.  */
40620 char $ac_func ();
40621 /* The GNU C library defines this for functions which it implements
40622     to always fail with ENOSYS.  Some functions are actually named
40623     something starting with __ and the normal name is an alias.  */
40624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40625 choke me
40626 #else
40627 char (*f) () = $ac_func;
40628 #endif
40629 #ifdef __cplusplus
40630 }
40631 #endif
40632
40633 int
40634 main ()
40635 {
40636 return f != $ac_func;
40637   ;
40638   return 0;
40639 }
40640 _ACEOF
40641 rm -f conftest.$ac_objext conftest$ac_exeext
40642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40643   (eval $ac_link) 2>&5
40644   ac_status=$?
40645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646   (exit $ac_status); } &&
40647          { ac_try='test -s conftest$ac_exeext'
40648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40649   (eval $ac_try) 2>&5
40650   ac_status=$?
40651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40652   (exit $ac_status); }; }; then
40653   eval "$as_ac_var=yes"
40654 else
40655   echo "$as_me: failed program was:" >&5
40656 sed 's/^/| /' conftest.$ac_ext >&5
40657
40658 eval "$as_ac_var=no"
40659 fi
40660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40661 fi
40662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40664 if test `eval echo '${'$as_ac_var'}'` = yes; then
40665   cat >>confdefs.h <<_ACEOF
40666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40667 _ACEOF
40668
40669 fi
40670 done
40671
40672     fi
40673   fi
40674
40675
40676
40677   echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
40678 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
40679   if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
40680     if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
40681   echo $ECHO_N "(cached) $ECHO_C" >&6
40682 else
40683
40684
40685
40686       ac_ext=cc
40687 ac_cpp='$CXXCPP $CPPFLAGS'
40688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40691
40692       cat >conftest.$ac_ext <<_ACEOF
40693 #line $LINENO "configure"
40694 /* confdefs.h.  */
40695 _ACEOF
40696 cat confdefs.h >>conftest.$ac_ext
40697 cat >>conftest.$ac_ext <<_ACEOF
40698 /* end confdefs.h.  */
40699 #include <math.h>
40700                       #ifdef HAVE_IEEEFP_H
40701                       #include <ieeefp.h>
40702                       #endif
40703
40704 int
40705 main ()
40706 {
40707  sqrtl(0);
40708   ;
40709   return 0;
40710 }
40711 _ACEOF
40712 rm -f conftest.$ac_objext
40713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40714   (eval $ac_compile) 2>&5
40715   ac_status=$?
40716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40717   (exit $ac_status); } &&
40718          { ac_try='test -s conftest.$ac_objext'
40719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40720   (eval $ac_try) 2>&5
40721   ac_status=$?
40722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723   (exit $ac_status); }; }; then
40724   glibcxx_cv_func_sqrtl_use=yes
40725 else
40726   echo "$as_me: failed program was:" >&5
40727 sed 's/^/| /' conftest.$ac_ext >&5
40728
40729 glibcxx_cv_func_sqrtl_use=no
40730 fi
40731 rm -f conftest.$ac_objext conftest.$ac_ext
40732       ac_ext=c
40733 ac_cpp='$CPP $CPPFLAGS'
40734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40737
40738
40739 fi
40740
40741   fi
40742   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
40743 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
40744
40745   if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
40746
40747 for ac_func in sqrtl
40748 do
40749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40750 echo "$as_me:$LINENO: checking for $ac_func" >&5
40751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40752 if eval "test \"\${$as_ac_var+set}\" = set"; then
40753   echo $ECHO_N "(cached) $ECHO_C" >&6
40754 else
40755   if test x$gcc_no_link = xyes; then
40756   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40758    { (exit 1); exit 1; }; }
40759 fi
40760 cat >conftest.$ac_ext <<_ACEOF
40761 #line $LINENO "configure"
40762 /* confdefs.h.  */
40763 _ACEOF
40764 cat confdefs.h >>conftest.$ac_ext
40765 cat >>conftest.$ac_ext <<_ACEOF
40766 /* end confdefs.h.  */
40767 /* System header to define __stub macros and hopefully few prototypes,
40768     which can conflict with char $ac_func (); below.
40769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40770     <limits.h> exists even on freestanding compilers.  */
40771 #ifdef __STDC__
40772 # include <limits.h>
40773 #else
40774 # include <assert.h>
40775 #endif
40776 /* Override any gcc2 internal prototype to avoid an error.  */
40777 #ifdef __cplusplus
40778 extern "C"
40779 {
40780 #endif
40781 /* We use char because int might match the return type of a gcc2
40782    builtin and then its argument prototype would still apply.  */
40783 char $ac_func ();
40784 /* The GNU C library defines this for functions which it implements
40785     to always fail with ENOSYS.  Some functions are actually named
40786     something starting with __ and the normal name is an alias.  */
40787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40788 choke me
40789 #else
40790 char (*f) () = $ac_func;
40791 #endif
40792 #ifdef __cplusplus
40793 }
40794 #endif
40795
40796 int
40797 main ()
40798 {
40799 return f != $ac_func;
40800   ;
40801   return 0;
40802 }
40803 _ACEOF
40804 rm -f conftest.$ac_objext conftest$ac_exeext
40805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40806   (eval $ac_link) 2>&5
40807   ac_status=$?
40808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809   (exit $ac_status); } &&
40810          { ac_try='test -s conftest$ac_exeext'
40811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40812   (eval $ac_try) 2>&5
40813   ac_status=$?
40814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40815   (exit $ac_status); }; }; then
40816   eval "$as_ac_var=yes"
40817 else
40818   echo "$as_me: failed program was:" >&5
40819 sed 's/^/| /' conftest.$ac_ext >&5
40820
40821 eval "$as_ac_var=no"
40822 fi
40823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40824 fi
40825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40827 if test `eval echo '${'$as_ac_var'}'` = yes; then
40828   cat >>confdefs.h <<_ACEOF
40829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40830 _ACEOF
40831
40832 fi
40833 done
40834
40835   else
40836
40837   echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
40838 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
40839   if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
40840     if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
40841   echo $ECHO_N "(cached) $ECHO_C" >&6
40842 else
40843
40844
40845
40846       ac_ext=cc
40847 ac_cpp='$CXXCPP $CPPFLAGS'
40848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40851
40852       cat >conftest.$ac_ext <<_ACEOF
40853 #line $LINENO "configure"
40854 /* confdefs.h.  */
40855 _ACEOF
40856 cat confdefs.h >>conftest.$ac_ext
40857 cat >>conftest.$ac_ext <<_ACEOF
40858 /* end confdefs.h.  */
40859 #include <math.h>
40860                       #ifdef HAVE_IEEEFP_H
40861                       #include <ieeefp.h>
40862                       #endif
40863
40864 int
40865 main ()
40866 {
40867  _sqrtl(0);
40868   ;
40869   return 0;
40870 }
40871 _ACEOF
40872 rm -f conftest.$ac_objext
40873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40874   (eval $ac_compile) 2>&5
40875   ac_status=$?
40876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40877   (exit $ac_status); } &&
40878          { ac_try='test -s conftest.$ac_objext'
40879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40880   (eval $ac_try) 2>&5
40881   ac_status=$?
40882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40883   (exit $ac_status); }; }; then
40884   glibcxx_cv_func__sqrtl_use=yes
40885 else
40886   echo "$as_me: failed program was:" >&5
40887 sed 's/^/| /' conftest.$ac_ext >&5
40888
40889 glibcxx_cv_func__sqrtl_use=no
40890 fi
40891 rm -f conftest.$ac_objext conftest.$ac_ext
40892       ac_ext=c
40893 ac_cpp='$CPP $CPPFLAGS'
40894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40897
40898
40899 fi
40900
40901   fi
40902   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
40903 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
40904
40905     if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
40906
40907 for ac_func in _sqrtl
40908 do
40909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40910 echo "$as_me:$LINENO: checking for $ac_func" >&5
40911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40912 if eval "test \"\${$as_ac_var+set}\" = set"; then
40913   echo $ECHO_N "(cached) $ECHO_C" >&6
40914 else
40915   if test x$gcc_no_link = xyes; then
40916   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40917 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40918    { (exit 1); exit 1; }; }
40919 fi
40920 cat >conftest.$ac_ext <<_ACEOF
40921 #line $LINENO "configure"
40922 /* confdefs.h.  */
40923 _ACEOF
40924 cat confdefs.h >>conftest.$ac_ext
40925 cat >>conftest.$ac_ext <<_ACEOF
40926 /* end confdefs.h.  */
40927 /* System header to define __stub macros and hopefully few prototypes,
40928     which can conflict with char $ac_func (); below.
40929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40930     <limits.h> exists even on freestanding compilers.  */
40931 #ifdef __STDC__
40932 # include <limits.h>
40933 #else
40934 # include <assert.h>
40935 #endif
40936 /* Override any gcc2 internal prototype to avoid an error.  */
40937 #ifdef __cplusplus
40938 extern "C"
40939 {
40940 #endif
40941 /* We use char because int might match the return type of a gcc2
40942    builtin and then its argument prototype would still apply.  */
40943 char $ac_func ();
40944 /* The GNU C library defines this for functions which it implements
40945     to always fail with ENOSYS.  Some functions are actually named
40946     something starting with __ and the normal name is an alias.  */
40947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40948 choke me
40949 #else
40950 char (*f) () = $ac_func;
40951 #endif
40952 #ifdef __cplusplus
40953 }
40954 #endif
40955
40956 int
40957 main ()
40958 {
40959 return f != $ac_func;
40960   ;
40961   return 0;
40962 }
40963 _ACEOF
40964 rm -f conftest.$ac_objext conftest$ac_exeext
40965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40966   (eval $ac_link) 2>&5
40967   ac_status=$?
40968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969   (exit $ac_status); } &&
40970          { ac_try='test -s conftest$ac_exeext'
40971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40972   (eval $ac_try) 2>&5
40973   ac_status=$?
40974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40975   (exit $ac_status); }; }; then
40976   eval "$as_ac_var=yes"
40977 else
40978   echo "$as_me: failed program was:" >&5
40979 sed 's/^/| /' conftest.$ac_ext >&5
40980
40981 eval "$as_ac_var=no"
40982 fi
40983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40984 fi
40985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40987 if test `eval echo '${'$as_ac_var'}'` = yes; then
40988   cat >>confdefs.h <<_ACEOF
40989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40990 _ACEOF
40991
40992 fi
40993 done
40994
40995     fi
40996   fi
40997
40998
40999
41000   echo "$as_me:$LINENO: checking for sincosl declaration" >&5
41001 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
41002   if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
41003     if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
41004   echo $ECHO_N "(cached) $ECHO_C" >&6
41005 else
41006
41007
41008
41009       ac_ext=cc
41010 ac_cpp='$CXXCPP $CPPFLAGS'
41011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41014
41015       cat >conftest.$ac_ext <<_ACEOF
41016 #line $LINENO "configure"
41017 /* confdefs.h.  */
41018 _ACEOF
41019 cat confdefs.h >>conftest.$ac_ext
41020 cat >>conftest.$ac_ext <<_ACEOF
41021 /* end confdefs.h.  */
41022 #include <math.h>
41023 int
41024 main ()
41025 {
41026  sincosl(0, 0, 0);
41027   ;
41028   return 0;
41029 }
41030 _ACEOF
41031 rm -f conftest.$ac_objext
41032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41033   (eval $ac_compile) 2>&5
41034   ac_status=$?
41035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036   (exit $ac_status); } &&
41037          { ac_try='test -s conftest.$ac_objext'
41038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41039   (eval $ac_try) 2>&5
41040   ac_status=$?
41041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41042   (exit $ac_status); }; }; then
41043   glibcxx_cv_func_sincosl_use=yes
41044 else
41045   echo "$as_me: failed program was:" >&5
41046 sed 's/^/| /' conftest.$ac_ext >&5
41047
41048 glibcxx_cv_func_sincosl_use=no
41049 fi
41050 rm -f conftest.$ac_objext conftest.$ac_ext
41051       ac_ext=c
41052 ac_cpp='$CPP $CPPFLAGS'
41053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41056
41057
41058 fi
41059
41060   fi
41061   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
41062 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
41063
41064   if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
41065
41066 for ac_func in sincosl
41067 do
41068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41069 echo "$as_me:$LINENO: checking for $ac_func" >&5
41070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41071 if eval "test \"\${$as_ac_var+set}\" = set"; then
41072   echo $ECHO_N "(cached) $ECHO_C" >&6
41073 else
41074   if test x$gcc_no_link = xyes; then
41075   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41076 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41077    { (exit 1); exit 1; }; }
41078 fi
41079 cat >conftest.$ac_ext <<_ACEOF
41080 #line $LINENO "configure"
41081 /* confdefs.h.  */
41082 _ACEOF
41083 cat confdefs.h >>conftest.$ac_ext
41084 cat >>conftest.$ac_ext <<_ACEOF
41085 /* end confdefs.h.  */
41086 /* System header to define __stub macros and hopefully few prototypes,
41087     which can conflict with char $ac_func (); below.
41088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41089     <limits.h> exists even on freestanding compilers.  */
41090 #ifdef __STDC__
41091 # include <limits.h>
41092 #else
41093 # include <assert.h>
41094 #endif
41095 /* Override any gcc2 internal prototype to avoid an error.  */
41096 #ifdef __cplusplus
41097 extern "C"
41098 {
41099 #endif
41100 /* We use char because int might match the return type of a gcc2
41101    builtin and then its argument prototype would still apply.  */
41102 char $ac_func ();
41103 /* The GNU C library defines this for functions which it implements
41104     to always fail with ENOSYS.  Some functions are actually named
41105     something starting with __ and the normal name is an alias.  */
41106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41107 choke me
41108 #else
41109 char (*f) () = $ac_func;
41110 #endif
41111 #ifdef __cplusplus
41112 }
41113 #endif
41114
41115 int
41116 main ()
41117 {
41118 return f != $ac_func;
41119   ;
41120   return 0;
41121 }
41122 _ACEOF
41123 rm -f conftest.$ac_objext conftest$ac_exeext
41124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41125   (eval $ac_link) 2>&5
41126   ac_status=$?
41127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41128   (exit $ac_status); } &&
41129          { ac_try='test -s conftest$ac_exeext'
41130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131   (eval $ac_try) 2>&5
41132   ac_status=$?
41133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134   (exit $ac_status); }; }; then
41135   eval "$as_ac_var=yes"
41136 else
41137   echo "$as_me: failed program was:" >&5
41138 sed 's/^/| /' conftest.$ac_ext >&5
41139
41140 eval "$as_ac_var=no"
41141 fi
41142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41143 fi
41144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41146 if test `eval echo '${'$as_ac_var'}'` = yes; then
41147   cat >>confdefs.h <<_ACEOF
41148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41149 _ACEOF
41150
41151 fi
41152 done
41153
41154   else
41155
41156   echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
41157 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
41158   if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
41159     if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
41160   echo $ECHO_N "(cached) $ECHO_C" >&6
41161 else
41162
41163
41164
41165       ac_ext=cc
41166 ac_cpp='$CXXCPP $CPPFLAGS'
41167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41170
41171       cat >conftest.$ac_ext <<_ACEOF
41172 #line $LINENO "configure"
41173 /* confdefs.h.  */
41174 _ACEOF
41175 cat confdefs.h >>conftest.$ac_ext
41176 cat >>conftest.$ac_ext <<_ACEOF
41177 /* end confdefs.h.  */
41178 #include <math.h>
41179 int
41180 main ()
41181 {
41182  _sincosl(0, 0, 0);
41183   ;
41184   return 0;
41185 }
41186 _ACEOF
41187 rm -f conftest.$ac_objext
41188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41189   (eval $ac_compile) 2>&5
41190   ac_status=$?
41191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41192   (exit $ac_status); } &&
41193          { ac_try='test -s conftest.$ac_objext'
41194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41195   (eval $ac_try) 2>&5
41196   ac_status=$?
41197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41198   (exit $ac_status); }; }; then
41199   glibcxx_cv_func__sincosl_use=yes
41200 else
41201   echo "$as_me: failed program was:" >&5
41202 sed 's/^/| /' conftest.$ac_ext >&5
41203
41204 glibcxx_cv_func__sincosl_use=no
41205 fi
41206 rm -f conftest.$ac_objext conftest.$ac_ext
41207       ac_ext=c
41208 ac_cpp='$CPP $CPPFLAGS'
41209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41212
41213
41214 fi
41215
41216   fi
41217   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
41218 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
41219
41220     if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
41221
41222 for ac_func in _sincosl
41223 do
41224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41225 echo "$as_me:$LINENO: checking for $ac_func" >&5
41226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41227 if eval "test \"\${$as_ac_var+set}\" = set"; then
41228   echo $ECHO_N "(cached) $ECHO_C" >&6
41229 else
41230   if test x$gcc_no_link = xyes; then
41231   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41233    { (exit 1); exit 1; }; }
41234 fi
41235 cat >conftest.$ac_ext <<_ACEOF
41236 #line $LINENO "configure"
41237 /* confdefs.h.  */
41238 _ACEOF
41239 cat confdefs.h >>conftest.$ac_ext
41240 cat >>conftest.$ac_ext <<_ACEOF
41241 /* end confdefs.h.  */
41242 /* System header to define __stub macros and hopefully few prototypes,
41243     which can conflict with char $ac_func (); below.
41244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41245     <limits.h> exists even on freestanding compilers.  */
41246 #ifdef __STDC__
41247 # include <limits.h>
41248 #else
41249 # include <assert.h>
41250 #endif
41251 /* Override any gcc2 internal prototype to avoid an error.  */
41252 #ifdef __cplusplus
41253 extern "C"
41254 {
41255 #endif
41256 /* We use char because int might match the return type of a gcc2
41257    builtin and then its argument prototype would still apply.  */
41258 char $ac_func ();
41259 /* The GNU C library defines this for functions which it implements
41260     to always fail with ENOSYS.  Some functions are actually named
41261     something starting with __ and the normal name is an alias.  */
41262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41263 choke me
41264 #else
41265 char (*f) () = $ac_func;
41266 #endif
41267 #ifdef __cplusplus
41268 }
41269 #endif
41270
41271 int
41272 main ()
41273 {
41274 return f != $ac_func;
41275   ;
41276   return 0;
41277 }
41278 _ACEOF
41279 rm -f conftest.$ac_objext conftest$ac_exeext
41280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41281   (eval $ac_link) 2>&5
41282   ac_status=$?
41283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41284   (exit $ac_status); } &&
41285          { ac_try='test -s conftest$ac_exeext'
41286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41287   (eval $ac_try) 2>&5
41288   ac_status=$?
41289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41290   (exit $ac_status); }; }; then
41291   eval "$as_ac_var=yes"
41292 else
41293   echo "$as_me: failed program was:" >&5
41294 sed 's/^/| /' conftest.$ac_ext >&5
41295
41296 eval "$as_ac_var=no"
41297 fi
41298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41299 fi
41300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41302 if test `eval echo '${'$as_ac_var'}'` = yes; then
41303   cat >>confdefs.h <<_ACEOF
41304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41305 _ACEOF
41306
41307 fi
41308 done
41309
41310     fi
41311   fi
41312
41313
41314
41315   echo "$as_me:$LINENO: checking for finitel declaration" >&5
41316 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
41317   if test x${glibcxx_cv_func_finitel_use+set} != xset; then
41318     if test "${glibcxx_cv_func_finitel_use+set}" = set; then
41319   echo $ECHO_N "(cached) $ECHO_C" >&6
41320 else
41321
41322
41323
41324       ac_ext=cc
41325 ac_cpp='$CXXCPP $CPPFLAGS'
41326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41329
41330       cat >conftest.$ac_ext <<_ACEOF
41331 #line $LINENO "configure"
41332 /* confdefs.h.  */
41333 _ACEOF
41334 cat confdefs.h >>conftest.$ac_ext
41335 cat >>conftest.$ac_ext <<_ACEOF
41336 /* end confdefs.h.  */
41337 #include <math.h>
41338                       #ifdef HAVE_IEEEFP_H
41339                       #include <ieeefp.h>
41340                       #endif
41341
41342 int
41343 main ()
41344 {
41345  finitel(0);
41346   ;
41347   return 0;
41348 }
41349 _ACEOF
41350 rm -f conftest.$ac_objext
41351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41352   (eval $ac_compile) 2>&5
41353   ac_status=$?
41354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355   (exit $ac_status); } &&
41356          { ac_try='test -s conftest.$ac_objext'
41357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41358   (eval $ac_try) 2>&5
41359   ac_status=$?
41360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41361   (exit $ac_status); }; }; then
41362   glibcxx_cv_func_finitel_use=yes
41363 else
41364   echo "$as_me: failed program was:" >&5
41365 sed 's/^/| /' conftest.$ac_ext >&5
41366
41367 glibcxx_cv_func_finitel_use=no
41368 fi
41369 rm -f conftest.$ac_objext conftest.$ac_ext
41370       ac_ext=c
41371 ac_cpp='$CPP $CPPFLAGS'
41372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41375
41376
41377 fi
41378
41379   fi
41380   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
41381 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
41382
41383   if test x$glibcxx_cv_func_finitel_use = x"yes"; then
41384
41385 for ac_func in finitel
41386 do
41387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41388 echo "$as_me:$LINENO: checking for $ac_func" >&5
41389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41390 if eval "test \"\${$as_ac_var+set}\" = set"; then
41391   echo $ECHO_N "(cached) $ECHO_C" >&6
41392 else
41393   if test x$gcc_no_link = xyes; then
41394   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41395 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41396    { (exit 1); exit 1; }; }
41397 fi
41398 cat >conftest.$ac_ext <<_ACEOF
41399 #line $LINENO "configure"
41400 /* confdefs.h.  */
41401 _ACEOF
41402 cat confdefs.h >>conftest.$ac_ext
41403 cat >>conftest.$ac_ext <<_ACEOF
41404 /* end confdefs.h.  */
41405 /* System header to define __stub macros and hopefully few prototypes,
41406     which can conflict with char $ac_func (); below.
41407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41408     <limits.h> exists even on freestanding compilers.  */
41409 #ifdef __STDC__
41410 # include <limits.h>
41411 #else
41412 # include <assert.h>
41413 #endif
41414 /* Override any gcc2 internal prototype to avoid an error.  */
41415 #ifdef __cplusplus
41416 extern "C"
41417 {
41418 #endif
41419 /* We use char because int might match the return type of a gcc2
41420    builtin and then its argument prototype would still apply.  */
41421 char $ac_func ();
41422 /* The GNU C library defines this for functions which it implements
41423     to always fail with ENOSYS.  Some functions are actually named
41424     something starting with __ and the normal name is an alias.  */
41425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41426 choke me
41427 #else
41428 char (*f) () = $ac_func;
41429 #endif
41430 #ifdef __cplusplus
41431 }
41432 #endif
41433
41434 int
41435 main ()
41436 {
41437 return f != $ac_func;
41438   ;
41439   return 0;
41440 }
41441 _ACEOF
41442 rm -f conftest.$ac_objext conftest$ac_exeext
41443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41444   (eval $ac_link) 2>&5
41445   ac_status=$?
41446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41447   (exit $ac_status); } &&
41448          { ac_try='test -s conftest$ac_exeext'
41449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41450   (eval $ac_try) 2>&5
41451   ac_status=$?
41452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41453   (exit $ac_status); }; }; then
41454   eval "$as_ac_var=yes"
41455 else
41456   echo "$as_me: failed program was:" >&5
41457 sed 's/^/| /' conftest.$ac_ext >&5
41458
41459 eval "$as_ac_var=no"
41460 fi
41461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41462 fi
41463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41465 if test `eval echo '${'$as_ac_var'}'` = yes; then
41466   cat >>confdefs.h <<_ACEOF
41467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41468 _ACEOF
41469
41470 fi
41471 done
41472
41473   else
41474
41475   echo "$as_me:$LINENO: checking for _finitel declaration" >&5
41476 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
41477   if test x${glibcxx_cv_func__finitel_use+set} != xset; then
41478     if test "${glibcxx_cv_func__finitel_use+set}" = set; then
41479   echo $ECHO_N "(cached) $ECHO_C" >&6
41480 else
41481
41482
41483
41484       ac_ext=cc
41485 ac_cpp='$CXXCPP $CPPFLAGS'
41486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41489
41490       cat >conftest.$ac_ext <<_ACEOF
41491 #line $LINENO "configure"
41492 /* confdefs.h.  */
41493 _ACEOF
41494 cat confdefs.h >>conftest.$ac_ext
41495 cat >>conftest.$ac_ext <<_ACEOF
41496 /* end confdefs.h.  */
41497 #include <math.h>
41498                       #ifdef HAVE_IEEEFP_H
41499                       #include <ieeefp.h>
41500                       #endif
41501
41502 int
41503 main ()
41504 {
41505  _finitel(0);
41506   ;
41507   return 0;
41508 }
41509 _ACEOF
41510 rm -f conftest.$ac_objext
41511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41512   (eval $ac_compile) 2>&5
41513   ac_status=$?
41514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41515   (exit $ac_status); } &&
41516          { ac_try='test -s conftest.$ac_objext'
41517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41518   (eval $ac_try) 2>&5
41519   ac_status=$?
41520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41521   (exit $ac_status); }; }; then
41522   glibcxx_cv_func__finitel_use=yes
41523 else
41524   echo "$as_me: failed program was:" >&5
41525 sed 's/^/| /' conftest.$ac_ext >&5
41526
41527 glibcxx_cv_func__finitel_use=no
41528 fi
41529 rm -f conftest.$ac_objext conftest.$ac_ext
41530       ac_ext=c
41531 ac_cpp='$CPP $CPPFLAGS'
41532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41535
41536
41537 fi
41538
41539   fi
41540   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
41541 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
41542
41543     if test x$glibcxx_cv_func__finitel_use = x"yes"; then
41544
41545 for ac_func in _finitel
41546 do
41547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41548 echo "$as_me:$LINENO: checking for $ac_func" >&5
41549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41550 if eval "test \"\${$as_ac_var+set}\" = set"; then
41551   echo $ECHO_N "(cached) $ECHO_C" >&6
41552 else
41553   if test x$gcc_no_link = xyes; then
41554   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41556    { (exit 1); exit 1; }; }
41557 fi
41558 cat >conftest.$ac_ext <<_ACEOF
41559 #line $LINENO "configure"
41560 /* confdefs.h.  */
41561 _ACEOF
41562 cat confdefs.h >>conftest.$ac_ext
41563 cat >>conftest.$ac_ext <<_ACEOF
41564 /* end confdefs.h.  */
41565 /* System header to define __stub macros and hopefully few prototypes,
41566     which can conflict with char $ac_func (); below.
41567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41568     <limits.h> exists even on freestanding compilers.  */
41569 #ifdef __STDC__
41570 # include <limits.h>
41571 #else
41572 # include <assert.h>
41573 #endif
41574 /* Override any gcc2 internal prototype to avoid an error.  */
41575 #ifdef __cplusplus
41576 extern "C"
41577 {
41578 #endif
41579 /* We use char because int might match the return type of a gcc2
41580    builtin and then its argument prototype would still apply.  */
41581 char $ac_func ();
41582 /* The GNU C library defines this for functions which it implements
41583     to always fail with ENOSYS.  Some functions are actually named
41584     something starting with __ and the normal name is an alias.  */
41585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41586 choke me
41587 #else
41588 char (*f) () = $ac_func;
41589 #endif
41590 #ifdef __cplusplus
41591 }
41592 #endif
41593
41594 int
41595 main ()
41596 {
41597 return f != $ac_func;
41598   ;
41599   return 0;
41600 }
41601 _ACEOF
41602 rm -f conftest.$ac_objext conftest$ac_exeext
41603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41604   (eval $ac_link) 2>&5
41605   ac_status=$?
41606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41607   (exit $ac_status); } &&
41608          { ac_try='test -s conftest$ac_exeext'
41609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41610   (eval $ac_try) 2>&5
41611   ac_status=$?
41612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613   (exit $ac_status); }; }; then
41614   eval "$as_ac_var=yes"
41615 else
41616   echo "$as_me: failed program was:" >&5
41617 sed 's/^/| /' conftest.$ac_ext >&5
41618
41619 eval "$as_ac_var=no"
41620 fi
41621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41622 fi
41623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41625 if test `eval echo '${'$as_ac_var'}'` = yes; then
41626   cat >>confdefs.h <<_ACEOF
41627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41628 _ACEOF
41629
41630 fi
41631 done
41632
41633     fi
41634   fi
41635
41636
41637
41638
41639   echo "$as_me:$LINENO: checking for _float trig functions" >&5
41640 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
41641   if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
41642   echo $ECHO_N "(cached) $ECHO_C" >&6
41643 else
41644
41645
41646
41647     ac_ext=cc
41648 ac_cpp='$CXXCPP $CPPFLAGS'
41649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41652
41653     cat >conftest.$ac_ext <<_ACEOF
41654 #line $LINENO "configure"
41655 /* confdefs.h.  */
41656 _ACEOF
41657 cat confdefs.h >>conftest.$ac_ext
41658 cat >>conftest.$ac_ext <<_ACEOF
41659 /* end confdefs.h.  */
41660 #include <math.h>
41661 int
41662 main ()
41663 {
41664  `for x in _acosf _asinf _atanf \
41665                                           _cosf _sinf _tanf \
41666                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done`
41667   ;
41668   return 0;
41669 }
41670 _ACEOF
41671 rm -f conftest.$ac_objext
41672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41673   (eval $ac_compile) 2>&5
41674   ac_status=$?
41675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41676   (exit $ac_status); } &&
41677          { ac_try='test -s conftest.$ac_objext'
41678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41679   (eval $ac_try) 2>&5
41680   ac_status=$?
41681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41682   (exit $ac_status); }; }; then
41683   glibcxx_cv_func__float_trig_use=yes
41684 else
41685   echo "$as_me: failed program was:" >&5
41686 sed 's/^/| /' conftest.$ac_ext >&5
41687
41688 glibcxx_cv_func__float_trig_use=no
41689 fi
41690 rm -f conftest.$ac_objext conftest.$ac_ext
41691     ac_ext=c
41692 ac_cpp='$CPP $CPPFLAGS'
41693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41696
41697 fi
41698
41699   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
41700 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
41701   if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
41702
41703
41704
41705
41706
41707
41708
41709
41710
41711 for ac_func in _acosf _asinf _atanf \
41712                                           _cosf _sinf _tanf \
41713                                           _coshf _sinhf _tanhf
41714 do
41715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41716 echo "$as_me:$LINENO: checking for $ac_func" >&5
41717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41718 if eval "test \"\${$as_ac_var+set}\" = set"; then
41719   echo $ECHO_N "(cached) $ECHO_C" >&6
41720 else
41721   if test x$gcc_no_link = xyes; then
41722   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41723 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41724    { (exit 1); exit 1; }; }
41725 fi
41726 cat >conftest.$ac_ext <<_ACEOF
41727 #line $LINENO "configure"
41728 /* confdefs.h.  */
41729 _ACEOF
41730 cat confdefs.h >>conftest.$ac_ext
41731 cat >>conftest.$ac_ext <<_ACEOF
41732 /* end confdefs.h.  */
41733 /* System header to define __stub macros and hopefully few prototypes,
41734     which can conflict with char $ac_func (); below.
41735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41736     <limits.h> exists even on freestanding compilers.  */
41737 #ifdef __STDC__
41738 # include <limits.h>
41739 #else
41740 # include <assert.h>
41741 #endif
41742 /* Override any gcc2 internal prototype to avoid an error.  */
41743 #ifdef __cplusplus
41744 extern "C"
41745 {
41746 #endif
41747 /* We use char because int might match the return type of a gcc2
41748    builtin and then its argument prototype would still apply.  */
41749 char $ac_func ();
41750 /* The GNU C library defines this for functions which it implements
41751     to always fail with ENOSYS.  Some functions are actually named
41752     something starting with __ and the normal name is an alias.  */
41753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41754 choke me
41755 #else
41756 char (*f) () = $ac_func;
41757 #endif
41758 #ifdef __cplusplus
41759 }
41760 #endif
41761
41762 int
41763 main ()
41764 {
41765 return f != $ac_func;
41766   ;
41767   return 0;
41768 }
41769 _ACEOF
41770 rm -f conftest.$ac_objext conftest$ac_exeext
41771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41772   (eval $ac_link) 2>&5
41773   ac_status=$?
41774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41775   (exit $ac_status); } &&
41776          { ac_try='test -s conftest$ac_exeext'
41777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41778   (eval $ac_try) 2>&5
41779   ac_status=$?
41780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41781   (exit $ac_status); }; }; then
41782   eval "$as_ac_var=yes"
41783 else
41784   echo "$as_me: failed program was:" >&5
41785 sed 's/^/| /' conftest.$ac_ext >&5
41786
41787 eval "$as_ac_var=no"
41788 fi
41789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41790 fi
41791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41793 if test `eval echo '${'$as_ac_var'}'` = yes; then
41794   cat >>confdefs.h <<_ACEOF
41795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41796 _ACEOF
41797
41798 fi
41799 done
41800
41801   fi
41802
41803
41804   echo "$as_me:$LINENO: checking for _float round functions" >&5
41805 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
41806   if test "${glibcxx_cv_func__float_round_use+set}" = set; then
41807   echo $ECHO_N "(cached) $ECHO_C" >&6
41808 else
41809
41810
41811
41812     ac_ext=cc
41813 ac_cpp='$CXXCPP $CPPFLAGS'
41814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41817
41818     cat >conftest.$ac_ext <<_ACEOF
41819 #line $LINENO "configure"
41820 /* confdefs.h.  */
41821 _ACEOF
41822 cat confdefs.h >>conftest.$ac_ext
41823 cat >>conftest.$ac_ext <<_ACEOF
41824 /* end confdefs.h.  */
41825 #include <math.h>
41826 int
41827 main ()
41828 {
41829  `for x in _ceilf _floorf; do echo "$x (0);"; done`
41830   ;
41831   return 0;
41832 }
41833 _ACEOF
41834 rm -f conftest.$ac_objext
41835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41836   (eval $ac_compile) 2>&5
41837   ac_status=$?
41838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41839   (exit $ac_status); } &&
41840          { ac_try='test -s conftest.$ac_objext'
41841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41842   (eval $ac_try) 2>&5
41843   ac_status=$?
41844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845   (exit $ac_status); }; }; then
41846   glibcxx_cv_func__float_round_use=yes
41847 else
41848   echo "$as_me: failed program was:" >&5
41849 sed 's/^/| /' conftest.$ac_ext >&5
41850
41851 glibcxx_cv_func__float_round_use=no
41852 fi
41853 rm -f conftest.$ac_objext conftest.$ac_ext
41854     ac_ext=c
41855 ac_cpp='$CPP $CPPFLAGS'
41856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41859
41860 fi
41861
41862   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
41863 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
41864   if test x$glibcxx_cv_func__float_round_use = x"yes"; then
41865
41866
41867 for ac_func in _ceilf _floorf
41868 do
41869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41870 echo "$as_me:$LINENO: checking for $ac_func" >&5
41871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41872 if eval "test \"\${$as_ac_var+set}\" = set"; then
41873   echo $ECHO_N "(cached) $ECHO_C" >&6
41874 else
41875   if test x$gcc_no_link = xyes; then
41876   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41878    { (exit 1); exit 1; }; }
41879 fi
41880 cat >conftest.$ac_ext <<_ACEOF
41881 #line $LINENO "configure"
41882 /* confdefs.h.  */
41883 _ACEOF
41884 cat confdefs.h >>conftest.$ac_ext
41885 cat >>conftest.$ac_ext <<_ACEOF
41886 /* end confdefs.h.  */
41887 /* System header to define __stub macros and hopefully few prototypes,
41888     which can conflict with char $ac_func (); below.
41889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41890     <limits.h> exists even on freestanding compilers.  */
41891 #ifdef __STDC__
41892 # include <limits.h>
41893 #else
41894 # include <assert.h>
41895 #endif
41896 /* Override any gcc2 internal prototype to avoid an error.  */
41897 #ifdef __cplusplus
41898 extern "C"
41899 {
41900 #endif
41901 /* We use char because int might match the return type of a gcc2
41902    builtin and then its argument prototype would still apply.  */
41903 char $ac_func ();
41904 /* The GNU C library defines this for functions which it implements
41905     to always fail with ENOSYS.  Some functions are actually named
41906     something starting with __ and the normal name is an alias.  */
41907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41908 choke me
41909 #else
41910 char (*f) () = $ac_func;
41911 #endif
41912 #ifdef __cplusplus
41913 }
41914 #endif
41915
41916 int
41917 main ()
41918 {
41919 return f != $ac_func;
41920   ;
41921   return 0;
41922 }
41923 _ACEOF
41924 rm -f conftest.$ac_objext conftest$ac_exeext
41925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41926   (eval $ac_link) 2>&5
41927   ac_status=$?
41928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41929   (exit $ac_status); } &&
41930          { ac_try='test -s conftest$ac_exeext'
41931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41932   (eval $ac_try) 2>&5
41933   ac_status=$?
41934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41935   (exit $ac_status); }; }; then
41936   eval "$as_ac_var=yes"
41937 else
41938   echo "$as_me: failed program was:" >&5
41939 sed 's/^/| /' conftest.$ac_ext >&5
41940
41941 eval "$as_ac_var=no"
41942 fi
41943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41944 fi
41945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41947 if test `eval echo '${'$as_ac_var'}'` = yes; then
41948   cat >>confdefs.h <<_ACEOF
41949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41950 _ACEOF
41951
41952 fi
41953 done
41954
41955   fi
41956
41957
41958
41959   echo "$as_me:$LINENO: checking for _long double trig functions" >&5
41960 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
41961   if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
41962   echo $ECHO_N "(cached) $ECHO_C" >&6
41963 else
41964
41965
41966
41967     ac_ext=cc
41968 ac_cpp='$CXXCPP $CPPFLAGS'
41969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41972
41973     cat >conftest.$ac_ext <<_ACEOF
41974 #line $LINENO "configure"
41975 /* confdefs.h.  */
41976 _ACEOF
41977 cat confdefs.h >>conftest.$ac_ext
41978 cat >>conftest.$ac_ext <<_ACEOF
41979 /* end confdefs.h.  */
41980 #include <math.h>
41981 int
41982 main ()
41983 {
41984  `for x in _acosl _asinl _atanl \
41985                                           _cosl _sinl _tanl \
41986                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done`
41987   ;
41988   return 0;
41989 }
41990 _ACEOF
41991 rm -f conftest.$ac_objext
41992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41993   (eval $ac_compile) 2>&5
41994   ac_status=$?
41995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41996   (exit $ac_status); } &&
41997          { ac_try='test -s conftest.$ac_objext'
41998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41999   (eval $ac_try) 2>&5
42000   ac_status=$?
42001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42002   (exit $ac_status); }; }; then
42003   glibcxx_cv_func__long_double_trig_use=yes
42004 else
42005   echo "$as_me: failed program was:" >&5
42006 sed 's/^/| /' conftest.$ac_ext >&5
42007
42008 glibcxx_cv_func__long_double_trig_use=no
42009 fi
42010 rm -f conftest.$ac_objext conftest.$ac_ext
42011     ac_ext=c
42012 ac_cpp='$CPP $CPPFLAGS'
42013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42016
42017 fi
42018
42019   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
42020 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
42021   if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
42022
42023
42024
42025
42026
42027
42028
42029
42030
42031 for ac_func in _acosl _asinl _atanl \
42032                                           _cosl _sinl _tanl \
42033                                           _coshl _sinhl _tanhl
42034 do
42035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42036 echo "$as_me:$LINENO: checking for $ac_func" >&5
42037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42038 if eval "test \"\${$as_ac_var+set}\" = set"; then
42039   echo $ECHO_N "(cached) $ECHO_C" >&6
42040 else
42041   if test x$gcc_no_link = xyes; then
42042   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42044    { (exit 1); exit 1; }; }
42045 fi
42046 cat >conftest.$ac_ext <<_ACEOF
42047 #line $LINENO "configure"
42048 /* confdefs.h.  */
42049 _ACEOF
42050 cat confdefs.h >>conftest.$ac_ext
42051 cat >>conftest.$ac_ext <<_ACEOF
42052 /* end confdefs.h.  */
42053 /* System header to define __stub macros and hopefully few prototypes,
42054     which can conflict with char $ac_func (); below.
42055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42056     <limits.h> exists even on freestanding compilers.  */
42057 #ifdef __STDC__
42058 # include <limits.h>
42059 #else
42060 # include <assert.h>
42061 #endif
42062 /* Override any gcc2 internal prototype to avoid an error.  */
42063 #ifdef __cplusplus
42064 extern "C"
42065 {
42066 #endif
42067 /* We use char because int might match the return type of a gcc2
42068    builtin and then its argument prototype would still apply.  */
42069 char $ac_func ();
42070 /* The GNU C library defines this for functions which it implements
42071     to always fail with ENOSYS.  Some functions are actually named
42072     something starting with __ and the normal name is an alias.  */
42073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42074 choke me
42075 #else
42076 char (*f) () = $ac_func;
42077 #endif
42078 #ifdef __cplusplus
42079 }
42080 #endif
42081
42082 int
42083 main ()
42084 {
42085 return f != $ac_func;
42086   ;
42087   return 0;
42088 }
42089 _ACEOF
42090 rm -f conftest.$ac_objext conftest$ac_exeext
42091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42092   (eval $ac_link) 2>&5
42093   ac_status=$?
42094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42095   (exit $ac_status); } &&
42096          { ac_try='test -s conftest$ac_exeext'
42097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42098   (eval $ac_try) 2>&5
42099   ac_status=$?
42100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42101   (exit $ac_status); }; }; then
42102   eval "$as_ac_var=yes"
42103 else
42104   echo "$as_me: failed program was:" >&5
42105 sed 's/^/| /' conftest.$ac_ext >&5
42106
42107 eval "$as_ac_var=no"
42108 fi
42109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42110 fi
42111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42113 if test `eval echo '${'$as_ac_var'}'` = yes; then
42114   cat >>confdefs.h <<_ACEOF
42115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42116 _ACEOF
42117
42118 fi
42119 done
42120
42121   fi
42122
42123
42124   echo "$as_me:$LINENO: checking for _long double round functions" >&5
42125 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
42126   if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
42127   echo $ECHO_N "(cached) $ECHO_C" >&6
42128 else
42129
42130
42131
42132     ac_ext=cc
42133 ac_cpp='$CXXCPP $CPPFLAGS'
42134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42137
42138     cat >conftest.$ac_ext <<_ACEOF
42139 #line $LINENO "configure"
42140 /* confdefs.h.  */
42141 _ACEOF
42142 cat confdefs.h >>conftest.$ac_ext
42143 cat >>conftest.$ac_ext <<_ACEOF
42144 /* end confdefs.h.  */
42145 #include <math.h>
42146 int
42147 main ()
42148 {
42149  `for x in _ceill _floorl; do echo "$x (0);"; done`
42150   ;
42151   return 0;
42152 }
42153 _ACEOF
42154 rm -f conftest.$ac_objext
42155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42156   (eval $ac_compile) 2>&5
42157   ac_status=$?
42158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42159   (exit $ac_status); } &&
42160          { ac_try='test -s conftest.$ac_objext'
42161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42162   (eval $ac_try) 2>&5
42163   ac_status=$?
42164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42165   (exit $ac_status); }; }; then
42166   glibcxx_cv_func__long_double_round_use=yes
42167 else
42168   echo "$as_me: failed program was:" >&5
42169 sed 's/^/| /' conftest.$ac_ext >&5
42170
42171 glibcxx_cv_func__long_double_round_use=no
42172 fi
42173 rm -f conftest.$ac_objext conftest.$ac_ext
42174     ac_ext=c
42175 ac_cpp='$CPP $CPPFLAGS'
42176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42179
42180 fi
42181
42182   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
42183 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
42184   if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
42185
42186
42187 for ac_func in _ceill _floorl
42188 do
42189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42190 echo "$as_me:$LINENO: checking for $ac_func" >&5
42191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42192 if eval "test \"\${$as_ac_var+set}\" = set"; then
42193   echo $ECHO_N "(cached) $ECHO_C" >&6
42194 else
42195   if test x$gcc_no_link = xyes; then
42196   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42197 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42198    { (exit 1); exit 1; }; }
42199 fi
42200 cat >conftest.$ac_ext <<_ACEOF
42201 #line $LINENO "configure"
42202 /* confdefs.h.  */
42203 _ACEOF
42204 cat confdefs.h >>conftest.$ac_ext
42205 cat >>conftest.$ac_ext <<_ACEOF
42206 /* end confdefs.h.  */
42207 /* System header to define __stub macros and hopefully few prototypes,
42208     which can conflict with char $ac_func (); below.
42209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42210     <limits.h> exists even on freestanding compilers.  */
42211 #ifdef __STDC__
42212 # include <limits.h>
42213 #else
42214 # include <assert.h>
42215 #endif
42216 /* Override any gcc2 internal prototype to avoid an error.  */
42217 #ifdef __cplusplus
42218 extern "C"
42219 {
42220 #endif
42221 /* We use char because int might match the return type of a gcc2
42222    builtin and then its argument prototype would still apply.  */
42223 char $ac_func ();
42224 /* The GNU C library defines this for functions which it implements
42225     to always fail with ENOSYS.  Some functions are actually named
42226     something starting with __ and the normal name is an alias.  */
42227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42228 choke me
42229 #else
42230 char (*f) () = $ac_func;
42231 #endif
42232 #ifdef __cplusplus
42233 }
42234 #endif
42235
42236 int
42237 main ()
42238 {
42239 return f != $ac_func;
42240   ;
42241   return 0;
42242 }
42243 _ACEOF
42244 rm -f conftest.$ac_objext conftest$ac_exeext
42245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42246   (eval $ac_link) 2>&5
42247   ac_status=$?
42248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42249   (exit $ac_status); } &&
42250          { ac_try='test -s conftest$ac_exeext'
42251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42252   (eval $ac_try) 2>&5
42253   ac_status=$?
42254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42255   (exit $ac_status); }; }; then
42256   eval "$as_ac_var=yes"
42257 else
42258   echo "$as_me: failed program was:" >&5
42259 sed 's/^/| /' conftest.$ac_ext >&5
42260
42261 eval "$as_ac_var=no"
42262 fi
42263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42264 fi
42265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42267 if test `eval echo '${'$as_ac_var'}'` = yes; then
42268   cat >>confdefs.h <<_ACEOF
42269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42270 _ACEOF
42271
42272 fi
42273 done
42274
42275   fi
42276
42277
42278   LIBS="$ac_save_LIBS"
42279   CXXFLAGS="$ac_save_CXXFLAGS"
42280
42281
42282
42283   echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
42284 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
42285   if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
42286     if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
42287   echo $ECHO_N "(cached) $ECHO_C" >&6
42288 else
42289
42290
42291
42292       ac_ext=cc
42293 ac_cpp='$CXXCPP $CPPFLAGS'
42294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42297
42298       cat >conftest.$ac_ext <<_ACEOF
42299 #line $LINENO "configure"
42300 /* confdefs.h.  */
42301 _ACEOF
42302 cat confdefs.h >>conftest.$ac_ext
42303 cat >>conftest.$ac_ext <<_ACEOF
42304 /* end confdefs.h.  */
42305 #include <math.h>
42306 int
42307 main ()
42308 {
42309  __builtin_abs(0);
42310   ;
42311   return 0;
42312 }
42313 _ACEOF
42314 rm -f conftest.$ac_objext
42315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42316   (eval $ac_compile) 2>&5
42317   ac_status=$?
42318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42319   (exit $ac_status); } &&
42320          { ac_try='test -s conftest.$ac_objext'
42321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42322   (eval $ac_try) 2>&5
42323   ac_status=$?
42324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42325   (exit $ac_status); }; }; then
42326   glibcxx_cv_func___builtin_abs_use=yes
42327 else
42328   echo "$as_me: failed program was:" >&5
42329 sed 's/^/| /' conftest.$ac_ext >&5
42330
42331 glibcxx_cv_func___builtin_abs_use=no
42332 fi
42333 rm -f conftest.$ac_objext conftest.$ac_ext
42334       ac_ext=c
42335 ac_cpp='$CPP $CPPFLAGS'
42336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42339
42340
42341 fi
42342
42343   fi
42344   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
42345 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
42346   if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
42347     echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
42348 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
42349     if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
42350       if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
42351   echo $ECHO_N "(cached) $ECHO_C" >&6
42352 else
42353
42354         if test x$gcc_no_link = xyes; then
42355   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42357    { (exit 1); exit 1; }; }
42358 fi
42359 cat >conftest.$ac_ext <<_ACEOF
42360 #line $LINENO "configure"
42361 /* confdefs.h.  */
42362 _ACEOF
42363 cat confdefs.h >>conftest.$ac_ext
42364 cat >>conftest.$ac_ext <<_ACEOF
42365 /* end confdefs.h.  */
42366 #include <math.h>
42367 int
42368 main ()
42369 {
42370  __builtin_abs(0);
42371   ;
42372   return 0;
42373 }
42374 _ACEOF
42375 rm -f conftest.$ac_objext conftest$ac_exeext
42376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42377   (eval $ac_link) 2>&5
42378   ac_status=$?
42379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42380   (exit $ac_status); } &&
42381          { ac_try='test -s conftest$ac_exeext'
42382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42383   (eval $ac_try) 2>&5
42384   ac_status=$?
42385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42386   (exit $ac_status); }; }; then
42387   glibcxx_cv_func___builtin_abs_link=yes
42388 else
42389   echo "$as_me: failed program was:" >&5
42390 sed 's/^/| /' conftest.$ac_ext >&5
42391
42392 glibcxx_cv_func___builtin_abs_link=no
42393 fi
42394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42395
42396 fi
42397
42398     fi
42399     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
42400 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
42401     if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
42402       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42403       cat >>confdefs.h <<_ACEOF
42404 #define ${ac_tr_func} 1
42405 _ACEOF
42406
42407     fi
42408   fi
42409
42410
42411   echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
42412 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
42413   if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
42414     if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
42415   echo $ECHO_N "(cached) $ECHO_C" >&6
42416 else
42417
42418
42419
42420       ac_ext=cc
42421 ac_cpp='$CXXCPP $CPPFLAGS'
42422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42425
42426       cat >conftest.$ac_ext <<_ACEOF
42427 #line $LINENO "configure"
42428 /* confdefs.h.  */
42429 _ACEOF
42430 cat confdefs.h >>conftest.$ac_ext
42431 cat >>conftest.$ac_ext <<_ACEOF
42432 /* end confdefs.h.  */
42433 #include <math.h>
42434 int
42435 main ()
42436 {
42437  __builtin_fabsf(0);
42438   ;
42439   return 0;
42440 }
42441 _ACEOF
42442 rm -f conftest.$ac_objext
42443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42444   (eval $ac_compile) 2>&5
42445   ac_status=$?
42446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447   (exit $ac_status); } &&
42448          { ac_try='test -s conftest.$ac_objext'
42449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42450   (eval $ac_try) 2>&5
42451   ac_status=$?
42452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453   (exit $ac_status); }; }; then
42454   glibcxx_cv_func___builtin_fabsf_use=yes
42455 else
42456   echo "$as_me: failed program was:" >&5
42457 sed 's/^/| /' conftest.$ac_ext >&5
42458
42459 glibcxx_cv_func___builtin_fabsf_use=no
42460 fi
42461 rm -f conftest.$ac_objext conftest.$ac_ext
42462       ac_ext=c
42463 ac_cpp='$CPP $CPPFLAGS'
42464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42467
42468
42469 fi
42470
42471   fi
42472   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
42473 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
42474   if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
42475     echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
42476 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
42477     if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
42478       if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
42479   echo $ECHO_N "(cached) $ECHO_C" >&6
42480 else
42481
42482         if test x$gcc_no_link = xyes; then
42483   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42484 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42485    { (exit 1); exit 1; }; }
42486 fi
42487 cat >conftest.$ac_ext <<_ACEOF
42488 #line $LINENO "configure"
42489 /* confdefs.h.  */
42490 _ACEOF
42491 cat confdefs.h >>conftest.$ac_ext
42492 cat >>conftest.$ac_ext <<_ACEOF
42493 /* end confdefs.h.  */
42494 #include <math.h>
42495 int
42496 main ()
42497 {
42498  __builtin_fabsf(0);
42499   ;
42500   return 0;
42501 }
42502 _ACEOF
42503 rm -f conftest.$ac_objext conftest$ac_exeext
42504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42505   (eval $ac_link) 2>&5
42506   ac_status=$?
42507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42508   (exit $ac_status); } &&
42509          { ac_try='test -s conftest$ac_exeext'
42510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42511   (eval $ac_try) 2>&5
42512   ac_status=$?
42513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42514   (exit $ac_status); }; }; then
42515   glibcxx_cv_func___builtin_fabsf_link=yes
42516 else
42517   echo "$as_me: failed program was:" >&5
42518 sed 's/^/| /' conftest.$ac_ext >&5
42519
42520 glibcxx_cv_func___builtin_fabsf_link=no
42521 fi
42522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42523
42524 fi
42525
42526     fi
42527     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
42528 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
42529     if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
42530       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42531       cat >>confdefs.h <<_ACEOF
42532 #define ${ac_tr_func} 1
42533 _ACEOF
42534
42535     fi
42536   fi
42537
42538
42539   echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
42540 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
42541   if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
42542     if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
42543   echo $ECHO_N "(cached) $ECHO_C" >&6
42544 else
42545
42546
42547
42548       ac_ext=cc
42549 ac_cpp='$CXXCPP $CPPFLAGS'
42550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42553
42554       cat >conftest.$ac_ext <<_ACEOF
42555 #line $LINENO "configure"
42556 /* confdefs.h.  */
42557 _ACEOF
42558 cat confdefs.h >>conftest.$ac_ext
42559 cat >>conftest.$ac_ext <<_ACEOF
42560 /* end confdefs.h.  */
42561 #include <math.h>
42562 int
42563 main ()
42564 {
42565  __builtin_fabs(0);
42566   ;
42567   return 0;
42568 }
42569 _ACEOF
42570 rm -f conftest.$ac_objext
42571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42572   (eval $ac_compile) 2>&5
42573   ac_status=$?
42574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42575   (exit $ac_status); } &&
42576          { ac_try='test -s conftest.$ac_objext'
42577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42578   (eval $ac_try) 2>&5
42579   ac_status=$?
42580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581   (exit $ac_status); }; }; then
42582   glibcxx_cv_func___builtin_fabs_use=yes
42583 else
42584   echo "$as_me: failed program was:" >&5
42585 sed 's/^/| /' conftest.$ac_ext >&5
42586
42587 glibcxx_cv_func___builtin_fabs_use=no
42588 fi
42589 rm -f conftest.$ac_objext conftest.$ac_ext
42590       ac_ext=c
42591 ac_cpp='$CPP $CPPFLAGS'
42592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42595
42596
42597 fi
42598
42599   fi
42600   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
42601 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
42602   if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
42603     echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
42604 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
42605     if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
42606       if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
42607   echo $ECHO_N "(cached) $ECHO_C" >&6
42608 else
42609
42610         if test x$gcc_no_link = xyes; then
42611   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42612 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42613    { (exit 1); exit 1; }; }
42614 fi
42615 cat >conftest.$ac_ext <<_ACEOF
42616 #line $LINENO "configure"
42617 /* confdefs.h.  */
42618 _ACEOF
42619 cat confdefs.h >>conftest.$ac_ext
42620 cat >>conftest.$ac_ext <<_ACEOF
42621 /* end confdefs.h.  */
42622 #include <math.h>
42623 int
42624 main ()
42625 {
42626  __builtin_fabs(0);
42627   ;
42628   return 0;
42629 }
42630 _ACEOF
42631 rm -f conftest.$ac_objext conftest$ac_exeext
42632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42633   (eval $ac_link) 2>&5
42634   ac_status=$?
42635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42636   (exit $ac_status); } &&
42637          { ac_try='test -s conftest$ac_exeext'
42638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42639   (eval $ac_try) 2>&5
42640   ac_status=$?
42641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42642   (exit $ac_status); }; }; then
42643   glibcxx_cv_func___builtin_fabs_link=yes
42644 else
42645   echo "$as_me: failed program was:" >&5
42646 sed 's/^/| /' conftest.$ac_ext >&5
42647
42648 glibcxx_cv_func___builtin_fabs_link=no
42649 fi
42650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42651
42652 fi
42653
42654     fi
42655     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
42656 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
42657     if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
42658       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42659       cat >>confdefs.h <<_ACEOF
42660 #define ${ac_tr_func} 1
42661 _ACEOF
42662
42663     fi
42664   fi
42665
42666
42667   echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
42668 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
42669   if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
42670     if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
42671   echo $ECHO_N "(cached) $ECHO_C" >&6
42672 else
42673
42674
42675
42676       ac_ext=cc
42677 ac_cpp='$CXXCPP $CPPFLAGS'
42678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42681
42682       cat >conftest.$ac_ext <<_ACEOF
42683 #line $LINENO "configure"
42684 /* confdefs.h.  */
42685 _ACEOF
42686 cat confdefs.h >>conftest.$ac_ext
42687 cat >>conftest.$ac_ext <<_ACEOF
42688 /* end confdefs.h.  */
42689 #include <math.h>
42690 int
42691 main ()
42692 {
42693  __builtin_fabsl(0);
42694   ;
42695   return 0;
42696 }
42697 _ACEOF
42698 rm -f conftest.$ac_objext
42699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42700   (eval $ac_compile) 2>&5
42701   ac_status=$?
42702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42703   (exit $ac_status); } &&
42704          { ac_try='test -s conftest.$ac_objext'
42705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42706   (eval $ac_try) 2>&5
42707   ac_status=$?
42708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42709   (exit $ac_status); }; }; then
42710   glibcxx_cv_func___builtin_fabsl_use=yes
42711 else
42712   echo "$as_me: failed program was:" >&5
42713 sed 's/^/| /' conftest.$ac_ext >&5
42714
42715 glibcxx_cv_func___builtin_fabsl_use=no
42716 fi
42717 rm -f conftest.$ac_objext conftest.$ac_ext
42718       ac_ext=c
42719 ac_cpp='$CPP $CPPFLAGS'
42720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42723
42724
42725 fi
42726
42727   fi
42728   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
42729 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
42730   if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
42731     echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
42732 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
42733     if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
42734       if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
42735   echo $ECHO_N "(cached) $ECHO_C" >&6
42736 else
42737
42738         if test x$gcc_no_link = xyes; then
42739   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42740 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42741    { (exit 1); exit 1; }; }
42742 fi
42743 cat >conftest.$ac_ext <<_ACEOF
42744 #line $LINENO "configure"
42745 /* confdefs.h.  */
42746 _ACEOF
42747 cat confdefs.h >>conftest.$ac_ext
42748 cat >>conftest.$ac_ext <<_ACEOF
42749 /* end confdefs.h.  */
42750 #include <math.h>
42751 int
42752 main ()
42753 {
42754  __builtin_fabsl(0);
42755   ;
42756   return 0;
42757 }
42758 _ACEOF
42759 rm -f conftest.$ac_objext conftest$ac_exeext
42760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42761   (eval $ac_link) 2>&5
42762   ac_status=$?
42763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42764   (exit $ac_status); } &&
42765          { ac_try='test -s conftest$ac_exeext'
42766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42767   (eval $ac_try) 2>&5
42768   ac_status=$?
42769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42770   (exit $ac_status); }; }; then
42771   glibcxx_cv_func___builtin_fabsl_link=yes
42772 else
42773   echo "$as_me: failed program was:" >&5
42774 sed 's/^/| /' conftest.$ac_ext >&5
42775
42776 glibcxx_cv_func___builtin_fabsl_link=no
42777 fi
42778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42779
42780 fi
42781
42782     fi
42783     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
42784 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
42785     if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
42786       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42787       cat >>confdefs.h <<_ACEOF
42788 #define ${ac_tr_func} 1
42789 _ACEOF
42790
42791     fi
42792   fi
42793
42794
42795   echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
42796 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
42797   if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
42798     if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
42799   echo $ECHO_N "(cached) $ECHO_C" >&6
42800 else
42801
42802
42803
42804       ac_ext=cc
42805 ac_cpp='$CXXCPP $CPPFLAGS'
42806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42809
42810       cat >conftest.$ac_ext <<_ACEOF
42811 #line $LINENO "configure"
42812 /* confdefs.h.  */
42813 _ACEOF
42814 cat confdefs.h >>conftest.$ac_ext
42815 cat >>conftest.$ac_ext <<_ACEOF
42816 /* end confdefs.h.  */
42817 #include <math.h>
42818 int
42819 main ()
42820 {
42821  __builtin_labs(0);
42822   ;
42823   return 0;
42824 }
42825 _ACEOF
42826 rm -f conftest.$ac_objext
42827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42828   (eval $ac_compile) 2>&5
42829   ac_status=$?
42830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831   (exit $ac_status); } &&
42832          { ac_try='test -s conftest.$ac_objext'
42833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42834   (eval $ac_try) 2>&5
42835   ac_status=$?
42836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42837   (exit $ac_status); }; }; then
42838   glibcxx_cv_func___builtin_labs_use=yes
42839 else
42840   echo "$as_me: failed program was:" >&5
42841 sed 's/^/| /' conftest.$ac_ext >&5
42842
42843 glibcxx_cv_func___builtin_labs_use=no
42844 fi
42845 rm -f conftest.$ac_objext conftest.$ac_ext
42846       ac_ext=c
42847 ac_cpp='$CPP $CPPFLAGS'
42848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42851
42852
42853 fi
42854
42855   fi
42856   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
42857 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
42858   if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
42859     echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
42860 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
42861     if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
42862       if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
42863   echo $ECHO_N "(cached) $ECHO_C" >&6
42864 else
42865
42866         if test x$gcc_no_link = xyes; then
42867   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42869    { (exit 1); exit 1; }; }
42870 fi
42871 cat >conftest.$ac_ext <<_ACEOF
42872 #line $LINENO "configure"
42873 /* confdefs.h.  */
42874 _ACEOF
42875 cat confdefs.h >>conftest.$ac_ext
42876 cat >>conftest.$ac_ext <<_ACEOF
42877 /* end confdefs.h.  */
42878 #include <math.h>
42879 int
42880 main ()
42881 {
42882  __builtin_labs(0);
42883   ;
42884   return 0;
42885 }
42886 _ACEOF
42887 rm -f conftest.$ac_objext conftest$ac_exeext
42888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42889   (eval $ac_link) 2>&5
42890   ac_status=$?
42891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42892   (exit $ac_status); } &&
42893          { ac_try='test -s conftest$ac_exeext'
42894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42895   (eval $ac_try) 2>&5
42896   ac_status=$?
42897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42898   (exit $ac_status); }; }; then
42899   glibcxx_cv_func___builtin_labs_link=yes
42900 else
42901   echo "$as_me: failed program was:" >&5
42902 sed 's/^/| /' conftest.$ac_ext >&5
42903
42904 glibcxx_cv_func___builtin_labs_link=no
42905 fi
42906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42907
42908 fi
42909
42910     fi
42911     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
42912 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
42913     if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
42914       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42915       cat >>confdefs.h <<_ACEOF
42916 #define ${ac_tr_func} 1
42917 _ACEOF
42918
42919     fi
42920   fi
42921
42922
42923
42924   echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
42925 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
42926   if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
42927     if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
42928   echo $ECHO_N "(cached) $ECHO_C" >&6
42929 else
42930
42931
42932
42933       ac_ext=cc
42934 ac_cpp='$CXXCPP $CPPFLAGS'
42935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42938
42939       cat >conftest.$ac_ext <<_ACEOF
42940 #line $LINENO "configure"
42941 /* confdefs.h.  */
42942 _ACEOF
42943 cat confdefs.h >>conftest.$ac_ext
42944 cat >>conftest.$ac_ext <<_ACEOF
42945 /* end confdefs.h.  */
42946 #include <math.h>
42947 int
42948 main ()
42949 {
42950  __builtin_sqrtf(0);
42951   ;
42952   return 0;
42953 }
42954 _ACEOF
42955 rm -f conftest.$ac_objext
42956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42957   (eval $ac_compile) 2>&5
42958   ac_status=$?
42959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42960   (exit $ac_status); } &&
42961          { ac_try='test -s conftest.$ac_objext'
42962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42963   (eval $ac_try) 2>&5
42964   ac_status=$?
42965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42966   (exit $ac_status); }; }; then
42967   glibcxx_cv_func___builtin_sqrtf_use=yes
42968 else
42969   echo "$as_me: failed program was:" >&5
42970 sed 's/^/| /' conftest.$ac_ext >&5
42971
42972 glibcxx_cv_func___builtin_sqrtf_use=no
42973 fi
42974 rm -f conftest.$ac_objext conftest.$ac_ext
42975       ac_ext=c
42976 ac_cpp='$CPP $CPPFLAGS'
42977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42980
42981
42982 fi
42983
42984   fi
42985   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
42986 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
42987   if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
42988     echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
42989 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
42990     if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
42991       if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
42992   echo $ECHO_N "(cached) $ECHO_C" >&6
42993 else
42994
42995         if test x$gcc_no_link = xyes; then
42996   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42998    { (exit 1); exit 1; }; }
42999 fi
43000 cat >conftest.$ac_ext <<_ACEOF
43001 #line $LINENO "configure"
43002 /* confdefs.h.  */
43003 _ACEOF
43004 cat confdefs.h >>conftest.$ac_ext
43005 cat >>conftest.$ac_ext <<_ACEOF
43006 /* end confdefs.h.  */
43007 #include <math.h>
43008 int
43009 main ()
43010 {
43011  __builtin_sqrtf(0);
43012   ;
43013   return 0;
43014 }
43015 _ACEOF
43016 rm -f conftest.$ac_objext conftest$ac_exeext
43017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43018   (eval $ac_link) 2>&5
43019   ac_status=$?
43020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43021   (exit $ac_status); } &&
43022          { ac_try='test -s conftest$ac_exeext'
43023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43024   (eval $ac_try) 2>&5
43025   ac_status=$?
43026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43027   (exit $ac_status); }; }; then
43028   glibcxx_cv_func___builtin_sqrtf_link=yes
43029 else
43030   echo "$as_me: failed program was:" >&5
43031 sed 's/^/| /' conftest.$ac_ext >&5
43032
43033 glibcxx_cv_func___builtin_sqrtf_link=no
43034 fi
43035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43036
43037 fi
43038
43039     fi
43040     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
43041 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
43042     if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
43043       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43044       cat >>confdefs.h <<_ACEOF
43045 #define ${ac_tr_func} 1
43046 _ACEOF
43047
43048     fi
43049   fi
43050
43051
43052   echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
43053 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
43054   if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
43055     if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
43056   echo $ECHO_N "(cached) $ECHO_C" >&6
43057 else
43058
43059
43060
43061       ac_ext=cc
43062 ac_cpp='$CXXCPP $CPPFLAGS'
43063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43066
43067       cat >conftest.$ac_ext <<_ACEOF
43068 #line $LINENO "configure"
43069 /* confdefs.h.  */
43070 _ACEOF
43071 cat confdefs.h >>conftest.$ac_ext
43072 cat >>conftest.$ac_ext <<_ACEOF
43073 /* end confdefs.h.  */
43074 #include <math.h>
43075 int
43076 main ()
43077 {
43078  __builtin_sqrt(0);
43079   ;
43080   return 0;
43081 }
43082 _ACEOF
43083 rm -f conftest.$ac_objext
43084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43085   (eval $ac_compile) 2>&5
43086   ac_status=$?
43087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43088   (exit $ac_status); } &&
43089          { ac_try='test -s conftest.$ac_objext'
43090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43091   (eval $ac_try) 2>&5
43092   ac_status=$?
43093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094   (exit $ac_status); }; }; then
43095   glibcxx_cv_func___builtin_sqrt_use=yes
43096 else
43097   echo "$as_me: failed program was:" >&5
43098 sed 's/^/| /' conftest.$ac_ext >&5
43099
43100 glibcxx_cv_func___builtin_sqrt_use=no
43101 fi
43102 rm -f conftest.$ac_objext conftest.$ac_ext
43103       ac_ext=c
43104 ac_cpp='$CPP $CPPFLAGS'
43105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43108
43109
43110 fi
43111
43112   fi
43113   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
43114 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
43115   if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
43116     echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
43117 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
43118     if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
43119       if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
43120   echo $ECHO_N "(cached) $ECHO_C" >&6
43121 else
43122
43123         if test x$gcc_no_link = xyes; then
43124   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43125 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43126    { (exit 1); exit 1; }; }
43127 fi
43128 cat >conftest.$ac_ext <<_ACEOF
43129 #line $LINENO "configure"
43130 /* confdefs.h.  */
43131 _ACEOF
43132 cat confdefs.h >>conftest.$ac_ext
43133 cat >>conftest.$ac_ext <<_ACEOF
43134 /* end confdefs.h.  */
43135 #include <math.h>
43136 int
43137 main ()
43138 {
43139  __builtin_sqrt(0);
43140   ;
43141   return 0;
43142 }
43143 _ACEOF
43144 rm -f conftest.$ac_objext conftest$ac_exeext
43145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43146   (eval $ac_link) 2>&5
43147   ac_status=$?
43148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43149   (exit $ac_status); } &&
43150          { ac_try='test -s conftest$ac_exeext'
43151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43152   (eval $ac_try) 2>&5
43153   ac_status=$?
43154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43155   (exit $ac_status); }; }; then
43156   glibcxx_cv_func___builtin_sqrt_link=yes
43157 else
43158   echo "$as_me: failed program was:" >&5
43159 sed 's/^/| /' conftest.$ac_ext >&5
43160
43161 glibcxx_cv_func___builtin_sqrt_link=no
43162 fi
43163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43164
43165 fi
43166
43167     fi
43168     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
43169 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
43170     if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
43171       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43172       cat >>confdefs.h <<_ACEOF
43173 #define ${ac_tr_func} 1
43174 _ACEOF
43175
43176     fi
43177   fi
43178
43179
43180   echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
43181 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
43182   if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
43183     if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
43184   echo $ECHO_N "(cached) $ECHO_C" >&6
43185 else
43186
43187
43188
43189       ac_ext=cc
43190 ac_cpp='$CXXCPP $CPPFLAGS'
43191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43194
43195       cat >conftest.$ac_ext <<_ACEOF
43196 #line $LINENO "configure"
43197 /* confdefs.h.  */
43198 _ACEOF
43199 cat confdefs.h >>conftest.$ac_ext
43200 cat >>conftest.$ac_ext <<_ACEOF
43201 /* end confdefs.h.  */
43202 #include <math.h>
43203 int
43204 main ()
43205 {
43206  __builtin_sqrtl(0);
43207   ;
43208   return 0;
43209 }
43210 _ACEOF
43211 rm -f conftest.$ac_objext
43212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43213   (eval $ac_compile) 2>&5
43214   ac_status=$?
43215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43216   (exit $ac_status); } &&
43217          { ac_try='test -s conftest.$ac_objext'
43218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43219   (eval $ac_try) 2>&5
43220   ac_status=$?
43221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43222   (exit $ac_status); }; }; then
43223   glibcxx_cv_func___builtin_sqrtl_use=yes
43224 else
43225   echo "$as_me: failed program was:" >&5
43226 sed 's/^/| /' conftest.$ac_ext >&5
43227
43228 glibcxx_cv_func___builtin_sqrtl_use=no
43229 fi
43230 rm -f conftest.$ac_objext conftest.$ac_ext
43231       ac_ext=c
43232 ac_cpp='$CPP $CPPFLAGS'
43233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43236
43237
43238 fi
43239
43240   fi
43241   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
43242 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
43243   if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
43244     echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
43245 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
43246     if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
43247       if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
43248   echo $ECHO_N "(cached) $ECHO_C" >&6
43249 else
43250
43251         if test x$gcc_no_link = xyes; then
43252   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43254    { (exit 1); exit 1; }; }
43255 fi
43256 cat >conftest.$ac_ext <<_ACEOF
43257 #line $LINENO "configure"
43258 /* confdefs.h.  */
43259 _ACEOF
43260 cat confdefs.h >>conftest.$ac_ext
43261 cat >>conftest.$ac_ext <<_ACEOF
43262 /* end confdefs.h.  */
43263 #include <math.h>
43264 int
43265 main ()
43266 {
43267  __builtin_sqrtl(0);
43268   ;
43269   return 0;
43270 }
43271 _ACEOF
43272 rm -f conftest.$ac_objext conftest$ac_exeext
43273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43274   (eval $ac_link) 2>&5
43275   ac_status=$?
43276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43277   (exit $ac_status); } &&
43278          { ac_try='test -s conftest$ac_exeext'
43279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43280   (eval $ac_try) 2>&5
43281   ac_status=$?
43282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283   (exit $ac_status); }; }; then
43284   glibcxx_cv_func___builtin_sqrtl_link=yes
43285 else
43286   echo "$as_me: failed program was:" >&5
43287 sed 's/^/| /' conftest.$ac_ext >&5
43288
43289 glibcxx_cv_func___builtin_sqrtl_link=no
43290 fi
43291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43292
43293 fi
43294
43295     fi
43296     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
43297 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
43298     if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
43299       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43300       cat >>confdefs.h <<_ACEOF
43301 #define ${ac_tr_func} 1
43302 _ACEOF
43303
43304     fi
43305   fi
43306
43307
43308
43309   echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
43310 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
43311   if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
43312     if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
43313   echo $ECHO_N "(cached) $ECHO_C" >&6
43314 else
43315
43316
43317
43318       ac_ext=cc
43319 ac_cpp='$CXXCPP $CPPFLAGS'
43320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43323
43324       cat >conftest.$ac_ext <<_ACEOF
43325 #line $LINENO "configure"
43326 /* confdefs.h.  */
43327 _ACEOF
43328 cat confdefs.h >>conftest.$ac_ext
43329 cat >>conftest.$ac_ext <<_ACEOF
43330 /* end confdefs.h.  */
43331 #include <math.h>
43332 int
43333 main ()
43334 {
43335  __builtin_sinf(0);
43336   ;
43337   return 0;
43338 }
43339 _ACEOF
43340 rm -f conftest.$ac_objext
43341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43342   (eval $ac_compile) 2>&5
43343   ac_status=$?
43344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43345   (exit $ac_status); } &&
43346          { ac_try='test -s conftest.$ac_objext'
43347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43348   (eval $ac_try) 2>&5
43349   ac_status=$?
43350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43351   (exit $ac_status); }; }; then
43352   glibcxx_cv_func___builtin_sinf_use=yes
43353 else
43354   echo "$as_me: failed program was:" >&5
43355 sed 's/^/| /' conftest.$ac_ext >&5
43356
43357 glibcxx_cv_func___builtin_sinf_use=no
43358 fi
43359 rm -f conftest.$ac_objext conftest.$ac_ext
43360       ac_ext=c
43361 ac_cpp='$CPP $CPPFLAGS'
43362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43365
43366
43367 fi
43368
43369   fi
43370   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
43371 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
43372   if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
43373     echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
43374 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
43375     if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
43376       if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
43377   echo $ECHO_N "(cached) $ECHO_C" >&6
43378 else
43379
43380         if test x$gcc_no_link = xyes; then
43381   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43382 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43383    { (exit 1); exit 1; }; }
43384 fi
43385 cat >conftest.$ac_ext <<_ACEOF
43386 #line $LINENO "configure"
43387 /* confdefs.h.  */
43388 _ACEOF
43389 cat confdefs.h >>conftest.$ac_ext
43390 cat >>conftest.$ac_ext <<_ACEOF
43391 /* end confdefs.h.  */
43392 #include <math.h>
43393 int
43394 main ()
43395 {
43396  __builtin_sinf(0);
43397   ;
43398   return 0;
43399 }
43400 _ACEOF
43401 rm -f conftest.$ac_objext conftest$ac_exeext
43402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43403   (eval $ac_link) 2>&5
43404   ac_status=$?
43405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43406   (exit $ac_status); } &&
43407          { ac_try='test -s conftest$ac_exeext'
43408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43409   (eval $ac_try) 2>&5
43410   ac_status=$?
43411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43412   (exit $ac_status); }; }; then
43413   glibcxx_cv_func___builtin_sinf_link=yes
43414 else
43415   echo "$as_me: failed program was:" >&5
43416 sed 's/^/| /' conftest.$ac_ext >&5
43417
43418 glibcxx_cv_func___builtin_sinf_link=no
43419 fi
43420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43421
43422 fi
43423
43424     fi
43425     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
43426 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
43427     if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
43428       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43429       cat >>confdefs.h <<_ACEOF
43430 #define ${ac_tr_func} 1
43431 _ACEOF
43432
43433     fi
43434   fi
43435
43436
43437   echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
43438 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
43439   if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
43440     if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
43441   echo $ECHO_N "(cached) $ECHO_C" >&6
43442 else
43443
43444
43445
43446       ac_ext=cc
43447 ac_cpp='$CXXCPP $CPPFLAGS'
43448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43451
43452       cat >conftest.$ac_ext <<_ACEOF
43453 #line $LINENO "configure"
43454 /* confdefs.h.  */
43455 _ACEOF
43456 cat confdefs.h >>conftest.$ac_ext
43457 cat >>conftest.$ac_ext <<_ACEOF
43458 /* end confdefs.h.  */
43459 #include <math.h>
43460 int
43461 main ()
43462 {
43463  __builtin_sin(0);
43464   ;
43465   return 0;
43466 }
43467 _ACEOF
43468 rm -f conftest.$ac_objext
43469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43470   (eval $ac_compile) 2>&5
43471   ac_status=$?
43472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43473   (exit $ac_status); } &&
43474          { ac_try='test -s conftest.$ac_objext'
43475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43476   (eval $ac_try) 2>&5
43477   ac_status=$?
43478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43479   (exit $ac_status); }; }; then
43480   glibcxx_cv_func___builtin_sin_use=yes
43481 else
43482   echo "$as_me: failed program was:" >&5
43483 sed 's/^/| /' conftest.$ac_ext >&5
43484
43485 glibcxx_cv_func___builtin_sin_use=no
43486 fi
43487 rm -f conftest.$ac_objext conftest.$ac_ext
43488       ac_ext=c
43489 ac_cpp='$CPP $CPPFLAGS'
43490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43493
43494
43495 fi
43496
43497   fi
43498   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
43499 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
43500   if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
43501     echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
43502 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
43503     if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
43504       if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
43505   echo $ECHO_N "(cached) $ECHO_C" >&6
43506 else
43507
43508         if test x$gcc_no_link = xyes; then
43509   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43511    { (exit 1); exit 1; }; }
43512 fi
43513 cat >conftest.$ac_ext <<_ACEOF
43514 #line $LINENO "configure"
43515 /* confdefs.h.  */
43516 _ACEOF
43517 cat confdefs.h >>conftest.$ac_ext
43518 cat >>conftest.$ac_ext <<_ACEOF
43519 /* end confdefs.h.  */
43520 #include <math.h>
43521 int
43522 main ()
43523 {
43524  __builtin_sin(0);
43525   ;
43526   return 0;
43527 }
43528 _ACEOF
43529 rm -f conftest.$ac_objext conftest$ac_exeext
43530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43531   (eval $ac_link) 2>&5
43532   ac_status=$?
43533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43534   (exit $ac_status); } &&
43535          { ac_try='test -s conftest$ac_exeext'
43536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43537   (eval $ac_try) 2>&5
43538   ac_status=$?
43539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43540   (exit $ac_status); }; }; then
43541   glibcxx_cv_func___builtin_sin_link=yes
43542 else
43543   echo "$as_me: failed program was:" >&5
43544 sed 's/^/| /' conftest.$ac_ext >&5
43545
43546 glibcxx_cv_func___builtin_sin_link=no
43547 fi
43548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43549
43550 fi
43551
43552     fi
43553     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
43554 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
43555     if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
43556       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43557       cat >>confdefs.h <<_ACEOF
43558 #define ${ac_tr_func} 1
43559 _ACEOF
43560
43561     fi
43562   fi
43563
43564
43565   echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
43566 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
43567   if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
43568     if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
43569   echo $ECHO_N "(cached) $ECHO_C" >&6
43570 else
43571
43572
43573
43574       ac_ext=cc
43575 ac_cpp='$CXXCPP $CPPFLAGS'
43576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43579
43580       cat >conftest.$ac_ext <<_ACEOF
43581 #line $LINENO "configure"
43582 /* confdefs.h.  */
43583 _ACEOF
43584 cat confdefs.h >>conftest.$ac_ext
43585 cat >>conftest.$ac_ext <<_ACEOF
43586 /* end confdefs.h.  */
43587 #include <math.h>
43588 int
43589 main ()
43590 {
43591  __builtin_sinl(0);
43592   ;
43593   return 0;
43594 }
43595 _ACEOF
43596 rm -f conftest.$ac_objext
43597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43598   (eval $ac_compile) 2>&5
43599   ac_status=$?
43600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601   (exit $ac_status); } &&
43602          { ac_try='test -s conftest.$ac_objext'
43603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43604   (eval $ac_try) 2>&5
43605   ac_status=$?
43606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607   (exit $ac_status); }; }; then
43608   glibcxx_cv_func___builtin_sinl_use=yes
43609 else
43610   echo "$as_me: failed program was:" >&5
43611 sed 's/^/| /' conftest.$ac_ext >&5
43612
43613 glibcxx_cv_func___builtin_sinl_use=no
43614 fi
43615 rm -f conftest.$ac_objext conftest.$ac_ext
43616       ac_ext=c
43617 ac_cpp='$CPP $CPPFLAGS'
43618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43621
43622
43623 fi
43624
43625   fi
43626   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
43627 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
43628   if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
43629     echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
43630 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
43631     if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
43632       if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
43633   echo $ECHO_N "(cached) $ECHO_C" >&6
43634 else
43635
43636         if test x$gcc_no_link = xyes; then
43637   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43639    { (exit 1); exit 1; }; }
43640 fi
43641 cat >conftest.$ac_ext <<_ACEOF
43642 #line $LINENO "configure"
43643 /* confdefs.h.  */
43644 _ACEOF
43645 cat confdefs.h >>conftest.$ac_ext
43646 cat >>conftest.$ac_ext <<_ACEOF
43647 /* end confdefs.h.  */
43648 #include <math.h>
43649 int
43650 main ()
43651 {
43652  __builtin_sinl(0);
43653   ;
43654   return 0;
43655 }
43656 _ACEOF
43657 rm -f conftest.$ac_objext conftest$ac_exeext
43658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43659   (eval $ac_link) 2>&5
43660   ac_status=$?
43661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43662   (exit $ac_status); } &&
43663          { ac_try='test -s conftest$ac_exeext'
43664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43665   (eval $ac_try) 2>&5
43666   ac_status=$?
43667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43668   (exit $ac_status); }; }; then
43669   glibcxx_cv_func___builtin_sinl_link=yes
43670 else
43671   echo "$as_me: failed program was:" >&5
43672 sed 's/^/| /' conftest.$ac_ext >&5
43673
43674 glibcxx_cv_func___builtin_sinl_link=no
43675 fi
43676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43677
43678 fi
43679
43680     fi
43681     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
43682 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
43683     if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
43684       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43685       cat >>confdefs.h <<_ACEOF
43686 #define ${ac_tr_func} 1
43687 _ACEOF
43688
43689     fi
43690   fi
43691
43692
43693
43694   echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
43695 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
43696   if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
43697     if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
43698   echo $ECHO_N "(cached) $ECHO_C" >&6
43699 else
43700
43701
43702
43703       ac_ext=cc
43704 ac_cpp='$CXXCPP $CPPFLAGS'
43705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43708
43709       cat >conftest.$ac_ext <<_ACEOF
43710 #line $LINENO "configure"
43711 /* confdefs.h.  */
43712 _ACEOF
43713 cat confdefs.h >>conftest.$ac_ext
43714 cat >>conftest.$ac_ext <<_ACEOF
43715 /* end confdefs.h.  */
43716 #include <math.h>
43717 int
43718 main ()
43719 {
43720  __builtin_cosf(0);
43721   ;
43722   return 0;
43723 }
43724 _ACEOF
43725 rm -f conftest.$ac_objext
43726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43727   (eval $ac_compile) 2>&5
43728   ac_status=$?
43729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43730   (exit $ac_status); } &&
43731          { ac_try='test -s conftest.$ac_objext'
43732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43733   (eval $ac_try) 2>&5
43734   ac_status=$?
43735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43736   (exit $ac_status); }; }; then
43737   glibcxx_cv_func___builtin_cosf_use=yes
43738 else
43739   echo "$as_me: failed program was:" >&5
43740 sed 's/^/| /' conftest.$ac_ext >&5
43741
43742 glibcxx_cv_func___builtin_cosf_use=no
43743 fi
43744 rm -f conftest.$ac_objext conftest.$ac_ext
43745       ac_ext=c
43746 ac_cpp='$CPP $CPPFLAGS'
43747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43750
43751
43752 fi
43753
43754   fi
43755   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
43756 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
43757   if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
43758     echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
43759 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
43760     if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
43761       if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
43762   echo $ECHO_N "(cached) $ECHO_C" >&6
43763 else
43764
43765         if test x$gcc_no_link = xyes; then
43766   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43768    { (exit 1); exit 1; }; }
43769 fi
43770 cat >conftest.$ac_ext <<_ACEOF
43771 #line $LINENO "configure"
43772 /* confdefs.h.  */
43773 _ACEOF
43774 cat confdefs.h >>conftest.$ac_ext
43775 cat >>conftest.$ac_ext <<_ACEOF
43776 /* end confdefs.h.  */
43777 #include <math.h>
43778 int
43779 main ()
43780 {
43781  __builtin_cosf(0);
43782   ;
43783   return 0;
43784 }
43785 _ACEOF
43786 rm -f conftest.$ac_objext conftest$ac_exeext
43787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43788   (eval $ac_link) 2>&5
43789   ac_status=$?
43790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43791   (exit $ac_status); } &&
43792          { ac_try='test -s conftest$ac_exeext'
43793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43794   (eval $ac_try) 2>&5
43795   ac_status=$?
43796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43797   (exit $ac_status); }; }; then
43798   glibcxx_cv_func___builtin_cosf_link=yes
43799 else
43800   echo "$as_me: failed program was:" >&5
43801 sed 's/^/| /' conftest.$ac_ext >&5
43802
43803 glibcxx_cv_func___builtin_cosf_link=no
43804 fi
43805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43806
43807 fi
43808
43809     fi
43810     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
43811 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
43812     if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
43813       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43814       cat >>confdefs.h <<_ACEOF
43815 #define ${ac_tr_func} 1
43816 _ACEOF
43817
43818     fi
43819   fi
43820
43821
43822   echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
43823 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
43824   if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
43825     if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
43826   echo $ECHO_N "(cached) $ECHO_C" >&6
43827 else
43828
43829
43830
43831       ac_ext=cc
43832 ac_cpp='$CXXCPP $CPPFLAGS'
43833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43836
43837       cat >conftest.$ac_ext <<_ACEOF
43838 #line $LINENO "configure"
43839 /* confdefs.h.  */
43840 _ACEOF
43841 cat confdefs.h >>conftest.$ac_ext
43842 cat >>conftest.$ac_ext <<_ACEOF
43843 /* end confdefs.h.  */
43844 #include <math.h>
43845 int
43846 main ()
43847 {
43848  __builtin_cos(0);
43849   ;
43850   return 0;
43851 }
43852 _ACEOF
43853 rm -f conftest.$ac_objext
43854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43855   (eval $ac_compile) 2>&5
43856   ac_status=$?
43857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43858   (exit $ac_status); } &&
43859          { ac_try='test -s conftest.$ac_objext'
43860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43861   (eval $ac_try) 2>&5
43862   ac_status=$?
43863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43864   (exit $ac_status); }; }; then
43865   glibcxx_cv_func___builtin_cos_use=yes
43866 else
43867   echo "$as_me: failed program was:" >&5
43868 sed 's/^/| /' conftest.$ac_ext >&5
43869
43870 glibcxx_cv_func___builtin_cos_use=no
43871 fi
43872 rm -f conftest.$ac_objext conftest.$ac_ext
43873       ac_ext=c
43874 ac_cpp='$CPP $CPPFLAGS'
43875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43878
43879
43880 fi
43881
43882   fi
43883   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
43884 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
43885   if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
43886     echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
43887 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
43888     if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
43889       if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
43890   echo $ECHO_N "(cached) $ECHO_C" >&6
43891 else
43892
43893         if test x$gcc_no_link = xyes; then
43894   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43896    { (exit 1); exit 1; }; }
43897 fi
43898 cat >conftest.$ac_ext <<_ACEOF
43899 #line $LINENO "configure"
43900 /* confdefs.h.  */
43901 _ACEOF
43902 cat confdefs.h >>conftest.$ac_ext
43903 cat >>conftest.$ac_ext <<_ACEOF
43904 /* end confdefs.h.  */
43905 #include <math.h>
43906 int
43907 main ()
43908 {
43909  __builtin_cos(0);
43910   ;
43911   return 0;
43912 }
43913 _ACEOF
43914 rm -f conftest.$ac_objext conftest$ac_exeext
43915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43916   (eval $ac_link) 2>&5
43917   ac_status=$?
43918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43919   (exit $ac_status); } &&
43920          { ac_try='test -s conftest$ac_exeext'
43921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43922   (eval $ac_try) 2>&5
43923   ac_status=$?
43924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43925   (exit $ac_status); }; }; then
43926   glibcxx_cv_func___builtin_cos_link=yes
43927 else
43928   echo "$as_me: failed program was:" >&5
43929 sed 's/^/| /' conftest.$ac_ext >&5
43930
43931 glibcxx_cv_func___builtin_cos_link=no
43932 fi
43933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43934
43935 fi
43936
43937     fi
43938     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
43939 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
43940     if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
43941       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
43942       cat >>confdefs.h <<_ACEOF
43943 #define ${ac_tr_func} 1
43944 _ACEOF
43945
43946     fi
43947   fi
43948
43949
43950   echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
43951 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
43952   if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
43953     if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
43954   echo $ECHO_N "(cached) $ECHO_C" >&6
43955 else
43956
43957
43958
43959       ac_ext=cc
43960 ac_cpp='$CXXCPP $CPPFLAGS'
43961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43964
43965       cat >conftest.$ac_ext <<_ACEOF
43966 #line $LINENO "configure"
43967 /* confdefs.h.  */
43968 _ACEOF
43969 cat confdefs.h >>conftest.$ac_ext
43970 cat >>conftest.$ac_ext <<_ACEOF
43971 /* end confdefs.h.  */
43972 #include <math.h>
43973 int
43974 main ()
43975 {
43976  __builtin_cosl(0);
43977   ;
43978   return 0;
43979 }
43980 _ACEOF
43981 rm -f conftest.$ac_objext
43982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43983   (eval $ac_compile) 2>&5
43984   ac_status=$?
43985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43986   (exit $ac_status); } &&
43987          { ac_try='test -s conftest.$ac_objext'
43988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43989   (eval $ac_try) 2>&5
43990   ac_status=$?
43991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43992   (exit $ac_status); }; }; then
43993   glibcxx_cv_func___builtin_cosl_use=yes
43994 else
43995   echo "$as_me: failed program was:" >&5
43996 sed 's/^/| /' conftest.$ac_ext >&5
43997
43998 glibcxx_cv_func___builtin_cosl_use=no
43999 fi
44000 rm -f conftest.$ac_objext conftest.$ac_ext
44001       ac_ext=c
44002 ac_cpp='$CPP $CPPFLAGS'
44003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44006
44007
44008 fi
44009
44010   fi
44011   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
44012 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
44013   if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
44014     echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
44015 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
44016     if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
44017       if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
44018   echo $ECHO_N "(cached) $ECHO_C" >&6
44019 else
44020
44021         if test x$gcc_no_link = xyes; then
44022   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44023 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44024    { (exit 1); exit 1; }; }
44025 fi
44026 cat >conftest.$ac_ext <<_ACEOF
44027 #line $LINENO "configure"
44028 /* confdefs.h.  */
44029 _ACEOF
44030 cat confdefs.h >>conftest.$ac_ext
44031 cat >>conftest.$ac_ext <<_ACEOF
44032 /* end confdefs.h.  */
44033 #include <math.h>
44034 int
44035 main ()
44036 {
44037  __builtin_cosl(0);
44038   ;
44039   return 0;
44040 }
44041 _ACEOF
44042 rm -f conftest.$ac_objext conftest$ac_exeext
44043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44044   (eval $ac_link) 2>&5
44045   ac_status=$?
44046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44047   (exit $ac_status); } &&
44048          { ac_try='test -s conftest$ac_exeext'
44049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44050   (eval $ac_try) 2>&5
44051   ac_status=$?
44052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44053   (exit $ac_status); }; }; then
44054   glibcxx_cv_func___builtin_cosl_link=yes
44055 else
44056   echo "$as_me: failed program was:" >&5
44057 sed 's/^/| /' conftest.$ac_ext >&5
44058
44059 glibcxx_cv_func___builtin_cosl_link=no
44060 fi
44061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44062
44063 fi
44064
44065     fi
44066     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
44067 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
44068     if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
44069       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
44070       cat >>confdefs.h <<_ACEOF
44071 #define ${ac_tr_func} 1
44072 _ACEOF
44073
44074     fi
44075   fi
44076
44077
44078               dummyvar=no
44079   if test x$dummyvar = x"yes"; then
44080     cat >>confdefs.h <<\_ACEOF
44081 #define HAVE___BUILTIN_ABS 1
44082 _ACEOF
44083
44084     cat >>confdefs.h <<\_ACEOF
44085 #define HAVE___BUILTIN_LABS 1
44086 _ACEOF
44087
44088     cat >>confdefs.h <<\_ACEOF
44089 #define HAVE___BUILTIN_COS 1
44090 _ACEOF
44091
44092     cat >>confdefs.h <<\_ACEOF
44093 #define HAVE___BUILTIN_COSF 1
44094 _ACEOF
44095
44096     cat >>confdefs.h <<\_ACEOF
44097 #define HAVE___BUILTIN_COSL 1
44098 _ACEOF
44099
44100     cat >>confdefs.h <<\_ACEOF
44101 #define HAVE___BUILTIN_FABS 1
44102 _ACEOF
44103
44104     cat >>confdefs.h <<\_ACEOF
44105 #define HAVE___BUILTIN_FABSF 1
44106 _ACEOF
44107
44108     cat >>confdefs.h <<\_ACEOF
44109 #define HAVE___BUILTIN_FABSL 1
44110 _ACEOF
44111
44112     cat >>confdefs.h <<\_ACEOF
44113 #define HAVE___BUILTIN_SIN 1
44114 _ACEOF
44115
44116     cat >>confdefs.h <<\_ACEOF
44117 #define HAVE___BUILTIN_SINF 1
44118 _ACEOF
44119
44120     cat >>confdefs.h <<\_ACEOF
44121 #define HAVE___BUILTIN_SINL 1
44122 _ACEOF
44123
44124     cat >>confdefs.h <<\_ACEOF
44125 #define HAVE___BUILTIN_SQRT 1
44126 _ACEOF
44127
44128     cat >>confdefs.h <<\_ACEOF
44129 #define HAVE___BUILTIN_SQRTF 1
44130 _ACEOF
44131
44132     cat >>confdefs.h <<\_ACEOF
44133 #define HAVE___BUILTIN_SQRTL 1
44134 _ACEOF
44135
44136   fi
44137
44138
44139
44140 echo "$as_me:$LINENO: checking for main in -lm" >&5
44141 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
44142 if test "${ac_cv_lib_m_main+set}" = set; then
44143   echo $ECHO_N "(cached) $ECHO_C" >&6
44144 else
44145   ac_check_lib_save_LIBS=$LIBS
44146 LIBS="-lm  $LIBS"
44147 if test x$gcc_no_link = xyes; then
44148   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44150    { (exit 1); exit 1; }; }
44151 fi
44152 cat >conftest.$ac_ext <<_ACEOF
44153 #line $LINENO "configure"
44154 /* confdefs.h.  */
44155 _ACEOF
44156 cat confdefs.h >>conftest.$ac_ext
44157 cat >>conftest.$ac_ext <<_ACEOF
44158 /* end confdefs.h.  */
44159
44160
44161 int
44162 main ()
44163 {
44164 main ();
44165   ;
44166   return 0;
44167 }
44168 _ACEOF
44169 rm -f conftest.$ac_objext conftest$ac_exeext
44170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44171   (eval $ac_link) 2>&5
44172   ac_status=$?
44173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44174   (exit $ac_status); } &&
44175          { ac_try='test -s conftest$ac_exeext'
44176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44177   (eval $ac_try) 2>&5
44178   ac_status=$?
44179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44180   (exit $ac_status); }; }; then
44181   ac_cv_lib_m_main=yes
44182 else
44183   echo "$as_me: failed program was:" >&5
44184 sed 's/^/| /' conftest.$ac_ext >&5
44185
44186 ac_cv_lib_m_main=no
44187 fi
44188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44189 LIBS=$ac_check_lib_save_LIBS
44190 fi
44191 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
44192 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
44193 if test $ac_cv_lib_m_main = yes; then
44194   cat >>confdefs.h <<_ACEOF
44195 #define HAVE_LIBM 1
44196 _ACEOF
44197
44198   LIBS="-lm $LIBS"
44199
44200 fi
44201
44202
44203 for ac_func in copysignf
44204 do
44205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44206 echo "$as_me:$LINENO: checking for $ac_func" >&5
44207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44208 if eval "test \"\${$as_ac_var+set}\" = set"; then
44209   echo $ECHO_N "(cached) $ECHO_C" >&6
44210 else
44211   if test x$gcc_no_link = xyes; then
44212   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44214    { (exit 1); exit 1; }; }
44215 fi
44216 cat >conftest.$ac_ext <<_ACEOF
44217 #line $LINENO "configure"
44218 /* confdefs.h.  */
44219 _ACEOF
44220 cat confdefs.h >>conftest.$ac_ext
44221 cat >>conftest.$ac_ext <<_ACEOF
44222 /* end confdefs.h.  */
44223 /* System header to define __stub macros and hopefully few prototypes,
44224     which can conflict with char $ac_func (); below.
44225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44226     <limits.h> exists even on freestanding compilers.  */
44227 #ifdef __STDC__
44228 # include <limits.h>
44229 #else
44230 # include <assert.h>
44231 #endif
44232 /* Override any gcc2 internal prototype to avoid an error.  */
44233 #ifdef __cplusplus
44234 extern "C"
44235 {
44236 #endif
44237 /* We use char because int might match the return type of a gcc2
44238    builtin and then its argument prototype would still apply.  */
44239 char $ac_func ();
44240 /* The GNU C library defines this for functions which it implements
44241     to always fail with ENOSYS.  Some functions are actually named
44242     something starting with __ and the normal name is an alias.  */
44243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44244 choke me
44245 #else
44246 char (*f) () = $ac_func;
44247 #endif
44248 #ifdef __cplusplus
44249 }
44250 #endif
44251
44252 int
44253 main ()
44254 {
44255 return f != $ac_func;
44256   ;
44257   return 0;
44258 }
44259 _ACEOF
44260 rm -f conftest.$ac_objext conftest$ac_exeext
44261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44262   (eval $ac_link) 2>&5
44263   ac_status=$?
44264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44265   (exit $ac_status); } &&
44266          { ac_try='test -s conftest$ac_exeext'
44267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44268   (eval $ac_try) 2>&5
44269   ac_status=$?
44270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44271   (exit $ac_status); }; }; then
44272   eval "$as_ac_var=yes"
44273 else
44274   echo "$as_me: failed program was:" >&5
44275 sed 's/^/| /' conftest.$ac_ext >&5
44276
44277 eval "$as_ac_var=no"
44278 fi
44279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44280 fi
44281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44283 if test `eval echo '${'$as_ac_var'}'` = yes; then
44284   cat >>confdefs.h <<_ACEOF
44285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44286 _ACEOF
44287
44288 else
44289   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
44290 fi
44291 done
44292
44293
44294
44295 for ac_func in __signbit
44296 do
44297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44298 echo "$as_me:$LINENO: checking for $ac_func" >&5
44299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44300 if eval "test \"\${$as_ac_var+set}\" = set"; then
44301   echo $ECHO_N "(cached) $ECHO_C" >&6
44302 else
44303   if test x$gcc_no_link = xyes; then
44304   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44306    { (exit 1); exit 1; }; }
44307 fi
44308 cat >conftest.$ac_ext <<_ACEOF
44309 #line $LINENO "configure"
44310 /* confdefs.h.  */
44311 _ACEOF
44312 cat confdefs.h >>conftest.$ac_ext
44313 cat >>conftest.$ac_ext <<_ACEOF
44314 /* end confdefs.h.  */
44315 /* System header to define __stub macros and hopefully few prototypes,
44316     which can conflict with char $ac_func (); below.
44317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44318     <limits.h> exists even on freestanding compilers.  */
44319 #ifdef __STDC__
44320 # include <limits.h>
44321 #else
44322 # include <assert.h>
44323 #endif
44324 /* Override any gcc2 internal prototype to avoid an error.  */
44325 #ifdef __cplusplus
44326 extern "C"
44327 {
44328 #endif
44329 /* We use char because int might match the return type of a gcc2
44330    builtin and then its argument prototype would still apply.  */
44331 char $ac_func ();
44332 /* The GNU C library defines this for functions which it implements
44333     to always fail with ENOSYS.  Some functions are actually named
44334     something starting with __ and the normal name is an alias.  */
44335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44336 choke me
44337 #else
44338 char (*f) () = $ac_func;
44339 #endif
44340 #ifdef __cplusplus
44341 }
44342 #endif
44343
44344 int
44345 main ()
44346 {
44347 return f != $ac_func;
44348   ;
44349   return 0;
44350 }
44351 _ACEOF
44352 rm -f conftest.$ac_objext conftest$ac_exeext
44353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44354   (eval $ac_link) 2>&5
44355   ac_status=$?
44356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44357   (exit $ac_status); } &&
44358          { ac_try='test -s conftest$ac_exeext'
44359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44360   (eval $ac_try) 2>&5
44361   ac_status=$?
44362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44363   (exit $ac_status); }; }; then
44364   eval "$as_ac_var=yes"
44365 else
44366   echo "$as_me: failed program was:" >&5
44367 sed 's/^/| /' conftest.$ac_ext >&5
44368
44369 eval "$as_ac_var=no"
44370 fi
44371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44372 fi
44373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44375 if test `eval echo '${'$as_ac_var'}'` = yes; then
44376   cat >>confdefs.h <<_ACEOF
44377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44378 _ACEOF
44379
44380 else
44381   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
44382 fi
44383 done
44384
44385
44386 for ac_func in __signbitf
44387 do
44388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44389 echo "$as_me:$LINENO: checking for $ac_func" >&5
44390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44391 if eval "test \"\${$as_ac_var+set}\" = set"; then
44392   echo $ECHO_N "(cached) $ECHO_C" >&6
44393 else
44394   if test x$gcc_no_link = xyes; then
44395   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44397    { (exit 1); exit 1; }; }
44398 fi
44399 cat >conftest.$ac_ext <<_ACEOF
44400 #line $LINENO "configure"
44401 /* confdefs.h.  */
44402 _ACEOF
44403 cat confdefs.h >>conftest.$ac_ext
44404 cat >>conftest.$ac_ext <<_ACEOF
44405 /* end confdefs.h.  */
44406 /* System header to define __stub macros and hopefully few prototypes,
44407     which can conflict with char $ac_func (); below.
44408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44409     <limits.h> exists even on freestanding compilers.  */
44410 #ifdef __STDC__
44411 # include <limits.h>
44412 #else
44413 # include <assert.h>
44414 #endif
44415 /* Override any gcc2 internal prototype to avoid an error.  */
44416 #ifdef __cplusplus
44417 extern "C"
44418 {
44419 #endif
44420 /* We use char because int might match the return type of a gcc2
44421    builtin and then its argument prototype would still apply.  */
44422 char $ac_func ();
44423 /* The GNU C library defines this for functions which it implements
44424     to always fail with ENOSYS.  Some functions are actually named
44425     something starting with __ and the normal name is an alias.  */
44426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44427 choke me
44428 #else
44429 char (*f) () = $ac_func;
44430 #endif
44431 #ifdef __cplusplus
44432 }
44433 #endif
44434
44435 int
44436 main ()
44437 {
44438 return f != $ac_func;
44439   ;
44440   return 0;
44441 }
44442 _ACEOF
44443 rm -f conftest.$ac_objext conftest$ac_exeext
44444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44445   (eval $ac_link) 2>&5
44446   ac_status=$?
44447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44448   (exit $ac_status); } &&
44449          { ac_try='test -s conftest$ac_exeext'
44450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44451   (eval $ac_try) 2>&5
44452   ac_status=$?
44453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44454   (exit $ac_status); }; }; then
44455   eval "$as_ac_var=yes"
44456 else
44457   echo "$as_me: failed program was:" >&5
44458 sed 's/^/| /' conftest.$ac_ext >&5
44459
44460 eval "$as_ac_var=no"
44461 fi
44462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44463 fi
44464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44466 if test `eval echo '${'$as_ac_var'}'` = yes; then
44467   cat >>confdefs.h <<_ACEOF
44468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44469 _ACEOF
44470
44471 else
44472   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
44473 fi
44474 done
44475
44476
44477           if test x$ac_cv_func_copysignl = x"yes"; then
44478
44479 for ac_func in __signbitl
44480 do
44481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44482 echo "$as_me:$LINENO: checking for $ac_func" >&5
44483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44484 if eval "test \"\${$as_ac_var+set}\" = set"; then
44485   echo $ECHO_N "(cached) $ECHO_C" >&6
44486 else
44487   if test x$gcc_no_link = xyes; then
44488   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44490    { (exit 1); exit 1; }; }
44491 fi
44492 cat >conftest.$ac_ext <<_ACEOF
44493 #line $LINENO "configure"
44494 /* confdefs.h.  */
44495 _ACEOF
44496 cat confdefs.h >>conftest.$ac_ext
44497 cat >>conftest.$ac_ext <<_ACEOF
44498 /* end confdefs.h.  */
44499 /* System header to define __stub macros and hopefully few prototypes,
44500     which can conflict with char $ac_func (); below.
44501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44502     <limits.h> exists even on freestanding compilers.  */
44503 #ifdef __STDC__
44504 # include <limits.h>
44505 #else
44506 # include <assert.h>
44507 #endif
44508 /* Override any gcc2 internal prototype to avoid an error.  */
44509 #ifdef __cplusplus
44510 extern "C"
44511 {
44512 #endif
44513 /* We use char because int might match the return type of a gcc2
44514    builtin and then its argument prototype would still apply.  */
44515 char $ac_func ();
44516 /* The GNU C library defines this for functions which it implements
44517     to always fail with ENOSYS.  Some functions are actually named
44518     something starting with __ and the normal name is an alias.  */
44519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44520 choke me
44521 #else
44522 char (*f) () = $ac_func;
44523 #endif
44524 #ifdef __cplusplus
44525 }
44526 #endif
44527
44528 int
44529 main ()
44530 {
44531 return f != $ac_func;
44532   ;
44533   return 0;
44534 }
44535 _ACEOF
44536 rm -f conftest.$ac_objext conftest$ac_exeext
44537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44538   (eval $ac_link) 2>&5
44539   ac_status=$?
44540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44541   (exit $ac_status); } &&
44542          { ac_try='test -s conftest$ac_exeext'
44543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44544   (eval $ac_try) 2>&5
44545   ac_status=$?
44546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44547   (exit $ac_status); }; }; then
44548   eval "$as_ac_var=yes"
44549 else
44550   echo "$as_me: failed program was:" >&5
44551 sed 's/^/| /' conftest.$ac_ext >&5
44552
44553 eval "$as_ac_var=no"
44554 fi
44555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44556 fi
44557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44559 if test `eval echo '${'$as_ac_var'}'` = yes; then
44560   cat >>confdefs.h <<_ACEOF
44561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44562 _ACEOF
44563
44564 else
44565   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
44566 fi
44567 done
44568
44569   fi
44570
44571   # XXX Review this.  Nothing uses it.
44572   if test -n "$LIBMATHOBJS"; then
44573     need_libmath=yes
44574   fi
44575
44576
44577
44578   # Test wchar.h for mbstate_t, which is needed for char_traits and
44579   # others even if wchar_t support is not on.
44580   echo "$as_me:$LINENO: checking for mbstate_t" >&5
44581 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
44582   cat >conftest.$ac_ext <<_ACEOF
44583 #line $LINENO "configure"
44584 /* confdefs.h.  */
44585 _ACEOF
44586 cat confdefs.h >>conftest.$ac_ext
44587 cat >>conftest.$ac_ext <<_ACEOF
44588 /* end confdefs.h.  */
44589 #include <wchar.h>
44590 int
44591 main ()
44592 {
44593 mbstate_t teststate;
44594   ;
44595   return 0;
44596 }
44597 _ACEOF
44598 rm -f conftest.$ac_objext
44599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44600   (eval $ac_compile) 2>&5
44601   ac_status=$?
44602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44603   (exit $ac_status); } &&
44604          { ac_try='test -s conftest.$ac_objext'
44605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44606   (eval $ac_try) 2>&5
44607   ac_status=$?
44608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44609   (exit $ac_status); }; }; then
44610   have_mbstate_t=yes
44611 else
44612   echo "$as_me: failed program was:" >&5
44613 sed 's/^/| /' conftest.$ac_ext >&5
44614
44615 have_mbstate_t=no
44616 fi
44617 rm -f conftest.$ac_objext conftest.$ac_ext
44618   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
44619 echo "${ECHO_T}$have_mbstate_t" >&6
44620   if test x"$have_mbstate_t" = xyes; then
44621     cat >>confdefs.h <<\_ACEOF
44622 #define HAVE_MBSTATE_T 1
44623 _ACEOF
44624
44625   fi
44626
44627   # Sanity check for existence of ISO C99 headers for extended encoding.
44628
44629 for ac_header in wchar.h
44630 do
44631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44633   echo "$as_me:$LINENO: checking for $ac_header" >&5
44634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44636   echo $ECHO_N "(cached) $ECHO_C" >&6
44637 fi
44638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44640 else
44641   # Is the header compilable?
44642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44644 cat >conftest.$ac_ext <<_ACEOF
44645 #line $LINENO "configure"
44646 /* confdefs.h.  */
44647 _ACEOF
44648 cat confdefs.h >>conftest.$ac_ext
44649 cat >>conftest.$ac_ext <<_ACEOF
44650 /* end confdefs.h.  */
44651 $ac_includes_default
44652 #include <$ac_header>
44653 _ACEOF
44654 rm -f conftest.$ac_objext
44655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44656   (eval $ac_compile) 2>&5
44657   ac_status=$?
44658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44659   (exit $ac_status); } &&
44660          { ac_try='test -s conftest.$ac_objext'
44661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44662   (eval $ac_try) 2>&5
44663   ac_status=$?
44664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665   (exit $ac_status); }; }; then
44666   ac_header_compiler=yes
44667 else
44668   echo "$as_me: failed program was:" >&5
44669 sed 's/^/| /' conftest.$ac_ext >&5
44670
44671 ac_header_compiler=no
44672 fi
44673 rm -f conftest.$ac_objext conftest.$ac_ext
44674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44675 echo "${ECHO_T}$ac_header_compiler" >&6
44676
44677 # Is the header present?
44678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44680 cat >conftest.$ac_ext <<_ACEOF
44681 #line $LINENO "configure"
44682 /* confdefs.h.  */
44683 _ACEOF
44684 cat confdefs.h >>conftest.$ac_ext
44685 cat >>conftest.$ac_ext <<_ACEOF
44686 /* end confdefs.h.  */
44687 #include <$ac_header>
44688 _ACEOF
44689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44691   ac_status=$?
44692   grep -v '^ *+' conftest.er1 >conftest.err
44693   rm -f conftest.er1
44694   cat conftest.err >&5
44695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44696   (exit $ac_status); } >/dev/null; then
44697   if test -s conftest.err; then
44698     ac_cpp_err=$ac_c_preproc_warn_flag
44699   else
44700     ac_cpp_err=
44701   fi
44702 else
44703   ac_cpp_err=yes
44704 fi
44705 if test -z "$ac_cpp_err"; then
44706   ac_header_preproc=yes
44707 else
44708   echo "$as_me: failed program was:" >&5
44709 sed 's/^/| /' conftest.$ac_ext >&5
44710
44711   ac_header_preproc=no
44712 fi
44713 rm -f conftest.err conftest.$ac_ext
44714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44715 echo "${ECHO_T}$ac_header_preproc" >&6
44716
44717 # So?  What about this header?
44718 case $ac_header_compiler:$ac_header_preproc in
44719   yes:no )
44720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44724     (
44725       cat <<\_ASBOX
44726 ## ------------------------------------ ##
44727 ## Report this to bug-autoconf@gnu.org. ##
44728 ## ------------------------------------ ##
44729 _ASBOX
44730     ) |
44731       sed "s/^/$as_me: WARNING:     /" >&2
44732     ;;
44733   no:yes )
44734     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44736     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44740     (
44741       cat <<\_ASBOX
44742 ## ------------------------------------ ##
44743 ## Report this to bug-autoconf@gnu.org. ##
44744 ## ------------------------------------ ##
44745 _ASBOX
44746     ) |
44747       sed "s/^/$as_me: WARNING:     /" >&2
44748     ;;
44749 esac
44750 echo "$as_me:$LINENO: checking for $ac_header" >&5
44751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44753   echo $ECHO_N "(cached) $ECHO_C" >&6
44754 else
44755   eval "$as_ac_Header=$ac_header_preproc"
44756 fi
44757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44759
44760 fi
44761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44762   cat >>confdefs.h <<_ACEOF
44763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44764 _ACEOF
44765  ac_has_wchar_h=yes
44766 else
44767   ac_has_wchar_h=no
44768 fi
44769
44770 done
44771
44772
44773 for ac_header in wctype.h
44774 do
44775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44777   echo "$as_me:$LINENO: checking for $ac_header" >&5
44778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44780   echo $ECHO_N "(cached) $ECHO_C" >&6
44781 fi
44782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44784 else
44785   # Is the header compilable?
44786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44788 cat >conftest.$ac_ext <<_ACEOF
44789 #line $LINENO "configure"
44790 /* confdefs.h.  */
44791 _ACEOF
44792 cat confdefs.h >>conftest.$ac_ext
44793 cat >>conftest.$ac_ext <<_ACEOF
44794 /* end confdefs.h.  */
44795 $ac_includes_default
44796 #include <$ac_header>
44797 _ACEOF
44798 rm -f conftest.$ac_objext
44799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44800   (eval $ac_compile) 2>&5
44801   ac_status=$?
44802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44803   (exit $ac_status); } &&
44804          { ac_try='test -s conftest.$ac_objext'
44805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44806   (eval $ac_try) 2>&5
44807   ac_status=$?
44808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44809   (exit $ac_status); }; }; then
44810   ac_header_compiler=yes
44811 else
44812   echo "$as_me: failed program was:" >&5
44813 sed 's/^/| /' conftest.$ac_ext >&5
44814
44815 ac_header_compiler=no
44816 fi
44817 rm -f conftest.$ac_objext conftest.$ac_ext
44818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44819 echo "${ECHO_T}$ac_header_compiler" >&6
44820
44821 # Is the header present?
44822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44824 cat >conftest.$ac_ext <<_ACEOF
44825 #line $LINENO "configure"
44826 /* confdefs.h.  */
44827 _ACEOF
44828 cat confdefs.h >>conftest.$ac_ext
44829 cat >>conftest.$ac_ext <<_ACEOF
44830 /* end confdefs.h.  */
44831 #include <$ac_header>
44832 _ACEOF
44833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44835   ac_status=$?
44836   grep -v '^ *+' conftest.er1 >conftest.err
44837   rm -f conftest.er1
44838   cat conftest.err >&5
44839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44840   (exit $ac_status); } >/dev/null; then
44841   if test -s conftest.err; then
44842     ac_cpp_err=$ac_c_preproc_warn_flag
44843   else
44844     ac_cpp_err=
44845   fi
44846 else
44847   ac_cpp_err=yes
44848 fi
44849 if test -z "$ac_cpp_err"; then
44850   ac_header_preproc=yes
44851 else
44852   echo "$as_me: failed program was:" >&5
44853 sed 's/^/| /' conftest.$ac_ext >&5
44854
44855   ac_header_preproc=no
44856 fi
44857 rm -f conftest.err conftest.$ac_ext
44858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44859 echo "${ECHO_T}$ac_header_preproc" >&6
44860
44861 # So?  What about this header?
44862 case $ac_header_compiler:$ac_header_preproc in
44863   yes:no )
44864     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44868     (
44869       cat <<\_ASBOX
44870 ## ------------------------------------ ##
44871 ## Report this to bug-autoconf@gnu.org. ##
44872 ## ------------------------------------ ##
44873 _ASBOX
44874     ) |
44875       sed "s/^/$as_me: WARNING:     /" >&2
44876     ;;
44877   no:yes )
44878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44880     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44884     (
44885       cat <<\_ASBOX
44886 ## ------------------------------------ ##
44887 ## Report this to bug-autoconf@gnu.org. ##
44888 ## ------------------------------------ ##
44889 _ASBOX
44890     ) |
44891       sed "s/^/$as_me: WARNING:     /" >&2
44892     ;;
44893 esac
44894 echo "$as_me:$LINENO: checking for $ac_header" >&5
44895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44897   echo $ECHO_N "(cached) $ECHO_C" >&6
44898 else
44899   eval "$as_ac_Header=$ac_header_preproc"
44900 fi
44901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44903
44904 fi
44905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44906   cat >>confdefs.h <<_ACEOF
44907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44908 _ACEOF
44909  ac_has_wctype_h=yes
44910 else
44911   ac_has_wctype_h=no
44912 fi
44913
44914 done
44915
44916
44917   # Only continue checking if the ISO C99 headers exist and support is on.
44918   if test x"$ac_has_wchar_h" = xyes &&
44919      test x"$ac_has_wctype_h" = xyes &&
44920      test x"$enable_c_mbchar" != xno; then
44921
44922     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
44923     # numeric_limits can instantiate type_traits<wchar_t>
44924     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
44925 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
44926     cat >conftest.$ac_ext <<_ACEOF
44927 #line $LINENO "configure"
44928 /* confdefs.h.  */
44929 _ACEOF
44930 cat confdefs.h >>conftest.$ac_ext
44931 cat >>conftest.$ac_ext <<_ACEOF
44932 /* end confdefs.h.  */
44933 #include <wchar.h>
44934 int
44935 main ()
44936 {
44937 int i = WCHAR_MIN; int j = WCHAR_MAX;
44938   ;
44939   return 0;
44940 }
44941 _ACEOF
44942 rm -f conftest.$ac_objext
44943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44944   (eval $ac_compile) 2>&5
44945   ac_status=$?
44946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44947   (exit $ac_status); } &&
44948          { ac_try='test -s conftest.$ac_objext'
44949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44950   (eval $ac_try) 2>&5
44951   ac_status=$?
44952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44953   (exit $ac_status); }; }; then
44954   has_wchar_minmax=yes
44955 else
44956   echo "$as_me: failed program was:" >&5
44957 sed 's/^/| /' conftest.$ac_ext >&5
44958
44959 has_wchar_minmax=no
44960 fi
44961 rm -f conftest.$ac_objext conftest.$ac_ext
44962     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
44963 echo "${ECHO_T}$has_wchar_minmax" >&6
44964
44965     # Test wchar.h for WEOF, which is what we use to determine whether
44966     # to specialize for char_traits<wchar_t> or not.
44967     echo "$as_me:$LINENO: checking for WEOF" >&5
44968 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
44969     cat >conftest.$ac_ext <<_ACEOF
44970 #line $LINENO "configure"
44971 /* confdefs.h.  */
44972 _ACEOF
44973 cat confdefs.h >>conftest.$ac_ext
44974 cat >>conftest.$ac_ext <<_ACEOF
44975 /* end confdefs.h.  */
44976
44977       #include <wchar.h>
44978       #include <stddef.h>
44979 int
44980 main ()
44981 {
44982 wint_t i = WEOF;
44983   ;
44984   return 0;
44985 }
44986 _ACEOF
44987 rm -f conftest.$ac_objext
44988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44989   (eval $ac_compile) 2>&5
44990   ac_status=$?
44991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44992   (exit $ac_status); } &&
44993          { ac_try='test -s conftest.$ac_objext'
44994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44995   (eval $ac_try) 2>&5
44996   ac_status=$?
44997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44998   (exit $ac_status); }; }; then
44999   has_weof=yes
45000 else
45001   echo "$as_me: failed program was:" >&5
45002 sed 's/^/| /' conftest.$ac_ext >&5
45003
45004 has_weof=no
45005 fi
45006 rm -f conftest.$ac_objext conftest.$ac_ext
45007     echo "$as_me:$LINENO: result: $has_weof" >&5
45008 echo "${ECHO_T}$has_weof" >&6
45009
45010     # Tests for wide character functions used in char_traits<wchar_t>.
45011     ac_wfuncs=yes
45012
45013
45014
45015
45016
45017
45018 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
45019 do
45020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45021 echo "$as_me:$LINENO: checking for $ac_func" >&5
45022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45023 if eval "test \"\${$as_ac_var+set}\" = set"; then
45024   echo $ECHO_N "(cached) $ECHO_C" >&6
45025 else
45026   if test x$gcc_no_link = xyes; then
45027   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45029    { (exit 1); exit 1; }; }
45030 fi
45031 cat >conftest.$ac_ext <<_ACEOF
45032 #line $LINENO "configure"
45033 /* confdefs.h.  */
45034 _ACEOF
45035 cat confdefs.h >>conftest.$ac_ext
45036 cat >>conftest.$ac_ext <<_ACEOF
45037 /* end confdefs.h.  */
45038 /* System header to define __stub macros and hopefully few prototypes,
45039     which can conflict with char $ac_func (); below.
45040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45041     <limits.h> exists even on freestanding compilers.  */
45042 #ifdef __STDC__
45043 # include <limits.h>
45044 #else
45045 # include <assert.h>
45046 #endif
45047 /* Override any gcc2 internal prototype to avoid an error.  */
45048 #ifdef __cplusplus
45049 extern "C"
45050 {
45051 #endif
45052 /* We use char because int might match the return type of a gcc2
45053    builtin and then its argument prototype would still apply.  */
45054 char $ac_func ();
45055 /* The GNU C library defines this for functions which it implements
45056     to always fail with ENOSYS.  Some functions are actually named
45057     something starting with __ and the normal name is an alias.  */
45058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45059 choke me
45060 #else
45061 char (*f) () = $ac_func;
45062 #endif
45063 #ifdef __cplusplus
45064 }
45065 #endif
45066
45067 int
45068 main ()
45069 {
45070 return f != $ac_func;
45071   ;
45072   return 0;
45073 }
45074 _ACEOF
45075 rm -f conftest.$ac_objext conftest$ac_exeext
45076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45077   (eval $ac_link) 2>&5
45078   ac_status=$?
45079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45080   (exit $ac_status); } &&
45081          { ac_try='test -s conftest$ac_exeext'
45082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45083   (eval $ac_try) 2>&5
45084   ac_status=$?
45085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45086   (exit $ac_status); }; }; then
45087   eval "$as_ac_var=yes"
45088 else
45089   echo "$as_me: failed program was:" >&5
45090 sed 's/^/| /' conftest.$ac_ext >&5
45091
45092 eval "$as_ac_var=no"
45093 fi
45094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45095 fi
45096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45098 if test `eval echo '${'$as_ac_var'}'` = yes; then
45099   cat >>confdefs.h <<_ACEOF
45100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45101 _ACEOF
45102
45103 else
45104   ac_wfuncs=no
45105 fi
45106 done
45107
45108
45109     # Checks for names injected into std:: by the c_std headers.
45110
45111
45112
45113
45114
45115
45116
45117
45118
45119
45120
45121
45122
45123
45124
45125
45126
45127
45128
45129
45130
45131
45132
45133
45134
45135
45136
45137
45138
45139
45140
45141
45142
45143
45144
45145
45146
45147
45148
45149
45150
45151
45152
45153
45154
45155
45156 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
45157     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
45158     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
45159     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
45160     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
45161     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
45162 do
45163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45164 echo "$as_me:$LINENO: checking for $ac_func" >&5
45165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45166 if eval "test \"\${$as_ac_var+set}\" = set"; then
45167   echo $ECHO_N "(cached) $ECHO_C" >&6
45168 else
45169   if test x$gcc_no_link = xyes; then
45170   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45171 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45172    { (exit 1); exit 1; }; }
45173 fi
45174 cat >conftest.$ac_ext <<_ACEOF
45175 #line $LINENO "configure"
45176 /* confdefs.h.  */
45177 _ACEOF
45178 cat confdefs.h >>conftest.$ac_ext
45179 cat >>conftest.$ac_ext <<_ACEOF
45180 /* end confdefs.h.  */
45181 /* System header to define __stub macros and hopefully few prototypes,
45182     which can conflict with char $ac_func (); below.
45183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45184     <limits.h> exists even on freestanding compilers.  */
45185 #ifdef __STDC__
45186 # include <limits.h>
45187 #else
45188 # include <assert.h>
45189 #endif
45190 /* Override any gcc2 internal prototype to avoid an error.  */
45191 #ifdef __cplusplus
45192 extern "C"
45193 {
45194 #endif
45195 /* We use char because int might match the return type of a gcc2
45196    builtin and then its argument prototype would still apply.  */
45197 char $ac_func ();
45198 /* The GNU C library defines this for functions which it implements
45199     to always fail with ENOSYS.  Some functions are actually named
45200     something starting with __ and the normal name is an alias.  */
45201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45202 choke me
45203 #else
45204 char (*f) () = $ac_func;
45205 #endif
45206 #ifdef __cplusplus
45207 }
45208 #endif
45209
45210 int
45211 main ()
45212 {
45213 return f != $ac_func;
45214   ;
45215   return 0;
45216 }
45217 _ACEOF
45218 rm -f conftest.$ac_objext conftest$ac_exeext
45219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45220   (eval $ac_link) 2>&5
45221   ac_status=$?
45222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45223   (exit $ac_status); } &&
45224          { ac_try='test -s conftest$ac_exeext'
45225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45226   (eval $ac_try) 2>&5
45227   ac_status=$?
45228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45229   (exit $ac_status); }; }; then
45230   eval "$as_ac_var=yes"
45231 else
45232   echo "$as_me: failed program was:" >&5
45233 sed 's/^/| /' conftest.$ac_ext >&5
45234
45235 eval "$as_ac_var=no"
45236 fi
45237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45238 fi
45239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45241 if test `eval echo '${'$as_ac_var'}'` = yes; then
45242   cat >>confdefs.h <<_ACEOF
45243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45244 _ACEOF
45245
45246 else
45247   ac_wfuncs=no
45248 fi
45249 done
45250
45251
45252     # Checks for wide character functions that are not required
45253     # for basic wchar_t support.  Don't disable support if they are missing.
45254     # Injection of these is wrapped with guard macros.
45255
45256
45257
45258
45259
45260 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
45261 do
45262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45263 echo "$as_me:$LINENO: checking for $ac_func" >&5
45264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45265 if eval "test \"\${$as_ac_var+set}\" = set"; then
45266   echo $ECHO_N "(cached) $ECHO_C" >&6
45267 else
45268   if test x$gcc_no_link = xyes; then
45269   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45270 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45271    { (exit 1); exit 1; }; }
45272 fi
45273 cat >conftest.$ac_ext <<_ACEOF
45274 #line $LINENO "configure"
45275 /* confdefs.h.  */
45276 _ACEOF
45277 cat confdefs.h >>conftest.$ac_ext
45278 cat >>conftest.$ac_ext <<_ACEOF
45279 /* end confdefs.h.  */
45280 /* System header to define __stub macros and hopefully few prototypes,
45281     which can conflict with char $ac_func (); below.
45282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45283     <limits.h> exists even on freestanding compilers.  */
45284 #ifdef __STDC__
45285 # include <limits.h>
45286 #else
45287 # include <assert.h>
45288 #endif
45289 /* Override any gcc2 internal prototype to avoid an error.  */
45290 #ifdef __cplusplus
45291 extern "C"
45292 {
45293 #endif
45294 /* We use char because int might match the return type of a gcc2
45295    builtin and then its argument prototype would still apply.  */
45296 char $ac_func ();
45297 /* The GNU C library defines this for functions which it implements
45298     to always fail with ENOSYS.  Some functions are actually named
45299     something starting with __ and the normal name is an alias.  */
45300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45301 choke me
45302 #else
45303 char (*f) () = $ac_func;
45304 #endif
45305 #ifdef __cplusplus
45306 }
45307 #endif
45308
45309 int
45310 main ()
45311 {
45312 return f != $ac_func;
45313   ;
45314   return 0;
45315 }
45316 _ACEOF
45317 rm -f conftest.$ac_objext conftest$ac_exeext
45318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45319   (eval $ac_link) 2>&5
45320   ac_status=$?
45321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45322   (exit $ac_status); } &&
45323          { ac_try='test -s conftest$ac_exeext'
45324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45325   (eval $ac_try) 2>&5
45326   ac_status=$?
45327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45328   (exit $ac_status); }; }; then
45329   eval "$as_ac_var=yes"
45330 else
45331   echo "$as_me: failed program was:" >&5
45332 sed 's/^/| /' conftest.$ac_ext >&5
45333
45334 eval "$as_ac_var=no"
45335 fi
45336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45337 fi
45338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45340 if test `eval echo '${'$as_ac_var'}'` = yes; then
45341   cat >>confdefs.h <<_ACEOF
45342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45343 _ACEOF
45344
45345 fi
45346 done
45347
45348
45349     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
45350 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
45351     if test x"$has_weof" = xyes &&
45352        test x"$has_wchar_minmax" = xyes &&
45353        test x"$ac_wfuncs" = xyes;
45354     then
45355       ac_isoC99_wchar_t=yes
45356     else
45357       ac_isoC99_wchar_t=no
45358     fi
45359     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
45360 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
45361
45362     # Use iconv for wchar_t to char conversions. As such, check for
45363     # X/Open Portability Guide, version 2 features (XPG2).
45364     if test "${ac_cv_header_iconv_h+set}" = set; then
45365   echo "$as_me:$LINENO: checking for iconv.h" >&5
45366 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45367 if test "${ac_cv_header_iconv_h+set}" = set; then
45368   echo $ECHO_N "(cached) $ECHO_C" >&6
45369 fi
45370 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45371 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45372 else
45373   # Is the header compilable?
45374 echo "$as_me:$LINENO: checking iconv.h usability" >&5
45375 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
45376 cat >conftest.$ac_ext <<_ACEOF
45377 #line $LINENO "configure"
45378 /* confdefs.h.  */
45379 _ACEOF
45380 cat confdefs.h >>conftest.$ac_ext
45381 cat >>conftest.$ac_ext <<_ACEOF
45382 /* end confdefs.h.  */
45383 $ac_includes_default
45384 #include <iconv.h>
45385 _ACEOF
45386 rm -f conftest.$ac_objext
45387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45388   (eval $ac_compile) 2>&5
45389   ac_status=$?
45390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45391   (exit $ac_status); } &&
45392          { ac_try='test -s conftest.$ac_objext'
45393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45394   (eval $ac_try) 2>&5
45395   ac_status=$?
45396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45397   (exit $ac_status); }; }; then
45398   ac_header_compiler=yes
45399 else
45400   echo "$as_me: failed program was:" >&5
45401 sed 's/^/| /' conftest.$ac_ext >&5
45402
45403 ac_header_compiler=no
45404 fi
45405 rm -f conftest.$ac_objext conftest.$ac_ext
45406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45407 echo "${ECHO_T}$ac_header_compiler" >&6
45408
45409 # Is the header present?
45410 echo "$as_me:$LINENO: checking iconv.h presence" >&5
45411 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
45412 cat >conftest.$ac_ext <<_ACEOF
45413 #line $LINENO "configure"
45414 /* confdefs.h.  */
45415 _ACEOF
45416 cat confdefs.h >>conftest.$ac_ext
45417 cat >>conftest.$ac_ext <<_ACEOF
45418 /* end confdefs.h.  */
45419 #include <iconv.h>
45420 _ACEOF
45421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45423   ac_status=$?
45424   grep -v '^ *+' conftest.er1 >conftest.err
45425   rm -f conftest.er1
45426   cat conftest.err >&5
45427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45428   (exit $ac_status); } >/dev/null; then
45429   if test -s conftest.err; then
45430     ac_cpp_err=$ac_c_preproc_warn_flag
45431   else
45432     ac_cpp_err=
45433   fi
45434 else
45435   ac_cpp_err=yes
45436 fi
45437 if test -z "$ac_cpp_err"; then
45438   ac_header_preproc=yes
45439 else
45440   echo "$as_me: failed program was:" >&5
45441 sed 's/^/| /' conftest.$ac_ext >&5
45442
45443   ac_header_preproc=no
45444 fi
45445 rm -f conftest.err conftest.$ac_ext
45446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45447 echo "${ECHO_T}$ac_header_preproc" >&6
45448
45449 # So?  What about this header?
45450 case $ac_header_compiler:$ac_header_preproc in
45451   yes:no )
45452     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
45453 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45454     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45455 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45456     (
45457       cat <<\_ASBOX
45458 ## ------------------------------------ ##
45459 ## Report this to bug-autoconf@gnu.org. ##
45460 ## ------------------------------------ ##
45461 _ASBOX
45462     ) |
45463       sed "s/^/$as_me: WARNING:     /" >&2
45464     ;;
45465   no:yes )
45466     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
45467 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
45468     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
45469 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
45470     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
45471 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
45472     (
45473       cat <<\_ASBOX
45474 ## ------------------------------------ ##
45475 ## Report this to bug-autoconf@gnu.org. ##
45476 ## ------------------------------------ ##
45477 _ASBOX
45478     ) |
45479       sed "s/^/$as_me: WARNING:     /" >&2
45480     ;;
45481 esac
45482 echo "$as_me:$LINENO: checking for iconv.h" >&5
45483 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
45484 if test "${ac_cv_header_iconv_h+set}" = set; then
45485   echo $ECHO_N "(cached) $ECHO_C" >&6
45486 else
45487   ac_cv_header_iconv_h=$ac_header_preproc
45488 fi
45489 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
45490 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
45491
45492 fi
45493 if test $ac_cv_header_iconv_h = yes; then
45494   ac_has_iconv_h=yes
45495 else
45496   ac_has_iconv_h=no
45497 fi
45498
45499
45500     if test "${ac_cv_header_langinfo_h+set}" = set; then
45501   echo "$as_me:$LINENO: checking for langinfo.h" >&5
45502 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45503 if test "${ac_cv_header_langinfo_h+set}" = set; then
45504   echo $ECHO_N "(cached) $ECHO_C" >&6
45505 fi
45506 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45507 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45508 else
45509   # Is the header compilable?
45510 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
45511 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
45512 cat >conftest.$ac_ext <<_ACEOF
45513 #line $LINENO "configure"
45514 /* confdefs.h.  */
45515 _ACEOF
45516 cat confdefs.h >>conftest.$ac_ext
45517 cat >>conftest.$ac_ext <<_ACEOF
45518 /* end confdefs.h.  */
45519 $ac_includes_default
45520 #include <langinfo.h>
45521 _ACEOF
45522 rm -f conftest.$ac_objext
45523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45524   (eval $ac_compile) 2>&5
45525   ac_status=$?
45526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45527   (exit $ac_status); } &&
45528          { ac_try='test -s conftest.$ac_objext'
45529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45530   (eval $ac_try) 2>&5
45531   ac_status=$?
45532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45533   (exit $ac_status); }; }; then
45534   ac_header_compiler=yes
45535 else
45536   echo "$as_me: failed program was:" >&5
45537 sed 's/^/| /' conftest.$ac_ext >&5
45538
45539 ac_header_compiler=no
45540 fi
45541 rm -f conftest.$ac_objext conftest.$ac_ext
45542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45543 echo "${ECHO_T}$ac_header_compiler" >&6
45544
45545 # Is the header present?
45546 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
45547 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
45548 cat >conftest.$ac_ext <<_ACEOF
45549 #line $LINENO "configure"
45550 /* confdefs.h.  */
45551 _ACEOF
45552 cat confdefs.h >>conftest.$ac_ext
45553 cat >>conftest.$ac_ext <<_ACEOF
45554 /* end confdefs.h.  */
45555 #include <langinfo.h>
45556 _ACEOF
45557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45559   ac_status=$?
45560   grep -v '^ *+' conftest.er1 >conftest.err
45561   rm -f conftest.er1
45562   cat conftest.err >&5
45563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45564   (exit $ac_status); } >/dev/null; then
45565   if test -s conftest.err; then
45566     ac_cpp_err=$ac_c_preproc_warn_flag
45567   else
45568     ac_cpp_err=
45569   fi
45570 else
45571   ac_cpp_err=yes
45572 fi
45573 if test -z "$ac_cpp_err"; then
45574   ac_header_preproc=yes
45575 else
45576   echo "$as_me: failed program was:" >&5
45577 sed 's/^/| /' conftest.$ac_ext >&5
45578
45579   ac_header_preproc=no
45580 fi
45581 rm -f conftest.err conftest.$ac_ext
45582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45583 echo "${ECHO_T}$ac_header_preproc" >&6
45584
45585 # So?  What about this header?
45586 case $ac_header_compiler:$ac_header_preproc in
45587   yes:no )
45588     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
45589 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45590     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45591 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45592     (
45593       cat <<\_ASBOX
45594 ## ------------------------------------ ##
45595 ## Report this to bug-autoconf@gnu.org. ##
45596 ## ------------------------------------ ##
45597 _ASBOX
45598     ) |
45599       sed "s/^/$as_me: WARNING:     /" >&2
45600     ;;
45601   no:yes )
45602     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
45603 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
45604     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
45605 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
45606     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
45607 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
45608     (
45609       cat <<\_ASBOX
45610 ## ------------------------------------ ##
45611 ## Report this to bug-autoconf@gnu.org. ##
45612 ## ------------------------------------ ##
45613 _ASBOX
45614     ) |
45615       sed "s/^/$as_me: WARNING:     /" >&2
45616     ;;
45617 esac
45618 echo "$as_me:$LINENO: checking for langinfo.h" >&5
45619 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
45620 if test "${ac_cv_header_langinfo_h+set}" = set; then
45621   echo $ECHO_N "(cached) $ECHO_C" >&6
45622 else
45623   ac_cv_header_langinfo_h=$ac_header_preproc
45624 fi
45625 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
45626 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
45627
45628 fi
45629 if test $ac_cv_header_langinfo_h = yes; then
45630   ac_has_langinfo_h=yes
45631 else
45632   ac_has_langinfo_h=no
45633 fi
45634
45635
45636
45637     # Check for existence of libiconv.a providing XPG2 wchar_t support.
45638     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
45639 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
45640 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
45641   echo $ECHO_N "(cached) $ECHO_C" >&6
45642 else
45643   ac_check_lib_save_LIBS=$LIBS
45644 LIBS="-liconv  $LIBS"
45645 if test x$gcc_no_link = xyes; then
45646   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45647 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45648    { (exit 1); exit 1; }; }
45649 fi
45650 cat >conftest.$ac_ext <<_ACEOF
45651 #line $LINENO "configure"
45652 /* confdefs.h.  */
45653 _ACEOF
45654 cat confdefs.h >>conftest.$ac_ext
45655 cat >>conftest.$ac_ext <<_ACEOF
45656 /* end confdefs.h.  */
45657
45658 /* Override any gcc2 internal prototype to avoid an error.  */
45659 #ifdef __cplusplus
45660 extern "C"
45661 #endif
45662 /* We use char because int might match the return type of a gcc2
45663    builtin and then its argument prototype would still apply.  */
45664 char iconv ();
45665 int
45666 main ()
45667 {
45668 iconv ();
45669   ;
45670   return 0;
45671 }
45672 _ACEOF
45673 rm -f conftest.$ac_objext conftest$ac_exeext
45674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45675   (eval $ac_link) 2>&5
45676   ac_status=$?
45677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45678   (exit $ac_status); } &&
45679          { ac_try='test -s conftest$ac_exeext'
45680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45681   (eval $ac_try) 2>&5
45682   ac_status=$?
45683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45684   (exit $ac_status); }; }; then
45685   ac_cv_lib_iconv_iconv=yes
45686 else
45687   echo "$as_me: failed program was:" >&5
45688 sed 's/^/| /' conftest.$ac_ext >&5
45689
45690 ac_cv_lib_iconv_iconv=no
45691 fi
45692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45693 LIBS=$ac_check_lib_save_LIBS
45694 fi
45695 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
45696 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
45697 if test $ac_cv_lib_iconv_iconv = yes; then
45698   libiconv="-liconv"
45699 fi
45700
45701     ac_save_LIBS="$LIBS"
45702     LIBS="$LIBS $libiconv"
45703
45704
45705
45706
45707
45708 for ac_func in iconv_open iconv_close iconv nl_langinfo
45709 do
45710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45711 echo "$as_me:$LINENO: checking for $ac_func" >&5
45712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45713 if eval "test \"\${$as_ac_var+set}\" = set"; then
45714   echo $ECHO_N "(cached) $ECHO_C" >&6
45715 else
45716   if test x$gcc_no_link = xyes; then
45717   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45719    { (exit 1); exit 1; }; }
45720 fi
45721 cat >conftest.$ac_ext <<_ACEOF
45722 #line $LINENO "configure"
45723 /* confdefs.h.  */
45724 _ACEOF
45725 cat confdefs.h >>conftest.$ac_ext
45726 cat >>conftest.$ac_ext <<_ACEOF
45727 /* end confdefs.h.  */
45728 /* System header to define __stub macros and hopefully few prototypes,
45729     which can conflict with char $ac_func (); below.
45730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45731     <limits.h> exists even on freestanding compilers.  */
45732 #ifdef __STDC__
45733 # include <limits.h>
45734 #else
45735 # include <assert.h>
45736 #endif
45737 /* Override any gcc2 internal prototype to avoid an error.  */
45738 #ifdef __cplusplus
45739 extern "C"
45740 {
45741 #endif
45742 /* We use char because int might match the return type of a gcc2
45743    builtin and then its argument prototype would still apply.  */
45744 char $ac_func ();
45745 /* The GNU C library defines this for functions which it implements
45746     to always fail with ENOSYS.  Some functions are actually named
45747     something starting with __ and the normal name is an alias.  */
45748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45749 choke me
45750 #else
45751 char (*f) () = $ac_func;
45752 #endif
45753 #ifdef __cplusplus
45754 }
45755 #endif
45756
45757 int
45758 main ()
45759 {
45760 return f != $ac_func;
45761   ;
45762   return 0;
45763 }
45764 _ACEOF
45765 rm -f conftest.$ac_objext conftest$ac_exeext
45766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45767   (eval $ac_link) 2>&5
45768   ac_status=$?
45769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45770   (exit $ac_status); } &&
45771          { ac_try='test -s conftest$ac_exeext'
45772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45773   (eval $ac_try) 2>&5
45774   ac_status=$?
45775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45776   (exit $ac_status); }; }; then
45777   eval "$as_ac_var=yes"
45778 else
45779   echo "$as_me: failed program was:" >&5
45780 sed 's/^/| /' conftest.$ac_ext >&5
45781
45782 eval "$as_ac_var=no"
45783 fi
45784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45785 fi
45786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45788 if test `eval echo '${'$as_ac_var'}'` = yes; then
45789   cat >>confdefs.h <<_ACEOF
45790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45791 _ACEOF
45792  ac_XPG2funcs=yes
45793 else
45794   ac_XPG2funcs=no
45795 fi
45796 done
45797
45798
45799     LIBS="$ac_save_LIBS"
45800
45801     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
45802 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
45803     if test x"$ac_has_iconv_h" = xyes &&
45804        test x"$ac_has_langinfo_h" = xyes &&
45805        test x"$ac_XPG2funcs" = xyes;
45806     then
45807       ac_XPG2_wchar_t=yes
45808     else
45809       ac_XPG2_wchar_t=no
45810     fi
45811     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
45812 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
45813
45814     # At the moment, only enable wchar_t specializations if all the
45815     # above support is present.
45816     if test x"$ac_isoC99_wchar_t" = xyes &&
45817        test x"$ac_XPG2_wchar_t" = xyes;
45818     then
45819       cat >>confdefs.h <<\_ACEOF
45820 #define _GLIBCXX_USE_WCHAR_T 1
45821 _ACEOF
45822
45823       enable_wchar_t=yes
45824     fi
45825   fi
45826   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
45827 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
45828   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
45829 echo "${ECHO_T}$enable_wchar_t" >&6
45830
45831
45832   ac_test_CXXFLAGS="${CXXFLAGS+set}"
45833   ac_save_CXXFLAGS="$CXXFLAGS"
45834   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
45835
45836
45837   echo "$as_me:$LINENO: checking for strtold declaration" >&5
45838 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
45839   if test x${glibcxx_cv_func_strtold_use+set} != xset; then
45840     if test "${glibcxx_cv_func_strtold_use+set}" = set; then
45841   echo $ECHO_N "(cached) $ECHO_C" >&6
45842 else
45843
45844
45845
45846       ac_ext=cc
45847 ac_cpp='$CXXCPP $CPPFLAGS'
45848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45851
45852       cat >conftest.$ac_ext <<_ACEOF
45853 #line $LINENO "configure"
45854 /* confdefs.h.  */
45855 _ACEOF
45856 cat confdefs.h >>conftest.$ac_ext
45857 cat >>conftest.$ac_ext <<_ACEOF
45858 /* end confdefs.h.  */
45859 #include <stdlib.h>
45860 int
45861 main ()
45862 {
45863  strtold(0, 0);
45864   ;
45865   return 0;
45866 }
45867 _ACEOF
45868 rm -f conftest.$ac_objext
45869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45870   (eval $ac_compile) 2>&5
45871   ac_status=$?
45872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45873   (exit $ac_status); } &&
45874          { ac_try='test -s conftest.$ac_objext'
45875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45876   (eval $ac_try) 2>&5
45877   ac_status=$?
45878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45879   (exit $ac_status); }; }; then
45880   glibcxx_cv_func_strtold_use=yes
45881 else
45882   echo "$as_me: failed program was:" >&5
45883 sed 's/^/| /' conftest.$ac_ext >&5
45884
45885 glibcxx_cv_func_strtold_use=no
45886 fi
45887 rm -f conftest.$ac_objext conftest.$ac_ext
45888       ac_ext=c
45889 ac_cpp='$CPP $CPPFLAGS'
45890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45893
45894
45895 fi
45896
45897   fi
45898   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
45899 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
45900   if test x$glibcxx_cv_func_strtold_use = x"yes"; then
45901
45902 for ac_func in strtold
45903 do
45904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45905 echo "$as_me:$LINENO: checking for $ac_func" >&5
45906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45907 if eval "test \"\${$as_ac_var+set}\" = set"; then
45908   echo $ECHO_N "(cached) $ECHO_C" >&6
45909 else
45910   if test x$gcc_no_link = xyes; then
45911   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45912 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45913    { (exit 1); exit 1; }; }
45914 fi
45915 cat >conftest.$ac_ext <<_ACEOF
45916 #line $LINENO "configure"
45917 /* confdefs.h.  */
45918 _ACEOF
45919 cat confdefs.h >>conftest.$ac_ext
45920 cat >>conftest.$ac_ext <<_ACEOF
45921 /* end confdefs.h.  */
45922 /* System header to define __stub macros and hopefully few prototypes,
45923     which can conflict with char $ac_func (); below.
45924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45925     <limits.h> exists even on freestanding compilers.  */
45926 #ifdef __STDC__
45927 # include <limits.h>
45928 #else
45929 # include <assert.h>
45930 #endif
45931 /* Override any gcc2 internal prototype to avoid an error.  */
45932 #ifdef __cplusplus
45933 extern "C"
45934 {
45935 #endif
45936 /* We use char because int might match the return type of a gcc2
45937    builtin and then its argument prototype would still apply.  */
45938 char $ac_func ();
45939 /* The GNU C library defines this for functions which it implements
45940     to always fail with ENOSYS.  Some functions are actually named
45941     something starting with __ and the normal name is an alias.  */
45942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45943 choke me
45944 #else
45945 char (*f) () = $ac_func;
45946 #endif
45947 #ifdef __cplusplus
45948 }
45949 #endif
45950
45951 int
45952 main ()
45953 {
45954 return f != $ac_func;
45955   ;
45956   return 0;
45957 }
45958 _ACEOF
45959 rm -f conftest.$ac_objext conftest$ac_exeext
45960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45961   (eval $ac_link) 2>&5
45962   ac_status=$?
45963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45964   (exit $ac_status); } &&
45965          { ac_try='test -s conftest$ac_exeext'
45966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45967   (eval $ac_try) 2>&5
45968   ac_status=$?
45969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45970   (exit $ac_status); }; }; then
45971   eval "$as_ac_var=yes"
45972 else
45973   echo "$as_me: failed program was:" >&5
45974 sed 's/^/| /' conftest.$ac_ext >&5
45975
45976 eval "$as_ac_var=no"
45977 fi
45978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45979 fi
45980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45982 if test `eval echo '${'$as_ac_var'}'` = yes; then
45983   cat >>confdefs.h <<_ACEOF
45984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45985 _ACEOF
45986
45987 fi
45988 done
45989
45990   fi
45991
45992
45993   echo "$as_me:$LINENO: checking for strtof declaration" >&5
45994 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
45995   if test x${glibcxx_cv_func_strtof_use+set} != xset; then
45996     if test "${glibcxx_cv_func_strtof_use+set}" = set; then
45997   echo $ECHO_N "(cached) $ECHO_C" >&6
45998 else
45999
46000
46001
46002       ac_ext=cc
46003 ac_cpp='$CXXCPP $CPPFLAGS'
46004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46007
46008       cat >conftest.$ac_ext <<_ACEOF
46009 #line $LINENO "configure"
46010 /* confdefs.h.  */
46011 _ACEOF
46012 cat confdefs.h >>conftest.$ac_ext
46013 cat >>conftest.$ac_ext <<_ACEOF
46014 /* end confdefs.h.  */
46015 #include <stdlib.h>
46016 int
46017 main ()
46018 {
46019  strtof(0, 0);
46020   ;
46021   return 0;
46022 }
46023 _ACEOF
46024 rm -f conftest.$ac_objext
46025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46026   (eval $ac_compile) 2>&5
46027   ac_status=$?
46028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46029   (exit $ac_status); } &&
46030          { ac_try='test -s conftest.$ac_objext'
46031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46032   (eval $ac_try) 2>&5
46033   ac_status=$?
46034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46035   (exit $ac_status); }; }; then
46036   glibcxx_cv_func_strtof_use=yes
46037 else
46038   echo "$as_me: failed program was:" >&5
46039 sed 's/^/| /' conftest.$ac_ext >&5
46040
46041 glibcxx_cv_func_strtof_use=no
46042 fi
46043 rm -f conftest.$ac_objext conftest.$ac_ext
46044       ac_ext=c
46045 ac_cpp='$CPP $CPPFLAGS'
46046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46049
46050
46051 fi
46052
46053   fi
46054   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
46055 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
46056   if test x$glibcxx_cv_func_strtof_use = x"yes"; then
46057
46058 for ac_func in strtof
46059 do
46060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46061 echo "$as_me:$LINENO: checking for $ac_func" >&5
46062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46063 if eval "test \"\${$as_ac_var+set}\" = set"; then
46064   echo $ECHO_N "(cached) $ECHO_C" >&6
46065 else
46066   if test x$gcc_no_link = xyes; then
46067   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46068 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46069    { (exit 1); exit 1; }; }
46070 fi
46071 cat >conftest.$ac_ext <<_ACEOF
46072 #line $LINENO "configure"
46073 /* confdefs.h.  */
46074 _ACEOF
46075 cat confdefs.h >>conftest.$ac_ext
46076 cat >>conftest.$ac_ext <<_ACEOF
46077 /* end confdefs.h.  */
46078 /* System header to define __stub macros and hopefully few prototypes,
46079     which can conflict with char $ac_func (); below.
46080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46081     <limits.h> exists even on freestanding compilers.  */
46082 #ifdef __STDC__
46083 # include <limits.h>
46084 #else
46085 # include <assert.h>
46086 #endif
46087 /* Override any gcc2 internal prototype to avoid an error.  */
46088 #ifdef __cplusplus
46089 extern "C"
46090 {
46091 #endif
46092 /* We use char because int might match the return type of a gcc2
46093    builtin and then its argument prototype would still apply.  */
46094 char $ac_func ();
46095 /* The GNU C library defines this for functions which it implements
46096     to always fail with ENOSYS.  Some functions are actually named
46097     something starting with __ and the normal name is an alias.  */
46098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46099 choke me
46100 #else
46101 char (*f) () = $ac_func;
46102 #endif
46103 #ifdef __cplusplus
46104 }
46105 #endif
46106
46107 int
46108 main ()
46109 {
46110 return f != $ac_func;
46111   ;
46112   return 0;
46113 }
46114 _ACEOF
46115 rm -f conftest.$ac_objext conftest$ac_exeext
46116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46117   (eval $ac_link) 2>&5
46118   ac_status=$?
46119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46120   (exit $ac_status); } &&
46121          { ac_try='test -s conftest$ac_exeext'
46122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46123   (eval $ac_try) 2>&5
46124   ac_status=$?
46125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46126   (exit $ac_status); }; }; then
46127   eval "$as_ac_var=yes"
46128 else
46129   echo "$as_me: failed program was:" >&5
46130 sed 's/^/| /' conftest.$ac_ext >&5
46131
46132 eval "$as_ac_var=no"
46133 fi
46134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46135 fi
46136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46138 if test `eval echo '${'$as_ac_var'}'` = yes; then
46139   cat >>confdefs.h <<_ACEOF
46140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46141 _ACEOF
46142
46143 fi
46144 done
46145
46146   fi
46147
46148
46149   CXXFLAGS="$ac_save_CXXFLAGS"
46150
46151
46152     # For showmanyc_helper().
46153
46154
46155 for ac_header in sys/ioctl.h sys/filio.h
46156 do
46157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46159   echo "$as_me:$LINENO: checking for $ac_header" >&5
46160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46162   echo $ECHO_N "(cached) $ECHO_C" >&6
46163 fi
46164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46166 else
46167   # Is the header compilable?
46168 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46170 cat >conftest.$ac_ext <<_ACEOF
46171 #line $LINENO "configure"
46172 /* confdefs.h.  */
46173 _ACEOF
46174 cat confdefs.h >>conftest.$ac_ext
46175 cat >>conftest.$ac_ext <<_ACEOF
46176 /* end confdefs.h.  */
46177 $ac_includes_default
46178 #include <$ac_header>
46179 _ACEOF
46180 rm -f conftest.$ac_objext
46181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46182   (eval $ac_compile) 2>&5
46183   ac_status=$?
46184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46185   (exit $ac_status); } &&
46186          { ac_try='test -s conftest.$ac_objext'
46187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46188   (eval $ac_try) 2>&5
46189   ac_status=$?
46190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46191   (exit $ac_status); }; }; then
46192   ac_header_compiler=yes
46193 else
46194   echo "$as_me: failed program was:" >&5
46195 sed 's/^/| /' conftest.$ac_ext >&5
46196
46197 ac_header_compiler=no
46198 fi
46199 rm -f conftest.$ac_objext conftest.$ac_ext
46200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46201 echo "${ECHO_T}$ac_header_compiler" >&6
46202
46203 # Is the header present?
46204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46206 cat >conftest.$ac_ext <<_ACEOF
46207 #line $LINENO "configure"
46208 /* confdefs.h.  */
46209 _ACEOF
46210 cat confdefs.h >>conftest.$ac_ext
46211 cat >>conftest.$ac_ext <<_ACEOF
46212 /* end confdefs.h.  */
46213 #include <$ac_header>
46214 _ACEOF
46215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46217   ac_status=$?
46218   grep -v '^ *+' conftest.er1 >conftest.err
46219   rm -f conftest.er1
46220   cat conftest.err >&5
46221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46222   (exit $ac_status); } >/dev/null; then
46223   if test -s conftest.err; then
46224     ac_cpp_err=$ac_c_preproc_warn_flag
46225   else
46226     ac_cpp_err=
46227   fi
46228 else
46229   ac_cpp_err=yes
46230 fi
46231 if test -z "$ac_cpp_err"; then
46232   ac_header_preproc=yes
46233 else
46234   echo "$as_me: failed program was:" >&5
46235 sed 's/^/| /' conftest.$ac_ext >&5
46236
46237   ac_header_preproc=no
46238 fi
46239 rm -f conftest.err conftest.$ac_ext
46240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46241 echo "${ECHO_T}$ac_header_preproc" >&6
46242
46243 # So?  What about this header?
46244 case $ac_header_compiler:$ac_header_preproc in
46245   yes:no )
46246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46250     (
46251       cat <<\_ASBOX
46252 ## ------------------------------------ ##
46253 ## Report this to bug-autoconf@gnu.org. ##
46254 ## ------------------------------------ ##
46255 _ASBOX
46256     ) |
46257       sed "s/^/$as_me: WARNING:     /" >&2
46258     ;;
46259   no:yes )
46260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46262     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46266     (
46267       cat <<\_ASBOX
46268 ## ------------------------------------ ##
46269 ## Report this to bug-autoconf@gnu.org. ##
46270 ## ------------------------------------ ##
46271 _ASBOX
46272     ) |
46273       sed "s/^/$as_me: WARNING:     /" >&2
46274     ;;
46275 esac
46276 echo "$as_me:$LINENO: checking for $ac_header" >&5
46277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46279   echo $ECHO_N "(cached) $ECHO_C" >&6
46280 else
46281   eval "$as_ac_Header=$ac_header_preproc"
46282 fi
46283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46285
46286 fi
46287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46288   cat >>confdefs.h <<_ACEOF
46289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46290 _ACEOF
46291
46292 fi
46293
46294 done
46295
46296
46297   if test "${glibcxx_cv_POLL+set}" = set; then
46298   echo $ECHO_N "(cached) $ECHO_C" >&6
46299 else
46300
46301     if test x$gcc_no_link = xyes; then
46302   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46304    { (exit 1); exit 1; }; }
46305 fi
46306 cat >conftest.$ac_ext <<_ACEOF
46307 #line $LINENO "configure"
46308 /* confdefs.h.  */
46309 _ACEOF
46310 cat confdefs.h >>conftest.$ac_ext
46311 cat >>conftest.$ac_ext <<_ACEOF
46312 /* end confdefs.h.  */
46313 #include <poll.h>
46314 int
46315 main ()
46316 {
46317 struct pollfd pfd[1];
46318        pfd[0].events = POLLIN;
46319        poll(pfd, 1, 0);
46320   ;
46321   return 0;
46322 }
46323 _ACEOF
46324 rm -f conftest.$ac_objext conftest$ac_exeext
46325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46326   (eval $ac_link) 2>&5
46327   ac_status=$?
46328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46329   (exit $ac_status); } &&
46330          { ac_try='test -s conftest$ac_exeext'
46331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46332   (eval $ac_try) 2>&5
46333   ac_status=$?
46334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46335   (exit $ac_status); }; }; then
46336   glibcxx_cv_POLL=yes
46337 else
46338   echo "$as_me: failed program was:" >&5
46339 sed 's/^/| /' conftest.$ac_ext >&5
46340
46341 glibcxx_cv_POLL=no
46342 fi
46343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46344
46345 fi
46346
46347   if test $glibcxx_cv_POLL = yes; then
46348     cat >>confdefs.h <<\_ACEOF
46349 #define HAVE_POLL 1
46350 _ACEOF
46351
46352   fi
46353
46354
46355   if test "${glibcxx_cv_S_ISREG+set}" = set; then
46356   echo $ECHO_N "(cached) $ECHO_C" >&6
46357 else
46358
46359     if test x$gcc_no_link = xyes; then
46360   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46362    { (exit 1); exit 1; }; }
46363 fi
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 <sys/stat.h>
46372 int
46373 main ()
46374 {
46375 struct stat buffer;
46376        fstat(0, &buffer);
46377        S_ISREG(buffer.st_mode);
46378   ;
46379   return 0;
46380 }
46381 _ACEOF
46382 rm -f conftest.$ac_objext conftest$ac_exeext
46383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46384   (eval $ac_link) 2>&5
46385   ac_status=$?
46386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46387   (exit $ac_status); } &&
46388          { ac_try='test -s conftest$ac_exeext'
46389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46390   (eval $ac_try) 2>&5
46391   ac_status=$?
46392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46393   (exit $ac_status); }; }; then
46394   glibcxx_cv_S_ISREG=yes
46395 else
46396   echo "$as_me: failed program was:" >&5
46397 sed 's/^/| /' conftest.$ac_ext >&5
46398
46399 glibcxx_cv_S_ISREG=no
46400 fi
46401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46402
46403 fi
46404
46405   if test "${glibcxx_cv_S_IFREG+set}" = set; then
46406   echo $ECHO_N "(cached) $ECHO_C" >&6
46407 else
46408
46409     if test x$gcc_no_link = xyes; then
46410   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46412    { (exit 1); exit 1; }; }
46413 fi
46414 cat >conftest.$ac_ext <<_ACEOF
46415 #line $LINENO "configure"
46416 /* confdefs.h.  */
46417 _ACEOF
46418 cat confdefs.h >>conftest.$ac_ext
46419 cat >>conftest.$ac_ext <<_ACEOF
46420 /* end confdefs.h.  */
46421 #include <sys/stat.h>
46422 int
46423 main ()
46424 {
46425 struct stat buffer;
46426        fstat(0, &buffer);
46427        S_IFREG & buffer.st_mode;
46428   ;
46429   return 0;
46430 }
46431 _ACEOF
46432 rm -f conftest.$ac_objext conftest$ac_exeext
46433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46434   (eval $ac_link) 2>&5
46435   ac_status=$?
46436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46437   (exit $ac_status); } &&
46438          { ac_try='test -s conftest$ac_exeext'
46439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46440   (eval $ac_try) 2>&5
46441   ac_status=$?
46442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46443   (exit $ac_status); }; }; then
46444   glibcxx_cv_S_IFREG=yes
46445 else
46446   echo "$as_me: failed program was:" >&5
46447 sed 's/^/| /' conftest.$ac_ext >&5
46448
46449 glibcxx_cv_S_IFREG=no
46450 fi
46451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46452
46453 fi
46454
46455   if test $glibcxx_cv_S_ISREG = yes; then
46456     cat >>confdefs.h <<\_ACEOF
46457 #define HAVE_S_ISREG 1
46458 _ACEOF
46459
46460   elif test $glibcxx_cv_S_IFREG = yes; then
46461     cat >>confdefs.h <<\_ACEOF
46462 #define HAVE_S_IFREG 1
46463 _ACEOF
46464
46465   fi
46466
46467
46468     # For xsputn_2().
46469
46470 for ac_header in sys/uio.h
46471 do
46472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46474   echo "$as_me:$LINENO: checking for $ac_header" >&5
46475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46477   echo $ECHO_N "(cached) $ECHO_C" >&6
46478 fi
46479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46481 else
46482   # Is the header compilable?
46483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46485 cat >conftest.$ac_ext <<_ACEOF
46486 #line $LINENO "configure"
46487 /* confdefs.h.  */
46488 _ACEOF
46489 cat confdefs.h >>conftest.$ac_ext
46490 cat >>conftest.$ac_ext <<_ACEOF
46491 /* end confdefs.h.  */
46492 $ac_includes_default
46493 #include <$ac_header>
46494 _ACEOF
46495 rm -f conftest.$ac_objext
46496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46497   (eval $ac_compile) 2>&5
46498   ac_status=$?
46499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46500   (exit $ac_status); } &&
46501          { ac_try='test -s conftest.$ac_objext'
46502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46503   (eval $ac_try) 2>&5
46504   ac_status=$?
46505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46506   (exit $ac_status); }; }; then
46507   ac_header_compiler=yes
46508 else
46509   echo "$as_me: failed program was:" >&5
46510 sed 's/^/| /' conftest.$ac_ext >&5
46511
46512 ac_header_compiler=no
46513 fi
46514 rm -f conftest.$ac_objext conftest.$ac_ext
46515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46516 echo "${ECHO_T}$ac_header_compiler" >&6
46517
46518 # Is the header present?
46519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46521 cat >conftest.$ac_ext <<_ACEOF
46522 #line $LINENO "configure"
46523 /* confdefs.h.  */
46524 _ACEOF
46525 cat confdefs.h >>conftest.$ac_ext
46526 cat >>conftest.$ac_ext <<_ACEOF
46527 /* end confdefs.h.  */
46528 #include <$ac_header>
46529 _ACEOF
46530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46532   ac_status=$?
46533   grep -v '^ *+' conftest.er1 >conftest.err
46534   rm -f conftest.er1
46535   cat conftest.err >&5
46536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46537   (exit $ac_status); } >/dev/null; then
46538   if test -s conftest.err; then
46539     ac_cpp_err=$ac_c_preproc_warn_flag
46540   else
46541     ac_cpp_err=
46542   fi
46543 else
46544   ac_cpp_err=yes
46545 fi
46546 if test -z "$ac_cpp_err"; then
46547   ac_header_preproc=yes
46548 else
46549   echo "$as_me: failed program was:" >&5
46550 sed 's/^/| /' conftest.$ac_ext >&5
46551
46552   ac_header_preproc=no
46553 fi
46554 rm -f conftest.err conftest.$ac_ext
46555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46556 echo "${ECHO_T}$ac_header_preproc" >&6
46557
46558 # So?  What about this header?
46559 case $ac_header_compiler:$ac_header_preproc in
46560   yes:no )
46561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46565     (
46566       cat <<\_ASBOX
46567 ## ------------------------------------ ##
46568 ## Report this to bug-autoconf@gnu.org. ##
46569 ## ------------------------------------ ##
46570 _ASBOX
46571     ) |
46572       sed "s/^/$as_me: WARNING:     /" >&2
46573     ;;
46574   no:yes )
46575     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46577     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46581     (
46582       cat <<\_ASBOX
46583 ## ------------------------------------ ##
46584 ## Report this to bug-autoconf@gnu.org. ##
46585 ## ------------------------------------ ##
46586 _ASBOX
46587     ) |
46588       sed "s/^/$as_me: WARNING:     /" >&2
46589     ;;
46590 esac
46591 echo "$as_me:$LINENO: checking for $ac_header" >&5
46592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46594   echo $ECHO_N "(cached) $ECHO_C" >&6
46595 else
46596   eval "$as_ac_Header=$ac_header_preproc"
46597 fi
46598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46600
46601 fi
46602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46603   cat >>confdefs.h <<_ACEOF
46604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46605 _ACEOF
46606
46607 fi
46608
46609 done
46610
46611
46612   if test "${glibcxx_cv_WRITEV+set}" = set; then
46613   echo $ECHO_N "(cached) $ECHO_C" >&6
46614 else
46615
46616     if test x$gcc_no_link = xyes; then
46617   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46619    { (exit 1); exit 1; }; }
46620 fi
46621 cat >conftest.$ac_ext <<_ACEOF
46622 #line $LINENO "configure"
46623 /* confdefs.h.  */
46624 _ACEOF
46625 cat confdefs.h >>conftest.$ac_ext
46626 cat >>conftest.$ac_ext <<_ACEOF
46627 /* end confdefs.h.  */
46628 #include <sys/uio.h>
46629 int
46630 main ()
46631 {
46632 struct iovec iov[2];
46633        writev(0, iov, 0);
46634   ;
46635   return 0;
46636 }
46637 _ACEOF
46638 rm -f conftest.$ac_objext conftest$ac_exeext
46639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46640   (eval $ac_link) 2>&5
46641   ac_status=$?
46642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46643   (exit $ac_status); } &&
46644          { ac_try='test -s conftest$ac_exeext'
46645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46646   (eval $ac_try) 2>&5
46647   ac_status=$?
46648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46649   (exit $ac_status); }; }; then
46650   glibcxx_cv_WRITEV=yes
46651 else
46652   echo "$as_me: failed program was:" >&5
46653 sed 's/^/| /' conftest.$ac_ext >&5
46654
46655 glibcxx_cv_WRITEV=no
46656 fi
46657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46658
46659 fi
46660
46661   if test $glibcxx_cv_WRITEV = yes; then
46662     cat >>confdefs.h <<\_ACEOF
46663 #define HAVE_WRITEV 1
46664 _ACEOF
46665
46666   fi
46667
46668
46669     cat >>confdefs.h <<\_ACEOF
46670 #define HAVE_LC_MESSAGES 1
46671 _ACEOF
46672
46673
46674     cat >conftest.$ac_ext <<_ACEOF
46675 #line $LINENO "configure"
46676 /* confdefs.h.  */
46677 _ACEOF
46678 cat confdefs.h >>conftest.$ac_ext
46679 cat >>conftest.$ac_ext <<_ACEOF
46680 /* end confdefs.h.  */
46681 #include <setjmp.h>
46682 int
46683 main ()
46684 {
46685 sigjmp_buf env;
46686        while (! sigsetjmp (env, 1))
46687          siglongjmp (env, 1);
46688
46689   ;
46690   return 0;
46691 }
46692 _ACEOF
46693 rm -f conftest.$ac_objext
46694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46695   (eval $ac_compile) 2>&5
46696   ac_status=$?
46697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46698   (exit $ac_status); } &&
46699          { ac_try='test -s conftest.$ac_objext'
46700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46701   (eval $ac_try) 2>&5
46702   ac_status=$?
46703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46704   (exit $ac_status); }; }; then
46705
46706 cat >>confdefs.h <<\_ACEOF
46707 #define HAVE_SIGSETJMP 1
46708 _ACEOF
46709
46710 else
46711   echo "$as_me: failed program was:" >&5
46712 sed 's/^/| /' conftest.$ac_ext >&5
46713
46714 fi
46715 rm -f conftest.$ac_objext conftest.$ac_ext
46716
46717     cat >>confdefs.h <<\_ACEOF
46718 #define HAVE_MMAP 1
46719 _ACEOF
46720
46721     ;;
46722
46723   *-freebsd*)
46724
46725
46726
46727
46728
46729
46730
46731
46732
46733
46734
46735
46736
46737
46738
46739
46740 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
46741       machine/endian.h machine/param.h sys/machine.h sys/types.h \
46742       fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
46743       sys/time.h unistd.h
46744 do
46745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46747   echo "$as_me:$LINENO: checking for $ac_header" >&5
46748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46750   echo $ECHO_N "(cached) $ECHO_C" >&6
46751 fi
46752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46754 else
46755   # Is the header compilable?
46756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46758 cat >conftest.$ac_ext <<_ACEOF
46759 #line $LINENO "configure"
46760 /* confdefs.h.  */
46761 _ACEOF
46762 cat confdefs.h >>conftest.$ac_ext
46763 cat >>conftest.$ac_ext <<_ACEOF
46764 /* end confdefs.h.  */
46765 $ac_includes_default
46766 #include <$ac_header>
46767 _ACEOF
46768 rm -f conftest.$ac_objext
46769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46770   (eval $ac_compile) 2>&5
46771   ac_status=$?
46772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46773   (exit $ac_status); } &&
46774          { ac_try='test -s conftest.$ac_objext'
46775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46776   (eval $ac_try) 2>&5
46777   ac_status=$?
46778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46779   (exit $ac_status); }; }; then
46780   ac_header_compiler=yes
46781 else
46782   echo "$as_me: failed program was:" >&5
46783 sed 's/^/| /' conftest.$ac_ext >&5
46784
46785 ac_header_compiler=no
46786 fi
46787 rm -f conftest.$ac_objext conftest.$ac_ext
46788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46789 echo "${ECHO_T}$ac_header_compiler" >&6
46790
46791 # Is the header present?
46792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46794 cat >conftest.$ac_ext <<_ACEOF
46795 #line $LINENO "configure"
46796 /* confdefs.h.  */
46797 _ACEOF
46798 cat confdefs.h >>conftest.$ac_ext
46799 cat >>conftest.$ac_ext <<_ACEOF
46800 /* end confdefs.h.  */
46801 #include <$ac_header>
46802 _ACEOF
46803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46805   ac_status=$?
46806   grep -v '^ *+' conftest.er1 >conftest.err
46807   rm -f conftest.er1
46808   cat conftest.err >&5
46809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46810   (exit $ac_status); } >/dev/null; then
46811   if test -s conftest.err; then
46812     ac_cpp_err=$ac_c_preproc_warn_flag
46813   else
46814     ac_cpp_err=
46815   fi
46816 else
46817   ac_cpp_err=yes
46818 fi
46819 if test -z "$ac_cpp_err"; then
46820   ac_header_preproc=yes
46821 else
46822   echo "$as_me: failed program was:" >&5
46823 sed 's/^/| /' conftest.$ac_ext >&5
46824
46825   ac_header_preproc=no
46826 fi
46827 rm -f conftest.err conftest.$ac_ext
46828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46829 echo "${ECHO_T}$ac_header_preproc" >&6
46830
46831 # So?  What about this header?
46832 case $ac_header_compiler:$ac_header_preproc in
46833   yes:no )
46834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46838     (
46839       cat <<\_ASBOX
46840 ## ------------------------------------ ##
46841 ## Report this to bug-autoconf@gnu.org. ##
46842 ## ------------------------------------ ##
46843 _ASBOX
46844     ) |
46845       sed "s/^/$as_me: WARNING:     /" >&2
46846     ;;
46847   no:yes )
46848     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46850     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46854     (
46855       cat <<\_ASBOX
46856 ## ------------------------------------ ##
46857 ## Report this to bug-autoconf@gnu.org. ##
46858 ## ------------------------------------ ##
46859 _ASBOX
46860     ) |
46861       sed "s/^/$as_me: WARNING:     /" >&2
46862     ;;
46863 esac
46864 echo "$as_me:$LINENO: checking for $ac_header" >&5
46865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46867   echo $ECHO_N "(cached) $ECHO_C" >&6
46868 else
46869   eval "$as_ac_Header=$ac_header_preproc"
46870 fi
46871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46873
46874 fi
46875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46876   cat >>confdefs.h <<_ACEOF
46877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46878 _ACEOF
46879
46880 fi
46881
46882 done
46883
46884     SECTION_FLAGS='-ffunction-sections -fdata-sections'
46885
46886
46887   # If we're not using GNU ld, then there's no point in even trying these
46888   # tests.  Check for that first.  We should have already tested for gld
46889   # by now (in libtool), but require it now just to be safe...
46890   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
46891   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
46892
46893
46894
46895   # The name set by libtool depends on the version of libtool.  Shame on us
46896   # for depending on an impl detail, but c'est la vie.  Older versions used
46897   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
46898   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
46899   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
46900   # set (hence we're using an older libtool), then set it.
46901   if test x${with_gnu_ld+set} != xset; then
46902     if test x${ac_cv_prog_gnu_ld+set} != xset; then
46903       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
46904       with_gnu_ld=no
46905     else
46906       with_gnu_ld=$ac_cv_prog_gnu_ld
46907     fi
46908   fi
46909
46910   # Start by getting the version number.  I think the libtool test already
46911   # does some of this, but throws away the result.
46912
46913   ldver=`$LD --version 2>/dev/null | head -1 | \
46914          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
46915
46916   glibcxx_gnu_ld_version=`echo $ldver | \
46917          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
46918
46919   # Set --gc-sections.
46920   if test "$with_gnu_ld" = "notbroken"; then
46921     # GNU ld it is!  Joy and bunny rabbits!
46922
46923     # All these tests are for C++; save the language and the compiler flags.
46924     # Need to do this so that g++ won't try to link in libstdc++
46925     ac_test_CFLAGS="${CFLAGS+set}"
46926     ac_save_CFLAGS="$CFLAGS"
46927     CFLAGS='-x c++  -Wl,--gc-sections'
46928
46929     # Check for -Wl,--gc-sections
46930     # XXX This test is broken at the moment, as symbols required for linking
46931     # are now in libsupc++ (not built yet).  In addition, this test has
46932     # cored on solaris in the past.  In addition, --gc-sections doesn't
46933     # really work at the moment (keeps on discarding used sections, first
46934     # .eh_frame and now some of the glibc sections for iconv).
46935     # Bzzzzt.  Thanks for playing, maybe next time.
46936     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
46937 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
46938     if test "$cross_compiling" = yes; then
46939   ac_sectionLDflags=yes
46940 else
46941   cat >conftest.$ac_ext <<_ACEOF
46942 #line $LINENO "configure"
46943 /* confdefs.h.  */
46944 _ACEOF
46945 cat confdefs.h >>conftest.$ac_ext
46946 cat >>conftest.$ac_ext <<_ACEOF
46947 /* end confdefs.h.  */
46948
46949      int main(void)
46950      {
46951        try { throw 1; }
46952        catch (...) { };
46953        return 0;
46954      }
46955
46956 _ACEOF
46957 rm -f conftest$ac_exeext
46958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46959   (eval $ac_link) 2>&5
46960   ac_status=$?
46961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46964   (eval $ac_try) 2>&5
46965   ac_status=$?
46966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46967   (exit $ac_status); }; }; then
46968   ac_sectionLDflags=yes
46969 else
46970   echo "$as_me: program exited with status $ac_status" >&5
46971 echo "$as_me: failed program was:" >&5
46972 sed 's/^/| /' conftest.$ac_ext >&5
46973
46974 ( exit $ac_status )
46975 ac_sectionLDflags=no
46976 fi
46977 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46978 fi
46979     if test "$ac_test_CFLAGS" = set; then
46980       CFLAGS="$ac_save_CFLAGS"
46981     else
46982       # this is the suspicious part
46983       CFLAGS=''
46984     fi
46985     if test "$ac_sectionLDflags" = "yes"; then
46986       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
46987     fi
46988     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
46989 echo "${ECHO_T}$ac_sectionLDflags" >&6
46990   fi
46991
46992   # Set linker optimization flags.
46993   if test x"$with_gnu_ld" = x"yes"; then
46994     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
46995   fi
46996
46997
46998
46999
47000
47001
47002 echo "$as_me:$LINENO: checking for main in -lm" >&5
47003 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
47004 if test "${ac_cv_lib_m_main+set}" = set; then
47005   echo $ECHO_N "(cached) $ECHO_C" >&6
47006 else
47007   ac_check_lib_save_LIBS=$LIBS
47008 LIBS="-lm  $LIBS"
47009 if test x$gcc_no_link = xyes; then
47010   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47011 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47012    { (exit 1); exit 1; }; }
47013 fi
47014 cat >conftest.$ac_ext <<_ACEOF
47015 #line $LINENO "configure"
47016 /* confdefs.h.  */
47017 _ACEOF
47018 cat confdefs.h >>conftest.$ac_ext
47019 cat >>conftest.$ac_ext <<_ACEOF
47020 /* end confdefs.h.  */
47021
47022
47023 int
47024 main ()
47025 {
47026 main ();
47027   ;
47028   return 0;
47029 }
47030 _ACEOF
47031 rm -f conftest.$ac_objext conftest$ac_exeext
47032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47033   (eval $ac_link) 2>&5
47034   ac_status=$?
47035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47036   (exit $ac_status); } &&
47037          { ac_try='test -s conftest$ac_exeext'
47038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47039   (eval $ac_try) 2>&5
47040   ac_status=$?
47041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47042   (exit $ac_status); }; }; then
47043   ac_cv_lib_m_main=yes
47044 else
47045   echo "$as_me: failed program was:" >&5
47046 sed 's/^/| /' conftest.$ac_ext >&5
47047
47048 ac_cv_lib_m_main=no
47049 fi
47050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47051 LIBS=$ac_check_lib_save_LIBS
47052 fi
47053 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
47054 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
47055 if test $ac_cv_lib_m_main = yes; then
47056   cat >>confdefs.h <<_ACEOF
47057 #define HAVE_LIBM 1
47058 _ACEOF
47059
47060   LIBS="-lm $LIBS"
47061
47062 fi
47063
47064
47065 for ac_func in copysignf
47066 do
47067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47068 echo "$as_me:$LINENO: checking for $ac_func" >&5
47069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47070 if eval "test \"\${$as_ac_var+set}\" = set"; then
47071   echo $ECHO_N "(cached) $ECHO_C" >&6
47072 else
47073   if test x$gcc_no_link = xyes; then
47074   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47076    { (exit 1); exit 1; }; }
47077 fi
47078 cat >conftest.$ac_ext <<_ACEOF
47079 #line $LINENO "configure"
47080 /* confdefs.h.  */
47081 _ACEOF
47082 cat confdefs.h >>conftest.$ac_ext
47083 cat >>conftest.$ac_ext <<_ACEOF
47084 /* end confdefs.h.  */
47085 /* System header to define __stub macros and hopefully few prototypes,
47086     which can conflict with char $ac_func (); below.
47087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47088     <limits.h> exists even on freestanding compilers.  */
47089 #ifdef __STDC__
47090 # include <limits.h>
47091 #else
47092 # include <assert.h>
47093 #endif
47094 /* Override any gcc2 internal prototype to avoid an error.  */
47095 #ifdef __cplusplus
47096 extern "C"
47097 {
47098 #endif
47099 /* We use char because int might match the return type of a gcc2
47100    builtin and then its argument prototype would still apply.  */
47101 char $ac_func ();
47102 /* The GNU C library defines this for functions which it implements
47103     to always fail with ENOSYS.  Some functions are actually named
47104     something starting with __ and the normal name is an alias.  */
47105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47106 choke me
47107 #else
47108 char (*f) () = $ac_func;
47109 #endif
47110 #ifdef __cplusplus
47111 }
47112 #endif
47113
47114 int
47115 main ()
47116 {
47117 return f != $ac_func;
47118   ;
47119   return 0;
47120 }
47121 _ACEOF
47122 rm -f conftest.$ac_objext conftest$ac_exeext
47123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47124   (eval $ac_link) 2>&5
47125   ac_status=$?
47126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47127   (exit $ac_status); } &&
47128          { ac_try='test -s conftest$ac_exeext'
47129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47130   (eval $ac_try) 2>&5
47131   ac_status=$?
47132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47133   (exit $ac_status); }; }; then
47134   eval "$as_ac_var=yes"
47135 else
47136   echo "$as_me: failed program was:" >&5
47137 sed 's/^/| /' conftest.$ac_ext >&5
47138
47139 eval "$as_ac_var=no"
47140 fi
47141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47142 fi
47143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47145 if test `eval echo '${'$as_ac_var'}'` = yes; then
47146   cat >>confdefs.h <<_ACEOF
47147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47148 _ACEOF
47149
47150 else
47151   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
47152 fi
47153 done
47154
47155
47156
47157 for ac_func in __signbit
47158 do
47159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47160 echo "$as_me:$LINENO: checking for $ac_func" >&5
47161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47162 if eval "test \"\${$as_ac_var+set}\" = set"; then
47163   echo $ECHO_N "(cached) $ECHO_C" >&6
47164 else
47165   if test x$gcc_no_link = xyes; then
47166   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47167 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47168    { (exit 1); exit 1; }; }
47169 fi
47170 cat >conftest.$ac_ext <<_ACEOF
47171 #line $LINENO "configure"
47172 /* confdefs.h.  */
47173 _ACEOF
47174 cat confdefs.h >>conftest.$ac_ext
47175 cat >>conftest.$ac_ext <<_ACEOF
47176 /* end confdefs.h.  */
47177 /* System header to define __stub macros and hopefully few prototypes,
47178     which can conflict with char $ac_func (); below.
47179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47180     <limits.h> exists even on freestanding compilers.  */
47181 #ifdef __STDC__
47182 # include <limits.h>
47183 #else
47184 # include <assert.h>
47185 #endif
47186 /* Override any gcc2 internal prototype to avoid an error.  */
47187 #ifdef __cplusplus
47188 extern "C"
47189 {
47190 #endif
47191 /* We use char because int might match the return type of a gcc2
47192    builtin and then its argument prototype would still apply.  */
47193 char $ac_func ();
47194 /* The GNU C library defines this for functions which it implements
47195     to always fail with ENOSYS.  Some functions are actually named
47196     something starting with __ and the normal name is an alias.  */
47197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47198 choke me
47199 #else
47200 char (*f) () = $ac_func;
47201 #endif
47202 #ifdef __cplusplus
47203 }
47204 #endif
47205
47206 int
47207 main ()
47208 {
47209 return f != $ac_func;
47210   ;
47211   return 0;
47212 }
47213 _ACEOF
47214 rm -f conftest.$ac_objext conftest$ac_exeext
47215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47216   (eval $ac_link) 2>&5
47217   ac_status=$?
47218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47219   (exit $ac_status); } &&
47220          { ac_try='test -s conftest$ac_exeext'
47221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47222   (eval $ac_try) 2>&5
47223   ac_status=$?
47224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47225   (exit $ac_status); }; }; then
47226   eval "$as_ac_var=yes"
47227 else
47228   echo "$as_me: failed program was:" >&5
47229 sed 's/^/| /' conftest.$ac_ext >&5
47230
47231 eval "$as_ac_var=no"
47232 fi
47233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47234 fi
47235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47237 if test `eval echo '${'$as_ac_var'}'` = yes; then
47238   cat >>confdefs.h <<_ACEOF
47239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47240 _ACEOF
47241
47242 else
47243   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
47244 fi
47245 done
47246
47247
47248 for ac_func in __signbitf
47249 do
47250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47251 echo "$as_me:$LINENO: checking for $ac_func" >&5
47252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47253 if eval "test \"\${$as_ac_var+set}\" = set"; then
47254   echo $ECHO_N "(cached) $ECHO_C" >&6
47255 else
47256   if test x$gcc_no_link = xyes; then
47257   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47258 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47259    { (exit 1); exit 1; }; }
47260 fi
47261 cat >conftest.$ac_ext <<_ACEOF
47262 #line $LINENO "configure"
47263 /* confdefs.h.  */
47264 _ACEOF
47265 cat confdefs.h >>conftest.$ac_ext
47266 cat >>conftest.$ac_ext <<_ACEOF
47267 /* end confdefs.h.  */
47268 /* System header to define __stub macros and hopefully few prototypes,
47269     which can conflict with char $ac_func (); below.
47270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47271     <limits.h> exists even on freestanding compilers.  */
47272 #ifdef __STDC__
47273 # include <limits.h>
47274 #else
47275 # include <assert.h>
47276 #endif
47277 /* Override any gcc2 internal prototype to avoid an error.  */
47278 #ifdef __cplusplus
47279 extern "C"
47280 {
47281 #endif
47282 /* We use char because int might match the return type of a gcc2
47283    builtin and then its argument prototype would still apply.  */
47284 char $ac_func ();
47285 /* The GNU C library defines this for functions which it implements
47286     to always fail with ENOSYS.  Some functions are actually named
47287     something starting with __ and the normal name is an alias.  */
47288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47289 choke me
47290 #else
47291 char (*f) () = $ac_func;
47292 #endif
47293 #ifdef __cplusplus
47294 }
47295 #endif
47296
47297 int
47298 main ()
47299 {
47300 return f != $ac_func;
47301   ;
47302   return 0;
47303 }
47304 _ACEOF
47305 rm -f conftest.$ac_objext conftest$ac_exeext
47306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47307   (eval $ac_link) 2>&5
47308   ac_status=$?
47309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47310   (exit $ac_status); } &&
47311          { ac_try='test -s conftest$ac_exeext'
47312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47313   (eval $ac_try) 2>&5
47314   ac_status=$?
47315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47316   (exit $ac_status); }; }; then
47317   eval "$as_ac_var=yes"
47318 else
47319   echo "$as_me: failed program was:" >&5
47320 sed 's/^/| /' conftest.$ac_ext >&5
47321
47322 eval "$as_ac_var=no"
47323 fi
47324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47325 fi
47326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47328 if test `eval echo '${'$as_ac_var'}'` = yes; then
47329   cat >>confdefs.h <<_ACEOF
47330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47331 _ACEOF
47332
47333 else
47334   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
47335 fi
47336 done
47337
47338
47339           if test x$ac_cv_func_copysignl = x"yes"; then
47340
47341 for ac_func in __signbitl
47342 do
47343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47344 echo "$as_me:$LINENO: checking for $ac_func" >&5
47345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47346 if eval "test \"\${$as_ac_var+set}\" = set"; then
47347   echo $ECHO_N "(cached) $ECHO_C" >&6
47348 else
47349   if test x$gcc_no_link = xyes; then
47350   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47351 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47352    { (exit 1); exit 1; }; }
47353 fi
47354 cat >conftest.$ac_ext <<_ACEOF
47355 #line $LINENO "configure"
47356 /* confdefs.h.  */
47357 _ACEOF
47358 cat confdefs.h >>conftest.$ac_ext
47359 cat >>conftest.$ac_ext <<_ACEOF
47360 /* end confdefs.h.  */
47361 /* System header to define __stub macros and hopefully few prototypes,
47362     which can conflict with char $ac_func (); below.
47363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47364     <limits.h> exists even on freestanding compilers.  */
47365 #ifdef __STDC__
47366 # include <limits.h>
47367 #else
47368 # include <assert.h>
47369 #endif
47370 /* Override any gcc2 internal prototype to avoid an error.  */
47371 #ifdef __cplusplus
47372 extern "C"
47373 {
47374 #endif
47375 /* We use char because int might match the return type of a gcc2
47376    builtin and then its argument prototype would still apply.  */
47377 char $ac_func ();
47378 /* The GNU C library defines this for functions which it implements
47379     to always fail with ENOSYS.  Some functions are actually named
47380     something starting with __ and the normal name is an alias.  */
47381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47382 choke me
47383 #else
47384 char (*f) () = $ac_func;
47385 #endif
47386 #ifdef __cplusplus
47387 }
47388 #endif
47389
47390 int
47391 main ()
47392 {
47393 return f != $ac_func;
47394   ;
47395   return 0;
47396 }
47397 _ACEOF
47398 rm -f conftest.$ac_objext conftest$ac_exeext
47399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47400   (eval $ac_link) 2>&5
47401   ac_status=$?
47402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47403   (exit $ac_status); } &&
47404          { ac_try='test -s conftest$ac_exeext'
47405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47406   (eval $ac_try) 2>&5
47407   ac_status=$?
47408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47409   (exit $ac_status); }; }; then
47410   eval "$as_ac_var=yes"
47411 else
47412   echo "$as_me: failed program was:" >&5
47413 sed 's/^/| /' conftest.$ac_ext >&5
47414
47415 eval "$as_ac_var=no"
47416 fi
47417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47418 fi
47419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47421 if test `eval echo '${'$as_ac_var'}'` = yes; then
47422   cat >>confdefs.h <<_ACEOF
47423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47424 _ACEOF
47425
47426 else
47427   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
47428 fi
47429 done
47430
47431   fi
47432
47433   # XXX Review this.  Nothing uses it.
47434   if test -n "$LIBMATHOBJS"; then
47435     need_libmath=yes
47436   fi
47437
47438
47439
47440   # Test wchar.h for mbstate_t, which is needed for char_traits and
47441   # others even if wchar_t support is not on.
47442   echo "$as_me:$LINENO: checking for mbstate_t" >&5
47443 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
47444   cat >conftest.$ac_ext <<_ACEOF
47445 #line $LINENO "configure"
47446 /* confdefs.h.  */
47447 _ACEOF
47448 cat confdefs.h >>conftest.$ac_ext
47449 cat >>conftest.$ac_ext <<_ACEOF
47450 /* end confdefs.h.  */
47451 #include <wchar.h>
47452 int
47453 main ()
47454 {
47455 mbstate_t teststate;
47456   ;
47457   return 0;
47458 }
47459 _ACEOF
47460 rm -f conftest.$ac_objext
47461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47462   (eval $ac_compile) 2>&5
47463   ac_status=$?
47464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47465   (exit $ac_status); } &&
47466          { ac_try='test -s conftest.$ac_objext'
47467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47468   (eval $ac_try) 2>&5
47469   ac_status=$?
47470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47471   (exit $ac_status); }; }; then
47472   have_mbstate_t=yes
47473 else
47474   echo "$as_me: failed program was:" >&5
47475 sed 's/^/| /' conftest.$ac_ext >&5
47476
47477 have_mbstate_t=no
47478 fi
47479 rm -f conftest.$ac_objext conftest.$ac_ext
47480   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
47481 echo "${ECHO_T}$have_mbstate_t" >&6
47482   if test x"$have_mbstate_t" = xyes; then
47483     cat >>confdefs.h <<\_ACEOF
47484 #define HAVE_MBSTATE_T 1
47485 _ACEOF
47486
47487   fi
47488
47489   # Sanity check for existence of ISO C99 headers for extended encoding.
47490
47491 for ac_header in wchar.h
47492 do
47493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47495   echo "$as_me:$LINENO: checking for $ac_header" >&5
47496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47498   echo $ECHO_N "(cached) $ECHO_C" >&6
47499 fi
47500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47502 else
47503   # Is the header compilable?
47504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47506 cat >conftest.$ac_ext <<_ACEOF
47507 #line $LINENO "configure"
47508 /* confdefs.h.  */
47509 _ACEOF
47510 cat confdefs.h >>conftest.$ac_ext
47511 cat >>conftest.$ac_ext <<_ACEOF
47512 /* end confdefs.h.  */
47513 $ac_includes_default
47514 #include <$ac_header>
47515 _ACEOF
47516 rm -f conftest.$ac_objext
47517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47518   (eval $ac_compile) 2>&5
47519   ac_status=$?
47520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47521   (exit $ac_status); } &&
47522          { ac_try='test -s conftest.$ac_objext'
47523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47524   (eval $ac_try) 2>&5
47525   ac_status=$?
47526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47527   (exit $ac_status); }; }; then
47528   ac_header_compiler=yes
47529 else
47530   echo "$as_me: failed program was:" >&5
47531 sed 's/^/| /' conftest.$ac_ext >&5
47532
47533 ac_header_compiler=no
47534 fi
47535 rm -f conftest.$ac_objext conftest.$ac_ext
47536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47537 echo "${ECHO_T}$ac_header_compiler" >&6
47538
47539 # Is the header present?
47540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47542 cat >conftest.$ac_ext <<_ACEOF
47543 #line $LINENO "configure"
47544 /* confdefs.h.  */
47545 _ACEOF
47546 cat confdefs.h >>conftest.$ac_ext
47547 cat >>conftest.$ac_ext <<_ACEOF
47548 /* end confdefs.h.  */
47549 #include <$ac_header>
47550 _ACEOF
47551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47553   ac_status=$?
47554   grep -v '^ *+' conftest.er1 >conftest.err
47555   rm -f conftest.er1
47556   cat conftest.err >&5
47557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47558   (exit $ac_status); } >/dev/null; then
47559   if test -s conftest.err; then
47560     ac_cpp_err=$ac_c_preproc_warn_flag
47561   else
47562     ac_cpp_err=
47563   fi
47564 else
47565   ac_cpp_err=yes
47566 fi
47567 if test -z "$ac_cpp_err"; then
47568   ac_header_preproc=yes
47569 else
47570   echo "$as_me: failed program was:" >&5
47571 sed 's/^/| /' conftest.$ac_ext >&5
47572
47573   ac_header_preproc=no
47574 fi
47575 rm -f conftest.err conftest.$ac_ext
47576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47577 echo "${ECHO_T}$ac_header_preproc" >&6
47578
47579 # So?  What about this header?
47580 case $ac_header_compiler:$ac_header_preproc in
47581   yes:no )
47582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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   no:yes )
47596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47598     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47602     (
47603       cat <<\_ASBOX
47604 ## ------------------------------------ ##
47605 ## Report this to bug-autoconf@gnu.org. ##
47606 ## ------------------------------------ ##
47607 _ASBOX
47608     ) |
47609       sed "s/^/$as_me: WARNING:     /" >&2
47610     ;;
47611 esac
47612 echo "$as_me:$LINENO: checking for $ac_header" >&5
47613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47615   echo $ECHO_N "(cached) $ECHO_C" >&6
47616 else
47617   eval "$as_ac_Header=$ac_header_preproc"
47618 fi
47619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47621
47622 fi
47623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47624   cat >>confdefs.h <<_ACEOF
47625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47626 _ACEOF
47627  ac_has_wchar_h=yes
47628 else
47629   ac_has_wchar_h=no
47630 fi
47631
47632 done
47633
47634
47635 for ac_header in wctype.h
47636 do
47637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47639   echo "$as_me:$LINENO: checking for $ac_header" >&5
47640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47642   echo $ECHO_N "(cached) $ECHO_C" >&6
47643 fi
47644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47646 else
47647   # Is the header compilable?
47648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47650 cat >conftest.$ac_ext <<_ACEOF
47651 #line $LINENO "configure"
47652 /* confdefs.h.  */
47653 _ACEOF
47654 cat confdefs.h >>conftest.$ac_ext
47655 cat >>conftest.$ac_ext <<_ACEOF
47656 /* end confdefs.h.  */
47657 $ac_includes_default
47658 #include <$ac_header>
47659 _ACEOF
47660 rm -f conftest.$ac_objext
47661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47662   (eval $ac_compile) 2>&5
47663   ac_status=$?
47664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47665   (exit $ac_status); } &&
47666          { ac_try='test -s conftest.$ac_objext'
47667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47668   (eval $ac_try) 2>&5
47669   ac_status=$?
47670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47671   (exit $ac_status); }; }; then
47672   ac_header_compiler=yes
47673 else
47674   echo "$as_me: failed program was:" >&5
47675 sed 's/^/| /' conftest.$ac_ext >&5
47676
47677 ac_header_compiler=no
47678 fi
47679 rm -f conftest.$ac_objext conftest.$ac_ext
47680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47681 echo "${ECHO_T}$ac_header_compiler" >&6
47682
47683 # Is the header present?
47684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47686 cat >conftest.$ac_ext <<_ACEOF
47687 #line $LINENO "configure"
47688 /* confdefs.h.  */
47689 _ACEOF
47690 cat confdefs.h >>conftest.$ac_ext
47691 cat >>conftest.$ac_ext <<_ACEOF
47692 /* end confdefs.h.  */
47693 #include <$ac_header>
47694 _ACEOF
47695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47697   ac_status=$?
47698   grep -v '^ *+' conftest.er1 >conftest.err
47699   rm -f conftest.er1
47700   cat conftest.err >&5
47701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47702   (exit $ac_status); } >/dev/null; then
47703   if test -s conftest.err; then
47704     ac_cpp_err=$ac_c_preproc_warn_flag
47705   else
47706     ac_cpp_err=
47707   fi
47708 else
47709   ac_cpp_err=yes
47710 fi
47711 if test -z "$ac_cpp_err"; then
47712   ac_header_preproc=yes
47713 else
47714   echo "$as_me: failed program was:" >&5
47715 sed 's/^/| /' conftest.$ac_ext >&5
47716
47717   ac_header_preproc=no
47718 fi
47719 rm -f conftest.err conftest.$ac_ext
47720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47721 echo "${ECHO_T}$ac_header_preproc" >&6
47722
47723 # So?  What about this header?
47724 case $ac_header_compiler:$ac_header_preproc in
47725   yes:no )
47726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47730     (
47731       cat <<\_ASBOX
47732 ## ------------------------------------ ##
47733 ## Report this to bug-autoconf@gnu.org. ##
47734 ## ------------------------------------ ##
47735 _ASBOX
47736     ) |
47737       sed "s/^/$as_me: WARNING:     /" >&2
47738     ;;
47739   no:yes )
47740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47742     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47746     (
47747       cat <<\_ASBOX
47748 ## ------------------------------------ ##
47749 ## Report this to bug-autoconf@gnu.org. ##
47750 ## ------------------------------------ ##
47751 _ASBOX
47752     ) |
47753       sed "s/^/$as_me: WARNING:     /" >&2
47754     ;;
47755 esac
47756 echo "$as_me:$LINENO: checking for $ac_header" >&5
47757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47759   echo $ECHO_N "(cached) $ECHO_C" >&6
47760 else
47761   eval "$as_ac_Header=$ac_header_preproc"
47762 fi
47763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47765
47766 fi
47767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47768   cat >>confdefs.h <<_ACEOF
47769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47770 _ACEOF
47771  ac_has_wctype_h=yes
47772 else
47773   ac_has_wctype_h=no
47774 fi
47775
47776 done
47777
47778
47779   # Only continue checking if the ISO C99 headers exist and support is on.
47780   if test x"$ac_has_wchar_h" = xyes &&
47781      test x"$ac_has_wctype_h" = xyes &&
47782      test x"$enable_c_mbchar" != xno; then
47783
47784     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
47785     # numeric_limits can instantiate type_traits<wchar_t>
47786     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
47787 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
47788     cat >conftest.$ac_ext <<_ACEOF
47789 #line $LINENO "configure"
47790 /* confdefs.h.  */
47791 _ACEOF
47792 cat confdefs.h >>conftest.$ac_ext
47793 cat >>conftest.$ac_ext <<_ACEOF
47794 /* end confdefs.h.  */
47795 #include <wchar.h>
47796 int
47797 main ()
47798 {
47799 int i = WCHAR_MIN; int j = WCHAR_MAX;
47800   ;
47801   return 0;
47802 }
47803 _ACEOF
47804 rm -f conftest.$ac_objext
47805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47806   (eval $ac_compile) 2>&5
47807   ac_status=$?
47808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47809   (exit $ac_status); } &&
47810          { ac_try='test -s conftest.$ac_objext'
47811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47812   (eval $ac_try) 2>&5
47813   ac_status=$?
47814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47815   (exit $ac_status); }; }; then
47816   has_wchar_minmax=yes
47817 else
47818   echo "$as_me: failed program was:" >&5
47819 sed 's/^/| /' conftest.$ac_ext >&5
47820
47821 has_wchar_minmax=no
47822 fi
47823 rm -f conftest.$ac_objext conftest.$ac_ext
47824     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
47825 echo "${ECHO_T}$has_wchar_minmax" >&6
47826
47827     # Test wchar.h for WEOF, which is what we use to determine whether
47828     # to specialize for char_traits<wchar_t> or not.
47829     echo "$as_me:$LINENO: checking for WEOF" >&5
47830 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
47831     cat >conftest.$ac_ext <<_ACEOF
47832 #line $LINENO "configure"
47833 /* confdefs.h.  */
47834 _ACEOF
47835 cat confdefs.h >>conftest.$ac_ext
47836 cat >>conftest.$ac_ext <<_ACEOF
47837 /* end confdefs.h.  */
47838
47839       #include <wchar.h>
47840       #include <stddef.h>
47841 int
47842 main ()
47843 {
47844 wint_t i = WEOF;
47845   ;
47846   return 0;
47847 }
47848 _ACEOF
47849 rm -f conftest.$ac_objext
47850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47851   (eval $ac_compile) 2>&5
47852   ac_status=$?
47853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47854   (exit $ac_status); } &&
47855          { ac_try='test -s conftest.$ac_objext'
47856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47857   (eval $ac_try) 2>&5
47858   ac_status=$?
47859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47860   (exit $ac_status); }; }; then
47861   has_weof=yes
47862 else
47863   echo "$as_me: failed program was:" >&5
47864 sed 's/^/| /' conftest.$ac_ext >&5
47865
47866 has_weof=no
47867 fi
47868 rm -f conftest.$ac_objext conftest.$ac_ext
47869     echo "$as_me:$LINENO: result: $has_weof" >&5
47870 echo "${ECHO_T}$has_weof" >&6
47871
47872     # Tests for wide character functions used in char_traits<wchar_t>.
47873     ac_wfuncs=yes
47874
47875
47876
47877
47878
47879
47880 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
47881 do
47882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47883 echo "$as_me:$LINENO: checking for $ac_func" >&5
47884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47885 if eval "test \"\${$as_ac_var+set}\" = set"; then
47886   echo $ECHO_N "(cached) $ECHO_C" >&6
47887 else
47888   if test x$gcc_no_link = xyes; then
47889   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47891    { (exit 1); exit 1; }; }
47892 fi
47893 cat >conftest.$ac_ext <<_ACEOF
47894 #line $LINENO "configure"
47895 /* confdefs.h.  */
47896 _ACEOF
47897 cat confdefs.h >>conftest.$ac_ext
47898 cat >>conftest.$ac_ext <<_ACEOF
47899 /* end confdefs.h.  */
47900 /* System header to define __stub macros and hopefully few prototypes,
47901     which can conflict with char $ac_func (); below.
47902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47903     <limits.h> exists even on freestanding compilers.  */
47904 #ifdef __STDC__
47905 # include <limits.h>
47906 #else
47907 # include <assert.h>
47908 #endif
47909 /* Override any gcc2 internal prototype to avoid an error.  */
47910 #ifdef __cplusplus
47911 extern "C"
47912 {
47913 #endif
47914 /* We use char because int might match the return type of a gcc2
47915    builtin and then its argument prototype would still apply.  */
47916 char $ac_func ();
47917 /* The GNU C library defines this for functions which it implements
47918     to always fail with ENOSYS.  Some functions are actually named
47919     something starting with __ and the normal name is an alias.  */
47920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47921 choke me
47922 #else
47923 char (*f) () = $ac_func;
47924 #endif
47925 #ifdef __cplusplus
47926 }
47927 #endif
47928
47929 int
47930 main ()
47931 {
47932 return f != $ac_func;
47933   ;
47934   return 0;
47935 }
47936 _ACEOF
47937 rm -f conftest.$ac_objext conftest$ac_exeext
47938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47939   (eval $ac_link) 2>&5
47940   ac_status=$?
47941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47942   (exit $ac_status); } &&
47943          { ac_try='test -s conftest$ac_exeext'
47944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47945   (eval $ac_try) 2>&5
47946   ac_status=$?
47947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47948   (exit $ac_status); }; }; then
47949   eval "$as_ac_var=yes"
47950 else
47951   echo "$as_me: failed program was:" >&5
47952 sed 's/^/| /' conftest.$ac_ext >&5
47953
47954 eval "$as_ac_var=no"
47955 fi
47956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47957 fi
47958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47960 if test `eval echo '${'$as_ac_var'}'` = yes; then
47961   cat >>confdefs.h <<_ACEOF
47962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47963 _ACEOF
47964
47965 else
47966   ac_wfuncs=no
47967 fi
47968 done
47969
47970
47971     # Checks for names injected into std:: by the c_std headers.
47972
47973
47974
47975
47976
47977
47978
47979
47980
47981
47982
47983
47984
47985
47986
47987
47988
47989
47990
47991
47992
47993
47994
47995
47996
47997
47998
47999
48000
48001
48002
48003
48004
48005
48006
48007
48008
48009
48010
48011
48012
48013
48014
48015
48016
48017
48018 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
48019     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
48020     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
48021     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
48022     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
48023     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
48024 do
48025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48026 echo "$as_me:$LINENO: checking for $ac_func" >&5
48027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48028 if eval "test \"\${$as_ac_var+set}\" = set"; then
48029   echo $ECHO_N "(cached) $ECHO_C" >&6
48030 else
48031   if test x$gcc_no_link = xyes; then
48032   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48034    { (exit 1); exit 1; }; }
48035 fi
48036 cat >conftest.$ac_ext <<_ACEOF
48037 #line $LINENO "configure"
48038 /* confdefs.h.  */
48039 _ACEOF
48040 cat confdefs.h >>conftest.$ac_ext
48041 cat >>conftest.$ac_ext <<_ACEOF
48042 /* end confdefs.h.  */
48043 /* System header to define __stub macros and hopefully few prototypes,
48044     which can conflict with char $ac_func (); below.
48045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48046     <limits.h> exists even on freestanding compilers.  */
48047 #ifdef __STDC__
48048 # include <limits.h>
48049 #else
48050 # include <assert.h>
48051 #endif
48052 /* Override any gcc2 internal prototype to avoid an error.  */
48053 #ifdef __cplusplus
48054 extern "C"
48055 {
48056 #endif
48057 /* We use char because int might match the return type of a gcc2
48058    builtin and then its argument prototype would still apply.  */
48059 char $ac_func ();
48060 /* The GNU C library defines this for functions which it implements
48061     to always fail with ENOSYS.  Some functions are actually named
48062     something starting with __ and the normal name is an alias.  */
48063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48064 choke me
48065 #else
48066 char (*f) () = $ac_func;
48067 #endif
48068 #ifdef __cplusplus
48069 }
48070 #endif
48071
48072 int
48073 main ()
48074 {
48075 return f != $ac_func;
48076   ;
48077   return 0;
48078 }
48079 _ACEOF
48080 rm -f conftest.$ac_objext conftest$ac_exeext
48081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48082   (eval $ac_link) 2>&5
48083   ac_status=$?
48084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48085   (exit $ac_status); } &&
48086          { ac_try='test -s conftest$ac_exeext'
48087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48088   (eval $ac_try) 2>&5
48089   ac_status=$?
48090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48091   (exit $ac_status); }; }; then
48092   eval "$as_ac_var=yes"
48093 else
48094   echo "$as_me: failed program was:" >&5
48095 sed 's/^/| /' conftest.$ac_ext >&5
48096
48097 eval "$as_ac_var=no"
48098 fi
48099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48100 fi
48101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48103 if test `eval echo '${'$as_ac_var'}'` = yes; then
48104   cat >>confdefs.h <<_ACEOF
48105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48106 _ACEOF
48107
48108 else
48109   ac_wfuncs=no
48110 fi
48111 done
48112
48113
48114     # Checks for wide character functions that are not required
48115     # for basic wchar_t support.  Don't disable support if they are missing.
48116     # Injection of these is wrapped with guard macros.
48117
48118
48119
48120
48121
48122 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
48123 do
48124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48125 echo "$as_me:$LINENO: checking for $ac_func" >&5
48126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48127 if eval "test \"\${$as_ac_var+set}\" = set"; then
48128   echo $ECHO_N "(cached) $ECHO_C" >&6
48129 else
48130   if test x$gcc_no_link = xyes; then
48131   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48133    { (exit 1); exit 1; }; }
48134 fi
48135 cat >conftest.$ac_ext <<_ACEOF
48136 #line $LINENO "configure"
48137 /* confdefs.h.  */
48138 _ACEOF
48139 cat confdefs.h >>conftest.$ac_ext
48140 cat >>conftest.$ac_ext <<_ACEOF
48141 /* end confdefs.h.  */
48142 /* System header to define __stub macros and hopefully few prototypes,
48143     which can conflict with char $ac_func (); below.
48144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48145     <limits.h> exists even on freestanding compilers.  */
48146 #ifdef __STDC__
48147 # include <limits.h>
48148 #else
48149 # include <assert.h>
48150 #endif
48151 /* Override any gcc2 internal prototype to avoid an error.  */
48152 #ifdef __cplusplus
48153 extern "C"
48154 {
48155 #endif
48156 /* We use char because int might match the return type of a gcc2
48157    builtin and then its argument prototype would still apply.  */
48158 char $ac_func ();
48159 /* The GNU C library defines this for functions which it implements
48160     to always fail with ENOSYS.  Some functions are actually named
48161     something starting with __ and the normal name is an alias.  */
48162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48163 choke me
48164 #else
48165 char (*f) () = $ac_func;
48166 #endif
48167 #ifdef __cplusplus
48168 }
48169 #endif
48170
48171 int
48172 main ()
48173 {
48174 return f != $ac_func;
48175   ;
48176   return 0;
48177 }
48178 _ACEOF
48179 rm -f conftest.$ac_objext conftest$ac_exeext
48180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48181   (eval $ac_link) 2>&5
48182   ac_status=$?
48183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48184   (exit $ac_status); } &&
48185          { ac_try='test -s conftest$ac_exeext'
48186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48187   (eval $ac_try) 2>&5
48188   ac_status=$?
48189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48190   (exit $ac_status); }; }; then
48191   eval "$as_ac_var=yes"
48192 else
48193   echo "$as_me: failed program was:" >&5
48194 sed 's/^/| /' conftest.$ac_ext >&5
48195
48196 eval "$as_ac_var=no"
48197 fi
48198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48199 fi
48200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48202 if test `eval echo '${'$as_ac_var'}'` = yes; then
48203   cat >>confdefs.h <<_ACEOF
48204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48205 _ACEOF
48206
48207 fi
48208 done
48209
48210
48211     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
48212 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
48213     if test x"$has_weof" = xyes &&
48214        test x"$has_wchar_minmax" = xyes &&
48215        test x"$ac_wfuncs" = xyes;
48216     then
48217       ac_isoC99_wchar_t=yes
48218     else
48219       ac_isoC99_wchar_t=no
48220     fi
48221     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
48222 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
48223
48224     # Use iconv for wchar_t to char conversions. As such, check for
48225     # X/Open Portability Guide, version 2 features (XPG2).
48226     if test "${ac_cv_header_iconv_h+set}" = set; then
48227   echo "$as_me:$LINENO: checking for iconv.h" >&5
48228 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48229 if test "${ac_cv_header_iconv_h+set}" = set; then
48230   echo $ECHO_N "(cached) $ECHO_C" >&6
48231 fi
48232 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48233 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48234 else
48235   # Is the header compilable?
48236 echo "$as_me:$LINENO: checking iconv.h usability" >&5
48237 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
48238 cat >conftest.$ac_ext <<_ACEOF
48239 #line $LINENO "configure"
48240 /* confdefs.h.  */
48241 _ACEOF
48242 cat confdefs.h >>conftest.$ac_ext
48243 cat >>conftest.$ac_ext <<_ACEOF
48244 /* end confdefs.h.  */
48245 $ac_includes_default
48246 #include <iconv.h>
48247 _ACEOF
48248 rm -f conftest.$ac_objext
48249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48250   (eval $ac_compile) 2>&5
48251   ac_status=$?
48252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48253   (exit $ac_status); } &&
48254          { ac_try='test -s conftest.$ac_objext'
48255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48256   (eval $ac_try) 2>&5
48257   ac_status=$?
48258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48259   (exit $ac_status); }; }; then
48260   ac_header_compiler=yes
48261 else
48262   echo "$as_me: failed program was:" >&5
48263 sed 's/^/| /' conftest.$ac_ext >&5
48264
48265 ac_header_compiler=no
48266 fi
48267 rm -f conftest.$ac_objext conftest.$ac_ext
48268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48269 echo "${ECHO_T}$ac_header_compiler" >&6
48270
48271 # Is the header present?
48272 echo "$as_me:$LINENO: checking iconv.h presence" >&5
48273 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
48274 cat >conftest.$ac_ext <<_ACEOF
48275 #line $LINENO "configure"
48276 /* confdefs.h.  */
48277 _ACEOF
48278 cat confdefs.h >>conftest.$ac_ext
48279 cat >>conftest.$ac_ext <<_ACEOF
48280 /* end confdefs.h.  */
48281 #include <iconv.h>
48282 _ACEOF
48283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48285   ac_status=$?
48286   grep -v '^ *+' conftest.er1 >conftest.err
48287   rm -f conftest.er1
48288   cat conftest.err >&5
48289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48290   (exit $ac_status); } >/dev/null; then
48291   if test -s conftest.err; then
48292     ac_cpp_err=$ac_c_preproc_warn_flag
48293   else
48294     ac_cpp_err=
48295   fi
48296 else
48297   ac_cpp_err=yes
48298 fi
48299 if test -z "$ac_cpp_err"; then
48300   ac_header_preproc=yes
48301 else
48302   echo "$as_me: failed program was:" >&5
48303 sed 's/^/| /' conftest.$ac_ext >&5
48304
48305   ac_header_preproc=no
48306 fi
48307 rm -f conftest.err conftest.$ac_ext
48308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48309 echo "${ECHO_T}$ac_header_preproc" >&6
48310
48311 # So?  What about this header?
48312 case $ac_header_compiler:$ac_header_preproc in
48313   yes:no )
48314     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
48315 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48316     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48317 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48318     (
48319       cat <<\_ASBOX
48320 ## ------------------------------------ ##
48321 ## Report this to bug-autoconf@gnu.org. ##
48322 ## ------------------------------------ ##
48323 _ASBOX
48324     ) |
48325       sed "s/^/$as_me: WARNING:     /" >&2
48326     ;;
48327   no:yes )
48328     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
48329 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
48330     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
48331 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
48332     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48333 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48334     (
48335       cat <<\_ASBOX
48336 ## ------------------------------------ ##
48337 ## Report this to bug-autoconf@gnu.org. ##
48338 ## ------------------------------------ ##
48339 _ASBOX
48340     ) |
48341       sed "s/^/$as_me: WARNING:     /" >&2
48342     ;;
48343 esac
48344 echo "$as_me:$LINENO: checking for iconv.h" >&5
48345 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48346 if test "${ac_cv_header_iconv_h+set}" = set; then
48347   echo $ECHO_N "(cached) $ECHO_C" >&6
48348 else
48349   ac_cv_header_iconv_h=$ac_header_preproc
48350 fi
48351 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48352 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48353
48354 fi
48355 if test $ac_cv_header_iconv_h = yes; then
48356   ac_has_iconv_h=yes
48357 else
48358   ac_has_iconv_h=no
48359 fi
48360
48361
48362     if test "${ac_cv_header_langinfo_h+set}" = set; then
48363   echo "$as_me:$LINENO: checking for langinfo.h" >&5
48364 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48365 if test "${ac_cv_header_langinfo_h+set}" = set; then
48366   echo $ECHO_N "(cached) $ECHO_C" >&6
48367 fi
48368 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48369 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48370 else
48371   # Is the header compilable?
48372 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
48373 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
48374 cat >conftest.$ac_ext <<_ACEOF
48375 #line $LINENO "configure"
48376 /* confdefs.h.  */
48377 _ACEOF
48378 cat confdefs.h >>conftest.$ac_ext
48379 cat >>conftest.$ac_ext <<_ACEOF
48380 /* end confdefs.h.  */
48381 $ac_includes_default
48382 #include <langinfo.h>
48383 _ACEOF
48384 rm -f conftest.$ac_objext
48385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48386   (eval $ac_compile) 2>&5
48387   ac_status=$?
48388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48389   (exit $ac_status); } &&
48390          { ac_try='test -s conftest.$ac_objext'
48391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48392   (eval $ac_try) 2>&5
48393   ac_status=$?
48394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48395   (exit $ac_status); }; }; then
48396   ac_header_compiler=yes
48397 else
48398   echo "$as_me: failed program was:" >&5
48399 sed 's/^/| /' conftest.$ac_ext >&5
48400
48401 ac_header_compiler=no
48402 fi
48403 rm -f conftest.$ac_objext conftest.$ac_ext
48404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48405 echo "${ECHO_T}$ac_header_compiler" >&6
48406
48407 # Is the header present?
48408 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
48409 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
48410 cat >conftest.$ac_ext <<_ACEOF
48411 #line $LINENO "configure"
48412 /* confdefs.h.  */
48413 _ACEOF
48414 cat confdefs.h >>conftest.$ac_ext
48415 cat >>conftest.$ac_ext <<_ACEOF
48416 /* end confdefs.h.  */
48417 #include <langinfo.h>
48418 _ACEOF
48419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48421   ac_status=$?
48422   grep -v '^ *+' conftest.er1 >conftest.err
48423   rm -f conftest.er1
48424   cat conftest.err >&5
48425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48426   (exit $ac_status); } >/dev/null; then
48427   if test -s conftest.err; then
48428     ac_cpp_err=$ac_c_preproc_warn_flag
48429   else
48430     ac_cpp_err=
48431   fi
48432 else
48433   ac_cpp_err=yes
48434 fi
48435 if test -z "$ac_cpp_err"; then
48436   ac_header_preproc=yes
48437 else
48438   echo "$as_me: failed program was:" >&5
48439 sed 's/^/| /' conftest.$ac_ext >&5
48440
48441   ac_header_preproc=no
48442 fi
48443 rm -f conftest.err conftest.$ac_ext
48444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48445 echo "${ECHO_T}$ac_header_preproc" >&6
48446
48447 # So?  What about this header?
48448 case $ac_header_compiler:$ac_header_preproc in
48449   yes:no )
48450     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
48451 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48452     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48453 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48454     (
48455       cat <<\_ASBOX
48456 ## ------------------------------------ ##
48457 ## Report this to bug-autoconf@gnu.org. ##
48458 ## ------------------------------------ ##
48459 _ASBOX
48460     ) |
48461       sed "s/^/$as_me: WARNING:     /" >&2
48462     ;;
48463   no:yes )
48464     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
48465 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
48466     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
48467 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
48468     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48469 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48470     (
48471       cat <<\_ASBOX
48472 ## ------------------------------------ ##
48473 ## Report this to bug-autoconf@gnu.org. ##
48474 ## ------------------------------------ ##
48475 _ASBOX
48476     ) |
48477       sed "s/^/$as_me: WARNING:     /" >&2
48478     ;;
48479 esac
48480 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48481 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48482 if test "${ac_cv_header_langinfo_h+set}" = set; then
48483   echo $ECHO_N "(cached) $ECHO_C" >&6
48484 else
48485   ac_cv_header_langinfo_h=$ac_header_preproc
48486 fi
48487 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48488 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48489
48490 fi
48491 if test $ac_cv_header_langinfo_h = yes; then
48492   ac_has_langinfo_h=yes
48493 else
48494   ac_has_langinfo_h=no
48495 fi
48496
48497
48498
48499     # Check for existence of libiconv.a providing XPG2 wchar_t support.
48500     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
48501 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
48502 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
48503   echo $ECHO_N "(cached) $ECHO_C" >&6
48504 else
48505   ac_check_lib_save_LIBS=$LIBS
48506 LIBS="-liconv  $LIBS"
48507 if test x$gcc_no_link = xyes; then
48508   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48510    { (exit 1); exit 1; }; }
48511 fi
48512 cat >conftest.$ac_ext <<_ACEOF
48513 #line $LINENO "configure"
48514 /* confdefs.h.  */
48515 _ACEOF
48516 cat confdefs.h >>conftest.$ac_ext
48517 cat >>conftest.$ac_ext <<_ACEOF
48518 /* end confdefs.h.  */
48519
48520 /* Override any gcc2 internal prototype to avoid an error.  */
48521 #ifdef __cplusplus
48522 extern "C"
48523 #endif
48524 /* We use char because int might match the return type of a gcc2
48525    builtin and then its argument prototype would still apply.  */
48526 char iconv ();
48527 int
48528 main ()
48529 {
48530 iconv ();
48531   ;
48532   return 0;
48533 }
48534 _ACEOF
48535 rm -f conftest.$ac_objext conftest$ac_exeext
48536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48537   (eval $ac_link) 2>&5
48538   ac_status=$?
48539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48540   (exit $ac_status); } &&
48541          { ac_try='test -s conftest$ac_exeext'
48542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48543   (eval $ac_try) 2>&5
48544   ac_status=$?
48545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48546   (exit $ac_status); }; }; then
48547   ac_cv_lib_iconv_iconv=yes
48548 else
48549   echo "$as_me: failed program was:" >&5
48550 sed 's/^/| /' conftest.$ac_ext >&5
48551
48552 ac_cv_lib_iconv_iconv=no
48553 fi
48554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48555 LIBS=$ac_check_lib_save_LIBS
48556 fi
48557 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
48558 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
48559 if test $ac_cv_lib_iconv_iconv = yes; then
48560   libiconv="-liconv"
48561 fi
48562
48563     ac_save_LIBS="$LIBS"
48564     LIBS="$LIBS $libiconv"
48565
48566
48567
48568
48569
48570 for ac_func in iconv_open iconv_close iconv nl_langinfo
48571 do
48572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48573 echo "$as_me:$LINENO: checking for $ac_func" >&5
48574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48575 if eval "test \"\${$as_ac_var+set}\" = set"; then
48576   echo $ECHO_N "(cached) $ECHO_C" >&6
48577 else
48578   if test x$gcc_no_link = xyes; then
48579   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48580 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48581    { (exit 1); exit 1; }; }
48582 fi
48583 cat >conftest.$ac_ext <<_ACEOF
48584 #line $LINENO "configure"
48585 /* confdefs.h.  */
48586 _ACEOF
48587 cat confdefs.h >>conftest.$ac_ext
48588 cat >>conftest.$ac_ext <<_ACEOF
48589 /* end confdefs.h.  */
48590 /* System header to define __stub macros and hopefully few prototypes,
48591     which can conflict with char $ac_func (); below.
48592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48593     <limits.h> exists even on freestanding compilers.  */
48594 #ifdef __STDC__
48595 # include <limits.h>
48596 #else
48597 # include <assert.h>
48598 #endif
48599 /* Override any gcc2 internal prototype to avoid an error.  */
48600 #ifdef __cplusplus
48601 extern "C"
48602 {
48603 #endif
48604 /* We use char because int might match the return type of a gcc2
48605    builtin and then its argument prototype would still apply.  */
48606 char $ac_func ();
48607 /* The GNU C library defines this for functions which it implements
48608     to always fail with ENOSYS.  Some functions are actually named
48609     something starting with __ and the normal name is an alias.  */
48610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48611 choke me
48612 #else
48613 char (*f) () = $ac_func;
48614 #endif
48615 #ifdef __cplusplus
48616 }
48617 #endif
48618
48619 int
48620 main ()
48621 {
48622 return f != $ac_func;
48623   ;
48624   return 0;
48625 }
48626 _ACEOF
48627 rm -f conftest.$ac_objext conftest$ac_exeext
48628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48629   (eval $ac_link) 2>&5
48630   ac_status=$?
48631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48632   (exit $ac_status); } &&
48633          { ac_try='test -s conftest$ac_exeext'
48634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48635   (eval $ac_try) 2>&5
48636   ac_status=$?
48637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48638   (exit $ac_status); }; }; then
48639   eval "$as_ac_var=yes"
48640 else
48641   echo "$as_me: failed program was:" >&5
48642 sed 's/^/| /' conftest.$ac_ext >&5
48643
48644 eval "$as_ac_var=no"
48645 fi
48646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48647 fi
48648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48650 if test `eval echo '${'$as_ac_var'}'` = yes; then
48651   cat >>confdefs.h <<_ACEOF
48652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48653 _ACEOF
48654  ac_XPG2funcs=yes
48655 else
48656   ac_XPG2funcs=no
48657 fi
48658 done
48659
48660
48661     LIBS="$ac_save_LIBS"
48662
48663     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
48664 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
48665     if test x"$ac_has_iconv_h" = xyes &&
48666        test x"$ac_has_langinfo_h" = xyes &&
48667        test x"$ac_XPG2funcs" = xyes;
48668     then
48669       ac_XPG2_wchar_t=yes
48670     else
48671       ac_XPG2_wchar_t=no
48672     fi
48673     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
48674 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
48675
48676     # At the moment, only enable wchar_t specializations if all the
48677     # above support is present.
48678     if test x"$ac_isoC99_wchar_t" = xyes &&
48679        test x"$ac_XPG2_wchar_t" = xyes;
48680     then
48681       cat >>confdefs.h <<\_ACEOF
48682 #define _GLIBCXX_USE_WCHAR_T 1
48683 _ACEOF
48684
48685       enable_wchar_t=yes
48686     fi
48687   fi
48688   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
48689 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
48690   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
48691 echo "${ECHO_T}$enable_wchar_t" >&6
48692
48693     cat >>confdefs.h <<\_ACEOF
48694 #define HAVE_LC_MESSAGES 1
48695 _ACEOF
48696
48697     cat >>confdefs.h <<\_ACEOF
48698 #define HAVE_GETPAGESIZE 1
48699 _ACEOF
48700
48701     cat >>confdefs.h <<\_ACEOF
48702 #define HAVE_SETENV 1
48703 _ACEOF
48704
48705     cat >>confdefs.h <<\_ACEOF
48706 #define HAVE_SIGSETJMP 1
48707 _ACEOF
48708
48709     cat >>confdefs.h <<\_ACEOF
48710 #define HAVE_COPYSIGN 1
48711 _ACEOF
48712
48713     cat >>confdefs.h <<\_ACEOF
48714 #define HAVE_COPYSIGNF 1
48715 _ACEOF
48716
48717     cat >>confdefs.h <<\_ACEOF
48718 #define HAVE_FINITEF 1
48719 _ACEOF
48720
48721     cat >>confdefs.h <<\_ACEOF
48722 #define HAVE_FINITE 1
48723 _ACEOF
48724
48725     cat >>confdefs.h <<\_ACEOF
48726 #define HAVE_FREXPF 1
48727 _ACEOF
48728
48729     cat >>confdefs.h <<\_ACEOF
48730 #define HAVE_HYPOT 1
48731 _ACEOF
48732
48733     cat >>confdefs.h <<\_ACEOF
48734 #define HAVE_HYPOTF 1
48735 _ACEOF
48736
48737     cat >>confdefs.h <<\_ACEOF
48738 #define HAVE_ISINF 1
48739 _ACEOF
48740
48741     cat >>confdefs.h <<\_ACEOF
48742 #define HAVE_ISNAN 1
48743 _ACEOF
48744
48745     cat >>confdefs.h <<\_ACEOF
48746 #define HAVE_ISNANF 1
48747 _ACEOF
48748
48749
48750     cat >>confdefs.h <<\_ACEOF
48751 #define HAVE_MMAP 1
48752 _ACEOF
48753
48754     cat >>confdefs.h <<\_ACEOF
48755 #define HAVE_ACOSF 1
48756 _ACEOF
48757
48758     cat >>confdefs.h <<\_ACEOF
48759 #define HAVE_ASINF 1
48760 _ACEOF
48761
48762     cat >>confdefs.h <<\_ACEOF
48763 #define HAVE_ATAN2F 1
48764 _ACEOF
48765
48766     cat >>confdefs.h <<\_ACEOF
48767 #define HAVE_ATANF 1
48768 _ACEOF
48769
48770     cat >>confdefs.h <<\_ACEOF
48771 #define HAVE_CEILF 1
48772 _ACEOF
48773
48774     cat >>confdefs.h <<\_ACEOF
48775 #define HAVE_COPYSIGN 1
48776 _ACEOF
48777
48778     cat >>confdefs.h <<\_ACEOF
48779 #define HAVE_COPYSIGNF 1
48780 _ACEOF
48781
48782     cat >>confdefs.h <<\_ACEOF
48783 #define HAVE_COSF 1
48784 _ACEOF
48785
48786     cat >>confdefs.h <<\_ACEOF
48787 #define HAVE_COSHF 1
48788 _ACEOF
48789
48790     cat >>confdefs.h <<\_ACEOF
48791 #define HAVE_EXPF 1
48792 _ACEOF
48793
48794     cat >>confdefs.h <<\_ACEOF
48795 #define HAVE_FABSF 1
48796 _ACEOF
48797
48798     cat >>confdefs.h <<\_ACEOF
48799 #define HAVE_FLOORF 1
48800 _ACEOF
48801
48802     cat >>confdefs.h <<\_ACEOF
48803 #define HAVE_FMODF 1
48804 _ACEOF
48805
48806     cat >>confdefs.h <<\_ACEOF
48807 #define HAVE_FREXPF 1
48808 _ACEOF
48809
48810     cat >>confdefs.h <<\_ACEOF
48811 #define HAVE_LDEXPF 1
48812 _ACEOF
48813
48814     cat >>confdefs.h <<\_ACEOF
48815 #define HAVE_LOG10F 1
48816 _ACEOF
48817
48818     cat >>confdefs.h <<\_ACEOF
48819 #define HAVE_LOGF 1
48820 _ACEOF
48821
48822     cat >>confdefs.h <<\_ACEOF
48823 #define HAVE_MODFF 1
48824 _ACEOF
48825
48826     cat >>confdefs.h <<\_ACEOF
48827 #define HAVE_POWF 1
48828 _ACEOF
48829
48830     cat >>confdefs.h <<\_ACEOF
48831 #define HAVE_SINF 1
48832 _ACEOF
48833
48834     cat >>confdefs.h <<\_ACEOF
48835 #define HAVE_SINHF 1
48836 _ACEOF
48837
48838     cat >>confdefs.h <<\_ACEOF
48839 #define HAVE_SQRTF 1
48840 _ACEOF
48841
48842     cat >>confdefs.h <<\_ACEOF
48843 #define HAVE_TANF 1
48844 _ACEOF
48845
48846     cat >>confdefs.h <<\_ACEOF
48847 #define HAVE_TANHF 1
48848 _ACEOF
48849
48850     if test x"long_double_math_on_this_cpu" = x"yes"; then
48851       cat >>confdefs.h <<\_ACEOF
48852 #define HAVE_FINITEL 1
48853 _ACEOF
48854
48855       cat >>confdefs.h <<\_ACEOF
48856 #define HAVE_ISINFL 1
48857 _ACEOF
48858
48859       cat >>confdefs.h <<\_ACEOF
48860 #define HAVE_ISNANL 1
48861 _ACEOF
48862
48863     fi
48864     ;;
48865   *-hpux*)
48866
48867
48868
48869
48870
48871
48872
48873
48874
48875
48876
48877
48878 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
48879       machine/endian.h machine/param.h sys/machine.h sys/types.h \
48880       fp.h locale.h float.h inttypes.h
48881 do
48882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48884   echo "$as_me:$LINENO: checking for $ac_header" >&5
48885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48887   echo $ECHO_N "(cached) $ECHO_C" >&6
48888 fi
48889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48891 else
48892   # Is the header compilable?
48893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
48894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48895 cat >conftest.$ac_ext <<_ACEOF
48896 #line $LINENO "configure"
48897 /* confdefs.h.  */
48898 _ACEOF
48899 cat confdefs.h >>conftest.$ac_ext
48900 cat >>conftest.$ac_ext <<_ACEOF
48901 /* end confdefs.h.  */
48902 $ac_includes_default
48903 #include <$ac_header>
48904 _ACEOF
48905 rm -f conftest.$ac_objext
48906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48907   (eval $ac_compile) 2>&5
48908   ac_status=$?
48909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48910   (exit $ac_status); } &&
48911          { ac_try='test -s conftest.$ac_objext'
48912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48913   (eval $ac_try) 2>&5
48914   ac_status=$?
48915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48916   (exit $ac_status); }; }; then
48917   ac_header_compiler=yes
48918 else
48919   echo "$as_me: failed program was:" >&5
48920 sed 's/^/| /' conftest.$ac_ext >&5
48921
48922 ac_header_compiler=no
48923 fi
48924 rm -f conftest.$ac_objext conftest.$ac_ext
48925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48926 echo "${ECHO_T}$ac_header_compiler" >&6
48927
48928 # Is the header present?
48929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
48930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48931 cat >conftest.$ac_ext <<_ACEOF
48932 #line $LINENO "configure"
48933 /* confdefs.h.  */
48934 _ACEOF
48935 cat confdefs.h >>conftest.$ac_ext
48936 cat >>conftest.$ac_ext <<_ACEOF
48937 /* end confdefs.h.  */
48938 #include <$ac_header>
48939 _ACEOF
48940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48942   ac_status=$?
48943   grep -v '^ *+' conftest.er1 >conftest.err
48944   rm -f conftest.er1
48945   cat conftest.err >&5
48946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48947   (exit $ac_status); } >/dev/null; then
48948   if test -s conftest.err; then
48949     ac_cpp_err=$ac_c_preproc_warn_flag
48950   else
48951     ac_cpp_err=
48952   fi
48953 else
48954   ac_cpp_err=yes
48955 fi
48956 if test -z "$ac_cpp_err"; then
48957   ac_header_preproc=yes
48958 else
48959   echo "$as_me: failed program was:" >&5
48960 sed 's/^/| /' conftest.$ac_ext >&5
48961
48962   ac_header_preproc=no
48963 fi
48964 rm -f conftest.err conftest.$ac_ext
48965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48966 echo "${ECHO_T}$ac_header_preproc" >&6
48967
48968 # So?  What about this header?
48969 case $ac_header_compiler:$ac_header_preproc in
48970   yes:no )
48971     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48975     (
48976       cat <<\_ASBOX
48977 ## ------------------------------------ ##
48978 ## Report this to bug-autoconf@gnu.org. ##
48979 ## ------------------------------------ ##
48980 _ASBOX
48981     ) |
48982       sed "s/^/$as_me: WARNING:     /" >&2
48983     ;;
48984   no:yes )
48985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48987     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48991     (
48992       cat <<\_ASBOX
48993 ## ------------------------------------ ##
48994 ## Report this to bug-autoconf@gnu.org. ##
48995 ## ------------------------------------ ##
48996 _ASBOX
48997     ) |
48998       sed "s/^/$as_me: WARNING:     /" >&2
48999     ;;
49000 esac
49001 echo "$as_me:$LINENO: checking for $ac_header" >&5
49002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49004   echo $ECHO_N "(cached) $ECHO_C" >&6
49005 else
49006   eval "$as_ac_Header=$ac_header_preproc"
49007 fi
49008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49010
49011 fi
49012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49013   cat >>confdefs.h <<_ACEOF
49014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49015 _ACEOF
49016
49017 fi
49018
49019 done
49020
49021     SECTION_FLAGS='-ffunction-sections -fdata-sections'
49022
49023
49024   # If we're not using GNU ld, then there's no point in even trying these
49025   # tests.  Check for that first.  We should have already tested for gld
49026   # by now (in libtool), but require it now just to be safe...
49027   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
49028   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
49029
49030
49031
49032   # The name set by libtool depends on the version of libtool.  Shame on us
49033   # for depending on an impl detail, but c'est la vie.  Older versions used
49034   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
49035   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
49036   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
49037   # set (hence we're using an older libtool), then set it.
49038   if test x${with_gnu_ld+set} != xset; then
49039     if test x${ac_cv_prog_gnu_ld+set} != xset; then
49040       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
49041       with_gnu_ld=no
49042     else
49043       with_gnu_ld=$ac_cv_prog_gnu_ld
49044     fi
49045   fi
49046
49047   # Start by getting the version number.  I think the libtool test already
49048   # does some of this, but throws away the result.
49049
49050   ldver=`$LD --version 2>/dev/null | head -1 | \
49051          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
49052
49053   glibcxx_gnu_ld_version=`echo $ldver | \
49054          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
49055
49056   # Set --gc-sections.
49057   if test "$with_gnu_ld" = "notbroken"; then
49058     # GNU ld it is!  Joy and bunny rabbits!
49059
49060     # All these tests are for C++; save the language and the compiler flags.
49061     # Need to do this so that g++ won't try to link in libstdc++
49062     ac_test_CFLAGS="${CFLAGS+set}"
49063     ac_save_CFLAGS="$CFLAGS"
49064     CFLAGS='-x c++  -Wl,--gc-sections'
49065
49066     # Check for -Wl,--gc-sections
49067     # XXX This test is broken at the moment, as symbols required for linking
49068     # are now in libsupc++ (not built yet).  In addition, this test has
49069     # cored on solaris in the past.  In addition, --gc-sections doesn't
49070     # really work at the moment (keeps on discarding used sections, first
49071     # .eh_frame and now some of the glibc sections for iconv).
49072     # Bzzzzt.  Thanks for playing, maybe next time.
49073     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
49074 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
49075     if test "$cross_compiling" = yes; then
49076   ac_sectionLDflags=yes
49077 else
49078   cat >conftest.$ac_ext <<_ACEOF
49079 #line $LINENO "configure"
49080 /* confdefs.h.  */
49081 _ACEOF
49082 cat confdefs.h >>conftest.$ac_ext
49083 cat >>conftest.$ac_ext <<_ACEOF
49084 /* end confdefs.h.  */
49085
49086      int main(void)
49087      {
49088        try { throw 1; }
49089        catch (...) { };
49090        return 0;
49091      }
49092
49093 _ACEOF
49094 rm -f conftest$ac_exeext
49095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49096   (eval $ac_link) 2>&5
49097   ac_status=$?
49098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49101   (eval $ac_try) 2>&5
49102   ac_status=$?
49103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49104   (exit $ac_status); }; }; then
49105   ac_sectionLDflags=yes
49106 else
49107   echo "$as_me: program exited with status $ac_status" >&5
49108 echo "$as_me: failed program was:" >&5
49109 sed 's/^/| /' conftest.$ac_ext >&5
49110
49111 ( exit $ac_status )
49112 ac_sectionLDflags=no
49113 fi
49114 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49115 fi
49116     if test "$ac_test_CFLAGS" = set; then
49117       CFLAGS="$ac_save_CFLAGS"
49118     else
49119       # this is the suspicious part
49120       CFLAGS=''
49121     fi
49122     if test "$ac_sectionLDflags" = "yes"; then
49123       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
49124     fi
49125     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
49126 echo "${ECHO_T}$ac_sectionLDflags" >&6
49127   fi
49128
49129   # Set linker optimization flags.
49130   if test x"$with_gnu_ld" = x"yes"; then
49131     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
49132   fi
49133
49134
49135
49136
49137
49138
49139 echo "$as_me:$LINENO: checking for main in -lm" >&5
49140 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
49141 if test "${ac_cv_lib_m_main+set}" = set; then
49142   echo $ECHO_N "(cached) $ECHO_C" >&6
49143 else
49144   ac_check_lib_save_LIBS=$LIBS
49145 LIBS="-lm  $LIBS"
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
49159
49160 int
49161 main ()
49162 {
49163 main ();
49164   ;
49165   return 0;
49166 }
49167 _ACEOF
49168 rm -f conftest.$ac_objext conftest$ac_exeext
49169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49170   (eval $ac_link) 2>&5
49171   ac_status=$?
49172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49173   (exit $ac_status); } &&
49174          { ac_try='test -s conftest$ac_exeext'
49175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49176   (eval $ac_try) 2>&5
49177   ac_status=$?
49178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49179   (exit $ac_status); }; }; then
49180   ac_cv_lib_m_main=yes
49181 else
49182   echo "$as_me: failed program was:" >&5
49183 sed 's/^/| /' conftest.$ac_ext >&5
49184
49185 ac_cv_lib_m_main=no
49186 fi
49187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49188 LIBS=$ac_check_lib_save_LIBS
49189 fi
49190 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
49191 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
49192 if test $ac_cv_lib_m_main = yes; then
49193   cat >>confdefs.h <<_ACEOF
49194 #define HAVE_LIBM 1
49195 _ACEOF
49196
49197   LIBS="-lm $LIBS"
49198
49199 fi
49200
49201
49202 for ac_func in copysignf
49203 do
49204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49205 echo "$as_me:$LINENO: checking for $ac_func" >&5
49206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49207 if eval "test \"\${$as_ac_var+set}\" = set"; then
49208   echo $ECHO_N "(cached) $ECHO_C" >&6
49209 else
49210   if test x$gcc_no_link = xyes; then
49211   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49212 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49213    { (exit 1); exit 1; }; }
49214 fi
49215 cat >conftest.$ac_ext <<_ACEOF
49216 #line $LINENO "configure"
49217 /* confdefs.h.  */
49218 _ACEOF
49219 cat confdefs.h >>conftest.$ac_ext
49220 cat >>conftest.$ac_ext <<_ACEOF
49221 /* end confdefs.h.  */
49222 /* System header to define __stub macros and hopefully few prototypes,
49223     which can conflict with char $ac_func (); below.
49224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49225     <limits.h> exists even on freestanding compilers.  */
49226 #ifdef __STDC__
49227 # include <limits.h>
49228 #else
49229 # include <assert.h>
49230 #endif
49231 /* Override any gcc2 internal prototype to avoid an error.  */
49232 #ifdef __cplusplus
49233 extern "C"
49234 {
49235 #endif
49236 /* We use char because int might match the return type of a gcc2
49237    builtin and then its argument prototype would still apply.  */
49238 char $ac_func ();
49239 /* The GNU C library defines this for functions which it implements
49240     to always fail with ENOSYS.  Some functions are actually named
49241     something starting with __ and the normal name is an alias.  */
49242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49243 choke me
49244 #else
49245 char (*f) () = $ac_func;
49246 #endif
49247 #ifdef __cplusplus
49248 }
49249 #endif
49250
49251 int
49252 main ()
49253 {
49254 return f != $ac_func;
49255   ;
49256   return 0;
49257 }
49258 _ACEOF
49259 rm -f conftest.$ac_objext conftest$ac_exeext
49260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49261   (eval $ac_link) 2>&5
49262   ac_status=$?
49263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49264   (exit $ac_status); } &&
49265          { ac_try='test -s conftest$ac_exeext'
49266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49267   (eval $ac_try) 2>&5
49268   ac_status=$?
49269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49270   (exit $ac_status); }; }; then
49271   eval "$as_ac_var=yes"
49272 else
49273   echo "$as_me: failed program was:" >&5
49274 sed 's/^/| /' conftest.$ac_ext >&5
49275
49276 eval "$as_ac_var=no"
49277 fi
49278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49279 fi
49280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49282 if test `eval echo '${'$as_ac_var'}'` = yes; then
49283   cat >>confdefs.h <<_ACEOF
49284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49285 _ACEOF
49286
49287 else
49288   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
49289 fi
49290 done
49291
49292
49293
49294 for ac_func in __signbit
49295 do
49296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49297 echo "$as_me:$LINENO: checking for $ac_func" >&5
49298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49299 if eval "test \"\${$as_ac_var+set}\" = set"; then
49300   echo $ECHO_N "(cached) $ECHO_C" >&6
49301 else
49302   if test x$gcc_no_link = xyes; then
49303   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49305    { (exit 1); exit 1; }; }
49306 fi
49307 cat >conftest.$ac_ext <<_ACEOF
49308 #line $LINENO "configure"
49309 /* confdefs.h.  */
49310 _ACEOF
49311 cat confdefs.h >>conftest.$ac_ext
49312 cat >>conftest.$ac_ext <<_ACEOF
49313 /* end confdefs.h.  */
49314 /* System header to define __stub macros and hopefully few prototypes,
49315     which can conflict with char $ac_func (); below.
49316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49317     <limits.h> exists even on freestanding compilers.  */
49318 #ifdef __STDC__
49319 # include <limits.h>
49320 #else
49321 # include <assert.h>
49322 #endif
49323 /* Override any gcc2 internal prototype to avoid an error.  */
49324 #ifdef __cplusplus
49325 extern "C"
49326 {
49327 #endif
49328 /* We use char because int might match the return type of a gcc2
49329    builtin and then its argument prototype would still apply.  */
49330 char $ac_func ();
49331 /* The GNU C library defines this for functions which it implements
49332     to always fail with ENOSYS.  Some functions are actually named
49333     something starting with __ and the normal name is an alias.  */
49334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49335 choke me
49336 #else
49337 char (*f) () = $ac_func;
49338 #endif
49339 #ifdef __cplusplus
49340 }
49341 #endif
49342
49343 int
49344 main ()
49345 {
49346 return f != $ac_func;
49347   ;
49348   return 0;
49349 }
49350 _ACEOF
49351 rm -f conftest.$ac_objext conftest$ac_exeext
49352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49353   (eval $ac_link) 2>&5
49354   ac_status=$?
49355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49356   (exit $ac_status); } &&
49357          { ac_try='test -s conftest$ac_exeext'
49358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49359   (eval $ac_try) 2>&5
49360   ac_status=$?
49361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49362   (exit $ac_status); }; }; then
49363   eval "$as_ac_var=yes"
49364 else
49365   echo "$as_me: failed program was:" >&5
49366 sed 's/^/| /' conftest.$ac_ext >&5
49367
49368 eval "$as_ac_var=no"
49369 fi
49370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49371 fi
49372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49374 if test `eval echo '${'$as_ac_var'}'` = yes; then
49375   cat >>confdefs.h <<_ACEOF
49376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49377 _ACEOF
49378
49379 else
49380   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
49381 fi
49382 done
49383
49384
49385 for ac_func in __signbitf
49386 do
49387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49388 echo "$as_me:$LINENO: checking for $ac_func" >&5
49389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49390 if eval "test \"\${$as_ac_var+set}\" = set"; then
49391   echo $ECHO_N "(cached) $ECHO_C" >&6
49392 else
49393   if test x$gcc_no_link = xyes; then
49394   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49395 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49396    { (exit 1); exit 1; }; }
49397 fi
49398 cat >conftest.$ac_ext <<_ACEOF
49399 #line $LINENO "configure"
49400 /* confdefs.h.  */
49401 _ACEOF
49402 cat confdefs.h >>conftest.$ac_ext
49403 cat >>conftest.$ac_ext <<_ACEOF
49404 /* end confdefs.h.  */
49405 /* System header to define __stub macros and hopefully few prototypes,
49406     which can conflict with char $ac_func (); below.
49407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49408     <limits.h> exists even on freestanding compilers.  */
49409 #ifdef __STDC__
49410 # include <limits.h>
49411 #else
49412 # include <assert.h>
49413 #endif
49414 /* Override any gcc2 internal prototype to avoid an error.  */
49415 #ifdef __cplusplus
49416 extern "C"
49417 {
49418 #endif
49419 /* We use char because int might match the return type of a gcc2
49420    builtin and then its argument prototype would still apply.  */
49421 char $ac_func ();
49422 /* The GNU C library defines this for functions which it implements
49423     to always fail with ENOSYS.  Some functions are actually named
49424     something starting with __ and the normal name is an alias.  */
49425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49426 choke me
49427 #else
49428 char (*f) () = $ac_func;
49429 #endif
49430 #ifdef __cplusplus
49431 }
49432 #endif
49433
49434 int
49435 main ()
49436 {
49437 return f != $ac_func;
49438   ;
49439   return 0;
49440 }
49441 _ACEOF
49442 rm -f conftest.$ac_objext conftest$ac_exeext
49443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49444   (eval $ac_link) 2>&5
49445   ac_status=$?
49446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49447   (exit $ac_status); } &&
49448          { ac_try='test -s conftest$ac_exeext'
49449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49450   (eval $ac_try) 2>&5
49451   ac_status=$?
49452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49453   (exit $ac_status); }; }; then
49454   eval "$as_ac_var=yes"
49455 else
49456   echo "$as_me: failed program was:" >&5
49457 sed 's/^/| /' conftest.$ac_ext >&5
49458
49459 eval "$as_ac_var=no"
49460 fi
49461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49462 fi
49463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49465 if test `eval echo '${'$as_ac_var'}'` = yes; then
49466   cat >>confdefs.h <<_ACEOF
49467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49468 _ACEOF
49469
49470 else
49471   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
49472 fi
49473 done
49474
49475
49476           if test x$ac_cv_func_copysignl = x"yes"; then
49477
49478 for ac_func in __signbitl
49479 do
49480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49481 echo "$as_me:$LINENO: checking for $ac_func" >&5
49482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49483 if eval "test \"\${$as_ac_var+set}\" = set"; then
49484   echo $ECHO_N "(cached) $ECHO_C" >&6
49485 else
49486   if test x$gcc_no_link = xyes; then
49487   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49488 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49489    { (exit 1); exit 1; }; }
49490 fi
49491 cat >conftest.$ac_ext <<_ACEOF
49492 #line $LINENO "configure"
49493 /* confdefs.h.  */
49494 _ACEOF
49495 cat confdefs.h >>conftest.$ac_ext
49496 cat >>conftest.$ac_ext <<_ACEOF
49497 /* end confdefs.h.  */
49498 /* System header to define __stub macros and hopefully few prototypes,
49499     which can conflict with char $ac_func (); below.
49500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49501     <limits.h> exists even on freestanding compilers.  */
49502 #ifdef __STDC__
49503 # include <limits.h>
49504 #else
49505 # include <assert.h>
49506 #endif
49507 /* Override any gcc2 internal prototype to avoid an error.  */
49508 #ifdef __cplusplus
49509 extern "C"
49510 {
49511 #endif
49512 /* We use char because int might match the return type of a gcc2
49513    builtin and then its argument prototype would still apply.  */
49514 char $ac_func ();
49515 /* The GNU C library defines this for functions which it implements
49516     to always fail with ENOSYS.  Some functions are actually named
49517     something starting with __ and the normal name is an alias.  */
49518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49519 choke me
49520 #else
49521 char (*f) () = $ac_func;
49522 #endif
49523 #ifdef __cplusplus
49524 }
49525 #endif
49526
49527 int
49528 main ()
49529 {
49530 return f != $ac_func;
49531   ;
49532   return 0;
49533 }
49534 _ACEOF
49535 rm -f conftest.$ac_objext conftest$ac_exeext
49536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49537   (eval $ac_link) 2>&5
49538   ac_status=$?
49539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49540   (exit $ac_status); } &&
49541          { ac_try='test -s conftest$ac_exeext'
49542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49543   (eval $ac_try) 2>&5
49544   ac_status=$?
49545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49546   (exit $ac_status); }; }; then
49547   eval "$as_ac_var=yes"
49548 else
49549   echo "$as_me: failed program was:" >&5
49550 sed 's/^/| /' conftest.$ac_ext >&5
49551
49552 eval "$as_ac_var=no"
49553 fi
49554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49555 fi
49556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49558 if test `eval echo '${'$as_ac_var'}'` = yes; then
49559   cat >>confdefs.h <<_ACEOF
49560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49561 _ACEOF
49562
49563 else
49564   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
49565 fi
49566 done
49567
49568   fi
49569
49570   # XXX Review this.  Nothing uses it.
49571   if test -n "$LIBMATHOBJS"; then
49572     need_libmath=yes
49573   fi
49574
49575
49576
49577   # Test wchar.h for mbstate_t, which is needed for char_traits and
49578   # others even if wchar_t support is not on.
49579   echo "$as_me:$LINENO: checking for mbstate_t" >&5
49580 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
49581   cat >conftest.$ac_ext <<_ACEOF
49582 #line $LINENO "configure"
49583 /* confdefs.h.  */
49584 _ACEOF
49585 cat confdefs.h >>conftest.$ac_ext
49586 cat >>conftest.$ac_ext <<_ACEOF
49587 /* end confdefs.h.  */
49588 #include <wchar.h>
49589 int
49590 main ()
49591 {
49592 mbstate_t teststate;
49593   ;
49594   return 0;
49595 }
49596 _ACEOF
49597 rm -f conftest.$ac_objext
49598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49599   (eval $ac_compile) 2>&5
49600   ac_status=$?
49601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49602   (exit $ac_status); } &&
49603          { ac_try='test -s conftest.$ac_objext'
49604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49605   (eval $ac_try) 2>&5
49606   ac_status=$?
49607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49608   (exit $ac_status); }; }; then
49609   have_mbstate_t=yes
49610 else
49611   echo "$as_me: failed program was:" >&5
49612 sed 's/^/| /' conftest.$ac_ext >&5
49613
49614 have_mbstate_t=no
49615 fi
49616 rm -f conftest.$ac_objext conftest.$ac_ext
49617   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
49618 echo "${ECHO_T}$have_mbstate_t" >&6
49619   if test x"$have_mbstate_t" = xyes; then
49620     cat >>confdefs.h <<\_ACEOF
49621 #define HAVE_MBSTATE_T 1
49622 _ACEOF
49623
49624   fi
49625
49626   # Sanity check for existence of ISO C99 headers for extended encoding.
49627
49628 for ac_header in wchar.h
49629 do
49630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49632   echo "$as_me:$LINENO: checking for $ac_header" >&5
49633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49635   echo $ECHO_N "(cached) $ECHO_C" >&6
49636 fi
49637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49639 else
49640   # Is the header compilable?
49641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49643 cat >conftest.$ac_ext <<_ACEOF
49644 #line $LINENO "configure"
49645 /* confdefs.h.  */
49646 _ACEOF
49647 cat confdefs.h >>conftest.$ac_ext
49648 cat >>conftest.$ac_ext <<_ACEOF
49649 /* end confdefs.h.  */
49650 $ac_includes_default
49651 #include <$ac_header>
49652 _ACEOF
49653 rm -f conftest.$ac_objext
49654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49655   (eval $ac_compile) 2>&5
49656   ac_status=$?
49657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49658   (exit $ac_status); } &&
49659          { ac_try='test -s conftest.$ac_objext'
49660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49661   (eval $ac_try) 2>&5
49662   ac_status=$?
49663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49664   (exit $ac_status); }; }; then
49665   ac_header_compiler=yes
49666 else
49667   echo "$as_me: failed program was:" >&5
49668 sed 's/^/| /' conftest.$ac_ext >&5
49669
49670 ac_header_compiler=no
49671 fi
49672 rm -f conftest.$ac_objext conftest.$ac_ext
49673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49674 echo "${ECHO_T}$ac_header_compiler" >&6
49675
49676 # Is the header present?
49677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49679 cat >conftest.$ac_ext <<_ACEOF
49680 #line $LINENO "configure"
49681 /* confdefs.h.  */
49682 _ACEOF
49683 cat confdefs.h >>conftest.$ac_ext
49684 cat >>conftest.$ac_ext <<_ACEOF
49685 /* end confdefs.h.  */
49686 #include <$ac_header>
49687 _ACEOF
49688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49690   ac_status=$?
49691   grep -v '^ *+' conftest.er1 >conftest.err
49692   rm -f conftest.er1
49693   cat conftest.err >&5
49694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49695   (exit $ac_status); } >/dev/null; then
49696   if test -s conftest.err; then
49697     ac_cpp_err=$ac_c_preproc_warn_flag
49698   else
49699     ac_cpp_err=
49700   fi
49701 else
49702   ac_cpp_err=yes
49703 fi
49704 if test -z "$ac_cpp_err"; then
49705   ac_header_preproc=yes
49706 else
49707   echo "$as_me: failed program was:" >&5
49708 sed 's/^/| /' conftest.$ac_ext >&5
49709
49710   ac_header_preproc=no
49711 fi
49712 rm -f conftest.err conftest.$ac_ext
49713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49714 echo "${ECHO_T}$ac_header_preproc" >&6
49715
49716 # So?  What about this header?
49717 case $ac_header_compiler:$ac_header_preproc in
49718   yes:no )
49719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49723     (
49724       cat <<\_ASBOX
49725 ## ------------------------------------ ##
49726 ## Report this to bug-autoconf@gnu.org. ##
49727 ## ------------------------------------ ##
49728 _ASBOX
49729     ) |
49730       sed "s/^/$as_me: WARNING:     /" >&2
49731     ;;
49732   no:yes )
49733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49735     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49739     (
49740       cat <<\_ASBOX
49741 ## ------------------------------------ ##
49742 ## Report this to bug-autoconf@gnu.org. ##
49743 ## ------------------------------------ ##
49744 _ASBOX
49745     ) |
49746       sed "s/^/$as_me: WARNING:     /" >&2
49747     ;;
49748 esac
49749 echo "$as_me:$LINENO: checking for $ac_header" >&5
49750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49752   echo $ECHO_N "(cached) $ECHO_C" >&6
49753 else
49754   eval "$as_ac_Header=$ac_header_preproc"
49755 fi
49756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49758
49759 fi
49760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49761   cat >>confdefs.h <<_ACEOF
49762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49763 _ACEOF
49764  ac_has_wchar_h=yes
49765 else
49766   ac_has_wchar_h=no
49767 fi
49768
49769 done
49770
49771
49772 for ac_header in wctype.h
49773 do
49774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49776   echo "$as_me:$LINENO: checking for $ac_header" >&5
49777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49779   echo $ECHO_N "(cached) $ECHO_C" >&6
49780 fi
49781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49783 else
49784   # Is the header compilable?
49785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49787 cat >conftest.$ac_ext <<_ACEOF
49788 #line $LINENO "configure"
49789 /* confdefs.h.  */
49790 _ACEOF
49791 cat confdefs.h >>conftest.$ac_ext
49792 cat >>conftest.$ac_ext <<_ACEOF
49793 /* end confdefs.h.  */
49794 $ac_includes_default
49795 #include <$ac_header>
49796 _ACEOF
49797 rm -f conftest.$ac_objext
49798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49799   (eval $ac_compile) 2>&5
49800   ac_status=$?
49801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49802   (exit $ac_status); } &&
49803          { ac_try='test -s conftest.$ac_objext'
49804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49805   (eval $ac_try) 2>&5
49806   ac_status=$?
49807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49808   (exit $ac_status); }; }; then
49809   ac_header_compiler=yes
49810 else
49811   echo "$as_me: failed program was:" >&5
49812 sed 's/^/| /' conftest.$ac_ext >&5
49813
49814 ac_header_compiler=no
49815 fi
49816 rm -f conftest.$ac_objext conftest.$ac_ext
49817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49818 echo "${ECHO_T}$ac_header_compiler" >&6
49819
49820 # Is the header present?
49821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49823 cat >conftest.$ac_ext <<_ACEOF
49824 #line $LINENO "configure"
49825 /* confdefs.h.  */
49826 _ACEOF
49827 cat confdefs.h >>conftest.$ac_ext
49828 cat >>conftest.$ac_ext <<_ACEOF
49829 /* end confdefs.h.  */
49830 #include <$ac_header>
49831 _ACEOF
49832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49834   ac_status=$?
49835   grep -v '^ *+' conftest.er1 >conftest.err
49836   rm -f conftest.er1
49837   cat conftest.err >&5
49838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49839   (exit $ac_status); } >/dev/null; then
49840   if test -s conftest.err; then
49841     ac_cpp_err=$ac_c_preproc_warn_flag
49842   else
49843     ac_cpp_err=
49844   fi
49845 else
49846   ac_cpp_err=yes
49847 fi
49848 if test -z "$ac_cpp_err"; then
49849   ac_header_preproc=yes
49850 else
49851   echo "$as_me: failed program was:" >&5
49852 sed 's/^/| /' conftest.$ac_ext >&5
49853
49854   ac_header_preproc=no
49855 fi
49856 rm -f conftest.err conftest.$ac_ext
49857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49858 echo "${ECHO_T}$ac_header_preproc" >&6
49859
49860 # So?  What about this header?
49861 case $ac_header_compiler:$ac_header_preproc in
49862   yes:no )
49863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49867     (
49868       cat <<\_ASBOX
49869 ## ------------------------------------ ##
49870 ## Report this to bug-autoconf@gnu.org. ##
49871 ## ------------------------------------ ##
49872 _ASBOX
49873     ) |
49874       sed "s/^/$as_me: WARNING:     /" >&2
49875     ;;
49876   no:yes )
49877     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49879     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49883     (
49884       cat <<\_ASBOX
49885 ## ------------------------------------ ##
49886 ## Report this to bug-autoconf@gnu.org. ##
49887 ## ------------------------------------ ##
49888 _ASBOX
49889     ) |
49890       sed "s/^/$as_me: WARNING:     /" >&2
49891     ;;
49892 esac
49893 echo "$as_me:$LINENO: checking for $ac_header" >&5
49894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49896   echo $ECHO_N "(cached) $ECHO_C" >&6
49897 else
49898   eval "$as_ac_Header=$ac_header_preproc"
49899 fi
49900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49902
49903 fi
49904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49905   cat >>confdefs.h <<_ACEOF
49906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49907 _ACEOF
49908  ac_has_wctype_h=yes
49909 else
49910   ac_has_wctype_h=no
49911 fi
49912
49913 done
49914
49915
49916   # Only continue checking if the ISO C99 headers exist and support is on.
49917   if test x"$ac_has_wchar_h" = xyes &&
49918      test x"$ac_has_wctype_h" = xyes &&
49919      test x"$enable_c_mbchar" != xno; then
49920
49921     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
49922     # numeric_limits can instantiate type_traits<wchar_t>
49923     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
49924 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
49925     cat >conftest.$ac_ext <<_ACEOF
49926 #line $LINENO "configure"
49927 /* confdefs.h.  */
49928 _ACEOF
49929 cat confdefs.h >>conftest.$ac_ext
49930 cat >>conftest.$ac_ext <<_ACEOF
49931 /* end confdefs.h.  */
49932 #include <wchar.h>
49933 int
49934 main ()
49935 {
49936 int i = WCHAR_MIN; int j = WCHAR_MAX;
49937   ;
49938   return 0;
49939 }
49940 _ACEOF
49941 rm -f conftest.$ac_objext
49942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49943   (eval $ac_compile) 2>&5
49944   ac_status=$?
49945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49946   (exit $ac_status); } &&
49947          { ac_try='test -s conftest.$ac_objext'
49948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49949   (eval $ac_try) 2>&5
49950   ac_status=$?
49951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49952   (exit $ac_status); }; }; then
49953   has_wchar_minmax=yes
49954 else
49955   echo "$as_me: failed program was:" >&5
49956 sed 's/^/| /' conftest.$ac_ext >&5
49957
49958 has_wchar_minmax=no
49959 fi
49960 rm -f conftest.$ac_objext conftest.$ac_ext
49961     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
49962 echo "${ECHO_T}$has_wchar_minmax" >&6
49963
49964     # Test wchar.h for WEOF, which is what we use to determine whether
49965     # to specialize for char_traits<wchar_t> or not.
49966     echo "$as_me:$LINENO: checking for WEOF" >&5
49967 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
49968     cat >conftest.$ac_ext <<_ACEOF
49969 #line $LINENO "configure"
49970 /* confdefs.h.  */
49971 _ACEOF
49972 cat confdefs.h >>conftest.$ac_ext
49973 cat >>conftest.$ac_ext <<_ACEOF
49974 /* end confdefs.h.  */
49975
49976       #include <wchar.h>
49977       #include <stddef.h>
49978 int
49979 main ()
49980 {
49981 wint_t i = WEOF;
49982   ;
49983   return 0;
49984 }
49985 _ACEOF
49986 rm -f conftest.$ac_objext
49987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49988   (eval $ac_compile) 2>&5
49989   ac_status=$?
49990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49991   (exit $ac_status); } &&
49992          { ac_try='test -s conftest.$ac_objext'
49993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49994   (eval $ac_try) 2>&5
49995   ac_status=$?
49996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49997   (exit $ac_status); }; }; then
49998   has_weof=yes
49999 else
50000   echo "$as_me: failed program was:" >&5
50001 sed 's/^/| /' conftest.$ac_ext >&5
50002
50003 has_weof=no
50004 fi
50005 rm -f conftest.$ac_objext conftest.$ac_ext
50006     echo "$as_me:$LINENO: result: $has_weof" >&5
50007 echo "${ECHO_T}$has_weof" >&6
50008
50009     # Tests for wide character functions used in char_traits<wchar_t>.
50010     ac_wfuncs=yes
50011
50012
50013
50014
50015
50016
50017 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
50018 do
50019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50020 echo "$as_me:$LINENO: checking for $ac_func" >&5
50021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50022 if eval "test \"\${$as_ac_var+set}\" = set"; then
50023   echo $ECHO_N "(cached) $ECHO_C" >&6
50024 else
50025   if test x$gcc_no_link = xyes; then
50026   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50028    { (exit 1); exit 1; }; }
50029 fi
50030 cat >conftest.$ac_ext <<_ACEOF
50031 #line $LINENO "configure"
50032 /* confdefs.h.  */
50033 _ACEOF
50034 cat confdefs.h >>conftest.$ac_ext
50035 cat >>conftest.$ac_ext <<_ACEOF
50036 /* end confdefs.h.  */
50037 /* System header to define __stub macros and hopefully few prototypes,
50038     which can conflict with char $ac_func (); below.
50039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50040     <limits.h> exists even on freestanding compilers.  */
50041 #ifdef __STDC__
50042 # include <limits.h>
50043 #else
50044 # include <assert.h>
50045 #endif
50046 /* Override any gcc2 internal prototype to avoid an error.  */
50047 #ifdef __cplusplus
50048 extern "C"
50049 {
50050 #endif
50051 /* We use char because int might match the return type of a gcc2
50052    builtin and then its argument prototype would still apply.  */
50053 char $ac_func ();
50054 /* The GNU C library defines this for functions which it implements
50055     to always fail with ENOSYS.  Some functions are actually named
50056     something starting with __ and the normal name is an alias.  */
50057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50058 choke me
50059 #else
50060 char (*f) () = $ac_func;
50061 #endif
50062 #ifdef __cplusplus
50063 }
50064 #endif
50065
50066 int
50067 main ()
50068 {
50069 return f != $ac_func;
50070   ;
50071   return 0;
50072 }
50073 _ACEOF
50074 rm -f conftest.$ac_objext conftest$ac_exeext
50075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50076   (eval $ac_link) 2>&5
50077   ac_status=$?
50078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50079   (exit $ac_status); } &&
50080          { ac_try='test -s conftest$ac_exeext'
50081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50082   (eval $ac_try) 2>&5
50083   ac_status=$?
50084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50085   (exit $ac_status); }; }; then
50086   eval "$as_ac_var=yes"
50087 else
50088   echo "$as_me: failed program was:" >&5
50089 sed 's/^/| /' conftest.$ac_ext >&5
50090
50091 eval "$as_ac_var=no"
50092 fi
50093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50094 fi
50095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50097 if test `eval echo '${'$as_ac_var'}'` = yes; then
50098   cat >>confdefs.h <<_ACEOF
50099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50100 _ACEOF
50101
50102 else
50103   ac_wfuncs=no
50104 fi
50105 done
50106
50107
50108     # Checks for names injected into std:: by the c_std headers.
50109
50110
50111
50112
50113
50114
50115
50116
50117
50118
50119
50120
50121
50122
50123
50124
50125
50126
50127
50128
50129
50130
50131
50132
50133
50134
50135
50136
50137
50138
50139
50140
50141
50142
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152
50153
50154
50155 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
50156     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
50157     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
50158     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
50159     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
50160     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
50161 do
50162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50163 echo "$as_me:$LINENO: checking for $ac_func" >&5
50164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50165 if eval "test \"\${$as_ac_var+set}\" = set"; then
50166   echo $ECHO_N "(cached) $ECHO_C" >&6
50167 else
50168   if test x$gcc_no_link = xyes; then
50169   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50171    { (exit 1); exit 1; }; }
50172 fi
50173 cat >conftest.$ac_ext <<_ACEOF
50174 #line $LINENO "configure"
50175 /* confdefs.h.  */
50176 _ACEOF
50177 cat confdefs.h >>conftest.$ac_ext
50178 cat >>conftest.$ac_ext <<_ACEOF
50179 /* end confdefs.h.  */
50180 /* System header to define __stub macros and hopefully few prototypes,
50181     which can conflict with char $ac_func (); below.
50182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50183     <limits.h> exists even on freestanding compilers.  */
50184 #ifdef __STDC__
50185 # include <limits.h>
50186 #else
50187 # include <assert.h>
50188 #endif
50189 /* Override any gcc2 internal prototype to avoid an error.  */
50190 #ifdef __cplusplus
50191 extern "C"
50192 {
50193 #endif
50194 /* We use char because int might match the return type of a gcc2
50195    builtin and then its argument prototype would still apply.  */
50196 char $ac_func ();
50197 /* The GNU C library defines this for functions which it implements
50198     to always fail with ENOSYS.  Some functions are actually named
50199     something starting with __ and the normal name is an alias.  */
50200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50201 choke me
50202 #else
50203 char (*f) () = $ac_func;
50204 #endif
50205 #ifdef __cplusplus
50206 }
50207 #endif
50208
50209 int
50210 main ()
50211 {
50212 return f != $ac_func;
50213   ;
50214   return 0;
50215 }
50216 _ACEOF
50217 rm -f conftest.$ac_objext conftest$ac_exeext
50218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50219   (eval $ac_link) 2>&5
50220   ac_status=$?
50221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50222   (exit $ac_status); } &&
50223          { ac_try='test -s conftest$ac_exeext'
50224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50225   (eval $ac_try) 2>&5
50226   ac_status=$?
50227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50228   (exit $ac_status); }; }; then
50229   eval "$as_ac_var=yes"
50230 else
50231   echo "$as_me: failed program was:" >&5
50232 sed 's/^/| /' conftest.$ac_ext >&5
50233
50234 eval "$as_ac_var=no"
50235 fi
50236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50237 fi
50238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50240 if test `eval echo '${'$as_ac_var'}'` = yes; then
50241   cat >>confdefs.h <<_ACEOF
50242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50243 _ACEOF
50244
50245 else
50246   ac_wfuncs=no
50247 fi
50248 done
50249
50250
50251     # Checks for wide character functions that are not required
50252     # for basic wchar_t support.  Don't disable support if they are missing.
50253     # Injection of these is wrapped with guard macros.
50254
50255
50256
50257
50258
50259 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
50260 do
50261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50262 echo "$as_me:$LINENO: checking for $ac_func" >&5
50263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50264 if eval "test \"\${$as_ac_var+set}\" = set"; then
50265   echo $ECHO_N "(cached) $ECHO_C" >&6
50266 else
50267   if test x$gcc_no_link = xyes; then
50268   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50270    { (exit 1); exit 1; }; }
50271 fi
50272 cat >conftest.$ac_ext <<_ACEOF
50273 #line $LINENO "configure"
50274 /* confdefs.h.  */
50275 _ACEOF
50276 cat confdefs.h >>conftest.$ac_ext
50277 cat >>conftest.$ac_ext <<_ACEOF
50278 /* end confdefs.h.  */
50279 /* System header to define __stub macros and hopefully few prototypes,
50280     which can conflict with char $ac_func (); below.
50281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50282     <limits.h> exists even on freestanding compilers.  */
50283 #ifdef __STDC__
50284 # include <limits.h>
50285 #else
50286 # include <assert.h>
50287 #endif
50288 /* Override any gcc2 internal prototype to avoid an error.  */
50289 #ifdef __cplusplus
50290 extern "C"
50291 {
50292 #endif
50293 /* We use char because int might match the return type of a gcc2
50294    builtin and then its argument prototype would still apply.  */
50295 char $ac_func ();
50296 /* The GNU C library defines this for functions which it implements
50297     to always fail with ENOSYS.  Some functions are actually named
50298     something starting with __ and the normal name is an alias.  */
50299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50300 choke me
50301 #else
50302 char (*f) () = $ac_func;
50303 #endif
50304 #ifdef __cplusplus
50305 }
50306 #endif
50307
50308 int
50309 main ()
50310 {
50311 return f != $ac_func;
50312   ;
50313   return 0;
50314 }
50315 _ACEOF
50316 rm -f conftest.$ac_objext conftest$ac_exeext
50317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50318   (eval $ac_link) 2>&5
50319   ac_status=$?
50320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50321   (exit $ac_status); } &&
50322          { ac_try='test -s conftest$ac_exeext'
50323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50324   (eval $ac_try) 2>&5
50325   ac_status=$?
50326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50327   (exit $ac_status); }; }; then
50328   eval "$as_ac_var=yes"
50329 else
50330   echo "$as_me: failed program was:" >&5
50331 sed 's/^/| /' conftest.$ac_ext >&5
50332
50333 eval "$as_ac_var=no"
50334 fi
50335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50336 fi
50337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50339 if test `eval echo '${'$as_ac_var'}'` = yes; then
50340   cat >>confdefs.h <<_ACEOF
50341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50342 _ACEOF
50343
50344 fi
50345 done
50346
50347
50348     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
50349 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
50350     if test x"$has_weof" = xyes &&
50351        test x"$has_wchar_minmax" = xyes &&
50352        test x"$ac_wfuncs" = xyes;
50353     then
50354       ac_isoC99_wchar_t=yes
50355     else
50356       ac_isoC99_wchar_t=no
50357     fi
50358     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
50359 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
50360
50361     # Use iconv for wchar_t to char conversions. As such, check for
50362     # X/Open Portability Guide, version 2 features (XPG2).
50363     if test "${ac_cv_header_iconv_h+set}" = set; then
50364   echo "$as_me:$LINENO: checking for iconv.h" >&5
50365 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50366 if test "${ac_cv_header_iconv_h+set}" = set; then
50367   echo $ECHO_N "(cached) $ECHO_C" >&6
50368 fi
50369 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50370 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50371 else
50372   # Is the header compilable?
50373 echo "$as_me:$LINENO: checking iconv.h usability" >&5
50374 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
50375 cat >conftest.$ac_ext <<_ACEOF
50376 #line $LINENO "configure"
50377 /* confdefs.h.  */
50378 _ACEOF
50379 cat confdefs.h >>conftest.$ac_ext
50380 cat >>conftest.$ac_ext <<_ACEOF
50381 /* end confdefs.h.  */
50382 $ac_includes_default
50383 #include <iconv.h>
50384 _ACEOF
50385 rm -f conftest.$ac_objext
50386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50387   (eval $ac_compile) 2>&5
50388   ac_status=$?
50389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50390   (exit $ac_status); } &&
50391          { ac_try='test -s conftest.$ac_objext'
50392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50393   (eval $ac_try) 2>&5
50394   ac_status=$?
50395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50396   (exit $ac_status); }; }; then
50397   ac_header_compiler=yes
50398 else
50399   echo "$as_me: failed program was:" >&5
50400 sed 's/^/| /' conftest.$ac_ext >&5
50401
50402 ac_header_compiler=no
50403 fi
50404 rm -f conftest.$ac_objext conftest.$ac_ext
50405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50406 echo "${ECHO_T}$ac_header_compiler" >&6
50407
50408 # Is the header present?
50409 echo "$as_me:$LINENO: checking iconv.h presence" >&5
50410 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
50411 cat >conftest.$ac_ext <<_ACEOF
50412 #line $LINENO "configure"
50413 /* confdefs.h.  */
50414 _ACEOF
50415 cat confdefs.h >>conftest.$ac_ext
50416 cat >>conftest.$ac_ext <<_ACEOF
50417 /* end confdefs.h.  */
50418 #include <iconv.h>
50419 _ACEOF
50420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50422   ac_status=$?
50423   grep -v '^ *+' conftest.er1 >conftest.err
50424   rm -f conftest.er1
50425   cat conftest.err >&5
50426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50427   (exit $ac_status); } >/dev/null; then
50428   if test -s conftest.err; then
50429     ac_cpp_err=$ac_c_preproc_warn_flag
50430   else
50431     ac_cpp_err=
50432   fi
50433 else
50434   ac_cpp_err=yes
50435 fi
50436 if test -z "$ac_cpp_err"; then
50437   ac_header_preproc=yes
50438 else
50439   echo "$as_me: failed program was:" >&5
50440 sed 's/^/| /' conftest.$ac_ext >&5
50441
50442   ac_header_preproc=no
50443 fi
50444 rm -f conftest.err conftest.$ac_ext
50445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50446 echo "${ECHO_T}$ac_header_preproc" >&6
50447
50448 # So?  What about this header?
50449 case $ac_header_compiler:$ac_header_preproc in
50450   yes:no )
50451     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
50452 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50453     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50454 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50455     (
50456       cat <<\_ASBOX
50457 ## ------------------------------------ ##
50458 ## Report this to bug-autoconf@gnu.org. ##
50459 ## ------------------------------------ ##
50460 _ASBOX
50461     ) |
50462       sed "s/^/$as_me: WARNING:     /" >&2
50463     ;;
50464   no:yes )
50465     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
50466 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
50467     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
50468 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
50469     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50470 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50471     (
50472       cat <<\_ASBOX
50473 ## ------------------------------------ ##
50474 ## Report this to bug-autoconf@gnu.org. ##
50475 ## ------------------------------------ ##
50476 _ASBOX
50477     ) |
50478       sed "s/^/$as_me: WARNING:     /" >&2
50479     ;;
50480 esac
50481 echo "$as_me:$LINENO: checking for iconv.h" >&5
50482 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50483 if test "${ac_cv_header_iconv_h+set}" = set; then
50484   echo $ECHO_N "(cached) $ECHO_C" >&6
50485 else
50486   ac_cv_header_iconv_h=$ac_header_preproc
50487 fi
50488 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50489 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50490
50491 fi
50492 if test $ac_cv_header_iconv_h = yes; then
50493   ac_has_iconv_h=yes
50494 else
50495   ac_has_iconv_h=no
50496 fi
50497
50498
50499     if test "${ac_cv_header_langinfo_h+set}" = set; then
50500   echo "$as_me:$LINENO: checking for langinfo.h" >&5
50501 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50502 if test "${ac_cv_header_langinfo_h+set}" = set; then
50503   echo $ECHO_N "(cached) $ECHO_C" >&6
50504 fi
50505 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50506 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50507 else
50508   # Is the header compilable?
50509 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
50510 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
50511 cat >conftest.$ac_ext <<_ACEOF
50512 #line $LINENO "configure"
50513 /* confdefs.h.  */
50514 _ACEOF
50515 cat confdefs.h >>conftest.$ac_ext
50516 cat >>conftest.$ac_ext <<_ACEOF
50517 /* end confdefs.h.  */
50518 $ac_includes_default
50519 #include <langinfo.h>
50520 _ACEOF
50521 rm -f conftest.$ac_objext
50522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50523   (eval $ac_compile) 2>&5
50524   ac_status=$?
50525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50526   (exit $ac_status); } &&
50527          { ac_try='test -s conftest.$ac_objext'
50528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50529   (eval $ac_try) 2>&5
50530   ac_status=$?
50531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50532   (exit $ac_status); }; }; then
50533   ac_header_compiler=yes
50534 else
50535   echo "$as_me: failed program was:" >&5
50536 sed 's/^/| /' conftest.$ac_ext >&5
50537
50538 ac_header_compiler=no
50539 fi
50540 rm -f conftest.$ac_objext conftest.$ac_ext
50541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50542 echo "${ECHO_T}$ac_header_compiler" >&6
50543
50544 # Is the header present?
50545 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
50546 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
50547 cat >conftest.$ac_ext <<_ACEOF
50548 #line $LINENO "configure"
50549 /* confdefs.h.  */
50550 _ACEOF
50551 cat confdefs.h >>conftest.$ac_ext
50552 cat >>conftest.$ac_ext <<_ACEOF
50553 /* end confdefs.h.  */
50554 #include <langinfo.h>
50555 _ACEOF
50556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50558   ac_status=$?
50559   grep -v '^ *+' conftest.er1 >conftest.err
50560   rm -f conftest.er1
50561   cat conftest.err >&5
50562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50563   (exit $ac_status); } >/dev/null; then
50564   if test -s conftest.err; then
50565     ac_cpp_err=$ac_c_preproc_warn_flag
50566   else
50567     ac_cpp_err=
50568   fi
50569 else
50570   ac_cpp_err=yes
50571 fi
50572 if test -z "$ac_cpp_err"; then
50573   ac_header_preproc=yes
50574 else
50575   echo "$as_me: failed program was:" >&5
50576 sed 's/^/| /' conftest.$ac_ext >&5
50577
50578   ac_header_preproc=no
50579 fi
50580 rm -f conftest.err conftest.$ac_ext
50581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50582 echo "${ECHO_T}$ac_header_preproc" >&6
50583
50584 # So?  What about this header?
50585 case $ac_header_compiler:$ac_header_preproc in
50586   yes:no )
50587     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
50588 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50589     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50590 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50591     (
50592       cat <<\_ASBOX
50593 ## ------------------------------------ ##
50594 ## Report this to bug-autoconf@gnu.org. ##
50595 ## ------------------------------------ ##
50596 _ASBOX
50597     ) |
50598       sed "s/^/$as_me: WARNING:     /" >&2
50599     ;;
50600   no:yes )
50601     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
50602 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
50603     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
50604 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
50605     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50606 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50607     (
50608       cat <<\_ASBOX
50609 ## ------------------------------------ ##
50610 ## Report this to bug-autoconf@gnu.org. ##
50611 ## ------------------------------------ ##
50612 _ASBOX
50613     ) |
50614       sed "s/^/$as_me: WARNING:     /" >&2
50615     ;;
50616 esac
50617 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50618 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50619 if test "${ac_cv_header_langinfo_h+set}" = set; then
50620   echo $ECHO_N "(cached) $ECHO_C" >&6
50621 else
50622   ac_cv_header_langinfo_h=$ac_header_preproc
50623 fi
50624 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50625 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50626
50627 fi
50628 if test $ac_cv_header_langinfo_h = yes; then
50629   ac_has_langinfo_h=yes
50630 else
50631   ac_has_langinfo_h=no
50632 fi
50633
50634
50635
50636     # Check for existence of libiconv.a providing XPG2 wchar_t support.
50637     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
50638 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
50639 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
50640   echo $ECHO_N "(cached) $ECHO_C" >&6
50641 else
50642   ac_check_lib_save_LIBS=$LIBS
50643 LIBS="-liconv  $LIBS"
50644 if test x$gcc_no_link = xyes; then
50645   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50646 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50647    { (exit 1); exit 1; }; }
50648 fi
50649 cat >conftest.$ac_ext <<_ACEOF
50650 #line $LINENO "configure"
50651 /* confdefs.h.  */
50652 _ACEOF
50653 cat confdefs.h >>conftest.$ac_ext
50654 cat >>conftest.$ac_ext <<_ACEOF
50655 /* end confdefs.h.  */
50656
50657 /* Override any gcc2 internal prototype to avoid an error.  */
50658 #ifdef __cplusplus
50659 extern "C"
50660 #endif
50661 /* We use char because int might match the return type of a gcc2
50662    builtin and then its argument prototype would still apply.  */
50663 char iconv ();
50664 int
50665 main ()
50666 {
50667 iconv ();
50668   ;
50669   return 0;
50670 }
50671 _ACEOF
50672 rm -f conftest.$ac_objext conftest$ac_exeext
50673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50674   (eval $ac_link) 2>&5
50675   ac_status=$?
50676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50677   (exit $ac_status); } &&
50678          { ac_try='test -s conftest$ac_exeext'
50679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50680   (eval $ac_try) 2>&5
50681   ac_status=$?
50682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50683   (exit $ac_status); }; }; then
50684   ac_cv_lib_iconv_iconv=yes
50685 else
50686   echo "$as_me: failed program was:" >&5
50687 sed 's/^/| /' conftest.$ac_ext >&5
50688
50689 ac_cv_lib_iconv_iconv=no
50690 fi
50691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50692 LIBS=$ac_check_lib_save_LIBS
50693 fi
50694 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
50695 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
50696 if test $ac_cv_lib_iconv_iconv = yes; then
50697   libiconv="-liconv"
50698 fi
50699
50700     ac_save_LIBS="$LIBS"
50701     LIBS="$LIBS $libiconv"
50702
50703
50704
50705
50706
50707 for ac_func in iconv_open iconv_close iconv nl_langinfo
50708 do
50709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50710 echo "$as_me:$LINENO: checking for $ac_func" >&5
50711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50712 if eval "test \"\${$as_ac_var+set}\" = set"; then
50713   echo $ECHO_N "(cached) $ECHO_C" >&6
50714 else
50715   if test x$gcc_no_link = xyes; then
50716   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50718    { (exit 1); exit 1; }; }
50719 fi
50720 cat >conftest.$ac_ext <<_ACEOF
50721 #line $LINENO "configure"
50722 /* confdefs.h.  */
50723 _ACEOF
50724 cat confdefs.h >>conftest.$ac_ext
50725 cat >>conftest.$ac_ext <<_ACEOF
50726 /* end confdefs.h.  */
50727 /* System header to define __stub macros and hopefully few prototypes,
50728     which can conflict with char $ac_func (); below.
50729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50730     <limits.h> exists even on freestanding compilers.  */
50731 #ifdef __STDC__
50732 # include <limits.h>
50733 #else
50734 # include <assert.h>
50735 #endif
50736 /* Override any gcc2 internal prototype to avoid an error.  */
50737 #ifdef __cplusplus
50738 extern "C"
50739 {
50740 #endif
50741 /* We use char because int might match the return type of a gcc2
50742    builtin and then its argument prototype would still apply.  */
50743 char $ac_func ();
50744 /* The GNU C library defines this for functions which it implements
50745     to always fail with ENOSYS.  Some functions are actually named
50746     something starting with __ and the normal name is an alias.  */
50747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50748 choke me
50749 #else
50750 char (*f) () = $ac_func;
50751 #endif
50752 #ifdef __cplusplus
50753 }
50754 #endif
50755
50756 int
50757 main ()
50758 {
50759 return f != $ac_func;
50760   ;
50761   return 0;
50762 }
50763 _ACEOF
50764 rm -f conftest.$ac_objext conftest$ac_exeext
50765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50766   (eval $ac_link) 2>&5
50767   ac_status=$?
50768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50769   (exit $ac_status); } &&
50770          { ac_try='test -s 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   eval "$as_ac_var=yes"
50777 else
50778   echo "$as_me: failed program was:" >&5
50779 sed 's/^/| /' conftest.$ac_ext >&5
50780
50781 eval "$as_ac_var=no"
50782 fi
50783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50784 fi
50785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50787 if test `eval echo '${'$as_ac_var'}'` = yes; then
50788   cat >>confdefs.h <<_ACEOF
50789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50790 _ACEOF
50791  ac_XPG2funcs=yes
50792 else
50793   ac_XPG2funcs=no
50794 fi
50795 done
50796
50797
50798     LIBS="$ac_save_LIBS"
50799
50800     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
50801 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
50802     if test x"$ac_has_iconv_h" = xyes &&
50803        test x"$ac_has_langinfo_h" = xyes &&
50804        test x"$ac_XPG2funcs" = xyes;
50805     then
50806       ac_XPG2_wchar_t=yes
50807     else
50808       ac_XPG2_wchar_t=no
50809     fi
50810     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
50811 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
50812
50813     # At the moment, only enable wchar_t specializations if all the
50814     # above support is present.
50815     if test x"$ac_isoC99_wchar_t" = xyes &&
50816        test x"$ac_XPG2_wchar_t" = xyes;
50817     then
50818       cat >>confdefs.h <<\_ACEOF
50819 #define _GLIBCXX_USE_WCHAR_T 1
50820 _ACEOF
50821
50822       enable_wchar_t=yes
50823     fi
50824   fi
50825   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
50826 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
50827   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
50828 echo "${ECHO_T}$enable_wchar_t" >&6
50829
50830     cat >>confdefs.h <<\_ACEOF
50831 #define HAVE_COPYSIGN 1
50832 _ACEOF
50833
50834     cat >>confdefs.h <<\_ACEOF
50835 #define HAVE_COPYSIGNF 1
50836 _ACEOF
50837
50838     cat >>confdefs.h <<\_ACEOF
50839 #define HAVE_FREXPF 1
50840 _ACEOF
50841
50842     cat >>confdefs.h <<\_ACEOF
50843 #define HAVE_HYPOT 1
50844 _ACEOF
50845
50846     case "$target" in
50847       *-hpux10*)
50848         cat >>confdefs.h <<\_ACEOF
50849 #define HAVE_FINITE 1
50850 _ACEOF
50851
50852         cat >>confdefs.h <<\_ACEOF
50853 #define HAVE_FINITEF 1
50854 _ACEOF
50855
50856         cat >>confdefs.h <<\_ACEOF
50857 #define HAVE_ISINF 1
50858 _ACEOF
50859
50860         cat >>confdefs.h <<\_ACEOF
50861 #define HAVE_ISINFF 1
50862 _ACEOF
50863
50864         cat >>confdefs.h <<\_ACEOF
50865 #define HAVE_ISNAN 1
50866 _ACEOF
50867
50868         cat >>confdefs.h <<\_ACEOF
50869 #define HAVE_ISNANF 1
50870 _ACEOF
50871
50872         ;;
50873     esac
50874     ;;
50875   *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
50876
50877
50878
50879
50880
50881
50882
50883
50884
50885
50886
50887
50888 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
50889       machine/endian.h machine/param.h sys/machine.h sys/types.h \
50890       fp.h locale.h float.h inttypes.h
50891 do
50892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50894   echo "$as_me:$LINENO: checking for $ac_header" >&5
50895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50897   echo $ECHO_N "(cached) $ECHO_C" >&6
50898 fi
50899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50901 else
50902   # Is the header compilable?
50903 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50905 cat >conftest.$ac_ext <<_ACEOF
50906 #line $LINENO "configure"
50907 /* confdefs.h.  */
50908 _ACEOF
50909 cat confdefs.h >>conftest.$ac_ext
50910 cat >>conftest.$ac_ext <<_ACEOF
50911 /* end confdefs.h.  */
50912 $ac_includes_default
50913 #include <$ac_header>
50914 _ACEOF
50915 rm -f conftest.$ac_objext
50916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50917   (eval $ac_compile) 2>&5
50918   ac_status=$?
50919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50920   (exit $ac_status); } &&
50921          { ac_try='test -s conftest.$ac_objext'
50922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50923   (eval $ac_try) 2>&5
50924   ac_status=$?
50925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50926   (exit $ac_status); }; }; then
50927   ac_header_compiler=yes
50928 else
50929   echo "$as_me: failed program was:" >&5
50930 sed 's/^/| /' conftest.$ac_ext >&5
50931
50932 ac_header_compiler=no
50933 fi
50934 rm -f conftest.$ac_objext conftest.$ac_ext
50935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50936 echo "${ECHO_T}$ac_header_compiler" >&6
50937
50938 # Is the header present?
50939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50941 cat >conftest.$ac_ext <<_ACEOF
50942 #line $LINENO "configure"
50943 /* confdefs.h.  */
50944 _ACEOF
50945 cat confdefs.h >>conftest.$ac_ext
50946 cat >>conftest.$ac_ext <<_ACEOF
50947 /* end confdefs.h.  */
50948 #include <$ac_header>
50949 _ACEOF
50950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50952   ac_status=$?
50953   grep -v '^ *+' conftest.er1 >conftest.err
50954   rm -f conftest.er1
50955   cat conftest.err >&5
50956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50957   (exit $ac_status); } >/dev/null; then
50958   if test -s conftest.err; then
50959     ac_cpp_err=$ac_c_preproc_warn_flag
50960   else
50961     ac_cpp_err=
50962   fi
50963 else
50964   ac_cpp_err=yes
50965 fi
50966 if test -z "$ac_cpp_err"; then
50967   ac_header_preproc=yes
50968 else
50969   echo "$as_me: failed program was:" >&5
50970 sed 's/^/| /' conftest.$ac_ext >&5
50971
50972   ac_header_preproc=no
50973 fi
50974 rm -f conftest.err conftest.$ac_ext
50975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50976 echo "${ECHO_T}$ac_header_preproc" >&6
50977
50978 # So?  What about this header?
50979 case $ac_header_compiler:$ac_header_preproc in
50980   yes:no )
50981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50985     (
50986       cat <<\_ASBOX
50987 ## ------------------------------------ ##
50988 ## Report this to bug-autoconf@gnu.org. ##
50989 ## ------------------------------------ ##
50990 _ASBOX
50991     ) |
50992       sed "s/^/$as_me: WARNING:     /" >&2
50993     ;;
50994   no:yes )
50995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50997     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51001     (
51002       cat <<\_ASBOX
51003 ## ------------------------------------ ##
51004 ## Report this to bug-autoconf@gnu.org. ##
51005 ## ------------------------------------ ##
51006 _ASBOX
51007     ) |
51008       sed "s/^/$as_me: WARNING:     /" >&2
51009     ;;
51010 esac
51011 echo "$as_me:$LINENO: checking for $ac_header" >&5
51012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51014   echo $ECHO_N "(cached) $ECHO_C" >&6
51015 else
51016   eval "$as_ac_Header=$ac_header_preproc"
51017 fi
51018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51020
51021 fi
51022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51023   cat >>confdefs.h <<_ACEOF
51024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51025 _ACEOF
51026
51027 fi
51028
51029 done
51030
51031     SECTION_FLAGS='-ffunction-sections -fdata-sections'
51032
51033
51034   # If we're not using GNU ld, then there's no point in even trying these
51035   # tests.  Check for that first.  We should have already tested for gld
51036   # by now (in libtool), but require it now just to be safe...
51037   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
51038   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
51039
51040
51041
51042   # The name set by libtool depends on the version of libtool.  Shame on us
51043   # for depending on an impl detail, but c'est la vie.  Older versions used
51044   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
51045   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
51046   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
51047   # set (hence we're using an older libtool), then set it.
51048   if test x${with_gnu_ld+set} != xset; then
51049     if test x${ac_cv_prog_gnu_ld+set} != xset; then
51050       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
51051       with_gnu_ld=no
51052     else
51053       with_gnu_ld=$ac_cv_prog_gnu_ld
51054     fi
51055   fi
51056
51057   # Start by getting the version number.  I think the libtool test already
51058   # does some of this, but throws away the result.
51059
51060   ldver=`$LD --version 2>/dev/null | head -1 | \
51061          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
51062
51063   glibcxx_gnu_ld_version=`echo $ldver | \
51064          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
51065
51066   # Set --gc-sections.
51067   if test "$with_gnu_ld" = "notbroken"; then
51068     # GNU ld it is!  Joy and bunny rabbits!
51069
51070     # All these tests are for C++; save the language and the compiler flags.
51071     # Need to do this so that g++ won't try to link in libstdc++
51072     ac_test_CFLAGS="${CFLAGS+set}"
51073     ac_save_CFLAGS="$CFLAGS"
51074     CFLAGS='-x c++  -Wl,--gc-sections'
51075
51076     # Check for -Wl,--gc-sections
51077     # XXX This test is broken at the moment, as symbols required for linking
51078     # are now in libsupc++ (not built yet).  In addition, this test has
51079     # cored on solaris in the past.  In addition, --gc-sections doesn't
51080     # really work at the moment (keeps on discarding used sections, first
51081     # .eh_frame and now some of the glibc sections for iconv).
51082     # Bzzzzt.  Thanks for playing, maybe next time.
51083     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
51084 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
51085     if test "$cross_compiling" = yes; then
51086   ac_sectionLDflags=yes
51087 else
51088   cat >conftest.$ac_ext <<_ACEOF
51089 #line $LINENO "configure"
51090 /* confdefs.h.  */
51091 _ACEOF
51092 cat confdefs.h >>conftest.$ac_ext
51093 cat >>conftest.$ac_ext <<_ACEOF
51094 /* end confdefs.h.  */
51095
51096      int main(void)
51097      {
51098        try { throw 1; }
51099        catch (...) { };
51100        return 0;
51101      }
51102
51103 _ACEOF
51104 rm -f conftest$ac_exeext
51105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51106   (eval $ac_link) 2>&5
51107   ac_status=$?
51108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51111   (eval $ac_try) 2>&5
51112   ac_status=$?
51113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51114   (exit $ac_status); }; }; then
51115   ac_sectionLDflags=yes
51116 else
51117   echo "$as_me: program exited with status $ac_status" >&5
51118 echo "$as_me: failed program was:" >&5
51119 sed 's/^/| /' conftest.$ac_ext >&5
51120
51121 ( exit $ac_status )
51122 ac_sectionLDflags=no
51123 fi
51124 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51125 fi
51126     if test "$ac_test_CFLAGS" = set; then
51127       CFLAGS="$ac_save_CFLAGS"
51128     else
51129       # this is the suspicious part
51130       CFLAGS=''
51131     fi
51132     if test "$ac_sectionLDflags" = "yes"; then
51133       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
51134     fi
51135     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
51136 echo "${ECHO_T}$ac_sectionLDflags" >&6
51137   fi
51138
51139   # Set linker optimization flags.
51140   if test x"$with_gnu_ld" = x"yes"; then
51141     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
51142   fi
51143
51144
51145
51146
51147
51148
51149 echo "$as_me:$LINENO: checking for main in -lm" >&5
51150 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
51151 if test "${ac_cv_lib_m_main+set}" = set; then
51152   echo $ECHO_N "(cached) $ECHO_C" >&6
51153 else
51154   ac_check_lib_save_LIBS=$LIBS
51155 LIBS="-lm  $LIBS"
51156 if test x$gcc_no_link = xyes; then
51157   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51159    { (exit 1); exit 1; }; }
51160 fi
51161 cat >conftest.$ac_ext <<_ACEOF
51162 #line $LINENO "configure"
51163 /* confdefs.h.  */
51164 _ACEOF
51165 cat confdefs.h >>conftest.$ac_ext
51166 cat >>conftest.$ac_ext <<_ACEOF
51167 /* end confdefs.h.  */
51168
51169
51170 int
51171 main ()
51172 {
51173 main ();
51174   ;
51175   return 0;
51176 }
51177 _ACEOF
51178 rm -f conftest.$ac_objext conftest$ac_exeext
51179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51180   (eval $ac_link) 2>&5
51181   ac_status=$?
51182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51183   (exit $ac_status); } &&
51184          { ac_try='test -s conftest$ac_exeext'
51185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51186   (eval $ac_try) 2>&5
51187   ac_status=$?
51188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51189   (exit $ac_status); }; }; then
51190   ac_cv_lib_m_main=yes
51191 else
51192   echo "$as_me: failed program was:" >&5
51193 sed 's/^/| /' conftest.$ac_ext >&5
51194
51195 ac_cv_lib_m_main=no
51196 fi
51197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51198 LIBS=$ac_check_lib_save_LIBS
51199 fi
51200 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
51201 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
51202 if test $ac_cv_lib_m_main = yes; then
51203   cat >>confdefs.h <<_ACEOF
51204 #define HAVE_LIBM 1
51205 _ACEOF
51206
51207   LIBS="-lm $LIBS"
51208
51209 fi
51210
51211
51212 for ac_func in copysignf
51213 do
51214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51215 echo "$as_me:$LINENO: checking for $ac_func" >&5
51216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51217 if eval "test \"\${$as_ac_var+set}\" = set"; then
51218   echo $ECHO_N "(cached) $ECHO_C" >&6
51219 else
51220   if test x$gcc_no_link = xyes; then
51221   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51222 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51223    { (exit 1); exit 1; }; }
51224 fi
51225 cat >conftest.$ac_ext <<_ACEOF
51226 #line $LINENO "configure"
51227 /* confdefs.h.  */
51228 _ACEOF
51229 cat confdefs.h >>conftest.$ac_ext
51230 cat >>conftest.$ac_ext <<_ACEOF
51231 /* end confdefs.h.  */
51232 /* System header to define __stub macros and hopefully few prototypes,
51233     which can conflict with char $ac_func (); below.
51234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51235     <limits.h> exists even on freestanding compilers.  */
51236 #ifdef __STDC__
51237 # include <limits.h>
51238 #else
51239 # include <assert.h>
51240 #endif
51241 /* Override any gcc2 internal prototype to avoid an error.  */
51242 #ifdef __cplusplus
51243 extern "C"
51244 {
51245 #endif
51246 /* We use char because int might match the return type of a gcc2
51247    builtin and then its argument prototype would still apply.  */
51248 char $ac_func ();
51249 /* The GNU C library defines this for functions which it implements
51250     to always fail with ENOSYS.  Some functions are actually named
51251     something starting with __ and the normal name is an alias.  */
51252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51253 choke me
51254 #else
51255 char (*f) () = $ac_func;
51256 #endif
51257 #ifdef __cplusplus
51258 }
51259 #endif
51260
51261 int
51262 main ()
51263 {
51264 return f != $ac_func;
51265   ;
51266   return 0;
51267 }
51268 _ACEOF
51269 rm -f conftest.$ac_objext conftest$ac_exeext
51270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51271   (eval $ac_link) 2>&5
51272   ac_status=$?
51273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51274   (exit $ac_status); } &&
51275          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
51282 else
51283   echo "$as_me: failed program was:" >&5
51284 sed 's/^/| /' conftest.$ac_ext >&5
51285
51286 eval "$as_ac_var=no"
51287 fi
51288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51289 fi
51290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51292 if test `eval echo '${'$as_ac_var'}'` = yes; then
51293   cat >>confdefs.h <<_ACEOF
51294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51295 _ACEOF
51296
51297 else
51298   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
51299 fi
51300 done
51301
51302
51303
51304 for ac_func in __signbit
51305 do
51306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51307 echo "$as_me:$LINENO: checking for $ac_func" >&5
51308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51309 if eval "test \"\${$as_ac_var+set}\" = set"; then
51310   echo $ECHO_N "(cached) $ECHO_C" >&6
51311 else
51312   if test x$gcc_no_link = xyes; then
51313   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51314 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51315    { (exit 1); exit 1; }; }
51316 fi
51317 cat >conftest.$ac_ext <<_ACEOF
51318 #line $LINENO "configure"
51319 /* confdefs.h.  */
51320 _ACEOF
51321 cat confdefs.h >>conftest.$ac_ext
51322 cat >>conftest.$ac_ext <<_ACEOF
51323 /* end confdefs.h.  */
51324 /* System header to define __stub macros and hopefully few prototypes,
51325     which can conflict with char $ac_func (); below.
51326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51327     <limits.h> exists even on freestanding compilers.  */
51328 #ifdef __STDC__
51329 # include <limits.h>
51330 #else
51331 # include <assert.h>
51332 #endif
51333 /* Override any gcc2 internal prototype to avoid an error.  */
51334 #ifdef __cplusplus
51335 extern "C"
51336 {
51337 #endif
51338 /* We use char because int might match the return type of a gcc2
51339    builtin and then its argument prototype would still apply.  */
51340 char $ac_func ();
51341 /* The GNU C library defines this for functions which it implements
51342     to always fail with ENOSYS.  Some functions are actually named
51343     something starting with __ and the normal name is an alias.  */
51344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51345 choke me
51346 #else
51347 char (*f) () = $ac_func;
51348 #endif
51349 #ifdef __cplusplus
51350 }
51351 #endif
51352
51353 int
51354 main ()
51355 {
51356 return f != $ac_func;
51357   ;
51358   return 0;
51359 }
51360 _ACEOF
51361 rm -f conftest.$ac_objext conftest$ac_exeext
51362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51363   (eval $ac_link) 2>&5
51364   ac_status=$?
51365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51366   (exit $ac_status); } &&
51367          { ac_try='test -s conftest$ac_exeext'
51368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51369   (eval $ac_try) 2>&5
51370   ac_status=$?
51371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51372   (exit $ac_status); }; }; then
51373   eval "$as_ac_var=yes"
51374 else
51375   echo "$as_me: failed program was:" >&5
51376 sed 's/^/| /' conftest.$ac_ext >&5
51377
51378 eval "$as_ac_var=no"
51379 fi
51380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51381 fi
51382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51384 if test `eval echo '${'$as_ac_var'}'` = yes; then
51385   cat >>confdefs.h <<_ACEOF
51386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51387 _ACEOF
51388
51389 else
51390   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
51391 fi
51392 done
51393
51394
51395 for ac_func in __signbitf
51396 do
51397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51398 echo "$as_me:$LINENO: checking for $ac_func" >&5
51399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51400 if eval "test \"\${$as_ac_var+set}\" = set"; then
51401   echo $ECHO_N "(cached) $ECHO_C" >&6
51402 else
51403   if test x$gcc_no_link = xyes; then
51404   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51405 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51406    { (exit 1); exit 1; }; }
51407 fi
51408 cat >conftest.$ac_ext <<_ACEOF
51409 #line $LINENO "configure"
51410 /* confdefs.h.  */
51411 _ACEOF
51412 cat confdefs.h >>conftest.$ac_ext
51413 cat >>conftest.$ac_ext <<_ACEOF
51414 /* end confdefs.h.  */
51415 /* System header to define __stub macros and hopefully few prototypes,
51416     which can conflict with char $ac_func (); below.
51417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51418     <limits.h> exists even on freestanding compilers.  */
51419 #ifdef __STDC__
51420 # include <limits.h>
51421 #else
51422 # include <assert.h>
51423 #endif
51424 /* Override any gcc2 internal prototype to avoid an error.  */
51425 #ifdef __cplusplus
51426 extern "C"
51427 {
51428 #endif
51429 /* We use char because int might match the return type of a gcc2
51430    builtin and then its argument prototype would still apply.  */
51431 char $ac_func ();
51432 /* The GNU C library defines this for functions which it implements
51433     to always fail with ENOSYS.  Some functions are actually named
51434     something starting with __ and the normal name is an alias.  */
51435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51436 choke me
51437 #else
51438 char (*f) () = $ac_func;
51439 #endif
51440 #ifdef __cplusplus
51441 }
51442 #endif
51443
51444 int
51445 main ()
51446 {
51447 return f != $ac_func;
51448   ;
51449   return 0;
51450 }
51451 _ACEOF
51452 rm -f conftest.$ac_objext conftest$ac_exeext
51453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51454   (eval $ac_link) 2>&5
51455   ac_status=$?
51456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51457   (exit $ac_status); } &&
51458          { ac_try='test -s conftest$ac_exeext'
51459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51460   (eval $ac_try) 2>&5
51461   ac_status=$?
51462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51463   (exit $ac_status); }; }; then
51464   eval "$as_ac_var=yes"
51465 else
51466   echo "$as_me: failed program was:" >&5
51467 sed 's/^/| /' conftest.$ac_ext >&5
51468
51469 eval "$as_ac_var=no"
51470 fi
51471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51472 fi
51473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51475 if test `eval echo '${'$as_ac_var'}'` = yes; then
51476   cat >>confdefs.h <<_ACEOF
51477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51478 _ACEOF
51479
51480 else
51481   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
51482 fi
51483 done
51484
51485
51486           if test x$ac_cv_func_copysignl = x"yes"; then
51487
51488 for ac_func in __signbitl
51489 do
51490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51491 echo "$as_me:$LINENO: checking for $ac_func" >&5
51492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51493 if eval "test \"\${$as_ac_var+set}\" = set"; then
51494   echo $ECHO_N "(cached) $ECHO_C" >&6
51495 else
51496   if test x$gcc_no_link = xyes; then
51497   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51499    { (exit 1); exit 1; }; }
51500 fi
51501 cat >conftest.$ac_ext <<_ACEOF
51502 #line $LINENO "configure"
51503 /* confdefs.h.  */
51504 _ACEOF
51505 cat confdefs.h >>conftest.$ac_ext
51506 cat >>conftest.$ac_ext <<_ACEOF
51507 /* end confdefs.h.  */
51508 /* System header to define __stub macros and hopefully few prototypes,
51509     which can conflict with char $ac_func (); below.
51510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51511     <limits.h> exists even on freestanding compilers.  */
51512 #ifdef __STDC__
51513 # include <limits.h>
51514 #else
51515 # include <assert.h>
51516 #endif
51517 /* Override any gcc2 internal prototype to avoid an error.  */
51518 #ifdef __cplusplus
51519 extern "C"
51520 {
51521 #endif
51522 /* We use char because int might match the return type of a gcc2
51523    builtin and then its argument prototype would still apply.  */
51524 char $ac_func ();
51525 /* The GNU C library defines this for functions which it implements
51526     to always fail with ENOSYS.  Some functions are actually named
51527     something starting with __ and the normal name is an alias.  */
51528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51529 choke me
51530 #else
51531 char (*f) () = $ac_func;
51532 #endif
51533 #ifdef __cplusplus
51534 }
51535 #endif
51536
51537 int
51538 main ()
51539 {
51540 return f != $ac_func;
51541   ;
51542   return 0;
51543 }
51544 _ACEOF
51545 rm -f conftest.$ac_objext conftest$ac_exeext
51546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51547   (eval $ac_link) 2>&5
51548   ac_status=$?
51549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51550   (exit $ac_status); } &&
51551          { ac_try='test -s conftest$ac_exeext'
51552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51553   (eval $ac_try) 2>&5
51554   ac_status=$?
51555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51556   (exit $ac_status); }; }; then
51557   eval "$as_ac_var=yes"
51558 else
51559   echo "$as_me: failed program was:" >&5
51560 sed 's/^/| /' conftest.$ac_ext >&5
51561
51562 eval "$as_ac_var=no"
51563 fi
51564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51565 fi
51566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51568 if test `eval echo '${'$as_ac_var'}'` = yes; then
51569   cat >>confdefs.h <<_ACEOF
51570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51571 _ACEOF
51572
51573 else
51574   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51575 fi
51576 done
51577
51578   fi
51579
51580   # XXX Review this.  Nothing uses it.
51581   if test -n "$LIBMATHOBJS"; then
51582     need_libmath=yes
51583   fi
51584
51585
51586
51587   # Test wchar.h for mbstate_t, which is needed for char_traits and
51588   # others even if wchar_t support is not on.
51589   echo "$as_me:$LINENO: checking for mbstate_t" >&5
51590 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51591   cat >conftest.$ac_ext <<_ACEOF
51592 #line $LINENO "configure"
51593 /* confdefs.h.  */
51594 _ACEOF
51595 cat confdefs.h >>conftest.$ac_ext
51596 cat >>conftest.$ac_ext <<_ACEOF
51597 /* end confdefs.h.  */
51598 #include <wchar.h>
51599 int
51600 main ()
51601 {
51602 mbstate_t teststate;
51603   ;
51604   return 0;
51605 }
51606 _ACEOF
51607 rm -f conftest.$ac_objext
51608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51609   (eval $ac_compile) 2>&5
51610   ac_status=$?
51611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51612   (exit $ac_status); } &&
51613          { ac_try='test -s conftest.$ac_objext'
51614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51615   (eval $ac_try) 2>&5
51616   ac_status=$?
51617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51618   (exit $ac_status); }; }; then
51619   have_mbstate_t=yes
51620 else
51621   echo "$as_me: failed program was:" >&5
51622 sed 's/^/| /' conftest.$ac_ext >&5
51623
51624 have_mbstate_t=no
51625 fi
51626 rm -f conftest.$ac_objext conftest.$ac_ext
51627   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51628 echo "${ECHO_T}$have_mbstate_t" >&6
51629   if test x"$have_mbstate_t" = xyes; then
51630     cat >>confdefs.h <<\_ACEOF
51631 #define HAVE_MBSTATE_T 1
51632 _ACEOF
51633
51634   fi
51635
51636   # Sanity check for existence of ISO C99 headers for extended encoding.
51637
51638 for ac_header in wchar.h
51639 do
51640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51642   echo "$as_me:$LINENO: checking for $ac_header" >&5
51643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51645   echo $ECHO_N "(cached) $ECHO_C" >&6
51646 fi
51647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51649 else
51650   # Is the header compilable?
51651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51653 cat >conftest.$ac_ext <<_ACEOF
51654 #line $LINENO "configure"
51655 /* confdefs.h.  */
51656 _ACEOF
51657 cat confdefs.h >>conftest.$ac_ext
51658 cat >>conftest.$ac_ext <<_ACEOF
51659 /* end confdefs.h.  */
51660 $ac_includes_default
51661 #include <$ac_header>
51662 _ACEOF
51663 rm -f conftest.$ac_objext
51664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51665   (eval $ac_compile) 2>&5
51666   ac_status=$?
51667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51668   (exit $ac_status); } &&
51669          { ac_try='test -s conftest.$ac_objext'
51670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51671   (eval $ac_try) 2>&5
51672   ac_status=$?
51673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51674   (exit $ac_status); }; }; then
51675   ac_header_compiler=yes
51676 else
51677   echo "$as_me: failed program was:" >&5
51678 sed 's/^/| /' conftest.$ac_ext >&5
51679
51680 ac_header_compiler=no
51681 fi
51682 rm -f conftest.$ac_objext conftest.$ac_ext
51683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51684 echo "${ECHO_T}$ac_header_compiler" >&6
51685
51686 # Is the header present?
51687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51689 cat >conftest.$ac_ext <<_ACEOF
51690 #line $LINENO "configure"
51691 /* confdefs.h.  */
51692 _ACEOF
51693 cat confdefs.h >>conftest.$ac_ext
51694 cat >>conftest.$ac_ext <<_ACEOF
51695 /* end confdefs.h.  */
51696 #include <$ac_header>
51697 _ACEOF
51698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51700   ac_status=$?
51701   grep -v '^ *+' conftest.er1 >conftest.err
51702   rm -f conftest.er1
51703   cat conftest.err >&5
51704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51705   (exit $ac_status); } >/dev/null; then
51706   if test -s conftest.err; then
51707     ac_cpp_err=$ac_c_preproc_warn_flag
51708   else
51709     ac_cpp_err=
51710   fi
51711 else
51712   ac_cpp_err=yes
51713 fi
51714 if test -z "$ac_cpp_err"; then
51715   ac_header_preproc=yes
51716 else
51717   echo "$as_me: failed program was:" >&5
51718 sed 's/^/| /' conftest.$ac_ext >&5
51719
51720   ac_header_preproc=no
51721 fi
51722 rm -f conftest.err conftest.$ac_ext
51723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51724 echo "${ECHO_T}$ac_header_preproc" >&6
51725
51726 # So?  What about this header?
51727 case $ac_header_compiler:$ac_header_preproc in
51728   yes:no )
51729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51733     (
51734       cat <<\_ASBOX
51735 ## ------------------------------------ ##
51736 ## Report this to bug-autoconf@gnu.org. ##
51737 ## ------------------------------------ ##
51738 _ASBOX
51739     ) |
51740       sed "s/^/$as_me: WARNING:     /" >&2
51741     ;;
51742   no:yes )
51743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51745     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51749     (
51750       cat <<\_ASBOX
51751 ## ------------------------------------ ##
51752 ## Report this to bug-autoconf@gnu.org. ##
51753 ## ------------------------------------ ##
51754 _ASBOX
51755     ) |
51756       sed "s/^/$as_me: WARNING:     /" >&2
51757     ;;
51758 esac
51759 echo "$as_me:$LINENO: checking for $ac_header" >&5
51760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51762   echo $ECHO_N "(cached) $ECHO_C" >&6
51763 else
51764   eval "$as_ac_Header=$ac_header_preproc"
51765 fi
51766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51768
51769 fi
51770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51771   cat >>confdefs.h <<_ACEOF
51772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51773 _ACEOF
51774  ac_has_wchar_h=yes
51775 else
51776   ac_has_wchar_h=no
51777 fi
51778
51779 done
51780
51781
51782 for ac_header in wctype.h
51783 do
51784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51786   echo "$as_me:$LINENO: checking for $ac_header" >&5
51787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51789   echo $ECHO_N "(cached) $ECHO_C" >&6
51790 fi
51791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51793 else
51794   # Is the header compilable?
51795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51797 cat >conftest.$ac_ext <<_ACEOF
51798 #line $LINENO "configure"
51799 /* confdefs.h.  */
51800 _ACEOF
51801 cat confdefs.h >>conftest.$ac_ext
51802 cat >>conftest.$ac_ext <<_ACEOF
51803 /* end confdefs.h.  */
51804 $ac_includes_default
51805 #include <$ac_header>
51806 _ACEOF
51807 rm -f conftest.$ac_objext
51808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51809   (eval $ac_compile) 2>&5
51810   ac_status=$?
51811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51812   (exit $ac_status); } &&
51813          { ac_try='test -s conftest.$ac_objext'
51814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51815   (eval $ac_try) 2>&5
51816   ac_status=$?
51817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51818   (exit $ac_status); }; }; then
51819   ac_header_compiler=yes
51820 else
51821   echo "$as_me: failed program was:" >&5
51822 sed 's/^/| /' conftest.$ac_ext >&5
51823
51824 ac_header_compiler=no
51825 fi
51826 rm -f conftest.$ac_objext conftest.$ac_ext
51827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51828 echo "${ECHO_T}$ac_header_compiler" >&6
51829
51830 # Is the header present?
51831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51833 cat >conftest.$ac_ext <<_ACEOF
51834 #line $LINENO "configure"
51835 /* confdefs.h.  */
51836 _ACEOF
51837 cat confdefs.h >>conftest.$ac_ext
51838 cat >>conftest.$ac_ext <<_ACEOF
51839 /* end confdefs.h.  */
51840 #include <$ac_header>
51841 _ACEOF
51842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51843   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51844   ac_status=$?
51845   grep -v '^ *+' conftest.er1 >conftest.err
51846   rm -f conftest.er1
51847   cat conftest.err >&5
51848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51849   (exit $ac_status); } >/dev/null; then
51850   if test -s conftest.err; then
51851     ac_cpp_err=$ac_c_preproc_warn_flag
51852   else
51853     ac_cpp_err=
51854   fi
51855 else
51856   ac_cpp_err=yes
51857 fi
51858 if test -z "$ac_cpp_err"; then
51859   ac_header_preproc=yes
51860 else
51861   echo "$as_me: failed program was:" >&5
51862 sed 's/^/| /' conftest.$ac_ext >&5
51863
51864   ac_header_preproc=no
51865 fi
51866 rm -f conftest.err conftest.$ac_ext
51867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51868 echo "${ECHO_T}$ac_header_preproc" >&6
51869
51870 # So?  What about this header?
51871 case $ac_header_compiler:$ac_header_preproc in
51872   yes:no )
51873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51877     (
51878       cat <<\_ASBOX
51879 ## ------------------------------------ ##
51880 ## Report this to bug-autoconf@gnu.org. ##
51881 ## ------------------------------------ ##
51882 _ASBOX
51883     ) |
51884       sed "s/^/$as_me: WARNING:     /" >&2
51885     ;;
51886   no:yes )
51887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51889     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51893     (
51894       cat <<\_ASBOX
51895 ## ------------------------------------ ##
51896 ## Report this to bug-autoconf@gnu.org. ##
51897 ## ------------------------------------ ##
51898 _ASBOX
51899     ) |
51900       sed "s/^/$as_me: WARNING:     /" >&2
51901     ;;
51902 esac
51903 echo "$as_me:$LINENO: checking for $ac_header" >&5
51904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51906   echo $ECHO_N "(cached) $ECHO_C" >&6
51907 else
51908   eval "$as_ac_Header=$ac_header_preproc"
51909 fi
51910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51912
51913 fi
51914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51915   cat >>confdefs.h <<_ACEOF
51916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51917 _ACEOF
51918  ac_has_wctype_h=yes
51919 else
51920   ac_has_wctype_h=no
51921 fi
51922
51923 done
51924
51925
51926   # Only continue checking if the ISO C99 headers exist and support is on.
51927   if test x"$ac_has_wchar_h" = xyes &&
51928      test x"$ac_has_wctype_h" = xyes &&
51929      test x"$enable_c_mbchar" != xno; then
51930
51931     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51932     # numeric_limits can instantiate type_traits<wchar_t>
51933     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51934 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51935     cat >conftest.$ac_ext <<_ACEOF
51936 #line $LINENO "configure"
51937 /* confdefs.h.  */
51938 _ACEOF
51939 cat confdefs.h >>conftest.$ac_ext
51940 cat >>conftest.$ac_ext <<_ACEOF
51941 /* end confdefs.h.  */
51942 #include <wchar.h>
51943 int
51944 main ()
51945 {
51946 int i = WCHAR_MIN; int j = WCHAR_MAX;
51947   ;
51948   return 0;
51949 }
51950 _ACEOF
51951 rm -f conftest.$ac_objext
51952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51953   (eval $ac_compile) 2>&5
51954   ac_status=$?
51955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51956   (exit $ac_status); } &&
51957          { ac_try='test -s conftest.$ac_objext'
51958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51959   (eval $ac_try) 2>&5
51960   ac_status=$?
51961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51962   (exit $ac_status); }; }; then
51963   has_wchar_minmax=yes
51964 else
51965   echo "$as_me: failed program was:" >&5
51966 sed 's/^/| /' conftest.$ac_ext >&5
51967
51968 has_wchar_minmax=no
51969 fi
51970 rm -f conftest.$ac_objext conftest.$ac_ext
51971     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51972 echo "${ECHO_T}$has_wchar_minmax" >&6
51973
51974     # Test wchar.h for WEOF, which is what we use to determine whether
51975     # to specialize for char_traits<wchar_t> or not.
51976     echo "$as_me:$LINENO: checking for WEOF" >&5
51977 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51978     cat >conftest.$ac_ext <<_ACEOF
51979 #line $LINENO "configure"
51980 /* confdefs.h.  */
51981 _ACEOF
51982 cat confdefs.h >>conftest.$ac_ext
51983 cat >>conftest.$ac_ext <<_ACEOF
51984 /* end confdefs.h.  */
51985
51986       #include <wchar.h>
51987       #include <stddef.h>
51988 int
51989 main ()
51990 {
51991 wint_t i = WEOF;
51992   ;
51993   return 0;
51994 }
51995 _ACEOF
51996 rm -f conftest.$ac_objext
51997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51998   (eval $ac_compile) 2>&5
51999   ac_status=$?
52000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52001   (exit $ac_status); } &&
52002          { ac_try='test -s conftest.$ac_objext'
52003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52004   (eval $ac_try) 2>&5
52005   ac_status=$?
52006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52007   (exit $ac_status); }; }; then
52008   has_weof=yes
52009 else
52010   echo "$as_me: failed program was:" >&5
52011 sed 's/^/| /' conftest.$ac_ext >&5
52012
52013 has_weof=no
52014 fi
52015 rm -f conftest.$ac_objext conftest.$ac_ext
52016     echo "$as_me:$LINENO: result: $has_weof" >&5
52017 echo "${ECHO_T}$has_weof" >&6
52018
52019     # Tests for wide character functions used in char_traits<wchar_t>.
52020     ac_wfuncs=yes
52021
52022
52023
52024
52025
52026
52027 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
52028 do
52029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52030 echo "$as_me:$LINENO: checking for $ac_func" >&5
52031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52032 if eval "test \"\${$as_ac_var+set}\" = set"; then
52033   echo $ECHO_N "(cached) $ECHO_C" >&6
52034 else
52035   if test x$gcc_no_link = xyes; then
52036   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52037 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52038    { (exit 1); exit 1; }; }
52039 fi
52040 cat >conftest.$ac_ext <<_ACEOF
52041 #line $LINENO "configure"
52042 /* confdefs.h.  */
52043 _ACEOF
52044 cat confdefs.h >>conftest.$ac_ext
52045 cat >>conftest.$ac_ext <<_ACEOF
52046 /* end confdefs.h.  */
52047 /* System header to define __stub macros and hopefully few prototypes,
52048     which can conflict with char $ac_func (); below.
52049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52050     <limits.h> exists even on freestanding compilers.  */
52051 #ifdef __STDC__
52052 # include <limits.h>
52053 #else
52054 # include <assert.h>
52055 #endif
52056 /* Override any gcc2 internal prototype to avoid an error.  */
52057 #ifdef __cplusplus
52058 extern "C"
52059 {
52060 #endif
52061 /* We use char because int might match the return type of a gcc2
52062    builtin and then its argument prototype would still apply.  */
52063 char $ac_func ();
52064 /* The GNU C library defines this for functions which it implements
52065     to always fail with ENOSYS.  Some functions are actually named
52066     something starting with __ and the normal name is an alias.  */
52067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52068 choke me
52069 #else
52070 char (*f) () = $ac_func;
52071 #endif
52072 #ifdef __cplusplus
52073 }
52074 #endif
52075
52076 int
52077 main ()
52078 {
52079 return f != $ac_func;
52080   ;
52081   return 0;
52082 }
52083 _ACEOF
52084 rm -f conftest.$ac_objext conftest$ac_exeext
52085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52086   (eval $ac_link) 2>&5
52087   ac_status=$?
52088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52089   (exit $ac_status); } &&
52090          { ac_try='test -s conftest$ac_exeext'
52091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52092   (eval $ac_try) 2>&5
52093   ac_status=$?
52094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52095   (exit $ac_status); }; }; then
52096   eval "$as_ac_var=yes"
52097 else
52098   echo "$as_me: failed program was:" >&5
52099 sed 's/^/| /' conftest.$ac_ext >&5
52100
52101 eval "$as_ac_var=no"
52102 fi
52103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52104 fi
52105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52107 if test `eval echo '${'$as_ac_var'}'` = yes; then
52108   cat >>confdefs.h <<_ACEOF
52109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52110 _ACEOF
52111
52112 else
52113   ac_wfuncs=no
52114 fi
52115 done
52116
52117
52118     # Checks for names injected into std:: by the c_std headers.
52119
52120
52121
52122
52123
52124
52125
52126
52127
52128
52129
52130
52131
52132
52133
52134
52135
52136
52137
52138
52139
52140
52141
52142
52143
52144
52145
52146
52147
52148
52149
52150
52151
52152
52153
52154
52155
52156
52157
52158
52159
52160
52161
52162
52163
52164
52165 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
52166     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
52167     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
52168     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
52169     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
52170     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
52171 do
52172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52173 echo "$as_me:$LINENO: checking for $ac_func" >&5
52174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52175 if eval "test \"\${$as_ac_var+set}\" = set"; then
52176   echo $ECHO_N "(cached) $ECHO_C" >&6
52177 else
52178   if test x$gcc_no_link = xyes; then
52179   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52181    { (exit 1); exit 1; }; }
52182 fi
52183 cat >conftest.$ac_ext <<_ACEOF
52184 #line $LINENO "configure"
52185 /* confdefs.h.  */
52186 _ACEOF
52187 cat confdefs.h >>conftest.$ac_ext
52188 cat >>conftest.$ac_ext <<_ACEOF
52189 /* end confdefs.h.  */
52190 /* System header to define __stub macros and hopefully few prototypes,
52191     which can conflict with char $ac_func (); below.
52192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52193     <limits.h> exists even on freestanding compilers.  */
52194 #ifdef __STDC__
52195 # include <limits.h>
52196 #else
52197 # include <assert.h>
52198 #endif
52199 /* Override any gcc2 internal prototype to avoid an error.  */
52200 #ifdef __cplusplus
52201 extern "C"
52202 {
52203 #endif
52204 /* We use char because int might match the return type of a gcc2
52205    builtin and then its argument prototype would still apply.  */
52206 char $ac_func ();
52207 /* The GNU C library defines this for functions which it implements
52208     to always fail with ENOSYS.  Some functions are actually named
52209     something starting with __ and the normal name is an alias.  */
52210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52211 choke me
52212 #else
52213 char (*f) () = $ac_func;
52214 #endif
52215 #ifdef __cplusplus
52216 }
52217 #endif
52218
52219 int
52220 main ()
52221 {
52222 return f != $ac_func;
52223   ;
52224   return 0;
52225 }
52226 _ACEOF
52227 rm -f conftest.$ac_objext conftest$ac_exeext
52228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52229   (eval $ac_link) 2>&5
52230   ac_status=$?
52231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52232   (exit $ac_status); } &&
52233          { ac_try='test -s conftest$ac_exeext'
52234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52235   (eval $ac_try) 2>&5
52236   ac_status=$?
52237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52238   (exit $ac_status); }; }; then
52239   eval "$as_ac_var=yes"
52240 else
52241   echo "$as_me: failed program was:" >&5
52242 sed 's/^/| /' conftest.$ac_ext >&5
52243
52244 eval "$as_ac_var=no"
52245 fi
52246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52247 fi
52248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52250 if test `eval echo '${'$as_ac_var'}'` = yes; then
52251   cat >>confdefs.h <<_ACEOF
52252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52253 _ACEOF
52254
52255 else
52256   ac_wfuncs=no
52257 fi
52258 done
52259
52260
52261     # Checks for wide character functions that are not required
52262     # for basic wchar_t support.  Don't disable support if they are missing.
52263     # Injection of these is wrapped with guard macros.
52264
52265
52266
52267
52268
52269 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
52270 do
52271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52272 echo "$as_me:$LINENO: checking for $ac_func" >&5
52273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52274 if eval "test \"\${$as_ac_var+set}\" = set"; then
52275   echo $ECHO_N "(cached) $ECHO_C" >&6
52276 else
52277   if test x$gcc_no_link = xyes; then
52278   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52280    { (exit 1); exit 1; }; }
52281 fi
52282 cat >conftest.$ac_ext <<_ACEOF
52283 #line $LINENO "configure"
52284 /* confdefs.h.  */
52285 _ACEOF
52286 cat confdefs.h >>conftest.$ac_ext
52287 cat >>conftest.$ac_ext <<_ACEOF
52288 /* end confdefs.h.  */
52289 /* System header to define __stub macros and hopefully few prototypes,
52290     which can conflict with char $ac_func (); below.
52291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52292     <limits.h> exists even on freestanding compilers.  */
52293 #ifdef __STDC__
52294 # include <limits.h>
52295 #else
52296 # include <assert.h>
52297 #endif
52298 /* Override any gcc2 internal prototype to avoid an error.  */
52299 #ifdef __cplusplus
52300 extern "C"
52301 {
52302 #endif
52303 /* We use char because int might match the return type of a gcc2
52304    builtin and then its argument prototype would still apply.  */
52305 char $ac_func ();
52306 /* The GNU C library defines this for functions which it implements
52307     to always fail with ENOSYS.  Some functions are actually named
52308     something starting with __ and the normal name is an alias.  */
52309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52310 choke me
52311 #else
52312 char (*f) () = $ac_func;
52313 #endif
52314 #ifdef __cplusplus
52315 }
52316 #endif
52317
52318 int
52319 main ()
52320 {
52321 return f != $ac_func;
52322   ;
52323   return 0;
52324 }
52325 _ACEOF
52326 rm -f conftest.$ac_objext conftest$ac_exeext
52327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52328   (eval $ac_link) 2>&5
52329   ac_status=$?
52330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52331   (exit $ac_status); } &&
52332          { ac_try='test -s conftest$ac_exeext'
52333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52334   (eval $ac_try) 2>&5
52335   ac_status=$?
52336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52337   (exit $ac_status); }; }; then
52338   eval "$as_ac_var=yes"
52339 else
52340   echo "$as_me: failed program was:" >&5
52341 sed 's/^/| /' conftest.$ac_ext >&5
52342
52343 eval "$as_ac_var=no"
52344 fi
52345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52346 fi
52347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52349 if test `eval echo '${'$as_ac_var'}'` = yes; then
52350   cat >>confdefs.h <<_ACEOF
52351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52352 _ACEOF
52353
52354 fi
52355 done
52356
52357
52358     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
52359 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
52360     if test x"$has_weof" = xyes &&
52361        test x"$has_wchar_minmax" = xyes &&
52362        test x"$ac_wfuncs" = xyes;
52363     then
52364       ac_isoC99_wchar_t=yes
52365     else
52366       ac_isoC99_wchar_t=no
52367     fi
52368     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
52369 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
52370
52371     # Use iconv for wchar_t to char conversions. As such, check for
52372     # X/Open Portability Guide, version 2 features (XPG2).
52373     if test "${ac_cv_header_iconv_h+set}" = set; then
52374   echo "$as_me:$LINENO: checking for iconv.h" >&5
52375 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52376 if test "${ac_cv_header_iconv_h+set}" = set; then
52377   echo $ECHO_N "(cached) $ECHO_C" >&6
52378 fi
52379 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52380 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52381 else
52382   # Is the header compilable?
52383 echo "$as_me:$LINENO: checking iconv.h usability" >&5
52384 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
52385 cat >conftest.$ac_ext <<_ACEOF
52386 #line $LINENO "configure"
52387 /* confdefs.h.  */
52388 _ACEOF
52389 cat confdefs.h >>conftest.$ac_ext
52390 cat >>conftest.$ac_ext <<_ACEOF
52391 /* end confdefs.h.  */
52392 $ac_includes_default
52393 #include <iconv.h>
52394 _ACEOF
52395 rm -f conftest.$ac_objext
52396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52397   (eval $ac_compile) 2>&5
52398   ac_status=$?
52399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52400   (exit $ac_status); } &&
52401          { ac_try='test -s conftest.$ac_objext'
52402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52403   (eval $ac_try) 2>&5
52404   ac_status=$?
52405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52406   (exit $ac_status); }; }; then
52407   ac_header_compiler=yes
52408 else
52409   echo "$as_me: failed program was:" >&5
52410 sed 's/^/| /' conftest.$ac_ext >&5
52411
52412 ac_header_compiler=no
52413 fi
52414 rm -f conftest.$ac_objext conftest.$ac_ext
52415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52416 echo "${ECHO_T}$ac_header_compiler" >&6
52417
52418 # Is the header present?
52419 echo "$as_me:$LINENO: checking iconv.h presence" >&5
52420 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
52421 cat >conftest.$ac_ext <<_ACEOF
52422 #line $LINENO "configure"
52423 /* confdefs.h.  */
52424 _ACEOF
52425 cat confdefs.h >>conftest.$ac_ext
52426 cat >>conftest.$ac_ext <<_ACEOF
52427 /* end confdefs.h.  */
52428 #include <iconv.h>
52429 _ACEOF
52430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52432   ac_status=$?
52433   grep -v '^ *+' conftest.er1 >conftest.err
52434   rm -f conftest.er1
52435   cat conftest.err >&5
52436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52437   (exit $ac_status); } >/dev/null; then
52438   if test -s conftest.err; then
52439     ac_cpp_err=$ac_c_preproc_warn_flag
52440   else
52441     ac_cpp_err=
52442   fi
52443 else
52444   ac_cpp_err=yes
52445 fi
52446 if test -z "$ac_cpp_err"; then
52447   ac_header_preproc=yes
52448 else
52449   echo "$as_me: failed program was:" >&5
52450 sed 's/^/| /' conftest.$ac_ext >&5
52451
52452   ac_header_preproc=no
52453 fi
52454 rm -f conftest.err conftest.$ac_ext
52455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52456 echo "${ECHO_T}$ac_header_preproc" >&6
52457
52458 # So?  What about this header?
52459 case $ac_header_compiler:$ac_header_preproc in
52460   yes:no )
52461     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52462 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52463     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52464 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52465     (
52466       cat <<\_ASBOX
52467 ## ------------------------------------ ##
52468 ## Report this to bug-autoconf@gnu.org. ##
52469 ## ------------------------------------ ##
52470 _ASBOX
52471     ) |
52472       sed "s/^/$as_me: WARNING:     /" >&2
52473     ;;
52474   no:yes )
52475     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52476 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52477     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
52478 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
52479     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52480 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52481     (
52482       cat <<\_ASBOX
52483 ## ------------------------------------ ##
52484 ## Report this to bug-autoconf@gnu.org. ##
52485 ## ------------------------------------ ##
52486 _ASBOX
52487     ) |
52488       sed "s/^/$as_me: WARNING:     /" >&2
52489     ;;
52490 esac
52491 echo "$as_me:$LINENO: checking for iconv.h" >&5
52492 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52493 if test "${ac_cv_header_iconv_h+set}" = set; then
52494   echo $ECHO_N "(cached) $ECHO_C" >&6
52495 else
52496   ac_cv_header_iconv_h=$ac_header_preproc
52497 fi
52498 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52499 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52500
52501 fi
52502 if test $ac_cv_header_iconv_h = yes; then
52503   ac_has_iconv_h=yes
52504 else
52505   ac_has_iconv_h=no
52506 fi
52507
52508
52509     if test "${ac_cv_header_langinfo_h+set}" = set; then
52510   echo "$as_me:$LINENO: checking for langinfo.h" >&5
52511 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52512 if test "${ac_cv_header_langinfo_h+set}" = set; then
52513   echo $ECHO_N "(cached) $ECHO_C" >&6
52514 fi
52515 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52516 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52517 else
52518   # Is the header compilable?
52519 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52520 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52521 cat >conftest.$ac_ext <<_ACEOF
52522 #line $LINENO "configure"
52523 /* confdefs.h.  */
52524 _ACEOF
52525 cat confdefs.h >>conftest.$ac_ext
52526 cat >>conftest.$ac_ext <<_ACEOF
52527 /* end confdefs.h.  */
52528 $ac_includes_default
52529 #include <langinfo.h>
52530 _ACEOF
52531 rm -f conftest.$ac_objext
52532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52533   (eval $ac_compile) 2>&5
52534   ac_status=$?
52535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52536   (exit $ac_status); } &&
52537          { ac_try='test -s conftest.$ac_objext'
52538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52539   (eval $ac_try) 2>&5
52540   ac_status=$?
52541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52542   (exit $ac_status); }; }; then
52543   ac_header_compiler=yes
52544 else
52545   echo "$as_me: failed program was:" >&5
52546 sed 's/^/| /' conftest.$ac_ext >&5
52547
52548 ac_header_compiler=no
52549 fi
52550 rm -f conftest.$ac_objext conftest.$ac_ext
52551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52552 echo "${ECHO_T}$ac_header_compiler" >&6
52553
52554 # Is the header present?
52555 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52556 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52557 cat >conftest.$ac_ext <<_ACEOF
52558 #line $LINENO "configure"
52559 /* confdefs.h.  */
52560 _ACEOF
52561 cat confdefs.h >>conftest.$ac_ext
52562 cat >>conftest.$ac_ext <<_ACEOF
52563 /* end confdefs.h.  */
52564 #include <langinfo.h>
52565 _ACEOF
52566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52568   ac_status=$?
52569   grep -v '^ *+' conftest.er1 >conftest.err
52570   rm -f conftest.er1
52571   cat conftest.err >&5
52572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52573   (exit $ac_status); } >/dev/null; then
52574   if test -s conftest.err; then
52575     ac_cpp_err=$ac_c_preproc_warn_flag
52576   else
52577     ac_cpp_err=
52578   fi
52579 else
52580   ac_cpp_err=yes
52581 fi
52582 if test -z "$ac_cpp_err"; then
52583   ac_header_preproc=yes
52584 else
52585   echo "$as_me: failed program was:" >&5
52586 sed 's/^/| /' conftest.$ac_ext >&5
52587
52588   ac_header_preproc=no
52589 fi
52590 rm -f conftest.err conftest.$ac_ext
52591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52592 echo "${ECHO_T}$ac_header_preproc" >&6
52593
52594 # So?  What about this header?
52595 case $ac_header_compiler:$ac_header_preproc in
52596   yes:no )
52597     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52598 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52599     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52600 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52601     (
52602       cat <<\_ASBOX
52603 ## ------------------------------------ ##
52604 ## Report this to bug-autoconf@gnu.org. ##
52605 ## ------------------------------------ ##
52606 _ASBOX
52607     ) |
52608       sed "s/^/$as_me: WARNING:     /" >&2
52609     ;;
52610   no:yes )
52611     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52612 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52613     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52614 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52615     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52616 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52617     (
52618       cat <<\_ASBOX
52619 ## ------------------------------------ ##
52620 ## Report this to bug-autoconf@gnu.org. ##
52621 ## ------------------------------------ ##
52622 _ASBOX
52623     ) |
52624       sed "s/^/$as_me: WARNING:     /" >&2
52625     ;;
52626 esac
52627 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52628 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52629 if test "${ac_cv_header_langinfo_h+set}" = set; then
52630   echo $ECHO_N "(cached) $ECHO_C" >&6
52631 else
52632   ac_cv_header_langinfo_h=$ac_header_preproc
52633 fi
52634 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52635 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52636
52637 fi
52638 if test $ac_cv_header_langinfo_h = yes; then
52639   ac_has_langinfo_h=yes
52640 else
52641   ac_has_langinfo_h=no
52642 fi
52643
52644
52645
52646     # Check for existence of libiconv.a providing XPG2 wchar_t support.
52647     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52648 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52649 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52650   echo $ECHO_N "(cached) $ECHO_C" >&6
52651 else
52652   ac_check_lib_save_LIBS=$LIBS
52653 LIBS="-liconv  $LIBS"
52654 if test x$gcc_no_link = xyes; then
52655   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52657    { (exit 1); exit 1; }; }
52658 fi
52659 cat >conftest.$ac_ext <<_ACEOF
52660 #line $LINENO "configure"
52661 /* confdefs.h.  */
52662 _ACEOF
52663 cat confdefs.h >>conftest.$ac_ext
52664 cat >>conftest.$ac_ext <<_ACEOF
52665 /* end confdefs.h.  */
52666
52667 /* Override any gcc2 internal prototype to avoid an error.  */
52668 #ifdef __cplusplus
52669 extern "C"
52670 #endif
52671 /* We use char because int might match the return type of a gcc2
52672    builtin and then its argument prototype would still apply.  */
52673 char iconv ();
52674 int
52675 main ()
52676 {
52677 iconv ();
52678   ;
52679   return 0;
52680 }
52681 _ACEOF
52682 rm -f conftest.$ac_objext conftest$ac_exeext
52683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52684   (eval $ac_link) 2>&5
52685   ac_status=$?
52686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52687   (exit $ac_status); } &&
52688          { ac_try='test -s conftest$ac_exeext'
52689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52690   (eval $ac_try) 2>&5
52691   ac_status=$?
52692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52693   (exit $ac_status); }; }; then
52694   ac_cv_lib_iconv_iconv=yes
52695 else
52696   echo "$as_me: failed program was:" >&5
52697 sed 's/^/| /' conftest.$ac_ext >&5
52698
52699 ac_cv_lib_iconv_iconv=no
52700 fi
52701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52702 LIBS=$ac_check_lib_save_LIBS
52703 fi
52704 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52705 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52706 if test $ac_cv_lib_iconv_iconv = yes; then
52707   libiconv="-liconv"
52708 fi
52709
52710     ac_save_LIBS="$LIBS"
52711     LIBS="$LIBS $libiconv"
52712
52713
52714
52715
52716
52717 for ac_func in iconv_open iconv_close iconv nl_langinfo
52718 do
52719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52720 echo "$as_me:$LINENO: checking for $ac_func" >&5
52721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52722 if eval "test \"\${$as_ac_var+set}\" = set"; then
52723   echo $ECHO_N "(cached) $ECHO_C" >&6
52724 else
52725   if test x$gcc_no_link = xyes; then
52726   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52727 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52728    { (exit 1); exit 1; }; }
52729 fi
52730 cat >conftest.$ac_ext <<_ACEOF
52731 #line $LINENO "configure"
52732 /* confdefs.h.  */
52733 _ACEOF
52734 cat confdefs.h >>conftest.$ac_ext
52735 cat >>conftest.$ac_ext <<_ACEOF
52736 /* end confdefs.h.  */
52737 /* System header to define __stub macros and hopefully few prototypes,
52738     which can conflict with char $ac_func (); below.
52739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52740     <limits.h> exists even on freestanding compilers.  */
52741 #ifdef __STDC__
52742 # include <limits.h>
52743 #else
52744 # include <assert.h>
52745 #endif
52746 /* Override any gcc2 internal prototype to avoid an error.  */
52747 #ifdef __cplusplus
52748 extern "C"
52749 {
52750 #endif
52751 /* We use char because int might match the return type of a gcc2
52752    builtin and then its argument prototype would still apply.  */
52753 char $ac_func ();
52754 /* The GNU C library defines this for functions which it implements
52755     to always fail with ENOSYS.  Some functions are actually named
52756     something starting with __ and the normal name is an alias.  */
52757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52758 choke me
52759 #else
52760 char (*f) () = $ac_func;
52761 #endif
52762 #ifdef __cplusplus
52763 }
52764 #endif
52765
52766 int
52767 main ()
52768 {
52769 return f != $ac_func;
52770   ;
52771   return 0;
52772 }
52773 _ACEOF
52774 rm -f conftest.$ac_objext conftest$ac_exeext
52775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52776   (eval $ac_link) 2>&5
52777   ac_status=$?
52778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52779   (exit $ac_status); } &&
52780          { ac_try='test -s conftest$ac_exeext'
52781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52782   (eval $ac_try) 2>&5
52783   ac_status=$?
52784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52785   (exit $ac_status); }; }; then
52786   eval "$as_ac_var=yes"
52787 else
52788   echo "$as_me: failed program was:" >&5
52789 sed 's/^/| /' conftest.$ac_ext >&5
52790
52791 eval "$as_ac_var=no"
52792 fi
52793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52794 fi
52795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52797 if test `eval echo '${'$as_ac_var'}'` = yes; then
52798   cat >>confdefs.h <<_ACEOF
52799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52800 _ACEOF
52801  ac_XPG2funcs=yes
52802 else
52803   ac_XPG2funcs=no
52804 fi
52805 done
52806
52807
52808     LIBS="$ac_save_LIBS"
52809
52810     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52811 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52812     if test x"$ac_has_iconv_h" = xyes &&
52813        test x"$ac_has_langinfo_h" = xyes &&
52814        test x"$ac_XPG2funcs" = xyes;
52815     then
52816       ac_XPG2_wchar_t=yes
52817     else
52818       ac_XPG2_wchar_t=no
52819     fi
52820     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52821 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52822
52823     # At the moment, only enable wchar_t specializations if all the
52824     # above support is present.
52825     if test x"$ac_isoC99_wchar_t" = xyes &&
52826        test x"$ac_XPG2_wchar_t" = xyes;
52827     then
52828       cat >>confdefs.h <<\_ACEOF
52829 #define _GLIBCXX_USE_WCHAR_T 1
52830 _ACEOF
52831
52832       enable_wchar_t=yes
52833     fi
52834   fi
52835   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52836 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52837   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52838 echo "${ECHO_T}$enable_wchar_t" >&6
52839
52840
52841     # For LFS.
52842     cat >>confdefs.h <<\_ACEOF
52843 #define HAVE_INT64_T 1
52844 _ACEOF
52845
52846     cat >>confdefs.h <<\_ACEOF
52847 #define _GLIBCXX_USE_LFS 1
52848 _ACEOF
52849
52850
52851     # For showmanyc_helper().
52852
52853
52854 for ac_header in sys/ioctl.h sys/filio.h
52855 do
52856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52858   echo "$as_me:$LINENO: checking for $ac_header" >&5
52859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52861   echo $ECHO_N "(cached) $ECHO_C" >&6
52862 fi
52863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52865 else
52866   # Is the header compilable?
52867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52869 cat >conftest.$ac_ext <<_ACEOF
52870 #line $LINENO "configure"
52871 /* confdefs.h.  */
52872 _ACEOF
52873 cat confdefs.h >>conftest.$ac_ext
52874 cat >>conftest.$ac_ext <<_ACEOF
52875 /* end confdefs.h.  */
52876 $ac_includes_default
52877 #include <$ac_header>
52878 _ACEOF
52879 rm -f conftest.$ac_objext
52880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52881   (eval $ac_compile) 2>&5
52882   ac_status=$?
52883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52884   (exit $ac_status); } &&
52885          { ac_try='test -s conftest.$ac_objext'
52886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52887   (eval $ac_try) 2>&5
52888   ac_status=$?
52889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52890   (exit $ac_status); }; }; then
52891   ac_header_compiler=yes
52892 else
52893   echo "$as_me: failed program was:" >&5
52894 sed 's/^/| /' conftest.$ac_ext >&5
52895
52896 ac_header_compiler=no
52897 fi
52898 rm -f conftest.$ac_objext conftest.$ac_ext
52899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52900 echo "${ECHO_T}$ac_header_compiler" >&6
52901
52902 # Is the header present?
52903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52905 cat >conftest.$ac_ext <<_ACEOF
52906 #line $LINENO "configure"
52907 /* confdefs.h.  */
52908 _ACEOF
52909 cat confdefs.h >>conftest.$ac_ext
52910 cat >>conftest.$ac_ext <<_ACEOF
52911 /* end confdefs.h.  */
52912 #include <$ac_header>
52913 _ACEOF
52914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52916   ac_status=$?
52917   grep -v '^ *+' conftest.er1 >conftest.err
52918   rm -f conftest.er1
52919   cat conftest.err >&5
52920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52921   (exit $ac_status); } >/dev/null; then
52922   if test -s conftest.err; then
52923     ac_cpp_err=$ac_c_preproc_warn_flag
52924   else
52925     ac_cpp_err=
52926   fi
52927 else
52928   ac_cpp_err=yes
52929 fi
52930 if test -z "$ac_cpp_err"; then
52931   ac_header_preproc=yes
52932 else
52933   echo "$as_me: failed program was:" >&5
52934 sed 's/^/| /' conftest.$ac_ext >&5
52935
52936   ac_header_preproc=no
52937 fi
52938 rm -f conftest.err conftest.$ac_ext
52939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52940 echo "${ECHO_T}$ac_header_preproc" >&6
52941
52942 # So?  What about this header?
52943 case $ac_header_compiler:$ac_header_preproc in
52944   yes:no )
52945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52949     (
52950       cat <<\_ASBOX
52951 ## ------------------------------------ ##
52952 ## Report this to bug-autoconf@gnu.org. ##
52953 ## ------------------------------------ ##
52954 _ASBOX
52955     ) |
52956       sed "s/^/$as_me: WARNING:     /" >&2
52957     ;;
52958   no:yes )
52959     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52961     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52965     (
52966       cat <<\_ASBOX
52967 ## ------------------------------------ ##
52968 ## Report this to bug-autoconf@gnu.org. ##
52969 ## ------------------------------------ ##
52970 _ASBOX
52971     ) |
52972       sed "s/^/$as_me: WARNING:     /" >&2
52973     ;;
52974 esac
52975 echo "$as_me:$LINENO: checking for $ac_header" >&5
52976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52978   echo $ECHO_N "(cached) $ECHO_C" >&6
52979 else
52980   eval "$as_ac_Header=$ac_header_preproc"
52981 fi
52982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52984
52985 fi
52986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52987   cat >>confdefs.h <<_ACEOF
52988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52989 _ACEOF
52990
52991 fi
52992
52993 done
52994
52995
52996   if test "${glibcxx_cv_POLL+set}" = set; then
52997   echo $ECHO_N "(cached) $ECHO_C" >&6
52998 else
52999
53000     if test x$gcc_no_link = xyes; then
53001   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53003    { (exit 1); exit 1; }; }
53004 fi
53005 cat >conftest.$ac_ext <<_ACEOF
53006 #line $LINENO "configure"
53007 /* confdefs.h.  */
53008 _ACEOF
53009 cat confdefs.h >>conftest.$ac_ext
53010 cat >>conftest.$ac_ext <<_ACEOF
53011 /* end confdefs.h.  */
53012 #include <poll.h>
53013 int
53014 main ()
53015 {
53016 struct pollfd pfd[1];
53017        pfd[0].events = POLLIN;
53018        poll(pfd, 1, 0);
53019   ;
53020   return 0;
53021 }
53022 _ACEOF
53023 rm -f conftest.$ac_objext conftest$ac_exeext
53024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53025   (eval $ac_link) 2>&5
53026   ac_status=$?
53027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53028   (exit $ac_status); } &&
53029          { ac_try='test -s conftest$ac_exeext'
53030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53031   (eval $ac_try) 2>&5
53032   ac_status=$?
53033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53034   (exit $ac_status); }; }; then
53035   glibcxx_cv_POLL=yes
53036 else
53037   echo "$as_me: failed program was:" >&5
53038 sed 's/^/| /' conftest.$ac_ext >&5
53039
53040 glibcxx_cv_POLL=no
53041 fi
53042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53043
53044 fi
53045
53046   if test $glibcxx_cv_POLL = yes; then
53047     cat >>confdefs.h <<\_ACEOF
53048 #define HAVE_POLL 1
53049 _ACEOF
53050
53051   fi
53052
53053
53054   if test "${glibcxx_cv_S_ISREG+set}" = set; then
53055   echo $ECHO_N "(cached) $ECHO_C" >&6
53056 else
53057
53058     if test x$gcc_no_link = xyes; then
53059   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53061    { (exit 1); exit 1; }; }
53062 fi
53063 cat >conftest.$ac_ext <<_ACEOF
53064 #line $LINENO "configure"
53065 /* confdefs.h.  */
53066 _ACEOF
53067 cat confdefs.h >>conftest.$ac_ext
53068 cat >>conftest.$ac_ext <<_ACEOF
53069 /* end confdefs.h.  */
53070 #include <sys/stat.h>
53071 int
53072 main ()
53073 {
53074 struct stat buffer;
53075        fstat(0, &buffer);
53076        S_ISREG(buffer.st_mode);
53077   ;
53078   return 0;
53079 }
53080 _ACEOF
53081 rm -f conftest.$ac_objext conftest$ac_exeext
53082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53083   (eval $ac_link) 2>&5
53084   ac_status=$?
53085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53086   (exit $ac_status); } &&
53087          { ac_try='test -s conftest$ac_exeext'
53088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53089   (eval $ac_try) 2>&5
53090   ac_status=$?
53091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53092   (exit $ac_status); }; }; then
53093   glibcxx_cv_S_ISREG=yes
53094 else
53095   echo "$as_me: failed program was:" >&5
53096 sed 's/^/| /' conftest.$ac_ext >&5
53097
53098 glibcxx_cv_S_ISREG=no
53099 fi
53100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53101
53102 fi
53103
53104   if test "${glibcxx_cv_S_IFREG+set}" = set; then
53105   echo $ECHO_N "(cached) $ECHO_C" >&6
53106 else
53107
53108     if test x$gcc_no_link = xyes; then
53109   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53111    { (exit 1); exit 1; }; }
53112 fi
53113 cat >conftest.$ac_ext <<_ACEOF
53114 #line $LINENO "configure"
53115 /* confdefs.h.  */
53116 _ACEOF
53117 cat confdefs.h >>conftest.$ac_ext
53118 cat >>conftest.$ac_ext <<_ACEOF
53119 /* end confdefs.h.  */
53120 #include <sys/stat.h>
53121 int
53122 main ()
53123 {
53124 struct stat buffer;
53125        fstat(0, &buffer);
53126        S_IFREG & buffer.st_mode;
53127   ;
53128   return 0;
53129 }
53130 _ACEOF
53131 rm -f conftest.$ac_objext conftest$ac_exeext
53132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53133   (eval $ac_link) 2>&5
53134   ac_status=$?
53135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53136   (exit $ac_status); } &&
53137          { ac_try='test -s conftest$ac_exeext'
53138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53139   (eval $ac_try) 2>&5
53140   ac_status=$?
53141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53142   (exit $ac_status); }; }; then
53143   glibcxx_cv_S_IFREG=yes
53144 else
53145   echo "$as_me: failed program was:" >&5
53146 sed 's/^/| /' conftest.$ac_ext >&5
53147
53148 glibcxx_cv_S_IFREG=no
53149 fi
53150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53151
53152 fi
53153
53154   if test $glibcxx_cv_S_ISREG = yes; then
53155     cat >>confdefs.h <<\_ACEOF
53156 #define HAVE_S_ISREG 1
53157 _ACEOF
53158
53159   elif test $glibcxx_cv_S_IFREG = yes; then
53160     cat >>confdefs.h <<\_ACEOF
53161 #define HAVE_S_IFREG 1
53162 _ACEOF
53163
53164   fi
53165
53166
53167     # For xsputn_2().
53168
53169 for ac_header in sys/uio.h
53170 do
53171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53173   echo "$as_me:$LINENO: checking for $ac_header" >&5
53174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53176   echo $ECHO_N "(cached) $ECHO_C" >&6
53177 fi
53178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53180 else
53181   # Is the header compilable?
53182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53184 cat >conftest.$ac_ext <<_ACEOF
53185 #line $LINENO "configure"
53186 /* confdefs.h.  */
53187 _ACEOF
53188 cat confdefs.h >>conftest.$ac_ext
53189 cat >>conftest.$ac_ext <<_ACEOF
53190 /* end confdefs.h.  */
53191 $ac_includes_default
53192 #include <$ac_header>
53193 _ACEOF
53194 rm -f conftest.$ac_objext
53195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53196   (eval $ac_compile) 2>&5
53197   ac_status=$?
53198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53199   (exit $ac_status); } &&
53200          { ac_try='test -s conftest.$ac_objext'
53201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53202   (eval $ac_try) 2>&5
53203   ac_status=$?
53204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53205   (exit $ac_status); }; }; then
53206   ac_header_compiler=yes
53207 else
53208   echo "$as_me: failed program was:" >&5
53209 sed 's/^/| /' conftest.$ac_ext >&5
53210
53211 ac_header_compiler=no
53212 fi
53213 rm -f conftest.$ac_objext conftest.$ac_ext
53214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53215 echo "${ECHO_T}$ac_header_compiler" >&6
53216
53217 # Is the header present?
53218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53220 cat >conftest.$ac_ext <<_ACEOF
53221 #line $LINENO "configure"
53222 /* confdefs.h.  */
53223 _ACEOF
53224 cat confdefs.h >>conftest.$ac_ext
53225 cat >>conftest.$ac_ext <<_ACEOF
53226 /* end confdefs.h.  */
53227 #include <$ac_header>
53228 _ACEOF
53229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53231   ac_status=$?
53232   grep -v '^ *+' conftest.er1 >conftest.err
53233   rm -f conftest.er1
53234   cat conftest.err >&5
53235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53236   (exit $ac_status); } >/dev/null; then
53237   if test -s conftest.err; then
53238     ac_cpp_err=$ac_c_preproc_warn_flag
53239   else
53240     ac_cpp_err=
53241   fi
53242 else
53243   ac_cpp_err=yes
53244 fi
53245 if test -z "$ac_cpp_err"; then
53246   ac_header_preproc=yes
53247 else
53248   echo "$as_me: failed program was:" >&5
53249 sed 's/^/| /' conftest.$ac_ext >&5
53250
53251   ac_header_preproc=no
53252 fi
53253 rm -f conftest.err conftest.$ac_ext
53254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53255 echo "${ECHO_T}$ac_header_preproc" >&6
53256
53257 # So?  What about this header?
53258 case $ac_header_compiler:$ac_header_preproc in
53259   yes:no )
53260     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53264     (
53265       cat <<\_ASBOX
53266 ## ------------------------------------ ##
53267 ## Report this to bug-autoconf@gnu.org. ##
53268 ## ------------------------------------ ##
53269 _ASBOX
53270     ) |
53271       sed "s/^/$as_me: WARNING:     /" >&2
53272     ;;
53273   no:yes )
53274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53276     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53280     (
53281       cat <<\_ASBOX
53282 ## ------------------------------------ ##
53283 ## Report this to bug-autoconf@gnu.org. ##
53284 ## ------------------------------------ ##
53285 _ASBOX
53286     ) |
53287       sed "s/^/$as_me: WARNING:     /" >&2
53288     ;;
53289 esac
53290 echo "$as_me:$LINENO: checking for $ac_header" >&5
53291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53293   echo $ECHO_N "(cached) $ECHO_C" >&6
53294 else
53295   eval "$as_ac_Header=$ac_header_preproc"
53296 fi
53297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53299
53300 fi
53301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53302   cat >>confdefs.h <<_ACEOF
53303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53304 _ACEOF
53305
53306 fi
53307
53308 done
53309
53310
53311   if test "${glibcxx_cv_WRITEV+set}" = set; then
53312   echo $ECHO_N "(cached) $ECHO_C" >&6
53313 else
53314
53315     if test x$gcc_no_link = xyes; then
53316   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53317 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53318    { (exit 1); exit 1; }; }
53319 fi
53320 cat >conftest.$ac_ext <<_ACEOF
53321 #line $LINENO "configure"
53322 /* confdefs.h.  */
53323 _ACEOF
53324 cat confdefs.h >>conftest.$ac_ext
53325 cat >>conftest.$ac_ext <<_ACEOF
53326 /* end confdefs.h.  */
53327 #include <sys/uio.h>
53328 int
53329 main ()
53330 {
53331 struct iovec iov[2];
53332        writev(0, iov, 0);
53333   ;
53334   return 0;
53335 }
53336 _ACEOF
53337 rm -f conftest.$ac_objext conftest$ac_exeext
53338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53339   (eval $ac_link) 2>&5
53340   ac_status=$?
53341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53342   (exit $ac_status); } &&
53343          { ac_try='test -s conftest$ac_exeext'
53344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53345   (eval $ac_try) 2>&5
53346   ac_status=$?
53347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53348   (exit $ac_status); }; }; then
53349   glibcxx_cv_WRITEV=yes
53350 else
53351   echo "$as_me: failed program was:" >&5
53352 sed 's/^/| /' conftest.$ac_ext >&5
53353
53354 glibcxx_cv_WRITEV=no
53355 fi
53356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53357
53358 fi
53359
53360   if test $glibcxx_cv_WRITEV = yes; then
53361     cat >>confdefs.h <<\_ACEOF
53362 #define HAVE_WRITEV 1
53363 _ACEOF
53364
53365   fi
53366
53367
53368     cat >>confdefs.h <<\_ACEOF
53369 #define HAVE_COPYSIGN 1
53370 _ACEOF
53371
53372     cat >>confdefs.h <<\_ACEOF
53373 #define HAVE_COPYSIGNF 1
53374 _ACEOF
53375
53376     cat >>confdefs.h <<\_ACEOF
53377 #define HAVE_FINITE 1
53378 _ACEOF
53379
53380     cat >>confdefs.h <<\_ACEOF
53381 #define HAVE_FINITEF 1
53382 _ACEOF
53383
53384     cat >>confdefs.h <<\_ACEOF
53385 #define HAVE_FREXPF 1
53386 _ACEOF
53387
53388     cat >>confdefs.h <<\_ACEOF
53389 #define HAVE_HYPOTF 1
53390 _ACEOF
53391
53392     cat >>confdefs.h <<\_ACEOF
53393 #define HAVE_ISINF 1
53394 _ACEOF
53395
53396     cat >>confdefs.h <<\_ACEOF
53397 #define HAVE_ISINFF 1
53398 _ACEOF
53399
53400     cat >>confdefs.h <<\_ACEOF
53401 #define HAVE_ISNAN 1
53402 _ACEOF
53403
53404     cat >>confdefs.h <<\_ACEOF
53405 #define HAVE_ISNANF 1
53406 _ACEOF
53407
53408     cat >>confdefs.h <<\_ACEOF
53409 #define HAVE_SINCOS 1
53410 _ACEOF
53411
53412     cat >>confdefs.h <<\_ACEOF
53413 #define HAVE_SINCOSF 1
53414 _ACEOF
53415
53416     if test x"long_double_math_on_this_cpu" = x"yes"; then
53417       cat >>confdefs.h <<\_ACEOF
53418 #define HAVE_FINITEL 1
53419 _ACEOF
53420
53421       cat >>confdefs.h <<\_ACEOF
53422 #define HAVE_HYPOTL 1
53423 _ACEOF
53424
53425       cat >>confdefs.h <<\_ACEOF
53426 #define HAVE_ISINFL 1
53427 _ACEOF
53428
53429       cat >>confdefs.h <<\_ACEOF
53430 #define HAVE_ISNANL 1
53431 _ACEOF
53432
53433     fi
53434     ;;
53435   *-mingw32*)
53436
53437
53438
53439 for ac_header in sys/types.h locale.h float.h
53440 do
53441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53443   echo "$as_me:$LINENO: checking for $ac_header" >&5
53444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53446   echo $ECHO_N "(cached) $ECHO_C" >&6
53447 fi
53448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53450 else
53451   # Is the header compilable?
53452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53454 cat >conftest.$ac_ext <<_ACEOF
53455 #line $LINENO "configure"
53456 /* confdefs.h.  */
53457 _ACEOF
53458 cat confdefs.h >>conftest.$ac_ext
53459 cat >>conftest.$ac_ext <<_ACEOF
53460 /* end confdefs.h.  */
53461 $ac_includes_default
53462 #include <$ac_header>
53463 _ACEOF
53464 rm -f conftest.$ac_objext
53465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53466   (eval $ac_compile) 2>&5
53467   ac_status=$?
53468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53469   (exit $ac_status); } &&
53470          { ac_try='test -s conftest.$ac_objext'
53471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53472   (eval $ac_try) 2>&5
53473   ac_status=$?
53474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53475   (exit $ac_status); }; }; then
53476   ac_header_compiler=yes
53477 else
53478   echo "$as_me: failed program was:" >&5
53479 sed 's/^/| /' conftest.$ac_ext >&5
53480
53481 ac_header_compiler=no
53482 fi
53483 rm -f conftest.$ac_objext conftest.$ac_ext
53484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53485 echo "${ECHO_T}$ac_header_compiler" >&6
53486
53487 # Is the header present?
53488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53490 cat >conftest.$ac_ext <<_ACEOF
53491 #line $LINENO "configure"
53492 /* confdefs.h.  */
53493 _ACEOF
53494 cat confdefs.h >>conftest.$ac_ext
53495 cat >>conftest.$ac_ext <<_ACEOF
53496 /* end confdefs.h.  */
53497 #include <$ac_header>
53498 _ACEOF
53499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53501   ac_status=$?
53502   grep -v '^ *+' conftest.er1 >conftest.err
53503   rm -f conftest.er1
53504   cat conftest.err >&5
53505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53506   (exit $ac_status); } >/dev/null; then
53507   if test -s conftest.err; then
53508     ac_cpp_err=$ac_c_preproc_warn_flag
53509   else
53510     ac_cpp_err=
53511   fi
53512 else
53513   ac_cpp_err=yes
53514 fi
53515 if test -z "$ac_cpp_err"; then
53516   ac_header_preproc=yes
53517 else
53518   echo "$as_me: failed program was:" >&5
53519 sed 's/^/| /' conftest.$ac_ext >&5
53520
53521   ac_header_preproc=no
53522 fi
53523 rm -f conftest.err conftest.$ac_ext
53524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53525 echo "${ECHO_T}$ac_header_preproc" >&6
53526
53527 # So?  What about this header?
53528 case $ac_header_compiler:$ac_header_preproc in
53529   yes:no )
53530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53534     (
53535       cat <<\_ASBOX
53536 ## ------------------------------------ ##
53537 ## Report this to bug-autoconf@gnu.org. ##
53538 ## ------------------------------------ ##
53539 _ASBOX
53540     ) |
53541       sed "s/^/$as_me: WARNING:     /" >&2
53542     ;;
53543   no:yes )
53544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53546     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53550     (
53551       cat <<\_ASBOX
53552 ## ------------------------------------ ##
53553 ## Report this to bug-autoconf@gnu.org. ##
53554 ## ------------------------------------ ##
53555 _ASBOX
53556     ) |
53557       sed "s/^/$as_me: WARNING:     /" >&2
53558     ;;
53559 esac
53560 echo "$as_me:$LINENO: checking for $ac_header" >&5
53561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53563   echo $ECHO_N "(cached) $ECHO_C" >&6
53564 else
53565   eval "$as_ac_Header=$ac_header_preproc"
53566 fi
53567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53569
53570 fi
53571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53572   cat >>confdefs.h <<_ACEOF
53573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53574 _ACEOF
53575
53576 fi
53577
53578 done
53579
53580
53581   # If we're not using GNU ld, then there's no point in even trying these
53582   # tests.  Check for that first.  We should have already tested for gld
53583   # by now (in libtool), but require it now just to be safe...
53584   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53585   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53586
53587
53588
53589   # The name set by libtool depends on the version of libtool.  Shame on us
53590   # for depending on an impl detail, but c'est la vie.  Older versions used
53591   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53592   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53593   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
53594   # set (hence we're using an older libtool), then set it.
53595   if test x${with_gnu_ld+set} != xset; then
53596     if test x${ac_cv_prog_gnu_ld+set} != xset; then
53597       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
53598       with_gnu_ld=no
53599     else
53600       with_gnu_ld=$ac_cv_prog_gnu_ld
53601     fi
53602   fi
53603
53604   # Start by getting the version number.  I think the libtool test already
53605   # does some of this, but throws away the result.
53606
53607   ldver=`$LD --version 2>/dev/null | head -1 | \
53608          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53609
53610   glibcxx_gnu_ld_version=`echo $ldver | \
53611          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53612
53613   # Set --gc-sections.
53614   if test "$with_gnu_ld" = "notbroken"; then
53615     # GNU ld it is!  Joy and bunny rabbits!
53616
53617     # All these tests are for C++; save the language and the compiler flags.
53618     # Need to do this so that g++ won't try to link in libstdc++
53619     ac_test_CFLAGS="${CFLAGS+set}"
53620     ac_save_CFLAGS="$CFLAGS"
53621     CFLAGS='-x c++  -Wl,--gc-sections'
53622
53623     # Check for -Wl,--gc-sections
53624     # XXX This test is broken at the moment, as symbols required for linking
53625     # are now in libsupc++ (not built yet).  In addition, this test has
53626     # cored on solaris in the past.  In addition, --gc-sections doesn't
53627     # really work at the moment (keeps on discarding used sections, first
53628     # .eh_frame and now some of the glibc sections for iconv).
53629     # Bzzzzt.  Thanks for playing, maybe next time.
53630     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53631 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53632     if test "$cross_compiling" = yes; then
53633   ac_sectionLDflags=yes
53634 else
53635   cat >conftest.$ac_ext <<_ACEOF
53636 #line $LINENO "configure"
53637 /* confdefs.h.  */
53638 _ACEOF
53639 cat confdefs.h >>conftest.$ac_ext
53640 cat >>conftest.$ac_ext <<_ACEOF
53641 /* end confdefs.h.  */
53642
53643      int main(void)
53644      {
53645        try { throw 1; }
53646        catch (...) { };
53647        return 0;
53648      }
53649
53650 _ACEOF
53651 rm -f conftest$ac_exeext
53652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53653   (eval $ac_link) 2>&5
53654   ac_status=$?
53655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53658   (eval $ac_try) 2>&5
53659   ac_status=$?
53660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53661   (exit $ac_status); }; }; then
53662   ac_sectionLDflags=yes
53663 else
53664   echo "$as_me: program exited with status $ac_status" >&5
53665 echo "$as_me: failed program was:" >&5
53666 sed 's/^/| /' conftest.$ac_ext >&5
53667
53668 ( exit $ac_status )
53669 ac_sectionLDflags=no
53670 fi
53671 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53672 fi
53673     if test "$ac_test_CFLAGS" = set; then
53674       CFLAGS="$ac_save_CFLAGS"
53675     else
53676       # this is the suspicious part
53677       CFLAGS=''
53678     fi
53679     if test "$ac_sectionLDflags" = "yes"; then
53680       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53681     fi
53682     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53683 echo "${ECHO_T}$ac_sectionLDflags" >&6
53684   fi
53685
53686   # Set linker optimization flags.
53687   if test x"$with_gnu_ld" = x"yes"; then
53688     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53689   fi
53690
53691
53692
53693
53694
53695
53696 echo "$as_me:$LINENO: checking for main in -lm" >&5
53697 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53698 if test "${ac_cv_lib_m_main+set}" = set; then
53699   echo $ECHO_N "(cached) $ECHO_C" >&6
53700 else
53701   ac_check_lib_save_LIBS=$LIBS
53702 LIBS="-lm  $LIBS"
53703 if test x$gcc_no_link = xyes; then
53704   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53706    { (exit 1); exit 1; }; }
53707 fi
53708 cat >conftest.$ac_ext <<_ACEOF
53709 #line $LINENO "configure"
53710 /* confdefs.h.  */
53711 _ACEOF
53712 cat confdefs.h >>conftest.$ac_ext
53713 cat >>conftest.$ac_ext <<_ACEOF
53714 /* end confdefs.h.  */
53715
53716
53717 int
53718 main ()
53719 {
53720 main ();
53721   ;
53722   return 0;
53723 }
53724 _ACEOF
53725 rm -f conftest.$ac_objext conftest$ac_exeext
53726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53727   (eval $ac_link) 2>&5
53728   ac_status=$?
53729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53730   (exit $ac_status); } &&
53731          { ac_try='test -s conftest$ac_exeext'
53732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53733   (eval $ac_try) 2>&5
53734   ac_status=$?
53735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53736   (exit $ac_status); }; }; then
53737   ac_cv_lib_m_main=yes
53738 else
53739   echo "$as_me: failed program was:" >&5
53740 sed 's/^/| /' conftest.$ac_ext >&5
53741
53742 ac_cv_lib_m_main=no
53743 fi
53744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53745 LIBS=$ac_check_lib_save_LIBS
53746 fi
53747 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53748 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53749 if test $ac_cv_lib_m_main = yes; then
53750   cat >>confdefs.h <<_ACEOF
53751 #define HAVE_LIBM 1
53752 _ACEOF
53753
53754   LIBS="-lm $LIBS"
53755
53756 fi
53757
53758
53759 for ac_func in copysignf
53760 do
53761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53762 echo "$as_me:$LINENO: checking for $ac_func" >&5
53763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53764 if eval "test \"\${$as_ac_var+set}\" = set"; then
53765   echo $ECHO_N "(cached) $ECHO_C" >&6
53766 else
53767   if test x$gcc_no_link = xyes; then
53768   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53769 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53770    { (exit 1); exit 1; }; }
53771 fi
53772 cat >conftest.$ac_ext <<_ACEOF
53773 #line $LINENO "configure"
53774 /* confdefs.h.  */
53775 _ACEOF
53776 cat confdefs.h >>conftest.$ac_ext
53777 cat >>conftest.$ac_ext <<_ACEOF
53778 /* end confdefs.h.  */
53779 /* System header to define __stub macros and hopefully few prototypes,
53780     which can conflict with char $ac_func (); below.
53781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53782     <limits.h> exists even on freestanding compilers.  */
53783 #ifdef __STDC__
53784 # include <limits.h>
53785 #else
53786 # include <assert.h>
53787 #endif
53788 /* Override any gcc2 internal prototype to avoid an error.  */
53789 #ifdef __cplusplus
53790 extern "C"
53791 {
53792 #endif
53793 /* We use char because int might match the return type of a gcc2
53794    builtin and then its argument prototype would still apply.  */
53795 char $ac_func ();
53796 /* The GNU C library defines this for functions which it implements
53797     to always fail with ENOSYS.  Some functions are actually named
53798     something starting with __ and the normal name is an alias.  */
53799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53800 choke me
53801 #else
53802 char (*f) () = $ac_func;
53803 #endif
53804 #ifdef __cplusplus
53805 }
53806 #endif
53807
53808 int
53809 main ()
53810 {
53811 return f != $ac_func;
53812   ;
53813   return 0;
53814 }
53815 _ACEOF
53816 rm -f conftest.$ac_objext conftest$ac_exeext
53817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53818   (eval $ac_link) 2>&5
53819   ac_status=$?
53820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53821   (exit $ac_status); } &&
53822          { ac_try='test -s conftest$ac_exeext'
53823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53824   (eval $ac_try) 2>&5
53825   ac_status=$?
53826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53827   (exit $ac_status); }; }; then
53828   eval "$as_ac_var=yes"
53829 else
53830   echo "$as_me: failed program was:" >&5
53831 sed 's/^/| /' conftest.$ac_ext >&5
53832
53833 eval "$as_ac_var=no"
53834 fi
53835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53836 fi
53837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53839 if test `eval echo '${'$as_ac_var'}'` = yes; then
53840   cat >>confdefs.h <<_ACEOF
53841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53842 _ACEOF
53843
53844 else
53845   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53846 fi
53847 done
53848
53849
53850
53851 for ac_func in __signbit
53852 do
53853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53854 echo "$as_me:$LINENO: checking for $ac_func" >&5
53855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53856 if eval "test \"\${$as_ac_var+set}\" = set"; then
53857   echo $ECHO_N "(cached) $ECHO_C" >&6
53858 else
53859   if test x$gcc_no_link = xyes; then
53860   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53862    { (exit 1); exit 1; }; }
53863 fi
53864 cat >conftest.$ac_ext <<_ACEOF
53865 #line $LINENO "configure"
53866 /* confdefs.h.  */
53867 _ACEOF
53868 cat confdefs.h >>conftest.$ac_ext
53869 cat >>conftest.$ac_ext <<_ACEOF
53870 /* end confdefs.h.  */
53871 /* System header to define __stub macros and hopefully few prototypes,
53872     which can conflict with char $ac_func (); below.
53873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53874     <limits.h> exists even on freestanding compilers.  */
53875 #ifdef __STDC__
53876 # include <limits.h>
53877 #else
53878 # include <assert.h>
53879 #endif
53880 /* Override any gcc2 internal prototype to avoid an error.  */
53881 #ifdef __cplusplus
53882 extern "C"
53883 {
53884 #endif
53885 /* We use char because int might match the return type of a gcc2
53886    builtin and then its argument prototype would still apply.  */
53887 char $ac_func ();
53888 /* The GNU C library defines this for functions which it implements
53889     to always fail with ENOSYS.  Some functions are actually named
53890     something starting with __ and the normal name is an alias.  */
53891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53892 choke me
53893 #else
53894 char (*f) () = $ac_func;
53895 #endif
53896 #ifdef __cplusplus
53897 }
53898 #endif
53899
53900 int
53901 main ()
53902 {
53903 return f != $ac_func;
53904   ;
53905   return 0;
53906 }
53907 _ACEOF
53908 rm -f conftest.$ac_objext conftest$ac_exeext
53909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53910   (eval $ac_link) 2>&5
53911   ac_status=$?
53912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53913   (exit $ac_status); } &&
53914          { ac_try='test -s conftest$ac_exeext'
53915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53916   (eval $ac_try) 2>&5
53917   ac_status=$?
53918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53919   (exit $ac_status); }; }; then
53920   eval "$as_ac_var=yes"
53921 else
53922   echo "$as_me: failed program was:" >&5
53923 sed 's/^/| /' conftest.$ac_ext >&5
53924
53925 eval "$as_ac_var=no"
53926 fi
53927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53928 fi
53929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53931 if test `eval echo '${'$as_ac_var'}'` = yes; then
53932   cat >>confdefs.h <<_ACEOF
53933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53934 _ACEOF
53935
53936 else
53937   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
53938 fi
53939 done
53940
53941
53942 for ac_func in __signbitf
53943 do
53944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53945 echo "$as_me:$LINENO: checking for $ac_func" >&5
53946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53947 if eval "test \"\${$as_ac_var+set}\" = set"; then
53948   echo $ECHO_N "(cached) $ECHO_C" >&6
53949 else
53950   if test x$gcc_no_link = xyes; then
53951   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53952 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53953    { (exit 1); exit 1; }; }
53954 fi
53955 cat >conftest.$ac_ext <<_ACEOF
53956 #line $LINENO "configure"
53957 /* confdefs.h.  */
53958 _ACEOF
53959 cat confdefs.h >>conftest.$ac_ext
53960 cat >>conftest.$ac_ext <<_ACEOF
53961 /* end confdefs.h.  */
53962 /* System header to define __stub macros and hopefully few prototypes,
53963     which can conflict with char $ac_func (); below.
53964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53965     <limits.h> exists even on freestanding compilers.  */
53966 #ifdef __STDC__
53967 # include <limits.h>
53968 #else
53969 # include <assert.h>
53970 #endif
53971 /* Override any gcc2 internal prototype to avoid an error.  */
53972 #ifdef __cplusplus
53973 extern "C"
53974 {
53975 #endif
53976 /* We use char because int might match the return type of a gcc2
53977    builtin and then its argument prototype would still apply.  */
53978 char $ac_func ();
53979 /* The GNU C library defines this for functions which it implements
53980     to always fail with ENOSYS.  Some functions are actually named
53981     something starting with __ and the normal name is an alias.  */
53982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53983 choke me
53984 #else
53985 char (*f) () = $ac_func;
53986 #endif
53987 #ifdef __cplusplus
53988 }
53989 #endif
53990
53991 int
53992 main ()
53993 {
53994 return f != $ac_func;
53995   ;
53996   return 0;
53997 }
53998 _ACEOF
53999 rm -f conftest.$ac_objext conftest$ac_exeext
54000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54001   (eval $ac_link) 2>&5
54002   ac_status=$?
54003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54004   (exit $ac_status); } &&
54005          { ac_try='test -s conftest$ac_exeext'
54006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54007   (eval $ac_try) 2>&5
54008   ac_status=$?
54009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54010   (exit $ac_status); }; }; then
54011   eval "$as_ac_var=yes"
54012 else
54013   echo "$as_me: failed program was:" >&5
54014 sed 's/^/| /' conftest.$ac_ext >&5
54015
54016 eval "$as_ac_var=no"
54017 fi
54018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54019 fi
54020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54022 if test `eval echo '${'$as_ac_var'}'` = yes; then
54023   cat >>confdefs.h <<_ACEOF
54024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54025 _ACEOF
54026
54027 else
54028   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
54029 fi
54030 done
54031
54032
54033           if test x$ac_cv_func_copysignl = x"yes"; then
54034
54035 for ac_func in __signbitl
54036 do
54037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54038 echo "$as_me:$LINENO: checking for $ac_func" >&5
54039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54040 if eval "test \"\${$as_ac_var+set}\" = set"; then
54041   echo $ECHO_N "(cached) $ECHO_C" >&6
54042 else
54043   if test x$gcc_no_link = xyes; then
54044   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54045 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54046    { (exit 1); exit 1; }; }
54047 fi
54048 cat >conftest.$ac_ext <<_ACEOF
54049 #line $LINENO "configure"
54050 /* confdefs.h.  */
54051 _ACEOF
54052 cat confdefs.h >>conftest.$ac_ext
54053 cat >>conftest.$ac_ext <<_ACEOF
54054 /* end confdefs.h.  */
54055 /* System header to define __stub macros and hopefully few prototypes,
54056     which can conflict with char $ac_func (); below.
54057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54058     <limits.h> exists even on freestanding compilers.  */
54059 #ifdef __STDC__
54060 # include <limits.h>
54061 #else
54062 # include <assert.h>
54063 #endif
54064 /* Override any gcc2 internal prototype to avoid an error.  */
54065 #ifdef __cplusplus
54066 extern "C"
54067 {
54068 #endif
54069 /* We use char because int might match the return type of a gcc2
54070    builtin and then its argument prototype would still apply.  */
54071 char $ac_func ();
54072 /* The GNU C library defines this for functions which it implements
54073     to always fail with ENOSYS.  Some functions are actually named
54074     something starting with __ and the normal name is an alias.  */
54075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54076 choke me
54077 #else
54078 char (*f) () = $ac_func;
54079 #endif
54080 #ifdef __cplusplus
54081 }
54082 #endif
54083
54084 int
54085 main ()
54086 {
54087 return f != $ac_func;
54088   ;
54089   return 0;
54090 }
54091 _ACEOF
54092 rm -f conftest.$ac_objext conftest$ac_exeext
54093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54094   (eval $ac_link) 2>&5
54095   ac_status=$?
54096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54097   (exit $ac_status); } &&
54098          { ac_try='test -s conftest$ac_exeext'
54099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54100   (eval $ac_try) 2>&5
54101   ac_status=$?
54102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54103   (exit $ac_status); }; }; then
54104   eval "$as_ac_var=yes"
54105 else
54106   echo "$as_me: failed program was:" >&5
54107 sed 's/^/| /' conftest.$ac_ext >&5
54108
54109 eval "$as_ac_var=no"
54110 fi
54111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54112 fi
54113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54115 if test `eval echo '${'$as_ac_var'}'` = yes; then
54116   cat >>confdefs.h <<_ACEOF
54117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54118 _ACEOF
54119
54120 else
54121   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
54122 fi
54123 done
54124
54125   fi
54126
54127   # XXX Review this.  Nothing uses it.
54128   if test -n "$LIBMATHOBJS"; then
54129     need_libmath=yes
54130   fi
54131
54132
54133
54134   # Test wchar.h for mbstate_t, which is needed for char_traits and
54135   # others even if wchar_t support is not on.
54136   echo "$as_me:$LINENO: checking for mbstate_t" >&5
54137 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
54138   cat >conftest.$ac_ext <<_ACEOF
54139 #line $LINENO "configure"
54140 /* confdefs.h.  */
54141 _ACEOF
54142 cat confdefs.h >>conftest.$ac_ext
54143 cat >>conftest.$ac_ext <<_ACEOF
54144 /* end confdefs.h.  */
54145 #include <wchar.h>
54146 int
54147 main ()
54148 {
54149 mbstate_t teststate;
54150   ;
54151   return 0;
54152 }
54153 _ACEOF
54154 rm -f conftest.$ac_objext
54155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54156   (eval $ac_compile) 2>&5
54157   ac_status=$?
54158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54159   (exit $ac_status); } &&
54160          { ac_try='test -s conftest.$ac_objext'
54161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54162   (eval $ac_try) 2>&5
54163   ac_status=$?
54164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54165   (exit $ac_status); }; }; then
54166   have_mbstate_t=yes
54167 else
54168   echo "$as_me: failed program was:" >&5
54169 sed 's/^/| /' conftest.$ac_ext >&5
54170
54171 have_mbstate_t=no
54172 fi
54173 rm -f conftest.$ac_objext conftest.$ac_ext
54174   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
54175 echo "${ECHO_T}$have_mbstate_t" >&6
54176   if test x"$have_mbstate_t" = xyes; then
54177     cat >>confdefs.h <<\_ACEOF
54178 #define HAVE_MBSTATE_T 1
54179 _ACEOF
54180
54181   fi
54182
54183   # Sanity check for existence of ISO C99 headers for extended encoding.
54184
54185 for ac_header in wchar.h
54186 do
54187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54189   echo "$as_me:$LINENO: checking for $ac_header" >&5
54190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54192   echo $ECHO_N "(cached) $ECHO_C" >&6
54193 fi
54194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54196 else
54197   # Is the header compilable?
54198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54200 cat >conftest.$ac_ext <<_ACEOF
54201 #line $LINENO "configure"
54202 /* confdefs.h.  */
54203 _ACEOF
54204 cat confdefs.h >>conftest.$ac_ext
54205 cat >>conftest.$ac_ext <<_ACEOF
54206 /* end confdefs.h.  */
54207 $ac_includes_default
54208 #include <$ac_header>
54209 _ACEOF
54210 rm -f conftest.$ac_objext
54211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54212   (eval $ac_compile) 2>&5
54213   ac_status=$?
54214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54215   (exit $ac_status); } &&
54216          { ac_try='test -s conftest.$ac_objext'
54217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54218   (eval $ac_try) 2>&5
54219   ac_status=$?
54220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54221   (exit $ac_status); }; }; then
54222   ac_header_compiler=yes
54223 else
54224   echo "$as_me: failed program was:" >&5
54225 sed 's/^/| /' conftest.$ac_ext >&5
54226
54227 ac_header_compiler=no
54228 fi
54229 rm -f conftest.$ac_objext conftest.$ac_ext
54230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54231 echo "${ECHO_T}$ac_header_compiler" >&6
54232
54233 # Is the header present?
54234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54236 cat >conftest.$ac_ext <<_ACEOF
54237 #line $LINENO "configure"
54238 /* confdefs.h.  */
54239 _ACEOF
54240 cat confdefs.h >>conftest.$ac_ext
54241 cat >>conftest.$ac_ext <<_ACEOF
54242 /* end confdefs.h.  */
54243 #include <$ac_header>
54244 _ACEOF
54245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54247   ac_status=$?
54248   grep -v '^ *+' conftest.er1 >conftest.err
54249   rm -f conftest.er1
54250   cat conftest.err >&5
54251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54252   (exit $ac_status); } >/dev/null; then
54253   if test -s conftest.err; then
54254     ac_cpp_err=$ac_c_preproc_warn_flag
54255   else
54256     ac_cpp_err=
54257   fi
54258 else
54259   ac_cpp_err=yes
54260 fi
54261 if test -z "$ac_cpp_err"; then
54262   ac_header_preproc=yes
54263 else
54264   echo "$as_me: failed program was:" >&5
54265 sed 's/^/| /' conftest.$ac_ext >&5
54266
54267   ac_header_preproc=no
54268 fi
54269 rm -f conftest.err conftest.$ac_ext
54270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54271 echo "${ECHO_T}$ac_header_preproc" >&6
54272
54273 # So?  What about this header?
54274 case $ac_header_compiler:$ac_header_preproc in
54275   yes:no )
54276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54280     (
54281       cat <<\_ASBOX
54282 ## ------------------------------------ ##
54283 ## Report this to bug-autoconf@gnu.org. ##
54284 ## ------------------------------------ ##
54285 _ASBOX
54286     ) |
54287       sed "s/^/$as_me: WARNING:     /" >&2
54288     ;;
54289   no:yes )
54290     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54292     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54296     (
54297       cat <<\_ASBOX
54298 ## ------------------------------------ ##
54299 ## Report this to bug-autoconf@gnu.org. ##
54300 ## ------------------------------------ ##
54301 _ASBOX
54302     ) |
54303       sed "s/^/$as_me: WARNING:     /" >&2
54304     ;;
54305 esac
54306 echo "$as_me:$LINENO: checking for $ac_header" >&5
54307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54309   echo $ECHO_N "(cached) $ECHO_C" >&6
54310 else
54311   eval "$as_ac_Header=$ac_header_preproc"
54312 fi
54313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54315
54316 fi
54317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54318   cat >>confdefs.h <<_ACEOF
54319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54320 _ACEOF
54321  ac_has_wchar_h=yes
54322 else
54323   ac_has_wchar_h=no
54324 fi
54325
54326 done
54327
54328
54329 for ac_header in wctype.h
54330 do
54331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54333   echo "$as_me:$LINENO: checking for $ac_header" >&5
54334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54336   echo $ECHO_N "(cached) $ECHO_C" >&6
54337 fi
54338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54340 else
54341   # Is the header compilable?
54342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54344 cat >conftest.$ac_ext <<_ACEOF
54345 #line $LINENO "configure"
54346 /* confdefs.h.  */
54347 _ACEOF
54348 cat confdefs.h >>conftest.$ac_ext
54349 cat >>conftest.$ac_ext <<_ACEOF
54350 /* end confdefs.h.  */
54351 $ac_includes_default
54352 #include <$ac_header>
54353 _ACEOF
54354 rm -f conftest.$ac_objext
54355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54356   (eval $ac_compile) 2>&5
54357   ac_status=$?
54358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54359   (exit $ac_status); } &&
54360          { ac_try='test -s conftest.$ac_objext'
54361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54362   (eval $ac_try) 2>&5
54363   ac_status=$?
54364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54365   (exit $ac_status); }; }; then
54366   ac_header_compiler=yes
54367 else
54368   echo "$as_me: failed program was:" >&5
54369 sed 's/^/| /' conftest.$ac_ext >&5
54370
54371 ac_header_compiler=no
54372 fi
54373 rm -f conftest.$ac_objext conftest.$ac_ext
54374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54375 echo "${ECHO_T}$ac_header_compiler" >&6
54376
54377 # Is the header present?
54378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54380 cat >conftest.$ac_ext <<_ACEOF
54381 #line $LINENO "configure"
54382 /* confdefs.h.  */
54383 _ACEOF
54384 cat confdefs.h >>conftest.$ac_ext
54385 cat >>conftest.$ac_ext <<_ACEOF
54386 /* end confdefs.h.  */
54387 #include <$ac_header>
54388 _ACEOF
54389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54391   ac_status=$?
54392   grep -v '^ *+' conftest.er1 >conftest.err
54393   rm -f conftest.er1
54394   cat conftest.err >&5
54395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54396   (exit $ac_status); } >/dev/null; then
54397   if test -s conftest.err; then
54398     ac_cpp_err=$ac_c_preproc_warn_flag
54399   else
54400     ac_cpp_err=
54401   fi
54402 else
54403   ac_cpp_err=yes
54404 fi
54405 if test -z "$ac_cpp_err"; then
54406   ac_header_preproc=yes
54407 else
54408   echo "$as_me: failed program was:" >&5
54409 sed 's/^/| /' conftest.$ac_ext >&5
54410
54411   ac_header_preproc=no
54412 fi
54413 rm -f conftest.err conftest.$ac_ext
54414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54415 echo "${ECHO_T}$ac_header_preproc" >&6
54416
54417 # So?  What about this header?
54418 case $ac_header_compiler:$ac_header_preproc in
54419   yes:no )
54420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54424     (
54425       cat <<\_ASBOX
54426 ## ------------------------------------ ##
54427 ## Report this to bug-autoconf@gnu.org. ##
54428 ## ------------------------------------ ##
54429 _ASBOX
54430     ) |
54431       sed "s/^/$as_me: WARNING:     /" >&2
54432     ;;
54433   no:yes )
54434     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54436     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54440     (
54441       cat <<\_ASBOX
54442 ## ------------------------------------ ##
54443 ## Report this to bug-autoconf@gnu.org. ##
54444 ## ------------------------------------ ##
54445 _ASBOX
54446     ) |
54447       sed "s/^/$as_me: WARNING:     /" >&2
54448     ;;
54449 esac
54450 echo "$as_me:$LINENO: checking for $ac_header" >&5
54451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54453   echo $ECHO_N "(cached) $ECHO_C" >&6
54454 else
54455   eval "$as_ac_Header=$ac_header_preproc"
54456 fi
54457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54459
54460 fi
54461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54462   cat >>confdefs.h <<_ACEOF
54463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54464 _ACEOF
54465  ac_has_wctype_h=yes
54466 else
54467   ac_has_wctype_h=no
54468 fi
54469
54470 done
54471
54472
54473   # Only continue checking if the ISO C99 headers exist and support is on.
54474   if test x"$ac_has_wchar_h" = xyes &&
54475      test x"$ac_has_wctype_h" = xyes &&
54476      test x"$enable_c_mbchar" != xno; then
54477
54478     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
54479     # numeric_limits can instantiate type_traits<wchar_t>
54480     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
54481 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
54482     cat >conftest.$ac_ext <<_ACEOF
54483 #line $LINENO "configure"
54484 /* confdefs.h.  */
54485 _ACEOF
54486 cat confdefs.h >>conftest.$ac_ext
54487 cat >>conftest.$ac_ext <<_ACEOF
54488 /* end confdefs.h.  */
54489 #include <wchar.h>
54490 int
54491 main ()
54492 {
54493 int i = WCHAR_MIN; int j = WCHAR_MAX;
54494   ;
54495   return 0;
54496 }
54497 _ACEOF
54498 rm -f conftest.$ac_objext
54499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54500   (eval $ac_compile) 2>&5
54501   ac_status=$?
54502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54503   (exit $ac_status); } &&
54504          { ac_try='test -s conftest.$ac_objext'
54505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54506   (eval $ac_try) 2>&5
54507   ac_status=$?
54508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54509   (exit $ac_status); }; }; then
54510   has_wchar_minmax=yes
54511 else
54512   echo "$as_me: failed program was:" >&5
54513 sed 's/^/| /' conftest.$ac_ext >&5
54514
54515 has_wchar_minmax=no
54516 fi
54517 rm -f conftest.$ac_objext conftest.$ac_ext
54518     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54519 echo "${ECHO_T}$has_wchar_minmax" >&6
54520
54521     # Test wchar.h for WEOF, which is what we use to determine whether
54522     # to specialize for char_traits<wchar_t> or not.
54523     echo "$as_me:$LINENO: checking for WEOF" >&5
54524 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54525     cat >conftest.$ac_ext <<_ACEOF
54526 #line $LINENO "configure"
54527 /* confdefs.h.  */
54528 _ACEOF
54529 cat confdefs.h >>conftest.$ac_ext
54530 cat >>conftest.$ac_ext <<_ACEOF
54531 /* end confdefs.h.  */
54532
54533       #include <wchar.h>
54534       #include <stddef.h>
54535 int
54536 main ()
54537 {
54538 wint_t i = WEOF;
54539   ;
54540   return 0;
54541 }
54542 _ACEOF
54543 rm -f conftest.$ac_objext
54544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54545   (eval $ac_compile) 2>&5
54546   ac_status=$?
54547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54548   (exit $ac_status); } &&
54549          { ac_try='test -s conftest.$ac_objext'
54550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54551   (eval $ac_try) 2>&5
54552   ac_status=$?
54553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54554   (exit $ac_status); }; }; then
54555   has_weof=yes
54556 else
54557   echo "$as_me: failed program was:" >&5
54558 sed 's/^/| /' conftest.$ac_ext >&5
54559
54560 has_weof=no
54561 fi
54562 rm -f conftest.$ac_objext conftest.$ac_ext
54563     echo "$as_me:$LINENO: result: $has_weof" >&5
54564 echo "${ECHO_T}$has_weof" >&6
54565
54566     # Tests for wide character functions used in char_traits<wchar_t>.
54567     ac_wfuncs=yes
54568
54569
54570
54571
54572
54573
54574 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54575 do
54576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54577 echo "$as_me:$LINENO: checking for $ac_func" >&5
54578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54579 if eval "test \"\${$as_ac_var+set}\" = set"; then
54580   echo $ECHO_N "(cached) $ECHO_C" >&6
54581 else
54582   if test x$gcc_no_link = xyes; then
54583   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54585    { (exit 1); exit 1; }; }
54586 fi
54587 cat >conftest.$ac_ext <<_ACEOF
54588 #line $LINENO "configure"
54589 /* confdefs.h.  */
54590 _ACEOF
54591 cat confdefs.h >>conftest.$ac_ext
54592 cat >>conftest.$ac_ext <<_ACEOF
54593 /* end confdefs.h.  */
54594 /* System header to define __stub macros and hopefully few prototypes,
54595     which can conflict with char $ac_func (); below.
54596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54597     <limits.h> exists even on freestanding compilers.  */
54598 #ifdef __STDC__
54599 # include <limits.h>
54600 #else
54601 # include <assert.h>
54602 #endif
54603 /* Override any gcc2 internal prototype to avoid an error.  */
54604 #ifdef __cplusplus
54605 extern "C"
54606 {
54607 #endif
54608 /* We use char because int might match the return type of a gcc2
54609    builtin and then its argument prototype would still apply.  */
54610 char $ac_func ();
54611 /* The GNU C library defines this for functions which it implements
54612     to always fail with ENOSYS.  Some functions are actually named
54613     something starting with __ and the normal name is an alias.  */
54614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54615 choke me
54616 #else
54617 char (*f) () = $ac_func;
54618 #endif
54619 #ifdef __cplusplus
54620 }
54621 #endif
54622
54623 int
54624 main ()
54625 {
54626 return f != $ac_func;
54627   ;
54628   return 0;
54629 }
54630 _ACEOF
54631 rm -f conftest.$ac_objext conftest$ac_exeext
54632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54633   (eval $ac_link) 2>&5
54634   ac_status=$?
54635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54636   (exit $ac_status); } &&
54637          { ac_try='test -s conftest$ac_exeext'
54638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54639   (eval $ac_try) 2>&5
54640   ac_status=$?
54641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54642   (exit $ac_status); }; }; then
54643   eval "$as_ac_var=yes"
54644 else
54645   echo "$as_me: failed program was:" >&5
54646 sed 's/^/| /' conftest.$ac_ext >&5
54647
54648 eval "$as_ac_var=no"
54649 fi
54650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54651 fi
54652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54654 if test `eval echo '${'$as_ac_var'}'` = yes; then
54655   cat >>confdefs.h <<_ACEOF
54656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54657 _ACEOF
54658
54659 else
54660   ac_wfuncs=no
54661 fi
54662 done
54663
54664
54665     # Checks for names injected into std:: by the c_std headers.
54666
54667
54668
54669
54670
54671
54672
54673
54674
54675
54676
54677
54678
54679
54680
54681
54682
54683
54684
54685
54686
54687
54688
54689
54690
54691
54692
54693
54694
54695
54696
54697
54698
54699
54700
54701
54702
54703
54704
54705
54706
54707
54708
54709
54710
54711
54712 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54713     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
54714     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54715     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
54716     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54717     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54718 do
54719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54720 echo "$as_me:$LINENO: checking for $ac_func" >&5
54721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54722 if eval "test \"\${$as_ac_var+set}\" = set"; then
54723   echo $ECHO_N "(cached) $ECHO_C" >&6
54724 else
54725   if test x$gcc_no_link = xyes; then
54726   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54727 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54728    { (exit 1); exit 1; }; }
54729 fi
54730 cat >conftest.$ac_ext <<_ACEOF
54731 #line $LINENO "configure"
54732 /* confdefs.h.  */
54733 _ACEOF
54734 cat confdefs.h >>conftest.$ac_ext
54735 cat >>conftest.$ac_ext <<_ACEOF
54736 /* end confdefs.h.  */
54737 /* System header to define __stub macros and hopefully few prototypes,
54738     which can conflict with char $ac_func (); below.
54739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54740     <limits.h> exists even on freestanding compilers.  */
54741 #ifdef __STDC__
54742 # include <limits.h>
54743 #else
54744 # include <assert.h>
54745 #endif
54746 /* Override any gcc2 internal prototype to avoid an error.  */
54747 #ifdef __cplusplus
54748 extern "C"
54749 {
54750 #endif
54751 /* We use char because int might match the return type of a gcc2
54752    builtin and then its argument prototype would still apply.  */
54753 char $ac_func ();
54754 /* The GNU C library defines this for functions which it implements
54755     to always fail with ENOSYS.  Some functions are actually named
54756     something starting with __ and the normal name is an alias.  */
54757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54758 choke me
54759 #else
54760 char (*f) () = $ac_func;
54761 #endif
54762 #ifdef __cplusplus
54763 }
54764 #endif
54765
54766 int
54767 main ()
54768 {
54769 return f != $ac_func;
54770   ;
54771   return 0;
54772 }
54773 _ACEOF
54774 rm -f conftest.$ac_objext conftest$ac_exeext
54775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54776   (eval $ac_link) 2>&5
54777   ac_status=$?
54778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54779   (exit $ac_status); } &&
54780          { ac_try='test -s conftest$ac_exeext'
54781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54782   (eval $ac_try) 2>&5
54783   ac_status=$?
54784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54785   (exit $ac_status); }; }; then
54786   eval "$as_ac_var=yes"
54787 else
54788   echo "$as_me: failed program was:" >&5
54789 sed 's/^/| /' conftest.$ac_ext >&5
54790
54791 eval "$as_ac_var=no"
54792 fi
54793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54794 fi
54795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54797 if test `eval echo '${'$as_ac_var'}'` = yes; then
54798   cat >>confdefs.h <<_ACEOF
54799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54800 _ACEOF
54801
54802 else
54803   ac_wfuncs=no
54804 fi
54805 done
54806
54807
54808     # Checks for wide character functions that are not required
54809     # for basic wchar_t support.  Don't disable support if they are missing.
54810     # Injection of these is wrapped with guard macros.
54811
54812
54813
54814
54815
54816 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
54817 do
54818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54819 echo "$as_me:$LINENO: checking for $ac_func" >&5
54820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54821 if eval "test \"\${$as_ac_var+set}\" = set"; then
54822   echo $ECHO_N "(cached) $ECHO_C" >&6
54823 else
54824   if test x$gcc_no_link = xyes; then
54825   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54826 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54827    { (exit 1); exit 1; }; }
54828 fi
54829 cat >conftest.$ac_ext <<_ACEOF
54830 #line $LINENO "configure"
54831 /* confdefs.h.  */
54832 _ACEOF
54833 cat confdefs.h >>conftest.$ac_ext
54834 cat >>conftest.$ac_ext <<_ACEOF
54835 /* end confdefs.h.  */
54836 /* System header to define __stub macros and hopefully few prototypes,
54837     which can conflict with char $ac_func (); below.
54838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54839     <limits.h> exists even on freestanding compilers.  */
54840 #ifdef __STDC__
54841 # include <limits.h>
54842 #else
54843 # include <assert.h>
54844 #endif
54845 /* Override any gcc2 internal prototype to avoid an error.  */
54846 #ifdef __cplusplus
54847 extern "C"
54848 {
54849 #endif
54850 /* We use char because int might match the return type of a gcc2
54851    builtin and then its argument prototype would still apply.  */
54852 char $ac_func ();
54853 /* The GNU C library defines this for functions which it implements
54854     to always fail with ENOSYS.  Some functions are actually named
54855     something starting with __ and the normal name is an alias.  */
54856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54857 choke me
54858 #else
54859 char (*f) () = $ac_func;
54860 #endif
54861 #ifdef __cplusplus
54862 }
54863 #endif
54864
54865 int
54866 main ()
54867 {
54868 return f != $ac_func;
54869   ;
54870   return 0;
54871 }
54872 _ACEOF
54873 rm -f conftest.$ac_objext conftest$ac_exeext
54874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54875   (eval $ac_link) 2>&5
54876   ac_status=$?
54877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54878   (exit $ac_status); } &&
54879          { ac_try='test -s conftest$ac_exeext'
54880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54881   (eval $ac_try) 2>&5
54882   ac_status=$?
54883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54884   (exit $ac_status); }; }; then
54885   eval "$as_ac_var=yes"
54886 else
54887   echo "$as_me: failed program was:" >&5
54888 sed 's/^/| /' conftest.$ac_ext >&5
54889
54890 eval "$as_ac_var=no"
54891 fi
54892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54893 fi
54894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54896 if test `eval echo '${'$as_ac_var'}'` = yes; then
54897   cat >>confdefs.h <<_ACEOF
54898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54899 _ACEOF
54900
54901 fi
54902 done
54903
54904
54905     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
54906 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
54907     if test x"$has_weof" = xyes &&
54908        test x"$has_wchar_minmax" = xyes &&
54909        test x"$ac_wfuncs" = xyes;
54910     then
54911       ac_isoC99_wchar_t=yes
54912     else
54913       ac_isoC99_wchar_t=no
54914     fi
54915     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
54916 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
54917
54918     # Use iconv for wchar_t to char conversions. As such, check for
54919     # X/Open Portability Guide, version 2 features (XPG2).
54920     if test "${ac_cv_header_iconv_h+set}" = set; then
54921   echo "$as_me:$LINENO: checking for iconv.h" >&5
54922 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
54923 if test "${ac_cv_header_iconv_h+set}" = set; then
54924   echo $ECHO_N "(cached) $ECHO_C" >&6
54925 fi
54926 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54927 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54928 else
54929   # Is the header compilable?
54930 echo "$as_me:$LINENO: checking iconv.h usability" >&5
54931 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
54932 cat >conftest.$ac_ext <<_ACEOF
54933 #line $LINENO "configure"
54934 /* confdefs.h.  */
54935 _ACEOF
54936 cat confdefs.h >>conftest.$ac_ext
54937 cat >>conftest.$ac_ext <<_ACEOF
54938 /* end confdefs.h.  */
54939 $ac_includes_default
54940 #include <iconv.h>
54941 _ACEOF
54942 rm -f conftest.$ac_objext
54943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54944   (eval $ac_compile) 2>&5
54945   ac_status=$?
54946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54947   (exit $ac_status); } &&
54948          { ac_try='test -s conftest.$ac_objext'
54949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54950   (eval $ac_try) 2>&5
54951   ac_status=$?
54952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54953   (exit $ac_status); }; }; then
54954   ac_header_compiler=yes
54955 else
54956   echo "$as_me: failed program was:" >&5
54957 sed 's/^/| /' conftest.$ac_ext >&5
54958
54959 ac_header_compiler=no
54960 fi
54961 rm -f conftest.$ac_objext conftest.$ac_ext
54962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54963 echo "${ECHO_T}$ac_header_compiler" >&6
54964
54965 # Is the header present?
54966 echo "$as_me:$LINENO: checking iconv.h presence" >&5
54967 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
54968 cat >conftest.$ac_ext <<_ACEOF
54969 #line $LINENO "configure"
54970 /* confdefs.h.  */
54971 _ACEOF
54972 cat confdefs.h >>conftest.$ac_ext
54973 cat >>conftest.$ac_ext <<_ACEOF
54974 /* end confdefs.h.  */
54975 #include <iconv.h>
54976 _ACEOF
54977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54979   ac_status=$?
54980   grep -v '^ *+' conftest.er1 >conftest.err
54981   rm -f conftest.er1
54982   cat conftest.err >&5
54983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54984   (exit $ac_status); } >/dev/null; then
54985   if test -s conftest.err; then
54986     ac_cpp_err=$ac_c_preproc_warn_flag
54987   else
54988     ac_cpp_err=
54989   fi
54990 else
54991   ac_cpp_err=yes
54992 fi
54993 if test -z "$ac_cpp_err"; then
54994   ac_header_preproc=yes
54995 else
54996   echo "$as_me: failed program was:" >&5
54997 sed 's/^/| /' conftest.$ac_ext >&5
54998
54999   ac_header_preproc=no
55000 fi
55001 rm -f conftest.err conftest.$ac_ext
55002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55003 echo "${ECHO_T}$ac_header_preproc" >&6
55004
55005 # So?  What about this header?
55006 case $ac_header_compiler:$ac_header_preproc in
55007   yes:no )
55008     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
55009 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55010     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55011 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55012     (
55013       cat <<\_ASBOX
55014 ## ------------------------------------ ##
55015 ## Report this to bug-autoconf@gnu.org. ##
55016 ## ------------------------------------ ##
55017 _ASBOX
55018     ) |
55019       sed "s/^/$as_me: WARNING:     /" >&2
55020     ;;
55021   no:yes )
55022     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
55023 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
55024     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
55025 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
55026     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55027 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55028     (
55029       cat <<\_ASBOX
55030 ## ------------------------------------ ##
55031 ## Report this to bug-autoconf@gnu.org. ##
55032 ## ------------------------------------ ##
55033 _ASBOX
55034     ) |
55035       sed "s/^/$as_me: WARNING:     /" >&2
55036     ;;
55037 esac
55038 echo "$as_me:$LINENO: checking for iconv.h" >&5
55039 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55040 if test "${ac_cv_header_iconv_h+set}" = set; then
55041   echo $ECHO_N "(cached) $ECHO_C" >&6
55042 else
55043   ac_cv_header_iconv_h=$ac_header_preproc
55044 fi
55045 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55046 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55047
55048 fi
55049 if test $ac_cv_header_iconv_h = yes; then
55050   ac_has_iconv_h=yes
55051 else
55052   ac_has_iconv_h=no
55053 fi
55054
55055
55056     if test "${ac_cv_header_langinfo_h+set}" = set; then
55057   echo "$as_me:$LINENO: checking for langinfo.h" >&5
55058 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55059 if test "${ac_cv_header_langinfo_h+set}" = set; then
55060   echo $ECHO_N "(cached) $ECHO_C" >&6
55061 fi
55062 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55063 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55064 else
55065   # Is the header compilable?
55066 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55067 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55068 cat >conftest.$ac_ext <<_ACEOF
55069 #line $LINENO "configure"
55070 /* confdefs.h.  */
55071 _ACEOF
55072 cat confdefs.h >>conftest.$ac_ext
55073 cat >>conftest.$ac_ext <<_ACEOF
55074 /* end confdefs.h.  */
55075 $ac_includes_default
55076 #include <langinfo.h>
55077 _ACEOF
55078 rm -f conftest.$ac_objext
55079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55080   (eval $ac_compile) 2>&5
55081   ac_status=$?
55082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55083   (exit $ac_status); } &&
55084          { ac_try='test -s conftest.$ac_objext'
55085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55086   (eval $ac_try) 2>&5
55087   ac_status=$?
55088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55089   (exit $ac_status); }; }; then
55090   ac_header_compiler=yes
55091 else
55092   echo "$as_me: failed program was:" >&5
55093 sed 's/^/| /' conftest.$ac_ext >&5
55094
55095 ac_header_compiler=no
55096 fi
55097 rm -f conftest.$ac_objext conftest.$ac_ext
55098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55099 echo "${ECHO_T}$ac_header_compiler" >&6
55100
55101 # Is the header present?
55102 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55103 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55104 cat >conftest.$ac_ext <<_ACEOF
55105 #line $LINENO "configure"
55106 /* confdefs.h.  */
55107 _ACEOF
55108 cat confdefs.h >>conftest.$ac_ext
55109 cat >>conftest.$ac_ext <<_ACEOF
55110 /* end confdefs.h.  */
55111 #include <langinfo.h>
55112 _ACEOF
55113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55115   ac_status=$?
55116   grep -v '^ *+' conftest.er1 >conftest.err
55117   rm -f conftest.er1
55118   cat conftest.err >&5
55119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55120   (exit $ac_status); } >/dev/null; then
55121   if test -s conftest.err; then
55122     ac_cpp_err=$ac_c_preproc_warn_flag
55123   else
55124     ac_cpp_err=
55125   fi
55126 else
55127   ac_cpp_err=yes
55128 fi
55129 if test -z "$ac_cpp_err"; then
55130   ac_header_preproc=yes
55131 else
55132   echo "$as_me: failed program was:" >&5
55133 sed 's/^/| /' conftest.$ac_ext >&5
55134
55135   ac_header_preproc=no
55136 fi
55137 rm -f conftest.err conftest.$ac_ext
55138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55139 echo "${ECHO_T}$ac_header_preproc" >&6
55140
55141 # So?  What about this header?
55142 case $ac_header_compiler:$ac_header_preproc in
55143   yes:no )
55144     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55145 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55146     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55147 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55148     (
55149       cat <<\_ASBOX
55150 ## ------------------------------------ ##
55151 ## Report this to bug-autoconf@gnu.org. ##
55152 ## ------------------------------------ ##
55153 _ASBOX
55154     ) |
55155       sed "s/^/$as_me: WARNING:     /" >&2
55156     ;;
55157   no:yes )
55158     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55159 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55160     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
55161 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
55162     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55163 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55164     (
55165       cat <<\_ASBOX
55166 ## ------------------------------------ ##
55167 ## Report this to bug-autoconf@gnu.org. ##
55168 ## ------------------------------------ ##
55169 _ASBOX
55170     ) |
55171       sed "s/^/$as_me: WARNING:     /" >&2
55172     ;;
55173 esac
55174 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55175 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55176 if test "${ac_cv_header_langinfo_h+set}" = set; then
55177   echo $ECHO_N "(cached) $ECHO_C" >&6
55178 else
55179   ac_cv_header_langinfo_h=$ac_header_preproc
55180 fi
55181 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55182 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55183
55184 fi
55185 if test $ac_cv_header_langinfo_h = yes; then
55186   ac_has_langinfo_h=yes
55187 else
55188   ac_has_langinfo_h=no
55189 fi
55190
55191
55192
55193     # Check for existence of libiconv.a providing XPG2 wchar_t support.
55194     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
55195 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
55196 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
55197   echo $ECHO_N "(cached) $ECHO_C" >&6
55198 else
55199   ac_check_lib_save_LIBS=$LIBS
55200 LIBS="-liconv  $LIBS"
55201 if test x$gcc_no_link = xyes; then
55202   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55203 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55204    { (exit 1); exit 1; }; }
55205 fi
55206 cat >conftest.$ac_ext <<_ACEOF
55207 #line $LINENO "configure"
55208 /* confdefs.h.  */
55209 _ACEOF
55210 cat confdefs.h >>conftest.$ac_ext
55211 cat >>conftest.$ac_ext <<_ACEOF
55212 /* end confdefs.h.  */
55213
55214 /* Override any gcc2 internal prototype to avoid an error.  */
55215 #ifdef __cplusplus
55216 extern "C"
55217 #endif
55218 /* We use char because int might match the return type of a gcc2
55219    builtin and then its argument prototype would still apply.  */
55220 char iconv ();
55221 int
55222 main ()
55223 {
55224 iconv ();
55225   ;
55226   return 0;
55227 }
55228 _ACEOF
55229 rm -f conftest.$ac_objext conftest$ac_exeext
55230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55231   (eval $ac_link) 2>&5
55232   ac_status=$?
55233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55234   (exit $ac_status); } &&
55235          { ac_try='test -s conftest$ac_exeext'
55236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55237   (eval $ac_try) 2>&5
55238   ac_status=$?
55239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55240   (exit $ac_status); }; }; then
55241   ac_cv_lib_iconv_iconv=yes
55242 else
55243   echo "$as_me: failed program was:" >&5
55244 sed 's/^/| /' conftest.$ac_ext >&5
55245
55246 ac_cv_lib_iconv_iconv=no
55247 fi
55248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55249 LIBS=$ac_check_lib_save_LIBS
55250 fi
55251 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
55252 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
55253 if test $ac_cv_lib_iconv_iconv = yes; then
55254   libiconv="-liconv"
55255 fi
55256
55257     ac_save_LIBS="$LIBS"
55258     LIBS="$LIBS $libiconv"
55259
55260
55261
55262
55263
55264 for ac_func in iconv_open iconv_close iconv nl_langinfo
55265 do
55266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55267 echo "$as_me:$LINENO: checking for $ac_func" >&5
55268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55269 if eval "test \"\${$as_ac_var+set}\" = set"; then
55270   echo $ECHO_N "(cached) $ECHO_C" >&6
55271 else
55272   if test x$gcc_no_link = xyes; then
55273   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55275    { (exit 1); exit 1; }; }
55276 fi
55277 cat >conftest.$ac_ext <<_ACEOF
55278 #line $LINENO "configure"
55279 /* confdefs.h.  */
55280 _ACEOF
55281 cat confdefs.h >>conftest.$ac_ext
55282 cat >>conftest.$ac_ext <<_ACEOF
55283 /* end confdefs.h.  */
55284 /* System header to define __stub macros and hopefully few prototypes,
55285     which can conflict with char $ac_func (); below.
55286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55287     <limits.h> exists even on freestanding compilers.  */
55288 #ifdef __STDC__
55289 # include <limits.h>
55290 #else
55291 # include <assert.h>
55292 #endif
55293 /* Override any gcc2 internal prototype to avoid an error.  */
55294 #ifdef __cplusplus
55295 extern "C"
55296 {
55297 #endif
55298 /* We use char because int might match the return type of a gcc2
55299    builtin and then its argument prototype would still apply.  */
55300 char $ac_func ();
55301 /* The GNU C library defines this for functions which it implements
55302     to always fail with ENOSYS.  Some functions are actually named
55303     something starting with __ and the normal name is an alias.  */
55304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55305 choke me
55306 #else
55307 char (*f) () = $ac_func;
55308 #endif
55309 #ifdef __cplusplus
55310 }
55311 #endif
55312
55313 int
55314 main ()
55315 {
55316 return f != $ac_func;
55317   ;
55318   return 0;
55319 }
55320 _ACEOF
55321 rm -f conftest.$ac_objext conftest$ac_exeext
55322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55323   (eval $ac_link) 2>&5
55324   ac_status=$?
55325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55326   (exit $ac_status); } &&
55327          { ac_try='test -s conftest$ac_exeext'
55328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55329   (eval $ac_try) 2>&5
55330   ac_status=$?
55331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55332   (exit $ac_status); }; }; then
55333   eval "$as_ac_var=yes"
55334 else
55335   echo "$as_me: failed program was:" >&5
55336 sed 's/^/| /' conftest.$ac_ext >&5
55337
55338 eval "$as_ac_var=no"
55339 fi
55340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55341 fi
55342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55344 if test `eval echo '${'$as_ac_var'}'` = yes; then
55345   cat >>confdefs.h <<_ACEOF
55346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55347 _ACEOF
55348  ac_XPG2funcs=yes
55349 else
55350   ac_XPG2funcs=no
55351 fi
55352 done
55353
55354
55355     LIBS="$ac_save_LIBS"
55356
55357     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
55358 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
55359     if test x"$ac_has_iconv_h" = xyes &&
55360        test x"$ac_has_langinfo_h" = xyes &&
55361        test x"$ac_XPG2funcs" = xyes;
55362     then
55363       ac_XPG2_wchar_t=yes
55364     else
55365       ac_XPG2_wchar_t=no
55366     fi
55367     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
55368 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
55369
55370     # At the moment, only enable wchar_t specializations if all the
55371     # above support is present.
55372     if test x"$ac_isoC99_wchar_t" = xyes &&
55373        test x"$ac_XPG2_wchar_t" = xyes;
55374     then
55375       cat >>confdefs.h <<\_ACEOF
55376 #define _GLIBCXX_USE_WCHAR_T 1
55377 _ACEOF
55378
55379       enable_wchar_t=yes
55380     fi
55381   fi
55382   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
55383 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
55384   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
55385 echo "${ECHO_T}$enable_wchar_t" >&6
55386
55387     ;;
55388   *-netbsd*)
55389
55390
55391
55392
55393
55394
55395
55396
55397
55398
55399
55400
55401 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55402       machine/endian.h machine/param.h sys/machine.h sys/types.h \
55403       fp.h locale.h float.h inttypes.h
55404 do
55405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55407   echo "$as_me:$LINENO: checking for $ac_header" >&5
55408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55410   echo $ECHO_N "(cached) $ECHO_C" >&6
55411 fi
55412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55414 else
55415   # Is the header compilable?
55416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55418 cat >conftest.$ac_ext <<_ACEOF
55419 #line $LINENO "configure"
55420 /* confdefs.h.  */
55421 _ACEOF
55422 cat confdefs.h >>conftest.$ac_ext
55423 cat >>conftest.$ac_ext <<_ACEOF
55424 /* end confdefs.h.  */
55425 $ac_includes_default
55426 #include <$ac_header>
55427 _ACEOF
55428 rm -f conftest.$ac_objext
55429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55430   (eval $ac_compile) 2>&5
55431   ac_status=$?
55432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55433   (exit $ac_status); } &&
55434          { ac_try='test -s conftest.$ac_objext'
55435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55436   (eval $ac_try) 2>&5
55437   ac_status=$?
55438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55439   (exit $ac_status); }; }; then
55440   ac_header_compiler=yes
55441 else
55442   echo "$as_me: failed program was:" >&5
55443 sed 's/^/| /' conftest.$ac_ext >&5
55444
55445 ac_header_compiler=no
55446 fi
55447 rm -f conftest.$ac_objext conftest.$ac_ext
55448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55449 echo "${ECHO_T}$ac_header_compiler" >&6
55450
55451 # Is the header present?
55452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55454 cat >conftest.$ac_ext <<_ACEOF
55455 #line $LINENO "configure"
55456 /* confdefs.h.  */
55457 _ACEOF
55458 cat confdefs.h >>conftest.$ac_ext
55459 cat >>conftest.$ac_ext <<_ACEOF
55460 /* end confdefs.h.  */
55461 #include <$ac_header>
55462 _ACEOF
55463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55465   ac_status=$?
55466   grep -v '^ *+' conftest.er1 >conftest.err
55467   rm -f conftest.er1
55468   cat conftest.err >&5
55469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55470   (exit $ac_status); } >/dev/null; then
55471   if test -s conftest.err; then
55472     ac_cpp_err=$ac_c_preproc_warn_flag
55473   else
55474     ac_cpp_err=
55475   fi
55476 else
55477   ac_cpp_err=yes
55478 fi
55479 if test -z "$ac_cpp_err"; then
55480   ac_header_preproc=yes
55481 else
55482   echo "$as_me: failed program was:" >&5
55483 sed 's/^/| /' conftest.$ac_ext >&5
55484
55485   ac_header_preproc=no
55486 fi
55487 rm -f conftest.err conftest.$ac_ext
55488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55489 echo "${ECHO_T}$ac_header_preproc" >&6
55490
55491 # So?  What about this header?
55492 case $ac_header_compiler:$ac_header_preproc in
55493   yes:no )
55494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55498     (
55499       cat <<\_ASBOX
55500 ## ------------------------------------ ##
55501 ## Report this to bug-autoconf@gnu.org. ##
55502 ## ------------------------------------ ##
55503 _ASBOX
55504     ) |
55505       sed "s/^/$as_me: WARNING:     /" >&2
55506     ;;
55507   no:yes )
55508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55510     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55514     (
55515       cat <<\_ASBOX
55516 ## ------------------------------------ ##
55517 ## Report this to bug-autoconf@gnu.org. ##
55518 ## ------------------------------------ ##
55519 _ASBOX
55520     ) |
55521       sed "s/^/$as_me: WARNING:     /" >&2
55522     ;;
55523 esac
55524 echo "$as_me:$LINENO: checking for $ac_header" >&5
55525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55527   echo $ECHO_N "(cached) $ECHO_C" >&6
55528 else
55529   eval "$as_ac_Header=$ac_header_preproc"
55530 fi
55531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55533
55534 fi
55535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55536   cat >>confdefs.h <<_ACEOF
55537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55538 _ACEOF
55539
55540 fi
55541
55542 done
55543
55544     SECTION_FLAGS='-ffunction-sections -fdata-sections'
55545
55546
55547   # If we're not using GNU ld, then there's no point in even trying these
55548   # tests.  Check for that first.  We should have already tested for gld
55549   # by now (in libtool), but require it now just to be safe...
55550   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
55551   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
55552
55553
55554
55555   # The name set by libtool depends on the version of libtool.  Shame on us
55556   # for depending on an impl detail, but c'est la vie.  Older versions used
55557   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
55558   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
55559   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
55560   # set (hence we're using an older libtool), then set it.
55561   if test x${with_gnu_ld+set} != xset; then
55562     if test x${ac_cv_prog_gnu_ld+set} != xset; then
55563       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
55564       with_gnu_ld=no
55565     else
55566       with_gnu_ld=$ac_cv_prog_gnu_ld
55567     fi
55568   fi
55569
55570   # Start by getting the version number.  I think the libtool test already
55571   # does some of this, but throws away the result.
55572
55573   ldver=`$LD --version 2>/dev/null | head -1 | \
55574          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
55575
55576   glibcxx_gnu_ld_version=`echo $ldver | \
55577          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
55578
55579   # Set --gc-sections.
55580   if test "$with_gnu_ld" = "notbroken"; then
55581     # GNU ld it is!  Joy and bunny rabbits!
55582
55583     # All these tests are for C++; save the language and the compiler flags.
55584     # Need to do this so that g++ won't try to link in libstdc++
55585     ac_test_CFLAGS="${CFLAGS+set}"
55586     ac_save_CFLAGS="$CFLAGS"
55587     CFLAGS='-x c++  -Wl,--gc-sections'
55588
55589     # Check for -Wl,--gc-sections
55590     # XXX This test is broken at the moment, as symbols required for linking
55591     # are now in libsupc++ (not built yet).  In addition, this test has
55592     # cored on solaris in the past.  In addition, --gc-sections doesn't
55593     # really work at the moment (keeps on discarding used sections, first
55594     # .eh_frame and now some of the glibc sections for iconv).
55595     # Bzzzzt.  Thanks for playing, maybe next time.
55596     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
55597 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
55598     if test "$cross_compiling" = yes; then
55599   ac_sectionLDflags=yes
55600 else
55601   cat >conftest.$ac_ext <<_ACEOF
55602 #line $LINENO "configure"
55603 /* confdefs.h.  */
55604 _ACEOF
55605 cat confdefs.h >>conftest.$ac_ext
55606 cat >>conftest.$ac_ext <<_ACEOF
55607 /* end confdefs.h.  */
55608
55609      int main(void)
55610      {
55611        try { throw 1; }
55612        catch (...) { };
55613        return 0;
55614      }
55615
55616 _ACEOF
55617 rm -f conftest$ac_exeext
55618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55619   (eval $ac_link) 2>&5
55620   ac_status=$?
55621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55624   (eval $ac_try) 2>&5
55625   ac_status=$?
55626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55627   (exit $ac_status); }; }; then
55628   ac_sectionLDflags=yes
55629 else
55630   echo "$as_me: program exited with status $ac_status" >&5
55631 echo "$as_me: failed program was:" >&5
55632 sed 's/^/| /' conftest.$ac_ext >&5
55633
55634 ( exit $ac_status )
55635 ac_sectionLDflags=no
55636 fi
55637 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55638 fi
55639     if test "$ac_test_CFLAGS" = set; then
55640       CFLAGS="$ac_save_CFLAGS"
55641     else
55642       # this is the suspicious part
55643       CFLAGS=''
55644     fi
55645     if test "$ac_sectionLDflags" = "yes"; then
55646       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
55647     fi
55648     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
55649 echo "${ECHO_T}$ac_sectionLDflags" >&6
55650   fi
55651
55652   # Set linker optimization flags.
55653   if test x"$with_gnu_ld" = x"yes"; then
55654     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
55655   fi
55656
55657
55658
55659
55660
55661
55662 echo "$as_me:$LINENO: checking for main in -lm" >&5
55663 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
55664 if test "${ac_cv_lib_m_main+set}" = set; then
55665   echo $ECHO_N "(cached) $ECHO_C" >&6
55666 else
55667   ac_check_lib_save_LIBS=$LIBS
55668 LIBS="-lm  $LIBS"
55669 if test x$gcc_no_link = xyes; then
55670   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55672    { (exit 1); exit 1; }; }
55673 fi
55674 cat >conftest.$ac_ext <<_ACEOF
55675 #line $LINENO "configure"
55676 /* confdefs.h.  */
55677 _ACEOF
55678 cat confdefs.h >>conftest.$ac_ext
55679 cat >>conftest.$ac_ext <<_ACEOF
55680 /* end confdefs.h.  */
55681
55682
55683 int
55684 main ()
55685 {
55686 main ();
55687   ;
55688   return 0;
55689 }
55690 _ACEOF
55691 rm -f conftest.$ac_objext conftest$ac_exeext
55692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55693   (eval $ac_link) 2>&5
55694   ac_status=$?
55695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55696   (exit $ac_status); } &&
55697          { ac_try='test -s conftest$ac_exeext'
55698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55699   (eval $ac_try) 2>&5
55700   ac_status=$?
55701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55702   (exit $ac_status); }; }; then
55703   ac_cv_lib_m_main=yes
55704 else
55705   echo "$as_me: failed program was:" >&5
55706 sed 's/^/| /' conftest.$ac_ext >&5
55707
55708 ac_cv_lib_m_main=no
55709 fi
55710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55711 LIBS=$ac_check_lib_save_LIBS
55712 fi
55713 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
55714 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
55715 if test $ac_cv_lib_m_main = yes; then
55716   cat >>confdefs.h <<_ACEOF
55717 #define HAVE_LIBM 1
55718 _ACEOF
55719
55720   LIBS="-lm $LIBS"
55721
55722 fi
55723
55724
55725 for ac_func in copysignf
55726 do
55727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55728 echo "$as_me:$LINENO: checking for $ac_func" >&5
55729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55730 if eval "test \"\${$as_ac_var+set}\" = set"; then
55731   echo $ECHO_N "(cached) $ECHO_C" >&6
55732 else
55733   if test x$gcc_no_link = xyes; then
55734   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55736    { (exit 1); exit 1; }; }
55737 fi
55738 cat >conftest.$ac_ext <<_ACEOF
55739 #line $LINENO "configure"
55740 /* confdefs.h.  */
55741 _ACEOF
55742 cat confdefs.h >>conftest.$ac_ext
55743 cat >>conftest.$ac_ext <<_ACEOF
55744 /* end confdefs.h.  */
55745 /* System header to define __stub macros and hopefully few prototypes,
55746     which can conflict with char $ac_func (); below.
55747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55748     <limits.h> exists even on freestanding compilers.  */
55749 #ifdef __STDC__
55750 # include <limits.h>
55751 #else
55752 # include <assert.h>
55753 #endif
55754 /* Override any gcc2 internal prototype to avoid an error.  */
55755 #ifdef __cplusplus
55756 extern "C"
55757 {
55758 #endif
55759 /* We use char because int might match the return type of a gcc2
55760    builtin and then its argument prototype would still apply.  */
55761 char $ac_func ();
55762 /* The GNU C library defines this for functions which it implements
55763     to always fail with ENOSYS.  Some functions are actually named
55764     something starting with __ and the normal name is an alias.  */
55765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55766 choke me
55767 #else
55768 char (*f) () = $ac_func;
55769 #endif
55770 #ifdef __cplusplus
55771 }
55772 #endif
55773
55774 int
55775 main ()
55776 {
55777 return f != $ac_func;
55778   ;
55779   return 0;
55780 }
55781 _ACEOF
55782 rm -f conftest.$ac_objext conftest$ac_exeext
55783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55784   (eval $ac_link) 2>&5
55785   ac_status=$?
55786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55787   (exit $ac_status); } &&
55788          { ac_try='test -s conftest$ac_exeext'
55789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55790   (eval $ac_try) 2>&5
55791   ac_status=$?
55792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55793   (exit $ac_status); }; }; then
55794   eval "$as_ac_var=yes"
55795 else
55796   echo "$as_me: failed program was:" >&5
55797 sed 's/^/| /' conftest.$ac_ext >&5
55798
55799 eval "$as_ac_var=no"
55800 fi
55801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55802 fi
55803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55805 if test `eval echo '${'$as_ac_var'}'` = yes; then
55806   cat >>confdefs.h <<_ACEOF
55807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55808 _ACEOF
55809
55810 else
55811   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
55812 fi
55813 done
55814
55815
55816
55817 for ac_func in __signbit
55818 do
55819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55820 echo "$as_me:$LINENO: checking for $ac_func" >&5
55821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55822 if eval "test \"\${$as_ac_var+set}\" = set"; then
55823   echo $ECHO_N "(cached) $ECHO_C" >&6
55824 else
55825   if test x$gcc_no_link = xyes; then
55826   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55827 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55828    { (exit 1); exit 1; }; }
55829 fi
55830 cat >conftest.$ac_ext <<_ACEOF
55831 #line $LINENO "configure"
55832 /* confdefs.h.  */
55833 _ACEOF
55834 cat confdefs.h >>conftest.$ac_ext
55835 cat >>conftest.$ac_ext <<_ACEOF
55836 /* end confdefs.h.  */
55837 /* System header to define __stub macros and hopefully few prototypes,
55838     which can conflict with char $ac_func (); below.
55839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55840     <limits.h> exists even on freestanding compilers.  */
55841 #ifdef __STDC__
55842 # include <limits.h>
55843 #else
55844 # include <assert.h>
55845 #endif
55846 /* Override any gcc2 internal prototype to avoid an error.  */
55847 #ifdef __cplusplus
55848 extern "C"
55849 {
55850 #endif
55851 /* We use char because int might match the return type of a gcc2
55852    builtin and then its argument prototype would still apply.  */
55853 char $ac_func ();
55854 /* The GNU C library defines this for functions which it implements
55855     to always fail with ENOSYS.  Some functions are actually named
55856     something starting with __ and the normal name is an alias.  */
55857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55858 choke me
55859 #else
55860 char (*f) () = $ac_func;
55861 #endif
55862 #ifdef __cplusplus
55863 }
55864 #endif
55865
55866 int
55867 main ()
55868 {
55869 return f != $ac_func;
55870   ;
55871   return 0;
55872 }
55873 _ACEOF
55874 rm -f conftest.$ac_objext conftest$ac_exeext
55875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55876   (eval $ac_link) 2>&5
55877   ac_status=$?
55878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55879   (exit $ac_status); } &&
55880          { ac_try='test -s conftest$ac_exeext'
55881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55882   (eval $ac_try) 2>&5
55883   ac_status=$?
55884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55885   (exit $ac_status); }; }; then
55886   eval "$as_ac_var=yes"
55887 else
55888   echo "$as_me: failed program was:" >&5
55889 sed 's/^/| /' conftest.$ac_ext >&5
55890
55891 eval "$as_ac_var=no"
55892 fi
55893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55894 fi
55895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55897 if test `eval echo '${'$as_ac_var'}'` = yes; then
55898   cat >>confdefs.h <<_ACEOF
55899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55900 _ACEOF
55901
55902 else
55903   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
55904 fi
55905 done
55906
55907
55908 for ac_func in __signbitf
55909 do
55910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55911 echo "$as_me:$LINENO: checking for $ac_func" >&5
55912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55913 if eval "test \"\${$as_ac_var+set}\" = set"; then
55914   echo $ECHO_N "(cached) $ECHO_C" >&6
55915 else
55916   if test x$gcc_no_link = xyes; then
55917   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55919    { (exit 1); exit 1; }; }
55920 fi
55921 cat >conftest.$ac_ext <<_ACEOF
55922 #line $LINENO "configure"
55923 /* confdefs.h.  */
55924 _ACEOF
55925 cat confdefs.h >>conftest.$ac_ext
55926 cat >>conftest.$ac_ext <<_ACEOF
55927 /* end confdefs.h.  */
55928 /* System header to define __stub macros and hopefully few prototypes,
55929     which can conflict with char $ac_func (); below.
55930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55931     <limits.h> exists even on freestanding compilers.  */
55932 #ifdef __STDC__
55933 # include <limits.h>
55934 #else
55935 # include <assert.h>
55936 #endif
55937 /* Override any gcc2 internal prototype to avoid an error.  */
55938 #ifdef __cplusplus
55939 extern "C"
55940 {
55941 #endif
55942 /* We use char because int might match the return type of a gcc2
55943    builtin and then its argument prototype would still apply.  */
55944 char $ac_func ();
55945 /* The GNU C library defines this for functions which it implements
55946     to always fail with ENOSYS.  Some functions are actually named
55947     something starting with __ and the normal name is an alias.  */
55948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55949 choke me
55950 #else
55951 char (*f) () = $ac_func;
55952 #endif
55953 #ifdef __cplusplus
55954 }
55955 #endif
55956
55957 int
55958 main ()
55959 {
55960 return f != $ac_func;
55961   ;
55962   return 0;
55963 }
55964 _ACEOF
55965 rm -f conftest.$ac_objext conftest$ac_exeext
55966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55967   (eval $ac_link) 2>&5
55968   ac_status=$?
55969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55970   (exit $ac_status); } &&
55971          { ac_try='test -s conftest$ac_exeext'
55972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55973   (eval $ac_try) 2>&5
55974   ac_status=$?
55975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55976   (exit $ac_status); }; }; then
55977   eval "$as_ac_var=yes"
55978 else
55979   echo "$as_me: failed program was:" >&5
55980 sed 's/^/| /' conftest.$ac_ext >&5
55981
55982 eval "$as_ac_var=no"
55983 fi
55984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55985 fi
55986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55988 if test `eval echo '${'$as_ac_var'}'` = yes; then
55989   cat >>confdefs.h <<_ACEOF
55990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55991 _ACEOF
55992
55993 else
55994   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
55995 fi
55996 done
55997
55998
55999           if test x$ac_cv_func_copysignl = x"yes"; then
56000
56001 for ac_func in __signbitl
56002 do
56003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56004 echo "$as_me:$LINENO: checking for $ac_func" >&5
56005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56006 if eval "test \"\${$as_ac_var+set}\" = set"; then
56007   echo $ECHO_N "(cached) $ECHO_C" >&6
56008 else
56009   if test x$gcc_no_link = xyes; then
56010   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56011 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56012    { (exit 1); exit 1; }; }
56013 fi
56014 cat >conftest.$ac_ext <<_ACEOF
56015 #line $LINENO "configure"
56016 /* confdefs.h.  */
56017 _ACEOF
56018 cat confdefs.h >>conftest.$ac_ext
56019 cat >>conftest.$ac_ext <<_ACEOF
56020 /* end confdefs.h.  */
56021 /* System header to define __stub macros and hopefully few prototypes,
56022     which can conflict with char $ac_func (); below.
56023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56024     <limits.h> exists even on freestanding compilers.  */
56025 #ifdef __STDC__
56026 # include <limits.h>
56027 #else
56028 # include <assert.h>
56029 #endif
56030 /* Override any gcc2 internal prototype to avoid an error.  */
56031 #ifdef __cplusplus
56032 extern "C"
56033 {
56034 #endif
56035 /* We use char because int might match the return type of a gcc2
56036    builtin and then its argument prototype would still apply.  */
56037 char $ac_func ();
56038 /* The GNU C library defines this for functions which it implements
56039     to always fail with ENOSYS.  Some functions are actually named
56040     something starting with __ and the normal name is an alias.  */
56041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56042 choke me
56043 #else
56044 char (*f) () = $ac_func;
56045 #endif
56046 #ifdef __cplusplus
56047 }
56048 #endif
56049
56050 int
56051 main ()
56052 {
56053 return f != $ac_func;
56054   ;
56055   return 0;
56056 }
56057 _ACEOF
56058 rm -f conftest.$ac_objext conftest$ac_exeext
56059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56060   (eval $ac_link) 2>&5
56061   ac_status=$?
56062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56063   (exit $ac_status); } &&
56064          { ac_try='test -s conftest$ac_exeext'
56065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56066   (eval $ac_try) 2>&5
56067   ac_status=$?
56068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56069   (exit $ac_status); }; }; then
56070   eval "$as_ac_var=yes"
56071 else
56072   echo "$as_me: failed program was:" >&5
56073 sed 's/^/| /' conftest.$ac_ext >&5
56074
56075 eval "$as_ac_var=no"
56076 fi
56077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56078 fi
56079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56081 if test `eval echo '${'$as_ac_var'}'` = yes; then
56082   cat >>confdefs.h <<_ACEOF
56083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56084 _ACEOF
56085
56086 else
56087   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56088 fi
56089 done
56090
56091   fi
56092
56093   # XXX Review this.  Nothing uses it.
56094   if test -n "$LIBMATHOBJS"; then
56095     need_libmath=yes
56096   fi
56097
56098
56099
56100   # Test wchar.h for mbstate_t, which is needed for char_traits and
56101   # others even if wchar_t support is not on.
56102   echo "$as_me:$LINENO: checking for mbstate_t" >&5
56103 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56104   cat >conftest.$ac_ext <<_ACEOF
56105 #line $LINENO "configure"
56106 /* confdefs.h.  */
56107 _ACEOF
56108 cat confdefs.h >>conftest.$ac_ext
56109 cat >>conftest.$ac_ext <<_ACEOF
56110 /* end confdefs.h.  */
56111 #include <wchar.h>
56112 int
56113 main ()
56114 {
56115 mbstate_t teststate;
56116   ;
56117   return 0;
56118 }
56119 _ACEOF
56120 rm -f conftest.$ac_objext
56121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56122   (eval $ac_compile) 2>&5
56123   ac_status=$?
56124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56125   (exit $ac_status); } &&
56126          { ac_try='test -s conftest.$ac_objext'
56127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56128   (eval $ac_try) 2>&5
56129   ac_status=$?
56130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56131   (exit $ac_status); }; }; then
56132   have_mbstate_t=yes
56133 else
56134   echo "$as_me: failed program was:" >&5
56135 sed 's/^/| /' conftest.$ac_ext >&5
56136
56137 have_mbstate_t=no
56138 fi
56139 rm -f conftest.$ac_objext conftest.$ac_ext
56140   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56141 echo "${ECHO_T}$have_mbstate_t" >&6
56142   if test x"$have_mbstate_t" = xyes; then
56143     cat >>confdefs.h <<\_ACEOF
56144 #define HAVE_MBSTATE_T 1
56145 _ACEOF
56146
56147   fi
56148
56149   # Sanity check for existence of ISO C99 headers for extended encoding.
56150
56151 for ac_header in wchar.h
56152 do
56153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56155   echo "$as_me:$LINENO: checking for $ac_header" >&5
56156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56158   echo $ECHO_N "(cached) $ECHO_C" >&6
56159 fi
56160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56162 else
56163   # Is the header compilable?
56164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56166 cat >conftest.$ac_ext <<_ACEOF
56167 #line $LINENO "configure"
56168 /* confdefs.h.  */
56169 _ACEOF
56170 cat confdefs.h >>conftest.$ac_ext
56171 cat >>conftest.$ac_ext <<_ACEOF
56172 /* end confdefs.h.  */
56173 $ac_includes_default
56174 #include <$ac_header>
56175 _ACEOF
56176 rm -f conftest.$ac_objext
56177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56178   (eval $ac_compile) 2>&5
56179   ac_status=$?
56180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56181   (exit $ac_status); } &&
56182          { ac_try='test -s conftest.$ac_objext'
56183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56184   (eval $ac_try) 2>&5
56185   ac_status=$?
56186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56187   (exit $ac_status); }; }; then
56188   ac_header_compiler=yes
56189 else
56190   echo "$as_me: failed program was:" >&5
56191 sed 's/^/| /' conftest.$ac_ext >&5
56192
56193 ac_header_compiler=no
56194 fi
56195 rm -f conftest.$ac_objext conftest.$ac_ext
56196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56197 echo "${ECHO_T}$ac_header_compiler" >&6
56198
56199 # Is the header present?
56200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56202 cat >conftest.$ac_ext <<_ACEOF
56203 #line $LINENO "configure"
56204 /* confdefs.h.  */
56205 _ACEOF
56206 cat confdefs.h >>conftest.$ac_ext
56207 cat >>conftest.$ac_ext <<_ACEOF
56208 /* end confdefs.h.  */
56209 #include <$ac_header>
56210 _ACEOF
56211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56213   ac_status=$?
56214   grep -v '^ *+' conftest.er1 >conftest.err
56215   rm -f conftest.er1
56216   cat conftest.err >&5
56217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56218   (exit $ac_status); } >/dev/null; then
56219   if test -s conftest.err; then
56220     ac_cpp_err=$ac_c_preproc_warn_flag
56221   else
56222     ac_cpp_err=
56223   fi
56224 else
56225   ac_cpp_err=yes
56226 fi
56227 if test -z "$ac_cpp_err"; then
56228   ac_header_preproc=yes
56229 else
56230   echo "$as_me: failed program was:" >&5
56231 sed 's/^/| /' conftest.$ac_ext >&5
56232
56233   ac_header_preproc=no
56234 fi
56235 rm -f conftest.err conftest.$ac_ext
56236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56237 echo "${ECHO_T}$ac_header_preproc" >&6
56238
56239 # So?  What about this header?
56240 case $ac_header_compiler:$ac_header_preproc in
56241   yes:no )
56242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56246     (
56247       cat <<\_ASBOX
56248 ## ------------------------------------ ##
56249 ## Report this to bug-autoconf@gnu.org. ##
56250 ## ------------------------------------ ##
56251 _ASBOX
56252     ) |
56253       sed "s/^/$as_me: WARNING:     /" >&2
56254     ;;
56255   no:yes )
56256     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56258     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56262     (
56263       cat <<\_ASBOX
56264 ## ------------------------------------ ##
56265 ## Report this to bug-autoconf@gnu.org. ##
56266 ## ------------------------------------ ##
56267 _ASBOX
56268     ) |
56269       sed "s/^/$as_me: WARNING:     /" >&2
56270     ;;
56271 esac
56272 echo "$as_me:$LINENO: checking for $ac_header" >&5
56273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56275   echo $ECHO_N "(cached) $ECHO_C" >&6
56276 else
56277   eval "$as_ac_Header=$ac_header_preproc"
56278 fi
56279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56281
56282 fi
56283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56284   cat >>confdefs.h <<_ACEOF
56285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56286 _ACEOF
56287  ac_has_wchar_h=yes
56288 else
56289   ac_has_wchar_h=no
56290 fi
56291
56292 done
56293
56294
56295 for ac_header in wctype.h
56296 do
56297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56299   echo "$as_me:$LINENO: checking for $ac_header" >&5
56300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56302   echo $ECHO_N "(cached) $ECHO_C" >&6
56303 fi
56304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56306 else
56307   # Is the header compilable?
56308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56310 cat >conftest.$ac_ext <<_ACEOF
56311 #line $LINENO "configure"
56312 /* confdefs.h.  */
56313 _ACEOF
56314 cat confdefs.h >>conftest.$ac_ext
56315 cat >>conftest.$ac_ext <<_ACEOF
56316 /* end confdefs.h.  */
56317 $ac_includes_default
56318 #include <$ac_header>
56319 _ACEOF
56320 rm -f conftest.$ac_objext
56321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56322   (eval $ac_compile) 2>&5
56323   ac_status=$?
56324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56325   (exit $ac_status); } &&
56326          { ac_try='test -s conftest.$ac_objext'
56327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56328   (eval $ac_try) 2>&5
56329   ac_status=$?
56330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56331   (exit $ac_status); }; }; then
56332   ac_header_compiler=yes
56333 else
56334   echo "$as_me: failed program was:" >&5
56335 sed 's/^/| /' conftest.$ac_ext >&5
56336
56337 ac_header_compiler=no
56338 fi
56339 rm -f conftest.$ac_objext conftest.$ac_ext
56340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56341 echo "${ECHO_T}$ac_header_compiler" >&6
56342
56343 # Is the header present?
56344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56346 cat >conftest.$ac_ext <<_ACEOF
56347 #line $LINENO "configure"
56348 /* confdefs.h.  */
56349 _ACEOF
56350 cat confdefs.h >>conftest.$ac_ext
56351 cat >>conftest.$ac_ext <<_ACEOF
56352 /* end confdefs.h.  */
56353 #include <$ac_header>
56354 _ACEOF
56355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56357   ac_status=$?
56358   grep -v '^ *+' conftest.er1 >conftest.err
56359   rm -f conftest.er1
56360   cat conftest.err >&5
56361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56362   (exit $ac_status); } >/dev/null; then
56363   if test -s conftest.err; then
56364     ac_cpp_err=$ac_c_preproc_warn_flag
56365   else
56366     ac_cpp_err=
56367   fi
56368 else
56369   ac_cpp_err=yes
56370 fi
56371 if test -z "$ac_cpp_err"; then
56372   ac_header_preproc=yes
56373 else
56374   echo "$as_me: failed program was:" >&5
56375 sed 's/^/| /' conftest.$ac_ext >&5
56376
56377   ac_header_preproc=no
56378 fi
56379 rm -f conftest.err conftest.$ac_ext
56380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56381 echo "${ECHO_T}$ac_header_preproc" >&6
56382
56383 # So?  What about this header?
56384 case $ac_header_compiler:$ac_header_preproc in
56385   yes:no )
56386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56390     (
56391       cat <<\_ASBOX
56392 ## ------------------------------------ ##
56393 ## Report this to bug-autoconf@gnu.org. ##
56394 ## ------------------------------------ ##
56395 _ASBOX
56396     ) |
56397       sed "s/^/$as_me: WARNING:     /" >&2
56398     ;;
56399   no:yes )
56400     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56402     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56406     (
56407       cat <<\_ASBOX
56408 ## ------------------------------------ ##
56409 ## Report this to bug-autoconf@gnu.org. ##
56410 ## ------------------------------------ ##
56411 _ASBOX
56412     ) |
56413       sed "s/^/$as_me: WARNING:     /" >&2
56414     ;;
56415 esac
56416 echo "$as_me:$LINENO: checking for $ac_header" >&5
56417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56419   echo $ECHO_N "(cached) $ECHO_C" >&6
56420 else
56421   eval "$as_ac_Header=$ac_header_preproc"
56422 fi
56423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56425
56426 fi
56427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56428   cat >>confdefs.h <<_ACEOF
56429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56430 _ACEOF
56431  ac_has_wctype_h=yes
56432 else
56433   ac_has_wctype_h=no
56434 fi
56435
56436 done
56437
56438
56439   # Only continue checking if the ISO C99 headers exist and support is on.
56440   if test x"$ac_has_wchar_h" = xyes &&
56441      test x"$ac_has_wctype_h" = xyes &&
56442      test x"$enable_c_mbchar" != xno; then
56443
56444     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
56445     # numeric_limits can instantiate type_traits<wchar_t>
56446     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
56447 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
56448     cat >conftest.$ac_ext <<_ACEOF
56449 #line $LINENO "configure"
56450 /* confdefs.h.  */
56451 _ACEOF
56452 cat confdefs.h >>conftest.$ac_ext
56453 cat >>conftest.$ac_ext <<_ACEOF
56454 /* end confdefs.h.  */
56455 #include <wchar.h>
56456 int
56457 main ()
56458 {
56459 int i = WCHAR_MIN; int j = WCHAR_MAX;
56460   ;
56461   return 0;
56462 }
56463 _ACEOF
56464 rm -f conftest.$ac_objext
56465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56466   (eval $ac_compile) 2>&5
56467   ac_status=$?
56468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56469   (exit $ac_status); } &&
56470          { ac_try='test -s conftest.$ac_objext'
56471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56472   (eval $ac_try) 2>&5
56473   ac_status=$?
56474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56475   (exit $ac_status); }; }; then
56476   has_wchar_minmax=yes
56477 else
56478   echo "$as_me: failed program was:" >&5
56479 sed 's/^/| /' conftest.$ac_ext >&5
56480
56481 has_wchar_minmax=no
56482 fi
56483 rm -f conftest.$ac_objext conftest.$ac_ext
56484     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
56485 echo "${ECHO_T}$has_wchar_minmax" >&6
56486
56487     # Test wchar.h for WEOF, which is what we use to determine whether
56488     # to specialize for char_traits<wchar_t> or not.
56489     echo "$as_me:$LINENO: checking for WEOF" >&5
56490 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
56491     cat >conftest.$ac_ext <<_ACEOF
56492 #line $LINENO "configure"
56493 /* confdefs.h.  */
56494 _ACEOF
56495 cat confdefs.h >>conftest.$ac_ext
56496 cat >>conftest.$ac_ext <<_ACEOF
56497 /* end confdefs.h.  */
56498
56499       #include <wchar.h>
56500       #include <stddef.h>
56501 int
56502 main ()
56503 {
56504 wint_t i = WEOF;
56505   ;
56506   return 0;
56507 }
56508 _ACEOF
56509 rm -f conftest.$ac_objext
56510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56511   (eval $ac_compile) 2>&5
56512   ac_status=$?
56513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56514   (exit $ac_status); } &&
56515          { ac_try='test -s conftest.$ac_objext'
56516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56517   (eval $ac_try) 2>&5
56518   ac_status=$?
56519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56520   (exit $ac_status); }; }; then
56521   has_weof=yes
56522 else
56523   echo "$as_me: failed program was:" >&5
56524 sed 's/^/| /' conftest.$ac_ext >&5
56525
56526 has_weof=no
56527 fi
56528 rm -f conftest.$ac_objext conftest.$ac_ext
56529     echo "$as_me:$LINENO: result: $has_weof" >&5
56530 echo "${ECHO_T}$has_weof" >&6
56531
56532     # Tests for wide character functions used in char_traits<wchar_t>.
56533     ac_wfuncs=yes
56534
56535
56536
56537
56538
56539
56540 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
56541 do
56542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56543 echo "$as_me:$LINENO: checking for $ac_func" >&5
56544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56545 if eval "test \"\${$as_ac_var+set}\" = set"; then
56546   echo $ECHO_N "(cached) $ECHO_C" >&6
56547 else
56548   if test x$gcc_no_link = xyes; then
56549   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56551    { (exit 1); exit 1; }; }
56552 fi
56553 cat >conftest.$ac_ext <<_ACEOF
56554 #line $LINENO "configure"
56555 /* confdefs.h.  */
56556 _ACEOF
56557 cat confdefs.h >>conftest.$ac_ext
56558 cat >>conftest.$ac_ext <<_ACEOF
56559 /* end confdefs.h.  */
56560 /* System header to define __stub macros and hopefully few prototypes,
56561     which can conflict with char $ac_func (); below.
56562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56563     <limits.h> exists even on freestanding compilers.  */
56564 #ifdef __STDC__
56565 # include <limits.h>
56566 #else
56567 # include <assert.h>
56568 #endif
56569 /* Override any gcc2 internal prototype to avoid an error.  */
56570 #ifdef __cplusplus
56571 extern "C"
56572 {
56573 #endif
56574 /* We use char because int might match the return type of a gcc2
56575    builtin and then its argument prototype would still apply.  */
56576 char $ac_func ();
56577 /* The GNU C library defines this for functions which it implements
56578     to always fail with ENOSYS.  Some functions are actually named
56579     something starting with __ and the normal name is an alias.  */
56580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56581 choke me
56582 #else
56583 char (*f) () = $ac_func;
56584 #endif
56585 #ifdef __cplusplus
56586 }
56587 #endif
56588
56589 int
56590 main ()
56591 {
56592 return f != $ac_func;
56593   ;
56594   return 0;
56595 }
56596 _ACEOF
56597 rm -f conftest.$ac_objext conftest$ac_exeext
56598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56599   (eval $ac_link) 2>&5
56600   ac_status=$?
56601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56602   (exit $ac_status); } &&
56603          { ac_try='test -s conftest$ac_exeext'
56604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56605   (eval $ac_try) 2>&5
56606   ac_status=$?
56607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56608   (exit $ac_status); }; }; then
56609   eval "$as_ac_var=yes"
56610 else
56611   echo "$as_me: failed program was:" >&5
56612 sed 's/^/| /' conftest.$ac_ext >&5
56613
56614 eval "$as_ac_var=no"
56615 fi
56616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56617 fi
56618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56620 if test `eval echo '${'$as_ac_var'}'` = yes; then
56621   cat >>confdefs.h <<_ACEOF
56622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56623 _ACEOF
56624
56625 else
56626   ac_wfuncs=no
56627 fi
56628 done
56629
56630
56631     # Checks for names injected into std:: by the c_std headers.
56632
56633
56634
56635
56636
56637
56638
56639
56640
56641
56642
56643
56644
56645
56646
56647
56648
56649
56650
56651
56652
56653
56654
56655
56656
56657
56658
56659
56660
56661
56662
56663
56664
56665
56666
56667
56668
56669
56670
56671
56672
56673
56674
56675
56676
56677
56678 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
56679     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
56680     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
56681     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
56682     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
56683     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
56684 do
56685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56686 echo "$as_me:$LINENO: checking for $ac_func" >&5
56687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56688 if eval "test \"\${$as_ac_var+set}\" = set"; then
56689   echo $ECHO_N "(cached) $ECHO_C" >&6
56690 else
56691   if test x$gcc_no_link = xyes; then
56692   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56694    { (exit 1); exit 1; }; }
56695 fi
56696 cat >conftest.$ac_ext <<_ACEOF
56697 #line $LINENO "configure"
56698 /* confdefs.h.  */
56699 _ACEOF
56700 cat confdefs.h >>conftest.$ac_ext
56701 cat >>conftest.$ac_ext <<_ACEOF
56702 /* end confdefs.h.  */
56703 /* System header to define __stub macros and hopefully few prototypes,
56704     which can conflict with char $ac_func (); below.
56705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56706     <limits.h> exists even on freestanding compilers.  */
56707 #ifdef __STDC__
56708 # include <limits.h>
56709 #else
56710 # include <assert.h>
56711 #endif
56712 /* Override any gcc2 internal prototype to avoid an error.  */
56713 #ifdef __cplusplus
56714 extern "C"
56715 {
56716 #endif
56717 /* We use char because int might match the return type of a gcc2
56718    builtin and then its argument prototype would still apply.  */
56719 char $ac_func ();
56720 /* The GNU C library defines this for functions which it implements
56721     to always fail with ENOSYS.  Some functions are actually named
56722     something starting with __ and the normal name is an alias.  */
56723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56724 choke me
56725 #else
56726 char (*f) () = $ac_func;
56727 #endif
56728 #ifdef __cplusplus
56729 }
56730 #endif
56731
56732 int
56733 main ()
56734 {
56735 return f != $ac_func;
56736   ;
56737   return 0;
56738 }
56739 _ACEOF
56740 rm -f conftest.$ac_objext conftest$ac_exeext
56741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56742   (eval $ac_link) 2>&5
56743   ac_status=$?
56744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56745   (exit $ac_status); } &&
56746          { ac_try='test -s conftest$ac_exeext'
56747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56748   (eval $ac_try) 2>&5
56749   ac_status=$?
56750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56751   (exit $ac_status); }; }; then
56752   eval "$as_ac_var=yes"
56753 else
56754   echo "$as_me: failed program was:" >&5
56755 sed 's/^/| /' conftest.$ac_ext >&5
56756
56757 eval "$as_ac_var=no"
56758 fi
56759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56760 fi
56761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56763 if test `eval echo '${'$as_ac_var'}'` = yes; then
56764   cat >>confdefs.h <<_ACEOF
56765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56766 _ACEOF
56767
56768 else
56769   ac_wfuncs=no
56770 fi
56771 done
56772
56773
56774     # Checks for wide character functions that are not required
56775     # for basic wchar_t support.  Don't disable support if they are missing.
56776     # Injection of these is wrapped with guard macros.
56777
56778
56779
56780
56781
56782 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
56783 do
56784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56785 echo "$as_me:$LINENO: checking for $ac_func" >&5
56786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56787 if eval "test \"\${$as_ac_var+set}\" = set"; then
56788   echo $ECHO_N "(cached) $ECHO_C" >&6
56789 else
56790   if test x$gcc_no_link = xyes; then
56791   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56792 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56793    { (exit 1); exit 1; }; }
56794 fi
56795 cat >conftest.$ac_ext <<_ACEOF
56796 #line $LINENO "configure"
56797 /* confdefs.h.  */
56798 _ACEOF
56799 cat confdefs.h >>conftest.$ac_ext
56800 cat >>conftest.$ac_ext <<_ACEOF
56801 /* end confdefs.h.  */
56802 /* System header to define __stub macros and hopefully few prototypes,
56803     which can conflict with char $ac_func (); below.
56804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56805     <limits.h> exists even on freestanding compilers.  */
56806 #ifdef __STDC__
56807 # include <limits.h>
56808 #else
56809 # include <assert.h>
56810 #endif
56811 /* Override any gcc2 internal prototype to avoid an error.  */
56812 #ifdef __cplusplus
56813 extern "C"
56814 {
56815 #endif
56816 /* We use char because int might match the return type of a gcc2
56817    builtin and then its argument prototype would still apply.  */
56818 char $ac_func ();
56819 /* The GNU C library defines this for functions which it implements
56820     to always fail with ENOSYS.  Some functions are actually named
56821     something starting with __ and the normal name is an alias.  */
56822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56823 choke me
56824 #else
56825 char (*f) () = $ac_func;
56826 #endif
56827 #ifdef __cplusplus
56828 }
56829 #endif
56830
56831 int
56832 main ()
56833 {
56834 return f != $ac_func;
56835   ;
56836   return 0;
56837 }
56838 _ACEOF
56839 rm -f conftest.$ac_objext conftest$ac_exeext
56840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56841   (eval $ac_link) 2>&5
56842   ac_status=$?
56843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56844   (exit $ac_status); } &&
56845          { ac_try='test -s conftest$ac_exeext'
56846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56847   (eval $ac_try) 2>&5
56848   ac_status=$?
56849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56850   (exit $ac_status); }; }; then
56851   eval "$as_ac_var=yes"
56852 else
56853   echo "$as_me: failed program was:" >&5
56854 sed 's/^/| /' conftest.$ac_ext >&5
56855
56856 eval "$as_ac_var=no"
56857 fi
56858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56859 fi
56860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56862 if test `eval echo '${'$as_ac_var'}'` = yes; then
56863   cat >>confdefs.h <<_ACEOF
56864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56865 _ACEOF
56866
56867 fi
56868 done
56869
56870
56871     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
56872 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
56873     if test x"$has_weof" = xyes &&
56874        test x"$has_wchar_minmax" = xyes &&
56875        test x"$ac_wfuncs" = xyes;
56876     then
56877       ac_isoC99_wchar_t=yes
56878     else
56879       ac_isoC99_wchar_t=no
56880     fi
56881     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
56882 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
56883
56884     # Use iconv for wchar_t to char conversions. As such, check for
56885     # X/Open Portability Guide, version 2 features (XPG2).
56886     if test "${ac_cv_header_iconv_h+set}" = set; then
56887   echo "$as_me:$LINENO: checking for iconv.h" >&5
56888 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
56889 if test "${ac_cv_header_iconv_h+set}" = set; then
56890   echo $ECHO_N "(cached) $ECHO_C" >&6
56891 fi
56892 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
56893 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
56894 else
56895   # Is the header compilable?
56896 echo "$as_me:$LINENO: checking iconv.h usability" >&5
56897 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
56898 cat >conftest.$ac_ext <<_ACEOF
56899 #line $LINENO "configure"
56900 /* confdefs.h.  */
56901 _ACEOF
56902 cat confdefs.h >>conftest.$ac_ext
56903 cat >>conftest.$ac_ext <<_ACEOF
56904 /* end confdefs.h.  */
56905 $ac_includes_default
56906 #include <iconv.h>
56907 _ACEOF
56908 rm -f conftest.$ac_objext
56909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56910   (eval $ac_compile) 2>&5
56911   ac_status=$?
56912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56913   (exit $ac_status); } &&
56914          { ac_try='test -s conftest.$ac_objext'
56915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56916   (eval $ac_try) 2>&5
56917   ac_status=$?
56918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56919   (exit $ac_status); }; }; then
56920   ac_header_compiler=yes
56921 else
56922   echo "$as_me: failed program was:" >&5
56923 sed 's/^/| /' conftest.$ac_ext >&5
56924
56925 ac_header_compiler=no
56926 fi
56927 rm -f conftest.$ac_objext conftest.$ac_ext
56928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56929 echo "${ECHO_T}$ac_header_compiler" >&6
56930
56931 # Is the header present?
56932 echo "$as_me:$LINENO: checking iconv.h presence" >&5
56933 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
56934 cat >conftest.$ac_ext <<_ACEOF
56935 #line $LINENO "configure"
56936 /* confdefs.h.  */
56937 _ACEOF
56938 cat confdefs.h >>conftest.$ac_ext
56939 cat >>conftest.$ac_ext <<_ACEOF
56940 /* end confdefs.h.  */
56941 #include <iconv.h>
56942 _ACEOF
56943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56945   ac_status=$?
56946   grep -v '^ *+' conftest.er1 >conftest.err
56947   rm -f conftest.er1
56948   cat conftest.err >&5
56949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56950   (exit $ac_status); } >/dev/null; then
56951   if test -s conftest.err; then
56952     ac_cpp_err=$ac_c_preproc_warn_flag
56953   else
56954     ac_cpp_err=
56955   fi
56956 else
56957   ac_cpp_err=yes
56958 fi
56959 if test -z "$ac_cpp_err"; then
56960   ac_header_preproc=yes
56961 else
56962   echo "$as_me: failed program was:" >&5
56963 sed 's/^/| /' conftest.$ac_ext >&5
56964
56965   ac_header_preproc=no
56966 fi
56967 rm -f conftest.err conftest.$ac_ext
56968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56969 echo "${ECHO_T}$ac_header_preproc" >&6
56970
56971 # So?  What about this header?
56972 case $ac_header_compiler:$ac_header_preproc in
56973   yes:no )
56974     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
56975 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
56976     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
56977 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
56978     (
56979       cat <<\_ASBOX
56980 ## ------------------------------------ ##
56981 ## Report this to bug-autoconf@gnu.org. ##
56982 ## ------------------------------------ ##
56983 _ASBOX
56984     ) |
56985       sed "s/^/$as_me: WARNING:     /" >&2
56986     ;;
56987   no:yes )
56988     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
56989 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
56990     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
56991 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
56992     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
56993 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
56994     (
56995       cat <<\_ASBOX
56996 ## ------------------------------------ ##
56997 ## Report this to bug-autoconf@gnu.org. ##
56998 ## ------------------------------------ ##
56999 _ASBOX
57000     ) |
57001       sed "s/^/$as_me: WARNING:     /" >&2
57002     ;;
57003 esac
57004 echo "$as_me:$LINENO: checking for iconv.h" >&5
57005 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57006 if test "${ac_cv_header_iconv_h+set}" = set; then
57007   echo $ECHO_N "(cached) $ECHO_C" >&6
57008 else
57009   ac_cv_header_iconv_h=$ac_header_preproc
57010 fi
57011 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57012 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57013
57014 fi
57015 if test $ac_cv_header_iconv_h = yes; then
57016   ac_has_iconv_h=yes
57017 else
57018   ac_has_iconv_h=no
57019 fi
57020
57021
57022     if test "${ac_cv_header_langinfo_h+set}" = set; then
57023   echo "$as_me:$LINENO: checking for langinfo.h" >&5
57024 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57025 if test "${ac_cv_header_langinfo_h+set}" = set; then
57026   echo $ECHO_N "(cached) $ECHO_C" >&6
57027 fi
57028 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57029 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57030 else
57031   # Is the header compilable?
57032 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57033 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57034 cat >conftest.$ac_ext <<_ACEOF
57035 #line $LINENO "configure"
57036 /* confdefs.h.  */
57037 _ACEOF
57038 cat confdefs.h >>conftest.$ac_ext
57039 cat >>conftest.$ac_ext <<_ACEOF
57040 /* end confdefs.h.  */
57041 $ac_includes_default
57042 #include <langinfo.h>
57043 _ACEOF
57044 rm -f conftest.$ac_objext
57045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57046   (eval $ac_compile) 2>&5
57047   ac_status=$?
57048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57049   (exit $ac_status); } &&
57050          { ac_try='test -s conftest.$ac_objext'
57051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57052   (eval $ac_try) 2>&5
57053   ac_status=$?
57054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57055   (exit $ac_status); }; }; then
57056   ac_header_compiler=yes
57057 else
57058   echo "$as_me: failed program was:" >&5
57059 sed 's/^/| /' conftest.$ac_ext >&5
57060
57061 ac_header_compiler=no
57062 fi
57063 rm -f conftest.$ac_objext conftest.$ac_ext
57064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57065 echo "${ECHO_T}$ac_header_compiler" >&6
57066
57067 # Is the header present?
57068 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57069 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57070 cat >conftest.$ac_ext <<_ACEOF
57071 #line $LINENO "configure"
57072 /* confdefs.h.  */
57073 _ACEOF
57074 cat confdefs.h >>conftest.$ac_ext
57075 cat >>conftest.$ac_ext <<_ACEOF
57076 /* end confdefs.h.  */
57077 #include <langinfo.h>
57078 _ACEOF
57079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57081   ac_status=$?
57082   grep -v '^ *+' conftest.er1 >conftest.err
57083   rm -f conftest.er1
57084   cat conftest.err >&5
57085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57086   (exit $ac_status); } >/dev/null; then
57087   if test -s conftest.err; then
57088     ac_cpp_err=$ac_c_preproc_warn_flag
57089   else
57090     ac_cpp_err=
57091   fi
57092 else
57093   ac_cpp_err=yes
57094 fi
57095 if test -z "$ac_cpp_err"; then
57096   ac_header_preproc=yes
57097 else
57098   echo "$as_me: failed program was:" >&5
57099 sed 's/^/| /' conftest.$ac_ext >&5
57100
57101   ac_header_preproc=no
57102 fi
57103 rm -f conftest.err conftest.$ac_ext
57104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57105 echo "${ECHO_T}$ac_header_preproc" >&6
57106
57107 # So?  What about this header?
57108 case $ac_header_compiler:$ac_header_preproc in
57109   yes:no )
57110     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57111 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57112     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57113 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57114     (
57115       cat <<\_ASBOX
57116 ## ------------------------------------ ##
57117 ## Report this to bug-autoconf@gnu.org. ##
57118 ## ------------------------------------ ##
57119 _ASBOX
57120     ) |
57121       sed "s/^/$as_me: WARNING:     /" >&2
57122     ;;
57123   no:yes )
57124     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57125 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57126     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
57127 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
57128     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57129 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57130     (
57131       cat <<\_ASBOX
57132 ## ------------------------------------ ##
57133 ## Report this to bug-autoconf@gnu.org. ##
57134 ## ------------------------------------ ##
57135 _ASBOX
57136     ) |
57137       sed "s/^/$as_me: WARNING:     /" >&2
57138     ;;
57139 esac
57140 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57141 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57142 if test "${ac_cv_header_langinfo_h+set}" = set; then
57143   echo $ECHO_N "(cached) $ECHO_C" >&6
57144 else
57145   ac_cv_header_langinfo_h=$ac_header_preproc
57146 fi
57147 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57148 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57149
57150 fi
57151 if test $ac_cv_header_langinfo_h = yes; then
57152   ac_has_langinfo_h=yes
57153 else
57154   ac_has_langinfo_h=no
57155 fi
57156
57157
57158
57159     # Check for existence of libiconv.a providing XPG2 wchar_t support.
57160     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57161 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57162 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57163   echo $ECHO_N "(cached) $ECHO_C" >&6
57164 else
57165   ac_check_lib_save_LIBS=$LIBS
57166 LIBS="-liconv  $LIBS"
57167 if test x$gcc_no_link = xyes; then
57168   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57170    { (exit 1); exit 1; }; }
57171 fi
57172 cat >conftest.$ac_ext <<_ACEOF
57173 #line $LINENO "configure"
57174 /* confdefs.h.  */
57175 _ACEOF
57176 cat confdefs.h >>conftest.$ac_ext
57177 cat >>conftest.$ac_ext <<_ACEOF
57178 /* end confdefs.h.  */
57179
57180 /* Override any gcc2 internal prototype to avoid an error.  */
57181 #ifdef __cplusplus
57182 extern "C"
57183 #endif
57184 /* We use char because int might match the return type of a gcc2
57185    builtin and then its argument prototype would still apply.  */
57186 char iconv ();
57187 int
57188 main ()
57189 {
57190 iconv ();
57191   ;
57192   return 0;
57193 }
57194 _ACEOF
57195 rm -f conftest.$ac_objext conftest$ac_exeext
57196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57197   (eval $ac_link) 2>&5
57198   ac_status=$?
57199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57200   (exit $ac_status); } &&
57201          { ac_try='test -s conftest$ac_exeext'
57202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57203   (eval $ac_try) 2>&5
57204   ac_status=$?
57205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57206   (exit $ac_status); }; }; then
57207   ac_cv_lib_iconv_iconv=yes
57208 else
57209   echo "$as_me: failed program was:" >&5
57210 sed 's/^/| /' conftest.$ac_ext >&5
57211
57212 ac_cv_lib_iconv_iconv=no
57213 fi
57214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57215 LIBS=$ac_check_lib_save_LIBS
57216 fi
57217 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57218 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57219 if test $ac_cv_lib_iconv_iconv = yes; then
57220   libiconv="-liconv"
57221 fi
57222
57223     ac_save_LIBS="$LIBS"
57224     LIBS="$LIBS $libiconv"
57225
57226
57227
57228
57229
57230 for ac_func in iconv_open iconv_close iconv nl_langinfo
57231 do
57232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57233 echo "$as_me:$LINENO: checking for $ac_func" >&5
57234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57235 if eval "test \"\${$as_ac_var+set}\" = set"; then
57236   echo $ECHO_N "(cached) $ECHO_C" >&6
57237 else
57238   if test x$gcc_no_link = xyes; then
57239   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57240 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57241    { (exit 1); exit 1; }; }
57242 fi
57243 cat >conftest.$ac_ext <<_ACEOF
57244 #line $LINENO "configure"
57245 /* confdefs.h.  */
57246 _ACEOF
57247 cat confdefs.h >>conftest.$ac_ext
57248 cat >>conftest.$ac_ext <<_ACEOF
57249 /* end confdefs.h.  */
57250 /* System header to define __stub macros and hopefully few prototypes,
57251     which can conflict with char $ac_func (); below.
57252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57253     <limits.h> exists even on freestanding compilers.  */
57254 #ifdef __STDC__
57255 # include <limits.h>
57256 #else
57257 # include <assert.h>
57258 #endif
57259 /* Override any gcc2 internal prototype to avoid an error.  */
57260 #ifdef __cplusplus
57261 extern "C"
57262 {
57263 #endif
57264 /* We use char because int might match the return type of a gcc2
57265    builtin and then its argument prototype would still apply.  */
57266 char $ac_func ();
57267 /* The GNU C library defines this for functions which it implements
57268     to always fail with ENOSYS.  Some functions are actually named
57269     something starting with __ and the normal name is an alias.  */
57270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57271 choke me
57272 #else
57273 char (*f) () = $ac_func;
57274 #endif
57275 #ifdef __cplusplus
57276 }
57277 #endif
57278
57279 int
57280 main ()
57281 {
57282 return f != $ac_func;
57283   ;
57284   return 0;
57285 }
57286 _ACEOF
57287 rm -f conftest.$ac_objext conftest$ac_exeext
57288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57289   (eval $ac_link) 2>&5
57290   ac_status=$?
57291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57292   (exit $ac_status); } &&
57293          { ac_try='test -s conftest$ac_exeext'
57294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57295   (eval $ac_try) 2>&5
57296   ac_status=$?
57297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57298   (exit $ac_status); }; }; then
57299   eval "$as_ac_var=yes"
57300 else
57301   echo "$as_me: failed program was:" >&5
57302 sed 's/^/| /' conftest.$ac_ext >&5
57303
57304 eval "$as_ac_var=no"
57305 fi
57306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57307 fi
57308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57310 if test `eval echo '${'$as_ac_var'}'` = yes; then
57311   cat >>confdefs.h <<_ACEOF
57312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57313 _ACEOF
57314  ac_XPG2funcs=yes
57315 else
57316   ac_XPG2funcs=no
57317 fi
57318 done
57319
57320
57321     LIBS="$ac_save_LIBS"
57322
57323     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57324 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57325     if test x"$ac_has_iconv_h" = xyes &&
57326        test x"$ac_has_langinfo_h" = xyes &&
57327        test x"$ac_XPG2funcs" = xyes;
57328     then
57329       ac_XPG2_wchar_t=yes
57330     else
57331       ac_XPG2_wchar_t=no
57332     fi
57333     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57334 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57335
57336     # At the moment, only enable wchar_t specializations if all the
57337     # above support is present.
57338     if test x"$ac_isoC99_wchar_t" = xyes &&
57339        test x"$ac_XPG2_wchar_t" = xyes;
57340     then
57341       cat >>confdefs.h <<\_ACEOF
57342 #define _GLIBCXX_USE_WCHAR_T 1
57343 _ACEOF
57344
57345       enable_wchar_t=yes
57346     fi
57347   fi
57348   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
57349 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
57350   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
57351 echo "${ECHO_T}$enable_wchar_t" >&6
57352
57353     cat >>confdefs.h <<\_ACEOF
57354 #define HAVE_COPYSIGN 1
57355 _ACEOF
57356
57357     cat >>confdefs.h <<\_ACEOF
57358 #define HAVE_COPYSIGNF 1
57359 _ACEOF
57360
57361     cat >>confdefs.h <<\_ACEOF
57362 #define HAVE_FINITEF 1
57363 _ACEOF
57364
57365     cat >>confdefs.h <<\_ACEOF
57366 #define HAVE_FINITE 1
57367 _ACEOF
57368
57369     cat >>confdefs.h <<\_ACEOF
57370 #define HAVE_FREXPF 1
57371 _ACEOF
57372
57373     cat >>confdefs.h <<\_ACEOF
57374 #define HAVE_HYPOTF 1
57375 _ACEOF
57376
57377     cat >>confdefs.h <<\_ACEOF
57378 #define HAVE_ISINF 1
57379 _ACEOF
57380
57381     cat >>confdefs.h <<\_ACEOF
57382 #define HAVE_ISINFF 1
57383 _ACEOF
57384
57385     cat >>confdefs.h <<\_ACEOF
57386 #define HAVE_ISNAN 1
57387 _ACEOF
57388
57389     cat >>confdefs.h <<\_ACEOF
57390 #define HAVE_ISNANF 1
57391 _ACEOF
57392
57393     if test x"long_double_math_on_this_cpu" = x"yes"; then
57394       cat >>confdefs.h <<\_ACEOF
57395 #define HAVE_FINITEL 1
57396 _ACEOF
57397
57398       cat >>confdefs.h <<\_ACEOF
57399 #define HAVE_ISINFL 1
57400 _ACEOF
57401
57402       cat >>confdefs.h <<\_ACEOF
57403 #define HAVE_ISNANL 1
57404 _ACEOF
57405
57406     fi
57407     ;;
57408   *-qnx6.1* | *-qnx6.2*)
57409     SECTION_FLAGS='-ffunction-sections -fdata-sections'
57410
57411
57412   # If we're not using GNU ld, then there's no point in even trying these
57413   # tests.  Check for that first.  We should have already tested for gld
57414   # by now (in libtool), but require it now just to be safe...
57415   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
57416   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
57417
57418
57419
57420   # The name set by libtool depends on the version of libtool.  Shame on us
57421   # for depending on an impl detail, but c'est la vie.  Older versions used
57422   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
57423   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
57424   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
57425   # set (hence we're using an older libtool), then set it.
57426   if test x${with_gnu_ld+set} != xset; then
57427     if test x${ac_cv_prog_gnu_ld+set} != xset; then
57428       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
57429       with_gnu_ld=no
57430     else
57431       with_gnu_ld=$ac_cv_prog_gnu_ld
57432     fi
57433   fi
57434
57435   # Start by getting the version number.  I think the libtool test already
57436   # does some of this, but throws away the result.
57437
57438   ldver=`$LD --version 2>/dev/null | head -1 | \
57439          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
57440
57441   glibcxx_gnu_ld_version=`echo $ldver | \
57442          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
57443
57444   # Set --gc-sections.
57445   if test "$with_gnu_ld" = "notbroken"; then
57446     # GNU ld it is!  Joy and bunny rabbits!
57447
57448     # All these tests are for C++; save the language and the compiler flags.
57449     # Need to do this so that g++ won't try to link in libstdc++
57450     ac_test_CFLAGS="${CFLAGS+set}"
57451     ac_save_CFLAGS="$CFLAGS"
57452     CFLAGS='-x c++  -Wl,--gc-sections'
57453
57454     # Check for -Wl,--gc-sections
57455     # XXX This test is broken at the moment, as symbols required for linking
57456     # are now in libsupc++ (not built yet).  In addition, this test has
57457     # cored on solaris in the past.  In addition, --gc-sections doesn't
57458     # really work at the moment (keeps on discarding used sections, first
57459     # .eh_frame and now some of the glibc sections for iconv).
57460     # Bzzzzt.  Thanks for playing, maybe next time.
57461     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
57462 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
57463     if test "$cross_compiling" = yes; then
57464   ac_sectionLDflags=yes
57465 else
57466   cat >conftest.$ac_ext <<_ACEOF
57467 #line $LINENO "configure"
57468 /* confdefs.h.  */
57469 _ACEOF
57470 cat confdefs.h >>conftest.$ac_ext
57471 cat >>conftest.$ac_ext <<_ACEOF
57472 /* end confdefs.h.  */
57473
57474      int main(void)
57475      {
57476        try { throw 1; }
57477        catch (...) { };
57478        return 0;
57479      }
57480
57481 _ACEOF
57482 rm -f conftest$ac_exeext
57483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57484   (eval $ac_link) 2>&5
57485   ac_status=$?
57486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57489   (eval $ac_try) 2>&5
57490   ac_status=$?
57491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57492   (exit $ac_status); }; }; then
57493   ac_sectionLDflags=yes
57494 else
57495   echo "$as_me: program exited with status $ac_status" >&5
57496 echo "$as_me: failed program was:" >&5
57497 sed 's/^/| /' conftest.$ac_ext >&5
57498
57499 ( exit $ac_status )
57500 ac_sectionLDflags=no
57501 fi
57502 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57503 fi
57504     if test "$ac_test_CFLAGS" = set; then
57505       CFLAGS="$ac_save_CFLAGS"
57506     else
57507       # this is the suspicious part
57508       CFLAGS=''
57509     fi
57510     if test "$ac_sectionLDflags" = "yes"; then
57511       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
57512     fi
57513     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
57514 echo "${ECHO_T}$ac_sectionLDflags" >&6
57515   fi
57516
57517   # Set linker optimization flags.
57518   if test x"$with_gnu_ld" = x"yes"; then
57519     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
57520   fi
57521
57522
57523
57524
57525
57526
57527 echo "$as_me:$LINENO: checking for main in -lm" >&5
57528 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
57529 if test "${ac_cv_lib_m_main+set}" = set; then
57530   echo $ECHO_N "(cached) $ECHO_C" >&6
57531 else
57532   ac_check_lib_save_LIBS=$LIBS
57533 LIBS="-lm  $LIBS"
57534 if test x$gcc_no_link = xyes; then
57535   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57537    { (exit 1); exit 1; }; }
57538 fi
57539 cat >conftest.$ac_ext <<_ACEOF
57540 #line $LINENO "configure"
57541 /* confdefs.h.  */
57542 _ACEOF
57543 cat confdefs.h >>conftest.$ac_ext
57544 cat >>conftest.$ac_ext <<_ACEOF
57545 /* end confdefs.h.  */
57546
57547
57548 int
57549 main ()
57550 {
57551 main ();
57552   ;
57553   return 0;
57554 }
57555 _ACEOF
57556 rm -f conftest.$ac_objext conftest$ac_exeext
57557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57558   (eval $ac_link) 2>&5
57559   ac_status=$?
57560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57561   (exit $ac_status); } &&
57562          { ac_try='test -s conftest$ac_exeext'
57563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57564   (eval $ac_try) 2>&5
57565   ac_status=$?
57566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57567   (exit $ac_status); }; }; then
57568   ac_cv_lib_m_main=yes
57569 else
57570   echo "$as_me: failed program was:" >&5
57571 sed 's/^/| /' conftest.$ac_ext >&5
57572
57573 ac_cv_lib_m_main=no
57574 fi
57575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57576 LIBS=$ac_check_lib_save_LIBS
57577 fi
57578 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
57579 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
57580 if test $ac_cv_lib_m_main = yes; then
57581   cat >>confdefs.h <<_ACEOF
57582 #define HAVE_LIBM 1
57583 _ACEOF
57584
57585   LIBS="-lm $LIBS"
57586
57587 fi
57588
57589
57590 for ac_func in copysignf
57591 do
57592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57593 echo "$as_me:$LINENO: checking for $ac_func" >&5
57594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57595 if eval "test \"\${$as_ac_var+set}\" = set"; then
57596   echo $ECHO_N "(cached) $ECHO_C" >&6
57597 else
57598   if test x$gcc_no_link = xyes; then
57599   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57600 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57601    { (exit 1); exit 1; }; }
57602 fi
57603 cat >conftest.$ac_ext <<_ACEOF
57604 #line $LINENO "configure"
57605 /* confdefs.h.  */
57606 _ACEOF
57607 cat confdefs.h >>conftest.$ac_ext
57608 cat >>conftest.$ac_ext <<_ACEOF
57609 /* end confdefs.h.  */
57610 /* System header to define __stub macros and hopefully few prototypes,
57611     which can conflict with char $ac_func (); below.
57612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57613     <limits.h> exists even on freestanding compilers.  */
57614 #ifdef __STDC__
57615 # include <limits.h>
57616 #else
57617 # include <assert.h>
57618 #endif
57619 /* Override any gcc2 internal prototype to avoid an error.  */
57620 #ifdef __cplusplus
57621 extern "C"
57622 {
57623 #endif
57624 /* We use char because int might match the return type of a gcc2
57625    builtin and then its argument prototype would still apply.  */
57626 char $ac_func ();
57627 /* The GNU C library defines this for functions which it implements
57628     to always fail with ENOSYS.  Some functions are actually named
57629     something starting with __ and the normal name is an alias.  */
57630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57631 choke me
57632 #else
57633 char (*f) () = $ac_func;
57634 #endif
57635 #ifdef __cplusplus
57636 }
57637 #endif
57638
57639 int
57640 main ()
57641 {
57642 return f != $ac_func;
57643   ;
57644   return 0;
57645 }
57646 _ACEOF
57647 rm -f conftest.$ac_objext conftest$ac_exeext
57648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57649   (eval $ac_link) 2>&5
57650   ac_status=$?
57651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57652   (exit $ac_status); } &&
57653          { ac_try='test -s conftest$ac_exeext'
57654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57655   (eval $ac_try) 2>&5
57656   ac_status=$?
57657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57658   (exit $ac_status); }; }; then
57659   eval "$as_ac_var=yes"
57660 else
57661   echo "$as_me: failed program was:" >&5
57662 sed 's/^/| /' conftest.$ac_ext >&5
57663
57664 eval "$as_ac_var=no"
57665 fi
57666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57667 fi
57668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57670 if test `eval echo '${'$as_ac_var'}'` = yes; then
57671   cat >>confdefs.h <<_ACEOF
57672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57673 _ACEOF
57674
57675 else
57676   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
57677 fi
57678 done
57679
57680
57681
57682 for ac_func in __signbit
57683 do
57684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57685 echo "$as_me:$LINENO: checking for $ac_func" >&5
57686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57687 if eval "test \"\${$as_ac_var+set}\" = set"; then
57688   echo $ECHO_N "(cached) $ECHO_C" >&6
57689 else
57690   if test x$gcc_no_link = xyes; then
57691   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57693    { (exit 1); exit 1; }; }
57694 fi
57695 cat >conftest.$ac_ext <<_ACEOF
57696 #line $LINENO "configure"
57697 /* confdefs.h.  */
57698 _ACEOF
57699 cat confdefs.h >>conftest.$ac_ext
57700 cat >>conftest.$ac_ext <<_ACEOF
57701 /* end confdefs.h.  */
57702 /* System header to define __stub macros and hopefully few prototypes,
57703     which can conflict with char $ac_func (); below.
57704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57705     <limits.h> exists even on freestanding compilers.  */
57706 #ifdef __STDC__
57707 # include <limits.h>
57708 #else
57709 # include <assert.h>
57710 #endif
57711 /* Override any gcc2 internal prototype to avoid an error.  */
57712 #ifdef __cplusplus
57713 extern "C"
57714 {
57715 #endif
57716 /* We use char because int might match the return type of a gcc2
57717    builtin and then its argument prototype would still apply.  */
57718 char $ac_func ();
57719 /* The GNU C library defines this for functions which it implements
57720     to always fail with ENOSYS.  Some functions are actually named
57721     something starting with __ and the normal name is an alias.  */
57722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57723 choke me
57724 #else
57725 char (*f) () = $ac_func;
57726 #endif
57727 #ifdef __cplusplus
57728 }
57729 #endif
57730
57731 int
57732 main ()
57733 {
57734 return f != $ac_func;
57735   ;
57736   return 0;
57737 }
57738 _ACEOF
57739 rm -f conftest.$ac_objext conftest$ac_exeext
57740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57741   (eval $ac_link) 2>&5
57742   ac_status=$?
57743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57744   (exit $ac_status); } &&
57745          { ac_try='test -s conftest$ac_exeext'
57746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57747   (eval $ac_try) 2>&5
57748   ac_status=$?
57749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57750   (exit $ac_status); }; }; then
57751   eval "$as_ac_var=yes"
57752 else
57753   echo "$as_me: failed program was:" >&5
57754 sed 's/^/| /' conftest.$ac_ext >&5
57755
57756 eval "$as_ac_var=no"
57757 fi
57758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57759 fi
57760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57762 if test `eval echo '${'$as_ac_var'}'` = yes; then
57763   cat >>confdefs.h <<_ACEOF
57764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57765 _ACEOF
57766
57767 else
57768   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
57769 fi
57770 done
57771
57772
57773 for ac_func in __signbitf
57774 do
57775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57776 echo "$as_me:$LINENO: checking for $ac_func" >&5
57777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57778 if eval "test \"\${$as_ac_var+set}\" = set"; then
57779   echo $ECHO_N "(cached) $ECHO_C" >&6
57780 else
57781   if test x$gcc_no_link = xyes; then
57782   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57784    { (exit 1); exit 1; }; }
57785 fi
57786 cat >conftest.$ac_ext <<_ACEOF
57787 #line $LINENO "configure"
57788 /* confdefs.h.  */
57789 _ACEOF
57790 cat confdefs.h >>conftest.$ac_ext
57791 cat >>conftest.$ac_ext <<_ACEOF
57792 /* end confdefs.h.  */
57793 /* System header to define __stub macros and hopefully few prototypes,
57794     which can conflict with char $ac_func (); below.
57795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57796     <limits.h> exists even on freestanding compilers.  */
57797 #ifdef __STDC__
57798 # include <limits.h>
57799 #else
57800 # include <assert.h>
57801 #endif
57802 /* Override any gcc2 internal prototype to avoid an error.  */
57803 #ifdef __cplusplus
57804 extern "C"
57805 {
57806 #endif
57807 /* We use char because int might match the return type of a gcc2
57808    builtin and then its argument prototype would still apply.  */
57809 char $ac_func ();
57810 /* The GNU C library defines this for functions which it implements
57811     to always fail with ENOSYS.  Some functions are actually named
57812     something starting with __ and the normal name is an alias.  */
57813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57814 choke me
57815 #else
57816 char (*f) () = $ac_func;
57817 #endif
57818 #ifdef __cplusplus
57819 }
57820 #endif
57821
57822 int
57823 main ()
57824 {
57825 return f != $ac_func;
57826   ;
57827   return 0;
57828 }
57829 _ACEOF
57830 rm -f conftest.$ac_objext conftest$ac_exeext
57831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57832   (eval $ac_link) 2>&5
57833   ac_status=$?
57834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57835   (exit $ac_status); } &&
57836          { ac_try='test -s conftest$ac_exeext'
57837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57838   (eval $ac_try) 2>&5
57839   ac_status=$?
57840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57841   (exit $ac_status); }; }; then
57842   eval "$as_ac_var=yes"
57843 else
57844   echo "$as_me: failed program was:" >&5
57845 sed 's/^/| /' conftest.$ac_ext >&5
57846
57847 eval "$as_ac_var=no"
57848 fi
57849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57850 fi
57851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57853 if test `eval echo '${'$as_ac_var'}'` = yes; then
57854   cat >>confdefs.h <<_ACEOF
57855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57856 _ACEOF
57857
57858 else
57859   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
57860 fi
57861 done
57862
57863
57864           if test x$ac_cv_func_copysignl = x"yes"; then
57865
57866 for ac_func in __signbitl
57867 do
57868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57869 echo "$as_me:$LINENO: checking for $ac_func" >&5
57870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57871 if eval "test \"\${$as_ac_var+set}\" = set"; then
57872   echo $ECHO_N "(cached) $ECHO_C" >&6
57873 else
57874   if test x$gcc_no_link = xyes; then
57875   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57877    { (exit 1); exit 1; }; }
57878 fi
57879 cat >conftest.$ac_ext <<_ACEOF
57880 #line $LINENO "configure"
57881 /* confdefs.h.  */
57882 _ACEOF
57883 cat confdefs.h >>conftest.$ac_ext
57884 cat >>conftest.$ac_ext <<_ACEOF
57885 /* end confdefs.h.  */
57886 /* System header to define __stub macros and hopefully few prototypes,
57887     which can conflict with char $ac_func (); below.
57888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57889     <limits.h> exists even on freestanding compilers.  */
57890 #ifdef __STDC__
57891 # include <limits.h>
57892 #else
57893 # include <assert.h>
57894 #endif
57895 /* Override any gcc2 internal prototype to avoid an error.  */
57896 #ifdef __cplusplus
57897 extern "C"
57898 {
57899 #endif
57900 /* We use char because int might match the return type of a gcc2
57901    builtin and then its argument prototype would still apply.  */
57902 char $ac_func ();
57903 /* The GNU C library defines this for functions which it implements
57904     to always fail with ENOSYS.  Some functions are actually named
57905     something starting with __ and the normal name is an alias.  */
57906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57907 choke me
57908 #else
57909 char (*f) () = $ac_func;
57910 #endif
57911 #ifdef __cplusplus
57912 }
57913 #endif
57914
57915 int
57916 main ()
57917 {
57918 return f != $ac_func;
57919   ;
57920   return 0;
57921 }
57922 _ACEOF
57923 rm -f conftest.$ac_objext conftest$ac_exeext
57924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57925   (eval $ac_link) 2>&5
57926   ac_status=$?
57927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57928   (exit $ac_status); } &&
57929          { ac_try='test -s conftest$ac_exeext'
57930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57931   (eval $ac_try) 2>&5
57932   ac_status=$?
57933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57934   (exit $ac_status); }; }; then
57935   eval "$as_ac_var=yes"
57936 else
57937   echo "$as_me: failed program was:" >&5
57938 sed 's/^/| /' conftest.$ac_ext >&5
57939
57940 eval "$as_ac_var=no"
57941 fi
57942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57943 fi
57944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57946 if test `eval echo '${'$as_ac_var'}'` = yes; then
57947   cat >>confdefs.h <<_ACEOF
57948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57949 _ACEOF
57950
57951 else
57952   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
57953 fi
57954 done
57955
57956   fi
57957
57958   # XXX Review this.  Nothing uses it.
57959   if test -n "$LIBMATHOBJS"; then
57960     need_libmath=yes
57961   fi
57962
57963
57964
57965   # Test wchar.h for mbstate_t, which is needed for char_traits and
57966   # others even if wchar_t support is not on.
57967   echo "$as_me:$LINENO: checking for mbstate_t" >&5
57968 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
57969   cat >conftest.$ac_ext <<_ACEOF
57970 #line $LINENO "configure"
57971 /* confdefs.h.  */
57972 _ACEOF
57973 cat confdefs.h >>conftest.$ac_ext
57974 cat >>conftest.$ac_ext <<_ACEOF
57975 /* end confdefs.h.  */
57976 #include <wchar.h>
57977 int
57978 main ()
57979 {
57980 mbstate_t teststate;
57981   ;
57982   return 0;
57983 }
57984 _ACEOF
57985 rm -f conftest.$ac_objext
57986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57987   (eval $ac_compile) 2>&5
57988   ac_status=$?
57989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57990   (exit $ac_status); } &&
57991          { ac_try='test -s conftest.$ac_objext'
57992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57993   (eval $ac_try) 2>&5
57994   ac_status=$?
57995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57996   (exit $ac_status); }; }; then
57997   have_mbstate_t=yes
57998 else
57999   echo "$as_me: failed program was:" >&5
58000 sed 's/^/| /' conftest.$ac_ext >&5
58001
58002 have_mbstate_t=no
58003 fi
58004 rm -f conftest.$ac_objext conftest.$ac_ext
58005   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
58006 echo "${ECHO_T}$have_mbstate_t" >&6
58007   if test x"$have_mbstate_t" = xyes; then
58008     cat >>confdefs.h <<\_ACEOF
58009 #define HAVE_MBSTATE_T 1
58010 _ACEOF
58011
58012   fi
58013
58014   # Sanity check for existence of ISO C99 headers for extended encoding.
58015
58016 for ac_header in wchar.h
58017 do
58018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58020   echo "$as_me:$LINENO: checking for $ac_header" >&5
58021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58023   echo $ECHO_N "(cached) $ECHO_C" >&6
58024 fi
58025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58027 else
58028   # Is the header compilable?
58029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58031 cat >conftest.$ac_ext <<_ACEOF
58032 #line $LINENO "configure"
58033 /* confdefs.h.  */
58034 _ACEOF
58035 cat confdefs.h >>conftest.$ac_ext
58036 cat >>conftest.$ac_ext <<_ACEOF
58037 /* end confdefs.h.  */
58038 $ac_includes_default
58039 #include <$ac_header>
58040 _ACEOF
58041 rm -f conftest.$ac_objext
58042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58043   (eval $ac_compile) 2>&5
58044   ac_status=$?
58045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58046   (exit $ac_status); } &&
58047          { ac_try='test -s conftest.$ac_objext'
58048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58049   (eval $ac_try) 2>&5
58050   ac_status=$?
58051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58052   (exit $ac_status); }; }; then
58053   ac_header_compiler=yes
58054 else
58055   echo "$as_me: failed program was:" >&5
58056 sed 's/^/| /' conftest.$ac_ext >&5
58057
58058 ac_header_compiler=no
58059 fi
58060 rm -f conftest.$ac_objext conftest.$ac_ext
58061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58062 echo "${ECHO_T}$ac_header_compiler" >&6
58063
58064 # Is the header present?
58065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58067 cat >conftest.$ac_ext <<_ACEOF
58068 #line $LINENO "configure"
58069 /* confdefs.h.  */
58070 _ACEOF
58071 cat confdefs.h >>conftest.$ac_ext
58072 cat >>conftest.$ac_ext <<_ACEOF
58073 /* end confdefs.h.  */
58074 #include <$ac_header>
58075 _ACEOF
58076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58078   ac_status=$?
58079   grep -v '^ *+' conftest.er1 >conftest.err
58080   rm -f conftest.er1
58081   cat conftest.err >&5
58082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58083   (exit $ac_status); } >/dev/null; then
58084   if test -s conftest.err; then
58085     ac_cpp_err=$ac_c_preproc_warn_flag
58086   else
58087     ac_cpp_err=
58088   fi
58089 else
58090   ac_cpp_err=yes
58091 fi
58092 if test -z "$ac_cpp_err"; then
58093   ac_header_preproc=yes
58094 else
58095   echo "$as_me: failed program was:" >&5
58096 sed 's/^/| /' conftest.$ac_ext >&5
58097
58098   ac_header_preproc=no
58099 fi
58100 rm -f conftest.err conftest.$ac_ext
58101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58102 echo "${ECHO_T}$ac_header_preproc" >&6
58103
58104 # So?  What about this header?
58105 case $ac_header_compiler:$ac_header_preproc in
58106   yes:no )
58107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58111     (
58112       cat <<\_ASBOX
58113 ## ------------------------------------ ##
58114 ## Report this to bug-autoconf@gnu.org. ##
58115 ## ------------------------------------ ##
58116 _ASBOX
58117     ) |
58118       sed "s/^/$as_me: WARNING:     /" >&2
58119     ;;
58120   no:yes )
58121     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58123     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58127     (
58128       cat <<\_ASBOX
58129 ## ------------------------------------ ##
58130 ## Report this to bug-autoconf@gnu.org. ##
58131 ## ------------------------------------ ##
58132 _ASBOX
58133     ) |
58134       sed "s/^/$as_me: WARNING:     /" >&2
58135     ;;
58136 esac
58137 echo "$as_me:$LINENO: checking for $ac_header" >&5
58138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58140   echo $ECHO_N "(cached) $ECHO_C" >&6
58141 else
58142   eval "$as_ac_Header=$ac_header_preproc"
58143 fi
58144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58146
58147 fi
58148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58149   cat >>confdefs.h <<_ACEOF
58150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58151 _ACEOF
58152  ac_has_wchar_h=yes
58153 else
58154   ac_has_wchar_h=no
58155 fi
58156
58157 done
58158
58159
58160 for ac_header in wctype.h
58161 do
58162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58164   echo "$as_me:$LINENO: checking for $ac_header" >&5
58165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58167   echo $ECHO_N "(cached) $ECHO_C" >&6
58168 fi
58169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58171 else
58172   # Is the header compilable?
58173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58175 cat >conftest.$ac_ext <<_ACEOF
58176 #line $LINENO "configure"
58177 /* confdefs.h.  */
58178 _ACEOF
58179 cat confdefs.h >>conftest.$ac_ext
58180 cat >>conftest.$ac_ext <<_ACEOF
58181 /* end confdefs.h.  */
58182 $ac_includes_default
58183 #include <$ac_header>
58184 _ACEOF
58185 rm -f conftest.$ac_objext
58186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58187   (eval $ac_compile) 2>&5
58188   ac_status=$?
58189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58190   (exit $ac_status); } &&
58191          { ac_try='test -s conftest.$ac_objext'
58192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58193   (eval $ac_try) 2>&5
58194   ac_status=$?
58195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58196   (exit $ac_status); }; }; then
58197   ac_header_compiler=yes
58198 else
58199   echo "$as_me: failed program was:" >&5
58200 sed 's/^/| /' conftest.$ac_ext >&5
58201
58202 ac_header_compiler=no
58203 fi
58204 rm -f conftest.$ac_objext conftest.$ac_ext
58205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58206 echo "${ECHO_T}$ac_header_compiler" >&6
58207
58208 # Is the header present?
58209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58211 cat >conftest.$ac_ext <<_ACEOF
58212 #line $LINENO "configure"
58213 /* confdefs.h.  */
58214 _ACEOF
58215 cat confdefs.h >>conftest.$ac_ext
58216 cat >>conftest.$ac_ext <<_ACEOF
58217 /* end confdefs.h.  */
58218 #include <$ac_header>
58219 _ACEOF
58220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58222   ac_status=$?
58223   grep -v '^ *+' conftest.er1 >conftest.err
58224   rm -f conftest.er1
58225   cat conftest.err >&5
58226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58227   (exit $ac_status); } >/dev/null; then
58228   if test -s conftest.err; then
58229     ac_cpp_err=$ac_c_preproc_warn_flag
58230   else
58231     ac_cpp_err=
58232   fi
58233 else
58234   ac_cpp_err=yes
58235 fi
58236 if test -z "$ac_cpp_err"; then
58237   ac_header_preproc=yes
58238 else
58239   echo "$as_me: failed program was:" >&5
58240 sed 's/^/| /' conftest.$ac_ext >&5
58241
58242   ac_header_preproc=no
58243 fi
58244 rm -f conftest.err conftest.$ac_ext
58245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58246 echo "${ECHO_T}$ac_header_preproc" >&6
58247
58248 # So?  What about this header?
58249 case $ac_header_compiler:$ac_header_preproc in
58250   yes:no )
58251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58255     (
58256       cat <<\_ASBOX
58257 ## ------------------------------------ ##
58258 ## Report this to bug-autoconf@gnu.org. ##
58259 ## ------------------------------------ ##
58260 _ASBOX
58261     ) |
58262       sed "s/^/$as_me: WARNING:     /" >&2
58263     ;;
58264   no:yes )
58265     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58267     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58271     (
58272       cat <<\_ASBOX
58273 ## ------------------------------------ ##
58274 ## Report this to bug-autoconf@gnu.org. ##
58275 ## ------------------------------------ ##
58276 _ASBOX
58277     ) |
58278       sed "s/^/$as_me: WARNING:     /" >&2
58279     ;;
58280 esac
58281 echo "$as_me:$LINENO: checking for $ac_header" >&5
58282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58284   echo $ECHO_N "(cached) $ECHO_C" >&6
58285 else
58286   eval "$as_ac_Header=$ac_header_preproc"
58287 fi
58288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58290
58291 fi
58292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58293   cat >>confdefs.h <<_ACEOF
58294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58295 _ACEOF
58296  ac_has_wctype_h=yes
58297 else
58298   ac_has_wctype_h=no
58299 fi
58300
58301 done
58302
58303
58304   # Only continue checking if the ISO C99 headers exist and support is on.
58305   if test x"$ac_has_wchar_h" = xyes &&
58306      test x"$ac_has_wctype_h" = xyes &&
58307      test x"$enable_c_mbchar" != xno; then
58308
58309     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
58310     # numeric_limits can instantiate type_traits<wchar_t>
58311     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
58312 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
58313     cat >conftest.$ac_ext <<_ACEOF
58314 #line $LINENO "configure"
58315 /* confdefs.h.  */
58316 _ACEOF
58317 cat confdefs.h >>conftest.$ac_ext
58318 cat >>conftest.$ac_ext <<_ACEOF
58319 /* end confdefs.h.  */
58320 #include <wchar.h>
58321 int
58322 main ()
58323 {
58324 int i = WCHAR_MIN; int j = WCHAR_MAX;
58325   ;
58326   return 0;
58327 }
58328 _ACEOF
58329 rm -f conftest.$ac_objext
58330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58331   (eval $ac_compile) 2>&5
58332   ac_status=$?
58333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58334   (exit $ac_status); } &&
58335          { ac_try='test -s conftest.$ac_objext'
58336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58337   (eval $ac_try) 2>&5
58338   ac_status=$?
58339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58340   (exit $ac_status); }; }; then
58341   has_wchar_minmax=yes
58342 else
58343   echo "$as_me: failed program was:" >&5
58344 sed 's/^/| /' conftest.$ac_ext >&5
58345
58346 has_wchar_minmax=no
58347 fi
58348 rm -f conftest.$ac_objext conftest.$ac_ext
58349     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
58350 echo "${ECHO_T}$has_wchar_minmax" >&6
58351
58352     # Test wchar.h for WEOF, which is what we use to determine whether
58353     # to specialize for char_traits<wchar_t> or not.
58354     echo "$as_me:$LINENO: checking for WEOF" >&5
58355 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
58356     cat >conftest.$ac_ext <<_ACEOF
58357 #line $LINENO "configure"
58358 /* confdefs.h.  */
58359 _ACEOF
58360 cat confdefs.h >>conftest.$ac_ext
58361 cat >>conftest.$ac_ext <<_ACEOF
58362 /* end confdefs.h.  */
58363
58364       #include <wchar.h>
58365       #include <stddef.h>
58366 int
58367 main ()
58368 {
58369 wint_t i = WEOF;
58370   ;
58371   return 0;
58372 }
58373 _ACEOF
58374 rm -f conftest.$ac_objext
58375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58376   (eval $ac_compile) 2>&5
58377   ac_status=$?
58378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58379   (exit $ac_status); } &&
58380          { ac_try='test -s conftest.$ac_objext'
58381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58382   (eval $ac_try) 2>&5
58383   ac_status=$?
58384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58385   (exit $ac_status); }; }; then
58386   has_weof=yes
58387 else
58388   echo "$as_me: failed program was:" >&5
58389 sed 's/^/| /' conftest.$ac_ext >&5
58390
58391 has_weof=no
58392 fi
58393 rm -f conftest.$ac_objext conftest.$ac_ext
58394     echo "$as_me:$LINENO: result: $has_weof" >&5
58395 echo "${ECHO_T}$has_weof" >&6
58396
58397     # Tests for wide character functions used in char_traits<wchar_t>.
58398     ac_wfuncs=yes
58399
58400
58401
58402
58403
58404
58405 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
58406 do
58407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58408 echo "$as_me:$LINENO: checking for $ac_func" >&5
58409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58410 if eval "test \"\${$as_ac_var+set}\" = set"; then
58411   echo $ECHO_N "(cached) $ECHO_C" >&6
58412 else
58413   if test x$gcc_no_link = xyes; then
58414   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58416    { (exit 1); exit 1; }; }
58417 fi
58418 cat >conftest.$ac_ext <<_ACEOF
58419 #line $LINENO "configure"
58420 /* confdefs.h.  */
58421 _ACEOF
58422 cat confdefs.h >>conftest.$ac_ext
58423 cat >>conftest.$ac_ext <<_ACEOF
58424 /* end confdefs.h.  */
58425 /* System header to define __stub macros and hopefully few prototypes,
58426     which can conflict with char $ac_func (); below.
58427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58428     <limits.h> exists even on freestanding compilers.  */
58429 #ifdef __STDC__
58430 # include <limits.h>
58431 #else
58432 # include <assert.h>
58433 #endif
58434 /* Override any gcc2 internal prototype to avoid an error.  */
58435 #ifdef __cplusplus
58436 extern "C"
58437 {
58438 #endif
58439 /* We use char because int might match the return type of a gcc2
58440    builtin and then its argument prototype would still apply.  */
58441 char $ac_func ();
58442 /* The GNU C library defines this for functions which it implements
58443     to always fail with ENOSYS.  Some functions are actually named
58444     something starting with __ and the normal name is an alias.  */
58445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58446 choke me
58447 #else
58448 char (*f) () = $ac_func;
58449 #endif
58450 #ifdef __cplusplus
58451 }
58452 #endif
58453
58454 int
58455 main ()
58456 {
58457 return f != $ac_func;
58458   ;
58459   return 0;
58460 }
58461 _ACEOF
58462 rm -f conftest.$ac_objext conftest$ac_exeext
58463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58464   (eval $ac_link) 2>&5
58465   ac_status=$?
58466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58467   (exit $ac_status); } &&
58468          { ac_try='test -s conftest$ac_exeext'
58469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58470   (eval $ac_try) 2>&5
58471   ac_status=$?
58472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58473   (exit $ac_status); }; }; then
58474   eval "$as_ac_var=yes"
58475 else
58476   echo "$as_me: failed program was:" >&5
58477 sed 's/^/| /' conftest.$ac_ext >&5
58478
58479 eval "$as_ac_var=no"
58480 fi
58481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58482 fi
58483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58485 if test `eval echo '${'$as_ac_var'}'` = yes; then
58486   cat >>confdefs.h <<_ACEOF
58487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58488 _ACEOF
58489
58490 else
58491   ac_wfuncs=no
58492 fi
58493 done
58494
58495
58496     # Checks for names injected into std:: by the c_std headers.
58497
58498
58499
58500
58501
58502
58503
58504
58505
58506
58507
58508
58509
58510
58511
58512
58513
58514
58515
58516
58517
58518
58519
58520
58521
58522
58523
58524
58525
58526
58527
58528
58529
58530
58531
58532
58533
58534
58535
58536
58537
58538
58539
58540
58541
58542
58543 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
58544     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
58545     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
58546     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
58547     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
58548     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
58549 do
58550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58551 echo "$as_me:$LINENO: checking for $ac_func" >&5
58552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58553 if eval "test \"\${$as_ac_var+set}\" = set"; then
58554   echo $ECHO_N "(cached) $ECHO_C" >&6
58555 else
58556   if test x$gcc_no_link = xyes; then
58557   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58559    { (exit 1); exit 1; }; }
58560 fi
58561 cat >conftest.$ac_ext <<_ACEOF
58562 #line $LINENO "configure"
58563 /* confdefs.h.  */
58564 _ACEOF
58565 cat confdefs.h >>conftest.$ac_ext
58566 cat >>conftest.$ac_ext <<_ACEOF
58567 /* end confdefs.h.  */
58568 /* System header to define __stub macros and hopefully few prototypes,
58569     which can conflict with char $ac_func (); below.
58570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58571     <limits.h> exists even on freestanding compilers.  */
58572 #ifdef __STDC__
58573 # include <limits.h>
58574 #else
58575 # include <assert.h>
58576 #endif
58577 /* Override any gcc2 internal prototype to avoid an error.  */
58578 #ifdef __cplusplus
58579 extern "C"
58580 {
58581 #endif
58582 /* We use char because int might match the return type of a gcc2
58583    builtin and then its argument prototype would still apply.  */
58584 char $ac_func ();
58585 /* The GNU C library defines this for functions which it implements
58586     to always fail with ENOSYS.  Some functions are actually named
58587     something starting with __ and the normal name is an alias.  */
58588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58589 choke me
58590 #else
58591 char (*f) () = $ac_func;
58592 #endif
58593 #ifdef __cplusplus
58594 }
58595 #endif
58596
58597 int
58598 main ()
58599 {
58600 return f != $ac_func;
58601   ;
58602   return 0;
58603 }
58604 _ACEOF
58605 rm -f conftest.$ac_objext conftest$ac_exeext
58606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58607   (eval $ac_link) 2>&5
58608   ac_status=$?
58609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58610   (exit $ac_status); } &&
58611          { ac_try='test -s conftest$ac_exeext'
58612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58613   (eval $ac_try) 2>&5
58614   ac_status=$?
58615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58616   (exit $ac_status); }; }; then
58617   eval "$as_ac_var=yes"
58618 else
58619   echo "$as_me: failed program was:" >&5
58620 sed 's/^/| /' conftest.$ac_ext >&5
58621
58622 eval "$as_ac_var=no"
58623 fi
58624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58625 fi
58626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58628 if test `eval echo '${'$as_ac_var'}'` = yes; then
58629   cat >>confdefs.h <<_ACEOF
58630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58631 _ACEOF
58632
58633 else
58634   ac_wfuncs=no
58635 fi
58636 done
58637
58638
58639     # Checks for wide character functions that are not required
58640     # for basic wchar_t support.  Don't disable support if they are missing.
58641     # Injection of these is wrapped with guard macros.
58642
58643
58644
58645
58646
58647 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
58648 do
58649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58650 echo "$as_me:$LINENO: checking for $ac_func" >&5
58651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58652 if eval "test \"\${$as_ac_var+set}\" = set"; then
58653   echo $ECHO_N "(cached) $ECHO_C" >&6
58654 else
58655   if test x$gcc_no_link = xyes; then
58656   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58658    { (exit 1); exit 1; }; }
58659 fi
58660 cat >conftest.$ac_ext <<_ACEOF
58661 #line $LINENO "configure"
58662 /* confdefs.h.  */
58663 _ACEOF
58664 cat confdefs.h >>conftest.$ac_ext
58665 cat >>conftest.$ac_ext <<_ACEOF
58666 /* end confdefs.h.  */
58667 /* System header to define __stub macros and hopefully few prototypes,
58668     which can conflict with char $ac_func (); below.
58669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58670     <limits.h> exists even on freestanding compilers.  */
58671 #ifdef __STDC__
58672 # include <limits.h>
58673 #else
58674 # include <assert.h>
58675 #endif
58676 /* Override any gcc2 internal prototype to avoid an error.  */
58677 #ifdef __cplusplus
58678 extern "C"
58679 {
58680 #endif
58681 /* We use char because int might match the return type of a gcc2
58682    builtin and then its argument prototype would still apply.  */
58683 char $ac_func ();
58684 /* The GNU C library defines this for functions which it implements
58685     to always fail with ENOSYS.  Some functions are actually named
58686     something starting with __ and the normal name is an alias.  */
58687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58688 choke me
58689 #else
58690 char (*f) () = $ac_func;
58691 #endif
58692 #ifdef __cplusplus
58693 }
58694 #endif
58695
58696 int
58697 main ()
58698 {
58699 return f != $ac_func;
58700   ;
58701   return 0;
58702 }
58703 _ACEOF
58704 rm -f conftest.$ac_objext conftest$ac_exeext
58705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58706   (eval $ac_link) 2>&5
58707   ac_status=$?
58708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58709   (exit $ac_status); } &&
58710          { ac_try='test -s conftest$ac_exeext'
58711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58712   (eval $ac_try) 2>&5
58713   ac_status=$?
58714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58715   (exit $ac_status); }; }; then
58716   eval "$as_ac_var=yes"
58717 else
58718   echo "$as_me: failed program was:" >&5
58719 sed 's/^/| /' conftest.$ac_ext >&5
58720
58721 eval "$as_ac_var=no"
58722 fi
58723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
58724 fi
58725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58727 if test `eval echo '${'$as_ac_var'}'` = yes; then
58728   cat >>confdefs.h <<_ACEOF
58729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58730 _ACEOF
58731
58732 fi
58733 done
58734
58735
58736     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
58737 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
58738     if test x"$has_weof" = xyes &&
58739        test x"$has_wchar_minmax" = xyes &&
58740        test x"$ac_wfuncs" = xyes;
58741     then
58742       ac_isoC99_wchar_t=yes
58743     else
58744       ac_isoC99_wchar_t=no
58745     fi
58746     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
58747 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
58748
58749     # Use iconv for wchar_t to char conversions. As such, check for
58750     # X/Open Portability Guide, version 2 features (XPG2).
58751     if test "${ac_cv_header_iconv_h+set}" = set; then
58752   echo "$as_me:$LINENO: checking for iconv.h" >&5
58753 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
58754 if test "${ac_cv_header_iconv_h+set}" = set; then
58755   echo $ECHO_N "(cached) $ECHO_C" >&6
58756 fi
58757 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
58758 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
58759 else
58760   # Is the header compilable?
58761 echo "$as_me:$LINENO: checking iconv.h usability" >&5
58762 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
58763 cat >conftest.$ac_ext <<_ACEOF
58764 #line $LINENO "configure"
58765 /* confdefs.h.  */
58766 _ACEOF
58767 cat confdefs.h >>conftest.$ac_ext
58768 cat >>conftest.$ac_ext <<_ACEOF
58769 /* end confdefs.h.  */
58770 $ac_includes_default
58771 #include <iconv.h>
58772 _ACEOF
58773 rm -f conftest.$ac_objext
58774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58775   (eval $ac_compile) 2>&5
58776   ac_status=$?
58777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58778   (exit $ac_status); } &&
58779          { ac_try='test -s conftest.$ac_objext'
58780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58781   (eval $ac_try) 2>&5
58782   ac_status=$?
58783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58784   (exit $ac_status); }; }; then
58785   ac_header_compiler=yes
58786 else
58787   echo "$as_me: failed program was:" >&5
58788 sed 's/^/| /' conftest.$ac_ext >&5
58789
58790 ac_header_compiler=no
58791 fi
58792 rm -f conftest.$ac_objext conftest.$ac_ext
58793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58794 echo "${ECHO_T}$ac_header_compiler" >&6
58795
58796 # Is the header present?
58797 echo "$as_me:$LINENO: checking iconv.h presence" >&5
58798 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
58799 cat >conftest.$ac_ext <<_ACEOF
58800 #line $LINENO "configure"
58801 /* confdefs.h.  */
58802 _ACEOF
58803 cat confdefs.h >>conftest.$ac_ext
58804 cat >>conftest.$ac_ext <<_ACEOF
58805 /* end confdefs.h.  */
58806 #include <iconv.h>
58807 _ACEOF
58808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58810   ac_status=$?
58811   grep -v '^ *+' conftest.er1 >conftest.err
58812   rm -f conftest.er1
58813   cat conftest.err >&5
58814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58815   (exit $ac_status); } >/dev/null; then
58816   if test -s conftest.err; then
58817     ac_cpp_err=$ac_c_preproc_warn_flag
58818   else
58819     ac_cpp_err=
58820   fi
58821 else
58822   ac_cpp_err=yes
58823 fi
58824 if test -z "$ac_cpp_err"; then
58825   ac_header_preproc=yes
58826 else
58827   echo "$as_me: failed program was:" >&5
58828 sed 's/^/| /' conftest.$ac_ext >&5
58829
58830   ac_header_preproc=no
58831 fi
58832 rm -f conftest.err conftest.$ac_ext
58833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58834 echo "${ECHO_T}$ac_header_preproc" >&6
58835
58836 # So?  What about this header?
58837 case $ac_header_compiler:$ac_header_preproc in
58838   yes:no )
58839     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
58840 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
58841     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
58842 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
58843     (
58844       cat <<\_ASBOX
58845 ## ------------------------------------ ##
58846 ## Report this to bug-autoconf@gnu.org. ##
58847 ## ------------------------------------ ##
58848 _ASBOX
58849     ) |
58850       sed "s/^/$as_me: WARNING:     /" >&2
58851     ;;
58852   no:yes )
58853     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
58854 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
58855     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
58856 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
58857     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
58858 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
58859     (
58860       cat <<\_ASBOX
58861 ## ------------------------------------ ##
58862 ## Report this to bug-autoconf@gnu.org. ##
58863 ## ------------------------------------ ##
58864 _ASBOX
58865     ) |
58866       sed "s/^/$as_me: WARNING:     /" >&2
58867     ;;
58868 esac
58869 echo "$as_me:$LINENO: checking for iconv.h" >&5
58870 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
58871 if test "${ac_cv_header_iconv_h+set}" = set; then
58872   echo $ECHO_N "(cached) $ECHO_C" >&6
58873 else
58874   ac_cv_header_iconv_h=$ac_header_preproc
58875 fi
58876 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
58877 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
58878
58879 fi
58880 if test $ac_cv_header_iconv_h = yes; then
58881   ac_has_iconv_h=yes
58882 else
58883   ac_has_iconv_h=no
58884 fi
58885
58886
58887     if test "${ac_cv_header_langinfo_h+set}" = set; then
58888   echo "$as_me:$LINENO: checking for langinfo.h" >&5
58889 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
58890 if test "${ac_cv_header_langinfo_h+set}" = set; then
58891   echo $ECHO_N "(cached) $ECHO_C" >&6
58892 fi
58893 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
58894 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
58895 else
58896   # Is the header compilable?
58897 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
58898 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
58899 cat >conftest.$ac_ext <<_ACEOF
58900 #line $LINENO "configure"
58901 /* confdefs.h.  */
58902 _ACEOF
58903 cat confdefs.h >>conftest.$ac_ext
58904 cat >>conftest.$ac_ext <<_ACEOF
58905 /* end confdefs.h.  */
58906 $ac_includes_default
58907 #include <langinfo.h>
58908 _ACEOF
58909 rm -f conftest.$ac_objext
58910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58911   (eval $ac_compile) 2>&5
58912   ac_status=$?
58913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58914   (exit $ac_status); } &&
58915          { ac_try='test -s conftest.$ac_objext'
58916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58917   (eval $ac_try) 2>&5
58918   ac_status=$?
58919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58920   (exit $ac_status); }; }; then
58921   ac_header_compiler=yes
58922 else
58923   echo "$as_me: failed program was:" >&5
58924 sed 's/^/| /' conftest.$ac_ext >&5
58925
58926 ac_header_compiler=no
58927 fi
58928 rm -f conftest.$ac_objext conftest.$ac_ext
58929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58930 echo "${ECHO_T}$ac_header_compiler" >&6
58931
58932 # Is the header present?
58933 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
58934 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
58935 cat >conftest.$ac_ext <<_ACEOF
58936 #line $LINENO "configure"
58937 /* confdefs.h.  */
58938 _ACEOF
58939 cat confdefs.h >>conftest.$ac_ext
58940 cat >>conftest.$ac_ext <<_ACEOF
58941 /* end confdefs.h.  */
58942 #include <langinfo.h>
58943 _ACEOF
58944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58946   ac_status=$?
58947   grep -v '^ *+' conftest.er1 >conftest.err
58948   rm -f conftest.er1
58949   cat conftest.err >&5
58950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58951   (exit $ac_status); } >/dev/null; then
58952   if test -s conftest.err; then
58953     ac_cpp_err=$ac_c_preproc_warn_flag
58954   else
58955     ac_cpp_err=
58956   fi
58957 else
58958   ac_cpp_err=yes
58959 fi
58960 if test -z "$ac_cpp_err"; then
58961   ac_header_preproc=yes
58962 else
58963   echo "$as_me: failed program was:" >&5
58964 sed 's/^/| /' conftest.$ac_ext >&5
58965
58966   ac_header_preproc=no
58967 fi
58968 rm -f conftest.err conftest.$ac_ext
58969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58970 echo "${ECHO_T}$ac_header_preproc" >&6
58971
58972 # So?  What about this header?
58973 case $ac_header_compiler:$ac_header_preproc in
58974   yes:no )
58975     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
58976 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
58977     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
58978 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
58979     (
58980       cat <<\_ASBOX
58981 ## ------------------------------------ ##
58982 ## Report this to bug-autoconf@gnu.org. ##
58983 ## ------------------------------------ ##
58984 _ASBOX
58985     ) |
58986       sed "s/^/$as_me: WARNING:     /" >&2
58987     ;;
58988   no:yes )
58989     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
58990 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
58991     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
58992 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
58993     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
58994 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
58995     (
58996       cat <<\_ASBOX
58997 ## ------------------------------------ ##
58998 ## Report this to bug-autoconf@gnu.org. ##
58999 ## ------------------------------------ ##
59000 _ASBOX
59001     ) |
59002       sed "s/^/$as_me: WARNING:     /" >&2
59003     ;;
59004 esac
59005 echo "$as_me:$LINENO: checking for langinfo.h" >&5
59006 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59007 if test "${ac_cv_header_langinfo_h+set}" = set; then
59008   echo $ECHO_N "(cached) $ECHO_C" >&6
59009 else
59010   ac_cv_header_langinfo_h=$ac_header_preproc
59011 fi
59012 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59013 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59014
59015 fi
59016 if test $ac_cv_header_langinfo_h = yes; then
59017   ac_has_langinfo_h=yes
59018 else
59019   ac_has_langinfo_h=no
59020 fi
59021
59022
59023
59024     # Check for existence of libiconv.a providing XPG2 wchar_t support.
59025     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
59026 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
59027 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
59028   echo $ECHO_N "(cached) $ECHO_C" >&6
59029 else
59030   ac_check_lib_save_LIBS=$LIBS
59031 LIBS="-liconv  $LIBS"
59032 if test x$gcc_no_link = xyes; then
59033   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59034 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59035    { (exit 1); exit 1; }; }
59036 fi
59037 cat >conftest.$ac_ext <<_ACEOF
59038 #line $LINENO "configure"
59039 /* confdefs.h.  */
59040 _ACEOF
59041 cat confdefs.h >>conftest.$ac_ext
59042 cat >>conftest.$ac_ext <<_ACEOF
59043 /* end confdefs.h.  */
59044
59045 /* Override any gcc2 internal prototype to avoid an error.  */
59046 #ifdef __cplusplus
59047 extern "C"
59048 #endif
59049 /* We use char because int might match the return type of a gcc2
59050    builtin and then its argument prototype would still apply.  */
59051 char iconv ();
59052 int
59053 main ()
59054 {
59055 iconv ();
59056   ;
59057   return 0;
59058 }
59059 _ACEOF
59060 rm -f conftest.$ac_objext conftest$ac_exeext
59061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59062   (eval $ac_link) 2>&5
59063   ac_status=$?
59064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59065   (exit $ac_status); } &&
59066          { ac_try='test -s conftest$ac_exeext'
59067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59068   (eval $ac_try) 2>&5
59069   ac_status=$?
59070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59071   (exit $ac_status); }; }; then
59072   ac_cv_lib_iconv_iconv=yes
59073 else
59074   echo "$as_me: failed program was:" >&5
59075 sed 's/^/| /' conftest.$ac_ext >&5
59076
59077 ac_cv_lib_iconv_iconv=no
59078 fi
59079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
59080 LIBS=$ac_check_lib_save_LIBS
59081 fi
59082 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
59083 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
59084 if test $ac_cv_lib_iconv_iconv = yes; then
59085   libiconv="-liconv"
59086 fi
59087
59088     ac_save_LIBS="$LIBS"
59089     LIBS="$LIBS $libiconv"
59090
59091
59092
59093
59094
59095 for ac_func in iconv_open iconv_close iconv nl_langinfo
59096 do
59097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59098 echo "$as_me:$LINENO: checking for $ac_func" >&5
59099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59100 if eval "test \"\${$as_ac_var+set}\" = set"; then
59101   echo $ECHO_N "(cached) $ECHO_C" >&6
59102 else
59103   if test x$gcc_no_link = xyes; then
59104   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59106    { (exit 1); exit 1; }; }
59107 fi
59108 cat >conftest.$ac_ext <<_ACEOF
59109 #line $LINENO "configure"
59110 /* confdefs.h.  */
59111 _ACEOF
59112 cat confdefs.h >>conftest.$ac_ext
59113 cat >>conftest.$ac_ext <<_ACEOF
59114 /* end confdefs.h.  */
59115 /* System header to define __stub macros and hopefully few prototypes,
59116     which can conflict with char $ac_func (); below.
59117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59118     <limits.h> exists even on freestanding compilers.  */
59119 #ifdef __STDC__
59120 # include <limits.h>
59121 #else
59122 # include <assert.h>
59123 #endif
59124 /* Override any gcc2 internal prototype to avoid an error.  */
59125 #ifdef __cplusplus
59126 extern "C"
59127 {
59128 #endif
59129 /* We use char because int might match the return type of a gcc2
59130    builtin and then its argument prototype would still apply.  */
59131 char $ac_func ();
59132 /* The GNU C library defines this for functions which it implements
59133     to always fail with ENOSYS.  Some functions are actually named
59134     something starting with __ and the normal name is an alias.  */
59135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59136 choke me
59137 #else
59138 char (*f) () = $ac_func;
59139 #endif
59140 #ifdef __cplusplus
59141 }
59142 #endif
59143
59144 int
59145 main ()
59146 {
59147 return f != $ac_func;
59148   ;
59149   return 0;
59150 }
59151 _ACEOF
59152 rm -f conftest.$ac_objext conftest$ac_exeext
59153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59154   (eval $ac_link) 2>&5
59155   ac_status=$?
59156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59157   (exit $ac_status); } &&
59158          { ac_try='test -s conftest$ac_exeext'
59159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59160   (eval $ac_try) 2>&5
59161   ac_status=$?
59162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59163   (exit $ac_status); }; }; then
59164   eval "$as_ac_var=yes"
59165 else
59166   echo "$as_me: failed program was:" >&5
59167 sed 's/^/| /' conftest.$ac_ext >&5
59168
59169 eval "$as_ac_var=no"
59170 fi
59171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
59172 fi
59173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59175 if test `eval echo '${'$as_ac_var'}'` = yes; then
59176   cat >>confdefs.h <<_ACEOF
59177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59178 _ACEOF
59179  ac_XPG2funcs=yes
59180 else
59181   ac_XPG2funcs=no
59182 fi
59183 done
59184
59185
59186     LIBS="$ac_save_LIBS"
59187
59188     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
59189 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
59190     if test x"$ac_has_iconv_h" = xyes &&
59191        test x"$ac_has_langinfo_h" = xyes &&
59192        test x"$ac_XPG2funcs" = xyes;
59193     then
59194       ac_XPG2_wchar_t=yes
59195     else
59196       ac_XPG2_wchar_t=no
59197     fi
59198     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
59199 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
59200
59201     # At the moment, only enable wchar_t specializations if all the
59202     # above support is present.
59203     if test x"$ac_isoC99_wchar_t" = xyes &&
59204        test x"$ac_XPG2_wchar_t" = xyes;
59205     then
59206       cat >>confdefs.h <<\_ACEOF
59207 #define _GLIBCXX_USE_WCHAR_T 1
59208 _ACEOF
59209
59210       enable_wchar_t=yes
59211     fi
59212   fi
59213   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
59214 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
59215   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
59216 echo "${ECHO_T}$enable_wchar_t" >&6
59217
59218     cat >>confdefs.h <<\_ACEOF
59219 #define HAVE_COSF 1
59220 _ACEOF
59221
59222     cat >>confdefs.h <<\_ACEOF
59223 #define HAVE_COSL 1
59224 _ACEOF
59225
59226     cat >>confdefs.h <<\_ACEOF
59227 #define HAVE_COSHF 1
59228 _ACEOF
59229
59230     cat >>confdefs.h <<\_ACEOF
59231 #define HAVE_COSHL 1
59232 _ACEOF
59233
59234     cat >>confdefs.h <<\_ACEOF
59235 #define HAVE_LOGF 1
59236 _ACEOF
59237
59238     cat >>confdefs.h <<\_ACEOF
59239 #define HAVE_LOGL 1
59240 _ACEOF
59241
59242     cat >>confdefs.h <<\_ACEOF
59243 #define HAVE_LOG10F 1
59244 _ACEOF
59245
59246     cat >>confdefs.h <<\_ACEOF
59247 #define HAVE_LOG10L 1
59248 _ACEOF
59249
59250     cat >>confdefs.h <<\_ACEOF
59251 #define HAVE_SINF 1
59252 _ACEOF
59253
59254     cat >>confdefs.h <<\_ACEOF
59255 #define HAVE_SINL 1
59256 _ACEOF
59257
59258     cat >>confdefs.h <<\_ACEOF
59259 #define HAVE_SINHF 1
59260 _ACEOF
59261
59262     cat >>confdefs.h <<\_ACEOF
59263 #define HAVE_SINHL 1
59264 _ACEOF
59265
59266     ;;
59267   *-solaris*)
59268     case "$target" in
59269     #  *-solaris2.5)
59270     #    os_include_dir="os/solaris/solaris2.5"
59271     #    ;;
59272     #  *-solaris2.6)
59273     #    os_include_dir="os/solaris/solaris2.6"
59274     #    ;;
59275       *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
59276          cat >>confdefs.h <<\_ACEOF
59277 #define HAVE_GETPAGESIZE 1
59278 _ACEOF
59279
59280          cat >>confdefs.h <<\_ACEOF
59281 #define HAVE_SIGSETJMP 1
59282 _ACEOF
59283
59284          cat >>confdefs.h <<\_ACEOF
59285 #define HAVE_MBSTATE_T 1
59286 _ACEOF
59287
59288          cat >>confdefs.h <<\_ACEOF
59289 #define HAVE_POLL 1
59290 _ACEOF
59291
59292          cat >>confdefs.h <<\_ACEOF
59293 #define HAVE_S_ISREG 1
59294 _ACEOF
59295
59296          cat >>confdefs.h <<\_ACEOF
59297 #define HAVE_LC_MESSAGES 1
59298 _ACEOF
59299
59300          cat >>confdefs.h <<\_ACEOF
59301 #define HAVE_BTOWC 1
59302 _ACEOF
59303
59304          cat >>confdefs.h <<\_ACEOF
59305 #define HAVE_FGETWC 1
59306 _ACEOF
59307
59308          cat >>confdefs.h <<\_ACEOF
59309 #define HAVE_FGETWS 1
59310 _ACEOF
59311
59312          cat >>confdefs.h <<\_ACEOF
59313 #define HAVE_FINITE 1
59314 _ACEOF
59315
59316          cat >>confdefs.h <<\_ACEOF
59317 #define HAVE_FPCLASS 1
59318 _ACEOF
59319
59320          cat >>confdefs.h <<\_ACEOF
59321 #define HAVE_FPUTWC 1
59322 _ACEOF
59323
59324          cat >>confdefs.h <<\_ACEOF
59325 #define HAVE_FPUTWS 1
59326 _ACEOF
59327
59328          cat >>confdefs.h <<\_ACEOF
59329 #define HAVE_FWIDE 1
59330 _ACEOF
59331
59332          cat >>confdefs.h <<\_ACEOF
59333 #define HAVE_FWPRINTF 1
59334 _ACEOF
59335
59336          cat >>confdefs.h <<\_ACEOF
59337 #define HAVE_FWSCANF 1
59338 _ACEOF
59339
59340          cat >>confdefs.h <<\_ACEOF
59341 #define HAVE_GETPAGESIZE 1
59342 _ACEOF
59343
59344          cat >>confdefs.h <<\_ACEOF
59345 #define HAVE_GETWC 1
59346 _ACEOF
59347
59348          cat >>confdefs.h <<\_ACEOF
59349 #define HAVE_GETWCHAR 1
59350 _ACEOF
59351
59352          cat >>confdefs.h <<\_ACEOF
59353 #define HAVE_MBRLEN 1
59354 _ACEOF
59355
59356          cat >>confdefs.h <<\_ACEOF
59357 #define HAVE_MBRTOWC 1
59358 _ACEOF
59359
59360          cat >>confdefs.h <<\_ACEOF
59361 #define HAVE_MBSINIT 1
59362 _ACEOF
59363
59364          cat >>confdefs.h <<\_ACEOF
59365 #define HAVE_MBSRTOWCS 1
59366 _ACEOF
59367
59368          cat >>confdefs.h <<\_ACEOF
59369 #define HAVE_NL_LANGINFO 1
59370 _ACEOF
59371
59372          cat >>confdefs.h <<\_ACEOF
59373 #define HAVE_PUTWC 1
59374 _ACEOF
59375
59376          cat >>confdefs.h <<\_ACEOF
59377 #define HAVE_PUTWCHAR 1
59378 _ACEOF
59379
59380          cat >>confdefs.h <<\_ACEOF
59381 #define HAVE_SWPRINTF 1
59382 _ACEOF
59383
59384          cat >>confdefs.h <<\_ACEOF
59385 #define HAVE_SWSCANF 1
59386 _ACEOF
59387
59388          cat >>confdefs.h <<\_ACEOF
59389 #define HAVE_UNGETWC 1
59390 _ACEOF
59391
59392          cat >>confdefs.h <<\_ACEOF
59393 #define HAVE_VFWPRINTF 1
59394 _ACEOF
59395
59396          cat >>confdefs.h <<\_ACEOF
59397 #define HAVE_VSWPRINTF 1
59398 _ACEOF
59399
59400          cat >>confdefs.h <<\_ACEOF
59401 #define HAVE_VWPRINTF 1
59402 _ACEOF
59403
59404          cat >>confdefs.h <<\_ACEOF
59405 #define HAVE_WCRTOMB 1
59406 _ACEOF
59407
59408          cat >>confdefs.h <<\_ACEOF
59409 #define HAVE_WCSCAT 1
59410 _ACEOF
59411
59412          cat >>confdefs.h <<\_ACEOF
59413 #define HAVE_WCSCHR 1
59414 _ACEOF
59415
59416          cat >>confdefs.h <<\_ACEOF
59417 #define HAVE_WCSCMP 1
59418 _ACEOF
59419
59420          cat >>confdefs.h <<\_ACEOF
59421 #define HAVE_WCSCOLL 1
59422 _ACEOF
59423
59424          cat >>confdefs.h <<\_ACEOF
59425 #define HAVE_WCSCPY 1
59426 _ACEOF
59427
59428          cat >>confdefs.h <<\_ACEOF
59429 #define HAVE_WCSCSPN 1
59430 _ACEOF
59431
59432          cat >>confdefs.h <<\_ACEOF
59433 #define HAVE_WCSFTIME 1
59434 _ACEOF
59435
59436          cat >>confdefs.h <<\_ACEOF
59437 #define HAVE_WCSLEN 1
59438 _ACEOF
59439
59440          cat >>confdefs.h <<\_ACEOF
59441 #define HAVE_WCSNCAT 1
59442 _ACEOF
59443
59444          cat >>confdefs.h <<\_ACEOF
59445 #define HAVE_WCSNCMP 1
59446 _ACEOF
59447
59448          cat >>confdefs.h <<\_ACEOF
59449 #define HAVE_WCSNCPY 1
59450 _ACEOF
59451
59452          cat >>confdefs.h <<\_ACEOF
59453 #define HAVE_WCSPBRK 1
59454 _ACEOF
59455
59456          cat >>confdefs.h <<\_ACEOF
59457 #define HAVE_WCSRCHR 1
59458 _ACEOF
59459
59460          cat >>confdefs.h <<\_ACEOF
59461 #define HAVE_WCSRTOMBS 1
59462 _ACEOF
59463
59464          cat >>confdefs.h <<\_ACEOF
59465 #define HAVE_WCSSPN 1
59466 _ACEOF
59467
59468          cat >>confdefs.h <<\_ACEOF
59469 #define HAVE_WCSSTR 1
59470 _ACEOF
59471
59472          cat >>confdefs.h <<\_ACEOF
59473 #define HAVE_WCSTOD 1
59474 _ACEOF
59475
59476          cat >>confdefs.h <<\_ACEOF
59477 #define HAVE_WCSTOK 1
59478 _ACEOF
59479
59480          cat >>confdefs.h <<\_ACEOF
59481 #define HAVE_WCSTOL 1
59482 _ACEOF
59483
59484          cat >>confdefs.h <<\_ACEOF
59485 #define HAVE_WCSTOUL 1
59486 _ACEOF
59487
59488          cat >>confdefs.h <<\_ACEOF
59489 #define HAVE_WCSXFRM 1
59490 _ACEOF
59491
59492          cat >>confdefs.h <<\_ACEOF
59493 #define HAVE_WCTOB 1
59494 _ACEOF
59495
59496          cat >>confdefs.h <<\_ACEOF
59497 #define HAVE_WMEMCHR 1
59498 _ACEOF
59499
59500          cat >>confdefs.h <<\_ACEOF
59501 #define HAVE_WMEMCMP 1
59502 _ACEOF
59503
59504          cat >>confdefs.h <<\_ACEOF
59505 #define HAVE_WMEMCPY 1
59506 _ACEOF
59507
59508          cat >>confdefs.h <<\_ACEOF
59509 #define HAVE_WMEMMOVE 1
59510 _ACEOF
59511
59512          cat >>confdefs.h <<\_ACEOF
59513 #define HAVE_WMEMSET 1
59514 _ACEOF
59515
59516          cat >>confdefs.h <<\_ACEOF
59517 #define HAVE_WPRINTF 1
59518 _ACEOF
59519
59520          cat >>confdefs.h <<\_ACEOF
59521 #define HAVE_WSCANF 1
59522 _ACEOF
59523
59524          cat >>confdefs.h <<\_ACEOF
59525 #define HAVE_ICONV 1
59526 _ACEOF
59527
59528          cat >>confdefs.h <<\_ACEOF
59529 #define HAVE_ICONV_CLOSE 1
59530 _ACEOF
59531
59532          cat >>confdefs.h <<\_ACEOF
59533 #define HAVE_ICONV_OPEN 1
59534 _ACEOF
59535
59536          # Look for the pieces required for wchar_t support in order to
59537          # get all the right HAVE_* macros defined.
59538
59539   # Test wchar.h for mbstate_t, which is needed for char_traits and
59540   # others even if wchar_t support is not on.
59541   echo "$as_me:$LINENO: checking for mbstate_t" >&5
59542 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
59543   cat >conftest.$ac_ext <<_ACEOF
59544 #line $LINENO "configure"
59545 /* confdefs.h.  */
59546 _ACEOF
59547 cat confdefs.h >>conftest.$ac_ext
59548 cat >>conftest.$ac_ext <<_ACEOF
59549 /* end confdefs.h.  */
59550 #include <wchar.h>
59551 int
59552 main ()
59553 {
59554 mbstate_t teststate;
59555   ;
59556   return 0;
59557 }
59558 _ACEOF
59559 rm -f conftest.$ac_objext
59560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59561   (eval $ac_compile) 2>&5
59562   ac_status=$?
59563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59564   (exit $ac_status); } &&
59565          { ac_try='test -s conftest.$ac_objext'
59566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59567   (eval $ac_try) 2>&5
59568   ac_status=$?
59569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59570   (exit $ac_status); }; }; then
59571   have_mbstate_t=yes
59572 else
59573   echo "$as_me: failed program was:" >&5
59574 sed 's/^/| /' conftest.$ac_ext >&5
59575
59576 have_mbstate_t=no
59577 fi
59578 rm -f conftest.$ac_objext conftest.$ac_ext
59579   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
59580 echo "${ECHO_T}$have_mbstate_t" >&6
59581   if test x"$have_mbstate_t" = xyes; then
59582     cat >>confdefs.h <<\_ACEOF
59583 #define HAVE_MBSTATE_T 1
59584 _ACEOF
59585
59586   fi
59587
59588   # Sanity check for existence of ISO C99 headers for extended encoding.
59589
59590 for ac_header in wchar.h
59591 do
59592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59594   echo "$as_me:$LINENO: checking for $ac_header" >&5
59595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59597   echo $ECHO_N "(cached) $ECHO_C" >&6
59598 fi
59599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59601 else
59602   # Is the header compilable?
59603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59605 cat >conftest.$ac_ext <<_ACEOF
59606 #line $LINENO "configure"
59607 /* confdefs.h.  */
59608 _ACEOF
59609 cat confdefs.h >>conftest.$ac_ext
59610 cat >>conftest.$ac_ext <<_ACEOF
59611 /* end confdefs.h.  */
59612 $ac_includes_default
59613 #include <$ac_header>
59614 _ACEOF
59615 rm -f conftest.$ac_objext
59616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59617   (eval $ac_compile) 2>&5
59618   ac_status=$?
59619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59620   (exit $ac_status); } &&
59621          { ac_try='test -s conftest.$ac_objext'
59622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59623   (eval $ac_try) 2>&5
59624   ac_status=$?
59625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59626   (exit $ac_status); }; }; then
59627   ac_header_compiler=yes
59628 else
59629   echo "$as_me: failed program was:" >&5
59630 sed 's/^/| /' conftest.$ac_ext >&5
59631
59632 ac_header_compiler=no
59633 fi
59634 rm -f conftest.$ac_objext conftest.$ac_ext
59635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59636 echo "${ECHO_T}$ac_header_compiler" >&6
59637
59638 # Is the header present?
59639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59641 cat >conftest.$ac_ext <<_ACEOF
59642 #line $LINENO "configure"
59643 /* confdefs.h.  */
59644 _ACEOF
59645 cat confdefs.h >>conftest.$ac_ext
59646 cat >>conftest.$ac_ext <<_ACEOF
59647 /* end confdefs.h.  */
59648 #include <$ac_header>
59649 _ACEOF
59650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59652   ac_status=$?
59653   grep -v '^ *+' conftest.er1 >conftest.err
59654   rm -f conftest.er1
59655   cat conftest.err >&5
59656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59657   (exit $ac_status); } >/dev/null; then
59658   if test -s conftest.err; then
59659     ac_cpp_err=$ac_c_preproc_warn_flag
59660   else
59661     ac_cpp_err=
59662   fi
59663 else
59664   ac_cpp_err=yes
59665 fi
59666 if test -z "$ac_cpp_err"; then
59667   ac_header_preproc=yes
59668 else
59669   echo "$as_me: failed program was:" >&5
59670 sed 's/^/| /' conftest.$ac_ext >&5
59671
59672   ac_header_preproc=no
59673 fi
59674 rm -f conftest.err conftest.$ac_ext
59675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59676 echo "${ECHO_T}$ac_header_preproc" >&6
59677
59678 # So?  What about this header?
59679 case $ac_header_compiler:$ac_header_preproc in
59680   yes:no )
59681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59685     (
59686       cat <<\_ASBOX
59687 ## ------------------------------------ ##
59688 ## Report this to bug-autoconf@gnu.org. ##
59689 ## ------------------------------------ ##
59690 _ASBOX
59691     ) |
59692       sed "s/^/$as_me: WARNING:     /" >&2
59693     ;;
59694   no:yes )
59695     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59697     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59701     (
59702       cat <<\_ASBOX
59703 ## ------------------------------------ ##
59704 ## Report this to bug-autoconf@gnu.org. ##
59705 ## ------------------------------------ ##
59706 _ASBOX
59707     ) |
59708       sed "s/^/$as_me: WARNING:     /" >&2
59709     ;;
59710 esac
59711 echo "$as_me:$LINENO: checking for $ac_header" >&5
59712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59714   echo $ECHO_N "(cached) $ECHO_C" >&6
59715 else
59716   eval "$as_ac_Header=$ac_header_preproc"
59717 fi
59718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59720
59721 fi
59722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59723   cat >>confdefs.h <<_ACEOF
59724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59725 _ACEOF
59726  ac_has_wchar_h=yes
59727 else
59728   ac_has_wchar_h=no
59729 fi
59730
59731 done
59732
59733
59734 for ac_header in wctype.h
59735 do
59736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59738   echo "$as_me:$LINENO: checking for $ac_header" >&5
59739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59741   echo $ECHO_N "(cached) $ECHO_C" >&6
59742 fi
59743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59745 else
59746   # Is the header compilable?
59747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59749 cat >conftest.$ac_ext <<_ACEOF
59750 #line $LINENO "configure"
59751 /* confdefs.h.  */
59752 _ACEOF
59753 cat confdefs.h >>conftest.$ac_ext
59754 cat >>conftest.$ac_ext <<_ACEOF
59755 /* end confdefs.h.  */
59756 $ac_includes_default
59757 #include <$ac_header>
59758 _ACEOF
59759 rm -f conftest.$ac_objext
59760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59761   (eval $ac_compile) 2>&5
59762   ac_status=$?
59763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59764   (exit $ac_status); } &&
59765          { ac_try='test -s conftest.$ac_objext'
59766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59767   (eval $ac_try) 2>&5
59768   ac_status=$?
59769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59770   (exit $ac_status); }; }; then
59771   ac_header_compiler=yes
59772 else
59773   echo "$as_me: failed program was:" >&5
59774 sed 's/^/| /' conftest.$ac_ext >&5
59775
59776 ac_header_compiler=no
59777 fi
59778 rm -f conftest.$ac_objext conftest.$ac_ext
59779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59780 echo "${ECHO_T}$ac_header_compiler" >&6
59781
59782 # Is the header present?
59783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59785 cat >conftest.$ac_ext <<_ACEOF
59786 #line $LINENO "configure"
59787 /* confdefs.h.  */
59788 _ACEOF
59789 cat confdefs.h >>conftest.$ac_ext
59790 cat >>conftest.$ac_ext <<_ACEOF
59791 /* end confdefs.h.  */
59792 #include <$ac_header>
59793 _ACEOF
59794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59795   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59796   ac_status=$?
59797   grep -v '^ *+' conftest.er1 >conftest.err
59798   rm -f conftest.er1
59799   cat conftest.err >&5
59800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59801   (exit $ac_status); } >/dev/null; then
59802   if test -s conftest.err; then
59803     ac_cpp_err=$ac_c_preproc_warn_flag
59804   else
59805     ac_cpp_err=
59806   fi
59807 else
59808   ac_cpp_err=yes
59809 fi
59810 if test -z "$ac_cpp_err"; then
59811   ac_header_preproc=yes
59812 else
59813   echo "$as_me: failed program was:" >&5
59814 sed 's/^/| /' conftest.$ac_ext >&5
59815
59816   ac_header_preproc=no
59817 fi
59818 rm -f conftest.err conftest.$ac_ext
59819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59820 echo "${ECHO_T}$ac_header_preproc" >&6
59821
59822 # So?  What about this header?
59823 case $ac_header_compiler:$ac_header_preproc in
59824   yes:no )
59825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59829     (
59830       cat <<\_ASBOX
59831 ## ------------------------------------ ##
59832 ## Report this to bug-autoconf@gnu.org. ##
59833 ## ------------------------------------ ##
59834 _ASBOX
59835     ) |
59836       sed "s/^/$as_me: WARNING:     /" >&2
59837     ;;
59838   no:yes )
59839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59841     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59845     (
59846       cat <<\_ASBOX
59847 ## ------------------------------------ ##
59848 ## Report this to bug-autoconf@gnu.org. ##
59849 ## ------------------------------------ ##
59850 _ASBOX
59851     ) |
59852       sed "s/^/$as_me: WARNING:     /" >&2
59853     ;;
59854 esac
59855 echo "$as_me:$LINENO: checking for $ac_header" >&5
59856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59858   echo $ECHO_N "(cached) $ECHO_C" >&6
59859 else
59860   eval "$as_ac_Header=$ac_header_preproc"
59861 fi
59862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59864
59865 fi
59866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59867   cat >>confdefs.h <<_ACEOF
59868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59869 _ACEOF
59870  ac_has_wctype_h=yes
59871 else
59872   ac_has_wctype_h=no
59873 fi
59874
59875 done
59876
59877
59878   # Only continue checking if the ISO C99 headers exist and support is on.
59879   if test x"$ac_has_wchar_h" = xyes &&
59880      test x"$ac_has_wctype_h" = xyes &&
59881      test x"$enable_c_mbchar" != xno; then
59882
59883     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
59884     # numeric_limits can instantiate type_traits<wchar_t>
59885     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
59886 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
59887     cat >conftest.$ac_ext <<_ACEOF
59888 #line $LINENO "configure"
59889 /* confdefs.h.  */
59890 _ACEOF
59891 cat confdefs.h >>conftest.$ac_ext
59892 cat >>conftest.$ac_ext <<_ACEOF
59893 /* end confdefs.h.  */
59894 #include <wchar.h>
59895 int
59896 main ()
59897 {
59898 int i = WCHAR_MIN; int j = WCHAR_MAX;
59899   ;
59900   return 0;
59901 }
59902 _ACEOF
59903 rm -f conftest.$ac_objext
59904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59905   (eval $ac_compile) 2>&5
59906   ac_status=$?
59907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59908   (exit $ac_status); } &&
59909          { ac_try='test -s conftest.$ac_objext'
59910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59911   (eval $ac_try) 2>&5
59912   ac_status=$?
59913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59914   (exit $ac_status); }; }; then
59915   has_wchar_minmax=yes
59916 else
59917   echo "$as_me: failed program was:" >&5
59918 sed 's/^/| /' conftest.$ac_ext >&5
59919
59920 has_wchar_minmax=no
59921 fi
59922 rm -f conftest.$ac_objext conftest.$ac_ext
59923     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
59924 echo "${ECHO_T}$has_wchar_minmax" >&6
59925
59926     # Test wchar.h for WEOF, which is what we use to determine whether
59927     # to specialize for char_traits<wchar_t> or not.
59928     echo "$as_me:$LINENO: checking for WEOF" >&5
59929 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
59930     cat >conftest.$ac_ext <<_ACEOF
59931 #line $LINENO "configure"
59932 /* confdefs.h.  */
59933 _ACEOF
59934 cat confdefs.h >>conftest.$ac_ext
59935 cat >>conftest.$ac_ext <<_ACEOF
59936 /* end confdefs.h.  */
59937
59938       #include <wchar.h>
59939       #include <stddef.h>
59940 int
59941 main ()
59942 {
59943 wint_t i = WEOF;
59944   ;
59945   return 0;
59946 }
59947 _ACEOF
59948 rm -f conftest.$ac_objext
59949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59950   (eval $ac_compile) 2>&5
59951   ac_status=$?
59952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59953   (exit $ac_status); } &&
59954          { ac_try='test -s conftest.$ac_objext'
59955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59956   (eval $ac_try) 2>&5
59957   ac_status=$?
59958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59959   (exit $ac_status); }; }; then
59960   has_weof=yes
59961 else
59962   echo "$as_me: failed program was:" >&5
59963 sed 's/^/| /' conftest.$ac_ext >&5
59964
59965 has_weof=no
59966 fi
59967 rm -f conftest.$ac_objext conftest.$ac_ext
59968     echo "$as_me:$LINENO: result: $has_weof" >&5
59969 echo "${ECHO_T}$has_weof" >&6
59970
59971     # Tests for wide character functions used in char_traits<wchar_t>.
59972     ac_wfuncs=yes
59973
59974
59975
59976
59977
59978
59979 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
59980 do
59981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59982 echo "$as_me:$LINENO: checking for $ac_func" >&5
59983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59984 if eval "test \"\${$as_ac_var+set}\" = set"; then
59985   echo $ECHO_N "(cached) $ECHO_C" >&6
59986 else
59987   if test x$gcc_no_link = xyes; then
59988   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59990    { (exit 1); exit 1; }; }
59991 fi
59992 cat >conftest.$ac_ext <<_ACEOF
59993 #line $LINENO "configure"
59994 /* confdefs.h.  */
59995 _ACEOF
59996 cat confdefs.h >>conftest.$ac_ext
59997 cat >>conftest.$ac_ext <<_ACEOF
59998 /* end confdefs.h.  */
59999 /* System header to define __stub macros and hopefully few prototypes,
60000     which can conflict with char $ac_func (); below.
60001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60002     <limits.h> exists even on freestanding compilers.  */
60003 #ifdef __STDC__
60004 # include <limits.h>
60005 #else
60006 # include <assert.h>
60007 #endif
60008 /* Override any gcc2 internal prototype to avoid an error.  */
60009 #ifdef __cplusplus
60010 extern "C"
60011 {
60012 #endif
60013 /* We use char because int might match the return type of a gcc2
60014    builtin and then its argument prototype would still apply.  */
60015 char $ac_func ();
60016 /* The GNU C library defines this for functions which it implements
60017     to always fail with ENOSYS.  Some functions are actually named
60018     something starting with __ and the normal name is an alias.  */
60019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60020 choke me
60021 #else
60022 char (*f) () = $ac_func;
60023 #endif
60024 #ifdef __cplusplus
60025 }
60026 #endif
60027
60028 int
60029 main ()
60030 {
60031 return f != $ac_func;
60032   ;
60033   return 0;
60034 }
60035 _ACEOF
60036 rm -f conftest.$ac_objext conftest$ac_exeext
60037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60038   (eval $ac_link) 2>&5
60039   ac_status=$?
60040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60041   (exit $ac_status); } &&
60042          { ac_try='test -s conftest$ac_exeext'
60043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60044   (eval $ac_try) 2>&5
60045   ac_status=$?
60046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60047   (exit $ac_status); }; }; then
60048   eval "$as_ac_var=yes"
60049 else
60050   echo "$as_me: failed program was:" >&5
60051 sed 's/^/| /' conftest.$ac_ext >&5
60052
60053 eval "$as_ac_var=no"
60054 fi
60055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60056 fi
60057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60059 if test `eval echo '${'$as_ac_var'}'` = yes; then
60060   cat >>confdefs.h <<_ACEOF
60061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60062 _ACEOF
60063
60064 else
60065   ac_wfuncs=no
60066 fi
60067 done
60068
60069
60070     # Checks for names injected into std:: by the c_std headers.
60071
60072
60073
60074
60075
60076
60077
60078
60079
60080
60081
60082
60083
60084
60085
60086
60087
60088
60089
60090
60091
60092
60093
60094
60095
60096
60097
60098
60099
60100
60101
60102
60103
60104
60105
60106
60107
60108
60109
60110
60111
60112
60113
60114
60115
60116
60117 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
60118     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
60119     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
60120     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
60121     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
60122     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
60123 do
60124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60125 echo "$as_me:$LINENO: checking for $ac_func" >&5
60126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60127 if eval "test \"\${$as_ac_var+set}\" = set"; then
60128   echo $ECHO_N "(cached) $ECHO_C" >&6
60129 else
60130   if test x$gcc_no_link = xyes; then
60131   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60133    { (exit 1); exit 1; }; }
60134 fi
60135 cat >conftest.$ac_ext <<_ACEOF
60136 #line $LINENO "configure"
60137 /* confdefs.h.  */
60138 _ACEOF
60139 cat confdefs.h >>conftest.$ac_ext
60140 cat >>conftest.$ac_ext <<_ACEOF
60141 /* end confdefs.h.  */
60142 /* System header to define __stub macros and hopefully few prototypes,
60143     which can conflict with char $ac_func (); below.
60144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60145     <limits.h> exists even on freestanding compilers.  */
60146 #ifdef __STDC__
60147 # include <limits.h>
60148 #else
60149 # include <assert.h>
60150 #endif
60151 /* Override any gcc2 internal prototype to avoid an error.  */
60152 #ifdef __cplusplus
60153 extern "C"
60154 {
60155 #endif
60156 /* We use char because int might match the return type of a gcc2
60157    builtin and then its argument prototype would still apply.  */
60158 char $ac_func ();
60159 /* The GNU C library defines this for functions which it implements
60160     to always fail with ENOSYS.  Some functions are actually named
60161     something starting with __ and the normal name is an alias.  */
60162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60163 choke me
60164 #else
60165 char (*f) () = $ac_func;
60166 #endif
60167 #ifdef __cplusplus
60168 }
60169 #endif
60170
60171 int
60172 main ()
60173 {
60174 return f != $ac_func;
60175   ;
60176   return 0;
60177 }
60178 _ACEOF
60179 rm -f conftest.$ac_objext conftest$ac_exeext
60180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60181   (eval $ac_link) 2>&5
60182   ac_status=$?
60183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60184   (exit $ac_status); } &&
60185          { ac_try='test -s conftest$ac_exeext'
60186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60187   (eval $ac_try) 2>&5
60188   ac_status=$?
60189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60190   (exit $ac_status); }; }; then
60191   eval "$as_ac_var=yes"
60192 else
60193   echo "$as_me: failed program was:" >&5
60194 sed 's/^/| /' conftest.$ac_ext >&5
60195
60196 eval "$as_ac_var=no"
60197 fi
60198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60199 fi
60200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60202 if test `eval echo '${'$as_ac_var'}'` = yes; then
60203   cat >>confdefs.h <<_ACEOF
60204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60205 _ACEOF
60206
60207 else
60208   ac_wfuncs=no
60209 fi
60210 done
60211
60212
60213     # Checks for wide character functions that are not required
60214     # for basic wchar_t support.  Don't disable support if they are missing.
60215     # Injection of these is wrapped with guard macros.
60216
60217
60218
60219
60220
60221 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
60222 do
60223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60224 echo "$as_me:$LINENO: checking for $ac_func" >&5
60225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60226 if eval "test \"\${$as_ac_var+set}\" = set"; then
60227   echo $ECHO_N "(cached) $ECHO_C" >&6
60228 else
60229   if test x$gcc_no_link = xyes; then
60230   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60232    { (exit 1); exit 1; }; }
60233 fi
60234 cat >conftest.$ac_ext <<_ACEOF
60235 #line $LINENO "configure"
60236 /* confdefs.h.  */
60237 _ACEOF
60238 cat confdefs.h >>conftest.$ac_ext
60239 cat >>conftest.$ac_ext <<_ACEOF
60240 /* end confdefs.h.  */
60241 /* System header to define __stub macros and hopefully few prototypes,
60242     which can conflict with char $ac_func (); below.
60243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60244     <limits.h> exists even on freestanding compilers.  */
60245 #ifdef __STDC__
60246 # include <limits.h>
60247 #else
60248 # include <assert.h>
60249 #endif
60250 /* Override any gcc2 internal prototype to avoid an error.  */
60251 #ifdef __cplusplus
60252 extern "C"
60253 {
60254 #endif
60255 /* We use char because int might match the return type of a gcc2
60256    builtin and then its argument prototype would still apply.  */
60257 char $ac_func ();
60258 /* The GNU C library defines this for functions which it implements
60259     to always fail with ENOSYS.  Some functions are actually named
60260     something starting with __ and the normal name is an alias.  */
60261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60262 choke me
60263 #else
60264 char (*f) () = $ac_func;
60265 #endif
60266 #ifdef __cplusplus
60267 }
60268 #endif
60269
60270 int
60271 main ()
60272 {
60273 return f != $ac_func;
60274   ;
60275   return 0;
60276 }
60277 _ACEOF
60278 rm -f conftest.$ac_objext conftest$ac_exeext
60279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60280   (eval $ac_link) 2>&5
60281   ac_status=$?
60282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60283   (exit $ac_status); } &&
60284          { ac_try='test -s conftest$ac_exeext'
60285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60286   (eval $ac_try) 2>&5
60287   ac_status=$?
60288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60289   (exit $ac_status); }; }; then
60290   eval "$as_ac_var=yes"
60291 else
60292   echo "$as_me: failed program was:" >&5
60293 sed 's/^/| /' conftest.$ac_ext >&5
60294
60295 eval "$as_ac_var=no"
60296 fi
60297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60298 fi
60299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60301 if test `eval echo '${'$as_ac_var'}'` = yes; then
60302   cat >>confdefs.h <<_ACEOF
60303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60304 _ACEOF
60305
60306 fi
60307 done
60308
60309
60310     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
60311 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
60312     if test x"$has_weof" = xyes &&
60313        test x"$has_wchar_minmax" = xyes &&
60314        test x"$ac_wfuncs" = xyes;
60315     then
60316       ac_isoC99_wchar_t=yes
60317     else
60318       ac_isoC99_wchar_t=no
60319     fi
60320     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
60321 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
60322
60323     # Use iconv for wchar_t to char conversions. As such, check for
60324     # X/Open Portability Guide, version 2 features (XPG2).
60325     if test "${ac_cv_header_iconv_h+set}" = set; then
60326   echo "$as_me:$LINENO: checking for iconv.h" >&5
60327 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
60328 if test "${ac_cv_header_iconv_h+set}" = set; then
60329   echo $ECHO_N "(cached) $ECHO_C" >&6
60330 fi
60331 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
60332 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
60333 else
60334   # Is the header compilable?
60335 echo "$as_me:$LINENO: checking iconv.h usability" >&5
60336 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
60337 cat >conftest.$ac_ext <<_ACEOF
60338 #line $LINENO "configure"
60339 /* confdefs.h.  */
60340 _ACEOF
60341 cat confdefs.h >>conftest.$ac_ext
60342 cat >>conftest.$ac_ext <<_ACEOF
60343 /* end confdefs.h.  */
60344 $ac_includes_default
60345 #include <iconv.h>
60346 _ACEOF
60347 rm -f conftest.$ac_objext
60348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60349   (eval $ac_compile) 2>&5
60350   ac_status=$?
60351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60352   (exit $ac_status); } &&
60353          { ac_try='test -s conftest.$ac_objext'
60354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60355   (eval $ac_try) 2>&5
60356   ac_status=$?
60357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60358   (exit $ac_status); }; }; then
60359   ac_header_compiler=yes
60360 else
60361   echo "$as_me: failed program was:" >&5
60362 sed 's/^/| /' conftest.$ac_ext >&5
60363
60364 ac_header_compiler=no
60365 fi
60366 rm -f conftest.$ac_objext conftest.$ac_ext
60367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60368 echo "${ECHO_T}$ac_header_compiler" >&6
60369
60370 # Is the header present?
60371 echo "$as_me:$LINENO: checking iconv.h presence" >&5
60372 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
60373 cat >conftest.$ac_ext <<_ACEOF
60374 #line $LINENO "configure"
60375 /* confdefs.h.  */
60376 _ACEOF
60377 cat confdefs.h >>conftest.$ac_ext
60378 cat >>conftest.$ac_ext <<_ACEOF
60379 /* end confdefs.h.  */
60380 #include <iconv.h>
60381 _ACEOF
60382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60384   ac_status=$?
60385   grep -v '^ *+' conftest.er1 >conftest.err
60386   rm -f conftest.er1
60387   cat conftest.err >&5
60388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60389   (exit $ac_status); } >/dev/null; then
60390   if test -s conftest.err; then
60391     ac_cpp_err=$ac_c_preproc_warn_flag
60392   else
60393     ac_cpp_err=
60394   fi
60395 else
60396   ac_cpp_err=yes
60397 fi
60398 if test -z "$ac_cpp_err"; then
60399   ac_header_preproc=yes
60400 else
60401   echo "$as_me: failed program was:" >&5
60402 sed 's/^/| /' conftest.$ac_ext >&5
60403
60404   ac_header_preproc=no
60405 fi
60406 rm -f conftest.err conftest.$ac_ext
60407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60408 echo "${ECHO_T}$ac_header_preproc" >&6
60409
60410 # So?  What about this header?
60411 case $ac_header_compiler:$ac_header_preproc in
60412   yes:no )
60413     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
60414 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
60415     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
60416 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
60417     (
60418       cat <<\_ASBOX
60419 ## ------------------------------------ ##
60420 ## Report this to bug-autoconf@gnu.org. ##
60421 ## ------------------------------------ ##
60422 _ASBOX
60423     ) |
60424       sed "s/^/$as_me: WARNING:     /" >&2
60425     ;;
60426   no:yes )
60427     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
60428 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
60429     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
60430 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
60431     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
60432 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
60433     (
60434       cat <<\_ASBOX
60435 ## ------------------------------------ ##
60436 ## Report this to bug-autoconf@gnu.org. ##
60437 ## ------------------------------------ ##
60438 _ASBOX
60439     ) |
60440       sed "s/^/$as_me: WARNING:     /" >&2
60441     ;;
60442 esac
60443 echo "$as_me:$LINENO: checking for iconv.h" >&5
60444 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
60445 if test "${ac_cv_header_iconv_h+set}" = set; then
60446   echo $ECHO_N "(cached) $ECHO_C" >&6
60447 else
60448   ac_cv_header_iconv_h=$ac_header_preproc
60449 fi
60450 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
60451 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
60452
60453 fi
60454 if test $ac_cv_header_iconv_h = yes; then
60455   ac_has_iconv_h=yes
60456 else
60457   ac_has_iconv_h=no
60458 fi
60459
60460
60461     if test "${ac_cv_header_langinfo_h+set}" = set; then
60462   echo "$as_me:$LINENO: checking for langinfo.h" >&5
60463 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60464 if test "${ac_cv_header_langinfo_h+set}" = set; then
60465   echo $ECHO_N "(cached) $ECHO_C" >&6
60466 fi
60467 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60468 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60469 else
60470   # Is the header compilable?
60471 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
60472 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
60473 cat >conftest.$ac_ext <<_ACEOF
60474 #line $LINENO "configure"
60475 /* confdefs.h.  */
60476 _ACEOF
60477 cat confdefs.h >>conftest.$ac_ext
60478 cat >>conftest.$ac_ext <<_ACEOF
60479 /* end confdefs.h.  */
60480 $ac_includes_default
60481 #include <langinfo.h>
60482 _ACEOF
60483 rm -f conftest.$ac_objext
60484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60485   (eval $ac_compile) 2>&5
60486   ac_status=$?
60487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60488   (exit $ac_status); } &&
60489          { ac_try='test -s conftest.$ac_objext'
60490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60491   (eval $ac_try) 2>&5
60492   ac_status=$?
60493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60494   (exit $ac_status); }; }; then
60495   ac_header_compiler=yes
60496 else
60497   echo "$as_me: failed program was:" >&5
60498 sed 's/^/| /' conftest.$ac_ext >&5
60499
60500 ac_header_compiler=no
60501 fi
60502 rm -f conftest.$ac_objext conftest.$ac_ext
60503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60504 echo "${ECHO_T}$ac_header_compiler" >&6
60505
60506 # Is the header present?
60507 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
60508 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
60509 cat >conftest.$ac_ext <<_ACEOF
60510 #line $LINENO "configure"
60511 /* confdefs.h.  */
60512 _ACEOF
60513 cat confdefs.h >>conftest.$ac_ext
60514 cat >>conftest.$ac_ext <<_ACEOF
60515 /* end confdefs.h.  */
60516 #include <langinfo.h>
60517 _ACEOF
60518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60520   ac_status=$?
60521   grep -v '^ *+' conftest.er1 >conftest.err
60522   rm -f conftest.er1
60523   cat conftest.err >&5
60524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60525   (exit $ac_status); } >/dev/null; then
60526   if test -s conftest.err; then
60527     ac_cpp_err=$ac_c_preproc_warn_flag
60528   else
60529     ac_cpp_err=
60530   fi
60531 else
60532   ac_cpp_err=yes
60533 fi
60534 if test -z "$ac_cpp_err"; then
60535   ac_header_preproc=yes
60536 else
60537   echo "$as_me: failed program was:" >&5
60538 sed 's/^/| /' conftest.$ac_ext >&5
60539
60540   ac_header_preproc=no
60541 fi
60542 rm -f conftest.err conftest.$ac_ext
60543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60544 echo "${ECHO_T}$ac_header_preproc" >&6
60545
60546 # So?  What about this header?
60547 case $ac_header_compiler:$ac_header_preproc in
60548   yes:no )
60549     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
60550 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
60551     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
60552 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
60553     (
60554       cat <<\_ASBOX
60555 ## ------------------------------------ ##
60556 ## Report this to bug-autoconf@gnu.org. ##
60557 ## ------------------------------------ ##
60558 _ASBOX
60559     ) |
60560       sed "s/^/$as_me: WARNING:     /" >&2
60561     ;;
60562   no:yes )
60563     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
60564 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
60565     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
60566 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
60567     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
60568 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
60569     (
60570       cat <<\_ASBOX
60571 ## ------------------------------------ ##
60572 ## Report this to bug-autoconf@gnu.org. ##
60573 ## ------------------------------------ ##
60574 _ASBOX
60575     ) |
60576       sed "s/^/$as_me: WARNING:     /" >&2
60577     ;;
60578 esac
60579 echo "$as_me:$LINENO: checking for langinfo.h" >&5
60580 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60581 if test "${ac_cv_header_langinfo_h+set}" = set; then
60582   echo $ECHO_N "(cached) $ECHO_C" >&6
60583 else
60584   ac_cv_header_langinfo_h=$ac_header_preproc
60585 fi
60586 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60587 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60588
60589 fi
60590 if test $ac_cv_header_langinfo_h = yes; then
60591   ac_has_langinfo_h=yes
60592 else
60593   ac_has_langinfo_h=no
60594 fi
60595
60596
60597
60598     # Check for existence of libiconv.a providing XPG2 wchar_t support.
60599     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
60600 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
60601 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
60602   echo $ECHO_N "(cached) $ECHO_C" >&6
60603 else
60604   ac_check_lib_save_LIBS=$LIBS
60605 LIBS="-liconv  $LIBS"
60606 if test x$gcc_no_link = xyes; then
60607   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60608 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60609    { (exit 1); exit 1; }; }
60610 fi
60611 cat >conftest.$ac_ext <<_ACEOF
60612 #line $LINENO "configure"
60613 /* confdefs.h.  */
60614 _ACEOF
60615 cat confdefs.h >>conftest.$ac_ext
60616 cat >>conftest.$ac_ext <<_ACEOF
60617 /* end confdefs.h.  */
60618
60619 /* Override any gcc2 internal prototype to avoid an error.  */
60620 #ifdef __cplusplus
60621 extern "C"
60622 #endif
60623 /* We use char because int might match the return type of a gcc2
60624    builtin and then its argument prototype would still apply.  */
60625 char iconv ();
60626 int
60627 main ()
60628 {
60629 iconv ();
60630   ;
60631   return 0;
60632 }
60633 _ACEOF
60634 rm -f conftest.$ac_objext conftest$ac_exeext
60635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60636   (eval $ac_link) 2>&5
60637   ac_status=$?
60638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60639   (exit $ac_status); } &&
60640          { ac_try='test -s conftest$ac_exeext'
60641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60642   (eval $ac_try) 2>&5
60643   ac_status=$?
60644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60645   (exit $ac_status); }; }; then
60646   ac_cv_lib_iconv_iconv=yes
60647 else
60648   echo "$as_me: failed program was:" >&5
60649 sed 's/^/| /' conftest.$ac_ext >&5
60650
60651 ac_cv_lib_iconv_iconv=no
60652 fi
60653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60654 LIBS=$ac_check_lib_save_LIBS
60655 fi
60656 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
60657 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
60658 if test $ac_cv_lib_iconv_iconv = yes; then
60659   libiconv="-liconv"
60660 fi
60661
60662     ac_save_LIBS="$LIBS"
60663     LIBS="$LIBS $libiconv"
60664
60665
60666
60667
60668
60669 for ac_func in iconv_open iconv_close iconv nl_langinfo
60670 do
60671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60672 echo "$as_me:$LINENO: checking for $ac_func" >&5
60673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60674 if eval "test \"\${$as_ac_var+set}\" = set"; then
60675   echo $ECHO_N "(cached) $ECHO_C" >&6
60676 else
60677   if test x$gcc_no_link = xyes; then
60678   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60679 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60680    { (exit 1); exit 1; }; }
60681 fi
60682 cat >conftest.$ac_ext <<_ACEOF
60683 #line $LINENO "configure"
60684 /* confdefs.h.  */
60685 _ACEOF
60686 cat confdefs.h >>conftest.$ac_ext
60687 cat >>conftest.$ac_ext <<_ACEOF
60688 /* end confdefs.h.  */
60689 /* System header to define __stub macros and hopefully few prototypes,
60690     which can conflict with char $ac_func (); below.
60691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60692     <limits.h> exists even on freestanding compilers.  */
60693 #ifdef __STDC__
60694 # include <limits.h>
60695 #else
60696 # include <assert.h>
60697 #endif
60698 /* Override any gcc2 internal prototype to avoid an error.  */
60699 #ifdef __cplusplus
60700 extern "C"
60701 {
60702 #endif
60703 /* We use char because int might match the return type of a gcc2
60704    builtin and then its argument prototype would still apply.  */
60705 char $ac_func ();
60706 /* The GNU C library defines this for functions which it implements
60707     to always fail with ENOSYS.  Some functions are actually named
60708     something starting with __ and the normal name is an alias.  */
60709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60710 choke me
60711 #else
60712 char (*f) () = $ac_func;
60713 #endif
60714 #ifdef __cplusplus
60715 }
60716 #endif
60717
60718 int
60719 main ()
60720 {
60721 return f != $ac_func;
60722   ;
60723   return 0;
60724 }
60725 _ACEOF
60726 rm -f conftest.$ac_objext conftest$ac_exeext
60727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60728   (eval $ac_link) 2>&5
60729   ac_status=$?
60730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60731   (exit $ac_status); } &&
60732          { ac_try='test -s conftest$ac_exeext'
60733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60734   (eval $ac_try) 2>&5
60735   ac_status=$?
60736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60737   (exit $ac_status); }; }; then
60738   eval "$as_ac_var=yes"
60739 else
60740   echo "$as_me: failed program was:" >&5
60741 sed 's/^/| /' conftest.$ac_ext >&5
60742
60743 eval "$as_ac_var=no"
60744 fi
60745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
60746 fi
60747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60749 if test `eval echo '${'$as_ac_var'}'` = yes; then
60750   cat >>confdefs.h <<_ACEOF
60751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60752 _ACEOF
60753  ac_XPG2funcs=yes
60754 else
60755   ac_XPG2funcs=no
60756 fi
60757 done
60758
60759
60760     LIBS="$ac_save_LIBS"
60761
60762     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
60763 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
60764     if test x"$ac_has_iconv_h" = xyes &&
60765        test x"$ac_has_langinfo_h" = xyes &&
60766        test x"$ac_XPG2funcs" = xyes;
60767     then
60768       ac_XPG2_wchar_t=yes
60769     else
60770       ac_XPG2_wchar_t=no
60771     fi
60772     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
60773 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
60774
60775     # At the moment, only enable wchar_t specializations if all the
60776     # above support is present.
60777     if test x"$ac_isoC99_wchar_t" = xyes &&
60778        test x"$ac_XPG2_wchar_t" = xyes;
60779     then
60780       cat >>confdefs.h <<\_ACEOF
60781 #define _GLIBCXX_USE_WCHAR_T 1
60782 _ACEOF
60783
60784       enable_wchar_t=yes
60785     fi
60786   fi
60787   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
60788 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
60789   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
60790 echo "${ECHO_T}$enable_wchar_t" >&6
60791
60792          # All of the dependencies for wide character support are here, so
60793          # turn it on.  This requires some syncronization with the
60794          # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
60795          cat >>confdefs.h <<\_ACEOF
60796 #define _GLIBCXX_USE_WCHAR_T 1
60797 _ACEOF
60798
60799          # Are these tested for even when cross?
60800          cat >>confdefs.h <<\_ACEOF
60801 #define HAVE_FLOAT_H 1
60802 _ACEOF
60803
60804          cat >>confdefs.h <<\_ACEOF
60805 #define HAVE_IEEEFP_H 1
60806 _ACEOF
60807
60808          cat >>confdefs.h <<\_ACEOF
60809 #define HAVE_INTTYPES_H 1
60810 _ACEOF
60811
60812          cat >>confdefs.h <<\_ACEOF
60813 #define HAVE_LOCALE_H 1
60814 _ACEOF
60815
60816          cat >>confdefs.h <<\_ACEOF
60817 #define HAVE_NAN_H 1
60818 _ACEOF
60819
60820          cat >>confdefs.h <<\_ACEOF
60821 #define HAVE_SYS_FILIO_H 1
60822 _ACEOF
60823
60824          cat >>confdefs.h <<\_ACEOF
60825 #define HAVE_SYS_IOCTL_H 1
60826 _ACEOF
60827
60828          cat >>confdefs.h <<\_ACEOF
60829 #define HAVE_SYS_ISA_DEFS_H 1
60830 _ACEOF
60831
60832          cat >>confdefs.h <<\_ACEOF
60833 #define HAVE_SYS_RESOURCE_H 1
60834 _ACEOF
60835
60836          cat >>confdefs.h <<\_ACEOF
60837 #define HAVE_SYS_TIME_H 1
60838 _ACEOF
60839
60840          cat >>confdefs.h <<\_ACEOF
60841 #define HAVE_SYS_TYPES_H 1
60842 _ACEOF
60843
60844          cat >>confdefs.h <<\_ACEOF
60845 #define HAVE_UNISTD_H 1
60846 _ACEOF
60847
60848          cat >>confdefs.h <<\_ACEOF
60849 #define HAVE_WCHAR_H 1
60850 _ACEOF
60851
60852          cat >>confdefs.h <<\_ACEOF
60853 #define HAVE_WCTYPE_H 1
60854 _ACEOF
60855
60856          cat >>confdefs.h <<\_ACEOF
60857 #define HAVE_LIBM 1
60858 _ACEOF
60859
60860         ;;
60861     esac
60862     case "$target" in
60863       sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
60864         # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
60865         cat >>confdefs.h <<\_ACEOF
60866 #define HAVE___BUILTIN_ABS 1
60867 _ACEOF
60868
60869         cat >>confdefs.h <<\_ACEOF
60870 #define HAVE___BUILTIN_LABS 1
60871 _ACEOF
60872
60873         cat >>confdefs.h <<\_ACEOF
60874 #define HAVE___BUILTIN_FABS 1
60875 _ACEOF
60876
60877         cat >>confdefs.h <<\_ACEOF
60878 #define HAVE___BUILTIN_FABSF 1
60879 _ACEOF
60880
60881         cat >>confdefs.h <<\_ACEOF
60882 #define HAVE___BUILTIN_FABSL 1
60883 _ACEOF
60884
60885         cat >>confdefs.h <<\_ACEOF
60886 #define HAVE___BUILTIN_COS 1
60887 _ACEOF
60888
60889         cat >>confdefs.h <<\_ACEOF
60890 #define HAVE___BUILTIN_COSF 1
60891 _ACEOF
60892
60893         cat >>confdefs.h <<\_ACEOF
60894 #define HAVE___BUILTIN_SIN 1
60895 _ACEOF
60896
60897         cat >>confdefs.h <<\_ACEOF
60898 #define HAVE___BUILTIN_SINF 1
60899 _ACEOF
60900
60901        ;;
60902     esac
60903     cat >>confdefs.h <<\_ACEOF
60904 #define HAVE_STRTOF 1
60905 _ACEOF
60906
60907     cat >>confdefs.h <<\_ACEOF
60908 #define HAVE_STRTOLD 1
60909 _ACEOF
60910
60911     cat >>confdefs.h <<\_ACEOF
60912 #define HAVE_MMAP 1
60913 _ACEOF
60914
60915     cat >>confdefs.h <<\_ACEOF
60916 #define HAVE_COPYSIGN 1
60917 _ACEOF
60918
60919     cat >>confdefs.h <<\_ACEOF
60920 #define HAVE_ISNAN 1
60921 _ACEOF
60922
60923     cat >>confdefs.h <<\_ACEOF
60924 #define HAVE_ISNANF 1
60925 _ACEOF
60926
60927     cat >>confdefs.h <<\_ACEOF
60928 #define HAVE_MODFF 1
60929 _ACEOF
60930
60931     cat >>confdefs.h <<\_ACEOF
60932 #define HAVE_HYPOT 1
60933 _ACEOF
60934
60935     ;;
60936   *-tpf)
60937
60938
60939
60940
60941
60942
60943
60944
60945 for ac_header in nan.h endian.h machine/endian.h  \
60946       sys/param.h sys/types.h locale.h float.h inttypes.h
60947 do
60948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60950   echo "$as_me:$LINENO: checking for $ac_header" >&5
60951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60953   echo $ECHO_N "(cached) $ECHO_C" >&6
60954 fi
60955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60957 else
60958   # Is the header compilable?
60959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60961 cat >conftest.$ac_ext <<_ACEOF
60962 #line $LINENO "configure"
60963 /* confdefs.h.  */
60964 _ACEOF
60965 cat confdefs.h >>conftest.$ac_ext
60966 cat >>conftest.$ac_ext <<_ACEOF
60967 /* end confdefs.h.  */
60968 $ac_includes_default
60969 #include <$ac_header>
60970 _ACEOF
60971 rm -f conftest.$ac_objext
60972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60973   (eval $ac_compile) 2>&5
60974   ac_status=$?
60975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60976   (exit $ac_status); } &&
60977          { ac_try='test -s conftest.$ac_objext'
60978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60979   (eval $ac_try) 2>&5
60980   ac_status=$?
60981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60982   (exit $ac_status); }; }; then
60983   ac_header_compiler=yes
60984 else
60985   echo "$as_me: failed program was:" >&5
60986 sed 's/^/| /' conftest.$ac_ext >&5
60987
60988 ac_header_compiler=no
60989 fi
60990 rm -f conftest.$ac_objext conftest.$ac_ext
60991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60992 echo "${ECHO_T}$ac_header_compiler" >&6
60993
60994 # Is the header present?
60995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60997 cat >conftest.$ac_ext <<_ACEOF
60998 #line $LINENO "configure"
60999 /* confdefs.h.  */
61000 _ACEOF
61001 cat confdefs.h >>conftest.$ac_ext
61002 cat >>conftest.$ac_ext <<_ACEOF
61003 /* end confdefs.h.  */
61004 #include <$ac_header>
61005 _ACEOF
61006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61008   ac_status=$?
61009   grep -v '^ *+' conftest.er1 >conftest.err
61010   rm -f conftest.er1
61011   cat conftest.err >&5
61012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61013   (exit $ac_status); } >/dev/null; then
61014   if test -s conftest.err; then
61015     ac_cpp_err=$ac_c_preproc_warn_flag
61016   else
61017     ac_cpp_err=
61018   fi
61019 else
61020   ac_cpp_err=yes
61021 fi
61022 if test -z "$ac_cpp_err"; then
61023   ac_header_preproc=yes
61024 else
61025   echo "$as_me: failed program was:" >&5
61026 sed 's/^/| /' conftest.$ac_ext >&5
61027
61028   ac_header_preproc=no
61029 fi
61030 rm -f conftest.err conftest.$ac_ext
61031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61032 echo "${ECHO_T}$ac_header_preproc" >&6
61033
61034 # So?  What about this header?
61035 case $ac_header_compiler:$ac_header_preproc in
61036   yes:no )
61037     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61041     (
61042       cat <<\_ASBOX
61043 ## ------------------------------------ ##
61044 ## Report this to bug-autoconf@gnu.org. ##
61045 ## ------------------------------------ ##
61046 _ASBOX
61047     ) |
61048       sed "s/^/$as_me: WARNING:     /" >&2
61049     ;;
61050   no:yes )
61051     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61053     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61057     (
61058       cat <<\_ASBOX
61059 ## ------------------------------------ ##
61060 ## Report this to bug-autoconf@gnu.org. ##
61061 ## ------------------------------------ ##
61062 _ASBOX
61063     ) |
61064       sed "s/^/$as_me: WARNING:     /" >&2
61065     ;;
61066 esac
61067 echo "$as_me:$LINENO: checking for $ac_header" >&5
61068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61070   echo $ECHO_N "(cached) $ECHO_C" >&6
61071 else
61072   eval "$as_ac_Header=$ac_header_preproc"
61073 fi
61074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61076
61077 fi
61078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61079   cat >>confdefs.h <<_ACEOF
61080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61081 _ACEOF
61082
61083 fi
61084
61085 done
61086
61087     SECTION_FLAGS='-ffunction-sections -fdata-sections'
61088
61089
61090   # If we're not using GNU ld, then there's no point in even trying these
61091   # tests.  Check for that first.  We should have already tested for gld
61092   # by now (in libtool), but require it now just to be safe...
61093   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
61094   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
61095
61096
61097
61098   # The name set by libtool depends on the version of libtool.  Shame on us
61099   # for depending on an impl detail, but c'est la vie.  Older versions used
61100   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
61101   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
61102   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
61103   # set (hence we're using an older libtool), then set it.
61104   if test x${with_gnu_ld+set} != xset; then
61105     if test x${ac_cv_prog_gnu_ld+set} != xset; then
61106       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
61107       with_gnu_ld=no
61108     else
61109       with_gnu_ld=$ac_cv_prog_gnu_ld
61110     fi
61111   fi
61112
61113   # Start by getting the version number.  I think the libtool test already
61114   # does some of this, but throws away the result.
61115
61116   ldver=`$LD --version 2>/dev/null | head -1 | \
61117          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
61118
61119   glibcxx_gnu_ld_version=`echo $ldver | \
61120          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
61121
61122   # Set --gc-sections.
61123   if test "$with_gnu_ld" = "notbroken"; then
61124     # GNU ld it is!  Joy and bunny rabbits!
61125
61126     # All these tests are for C++; save the language and the compiler flags.
61127     # Need to do this so that g++ won't try to link in libstdc++
61128     ac_test_CFLAGS="${CFLAGS+set}"
61129     ac_save_CFLAGS="$CFLAGS"
61130     CFLAGS='-x c++  -Wl,--gc-sections'
61131
61132     # Check for -Wl,--gc-sections
61133     # XXX This test is broken at the moment, as symbols required for linking
61134     # are now in libsupc++ (not built yet).  In addition, this test has
61135     # cored on solaris in the past.  In addition, --gc-sections doesn't
61136     # really work at the moment (keeps on discarding used sections, first
61137     # .eh_frame and now some of the glibc sections for iconv).
61138     # Bzzzzt.  Thanks for playing, maybe next time.
61139     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
61140 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
61141     if test "$cross_compiling" = yes; then
61142   ac_sectionLDflags=yes
61143 else
61144   cat >conftest.$ac_ext <<_ACEOF
61145 #line $LINENO "configure"
61146 /* confdefs.h.  */
61147 _ACEOF
61148 cat confdefs.h >>conftest.$ac_ext
61149 cat >>conftest.$ac_ext <<_ACEOF
61150 /* end confdefs.h.  */
61151
61152      int main(void)
61153      {
61154        try { throw 1; }
61155        catch (...) { };
61156        return 0;
61157      }
61158
61159 _ACEOF
61160 rm -f conftest$ac_exeext
61161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61162   (eval $ac_link) 2>&5
61163   ac_status=$?
61164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61167   (eval $ac_try) 2>&5
61168   ac_status=$?
61169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61170   (exit $ac_status); }; }; then
61171   ac_sectionLDflags=yes
61172 else
61173   echo "$as_me: program exited with status $ac_status" >&5
61174 echo "$as_me: failed program was:" >&5
61175 sed 's/^/| /' conftest.$ac_ext >&5
61176
61177 ( exit $ac_status )
61178 ac_sectionLDflags=no
61179 fi
61180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61181 fi
61182     if test "$ac_test_CFLAGS" = set; then
61183       CFLAGS="$ac_save_CFLAGS"
61184     else
61185       # this is the suspicious part
61186       CFLAGS=''
61187     fi
61188     if test "$ac_sectionLDflags" = "yes"; then
61189       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
61190     fi
61191     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
61192 echo "${ECHO_T}$ac_sectionLDflags" >&6
61193   fi
61194
61195   # Set linker optimization flags.
61196   if test x"$with_gnu_ld" = x"yes"; then
61197     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
61198   fi
61199
61200
61201
61202
61203
61204
61205 echo "$as_me:$LINENO: checking for main in -lm" >&5
61206 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
61207 if test "${ac_cv_lib_m_main+set}" = set; then
61208   echo $ECHO_N "(cached) $ECHO_C" >&6
61209 else
61210   ac_check_lib_save_LIBS=$LIBS
61211 LIBS="-lm  $LIBS"
61212 if test x$gcc_no_link = xyes; then
61213   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61215    { (exit 1); exit 1; }; }
61216 fi
61217 cat >conftest.$ac_ext <<_ACEOF
61218 #line $LINENO "configure"
61219 /* confdefs.h.  */
61220 _ACEOF
61221 cat confdefs.h >>conftest.$ac_ext
61222 cat >>conftest.$ac_ext <<_ACEOF
61223 /* end confdefs.h.  */
61224
61225
61226 int
61227 main ()
61228 {
61229 main ();
61230   ;
61231   return 0;
61232 }
61233 _ACEOF
61234 rm -f conftest.$ac_objext conftest$ac_exeext
61235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61236   (eval $ac_link) 2>&5
61237   ac_status=$?
61238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61239   (exit $ac_status); } &&
61240          { ac_try='test -s conftest$ac_exeext'
61241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61242   (eval $ac_try) 2>&5
61243   ac_status=$?
61244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61245   (exit $ac_status); }; }; then
61246   ac_cv_lib_m_main=yes
61247 else
61248   echo "$as_me: failed program was:" >&5
61249 sed 's/^/| /' conftest.$ac_ext >&5
61250
61251 ac_cv_lib_m_main=no
61252 fi
61253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
61254 LIBS=$ac_check_lib_save_LIBS
61255 fi
61256 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
61257 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
61258 if test $ac_cv_lib_m_main = yes; then
61259   cat >>confdefs.h <<_ACEOF
61260 #define HAVE_LIBM 1
61261 _ACEOF
61262
61263   LIBS="-lm $LIBS"
61264
61265 fi
61266
61267
61268 for ac_func in copysignf
61269 do
61270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61271 echo "$as_me:$LINENO: checking for $ac_func" >&5
61272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61273 if eval "test \"\${$as_ac_var+set}\" = set"; then
61274   echo $ECHO_N "(cached) $ECHO_C" >&6
61275 else
61276   if test x$gcc_no_link = xyes; then
61277   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61278 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61279    { (exit 1); exit 1; }; }
61280 fi
61281 cat >conftest.$ac_ext <<_ACEOF
61282 #line $LINENO "configure"
61283 /* confdefs.h.  */
61284 _ACEOF
61285 cat confdefs.h >>conftest.$ac_ext
61286 cat >>conftest.$ac_ext <<_ACEOF
61287 /* end confdefs.h.  */
61288 /* System header to define __stub macros and hopefully few prototypes,
61289     which can conflict with char $ac_func (); below.
61290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61291     <limits.h> exists even on freestanding compilers.  */
61292 #ifdef __STDC__
61293 # include <limits.h>
61294 #else
61295 # include <assert.h>
61296 #endif
61297 /* Override any gcc2 internal prototype to avoid an error.  */
61298 #ifdef __cplusplus
61299 extern "C"
61300 {
61301 #endif
61302 /* We use char because int might match the return type of a gcc2
61303    builtin and then its argument prototype would still apply.  */
61304 char $ac_func ();
61305 /* The GNU C library defines this for functions which it implements
61306     to always fail with ENOSYS.  Some functions are actually named
61307     something starting with __ and the normal name is an alias.  */
61308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61309 choke me
61310 #else
61311 char (*f) () = $ac_func;
61312 #endif
61313 #ifdef __cplusplus
61314 }
61315 #endif
61316
61317 int
61318 main ()
61319 {
61320 return f != $ac_func;
61321   ;
61322   return 0;
61323 }
61324 _ACEOF
61325 rm -f conftest.$ac_objext conftest$ac_exeext
61326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61327   (eval $ac_link) 2>&5
61328   ac_status=$?
61329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61330   (exit $ac_status); } &&
61331          { ac_try='test -s conftest$ac_exeext'
61332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61333   (eval $ac_try) 2>&5
61334   ac_status=$?
61335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61336   (exit $ac_status); }; }; then
61337   eval "$as_ac_var=yes"
61338 else
61339   echo "$as_me: failed program was:" >&5
61340 sed 's/^/| /' conftest.$ac_ext >&5
61341
61342 eval "$as_ac_var=no"
61343 fi
61344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
61345 fi
61346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61348 if test `eval echo '${'$as_ac_var'}'` = yes; then
61349   cat >>confdefs.h <<_ACEOF
61350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61351 _ACEOF
61352
61353 else
61354   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
61355 fi
61356 done
61357
61358
61359
61360 for ac_func in __signbit
61361 do
61362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61363 echo "$as_me:$LINENO: checking for $ac_func" >&5
61364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61365 if eval "test \"\${$as_ac_var+set}\" = set"; then
61366   echo $ECHO_N "(cached) $ECHO_C" >&6
61367 else
61368   if test x$gcc_no_link = xyes; then
61369   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61370 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61371    { (exit 1); exit 1; }; }
61372 fi
61373 cat >conftest.$ac_ext <<_ACEOF
61374 #line $LINENO "configure"
61375 /* confdefs.h.  */
61376 _ACEOF
61377 cat confdefs.h >>conftest.$ac_ext
61378 cat >>conftest.$ac_ext <<_ACEOF
61379 /* end confdefs.h.  */
61380 /* System header to define __stub macros and hopefully few prototypes,
61381     which can conflict with char $ac_func (); below.
61382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61383     <limits.h> exists even on freestanding compilers.  */
61384 #ifdef __STDC__
61385 # include <limits.h>
61386 #else
61387 # include <assert.h>
61388 #endif
61389 /* Override any gcc2 internal prototype to avoid an error.  */
61390 #ifdef __cplusplus
61391 extern "C"
61392 {
61393 #endif
61394 /* We use char because int might match the return type of a gcc2
61395    builtin and then its argument prototype would still apply.  */
61396 char $ac_func ();
61397 /* The GNU C library defines this for functions which it implements
61398     to always fail with ENOSYS.  Some functions are actually named
61399     something starting with __ and the normal name is an alias.  */
61400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61401 choke me
61402 #else
61403 char (*f) () = $ac_func;
61404 #endif
61405 #ifdef __cplusplus
61406 }
61407 #endif
61408
61409 int
61410 main ()
61411 {
61412 return f != $ac_func;
61413   ;
61414   return 0;
61415 }
61416 _ACEOF
61417 rm -f conftest.$ac_objext conftest$ac_exeext
61418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61419   (eval $ac_link) 2>&5
61420   ac_status=$?
61421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61422   (exit $ac_status); } &&
61423          { ac_try='test -s conftest$ac_exeext'
61424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61425   (eval $ac_try) 2>&5
61426   ac_status=$?
61427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61428   (exit $ac_status); }; }; then
61429   eval "$as_ac_var=yes"
61430 else
61431   echo "$as_me: failed program was:" >&5
61432 sed 's/^/| /' conftest.$ac_ext >&5
61433
61434 eval "$as_ac_var=no"
61435 fi
61436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
61437 fi
61438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61440 if test `eval echo '${'$as_ac_var'}'` = yes; then
61441   cat >>confdefs.h <<_ACEOF
61442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61443 _ACEOF
61444
61445 else
61446   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
61447 fi
61448 done
61449
61450
61451 for ac_func in __signbitf
61452 do
61453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61454 echo "$as_me:$LINENO: checking for $ac_func" >&5
61455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61456 if eval "test \"\${$as_ac_var+set}\" = set"; then
61457   echo $ECHO_N "(cached) $ECHO_C" >&6
61458 else
61459   if test x$gcc_no_link = xyes; then
61460   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61462    { (exit 1); exit 1; }; }
61463 fi
61464 cat >conftest.$ac_ext <<_ACEOF
61465 #line $LINENO "configure"
61466 /* confdefs.h.  */
61467 _ACEOF
61468 cat confdefs.h >>conftest.$ac_ext
61469 cat >>conftest.$ac_ext <<_ACEOF
61470 /* end confdefs.h.  */
61471 /* System header to define __stub macros and hopefully few prototypes,
61472     which can conflict with char $ac_func (); below.
61473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61474     <limits.h> exists even on freestanding compilers.  */
61475 #ifdef __STDC__
61476 # include <limits.h>
61477 #else
61478 # include <assert.h>
61479 #endif
61480 /* Override any gcc2 internal prototype to avoid an error.  */
61481 #ifdef __cplusplus
61482 extern "C"
61483 {
61484 #endif
61485 /* We use char because int might match the return type of a gcc2
61486    builtin and then its argument prototype would still apply.  */
61487 char $ac_func ();
61488 /* The GNU C library defines this for functions which it implements
61489     to always fail with ENOSYS.  Some functions are actually named
61490     something starting with __ and the normal name is an alias.  */
61491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61492 choke me
61493 #else
61494 char (*f) () = $ac_func;
61495 #endif
61496 #ifdef __cplusplus
61497 }
61498 #endif
61499
61500 int
61501 main ()
61502 {
61503 return f != $ac_func;
61504   ;
61505   return 0;
61506 }
61507 _ACEOF
61508 rm -f conftest.$ac_objext conftest$ac_exeext
61509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61510   (eval $ac_link) 2>&5
61511   ac_status=$?
61512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61513   (exit $ac_status); } &&
61514          { ac_try='test -s conftest$ac_exeext'
61515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61516   (eval $ac_try) 2>&5
61517   ac_status=$?
61518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61519   (exit $ac_status); }; }; then
61520   eval "$as_ac_var=yes"
61521 else
61522   echo "$as_me: failed program was:" >&5
61523 sed 's/^/| /' conftest.$ac_ext >&5
61524
61525 eval "$as_ac_var=no"
61526 fi
61527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
61528 fi
61529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61531 if test `eval echo '${'$as_ac_var'}'` = yes; then
61532   cat >>confdefs.h <<_ACEOF
61533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61534 _ACEOF
61535
61536 else
61537   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
61538 fi
61539 done
61540
61541
61542           if test x$ac_cv_func_copysignl = x"yes"; then
61543
61544 for ac_func in __signbitl
61545 do
61546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61547 echo "$as_me:$LINENO: checking for $ac_func" >&5
61548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61549 if eval "test \"\${$as_ac_var+set}\" = set"; then
61550   echo $ECHO_N "(cached) $ECHO_C" >&6
61551 else
61552   if test x$gcc_no_link = xyes; then
61553   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61554 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61555    { (exit 1); exit 1; }; }
61556 fi
61557 cat >conftest.$ac_ext <<_ACEOF
61558 #line $LINENO "configure"
61559 /* confdefs.h.  */
61560 _ACEOF
61561 cat confdefs.h >>conftest.$ac_ext
61562 cat >>conftest.$ac_ext <<_ACEOF
61563 /* end confdefs.h.  */
61564 /* System header to define __stub macros and hopefully few prototypes,
61565     which can conflict with char $ac_func (); below.
61566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61567     <limits.h> exists even on freestanding compilers.  */
61568 #ifdef __STDC__
61569 # include <limits.h>
61570 #else
61571 # include <assert.h>
61572 #endif
61573 /* Override any gcc2 internal prototype to avoid an error.  */
61574 #ifdef __cplusplus
61575 extern "C"
61576 {
61577 #endif
61578 /* We use char because int might match the return type of a gcc2
61579    builtin and then its argument prototype would still apply.  */
61580 char $ac_func ();
61581 /* The GNU C library defines this for functions which it implements
61582     to always fail with ENOSYS.  Some functions are actually named
61583     something starting with __ and the normal name is an alias.  */
61584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61585 choke me
61586 #else
61587 char (*f) () = $ac_func;
61588 #endif
61589 #ifdef __cplusplus
61590 }
61591 #endif
61592
61593 int
61594 main ()
61595 {
61596 return f != $ac_func;
61597   ;
61598   return 0;
61599 }
61600 _ACEOF
61601 rm -f conftest.$ac_objext conftest$ac_exeext
61602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61603   (eval $ac_link) 2>&5
61604   ac_status=$?
61605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61606   (exit $ac_status); } &&
61607          { ac_try='test -s conftest$ac_exeext'
61608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61609   (eval $ac_try) 2>&5
61610   ac_status=$?
61611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61612   (exit $ac_status); }; }; then
61613   eval "$as_ac_var=yes"
61614 else
61615   echo "$as_me: failed program was:" >&5
61616 sed 's/^/| /' conftest.$ac_ext >&5
61617
61618 eval "$as_ac_var=no"
61619 fi
61620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
61621 fi
61622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61624 if test `eval echo '${'$as_ac_var'}'` = yes; then
61625   cat >>confdefs.h <<_ACEOF
61626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61627 _ACEOF
61628
61629 else
61630   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
61631 fi
61632 done
61633
61634   fi
61635
61636   # XXX Review this.  Nothing uses it.
61637   if test -n "$LIBMATHOBJS"; then
61638     need_libmath=yes
61639   fi
61640
61641
61642
61643   # Test wchar.h for mbstate_t, which is needed for char_traits and
61644   # others even if wchar_t support is not on.
61645   echo "$as_me:$LINENO: checking for mbstate_t" >&5
61646 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
61647   cat >conftest.$ac_ext <<_ACEOF
61648 #line $LINENO "configure"
61649 /* confdefs.h.  */
61650 _ACEOF
61651 cat confdefs.h >>conftest.$ac_ext
61652 cat >>conftest.$ac_ext <<_ACEOF
61653 /* end confdefs.h.  */
61654 #include <wchar.h>
61655 int
61656 main ()
61657 {
61658 mbstate_t teststate;
61659   ;
61660   return 0;
61661 }
61662 _ACEOF
61663 rm -f conftest.$ac_objext
61664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61665   (eval $ac_compile) 2>&5
61666   ac_status=$?
61667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61668   (exit $ac_status); } &&
61669          { ac_try='test -s conftest.$ac_objext'
61670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61671   (eval $ac_try) 2>&5
61672   ac_status=$?
61673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61674   (exit $ac_status); }; }; then
61675   have_mbstate_t=yes
61676 else
61677   echo "$as_me: failed program was:" >&5
61678 sed 's/^/| /' conftest.$ac_ext >&5
61679
61680 have_mbstate_t=no
61681 fi
61682 rm -f conftest.$ac_objext conftest.$ac_ext
61683   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
61684 echo "${ECHO_T}$have_mbstate_t" >&6
61685   if test x"$have_mbstate_t" = xyes; then
61686     cat >>confdefs.h <<\_ACEOF
61687 #define HAVE_MBSTATE_T 1
61688 _ACEOF
61689
61690   fi
61691
61692   # Sanity check for existence of ISO C99 headers for extended encoding.
61693
61694 for ac_header in wchar.h
61695 do
61696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61698   echo "$as_me:$LINENO: checking for $ac_header" >&5
61699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61701   echo $ECHO_N "(cached) $ECHO_C" >&6
61702 fi
61703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61705 else
61706   # Is the header compilable?
61707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61709 cat >conftest.$ac_ext <<_ACEOF
61710 #line $LINENO "configure"
61711 /* confdefs.h.  */
61712 _ACEOF
61713 cat confdefs.h >>conftest.$ac_ext
61714 cat >>conftest.$ac_ext <<_ACEOF
61715 /* end confdefs.h.  */
61716 $ac_includes_default
61717 #include <$ac_header>
61718 _ACEOF
61719 rm -f conftest.$ac_objext
61720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61721   (eval $ac_compile) 2>&5
61722   ac_status=$?
61723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61724   (exit $ac_status); } &&
61725          { ac_try='test -s conftest.$ac_objext'
61726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61727   (eval $ac_try) 2>&5
61728   ac_status=$?
61729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61730   (exit $ac_status); }; }; then
61731   ac_header_compiler=yes
61732 else
61733   echo "$as_me: failed program was:" >&5
61734 sed 's/^/| /' conftest.$ac_ext >&5
61735
61736 ac_header_compiler=no
61737 fi
61738 rm -f conftest.$ac_objext conftest.$ac_ext
61739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61740 echo "${ECHO_T}$ac_header_compiler" >&6
61741
61742 # Is the header present?
61743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61745 cat >conftest.$ac_ext <<_ACEOF
61746 #line $LINENO "configure"
61747 /* confdefs.h.  */
61748 _ACEOF
61749 cat confdefs.h >>conftest.$ac_ext
61750 cat >>conftest.$ac_ext <<_ACEOF
61751 /* end confdefs.h.  */
61752 #include <$ac_header>
61753 _ACEOF
61754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61756   ac_status=$?
61757   grep -v '^ *+' conftest.er1 >conftest.err
61758   rm -f conftest.er1
61759   cat conftest.err >&5
61760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61761   (exit $ac_status); } >/dev/null; then
61762   if test -s conftest.err; then
61763     ac_cpp_err=$ac_c_preproc_warn_flag
61764   else
61765     ac_cpp_err=
61766   fi
61767 else
61768   ac_cpp_err=yes
61769 fi
61770 if test -z "$ac_cpp_err"; then
61771   ac_header_preproc=yes
61772 else
61773   echo "$as_me: failed program was:" >&5
61774 sed 's/^/| /' conftest.$ac_ext >&5
61775
61776   ac_header_preproc=no
61777 fi
61778 rm -f conftest.err conftest.$ac_ext
61779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61780 echo "${ECHO_T}$ac_header_preproc" >&6
61781
61782 # So?  What about this header?
61783 case $ac_header_compiler:$ac_header_preproc in
61784   yes:no )
61785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61789     (
61790       cat <<\_ASBOX
61791 ## ------------------------------------ ##
61792 ## Report this to bug-autoconf@gnu.org. ##
61793 ## ------------------------------------ ##
61794 _ASBOX
61795     ) |
61796       sed "s/^/$as_me: WARNING:     /" >&2
61797     ;;
61798   no:yes )
61799     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61801     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61805     (
61806       cat <<\_ASBOX
61807 ## ------------------------------------ ##
61808 ## Report this to bug-autoconf@gnu.org. ##
61809 ## ------------------------------------ ##
61810 _ASBOX
61811     ) |
61812       sed "s/^/$as_me: WARNING:     /" >&2
61813     ;;
61814 esac
61815 echo "$as_me:$LINENO: checking for $ac_header" >&5
61816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61818   echo $ECHO_N "(cached) $ECHO_C" >&6
61819 else
61820   eval "$as_ac_Header=$ac_header_preproc"
61821 fi
61822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61824
61825 fi
61826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61827   cat >>confdefs.h <<_ACEOF
61828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61829 _ACEOF
61830  ac_has_wchar_h=yes
61831 else
61832   ac_has_wchar_h=no
61833 fi
61834
61835 done
61836
61837
61838 for ac_header in wctype.h
61839 do
61840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61842   echo "$as_me:$LINENO: checking for $ac_header" >&5
61843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61845   echo $ECHO_N "(cached) $ECHO_C" >&6
61846 fi
61847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61849 else
61850   # Is the header compilable?
61851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61853 cat >conftest.$ac_ext <<_ACEOF
61854 #line $LINENO "configure"
61855 /* confdefs.h.  */
61856 _ACEOF
61857 cat confdefs.h >>conftest.$ac_ext
61858 cat >>conftest.$ac_ext <<_ACEOF
61859 /* end confdefs.h.  */
61860 $ac_includes_default
61861 #include <$ac_header>
61862 _ACEOF
61863 rm -f conftest.$ac_objext
61864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61865   (eval $ac_compile) 2>&5
61866   ac_status=$?
61867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61868   (exit $ac_status); } &&
61869          { ac_try='test -s conftest.$ac_objext'
61870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61871   (eval $ac_try) 2>&5
61872   ac_status=$?
61873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61874   (exit $ac_status); }; }; then
61875   ac_header_compiler=yes
61876 else
61877   echo "$as_me: failed program was:" >&5
61878 sed 's/^/| /' conftest.$ac_ext >&5
61879
61880 ac_header_compiler=no
61881 fi
61882 rm -f conftest.$ac_objext conftest.$ac_ext
61883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61884 echo "${ECHO_T}$ac_header_compiler" >&6
61885
61886 # Is the header present?
61887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61889 cat >conftest.$ac_ext <<_ACEOF
61890 #line $LINENO "configure"
61891 /* confdefs.h.  */
61892 _ACEOF
61893 cat confdefs.h >>conftest.$ac_ext
61894 cat >>conftest.$ac_ext <<_ACEOF
61895 /* end confdefs.h.  */
61896 #include <$ac_header>
61897 _ACEOF
61898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61900   ac_status=$?
61901   grep -v '^ *+' conftest.er1 >conftest.err
61902   rm -f conftest.er1
61903   cat conftest.err >&5
61904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61905   (exit $ac_status); } >/dev/null; then
61906   if test -s conftest.err; then
61907     ac_cpp_err=$ac_c_preproc_warn_flag
61908   else
61909     ac_cpp_err=
61910   fi
61911 else
61912   ac_cpp_err=yes
61913 fi
61914 if test -z "$ac_cpp_err"; then
61915   ac_header_preproc=yes
61916 else
61917   echo "$as_me: failed program was:" >&5
61918 sed 's/^/| /' conftest.$ac_ext >&5
61919
61920   ac_header_preproc=no
61921 fi
61922 rm -f conftest.err conftest.$ac_ext
61923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61924 echo "${ECHO_T}$ac_header_preproc" >&6
61925
61926 # So?  What about this header?
61927 case $ac_header_compiler:$ac_header_preproc in
61928   yes:no )
61929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61933     (
61934       cat <<\_ASBOX
61935 ## ------------------------------------ ##
61936 ## Report this to bug-autoconf@gnu.org. ##
61937 ## ------------------------------------ ##
61938 _ASBOX
61939     ) |
61940       sed "s/^/$as_me: WARNING:     /" >&2
61941     ;;
61942   no:yes )
61943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61945     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61949     (
61950       cat <<\_ASBOX
61951 ## ------------------------------------ ##
61952 ## Report this to bug-autoconf@gnu.org. ##
61953 ## ------------------------------------ ##
61954 _ASBOX
61955     ) |
61956       sed "s/^/$as_me: WARNING:     /" >&2
61957     ;;
61958 esac
61959 echo "$as_me:$LINENO: checking for $ac_header" >&5
61960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61962   echo $ECHO_N "(cached) $ECHO_C" >&6
61963 else
61964   eval "$as_ac_Header=$ac_header_preproc"
61965 fi
61966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61968
61969 fi
61970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61971   cat >>confdefs.h <<_ACEOF
61972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61973 _ACEOF
61974  ac_has_wctype_h=yes
61975 else
61976   ac_has_wctype_h=no
61977 fi
61978
61979 done
61980
61981
61982   # Only continue checking if the ISO C99 headers exist and support is on.
61983   if test x"$ac_has_wchar_h" = xyes &&
61984      test x"$ac_has_wctype_h" = xyes &&
61985      test x"$enable_c_mbchar" != xno; then
61986
61987     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
61988     # numeric_limits can instantiate type_traits<wchar_t>
61989     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
61990 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
61991     cat >conftest.$ac_ext <<_ACEOF
61992 #line $LINENO "configure"
61993 /* confdefs.h.  */
61994 _ACEOF
61995 cat confdefs.h >>conftest.$ac_ext
61996 cat >>conftest.$ac_ext <<_ACEOF
61997 /* end confdefs.h.  */
61998 #include <wchar.h>
61999 int
62000 main ()
62001 {
62002 int i = WCHAR_MIN; int j = WCHAR_MAX;
62003   ;
62004   return 0;
62005 }
62006 _ACEOF
62007 rm -f conftest.$ac_objext
62008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62009   (eval $ac_compile) 2>&5
62010   ac_status=$?
62011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62012   (exit $ac_status); } &&
62013          { ac_try='test -s conftest.$ac_objext'
62014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62015   (eval $ac_try) 2>&5
62016   ac_status=$?
62017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62018   (exit $ac_status); }; }; then
62019   has_wchar_minmax=yes
62020 else
62021   echo "$as_me: failed program was:" >&5
62022 sed 's/^/| /' conftest.$ac_ext >&5
62023
62024 has_wchar_minmax=no
62025 fi
62026 rm -f conftest.$ac_objext conftest.$ac_ext
62027     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
62028 echo "${ECHO_T}$has_wchar_minmax" >&6
62029
62030     # Test wchar.h for WEOF, which is what we use to determine whether
62031     # to specialize for char_traits<wchar_t> or not.
62032     echo "$as_me:$LINENO: checking for WEOF" >&5
62033 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
62034     cat >conftest.$ac_ext <<_ACEOF
62035 #line $LINENO "configure"
62036 /* confdefs.h.  */
62037 _ACEOF
62038 cat confdefs.h >>conftest.$ac_ext
62039 cat >>conftest.$ac_ext <<_ACEOF
62040 /* end confdefs.h.  */
62041
62042       #include <wchar.h>
62043       #include <stddef.h>
62044 int
62045 main ()
62046 {
62047 wint_t i = WEOF;
62048   ;
62049   return 0;
62050 }
62051 _ACEOF
62052 rm -f conftest.$ac_objext
62053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62054   (eval $ac_compile) 2>&5
62055   ac_status=$?
62056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62057   (exit $ac_status); } &&
62058          { ac_try='test -s conftest.$ac_objext'
62059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62060   (eval $ac_try) 2>&5
62061   ac_status=$?
62062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62063   (exit $ac_status); }; }; then
62064   has_weof=yes
62065 else
62066   echo "$as_me: failed program was:" >&5
62067 sed 's/^/| /' conftest.$ac_ext >&5
62068
62069 has_weof=no
62070 fi
62071 rm -f conftest.$ac_objext conftest.$ac_ext
62072     echo "$as_me:$LINENO: result: $has_weof" >&5
62073 echo "${ECHO_T}$has_weof" >&6
62074
62075     # Tests for wide character functions used in char_traits<wchar_t>.
62076     ac_wfuncs=yes
62077
62078
62079
62080
62081
62082
62083 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
62084 do
62085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62086 echo "$as_me:$LINENO: checking for $ac_func" >&5
62087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62088 if eval "test \"\${$as_ac_var+set}\" = set"; then
62089   echo $ECHO_N "(cached) $ECHO_C" >&6
62090 else
62091   if test x$gcc_no_link = xyes; then
62092   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62093 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62094    { (exit 1); exit 1; }; }
62095 fi
62096 cat >conftest.$ac_ext <<_ACEOF
62097 #line $LINENO "configure"
62098 /* confdefs.h.  */
62099 _ACEOF
62100 cat confdefs.h >>conftest.$ac_ext
62101 cat >>conftest.$ac_ext <<_ACEOF
62102 /* end confdefs.h.  */
62103 /* System header to define __stub macros and hopefully few prototypes,
62104     which can conflict with char $ac_func (); below.
62105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62106     <limits.h> exists even on freestanding compilers.  */
62107 #ifdef __STDC__
62108 # include <limits.h>
62109 #else
62110 # include <assert.h>
62111 #endif
62112 /* Override any gcc2 internal prototype to avoid an error.  */
62113 #ifdef __cplusplus
62114 extern "C"
62115 {
62116 #endif
62117 /* We use char because int might match the return type of a gcc2
62118    builtin and then its argument prototype would still apply.  */
62119 char $ac_func ();
62120 /* The GNU C library defines this for functions which it implements
62121     to always fail with ENOSYS.  Some functions are actually named
62122     something starting with __ and the normal name is an alias.  */
62123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62124 choke me
62125 #else
62126 char (*f) () = $ac_func;
62127 #endif
62128 #ifdef __cplusplus
62129 }
62130 #endif
62131
62132 int
62133 main ()
62134 {
62135 return f != $ac_func;
62136   ;
62137   return 0;
62138 }
62139 _ACEOF
62140 rm -f conftest.$ac_objext conftest$ac_exeext
62141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62142   (eval $ac_link) 2>&5
62143   ac_status=$?
62144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62145   (exit $ac_status); } &&
62146          { ac_try='test -s conftest$ac_exeext'
62147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62148   (eval $ac_try) 2>&5
62149   ac_status=$?
62150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62151   (exit $ac_status); }; }; then
62152   eval "$as_ac_var=yes"
62153 else
62154   echo "$as_me: failed program was:" >&5
62155 sed 's/^/| /' conftest.$ac_ext >&5
62156
62157 eval "$as_ac_var=no"
62158 fi
62159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
62160 fi
62161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62163 if test `eval echo '${'$as_ac_var'}'` = yes; then
62164   cat >>confdefs.h <<_ACEOF
62165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62166 _ACEOF
62167
62168 else
62169   ac_wfuncs=no
62170 fi
62171 done
62172
62173
62174     # Checks for names injected into std:: by the c_std headers.
62175
62176
62177
62178
62179
62180
62181
62182
62183
62184
62185
62186
62187
62188
62189
62190
62191
62192
62193
62194
62195
62196
62197
62198
62199
62200
62201
62202
62203
62204
62205
62206
62207
62208
62209
62210
62211
62212
62213
62214
62215
62216
62217
62218
62219
62220
62221 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
62222     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
62223     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
62224     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
62225     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
62226     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
62227 do
62228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62229 echo "$as_me:$LINENO: checking for $ac_func" >&5
62230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62231 if eval "test \"\${$as_ac_var+set}\" = set"; then
62232   echo $ECHO_N "(cached) $ECHO_C" >&6
62233 else
62234   if test x$gcc_no_link = xyes; then
62235   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62237    { (exit 1); exit 1; }; }
62238 fi
62239 cat >conftest.$ac_ext <<_ACEOF
62240 #line $LINENO "configure"
62241 /* confdefs.h.  */
62242 _ACEOF
62243 cat confdefs.h >>conftest.$ac_ext
62244 cat >>conftest.$ac_ext <<_ACEOF
62245 /* end confdefs.h.  */
62246 /* System header to define __stub macros and hopefully few prototypes,
62247     which can conflict with char $ac_func (); below.
62248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62249     <limits.h> exists even on freestanding compilers.  */
62250 #ifdef __STDC__
62251 # include <limits.h>
62252 #else
62253 # include <assert.h>
62254 #endif
62255 /* Override any gcc2 internal prototype to avoid an error.  */
62256 #ifdef __cplusplus
62257 extern "C"
62258 {
62259 #endif
62260 /* We use char because int might match the return type of a gcc2
62261    builtin and then its argument prototype would still apply.  */
62262 char $ac_func ();
62263 /* The GNU C library defines this for functions which it implements
62264     to always fail with ENOSYS.  Some functions are actually named
62265     something starting with __ and the normal name is an alias.  */
62266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62267 choke me
62268 #else
62269 char (*f) () = $ac_func;
62270 #endif
62271 #ifdef __cplusplus
62272 }
62273 #endif
62274
62275 int
62276 main ()
62277 {
62278 return f != $ac_func;
62279   ;
62280   return 0;
62281 }
62282 _ACEOF
62283 rm -f conftest.$ac_objext conftest$ac_exeext
62284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62285   (eval $ac_link) 2>&5
62286   ac_status=$?
62287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62288   (exit $ac_status); } &&
62289          { ac_try='test -s conftest$ac_exeext'
62290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62291   (eval $ac_try) 2>&5
62292   ac_status=$?
62293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62294   (exit $ac_status); }; }; then
62295   eval "$as_ac_var=yes"
62296 else
62297   echo "$as_me: failed program was:" >&5
62298 sed 's/^/| /' conftest.$ac_ext >&5
62299
62300 eval "$as_ac_var=no"
62301 fi
62302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
62303 fi
62304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62306 if test `eval echo '${'$as_ac_var'}'` = yes; then
62307   cat >>confdefs.h <<_ACEOF
62308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62309 _ACEOF
62310
62311 else
62312   ac_wfuncs=no
62313 fi
62314 done
62315
62316
62317     # Checks for wide character functions that are not required
62318     # for basic wchar_t support.  Don't disable support if they are missing.
62319     # Injection of these is wrapped with guard macros.
62320
62321
62322
62323
62324
62325 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
62326 do
62327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62328 echo "$as_me:$LINENO: checking for $ac_func" >&5
62329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62330 if eval "test \"\${$as_ac_var+set}\" = set"; then
62331   echo $ECHO_N "(cached) $ECHO_C" >&6
62332 else
62333   if test x$gcc_no_link = xyes; then
62334   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62336    { (exit 1); exit 1; }; }
62337 fi
62338 cat >conftest.$ac_ext <<_ACEOF
62339 #line $LINENO "configure"
62340 /* confdefs.h.  */
62341 _ACEOF
62342 cat confdefs.h >>conftest.$ac_ext
62343 cat >>conftest.$ac_ext <<_ACEOF
62344 /* end confdefs.h.  */
62345 /* System header to define __stub macros and hopefully few prototypes,
62346     which can conflict with char $ac_func (); below.
62347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62348     <limits.h> exists even on freestanding compilers.  */
62349 #ifdef __STDC__
62350 # include <limits.h>
62351 #else
62352 # include <assert.h>
62353 #endif
62354 /* Override any gcc2 internal prototype to avoid an error.  */
62355 #ifdef __cplusplus
62356 extern "C"
62357 {
62358 #endif
62359 /* We use char because int might match the return type of a gcc2
62360    builtin and then its argument prototype would still apply.  */
62361 char $ac_func ();
62362 /* The GNU C library defines this for functions which it implements
62363     to always fail with ENOSYS.  Some functions are actually named
62364     something starting with __ and the normal name is an alias.  */
62365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62366 choke me
62367 #else
62368 char (*f) () = $ac_func;
62369 #endif
62370 #ifdef __cplusplus
62371 }
62372 #endif
62373
62374 int
62375 main ()
62376 {
62377 return f != $ac_func;
62378   ;
62379   return 0;
62380 }
62381 _ACEOF
62382 rm -f conftest.$ac_objext conftest$ac_exeext
62383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62384   (eval $ac_link) 2>&5
62385   ac_status=$?
62386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62387   (exit $ac_status); } &&
62388          { ac_try='test -s conftest$ac_exeext'
62389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62390   (eval $ac_try) 2>&5
62391   ac_status=$?
62392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62393   (exit $ac_status); }; }; then
62394   eval "$as_ac_var=yes"
62395 else
62396   echo "$as_me: failed program was:" >&5
62397 sed 's/^/| /' conftest.$ac_ext >&5
62398
62399 eval "$as_ac_var=no"
62400 fi
62401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
62402 fi
62403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62405 if test `eval echo '${'$as_ac_var'}'` = yes; then
62406   cat >>confdefs.h <<_ACEOF
62407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62408 _ACEOF
62409
62410 fi
62411 done
62412
62413
62414     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
62415 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
62416     if test x"$has_weof" = xyes &&
62417        test x"$has_wchar_minmax" = xyes &&
62418        test x"$ac_wfuncs" = xyes;
62419     then
62420       ac_isoC99_wchar_t=yes
62421     else
62422       ac_isoC99_wchar_t=no
62423     fi
62424     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
62425 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
62426
62427     # Use iconv for wchar_t to char conversions. As such, check for
62428     # X/Open Portability Guide, version 2 features (XPG2).
62429     if test "${ac_cv_header_iconv_h+set}" = set; then
62430   echo "$as_me:$LINENO: checking for iconv.h" >&5
62431 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62432 if test "${ac_cv_header_iconv_h+set}" = set; then
62433   echo $ECHO_N "(cached) $ECHO_C" >&6
62434 fi
62435 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62436 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62437 else
62438   # Is the header compilable?
62439 echo "$as_me:$LINENO: checking iconv.h usability" >&5
62440 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
62441 cat >conftest.$ac_ext <<_ACEOF
62442 #line $LINENO "configure"
62443 /* confdefs.h.  */
62444 _ACEOF
62445 cat confdefs.h >>conftest.$ac_ext
62446 cat >>conftest.$ac_ext <<_ACEOF
62447 /* end confdefs.h.  */
62448 $ac_includes_default
62449 #include <iconv.h>
62450 _ACEOF
62451 rm -f conftest.$ac_objext
62452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62453   (eval $ac_compile) 2>&5
62454   ac_status=$?
62455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62456   (exit $ac_status); } &&
62457          { ac_try='test -s conftest.$ac_objext'
62458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62459   (eval $ac_try) 2>&5
62460   ac_status=$?
62461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62462   (exit $ac_status); }; }; then
62463   ac_header_compiler=yes
62464 else
62465   echo "$as_me: failed program was:" >&5
62466 sed 's/^/| /' conftest.$ac_ext >&5
62467
62468 ac_header_compiler=no
62469 fi
62470 rm -f conftest.$ac_objext conftest.$ac_ext
62471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62472 echo "${ECHO_T}$ac_header_compiler" >&6
62473
62474 # Is the header present?
62475 echo "$as_me:$LINENO: checking iconv.h presence" >&5
62476 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
62477 cat >conftest.$ac_ext <<_ACEOF
62478 #line $LINENO "configure"
62479 /* confdefs.h.  */
62480 _ACEOF
62481 cat confdefs.h >>conftest.$ac_ext
62482 cat >>conftest.$ac_ext <<_ACEOF
62483 /* end confdefs.h.  */
62484 #include <iconv.h>
62485 _ACEOF
62486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62488   ac_status=$?
62489   grep -v '^ *+' conftest.er1 >conftest.err
62490   rm -f conftest.er1
62491   cat conftest.err >&5
62492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62493   (exit $ac_status); } >/dev/null; then
62494   if test -s conftest.err; then
62495     ac_cpp_err=$ac_c_preproc_warn_flag
62496   else
62497     ac_cpp_err=
62498   fi
62499 else
62500   ac_cpp_err=yes
62501 fi
62502 if test -z "$ac_cpp_err"; then
62503   ac_header_preproc=yes
62504 else
62505   echo "$as_me: failed program was:" >&5
62506 sed 's/^/| /' conftest.$ac_ext >&5
62507
62508   ac_header_preproc=no
62509 fi
62510 rm -f conftest.err conftest.$ac_ext
62511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62512 echo "${ECHO_T}$ac_header_preproc" >&6
62513
62514 # So?  What about this header?
62515 case $ac_header_compiler:$ac_header_preproc in
62516   yes:no )
62517     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
62518 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62519     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
62520 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
62521     (
62522       cat <<\_ASBOX
62523 ## ------------------------------------ ##
62524 ## Report this to bug-autoconf@gnu.org. ##
62525 ## ------------------------------------ ##
62526 _ASBOX
62527     ) |
62528       sed "s/^/$as_me: WARNING:     /" >&2
62529     ;;
62530   no:yes )
62531     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
62532 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
62533     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
62534 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
62535     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
62536 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
62537     (
62538       cat <<\_ASBOX
62539 ## ------------------------------------ ##
62540 ## Report this to bug-autoconf@gnu.org. ##
62541 ## ------------------------------------ ##
62542 _ASBOX
62543     ) |
62544       sed "s/^/$as_me: WARNING:     /" >&2
62545     ;;
62546 esac
62547 echo "$as_me:$LINENO: checking for iconv.h" >&5
62548 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62549 if test "${ac_cv_header_iconv_h+set}" = set; then
62550   echo $ECHO_N "(cached) $ECHO_C" >&6
62551 else
62552   ac_cv_header_iconv_h=$ac_header_preproc
62553 fi
62554 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62555 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62556
62557 fi
62558 if test $ac_cv_header_iconv_h = yes; then
62559   ac_has_iconv_h=yes
62560 else
62561   ac_has_iconv_h=no
62562 fi
62563
62564
62565     if test "${ac_cv_header_langinfo_h+set}" = set; then
62566   echo "$as_me:$LINENO: checking for langinfo.h" >&5
62567 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62568 if test "${ac_cv_header_langinfo_h+set}" = set; then
62569   echo $ECHO_N "(cached) $ECHO_C" >&6
62570 fi
62571 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62572 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62573 else
62574   # Is the header compilable?
62575 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
62576 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
62577 cat >conftest.$ac_ext <<_ACEOF
62578 #line $LINENO "configure"
62579 /* confdefs.h.  */
62580 _ACEOF
62581 cat confdefs.h >>conftest.$ac_ext
62582 cat >>conftest.$ac_ext <<_ACEOF
62583 /* end confdefs.h.  */
62584 $ac_includes_default
62585 #include <langinfo.h>
62586 _ACEOF
62587 rm -f conftest.$ac_objext
62588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62589   (eval $ac_compile) 2>&5
62590   ac_status=$?
62591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62592   (exit $ac_status); } &&
62593          { ac_try='test -s conftest.$ac_objext'
62594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62595   (eval $ac_try) 2>&5
62596   ac_status=$?
62597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62598   (exit $ac_status); }; }; then
62599   ac_header_compiler=yes
62600 else
62601   echo "$as_me: failed program was:" >&5
62602 sed 's/^/| /' conftest.$ac_ext >&5
62603
62604 ac_header_compiler=no
62605 fi
62606 rm -f conftest.$ac_objext conftest.$ac_ext
62607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62608 echo "${ECHO_T}$ac_header_compiler" >&6
62609
62610 # Is the header present?
62611 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
62612 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
62613 cat >conftest.$ac_ext <<_ACEOF
62614 #line $LINENO "configure"
62615 /* confdefs.h.  */
62616 _ACEOF
62617 cat confdefs.h >>conftest.$ac_ext
62618 cat >>conftest.$ac_ext <<_ACEOF
62619 /* end confdefs.h.  */
62620 #include <langinfo.h>
62621 _ACEOF
62622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62624   ac_status=$?
62625   grep -v '^ *+' conftest.er1 >conftest.err
62626   rm -f conftest.er1
62627   cat conftest.err >&5
62628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62629   (exit $ac_status); } >/dev/null; then
62630   if test -s conftest.err; then
62631     ac_cpp_err=$ac_c_preproc_warn_flag
62632   else
62633     ac_cpp_err=
62634   fi
62635 else
62636   ac_cpp_err=yes
62637 fi
62638 if test -z "$ac_cpp_err"; then
62639   ac_header_preproc=yes
62640 else
62641   echo "$as_me: failed program was:" >&5
62642 sed 's/^/| /' conftest.$ac_ext >&5
62643
62644   ac_header_preproc=no
62645 fi
62646 rm -f conftest.err conftest.$ac_ext
62647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62648 echo "${ECHO_T}$ac_header_preproc" >&6
62649
62650 # So?  What about this header?
62651 case $ac_header_compiler:$ac_header_preproc in
62652   yes:no )
62653     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
62654 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62655     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
62656 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
62657     (
62658       cat <<\_ASBOX
62659 ## ------------------------------------ ##
62660 ## Report this to bug-autoconf@gnu.org. ##
62661 ## ------------------------------------ ##
62662 _ASBOX
62663     ) |
62664       sed "s/^/$as_me: WARNING:     /" >&2
62665     ;;
62666   no:yes )
62667     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
62668 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
62669     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
62670 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
62671     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
62672 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
62673     (
62674       cat <<\_ASBOX
62675 ## ------------------------------------ ##
62676 ## Report this to bug-autoconf@gnu.org. ##
62677 ## ------------------------------------ ##
62678 _ASBOX
62679     ) |
62680       sed "s/^/$as_me: WARNING:     /" >&2
62681     ;;
62682 esac
62683 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62684 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62685 if test "${ac_cv_header_langinfo_h+set}" = set; then
62686   echo $ECHO_N "(cached) $ECHO_C" >&6
62687 else
62688   ac_cv_header_langinfo_h=$ac_header_preproc
62689 fi
62690 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62691 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62692
62693 fi
62694 if test $ac_cv_header_langinfo_h = yes; then
62695   ac_has_langinfo_h=yes
62696 else
62697   ac_has_langinfo_h=no
62698 fi
62699
62700
62701
62702     # Check for existence of libiconv.a providing XPG2 wchar_t support.
62703     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
62704 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
62705 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
62706   echo $ECHO_N "(cached) $ECHO_C" >&6
62707 else
62708   ac_check_lib_save_LIBS=$LIBS
62709 LIBS="-liconv  $LIBS"
62710 if test x$gcc_no_link = xyes; then
62711   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62713    { (exit 1); exit 1; }; }
62714 fi
62715 cat >conftest.$ac_ext <<_ACEOF
62716 #line $LINENO "configure"
62717 /* confdefs.h.  */
62718 _ACEOF
62719 cat confdefs.h >>conftest.$ac_ext
62720 cat >>conftest.$ac_ext <<_ACEOF
62721 /* end confdefs.h.  */
62722
62723 /* Override any gcc2 internal prototype to avoid an error.  */
62724 #ifdef __cplusplus
62725 extern "C"
62726 #endif
62727 /* We use char because int might match the return type of a gcc2
62728    builtin and then its argument prototype would still apply.  */
62729 char iconv ();
62730 int
62731 main ()
62732 {
62733 iconv ();
62734   ;
62735   return 0;
62736 }
62737 _ACEOF
62738 rm -f conftest.$ac_objext conftest$ac_exeext
62739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62740   (eval $ac_link) 2>&5
62741   ac_status=$?
62742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62743   (exit $ac_status); } &&
62744          { ac_try='test -s conftest$ac_exeext'
62745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62746   (eval $ac_try) 2>&5
62747   ac_status=$?
62748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62749   (exit $ac_status); }; }; then
62750   ac_cv_lib_iconv_iconv=yes
62751 else
62752   echo "$as_me: failed program was:" >&5
62753 sed 's/^/| /' conftest.$ac_ext >&5
62754
62755 ac_cv_lib_iconv_iconv=no
62756 fi
62757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
62758 LIBS=$ac_check_lib_save_LIBS
62759 fi
62760 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
62761 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
62762 if test $ac_cv_lib_iconv_iconv = yes; then
62763   libiconv="-liconv"
62764 fi
62765
62766     ac_save_LIBS="$LIBS"
62767     LIBS="$LIBS $libiconv"
62768
62769
62770
62771
62772
62773 for ac_func in iconv_open iconv_close iconv nl_langinfo
62774 do
62775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62776 echo "$as_me:$LINENO: checking for $ac_func" >&5
62777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62778 if eval "test \"\${$as_ac_var+set}\" = set"; then
62779   echo $ECHO_N "(cached) $ECHO_C" >&6
62780 else
62781   if test x$gcc_no_link = xyes; then
62782   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62784    { (exit 1); exit 1; }; }
62785 fi
62786 cat >conftest.$ac_ext <<_ACEOF
62787 #line $LINENO "configure"
62788 /* confdefs.h.  */
62789 _ACEOF
62790 cat confdefs.h >>conftest.$ac_ext
62791 cat >>conftest.$ac_ext <<_ACEOF
62792 /* end confdefs.h.  */
62793 /* System header to define __stub macros and hopefully few prototypes,
62794     which can conflict with char $ac_func (); below.
62795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62796     <limits.h> exists even on freestanding compilers.  */
62797 #ifdef __STDC__
62798 # include <limits.h>
62799 #else
62800 # include <assert.h>
62801 #endif
62802 /* Override any gcc2 internal prototype to avoid an error.  */
62803 #ifdef __cplusplus
62804 extern "C"
62805 {
62806 #endif
62807 /* We use char because int might match the return type of a gcc2
62808    builtin and then its argument prototype would still apply.  */
62809 char $ac_func ();
62810 /* The GNU C library defines this for functions which it implements
62811     to always fail with ENOSYS.  Some functions are actually named
62812     something starting with __ and the normal name is an alias.  */
62813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62814 choke me
62815 #else
62816 char (*f) () = $ac_func;
62817 #endif
62818 #ifdef __cplusplus
62819 }
62820 #endif
62821
62822 int
62823 main ()
62824 {
62825 return f != $ac_func;
62826   ;
62827   return 0;
62828 }
62829 _ACEOF
62830 rm -f conftest.$ac_objext conftest$ac_exeext
62831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62832   (eval $ac_link) 2>&5
62833   ac_status=$?
62834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62835   (exit $ac_status); } &&
62836          { ac_try='test -s conftest$ac_exeext'
62837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62838   (eval $ac_try) 2>&5
62839   ac_status=$?
62840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62841   (exit $ac_status); }; }; then
62842   eval "$as_ac_var=yes"
62843 else
62844   echo "$as_me: failed program was:" >&5
62845 sed 's/^/| /' conftest.$ac_ext >&5
62846
62847 eval "$as_ac_var=no"
62848 fi
62849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
62850 fi
62851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62853 if test `eval echo '${'$as_ac_var'}'` = yes; then
62854   cat >>confdefs.h <<_ACEOF
62855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62856 _ACEOF
62857  ac_XPG2funcs=yes
62858 else
62859   ac_XPG2funcs=no
62860 fi
62861 done
62862
62863
62864     LIBS="$ac_save_LIBS"
62865
62866     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
62867 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
62868     if test x"$ac_has_iconv_h" = xyes &&
62869        test x"$ac_has_langinfo_h" = xyes &&
62870        test x"$ac_XPG2funcs" = xyes;
62871     then
62872       ac_XPG2_wchar_t=yes
62873     else
62874       ac_XPG2_wchar_t=no
62875     fi
62876     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
62877 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
62878
62879     # At the moment, only enable wchar_t specializations if all the
62880     # above support is present.
62881     if test x"$ac_isoC99_wchar_t" = xyes &&
62882        test x"$ac_XPG2_wchar_t" = xyes;
62883     then
62884       cat >>confdefs.h <<\_ACEOF
62885 #define _GLIBCXX_USE_WCHAR_T 1
62886 _ACEOF
62887
62888       enable_wchar_t=yes
62889     fi
62890   fi
62891   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
62892 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
62893   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
62894 echo "${ECHO_T}$enable_wchar_t" >&6
62895
62896     cat >>confdefs.h <<\_ACEOF
62897 #define HAVE_COPYSIGN 1
62898 _ACEOF
62899
62900     cat >>confdefs.h <<\_ACEOF
62901 #define HAVE_COPYSIGNF 1
62902 _ACEOF
62903
62904     cat >>confdefs.h <<\_ACEOF
62905 #define HAVE_FINITE 1
62906 _ACEOF
62907
62908     cat >>confdefs.h <<\_ACEOF
62909 #define HAVE_FINITEF 1
62910 _ACEOF
62911
62912     cat >>confdefs.h <<\_ACEOF
62913 #define HAVE_FREXPF 1
62914 _ACEOF
62915
62916     cat >>confdefs.h <<\_ACEOF
62917 #define HAVE_HYPOTF 1
62918 _ACEOF
62919
62920     cat >>confdefs.h <<\_ACEOF
62921 #define HAVE_ISINF 1
62922 _ACEOF
62923
62924     cat >>confdefs.h <<\_ACEOF
62925 #define HAVE_ISINFF 1
62926 _ACEOF
62927
62928     cat >>confdefs.h <<\_ACEOF
62929 #define HAVE_ISNAN 1
62930 _ACEOF
62931
62932     cat >>confdefs.h <<\_ACEOF
62933 #define HAVE_ISNANF 1
62934 _ACEOF
62935
62936     cat >>confdefs.h <<\_ACEOF
62937 #define HAVE_SINCOS 1
62938 _ACEOF
62939
62940     cat >>confdefs.h <<\_ACEOF
62941 #define HAVE_SINCOSF 1
62942 _ACEOF
62943
62944     if test x"long_double_math_on_this_cpu" = x"yes"; then
62945       cat >>confdefs.h <<\_ACEOF
62946 #define HAVE_FINITEL 1
62947 _ACEOF
62948
62949       cat >>confdefs.h <<\_ACEOF
62950 #define HAVE_HYPOTL 1
62951 _ACEOF
62952
62953       cat >>confdefs.h <<\_ACEOF
62954 #define HAVE_ISINFL 1
62955 _ACEOF
62956
62957       cat >>confdefs.h <<\_ACEOF
62958 #define HAVE_ISNANL 1
62959 _ACEOF
62960
62961     fi
62962     ;;
62963   *-vxworks)
62964     cat >>confdefs.h <<\_ACEOF
62965 #define HAVE_MMAP 1
62966 _ACEOF
62967
62968     cat >>confdefs.h <<\_ACEOF
62969 #define HAVE_ACOSF 1
62970 _ACEOF
62971
62972     cat >>confdefs.h <<\_ACEOF
62973 #define HAVE_ASINF 1
62974 _ACEOF
62975
62976     cat >>confdefs.h <<\_ACEOF
62977 #define HAVE_ATAN2F 1
62978 _ACEOF
62979
62980     cat >>confdefs.h <<\_ACEOF
62981 #define HAVE_ATANF 1
62982 _ACEOF
62983
62984     cat >>confdefs.h <<\_ACEOF
62985 #define HAVE_CEILF 1
62986 _ACEOF
62987
62988     cat >>confdefs.h <<\_ACEOF
62989 #define HAVE_COSF 1
62990 _ACEOF
62991
62992     cat >>confdefs.h <<\_ACEOF
62993 #define HAVE_COSHF 1
62994 _ACEOF
62995
62996     cat >>confdefs.h <<\_ACEOF
62997 #define HAVE_EXPF 1
62998 _ACEOF
62999
63000     cat >>confdefs.h <<\_ACEOF
63001 #define HAVE_FABSF 1
63002 _ACEOF
63003
63004     cat >>confdefs.h <<\_ACEOF
63005 #define HAVE_FLOORF 1
63006 _ACEOF
63007
63008     cat >>confdefs.h <<\_ACEOF
63009 #define HAVE_FMODF 1
63010 _ACEOF
63011
63012     cat >>confdefs.h <<\_ACEOF
63013 #define HAVE_HYPOT 1
63014 _ACEOF
63015
63016     cat >>confdefs.h <<\_ACEOF
63017 #define HAVE_LOG10F 1
63018 _ACEOF
63019
63020     cat >>confdefs.h <<\_ACEOF
63021 #define HAVE_LOGF 1
63022 _ACEOF
63023
63024     cat >>confdefs.h <<\_ACEOF
63025 #define HAVE_POWF 1
63026 _ACEOF
63027
63028     cat >>confdefs.h <<\_ACEOF
63029 #define HAVE_SINF 1
63030 _ACEOF
63031
63032     cat >>confdefs.h <<\_ACEOF
63033 #define HAVE_SINHF 1
63034 _ACEOF
63035
63036     cat >>confdefs.h <<\_ACEOF
63037 #define HAVE_SQRTF 1
63038 _ACEOF
63039
63040     cat >>confdefs.h <<\_ACEOF
63041 #define HAVE_TANF 1
63042 _ACEOF
63043
63044     cat >>confdefs.h <<\_ACEOF
63045 #define HAVE_TANHF 1
63046 _ACEOF
63047
63048     ;;
63049   *-windiss*)
63050     cat >>confdefs.h <<\_ACEOF
63051 #define HAVE_ACOSF 1
63052 _ACEOF
63053
63054     cat >>confdefs.h <<\_ACEOF
63055 #define HAVE_ACOSL 1
63056 _ACEOF
63057
63058     cat >>confdefs.h <<\_ACEOF
63059 #define HAVE_ASINF 1
63060 _ACEOF
63061
63062     cat >>confdefs.h <<\_ACEOF
63063 #define HAVE_ASINL 1
63064 _ACEOF
63065
63066     cat >>confdefs.h <<\_ACEOF
63067 #define HAVE_ATAN2F 1
63068 _ACEOF
63069
63070     cat >>confdefs.h <<\_ACEOF
63071 #define HAVE_ATAN2L 1
63072 _ACEOF
63073
63074     cat >>confdefs.h <<\_ACEOF
63075 #define HAVE_ATANF 1
63076 _ACEOF
63077
63078     cat >>confdefs.h <<\_ACEOF
63079 #define HAVE_ATANL 1
63080 _ACEOF
63081
63082     cat >>confdefs.h <<\_ACEOF
63083 #define HAVE_CEILF 1
63084 _ACEOF
63085
63086     cat >>confdefs.h <<\_ACEOF
63087 #define HAVE_CEILL 1
63088 _ACEOF
63089
63090     cat >>confdefs.h <<\_ACEOF
63091 #define HAVE_COPYSIGN 1
63092 _ACEOF
63093
63094     cat >>confdefs.h <<\_ACEOF
63095 #define HAVE_COPYSIGNF 1
63096 _ACEOF
63097
63098     cat >>confdefs.h <<\_ACEOF
63099 #define HAVE_COSF 1
63100 _ACEOF
63101
63102     cat >>confdefs.h <<\_ACEOF
63103 #define HAVE_COSL 1
63104 _ACEOF
63105
63106     cat >>confdefs.h <<\_ACEOF
63107 #define HAVE_COSHF 1
63108 _ACEOF
63109
63110     cat >>confdefs.h <<\_ACEOF
63111 #define HAVE_COSHL 1
63112 _ACEOF
63113
63114     cat >>confdefs.h <<\_ACEOF
63115 #define HAVE_EXPF 1
63116 _ACEOF
63117
63118     cat >>confdefs.h <<\_ACEOF
63119 #define HAVE_EXPL 1
63120 _ACEOF
63121
63122     cat >>confdefs.h <<\_ACEOF
63123 #define HAVE_FABSF 1
63124 _ACEOF
63125
63126     cat >>confdefs.h <<\_ACEOF
63127 #define HAVE_FABSL 1
63128 _ACEOF
63129
63130     cat >>confdefs.h <<\_ACEOF
63131 #define HAVE_FLOORF 1
63132 _ACEOF
63133
63134     cat >>confdefs.h <<\_ACEOF
63135 #define HAVE_FLOORL 1
63136 _ACEOF
63137
63138     cat >>confdefs.h <<\_ACEOF
63139 #define HAVE_FMODF 1
63140 _ACEOF
63141
63142     cat >>confdefs.h <<\_ACEOF
63143 #define HAVE_FMODL 1
63144 _ACEOF
63145
63146     cat >>confdefs.h <<\_ACEOF
63147 #define HAVE_FREXPF 1
63148 _ACEOF
63149
63150     cat >>confdefs.h <<\_ACEOF
63151 #define HAVE_FREXPL 1
63152 _ACEOF
63153
63154     cat >>confdefs.h <<\_ACEOF
63155 #define HAVE_LDEXPF 1
63156 _ACEOF
63157
63158     cat >>confdefs.h <<\_ACEOF
63159 #define HAVE_LDEXPL 1
63160 _ACEOF
63161
63162     cat >>confdefs.h <<\_ACEOF
63163 #define HAVE_LOG10F 1
63164 _ACEOF
63165
63166     cat >>confdefs.h <<\_ACEOF
63167 #define HAVE_LOG10L 1
63168 _ACEOF
63169
63170     cat >>confdefs.h <<\_ACEOF
63171 #define HAVE_LOGF 1
63172 _ACEOF
63173
63174     cat >>confdefs.h <<\_ACEOF
63175 #define HAVE_MODFF 1
63176 _ACEOF
63177
63178     cat >>confdefs.h <<\_ACEOF
63179 #define HAVE_MODFL 1
63180 _ACEOF
63181
63182     cat >>confdefs.h <<\_ACEOF
63183 #define HAVE_POWF 1
63184 _ACEOF
63185
63186     cat >>confdefs.h <<\_ACEOF
63187 #define HAVE_POWL 1
63188 _ACEOF
63189
63190     cat >>confdefs.h <<\_ACEOF
63191 #define HAVE_SINF 1
63192 _ACEOF
63193
63194     cat >>confdefs.h <<\_ACEOF
63195 #define HAVE_SINL 1
63196 _ACEOF
63197
63198     cat >>confdefs.h <<\_ACEOF
63199 #define HAVE_SINHF 1
63200 _ACEOF
63201
63202     cat >>confdefs.h <<\_ACEOF
63203 #define HAVE_SINHL 1
63204 _ACEOF
63205
63206     cat >>confdefs.h <<\_ACEOF
63207 #define HAVE_SQRTF 1
63208 _ACEOF
63209
63210     cat >>confdefs.h <<\_ACEOF
63211 #define HAVE_SQRTL 1
63212 _ACEOF
63213
63214     cat >>confdefs.h <<\_ACEOF
63215 #define HAVE_TANF 1
63216 _ACEOF
63217
63218     cat >>confdefs.h <<\_ACEOF
63219 #define HAVE_TANL 1
63220 _ACEOF
63221
63222     cat >>confdefs.h <<\_ACEOF
63223 #define HAVE_TANHF 1
63224 _ACEOF
63225
63226     cat >>confdefs.h <<\_ACEOF
63227 #define HAVE_TANHL 1
63228 _ACEOF
63229
63230     ;;
63231   *)
63232     { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
63233 echo "$as_me: error: No support for this host/target combination." >&2;}
63234    { (exit 1); exit 1; }; }
63235    ;;
63236 esac
63237
63238
63239   fi
63240
63241   # At some point, we should differentiate between architectures
63242   # like x86, which have long double versions, and alpha/powerpc/etc.,
63243   # which don't. For the time being, punt.
63244   if test x"long_double_math_on_this_cpu" = x"yes"; then
63245     cat >>confdefs.h <<\_ACEOF
63246 #define HAVE_ACOSL 1
63247 _ACEOF
63248
63249     cat >>confdefs.h <<\_ACEOF
63250 #define HAVE_ASINL 1
63251 _ACEOF
63252
63253     cat >>confdefs.h <<\_ACEOF
63254 #define HAVE_ATAN2L 1
63255 _ACEOF
63256
63257     cat >>confdefs.h <<\_ACEOF
63258 #define HAVE_ATANL 1
63259 _ACEOF
63260
63261     cat >>confdefs.h <<\_ACEOF
63262 #define HAVE_CEILL 1
63263 _ACEOF
63264
63265     cat >>confdefs.h <<\_ACEOF
63266 #define HAVE_COPYSIGNL 1
63267 _ACEOF
63268
63269     cat >>confdefs.h <<\_ACEOF
63270 #define HAVE_COSL 1
63271 _ACEOF
63272
63273     cat >>confdefs.h <<\_ACEOF
63274 #define HAVE_COSHL 1
63275 _ACEOF
63276
63277     cat >>confdefs.h <<\_ACEOF
63278 #define HAVE_EXPL 1
63279 _ACEOF
63280
63281     cat >>confdefs.h <<\_ACEOF
63282 #define HAVE_FABSL 1
63283 _ACEOF
63284
63285     cat >>confdefs.h <<\_ACEOF
63286 #define HAVE_FLOORL 1
63287 _ACEOF
63288
63289     cat >>confdefs.h <<\_ACEOF
63290 #define HAVE_FMODL 1
63291 _ACEOF
63292
63293     cat >>confdefs.h <<\_ACEOF
63294 #define HAVE_FREXPL 1
63295 _ACEOF
63296
63297     cat >>confdefs.h <<\_ACEOF
63298 #define HAVE_LDEXPL 1
63299 _ACEOF
63300
63301     cat >>confdefs.h <<\_ACEOF
63302 #define HAVE_LOG10L 1
63303 _ACEOF
63304
63305     cat >>confdefs.h <<\_ACEOF
63306 #define HAVE_LOGL 1
63307 _ACEOF
63308
63309     cat >>confdefs.h <<\_ACEOF
63310 #define HAVE_MODFL 1
63311 _ACEOF
63312
63313     cat >>confdefs.h <<\_ACEOF
63314 #define HAVE_POWL 1
63315 _ACEOF
63316
63317     cat >>confdefs.h <<\_ACEOF
63318 #define HAVE_SINCOSL 1
63319 _ACEOF
63320
63321     cat >>confdefs.h <<\_ACEOF
63322 #define HAVE_SINL 1
63323 _ACEOF
63324
63325     cat >>confdefs.h <<\_ACEOF
63326 #define HAVE_SINHL 1
63327 _ACEOF
63328
63329     cat >>confdefs.h <<\_ACEOF
63330 #define HAVE_SQRTL 1
63331 _ACEOF
63332
63333     cat >>confdefs.h <<\_ACEOF
63334 #define HAVE_TANL 1
63335 _ACEOF
63336
63337     cat >>confdefs.h <<\_ACEOF
63338 #define HAVE_TANHL 1
63339 _ACEOF
63340
63341   fi
63342
63343 fi
63344
63345 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
63346
63347
63348  # Check whether --enable-symvers or --disable-symvers was given.
63349 if test "${enable_symvers+set}" = set; then
63350   enableval="$enable_symvers"
63351
63352       case "$enableval" in
63353        yes|no|gnu) ;;
63354        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
63355 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
63356    { (exit 1); exit 1; }; } ;;
63357                           esac
63358
63359 else
63360   enable_symvers=yes
63361 fi;
63362
63363
63364 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
63365 # don't know enough about $LD to do tricks...
63366
63367 # FIXME  The following test is too strict, in theory.
63368 if test $enable_shared = no ||
63369         test "x$LD" = x ||
63370         test x$glibcxx_gnu_ld_version = x; then
63371   enable_symvers=no
63372 fi
63373
63374 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
63375 if test $enable_symvers != no; then
63376   echo "$as_me:$LINENO: checking for shared libgcc" >&5
63377 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
63378   ac_save_CFLAGS="$CFLAGS"
63379   CFLAGS=' -lgcc_s'
63380   if test x$gcc_no_link = xyes; then
63381   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63382 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63383    { (exit 1); exit 1; }; }
63384 fi
63385 cat >conftest.$ac_ext <<_ACEOF
63386 #line $LINENO "configure"
63387 /* confdefs.h.  */
63388 _ACEOF
63389 cat confdefs.h >>conftest.$ac_ext
63390 cat >>conftest.$ac_ext <<_ACEOF
63391 /* end confdefs.h.  */
63392
63393 int
63394 main ()
63395 {
63396 return 0;
63397   ;
63398   return 0;
63399 }
63400 _ACEOF
63401 rm -f conftest.$ac_objext conftest$ac_exeext
63402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63403   (eval $ac_link) 2>&5
63404   ac_status=$?
63405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63406   (exit $ac_status); } &&
63407          { ac_try='test -s conftest$ac_exeext'
63408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63409   (eval $ac_try) 2>&5
63410   ac_status=$?
63411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63412   (exit $ac_status); }; }; then
63413   glibcxx_shared_libgcc=yes
63414 else
63415   echo "$as_me: failed program was:" >&5
63416 sed 's/^/| /' conftest.$ac_ext >&5
63417
63418 glibcxx_shared_libgcc=no
63419 fi
63420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
63421   CFLAGS="$ac_save_CFLAGS"
63422   echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
63423 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
63424 fi
63425
63426 # For GNU ld, we need at least this version.  The format is described in
63427 # GLIBCXX_CHECK_LINKER_FEATURES above.
63428 glibcxx_min_gnu_ld_version=21400
63429 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
63430
63431 # Check to see if unspecified "yes" value can win, given results above.
63432 # Change "yes" into either "no" or a style name.
63433 if test $enable_symvers = yes; then
63434   if test $with_gnu_ld = yes &&
63435      test $glibcxx_shared_libgcc = yes;
63436   then
63437     if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
63438       enable_symvers=gnu
63439     else
63440       # The right tools, the right setup, but too old.  Fallbacks?
63441       { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
63442 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
63443       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
63444 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
63445       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
63446 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
63447       { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
63448 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
63449       if test $glibcxx_gnu_ld_version -ge 21200 ; then
63450         # Globbing fix is present, proper block support is not.
63451                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
63452 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
63453         enable_symvers=no
63454       else
63455         # 2.11 or older.
63456         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
63457 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
63458         enable_symvers=no
63459       fi
63460     fi
63461   else
63462     # just fail for now
63463     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
63464 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
63465     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
63466 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
63467     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
63468 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
63469     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
63470 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
63471     enable_symvers=no
63472   fi
63473 fi
63474
63475 # Everything parsed; figure out what file to use.
63476 case $enable_symvers in
63477   no)
63478     SYMVER_MAP=config/linker-map.dummy
63479     ;;
63480   gnu)
63481     SYMVER_MAP=config/linker-map.gnu
63482     cat >>confdefs.h <<\_ACEOF
63483 #define _GLIBCXX_SYMVER 1
63484 _ACEOF
63485
63486     ;;
63487 esac
63488
63489
63490
63491
63492 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
63493 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
63494
63495
63496 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
63497
63498   if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
63499     # Do checks for memory limit functions.
63500
63501   setrlimit_have_headers=yes
63502
63503
63504
63505 for ac_header in unistd.h sys/time.h sys/resource.h
63506 do
63507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63509   echo "$as_me:$LINENO: checking for $ac_header" >&5
63510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63512   echo $ECHO_N "(cached) $ECHO_C" >&6
63513 fi
63514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63516 else
63517   # Is the header compilable?
63518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63520 cat >conftest.$ac_ext <<_ACEOF
63521 #line $LINENO "configure"
63522 /* confdefs.h.  */
63523 _ACEOF
63524 cat confdefs.h >>conftest.$ac_ext
63525 cat >>conftest.$ac_ext <<_ACEOF
63526 /* end confdefs.h.  */
63527 $ac_includes_default
63528 #include <$ac_header>
63529 _ACEOF
63530 rm -f conftest.$ac_objext
63531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63532   (eval $ac_compile) 2>&5
63533   ac_status=$?
63534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63535   (exit $ac_status); } &&
63536          { ac_try='test -s conftest.$ac_objext'
63537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63538   (eval $ac_try) 2>&5
63539   ac_status=$?
63540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63541   (exit $ac_status); }; }; then
63542   ac_header_compiler=yes
63543 else
63544   echo "$as_me: failed program was:" >&5
63545 sed 's/^/| /' conftest.$ac_ext >&5
63546
63547 ac_header_compiler=no
63548 fi
63549 rm -f conftest.$ac_objext conftest.$ac_ext
63550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63551 echo "${ECHO_T}$ac_header_compiler" >&6
63552
63553 # Is the header present?
63554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
63555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63556 cat >conftest.$ac_ext <<_ACEOF
63557 #line $LINENO "configure"
63558 /* confdefs.h.  */
63559 _ACEOF
63560 cat confdefs.h >>conftest.$ac_ext
63561 cat >>conftest.$ac_ext <<_ACEOF
63562 /* end confdefs.h.  */
63563 #include <$ac_header>
63564 _ACEOF
63565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63567   ac_status=$?
63568   grep -v '^ *+' conftest.er1 >conftest.err
63569   rm -f conftest.er1
63570   cat conftest.err >&5
63571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63572   (exit $ac_status); } >/dev/null; then
63573   if test -s conftest.err; then
63574     ac_cpp_err=$ac_c_preproc_warn_flag
63575   else
63576     ac_cpp_err=
63577   fi
63578 else
63579   ac_cpp_err=yes
63580 fi
63581 if test -z "$ac_cpp_err"; then
63582   ac_header_preproc=yes
63583 else
63584   echo "$as_me: failed program was:" >&5
63585 sed 's/^/| /' conftest.$ac_ext >&5
63586
63587   ac_header_preproc=no
63588 fi
63589 rm -f conftest.err conftest.$ac_ext
63590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63591 echo "${ECHO_T}$ac_header_preproc" >&6
63592
63593 # So?  What about this header?
63594 case $ac_header_compiler:$ac_header_preproc in
63595   yes:no )
63596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63600     (
63601       cat <<\_ASBOX
63602 ## ------------------------------------ ##
63603 ## Report this to bug-autoconf@gnu.org. ##
63604 ## ------------------------------------ ##
63605 _ASBOX
63606     ) |
63607       sed "s/^/$as_me: WARNING:     /" >&2
63608     ;;
63609   no:yes )
63610     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63612     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
63613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
63614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63616     (
63617       cat <<\_ASBOX
63618 ## ------------------------------------ ##
63619 ## Report this to bug-autoconf@gnu.org. ##
63620 ## ------------------------------------ ##
63621 _ASBOX
63622     ) |
63623       sed "s/^/$as_me: WARNING:     /" >&2
63624     ;;
63625 esac
63626 echo "$as_me:$LINENO: checking for $ac_header" >&5
63627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63629   echo $ECHO_N "(cached) $ECHO_C" >&6
63630 else
63631   eval "$as_ac_Header=$ac_header_preproc"
63632 fi
63633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63635
63636 fi
63637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63638   cat >>confdefs.h <<_ACEOF
63639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63640 _ACEOF
63641
63642 else
63643   setrlimit_have_headers=no
63644 fi
63645
63646 done
63647
63648   # If don't have the headers, then we can't run the tests now, and we
63649   # won't be seeing any of these during testsuite compilation.
63650   if test $setrlimit_have_headers = yes; then
63651     # Can't do these in a loop, else the resulting syntax is wrong.
63652
63653   cat >conftest.$ac_ext <<_ACEOF
63654 #line $LINENO "configure"
63655 /* confdefs.h.  */
63656 _ACEOF
63657 cat confdefs.h >>conftest.$ac_ext
63658 cat >>conftest.$ac_ext <<_ACEOF
63659 /* end confdefs.h.  */
63660 #include <unistd.h>
63661      #include <sys/time.h>
63662      #include <sys/resource.h>
63663
63664 int
63665 main ()
63666 {
63667  int f = RLIMIT_DATA ;
63668   ;
63669   return 0;
63670 }
63671 _ACEOF
63672 rm -f conftest.$ac_objext
63673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63674   (eval $ac_compile) 2>&5
63675   ac_status=$?
63676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63677   (exit $ac_status); } &&
63678          { ac_try='test -s conftest.$ac_objext'
63679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63680   (eval $ac_try) 2>&5
63681   ac_status=$?
63682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63683   (exit $ac_status); }; }; then
63684   glibcxx_mresult=1
63685 else
63686   echo "$as_me: failed program was:" >&5
63687 sed 's/^/| /' conftest.$ac_ext >&5
63688
63689 glibcxx_mresult=0
63690 fi
63691 rm -f conftest.$ac_objext conftest.$ac_ext
63692
63693 cat >>confdefs.h <<_ACEOF
63694 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
63695 _ACEOF
63696
63697
63698
63699   cat >conftest.$ac_ext <<_ACEOF
63700 #line $LINENO "configure"
63701 /* confdefs.h.  */
63702 _ACEOF
63703 cat confdefs.h >>conftest.$ac_ext
63704 cat >>conftest.$ac_ext <<_ACEOF
63705 /* end confdefs.h.  */
63706 #include <unistd.h>
63707      #include <sys/time.h>
63708      #include <sys/resource.h>
63709
63710 int
63711 main ()
63712 {
63713  int f = RLIMIT_RSS ;
63714   ;
63715   return 0;
63716 }
63717 _ACEOF
63718 rm -f conftest.$ac_objext
63719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63720   (eval $ac_compile) 2>&5
63721   ac_status=$?
63722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63723   (exit $ac_status); } &&
63724          { ac_try='test -s conftest.$ac_objext'
63725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63726   (eval $ac_try) 2>&5
63727   ac_status=$?
63728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63729   (exit $ac_status); }; }; then
63730   glibcxx_mresult=1
63731 else
63732   echo "$as_me: failed program was:" >&5
63733 sed 's/^/| /' conftest.$ac_ext >&5
63734
63735 glibcxx_mresult=0
63736 fi
63737 rm -f conftest.$ac_objext conftest.$ac_ext
63738
63739 cat >>confdefs.h <<_ACEOF
63740 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
63741 _ACEOF
63742
63743
63744
63745   cat >conftest.$ac_ext <<_ACEOF
63746 #line $LINENO "configure"
63747 /* confdefs.h.  */
63748 _ACEOF
63749 cat confdefs.h >>conftest.$ac_ext
63750 cat >>conftest.$ac_ext <<_ACEOF
63751 /* end confdefs.h.  */
63752 #include <unistd.h>
63753      #include <sys/time.h>
63754      #include <sys/resource.h>
63755
63756 int
63757 main ()
63758 {
63759  int f = RLIMIT_VMEM ;
63760   ;
63761   return 0;
63762 }
63763 _ACEOF
63764 rm -f conftest.$ac_objext
63765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63766   (eval $ac_compile) 2>&5
63767   ac_status=$?
63768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63769   (exit $ac_status); } &&
63770          { ac_try='test -s conftest.$ac_objext'
63771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63772   (eval $ac_try) 2>&5
63773   ac_status=$?
63774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63775   (exit $ac_status); }; }; then
63776   glibcxx_mresult=1
63777 else
63778   echo "$as_me: failed program was:" >&5
63779 sed 's/^/| /' conftest.$ac_ext >&5
63780
63781 glibcxx_mresult=0
63782 fi
63783 rm -f conftest.$ac_objext conftest.$ac_ext
63784
63785 cat >>confdefs.h <<_ACEOF
63786 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
63787 _ACEOF
63788
63789
63790
63791   cat >conftest.$ac_ext <<_ACEOF
63792 #line $LINENO "configure"
63793 /* confdefs.h.  */
63794 _ACEOF
63795 cat confdefs.h >>conftest.$ac_ext
63796 cat >>conftest.$ac_ext <<_ACEOF
63797 /* end confdefs.h.  */
63798 #include <unistd.h>
63799      #include <sys/time.h>
63800      #include <sys/resource.h>
63801
63802 int
63803 main ()
63804 {
63805  int f = RLIMIT_AS ;
63806   ;
63807   return 0;
63808 }
63809 _ACEOF
63810 rm -f conftest.$ac_objext
63811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63812   (eval $ac_compile) 2>&5
63813   ac_status=$?
63814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63815   (exit $ac_status); } &&
63816          { ac_try='test -s conftest.$ac_objext'
63817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63818   (eval $ac_try) 2>&5
63819   ac_status=$?
63820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63821   (exit $ac_status); }; }; then
63822   glibcxx_mresult=1
63823 else
63824   echo "$as_me: failed program was:" >&5
63825 sed 's/^/| /' conftest.$ac_ext >&5
63826
63827 glibcxx_mresult=0
63828 fi
63829 rm -f conftest.$ac_objext conftest.$ac_ext
63830
63831 cat >>confdefs.h <<_ACEOF
63832 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
63833 _ACEOF
63834
63835
63836
63837     # Check for rlimit, setrlimit.
63838     if test "${ac_setrlimit+set}" = set; then
63839   echo $ECHO_N "(cached) $ECHO_C" >&6
63840 else
63841
63842       cat >conftest.$ac_ext <<_ACEOF
63843 #line $LINENO "configure"
63844 /* confdefs.h.  */
63845 _ACEOF
63846 cat confdefs.h >>conftest.$ac_ext
63847 cat >>conftest.$ac_ext <<_ACEOF
63848 /* end confdefs.h.  */
63849 #include <unistd.h>
63850          #include <sys/time.h>
63851          #include <sys/resource.h>
63852
63853 int
63854 main ()
63855 {
63856 struct rlimit r;
63857          setrlimit(0, &r);
63858   ;
63859   return 0;
63860 }
63861 _ACEOF
63862 rm -f conftest.$ac_objext
63863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63864   (eval $ac_compile) 2>&5
63865   ac_status=$?
63866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63867   (exit $ac_status); } &&
63868          { ac_try='test -s conftest.$ac_objext'
63869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63870   (eval $ac_try) 2>&5
63871   ac_status=$?
63872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63873   (exit $ac_status); }; }; then
63874   ac_setrlimit=yes
63875 else
63876   echo "$as_me: failed program was:" >&5
63877 sed 's/^/| /' conftest.$ac_ext >&5
63878
63879 ac_setrlimit=no
63880 fi
63881 rm -f conftest.$ac_objext conftest.$ac_ext
63882
63883 fi
63884
63885   fi
63886
63887   echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
63888 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
63889   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
63890     ac_mem_limits=yes
63891     cat >>confdefs.h <<\_ACEOF
63892 #define _GLIBCXX_MEM_LIMITS 1
63893 _ACEOF
63894
63895   else
63896     ac_mem_limits=no
63897   fi
63898   echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
63899 echo "${ECHO_T}$ac_mem_limits" >&6
63900
63901
63902     # Look for setenv, so that extended locale tests can be performed.
63903
63904   echo "$as_me:$LINENO: checking for setenv declaration" >&5
63905 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
63906   if test x${glibcxx_cv_func_setenv_use+set} != xset; then
63907     if test "${glibcxx_cv_func_setenv_use+set}" = set; then
63908   echo $ECHO_N "(cached) $ECHO_C" >&6
63909 else
63910
63911
63912
63913       ac_ext=cc
63914 ac_cpp='$CXXCPP $CPPFLAGS'
63915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
63916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
63917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
63918
63919       cat >conftest.$ac_ext <<_ACEOF
63920 #line $LINENO "configure"
63921 /* confdefs.h.  */
63922 _ACEOF
63923 cat confdefs.h >>conftest.$ac_ext
63924 cat >>conftest.$ac_ext <<_ACEOF
63925 /* end confdefs.h.  */
63926 #include <stdlib.h>
63927 int
63928 main ()
63929 {
63930  setenv(0, 0, 0);
63931   ;
63932   return 0;
63933 }
63934 _ACEOF
63935 rm -f conftest.$ac_objext
63936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63937   (eval $ac_compile) 2>&5
63938   ac_status=$?
63939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63940   (exit $ac_status); } &&
63941          { ac_try='test -s conftest.$ac_objext'
63942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63943   (eval $ac_try) 2>&5
63944   ac_status=$?
63945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63946   (exit $ac_status); }; }; then
63947   glibcxx_cv_func_setenv_use=yes
63948 else
63949   echo "$as_me: failed program was:" >&5
63950 sed 's/^/| /' conftest.$ac_ext >&5
63951
63952 glibcxx_cv_func_setenv_use=no
63953 fi
63954 rm -f conftest.$ac_objext conftest.$ac_ext
63955       ac_ext=c
63956 ac_cpp='$CPP $CPPFLAGS'
63957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
63958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
63959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
63960
63961
63962 fi
63963
63964   fi
63965   echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
63966 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
63967   if test x$glibcxx_cv_func_setenv_use = x"yes"; then
63968
63969 for ac_func in setenv
63970 do
63971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63972 echo "$as_me:$LINENO: checking for $ac_func" >&5
63973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63974 if eval "test \"\${$as_ac_var+set}\" = set"; then
63975   echo $ECHO_N "(cached) $ECHO_C" >&6
63976 else
63977   if test x$gcc_no_link = xyes; then
63978   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63980    { (exit 1); exit 1; }; }
63981 fi
63982 cat >conftest.$ac_ext <<_ACEOF
63983 #line $LINENO "configure"
63984 /* confdefs.h.  */
63985 _ACEOF
63986 cat confdefs.h >>conftest.$ac_ext
63987 cat >>conftest.$ac_ext <<_ACEOF
63988 /* end confdefs.h.  */
63989 /* System header to define __stub macros and hopefully few prototypes,
63990     which can conflict with char $ac_func (); below.
63991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63992     <limits.h> exists even on freestanding compilers.  */
63993 #ifdef __STDC__
63994 # include <limits.h>
63995 #else
63996 # include <assert.h>
63997 #endif
63998 /* Override any gcc2 internal prototype to avoid an error.  */
63999 #ifdef __cplusplus
64000 extern "C"
64001 {
64002 #endif
64003 /* We use char because int might match the return type of a gcc2
64004    builtin and then its argument prototype would still apply.  */
64005 char $ac_func ();
64006 /* The GNU C library defines this for functions which it implements
64007     to always fail with ENOSYS.  Some functions are actually named
64008     something starting with __ and the normal name is an alias.  */
64009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64010 choke me
64011 #else
64012 char (*f) () = $ac_func;
64013 #endif
64014 #ifdef __cplusplus
64015 }
64016 #endif
64017
64018 int
64019 main ()
64020 {
64021 return f != $ac_func;
64022   ;
64023   return 0;
64024 }
64025 _ACEOF
64026 rm -f conftest.$ac_objext conftest$ac_exeext
64027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64028   (eval $ac_link) 2>&5
64029   ac_status=$?
64030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64031   (exit $ac_status); } &&
64032          { ac_try='test -s conftest$ac_exeext'
64033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64034   (eval $ac_try) 2>&5
64035   ac_status=$?
64036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64037   (exit $ac_status); }; }; then
64038   eval "$as_ac_var=yes"
64039 else
64040   echo "$as_me: failed program was:" >&5
64041 sed 's/^/| /' conftest.$ac_ext >&5
64042
64043 eval "$as_ac_var=no"
64044 fi
64045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
64046 fi
64047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64049 if test `eval echo '${'$as_ac_var'}'` = yes; then
64050   cat >>confdefs.h <<_ACEOF
64051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64052 _ACEOF
64053
64054 fi
64055 done
64056
64057   fi
64058
64059
64060     if test $enable_symvers = no; then
64061       enable_abi_check=no
64062     else
64063       case "$host" in
64064         *-*-cygwin*)
64065           enable_abi_check=no ;;
64066         *)
64067           enable_abi_check=yes ;;
64068       esac
64069     fi
64070   else
64071     # Only build this as native, since automake does not understand
64072     # CXX_FOR_BUILD.
64073     enable_abi_check=no
64074   fi
64075
64076   # Export file names for ABI checking.
64077   baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
64078
64079
64080
64081
64082
64083
64084 # Propagate the target-specific source directories through the build chain.
64085 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
64086 # uses it, and it only gets used in this file.)
64087 ATOMICITY_INC_SRCDIR=config/${atomicity_include_dir}
64088 OS_INC_SRCDIR=config/${os_include_dir}
64089
64090
64091
64092 # Determine cross-compile flags and AM_CONDITIONALs.
64093 #AC_SUBST(GLIBCXX_IS_NATIVE)
64094 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
64095 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
64096 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH,  test $need_libmath = yes)
64097
64098
64099 if test $is_hosted = yes; then
64100   GLIBCXX_HOSTED_TRUE=
64101   GLIBCXX_HOSTED_FALSE='#'
64102 else
64103   GLIBCXX_HOSTED_TRUE='#'
64104   GLIBCXX_HOSTED_FALSE=
64105 fi
64106
64107
64108
64109
64110 if test $enable_libstdcxx_pch = yes; then
64111   GLIBCXX_BUILD_PCH_TRUE=
64112   GLIBCXX_BUILD_PCH_FALSE='#'
64113 else
64114   GLIBCXX_BUILD_PCH_TRUE='#'
64115   GLIBCXX_BUILD_PCH_FALSE=
64116 fi
64117
64118
64119
64120
64121 if test $enable_cheaders = c; then
64122   GLIBCXX_C_HEADERS_C_TRUE=
64123   GLIBCXX_C_HEADERS_C_FALSE='#'
64124 else
64125   GLIBCXX_C_HEADERS_C_TRUE='#'
64126   GLIBCXX_C_HEADERS_C_FALSE=
64127 fi
64128
64129
64130
64131
64132 if test $enable_cheaders = c_std; then
64133   GLIBCXX_C_HEADERS_C_STD_TRUE=
64134   GLIBCXX_C_HEADERS_C_STD_FALSE='#'
64135 else
64136   GLIBCXX_C_HEADERS_C_STD_TRUE='#'
64137   GLIBCXX_C_HEADERS_C_STD_FALSE=
64138 fi
64139
64140
64141
64142
64143 if test $c_compatibility = yes; then
64144   GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
64145   GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
64146 else
64147   GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
64148   GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
64149 fi
64150
64151
64152
64153
64154 if test $enable_libstdcxx_debug = yes; then
64155   GLIBCXX_BUILD_DEBUG_TRUE=
64156   GLIBCXX_BUILD_DEBUG_FALSE='#'
64157 else
64158   GLIBCXX_BUILD_DEBUG_TRUE='#'
64159   GLIBCXX_BUILD_DEBUG_FALSE=
64160 fi
64161
64162
64163
64164
64165 if test $enable_symvers != no; then
64166   GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
64167   GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
64168 else
64169   GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
64170   GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
64171 fi
64172
64173
64174
64175
64176 if test $enable_wchar_t = yes; then
64177   GLIBCXX_TEST_WCHAR_T_TRUE=
64178   GLIBCXX_TEST_WCHAR_T_FALSE='#'
64179 else
64180   GLIBCXX_TEST_WCHAR_T_TRUE='#'
64181   GLIBCXX_TEST_WCHAR_T_FALSE=
64182 fi
64183
64184
64185
64186
64187 if test $enable_abi_check = yes; then
64188   GLIBCXX_TEST_ABI_TRUE=
64189   GLIBCXX_TEST_ABI_FALSE='#'
64190 else
64191   GLIBCXX_TEST_ABI_TRUE='#'
64192   GLIBCXX_TEST_ABI_FALSE=
64193 fi
64194
64195
64196
64197
64198 cat >confcache <<\_ACEOF
64199 # This file is a shell script that caches the results of configure
64200 # tests run on this system so they can be shared between configure
64201 # scripts and configure runs, see configure's option --config-cache.
64202 # It is not useful on other systems.  If it contains results you don't
64203 # want to keep, you may remove or edit it.
64204 #
64205 # config.status only pays attention to the cache file if you give it
64206 # the --recheck option to rerun configure.
64207 #
64208 # `ac_cv_env_foo' variables (set or unset) will be overridden when
64209 # loading this file, other *unset* `ac_cv_foo' will be assigned the
64210 # following values.
64211
64212 _ACEOF
64213
64214 # The following way of writing the cache mishandles newlines in values,
64215 # but we know of no workaround that is simple, portable, and efficient.
64216 # So, don't put newlines in cache variables' values.
64217 # Ultrix sh set writes to stderr and can't be redirected directly,
64218 # and sets the high bit in the cache file unless we assign to the vars.
64219 {
64220   (set) 2>&1 |
64221     case `(ac_space=' '; set | grep ac_space) 2>&1` in
64222     *ac_space=\ *)
64223       # `set' does not quote correctly, so add quotes (double-quote
64224       # substitution turns \\\\ into \\, and sed turns \\ into \).
64225       sed -n \
64226         "s/'/'\\\\''/g;
64227           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64228       ;;
64229     *)
64230       # `set' quotes correctly as required by POSIX, so do not add quotes.
64231       sed -n \
64232         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
64233       ;;
64234     esac;
64235 } |
64236   sed '
64237      t clear
64238      : clear
64239      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
64240      t end
64241      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
64242      : end' >>confcache
64243 if diff $cache_file confcache >/dev/null 2>&1; then :; else
64244   if test -w $cache_file; then
64245     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
64246     cat confcache >$cache_file
64247   else
64248     echo "not updating unwritable cache $cache_file"
64249   fi
64250 fi
64251 rm -f confcache
64252
64253 if test ${multilib} = yes; then
64254   multilib_arg="--enable-multilib"
64255 else
64256   multilib_arg=
64257 fi
64258
64259 # Export all the install information.
64260
64261   glibcxx_toolexecdir=no
64262   glibcxx_toolexeclibdir=no
64263   glibcxx_prefixdir=$prefix
64264
64265   echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
64266 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
64267
64268 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
64269 if test "${with_gxx_include_dir+set}" = set; then
64270   withval="$with_gxx_include_dir"
64271   case "$withval" in
64272       yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
64273 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
64274    { (exit 1); exit 1; }; } ;;
64275       no)  gxx_include_dir=no ;;
64276       *)   gxx_include_dir=$withval ;;
64277      esac
64278 else
64279   gxx_include_dir=no
64280 fi;
64281   echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
64282 echo "${ECHO_T}$gxx_include_dir" >&6
64283
64284   echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
64285 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
64286   # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
64287 if test "${enable_version_specific_runtime_libs+set}" = set; then
64288   enableval="$enable_version_specific_runtime_libs"
64289   case "$enableval" in
64290       yes) version_specific_libs=yes ;;
64291       no)  version_specific_libs=no ;;
64292       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
64293 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
64294    { (exit 1); exit 1; }; };;
64295      esac
64296 else
64297   version_specific_libs=no
64298 fi;
64299   echo "$as_me:$LINENO: result: $version_specific_libs" >&5
64300 echo "${ECHO_T}$version_specific_libs" >&6
64301
64302   # Default case for install directory for include files.
64303   if test $version_specific_libs = no && test $gxx_include_dir = no; then
64304     gxx_include_dir='${prefix}'/include/c++/${gcc_version}
64305   fi
64306
64307   # Version-specific runtime libs processing.
64308   if test $version_specific_libs = yes; then
64309     # Need the gcc compiler version to know where to install libraries
64310     # and header files if --enable-version-specific-runtime-libs option
64311     # is selected.
64312     if test x"$gxx_include_dir" = x"no"; then
64313       gxx_include_dir='${libdir}/gcc-lib/${host_alias}/'$gcc_version/include/c++
64314     fi
64315     glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
64316     glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
64317   fi
64318
64319   # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
64320   # Install a library built with a cross compiler in tooldir, not libdir.
64321   if test x"$glibcxx_toolexecdir" = x"no"; then
64322     if test -n "$with_cross_host" &&
64323        test x"$with_cross_host" != x"no"; then
64324       glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
64325       glibcxx_toolexeclibdir='${toolexecdir}/lib'
64326     else
64327       glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
64328       glibcxx_toolexeclibdir='${libdir}'
64329     fi
64330     multi_os_directory=`$CXX -print-multi-os-directory`
64331     case $multi_os_directory in
64332       .) ;; # Avoid trailing /.
64333       *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
64334     esac
64335   fi
64336
64337   echo "$as_me:$LINENO: checking for install location" >&5
64338 echo $ECHO_N "checking for install location... $ECHO_C" >&6
64339   echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
64340 echo "${ECHO_T}$gxx_include_dir" >&6
64341
64342
64343
64344
64345
64346
64347
64348 # Export all the include and flag information to Makefiles.
64349
64350   # Used for every C++ compile we perform.
64351   GLIBCXX_INCLUDES="\
64352 -I$glibcxx_builddir/include/$host_alias \
64353 -I$glibcxx_builddir/include \
64354 -I$glibcxx_srcdir/libsupc++"
64355
64356   # For Canadian crosses, pick this up too.
64357   if test $CANADIAN = yes; then
64358     GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
64359   fi
64360
64361   # Stuff in the actual top level.  Currently only used by libsupc++ to
64362   # get unwind* headers from the gcc dir.
64363   #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
64364   TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
64365
64366   # Now, export this to all the little Makefiles....
64367
64368
64369
64370
64371   # Optimization flags that are probably a good idea for thrill-seekers. Just
64372   # uncomment the lines below and make, everything else is ready to go...
64373   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
64374   OPTIMIZE_CXXFLAGS=
64375
64376
64377   WARN_FLAGS='-Wall -W -Wwrite-strings -Wcast-qual'
64378
64379
64380
64381 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
64382    grep "enable shared" > /dev/null;
64383 then
64384   LIBSUPCXX_PICFLAGS=-prefer-pic
64385 else
64386   LIBSUPCXX_PICFLAGS=
64387 fi
64388
64389
64390                                                                       ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
64391
64392           ac_config_files="$ac_config_files scripts/check_survey"
64393
64394           ac_config_files="$ac_config_files scripts/testsuite_flags"
64395
64396
64397           ac_config_commands="$ac_config_commands default"
64398
64399
64400 cat >confcache <<\_ACEOF
64401 # This file is a shell script that caches the results of configure
64402 # tests run on this system so they can be shared between configure
64403 # scripts and configure runs, see configure's option --config-cache.
64404 # It is not useful on other systems.  If it contains results you don't
64405 # want to keep, you may remove or edit it.
64406 #
64407 # config.status only pays attention to the cache file if you give it
64408 # the --recheck option to rerun configure.
64409 #
64410 # `ac_cv_env_foo' variables (set or unset) will be overridden when
64411 # loading this file, other *unset* `ac_cv_foo' will be assigned the
64412 # following values.
64413
64414 _ACEOF
64415
64416 # The following way of writing the cache mishandles newlines in values,
64417 # but we know of no workaround that is simple, portable, and efficient.
64418 # So, don't put newlines in cache variables' values.
64419 # Ultrix sh set writes to stderr and can't be redirected directly,
64420 # and sets the high bit in the cache file unless we assign to the vars.
64421 {
64422   (set) 2>&1 |
64423     case `(ac_space=' '; set | grep ac_space) 2>&1` in
64424     *ac_space=\ *)
64425       # `set' does not quote correctly, so add quotes (double-quote
64426       # substitution turns \\\\ into \\, and sed turns \\ into \).
64427       sed -n \
64428         "s/'/'\\\\''/g;
64429           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64430       ;;
64431     *)
64432       # `set' quotes correctly as required by POSIX, so do not add quotes.
64433       sed -n \
64434         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
64435       ;;
64436     esac;
64437 } |
64438   sed '
64439      t clear
64440      : clear
64441      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
64442      t end
64443      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
64444      : end' >>confcache
64445 if diff $cache_file confcache >/dev/null 2>&1; then :; else
64446   if test -w $cache_file; then
64447     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
64448     cat confcache >$cache_file
64449   else
64450     echo "not updating unwritable cache $cache_file"
64451   fi
64452 fi
64453 rm -f confcache
64454
64455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
64456 # Let make expand exec_prefix.
64457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
64458
64459 # VPATH may cause trouble with some makes, so we remove $(srcdir),
64460 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
64461 # trailing colons and then remove the whole line if VPATH becomes empty
64462 # (actually we leave an empty line to preserve line numbers).
64463 if test "x$srcdir" = x.; then
64464   ac_vpsub='/^[         ]*VPATH[        ]*=/{
64465 s/:*\$(srcdir):*/:/;
64466 s/:*\${srcdir}:*/:/;
64467 s/:*@srcdir@:*/:/;
64468 s/^\([^=]*=[    ]*\):*/\1/;
64469 s/:*$//;
64470 s/^[^=]*=[      ]*$//;
64471 }'
64472 fi
64473
64474 DEFS=-DHAVE_CONFIG_H
64475
64476 ac_libobjs=
64477 ac_ltlibobjs=
64478 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
64479   # 1. Remove the extension, and $U if already installed.
64480   ac_i=`echo "$ac_i" |
64481          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
64482   # 2. Add them.
64483   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
64484   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
64485 done
64486 LIBOBJS=$ac_libobjs
64487
64488 LTLIBOBJS=$ac_ltlibobjs
64489
64490
64491 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
64492   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
64493 Usually this means the macro was only invoked conditionally." >&5
64494 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
64495 Usually this means the macro was only invoked conditionally." >&2;}
64496    { (exit 1); exit 1; }; }
64497 fi
64498 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
64499   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
64500 Usually this means the macro was only invoked conditionally." >&5
64501 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
64502 Usually this means the macro was only invoked conditionally." >&2;}
64503    { (exit 1); exit 1; }; }
64504 fi
64505 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
64506   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
64507 Usually this means the macro was only invoked conditionally." >&5
64508 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
64509 Usually this means the macro was only invoked conditionally." >&2;}
64510    { (exit 1); exit 1; }; }
64511 fi
64512 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
64513   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
64514 Usually this means the macro was only invoked conditionally." >&5
64515 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
64516 Usually this means the macro was only invoked conditionally." >&2;}
64517    { (exit 1); exit 1; }; }
64518 fi
64519 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
64520   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
64521 Usually this means the macro was only invoked conditionally." >&5
64522 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
64523 Usually this means the macro was only invoked conditionally." >&2;}
64524    { (exit 1); exit 1; }; }
64525 fi
64526 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
64527   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
64528 Usually this means the macro was only invoked conditionally." >&5
64529 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
64530 Usually this means the macro was only invoked conditionally." >&2;}
64531    { (exit 1); exit 1; }; }
64532 fi
64533 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
64534   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
64535 Usually this means the macro was only invoked conditionally." >&5
64536 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
64537 Usually this means the macro was only invoked conditionally." >&2;}
64538    { (exit 1); exit 1; }; }
64539 fi
64540 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
64541   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
64542 Usually this means the macro was only invoked conditionally." >&5
64543 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
64544 Usually this means the macro was only invoked conditionally." >&2;}
64545    { (exit 1); exit 1; }; }
64546 fi
64547 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
64548   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
64549 Usually this means the macro was only invoked conditionally." >&5
64550 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
64551 Usually this means the macro was only invoked conditionally." >&2;}
64552    { (exit 1); exit 1; }; }
64553 fi
64554 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
64555   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
64556 Usually this means the macro was only invoked conditionally." >&5
64557 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
64558 Usually this means the macro was only invoked conditionally." >&2;}
64559    { (exit 1); exit 1; }; }
64560 fi
64561
64562 : ${CONFIG_STATUS=./config.status}
64563 ac_clean_files_save=$ac_clean_files
64564 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
64565 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
64566 echo "$as_me: creating $CONFIG_STATUS" >&6;}
64567 cat >$CONFIG_STATUS <<_ACEOF
64568 #! $SHELL
64569 # Generated by $as_me.
64570 # Run this file to recreate the current configuration.
64571 # Compiler output produced by configure, useful for debugging
64572 # configure, is in config.log if it exists.
64573
64574 debug=false
64575 ac_cs_recheck=false
64576 ac_cs_silent=false
64577 SHELL=\${CONFIG_SHELL-$SHELL}
64578 _ACEOF
64579
64580 cat >>$CONFIG_STATUS <<\_ACEOF
64581 ## --------------------- ##
64582 ## M4sh Initialization.  ##
64583 ## --------------------- ##
64584
64585 # Be Bourne compatible
64586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
64587   emulate sh
64588   NULLCMD=:
64589   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
64590   # is contrary to our usage.  Disable this feature.
64591   alias -g '${1+"$@"}'='"$@"'
64592 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
64593   set -o posix
64594 fi
64595
64596 # Support unset when possible.
64597 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64598   as_unset=unset
64599 else
64600   as_unset=false
64601 fi
64602
64603
64604 # Work around bugs in pre-3.0 UWIN ksh.
64605 $as_unset ENV MAIL MAILPATH
64606 PS1='$ '
64607 PS2='> '
64608 PS4='+ '
64609
64610 # NLS nuisances.
64611 for as_var in \
64612   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
64613   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
64614   LC_TELEPHONE LC_TIME
64615 do
64616   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
64617     eval $as_var=C; export $as_var
64618   else
64619     $as_unset $as_var
64620   fi
64621 done
64622
64623 # Required to use basename.
64624 if expr a : '\(a\)' >/dev/null 2>&1; then
64625   as_expr=expr
64626 else
64627   as_expr=false
64628 fi
64629
64630 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
64631   as_basename=basename
64632 else
64633   as_basename=false
64634 fi
64635
64636
64637 # Name of the executable.
64638 as_me=`$as_basename "$0" ||
64639 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
64640          X"$0" : 'X\(//\)$' \| \
64641          X"$0" : 'X\(/\)$' \| \
64642          .     : '\(.\)' 2>/dev/null ||
64643 echo X/"$0" |
64644     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
64645           /^X\/\(\/\/\)$/{ s//\1/; q; }
64646           /^X\/\(\/\).*/{ s//\1/; q; }
64647           s/.*/./; q'`
64648
64649
64650 # PATH needs CR, and LINENO needs CR and PATH.
64651 # Avoid depending upon Character Ranges.
64652 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
64653 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
64654 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
64655 as_cr_digits='0123456789'
64656 as_cr_alnum=$as_cr_Letters$as_cr_digits
64657
64658 # The user is always right.
64659 if test "${PATH_SEPARATOR+set}" != set; then
64660   echo "#! /bin/sh" >conf$$.sh
64661   echo  "exit 0"   >>conf$$.sh
64662   chmod +x conf$$.sh
64663   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
64664     PATH_SEPARATOR=';'
64665   else
64666     PATH_SEPARATOR=:
64667   fi
64668   rm -f conf$$.sh
64669 fi
64670
64671
64672   as_lineno_1=$LINENO
64673   as_lineno_2=$LINENO
64674   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
64675   test "x$as_lineno_1" != "x$as_lineno_2" &&
64676   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
64677   # Find who we are.  Look in the path if we contain no path at all
64678   # relative or not.
64679   case $0 in
64680     *[\\/]* ) as_myself=$0 ;;
64681     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64682 for as_dir in $PATH
64683 do
64684   IFS=$as_save_IFS
64685   test -z "$as_dir" && as_dir=.
64686   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
64687 done
64688
64689        ;;
64690   esac
64691   # We did not find ourselves, most probably we were run as `sh COMMAND'
64692   # in which case we are not to be found in the path.
64693   if test "x$as_myself" = x; then
64694     as_myself=$0
64695   fi
64696   if test ! -f "$as_myself"; then
64697     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
64698 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
64699    { (exit 1); exit 1; }; }
64700   fi
64701   case $CONFIG_SHELL in
64702   '')
64703     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64704 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
64705 do
64706   IFS=$as_save_IFS
64707   test -z "$as_dir" && as_dir=.
64708   for as_base in sh bash ksh sh5; do
64709          case $as_dir in
64710          /*)
64711            if ("$as_dir/$as_base" -c '
64712   as_lineno_1=$LINENO
64713   as_lineno_2=$LINENO
64714   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
64715   test "x$as_lineno_1" != "x$as_lineno_2" &&
64716   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
64717              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
64718              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
64719              CONFIG_SHELL=$as_dir/$as_base
64720              export CONFIG_SHELL
64721              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
64722            fi;;
64723          esac
64724        done
64725 done
64726 ;;
64727   esac
64728
64729   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
64730   # uniformly replaced by the line number.  The first 'sed' inserts a
64731   # line-number line before each line; the second 'sed' does the real
64732   # work.  The second script uses 'N' to pair each line-number line
64733   # with the numbered line, and appends trailing '-' during
64734   # substitution so that $LINENO is not a special case at line end.
64735   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64736   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
64737   sed '=' <$as_myself |
64738     sed '
64739       N
64740       s,$,-,
64741       : loop
64742       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
64743       t loop
64744       s,-$,,
64745       s,^['$as_cr_digits']*\n,,
64746     ' >$as_me.lineno &&
64747   chmod +x $as_me.lineno ||
64748     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
64749 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
64750    { (exit 1); exit 1; }; }
64751
64752   # Don't try to exec as it changes $[0], causing all sort of problems
64753   # (the dirname of $[0] is not the place where we might find the
64754   # original and so on.  Autoconf is especially sensible to this).
64755   . ./$as_me.lineno
64756   # Exit status is that of the last command.
64757   exit
64758 }
64759
64760
64761 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
64762   *c*,-n*) ECHO_N= ECHO_C='
64763 ' ECHO_T='      ' ;;
64764   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
64765   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
64766 esac
64767
64768 if expr a : '\(a\)' >/dev/null 2>&1; then
64769   as_expr=expr
64770 else
64771   as_expr=false
64772 fi
64773
64774 rm -f conf$$ conf$$.exe conf$$.file
64775 echo >conf$$.file
64776 if ln -s conf$$.file conf$$ 2>/dev/null; then
64777   # We could just check for DJGPP; but this test a) works b) is more generic
64778   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
64779   if test -f conf$$.exe; then
64780     # Don't use ln at all; we don't have any links
64781     as_ln_s='cp -p'
64782   else
64783     as_ln_s='ln -s'
64784   fi
64785 elif ln conf$$.file conf$$ 2>/dev/null; then
64786   as_ln_s=ln
64787 else
64788   as_ln_s='cp -p'
64789 fi
64790 rm -f conf$$ conf$$.exe conf$$.file
64791
64792 if mkdir -p . 2>/dev/null; then
64793   as_mkdir_p=:
64794 else
64795   as_mkdir_p=false
64796 fi
64797
64798 as_executable_p="test -f"
64799
64800 # Sed expression to map a string onto a valid CPP name.
64801 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
64802
64803 # Sed expression to map a string onto a valid variable name.
64804 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
64805
64806
64807 # IFS
64808 # We need space, tab and new line, in precisely that order.
64809 as_nl='
64810 '
64811 IFS="   $as_nl"
64812
64813 # CDPATH.
64814 $as_unset CDPATH
64815
64816 exec 6>&1
64817
64818 # Open the log real soon, to keep \$[0] and so on meaningful, and to
64819 # report actual input values of CONFIG_FILES etc. instead of their
64820 # values after options handling.  Logging --version etc. is OK.
64821 exec 5>>config.log
64822 {
64823   echo
64824   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
64825 ## Running $as_me. ##
64826 _ASBOX
64827 } >&5
64828 cat >&5 <<_CSEOF
64829
64830 This file was extended by package-unused $as_me version-unused, which was
64831 generated by GNU Autoconf 2.57.  Invocation command line was
64832
64833   CONFIG_FILES    = $CONFIG_FILES
64834   CONFIG_HEADERS  = $CONFIG_HEADERS
64835   CONFIG_LINKS    = $CONFIG_LINKS
64836   CONFIG_COMMANDS = $CONFIG_COMMANDS
64837   $ $0 $@
64838
64839 _CSEOF
64840 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
64841 echo >&5
64842 _ACEOF
64843
64844 # Files that config.status was made for.
64845 if test -n "$ac_config_files"; then
64846   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
64847 fi
64848
64849 if test -n "$ac_config_headers"; then
64850   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
64851 fi
64852
64853 if test -n "$ac_config_links"; then
64854   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
64855 fi
64856
64857 if test -n "$ac_config_commands"; then
64858   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
64859 fi
64860
64861 cat >>$CONFIG_STATUS <<\_ACEOF
64862
64863 ac_cs_usage="\
64864 \`$as_me' instantiates files from templates according to the
64865 current configuration.
64866
64867 Usage: $0 [OPTIONS] [FILE]...
64868
64869   -h, --help       print this help, then exit
64870   -V, --version    print version number, then exit
64871   -q, --quiet      do not print progress messages
64872   -d, --debug      don't remove temporary files
64873       --recheck    update $as_me by reconfiguring in the same conditions
64874   --file=FILE[:TEMPLATE]
64875                    instantiate the configuration file FILE
64876   --header=FILE[:TEMPLATE]
64877                    instantiate the configuration header FILE
64878
64879 Configuration files:
64880 $config_files
64881
64882 Configuration headers:
64883 $config_headers
64884
64885 Configuration commands:
64886 $config_commands
64887
64888 Report bugs to <bug-autoconf@gnu.org>."
64889 _ACEOF
64890
64891 cat >>$CONFIG_STATUS <<_ACEOF
64892 ac_cs_version="\\
64893 package-unused config.status version-unused
64894 configured by $0, generated by GNU Autoconf 2.57,
64895   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
64896
64897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
64898 Free Software Foundation, Inc.
64899 This config.status script is free software; the Free Software Foundation
64900 gives unlimited permission to copy, distribute and modify it."
64901 srcdir=$srcdir
64902 INSTALL="$INSTALL"
64903 _ACEOF
64904
64905 cat >>$CONFIG_STATUS <<\_ACEOF
64906 # If no file are specified by the user, then we need to provide default
64907 # value.  By we need to know if files were specified by the user.
64908 ac_need_defaults=:
64909 while test $# != 0
64910 do
64911   case $1 in
64912   --*=*)
64913     ac_option=`expr "x$1" : 'x\([^=]*\)='`
64914     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
64915     ac_shift=:
64916     ;;
64917   -*)
64918     ac_option=$1
64919     ac_optarg=$2
64920     ac_shift=shift
64921     ;;
64922   *) # This is not an option, so the user has probably given explicit
64923      # arguments.
64924      ac_option=$1
64925      ac_need_defaults=false;;
64926   esac
64927
64928   case $ac_option in
64929   # Handling of the options.
64930 _ACEOF
64931 cat >>$CONFIG_STATUS <<\_ACEOF
64932   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
64933     ac_cs_recheck=: ;;
64934   --version | --vers* | -V )
64935     echo "$ac_cs_version"; exit 0 ;;
64936   --he | --h)
64937     # Conflict between --help and --header
64938     { { echo "$as_me:$LINENO: error: ambiguous option: $1
64939 Try \`$0 --help' for more information." >&5
64940 echo "$as_me: error: ambiguous option: $1
64941 Try \`$0 --help' for more information." >&2;}
64942    { (exit 1); exit 1; }; };;
64943   --help | --hel | -h )
64944     echo "$ac_cs_usage"; exit 0 ;;
64945   --debug | --d* | -d )
64946     debug=: ;;
64947   --file | --fil | --fi | --f )
64948     $ac_shift
64949     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
64950     ac_need_defaults=false;;
64951   --header | --heade | --head | --hea )
64952     $ac_shift
64953     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
64954     ac_need_defaults=false;;
64955   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
64956   | -silent | --silent | --silen | --sile | --sil | --si | --s)
64957     ac_cs_silent=: ;;
64958
64959   # This is an error.
64960   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
64961 Try \`$0 --help' for more information." >&5
64962 echo "$as_me: error: unrecognized option: $1
64963 Try \`$0 --help' for more information." >&2;}
64964    { (exit 1); exit 1; }; } ;;
64965
64966   *) ac_config_targets="$ac_config_targets $1" ;;
64967
64968   esac
64969   shift
64970 done
64971
64972 ac_configure_extra_args=
64973
64974 if $ac_cs_silent; then
64975   exec 6>/dev/null
64976   ac_configure_extra_args="$ac_configure_extra_args --silent"
64977 fi
64978
64979 _ACEOF
64980 cat >>$CONFIG_STATUS <<_ACEOF
64981 if \$ac_cs_recheck; then
64982   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
64983   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
64984 fi
64985
64986 _ACEOF
64987
64988 cat >>$CONFIG_STATUS <<_ACEOF
64989 #
64990 # INIT-COMMANDS section.
64991 #
64992
64993
64994 srcdir="$srcdir"
64995 host="$host"
64996 target="$target"
64997 with_multisubdir="$with_multisubdir"
64998 with_multisrctop="$with_multisrctop"
64999 with_target_subdir="$with_target_subdir"
65000 ac_configure_args="${multilib_arg} ${ac_configure_args}"
65001 multi_basedir="$multi_basedir"
65002 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
65003 CC="$CC"
65004
65005 # Variables needed in config.status (file generation) which aren't already
65006 # passed by autoconf.
65007 SUBDIRS="$SUBDIRS"
65008
65009
65010 _ACEOF
65011
65012
65013
65014 cat >>$CONFIG_STATUS <<\_ACEOF
65015 for ac_config_target in $ac_config_targets
65016 do
65017   case "$ac_config_target" in
65018   # Handling of arguments.
65019   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
65020   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
65021   "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
65022   "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
65023   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
65024   "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
65025   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
65026   "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
65027   "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
65028   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
65029   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
65030   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
65031   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
65032 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
65033    { (exit 1); exit 1; }; };;
65034   esac
65035 done
65036
65037 # If the user did not use the arguments to specify the items to instantiate,
65038 # then the envvar interface is used.  Set only those that are not.
65039 # We use the long form for the default assignment because of an extremely
65040 # bizarre bug on SunOS 4.1.3.
65041 if $ac_need_defaults; then
65042   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
65043   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
65044   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
65045 fi
65046
65047 # Have a temporary directory for convenience.  Make it in the build tree
65048 # simply because there is no reason to put it here, and in addition,
65049 # creating and moving files from /tmp can sometimes cause problems.
65050 # Create a temporary directory, and hook for its removal unless debugging.
65051 $debug ||
65052 {
65053   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
65054   trap '{ (exit 1); exit 1; }' 1 2 13 15
65055 }
65056
65057 # Create a (secure) tmp directory for tmp files.
65058
65059 {
65060   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
65061   test -n "$tmp" && test -d "$tmp"
65062 }  ||
65063 {
65064   tmp=./confstat$$-$RANDOM
65065   (umask 077 && mkdir $tmp)
65066 } ||
65067 {
65068    echo "$me: cannot create a temporary directory in ." >&2
65069    { (exit 1); exit 1; }
65070 }
65071
65072 _ACEOF
65073
65074 cat >>$CONFIG_STATUS <<_ACEOF
65075
65076 #
65077 # CONFIG_FILES section.
65078 #
65079
65080 # No need to generate the scripts if there are no CONFIG_FILES.
65081 # This happens for instance when ./config.status config.h
65082 if test -n "\$CONFIG_FILES"; then
65083   # Protect against being on the right side of a sed subst in config.status.
65084   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
65085    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
65086 s,@SHELL@,$SHELL,;t t
65087 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
65088 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
65089 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
65090 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
65091 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
65092 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
65093 s,@exec_prefix@,$exec_prefix,;t t
65094 s,@prefix@,$prefix,;t t
65095 s,@program_transform_name@,$program_transform_name,;t t
65096 s,@bindir@,$bindir,;t t
65097 s,@sbindir@,$sbindir,;t t
65098 s,@libexecdir@,$libexecdir,;t t
65099 s,@datadir@,$datadir,;t t
65100 s,@sysconfdir@,$sysconfdir,;t t
65101 s,@sharedstatedir@,$sharedstatedir,;t t
65102 s,@localstatedir@,$localstatedir,;t t
65103 s,@libdir@,$libdir,;t t
65104 s,@includedir@,$includedir,;t t
65105 s,@oldincludedir@,$oldincludedir,;t t
65106 s,@infodir@,$infodir,;t t
65107 s,@mandir@,$mandir,;t t
65108 s,@build_alias@,$build_alias,;t t
65109 s,@host_alias@,$host_alias,;t t
65110 s,@target_alias@,$target_alias,;t t
65111 s,@DEFS@,$DEFS,;t t
65112 s,@ECHO_C@,$ECHO_C,;t t
65113 s,@ECHO_N@,$ECHO_N,;t t
65114 s,@ECHO_T@,$ECHO_T,;t t
65115 s,@LIBS@,$LIBS,;t t
65116 s,@libtool_VERSION@,$libtool_VERSION,;t t
65117 s,@multi_basedir@,$multi_basedir,;t t
65118 s,@build@,$build,;t t
65119 s,@build_cpu@,$build_cpu,;t t
65120 s,@build_vendor@,$build_vendor,;t t
65121 s,@build_os@,$build_os,;t t
65122 s,@host@,$host,;t t
65123 s,@host_cpu@,$host_cpu,;t t
65124 s,@host_vendor@,$host_vendor,;t t
65125 s,@host_os@,$host_os,;t t
65126 s,@target@,$target,;t t
65127 s,@target_cpu@,$target_cpu,;t t
65128 s,@target_vendor@,$target_vendor,;t t
65129 s,@target_os@,$target_os,;t t
65130 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
65131 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
65132 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
65133 s,@CYGPATH_W@,$CYGPATH_W,;t t
65134 s,@PACKAGE@,$PACKAGE,;t t
65135 s,@VERSION@,$VERSION,;t t
65136 s,@ACLOCAL@,$ACLOCAL,;t t
65137 s,@AUTOCONF@,$AUTOCONF,;t t
65138 s,@AUTOMAKE@,$AUTOMAKE,;t t
65139 s,@AUTOHEADER@,$AUTOHEADER,;t t
65140 s,@MAKEINFO@,$MAKEINFO,;t t
65141 s,@AMTAR@,$AMTAR,;t t
65142 s,@install_sh@,$install_sh,;t t
65143 s,@STRIP@,$STRIP,;t t
65144 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
65145 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
65146 s,@AWK@,$AWK,;t t
65147 s,@SET_MAKE@,$SET_MAKE,;t t
65148 s,@am__leading_dot@,$am__leading_dot,;t t
65149 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
65150 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
65151 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
65152 s,@CC@,$CC,;t t
65153 s,@ac_ct_CC@,$ac_ct_CC,;t t
65154 s,@EXEEXT@,$EXEEXT,;t t
65155 s,@OBJEXT@,$OBJEXT,;t t
65156 s,@CXX@,$CXX,;t t
65157 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
65158 s,@CFLAGS@,$CFLAGS,;t t
65159 s,@CXXFLAGS@,$CXXFLAGS,;t t
65160 s,@LN_S@,$LN_S,;t t
65161 s,@AS@,$AS,;t t
65162 s,@ac_ct_AS@,$ac_ct_AS,;t t
65163 s,@AR@,$AR,;t t
65164 s,@ac_ct_AR@,$ac_ct_AR,;t t
65165 s,@RANLIB@,$RANLIB,;t t
65166 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
65167 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
65168 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
65169 s,@MAINT@,$MAINT,;t t
65170 s,@LIBTOOL@,$LIBTOOL,;t t
65171 s,@CXXCPP@,$CXXCPP,;t t
65172 s,@CPPFLAGS@,$CPPFLAGS,;t t
65173 s,@enable_shared@,$enable_shared,;t t
65174 s,@enable_static@,$enable_static,;t t
65175 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
65176 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
65177 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
65178 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
65179 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
65180 s,@CSTDIO_H@,$CSTDIO_H,;t t
65181 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
65182 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
65183 s,@CPP@,$CPP,;t t
65184 s,@EGREP@,$EGREP,;t t
65185 s,@check_msgfmt@,$check_msgfmt,;t t
65186 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
65187 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
65188 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
65189 s,@USE_NLS@,$USE_NLS,;t t
65190 s,@CLOCALE_H@,$CLOCALE_H,;t t
65191 s,@CCODECVT_H@,$CCODECVT_H,;t t
65192 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
65193 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
65194 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
65195 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
65196 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
65197 s,@CMONEY_CC@,$CMONEY_CC,;t t
65198 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
65199 s,@CTIME_H@,$CTIME_H,;t t
65200 s,@CTIME_CC@,$CTIME_CC,;t t
65201 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
65202 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
65203 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
65204 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
65205 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
65206 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
65207 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
65208 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
65209 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
65210 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
65211 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
65212 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
65213 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
65214 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
65215 s,@WERROR@,$WERROR,;t t
65216 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
65217 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
65218 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
65219 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
65220 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
65221 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
65222 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
65223 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
65224 s,@baseline_dir@,$baseline_dir,;t t
65225 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
65226 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
65227 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
65228 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
65229 s,@ATOMICITY_INC_SRCDIR@,$ATOMICITY_INC_SRCDIR,;t t
65230 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
65231 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
65232 s,@gxx_include_dir@,$gxx_include_dir,;t t
65233 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
65234 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
65235 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
65236 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
65237 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
65238 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
65239 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
65240 s,@LIBOBJS@,$LIBOBJS,;t t
65241 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
65242 CEOF
65243
65244 _ACEOF
65245
65246   cat >>$CONFIG_STATUS <<\_ACEOF
65247   # Split the substitutions into bite-sized pieces for seds with
65248   # small command number limits, like on Digital OSF/1 and HP-UX.
65249   ac_max_sed_lines=48
65250   ac_sed_frag=1 # Number of current file.
65251   ac_beg=1 # First line for current file.
65252   ac_end=$ac_max_sed_lines # Line after last line for current file.
65253   ac_more_lines=:
65254   ac_sed_cmds=
65255   while $ac_more_lines; do
65256     if test $ac_beg -gt 1; then
65257       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
65258     else
65259       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
65260     fi
65261     if test ! -s $tmp/subs.frag; then
65262       ac_more_lines=false
65263     else
65264       # The purpose of the label and of the branching condition is to
65265       # speed up the sed processing (if there are no `@' at all, there
65266       # is no need to browse any of the substitutions).
65267       # These are the two extra sed commands mentioned above.
65268       (echo ':t
65269   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
65270       if test -z "$ac_sed_cmds"; then
65271         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
65272       else
65273         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
65274       fi
65275       ac_sed_frag=`expr $ac_sed_frag + 1`
65276       ac_beg=$ac_end
65277       ac_end=`expr $ac_end + $ac_max_sed_lines`
65278     fi
65279   done
65280   if test -z "$ac_sed_cmds"; then
65281     ac_sed_cmds=cat
65282   fi
65283 fi # test -n "$CONFIG_FILES"
65284
65285 _ACEOF
65286 cat >>$CONFIG_STATUS <<\_ACEOF
65287 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
65288   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
65289   case $ac_file in
65290   - | *:- | *:-:* ) # input from stdin
65291         cat >$tmp/stdin
65292         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
65293         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
65294   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
65295         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
65296   * )   ac_file_in=$ac_file.in ;;
65297   esac
65298
65299   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
65300   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
65301 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65302          X"$ac_file" : 'X\(//\)[^/]' \| \
65303          X"$ac_file" : 'X\(//\)$' \| \
65304          X"$ac_file" : 'X\(/\)' \| \
65305          .     : '\(.\)' 2>/dev/null ||
65306 echo X"$ac_file" |
65307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
65308           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
65309           /^X\(\/\/\)$/{ s//\1/; q; }
65310           /^X\(\/\).*/{ s//\1/; q; }
65311           s/.*/./; q'`
65312   { if $as_mkdir_p; then
65313     mkdir -p "$ac_dir"
65314   else
65315     as_dir="$ac_dir"
65316     as_dirs=
65317     while test ! -d "$as_dir"; do
65318       as_dirs="$as_dir $as_dirs"
65319       as_dir=`(dirname "$as_dir") 2>/dev/null ||
65320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65321          X"$as_dir" : 'X\(//\)[^/]' \| \
65322          X"$as_dir" : 'X\(//\)$' \| \
65323          X"$as_dir" : 'X\(/\)' \| \
65324          .     : '\(.\)' 2>/dev/null ||
65325 echo X"$as_dir" |
65326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
65327           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
65328           /^X\(\/\/\)$/{ s//\1/; q; }
65329           /^X\(\/\).*/{ s//\1/; q; }
65330           s/.*/./; q'`
65331     done
65332     test ! -n "$as_dirs" || mkdir $as_dirs
65333   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
65334 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
65335    { (exit 1); exit 1; }; }; }
65336
65337   ac_builddir=.
65338
65339 if test "$ac_dir" != .; then
65340   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
65341   # A "../" for each directory in $ac_dir_suffix.
65342   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
65343 else
65344   ac_dir_suffix= ac_top_builddir=
65345 fi
65346
65347 case $srcdir in
65348   .)  # No --srcdir option.  We are building in place.
65349     ac_srcdir=.
65350     if test -z "$ac_top_builddir"; then
65351        ac_top_srcdir=.
65352     else
65353        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
65354     fi ;;
65355   [\\/]* | ?:[\\/]* )  # Absolute path.
65356     ac_srcdir=$srcdir$ac_dir_suffix;
65357     ac_top_srcdir=$srcdir ;;
65358   *) # Relative path.
65359     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
65360     ac_top_srcdir=$ac_top_builddir$srcdir ;;
65361 esac
65362 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
65363 # absolute.
65364 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
65365 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
65366 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
65367 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
65368
65369
65370   case $INSTALL in
65371   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
65372   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
65373   esac
65374
65375   if test x"$ac_file" != x-; then
65376     { echo "$as_me:$LINENO: creating $ac_file" >&5
65377 echo "$as_me: creating $ac_file" >&6;}
65378     rm -f "$ac_file"
65379   fi
65380   # Let's still pretend it is `configure' which instantiates (i.e., don't
65381   # use $as_me), people would be surprised to read:
65382   #    /* config.h.  Generated by config.status.  */
65383   if test x"$ac_file" = x-; then
65384     configure_input=
65385   else
65386     configure_input="$ac_file.  "
65387   fi
65388   configure_input=$configure_input"Generated from `echo $ac_file_in |
65389                                      sed 's,.*/,,'` by configure."
65390
65391   # First look for the input files in the build tree, otherwise in the
65392   # src tree.
65393   ac_file_inputs=`IFS=:
65394     for f in $ac_file_in; do
65395       case $f in
65396       -) echo $tmp/stdin ;;
65397       [\\/$]*)
65398          # Absolute (can't be DOS-style, as IFS=:)
65399          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
65400 echo "$as_me: error: cannot find input file: $f" >&2;}
65401    { (exit 1); exit 1; }; }
65402          echo $f;;
65403       *) # Relative
65404          if test -f "$f"; then
65405            # Build tree
65406            echo $f
65407          elif test -f "$srcdir/$f"; then
65408            # Source tree
65409            echo $srcdir/$f
65410          else
65411            # /dev/null tree
65412            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
65413 echo "$as_me: error: cannot find input file: $f" >&2;}
65414    { (exit 1); exit 1; }; }
65415          fi;;
65416       esac
65417     done` || { (exit 1); exit 1; }
65418 _ACEOF
65419 cat >>$CONFIG_STATUS <<_ACEOF
65420   sed "$ac_vpsub
65421 $extrasub
65422 _ACEOF
65423 cat >>$CONFIG_STATUS <<\_ACEOF
65424 :t
65425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
65426 s,@configure_input@,$configure_input,;t t
65427 s,@srcdir@,$ac_srcdir,;t t
65428 s,@abs_srcdir@,$ac_abs_srcdir,;t t
65429 s,@top_srcdir@,$ac_top_srcdir,;t t
65430 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
65431 s,@builddir@,$ac_builddir,;t t
65432 s,@abs_builddir@,$ac_abs_builddir,;t t
65433 s,@top_builddir@,$ac_top_builddir,;t t
65434 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
65435 s,@INSTALL@,$ac_INSTALL,;t t
65436 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
65437   rm -f $tmp/stdin
65438   if test x"$ac_file" != x-; then
65439     mv $tmp/out $ac_file
65440   else
65441     cat $tmp/out
65442     rm -f $tmp/out
65443   fi
65444
65445   # Run the commands associated with the file.
65446   case $ac_file in
65447     scripts/check_survey ) chmod +x scripts/check_survey ;;
65448     scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
65449   esac
65450 done
65451 _ACEOF
65452 cat >>$CONFIG_STATUS <<\_ACEOF
65453
65454 #
65455 # CONFIG_HEADER section.
65456 #
65457
65458 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
65459 # NAME is the cpp macro being defined and VALUE is the value it is being given.
65460 #
65461 # ac_d sets the value in "#define NAME VALUE" lines.
65462 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
65463 ac_dB='[        ].*$,\1#\2'
65464 ac_dC=' '
65465 ac_dD=',;t'
65466 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
65467 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
65468 ac_uB='$,\1#\2define\3'
65469 ac_uC=' '
65470 ac_uD=',;t'
65471
65472 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
65473   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
65474   case $ac_file in
65475   - | *:- | *:-:* ) # input from stdin
65476         cat >$tmp/stdin
65477         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
65478         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
65479   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
65480         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
65481   * )   ac_file_in=$ac_file.in ;;
65482   esac
65483
65484   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
65485 echo "$as_me: creating $ac_file" >&6;}
65486
65487   # First look for the input files in the build tree, otherwise in the
65488   # src tree.
65489   ac_file_inputs=`IFS=:
65490     for f in $ac_file_in; do
65491       case $f in
65492       -) echo $tmp/stdin ;;
65493       [\\/$]*)
65494          # Absolute (can't be DOS-style, as IFS=:)
65495          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
65496 echo "$as_me: error: cannot find input file: $f" >&2;}
65497    { (exit 1); exit 1; }; }
65498          echo $f;;
65499       *) # Relative
65500          if test -f "$f"; then
65501            # Build tree
65502            echo $f
65503          elif test -f "$srcdir/$f"; then
65504            # Source tree
65505            echo $srcdir/$f
65506          else
65507            # /dev/null tree
65508            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
65509 echo "$as_me: error: cannot find input file: $f" >&2;}
65510    { (exit 1); exit 1; }; }
65511          fi;;
65512       esac
65513     done` || { (exit 1); exit 1; }
65514   # Remove the trailing spaces.
65515   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
65516
65517 _ACEOF
65518
65519 # Transform confdefs.h into two sed scripts, `conftest.defines' and
65520 # `conftest.undefs', that substitutes the proper values into
65521 # config.h.in to produce config.h.  The first handles `#define'
65522 # templates, and the second `#undef' templates.
65523 # And first: Protect against being on the right side of a sed subst in
65524 # config.status.  Protect against being in an unquoted here document
65525 # in config.status.
65526 rm -f conftest.defines conftest.undefs
65527 # Using a here document instead of a string reduces the quoting nightmare.
65528 # Putting comments in sed scripts is not portable.
65529 #
65530 # `end' is used to avoid that the second main sed command (meant for
65531 # 0-ary CPP macros) applies to n-ary macro definitions.
65532 # See the Autoconf documentation for `clear'.
65533 cat >confdef2sed.sed <<\_ACEOF
65534 s/[\\&,]/\\&/g
65535 s,[\\$`],\\&,g
65536 t clear
65537 : clear
65538 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
65539 t end
65540 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
65541 : end
65542 _ACEOF
65543 # If some macros were called several times there might be several times
65544 # the same #defines, which is useless.  Nevertheless, we may not want to
65545 # sort them, since we want the *last* AC-DEFINE to be honored.
65546 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
65547 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
65548 rm -f confdef2sed.sed
65549
65550 # This sed command replaces #undef with comments.  This is necessary, for
65551 # example, in the case of _POSIX_SOURCE, which is predefined and required
65552 # on some systems where configure will not decide to define it.
65553 cat >>conftest.undefs <<\_ACEOF
65554 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
65555 _ACEOF
65556
65557 # Break up conftest.defines because some shells have a limit on the size
65558 # of here documents, and old seds have small limits too (100 cmds).
65559 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
65560 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
65561 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
65562 echo '  :' >>$CONFIG_STATUS
65563 rm -f conftest.tail
65564 while grep . conftest.defines >/dev/null
65565 do
65566   # Write a limited-size here document to $tmp/defines.sed.
65567   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
65568   # Speed up: don't consider the non `#define' lines.
65569   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
65570   # Work around the forget-to-reset-the-flag bug.
65571   echo 't clr' >>$CONFIG_STATUS
65572   echo ': clr' >>$CONFIG_STATUS
65573   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
65574   echo 'CEOF
65575   sed -f $tmp/defines.sed $tmp/in >$tmp/out
65576   rm -f $tmp/in
65577   mv $tmp/out $tmp/in
65578 ' >>$CONFIG_STATUS
65579   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
65580   rm -f conftest.defines
65581   mv conftest.tail conftest.defines
65582 done
65583 rm -f conftest.defines
65584 echo '  fi # grep' >>$CONFIG_STATUS
65585 echo >>$CONFIG_STATUS
65586
65587 # Break up conftest.undefs because some shells have a limit on the size
65588 # of here documents, and old seds have small limits too (100 cmds).
65589 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
65590 rm -f conftest.tail
65591 while grep . conftest.undefs >/dev/null
65592 do
65593   # Write a limited-size here document to $tmp/undefs.sed.
65594   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
65595   # Speed up: don't consider the non `#undef'
65596   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
65597   # Work around the forget-to-reset-the-flag bug.
65598   echo 't clr' >>$CONFIG_STATUS
65599   echo ': clr' >>$CONFIG_STATUS
65600   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
65601   echo 'CEOF
65602   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
65603   rm -f $tmp/in
65604   mv $tmp/out $tmp/in
65605 ' >>$CONFIG_STATUS
65606   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
65607   rm -f conftest.undefs
65608   mv conftest.tail conftest.undefs
65609 done
65610 rm -f conftest.undefs
65611
65612 cat >>$CONFIG_STATUS <<\_ACEOF
65613   # Let's still pretend it is `configure' which instantiates (i.e., don't
65614   # use $as_me), people would be surprised to read:
65615   #    /* config.h.  Generated by config.status.  */
65616   if test x"$ac_file" = x-; then
65617     echo "/* Generated by configure.  */" >$tmp/config.h
65618   else
65619     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
65620   fi
65621   cat $tmp/in >>$tmp/config.h
65622   rm -f $tmp/in
65623   if test x"$ac_file" != x-; then
65624     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
65625       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
65626 echo "$as_me: $ac_file is unchanged" >&6;}
65627     else
65628       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
65629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65630          X"$ac_file" : 'X\(//\)[^/]' \| \
65631          X"$ac_file" : 'X\(//\)$' \| \
65632          X"$ac_file" : 'X\(/\)' \| \
65633          .     : '\(.\)' 2>/dev/null ||
65634 echo X"$ac_file" |
65635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
65636           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
65637           /^X\(\/\/\)$/{ s//\1/; q; }
65638           /^X\(\/\).*/{ s//\1/; q; }
65639           s/.*/./; q'`
65640       { if $as_mkdir_p; then
65641     mkdir -p "$ac_dir"
65642   else
65643     as_dir="$ac_dir"
65644     as_dirs=
65645     while test ! -d "$as_dir"; do
65646       as_dirs="$as_dir $as_dirs"
65647       as_dir=`(dirname "$as_dir") 2>/dev/null ||
65648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65649          X"$as_dir" : 'X\(//\)[^/]' \| \
65650          X"$as_dir" : 'X\(//\)$' \| \
65651          X"$as_dir" : 'X\(/\)' \| \
65652          .     : '\(.\)' 2>/dev/null ||
65653 echo X"$as_dir" |
65654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
65655           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
65656           /^X\(\/\/\)$/{ s//\1/; q; }
65657           /^X\(\/\).*/{ s//\1/; q; }
65658           s/.*/./; q'`
65659     done
65660     test ! -n "$as_dirs" || mkdir $as_dirs
65661   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
65662 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
65663    { (exit 1); exit 1; }; }; }
65664
65665       rm -f $ac_file
65666       mv $tmp/config.h $ac_file
65667     fi
65668   else
65669     cat $tmp/config.h
65670     rm -f $tmp/config.h
65671   fi
65672 # Compute $ac_file's index in $config_headers.
65673 _am_stamp_count=1
65674 for _am_header in $config_headers :; do
65675   case $_am_header in
65676     $ac_file | $ac_file:* )
65677       break ;;
65678     * )
65679       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
65680   esac
65681 done
65682 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
65683 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65684          X$ac_file : 'X\(//\)[^/]' \| \
65685          X$ac_file : 'X\(//\)$' \| \
65686          X$ac_file : 'X\(/\)' \| \
65687          .     : '\(.\)' 2>/dev/null ||
65688 echo X$ac_file |
65689     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
65690           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
65691           /^X\(\/\/\)$/{ s//\1/; q; }
65692           /^X\(\/\).*/{ s//\1/; q; }
65693           s/.*/./; q'`/stamp-h$_am_stamp_count
65694 done
65695 _ACEOF
65696 cat >>$CONFIG_STATUS <<\_ACEOF
65697
65698 #
65699 # CONFIG_COMMANDS section.
65700 #
65701 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
65702   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
65703   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
65704   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
65705 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65706          X"$ac_dest" : 'X\(//\)[^/]' \| \
65707          X"$ac_dest" : 'X\(//\)$' \| \
65708          X"$ac_dest" : 'X\(/\)' \| \
65709          .     : '\(.\)' 2>/dev/null ||
65710 echo X"$ac_dest" |
65711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
65712           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
65713           /^X\(\/\/\)$/{ s//\1/; q; }
65714           /^X\(\/\).*/{ s//\1/; q; }
65715           s/.*/./; q'`
65716   ac_builddir=.
65717
65718 if test "$ac_dir" != .; then
65719   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
65720   # A "../" for each directory in $ac_dir_suffix.
65721   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
65722 else
65723   ac_dir_suffix= ac_top_builddir=
65724 fi
65725
65726 case $srcdir in
65727   .)  # No --srcdir option.  We are building in place.
65728     ac_srcdir=.
65729     if test -z "$ac_top_builddir"; then
65730        ac_top_srcdir=.
65731     else
65732        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
65733     fi ;;
65734   [\\/]* | ?:[\\/]* )  # Absolute path.
65735     ac_srcdir=$srcdir$ac_dir_suffix;
65736     ac_top_srcdir=$srcdir ;;
65737   *) # Relative path.
65738     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
65739     ac_top_srcdir=$ac_top_builddir$srcdir ;;
65740 esac
65741 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
65742 # absolute.
65743 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
65744 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
65745 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
65746 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
65747
65748
65749   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
65750 echo "$as_me: executing $ac_dest commands" >&6;}
65751   case $ac_dest in
65752     default-1 )
65753 # Only add multilib support code if we just rebuilt the top-level
65754 # Makefile.
65755 case " $CONFIG_FILES " in
65756  *" Makefile "*)
65757    ac_file=Makefile . ${multi_basedir}/config-ml.in
65758    ;;
65759 esac ;;
65760     default ) if test -n "$CONFIG_FILES"; then
65761    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
65762    # that multilib installs will end up installed in the correct place.
65763    # The testsuite needs it for multilib-aware ABI baseline files.
65764    # To work around this not being passed down from config-ml.in ->
65765    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
65766    # append it here.  Only modify Makefiles that have just been created.
65767    #
65768    # Also, get rid of this simulated-VPATH thing that automake does.
65769    cat > vpsed << \_EOF
65770 s!`test -f '$<' || echo '$(srcdir)/'`!!
65771 _EOF
65772    for i in $SUBDIRS; do
65773     case $CONFIG_FILES in
65774      *${i}/Makefile*)
65775        #echo "Adding MULTISUBDIR to $i/Makefile"
65776        sed -f vpsed $i/Makefile > tmp
65777        grep '^MULTISUBDIR =' Makefile >> tmp
65778        mv tmp $i/Makefile
65779        ;;
65780     esac
65781    done
65782    rm vpsed
65783  fi
65784  (cd include && ${MAKE-make})
65785  ;;
65786   esac
65787 done
65788 _ACEOF
65789
65790 cat >>$CONFIG_STATUS <<\_ACEOF
65791
65792 { (exit 0); exit 0; }
65793 _ACEOF
65794 chmod +x $CONFIG_STATUS
65795 ac_clean_files=$ac_clean_files_save
65796
65797
65798 # configure is writing to config.log, and then calls config.status.
65799 # config.status does its own redirection, appending to config.log.
65800 # Unfortunately, on DOS this fails, as config.log is still kept open
65801 # by configure, so config.status won't be able to write to it; its
65802 # output is simply discarded.  So we exec the FD to /dev/null,
65803 # effectively closing config.log, so it can be properly (re)opened and
65804 # appended to by config.status.  When coming back to configure, we
65805 # need to make the FD available again.
65806 if test "$no_create" != yes; then
65807   ac_cs_success=:
65808   ac_config_status_args=
65809   test "$silent" = yes &&
65810     ac_config_status_args="$ac_config_status_args --quiet"
65811   exec 5>/dev/null
65812   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
65813   exec 5>>config.log
65814   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
65815   # would make configure fail if this is the last instruction.
65816   $ac_cs_success || { (exit 1); exit 1; }
65817 fi
65818