OSDN Git Service

2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
[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.59 for package-unused version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='package-unused'
269 PACKAGE_TARNAME='libstdc++'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='package-unused version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="src/ios.cc"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 mkdir_p 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 ALLOCATOR_H ALLOCATOR_NAME 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_SRCDIR ATOMIC_WORD_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'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXXCPP_set=${CXXCPP+set}
754 ac_env_CXXCPP_value=$CXXCPP
755 ac_cv_env_CXXCPP_set=${CXXCPP+set}
756 ac_cv_env_CXXCPP_value=$CXXCPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761 ac_env_CPP_set=${CPP+set}
762 ac_env_CPP_value=$CPP
763 ac_cv_env_CPP_set=${CPP+set}
764 ac_cv_env_CPP_value=$CPP
765
766 #
767 # Report the --help message.
768 #
769 if test "$ac_init_help" = "long"; then
770   # Omit some internal or obsolete options to make the list less imposing.
771   # This message is too long to be a string in the A/UX 3.1 sh.
772   cat <<_ACEOF
773 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
774
775 Usage: $0 [OPTION]... [VAR=VALUE]...
776
777 To assign environment variables (e.g., CC, CFLAGS...), specify them as
778 VAR=VALUE.  See below for descriptions of some of the useful variables.
779
780 Defaults for the options are specified in brackets.
781
782 Configuration:
783   -h, --help              display this help and exit
784       --help=short        display options specific to this package
785       --help=recursive    display the short help of all the included packages
786   -V, --version           display version information and exit
787   -q, --quiet, --silent   do not print \`checking...' messages
788       --cache-file=FILE   cache test results in FILE [disabled]
789   -C, --config-cache      alias for \`--cache-file=config.cache'
790   -n, --no-create         do not create output files
791       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
792
793 _ACEOF
794
795   cat <<_ACEOF
796 Installation directories:
797   --prefix=PREFIX         install architecture-independent files in PREFIX
798                           [$ac_default_prefix]
799   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
800                           [PREFIX]
801
802 By default, \`make install' will install all the files in
803 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
804 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805 for instance \`--prefix=\$HOME'.
806
807 For better control, use the options below.
808
809 Fine tuning of the installation directories:
810   --bindir=DIR           user executables [EPREFIX/bin]
811   --sbindir=DIR          system admin executables [EPREFIX/sbin]
812   --libexecdir=DIR       program executables [EPREFIX/libexec]
813   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
814   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
815   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
816   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
817   --libdir=DIR           object code libraries [EPREFIX/lib]
818   --includedir=DIR       C header files [PREFIX/include]
819   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
820   --infodir=DIR          info documentation [PREFIX/info]
821   --mandir=DIR           man documentation [PREFIX/man]
822 _ACEOF
823
824   cat <<\_ACEOF
825
826 Program names:
827   --program-prefix=PREFIX            prepend PREFIX to installed program names
828   --program-suffix=SUFFIX            append SUFFIX to installed program names
829   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
830
831 System types:
832   --build=BUILD     configure for building on BUILD [guessed]
833   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
834   --target=TARGET   configure for building compilers for TARGET [HOST]
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839   case $ac_init_help in
840      short | recursive ) echo "Configuration of package-unused version-unused:";;
841    esac
842   cat <<\_ACEOF
843
844 Optional Features:
845   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847   --enable-multilib       build many library versions (default)
848   --enable-maintainer-mode  enable make rules and dependencies not useful
849                           (and sometimes confusing) to the casual installer
850   --enable-shared=PKGS  build shared libraries default=yes
851   --enable-static=PKGS  build static libraries default=yes
852   --enable-fast-install=PKGS  optimize for fast installation default=yes
853   --disable-libtool-lock  avoid locking (might break parallel builds)
854   --disable-hosted-libstdcxx
855                           only build freestanding C++ runtime support
856   --enable-sjlj-exceptions
857                           force use of builtin_setjmp for exceptions
858                           [default=auto]
859   --enable-libstdcxx-pch  build pre-compiled libstdc++ headers
860                           [default=$is_hosted]
861   --enable-cstdio=PACKAGE use target-specific I/O package
862                           [default=stdio]
863   --enable-clocale[=MODEL]
864                           use MODEL for target locale package
865                           [default=auto]
866   --enable-nls            use Native Language Support (default)
867   --enable-libstdcxx-allocator=KIND
868                           use KIND for target std::allocator base
869                           [default=auto]
870   --enable-cheaders=KIND  construct "C" headers for g++
871                           [default=$c_model]
872   --enable-c-mbchar       enable multibyte (wide) characters
873                           [default=yes]
874   --enable-c99            turns on ISO/IEC 9899:1999 support
875                           [default=yes]
876   --enable-long-long      enables I/O support for 'long long'
877                           [default=yes]
878   --enable-concept-checks use Boost-derived template checks [default=no]
879   --enable-libstdcxx-debug-flags=FLAGS
880                           pass compiler FLAGS when building debug library
881                           [default="-g3 -O0"]
882   --enable-libstdcxx-debug
883                           build extra debug library [default=no]
884   --enable-cxx-flags=FLAGS
885                           pass compiler FLAGS when building library
886                           [default=]
887   --enable-symvers=STYLE  enables symbol versioning of the shared library
888                           [default=yes]
889   --enable-version-specific-runtime-libs
890                           Specify that runtime libraries should be installed
891                           in a compiler-specific directory
892
893 Optional Packages:
894   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
895   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
896   --with-target-subdir=SUBDIR
897                           configuring in a subdirectory
898   --with-cross-host=HOST  configuring with a cross compiler
899   --with-newlib           assume newlib as a system C library
900   --with-gnu-ld           assume the C compiler uses GNU ld default=no
901   --with-pic              try to use only PIC/non-PIC objects default=use both
902   --with-gxx-include-dir=DIR
903                           installation directory for include files
904
905 Some influential environment variables:
906   CC          C compiler command
907   CFLAGS      C compiler flags
908   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
909               nonstandard directory <lib dir>
910   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
911               headers in a nonstandard directory <include dir>
912   CXX         C++ compiler command
913   CXXFLAGS    C++ compiler flags
914   CXXCPP      C++ preprocessor
915   CPP         C preprocessor
916
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
919
920 _ACEOF
921 fi
922
923 if test "$ac_init_help" = "recursive"; then
924   # If there are subdirs, report their specific --help.
925   ac_popdir=`pwd`
926   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927     test -d $ac_dir || continue
928     ac_builddir=.
929
930 if test "$ac_dir" != .; then
931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932   # A "../" for each directory in $ac_dir_suffix.
933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935   ac_dir_suffix= ac_top_builddir=
936 fi
937
938 case $srcdir in
939   .)  # No --srcdir option.  We are building in place.
940     ac_srcdir=.
941     if test -z "$ac_top_builddir"; then
942        ac_top_srcdir=.
943     else
944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945     fi ;;
946   [\\/]* | ?:[\\/]* )  # Absolute path.
947     ac_srcdir=$srcdir$ac_dir_suffix;
948     ac_top_srcdir=$srcdir ;;
949   *) # Relative path.
950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
953
954 # Do not use `cd foo && pwd` to compute absolute paths, because
955 # the directories may not exist.
956 case `pwd` in
957 .) ac_abs_builddir="$ac_dir";;
958 *)
959   case "$ac_dir" in
960   .) ac_abs_builddir=`pwd`;;
961   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
962   *) ac_abs_builddir=`pwd`/"$ac_dir";;
963   esac;;
964 esac
965 case $ac_abs_builddir in
966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *)
968   case ${ac_top_builddir}. in
969   .) ac_abs_top_builddir=$ac_abs_builddir;;
970   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
971   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972   esac;;
973 esac
974 case $ac_abs_builddir in
975 .) ac_abs_srcdir=$ac_srcdir;;
976 *)
977   case $ac_srcdir in
978   .) ac_abs_srcdir=$ac_abs_builddir;;
979   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
980   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981   esac;;
982 esac
983 case $ac_abs_builddir in
984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *)
986   case $ac_top_srcdir in
987   .) ac_abs_top_srcdir=$ac_abs_builddir;;
988   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
989   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990   esac;;
991 esac
992
993     cd $ac_dir
994     # Check for guested configure; otherwise get Cygnus style configure.
995     if test -f $ac_srcdir/configure.gnu; then
996       echo
997       $SHELL $ac_srcdir/configure.gnu  --help=recursive
998     elif test -f $ac_srcdir/configure; then
999       echo
1000       $SHELL $ac_srcdir/configure  --help=recursive
1001     elif test -f $ac_srcdir/configure.ac ||
1002            test -f $ac_srcdir/configure.in; then
1003       echo
1004       $ac_configure --help
1005     else
1006       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007     fi
1008     cd $ac_popdir
1009   done
1010 fi
1011
1012 test -n "$ac_init_help" && exit 0
1013 if $ac_init_version; then
1014   cat <<\_ACEOF
1015 package-unused configure version-unused
1016 generated by GNU Autoconf 2.59
1017
1018 Copyright (C) 2003 Free Software Foundation, Inc.
1019 This configure script is free software; the Free Software Foundation
1020 gives unlimited permission to copy, distribute and modify it.
1021 _ACEOF
1022   exit 0
1023 fi
1024 exec 5>config.log
1025 cat >&5 <<_ACEOF
1026 This file contains any messages produced by compilers while
1027 running configure, to aid debugging if configure makes a mistake.
1028
1029 It was created by package-unused $as_me version-unused, which was
1030 generated by GNU Autoconf 2.59.  Invocation command line was
1031
1032   $ $0 $@
1033
1034 _ACEOF
1035 {
1036 cat <<_ASUNAME
1037 ## --------- ##
1038 ## Platform. ##
1039 ## --------- ##
1040
1041 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1042 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1043 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1044 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1045 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1046
1047 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1048 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1049
1050 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1051 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1052 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1053 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1054 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1055 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1056 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1057
1058 _ASUNAME
1059
1060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1061 for as_dir in $PATH
1062 do
1063   IFS=$as_save_IFS
1064   test -z "$as_dir" && as_dir=.
1065   echo "PATH: $as_dir"
1066 done
1067
1068 } >&5
1069
1070 cat >&5 <<_ACEOF
1071
1072
1073 ## ----------- ##
1074 ## Core tests. ##
1075 ## ----------- ##
1076
1077 _ACEOF
1078
1079
1080 # Keep a trace of the command line.
1081 # Strip out --no-create and --no-recursion so they do not pile up.
1082 # Strip out --silent because we don't want to record it for future runs.
1083 # Also quote any args containing shell meta-characters.
1084 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_configure_args=
1086 ac_configure_args0=
1087 ac_configure_args1=
1088 ac_sep=
1089 ac_must_keep_next=false
1090 for ac_pass in 1 2
1091 do
1092   for ac_arg
1093   do
1094     case $ac_arg in
1095     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1096     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097     | -silent | --silent | --silen | --sile | --sil)
1098       continue ;;
1099     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101     esac
1102     case $ac_pass in
1103     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1104     2)
1105       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1106       if test $ac_must_keep_next = true; then
1107         ac_must_keep_next=false # Got value, back to normal.
1108       else
1109         case $ac_arg in
1110           *=* | --config-cache | -C | -disable-* | --disable-* \
1111           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1112           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1113           | -with-* | --with-* | -without-* | --without-* | --x)
1114             case "$ac_configure_args0 " in
1115               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116             esac
1117             ;;
1118           -* ) ac_must_keep_next=true ;;
1119         esac
1120       fi
1121       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1122       # Get rid of the leading space.
1123       ac_sep=" "
1124       ;;
1125     esac
1126   done
1127 done
1128 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1129 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1130
1131 # When interrupted or exit'd, cleanup temporary files, and complete
1132 # config.log.  We remove comments because anyway the quotes in there
1133 # would cause problems or look ugly.
1134 # WARNING: Be sure not to use single quotes in there, as some shells,
1135 # such as our DU 5.0 friend, will then `close' the trap.
1136 trap 'exit_status=$?
1137   # Save into config.log some information that might help in debugging.
1138   {
1139     echo
1140
1141     cat <<\_ASBOX
1142 ## ---------------- ##
1143 ## Cache variables. ##
1144 ## ---------------- ##
1145 _ASBOX
1146     echo
1147     # The following way of writing the cache mishandles newlines in values,
1148 {
1149   (set) 2>&1 |
1150     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151     *ac_space=\ *)
1152       sed -n \
1153         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1154           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1155       ;;
1156     *)
1157       sed -n \
1158         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1159       ;;
1160     esac;
1161 }
1162     echo
1163
1164     cat <<\_ASBOX
1165 ## ----------------- ##
1166 ## Output variables. ##
1167 ## ----------------- ##
1168 _ASBOX
1169     echo
1170     for ac_var in $ac_subst_vars
1171     do
1172       eval ac_val=$`echo $ac_var`
1173       echo "$ac_var='"'"'$ac_val'"'"'"
1174     done | sort
1175     echo
1176
1177     if test -n "$ac_subst_files"; then
1178       cat <<\_ASBOX
1179 ## ------------- ##
1180 ## Output files. ##
1181 ## ------------- ##
1182 _ASBOX
1183       echo
1184       for ac_var in $ac_subst_files
1185       do
1186         eval ac_val=$`echo $ac_var`
1187         echo "$ac_var='"'"'$ac_val'"'"'"
1188       done | sort
1189       echo
1190     fi
1191
1192     if test -s confdefs.h; then
1193       cat <<\_ASBOX
1194 ## ----------- ##
1195 ## confdefs.h. ##
1196 ## ----------- ##
1197 _ASBOX
1198       echo
1199       sed "/^$/d" confdefs.h | sort
1200       echo
1201     fi
1202     test "$ac_signal" != 0 &&
1203       echo "$as_me: caught signal $ac_signal"
1204     echo "$as_me: exit $exit_status"
1205   } >&5
1206   rm -f core *.core &&
1207   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208     exit $exit_status
1209      ' 0
1210 for ac_signal in 1 2 13 15; do
1211   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1212 done
1213 ac_signal=0
1214
1215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1216 rm -rf conftest* confdefs.h
1217 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 echo >confdefs.h
1219
1220 # Predefined preprocessor variables.
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_NAME "$PACKAGE_NAME"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1229 _ACEOF
1230
1231
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1234 _ACEOF
1235
1236
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_STRING "$PACKAGE_STRING"
1239 _ACEOF
1240
1241
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1244 _ACEOF
1245
1246
1247 # Let the site file select an alternate cache file if it wants to.
1248 # Prefer explicitly selected file to automatically selected ones.
1249 if test -z "$CONFIG_SITE"; then
1250   if test "x$prefix" != xNONE; then
1251     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1252   else
1253     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254   fi
1255 fi
1256 for ac_site_file in $CONFIG_SITE; do
1257   if test -r "$ac_site_file"; then
1258     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1259 echo "$as_me: loading site script $ac_site_file" >&6;}
1260     sed 's/^/| /' "$ac_site_file" >&5
1261     . "$ac_site_file"
1262   fi
1263 done
1264
1265 if test -r "$cache_file"; then
1266   # Some versions of bash will fail to source /dev/null (special
1267   # files actually), so we avoid doing that.
1268   if test -f "$cache_file"; then
1269     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1270 echo "$as_me: loading cache $cache_file" >&6;}
1271     case $cache_file in
1272       [\\/]* | ?:[\\/]* ) . $cache_file;;
1273       *)                      . ./$cache_file;;
1274     esac
1275   fi
1276 else
1277   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1278 echo "$as_me: creating cache $cache_file" >&6;}
1279   >$cache_file
1280 fi
1281
1282 # Check that the precious variables saved in the cache have kept the same
1283 # value.
1284 ac_cache_corrupted=false
1285 for ac_var in `(set) 2>&1 |
1286                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1287   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1288   eval ac_new_set=\$ac_env_${ac_var}_set
1289   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1290   eval ac_new_val="\$ac_env_${ac_var}_value"
1291   case $ac_old_set,$ac_new_set in
1292     set,)
1293       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1295       ac_cache_corrupted=: ;;
1296     ,set)
1297       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1299       ac_cache_corrupted=: ;;
1300     ,);;
1301     *)
1302       if test "x$ac_old_val" != "x$ac_new_val"; then
1303         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1306 echo "$as_me:   former value:  $ac_old_val" >&2;}
1307         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1308 echo "$as_me:   current value: $ac_new_val" >&2;}
1309         ac_cache_corrupted=:
1310       fi;;
1311   esac
1312   # Pass precious variables to config.status.
1313   if test "$ac_new_set" = set; then
1314     case $ac_new_val in
1315     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1317     *) ac_arg=$ac_var=$ac_new_val ;;
1318     esac
1319     case " $ac_configure_args " in
1320       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1321       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1322     esac
1323   fi
1324 done
1325 if $ac_cache_corrupted; then
1326   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1327 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1328   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1329 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1330    { (exit 1); exit 1; }; }
1331 fi
1332
1333 ac_ext=c
1334 ac_cpp='$CPP $CPPFLAGS'
1335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366           ac_config_headers="$ac_config_headers config.h"
1367
1368
1369 # This works around the fact that libtool configuration may change LD
1370 # for this particular configuration, but some shells, instead of
1371 # keeping the changes in LD private, export them just because LD is
1372 # exported.  Only used at the end of this file.
1373 ### am handles this now?  ORIGINAL_LD_FOR_MULTILIBS=$LD
1374
1375 # For libtool versioning info, format is CURRENT:REVISION:AGE
1376 libtool_VERSION=6:0:0
1377
1378
1379 # Find the rest of the source tree framework.
1380
1381   # Sets up multi_basedir, which is srcdir/.. plus the usual
1382   # "multi_source_toprel_bottom_adjust" lunacy as needed.
1383   # Default to --enable-multilib
1384 # Check whether --enable-multilib or --disable-multilib was given.
1385 if test "${enable_multilib+set}" = set; then
1386   enableval="$enable_multilib"
1387   case "$enableval" in
1388   yes) multilib=yes ;;
1389   no)  multilib=no ;;
1390   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1391 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1392    { (exit 1); exit 1; }; } ;;
1393  esac
1394 else
1395   multilib=yes
1396 fi;
1397
1398 # We may get other options which we leave undocumented:
1399 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1400 # See config-ml.in if you want the gory details.
1401
1402 if test "$srcdir" = "."; then
1403   if test "$with_target_subdir" != "."; then
1404     multi_basedir="$srcdir/$with_multisrctop../.."
1405   else
1406     multi_basedir="$srcdir/$with_multisrctop.."
1407   fi
1408 else
1409   multi_basedir="$srcdir/.."
1410 fi
1411
1412
1413           ac_config_commands="$ac_config_commands default-1"
1414
1415
1416   # The generated code is exactly the same, except that automake's looks in
1417   # ".. $srcdir/.." and autoconf's looks in multi_basedir.  Apparently other
1418   # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1419   # know what they are or what the other differences might be (and they keep
1420   # changing anyhow).
1421   #
1422   # Looking in multi_basedir seems smarter, so actually execute that branch.
1423   if false; then
1424     # this is for automake
1425     ac_aux_dir=
1426 for ac_dir in .. $srcdir/..; do
1427   if test -f $ac_dir/install-sh; then
1428     ac_aux_dir=$ac_dir
1429     ac_install_sh="$ac_aux_dir/install-sh -c"
1430     break
1431   elif test -f $ac_dir/install.sh; then
1432     ac_aux_dir=$ac_dir
1433     ac_install_sh="$ac_aux_dir/install.sh -c"
1434     break
1435   elif test -f $ac_dir/shtool; then
1436     ac_aux_dir=$ac_dir
1437     ac_install_sh="$ac_aux_dir/shtool install -c"
1438     break
1439   fi
1440 done
1441 if test -z "$ac_aux_dir"; then
1442   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1444    { (exit 1); exit 1; }; }
1445 fi
1446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1448 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1449
1450   else
1451     # this is for autoconf
1452     ac_aux_dir=
1453 for ac_dir in ${multi_basedir}; do
1454   if test -f $ac_dir/install-sh; then
1455     ac_aux_dir=$ac_dir
1456     ac_install_sh="$ac_aux_dir/install-sh -c"
1457     break
1458   elif test -f $ac_dir/install.sh; then
1459     ac_aux_dir=$ac_dir
1460     ac_install_sh="$ac_aux_dir/install.sh -c"
1461     break
1462   elif test -f $ac_dir/shtool; then
1463     ac_aux_dir=$ac_dir
1464     ac_install_sh="$ac_aux_dir/shtool install -c"
1465     break
1466   fi
1467 done
1468 if test -z "$ac_aux_dir"; then
1469   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1470 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1471    { (exit 1); exit 1; }; }
1472 fi
1473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1475 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1476
1477   fi
1478
1479
1480
1481 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1482 #
1483 # You will slowly go insane if you do not grok the following fact:  when
1484 # building v3 as part of the compiler, the top-level /target/ becomes the
1485 # library's /host/.  configure then causes --target to default to --host,
1486 # exactly like any other package using autoconf.  Therefore, 'target' and
1487 # 'host' will always be the same.  This makes sense both for native and
1488 # cross compilers, just think about it for a little while.  :-)
1489 #
1490 # Also, if v3 is being configured as part of a cross compiler, the top-level
1491 # configure script will pass the "real" host as $with_cross_host.
1492 #
1493 # Do not delete or change the following two lines.  For why, see
1494 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1495 # Make sure we can run config.sub.
1496 $ac_config_sub sun4 >/dev/null 2>&1 ||
1497   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1499    { (exit 1); exit 1; }; }
1500
1501 echo "$as_me:$LINENO: checking build system type" >&5
1502 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1503 if test "${ac_cv_build+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   ac_cv_build_alias=$build_alias
1507 test -z "$ac_cv_build_alias" &&
1508   ac_cv_build_alias=`$ac_config_guess`
1509 test -z "$ac_cv_build_alias" &&
1510   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512    { (exit 1); exit 1; }; }
1513 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1516    { (exit 1); exit 1; }; }
1517
1518 fi
1519 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520 echo "${ECHO_T}$ac_cv_build" >&6
1521 build=$ac_cv_build
1522 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525
1526
1527 echo "$as_me:$LINENO: checking host system type" >&5
1528 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1529 if test "${ac_cv_host+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   ac_cv_host_alias=$host_alias
1533 test -z "$ac_cv_host_alias" &&
1534   ac_cv_host_alias=$ac_cv_build_alias
1535 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1536   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1537 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1538    { (exit 1); exit 1; }; }
1539
1540 fi
1541 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1542 echo "${ECHO_T}$ac_cv_host" >&6
1543 host=$ac_cv_host
1544 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549 echo "$as_me:$LINENO: checking target system type" >&5
1550 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1551 if test "${ac_cv_target+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   ac_cv_target_alias=$target_alias
1555 test "x$ac_cv_target_alias" = "x" &&
1556   ac_cv_target_alias=$ac_cv_host_alias
1557 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1558   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1559 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1560    { (exit 1); exit 1; }; }
1561
1562 fi
1563 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1564 echo "${ECHO_T}$ac_cv_target" >&6
1565 target=$ac_cv_target
1566 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571 # The aliases save the names the user supplied, while $host etc.
1572 # will get canonicalized.
1573 test -n "$target_alias" &&
1574   test "$program_prefix$program_suffix$program_transform_name" = \
1575     NONENONEs,x,x, &&
1576   program_prefix=${target_alias}-
1577 target_alias=${target_alias-$host_alias}
1578
1579 # Handy for debugging:
1580 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1581
1582 if test "$build" != "$host"; then
1583   # We are being configured with some form of cross compiler.
1584   GLIBCXX_IS_NATIVE=false
1585
1586 else
1587   GLIBCXX_IS_NATIVE=true
1588 fi
1589
1590 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1591 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1592 #  1.x:  minimum required version
1593 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1594 #              of other PACKAGE_* variables will, however, and there's nothing
1595 #              we can do about that; they come from AC_INIT).
1596 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1597 #            file in the top srcdir, etc, etc), so stop complaining.
1598 #  no-dependencies:  turns off auto dependency generation (just for now)
1599 #  -Wall:  turns on all automake warnings...
1600 #  -Wno-portability:  ...except this one, since GNU make is now required.
1601 am__api_version="1.8"
1602 # Find a good install program.  We prefer a C program (faster),
1603 # so one script is as good as another.  But avoid the broken or
1604 # incompatible versions:
1605 # SysV /etc/install, /usr/sbin/install
1606 # SunOS /usr/etc/install
1607 # IRIX /sbin/install
1608 # AIX /bin/install
1609 # AmigaOS /C/install, which installs bootblocks on floppy discs
1610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1613 # OS/2's system install, which has a completely different semantic
1614 # ./install, which can be erroneously created by make from ./install.sh.
1615 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1616 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1617 if test -z "$INSTALL"; then
1618 if test "${ac_cv_path_install+set}" = set; then
1619   echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1623 do
1624   IFS=$as_save_IFS
1625   test -z "$as_dir" && as_dir=.
1626   # Account for people who put trailing slashes in PATH elements.
1627 case $as_dir/ in
1628   ./ | .// | /cC/* | \
1629   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1630   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1631   /usr/ucb/* ) ;;
1632   *)
1633     # OSF1 and SCO ODT 3.0 have their own names for install.
1634     # Don't use installbsd from OSF since it installs stuff as root
1635     # by default.
1636     for ac_prog in ginstall scoinst install; do
1637       for ac_exec_ext in '' $ac_executable_extensions; do
1638         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1639           if test $ac_prog = install &&
1640             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1641             # AIX install.  It has an incompatible calling convention.
1642             :
1643           elif test $ac_prog = install &&
1644             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1645             # program-specific install script used by HP pwplus--don't use.
1646             :
1647           else
1648             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1649             break 3
1650           fi
1651         fi
1652       done
1653     done
1654     ;;
1655 esac
1656 done
1657
1658
1659 fi
1660   if test "${ac_cv_path_install+set}" = set; then
1661     INSTALL=$ac_cv_path_install
1662   else
1663     # As a last resort, use the slow shell script.  We don't cache a
1664     # path for INSTALL within a source directory, because that will
1665     # break other packages using the cache if that directory is
1666     # removed, or if the path is relative.
1667     INSTALL=$ac_install_sh
1668   fi
1669 fi
1670 echo "$as_me:$LINENO: result: $INSTALL" >&5
1671 echo "${ECHO_T}$INSTALL" >&6
1672
1673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1674 # It thinks the first close brace ends the variable substitution.
1675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1676
1677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1678
1679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1680
1681 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1682 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1683 # Just in case
1684 sleep 1
1685 echo timestamp > conftest.file
1686 # Do `set' in a subshell so we don't clobber the current shell's
1687 # arguments.  Must try -L first in case configure is actually a
1688 # symlink; some systems play weird games with the mod time of symlinks
1689 # (eg FreeBSD returns the mod time of the symlink's containing
1690 # directory).
1691 if (
1692    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1693    if test "$*" = "X"; then
1694       # -L didn't work.
1695       set X `ls -t $srcdir/configure conftest.file`
1696    fi
1697    rm -f conftest.file
1698    if test "$*" != "X $srcdir/configure conftest.file" \
1699       && test "$*" != "X conftest.file $srcdir/configure"; then
1700
1701       # If neither matched, then we have a broken ls.  This can happen
1702       # if, for instance, CONFIG_SHELL is bash and it inherits a
1703       # broken ls alias from the environment.  This has actually
1704       # happened.  Such a system could not be considered "sane".
1705       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1706 alias in your environment" >&5
1707 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1708 alias in your environment" >&2;}
1709    { (exit 1); exit 1; }; }
1710    fi
1711
1712    test "$2" = conftest.file
1713    )
1714 then
1715    # Ok.
1716    :
1717 else
1718    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1719 Check your system clock" >&5
1720 echo "$as_me: error: newly created file is older than distributed files!
1721 Check your system clock" >&2;}
1722    { (exit 1); exit 1; }; }
1723 fi
1724 echo "$as_me:$LINENO: result: yes" >&5
1725 echo "${ECHO_T}yes" >&6
1726 test "$program_prefix" != NONE &&
1727   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1728 # Use a double $ so make ignores it.
1729 test "$program_suffix" != NONE &&
1730   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1731 # Double any \ or $.  echo might interpret backslashes.
1732 # By default was `s,x,x', remove it if useless.
1733 cat <<\_ACEOF >conftest.sed
1734 s/[\\$]/&&/g;s/;s,x,x,$//
1735 _ACEOF
1736 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1737 rm conftest.sed
1738
1739 # expand $ac_aux_dir to an absolute path
1740 am_aux_dir=`cd $ac_aux_dir && pwd`
1741
1742 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1743 # Use eval to expand $SHELL
1744 if eval "$MISSING --run true"; then
1745   am_missing_run="$MISSING --run "
1746 else
1747   am_missing_run=
1748   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1749 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1750 fi
1751
1752 if mkdir -p -- . 2>/dev/null; then
1753   # Keeping the `.' argument allows $(mkdir_p) to be used without
1754   # argument.  Indeed, we sometimes output rules like
1755   #   $(mkdir_p) $(somedir)
1756   # where $(somedir) is conditionally defined.
1757   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1758   # expensive solution, as it forces Make to start a sub-shell.)
1759   mkdir_p='mkdir -p -- .'
1760 else
1761   # On NextStep and OpenStep, the `mkdir' command does not
1762   # recognize any option.  It will interpret all options as
1763   # directories to create, and then abort because `.' already
1764   # exists.
1765   for d in ./-p ./--;
1766   do
1767     test -d $d && rmdir $d
1768   done
1769   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1770   if test -f "$ac_aux_dir/mkinstalldirs"; then
1771     mkdir_p='$(mkinstalldirs)'
1772   else
1773     mkdir_p='$(install_sh) -d'
1774   fi
1775 fi
1776
1777 for ac_prog in gawk mawk nawk awk
1778 do
1779   # Extract the first word of "$ac_prog", so it can be a program name with args.
1780 set dummy $ac_prog; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_AWK+set}" = set; then
1784   echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786   if test -n "$AWK"; then
1787   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1791 do
1792   IFS=$as_save_IFS
1793   test -z "$as_dir" && as_dir=.
1794   for ac_exec_ext in '' $ac_executable_extensions; do
1795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796     ac_cv_prog_AWK="$ac_prog"
1797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798     break 2
1799   fi
1800 done
1801 done
1802
1803 fi
1804 fi
1805 AWK=$ac_cv_prog_AWK
1806 if test -n "$AWK"; then
1807   echo "$as_me:$LINENO: result: $AWK" >&5
1808 echo "${ECHO_T}$AWK" >&6
1809 else
1810   echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812 fi
1813
1814   test -n "$AWK" && break
1815 done
1816
1817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   cat >conftest.make <<\_ACEOF
1824 all:
1825         @echo 'ac_maketemp="$(MAKE)"'
1826 _ACEOF
1827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1829 if test -n "$ac_maketemp"; then
1830   eval ac_cv_prog_make_${ac_make}_set=yes
1831 else
1832   eval ac_cv_prog_make_${ac_make}_set=no
1833 fi
1834 rm -f conftest.make
1835 fi
1836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1837   echo "$as_me:$LINENO: result: yes" >&5
1838 echo "${ECHO_T}yes" >&6
1839   SET_MAKE=
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843   SET_MAKE="MAKE=${MAKE-make}"
1844 fi
1845
1846 rm -rf .tst 2>/dev/null
1847 mkdir .tst 2>/dev/null
1848 if test -d .tst; then
1849   am__leading_dot=.
1850 else
1851   am__leading_dot=_
1852 fi
1853 rmdir .tst 2>/dev/null
1854
1855 # test to see if srcdir already configured
1856 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1857    test -f $srcdir/config.status; then
1858   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1859 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1860    { (exit 1); exit 1; }; }
1861 fi
1862
1863 # test whether we have cygpath
1864 if test -z "$CYGPATH_W"; then
1865   if (cygpath --version) >/dev/null 2>/dev/null; then
1866     CYGPATH_W='cygpath -w'
1867   else
1868     CYGPATH_W=echo
1869   fi
1870 fi
1871
1872
1873 # Define the identity of the package.
1874  PACKAGE='libstdc++'
1875  VERSION='version-unused'
1876
1877
1878 # Some tools Automake needs.
1879
1880 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1881
1882
1883 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1884
1885
1886 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1887
1888
1889 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1890
1891
1892 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1893
1894
1895 AMTAR=${AMTAR-"${am_missing_run}tar"}
1896
1897 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1898
1899 # Installed binaries are usually stripped using `strip' when the user
1900 # run `make install-strip'.  However `strip' might not be the right
1901 # tool to use in cross-compilation environments, therefore Automake
1902 # will honor the `STRIP' environment variable to overrule this program.
1903 if test "$cross_compiling" != no; then
1904   if test -n "$ac_tool_prefix"; then
1905   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}strip; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_STRIP+set}" = set; then
1910   echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912   if test -n "$STRIP"; then
1913   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920   for ac_exec_ext in '' $ac_executable_extensions; do
1921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924     break 2
1925   fi
1926 done
1927 done
1928
1929 fi
1930 fi
1931 STRIP=$ac_cv_prog_STRIP
1932 if test -n "$STRIP"; then
1933   echo "$as_me:$LINENO: result: $STRIP" >&5
1934 echo "${ECHO_T}$STRIP" >&6
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940 fi
1941 if test -z "$ac_cv_prog_STRIP"; then
1942   ac_ct_STRIP=$STRIP
1943   # Extract the first word of "strip", so it can be a program name with args.
1944 set dummy strip; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$ac_ct_STRIP"; then
1951   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_ac_ct_STRIP="strip"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1968 fi
1969 fi
1970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1971 if test -n "$ac_ct_STRIP"; then
1972   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1973 echo "${ECHO_T}$ac_ct_STRIP" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979   STRIP=$ac_ct_STRIP
1980 else
1981   STRIP="$ac_cv_prog_STRIP"
1982 fi
1983
1984 fi
1985 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1986
1987 # We need awk for the "check" target.  The system "awk" is bad on
1988 # some platforms.
1989
1990
1991
1992
1993 # Runs configure.host, finds CC, CXX, and assorted other critical bits.  Sets
1994 # up critical shell variables.
1995
1996   # Keep these sync'd with the list in Makefile.am.  The first provides an
1997   # expandable list at autoconf time; the second provides an expandable list
1998   # (i.e., shell variable) at configure time.
1999
2000   SUBDIRS='include libmath libsupc++ src po testsuite'
2001
2002   # These need to be absolute paths, yet at the same time need to
2003   # canonicalize only relative paths, because then amd will not unmount
2004   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2005   glibcxx_builddir=`${PWDCMD-pwd}`
2006   case $srcdir in
2007     \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2008     *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2009   esac
2010   toplevel_srcdir=${glibcxx_srcdir}/..
2011
2012
2013
2014
2015   # We use these options to decide which functions to include.  They are
2016   # set from the top level.
2017
2018 # Check whether --with-target-subdir or --without-target-subdir was given.
2019 if test "${with_target_subdir+set}" = set; then
2020   withval="$with_target_subdir"
2021
2022 fi;
2023
2024
2025 # Check whether --with-cross-host or --without-cross-host was given.
2026 if test "${with_cross_host+set}" = set; then
2027   withval="$with_cross_host"
2028
2029 fi;
2030
2031
2032 # Check whether --with-newlib or --without-newlib was given.
2033 if test "${with_newlib+set}" = set; then
2034   withval="$with_newlib"
2035
2036 fi;
2037
2038   # We're almost certainly being configured before anything else which uses
2039   # C++, so all of our AC_PROG_* discoveries will be cached.  It's vital that
2040   # we not cache the value of CXX that we "discover" here, because it's set
2041   # to something unique for us and libjava.  Other target libraries need to
2042   # find CXX for themselves.  We yank the rug out from under the normal AC_*
2043   # process by sneakily renaming the cache variable.  This also lets us debug
2044   # the value of "our" CXX in postmortems.
2045   #
2046   # We must also force CXX to /not/ be a precious variable, otherwise the
2047   # wrong (non-multilib-adjusted) value will be used in multilibs.  This
2048   # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS.  And as a side
2049   # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2050   # that ourselves.  Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2051   #
2052   # -fno-builtin must be present here so that a non-conflicting form of
2053   # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2054
2055
2056
2057
2058   save_CXXFLAGS="$CXXFLAGS"
2059   CXXFLAGS="$CXXFLAGS -fno-builtin"
2060   ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065 if test -n "$ac_tool_prefix"; then
2066   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2067 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test -n "$CC"; then
2074   ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2089
2090 fi
2091 fi
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094   echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6
2096 else
2097   echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2099 fi
2100
2101 fi
2102 if test -z "$ac_cv_prog_CC"; then
2103   ac_ct_CC=$CC
2104   # Extract the first word of "gcc", so it can be a program name with args.
2105 set dummy gcc; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109   echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111   if test -n "$ac_ct_CC"; then
2112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117   IFS=$as_save_IFS
2118   test -z "$as_dir" && as_dir=.
2119   for ac_exec_ext in '' $ac_executable_extensions; do
2120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121     ac_cv_prog_ac_ct_CC="gcc"
2122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123     break 2
2124   fi
2125 done
2126 done
2127
2128 fi
2129 fi
2130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2131 if test -n "$ac_ct_CC"; then
2132   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2133 echo "${ECHO_T}$ac_ct_CC" >&6
2134 else
2135   echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2137 fi
2138
2139   CC=$ac_ct_CC
2140 else
2141   CC="$ac_cv_prog_CC"
2142 fi
2143
2144 if test -z "$CC"; then
2145   if test -n "$ac_tool_prefix"; then
2146   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}cc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   if test -n "$CC"; then
2154   ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161   for ac_exec_ext in '' $ac_executable_extensions; do
2162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163     ac_cv_prog_CC="${ac_tool_prefix}cc"
2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165     break 2
2166   fi
2167 done
2168 done
2169
2170 fi
2171 fi
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174   echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177   echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2179 fi
2180
2181 fi
2182 if test -z "$ac_cv_prog_CC"; then
2183   ac_ct_CC=$CC
2184   # Extract the first word of "cc", so it can be a program name with args.
2185 set dummy cc; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test -n "$ac_ct_CC"; then
2192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197   IFS=$as_save_IFS
2198   test -z "$as_dir" && as_dir=.
2199   for ac_exec_ext in '' $ac_executable_extensions; do
2200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201     ac_cv_prog_ac_ct_CC="cc"
2202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203     break 2
2204   fi
2205 done
2206 done
2207
2208 fi
2209 fi
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6
2214 else
2215   echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2217 fi
2218
2219   CC=$ac_ct_CC
2220 else
2221   CC="$ac_cv_prog_CC"
2222 fi
2223
2224 fi
2225 if test -z "$CC"; then
2226   # Extract the first word of "cc", so it can be a program name with args.
2227 set dummy cc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$CC"; then
2234   ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236   ac_prog_rejected=no
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242   for ac_exec_ext in '' $ac_executable_extensions; do
2243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2245        ac_prog_rejected=yes
2246        continue
2247      fi
2248     ac_cv_prog_CC="cc"
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254
2255 if test $ac_prog_rejected = yes; then
2256   # We found a bogon in the path, so make sure we never use it.
2257   set dummy $ac_cv_prog_CC
2258   shift
2259   if test $# != 0; then
2260     # We chose a different compiler from the bogus one.
2261     # However, it has the same basename, so the bogon will be chosen
2262     # first if we set CC to just the basename; use the full file name.
2263     shift
2264     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2265   fi
2266 fi
2267 fi
2268 fi
2269 CC=$ac_cv_prog_CC
2270 if test -n "$CC"; then
2271   echo "$as_me:$LINENO: result: $CC" >&5
2272 echo "${ECHO_T}$CC" >&6
2273 else
2274   echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2276 fi
2277
2278 fi
2279 if test -z "$CC"; then
2280   if test -n "$ac_tool_prefix"; then
2281   for ac_prog in cl
2282   do
2283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   if test -n "$CC"; then
2291   ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306
2307 fi
2308 fi
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311   echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314   echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318     test -n "$CC" && break
2319   done
2320 fi
2321 if test -z "$CC"; then
2322   ac_ct_CC=$CC
2323   for ac_prog in cl
2324 do
2325   # Extract the first word of "$ac_prog", so it can be a program name with args.
2326 set dummy $ac_prog; ac_word=$2
2327 echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   if test -n "$ac_ct_CC"; then
2333   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340   for ac_exec_ext in '' $ac_executable_extensions; do
2341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342     ac_cv_prog_ac_ct_CC="$ac_prog"
2343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345   fi
2346 done
2347 done
2348
2349 fi
2350 fi
2351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352 if test -n "$ac_ct_CC"; then
2353   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2354 echo "${ECHO_T}$ac_ct_CC" >&6
2355 else
2356   echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2358 fi
2359
2360   test -n "$ac_ct_CC" && break
2361 done
2362
2363   CC=$ac_ct_CC
2364 fi
2365
2366 fi
2367
2368
2369 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: no acceptable C compiler found in \$PATH
2372 See \`config.log' for more details." >&2;}
2373    { (exit 1); exit 1; }; }
2374
2375 # Provide some information about the compiler.
2376 echo "$as_me:$LINENO:" \
2377      "checking for C compiler version" >&5
2378 ac_compiler=`set X $ac_compile; echo $2`
2379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2380   (eval $ac_compiler --version </dev/null >&5) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }
2384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2385   (eval $ac_compiler -v </dev/null >&5) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }
2389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2390   (eval $ac_compiler -V </dev/null >&5) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }
2394
2395 cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h.  */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h.  */
2401
2402 int
2403 main ()
2404 {
2405
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 # FIXME: Cleanup?
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2412   (eval $ac_link) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; then
2416   gcc_no_link=no
2417 else
2418   gcc_no_link=yes
2419 fi
2420
2421 if test x$gcc_no_link = xyes; then
2422   # Setting cross_compile will disable run tests; it will
2423   # also disable AC_CHECK_FILE but that's generally
2424   # correct if we can't link.
2425   cross_compiling=yes
2426   EXEEXT=
2427 else
2428   cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h.  */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h.  */
2434
2435 int
2436 main ()
2437 {
2438
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 ac_clean_files_save=$ac_clean_files
2444 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2445 # Try to create an executable without -o first, disregard a.out.
2446 # It will help us diagnose broken compilers, and finding out an intuition
2447 # of exeext.
2448 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2449 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2450 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2452   (eval $ac_link_default) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; then
2456   # Find the output, starting from the most likely.  This scheme is
2457 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2458 # resort.
2459
2460 # Be careful to initialize this variable, since it used to be cached.
2461 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2462 ac_cv_exeext=
2463 # b.out is created by i960 compilers.
2464 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2465 do
2466   test -f "$ac_file" || continue
2467   case $ac_file in
2468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2469         ;;
2470     conftest.$ac_ext )
2471         # This is the source file.
2472         ;;
2473     [ab].out )
2474         # We found the default executable, but exeext='' is most
2475         # certainly right.
2476         break;;
2477     *.* )
2478         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479         # FIXME: I believe we export ac_cv_exeext for Libtool,
2480         # but it would be cool to find out if it's true.  Does anybody
2481         # maintain Libtool? --akim.
2482         export ac_cv_exeext
2483         break;;
2484     * )
2485         break;;
2486   esac
2487 done
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: C compiler cannot create executables
2495 See \`config.log' for more details." >&2;}
2496    { (exit 77); exit 77; }; }
2497 fi
2498
2499 ac_exeext=$ac_cv_exeext
2500 echo "$as_me:$LINENO: result: $ac_file" >&5
2501 echo "${ECHO_T}$ac_file" >&6
2502
2503 # Check the compiler produces executables we can run.  If not, either
2504 # the compiler is broken, or we cross compile.
2505 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2508 # If not cross compiling, check that we can run a simple program.
2509 if test "$cross_compiling" != yes; then
2510   if { ac_try='./$ac_file'
2511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512   (eval $ac_try) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; }; then
2516     cross_compiling=no
2517   else
2518     if test "$cross_compiling" = maybe; then
2519         cross_compiling=yes
2520     else
2521         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&2;}
2527    { (exit 1); exit 1; }; }
2528     fi
2529   fi
2530 fi
2531 echo "$as_me:$LINENO: result: yes" >&5
2532 echo "${ECHO_T}yes" >&6
2533
2534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2535 ac_clean_files=$ac_clean_files_save
2536 # Check the compiler produces executables we can run.  If not, either
2537 # the compiler is broken, or we cross compile.
2538 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2540 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2541 echo "${ECHO_T}$cross_compiling" >&6
2542
2543 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546   (eval $ac_link) 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; then
2550   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2553 # `rm'.
2554 for ac_file in conftest.exe conftest conftest.*; do
2555   test -f "$ac_file" || continue
2556   case $ac_file in
2557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2558     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559           export ac_cv_exeext
2560           break;;
2561     * ) break;;
2562   esac
2563 done
2564 else
2565   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2568 See \`config.log' for more details." >&2;}
2569    { (exit 1); exit 1; }; }
2570 fi
2571
2572 rm -f conftest$ac_cv_exeext
2573 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2574 echo "${ECHO_T}$ac_cv_exeext" >&6
2575
2576 rm -f conftest.$ac_ext
2577 EXEEXT=$ac_cv_exeext
2578 ac_exeext=$EXEEXT
2579 fi
2580 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2581 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2582 if test "${ac_cv_objext+set}" = set; then
2583   echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585   cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h.  */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h.  */
2591
2592 int
2593 main ()
2594 {
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.o conftest.obj
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; then
2606   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2607   case $ac_file in
2608     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2609     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2610        break;;
2611   esac
2612 done
2613 else
2614   echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2618 See \`config.log' for more details." >&5
2619 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&2;}
2621    { (exit 1); exit 1; }; }
2622 fi
2623
2624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2625 fi
2626 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2627 echo "${ECHO_T}$ac_cv_objext" >&6
2628 OBJEXT=$ac_cv_objext
2629 ac_objext=$OBJEXT
2630 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2631 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2632 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641
2642 int
2643 main ()
2644 {
2645 #ifndef __GNUC__
2646        choke me
2647 #endif
2648
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655   (eval $ac_compile) 2>conftest.er1
2656   ac_status=$?
2657   grep -v '^ *+' conftest.er1 >conftest.err
2658   rm -f conftest.er1
2659   cat conftest.err >&5
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); } &&
2662          { ac_try='test -z "$ac_c_werror_flag"
2663                          || test ! -s conftest.err'
2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665   (eval $ac_try) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; } &&
2669          { ac_try='test -s conftest.$ac_objext'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; }; then
2675   ac_compiler_gnu=yes
2676 else
2677   echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680 ac_compiler_gnu=no
2681 fi
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2684
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2687 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2688 GCC=`test $ac_compiler_gnu = yes && echo yes`
2689 ac_test_CFLAGS=${CFLAGS+set}
2690 ac_save_CFLAGS=$CFLAGS
2691 CFLAGS="-g"
2692 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2693 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2694 if test "${ac_cv_prog_cc_g+set}" = set; then
2695   echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697   cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703
2704 int
2705 main ()
2706 {
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714   (eval $ac_compile) 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_c_werror_flag"
2722                          || test ! -s conftest.err'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   ac_cv_prog_cc_g=yes
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 ac_cv_prog_cc_g=no
2740 fi
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 fi
2743 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2745 if test "$ac_test_CFLAGS" = set; then
2746   CFLAGS=$ac_save_CFLAGS
2747 elif test $ac_cv_prog_cc_g = yes; then
2748   if test "$GCC" = yes; then
2749     CFLAGS="-g -O2"
2750   else
2751     CFLAGS="-g"
2752   fi
2753 else
2754   if test "$GCC" = yes; then
2755     CFLAGS="-O2"
2756   else
2757     CFLAGS=
2758   fi
2759 fi
2760 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2761 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2762 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2763   echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765   ac_cv_prog_cc_stdc=no
2766 ac_save_CC=$CC
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h.  */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h.  */
2773 #include <stdarg.h>
2774 #include <stdio.h>
2775 #include <sys/types.h>
2776 #include <sys/stat.h>
2777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2778 struct buf { int x; };
2779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2780 static char *e (p, i)
2781      char **p;
2782      int i;
2783 {
2784   return p[i];
2785 }
2786 static char *f (char * (*g) (char **, int), char **p, ...)
2787 {
2788   char *s;
2789   va_list v;
2790   va_start (v,p);
2791   s = g (p, va_arg (v,int));
2792   va_end (v);
2793   return s;
2794 }
2795
2796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2797    function prototypes and stuff, but not '\xHH' hex character constants.
2798    These don't provoke an error unfortunately, instead are silently treated
2799    as 'x'.  The following induces an error, until -std1 is added to get
2800    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2801    array size at least.  It's necessary to write '\x00'==0 to get something
2802    that's true only with -std1.  */
2803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2804
2805 int test (int i, double x);
2806 struct s1 {int (*f) (int a);};
2807 struct s2 {int (*f) (double a);};
2808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2809 int argc;
2810 char **argv;
2811 int
2812 main ()
2813 {
2814 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2815   ;
2816   return 0;
2817 }
2818 _ACEOF
2819 # Don't try gcc -ansi; that turns off useful extensions and
2820 # breaks some systems' header files.
2821 # AIX                   -qlanglvl=ansi
2822 # Ultrix and OSF/1      -std1
2823 # HP-UX 10.20 and later -Ae
2824 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2825 # SVR4                  -Xc -D__EXTENSIONS__
2826 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2827 do
2828   CC="$ac_save_CC $ac_arg"
2829   rm -f conftest.$ac_objext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831   (eval $ac_compile) 2>conftest.er1
2832   ac_status=$?
2833   grep -v '^ *+' conftest.er1 >conftest.err
2834   rm -f conftest.er1
2835   cat conftest.err >&5
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); } &&
2838          { ac_try='test -z "$ac_c_werror_flag"
2839                          || test ! -s conftest.err'
2840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841   (eval $ac_try) 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); }; } &&
2845          { ac_try='test -s conftest.$ac_objext'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851   ac_cv_prog_cc_stdc=$ac_arg
2852 break
2853 else
2854   echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 fi
2858 rm -f conftest.err conftest.$ac_objext
2859 done
2860 rm -f conftest.$ac_ext conftest.$ac_objext
2861 CC=$ac_save_CC
2862
2863 fi
2864
2865 case "x$ac_cv_prog_cc_stdc" in
2866   x|xno)
2867     echo "$as_me:$LINENO: result: none needed" >&5
2868 echo "${ECHO_T}none needed" >&6 ;;
2869   *)
2870     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2871 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2872     CC="$CC $ac_cv_prog_cc_stdc" ;;
2873 esac
2874
2875 # Some people use a C++ compiler to compile C.  Since we use `exit',
2876 # in C++ we need to declare it.  In case someone uses the same compiler
2877 # for both compiling C and C++ we need to have the C++ compiler decide
2878 # the declaration of exit, since it's the most demanding environment.
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #ifndef __cplusplus
2881   choke me
2882 #endif
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886   (eval $ac_compile) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } &&
2893          { ac_try='test -z "$ac_c_werror_flag"
2894                          || test ! -s conftest.err'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   for ac_declaration in \
2907    '' \
2908    'extern "C" void std::exit (int) throw (); using std::exit;' \
2909    'extern "C" void std::exit (int); using std::exit;' \
2910    'extern "C" void exit (int) throw ();' \
2911    'extern "C" void exit (int);' \
2912    'void exit (int);'
2913 do
2914   cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920 $ac_declaration
2921 #include <stdlib.h>
2922 int
2923 main ()
2924 {
2925 exit (42);
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932   (eval $ac_compile) 2>conftest.er1
2933   ac_status=$?
2934   grep -v '^ *+' conftest.er1 >conftest.err
2935   rm -f conftest.er1
2936   cat conftest.err >&5
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); } &&
2939          { ac_try='test -z "$ac_c_werror_flag"
2940                          || test ! -s conftest.err'
2941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942   (eval $ac_try) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; } &&
2946          { ac_try='test -s conftest.$ac_objext'
2947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948   (eval $ac_try) 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; }; then
2952   :
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957 continue
2958 fi
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966 $ac_declaration
2967 int
2968 main ()
2969 {
2970 exit (42);
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977   (eval $ac_compile) 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } &&
2984          { ac_try='test -z "$ac_c_werror_flag"
2985                          || test ! -s conftest.err'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; } &&
2991          { ac_try='test -s conftest.$ac_objext'
2992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993   (eval $ac_try) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; }; then
2997   break
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 fi
3003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004 done
3005 rm -f conftest*
3006 if test -n "$ac_declaration"; then
3007   echo '#ifdef __cplusplus' >>confdefs.h
3008   echo $ac_declaration      >>confdefs.h
3009   echo '#endif'             >>confdefs.h
3010 fi
3011
3012 else
3013   echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016 fi
3017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024   ac_ext=cc
3025 ac_cpp='$CXXCPP $CPPFLAGS'
3026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3031   do
3032     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${glibcxx_cv_prog_CXX+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   if test -n "$CXX"; then
3040   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047   for ac_exec_ext in '' $ac_executable_extensions; do
3048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051     break 2
3052   fi
3053 done
3054 done
3055
3056 fi
3057 fi
3058 CXX=$glibcxx_cv_prog_CXX
3059 if test -n "$CXX"; then
3060   echo "$as_me:$LINENO: result: $CXX" >&5
3061 echo "${ECHO_T}$CXX" >&6
3062 else
3063   echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3065 fi
3066
3067     test -n "$CXX" && break
3068   done
3069 fi
3070 if test -z "$CXX"; then
3071   ac_ct_CXX=$CXX
3072   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3073 do
3074   # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   if test -n "$ac_ct_CXX"; then
3082   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089   for ac_exec_ext in '' $ac_executable_extensions; do
3090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091     ac_cv_prog_ac_ct_CXX="$ac_prog"
3092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096 done
3097
3098 fi
3099 fi
3100 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3101 if test -n "$ac_ct_CXX"; then
3102   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3103 echo "${ECHO_T}$ac_ct_CXX" >&6
3104 else
3105   echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3107 fi
3108
3109   test -n "$ac_ct_CXX" && break
3110 done
3111 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3112
3113   CXX=$ac_ct_CXX
3114 fi
3115
3116
3117 # Provide some information about the compiler.
3118 echo "$as_me:$LINENO:" \
3119      "checking for C++ compiler version" >&5
3120 ac_compiler=`set X $ac_compile; echo $2`
3121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3122   (eval $ac_compiler --version </dev/null >&5) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }
3126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3127   (eval $ac_compiler -v </dev/null >&5) 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); }
3131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3132   (eval $ac_compiler -V </dev/null >&5) 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }
3136
3137 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3138 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3139 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152 #ifndef __GNUC__
3153        choke me
3154 #endif
3155
3156   ;
3157   return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162   (eval $ac_compile) 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -z "$ac_cxx_werror_flag"
3170                          || test ! -s conftest.err'
3171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172   (eval $ac_try) 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }; } &&
3176          { ac_try='test -s conftest.$ac_objext'
3177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178   (eval $ac_try) 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182   ac_compiler_gnu=yes
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 ac_compiler_gnu=no
3188 fi
3189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3191
3192 fi
3193 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3194 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3195 GXX=`test $ac_compiler_gnu = yes && echo yes`
3196 ac_test_CXXFLAGS=${CXXFLAGS+set}
3197 ac_save_CXXFLAGS=$CXXFLAGS
3198 CXXFLAGS="-g"
3199 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3200 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3201 if test "${ac_cv_prog_cxx_g+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204   cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210
3211 int
3212 main ()
3213 {
3214
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221   (eval $ac_compile) 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } &&
3228          { ac_try='test -z "$ac_cxx_werror_flag"
3229                          || test ! -s conftest.err'
3230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231   (eval $ac_try) 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }; } &&
3235          { ac_try='test -s conftest.$ac_objext'
3236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237   (eval $ac_try) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; }; then
3241   ac_cv_prog_cxx_g=yes
3242 else
3243   echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 ac_cv_prog_cxx_g=no
3247 fi
3248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3249 fi
3250 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3252 if test "$ac_test_CXXFLAGS" = set; then
3253   CXXFLAGS=$ac_save_CXXFLAGS
3254 elif test $ac_cv_prog_cxx_g = yes; then
3255   if test "$GXX" = yes; then
3256     CXXFLAGS="-g -O2"
3257   else
3258     CXXFLAGS="-g"
3259   fi
3260 else
3261   if test "$GXX" = yes; then
3262     CXXFLAGS="-O2"
3263   else
3264     CXXFLAGS=
3265   fi
3266 fi
3267 for ac_declaration in \
3268    '' \
3269    'extern "C" void std::exit (int) throw (); using std::exit;' \
3270    'extern "C" void std::exit (int); using std::exit;' \
3271    'extern "C" void exit (int) throw ();' \
3272    'extern "C" void exit (int);' \
3273    'void exit (int);'
3274 do
3275   cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281 $ac_declaration
3282 #include <stdlib.h>
3283 int
3284 main ()
3285 {
3286 exit (42);
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3293   (eval $ac_compile) 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } &&
3300          { ac_try='test -z "$ac_cxx_werror_flag"
3301                          || test ! -s conftest.err'
3302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303   (eval $ac_try) 2>&5
3304   ac_status=$?
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); }; } &&
3307          { ac_try='test -s conftest.$ac_objext'
3308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309   (eval $ac_try) 2>&5
3310   ac_status=$?
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); }; }; then
3313   :
3314 else
3315   echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318 continue
3319 fi
3320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3321   cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327 $ac_declaration
3328 int
3329 main ()
3330 {
3331 exit (42);
3332   ;
3333   return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338   (eval $ac_compile) 2>conftest.er1
3339   ac_status=$?
3340   grep -v '^ *+' conftest.er1 >conftest.err
3341   rm -f conftest.er1
3342   cat conftest.err >&5
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); } &&
3345          { ac_try='test -z "$ac_cxx_werror_flag"
3346                          || test ! -s conftest.err'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; } &&
3352          { ac_try='test -s conftest.$ac_objext'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; }; then
3358   break
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 fi
3364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365 done
3366 rm -f conftest*
3367 if test -n "$ac_declaration"; then
3368   echo '#ifdef __cplusplus' >>confdefs.h
3369   echo $ac_declaration      >>confdefs.h
3370   echo '#endif'             >>confdefs.h
3371 fi
3372
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378
3379   CXXFLAGS="$save_CXXFLAGS"
3380
3381
3382
3383
3384   # For directory versioning (e.g., headers) and other variables.
3385   echo "$as_me:$LINENO: checking for GCC version number" >&5
3386 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3387   gcc_version=`$CXX -dumpversion`
3388   echo "$as_me:$LINENO: result: $gcc_version" >&5
3389 echo "${ECHO_T}$gcc_version" >&6
3390
3391   # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3392   # available).  Uncomment the next line to force a particular method.
3393   echo "$as_me:$LINENO: checking whether ln -s works" >&5
3394 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3395 LN_S=$as_ln_s
3396 if test "$LN_S" = "ln -s"; then
3397   echo "$as_me:$LINENO: result: yes" >&5
3398 echo "${ECHO_T}yes" >&6
3399 else
3400   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3401 echo "${ECHO_T}no, using $LN_S" >&6
3402 fi
3403
3404   #LN_S='cp -p'
3405
3406   if test -n "$ac_tool_prefix"; then
3407   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}as; 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_AS+set}" = set; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   if test -n "$AS"; then
3415   ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as"
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 AS=$ac_cv_prog_AS
3434 if test -n "$AS"; then
3435   echo "$as_me:$LINENO: result: $AS" >&5
3436 echo "${ECHO_T}$AS" >&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_AS"; then
3444   ac_ct_AS=$AS
3445   # Extract the first word of "as", so it can be a program name with args.
3446 set dummy as; 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_AS+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   if test -n "$ac_ct_AS"; then
3453   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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_AS="as"
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 fi
3470 fi
3471 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3472 if test -n "$ac_ct_AS"; then
3473   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3474 echo "${ECHO_T}$ac_ct_AS" >&6
3475 else
3476   echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478 fi
3479
3480   AS=$ac_ct_AS
3481 else
3482   AS="$ac_cv_prog_AS"
3483 fi
3484
3485   if test -n "$ac_tool_prefix"; then
3486   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}ar; ac_word=$2
3488 echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_AR+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   if test -n "$AR"; then
3494   ac_cv_prog_AR="$AR" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499   IFS=$as_save_IFS
3500   test -z "$as_dir" && as_dir=.
3501   for ac_exec_ext in '' $ac_executable_extensions; do
3502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503     ac_cv_prog_AR="${ac_tool_prefix}ar"
3504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505     break 2
3506   fi
3507 done
3508 done
3509
3510 fi
3511 fi
3512 AR=$ac_cv_prog_AR
3513 if test -n "$AR"; then
3514   echo "$as_me:$LINENO: result: $AR" >&5
3515 echo "${ECHO_T}$AR" >&6
3516 else
3517   echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3519 fi
3520
3521 fi
3522 if test -z "$ac_cv_prog_AR"; then
3523   ac_ct_AR=$AR
3524   # Extract the first word of "ar", so it can be a program name with args.
3525 set dummy ar; ac_word=$2
3526 echo "$as_me:$LINENO: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   if test -n "$ac_ct_AR"; then
3532   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3536 do
3537   IFS=$as_save_IFS
3538   test -z "$as_dir" && as_dir=.
3539   for ac_exec_ext in '' $ac_executable_extensions; do
3540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541     ac_cv_prog_ac_ct_AR="ar"
3542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543     break 2
3544   fi
3545 done
3546 done
3547
3548 fi
3549 fi
3550 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3551 if test -n "$ac_ct_AR"; then
3552   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3553 echo "${ECHO_T}$ac_ct_AR" >&6
3554 else
3555   echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3557 fi
3558
3559   AR=$ac_ct_AR
3560 else
3561   AR="$ac_cv_prog_AR"
3562 fi
3563
3564   if test -n "$ac_tool_prefix"; then
3565   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3567 echo "$as_me:$LINENO: checking for $ac_word" >&5
3568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3569 if test "${ac_cv_prog_RANLIB+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   if test -n "$RANLIB"; then
3573   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578   IFS=$as_save_IFS
3579   test -z "$as_dir" && as_dir=.
3580   for ac_exec_ext in '' $ac_executable_extensions; do
3581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3584     break 2
3585   fi
3586 done
3587 done
3588
3589 fi
3590 fi
3591 RANLIB=$ac_cv_prog_RANLIB
3592 if test -n "$RANLIB"; then
3593   echo "$as_me:$LINENO: result: $RANLIB" >&5
3594 echo "${ECHO_T}$RANLIB" >&6
3595 else
3596   echo "$as_me:$LINENO: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3598 fi
3599
3600 fi
3601 if test -z "$ac_cv_prog_RANLIB"; then
3602   ac_ct_RANLIB=$RANLIB
3603   # Extract the first word of "ranlib", so it can be a program name with args.
3604 set dummy ranlib; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   if test -n "$ac_ct_RANLIB"; then
3611   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618   for ac_exec_ext in '' $ac_executable_extensions; do
3619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620     ac_cv_prog_ac_ct_RANLIB="ranlib"
3621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625 done
3626
3627   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3628 fi
3629 fi
3630 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3631 if test -n "$ac_ct_RANLIB"; then
3632   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3633 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3634 else
3635   echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3637 fi
3638
3639   RANLIB=$ac_ct_RANLIB
3640 else
3641   RANLIB="$ac_cv_prog_RANLIB"
3642 fi
3643
3644
3645   echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3646 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3647     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3648 if test "${enable_maintainer_mode+set}" = set; then
3649   enableval="$enable_maintainer_mode"
3650   USE_MAINTAINER_MODE=$enableval
3651 else
3652   USE_MAINTAINER_MODE=no
3653 fi;
3654   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3655 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3656
3657
3658 if test $USE_MAINTAINER_MODE = yes; then
3659   MAINTAINER_MODE_TRUE=
3660   MAINTAINER_MODE_FALSE='#'
3661 else
3662   MAINTAINER_MODE_TRUE='#'
3663   MAINTAINER_MODE_FALSE=
3664 fi
3665
3666   MAINT=$MAINTAINER_MODE_TRUE
3667
3668
3669
3670   # Set up safe default values for all subsequent AM_CONDITIONAL tests
3671   # which are themselves conditionally expanded.
3672   ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3673   ## other macros from doing the same.  This should be automated.)  -pme
3674   need_libmath=no
3675   enable_wchar_t=no
3676   #enable_libstdcxx_debug=no
3677   #enable_libstdcxx_pch=no
3678   #enable_cheaders=c
3679   #c_compatibility=no
3680   #enable_abi_check=no
3681   #enable_symvers=no
3682   #enable_hosted_libstdcxx=yes
3683
3684   # Find platform-specific directories containing configuration info.
3685   # Also possibly modify flags used elsewhere, as needed by the platform.
3686
3687   . $glibcxx_srcdir/configure.host
3688   { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3689 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3690   { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3691 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3692
3693
3694
3695 #AC_MSG_NOTICE([====== Starting libtool configuration])
3696
3697 # Check whether --enable-shared or --disable-shared was given.
3698 if test "${enable_shared+set}" = set; then
3699   enableval="$enable_shared"
3700   p=${PACKAGE-default}
3701 case $enableval in
3702 yes) enable_shared=yes ;;
3703 no) enable_shared=no ;;
3704 *)
3705   enable_shared=no
3706   # Look at the argument we got.  We use all the common list separators.
3707   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3708   for pkg in $enableval; do
3709     if test "X$pkg" = "X$p"; then
3710       enable_shared=yes
3711     fi
3712   done
3713   IFS="$ac_save_ifs"
3714   ;;
3715 esac
3716 else
3717   enable_shared=yes
3718 fi;
3719 # Check whether --enable-static or --disable-static was given.
3720 if test "${enable_static+set}" = set; then
3721   enableval="$enable_static"
3722   p=${PACKAGE-default}
3723 case $enableval in
3724 yes) enable_static=yes ;;
3725 no) enable_static=no ;;
3726 *)
3727   enable_static=no
3728   # Look at the argument we got.  We use all the common list separators.
3729   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3730   for pkg in $enableval; do
3731     if test "X$pkg" = "X$p"; then
3732       enable_static=yes
3733     fi
3734   done
3735   IFS="$ac_save_ifs"
3736   ;;
3737 esac
3738 else
3739   enable_static=yes
3740 fi;
3741 # Check whether --enable-fast-install or --disable-fast-install was given.
3742 if test "${enable_fast_install+set}" = set; then
3743   enableval="$enable_fast_install"
3744   p=${PACKAGE-default}
3745 case $enableval in
3746 yes) enable_fast_install=yes ;;
3747 no) enable_fast_install=no ;;
3748 *)
3749   enable_fast_install=no
3750   # Look at the argument we got.  We use all the common list separators.
3751   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3752   for pkg in $enableval; do
3753     if test "X$pkg" = "X$p"; then
3754       enable_fast_install=yes
3755     fi
3756   done
3757   IFS="$ac_save_ifs"
3758   ;;
3759 esac
3760 else
3761   enable_fast_install=yes
3762 fi;
3763
3764 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3765 if test "${with_gnu_ld+set}" = set; then
3766   withval="$with_gnu_ld"
3767   test "$withval" = no || with_gnu_ld=yes
3768 else
3769   with_gnu_ld=no
3770 fi;
3771 ac_prog=ld
3772 if test "$GCC" = yes; then
3773   # Check if gcc -print-prog-name=ld gives a path.
3774   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3775 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3776   case $host in
3777   *-*-mingw*)
3778     # gcc leaves a trailing carriage return which upsets mingw
3779     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3780   *)
3781     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3782   esac
3783   case $ac_prog in
3784     # Accept absolute paths.
3785     [\\/]* | [A-Za-z]:[\\/]*)
3786       re_direlt='/[^/][^/]*/\.\./'
3787       # Canonicalize the path of ld
3788       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3789       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3790         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3791       done
3792       test -z "$LD" && LD="$ac_prog"
3793       ;;
3794   "")
3795     # If it fails, then pretend we aren't using GCC.
3796     ac_prog=ld
3797     ;;
3798   *)
3799     # If it is relative, then search for the first ld in PATH.
3800     with_gnu_ld=unknown
3801     ;;
3802   esac
3803 elif test "$with_gnu_ld" = yes; then
3804   echo "$as_me:$LINENO: checking for GNU ld" >&5
3805 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3806 else
3807   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3808 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3809 fi
3810 if test "${lt_cv_path_LD+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   if test -z "$LD"; then
3814   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3815   for ac_dir in $PATH; do
3816     test -z "$ac_dir" && ac_dir=.
3817     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3818       lt_cv_path_LD="$ac_dir/$ac_prog"
3819       # Check to see if the program is GNU ld.  I'd rather use --version,
3820       # but apparently some GNU ld's only accept -v.
3821       # Break only if it was the GNU/non-GNU ld that we prefer.
3822       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3823         test "$with_gnu_ld" != no && break
3824       else
3825         test "$with_gnu_ld" != yes && break
3826       fi
3827     fi
3828   done
3829   IFS="$ac_save_ifs"
3830 else
3831   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3832 fi
3833 fi
3834
3835 LD="$lt_cv_path_LD"
3836 if test -n "$LD"; then
3837   echo "$as_me:$LINENO: result: $LD" >&5
3838 echo "${ECHO_T}$LD" >&6
3839 else
3840   echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842 fi
3843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3845    { (exit 1); exit 1; }; }
3846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3852 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3853   lt_cv_prog_gnu_ld=yes
3854 else
3855   lt_cv_prog_gnu_ld=no
3856 fi
3857 fi
3858 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3859 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3860 with_gnu_ld=$lt_cv_prog_gnu_ld
3861
3862
3863 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3864 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3865 if test "${lt_cv_ld_reload_flag+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   lt_cv_ld_reload_flag='-r'
3869 fi
3870 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3871 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3872 reload_flag=$lt_cv_ld_reload_flag
3873 test -n "$reload_flag" && reload_flag=" $reload_flag"
3874
3875 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3876 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3877 if test "${lt_cv_path_NM+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   if test -n "$NM"; then
3881   # Let the user override the test.
3882   lt_cv_path_NM="$NM"
3883 else
3884   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3885   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3886     test -z "$ac_dir" && ac_dir=.
3887     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3888     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3889       # Check to see if the nm accepts a BSD-compat flag.
3890       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3891       #   nm: unknown option "B" ignored
3892       # Tru64's nm complains that /dev/null is an invalid object file
3893       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3894         lt_cv_path_NM="$tmp_nm -B"
3895         break
3896       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3897         lt_cv_path_NM="$tmp_nm -p"
3898         break
3899       else
3900         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3901         continue # so that we can try to find one that supports BSD flags
3902       fi
3903     fi
3904   done
3905   IFS="$ac_save_ifs"
3906   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3907 fi
3908 fi
3909
3910 NM="$lt_cv_path_NM"
3911 echo "$as_me:$LINENO: result: $NM" >&5
3912 echo "${ECHO_T}$NM" >&6
3913
3914 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3915 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3916 if test "${lt_cv_deplibs_check_method+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   lt_cv_file_magic_cmd='$MAGIC_CMD'
3920 lt_cv_file_magic_test_file=
3921 lt_cv_deplibs_check_method='unknown'
3922 # Need to set the preceding variable on all platforms that support
3923 # interlibrary dependencies.
3924 # 'none' -- dependencies not supported.
3925 # `unknown' -- same as none, but documents that we really don't know.
3926 # 'pass_all' -- all dependencies passed with no checks.
3927 # 'test_compile' -- check by making test program.
3928 # 'file_magic [regex]' -- check by looking for files in library path
3929 # which responds to the $file_magic_cmd with a given egrep regex.
3930 # If you have `file' or equivalent on your system and you're not sure
3931 # whether `pass_all' will *always* work, you probably want this one.
3932
3933 case $host_os in
3934 aix*)
3935   lt_cv_deplibs_check_method=pass_all
3936   ;;
3937
3938 beos*)
3939   lt_cv_deplibs_check_method=pass_all
3940   ;;
3941
3942 bsdi4*)
3943   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3944   lt_cv_file_magic_cmd='/usr/bin/file -L'
3945   lt_cv_file_magic_test_file=/shlib/libc.so
3946   ;;
3947
3948 cygwin* | mingw* |pw32*)
3949   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3950   lt_cv_file_magic_cmd='$OBJDUMP -f'
3951   ;;
3952
3953 darwin* | rhapsody*)
3954   # this will be overwritten by pass_all, but leave it in just in case
3955   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3956   lt_cv_file_magic_cmd='/usr/bin/file -L'
3957   case "$host_os" in
3958   rhapsody* | darwin1.012)
3959     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3960     ;;
3961   *) # Darwin 1.3 on
3962     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3963     ;;
3964   esac
3965   lt_cv_deplibs_check_method=pass_all
3966   ;;
3967
3968 freebsd* )
3969   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3970     case $host_cpu in
3971     i*86 )
3972       # Not sure whether the presence of OpenBSD here was a mistake.
3973       # Let's accept both of them until this is cleared up.
3974       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3975       lt_cv_file_magic_cmd=/usr/bin/file
3976       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3977       ;;
3978     esac
3979   else
3980     lt_cv_deplibs_check_method=pass_all
3981   fi
3982   ;;
3983
3984 gnu*)
3985   lt_cv_deplibs_check_method=pass_all
3986   ;;
3987
3988 hpux10.20*|hpux11*)
3989   case $host_cpu in
3990   hppa*)
3991     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3992     lt_cv_file_magic_cmd=/usr/bin/file
3993     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3994     ;;
3995   ia64*)
3996     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3997     lt_cv_file_magic_cmd=/usr/bin/file
3998     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3999     ;;
4000   esac
4001   ;;
4002
4003 irix5* | irix6*)
4004   case $host_os in
4005   irix5*)
4006     # this will be overridden with pass_all, but let us keep it just in case
4007     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4008     ;;
4009   *)
4010     case $LD in
4011     *-32|*"-32 ") libmagic=32-bit;;
4012     *-n32|*"-n32 ") libmagic=N32;;
4013     *-64|*"-64 ") libmagic=64-bit;;
4014     *) libmagic=never-match;;
4015     esac
4016     # this will be overridden with pass_all, but let us keep it just in case
4017     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4018     ;;
4019   esac
4020   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4021   lt_cv_deplibs_check_method=pass_all
4022   ;;
4023
4024 # This must be Linux ELF.
4025 linux-gnu*)
4026   case $host_cpu in
4027   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4028     lt_cv_deplibs_check_method=pass_all ;;
4029   *)
4030     # glibc up to 2.1.1 does not perform some relocations on ARM
4031     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4032   esac
4033   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4034   ;;
4035
4036 netbsd*)
4037   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4038     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4039   else
4040     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4041   fi
4042   ;;
4043
4044 newsos6)
4045   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4046   lt_cv_file_magic_cmd=/usr/bin/file
4047   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4048   ;;
4049
4050 osf3* | osf4* | osf5*)
4051   # this will be overridden with pass_all, but let us keep it just in case
4052   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4053   lt_cv_file_magic_test_file=/shlib/libc.so
4054   lt_cv_deplibs_check_method=pass_all
4055   ;;
4056
4057 sco3.2v5*)
4058   lt_cv_deplibs_check_method=pass_all
4059   ;;
4060
4061 solaris*)
4062   lt_cv_deplibs_check_method=pass_all
4063   lt_cv_file_magic_test_file=/lib/libc.so
4064   ;;
4065
4066 sysv5uw[78]* | sysv4*uw2*)
4067   lt_cv_deplibs_check_method=pass_all
4068   ;;
4069
4070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4071   case $host_vendor in
4072   ncr)
4073     lt_cv_deplibs_check_method=pass_all
4074     ;;
4075   motorola)
4076     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]'
4077     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4078     ;;
4079   esac
4080   ;;
4081 esac
4082
4083 fi
4084 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4085 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4086 file_magic_cmd=$lt_cv_file_magic_cmd
4087 deplibs_check_method=$lt_cv_deplibs_check_method
4088
4089
4090
4091
4092
4093 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4094
4095 # Only perform the check for file, if the check method requires it
4096 case $deplibs_check_method in
4097 file_magic*)
4098   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4099     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   case $MAGIC_CMD in
4105   /*)
4106   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4107   ;;
4108   ?:/*)
4109   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4110   ;;
4111   *)
4112   ac_save_MAGIC_CMD="$MAGIC_CMD"
4113   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4114   ac_dummy="/usr/bin:$PATH"
4115   for ac_dir in $ac_dummy; do
4116     test -z "$ac_dir" && ac_dir=.
4117     if test -f $ac_dir/${ac_tool_prefix}file; then
4118       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4119       if test -n "$file_magic_test_file"; then
4120         case $deplibs_check_method in
4121         "file_magic "*)
4122           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4123           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4124           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4125             egrep "$file_magic_regex" > /dev/null; then
4126             :
4127           else
4128             cat <<EOF 1>&2
4129
4130 *** Warning: the command libtool uses to detect shared libraries,
4131 *** $file_magic_cmd, produces output that libtool cannot recognize.
4132 *** The result is that libtool may fail to recognize shared libraries
4133 *** as such.  This will affect the creation of libtool libraries that
4134 *** depend on shared libraries, but programs linked with such libtool
4135 *** libraries will work regardless of this problem.  Nevertheless, you
4136 *** may want to report the problem to your system manager and/or to
4137 *** bug-libtool@gnu.org
4138
4139 EOF
4140           fi ;;
4141         esac
4142       fi
4143       break
4144     fi
4145   done
4146   IFS="$ac_save_ifs"
4147   MAGIC_CMD="$ac_save_MAGIC_CMD"
4148   ;;
4149 esac
4150 fi
4151
4152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4153 if test -n "$MAGIC_CMD"; then
4154   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4155 echo "${ECHO_T}$MAGIC_CMD" >&6
4156 else
4157   echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4159 fi
4160
4161 if test -z "$lt_cv_path_MAGIC_CMD"; then
4162   if test -n "$ac_tool_prefix"; then
4163     echo "$as_me:$LINENO: checking for file" >&5
4164 echo $ECHO_N "checking for file... $ECHO_C" >&6
4165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   case $MAGIC_CMD in
4169   /*)
4170   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4171   ;;
4172   ?:/*)
4173   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4174   ;;
4175   *)
4176   ac_save_MAGIC_CMD="$MAGIC_CMD"
4177   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4178   ac_dummy="/usr/bin:$PATH"
4179   for ac_dir in $ac_dummy; do
4180     test -z "$ac_dir" && ac_dir=.
4181     if test -f $ac_dir/file; then
4182       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4183       if test -n "$file_magic_test_file"; then
4184         case $deplibs_check_method in
4185         "file_magic "*)
4186           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4187           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4188           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4189             egrep "$file_magic_regex" > /dev/null; then
4190             :
4191           else
4192             cat <<EOF 1>&2
4193
4194 *** Warning: the command libtool uses to detect shared libraries,
4195 *** $file_magic_cmd, produces output that libtool cannot recognize.
4196 *** The result is that libtool may fail to recognize shared libraries
4197 *** as such.  This will affect the creation of libtool libraries that
4198 *** depend on shared libraries, but programs linked with such libtool
4199 *** libraries will work regardless of this problem.  Nevertheless, you
4200 *** may want to report the problem to your system manager and/or to
4201 *** bug-libtool@gnu.org
4202
4203 EOF
4204           fi ;;
4205         esac
4206       fi
4207       break
4208     fi
4209   done
4210   IFS="$ac_save_ifs"
4211   MAGIC_CMD="$ac_save_MAGIC_CMD"
4212   ;;
4213 esac
4214 fi
4215
4216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4217 if test -n "$MAGIC_CMD"; then
4218   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4219 echo "${ECHO_T}$MAGIC_CMD" >&6
4220 else
4221   echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225   else
4226     MAGIC_CMD=:
4227   fi
4228 fi
4229
4230   fi
4231   ;;
4232 esac
4233
4234 if test -n "$ac_tool_prefix"; then
4235   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_RANLIB+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   if test -n "$RANLIB"; then
4243   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250   for ac_exec_ext in '' $ac_executable_extensions; do
4251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254     break 2
4255   fi
4256 done
4257 done
4258
4259 fi
4260 fi
4261 RANLIB=$ac_cv_prog_RANLIB
4262 if test -n "$RANLIB"; then
4263   echo "$as_me:$LINENO: result: $RANLIB" >&5
4264 echo "${ECHO_T}$RANLIB" >&6
4265 else
4266   echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4268 fi
4269
4270 fi
4271 if test -z "$ac_cv_prog_RANLIB"; then
4272   ac_ct_RANLIB=$RANLIB
4273   # Extract the first word of "ranlib", so it can be a program name with args.
4274 set dummy ranlib; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   if test -n "$ac_ct_RANLIB"; then
4281   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288   for ac_exec_ext in '' $ac_executable_extensions; do
4289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290     ac_cv_prog_ac_ct_RANLIB="ranlib"
4291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295 done
4296
4297   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4298 fi
4299 fi
4300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4301 if test -n "$ac_ct_RANLIB"; then
4302   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4303 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309   RANLIB=$ac_ct_RANLIB
4310 else
4311   RANLIB="$ac_cv_prog_RANLIB"
4312 fi
4313
4314 if test -n "$ac_tool_prefix"; then
4315   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}strip; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_STRIP+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   if test -n "$STRIP"; then
4323   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328   IFS=$as_save_IFS
4329   test -z "$as_dir" && as_dir=.
4330   for ac_exec_ext in '' $ac_executable_extensions; do
4331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334     break 2
4335   fi
4336 done
4337 done
4338
4339 fi
4340 fi
4341 STRIP=$ac_cv_prog_STRIP
4342 if test -n "$STRIP"; then
4343   echo "$as_me:$LINENO: result: $STRIP" >&5
4344 echo "${ECHO_T}$STRIP" >&6
4345 else
4346   echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4348 fi
4349
4350 fi
4351 if test -z "$ac_cv_prog_STRIP"; then
4352   ac_ct_STRIP=$STRIP
4353   # Extract the first word of "strip", so it can be a program name with args.
4354 set dummy strip; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   if test -n "$ac_ct_STRIP"; then
4361   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368   for ac_exec_ext in '' $ac_executable_extensions; do
4369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370     ac_cv_prog_ac_ct_STRIP="strip"
4371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375 done
4376
4377   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4378 fi
4379 fi
4380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4381 if test -n "$ac_ct_STRIP"; then
4382   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4383 echo "${ECHO_T}$ac_ct_STRIP" >&6
4384 else
4385   echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4387 fi
4388
4389   STRIP=$ac_ct_STRIP
4390 else
4391   STRIP="$ac_cv_prog_STRIP"
4392 fi
4393
4394
4395 # Check for any special flags to pass to ltconfig.
4396 libtool_flags="--cache-file=$cache_file"
4397 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4398 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4399 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4400 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4401 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4402
4403
4404 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4405 if test "${enable_libtool_lock+set}" = set; then
4406   enableval="$enable_libtool_lock"
4407
4408 fi;
4409 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4410 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4411
4412
4413 # Check whether --with-pic or --without-pic was given.
4414 if test "${with_pic+set}" = set; then
4415   withval="$with_pic"
4416   pic_mode="$withval"
4417 else
4418   pic_mode=default
4419 fi;
4420 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4421 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4422
4423 # Some flags need to be propagated to the compiler or linker for good
4424 # libtool support.
4425 case $host in
4426 *-*-irix6*)
4427   # Find out which ABI we are using.
4428   echo '#line 4428 "configure"' > conftest.$ac_ext
4429   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430   (eval $ac_compile) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; then
4434    if test "$lt_cv_prog_gnu_ld" = yes; then
4435     case `/usr/bin/file conftest.$ac_objext` in
4436     *32-bit*)
4437       LD="${LD-ld} -melf32bsmip"
4438       ;;
4439     *N32*)
4440       LD="${LD-ld} -melf32bmipn32"
4441       ;;
4442     *64-bit*)
4443       LD="${LD-ld} -melf64bmip"
4444       ;;
4445     esac
4446    else
4447     case `/usr/bin/file conftest.$ac_objext` in
4448     *32-bit*)
4449       LD="${LD-ld} -32"
4450       ;;
4451     *N32*)
4452       LD="${LD-ld} -n32"
4453       ;;
4454     *64-bit*)
4455       LD="${LD-ld} -64"
4456       ;;
4457     esac
4458    fi
4459   fi
4460   rm -rf conftest*
4461   ;;
4462
4463 ia64-*-hpux*)
4464   # Find out which ABI we are using.
4465   echo 'int i;' > conftest.$ac_ext
4466   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467   (eval $ac_compile) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; then
4471     case "`/usr/bin/file conftest.o`" in
4472     *ELF-32*)
4473       HPUX_IA64_MODE="32"
4474       ;;
4475     *ELF-64*)
4476       HPUX_IA64_MODE="64"
4477       ;;
4478     esac
4479   fi
4480   rm -rf conftest*
4481   ;;
4482
4483 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4484   # Find out which ABI we are using.
4485   echo 'int i;' > conftest.$ac_ext
4486   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487   (eval $ac_compile) 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; then
4491     case "`/usr/bin/file conftest.o`" in
4492     *32-bit*)
4493       case $host in
4494         x86_64-*linux*)
4495           LD="${LD-ld} -m elf_i386"
4496           ;;
4497         ppc64-*linux*|powerpc64-*linux*)
4498           LD="${LD-ld} -m elf32ppclinux"
4499           ;;
4500         s390x-*linux*)
4501           LD="${LD-ld} -m elf_s390"
4502           ;;
4503         sparc64-*linux*)
4504           LD="${LD-ld} -m elf32_sparc"
4505           ;;
4506       esac
4507       ;;
4508     *64-bit*)
4509       case $host in
4510         x86_64-*linux*)
4511           LD="${LD-ld} -m elf_x86_64"
4512           ;;
4513         ppc*-*linux*|powerpc*-*linux*)
4514           LD="${LD-ld} -m elf64ppc"
4515           ;;
4516         s390*-*linux*)
4517           LD="${LD-ld} -m elf64_s390"
4518           ;;
4519         sparc*-*linux*)
4520           LD="${LD-ld} -m elf64_sparc"
4521           ;;
4522       esac
4523       ;;
4524     esac
4525   fi
4526   rm -rf conftest*
4527   ;;
4528
4529 *-*-sco3.2v5*)
4530   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4531   SAVE_CFLAGS="$CFLAGS"
4532   CFLAGS="$CFLAGS -belf"
4533   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4534 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4535 if test "${lt_cv_cc_needs_belf+set}" = set; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538
4539
4540      ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546      if test x$gcc_no_link = xyes; then
4547   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4549    { (exit 1); exit 1; }; }
4550 fi
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h.  */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h.  */
4557
4558 int
4559 main ()
4560 {
4561
4562   ;
4563   return 0;
4564 }
4565 _ACEOF
4566 rm -f conftest.$ac_objext conftest$ac_exeext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4568   (eval $ac_link) 2>conftest.er1
4569   ac_status=$?
4570   grep -v '^ *+' conftest.er1 >conftest.err
4571   rm -f conftest.er1
4572   cat conftest.err >&5
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); } &&
4575          { ac_try='test -z "$ac_c_werror_flag"
4576                          || test ! -s conftest.err'
4577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578   (eval $ac_try) 2>&5
4579   ac_status=$?
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); }; } &&
4582          { ac_try='test -s conftest$ac_exeext'
4583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584   (eval $ac_try) 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); }; }; then
4588   lt_cv_cc_needs_belf=yes
4589 else
4590   echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593 lt_cv_cc_needs_belf=no
4594 fi
4595 rm -f conftest.err conftest.$ac_objext \
4596       conftest$ac_exeext conftest.$ac_ext
4597      ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603 fi
4604 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4605 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4606   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4607     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4608     CFLAGS="$SAVE_CFLAGS"
4609   fi
4610   ;;
4611
4612
4613 esac
4614
4615
4616 # Save cache, so that ltconfig can load it
4617 cat >confcache <<\_ACEOF
4618 # This file is a shell script that caches the results of configure
4619 # tests run on this system so they can be shared between configure
4620 # scripts and configure runs, see configure's option --config-cache.
4621 # It is not useful on other systems.  If it contains results you don't
4622 # want to keep, you may remove or edit it.
4623 #
4624 # config.status only pays attention to the cache file if you give it
4625 # the --recheck option to rerun configure.
4626 #
4627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4629 # following values.
4630
4631 _ACEOF
4632
4633 # The following way of writing the cache mishandles newlines in values,
4634 # but we know of no workaround that is simple, portable, and efficient.
4635 # So, don't put newlines in cache variables' values.
4636 # Ultrix sh set writes to stderr and can't be redirected directly,
4637 # and sets the high bit in the cache file unless we assign to the vars.
4638 {
4639   (set) 2>&1 |
4640     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4641     *ac_space=\ *)
4642       # `set' does not quote correctly, so add quotes (double-quote
4643       # substitution turns \\\\ into \\, and sed turns \\ into \).
4644       sed -n \
4645         "s/'/'\\\\''/g;
4646           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4647       ;;
4648     *)
4649       # `set' quotes correctly as required by POSIX, so do not add quotes.
4650       sed -n \
4651         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4652       ;;
4653     esac;
4654 } |
4655   sed '
4656      t clear
4657      : clear
4658      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4659      t end
4660      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4661      : end' >>confcache
4662 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4663   if test -w $cache_file; then
4664     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4665     cat confcache >$cache_file
4666   else
4667     echo "not updating unwritable cache $cache_file"
4668   fi
4669 fi
4670 rm -f confcache
4671
4672 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4673 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4674 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4675 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4676 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4677 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4678 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4679 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4680 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4681 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4682 echo "$as_me: error: libtool configure failed" >&2;}
4683    { (exit 1); exit 1; }; }
4684
4685 # Reload cache, that may have been modified by ltconfig
4686 if test -r "$cache_file"; then
4687   # Some versions of bash will fail to source /dev/null (special
4688   # files actually), so we avoid doing that.
4689   if test -f "$cache_file"; then
4690     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4691 echo "$as_me: loading cache $cache_file" >&6;}
4692     case $cache_file in
4693       [\\/]* | ?:[\\/]* ) . $cache_file;;
4694       *)                      . ./$cache_file;;
4695     esac
4696   fi
4697 else
4698   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4699 echo "$as_me: creating cache $cache_file" >&6;}
4700   >$cache_file
4701 fi
4702
4703
4704 # This can be used to rebuild libtool when needed
4705 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4706
4707 # Always use our own libtool.
4708 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4709
4710 # Redirect the config.log output again, so that the ltconfig log is not
4711 # clobbered by the next message.
4712 exec 5>>./config.log
4713
4714 ac_ext=cc
4715 ac_cpp='$CXXCPP $CPPFLAGS'
4716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4720 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4721 if test -z "$CXXCPP"; then
4722   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725       # Double quotes because CXXCPP needs to be expanded
4726     for CXXCPP in "$CXX -E" "/lib/cpp"
4727     do
4728       ac_preproc_ok=false
4729 for ac_cxx_preproc_warn_flag in '' yes
4730 do
4731   # Use a header file that comes with gcc, so configuring glibc
4732   # with a fresh cross-compiler works.
4733   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734   # <limits.h> exists even on freestanding compilers.
4735   # On the NeXT, cc -E runs the code through the compiler's parser,
4736   # not just through cpp. "Syntax error" is here to catch this case.
4737   cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 #ifdef __STDC__
4744 # include <limits.h>
4745 #else
4746 # include <assert.h>
4747 #endif
4748                      Syntax error
4749 _ACEOF
4750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4751   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4752   ac_status=$?
4753   grep -v '^ *+' conftest.er1 >conftest.err
4754   rm -f conftest.er1
4755   cat conftest.err >&5
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } >/dev/null; then
4758   if test -s conftest.err; then
4759     ac_cpp_err=$ac_cxx_preproc_warn_flag
4760     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4761   else
4762     ac_cpp_err=
4763   fi
4764 else
4765   ac_cpp_err=yes
4766 fi
4767 if test -z "$ac_cpp_err"; then
4768   :
4769 else
4770   echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773   # Broken: fails on valid input.
4774 continue
4775 fi
4776 rm -f conftest.err conftest.$ac_ext
4777
4778   # OK, works on sane cases.  Now check whether non-existent headers
4779   # can be detected and how.
4780   cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h.  */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h.  */
4786 #include <ac_nonexistent.h>
4787 _ACEOF
4788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4790   ac_status=$?
4791   grep -v '^ *+' conftest.er1 >conftest.err
4792   rm -f conftest.er1
4793   cat conftest.err >&5
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); } >/dev/null; then
4796   if test -s conftest.err; then
4797     ac_cpp_err=$ac_cxx_preproc_warn_flag
4798     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4799   else
4800     ac_cpp_err=
4801   fi
4802 else
4803   ac_cpp_err=yes
4804 fi
4805 if test -z "$ac_cpp_err"; then
4806   # Broken: success on invalid input.
4807 continue
4808 else
4809   echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812   # Passes both tests.
4813 ac_preproc_ok=:
4814 break
4815 fi
4816 rm -f conftest.err conftest.$ac_ext
4817
4818 done
4819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4820 rm -f conftest.err conftest.$ac_ext
4821 if $ac_preproc_ok; then
4822   break
4823 fi
4824
4825     done
4826     ac_cv_prog_CXXCPP=$CXXCPP
4827
4828 fi
4829   CXXCPP=$ac_cv_prog_CXXCPP
4830 else
4831   ac_cv_prog_CXXCPP=$CXXCPP
4832 fi
4833 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4834 echo "${ECHO_T}$CXXCPP" >&6
4835 ac_preproc_ok=false
4836 for ac_cxx_preproc_warn_flag in '' yes
4837 do
4838   # Use a header file that comes with gcc, so configuring glibc
4839   # with a fresh cross-compiler works.
4840   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841   # <limits.h> exists even on freestanding compilers.
4842   # On the NeXT, cc -E runs the code through the compiler's parser,
4843   # not just through cpp. "Syntax error" is here to catch this case.
4844   cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 #ifdef __STDC__
4851 # include <limits.h>
4852 #else
4853 # include <assert.h>
4854 #endif
4855                      Syntax error
4856 _ACEOF
4857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4858   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } >/dev/null; then
4865   if test -s conftest.err; then
4866     ac_cpp_err=$ac_cxx_preproc_warn_flag
4867     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4868   else
4869     ac_cpp_err=
4870   fi
4871 else
4872   ac_cpp_err=yes
4873 fi
4874 if test -z "$ac_cpp_err"; then
4875   :
4876 else
4877   echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4879
4880   # Broken: fails on valid input.
4881 continue
4882 fi
4883 rm -f conftest.err conftest.$ac_ext
4884
4885   # OK, works on sane cases.  Now check whether non-existent headers
4886   # can be detected and how.
4887   cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h.  */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h.  */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4897   ac_status=$?
4898   grep -v '^ *+' conftest.er1 >conftest.err
4899   rm -f conftest.er1
4900   cat conftest.err >&5
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); } >/dev/null; then
4903   if test -s conftest.err; then
4904     ac_cpp_err=$ac_cxx_preproc_warn_flag
4905     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4906   else
4907     ac_cpp_err=
4908   fi
4909 else
4910   ac_cpp_err=yes
4911 fi
4912 if test -z "$ac_cpp_err"; then
4913   # Broken: success on invalid input.
4914 continue
4915 else
4916   echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919   # Passes both tests.
4920 ac_preproc_ok=:
4921 break
4922 fi
4923 rm -f conftest.err conftest.$ac_ext
4924
4925 done
4926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4927 rm -f conftest.err conftest.$ac_ext
4928 if $ac_preproc_ok; then
4929   :
4930 else
4931   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4932 See \`config.log' for more details." >&5
4933 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4934 See \`config.log' for more details." >&2;}
4935    { (exit 1); exit 1; }; }
4936 fi
4937
4938 ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943
4944
4945
4946 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4947 lt_save_CC="$CC"
4948 lt_save_CFLAGS="$CFLAGS"
4949 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4950 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4951 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4952 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4953 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4954 deplibs_check_method="$deplibs_check_method" \
4955 file_magic_cmd="$file_magic_cmd" \
4956 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4957 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4958 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4959 echo "$as_me: error: libtool tag configuration failed" >&2;}
4960    { (exit 1); exit 1; }; }
4961 CC="$lt_save_CC"
4962 CFLAGS="$lt_save_CFLAGS"
4963
4964 # Redirect the config.log output again, so that the ltconfig log is not
4965 # clobbered by the next message.
4966 exec 5>>./config.log
4967
4968
4969
4970
4971
4972
4973
4974
4975 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4976
4977 # Possibly disable most of the library.
4978 ## XXX Consider skipping unncessary tests altogether in this case, rather
4979 ## than just ignoring the results.  Faster /and/ more correct, win win.
4980
4981   # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4982 if test "${enable_hosted_libstdcxx+set}" = set; then
4983   enableval="$enable_hosted_libstdcxx"
4984
4985 else
4986   enable_hosted_libstdcxx=yes
4987 fi;
4988   if test "$enable_hosted_libstdcxx" = no; then
4989     { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4990 echo "$as_me: Only freestanding libraries will be built" >&6;}
4991     is_hosted=no
4992     hosted_define=0
4993     enable_abi_check=no
4994     enable_libstdcxx_pch=no
4995   else
4996     is_hosted=yes
4997     hosted_define=1
4998   fi
4999
5000
5001 cat >>confdefs.h <<_ACEOF
5002 #define _GLIBCXX_HOSTED $hosted_define
5003 _ACEOF
5004
5005
5006
5007 # Check for support bits and g++ features that don't require linking.
5008
5009   echo "$as_me:$LINENO: checking for exception model to use" >&5
5010 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5011
5012
5013   ac_ext=cc
5014 ac_cpp='$CXXCPP $CPPFLAGS'
5015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5018
5019    # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5020 if test "${enable_sjlj_exceptions+set}" = set; then
5021   enableval="$enable_sjlj_exceptions"
5022
5023       case "$enableval" in
5024        yes|no|auto) ;;
5025        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
5026 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
5027    { (exit 1); exit 1; }; } ;;
5028                           esac
5029
5030 else
5031   enable_sjlj_exceptions=auto
5032 fi;
5033
5034
5035   if test $enable_sjlj_exceptions = auto; then
5036     # Botheration.  Now we've got to detect the exception model.  Link tests
5037     # against libgcc.a are problematic since we've not been given proper -L
5038     # bits for single-tree newlib and libgloss.
5039     #
5040     # Fake what AC_TRY_COMPILE does.  XXX Look at redoing this new-style.
5041     cat > conftest.$ac_ext << EOF
5042 #line 5042 "configure"
5043 struct S { ~S(); };
5044 void bar();
5045 void foo()
5046 {
5047   S s;
5048   bar();
5049 }
5050 EOF
5051     old_CXXFLAGS="$CXXFLAGS"
5052     CXXFLAGS=-S
5053     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054   (eval $ac_compile) 2>&5
5055   ac_status=$?
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); }; then
5058       if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5059         enable_sjlj_exceptions=yes
5060       elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5061         enable_sjlj_exceptions=no
5062       fi
5063     fi
5064     CXXFLAGS="$old_CXXFLAGS"
5065     rm -f conftest*
5066   fi
5067
5068   # This is a tad weird, for hysterical raisins.  We have to map enable/disable
5069   # to two different models.
5070   case $enable_sjlj_exceptions in
5071     yes)
5072
5073 cat >>confdefs.h <<\_ACEOF
5074 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
5075 _ACEOF
5076
5077       ac_exception_model_name=sjlj
5078       ;;
5079     no)
5080       ac_exception_model_name="call frame"
5081       ;;
5082     *)
5083       { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5084 echo "$as_me: error: unable to detect exception model" >&2;}
5085    { (exit 1); exit 1; }; }
5086       ;;
5087   esac
5088  ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094  echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5095 echo "${ECHO_T}$ac_exception_model_name" >&6
5096
5097
5098   echo "$as_me:$LINENO: checking for enabled PCH" >&5
5099 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5100    # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
5101 if test "${enable_libstdcxx_pch+set}" = set; then
5102   enableval="$enable_libstdcxx_pch"
5103
5104       case "$enableval" in
5105        yes|no) ;;
5106        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5107 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5108    { (exit 1); exit 1; }; } ;;
5109       esac
5110
5111 else
5112   enable_libstdcxx_pch=$is_hosted
5113 fi;
5114
5115   echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5116 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5117
5118   if test $enable_libstdcxx_pch = yes; then
5119     echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5120 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5121 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5122   echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124   ac_save_CXXFLAGS="$CXXFLAGS"
5125        CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5126
5127
5128        ac_ext=cc
5129 ac_cpp='$CXXCPP $CPPFLAGS'
5130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5133
5134        echo '#include <math.h>' > conftest.h
5135        if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5136                           -o conftest.h.gch 1>&5 2>&1 &&
5137                 echo '#error "pch failed"' > conftest.h &&
5138           echo '#include "conftest.h"' > conftest.cc &&
5139                $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5140        then
5141          glibcxx_cv_prog_CXX_pch=yes
5142        else
5143          glibcxx_cv_prog_CXX_pch=no
5144        fi
5145        rm -f conftest*
5146        CXXFLAGS=$ac_save_CXXFLAGS
5147        ac_ext=c
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5152
5153
5154 fi
5155 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5156 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5157     enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5158   fi
5159
5160
5161   if test $enable_libstdcxx_pch = yes; then
5162     glibcxx_PCHFLAGS="-include bits/stdc++.h"
5163   else
5164     glibcxx_PCHFLAGS=""
5165   fi
5166
5167
5168
5169 # Enable all the variable C++ runtime options.
5170 # NB: C_MBCHAR must come early.
5171
5172   echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5173 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5174    # Check whether --enable-cstdio or --disable-cstdio was given.
5175 if test "${enable_cstdio+set}" = set; then
5176   enableval="$enable_cstdio"
5177
5178       case "$enableval" in
5179        stdio) ;;
5180        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5181 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5182    { (exit 1); exit 1; }; } ;;
5183                           esac
5184
5185 else
5186   enable_cstdio=stdio
5187 fi;
5188
5189
5190   # Now that libio has been removed, you can have any color you want as long
5191   # as it's black.  This is one big no-op until other packages are added, but
5192   # showing the framework never hurts.
5193   case ${enable_cstdio} in
5194     stdio)
5195       CSTDIO_H=config/io/c_io_stdio.h
5196       BASIC_FILE_H=config/io/basic_file_stdio.h
5197       BASIC_FILE_CC=config/io/basic_file_stdio.cc
5198       echo "$as_me:$LINENO: result: stdio" >&5
5199 echo "${ECHO_T}stdio" >&6
5200       ;;
5201   esac
5202
5203
5204
5205
5206
5207 ac_ext=c
5208 ac_cpp='$CPP $CPPFLAGS'
5209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5214 # On Suns, sometimes $CPP names a directory.
5215 if test -n "$CPP" && test -d "$CPP"; then
5216   CPP=
5217 fi
5218 if test -z "$CPP"; then
5219   if test "${ac_cv_prog_CPP+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222       # Double quotes because CPP needs to be expanded
5223     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5224     do
5225       ac_preproc_ok=false
5226 for ac_c_preproc_warn_flag in '' yes
5227 do
5228   # Use a header file that comes with gcc, so configuring glibc
5229   # with a fresh cross-compiler works.
5230   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5231   # <limits.h> exists even on freestanding compilers.
5232   # On the NeXT, cc -E runs the code through the compiler's parser,
5233   # not just through cpp. "Syntax error" is here to catch this case.
5234   cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h.  */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h.  */
5240 #ifdef __STDC__
5241 # include <limits.h>
5242 #else
5243 # include <assert.h>
5244 #endif
5245                      Syntax error
5246 _ACEOF
5247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249   ac_status=$?
5250   grep -v '^ *+' conftest.er1 >conftest.err
5251   rm -f conftest.er1
5252   cat conftest.err >&5
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } >/dev/null; then
5255   if test -s conftest.err; then
5256     ac_cpp_err=$ac_c_preproc_warn_flag
5257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5258   else
5259     ac_cpp_err=
5260   fi
5261 else
5262   ac_cpp_err=yes
5263 fi
5264 if test -z "$ac_cpp_err"; then
5265   :
5266 else
5267   echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270   # Broken: fails on valid input.
5271 continue
5272 fi
5273 rm -f conftest.err conftest.$ac_ext
5274
5275   # OK, works on sane cases.  Now check whether non-existent headers
5276   # can be detected and how.
5277   cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h.  */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h.  */
5283 #include <ac_nonexistent.h>
5284 _ACEOF
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5287   ac_status=$?
5288   grep -v '^ *+' conftest.er1 >conftest.err
5289   rm -f conftest.er1
5290   cat conftest.err >&5
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } >/dev/null; then
5293   if test -s conftest.err; then
5294     ac_cpp_err=$ac_c_preproc_warn_flag
5295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5296   else
5297     ac_cpp_err=
5298   fi
5299 else
5300   ac_cpp_err=yes
5301 fi
5302 if test -z "$ac_cpp_err"; then
5303   # Broken: success on invalid input.
5304 continue
5305 else
5306   echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309   # Passes both tests.
5310 ac_preproc_ok=:
5311 break
5312 fi
5313 rm -f conftest.err conftest.$ac_ext
5314
5315 done
5316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317 rm -f conftest.err conftest.$ac_ext
5318 if $ac_preproc_ok; then
5319   break
5320 fi
5321
5322     done
5323     ac_cv_prog_CPP=$CPP
5324
5325 fi
5326   CPP=$ac_cv_prog_CPP
5327 else
5328   ac_cv_prog_CPP=$CPP
5329 fi
5330 echo "$as_me:$LINENO: result: $CPP" >&5
5331 echo "${ECHO_T}$CPP" >&6
5332 ac_preproc_ok=false
5333 for ac_c_preproc_warn_flag in '' yes
5334 do
5335   # Use a header file that comes with gcc, so configuring glibc
5336   # with a fresh cross-compiler works.
5337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5338   # <limits.h> exists even on freestanding compilers.
5339   # On the NeXT, cc -E runs the code through the compiler's parser,
5340   # not just through cpp. "Syntax error" is here to catch this case.
5341   cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h.  */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h.  */
5347 #ifdef __STDC__
5348 # include <limits.h>
5349 #else
5350 # include <assert.h>
5351 #endif
5352                      Syntax error
5353 _ACEOF
5354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5356   ac_status=$?
5357   grep -v '^ *+' conftest.er1 >conftest.err
5358   rm -f conftest.er1
5359   cat conftest.err >&5
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); } >/dev/null; then
5362   if test -s conftest.err; then
5363     ac_cpp_err=$ac_c_preproc_warn_flag
5364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5365   else
5366     ac_cpp_err=
5367   fi
5368 else
5369   ac_cpp_err=yes
5370 fi
5371 if test -z "$ac_cpp_err"; then
5372   :
5373 else
5374   echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5376
5377   # Broken: fails on valid input.
5378 continue
5379 fi
5380 rm -f conftest.err conftest.$ac_ext
5381
5382   # OK, works on sane cases.  Now check whether non-existent headers
5383   # can be detected and how.
5384   cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h.  */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h.  */
5390 #include <ac_nonexistent.h>
5391 _ACEOF
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } >/dev/null; then
5400   if test -s conftest.err; then
5401     ac_cpp_err=$ac_c_preproc_warn_flag
5402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403   else
5404     ac_cpp_err=
5405   fi
5406 else
5407   ac_cpp_err=yes
5408 fi
5409 if test -z "$ac_cpp_err"; then
5410   # Broken: success on invalid input.
5411 continue
5412 else
5413   echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416   # Passes both tests.
5417 ac_preproc_ok=:
5418 break
5419 fi
5420 rm -f conftest.err conftest.$ac_ext
5421
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then
5426   :
5427 else
5428   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&2;}
5432    { (exit 1); exit 1; }; }
5433 fi
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441
5442 echo "$as_me:$LINENO: checking for egrep" >&5
5443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5444 if test "${ac_cv_prog_egrep+set}" = set; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5448     then ac_cv_prog_egrep='grep -E'
5449     else ac_cv_prog_egrep='egrep'
5450     fi
5451 fi
5452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5454  EGREP=$ac_cv_prog_egrep
5455
5456
5457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5459 if test "${ac_cv_header_stdc+set}" = set; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462   cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h.  */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h.  */
5468 #include <stdlib.h>
5469 #include <stdarg.h>
5470 #include <string.h>
5471 #include <float.h>
5472
5473 int
5474 main ()
5475 {
5476
5477   ;
5478   return 0;
5479 }
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483   (eval $ac_compile) 2>conftest.er1
5484   ac_status=$?
5485   grep -v '^ *+' conftest.er1 >conftest.err
5486   rm -f conftest.er1
5487   cat conftest.err >&5
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } &&
5490          { ac_try='test -z "$ac_c_werror_flag"
5491                          || test ! -s conftest.err'
5492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493   (eval $ac_try) 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }; } &&
5497          { ac_try='test -s conftest.$ac_objext'
5498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499   (eval $ac_try) 2>&5
5500   ac_status=$?
5501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); }; }; then
5503   ac_cv_header_stdc=yes
5504 else
5505   echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5507
5508 ac_cv_header_stdc=no
5509 fi
5510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5511
5512 if test $ac_cv_header_stdc = yes; then
5513   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5514   cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520 #include <string.h>
5521
5522 _ACEOF
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524   $EGREP "memchr" >/dev/null 2>&1; then
5525   :
5526 else
5527   ac_cv_header_stdc=no
5528 fi
5529 rm -f conftest*
5530
5531 fi
5532
5533 if test $ac_cv_header_stdc = yes; then
5534   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5535   cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h.  */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h.  */
5541 #include <stdlib.h>
5542
5543 _ACEOF
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545   $EGREP "free" >/dev/null 2>&1; then
5546   :
5547 else
5548   ac_cv_header_stdc=no
5549 fi
5550 rm -f conftest*
5551
5552 fi
5553
5554 if test $ac_cv_header_stdc = yes; then
5555   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5556   if test "$cross_compiling" = yes; then
5557   :
5558 else
5559   cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565 #include <ctype.h>
5566 #if ((' ' & 0x0FF) == 0x020)
5567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5569 #else
5570 # define ISLOWER(c) \
5571                    (('a' <= (c) && (c) <= 'i') \
5572                      || ('j' <= (c) && (c) <= 'r') \
5573                      || ('s' <= (c) && (c) <= 'z'))
5574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5575 #endif
5576
5577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5578 int
5579 main ()
5580 {
5581   int i;
5582   for (i = 0; i < 256; i++)
5583     if (XOR (islower (i), ISLOWER (i))
5584         || toupper (i) != TOUPPER (i))
5585       exit(2);
5586   exit (0);
5587 }
5588 _ACEOF
5589 rm -f conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591   (eval $ac_link) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596   (eval $ac_try) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; }; then
5600   :
5601 else
5602   echo "$as_me: program exited with status $ac_status" >&5
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 ( exit $ac_status )
5607 ac_cv_header_stdc=no
5608 fi
5609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5610 fi
5611 fi
5612 fi
5613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5615 if test $ac_cv_header_stdc = yes; then
5616
5617 cat >>confdefs.h <<\_ACEOF
5618 #define STDC_HEADERS 1
5619 _ACEOF
5620
5621 fi
5622
5623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5634                   inttypes.h stdint.h unistd.h
5635 do
5636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5637 echo "$as_me:$LINENO: checking for $ac_header" >&5
5638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648 $ac_includes_default
5649
5650 #include <$ac_header>
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654   (eval $ac_compile) 2>conftest.er1
5655   ac_status=$?
5656   grep -v '^ *+' conftest.er1 >conftest.err
5657   rm -f conftest.er1
5658   cat conftest.err >&5
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); } &&
5661          { ac_try='test -z "$ac_c_werror_flag"
5662                          || test ! -s conftest.err'
5663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664   (eval $ac_try) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); }; } &&
5668          { ac_try='test -s conftest.$ac_objext'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   eval "$as_ac_Header=yes"
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 eval "$as_ac_Header=no"
5680 fi
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5682 fi
5683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5686   cat >>confdefs.h <<_ACEOF
5687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5688 _ACEOF
5689
5690 fi
5691
5692 done
5693
5694
5695
5696   echo "$as_me:$LINENO: checking for C locale to use" >&5
5697 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5698    # Check whether --enable-clocale or --disable-clocale was given.
5699 if test "${enable_clocale+set}" = set; then
5700   enableval="$enable_clocale"
5701
5702       case "$enableval" in
5703        generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5704        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5705 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5706    { (exit 1); exit 1; }; } ;;
5707                           esac
5708
5709 else
5710   enable_clocale=auto
5711 fi;
5712
5713
5714   # If they didn't use this option switch, or if they specified --enable
5715   # with no specific model, we'll have to look for one.  If they
5716   # specified --disable (???), do likewise.
5717   if test $enable_clocale = no || test $enable_clocale = yes; then
5718      enable_clocale=auto
5719   fi
5720
5721   # Either a known package, or "auto"
5722   enable_clocale_flag=$enable_clocale
5723
5724   # Probe for locale support if no specific model is specified.
5725   # Default to "generic".
5726   if test $enable_clocale_flag = auto; then
5727     case x${target_os} in
5728       xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5729         cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735
5736         #include <features.h>
5737         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5738           _GLIBCXX_ok
5739         #endif
5740
5741 _ACEOF
5742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5743   $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5744   enable_clocale_flag=gnu
5745 else
5746   enable_clocale_flag=generic
5747 fi
5748 rm -f conftest*
5749
5750
5751         # Test for bugs early in glibc-2.2.x series
5752           if test x$enable_clocale_flag = xgnu; then
5753           if test "$cross_compiling" = yes; then
5754   enable_clocale_flag=generic
5755 else
5756   cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h.  */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h.  */
5762
5763           #define _GNU_SOURCE 1
5764           #include <locale.h>
5765           #include <string.h>
5766           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5767           extern __typeof(newlocale) __newlocale;
5768           extern __typeof(duplocale) __duplocale;
5769           extern __typeof(strcoll_l) __strcoll_l;
5770           #endif
5771           int main()
5772           {
5773               const char __one[] = "Äuglein Augmen";
5774               const char __two[] = "Äuglein";
5775               int i;
5776               int j;
5777               __locale_t        loc;
5778                __locale_t        loc_dup;
5779               loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5780               loc_dup = __duplocale(loc);
5781               i = __strcoll_l(__one, __two, loc);
5782               j = __strcoll_l(__one, __two, loc_dup);
5783               return 0;
5784           }
5785
5786 _ACEOF
5787 rm -f conftest$ac_exeext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5789   (eval $ac_link) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794   (eval $ac_try) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; }; then
5798   enable_clocale_flag=gnu
5799 else
5800   echo "$as_me: program exited with status $ac_status" >&5
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ( exit $ac_status )
5805 enable_clocale_flag=generic
5806 fi
5807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5808 fi
5809           fi
5810
5811         # ... at some point put __strxfrm_l tests in as well.
5812         ;;
5813       *)
5814         enable_clocale_flag=generic
5815         ;;
5816     esac
5817   fi
5818
5819   # Deal with gettext issues.  Default to not using it (=no) until we detect
5820   # support for it later.  Let the user turn it off via --e/d, but let that
5821   # default to on for easier handling.
5822   USE_NLS=no
5823   # Check whether --enable-nls or --disable-nls was given.
5824 if test "${enable_nls+set}" = set; then
5825   enableval="$enable_nls"
5826
5827 else
5828   enable_nls=yes
5829 fi;
5830
5831   # Set configure bits for specified locale package
5832   case ${enable_clocale_flag} in
5833     generic)
5834       echo "$as_me:$LINENO: result: generic" >&5
5835 echo "${ECHO_T}generic" >&6
5836
5837       CLOCALE_H=config/locale/generic/c_locale.h
5838       CLOCALE_CC=config/locale/generic/c_locale.cc
5839       CCODECVT_H=config/locale/generic/codecvt_specializations.h
5840       CCODECVT_CC=config/locale/generic/codecvt_members.cc
5841       CCOLLATE_CC=config/locale/generic/collate_members.cc
5842       CCTYPE_CC=config/locale/generic/ctype_members.cc
5843       CMESSAGES_H=config/locale/generic/messages_members.h
5844       CMESSAGES_CC=config/locale/generic/messages_members.cc
5845       CMONEY_CC=config/locale/generic/monetary_members.cc
5846       CNUMERIC_CC=config/locale/generic/numeric_members.cc
5847       CTIME_H=config/locale/generic/time_members.h
5848       CTIME_CC=config/locale/generic/time_members.cc
5849       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5850       ;;
5851     gnu)
5852       echo "$as_me:$LINENO: result: gnu" >&5
5853 echo "${ECHO_T}gnu" >&6
5854
5855       # Declare intention to use gettext, and add support for specific
5856       # languages.
5857       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5858       ALL_LINGUAS="de fr"
5859
5860       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5861       # Extract the first word of "msgfmt", so it can be a program name with args.
5862 set dummy msgfmt; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   if test -n "$check_msgfmt"; then
5869   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876   for ac_exec_ext in '' $ac_executable_extensions; do
5877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878     ac_cv_prog_check_msgfmt="yes"
5879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883 done
5884
5885   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5886 fi
5887 fi
5888 check_msgfmt=$ac_cv_prog_check_msgfmt
5889 if test -n "$check_msgfmt"; then
5890   echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5891 echo "${ECHO_T}$check_msgfmt" >&6
5892 else
5893   echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5895 fi
5896
5897       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5898         USE_NLS=yes
5899       fi
5900       # Export the build objects.
5901       for ling in $ALL_LINGUAS; do \
5902         glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5903         glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5904       done
5905
5906
5907
5908       CLOCALE_H=config/locale/gnu/c_locale.h
5909       CLOCALE_CC=config/locale/gnu/c_locale.cc
5910       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5911       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5912       CCOLLATE_CC=config/locale/gnu/collate_members.cc
5913       CCTYPE_CC=config/locale/gnu/ctype_members.cc
5914       CMESSAGES_H=config/locale/gnu/messages_members.h
5915       CMESSAGES_CC=config/locale/gnu/messages_members.cc
5916       CMONEY_CC=config/locale/gnu/monetary_members.cc
5917       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5918       CTIME_H=config/locale/gnu/time_members.h
5919       CTIME_CC=config/locale/gnu/time_members.cc
5920       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5921       ;;
5922     ieee_1003.1-2001)
5923       echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5924 echo "${ECHO_T}IEEE 1003.1" >&6
5925
5926       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5927       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5928       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5929       CCODECVT_CC=config/locale/generic/codecvt_members.cc
5930       CCOLLATE_CC=config/locale/generic/collate_members.cc
5931       CCTYPE_CC=config/locale/generic/ctype_members.cc
5932       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5933       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5934       CMONEY_CC=config/locale/generic/monetary_members.cc
5935       CNUMERIC_CC=config/locale/generic/numeric_members.cc
5936       CTIME_H=config/locale/generic/time_members.h
5937       CTIME_CC=config/locale/generic/time_members.cc
5938       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5939       ;;
5940   esac
5941
5942   # This is where the testsuite looks for locale catalogs, using the
5943   # -DLOCALEDIR define during testsuite compilation.
5944   glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5945
5946
5947   # A standalone libintl (e.g., GNU libintl) may be in use.
5948   if test $USE_NLS = yes; then
5949
5950 for ac_header in libintl.h
5951 do
5952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954   echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 fi
5959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961 else
5962   # Is the header compilable?
5963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h.  */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h.  */
5971 $ac_includes_default
5972 #include <$ac_header>
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976   (eval $ac_compile) 2>conftest.er1
5977   ac_status=$?
5978   grep -v '^ *+' conftest.er1 >conftest.err
5979   rm -f conftest.er1
5980   cat conftest.err >&5
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } &&
5983          { ac_try='test -z "$ac_c_werror_flag"
5984                          || test ! -s conftest.err'
5985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986   (eval $ac_try) 2>&5
5987   ac_status=$?
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); }; } &&
5990          { ac_try='test -s conftest.$ac_objext'
5991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992   (eval $ac_try) 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); }; }; then
5996   ac_header_compiler=yes
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001 ac_header_compiler=no
6002 fi
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6005 echo "${ECHO_T}$ac_header_compiler" >&6
6006
6007 # Is the header present?
6008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016 #include <$ac_header>
6017 _ACEOF
6018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6020   ac_status=$?
6021   grep -v '^ *+' conftest.er1 >conftest.err
6022   rm -f conftest.er1
6023   cat conftest.err >&5
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); } >/dev/null; then
6026   if test -s conftest.err; then
6027     ac_cpp_err=$ac_c_preproc_warn_flag
6028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6029   else
6030     ac_cpp_err=
6031   fi
6032 else
6033   ac_cpp_err=yes
6034 fi
6035 if test -z "$ac_cpp_err"; then
6036   ac_header_preproc=yes
6037 else
6038   echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041   ac_header_preproc=no
6042 fi
6043 rm -f conftest.err conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6045 echo "${ECHO_T}$ac_header_preproc" >&6
6046
6047 # So?  What about this header?
6048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6049   yes:no: )
6050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6054     ac_header_preproc=yes
6055     ;;
6056   no:yes:* )
6057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6069     (
6070       cat <<\_ASBOX
6071 ## ----------------------------------------- ##
6072 ## Report this to the package-unused lists.  ##
6073 ## ----------------------------------------- ##
6074 _ASBOX
6075     ) |
6076       sed "s/^/$as_me: WARNING:     /" >&2
6077     ;;
6078 esac
6079 echo "$as_me:$LINENO: checking for $ac_header" >&5
6080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   eval "$as_ac_Header=\$ac_header_preproc"
6085 fi
6086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6088
6089 fi
6090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6091   cat >>confdefs.h <<_ACEOF
6092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6093 _ACEOF
6094
6095 else
6096   USE_NLS=no
6097 fi
6098
6099 done
6100
6101     echo "$as_me:$LINENO: checking for library containing gettext" >&5
6102 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
6103 if test "${ac_cv_search_gettext+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   ac_func_search_save_LIBS=$LIBS
6107 ac_cv_search_gettext=no
6108 if test x$gcc_no_link = xyes; then
6109   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6111    { (exit 1); exit 1; }; }
6112 fi
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h.  */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h.  */
6119
6120 /* Override any gcc2 internal prototype to avoid an error.  */
6121 #ifdef __cplusplus
6122 extern "C"
6123 #endif
6124 /* We use char because int might match the return type of a gcc2
6125    builtin and then its argument prototype would still apply.  */
6126 char gettext ();
6127 int
6128 main ()
6129 {
6130 gettext ();
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137   (eval $ac_link) 2>conftest.er1
6138   ac_status=$?
6139   grep -v '^ *+' conftest.er1 >conftest.err
6140   rm -f conftest.er1
6141   cat conftest.err >&5
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); } &&
6144          { ac_try='test -z "$ac_c_werror_flag"
6145                          || test ! -s conftest.err'
6146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; } &&
6151          { ac_try='test -s conftest$ac_exeext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_cv_search_gettext="none required"
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 fi
6163 rm -f conftest.err conftest.$ac_objext \
6164       conftest$ac_exeext conftest.$ac_ext
6165 if test "$ac_cv_search_gettext" = no; then
6166   for ac_lib in intl; do
6167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6168     if test x$gcc_no_link = xyes; then
6169   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6171    { (exit 1); exit 1; }; }
6172 fi
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179
6180 /* Override any gcc2 internal prototype to avoid an error.  */
6181 #ifdef __cplusplus
6182 extern "C"
6183 #endif
6184 /* We use char because int might match the return type of a gcc2
6185    builtin and then its argument prototype would still apply.  */
6186 char gettext ();
6187 int
6188 main ()
6189 {
6190 gettext ();
6191   ;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197   (eval $ac_link) 2>conftest.er1
6198   ac_status=$?
6199   grep -v '^ *+' conftest.er1 >conftest.err
6200   rm -f conftest.er1
6201   cat conftest.err >&5
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } &&
6204          { ac_try='test -z "$ac_c_werror_flag"
6205                          || test ! -s conftest.err'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; } &&
6211          { ac_try='test -s conftest$ac_exeext'
6212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213   (eval $ac_try) 2>&5
6214   ac_status=$?
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }; }; then
6217   ac_cv_search_gettext="-l$ac_lib"
6218 break
6219 else
6220   echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 fi
6224 rm -f conftest.err conftest.$ac_objext \
6225       conftest$ac_exeext conftest.$ac_ext
6226   done
6227 fi
6228 LIBS=$ac_func_search_save_LIBS
6229 fi
6230 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6231 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6232 if test "$ac_cv_search_gettext" != no; then
6233   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6234
6235 else
6236   USE_NLS=no
6237 fi
6238
6239   fi
6240   if test $USE_NLS = yes; then
6241     cat >>confdefs.h <<\_ACEOF
6242 #define _GLIBCXX_USE_NLS 1
6243 _ACEOF
6244
6245   fi
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263   echo "$as_me:$LINENO: checking for std::allocator base class to use" >&5
6264 echo $ECHO_N "checking for std::allocator base class to use... $ECHO_C" >&6
6265    # Check whether --enable-libstdcxx-allocator or --disable-libstdcxx-allocator was given.
6266 if test "${enable_libstdcxx_allocator+set}" = set; then
6267   enableval="$enable_libstdcxx_allocator"
6268
6269       case "$enableval" in
6270        new|malloc|mt|bitmap|yes|no|auto) ;;
6271        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable libstdcxx-allocator" >&5
6272 echo "$as_me: error: Unknown argument to enable/disable libstdcxx-allocator" >&2;}
6273    { (exit 1); exit 1; }; } ;;
6274                           esac
6275
6276 else
6277   enable_libstdcxx_allocator=auto
6278 fi;
6279
6280   # If they didn't use this option switch, or if they specified --enable
6281   # with no specific model, we'll have to look for one.  If they
6282   # specified --disable (???), do likewise.
6283   if test $enable_libstdcxx_allocator = no || test $enable_libstdcxx_allocator = yes; then
6284      enable_libstdcxx_allocator=auto
6285   fi
6286
6287   # Either a known package, or "auto"
6288   enable_libstdcxx_allocator_flag=$enable_libstdcxx_allocator
6289
6290   # Probe for host-specific support if no specific model is specified.
6291   # Default to "new".
6292   if test $enable_libstdcxx_allocator_flag = auto; then
6293     case ${target_os} in
6294       *)
6295         enable_libstdcxx_allocator_flag=new
6296         ;;
6297     esac
6298   fi
6299   echo "$as_me:$LINENO: result: $enable_libstdcxx_allocator_flag" >&5
6300 echo "${ECHO_T}$enable_libstdcxx_allocator_flag" >&6
6301
6302
6303   # Set configure bits for specified locale package
6304   case ${enable_libstdcxx_allocator_flag} in
6305     bitmap)
6306       ALLOCATOR_H=config/allocator/bitmap_allocator_base.h
6307       ALLOCATOR_NAME=__gnu_cxx::bitmap_allocator
6308       ;;
6309     malloc)
6310       ALLOCATOR_H=config/allocator/malloc_allocator_base.h
6311       ALLOCATOR_NAME=__gnu_cxx::malloc_allocator
6312       ;;
6313     mt)
6314       ALLOCATOR_H=config/allocator/mt_allocator_base.h
6315       ALLOCATOR_NAME=__gnu_cxx::__mt_alloc
6316       ;;
6317     new)
6318       ALLOCATOR_H=config/allocator/new_allocator_base.h
6319       ALLOCATOR_NAME=__gnu_cxx::new_allocator
6320       ;;
6321   esac
6322
6323
6324
6325
6326
6327    # Check whether --enable-cheaders or --disable-cheaders was given.
6328 if test "${enable_cheaders+set}" = set; then
6329   enableval="$enable_cheaders"
6330
6331       case "$enableval" in
6332        c|c_std) ;;
6333        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6334 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6335    { (exit 1); exit 1; }; } ;;
6336                           esac
6337
6338 else
6339   enable_cheaders=$c_model
6340 fi;
6341
6342   { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6343 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6344
6345   C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6346
6347
6348
6349
6350
6351
6352    # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6353 if test "${enable_c_mbchar+set}" = set; then
6354   enableval="$enable_c_mbchar"
6355
6356       case "$enableval" in
6357        yes|no) ;;
6358        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6359 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6360    { (exit 1); exit 1; }; } ;;
6361       esac
6362
6363 else
6364   enable_c_mbchar=yes
6365 fi;
6366
6367   # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6368
6369
6370
6371    # Check whether --enable-c99 or --disable-c99 was given.
6372 if test "${enable_c99+set}" = set; then
6373   enableval="$enable_c99"
6374
6375       case "$enableval" in
6376        yes|no) ;;
6377        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6378 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6379    { (exit 1); exit 1; }; } ;;
6380       esac
6381
6382 else
6383   enable_c99=yes
6384 fi;
6385
6386
6387
6388
6389   ac_ext=cc
6390 ac_cpp='$CXXCPP $CPPFLAGS'
6391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6394
6395
6396   # Check for the existence of <math.h> functions used if C99 is enabled.
6397   ac_c99_math=yes;
6398   echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6399 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6400   cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406 #include <math.h>
6407 int
6408 main ()
6409 {
6410 fpclassify(0.0);
6411   ;
6412   return 0;
6413 }
6414 _ACEOF
6415 rm -f conftest.$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417   (eval $ac_compile) 2>conftest.er1
6418   ac_status=$?
6419   grep -v '^ *+' conftest.er1 >conftest.err
6420   rm -f conftest.er1
6421   cat conftest.err >&5
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); } &&
6424          { ac_try='test -z "$ac_cxx_werror_flag"
6425                          || test ! -s conftest.err'
6426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427   (eval $ac_try) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; } &&
6431          { ac_try='test -s conftest.$ac_objext'
6432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433   (eval $ac_try) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); }; }; then
6437   :
6438 else
6439   echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_c99_math=no
6443 fi
6444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445   cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h.  */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h.  */
6451 #include <math.h>
6452 int
6453 main ()
6454 {
6455 isfinite(0.0);
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 rm -f conftest.$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462   (eval $ac_compile) 2>conftest.er1
6463   ac_status=$?
6464   grep -v '^ *+' conftest.er1 >conftest.err
6465   rm -f conftest.er1
6466   cat conftest.err >&5
6467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468   (exit $ac_status); } &&
6469          { ac_try='test -z "$ac_cxx_werror_flag"
6470                          || test ! -s conftest.err'
6471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472   (eval $ac_try) 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); }; } &&
6476          { ac_try='test -s conftest.$ac_objext'
6477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478   (eval $ac_try) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; }; then
6482   :
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6486
6487 ac_c99_math=no
6488 fi
6489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6490   cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h.  */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h.  */
6496 #include <math.h>
6497 int
6498 main ()
6499 {
6500 isinf(0.0);
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507   (eval $ac_compile) 2>conftest.er1
6508   ac_status=$?
6509   grep -v '^ *+' conftest.er1 >conftest.err
6510   rm -f conftest.er1
6511   cat conftest.err >&5
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); } &&
6514          { ac_try='test -z "$ac_cxx_werror_flag"
6515                          || test ! -s conftest.err'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; } &&
6521          { ac_try='test -s conftest.$ac_objext'
6522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523   (eval $ac_try) 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; }; then
6527   :
6528 else
6529   echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 ac_c99_math=no
6533 fi
6534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6535   cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h.  */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h.  */
6541 #include <math.h>
6542 int
6543 main ()
6544 {
6545 isnan(0.0);
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552   (eval $ac_compile) 2>conftest.er1
6553   ac_status=$?
6554   grep -v '^ *+' conftest.er1 >conftest.err
6555   rm -f conftest.er1
6556   cat conftest.err >&5
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); } &&
6559          { ac_try='test -z "$ac_cxx_werror_flag"
6560                          || test ! -s conftest.err'
6561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562   (eval $ac_try) 2>&5
6563   ac_status=$?
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); }; } &&
6566          { ac_try='test -s conftest.$ac_objext'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; }; then
6572   :
6573 else
6574   echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 ac_c99_math=no
6578 fi
6579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580   cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h.  */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h.  */
6586 #include <math.h>
6587 int
6588 main ()
6589 {
6590 isnormal(0.0);
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6597   (eval $ac_compile) 2>conftest.er1
6598   ac_status=$?
6599   grep -v '^ *+' conftest.er1 >conftest.err
6600   rm -f conftest.er1
6601   cat conftest.err >&5
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -z "$ac_cxx_werror_flag"
6605                          || test ! -s conftest.err'
6606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607   (eval $ac_try) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }; } &&
6611          { ac_try='test -s conftest.$ac_objext'
6612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613   (eval $ac_try) 2>&5
6614   ac_status=$?
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); }; }; then
6617   :
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 ac_c99_math=no
6623 fi
6624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6625   cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h.  */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h.  */
6631 #include <math.h>
6632 int
6633 main ()
6634 {
6635 signbit(0.0);
6636   ;
6637   return 0;
6638 }
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642   (eval $ac_compile) 2>conftest.er1
6643   ac_status=$?
6644   grep -v '^ *+' conftest.er1 >conftest.err
6645   rm -f conftest.er1
6646   cat conftest.err >&5
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); } &&
6649          { ac_try='test -z "$ac_cxx_werror_flag"
6650                          || test ! -s conftest.err'
6651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652   (eval $ac_try) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); }; } &&
6656          { ac_try='test -s conftest.$ac_objext'
6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658   (eval $ac_try) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; }; then
6662   :
6663 else
6664   echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_c99_math=no
6668 fi
6669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6670   cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 #include <math.h>
6677 int
6678 main ()
6679 {
6680 isgreater(0.0,0.0);
6681   ;
6682   return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest.$ac_objext
6686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6687   (eval $ac_compile) 2>conftest.er1
6688   ac_status=$?
6689   grep -v '^ *+' conftest.er1 >conftest.err
6690   rm -f conftest.er1
6691   cat conftest.err >&5
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); } &&
6694          { ac_try='test -z "$ac_cxx_werror_flag"
6695                          || test ! -s conftest.err'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; } &&
6701          { ac_try='test -s conftest.$ac_objext'
6702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703   (eval $ac_try) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); }; }; then
6707   :
6708 else
6709   echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6711
6712 ac_c99_math=no
6713 fi
6714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6715   cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h.  */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h.  */
6721 #include <math.h>
6722 int
6723 main ()
6724 {
6725 isgreaterequal(0.0,0.0);
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6732   (eval $ac_compile) 2>conftest.er1
6733   ac_status=$?
6734   grep -v '^ *+' conftest.er1 >conftest.err
6735   rm -f conftest.er1
6736   cat conftest.err >&5
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); } &&
6739          { ac_try='test -z "$ac_cxx_werror_flag"
6740                          || test ! -s conftest.err'
6741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742   (eval $ac_try) 2>&5
6743   ac_status=$?
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); }; } &&
6746          { ac_try='test -s conftest.$ac_objext'
6747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748   (eval $ac_try) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); }; }; then
6752   :
6753 else
6754   echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6756
6757 ac_c99_math=no
6758 fi
6759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6760   cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h.  */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h.  */
6766 #include <math.h>
6767 int
6768 main ()
6769 {
6770 isless(0.0,0.0);
6771   ;
6772   return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777   (eval $ac_compile) 2>conftest.er1
6778   ac_status=$?
6779   grep -v '^ *+' conftest.er1 >conftest.err
6780   rm -f conftest.er1
6781   cat conftest.err >&5
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); } &&
6784          { ac_try='test -z "$ac_cxx_werror_flag"
6785                          || test ! -s conftest.err'
6786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787   (eval $ac_try) 2>&5
6788   ac_status=$?
6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790   (exit $ac_status); }; } &&
6791          { ac_try='test -s conftest.$ac_objext'
6792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793   (eval $ac_try) 2>&5
6794   ac_status=$?
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); }; }; then
6797   :
6798 else
6799   echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6801
6802 ac_c99_math=no
6803 fi
6804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6805   cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811 #include <math.h>
6812 int
6813 main ()
6814 {
6815 islessequal(0.0,0.0);
6816   ;
6817   return 0;
6818 }
6819 _ACEOF
6820 rm -f conftest.$ac_objext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822   (eval $ac_compile) 2>conftest.er1
6823   ac_status=$?
6824   grep -v '^ *+' conftest.er1 >conftest.err
6825   rm -f conftest.er1
6826   cat conftest.err >&5
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); } &&
6829          { ac_try='test -z "$ac_cxx_werror_flag"
6830                          || test ! -s conftest.err'
6831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832   (eval $ac_try) 2>&5
6833   ac_status=$?
6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835   (exit $ac_status); }; } &&
6836          { ac_try='test -s conftest.$ac_objext'
6837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838   (eval $ac_try) 2>&5
6839   ac_status=$?
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); }; }; then
6842   :
6843 else
6844   echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6846
6847 ac_c99_math=no
6848 fi
6849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6850   cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h.  */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h.  */
6856 #include <math.h>
6857 int
6858 main ()
6859 {
6860 islessgreater(0.0,0.0);
6861   ;
6862   return 0;
6863 }
6864 _ACEOF
6865 rm -f conftest.$ac_objext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867   (eval $ac_compile) 2>conftest.er1
6868   ac_status=$?
6869   grep -v '^ *+' conftest.er1 >conftest.err
6870   rm -f conftest.er1
6871   cat conftest.err >&5
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); } &&
6874          { ac_try='test -z "$ac_cxx_werror_flag"
6875                          || test ! -s conftest.err'
6876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877   (eval $ac_try) 2>&5
6878   ac_status=$?
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); }; } &&
6881          { ac_try='test -s conftest.$ac_objext'
6882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883   (eval $ac_try) 2>&5
6884   ac_status=$?
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); }; }; then
6887   :
6888 else
6889   echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6891
6892 ac_c99_math=no
6893 fi
6894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6895   cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h.  */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h.  */
6901 #include <math.h>
6902 int
6903 main ()
6904 {
6905 isunordered(0.0,0.0);
6906   ;
6907   return 0;
6908 }
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912   (eval $ac_compile) 2>conftest.er1
6913   ac_status=$?
6914   grep -v '^ *+' conftest.er1 >conftest.err
6915   rm -f conftest.er1
6916   cat conftest.err >&5
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); } &&
6919          { ac_try='test -z "$ac_cxx_werror_flag"
6920                          || test ! -s conftest.err'
6921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922   (eval $ac_try) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; } &&
6926          { ac_try='test -s conftest.$ac_objext'
6927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928   (eval $ac_try) 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; }; then
6932   :
6933 else
6934   echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 ac_c99_math=no
6938 fi
6939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6940   echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6941 echo "${ECHO_T}$ac_c99_math" >&6
6942
6943   if test x"$ac_c99_math" = x"yes"; then
6944     cat >>confdefs.h <<\_ACEOF
6945 #define _GLIBCXX_USE_C99_MATH 1
6946 _ACEOF
6947
6948   fi
6949
6950   # Check for the existence in <stdio.h> of vscanf, et. al.
6951   ac_c99_stdio=yes;
6952   echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6953 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6954   cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h.  */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h.  */
6960 #include <stdio.h>
6961 int
6962 main ()
6963 {
6964 snprintf("12", 0, "%i");
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971   (eval $ac_compile) 2>conftest.er1
6972   ac_status=$?
6973   grep -v '^ *+' conftest.er1 >conftest.err
6974   rm -f conftest.er1
6975   cat conftest.err >&5
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } &&
6978          { ac_try='test -z "$ac_cxx_werror_flag"
6979                          || test ! -s conftest.err'
6980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981   (eval $ac_try) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); }; } &&
6985          { ac_try='test -s conftest.$ac_objext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   :
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_c99_stdio=no
6997 fi
6998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6999   cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h.  */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h.  */
7005 #include <stdio.h>
7006                   #include <stdarg.h>
7007                   void foo(char* fmt, ...)
7008                   {va_list args; va_start(args, fmt);
7009                   vfscanf(stderr, "%i", args);}
7010 int
7011 main ()
7012 {
7013
7014   ;
7015   return 0;
7016 }
7017 _ACEOF
7018 rm -f conftest.$ac_objext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7020   (eval $ac_compile) 2>conftest.er1
7021   ac_status=$?
7022   grep -v '^ *+' conftest.er1 >conftest.err
7023   rm -f conftest.er1
7024   cat conftest.err >&5
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); } &&
7027          { ac_try='test -z "$ac_cxx_werror_flag"
7028                          || test ! -s conftest.err'
7029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030   (eval $ac_try) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); }; } &&
7034          { ac_try='test -s conftest.$ac_objext'
7035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036   (eval $ac_try) 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); }; }; then
7040   :
7041 else
7042   echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045 ac_c99_stdio=no
7046 fi
7047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7048   cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h.  */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h.  */
7054 #include <stdio.h>
7055                   #include <stdarg.h>
7056                   void foo(char* fmt, ...)
7057                   {va_list args; va_start(args, fmt);
7058                   vscanf("%i", args);}
7059 int
7060 main ()
7061 {
7062
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>conftest.er1
7070   ac_status=$?
7071   grep -v '^ *+' conftest.er1 >conftest.err
7072   rm -f conftest.er1
7073   cat conftest.err >&5
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } &&
7076          { ac_try='test -z "$ac_cxx_werror_flag"
7077                          || test ! -s conftest.err'
7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079   (eval $ac_try) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; } &&
7083          { ac_try='test -s conftest.$ac_objext'
7084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085   (eval $ac_try) 2>&5
7086   ac_status=$?
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); }; }; then
7089   :
7090 else
7091   echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7093
7094 ac_c99_stdio=no
7095 fi
7096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097   cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h.  */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h.  */
7103 #include <stdio.h>
7104                   #include <stdarg.h>
7105                   void foo(char* fmt, ...)
7106                   {va_list args; va_start(args, fmt);
7107                   vsnprintf(fmt, 0, "%i", args);}
7108 int
7109 main ()
7110 {
7111
7112   ;
7113   return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118   (eval $ac_compile) 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } &&
7125          { ac_try='test -z "$ac_cxx_werror_flag"
7126                          || test ! -s conftest.err'
7127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128   (eval $ac_try) 2>&5
7129   ac_status=$?
7130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); }; } &&
7132          { ac_try='test -s conftest.$ac_objext'
7133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134   (eval $ac_try) 2>&5
7135   ac_status=$?
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); }; }; then
7138   :
7139 else
7140   echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 ac_c99_stdio=no
7144 fi
7145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7146   cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h.  */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h.  */
7152 #include <stdio.h>
7153                   #include <stdarg.h>
7154                   void foo(char* fmt, ...)
7155                   {va_list args; va_start(args, fmt);
7156                   vsscanf(fmt, "%i", args);}
7157 int
7158 main ()
7159 {
7160
7161   ;
7162   return 0;
7163 }
7164 _ACEOF
7165 rm -f conftest.$ac_objext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167   (eval $ac_compile) 2>conftest.er1
7168   ac_status=$?
7169   grep -v '^ *+' conftest.er1 >conftest.err
7170   rm -f conftest.er1
7171   cat conftest.err >&5
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); } &&
7174          { ac_try='test -z "$ac_cxx_werror_flag"
7175                          || test ! -s conftest.err'
7176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177   (eval $ac_try) 2>&5
7178   ac_status=$?
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); }; } &&
7181          { ac_try='test -s conftest.$ac_objext'
7182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183   (eval $ac_try) 2>&5
7184   ac_status=$?
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); }; }; then
7187   :
7188 else
7189   echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7191
7192 ac_c99_stdio=no
7193 fi
7194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7195   echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
7196 echo "${ECHO_T}$ac_c99_stdio" >&6
7197
7198   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
7199   ac_c99_stdlib=yes;
7200   echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
7201 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
7202   if test "${ac_c99_lldiv_t+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205
7206   cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h.  */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h.  */
7212 #include <stdlib.h>
7213 int
7214 main ()
7215 {
7216  lldiv_t mydivt;
7217   ;
7218   return 0;
7219 }
7220 _ACEOF
7221 rm -f conftest.$ac_objext
7222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223   (eval $ac_compile) 2>conftest.er1
7224   ac_status=$?
7225   grep -v '^ *+' conftest.er1 >conftest.err
7226   rm -f conftest.er1
7227   cat conftest.err >&5
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); } &&
7230          { ac_try='test -z "$ac_cxx_werror_flag"
7231                          || test ! -s conftest.err'
7232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233   (eval $ac_try) 2>&5
7234   ac_status=$?
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); }; } &&
7237          { ac_try='test -s conftest.$ac_objext'
7238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239   (eval $ac_try) 2>&5
7240   ac_status=$?
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); }; }; then
7243   ac_c99_lldiv_t=yes
7244 else
7245   echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7247
7248 ac_c99_lldiv_t=no
7249 fi
7250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7251
7252 fi
7253
7254   echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
7255 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
7256
7257   echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
7258 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
7259   cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h.  */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h.  */
7265 #include <stdlib.h>
7266 int
7267 main ()
7268 {
7269 char* tmp; strtof("gnu", &tmp);
7270   ;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest.$ac_objext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7276   (eval $ac_compile) 2>conftest.er1
7277   ac_status=$?
7278   grep -v '^ *+' conftest.er1 >conftest.err
7279   rm -f conftest.er1
7280   cat conftest.err >&5
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); } &&
7283          { ac_try='test -z "$ac_cxx_werror_flag"
7284                          || test ! -s conftest.err'
7285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286   (eval $ac_try) 2>&5
7287   ac_status=$?
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); }; } &&
7290          { ac_try='test -s conftest.$ac_objext'
7291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292   (eval $ac_try) 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; }; then
7296   :
7297 else
7298   echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 ac_c99_stdlib=no
7302 fi
7303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7304   cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h.  */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h.  */
7310 #include <stdlib.h>
7311 int
7312 main ()
7313 {
7314 char* tmp; strtold("gnu", &tmp);
7315   ;
7316   return 0;
7317 }
7318 _ACEOF
7319 rm -f conftest.$ac_objext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321   (eval $ac_compile) 2>conftest.er1
7322   ac_status=$?
7323   grep -v '^ *+' conftest.er1 >conftest.err
7324   rm -f conftest.er1
7325   cat conftest.err >&5
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); } &&
7328          { ac_try='test -z "$ac_cxx_werror_flag"
7329                          || test ! -s conftest.err'
7330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331   (eval $ac_try) 2>&5
7332   ac_status=$?
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); }; } &&
7335          { ac_try='test -s conftest.$ac_objext'
7336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337   (eval $ac_try) 2>&5
7338   ac_status=$?
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); }; }; then
7341   :
7342 else
7343   echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346 ac_c99_stdlib=no
7347 fi
7348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7349   cat >conftest.$ac_ext <<_ACEOF
7350 /* confdefs.h.  */
7351 _ACEOF
7352 cat confdefs.h >>conftest.$ac_ext
7353 cat >>conftest.$ac_ext <<_ACEOF
7354 /* end confdefs.h.  */
7355 #include <stdlib.h>
7356 int
7357 main ()
7358 {
7359 llabs(10);
7360   ;
7361   return 0;
7362 }
7363 _ACEOF
7364 rm -f conftest.$ac_objext
7365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7366   (eval $ac_compile) 2>conftest.er1
7367   ac_status=$?
7368   grep -v '^ *+' conftest.er1 >conftest.err
7369   rm -f conftest.er1
7370   cat conftest.err >&5
7371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372   (exit $ac_status); } &&
7373          { ac_try='test -z "$ac_cxx_werror_flag"
7374                          || test ! -s conftest.err'
7375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376   (eval $ac_try) 2>&5
7377   ac_status=$?
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); }; } &&
7380          { ac_try='test -s conftest.$ac_objext'
7381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382   (eval $ac_try) 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); }; }; then
7386   :
7387 else
7388   echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7390
7391 ac_c99_stdlib=no
7392 fi
7393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7394   cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h.  */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h.  */
7400 #include <stdlib.h>
7401 int
7402 main ()
7403 {
7404 lldiv(10,1);
7405   ;
7406   return 0;
7407 }
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411   (eval $ac_compile) 2>conftest.er1
7412   ac_status=$?
7413   grep -v '^ *+' conftest.er1 >conftest.err
7414   rm -f conftest.er1
7415   cat conftest.err >&5
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); } &&
7418          { ac_try='test -z "$ac_cxx_werror_flag"
7419                          || test ! -s conftest.err'
7420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421   (eval $ac_try) 2>&5
7422   ac_status=$?
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); }; } &&
7425          { ac_try='test -s conftest.$ac_objext'
7426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427   (eval $ac_try) 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); }; }; then
7431   :
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436 ac_c99_stdlib=no
7437 fi
7438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7439   cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 #include <stdlib.h>
7446 int
7447 main ()
7448 {
7449 atoll("10");
7450   ;
7451   return 0;
7452 }
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456   (eval $ac_compile) 2>conftest.er1
7457   ac_status=$?
7458   grep -v '^ *+' conftest.er1 >conftest.err
7459   rm -f conftest.er1
7460   cat conftest.err >&5
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); } &&
7463          { ac_try='test -z "$ac_cxx_werror_flag"
7464                          || test ! -s conftest.err'
7465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466   (eval $ac_try) 2>&5
7467   ac_status=$?
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); }; } &&
7470          { ac_try='test -s conftest.$ac_objext'
7471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472   (eval $ac_try) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); }; }; then
7476   :
7477 else
7478   echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 ac_c99_stdlib=no
7482 fi
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484   cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h.  */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h.  */
7490 #include <stdlib.h>
7491 int
7492 main ()
7493 {
7494 _Exit(0);
7495   ;
7496   return 0;
7497 }
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501   (eval $ac_compile) 2>conftest.er1
7502   ac_status=$?
7503   grep -v '^ *+' conftest.er1 >conftest.err
7504   rm -f conftest.er1
7505   cat conftest.err >&5
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); } &&
7508          { ac_try='test -z "$ac_cxx_werror_flag"
7509                          || test ! -s conftest.err'
7510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511   (eval $ac_try) 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); }; } &&
7515          { ac_try='test -s conftest.$ac_objext'
7516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517   (eval $ac_try) 2>&5
7518   ac_status=$?
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); }; }; then
7521   :
7522 else
7523   echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7525
7526 ac_c99_stdlib=no
7527 fi
7528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7529   if test x"$ac_c99_lldiv_t" = x"no"; then
7530     ac_c99_stdlib=no;
7531   fi;
7532   echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7533 echo "${ECHO_T}$ac_c99_stdlib" >&6
7534
7535   # Check for the existence of <wchar.h> functions used if C99 is enabled.
7536   # XXX the wchar.h checks should be rolled into the general C99 bits.
7537   ac_c99_wchar=yes;
7538   echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7539 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7540   cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h.  */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h.  */
7546 #include <wchar.h>
7547 int
7548 main ()
7549 {
7550 wcstold(L"10.0", NULL);
7551   ;
7552   return 0;
7553 }
7554 _ACEOF
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557   (eval $ac_compile) 2>conftest.er1
7558   ac_status=$?
7559   grep -v '^ *+' conftest.er1 >conftest.err
7560   rm -f conftest.er1
7561   cat conftest.err >&5
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); } &&
7564          { ac_try='test -z "$ac_cxx_werror_flag"
7565                          || test ! -s conftest.err'
7566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567   (eval $ac_try) 2>&5
7568   ac_status=$?
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); }; } &&
7571          { ac_try='test -s conftest.$ac_objext'
7572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573   (eval $ac_try) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); }; }; then
7577   :
7578 else
7579   echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7581
7582 ac_c99_wchar=no
7583 fi
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7585   cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h.  */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h.  */
7591 #include <wchar.h>
7592 int
7593 main ()
7594 {
7595 wcstoll(L"10", NULL, 10);
7596   ;
7597   return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602   (eval $ac_compile) 2>conftest.er1
7603   ac_status=$?
7604   grep -v '^ *+' conftest.er1 >conftest.err
7605   rm -f conftest.er1
7606   cat conftest.err >&5
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); } &&
7609          { ac_try='test -z "$ac_cxx_werror_flag"
7610                          || test ! -s conftest.err'
7611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612   (eval $ac_try) 2>&5
7613   ac_status=$?
7614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615   (exit $ac_status); }; } &&
7616          { ac_try='test -s conftest.$ac_objext'
7617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618   (eval $ac_try) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); }; }; then
7622   :
7623 else
7624   echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7626
7627 ac_c99_wchar=no
7628 fi
7629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7630   cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h.  */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h.  */
7636 #include <wchar.h>
7637 int
7638 main ()
7639 {
7640 wcstoull(L"10", NULL, 10);
7641   ;
7642   return 0;
7643 }
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647   (eval $ac_compile) 2>conftest.er1
7648   ac_status=$?
7649   grep -v '^ *+' conftest.er1 >conftest.err
7650   rm -f conftest.er1
7651   cat conftest.err >&5
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); } &&
7654          { ac_try='test -z "$ac_cxx_werror_flag"
7655                          || test ! -s conftest.err'
7656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657   (eval $ac_try) 2>&5
7658   ac_status=$?
7659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660   (exit $ac_status); }; } &&
7661          { ac_try='test -s conftest.$ac_objext'
7662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663   (eval $ac_try) 2>&5
7664   ac_status=$?
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); }; }; then
7667   :
7668 else
7669   echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7671
7672 ac_c99_wchar=no
7673 fi
7674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7675   echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7676 echo "${ECHO_T}$ac_c99_wchar" >&6
7677
7678   echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7679 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7680   if test x"$ac_c99_math" = x"no" ||
7681      test x"$ac_c99_stdio" = x"no" ||
7682      test x"$ac_c99_stdlib" = x"no" ||
7683      test x"$ac_c99_wchar" = x"no"; then
7684     enable_c99=no;
7685   fi;
7686   echo "$as_me:$LINENO: result: $enable_c99" >&5
7687 echo "${ECHO_T}$enable_c99" >&6
7688
7689   if test x"$ac_99_math" = x"yes"; then
7690     cat >>confdefs.h <<\_ACEOF
7691 #define _GLIBCXX_USE_C99_MATH 1
7692 _ACEOF
7693
7694   fi
7695
7696   # Option parsed, now set things appropriately
7697   if test x"$enable_c99" = x"yes"; then
7698     cat >>confdefs.h <<\_ACEOF
7699 #define _GLIBCXX_USE_C99 1
7700 _ACEOF
7701
7702   fi
7703
7704   ac_ext=c
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710
7711
7712    # Check whether --enable-long-long or --disable-long-long was given.
7713 if test "${enable_long_long+set}" = set; then
7714   enableval="$enable_long_long"
7715
7716       case "$enableval" in
7717        yes|no) ;;
7718        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7719 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7720    { (exit 1); exit 1; }; } ;;
7721       esac
7722
7723 else
7724   enable_long_long=yes
7725 fi;
7726
7727
7728
7729
7730   ac_ext=cc
7731 ac_cpp='$CXXCPP $CPPFLAGS'
7732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7735
7736
7737   echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7738 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7739   # iostreams require strtoll, strtoull to compile
7740   cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h.  */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h.  */
7746 #include <stdlib.h>
7747 int
7748 main ()
7749 {
7750 char* tmp; strtoll("gnu", &tmp, 10);
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757   (eval $ac_compile) 2>conftest.er1
7758   ac_status=$?
7759   grep -v '^ *+' conftest.er1 >conftest.err
7760   rm -f conftest.er1
7761   cat conftest.err >&5
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); } &&
7764          { ac_try='test -z "$ac_cxx_werror_flag"
7765                          || test ! -s conftest.err'
7766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767   (eval $ac_try) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; } &&
7771          { ac_try='test -s conftest.$ac_objext'
7772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773   (eval $ac_try) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); }; }; then
7777   :
7778 else
7779   echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 enable_long_long=no
7783 fi
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7785   cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791 #include <stdlib.h>
7792 int
7793 main ()
7794 {
7795 char* tmp; strtoull("gnu", &tmp, 10);
7796   ;
7797   return 0;
7798 }
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7802   (eval $ac_compile) 2>conftest.er1
7803   ac_status=$?
7804   grep -v '^ *+' conftest.er1 >conftest.err
7805   rm -f conftest.er1
7806   cat conftest.err >&5
7807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); } &&
7809          { ac_try='test -z "$ac_cxx_werror_flag"
7810                          || test ! -s conftest.err'
7811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812   (eval $ac_try) 2>&5
7813   ac_status=$?
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); }; } &&
7816          { ac_try='test -s conftest.$ac_objext'
7817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818   (eval $ac_try) 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; }; then
7822   :
7823 else
7824   echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7826
7827 enable_long_long=no
7828 fi
7829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7830
7831   # Option parsed, now set things appropriately
7832   if test $enable_long_long = yes; then
7833     cat >>confdefs.h <<\_ACEOF
7834 #define _GLIBCXX_USE_LONG_LONG 1
7835 _ACEOF
7836
7837   fi
7838   echo "$as_me:$LINENO: result: $enable_long_long" >&5
7839 echo "${ECHO_T}$enable_long_long" >&6
7840
7841   ac_ext=c
7842 ac_cpp='$CPP $CPPFLAGS'
7843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846
7847
7848
7849   echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7850 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7851   target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7852   echo "$as_me:$LINENO: result: $target_thread_file" >&5
7853 echo "${ECHO_T}$target_thread_file" >&6
7854
7855   if test $target_thread_file != single; then
7856     cat >>confdefs.h <<\_ACEOF
7857 #define HAVE_GTHR_DEFAULT 1
7858 _ACEOF
7859
7860   fi
7861
7862   glibcxx_thread_h=gthr-$target_thread_file.h
7863
7864
7865
7866    # Check whether --enable-concept-checks or --disable-concept-checks was given.
7867 if test "${enable_concept_checks+set}" = set; then
7868   enableval="$enable_concept_checks"
7869
7870       case "$enableval" in
7871        yes|no) ;;
7872        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7873 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7874    { (exit 1); exit 1; }; } ;;
7875       esac
7876
7877 else
7878   enable_concept_checks=no
7879 fi;
7880
7881   if test $enable_concept_checks = yes; then
7882     cat >>confdefs.h <<\_ACEOF
7883 #define _GLIBCXX_CONCEPT_CHECKS 1
7884 _ACEOF
7885
7886   fi
7887
7888
7889    # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7890 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7891   enableval="$enable_libstdcxx_debug_flags"
7892   case "x$enable_libstdcxx_debug_flags" in
7893       xno | x)    enable_libstdcxx_debug_flags= ;;
7894       x-*)        ;;
7895       *)          { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7896 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7897    { (exit 1); exit 1; }; } ;;
7898      esac
7899 else
7900   enable_libstdcxx_debug_flags="-g3 -O0"
7901 fi;
7902
7903
7904   # Option parsed, now set things appropriately
7905   DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7906
7907
7908   { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7909 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7910
7911
7912   echo "$as_me:$LINENO: checking for additional debug build" >&5
7913 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7914    # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7915 if test "${enable_libstdcxx_debug+set}" = set; then
7916   enableval="$enable_libstdcxx_debug"
7917
7918       case "$enableval" in
7919        yes|no) ;;
7920        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7921 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7922    { (exit 1); exit 1; }; } ;;
7923       esac
7924
7925 else
7926   enable_libstdcxx_debug=no
7927 fi;
7928
7929   echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7930 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7931
7932
7933   echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7934 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7935    # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7936 if test "${enable_cxx_flags+set}" = set; then
7937   enableval="$enable_cxx_flags"
7938   case "x$enable_cxx_flags" in
7939       xno | x)   enable_cxx_flags= ;;
7940       x-*)       ;;
7941       *)         { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7942 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7943    { (exit 1); exit 1; }; } ;;
7944      esac
7945 else
7946   enable_cxx_flags=
7947 fi;
7948
7949
7950   # Run through flags (either default or command-line) and set anything
7951   # extra (e.g., #defines) that must accompany particular g++ options.
7952   if test -n "$enable_cxx_flags"; then
7953     for f in $enable_cxx_flags; do
7954       case "$f" in
7955         -fhonor-std)  ;;
7956         -*)  ;;
7957         *)   # and we're trying to pass /what/ exactly?
7958              { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7959 echo "$as_me: error: compiler flags start with a -" >&2;}
7960    { (exit 1); exit 1; }; } ;;
7961       esac
7962     done
7963   fi
7964
7965   EXTRA_CXX_FLAGS="$enable_cxx_flags"
7966   echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7967 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7968
7969
7970
7971 # No surprises, no surprises...
7972 if test $atomicity_dir = cpu/generic ; then
7973   { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7974 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7975   if test $target_thread_file = single; then
7976     { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7977 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7978     { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7979 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7980   else
7981     { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7982 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7983     { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7984 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7985   fi
7986 fi
7987
7988
7989 if $GLIBCXX_IS_NATIVE; then
7990
7991   # We can do more elaborate tests that assume a working linker.
7992   CANADIAN=no
7993
7994   # Check for available headers.
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8009   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
8010   sys/types.h
8011 do
8012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8014   echo "$as_me:$LINENO: checking for $ac_header" >&5
8015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 fi
8019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8021 else
8022   # Is the header compilable?
8023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8025 cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h.  */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h.  */
8031 $ac_includes_default
8032 #include <$ac_header>
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8036   (eval $ac_compile) 2>conftest.er1
8037   ac_status=$?
8038   grep -v '^ *+' conftest.er1 >conftest.err
8039   rm -f conftest.er1
8040   cat conftest.err >&5
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); } &&
8043          { ac_try='test -z "$ac_c_werror_flag"
8044                          || test ! -s conftest.err'
8045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046   (eval $ac_try) 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); }; } &&
8050          { ac_try='test -s conftest.$ac_objext'
8051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052   (eval $ac_try) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; }; then
8056   ac_header_compiler=yes
8057 else
8058   echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061 ac_header_compiler=no
8062 fi
8063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8065 echo "${ECHO_T}$ac_header_compiler" >&6
8066
8067 # Is the header present?
8068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8070 cat >conftest.$ac_ext <<_ACEOF
8071 /* confdefs.h.  */
8072 _ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h.  */
8076 #include <$ac_header>
8077 _ACEOF
8078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8080   ac_status=$?
8081   grep -v '^ *+' conftest.er1 >conftest.err
8082   rm -f conftest.er1
8083   cat conftest.err >&5
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); } >/dev/null; then
8086   if test -s conftest.err; then
8087     ac_cpp_err=$ac_c_preproc_warn_flag
8088     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8089   else
8090     ac_cpp_err=
8091   fi
8092 else
8093   ac_cpp_err=yes
8094 fi
8095 if test -z "$ac_cpp_err"; then
8096   ac_header_preproc=yes
8097 else
8098   echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101   ac_header_preproc=no
8102 fi
8103 rm -f conftest.err conftest.$ac_ext
8104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8105 echo "${ECHO_T}$ac_header_preproc" >&6
8106
8107 # So?  What about this header?
8108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8109   yes:no: )
8110     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8114     ac_header_preproc=yes
8115     ;;
8116   no:yes:* )
8117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8119     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8120 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8121     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8123     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8124 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8127     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8129     (
8130       cat <<\_ASBOX
8131 ## ----------------------------------------- ##
8132 ## Report this to the package-unused lists.  ##
8133 ## ----------------------------------------- ##
8134 _ASBOX
8135     ) |
8136       sed "s/^/$as_me: WARNING:     /" >&2
8137     ;;
8138 esac
8139 echo "$as_me:$LINENO: checking for $ac_header" >&5
8140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   eval "$as_ac_Header=\$ac_header_preproc"
8145 fi
8146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8148
8149 fi
8150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8151   cat >>confdefs.h <<_ACEOF
8152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8153 _ACEOF
8154
8155 fi
8156
8157 done
8158
8159
8160
8161   # All these tests are for C++; save the language and the compiler flags.
8162   # The CXXFLAGS thing is suspicious, but based on similar bits previously
8163   # found in GLIBCXX_CONFIGURE.
8164
8165
8166   ac_ext=cc
8167 ac_cpp='$CXXCPP $CPPFLAGS'
8168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8171
8172   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8173   ac_save_CXXFLAGS="$CXXFLAGS"
8174
8175   # Check for maintainer-mode bits.
8176   if test x"$USE_MAINTAINER_MODE" = xno; then
8177     WERROR=''
8178   else
8179     WERROR='-Werror'
8180   fi
8181
8182   # Check for -ffunction-sections -fdata-sections
8183   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8184 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
8185   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8186   cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h.  */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h.  */
8192
8193 int
8194 main ()
8195 {
8196 int foo;
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8203   (eval $ac_compile) 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_cxx_werror_flag"
8211                          || test ! -s conftest.err'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest.$ac_objext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_fdsections=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_fdsections=no
8229 fi
8230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8231   if test "$ac_test_CXXFLAGS" = set; then
8232     CXXFLAGS="$ac_save_CXXFLAGS"
8233   else
8234     # this is the suspicious part
8235     CXXFLAGS=''
8236   fi
8237   if test x"$ac_fdsections" = x"yes"; then
8238     SECTION_FLAGS='-ffunction-sections -fdata-sections'
8239   fi
8240   echo "$as_me:$LINENO: result: $ac_fdsections" >&5
8241 echo "${ECHO_T}$ac_fdsections" >&6
8242
8243   ac_ext=c
8244 ac_cpp='$CPP $CPPFLAGS'
8245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8248
8249
8250
8251
8252
8253   # If we're not using GNU ld, then there's no point in even trying these
8254   # tests.  Check for that first.  We should have already tested for gld
8255   # by now (in libtool), but require it now just to be safe...
8256   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8257   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8258
8259
8260
8261   # The name set by libtool depends on the version of libtool.  Shame on us
8262   # for depending on an impl detail, but c'est la vie.  Older versions used
8263   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8264   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8265   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8266   # set (hence we're using an older libtool), then set it.
8267   if test x${with_gnu_ld+set} != xset; then
8268     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8269       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8270       with_gnu_ld=no
8271     else
8272       with_gnu_ld=$ac_cv_prog_gnu_ld
8273     fi
8274   fi
8275
8276   # Start by getting the version number.  I think the libtool test already
8277   # does some of this, but throws away the result.
8278
8279   ldver=`$LD --version 2>/dev/null | head -1 | \
8280          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8281
8282   glibcxx_gnu_ld_version=`echo $ldver | \
8283          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8284
8285   # Set --gc-sections.
8286   if test "$with_gnu_ld" = "notbroken"; then
8287     # GNU ld it is!  Joy and bunny rabbits!
8288
8289     # All these tests are for C++; save the language and the compiler flags.
8290     # Need to do this so that g++ won't try to link in libstdc++
8291     ac_test_CFLAGS="${CFLAGS+set}"
8292     ac_save_CFLAGS="$CFLAGS"
8293     CFLAGS='-x c++  -Wl,--gc-sections'
8294
8295     # Check for -Wl,--gc-sections
8296     # XXX This test is broken at the moment, as symbols required for linking
8297     # are now in libsupc++ (not built yet).  In addition, this test has
8298     # cored on solaris in the past.  In addition, --gc-sections doesn't
8299     # really work at the moment (keeps on discarding used sections, first
8300     # .eh_frame and now some of the glibc sections for iconv).
8301     # Bzzzzt.  Thanks for playing, maybe next time.
8302     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8303 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8304     if test "$cross_compiling" = yes; then
8305   ac_sectionLDflags=yes
8306 else
8307   cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h.  */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h.  */
8313
8314      int main(void)
8315      {
8316        try { throw 1; }
8317        catch (...) { };
8318        return 0;
8319      }
8320
8321 _ACEOF
8322 rm -f conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324   (eval $ac_link) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329   (eval $ac_try) 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; }; then
8333   ac_sectionLDflags=yes
8334 else
8335   echo "$as_me: program exited with status $ac_status" >&5
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 ( exit $ac_status )
8340 ac_sectionLDflags=no
8341 fi
8342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8343 fi
8344     if test "$ac_test_CFLAGS" = set; then
8345       CFLAGS="$ac_save_CFLAGS"
8346     else
8347       # this is the suspicious part
8348       CFLAGS=''
8349     fi
8350     if test "$ac_sectionLDflags" = "yes"; then
8351       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8352     fi
8353     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8354 echo "${ECHO_T}$ac_sectionLDflags" >&6
8355   fi
8356
8357   # Set linker optimization flags.
8358   if test x"$with_gnu_ld" = x"yes"; then
8359     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8360   fi
8361
8362
8363
8364
8365
8366   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8367   ac_save_CXXFLAGS="$CXXFLAGS"
8368   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
8369
8370     echo "$as_me:$LINENO: checking for sin in -lm" >&5
8371 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8372 if test "${ac_cv_lib_m_sin+set}" = set; then
8373   echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375   ac_check_lib_save_LIBS=$LIBS
8376 LIBS="-lm  $LIBS"
8377 if test x$gcc_no_link = xyes; then
8378   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8379 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8380    { (exit 1); exit 1; }; }
8381 fi
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388
8389 /* Override any gcc2 internal prototype to avoid an error.  */
8390 #ifdef __cplusplus
8391 extern "C"
8392 #endif
8393 /* We use char because int might match the return type of a gcc2
8394    builtin and then its argument prototype would still apply.  */
8395 char sin ();
8396 int
8397 main ()
8398 {
8399 sin ();
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406   (eval $ac_link) 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -z "$ac_c_werror_flag"
8414                          || test ! -s conftest.err'
8415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416   (eval $ac_try) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; } &&
8420          { ac_try='test -s conftest$ac_exeext'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_cv_lib_m_sin=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 ac_cv_lib_m_sin=no
8432 fi
8433 rm -f conftest.err conftest.$ac_objext \
8434       conftest$ac_exeext conftest.$ac_ext
8435 LIBS=$ac_check_lib_save_LIBS
8436 fi
8437 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8438 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8439 if test $ac_cv_lib_m_sin = yes; then
8440   libm="-lm"
8441 fi
8442
8443   ac_save_LIBS="$LIBS"
8444   LIBS="$LIBS $libm"
8445
8446
8447
8448   echo "$as_me:$LINENO: checking for isinf declaration" >&5
8449 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
8450   if test x${glibcxx_cv_func_isinf_use+set} != xset; then
8451     if test "${glibcxx_cv_func_isinf_use+set}" = set; then
8452   echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454
8455
8456
8457       ac_ext=cc
8458 ac_cpp='$CXXCPP $CPPFLAGS'
8459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8462
8463       cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469 #include <math.h>
8470                       #ifdef HAVE_IEEEFP_H
8471                       #include <ieeefp.h>
8472                       #endif
8473
8474 int
8475 main ()
8476 {
8477  isinf(0);
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484   (eval $ac_compile) 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_cxx_werror_flag"
8492                          || test ! -s conftest.err'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; } &&
8498          { ac_try='test -s conftest.$ac_objext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   glibcxx_cv_func_isinf_use=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 glibcxx_cv_func_isinf_use=no
8510 fi
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512       ac_ext=c
8513 ac_cpp='$CPP $CPPFLAGS'
8514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8517
8518
8519 fi
8520
8521   fi
8522   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
8523 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
8524
8525   if test x$glibcxx_cv_func_isinf_use = x"yes"; then
8526
8527 for ac_func in isinf
8528 do
8529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8530 echo "$as_me:$LINENO: checking for $ac_func" >&5
8531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8532 if eval "test \"\${$as_ac_var+set}\" = set"; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535   if test x$gcc_no_link = xyes; then
8536   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8538    { (exit 1); exit 1; }; }
8539 fi
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8548 #define $ac_func innocuous_$ac_func
8549
8550 /* System header to define __stub macros and hopefully few prototypes,
8551     which can conflict with char $ac_func (); below.
8552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8553     <limits.h> exists even on freestanding compilers.  */
8554
8555 #ifdef __STDC__
8556 # include <limits.h>
8557 #else
8558 # include <assert.h>
8559 #endif
8560
8561 #undef $ac_func
8562
8563 /* Override any gcc2 internal prototype to avoid an error.  */
8564 #ifdef __cplusplus
8565 extern "C"
8566 {
8567 #endif
8568 /* We use char because int might match the return type of a gcc2
8569    builtin and then its argument prototype would still apply.  */
8570 char $ac_func ();
8571 /* The GNU C library defines this for functions which it implements
8572     to always fail with ENOSYS.  Some functions are actually named
8573     something starting with __ and the normal name is an alias.  */
8574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8575 choke me
8576 #else
8577 char (*f) () = $ac_func;
8578 #endif
8579 #ifdef __cplusplus
8580 }
8581 #endif
8582
8583 int
8584 main ()
8585 {
8586 return f != $ac_func;
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593   (eval $ac_link) 2>conftest.er1
8594   ac_status=$?
8595   grep -v '^ *+' conftest.er1 >conftest.err
8596   rm -f conftest.er1
8597   cat conftest.err >&5
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } &&
8600          { ac_try='test -z "$ac_c_werror_flag"
8601                          || test ! -s conftest.err'
8602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603   (eval $ac_try) 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); }; } &&
8607          { ac_try='test -s conftest$ac_exeext'
8608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609   (eval $ac_try) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); }; }; then
8613   eval "$as_ac_var=yes"
8614 else
8615   echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618 eval "$as_ac_var=no"
8619 fi
8620 rm -f conftest.err conftest.$ac_objext \
8621       conftest$ac_exeext conftest.$ac_ext
8622 fi
8623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8625 if test `eval echo '${'$as_ac_var'}'` = yes; then
8626   cat >>confdefs.h <<_ACEOF
8627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8628 _ACEOF
8629
8630 fi
8631 done
8632
8633   else
8634
8635   echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8636 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8637   if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8638     if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641
8642
8643
8644       ac_ext=cc
8645 ac_cpp='$CXXCPP $CPPFLAGS'
8646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8649
8650       cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 #include <math.h>
8657                       #ifdef HAVE_IEEEFP_H
8658                       #include <ieeefp.h>
8659                       #endif
8660
8661 int
8662 main ()
8663 {
8664  _isinf(0);
8665   ;
8666   return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671   (eval $ac_compile) 2>conftest.er1
8672   ac_status=$?
8673   grep -v '^ *+' conftest.er1 >conftest.err
8674   rm -f conftest.er1
8675   cat conftest.err >&5
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); } &&
8678          { ac_try='test -z "$ac_cxx_werror_flag"
8679                          || test ! -s conftest.err'
8680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681   (eval $ac_try) 2>&5
8682   ac_status=$?
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); }; } &&
8685          { ac_try='test -s conftest.$ac_objext'
8686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687   (eval $ac_try) 2>&5
8688   ac_status=$?
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); }; }; then
8691   glibcxx_cv_func__isinf_use=yes
8692 else
8693   echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696 glibcxx_cv_func__isinf_use=no
8697 fi
8698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8699       ac_ext=c
8700 ac_cpp='$CPP $CPPFLAGS'
8701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8704
8705
8706 fi
8707
8708   fi
8709   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8710 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8711
8712     if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8713
8714 for ac_func in _isinf
8715 do
8716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8717 echo "$as_me:$LINENO: checking for $ac_func" >&5
8718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8719 if eval "test \"\${$as_ac_var+set}\" = set"; then
8720   echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722   if test x$gcc_no_link = xyes; then
8723   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8724 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8725    { (exit 1); exit 1; }; }
8726 fi
8727 cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h.  */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h.  */
8733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8735 #define $ac_func innocuous_$ac_func
8736
8737 /* System header to define __stub macros and hopefully few prototypes,
8738     which can conflict with char $ac_func (); below.
8739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8740     <limits.h> exists even on freestanding compilers.  */
8741
8742 #ifdef __STDC__
8743 # include <limits.h>
8744 #else
8745 # include <assert.h>
8746 #endif
8747
8748 #undef $ac_func
8749
8750 /* Override any gcc2 internal prototype to avoid an error.  */
8751 #ifdef __cplusplus
8752 extern "C"
8753 {
8754 #endif
8755 /* We use char because int might match the return type of a gcc2
8756    builtin and then its argument prototype would still apply.  */
8757 char $ac_func ();
8758 /* The GNU C library defines this for functions which it implements
8759     to always fail with ENOSYS.  Some functions are actually named
8760     something starting with __ and the normal name is an alias.  */
8761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8762 choke me
8763 #else
8764 char (*f) () = $ac_func;
8765 #endif
8766 #ifdef __cplusplus
8767 }
8768 #endif
8769
8770 int
8771 main ()
8772 {
8773 return f != $ac_func;
8774   ;
8775   return 0;
8776 }
8777 _ACEOF
8778 rm -f conftest.$ac_objext conftest$ac_exeext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780   (eval $ac_link) 2>conftest.er1
8781   ac_status=$?
8782   grep -v '^ *+' conftest.er1 >conftest.err
8783   rm -f conftest.er1
8784   cat conftest.err >&5
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); } &&
8787          { ac_try='test -z "$ac_c_werror_flag"
8788                          || test ! -s conftest.err'
8789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790   (eval $ac_try) 2>&5
8791   ac_status=$?
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); }; } &&
8794          { ac_try='test -s conftest$ac_exeext'
8795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796   (eval $ac_try) 2>&5
8797   ac_status=$?
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); }; }; then
8800   eval "$as_ac_var=yes"
8801 else
8802   echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8804
8805 eval "$as_ac_var=no"
8806 fi
8807 rm -f conftest.err conftest.$ac_objext \
8808       conftest$ac_exeext conftest.$ac_ext
8809 fi
8810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8812 if test `eval echo '${'$as_ac_var'}'` = yes; then
8813   cat >>confdefs.h <<_ACEOF
8814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8815 _ACEOF
8816
8817 fi
8818 done
8819
8820     fi
8821   fi
8822
8823
8824
8825   echo "$as_me:$LINENO: checking for isnan declaration" >&5
8826 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8827   if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8828     if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8829   echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831
8832
8833
8834       ac_ext=cc
8835 ac_cpp='$CXXCPP $CPPFLAGS'
8836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8839
8840       cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846 #include <math.h>
8847                       #ifdef HAVE_IEEEFP_H
8848                       #include <ieeefp.h>
8849                       #endif
8850
8851 int
8852 main ()
8853 {
8854  isnan(0);
8855   ;
8856   return 0;
8857 }
8858 _ACEOF
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861   (eval $ac_compile) 2>conftest.er1
8862   ac_status=$?
8863   grep -v '^ *+' conftest.er1 >conftest.err
8864   rm -f conftest.er1
8865   cat conftest.err >&5
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } &&
8868          { ac_try='test -z "$ac_cxx_werror_flag"
8869                          || test ! -s conftest.err'
8870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871   (eval $ac_try) 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); }; } &&
8875          { ac_try='test -s conftest.$ac_objext'
8876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877   (eval $ac_try) 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); }; }; then
8881   glibcxx_cv_func_isnan_use=yes
8882 else
8883   echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8885
8886 glibcxx_cv_func_isnan_use=no
8887 fi
8888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8889       ac_ext=c
8890 ac_cpp='$CPP $CPPFLAGS'
8891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8894
8895
8896 fi
8897
8898   fi
8899   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8900 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8901
8902   if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8903
8904 for ac_func in isnan
8905 do
8906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8907 echo "$as_me:$LINENO: checking for $ac_func" >&5
8908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8909 if eval "test \"\${$as_ac_var+set}\" = set"; then
8910   echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912   if test x$gcc_no_link = xyes; then
8913   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8914 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8915    { (exit 1); exit 1; }; }
8916 fi
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8925 #define $ac_func innocuous_$ac_func
8926
8927 /* System header to define __stub macros and hopefully few prototypes,
8928     which can conflict with char $ac_func (); below.
8929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8930     <limits.h> exists even on freestanding compilers.  */
8931
8932 #ifdef __STDC__
8933 # include <limits.h>
8934 #else
8935 # include <assert.h>
8936 #endif
8937
8938 #undef $ac_func
8939
8940 /* Override any gcc2 internal prototype to avoid an error.  */
8941 #ifdef __cplusplus
8942 extern "C"
8943 {
8944 #endif
8945 /* We use char because int might match the return type of a gcc2
8946    builtin and then its argument prototype would still apply.  */
8947 char $ac_func ();
8948 /* The GNU C library defines this for functions which it implements
8949     to always fail with ENOSYS.  Some functions are actually named
8950     something starting with __ and the normal name is an alias.  */
8951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8952 choke me
8953 #else
8954 char (*f) () = $ac_func;
8955 #endif
8956 #ifdef __cplusplus
8957 }
8958 #endif
8959
8960 int
8961 main ()
8962 {
8963 return f != $ac_func;
8964   ;
8965   return 0;
8966 }
8967 _ACEOF
8968 rm -f conftest.$ac_objext conftest$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970   (eval $ac_link) 2>conftest.er1
8971   ac_status=$?
8972   grep -v '^ *+' conftest.er1 >conftest.err
8973   rm -f conftest.er1
8974   cat conftest.err >&5
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } &&
8977          { ac_try='test -z "$ac_c_werror_flag"
8978                          || test ! -s conftest.err'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; } &&
8984          { ac_try='test -s conftest$ac_exeext'
8985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986   (eval $ac_try) 2>&5
8987   ac_status=$?
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); }; }; then
8990   eval "$as_ac_var=yes"
8991 else
8992   echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8994
8995 eval "$as_ac_var=no"
8996 fi
8997 rm -f conftest.err conftest.$ac_objext \
8998       conftest$ac_exeext conftest.$ac_ext
8999 fi
9000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9002 if test `eval echo '${'$as_ac_var'}'` = yes; then
9003   cat >>confdefs.h <<_ACEOF
9004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9005 _ACEOF
9006
9007 fi
9008 done
9009
9010   else
9011
9012   echo "$as_me:$LINENO: checking for _isnan declaration" >&5
9013 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
9014   if test x${glibcxx_cv_func__isnan_use+set} != xset; then
9015     if test "${glibcxx_cv_func__isnan_use+set}" = set; then
9016   echo $ECHO_N "(cached) $ECHO_C" >&6
9017 else
9018
9019
9020
9021       ac_ext=cc
9022 ac_cpp='$CXXCPP $CPPFLAGS'
9023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9026
9027       cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 #include <math.h>
9034                       #ifdef HAVE_IEEEFP_H
9035                       #include <ieeefp.h>
9036                       #endif
9037
9038 int
9039 main ()
9040 {
9041  _isnan(0);
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048   (eval $ac_compile) 2>conftest.er1
9049   ac_status=$?
9050   grep -v '^ *+' conftest.er1 >conftest.err
9051   rm -f conftest.er1
9052   cat conftest.err >&5
9053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054   (exit $ac_status); } &&
9055          { ac_try='test -z "$ac_cxx_werror_flag"
9056                          || test ! -s conftest.err'
9057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058   (eval $ac_try) 2>&5
9059   ac_status=$?
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); }; } &&
9062          { ac_try='test -s conftest.$ac_objext'
9063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064   (eval $ac_try) 2>&5
9065   ac_status=$?
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); }; }; then
9068   glibcxx_cv_func__isnan_use=yes
9069 else
9070   echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9072
9073 glibcxx_cv_func__isnan_use=no
9074 fi
9075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9076       ac_ext=c
9077 ac_cpp='$CPP $CPPFLAGS'
9078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9081
9082
9083 fi
9084
9085   fi
9086   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
9087 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
9088
9089     if test x$glibcxx_cv_func__isnan_use = x"yes"; then
9090
9091 for ac_func in _isnan
9092 do
9093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9094 echo "$as_me:$LINENO: checking for $ac_func" >&5
9095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9096 if eval "test \"\${$as_ac_var+set}\" = set"; then
9097   echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099   if test x$gcc_no_link = xyes; then
9100   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9102    { (exit 1); exit 1; }; }
9103 fi
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9112 #define $ac_func innocuous_$ac_func
9113
9114 /* System header to define __stub macros and hopefully few prototypes,
9115     which can conflict with char $ac_func (); below.
9116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9117     <limits.h> exists even on freestanding compilers.  */
9118
9119 #ifdef __STDC__
9120 # include <limits.h>
9121 #else
9122 # include <assert.h>
9123 #endif
9124
9125 #undef $ac_func
9126
9127 /* Override any gcc2 internal prototype to avoid an error.  */
9128 #ifdef __cplusplus
9129 extern "C"
9130 {
9131 #endif
9132 /* We use char because int might match the return type of a gcc2
9133    builtin and then its argument prototype would still apply.  */
9134 char $ac_func ();
9135 /* The GNU C library defines this for functions which it implements
9136     to always fail with ENOSYS.  Some functions are actually named
9137     something starting with __ and the normal name is an alias.  */
9138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9139 choke me
9140 #else
9141 char (*f) () = $ac_func;
9142 #endif
9143 #ifdef __cplusplus
9144 }
9145 #endif
9146
9147 int
9148 main ()
9149 {
9150 return f != $ac_func;
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157   (eval $ac_link) 2>conftest.er1
9158   ac_status=$?
9159   grep -v '^ *+' conftest.er1 >conftest.err
9160   rm -f conftest.er1
9161   cat conftest.err >&5
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); } &&
9164          { ac_try='test -z "$ac_c_werror_flag"
9165                          || test ! -s conftest.err'
9166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167   (eval $ac_try) 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); }; } &&
9171          { ac_try='test -s conftest$ac_exeext'
9172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173   (eval $ac_try) 2>&5
9174   ac_status=$?
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); }; }; then
9177   eval "$as_ac_var=yes"
9178 else
9179   echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9181
9182 eval "$as_ac_var=no"
9183 fi
9184 rm -f conftest.err conftest.$ac_objext \
9185       conftest$ac_exeext conftest.$ac_ext
9186 fi
9187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9189 if test `eval echo '${'$as_ac_var'}'` = yes; then
9190   cat >>confdefs.h <<_ACEOF
9191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9192 _ACEOF
9193
9194 fi
9195 done
9196
9197     fi
9198   fi
9199
9200
9201
9202   echo "$as_me:$LINENO: checking for finite declaration" >&5
9203 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
9204   if test x${glibcxx_cv_func_finite_use+set} != xset; then
9205     if test "${glibcxx_cv_func_finite_use+set}" = set; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208
9209
9210
9211       ac_ext=cc
9212 ac_cpp='$CXXCPP $CPPFLAGS'
9213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9216
9217       cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h.  */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h.  */
9223 #include <math.h>
9224                       #ifdef HAVE_IEEEFP_H
9225                       #include <ieeefp.h>
9226                       #endif
9227
9228 int
9229 main ()
9230 {
9231  finite(0);
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238   (eval $ac_compile) 2>conftest.er1
9239   ac_status=$?
9240   grep -v '^ *+' conftest.er1 >conftest.err
9241   rm -f conftest.er1
9242   cat conftest.err >&5
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); } &&
9245          { ac_try='test -z "$ac_cxx_werror_flag"
9246                          || test ! -s conftest.err'
9247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248   (eval $ac_try) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); }; } &&
9252          { ac_try='test -s conftest.$ac_objext'
9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254   (eval $ac_try) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; }; then
9258   glibcxx_cv_func_finite_use=yes
9259 else
9260   echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 glibcxx_cv_func_finite_use=no
9264 fi
9265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9266       ac_ext=c
9267 ac_cpp='$CPP $CPPFLAGS'
9268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9271
9272
9273 fi
9274
9275   fi
9276   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
9277 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
9278
9279   if test x$glibcxx_cv_func_finite_use = x"yes"; then
9280
9281 for ac_func in finite
9282 do
9283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9284 echo "$as_me:$LINENO: checking for $ac_func" >&5
9285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9286 if eval "test \"\${$as_ac_var+set}\" = set"; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   if test x$gcc_no_link = xyes; then
9290   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9292    { (exit 1); exit 1; }; }
9293 fi
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h.  */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h.  */
9300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9302 #define $ac_func innocuous_$ac_func
9303
9304 /* System header to define __stub macros and hopefully few prototypes,
9305     which can conflict with char $ac_func (); below.
9306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9307     <limits.h> exists even on freestanding compilers.  */
9308
9309 #ifdef __STDC__
9310 # include <limits.h>
9311 #else
9312 # include <assert.h>
9313 #endif
9314
9315 #undef $ac_func
9316
9317 /* Override any gcc2 internal prototype to avoid an error.  */
9318 #ifdef __cplusplus
9319 extern "C"
9320 {
9321 #endif
9322 /* We use char because int might match the return type of a gcc2
9323    builtin and then its argument prototype would still apply.  */
9324 char $ac_func ();
9325 /* The GNU C library defines this for functions which it implements
9326     to always fail with ENOSYS.  Some functions are actually named
9327     something starting with __ and the normal name is an alias.  */
9328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9329 choke me
9330 #else
9331 char (*f) () = $ac_func;
9332 #endif
9333 #ifdef __cplusplus
9334 }
9335 #endif
9336
9337 int
9338 main ()
9339 {
9340 return f != $ac_func;
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347   (eval $ac_link) 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } &&
9354          { ac_try='test -z "$ac_c_werror_flag"
9355                          || test ! -s conftest.err'
9356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; } &&
9361          { ac_try='test -s conftest$ac_exeext'
9362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363   (eval $ac_try) 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); }; }; then
9367   eval "$as_ac_var=yes"
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 eval "$as_ac_var=no"
9373 fi
9374 rm -f conftest.err conftest.$ac_objext \
9375       conftest$ac_exeext conftest.$ac_ext
9376 fi
9377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9379 if test `eval echo '${'$as_ac_var'}'` = yes; then
9380   cat >>confdefs.h <<_ACEOF
9381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9382 _ACEOF
9383
9384 fi
9385 done
9386
9387   else
9388
9389   echo "$as_me:$LINENO: checking for _finite declaration" >&5
9390 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
9391   if test x${glibcxx_cv_func__finite_use+set} != xset; then
9392     if test "${glibcxx_cv_func__finite_use+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395
9396
9397
9398       ac_ext=cc
9399 ac_cpp='$CXXCPP $CPPFLAGS'
9400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9403
9404       cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410 #include <math.h>
9411                       #ifdef HAVE_IEEEFP_H
9412                       #include <ieeefp.h>
9413                       #endif
9414
9415 int
9416 main ()
9417 {
9418  _finite(0);
9419   ;
9420   return 0;
9421 }
9422 _ACEOF
9423 rm -f conftest.$ac_objext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9425   (eval $ac_compile) 2>conftest.er1
9426   ac_status=$?
9427   grep -v '^ *+' conftest.er1 >conftest.err
9428   rm -f conftest.er1
9429   cat conftest.err >&5
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } &&
9432          { ac_try='test -z "$ac_cxx_werror_flag"
9433                          || test ! -s conftest.err'
9434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435   (eval $ac_try) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); }; } &&
9439          { ac_try='test -s conftest.$ac_objext'
9440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441   (eval $ac_try) 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); }; }; then
9445   glibcxx_cv_func__finite_use=yes
9446 else
9447   echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450 glibcxx_cv_func__finite_use=no
9451 fi
9452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9453       ac_ext=c
9454 ac_cpp='$CPP $CPPFLAGS'
9455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9458
9459
9460 fi
9461
9462   fi
9463   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
9464 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
9465
9466     if test x$glibcxx_cv_func__finite_use = x"yes"; then
9467
9468 for ac_func in _finite
9469 do
9470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9471 echo "$as_me:$LINENO: checking for $ac_func" >&5
9472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9473 if eval "test \"\${$as_ac_var+set}\" = set"; then
9474   echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476   if test x$gcc_no_link = xyes; then
9477   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9479    { (exit 1); exit 1; }; }
9480 fi
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h.  */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h.  */
9487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9489 #define $ac_func innocuous_$ac_func
9490
9491 /* System header to define __stub macros and hopefully few prototypes,
9492     which can conflict with char $ac_func (); below.
9493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9494     <limits.h> exists even on freestanding compilers.  */
9495
9496 #ifdef __STDC__
9497 # include <limits.h>
9498 #else
9499 # include <assert.h>
9500 #endif
9501
9502 #undef $ac_func
9503
9504 /* Override any gcc2 internal prototype to avoid an error.  */
9505 #ifdef __cplusplus
9506 extern "C"
9507 {
9508 #endif
9509 /* We use char because int might match the return type of a gcc2
9510    builtin and then its argument prototype would still apply.  */
9511 char $ac_func ();
9512 /* The GNU C library defines this for functions which it implements
9513     to always fail with ENOSYS.  Some functions are actually named
9514     something starting with __ and the normal name is an alias.  */
9515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9516 choke me
9517 #else
9518 char (*f) () = $ac_func;
9519 #endif
9520 #ifdef __cplusplus
9521 }
9522 #endif
9523
9524 int
9525 main ()
9526 {
9527 return f != $ac_func;
9528   ;
9529   return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9534   (eval $ac_link) 2>conftest.er1
9535   ac_status=$?
9536   grep -v '^ *+' conftest.er1 >conftest.err
9537   rm -f conftest.er1
9538   cat conftest.err >&5
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); } &&
9541          { ac_try='test -z "$ac_c_werror_flag"
9542                          || test ! -s conftest.err'
9543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544   (eval $ac_try) 2>&5
9545   ac_status=$?
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); }; } &&
9548          { ac_try='test -s conftest$ac_exeext'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; }; then
9554   eval "$as_ac_var=yes"
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 eval "$as_ac_var=no"
9560 fi
9561 rm -f conftest.err conftest.$ac_objext \
9562       conftest$ac_exeext conftest.$ac_ext
9563 fi
9564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9566 if test `eval echo '${'$as_ac_var'}'` = yes; then
9567   cat >>confdefs.h <<_ACEOF
9568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9569 _ACEOF
9570
9571 fi
9572 done
9573
9574     fi
9575   fi
9576
9577
9578
9579   echo "$as_me:$LINENO: checking for copysign declaration" >&5
9580 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
9581   if test x${glibcxx_cv_func_copysign_use+set} != xset; then
9582     if test "${glibcxx_cv_func_copysign_use+set}" = set; then
9583   echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585
9586
9587
9588       ac_ext=cc
9589 ac_cpp='$CXXCPP $CPPFLAGS'
9590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9593
9594       cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600 #include <math.h>
9601 int
9602 main ()
9603 {
9604  copysign(0, 0);
9605   ;
9606   return 0;
9607 }
9608 _ACEOF
9609 rm -f conftest.$ac_objext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9611   (eval $ac_compile) 2>conftest.er1
9612   ac_status=$?
9613   grep -v '^ *+' conftest.er1 >conftest.err
9614   rm -f conftest.er1
9615   cat conftest.err >&5
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); } &&
9618          { ac_try='test -z "$ac_cxx_werror_flag"
9619                          || test ! -s conftest.err'
9620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621   (eval $ac_try) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; } &&
9625          { ac_try='test -s conftest.$ac_objext'
9626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627   (eval $ac_try) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); }; }; then
9631   glibcxx_cv_func_copysign_use=yes
9632 else
9633   echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636 glibcxx_cv_func_copysign_use=no
9637 fi
9638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9639       ac_ext=c
9640 ac_cpp='$CPP $CPPFLAGS'
9641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9644
9645
9646 fi
9647
9648   fi
9649   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
9650 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
9651
9652   if test x$glibcxx_cv_func_copysign_use = x"yes"; then
9653
9654 for ac_func in copysign
9655 do
9656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9657 echo "$as_me:$LINENO: checking for $ac_func" >&5
9658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9659 if eval "test \"\${$as_ac_var+set}\" = set"; then
9660   echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662   if test x$gcc_no_link = xyes; then
9663   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9665    { (exit 1); exit 1; }; }
9666 fi
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h.  */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h.  */
9673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9675 #define $ac_func innocuous_$ac_func
9676
9677 /* System header to define __stub macros and hopefully few prototypes,
9678     which can conflict with char $ac_func (); below.
9679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9680     <limits.h> exists even on freestanding compilers.  */
9681
9682 #ifdef __STDC__
9683 # include <limits.h>
9684 #else
9685 # include <assert.h>
9686 #endif
9687
9688 #undef $ac_func
9689
9690 /* Override any gcc2 internal prototype to avoid an error.  */
9691 #ifdef __cplusplus
9692 extern "C"
9693 {
9694 #endif
9695 /* We use char because int might match the return type of a gcc2
9696    builtin and then its argument prototype would still apply.  */
9697 char $ac_func ();
9698 /* The GNU C library defines this for functions which it implements
9699     to always fail with ENOSYS.  Some functions are actually named
9700     something starting with __ and the normal name is an alias.  */
9701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9702 choke me
9703 #else
9704 char (*f) () = $ac_func;
9705 #endif
9706 #ifdef __cplusplus
9707 }
9708 #endif
9709
9710 int
9711 main ()
9712 {
9713 return f != $ac_func;
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720   (eval $ac_link) 2>conftest.er1
9721   ac_status=$?
9722   grep -v '^ *+' conftest.er1 >conftest.err
9723   rm -f conftest.er1
9724   cat conftest.err >&5
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -z "$ac_c_werror_flag"
9728                          || test ! -s conftest.err'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; } &&
9734          { ac_try='test -s conftest$ac_exeext'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; }; then
9740   eval "$as_ac_var=yes"
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 eval "$as_ac_var=no"
9746 fi
9747 rm -f conftest.err conftest.$ac_objext \
9748       conftest$ac_exeext conftest.$ac_ext
9749 fi
9750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9752 if test `eval echo '${'$as_ac_var'}'` = yes; then
9753   cat >>confdefs.h <<_ACEOF
9754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9755 _ACEOF
9756
9757 fi
9758 done
9759
9760   else
9761
9762   echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9763 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9764   if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9765     if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9766   echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768
9769
9770
9771       ac_ext=cc
9772 ac_cpp='$CXXCPP $CPPFLAGS'
9773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9776
9777       cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h.  */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h.  */
9783 #include <math.h>
9784 int
9785 main ()
9786 {
9787  _copysign(0, 0);
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794   (eval $ac_compile) 2>conftest.er1
9795   ac_status=$?
9796   grep -v '^ *+' conftest.er1 >conftest.err
9797   rm -f conftest.er1
9798   cat conftest.err >&5
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); } &&
9801          { ac_try='test -z "$ac_cxx_werror_flag"
9802                          || test ! -s conftest.err'
9803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804   (eval $ac_try) 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; } &&
9808          { ac_try='test -s conftest.$ac_objext'
9809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810   (eval $ac_try) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; }; then
9814   glibcxx_cv_func__copysign_use=yes
9815 else
9816   echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819 glibcxx_cv_func__copysign_use=no
9820 fi
9821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9822       ac_ext=c
9823 ac_cpp='$CPP $CPPFLAGS'
9824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9827
9828
9829 fi
9830
9831   fi
9832   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9833 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9834
9835     if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9836
9837 for ac_func in _copysign
9838 do
9839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9840 echo "$as_me:$LINENO: checking for $ac_func" >&5
9841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9842 if eval "test \"\${$as_ac_var+set}\" = set"; then
9843   echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845   if test x$gcc_no_link = xyes; then
9846   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9848    { (exit 1); exit 1; }; }
9849 fi
9850 cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h.  */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h.  */
9856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9858 #define $ac_func innocuous_$ac_func
9859
9860 /* System header to define __stub macros and hopefully few prototypes,
9861     which can conflict with char $ac_func (); below.
9862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863     <limits.h> exists even on freestanding compilers.  */
9864
9865 #ifdef __STDC__
9866 # include <limits.h>
9867 #else
9868 # include <assert.h>
9869 #endif
9870
9871 #undef $ac_func
9872
9873 /* Override any gcc2 internal prototype to avoid an error.  */
9874 #ifdef __cplusplus
9875 extern "C"
9876 {
9877 #endif
9878 /* We use char because int might match the return type of a gcc2
9879    builtin and then its argument prototype would still apply.  */
9880 char $ac_func ();
9881 /* The GNU C library defines this for functions which it implements
9882     to always fail with ENOSYS.  Some functions are actually named
9883     something starting with __ and the normal name is an alias.  */
9884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9885 choke me
9886 #else
9887 char (*f) () = $ac_func;
9888 #endif
9889 #ifdef __cplusplus
9890 }
9891 #endif
9892
9893 int
9894 main ()
9895 {
9896 return f != $ac_func;
9897   ;
9898   return 0;
9899 }
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903   (eval $ac_link) 2>conftest.er1
9904   ac_status=$?
9905   grep -v '^ *+' conftest.er1 >conftest.err
9906   rm -f conftest.er1
9907   cat conftest.err >&5
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); } &&
9910          { ac_try='test -z "$ac_c_werror_flag"
9911                          || test ! -s conftest.err'
9912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913   (eval $ac_try) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; } &&
9917          { ac_try='test -s conftest$ac_exeext'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; }; then
9923   eval "$as_ac_var=yes"
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928 eval "$as_ac_var=no"
9929 fi
9930 rm -f conftest.err conftest.$ac_objext \
9931       conftest$ac_exeext conftest.$ac_ext
9932 fi
9933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9935 if test `eval echo '${'$as_ac_var'}'` = yes; then
9936   cat >>confdefs.h <<_ACEOF
9937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9938 _ACEOF
9939
9940 fi
9941 done
9942
9943     fi
9944   fi
9945
9946
9947
9948   echo "$as_me:$LINENO: checking for sincos declaration" >&5
9949 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9950   if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9951     if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954
9955
9956
9957       ac_ext=cc
9958 ac_cpp='$CXXCPP $CPPFLAGS'
9959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9962
9963       cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969 #include <math.h>
9970 int
9971 main ()
9972 {
9973  sincos(0, 0, 0);
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980   (eval $ac_compile) 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } &&
9987          { ac_try='test -z "$ac_cxx_werror_flag"
9988                          || test ! -s conftest.err'
9989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990   (eval $ac_try) 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; } &&
9994          { ac_try='test -s conftest.$ac_objext'
9995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996   (eval $ac_try) 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; }; then
10000   glibcxx_cv_func_sincos_use=yes
10001 else
10002   echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10004
10005 glibcxx_cv_func_sincos_use=no
10006 fi
10007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10008       ac_ext=c
10009 ac_cpp='$CPP $CPPFLAGS'
10010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10013
10014
10015 fi
10016
10017   fi
10018   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
10019 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
10020
10021   if test x$glibcxx_cv_func_sincos_use = x"yes"; then
10022
10023 for ac_func in sincos
10024 do
10025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10026 echo "$as_me:$LINENO: checking for $ac_func" >&5
10027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10028 if eval "test \"\${$as_ac_var+set}\" = set"; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   if test x$gcc_no_link = xyes; then
10032   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10034    { (exit 1); exit 1; }; }
10035 fi
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h.  */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h.  */
10042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10044 #define $ac_func innocuous_$ac_func
10045
10046 /* System header to define __stub macros and hopefully few prototypes,
10047     which can conflict with char $ac_func (); below.
10048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10049     <limits.h> exists even on freestanding compilers.  */
10050
10051 #ifdef __STDC__
10052 # include <limits.h>
10053 #else
10054 # include <assert.h>
10055 #endif
10056
10057 #undef $ac_func
10058
10059 /* Override any gcc2 internal prototype to avoid an error.  */
10060 #ifdef __cplusplus
10061 extern "C"
10062 {
10063 #endif
10064 /* We use char because int might match the return type of a gcc2
10065    builtin and then its argument prototype would still apply.  */
10066 char $ac_func ();
10067 /* The GNU C library defines this for functions which it implements
10068     to always fail with ENOSYS.  Some functions are actually named
10069     something starting with __ and the normal name is an alias.  */
10070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10071 choke me
10072 #else
10073 char (*f) () = $ac_func;
10074 #endif
10075 #ifdef __cplusplus
10076 }
10077 #endif
10078
10079 int
10080 main ()
10081 {
10082 return f != $ac_func;
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089   (eval $ac_link) 2>conftest.er1
10090   ac_status=$?
10091   grep -v '^ *+' conftest.er1 >conftest.err
10092   rm -f conftest.er1
10093   cat conftest.err >&5
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); } &&
10096          { ac_try='test -z "$ac_c_werror_flag"
10097                          || test ! -s conftest.err'
10098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099   (eval $ac_try) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); }; } &&
10103          { ac_try='test -s conftest$ac_exeext'
10104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105   (eval $ac_try) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   eval "$as_ac_var=yes"
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 eval "$as_ac_var=no"
10115 fi
10116 rm -f conftest.err conftest.$ac_objext \
10117       conftest$ac_exeext conftest.$ac_ext
10118 fi
10119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10121 if test `eval echo '${'$as_ac_var'}'` = yes; then
10122   cat >>confdefs.h <<_ACEOF
10123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10124 _ACEOF
10125
10126 fi
10127 done
10128
10129   else
10130
10131   echo "$as_me:$LINENO: checking for _sincos declaration" >&5
10132 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
10133   if test x${glibcxx_cv_func__sincos_use+set} != xset; then
10134     if test "${glibcxx_cv_func__sincos_use+set}" = set; then
10135   echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137
10138
10139
10140       ac_ext=cc
10141 ac_cpp='$CXXCPP $CPPFLAGS'
10142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10145
10146       cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h.  */
10152 #include <math.h>
10153 int
10154 main ()
10155 {
10156  _sincos(0, 0, 0);
10157   ;
10158   return 0;
10159 }
10160 _ACEOF
10161 rm -f conftest.$ac_objext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10163   (eval $ac_compile) 2>conftest.er1
10164   ac_status=$?
10165   grep -v '^ *+' conftest.er1 >conftest.err
10166   rm -f conftest.er1
10167   cat conftest.err >&5
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); } &&
10170          { ac_try='test -z "$ac_cxx_werror_flag"
10171                          || test ! -s conftest.err'
10172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173   (eval $ac_try) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); }; } &&
10177          { ac_try='test -s conftest.$ac_objext'
10178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179   (eval $ac_try) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; }; then
10183   glibcxx_cv_func__sincos_use=yes
10184 else
10185   echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 glibcxx_cv_func__sincos_use=no
10189 fi
10190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10191       ac_ext=c
10192 ac_cpp='$CPP $CPPFLAGS'
10193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10196
10197
10198 fi
10199
10200   fi
10201   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
10202 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
10203
10204     if test x$glibcxx_cv_func__sincos_use = x"yes"; then
10205
10206 for ac_func in _sincos
10207 do
10208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10209 echo "$as_me:$LINENO: checking for $ac_func" >&5
10210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10211 if eval "test \"\${$as_ac_var+set}\" = set"; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   if test x$gcc_no_link = xyes; then
10215   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10217    { (exit 1); exit 1; }; }
10218 fi
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h.  */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h.  */
10225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10227 #define $ac_func innocuous_$ac_func
10228
10229 /* System header to define __stub macros and hopefully few prototypes,
10230     which can conflict with char $ac_func (); below.
10231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10232     <limits.h> exists even on freestanding compilers.  */
10233
10234 #ifdef __STDC__
10235 # include <limits.h>
10236 #else
10237 # include <assert.h>
10238 #endif
10239
10240 #undef $ac_func
10241
10242 /* Override any gcc2 internal prototype to avoid an error.  */
10243 #ifdef __cplusplus
10244 extern "C"
10245 {
10246 #endif
10247 /* We use char because int might match the return type of a gcc2
10248    builtin and then its argument prototype would still apply.  */
10249 char $ac_func ();
10250 /* The GNU C library defines this for functions which it implements
10251     to always fail with ENOSYS.  Some functions are actually named
10252     something starting with __ and the normal name is an alias.  */
10253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10254 choke me
10255 #else
10256 char (*f) () = $ac_func;
10257 #endif
10258 #ifdef __cplusplus
10259 }
10260 #endif
10261
10262 int
10263 main ()
10264 {
10265 return f != $ac_func;
10266   ;
10267   return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272   (eval $ac_link) 2>conftest.er1
10273   ac_status=$?
10274   grep -v '^ *+' conftest.er1 >conftest.err
10275   rm -f conftest.er1
10276   cat conftest.err >&5
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } &&
10279          { ac_try='test -z "$ac_c_werror_flag"
10280                          || test ! -s conftest.err'
10281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282   (eval $ac_try) 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); }; } &&
10286          { ac_try='test -s conftest$ac_exeext'
10287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288   (eval $ac_try) 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292   eval "$as_ac_var=yes"
10293 else
10294   echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297 eval "$as_ac_var=no"
10298 fi
10299 rm -f conftest.err conftest.$ac_objext \
10300       conftest$ac_exeext conftest.$ac_ext
10301 fi
10302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10304 if test `eval echo '${'$as_ac_var'}'` = yes; then
10305   cat >>confdefs.h <<_ACEOF
10306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10307 _ACEOF
10308
10309 fi
10310 done
10311
10312     fi
10313   fi
10314
10315
10316
10317   echo "$as_me:$LINENO: checking for fpclass declaration" >&5
10318 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
10319   if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
10320     if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
10321   echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323
10324
10325
10326       ac_ext=cc
10327 ac_cpp='$CXXCPP $CPPFLAGS'
10328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10331
10332       cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h.  */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h.  */
10338 #include <math.h>
10339                       #ifdef HAVE_IEEEFP_H
10340                       #include <ieeefp.h>
10341                       #endif
10342
10343 int
10344 main ()
10345 {
10346  fpclass(0);
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353   (eval $ac_compile) 2>conftest.er1
10354   ac_status=$?
10355   grep -v '^ *+' conftest.er1 >conftest.err
10356   rm -f conftest.er1
10357   cat conftest.err >&5
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); } &&
10360          { ac_try='test -z "$ac_cxx_werror_flag"
10361                          || test ! -s conftest.err'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; } &&
10367          { ac_try='test -s conftest.$ac_objext'
10368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369   (eval $ac_try) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; }; then
10373   glibcxx_cv_func_fpclass_use=yes
10374 else
10375   echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10377
10378 glibcxx_cv_func_fpclass_use=no
10379 fi
10380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10381       ac_ext=c
10382 ac_cpp='$CPP $CPPFLAGS'
10383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10386
10387
10388 fi
10389
10390   fi
10391   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
10392 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
10393
10394   if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
10395
10396 for ac_func in fpclass
10397 do
10398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10399 echo "$as_me:$LINENO: checking for $ac_func" >&5
10400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10401 if eval "test \"\${$as_ac_var+set}\" = set"; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404   if test x$gcc_no_link = xyes; then
10405   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10407    { (exit 1); exit 1; }; }
10408 fi
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h.  */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h.  */
10415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10417 #define $ac_func innocuous_$ac_func
10418
10419 /* System header to define __stub macros and hopefully few prototypes,
10420     which can conflict with char $ac_func (); below.
10421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10422     <limits.h> exists even on freestanding compilers.  */
10423
10424 #ifdef __STDC__
10425 # include <limits.h>
10426 #else
10427 # include <assert.h>
10428 #endif
10429
10430 #undef $ac_func
10431
10432 /* Override any gcc2 internal prototype to avoid an error.  */
10433 #ifdef __cplusplus
10434 extern "C"
10435 {
10436 #endif
10437 /* We use char because int might match the return type of a gcc2
10438    builtin and then its argument prototype would still apply.  */
10439 char $ac_func ();
10440 /* The GNU C library defines this for functions which it implements
10441     to always fail with ENOSYS.  Some functions are actually named
10442     something starting with __ and the normal name is an alias.  */
10443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10444 choke me
10445 #else
10446 char (*f) () = $ac_func;
10447 #endif
10448 #ifdef __cplusplus
10449 }
10450 #endif
10451
10452 int
10453 main ()
10454 {
10455 return f != $ac_func;
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462   (eval $ac_link) 2>conftest.er1
10463   ac_status=$?
10464   grep -v '^ *+' conftest.er1 >conftest.err
10465   rm -f conftest.er1
10466   cat conftest.err >&5
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); } &&
10469          { ac_try='test -z "$ac_c_werror_flag"
10470                          || test ! -s conftest.err'
10471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472   (eval $ac_try) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; } &&
10476          { ac_try='test -s conftest$ac_exeext'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; }; then
10482   eval "$as_ac_var=yes"
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 eval "$as_ac_var=no"
10488 fi
10489 rm -f conftest.err conftest.$ac_objext \
10490       conftest$ac_exeext conftest.$ac_ext
10491 fi
10492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10494 if test `eval echo '${'$as_ac_var'}'` = yes; then
10495   cat >>confdefs.h <<_ACEOF
10496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10497 _ACEOF
10498
10499 fi
10500 done
10501
10502   else
10503
10504   echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
10505 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
10506   if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
10507     if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
10508   echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510
10511
10512
10513       ac_ext=cc
10514 ac_cpp='$CXXCPP $CPPFLAGS'
10515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10518
10519       cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h.  */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h.  */
10525 #include <math.h>
10526                       #ifdef HAVE_IEEEFP_H
10527                       #include <ieeefp.h>
10528                       #endif
10529
10530 int
10531 main ()
10532 {
10533  _fpclass(0);
10534   ;
10535   return 0;
10536 }
10537 _ACEOF
10538 rm -f conftest.$ac_objext
10539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10540   (eval $ac_compile) 2>conftest.er1
10541   ac_status=$?
10542   grep -v '^ *+' conftest.er1 >conftest.err
10543   rm -f conftest.er1
10544   cat conftest.err >&5
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -z "$ac_cxx_werror_flag"
10548                          || test ! -s conftest.err'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; } &&
10554          { ac_try='test -s conftest.$ac_objext'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; }; then
10560   glibcxx_cv_func__fpclass_use=yes
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 glibcxx_cv_func__fpclass_use=no
10566 fi
10567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10568       ac_ext=c
10569 ac_cpp='$CPP $CPPFLAGS'
10570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10573
10574
10575 fi
10576
10577   fi
10578   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
10579 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
10580
10581     if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
10582
10583 for ac_func in _fpclass
10584 do
10585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10586 echo "$as_me:$LINENO: checking for $ac_func" >&5
10587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10588 if eval "test \"\${$as_ac_var+set}\" = set"; then
10589   echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591   if test x$gcc_no_link = xyes; then
10592   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10594    { (exit 1); exit 1; }; }
10595 fi
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10604 #define $ac_func innocuous_$ac_func
10605
10606 /* System header to define __stub macros and hopefully few prototypes,
10607     which can conflict with char $ac_func (); below.
10608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10609     <limits.h> exists even on freestanding compilers.  */
10610
10611 #ifdef __STDC__
10612 # include <limits.h>
10613 #else
10614 # include <assert.h>
10615 #endif
10616
10617 #undef $ac_func
10618
10619 /* Override any gcc2 internal prototype to avoid an error.  */
10620 #ifdef __cplusplus
10621 extern "C"
10622 {
10623 #endif
10624 /* We use char because int might match the return type of a gcc2
10625    builtin and then its argument prototype would still apply.  */
10626 char $ac_func ();
10627 /* The GNU C library defines this for functions which it implements
10628     to always fail with ENOSYS.  Some functions are actually named
10629     something starting with __ and the normal name is an alias.  */
10630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10631 choke me
10632 #else
10633 char (*f) () = $ac_func;
10634 #endif
10635 #ifdef __cplusplus
10636 }
10637 #endif
10638
10639 int
10640 main ()
10641 {
10642 return f != $ac_func;
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649   (eval $ac_link) 2>conftest.er1
10650   ac_status=$?
10651   grep -v '^ *+' conftest.er1 >conftest.err
10652   rm -f conftest.er1
10653   cat conftest.err >&5
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); } &&
10656          { ac_try='test -z "$ac_c_werror_flag"
10657                          || test ! -s conftest.err'
10658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659   (eval $ac_try) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); }; } &&
10663          { ac_try='test -s conftest$ac_exeext'
10664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665   (eval $ac_try) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; }; then
10669   eval "$as_ac_var=yes"
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674 eval "$as_ac_var=no"
10675 fi
10676 rm -f conftest.err conftest.$ac_objext \
10677       conftest$ac_exeext conftest.$ac_ext
10678 fi
10679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10681 if test `eval echo '${'$as_ac_var'}'` = yes; then
10682   cat >>confdefs.h <<_ACEOF
10683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10684 _ACEOF
10685
10686 fi
10687 done
10688
10689     fi
10690   fi
10691
10692
10693
10694   echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
10695 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
10696   if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
10697     if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
10698   echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700
10701
10702
10703       ac_ext=cc
10704 ac_cpp='$CXXCPP $CPPFLAGS'
10705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10708
10709       cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715 #include <math.h>
10716                       #ifdef HAVE_IEEEFP_H
10717                       #include <ieeefp.h>
10718                       #endif
10719
10720 int
10721 main ()
10722 {
10723  qfpclass(0);
10724   ;
10725   return 0;
10726 }
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10730   (eval $ac_compile) 2>conftest.er1
10731   ac_status=$?
10732   grep -v '^ *+' conftest.er1 >conftest.err
10733   rm -f conftest.er1
10734   cat conftest.err >&5
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } &&
10737          { ac_try='test -z "$ac_cxx_werror_flag"
10738                          || test ! -s conftest.err'
10739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740   (eval $ac_try) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; } &&
10744          { ac_try='test -s conftest.$ac_objext'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   glibcxx_cv_func_qfpclass_use=yes
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 glibcxx_cv_func_qfpclass_use=no
10756 fi
10757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10758       ac_ext=c
10759 ac_cpp='$CPP $CPPFLAGS'
10760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10763
10764
10765 fi
10766
10767   fi
10768   echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
10769 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
10770
10771   if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
10772
10773 for ac_func in qfpclass
10774 do
10775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10776 echo "$as_me:$LINENO: checking for $ac_func" >&5
10777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10778 if eval "test \"\${$as_ac_var+set}\" = set"; then
10779   echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781   if test x$gcc_no_link = xyes; then
10782   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10784    { (exit 1); exit 1; }; }
10785 fi
10786 cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h.  */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h.  */
10792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10794 #define $ac_func innocuous_$ac_func
10795
10796 /* System header to define __stub macros and hopefully few prototypes,
10797     which can conflict with char $ac_func (); below.
10798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10799     <limits.h> exists even on freestanding compilers.  */
10800
10801 #ifdef __STDC__
10802 # include <limits.h>
10803 #else
10804 # include <assert.h>
10805 #endif
10806
10807 #undef $ac_func
10808
10809 /* Override any gcc2 internal prototype to avoid an error.  */
10810 #ifdef __cplusplus
10811 extern "C"
10812 {
10813 #endif
10814 /* We use char because int might match the return type of a gcc2
10815    builtin and then its argument prototype would still apply.  */
10816 char $ac_func ();
10817 /* The GNU C library defines this for functions which it implements
10818     to always fail with ENOSYS.  Some functions are actually named
10819     something starting with __ and the normal name is an alias.  */
10820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10821 choke me
10822 #else
10823 char (*f) () = $ac_func;
10824 #endif
10825 #ifdef __cplusplus
10826 }
10827 #endif
10828
10829 int
10830 main ()
10831 {
10832 return f != $ac_func;
10833   ;
10834   return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839   (eval $ac_link) 2>conftest.er1
10840   ac_status=$?
10841   grep -v '^ *+' conftest.er1 >conftest.err
10842   rm -f conftest.er1
10843   cat conftest.err >&5
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); } &&
10846          { ac_try='test -z "$ac_c_werror_flag"
10847                          || test ! -s conftest.err'
10848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849   (eval $ac_try) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); }; } &&
10853          { ac_try='test -s conftest$ac_exeext'
10854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855   (eval $ac_try) 2>&5
10856   ac_status=$?
10857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858   (exit $ac_status); }; }; then
10859   eval "$as_ac_var=yes"
10860 else
10861   echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 eval "$as_ac_var=no"
10865 fi
10866 rm -f conftest.err conftest.$ac_objext \
10867       conftest$ac_exeext conftest.$ac_ext
10868 fi
10869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10871 if test `eval echo '${'$as_ac_var'}'` = yes; then
10872   cat >>confdefs.h <<_ACEOF
10873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10874 _ACEOF
10875
10876 fi
10877 done
10878
10879   else
10880
10881   echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
10882 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
10883   if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
10884     if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
10885   echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887
10888
10889
10890       ac_ext=cc
10891 ac_cpp='$CXXCPP $CPPFLAGS'
10892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10895
10896       cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h.  */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h.  */
10902 #include <math.h>
10903                       #ifdef HAVE_IEEEFP_H
10904                       #include <ieeefp.h>
10905                       #endif
10906
10907 int
10908 main ()
10909 {
10910  _qfpclass(0);
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 rm -f conftest.$ac_objext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917   (eval $ac_compile) 2>conftest.er1
10918   ac_status=$?
10919   grep -v '^ *+' conftest.er1 >conftest.err
10920   rm -f conftest.er1
10921   cat conftest.err >&5
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); } &&
10924          { ac_try='test -z "$ac_cxx_werror_flag"
10925                          || test ! -s conftest.err'
10926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927   (eval $ac_try) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); }; } &&
10931          { ac_try='test -s conftest.$ac_objext'
10932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933   (eval $ac_try) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); }; }; then
10937   glibcxx_cv_func__qfpclass_use=yes
10938 else
10939   echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 glibcxx_cv_func__qfpclass_use=no
10943 fi
10944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10945       ac_ext=c
10946 ac_cpp='$CPP $CPPFLAGS'
10947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10950
10951
10952 fi
10953
10954   fi
10955   echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10956 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10957
10958     if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10959
10960 for ac_func in _qfpclass
10961 do
10962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10963 echo "$as_me:$LINENO: checking for $ac_func" >&5
10964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10965 if eval "test \"\${$as_ac_var+set}\" = set"; then
10966   echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968   if test x$gcc_no_link = xyes; then
10969   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10971    { (exit 1); exit 1; }; }
10972 fi
10973 cat >conftest.$ac_ext <<_ACEOF
10974 /* confdefs.h.  */
10975 _ACEOF
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h.  */
10979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10981 #define $ac_func innocuous_$ac_func
10982
10983 /* System header to define __stub macros and hopefully few prototypes,
10984     which can conflict with char $ac_func (); below.
10985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10986     <limits.h> exists even on freestanding compilers.  */
10987
10988 #ifdef __STDC__
10989 # include <limits.h>
10990 #else
10991 # include <assert.h>
10992 #endif
10993
10994 #undef $ac_func
10995
10996 /* Override any gcc2 internal prototype to avoid an error.  */
10997 #ifdef __cplusplus
10998 extern "C"
10999 {
11000 #endif
11001 /* We use char because int might match the return type of a gcc2
11002    builtin and then its argument prototype would still apply.  */
11003 char $ac_func ();
11004 /* The GNU C library defines this for functions which it implements
11005     to always fail with ENOSYS.  Some functions are actually named
11006     something starting with __ and the normal name is an alias.  */
11007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11008 choke me
11009 #else
11010 char (*f) () = $ac_func;
11011 #endif
11012 #ifdef __cplusplus
11013 }
11014 #endif
11015
11016 int
11017 main ()
11018 {
11019 return f != $ac_func;
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026   (eval $ac_link) 2>conftest.er1
11027   ac_status=$?
11028   grep -v '^ *+' conftest.er1 >conftest.err
11029   rm -f conftest.er1
11030   cat conftest.err >&5
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); } &&
11033          { ac_try='test -z "$ac_c_werror_flag"
11034                          || test ! -s conftest.err'
11035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036   (eval $ac_try) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; } &&
11040          { ac_try='test -s conftest$ac_exeext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   eval "$as_ac_var=yes"
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 eval "$as_ac_var=no"
11052 fi
11053 rm -f conftest.err conftest.$ac_objext \
11054       conftest$ac_exeext conftest.$ac_ext
11055 fi
11056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059   cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 _ACEOF
11062
11063 fi
11064 done
11065
11066     fi
11067   fi
11068
11069
11070
11071   echo "$as_me:$LINENO: checking for hypot declaration" >&5
11072 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
11073   if test x${glibcxx_cv_func_hypot_use+set} != xset; then
11074     if test "${glibcxx_cv_func_hypot_use+set}" = set; then
11075   echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077
11078
11079
11080       ac_ext=cc
11081 ac_cpp='$CXXCPP $CPPFLAGS'
11082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11085
11086       cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h.  */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h.  */
11092 #include <math.h>
11093 int
11094 main ()
11095 {
11096  hypot(0, 0);
11097   ;
11098   return 0;
11099 }
11100 _ACEOF
11101 rm -f conftest.$ac_objext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103   (eval $ac_compile) 2>conftest.er1
11104   ac_status=$?
11105   grep -v '^ *+' conftest.er1 >conftest.err
11106   rm -f conftest.er1
11107   cat conftest.err >&5
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } &&
11110          { ac_try='test -z "$ac_cxx_werror_flag"
11111                          || test ! -s conftest.err'
11112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113   (eval $ac_try) 2>&5
11114   ac_status=$?
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); }; } &&
11117          { ac_try='test -s conftest.$ac_objext'
11118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119   (eval $ac_try) 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); }; }; then
11123   glibcxx_cv_func_hypot_use=yes
11124 else
11125   echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11127
11128 glibcxx_cv_func_hypot_use=no
11129 fi
11130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11131       ac_ext=c
11132 ac_cpp='$CPP $CPPFLAGS'
11133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11136
11137
11138 fi
11139
11140   fi
11141   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
11142 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
11143
11144   if test x$glibcxx_cv_func_hypot_use = x"yes"; then
11145
11146 for ac_func in hypot
11147 do
11148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11149 echo "$as_me:$LINENO: checking for $ac_func" >&5
11150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11151 if eval "test \"\${$as_ac_var+set}\" = set"; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   if test x$gcc_no_link = xyes; then
11155   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11156 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11157    { (exit 1); exit 1; }; }
11158 fi
11159 cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h.  */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h.  */
11165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11167 #define $ac_func innocuous_$ac_func
11168
11169 /* System header to define __stub macros and hopefully few prototypes,
11170     which can conflict with char $ac_func (); below.
11171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11172     <limits.h> exists even on freestanding compilers.  */
11173
11174 #ifdef __STDC__
11175 # include <limits.h>
11176 #else
11177 # include <assert.h>
11178 #endif
11179
11180 #undef $ac_func
11181
11182 /* Override any gcc2 internal prototype to avoid an error.  */
11183 #ifdef __cplusplus
11184 extern "C"
11185 {
11186 #endif
11187 /* We use char because int might match the return type of a gcc2
11188    builtin and then its argument prototype would still apply.  */
11189 char $ac_func ();
11190 /* The GNU C library defines this for functions which it implements
11191     to always fail with ENOSYS.  Some functions are actually named
11192     something starting with __ and the normal name is an alias.  */
11193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11194 choke me
11195 #else
11196 char (*f) () = $ac_func;
11197 #endif
11198 #ifdef __cplusplus
11199 }
11200 #endif
11201
11202 int
11203 main ()
11204 {
11205 return f != $ac_func;
11206   ;
11207   return 0;
11208 }
11209 _ACEOF
11210 rm -f conftest.$ac_objext conftest$ac_exeext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11212   (eval $ac_link) 2>conftest.er1
11213   ac_status=$?
11214   grep -v '^ *+' conftest.er1 >conftest.err
11215   rm -f conftest.er1
11216   cat conftest.err >&5
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); } &&
11219          { ac_try='test -z "$ac_c_werror_flag"
11220                          || test ! -s conftest.err'
11221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222   (eval $ac_try) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; } &&
11226          { ac_try='test -s conftest$ac_exeext'
11227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228   (eval $ac_try) 2>&5
11229   ac_status=$?
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); }; }; then
11232   eval "$as_ac_var=yes"
11233 else
11234   echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11236
11237 eval "$as_ac_var=no"
11238 fi
11239 rm -f conftest.err conftest.$ac_objext \
11240       conftest$ac_exeext conftest.$ac_ext
11241 fi
11242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11244 if test `eval echo '${'$as_ac_var'}'` = yes; then
11245   cat >>confdefs.h <<_ACEOF
11246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11247 _ACEOF
11248
11249 fi
11250 done
11251
11252   else
11253
11254   echo "$as_me:$LINENO: checking for _hypot declaration" >&5
11255 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
11256   if test x${glibcxx_cv_func__hypot_use+set} != xset; then
11257     if test "${glibcxx_cv_func__hypot_use+set}" = set; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260
11261
11262
11263       ac_ext=cc
11264 ac_cpp='$CXXCPP $CPPFLAGS'
11265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11268
11269       cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 #include <math.h>
11276 int
11277 main ()
11278 {
11279  _hypot(0, 0);
11280   ;
11281   return 0;
11282 }
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286   (eval $ac_compile) 2>conftest.er1
11287   ac_status=$?
11288   grep -v '^ *+' conftest.er1 >conftest.err
11289   rm -f conftest.er1
11290   cat conftest.err >&5
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } &&
11293          { ac_try='test -z "$ac_cxx_werror_flag"
11294                          || test ! -s conftest.err'
11295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296   (eval $ac_try) 2>&5
11297   ac_status=$?
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); }; } &&
11300          { ac_try='test -s conftest.$ac_objext'
11301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302   (eval $ac_try) 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); }; }; then
11306   glibcxx_cv_func__hypot_use=yes
11307 else
11308   echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11310
11311 glibcxx_cv_func__hypot_use=no
11312 fi
11313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11314       ac_ext=c
11315 ac_cpp='$CPP $CPPFLAGS'
11316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11319
11320
11321 fi
11322
11323   fi
11324   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
11325 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
11326
11327     if test x$glibcxx_cv_func__hypot_use = x"yes"; then
11328
11329 for ac_func in _hypot
11330 do
11331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11332 echo "$as_me:$LINENO: checking for $ac_func" >&5
11333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11334 if eval "test \"\${$as_ac_var+set}\" = set"; then
11335   echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337   if test x$gcc_no_link = xyes; then
11338   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11340    { (exit 1); exit 1; }; }
11341 fi
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h.  */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h.  */
11348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11350 #define $ac_func innocuous_$ac_func
11351
11352 /* System header to define __stub macros and hopefully few prototypes,
11353     which can conflict with char $ac_func (); below.
11354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11355     <limits.h> exists even on freestanding compilers.  */
11356
11357 #ifdef __STDC__
11358 # include <limits.h>
11359 #else
11360 # include <assert.h>
11361 #endif
11362
11363 #undef $ac_func
11364
11365 /* Override any gcc2 internal prototype to avoid an error.  */
11366 #ifdef __cplusplus
11367 extern "C"
11368 {
11369 #endif
11370 /* We use char because int might match the return type of a gcc2
11371    builtin and then its argument prototype would still apply.  */
11372 char $ac_func ();
11373 /* The GNU C library defines this for functions which it implements
11374     to always fail with ENOSYS.  Some functions are actually named
11375     something starting with __ and the normal name is an alias.  */
11376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11377 choke me
11378 #else
11379 char (*f) () = $ac_func;
11380 #endif
11381 #ifdef __cplusplus
11382 }
11383 #endif
11384
11385 int
11386 main ()
11387 {
11388 return f != $ac_func;
11389   ;
11390   return 0;
11391 }
11392 _ACEOF
11393 rm -f conftest.$ac_objext conftest$ac_exeext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11395   (eval $ac_link) 2>conftest.er1
11396   ac_status=$?
11397   grep -v '^ *+' conftest.er1 >conftest.err
11398   rm -f conftest.er1
11399   cat conftest.err >&5
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } &&
11402          { ac_try='test -z "$ac_c_werror_flag"
11403                          || test ! -s conftest.err'
11404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405   (eval $ac_try) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; } &&
11409          { ac_try='test -s conftest$ac_exeext'
11410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411   (eval $ac_try) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; }; then
11415   eval "$as_ac_var=yes"
11416 else
11417   echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 eval "$as_ac_var=no"
11421 fi
11422 rm -f conftest.err conftest.$ac_objext \
11423       conftest$ac_exeext conftest.$ac_ext
11424 fi
11425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11427 if test `eval echo '${'$as_ac_var'}'` = yes; then
11428   cat >>confdefs.h <<_ACEOF
11429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11430 _ACEOF
11431
11432 fi
11433 done
11434
11435     fi
11436   fi
11437
11438
11439
11440   echo "$as_me:$LINENO: checking for float trig functions" >&5
11441 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
11442   if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445
11446
11447
11448     ac_ext=cc
11449 ac_cpp='$CXXCPP $CPPFLAGS'
11450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11453
11454     cat >conftest.$ac_ext <<_ACEOF
11455 /* confdefs.h.  */
11456 _ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h.  */
11460 #include <math.h>
11461 int
11462 main ()
11463 {
11464  `for x in acosf asinf atanf \
11465                                           cosf sinf tanf \
11466                                           coshf sinhf tanhf; do echo "$x (0);"; done`
11467   ;
11468   return 0;
11469 }
11470 _ACEOF
11471 rm -f conftest.$ac_objext
11472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11473   (eval $ac_compile) 2>conftest.er1
11474   ac_status=$?
11475   grep -v '^ *+' conftest.er1 >conftest.err
11476   rm -f conftest.er1
11477   cat conftest.err >&5
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); } &&
11480          { ac_try='test -z "$ac_cxx_werror_flag"
11481                          || test ! -s conftest.err'
11482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483   (eval $ac_try) 2>&5
11484   ac_status=$?
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); }; } &&
11487          { ac_try='test -s conftest.$ac_objext'
11488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489   (eval $ac_try) 2>&5
11490   ac_status=$?
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); }; }; then
11493   glibcxx_cv_func_float_trig_use=yes
11494 else
11495   echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11497
11498 glibcxx_cv_func_float_trig_use=no
11499 fi
11500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11501     ac_ext=c
11502 ac_cpp='$CPP $CPPFLAGS'
11503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11506
11507 fi
11508
11509   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
11510 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
11511   if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521 for ac_func in acosf asinf atanf \
11522                                           cosf sinf tanf \
11523                                           coshf sinhf tanhf
11524 do
11525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11526 echo "$as_me:$LINENO: checking for $ac_func" >&5
11527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11528 if eval "test \"\${$as_ac_var+set}\" = set"; then
11529   echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531   if test x$gcc_no_link = xyes; then
11532   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11533 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11534    { (exit 1); exit 1; }; }
11535 fi
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h.  */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h.  */
11542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11544 #define $ac_func innocuous_$ac_func
11545
11546 /* System header to define __stub macros and hopefully few prototypes,
11547     which can conflict with char $ac_func (); below.
11548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11549     <limits.h> exists even on freestanding compilers.  */
11550
11551 #ifdef __STDC__
11552 # include <limits.h>
11553 #else
11554 # include <assert.h>
11555 #endif
11556
11557 #undef $ac_func
11558
11559 /* Override any gcc2 internal prototype to avoid an error.  */
11560 #ifdef __cplusplus
11561 extern "C"
11562 {
11563 #endif
11564 /* We use char because int might match the return type of a gcc2
11565    builtin and then its argument prototype would still apply.  */
11566 char $ac_func ();
11567 /* The GNU C library defines this for functions which it implements
11568     to always fail with ENOSYS.  Some functions are actually named
11569     something starting with __ and the normal name is an alias.  */
11570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11571 choke me
11572 #else
11573 char (*f) () = $ac_func;
11574 #endif
11575 #ifdef __cplusplus
11576 }
11577 #endif
11578
11579 int
11580 main ()
11581 {
11582 return f != $ac_func;
11583   ;
11584   return 0;
11585 }
11586 _ACEOF
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589   (eval $ac_link) 2>conftest.er1
11590   ac_status=$?
11591   grep -v '^ *+' conftest.er1 >conftest.err
11592   rm -f conftest.er1
11593   cat conftest.err >&5
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } &&
11596          { ac_try='test -z "$ac_c_werror_flag"
11597                          || test ! -s conftest.err'
11598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599   (eval $ac_try) 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); }; } &&
11603          { ac_try='test -s conftest$ac_exeext'
11604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605   (eval $ac_try) 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); }; }; then
11609   eval "$as_ac_var=yes"
11610 else
11611   echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614 eval "$as_ac_var=no"
11615 fi
11616 rm -f conftest.err conftest.$ac_objext \
11617       conftest$ac_exeext conftest.$ac_ext
11618 fi
11619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11621 if test `eval echo '${'$as_ac_var'}'` = yes; then
11622   cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11624 _ACEOF
11625
11626 fi
11627 done
11628
11629   fi
11630
11631
11632   echo "$as_me:$LINENO: checking for float round functions" >&5
11633 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
11634   if test "${glibcxx_cv_func_float_round_use+set}" = set; then
11635   echo $ECHO_N "(cached) $ECHO_C" >&6
11636 else
11637
11638
11639
11640     ac_ext=cc
11641 ac_cpp='$CXXCPP $CPPFLAGS'
11642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11645
11646     cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652 #include <math.h>
11653 int
11654 main ()
11655 {
11656  `for x in ceilf floorf; do echo "$x (0);"; done`
11657   ;
11658   return 0;
11659 }
11660 _ACEOF
11661 rm -f conftest.$ac_objext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663   (eval $ac_compile) 2>conftest.er1
11664   ac_status=$?
11665   grep -v '^ *+' conftest.er1 >conftest.err
11666   rm -f conftest.er1
11667   cat conftest.err >&5
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); } &&
11670          { ac_try='test -z "$ac_cxx_werror_flag"
11671                          || test ! -s conftest.err'
11672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673   (eval $ac_try) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; } &&
11677          { ac_try='test -s conftest.$ac_objext'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; }; then
11683   glibcxx_cv_func_float_round_use=yes
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688 glibcxx_cv_func_float_round_use=no
11689 fi
11690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11691     ac_ext=c
11692 ac_cpp='$CPP $CPPFLAGS'
11693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11696
11697 fi
11698
11699   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
11700 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
11701   if test x$glibcxx_cv_func_float_round_use = x"yes"; then
11702
11703
11704 for ac_func in ceilf floorf
11705 do
11706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11707 echo "$as_me:$LINENO: checking for $ac_func" >&5
11708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11709 if eval "test \"\${$as_ac_var+set}\" = set"; then
11710   echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712   if test x$gcc_no_link = xyes; then
11713   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11715    { (exit 1); exit 1; }; }
11716 fi
11717 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11725 #define $ac_func innocuous_$ac_func
11726
11727 /* System header to define __stub macros and hopefully few prototypes,
11728     which can conflict with char $ac_func (); below.
11729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730     <limits.h> exists even on freestanding compilers.  */
11731
11732 #ifdef __STDC__
11733 # include <limits.h>
11734 #else
11735 # include <assert.h>
11736 #endif
11737
11738 #undef $ac_func
11739
11740 /* Override any gcc2 internal prototype to avoid an error.  */
11741 #ifdef __cplusplus
11742 extern "C"
11743 {
11744 #endif
11745 /* We use char because int might match the return type of a gcc2
11746    builtin and then its argument prototype would still apply.  */
11747 char $ac_func ();
11748 /* The GNU C library defines this for functions which it implements
11749     to always fail with ENOSYS.  Some functions are actually named
11750     something starting with __ and the normal name is an alias.  */
11751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11752 choke me
11753 #else
11754 char (*f) () = $ac_func;
11755 #endif
11756 #ifdef __cplusplus
11757 }
11758 #endif
11759
11760 int
11761 main ()
11762 {
11763 return f != $ac_func;
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770   (eval $ac_link) 2>conftest.er1
11771   ac_status=$?
11772   grep -v '^ *+' conftest.er1 >conftest.err
11773   rm -f conftest.er1
11774   cat conftest.err >&5
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); } &&
11777          { ac_try='test -z "$ac_c_werror_flag"
11778                          || test ! -s conftest.err'
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); }; } &&
11784          { ac_try='test -s conftest$ac_exeext'
11785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786   (eval $ac_try) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   eval "$as_ac_var=yes"
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795 eval "$as_ac_var=no"
11796 fi
11797 rm -f conftest.err conftest.$ac_objext \
11798       conftest$ac_exeext conftest.$ac_ext
11799 fi
11800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11802 if test `eval echo '${'$as_ac_var'}'` = yes; then
11803   cat >>confdefs.h <<_ACEOF
11804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11805 _ACEOF
11806
11807 fi
11808 done
11809
11810   fi
11811
11812
11813
11814   echo "$as_me:$LINENO: checking for expf declaration" >&5
11815 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
11816   if test x${glibcxx_cv_func_expf_use+set} != xset; then
11817     if test "${glibcxx_cv_func_expf_use+set}" = set; then
11818   echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820
11821
11822
11823       ac_ext=cc
11824 ac_cpp='$CXXCPP $CPPFLAGS'
11825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11828
11829       cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 #include <math.h>
11836                       #ifdef HAVE_IEEEFP_H
11837                       #include <ieeefp.h>
11838                       #endif
11839
11840 int
11841 main ()
11842 {
11843  expf(0);
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 rm -f conftest.$ac_objext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11850   (eval $ac_compile) 2>conftest.er1
11851   ac_status=$?
11852   grep -v '^ *+' conftest.er1 >conftest.err
11853   rm -f conftest.er1
11854   cat conftest.err >&5
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); } &&
11857          { ac_try='test -z "$ac_cxx_werror_flag"
11858                          || test ! -s conftest.err'
11859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860   (eval $ac_try) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; } &&
11864          { ac_try='test -s conftest.$ac_objext'
11865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866   (eval $ac_try) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870   glibcxx_cv_func_expf_use=yes
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 glibcxx_cv_func_expf_use=no
11876 fi
11877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11878       ac_ext=c
11879 ac_cpp='$CPP $CPPFLAGS'
11880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11883
11884
11885 fi
11886
11887   fi
11888   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
11889 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
11890
11891   if test x$glibcxx_cv_func_expf_use = x"yes"; then
11892
11893 for ac_func in expf
11894 do
11895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 echo "$as_me:$LINENO: checking for $ac_func" >&5
11897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11898 if eval "test \"\${$as_ac_var+set}\" = set"; then
11899   echo $ECHO_N "(cached) $ECHO_C" >&6
11900 else
11901   if test x$gcc_no_link = xyes; then
11902   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11904    { (exit 1); exit 1; }; }
11905 fi
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h.  */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h.  */
11912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11914 #define $ac_func innocuous_$ac_func
11915
11916 /* System header to define __stub macros and hopefully few prototypes,
11917     which can conflict with char $ac_func (); below.
11918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919     <limits.h> exists even on freestanding compilers.  */
11920
11921 #ifdef __STDC__
11922 # include <limits.h>
11923 #else
11924 # include <assert.h>
11925 #endif
11926
11927 #undef $ac_func
11928
11929 /* Override any gcc2 internal prototype to avoid an error.  */
11930 #ifdef __cplusplus
11931 extern "C"
11932 {
11933 #endif
11934 /* We use char because int might match the return type of a gcc2
11935    builtin and then its argument prototype would still apply.  */
11936 char $ac_func ();
11937 /* The GNU C library defines this for functions which it implements
11938     to always fail with ENOSYS.  Some functions are actually named
11939     something starting with __ and the normal name is an alias.  */
11940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11941 choke me
11942 #else
11943 char (*f) () = $ac_func;
11944 #endif
11945 #ifdef __cplusplus
11946 }
11947 #endif
11948
11949 int
11950 main ()
11951 {
11952 return f != $ac_func;
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959   (eval $ac_link) 2>conftest.er1
11960   ac_status=$?
11961   grep -v '^ *+' conftest.er1 >conftest.err
11962   rm -f conftest.er1
11963   cat conftest.err >&5
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } &&
11966          { ac_try='test -z "$ac_c_werror_flag"
11967                          || test ! -s conftest.err'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; } &&
11973          { ac_try='test -s conftest$ac_exeext'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; }; then
11979   eval "$as_ac_var=yes"
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 eval "$as_ac_var=no"
11985 fi
11986 rm -f conftest.err conftest.$ac_objext \
11987       conftest$ac_exeext conftest.$ac_ext
11988 fi
11989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11991 if test `eval echo '${'$as_ac_var'}'` = yes; then
11992   cat >>confdefs.h <<_ACEOF
11993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11994 _ACEOF
11995
11996 fi
11997 done
11998
11999   else
12000
12001   echo "$as_me:$LINENO: checking for _expf declaration" >&5
12002 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
12003   if test x${glibcxx_cv_func__expf_use+set} != xset; then
12004     if test "${glibcxx_cv_func__expf_use+set}" = set; then
12005   echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007
12008
12009
12010       ac_ext=cc
12011 ac_cpp='$CXXCPP $CPPFLAGS'
12012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12015
12016       cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h.  */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h.  */
12022 #include <math.h>
12023                       #ifdef HAVE_IEEEFP_H
12024                       #include <ieeefp.h>
12025                       #endif
12026
12027 int
12028 main ()
12029 {
12030  _expf(0);
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037   (eval $ac_compile) 2>conftest.er1
12038   ac_status=$?
12039   grep -v '^ *+' conftest.er1 >conftest.err
12040   rm -f conftest.er1
12041   cat conftest.err >&5
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); } &&
12044          { ac_try='test -z "$ac_cxx_werror_flag"
12045                          || test ! -s conftest.err'
12046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047   (eval $ac_try) 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); }; } &&
12051          { ac_try='test -s conftest.$ac_objext'
12052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053   (eval $ac_try) 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); }; }; then
12057   glibcxx_cv_func__expf_use=yes
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062 glibcxx_cv_func__expf_use=no
12063 fi
12064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065       ac_ext=c
12066 ac_cpp='$CPP $CPPFLAGS'
12067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12070
12071
12072 fi
12073
12074   fi
12075   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
12076 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
12077
12078     if test x$glibcxx_cv_func__expf_use = x"yes"; then
12079
12080 for ac_func in _expf
12081 do
12082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12083 echo "$as_me:$LINENO: checking for $ac_func" >&5
12084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12085 if eval "test \"\${$as_ac_var+set}\" = set"; then
12086   echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088   if test x$gcc_no_link = xyes; then
12089   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12090 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12091    { (exit 1); exit 1; }; }
12092 fi
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12101 #define $ac_func innocuous_$ac_func
12102
12103 /* System header to define __stub macros and hopefully few prototypes,
12104     which can conflict with char $ac_func (); below.
12105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12106     <limits.h> exists even on freestanding compilers.  */
12107
12108 #ifdef __STDC__
12109 # include <limits.h>
12110 #else
12111 # include <assert.h>
12112 #endif
12113
12114 #undef $ac_func
12115
12116 /* Override any gcc2 internal prototype to avoid an error.  */
12117 #ifdef __cplusplus
12118 extern "C"
12119 {
12120 #endif
12121 /* We use char because int might match the return type of a gcc2
12122    builtin and then its argument prototype would still apply.  */
12123 char $ac_func ();
12124 /* The GNU C library defines this for functions which it implements
12125     to always fail with ENOSYS.  Some functions are actually named
12126     something starting with __ and the normal name is an alias.  */
12127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12128 choke me
12129 #else
12130 char (*f) () = $ac_func;
12131 #endif
12132 #ifdef __cplusplus
12133 }
12134 #endif
12135
12136 int
12137 main ()
12138 {
12139 return f != $ac_func;
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146   (eval $ac_link) 2>conftest.er1
12147   ac_status=$?
12148   grep -v '^ *+' conftest.er1 >conftest.err
12149   rm -f conftest.er1
12150   cat conftest.err >&5
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } &&
12153          { ac_try='test -z "$ac_c_werror_flag"
12154                          || test ! -s conftest.err'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; } &&
12160          { ac_try='test -s conftest$ac_exeext'
12161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162   (eval $ac_try) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   eval "$as_ac_var=yes"
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 eval "$as_ac_var=no"
12172 fi
12173 rm -f conftest.err conftest.$ac_objext \
12174       conftest$ac_exeext conftest.$ac_ext
12175 fi
12176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12178 if test `eval echo '${'$as_ac_var'}'` = yes; then
12179   cat >>confdefs.h <<_ACEOF
12180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12181 _ACEOF
12182
12183 fi
12184 done
12185
12186     fi
12187   fi
12188
12189
12190
12191   echo "$as_me:$LINENO: checking for isnanf declaration" >&5
12192 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
12193   if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12194     if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197
12198
12199
12200       ac_ext=cc
12201 ac_cpp='$CXXCPP $CPPFLAGS'
12202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12205
12206       cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h.  */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h.  */
12212 #include <math.h>
12213                       #ifdef HAVE_IEEEFP_H
12214                       #include <ieeefp.h>
12215                       #endif
12216
12217 int
12218 main ()
12219 {
12220  isnanf(0);
12221   ;
12222   return 0;
12223 }
12224 _ACEOF
12225 rm -f conftest.$ac_objext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12227   (eval $ac_compile) 2>conftest.er1
12228   ac_status=$?
12229   grep -v '^ *+' conftest.er1 >conftest.err
12230   rm -f conftest.er1
12231   cat conftest.err >&5
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); } &&
12234          { ac_try='test -z "$ac_cxx_werror_flag"
12235                          || test ! -s conftest.err'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; } &&
12241          { ac_try='test -s conftest.$ac_objext'
12242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243   (eval $ac_try) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }; }; then
12247   glibcxx_cv_func_isnanf_use=yes
12248 else
12249   echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 glibcxx_cv_func_isnanf_use=no
12253 fi
12254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12255       ac_ext=c
12256 ac_cpp='$CPP $CPPFLAGS'
12257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12260
12261
12262 fi
12263
12264   fi
12265   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
12266 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
12267
12268   if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12269
12270 for ac_func in isnanf
12271 do
12272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12273 echo "$as_me:$LINENO: checking for $ac_func" >&5
12274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12275 if eval "test \"\${$as_ac_var+set}\" = set"; then
12276   echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278   if test x$gcc_no_link = xyes; then
12279   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12281    { (exit 1); exit 1; }; }
12282 fi
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h.  */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h.  */
12289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12291 #define $ac_func innocuous_$ac_func
12292
12293 /* System header to define __stub macros and hopefully few prototypes,
12294     which can conflict with char $ac_func (); below.
12295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12296     <limits.h> exists even on freestanding compilers.  */
12297
12298 #ifdef __STDC__
12299 # include <limits.h>
12300 #else
12301 # include <assert.h>
12302 #endif
12303
12304 #undef $ac_func
12305
12306 /* Override any gcc2 internal prototype to avoid an error.  */
12307 #ifdef __cplusplus
12308 extern "C"
12309 {
12310 #endif
12311 /* We use char because int might match the return type of a gcc2
12312    builtin and then its argument prototype would still apply.  */
12313 char $ac_func ();
12314 /* The GNU C library defines this for functions which it implements
12315     to always fail with ENOSYS.  Some functions are actually named
12316     something starting with __ and the normal name is an alias.  */
12317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12318 choke me
12319 #else
12320 char (*f) () = $ac_func;
12321 #endif
12322 #ifdef __cplusplus
12323 }
12324 #endif
12325
12326 int
12327 main ()
12328 {
12329 return f != $ac_func;
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336   (eval $ac_link) 2>conftest.er1
12337   ac_status=$?
12338   grep -v '^ *+' conftest.er1 >conftest.err
12339   rm -f conftest.er1
12340   cat conftest.err >&5
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); } &&
12343          { ac_try='test -z "$ac_c_werror_flag"
12344                          || test ! -s conftest.err'
12345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346   (eval $ac_try) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); }; } &&
12350          { ac_try='test -s conftest$ac_exeext'
12351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352   (eval $ac_try) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); }; }; then
12356   eval "$as_ac_var=yes"
12357 else
12358   echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12360
12361 eval "$as_ac_var=no"
12362 fi
12363 rm -f conftest.err conftest.$ac_objext \
12364       conftest$ac_exeext conftest.$ac_ext
12365 fi
12366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12368 if test `eval echo '${'$as_ac_var'}'` = yes; then
12369   cat >>confdefs.h <<_ACEOF
12370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12371 _ACEOF
12372
12373 fi
12374 done
12375
12376   else
12377
12378   echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
12379 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
12380   if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12381     if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
12382   echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384
12385
12386
12387       ac_ext=cc
12388 ac_cpp='$CXXCPP $CPPFLAGS'
12389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12392
12393       cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h.  */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h.  */
12399 #include <math.h>
12400                       #ifdef HAVE_IEEEFP_H
12401                       #include <ieeefp.h>
12402                       #endif
12403
12404 int
12405 main ()
12406 {
12407  _isnanf(0);
12408   ;
12409   return 0;
12410 }
12411 _ACEOF
12412 rm -f conftest.$ac_objext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414   (eval $ac_compile) 2>conftest.er1
12415   ac_status=$?
12416   grep -v '^ *+' conftest.er1 >conftest.err
12417   rm -f conftest.er1
12418   cat conftest.err >&5
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } &&
12421          { ac_try='test -z "$ac_cxx_werror_flag"
12422                          || test ! -s conftest.err'
12423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424   (eval $ac_try) 2>&5
12425   ac_status=$?
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); }; } &&
12428          { ac_try='test -s conftest.$ac_objext'
12429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430   (eval $ac_try) 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; }; then
12434   glibcxx_cv_func__isnanf_use=yes
12435 else
12436   echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12438
12439 glibcxx_cv_func__isnanf_use=no
12440 fi
12441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12442       ac_ext=c
12443 ac_cpp='$CPP $CPPFLAGS'
12444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12447
12448
12449 fi
12450
12451   fi
12452   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
12453 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
12454
12455     if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
12456
12457 for ac_func in _isnanf
12458 do
12459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12460 echo "$as_me:$LINENO: checking for $ac_func" >&5
12461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12462 if eval "test \"\${$as_ac_var+set}\" = set"; then
12463   echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465   if test x$gcc_no_link = xyes; then
12466   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12467 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12468    { (exit 1); exit 1; }; }
12469 fi
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h.  */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h.  */
12476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12478 #define $ac_func innocuous_$ac_func
12479
12480 /* System header to define __stub macros and hopefully few prototypes,
12481     which can conflict with char $ac_func (); below.
12482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12483     <limits.h> exists even on freestanding compilers.  */
12484
12485 #ifdef __STDC__
12486 # include <limits.h>
12487 #else
12488 # include <assert.h>
12489 #endif
12490
12491 #undef $ac_func
12492
12493 /* Override any gcc2 internal prototype to avoid an error.  */
12494 #ifdef __cplusplus
12495 extern "C"
12496 {
12497 #endif
12498 /* We use char because int might match the return type of a gcc2
12499    builtin and then its argument prototype would still apply.  */
12500 char $ac_func ();
12501 /* The GNU C library defines this for functions which it implements
12502     to always fail with ENOSYS.  Some functions are actually named
12503     something starting with __ and the normal name is an alias.  */
12504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12505 choke me
12506 #else
12507 char (*f) () = $ac_func;
12508 #endif
12509 #ifdef __cplusplus
12510 }
12511 #endif
12512
12513 int
12514 main ()
12515 {
12516 return f != $ac_func;
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523   (eval $ac_link) 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag"
12531                          || test ! -s conftest.err'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } &&
12537          { ac_try='test -s conftest$ac_exeext'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; }; then
12543   eval "$as_ac_var=yes"
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 eval "$as_ac_var=no"
12549 fi
12550 rm -f conftest.err conftest.$ac_objext \
12551       conftest$ac_exeext conftest.$ac_ext
12552 fi
12553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12555 if test `eval echo '${'$as_ac_var'}'` = yes; then
12556   cat >>confdefs.h <<_ACEOF
12557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12558 _ACEOF
12559
12560 fi
12561 done
12562
12563     fi
12564   fi
12565
12566
12567
12568   echo "$as_me:$LINENO: checking for isinff declaration" >&5
12569 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
12570   if test x${glibcxx_cv_func_isinff_use+set} != xset; then
12571     if test "${glibcxx_cv_func_isinff_use+set}" = set; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574
12575
12576
12577       ac_ext=cc
12578 ac_cpp='$CXXCPP $CPPFLAGS'
12579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12582
12583       cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589 #include <math.h>
12590                       #ifdef HAVE_IEEEFP_H
12591                       #include <ieeefp.h>
12592                       #endif
12593
12594 int
12595 main ()
12596 {
12597  isinff(0);
12598   ;
12599   return 0;
12600 }
12601 _ACEOF
12602 rm -f conftest.$ac_objext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604   (eval $ac_compile) 2>conftest.er1
12605   ac_status=$?
12606   grep -v '^ *+' conftest.er1 >conftest.err
12607   rm -f conftest.er1
12608   cat conftest.err >&5
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   (exit $ac_status); } &&
12611          { ac_try='test -z "$ac_cxx_werror_flag"
12612                          || test ! -s conftest.err'
12613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614   (eval $ac_try) 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); }; } &&
12618          { ac_try='test -s conftest.$ac_objext'
12619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620   (eval $ac_try) 2>&5
12621   ac_status=$?
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); }; }; then
12624   glibcxx_cv_func_isinff_use=yes
12625 else
12626   echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629 glibcxx_cv_func_isinff_use=no
12630 fi
12631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632       ac_ext=c
12633 ac_cpp='$CPP $CPPFLAGS'
12634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12637
12638
12639 fi
12640
12641   fi
12642   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
12643 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
12644
12645   if test x$glibcxx_cv_func_isinff_use = x"yes"; then
12646
12647 for ac_func in isinff
12648 do
12649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12650 echo "$as_me:$LINENO: checking for $ac_func" >&5
12651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12652 if eval "test \"\${$as_ac_var+set}\" = set"; then
12653   echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655   if test x$gcc_no_link = xyes; then
12656   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12658    { (exit 1); exit 1; }; }
12659 fi
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h.  */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h.  */
12666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12668 #define $ac_func innocuous_$ac_func
12669
12670 /* System header to define __stub macros and hopefully few prototypes,
12671     which can conflict with char $ac_func (); below.
12672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12673     <limits.h> exists even on freestanding compilers.  */
12674
12675 #ifdef __STDC__
12676 # include <limits.h>
12677 #else
12678 # include <assert.h>
12679 #endif
12680
12681 #undef $ac_func
12682
12683 /* Override any gcc2 internal prototype to avoid an error.  */
12684 #ifdef __cplusplus
12685 extern "C"
12686 {
12687 #endif
12688 /* We use char because int might match the return type of a gcc2
12689    builtin and then its argument prototype would still apply.  */
12690 char $ac_func ();
12691 /* The GNU C library defines this for functions which it implements
12692     to always fail with ENOSYS.  Some functions are actually named
12693     something starting with __ and the normal name is an alias.  */
12694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12695 choke me
12696 #else
12697 char (*f) () = $ac_func;
12698 #endif
12699 #ifdef __cplusplus
12700 }
12701 #endif
12702
12703 int
12704 main ()
12705 {
12706 return f != $ac_func;
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 rm -f conftest.$ac_objext conftest$ac_exeext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12713   (eval $ac_link) 2>conftest.er1
12714   ac_status=$?
12715   grep -v '^ *+' conftest.er1 >conftest.err
12716   rm -f conftest.er1
12717   cat conftest.err >&5
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } &&
12720          { ac_try='test -z "$ac_c_werror_flag"
12721                          || test ! -s conftest.err'
12722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723   (eval $ac_try) 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; } &&
12727          { ac_try='test -s conftest$ac_exeext'
12728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729   (eval $ac_try) 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); }; }; then
12733   eval "$as_ac_var=yes"
12734 else
12735   echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 eval "$as_ac_var=no"
12739 fi
12740 rm -f conftest.err conftest.$ac_objext \
12741       conftest$ac_exeext conftest.$ac_ext
12742 fi
12743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12745 if test `eval echo '${'$as_ac_var'}'` = yes; then
12746   cat >>confdefs.h <<_ACEOF
12747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12748 _ACEOF
12749
12750 fi
12751 done
12752
12753   else
12754
12755   echo "$as_me:$LINENO: checking for _isinff declaration" >&5
12756 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
12757   if test x${glibcxx_cv_func__isinff_use+set} != xset; then
12758     if test "${glibcxx_cv_func__isinff_use+set}" = set; then
12759   echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761
12762
12763
12764       ac_ext=cc
12765 ac_cpp='$CXXCPP $CPPFLAGS'
12766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12769
12770       cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776 #include <math.h>
12777                       #ifdef HAVE_IEEEFP_H
12778                       #include <ieeefp.h>
12779                       #endif
12780
12781 int
12782 main ()
12783 {
12784  _isinff(0);
12785   ;
12786   return 0;
12787 }
12788 _ACEOF
12789 rm -f conftest.$ac_objext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791   (eval $ac_compile) 2>conftest.er1
12792   ac_status=$?
12793   grep -v '^ *+' conftest.er1 >conftest.err
12794   rm -f conftest.er1
12795   cat conftest.err >&5
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); } &&
12798          { ac_try='test -z "$ac_cxx_werror_flag"
12799                          || test ! -s conftest.err'
12800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801   (eval $ac_try) 2>&5
12802   ac_status=$?
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); }; } &&
12805          { ac_try='test -s conftest.$ac_objext'
12806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807   (eval $ac_try) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; }; then
12811   glibcxx_cv_func__isinff_use=yes
12812 else
12813   echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12815
12816 glibcxx_cv_func__isinff_use=no
12817 fi
12818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12819       ac_ext=c
12820 ac_cpp='$CPP $CPPFLAGS'
12821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824
12825
12826 fi
12827
12828   fi
12829   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
12830 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
12831
12832     if test x$glibcxx_cv_func__isinff_use = x"yes"; then
12833
12834 for ac_func in _isinff
12835 do
12836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837 echo "$as_me:$LINENO: checking for $ac_func" >&5
12838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12839 if eval "test \"\${$as_ac_var+set}\" = set"; then
12840   echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842   if test x$gcc_no_link = xyes; then
12843   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12844 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12845    { (exit 1); exit 1; }; }
12846 fi
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h.  */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h.  */
12853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12855 #define $ac_func innocuous_$ac_func
12856
12857 /* System header to define __stub macros and hopefully few prototypes,
12858     which can conflict with char $ac_func (); below.
12859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12860     <limits.h> exists even on freestanding compilers.  */
12861
12862 #ifdef __STDC__
12863 # include <limits.h>
12864 #else
12865 # include <assert.h>
12866 #endif
12867
12868 #undef $ac_func
12869
12870 /* Override any gcc2 internal prototype to avoid an error.  */
12871 #ifdef __cplusplus
12872 extern "C"
12873 {
12874 #endif
12875 /* We use char because int might match the return type of a gcc2
12876    builtin and then its argument prototype would still apply.  */
12877 char $ac_func ();
12878 /* The GNU C library defines this for functions which it implements
12879     to always fail with ENOSYS.  Some functions are actually named
12880     something starting with __ and the normal name is an alias.  */
12881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12882 choke me
12883 #else
12884 char (*f) () = $ac_func;
12885 #endif
12886 #ifdef __cplusplus
12887 }
12888 #endif
12889
12890 int
12891 main ()
12892 {
12893 return f != $ac_func;
12894   ;
12895   return 0;
12896 }
12897 _ACEOF
12898 rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900   (eval $ac_link) 2>conftest.er1
12901   ac_status=$?
12902   grep -v '^ *+' conftest.er1 >conftest.err
12903   rm -f conftest.er1
12904   cat conftest.err >&5
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); } &&
12907          { ac_try='test -z "$ac_c_werror_flag"
12908                          || test ! -s conftest.err'
12909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910   (eval $ac_try) 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; } &&
12914          { ac_try='test -s conftest$ac_exeext'
12915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916   (eval $ac_try) 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); }; }; then
12920   eval "$as_ac_var=yes"
12921 else
12922   echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925 eval "$as_ac_var=no"
12926 fi
12927 rm -f conftest.err conftest.$ac_objext \
12928       conftest$ac_exeext conftest.$ac_ext
12929 fi
12930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12932 if test `eval echo '${'$as_ac_var'}'` = yes; then
12933   cat >>confdefs.h <<_ACEOF
12934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12935 _ACEOF
12936
12937 fi
12938 done
12939
12940     fi
12941   fi
12942
12943
12944
12945   echo "$as_me:$LINENO: checking for atan2f declaration" >&5
12946 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
12947   if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
12948     if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
12949   echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951
12952
12953
12954       ac_ext=cc
12955 ac_cpp='$CXXCPP $CPPFLAGS'
12956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12959
12960       cat >conftest.$ac_ext <<_ACEOF
12961 /* confdefs.h.  */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h.  */
12966 #include <math.h>
12967 int
12968 main ()
12969 {
12970  atan2f(0, 0);
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 rm -f conftest.$ac_objext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977   (eval $ac_compile) 2>conftest.er1
12978   ac_status=$?
12979   grep -v '^ *+' conftest.er1 >conftest.err
12980   rm -f conftest.er1
12981   cat conftest.err >&5
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); } &&
12984          { ac_try='test -z "$ac_cxx_werror_flag"
12985                          || test ! -s conftest.err'
12986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987   (eval $ac_try) 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; } &&
12991          { ac_try='test -s conftest.$ac_objext'
12992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993   (eval $ac_try) 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; }; then
12997   glibcxx_cv_func_atan2f_use=yes
12998 else
12999   echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13001
13002 glibcxx_cv_func_atan2f_use=no
13003 fi
13004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13005       ac_ext=c
13006 ac_cpp='$CPP $CPPFLAGS'
13007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13010
13011
13012 fi
13013
13014   fi
13015   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
13016 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
13017
13018   if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
13019
13020 for ac_func in atan2f
13021 do
13022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13023 echo "$as_me:$LINENO: checking for $ac_func" >&5
13024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13025 if eval "test \"\${$as_ac_var+set}\" = set"; then
13026   echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028   if test x$gcc_no_link = xyes; then
13029   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13031    { (exit 1); exit 1; }; }
13032 fi
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h.  */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h.  */
13039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13041 #define $ac_func innocuous_$ac_func
13042
13043 /* System header to define __stub macros and hopefully few prototypes,
13044     which can conflict with char $ac_func (); below.
13045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13046     <limits.h> exists even on freestanding compilers.  */
13047
13048 #ifdef __STDC__
13049 # include <limits.h>
13050 #else
13051 # include <assert.h>
13052 #endif
13053
13054 #undef $ac_func
13055
13056 /* Override any gcc2 internal prototype to avoid an error.  */
13057 #ifdef __cplusplus
13058 extern "C"
13059 {
13060 #endif
13061 /* We use char because int might match the return type of a gcc2
13062    builtin and then its argument prototype would still apply.  */
13063 char $ac_func ();
13064 /* The GNU C library defines this for functions which it implements
13065     to always fail with ENOSYS.  Some functions are actually named
13066     something starting with __ and the normal name is an alias.  */
13067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13068 choke me
13069 #else
13070 char (*f) () = $ac_func;
13071 #endif
13072 #ifdef __cplusplus
13073 }
13074 #endif
13075
13076 int
13077 main ()
13078 {
13079 return f != $ac_func;
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 rm -f conftest.$ac_objext conftest$ac_exeext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13086   (eval $ac_link) 2>conftest.er1
13087   ac_status=$?
13088   grep -v '^ *+' conftest.er1 >conftest.err
13089   rm -f conftest.er1
13090   cat conftest.err >&5
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); } &&
13093          { ac_try='test -z "$ac_c_werror_flag"
13094                          || test ! -s conftest.err'
13095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096   (eval $ac_try) 2>&5
13097   ac_status=$?
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); }; } &&
13100          { ac_try='test -s conftest$ac_exeext'
13101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102   (eval $ac_try) 2>&5
13103   ac_status=$?
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); }; }; then
13106   eval "$as_ac_var=yes"
13107 else
13108   echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111 eval "$as_ac_var=no"
13112 fi
13113 rm -f conftest.err conftest.$ac_objext \
13114       conftest$ac_exeext conftest.$ac_ext
13115 fi
13116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13118 if test `eval echo '${'$as_ac_var'}'` = yes; then
13119   cat >>confdefs.h <<_ACEOF
13120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13121 _ACEOF
13122
13123 fi
13124 done
13125
13126   else
13127
13128   echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
13129 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
13130   if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
13131     if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
13132   echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134
13135
13136
13137       ac_ext=cc
13138 ac_cpp='$CXXCPP $CPPFLAGS'
13139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13142
13143       cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h.  */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h.  */
13149 #include <math.h>
13150 int
13151 main ()
13152 {
13153  _atan2f(0, 0);
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160   (eval $ac_compile) 2>conftest.er1
13161   ac_status=$?
13162   grep -v '^ *+' conftest.er1 >conftest.err
13163   rm -f conftest.er1
13164   cat conftest.err >&5
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); } &&
13167          { ac_try='test -z "$ac_cxx_werror_flag"
13168                          || test ! -s conftest.err'
13169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170   (eval $ac_try) 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; } &&
13174          { ac_try='test -s conftest.$ac_objext'
13175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176   (eval $ac_try) 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; }; then
13180   glibcxx_cv_func__atan2f_use=yes
13181 else
13182   echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13184
13185 glibcxx_cv_func__atan2f_use=no
13186 fi
13187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13188       ac_ext=c
13189 ac_cpp='$CPP $CPPFLAGS'
13190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13193
13194
13195 fi
13196
13197   fi
13198   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
13199 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
13200
13201     if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13202
13203 for ac_func in _atan2f
13204 do
13205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13206 echo "$as_me:$LINENO: checking for $ac_func" >&5
13207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13208 if eval "test \"\${$as_ac_var+set}\" = set"; then
13209   echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211   if test x$gcc_no_link = xyes; then
13212   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13214    { (exit 1); exit 1; }; }
13215 fi
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13224 #define $ac_func innocuous_$ac_func
13225
13226 /* System header to define __stub macros and hopefully few prototypes,
13227     which can conflict with char $ac_func (); below.
13228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229     <limits.h> exists even on freestanding compilers.  */
13230
13231 #ifdef __STDC__
13232 # include <limits.h>
13233 #else
13234 # include <assert.h>
13235 #endif
13236
13237 #undef $ac_func
13238
13239 /* Override any gcc2 internal prototype to avoid an error.  */
13240 #ifdef __cplusplus
13241 extern "C"
13242 {
13243 #endif
13244 /* We use char because int might match the return type of a gcc2
13245    builtin and then its argument prototype would still apply.  */
13246 char $ac_func ();
13247 /* The GNU C library defines this for functions which it implements
13248     to always fail with ENOSYS.  Some functions are actually named
13249     something starting with __ and the normal name is an alias.  */
13250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13251 choke me
13252 #else
13253 char (*f) () = $ac_func;
13254 #endif
13255 #ifdef __cplusplus
13256 }
13257 #endif
13258
13259 int
13260 main ()
13261 {
13262 return f != $ac_func;
13263   ;
13264   return 0;
13265 }
13266 _ACEOF
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13269   (eval $ac_link) 2>conftest.er1
13270   ac_status=$?
13271   grep -v '^ *+' conftest.er1 >conftest.err
13272   rm -f conftest.er1
13273   cat conftest.err >&5
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); } &&
13276          { ac_try='test -z "$ac_c_werror_flag"
13277                          || test ! -s conftest.err'
13278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279   (eval $ac_try) 2>&5
13280   ac_status=$?
13281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282   (exit $ac_status); }; } &&
13283          { ac_try='test -s conftest$ac_exeext'
13284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285   (eval $ac_try) 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }; }; then
13289   eval "$as_ac_var=yes"
13290 else
13291   echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294 eval "$as_ac_var=no"
13295 fi
13296 rm -f conftest.err conftest.$ac_objext \
13297       conftest$ac_exeext conftest.$ac_ext
13298 fi
13299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13301 if test `eval echo '${'$as_ac_var'}'` = yes; then
13302   cat >>confdefs.h <<_ACEOF
13303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13304 _ACEOF
13305
13306 fi
13307 done
13308
13309     fi
13310   fi
13311
13312
13313
13314   echo "$as_me:$LINENO: checking for fabsf declaration" >&5
13315 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
13316   if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13317     if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
13318   echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320
13321
13322
13323       ac_ext=cc
13324 ac_cpp='$CXXCPP $CPPFLAGS'
13325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13328
13329       cat >conftest.$ac_ext <<_ACEOF
13330 /* confdefs.h.  */
13331 _ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h.  */
13335 #include <math.h>
13336                       #ifdef HAVE_IEEEFP_H
13337                       #include <ieeefp.h>
13338                       #endif
13339
13340 int
13341 main ()
13342 {
13343  fabsf(0);
13344   ;
13345   return 0;
13346 }
13347 _ACEOF
13348 rm -f conftest.$ac_objext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350   (eval $ac_compile) 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } &&
13357          { ac_try='test -z "$ac_cxx_werror_flag"
13358                          || test ! -s conftest.err'
13359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360   (eval $ac_try) 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; } &&
13364          { ac_try='test -s conftest.$ac_objext'
13365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366   (eval $ac_try) 2>&5
13367   ac_status=$?
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); }; }; then
13370   glibcxx_cv_func_fabsf_use=yes
13371 else
13372   echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13374
13375 glibcxx_cv_func_fabsf_use=no
13376 fi
13377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13378       ac_ext=c
13379 ac_cpp='$CPP $CPPFLAGS'
13380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13383
13384
13385 fi
13386
13387   fi
13388   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
13389 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
13390
13391   if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13392
13393 for ac_func in fabsf
13394 do
13395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13396 echo "$as_me:$LINENO: checking for $ac_func" >&5
13397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13398 if eval "test \"\${$as_ac_var+set}\" = set"; then
13399   echo $ECHO_N "(cached) $ECHO_C" >&6
13400 else
13401   if test x$gcc_no_link = xyes; then
13402   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13403 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13404    { (exit 1); exit 1; }; }
13405 fi
13406 cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13414 #define $ac_func innocuous_$ac_func
13415
13416 /* System header to define __stub macros and hopefully few prototypes,
13417     which can conflict with char $ac_func (); below.
13418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13419     <limits.h> exists even on freestanding compilers.  */
13420
13421 #ifdef __STDC__
13422 # include <limits.h>
13423 #else
13424 # include <assert.h>
13425 #endif
13426
13427 #undef $ac_func
13428
13429 /* Override any gcc2 internal prototype to avoid an error.  */
13430 #ifdef __cplusplus
13431 extern "C"
13432 {
13433 #endif
13434 /* We use char because int might match the return type of a gcc2
13435    builtin and then its argument prototype would still apply.  */
13436 char $ac_func ();
13437 /* The GNU C library defines this for functions which it implements
13438     to always fail with ENOSYS.  Some functions are actually named
13439     something starting with __ and the normal name is an alias.  */
13440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13441 choke me
13442 #else
13443 char (*f) () = $ac_func;
13444 #endif
13445 #ifdef __cplusplus
13446 }
13447 #endif
13448
13449 int
13450 main ()
13451 {
13452 return f != $ac_func;
13453   ;
13454   return 0;
13455 }
13456 _ACEOF
13457 rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459   (eval $ac_link) 2>conftest.er1
13460   ac_status=$?
13461   grep -v '^ *+' conftest.er1 >conftest.err
13462   rm -f conftest.er1
13463   cat conftest.err >&5
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); } &&
13466          { ac_try='test -z "$ac_c_werror_flag"
13467                          || test ! -s conftest.err'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; } &&
13473          { ac_try='test -s conftest$ac_exeext'
13474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475   (eval $ac_try) 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; }; then
13479   eval "$as_ac_var=yes"
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 eval "$as_ac_var=no"
13485 fi
13486 rm -f conftest.err conftest.$ac_objext \
13487       conftest$ac_exeext conftest.$ac_ext
13488 fi
13489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13491 if test `eval echo '${'$as_ac_var'}'` = yes; then
13492   cat >>confdefs.h <<_ACEOF
13493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13494 _ACEOF
13495
13496 fi
13497 done
13498
13499   else
13500
13501   echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
13502 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
13503   if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13504     if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
13505   echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507
13508
13509
13510       ac_ext=cc
13511 ac_cpp='$CXXCPP $CPPFLAGS'
13512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13515
13516       cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h.  */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h.  */
13522 #include <math.h>
13523                       #ifdef HAVE_IEEEFP_H
13524                       #include <ieeefp.h>
13525                       #endif
13526
13527 int
13528 main ()
13529 {
13530  _fabsf(0);
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537   (eval $ac_compile) 2>conftest.er1
13538   ac_status=$?
13539   grep -v '^ *+' conftest.er1 >conftest.err
13540   rm -f conftest.er1
13541   cat conftest.err >&5
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } &&
13544          { ac_try='test -z "$ac_cxx_werror_flag"
13545                          || test ! -s conftest.err'
13546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547   (eval $ac_try) 2>&5
13548   ac_status=$?
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); }; } &&
13551          { ac_try='test -s conftest.$ac_objext'
13552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553   (eval $ac_try) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }; }; then
13557   glibcxx_cv_func__fabsf_use=yes
13558 else
13559   echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13561
13562 glibcxx_cv_func__fabsf_use=no
13563 fi
13564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13565       ac_ext=c
13566 ac_cpp='$CPP $CPPFLAGS'
13567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13570
13571
13572 fi
13573
13574   fi
13575   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
13576 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
13577
13578     if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13579
13580 for ac_func in _fabsf
13581 do
13582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13583 echo "$as_me:$LINENO: checking for $ac_func" >&5
13584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13585 if eval "test \"\${$as_ac_var+set}\" = set"; then
13586   echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588   if test x$gcc_no_link = xyes; then
13589   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13590 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13591    { (exit 1); exit 1; }; }
13592 fi
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h.  */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h.  */
13599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13601 #define $ac_func innocuous_$ac_func
13602
13603 /* System header to define __stub macros and hopefully few prototypes,
13604     which can conflict with char $ac_func (); below.
13605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606     <limits.h> exists even on freestanding compilers.  */
13607
13608 #ifdef __STDC__
13609 # include <limits.h>
13610 #else
13611 # include <assert.h>
13612 #endif
13613
13614 #undef $ac_func
13615
13616 /* Override any gcc2 internal prototype to avoid an error.  */
13617 #ifdef __cplusplus
13618 extern "C"
13619 {
13620 #endif
13621 /* We use char because int might match the return type of a gcc2
13622    builtin and then its argument prototype would still apply.  */
13623 char $ac_func ();
13624 /* The GNU C library defines this for functions which it implements
13625     to always fail with ENOSYS.  Some functions are actually named
13626     something starting with __ and the normal name is an alias.  */
13627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13628 choke me
13629 #else
13630 char (*f) () = $ac_func;
13631 #endif
13632 #ifdef __cplusplus
13633 }
13634 #endif
13635
13636 int
13637 main ()
13638 {
13639 return f != $ac_func;
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 rm -f conftest.$ac_objext conftest$ac_exeext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13646   (eval $ac_link) 2>conftest.er1
13647   ac_status=$?
13648   grep -v '^ *+' conftest.er1 >conftest.err
13649   rm -f conftest.er1
13650   cat conftest.err >&5
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } &&
13653          { ac_try='test -z "$ac_c_werror_flag"
13654                          || test ! -s conftest.err'
13655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656   (eval $ac_try) 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); }; } &&
13660          { ac_try='test -s conftest$ac_exeext'
13661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662   (eval $ac_try) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; }; then
13666   eval "$as_ac_var=yes"
13667 else
13668   echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671 eval "$as_ac_var=no"
13672 fi
13673 rm -f conftest.err conftest.$ac_objext \
13674       conftest$ac_exeext conftest.$ac_ext
13675 fi
13676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13678 if test `eval echo '${'$as_ac_var'}'` = yes; then
13679   cat >>confdefs.h <<_ACEOF
13680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13681 _ACEOF
13682
13683 fi
13684 done
13685
13686     fi
13687   fi
13688
13689
13690
13691   echo "$as_me:$LINENO: checking for fmodf declaration" >&5
13692 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
13693   if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13694     if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
13695   echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13697
13698
13699
13700       ac_ext=cc
13701 ac_cpp='$CXXCPP $CPPFLAGS'
13702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13705
13706       cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h.  */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h.  */
13712 #include <math.h>
13713 int
13714 main ()
13715 {
13716  fmodf(0, 0);
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest.$ac_objext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723   (eval $ac_compile) 2>conftest.er1
13724   ac_status=$?
13725   grep -v '^ *+' conftest.er1 >conftest.err
13726   rm -f conftest.er1
13727   cat conftest.err >&5
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } &&
13730          { ac_try='test -z "$ac_cxx_werror_flag"
13731                          || test ! -s conftest.err'
13732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733   (eval $ac_try) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }; } &&
13737          { ac_try='test -s conftest.$ac_objext'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   glibcxx_cv_func_fmodf_use=yes
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 glibcxx_cv_func_fmodf_use=no
13749 fi
13750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13751       ac_ext=c
13752 ac_cpp='$CPP $CPPFLAGS'
13753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13756
13757
13758 fi
13759
13760   fi
13761   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
13762 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
13763
13764   if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13765
13766 for ac_func in fmodf
13767 do
13768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13769 echo "$as_me:$LINENO: checking for $ac_func" >&5
13770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13771 if eval "test \"\${$as_ac_var+set}\" = set"; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   if test x$gcc_no_link = xyes; then
13775   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13777    { (exit 1); exit 1; }; }
13778 fi
13779 cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h.  */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h.  */
13785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13787 #define $ac_func innocuous_$ac_func
13788
13789 /* System header to define __stub macros and hopefully few prototypes,
13790     which can conflict with char $ac_func (); below.
13791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13792     <limits.h> exists even on freestanding compilers.  */
13793
13794 #ifdef __STDC__
13795 # include <limits.h>
13796 #else
13797 # include <assert.h>
13798 #endif
13799
13800 #undef $ac_func
13801
13802 /* Override any gcc2 internal prototype to avoid an error.  */
13803 #ifdef __cplusplus
13804 extern "C"
13805 {
13806 #endif
13807 /* We use char because int might match the return type of a gcc2
13808    builtin and then its argument prototype would still apply.  */
13809 char $ac_func ();
13810 /* The GNU C library defines this for functions which it implements
13811     to always fail with ENOSYS.  Some functions are actually named
13812     something starting with __ and the normal name is an alias.  */
13813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13814 choke me
13815 #else
13816 char (*f) () = $ac_func;
13817 #endif
13818 #ifdef __cplusplus
13819 }
13820 #endif
13821
13822 int
13823 main ()
13824 {
13825 return f != $ac_func;
13826   ;
13827   return 0;
13828 }
13829 _ACEOF
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832   (eval $ac_link) 2>conftest.er1
13833   ac_status=$?
13834   grep -v '^ *+' conftest.er1 >conftest.err
13835   rm -f conftest.er1
13836   cat conftest.err >&5
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } &&
13839          { ac_try='test -z "$ac_c_werror_flag"
13840                          || test ! -s conftest.err'
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); }; } &&
13846          { ac_try='test -s conftest$ac_exeext'
13847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848   (eval $ac_try) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; }; then
13852   eval "$as_ac_var=yes"
13853 else
13854   echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857 eval "$as_ac_var=no"
13858 fi
13859 rm -f conftest.err conftest.$ac_objext \
13860       conftest$ac_exeext conftest.$ac_ext
13861 fi
13862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13864 if test `eval echo '${'$as_ac_var'}'` = yes; then
13865   cat >>confdefs.h <<_ACEOF
13866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13867 _ACEOF
13868
13869 fi
13870 done
13871
13872   else
13873
13874   echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
13875 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
13876   if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13877     if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
13878   echo $ECHO_N "(cached) $ECHO_C" >&6
13879 else
13880
13881
13882
13883       ac_ext=cc
13884 ac_cpp='$CXXCPP $CPPFLAGS'
13885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13888
13889       cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h.  */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h.  */
13895 #include <math.h>
13896 int
13897 main ()
13898 {
13899  _fmodf(0, 0);
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 rm -f conftest.$ac_objext
13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906   (eval $ac_compile) 2>conftest.er1
13907   ac_status=$?
13908   grep -v '^ *+' conftest.er1 >conftest.err
13909   rm -f conftest.er1
13910   cat conftest.err >&5
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); } &&
13913          { ac_try='test -z "$ac_cxx_werror_flag"
13914                          || test ! -s conftest.err'
13915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916   (eval $ac_try) 2>&5
13917   ac_status=$?
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); }; } &&
13920          { ac_try='test -s conftest.$ac_objext'
13921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922   (eval $ac_try) 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); }; }; then
13926   glibcxx_cv_func__fmodf_use=yes
13927 else
13928   echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13930
13931 glibcxx_cv_func__fmodf_use=no
13932 fi
13933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13934       ac_ext=c
13935 ac_cpp='$CPP $CPPFLAGS'
13936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13939
13940
13941 fi
13942
13943   fi
13944   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
13945 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
13946
13947     if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
13948
13949 for ac_func in _fmodf
13950 do
13951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13952 echo "$as_me:$LINENO: checking for $ac_func" >&5
13953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13954 if eval "test \"\${$as_ac_var+set}\" = set"; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   if test x$gcc_no_link = xyes; then
13958   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13960    { (exit 1); exit 1; }; }
13961 fi
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h.  */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h.  */
13968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13970 #define $ac_func innocuous_$ac_func
13971
13972 /* System header to define __stub macros and hopefully few prototypes,
13973     which can conflict with char $ac_func (); below.
13974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13975     <limits.h> exists even on freestanding compilers.  */
13976
13977 #ifdef __STDC__
13978 # include <limits.h>
13979 #else
13980 # include <assert.h>
13981 #endif
13982
13983 #undef $ac_func
13984
13985 /* Override any gcc2 internal prototype to avoid an error.  */
13986 #ifdef __cplusplus
13987 extern "C"
13988 {
13989 #endif
13990 /* We use char because int might match the return type of a gcc2
13991    builtin and then its argument prototype would still apply.  */
13992 char $ac_func ();
13993 /* The GNU C library defines this for functions which it implements
13994     to always fail with ENOSYS.  Some functions are actually named
13995     something starting with __ and the normal name is an alias.  */
13996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13997 choke me
13998 #else
13999 char (*f) () = $ac_func;
14000 #endif
14001 #ifdef __cplusplus
14002 }
14003 #endif
14004
14005 int
14006 main ()
14007 {
14008 return f != $ac_func;
14009   ;
14010   return 0;
14011 }
14012 _ACEOF
14013 rm -f conftest.$ac_objext conftest$ac_exeext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14015   (eval $ac_link) 2>conftest.er1
14016   ac_status=$?
14017   grep -v '^ *+' conftest.er1 >conftest.err
14018   rm -f conftest.er1
14019   cat conftest.err >&5
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); } &&
14022          { ac_try='test -z "$ac_c_werror_flag"
14023                          || test ! -s conftest.err'
14024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025   (eval $ac_try) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); }; } &&
14029          { ac_try='test -s conftest$ac_exeext'
14030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031   (eval $ac_try) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; }; then
14035   eval "$as_ac_var=yes"
14036 else
14037   echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14039
14040 eval "$as_ac_var=no"
14041 fi
14042 rm -f conftest.err conftest.$ac_objext \
14043       conftest$ac_exeext conftest.$ac_ext
14044 fi
14045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14047 if test `eval echo '${'$as_ac_var'}'` = yes; then
14048   cat >>confdefs.h <<_ACEOF
14049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14050 _ACEOF
14051
14052 fi
14053 done
14054
14055     fi
14056   fi
14057
14058
14059
14060   echo "$as_me:$LINENO: checking for frexpf declaration" >&5
14061 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
14062   if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
14063     if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
14064   echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066
14067
14068
14069       ac_ext=cc
14070 ac_cpp='$CXXCPP $CPPFLAGS'
14071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14074
14075       cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h.  */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h.  */
14081 #include <math.h>
14082 int
14083 main ()
14084 {
14085  frexpf(0, 0);
14086   ;
14087   return 0;
14088 }
14089 _ACEOF
14090 rm -f conftest.$ac_objext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092   (eval $ac_compile) 2>conftest.er1
14093   ac_status=$?
14094   grep -v '^ *+' conftest.er1 >conftest.err
14095   rm -f conftest.er1
14096   cat conftest.err >&5
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); } &&
14099          { ac_try='test -z "$ac_cxx_werror_flag"
14100                          || test ! -s conftest.err'
14101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102   (eval $ac_try) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); }; } &&
14106          { ac_try='test -s conftest.$ac_objext'
14107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108   (eval $ac_try) 2>&5
14109   ac_status=$?
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); }; }; then
14112   glibcxx_cv_func_frexpf_use=yes
14113 else
14114   echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117 glibcxx_cv_func_frexpf_use=no
14118 fi
14119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14120       ac_ext=c
14121 ac_cpp='$CPP $CPPFLAGS'
14122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14125
14126
14127 fi
14128
14129   fi
14130   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
14131 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
14132
14133   if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
14134
14135 for ac_func in frexpf
14136 do
14137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14138 echo "$as_me:$LINENO: checking for $ac_func" >&5
14139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14140 if eval "test \"\${$as_ac_var+set}\" = set"; then
14141   echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143   if test x$gcc_no_link = xyes; then
14144   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14146    { (exit 1); exit 1; }; }
14147 fi
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h.  */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h.  */
14154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14156 #define $ac_func innocuous_$ac_func
14157
14158 /* System header to define __stub macros and hopefully few prototypes,
14159     which can conflict with char $ac_func (); below.
14160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14161     <limits.h> exists even on freestanding compilers.  */
14162
14163 #ifdef __STDC__
14164 # include <limits.h>
14165 #else
14166 # include <assert.h>
14167 #endif
14168
14169 #undef $ac_func
14170
14171 /* Override any gcc2 internal prototype to avoid an error.  */
14172 #ifdef __cplusplus
14173 extern "C"
14174 {
14175 #endif
14176 /* We use char because int might match the return type of a gcc2
14177    builtin and then its argument prototype would still apply.  */
14178 char $ac_func ();
14179 /* The GNU C library defines this for functions which it implements
14180     to always fail with ENOSYS.  Some functions are actually named
14181     something starting with __ and the normal name is an alias.  */
14182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14183 choke me
14184 #else
14185 char (*f) () = $ac_func;
14186 #endif
14187 #ifdef __cplusplus
14188 }
14189 #endif
14190
14191 int
14192 main ()
14193 {
14194 return f != $ac_func;
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14201   (eval $ac_link) 2>conftest.er1
14202   ac_status=$?
14203   grep -v '^ *+' conftest.er1 >conftest.err
14204   rm -f conftest.er1
14205   cat conftest.err >&5
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); } &&
14208          { ac_try='test -z "$ac_c_werror_flag"
14209                          || test ! -s conftest.err'
14210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211   (eval $ac_try) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; } &&
14215          { ac_try='test -s conftest$ac_exeext'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; }; then
14221   eval "$as_ac_var=yes"
14222 else
14223   echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226 eval "$as_ac_var=no"
14227 fi
14228 rm -f conftest.err conftest.$ac_objext \
14229       conftest$ac_exeext conftest.$ac_ext
14230 fi
14231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14233 if test `eval echo '${'$as_ac_var'}'` = yes; then
14234   cat >>confdefs.h <<_ACEOF
14235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14236 _ACEOF
14237
14238 fi
14239 done
14240
14241   else
14242
14243   echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
14244 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
14245   if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14246     if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249
14250
14251
14252       ac_ext=cc
14253 ac_cpp='$CXXCPP $CPPFLAGS'
14254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14257
14258       cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h.  */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h.  */
14264 #include <math.h>
14265 int
14266 main ()
14267 {
14268  _frexpf(0, 0);
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 rm -f conftest.$ac_objext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275   (eval $ac_compile) 2>conftest.er1
14276   ac_status=$?
14277   grep -v '^ *+' conftest.er1 >conftest.err
14278   rm -f conftest.er1
14279   cat conftest.err >&5
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); } &&
14282          { ac_try='test -z "$ac_cxx_werror_flag"
14283                          || test ! -s conftest.err'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; } &&
14289          { ac_try='test -s conftest.$ac_objext'
14290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291   (eval $ac_try) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; }; then
14295   glibcxx_cv_func__frexpf_use=yes
14296 else
14297   echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14299
14300 glibcxx_cv_func__frexpf_use=no
14301 fi
14302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14303       ac_ext=c
14304 ac_cpp='$CPP $CPPFLAGS'
14305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14308
14309
14310 fi
14311
14312   fi
14313   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
14314 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
14315
14316     if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14317
14318 for ac_func in _frexpf
14319 do
14320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14321 echo "$as_me:$LINENO: checking for $ac_func" >&5
14322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14323 if eval "test \"\${$as_ac_var+set}\" = set"; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   if test x$gcc_no_link = xyes; then
14327   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14329    { (exit 1); exit 1; }; }
14330 fi
14331 cat >conftest.$ac_ext <<_ACEOF
14332 /* confdefs.h.  */
14333 _ACEOF
14334 cat confdefs.h >>conftest.$ac_ext
14335 cat >>conftest.$ac_ext <<_ACEOF
14336 /* end confdefs.h.  */
14337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14339 #define $ac_func innocuous_$ac_func
14340
14341 /* System header to define __stub macros and hopefully few prototypes,
14342     which can conflict with char $ac_func (); below.
14343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14344     <limits.h> exists even on freestanding compilers.  */
14345
14346 #ifdef __STDC__
14347 # include <limits.h>
14348 #else
14349 # include <assert.h>
14350 #endif
14351
14352 #undef $ac_func
14353
14354 /* Override any gcc2 internal prototype to avoid an error.  */
14355 #ifdef __cplusplus
14356 extern "C"
14357 {
14358 #endif
14359 /* We use char because int might match the return type of a gcc2
14360    builtin and then its argument prototype would still apply.  */
14361 char $ac_func ();
14362 /* The GNU C library defines this for functions which it implements
14363     to always fail with ENOSYS.  Some functions are actually named
14364     something starting with __ and the normal name is an alias.  */
14365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14366 choke me
14367 #else
14368 char (*f) () = $ac_func;
14369 #endif
14370 #ifdef __cplusplus
14371 }
14372 #endif
14373
14374 int
14375 main ()
14376 {
14377 return f != $ac_func;
14378   ;
14379   return 0;
14380 }
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384   (eval $ac_link) 2>conftest.er1
14385   ac_status=$?
14386   grep -v '^ *+' conftest.er1 >conftest.err
14387   rm -f conftest.er1
14388   cat conftest.err >&5
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -z "$ac_c_werror_flag"
14392                          || test ! -s conftest.err'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; } &&
14398          { ac_try='test -s conftest$ac_exeext'
14399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400   (eval $ac_try) 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; }; then
14404   eval "$as_ac_var=yes"
14405 else
14406   echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 eval "$as_ac_var=no"
14410 fi
14411 rm -f conftest.err conftest.$ac_objext \
14412       conftest$ac_exeext conftest.$ac_ext
14413 fi
14414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14416 if test `eval echo '${'$as_ac_var'}'` = yes; then
14417   cat >>confdefs.h <<_ACEOF
14418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14419 _ACEOF
14420
14421 fi
14422 done
14423
14424     fi
14425   fi
14426
14427
14428
14429   echo "$as_me:$LINENO: checking for hypotf declaration" >&5
14430 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
14431   if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14432     if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
14433   echo $ECHO_N "(cached) $ECHO_C" >&6
14434 else
14435
14436
14437
14438       ac_ext=cc
14439 ac_cpp='$CXXCPP $CPPFLAGS'
14440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14443
14444       cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h.  */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h.  */
14450 #include <math.h>
14451 int
14452 main ()
14453 {
14454  hypotf(0, 0);
14455   ;
14456   return 0;
14457 }
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461   (eval $ac_compile) 2>conftest.er1
14462   ac_status=$?
14463   grep -v '^ *+' conftest.er1 >conftest.err
14464   rm -f conftest.er1
14465   cat conftest.err >&5
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); } &&
14468          { ac_try='test -z "$ac_cxx_werror_flag"
14469                          || test ! -s conftest.err'
14470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471   (eval $ac_try) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); }; } &&
14475          { ac_try='test -s conftest.$ac_objext'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }; then
14481   glibcxx_cv_func_hypotf_use=yes
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 glibcxx_cv_func_hypotf_use=no
14487 fi
14488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14489       ac_ext=c
14490 ac_cpp='$CPP $CPPFLAGS'
14491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14494
14495
14496 fi
14497
14498   fi
14499   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
14500 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
14501
14502   if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14503
14504 for ac_func in hypotf
14505 do
14506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14507 echo "$as_me:$LINENO: checking for $ac_func" >&5
14508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14509 if eval "test \"\${$as_ac_var+set}\" = set"; then
14510   echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512   if test x$gcc_no_link = xyes; then
14513   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14515    { (exit 1); exit 1; }; }
14516 fi
14517 cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14525 #define $ac_func innocuous_$ac_func
14526
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
14532 #ifdef __STDC__
14533 # include <limits.h>
14534 #else
14535 # include <assert.h>
14536 #endif
14537
14538 #undef $ac_func
14539
14540 /* Override any gcc2 internal prototype to avoid an error.  */
14541 #ifdef __cplusplus
14542 extern "C"
14543 {
14544 #endif
14545 /* We use char because int might match the return type of a gcc2
14546    builtin and then its argument prototype would still apply.  */
14547 char $ac_func ();
14548 /* The GNU C library defines this for functions which it implements
14549     to always fail with ENOSYS.  Some functions are actually named
14550     something starting with __ and the normal name is an alias.  */
14551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14552 choke me
14553 #else
14554 char (*f) () = $ac_func;
14555 #endif
14556 #ifdef __cplusplus
14557 }
14558 #endif
14559
14560 int
14561 main ()
14562 {
14563 return f != $ac_func;
14564   ;
14565   return 0;
14566 }
14567 _ACEOF
14568 rm -f conftest.$ac_objext conftest$ac_exeext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14570   (eval $ac_link) 2>conftest.er1
14571   ac_status=$?
14572   grep -v '^ *+' conftest.er1 >conftest.err
14573   rm -f conftest.er1
14574   cat conftest.err >&5
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } &&
14577          { ac_try='test -z "$ac_c_werror_flag"
14578                          || test ! -s conftest.err'
14579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580   (eval $ac_try) 2>&5
14581   ac_status=$?
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); }; } &&
14584          { ac_try='test -s conftest$ac_exeext'
14585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586   (eval $ac_try) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; }; then
14590   eval "$as_ac_var=yes"
14591 else
14592   echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595 eval "$as_ac_var=no"
14596 fi
14597 rm -f conftest.err conftest.$ac_objext \
14598       conftest$ac_exeext conftest.$ac_ext
14599 fi
14600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14602 if test `eval echo '${'$as_ac_var'}'` = yes; then
14603   cat >>confdefs.h <<_ACEOF
14604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14605 _ACEOF
14606
14607 fi
14608 done
14609
14610   else
14611
14612   echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
14613 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
14614   if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14615     if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
14616   echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618
14619
14620
14621       ac_ext=cc
14622 ac_cpp='$CXXCPP $CPPFLAGS'
14623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14626
14627       cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h.  */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h.  */
14633 #include <math.h>
14634 int
14635 main ()
14636 {
14637  _hypotf(0, 0);
14638   ;
14639   return 0;
14640 }
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644   (eval $ac_compile) 2>conftest.er1
14645   ac_status=$?
14646   grep -v '^ *+' conftest.er1 >conftest.err
14647   rm -f conftest.er1
14648   cat conftest.err >&5
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); } &&
14651          { ac_try='test -z "$ac_cxx_werror_flag"
14652                          || test ! -s conftest.err'
14653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654   (eval $ac_try) 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }; } &&
14658          { ac_try='test -s conftest.$ac_objext'
14659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660   (eval $ac_try) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; }; then
14664   glibcxx_cv_func__hypotf_use=yes
14665 else
14666   echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14668
14669 glibcxx_cv_func__hypotf_use=no
14670 fi
14671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14672       ac_ext=c
14673 ac_cpp='$CPP $CPPFLAGS'
14674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14677
14678
14679 fi
14680
14681   fi
14682   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
14683 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
14684
14685     if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14686
14687 for ac_func in _hypotf
14688 do
14689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14690 echo "$as_me:$LINENO: checking for $ac_func" >&5
14691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14692 if eval "test \"\${$as_ac_var+set}\" = set"; then
14693   echo $ECHO_N "(cached) $ECHO_C" >&6
14694 else
14695   if test x$gcc_no_link = xyes; then
14696   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14698    { (exit 1); exit 1; }; }
14699 fi
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h.  */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h.  */
14706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14708 #define $ac_func innocuous_$ac_func
14709
14710 /* System header to define __stub macros and hopefully few prototypes,
14711     which can conflict with char $ac_func (); below.
14712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14713     <limits.h> exists even on freestanding compilers.  */
14714
14715 #ifdef __STDC__
14716 # include <limits.h>
14717 #else
14718 # include <assert.h>
14719 #endif
14720
14721 #undef $ac_func
14722
14723 /* Override any gcc2 internal prototype to avoid an error.  */
14724 #ifdef __cplusplus
14725 extern "C"
14726 {
14727 #endif
14728 /* We use char because int might match the return type of a gcc2
14729    builtin and then its argument prototype would still apply.  */
14730 char $ac_func ();
14731 /* The GNU C library defines this for functions which it implements
14732     to always fail with ENOSYS.  Some functions are actually named
14733     something starting with __ and the normal name is an alias.  */
14734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14735 choke me
14736 #else
14737 char (*f) () = $ac_func;
14738 #endif
14739 #ifdef __cplusplus
14740 }
14741 #endif
14742
14743 int
14744 main ()
14745 {
14746 return f != $ac_func;
14747   ;
14748   return 0;
14749 }
14750 _ACEOF
14751 rm -f conftest.$ac_objext conftest$ac_exeext
14752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14753   (eval $ac_link) 2>conftest.er1
14754   ac_status=$?
14755   grep -v '^ *+' conftest.er1 >conftest.err
14756   rm -f conftest.er1
14757   cat conftest.err >&5
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); } &&
14760          { ac_try='test -z "$ac_c_werror_flag"
14761                          || test ! -s conftest.err'
14762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763   (eval $ac_try) 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); }; } &&
14767          { ac_try='test -s conftest$ac_exeext'
14768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769   (eval $ac_try) 2>&5
14770   ac_status=$?
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); }; }; then
14773   eval "$as_ac_var=yes"
14774 else
14775   echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778 eval "$as_ac_var=no"
14779 fi
14780 rm -f conftest.err conftest.$ac_objext \
14781       conftest$ac_exeext conftest.$ac_ext
14782 fi
14783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14785 if test `eval echo '${'$as_ac_var'}'` = yes; then
14786   cat >>confdefs.h <<_ACEOF
14787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14788 _ACEOF
14789
14790 fi
14791 done
14792
14793     fi
14794   fi
14795
14796
14797
14798   echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
14799 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
14800   if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14801     if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
14802   echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804
14805
14806
14807       ac_ext=cc
14808 ac_cpp='$CXXCPP $CPPFLAGS'
14809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14812
14813       cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819 #include <math.h>
14820 int
14821 main ()
14822 {
14823  ldexpf(0, 0);
14824   ;
14825   return 0;
14826 }
14827 _ACEOF
14828 rm -f conftest.$ac_objext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14830   (eval $ac_compile) 2>conftest.er1
14831   ac_status=$?
14832   grep -v '^ *+' conftest.er1 >conftest.err
14833   rm -f conftest.er1
14834   cat conftest.err >&5
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } &&
14837          { ac_try='test -z "$ac_cxx_werror_flag"
14838                          || test ! -s conftest.err'
14839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840   (eval $ac_try) 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; } &&
14844          { ac_try='test -s conftest.$ac_objext'
14845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846   (eval $ac_try) 2>&5
14847   ac_status=$?
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); }; }; then
14850   glibcxx_cv_func_ldexpf_use=yes
14851 else
14852   echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855 glibcxx_cv_func_ldexpf_use=no
14856 fi
14857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14858       ac_ext=c
14859 ac_cpp='$CPP $CPPFLAGS'
14860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14863
14864
14865 fi
14866
14867   fi
14868   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
14869 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
14870
14871   if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14872
14873 for ac_func in ldexpf
14874 do
14875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14876 echo "$as_me:$LINENO: checking for $ac_func" >&5
14877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14878 if eval "test \"\${$as_ac_var+set}\" = set"; then
14879   echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881   if test x$gcc_no_link = xyes; then
14882   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14884    { (exit 1); exit 1; }; }
14885 fi
14886 cat >conftest.$ac_ext <<_ACEOF
14887 /* confdefs.h.  */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h.  */
14892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14894 #define $ac_func innocuous_$ac_func
14895
14896 /* System header to define __stub macros and hopefully few prototypes,
14897     which can conflict with char $ac_func (); below.
14898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14899     <limits.h> exists even on freestanding compilers.  */
14900
14901 #ifdef __STDC__
14902 # include <limits.h>
14903 #else
14904 # include <assert.h>
14905 #endif
14906
14907 #undef $ac_func
14908
14909 /* Override any gcc2 internal prototype to avoid an error.  */
14910 #ifdef __cplusplus
14911 extern "C"
14912 {
14913 #endif
14914 /* We use char because int might match the return type of a gcc2
14915    builtin and then its argument prototype would still apply.  */
14916 char $ac_func ();
14917 /* The GNU C library defines this for functions which it implements
14918     to always fail with ENOSYS.  Some functions are actually named
14919     something starting with __ and the normal name is an alias.  */
14920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14921 choke me
14922 #else
14923 char (*f) () = $ac_func;
14924 #endif
14925 #ifdef __cplusplus
14926 }
14927 #endif
14928
14929 int
14930 main ()
14931 {
14932 return f != $ac_func;
14933   ;
14934   return 0;
14935 }
14936 _ACEOF
14937 rm -f conftest.$ac_objext conftest$ac_exeext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14939   (eval $ac_link) 2>conftest.er1
14940   ac_status=$?
14941   grep -v '^ *+' conftest.er1 >conftest.err
14942   rm -f conftest.er1
14943   cat conftest.err >&5
14944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); } &&
14946          { ac_try='test -z "$ac_c_werror_flag"
14947                          || test ! -s conftest.err'
14948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949   (eval $ac_try) 2>&5
14950   ac_status=$?
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); }; } &&
14953          { ac_try='test -s conftest$ac_exeext'
14954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955   (eval $ac_try) 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; }; then
14959   eval "$as_ac_var=yes"
14960 else
14961   echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14963
14964 eval "$as_ac_var=no"
14965 fi
14966 rm -f conftest.err conftest.$ac_objext \
14967       conftest$ac_exeext conftest.$ac_ext
14968 fi
14969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14971 if test `eval echo '${'$as_ac_var'}'` = yes; then
14972   cat >>confdefs.h <<_ACEOF
14973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14974 _ACEOF
14975
14976 fi
14977 done
14978
14979   else
14980
14981   echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
14982 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
14983   if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
14984     if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
14985   echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987
14988
14989
14990       ac_ext=cc
14991 ac_cpp='$CXXCPP $CPPFLAGS'
14992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14995
14996       cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h.  */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h.  */
15002 #include <math.h>
15003 int
15004 main ()
15005 {
15006  _ldexpf(0, 0);
15007   ;
15008   return 0;
15009 }
15010 _ACEOF
15011 rm -f conftest.$ac_objext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013   (eval $ac_compile) 2>conftest.er1
15014   ac_status=$?
15015   grep -v '^ *+' conftest.er1 >conftest.err
15016   rm -f conftest.er1
15017   cat conftest.err >&5
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); } &&
15020          { ac_try='test -z "$ac_cxx_werror_flag"
15021                          || test ! -s conftest.err'
15022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023   (eval $ac_try) 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); }; } &&
15027          { ac_try='test -s conftest.$ac_objext'
15028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029   (eval $ac_try) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); }; }; then
15033   glibcxx_cv_func__ldexpf_use=yes
15034 else
15035   echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15037
15038 glibcxx_cv_func__ldexpf_use=no
15039 fi
15040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15041       ac_ext=c
15042 ac_cpp='$CPP $CPPFLAGS'
15043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15046
15047
15048 fi
15049
15050   fi
15051   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
15052 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
15053
15054     if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
15055
15056 for ac_func in _ldexpf
15057 do
15058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15059 echo "$as_me:$LINENO: checking for $ac_func" >&5
15060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15061 if eval "test \"\${$as_ac_var+set}\" = set"; then
15062   echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064   if test x$gcc_no_link = xyes; then
15065   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15066 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15067    { (exit 1); exit 1; }; }
15068 fi
15069 cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h.  */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h.  */
15075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15077 #define $ac_func innocuous_$ac_func
15078
15079 /* System header to define __stub macros and hopefully few prototypes,
15080     which can conflict with char $ac_func (); below.
15081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15082     <limits.h> exists even on freestanding compilers.  */
15083
15084 #ifdef __STDC__
15085 # include <limits.h>
15086 #else
15087 # include <assert.h>
15088 #endif
15089
15090 #undef $ac_func
15091
15092 /* Override any gcc2 internal prototype to avoid an error.  */
15093 #ifdef __cplusplus
15094 extern "C"
15095 {
15096 #endif
15097 /* We use char because int might match the return type of a gcc2
15098    builtin and then its argument prototype would still apply.  */
15099 char $ac_func ();
15100 /* The GNU C library defines this for functions which it implements
15101     to always fail with ENOSYS.  Some functions are actually named
15102     something starting with __ and the normal name is an alias.  */
15103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15104 choke me
15105 #else
15106 char (*f) () = $ac_func;
15107 #endif
15108 #ifdef __cplusplus
15109 }
15110 #endif
15111
15112 int
15113 main ()
15114 {
15115 return f != $ac_func;
15116   ;
15117   return 0;
15118 }
15119 _ACEOF
15120 rm -f conftest.$ac_objext conftest$ac_exeext
15121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15122   (eval $ac_link) 2>conftest.er1
15123   ac_status=$?
15124   grep -v '^ *+' conftest.er1 >conftest.err
15125   rm -f conftest.er1
15126   cat conftest.err >&5
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); } &&
15129          { ac_try='test -z "$ac_c_werror_flag"
15130                          || test ! -s conftest.err'
15131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132   (eval $ac_try) 2>&5
15133   ac_status=$?
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); }; } &&
15136          { ac_try='test -s conftest$ac_exeext'
15137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138   (eval $ac_try) 2>&5
15139   ac_status=$?
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); }; }; then
15142   eval "$as_ac_var=yes"
15143 else
15144   echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15146
15147 eval "$as_ac_var=no"
15148 fi
15149 rm -f conftest.err conftest.$ac_objext \
15150       conftest$ac_exeext conftest.$ac_ext
15151 fi
15152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15154 if test `eval echo '${'$as_ac_var'}'` = yes; then
15155   cat >>confdefs.h <<_ACEOF
15156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15157 _ACEOF
15158
15159 fi
15160 done
15161
15162     fi
15163   fi
15164
15165
15166
15167   echo "$as_me:$LINENO: checking for logf declaration" >&5
15168 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
15169   if test x${glibcxx_cv_func_logf_use+set} != xset; then
15170     if test "${glibcxx_cv_func_logf_use+set}" = set; then
15171   echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173
15174
15175
15176       ac_ext=cc
15177 ac_cpp='$CXXCPP $CPPFLAGS'
15178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15181
15182       cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h.  */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h.  */
15188 #include <math.h>
15189                       #ifdef HAVE_IEEEFP_H
15190                       #include <ieeefp.h>
15191                       #endif
15192
15193 int
15194 main ()
15195 {
15196  logf(0);
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 rm -f conftest.$ac_objext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203   (eval $ac_compile) 2>conftest.er1
15204   ac_status=$?
15205   grep -v '^ *+' conftest.er1 >conftest.err
15206   rm -f conftest.er1
15207   cat conftest.err >&5
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); } &&
15210          { ac_try='test -z "$ac_cxx_werror_flag"
15211                          || test ! -s conftest.err'
15212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213   (eval $ac_try) 2>&5
15214   ac_status=$?
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); }; } &&
15217          { ac_try='test -s conftest.$ac_objext'
15218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219   (eval $ac_try) 2>&5
15220   ac_status=$?
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); }; }; then
15223   glibcxx_cv_func_logf_use=yes
15224 else
15225   echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15227
15228 glibcxx_cv_func_logf_use=no
15229 fi
15230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15231       ac_ext=c
15232 ac_cpp='$CPP $CPPFLAGS'
15233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15236
15237
15238 fi
15239
15240   fi
15241   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
15242 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
15243
15244   if test x$glibcxx_cv_func_logf_use = x"yes"; then
15245
15246 for ac_func in logf
15247 do
15248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15249 echo "$as_me:$LINENO: checking for $ac_func" >&5
15250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15251 if eval "test \"\${$as_ac_var+set}\" = set"; then
15252   echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254   if test x$gcc_no_link = xyes; then
15255   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15257    { (exit 1); exit 1; }; }
15258 fi
15259 cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h.  */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h.  */
15265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15267 #define $ac_func innocuous_$ac_func
15268
15269 /* System header to define __stub macros and hopefully few prototypes,
15270     which can conflict with char $ac_func (); below.
15271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15272     <limits.h> exists even on freestanding compilers.  */
15273
15274 #ifdef __STDC__
15275 # include <limits.h>
15276 #else
15277 # include <assert.h>
15278 #endif
15279
15280 #undef $ac_func
15281
15282 /* Override any gcc2 internal prototype to avoid an error.  */
15283 #ifdef __cplusplus
15284 extern "C"
15285 {
15286 #endif
15287 /* We use char because int might match the return type of a gcc2
15288    builtin and then its argument prototype would still apply.  */
15289 char $ac_func ();
15290 /* The GNU C library defines this for functions which it implements
15291     to always fail with ENOSYS.  Some functions are actually named
15292     something starting with __ and the normal name is an alias.  */
15293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15294 choke me
15295 #else
15296 char (*f) () = $ac_func;
15297 #endif
15298 #ifdef __cplusplus
15299 }
15300 #endif
15301
15302 int
15303 main ()
15304 {
15305 return f != $ac_func;
15306   ;
15307   return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest.$ac_objext conftest$ac_exeext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312   (eval $ac_link) 2>conftest.er1
15313   ac_status=$?
15314   grep -v '^ *+' conftest.er1 >conftest.err
15315   rm -f conftest.er1
15316   cat conftest.err >&5
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } &&
15319          { ac_try='test -z "$ac_c_werror_flag"
15320                          || test ! -s conftest.err'
15321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322   (eval $ac_try) 2>&5
15323   ac_status=$?
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); }; } &&
15326          { ac_try='test -s conftest$ac_exeext'
15327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328   (eval $ac_try) 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); }; }; then
15332   eval "$as_ac_var=yes"
15333 else
15334   echo "$as_me: failed program was:" >&5
15335 sed 's/^/| /' conftest.$ac_ext >&5
15336
15337 eval "$as_ac_var=no"
15338 fi
15339 rm -f conftest.err conftest.$ac_objext \
15340       conftest$ac_exeext conftest.$ac_ext
15341 fi
15342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15344 if test `eval echo '${'$as_ac_var'}'` = yes; then
15345   cat >>confdefs.h <<_ACEOF
15346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15347 _ACEOF
15348
15349 fi
15350 done
15351
15352   else
15353
15354   echo "$as_me:$LINENO: checking for _logf declaration" >&5
15355 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
15356   if test x${glibcxx_cv_func__logf_use+set} != xset; then
15357     if test "${glibcxx_cv_func__logf_use+set}" = set; then
15358   echo $ECHO_N "(cached) $ECHO_C" >&6
15359 else
15360
15361
15362
15363       ac_ext=cc
15364 ac_cpp='$CXXCPP $CPPFLAGS'
15365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15368
15369       cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h.  */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h.  */
15375 #include <math.h>
15376                       #ifdef HAVE_IEEEFP_H
15377                       #include <ieeefp.h>
15378                       #endif
15379
15380 int
15381 main ()
15382 {
15383  _logf(0);
15384   ;
15385   return 0;
15386 }
15387 _ACEOF
15388 rm -f conftest.$ac_objext
15389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15390   (eval $ac_compile) 2>conftest.er1
15391   ac_status=$?
15392   grep -v '^ *+' conftest.er1 >conftest.err
15393   rm -f conftest.er1
15394   cat conftest.err >&5
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); } &&
15397          { ac_try='test -z "$ac_cxx_werror_flag"
15398                          || test ! -s conftest.err'
15399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400   (eval $ac_try) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; } &&
15404          { ac_try='test -s conftest.$ac_objext'
15405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406   (eval $ac_try) 2>&5
15407   ac_status=$?
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); }; }; then
15410   glibcxx_cv_func__logf_use=yes
15411 else
15412   echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15414
15415 glibcxx_cv_func__logf_use=no
15416 fi
15417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15418       ac_ext=c
15419 ac_cpp='$CPP $CPPFLAGS'
15420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15423
15424
15425 fi
15426
15427   fi
15428   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
15429 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
15430
15431     if test x$glibcxx_cv_func__logf_use = x"yes"; then
15432
15433 for ac_func in _logf
15434 do
15435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15436 echo "$as_me:$LINENO: checking for $ac_func" >&5
15437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15438 if eval "test \"\${$as_ac_var+set}\" = set"; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   if test x$gcc_no_link = xyes; then
15442   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15444    { (exit 1); exit 1; }; }
15445 fi
15446 cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h.  */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h.  */
15452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15454 #define $ac_func innocuous_$ac_func
15455
15456 /* System header to define __stub macros and hopefully few prototypes,
15457     which can conflict with char $ac_func (); below.
15458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15459     <limits.h> exists even on freestanding compilers.  */
15460
15461 #ifdef __STDC__
15462 # include <limits.h>
15463 #else
15464 # include <assert.h>
15465 #endif
15466
15467 #undef $ac_func
15468
15469 /* Override any gcc2 internal prototype to avoid an error.  */
15470 #ifdef __cplusplus
15471 extern "C"
15472 {
15473 #endif
15474 /* We use char because int might match the return type of a gcc2
15475    builtin and then its argument prototype would still apply.  */
15476 char $ac_func ();
15477 /* The GNU C library defines this for functions which it implements
15478     to always fail with ENOSYS.  Some functions are actually named
15479     something starting with __ and the normal name is an alias.  */
15480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15481 choke me
15482 #else
15483 char (*f) () = $ac_func;
15484 #endif
15485 #ifdef __cplusplus
15486 }
15487 #endif
15488
15489 int
15490 main ()
15491 {
15492 return f != $ac_func;
15493   ;
15494   return 0;
15495 }
15496 _ACEOF
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15499   (eval $ac_link) 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } &&
15506          { ac_try='test -z "$ac_c_werror_flag"
15507                          || test ! -s conftest.err'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; } &&
15513          { ac_try='test -s conftest$ac_exeext'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; }; then
15519   eval "$as_ac_var=yes"
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524 eval "$as_ac_var=no"
15525 fi
15526 rm -f conftest.err conftest.$ac_objext \
15527       conftest$ac_exeext conftest.$ac_ext
15528 fi
15529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15531 if test `eval echo '${'$as_ac_var'}'` = yes; then
15532   cat >>confdefs.h <<_ACEOF
15533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15534 _ACEOF
15535
15536 fi
15537 done
15538
15539     fi
15540   fi
15541
15542
15543
15544   echo "$as_me:$LINENO: checking for log10f declaration" >&5
15545 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
15546   if test x${glibcxx_cv_func_log10f_use+set} != xset; then
15547     if test "${glibcxx_cv_func_log10f_use+set}" = set; then
15548   echo $ECHO_N "(cached) $ECHO_C" >&6
15549 else
15550
15551
15552
15553       ac_ext=cc
15554 ac_cpp='$CXXCPP $CPPFLAGS'
15555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15558
15559       cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h.  */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h.  */
15565 #include <math.h>
15566                       #ifdef HAVE_IEEEFP_H
15567                       #include <ieeefp.h>
15568                       #endif
15569
15570 int
15571 main ()
15572 {
15573  log10f(0);
15574   ;
15575   return 0;
15576 }
15577 _ACEOF
15578 rm -f conftest.$ac_objext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580   (eval $ac_compile) 2>conftest.er1
15581   ac_status=$?
15582   grep -v '^ *+' conftest.er1 >conftest.err
15583   rm -f conftest.er1
15584   cat conftest.err >&5
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); } &&
15587          { ac_try='test -z "$ac_cxx_werror_flag"
15588                          || test ! -s conftest.err'
15589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590   (eval $ac_try) 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_log10f_use=yes
15601 else
15602   echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15604
15605 glibcxx_cv_func_log10f_use=no
15606 fi
15607 rm -f conftest.err 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_log10f_use" >&5
15619 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
15620
15621   if test x$glibcxx_cv_func_log10f_use = x"yes"; then
15622
15623 for ac_func in log10f
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 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15644 #define $ac_func innocuous_$ac_func
15645
15646 /* System header to define __stub macros and hopefully few prototypes,
15647     which can conflict with char $ac_func (); below.
15648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15649     <limits.h> exists even on freestanding compilers.  */
15650
15651 #ifdef __STDC__
15652 # include <limits.h>
15653 #else
15654 # include <assert.h>
15655 #endif
15656
15657 #undef $ac_func
15658
15659 /* Override any gcc2 internal prototype to avoid an error.  */
15660 #ifdef __cplusplus
15661 extern "C"
15662 {
15663 #endif
15664 /* We use char because int might match the return type of a gcc2
15665    builtin and then its argument prototype would still apply.  */
15666 char $ac_func ();
15667 /* The GNU C library defines this for functions which it implements
15668     to always fail with ENOSYS.  Some functions are actually named
15669     something starting with __ and the normal name is an alias.  */
15670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15671 choke me
15672 #else
15673 char (*f) () = $ac_func;
15674 #endif
15675 #ifdef __cplusplus
15676 }
15677 #endif
15678
15679 int
15680 main ()
15681 {
15682 return f != $ac_func;
15683   ;
15684   return 0;
15685 }
15686 _ACEOF
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15689   (eval $ac_link) 2>conftest.er1
15690   ac_status=$?
15691   grep -v '^ *+' conftest.er1 >conftest.err
15692   rm -f conftest.er1
15693   cat conftest.err >&5
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); } &&
15696          { ac_try='test -z "$ac_c_werror_flag"
15697                          || test ! -s conftest.err'
15698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699   (eval $ac_try) 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); }; } &&
15703          { ac_try='test -s conftest$ac_exeext'
15704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705   (eval $ac_try) 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); }; }; then
15709   eval "$as_ac_var=yes"
15710 else
15711   echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15713
15714 eval "$as_ac_var=no"
15715 fi
15716 rm -f conftest.err conftest.$ac_objext \
15717       conftest$ac_exeext conftest.$ac_ext
15718 fi
15719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15721 if test `eval echo '${'$as_ac_var'}'` = yes; then
15722   cat >>confdefs.h <<_ACEOF
15723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15724 _ACEOF
15725
15726 fi
15727 done
15728
15729   else
15730
15731   echo "$as_me:$LINENO: checking for _log10f declaration" >&5
15732 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
15733   if test x${glibcxx_cv_func__log10f_use+set} != xset; then
15734     if test "${glibcxx_cv_func__log10f_use+set}" = set; then
15735   echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737
15738
15739
15740       ac_ext=cc
15741 ac_cpp='$CXXCPP $CPPFLAGS'
15742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15745
15746       cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h.  */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h.  */
15752 #include <math.h>
15753                       #ifdef HAVE_IEEEFP_H
15754                       #include <ieeefp.h>
15755                       #endif
15756
15757 int
15758 main ()
15759 {
15760  _log10f(0);
15761   ;
15762   return 0;
15763 }
15764 _ACEOF
15765 rm -f conftest.$ac_objext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767   (eval $ac_compile) 2>conftest.er1
15768   ac_status=$?
15769   grep -v '^ *+' conftest.er1 >conftest.err
15770   rm -f conftest.er1
15771   cat conftest.err >&5
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); } &&
15774          { ac_try='test -z "$ac_cxx_werror_flag"
15775                          || test ! -s conftest.err'
15776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777   (eval $ac_try) 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); }; } &&
15781          { ac_try='test -s conftest.$ac_objext'
15782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783   (eval $ac_try) 2>&5
15784   ac_status=$?
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); }; }; then
15787   glibcxx_cv_func__log10f_use=yes
15788 else
15789   echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15791
15792 glibcxx_cv_func__log10f_use=no
15793 fi
15794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15795       ac_ext=c
15796 ac_cpp='$CPP $CPPFLAGS'
15797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15800
15801
15802 fi
15803
15804   fi
15805   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
15806 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
15807
15808     if test x$glibcxx_cv_func__log10f_use = x"yes"; then
15809
15810 for ac_func in _log10f
15811 do
15812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15813 echo "$as_me:$LINENO: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15815 if eval "test \"\${$as_ac_var+set}\" = set"; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   if test x$gcc_no_link = xyes; then
15819   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15821    { (exit 1); exit 1; }; }
15822 fi
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h.  */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h.  */
15829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15831 #define $ac_func innocuous_$ac_func
15832
15833 /* System header to define __stub macros and hopefully few prototypes,
15834     which can conflict with char $ac_func (); below.
15835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15836     <limits.h> exists even on freestanding compilers.  */
15837
15838 #ifdef __STDC__
15839 # include <limits.h>
15840 #else
15841 # include <assert.h>
15842 #endif
15843
15844 #undef $ac_func
15845
15846 /* Override any gcc2 internal prototype to avoid an error.  */
15847 #ifdef __cplusplus
15848 extern "C"
15849 {
15850 #endif
15851 /* We use char because int might match the return type of a gcc2
15852    builtin and then its argument prototype would still apply.  */
15853 char $ac_func ();
15854 /* The GNU C library defines this for functions which it implements
15855     to always fail with ENOSYS.  Some functions are actually named
15856     something starting with __ and the normal name is an alias.  */
15857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15858 choke me
15859 #else
15860 char (*f) () = $ac_func;
15861 #endif
15862 #ifdef __cplusplus
15863 }
15864 #endif
15865
15866 int
15867 main ()
15868 {
15869 return f != $ac_func;
15870   ;
15871   return 0;
15872 }
15873 _ACEOF
15874 rm -f conftest.$ac_objext conftest$ac_exeext
15875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15876   (eval $ac_link) 2>conftest.er1
15877   ac_status=$?
15878   grep -v '^ *+' conftest.er1 >conftest.err
15879   rm -f conftest.er1
15880   cat conftest.err >&5
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } &&
15883          { ac_try='test -z "$ac_c_werror_flag"
15884                          || test ! -s conftest.err'
15885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886   (eval $ac_try) 2>&5
15887   ac_status=$?
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); }; } &&
15890          { ac_try='test -s conftest$ac_exeext'
15891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892   (eval $ac_try) 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; }; then
15896   eval "$as_ac_var=yes"
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
15901 eval "$as_ac_var=no"
15902 fi
15903 rm -f conftest.err conftest.$ac_objext \
15904       conftest$ac_exeext conftest.$ac_ext
15905 fi
15906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15908 if test `eval echo '${'$as_ac_var'}'` = yes; then
15909   cat >>confdefs.h <<_ACEOF
15910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15911 _ACEOF
15912
15913 fi
15914 done
15915
15916     fi
15917   fi
15918
15919
15920
15921   echo "$as_me:$LINENO: checking for modff declaration" >&5
15922 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
15923   if test x${glibcxx_cv_func_modff_use+set} != xset; then
15924     if test "${glibcxx_cv_func_modff_use+set}" = set; then
15925   echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927
15928
15929
15930       ac_ext=cc
15931 ac_cpp='$CXXCPP $CPPFLAGS'
15932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15935
15936       cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h.  */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h.  */
15942 #include <math.h>
15943 int
15944 main ()
15945 {
15946  modff(0, 0);
15947   ;
15948   return 0;
15949 }
15950 _ACEOF
15951 rm -f conftest.$ac_objext
15952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15953   (eval $ac_compile) 2>conftest.er1
15954   ac_status=$?
15955   grep -v '^ *+' conftest.er1 >conftest.err
15956   rm -f conftest.er1
15957   cat conftest.err >&5
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); } &&
15960          { ac_try='test -z "$ac_cxx_werror_flag"
15961                          || test ! -s conftest.err'
15962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963   (eval $ac_try) 2>&5
15964   ac_status=$?
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); }; } &&
15967          { ac_try='test -s conftest.$ac_objext'
15968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969   (eval $ac_try) 2>&5
15970   ac_status=$?
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); }; }; then
15973   glibcxx_cv_func_modff_use=yes
15974 else
15975   echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978 glibcxx_cv_func_modff_use=no
15979 fi
15980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15981       ac_ext=c
15982 ac_cpp='$CPP $CPPFLAGS'
15983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15986
15987
15988 fi
15989
15990   fi
15991   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
15992 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
15993
15994   if test x$glibcxx_cv_func_modff_use = x"yes"; then
15995
15996 for ac_func in modff
15997 do
15998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15999 echo "$as_me:$LINENO: checking for $ac_func" >&5
16000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16001 if eval "test \"\${$as_ac_var+set}\" = set"; then
16002   echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004   if test x$gcc_no_link = xyes; then
16005   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16007    { (exit 1); exit 1; }; }
16008 fi
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16017 #define $ac_func innocuous_$ac_func
16018
16019 /* System header to define __stub macros and hopefully few prototypes,
16020     which can conflict with char $ac_func (); below.
16021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16022     <limits.h> exists even on freestanding compilers.  */
16023
16024 #ifdef __STDC__
16025 # include <limits.h>
16026 #else
16027 # include <assert.h>
16028 #endif
16029
16030 #undef $ac_func
16031
16032 /* Override any gcc2 internal prototype to avoid an error.  */
16033 #ifdef __cplusplus
16034 extern "C"
16035 {
16036 #endif
16037 /* We use char because int might match the return type of a gcc2
16038    builtin and then its argument prototype would still apply.  */
16039 char $ac_func ();
16040 /* The GNU C library defines this for functions which it implements
16041     to always fail with ENOSYS.  Some functions are actually named
16042     something starting with __ and the normal name is an alias.  */
16043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16044 choke me
16045 #else
16046 char (*f) () = $ac_func;
16047 #endif
16048 #ifdef __cplusplus
16049 }
16050 #endif
16051
16052 int
16053 main ()
16054 {
16055 return f != $ac_func;
16056   ;
16057   return 0;
16058 }
16059 _ACEOF
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16062   (eval $ac_link) 2>conftest.er1
16063   ac_status=$?
16064   grep -v '^ *+' conftest.er1 >conftest.err
16065   rm -f conftest.er1
16066   cat conftest.err >&5
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); } &&
16069          { ac_try='test -z "$ac_c_werror_flag"
16070                          || test ! -s conftest.err'
16071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072   (eval $ac_try) 2>&5
16073   ac_status=$?
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); }; } &&
16076          { ac_try='test -s conftest$ac_exeext'
16077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078   (eval $ac_try) 2>&5
16079   ac_status=$?
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); }; }; then
16082   eval "$as_ac_var=yes"
16083 else
16084   echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16086
16087 eval "$as_ac_var=no"
16088 fi
16089 rm -f conftest.err conftest.$ac_objext \
16090       conftest$ac_exeext conftest.$ac_ext
16091 fi
16092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16094 if test `eval echo '${'$as_ac_var'}'` = yes; then
16095   cat >>confdefs.h <<_ACEOF
16096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16097 _ACEOF
16098
16099 fi
16100 done
16101
16102   else
16103
16104   echo "$as_me:$LINENO: checking for _modff declaration" >&5
16105 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
16106   if test x${glibcxx_cv_func__modff_use+set} != xset; then
16107     if test "${glibcxx_cv_func__modff_use+set}" = set; then
16108   echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110
16111
16112
16113       ac_ext=cc
16114 ac_cpp='$CXXCPP $CPPFLAGS'
16115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16118
16119       cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h.  */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h.  */
16125 #include <math.h>
16126 int
16127 main ()
16128 {
16129  _modff(0, 0);
16130   ;
16131   return 0;
16132 }
16133 _ACEOF
16134 rm -f conftest.$ac_objext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136   (eval $ac_compile) 2>conftest.er1
16137   ac_status=$?
16138   grep -v '^ *+' conftest.er1 >conftest.err
16139   rm -f conftest.er1
16140   cat conftest.err >&5
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); } &&
16143          { ac_try='test -z "$ac_cxx_werror_flag"
16144                          || test ! -s conftest.err'
16145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146   (eval $ac_try) 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); }; } &&
16150          { ac_try='test -s conftest.$ac_objext'
16151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152   (eval $ac_try) 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); }; }; then
16156   glibcxx_cv_func__modff_use=yes
16157 else
16158   echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161 glibcxx_cv_func__modff_use=no
16162 fi
16163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16164       ac_ext=c
16165 ac_cpp='$CPP $CPPFLAGS'
16166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16169
16170
16171 fi
16172
16173   fi
16174   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
16175 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
16176
16177     if test x$glibcxx_cv_func__modff_use = x"yes"; then
16178
16179 for ac_func in _modff
16180 do
16181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16182 echo "$as_me:$LINENO: checking for $ac_func" >&5
16183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16184 if eval "test \"\${$as_ac_var+set}\" = set"; then
16185   echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187   if test x$gcc_no_link = xyes; then
16188   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16189 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16190    { (exit 1); exit 1; }; }
16191 fi
16192 cat >conftest.$ac_ext <<_ACEOF
16193 /* confdefs.h.  */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h.  */
16198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16200 #define $ac_func innocuous_$ac_func
16201
16202 /* System header to define __stub macros and hopefully few prototypes,
16203     which can conflict with char $ac_func (); below.
16204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16205     <limits.h> exists even on freestanding compilers.  */
16206
16207 #ifdef __STDC__
16208 # include <limits.h>
16209 #else
16210 # include <assert.h>
16211 #endif
16212
16213 #undef $ac_func
16214
16215 /* Override any gcc2 internal prototype to avoid an error.  */
16216 #ifdef __cplusplus
16217 extern "C"
16218 {
16219 #endif
16220 /* We use char because int might match the return type of a gcc2
16221    builtin and then its argument prototype would still apply.  */
16222 char $ac_func ();
16223 /* The GNU C library defines this for functions which it implements
16224     to always fail with ENOSYS.  Some functions are actually named
16225     something starting with __ and the normal name is an alias.  */
16226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16227 choke me
16228 #else
16229 char (*f) () = $ac_func;
16230 #endif
16231 #ifdef __cplusplus
16232 }
16233 #endif
16234
16235 int
16236 main ()
16237 {
16238 return f != $ac_func;
16239   ;
16240   return 0;
16241 }
16242 _ACEOF
16243 rm -f conftest.$ac_objext conftest$ac_exeext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16245   (eval $ac_link) 2>conftest.er1
16246   ac_status=$?
16247   grep -v '^ *+' conftest.er1 >conftest.err
16248   rm -f conftest.er1
16249   cat conftest.err >&5
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); } &&
16252          { ac_try='test -z "$ac_c_werror_flag"
16253                          || test ! -s conftest.err'
16254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255   (eval $ac_try) 2>&5
16256   ac_status=$?
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); }; } &&
16259          { ac_try='test -s conftest$ac_exeext'
16260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261   (eval $ac_try) 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); }; }; then
16265   eval "$as_ac_var=yes"
16266 else
16267   echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16269
16270 eval "$as_ac_var=no"
16271 fi
16272 rm -f conftest.err conftest.$ac_objext \
16273       conftest$ac_exeext conftest.$ac_ext
16274 fi
16275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16277 if test `eval echo '${'$as_ac_var'}'` = yes; then
16278   cat >>confdefs.h <<_ACEOF
16279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16280 _ACEOF
16281
16282 fi
16283 done
16284
16285     fi
16286   fi
16287
16288
16289
16290   echo "$as_me:$LINENO: checking for powf declaration" >&5
16291 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
16292   if test x${glibcxx_cv_func_powf_use+set} != xset; then
16293     if test "${glibcxx_cv_func_powf_use+set}" = set; then
16294   echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16296
16297
16298
16299       ac_ext=cc
16300 ac_cpp='$CXXCPP $CPPFLAGS'
16301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16304
16305       cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h.  */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h.  */
16311 #include <math.h>
16312 int
16313 main ()
16314 {
16315  powf(0, 0);
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 rm -f conftest.$ac_objext
16321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16322   (eval $ac_compile) 2>conftest.er1
16323   ac_status=$?
16324   grep -v '^ *+' conftest.er1 >conftest.err
16325   rm -f conftest.er1
16326   cat conftest.err >&5
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } &&
16329          { ac_try='test -z "$ac_cxx_werror_flag"
16330                          || test ! -s conftest.err'
16331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332   (eval $ac_try) 2>&5
16333   ac_status=$?
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); }; } &&
16336          { ac_try='test -s conftest.$ac_objext'
16337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338   (eval $ac_try) 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); }; }; then
16342   glibcxx_cv_func_powf_use=yes
16343 else
16344   echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347 glibcxx_cv_func_powf_use=no
16348 fi
16349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16350       ac_ext=c
16351 ac_cpp='$CPP $CPPFLAGS'
16352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16355
16356
16357 fi
16358
16359   fi
16360   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
16361 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
16362
16363   if test x$glibcxx_cv_func_powf_use = x"yes"; then
16364
16365 for ac_func in powf
16366 do
16367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16368 echo "$as_me:$LINENO: checking for $ac_func" >&5
16369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16370 if eval "test \"\${$as_ac_var+set}\" = set"; then
16371   echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373   if test x$gcc_no_link = xyes; then
16374   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16375 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16376    { (exit 1); exit 1; }; }
16377 fi
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h.  */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h.  */
16384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16386 #define $ac_func innocuous_$ac_func
16387
16388 /* System header to define __stub macros and hopefully few prototypes,
16389     which can conflict with char $ac_func (); below.
16390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16391     <limits.h> exists even on freestanding compilers.  */
16392
16393 #ifdef __STDC__
16394 # include <limits.h>
16395 #else
16396 # include <assert.h>
16397 #endif
16398
16399 #undef $ac_func
16400
16401 /* Override any gcc2 internal prototype to avoid an error.  */
16402 #ifdef __cplusplus
16403 extern "C"
16404 {
16405 #endif
16406 /* We use char because int might match the return type of a gcc2
16407    builtin and then its argument prototype would still apply.  */
16408 char $ac_func ();
16409 /* The GNU C library defines this for functions which it implements
16410     to always fail with ENOSYS.  Some functions are actually named
16411     something starting with __ and the normal name is an alias.  */
16412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16413 choke me
16414 #else
16415 char (*f) () = $ac_func;
16416 #endif
16417 #ifdef __cplusplus
16418 }
16419 #endif
16420
16421 int
16422 main ()
16423 {
16424 return f != $ac_func;
16425   ;
16426   return 0;
16427 }
16428 _ACEOF
16429 rm -f conftest.$ac_objext conftest$ac_exeext
16430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16431   (eval $ac_link) 2>conftest.er1
16432   ac_status=$?
16433   grep -v '^ *+' conftest.er1 >conftest.err
16434   rm -f conftest.er1
16435   cat conftest.err >&5
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); } &&
16438          { ac_try='test -z "$ac_c_werror_flag"
16439                          || test ! -s conftest.err'
16440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441   (eval $ac_try) 2>&5
16442   ac_status=$?
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); }; } &&
16445          { ac_try='test -s conftest$ac_exeext'
16446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447   (eval $ac_try) 2>&5
16448   ac_status=$?
16449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450   (exit $ac_status); }; }; then
16451   eval "$as_ac_var=yes"
16452 else
16453   echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16455
16456 eval "$as_ac_var=no"
16457 fi
16458 rm -f conftest.err conftest.$ac_objext \
16459       conftest$ac_exeext conftest.$ac_ext
16460 fi
16461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16463 if test `eval echo '${'$as_ac_var'}'` = yes; then
16464   cat >>confdefs.h <<_ACEOF
16465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16466 _ACEOF
16467
16468 fi
16469 done
16470
16471   else
16472
16473   echo "$as_me:$LINENO: checking for _powf declaration" >&5
16474 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
16475   if test x${glibcxx_cv_func__powf_use+set} != xset; then
16476     if test "${glibcxx_cv_func__powf_use+set}" = set; then
16477   echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16479
16480
16481
16482       ac_ext=cc
16483 ac_cpp='$CXXCPP $CPPFLAGS'
16484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16487
16488       cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h.  */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h.  */
16494 #include <math.h>
16495 int
16496 main ()
16497 {
16498  _powf(0, 0);
16499   ;
16500   return 0;
16501 }
16502 _ACEOF
16503 rm -f conftest.$ac_objext
16504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16505   (eval $ac_compile) 2>conftest.er1
16506   ac_status=$?
16507   grep -v '^ *+' conftest.er1 >conftest.err
16508   rm -f conftest.er1
16509   cat conftest.err >&5
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); } &&
16512          { ac_try='test -z "$ac_cxx_werror_flag"
16513                          || test ! -s conftest.err'
16514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515   (eval $ac_try) 2>&5
16516   ac_status=$?
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); }; } &&
16519          { ac_try='test -s conftest.$ac_objext'
16520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521   (eval $ac_try) 2>&5
16522   ac_status=$?
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); }; }; then
16525   glibcxx_cv_func__powf_use=yes
16526 else
16527   echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16529
16530 glibcxx_cv_func__powf_use=no
16531 fi
16532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16533       ac_ext=c
16534 ac_cpp='$CPP $CPPFLAGS'
16535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16538
16539
16540 fi
16541
16542   fi
16543   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
16544 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
16545
16546     if test x$glibcxx_cv_func__powf_use = x"yes"; then
16547
16548 for ac_func in _powf
16549 do
16550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16551 echo "$as_me:$LINENO: checking for $ac_func" >&5
16552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16553 if eval "test \"\${$as_ac_var+set}\" = set"; then
16554   echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556   if test x$gcc_no_link = xyes; then
16557   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16559    { (exit 1); exit 1; }; }
16560 fi
16561 cat >conftest.$ac_ext <<_ACEOF
16562 /* confdefs.h.  */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h.  */
16567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16569 #define $ac_func innocuous_$ac_func
16570
16571 /* System header to define __stub macros and hopefully few prototypes,
16572     which can conflict with char $ac_func (); below.
16573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16574     <limits.h> exists even on freestanding compilers.  */
16575
16576 #ifdef __STDC__
16577 # include <limits.h>
16578 #else
16579 # include <assert.h>
16580 #endif
16581
16582 #undef $ac_func
16583
16584 /* Override any gcc2 internal prototype to avoid an error.  */
16585 #ifdef __cplusplus
16586 extern "C"
16587 {
16588 #endif
16589 /* We use char because int might match the return type of a gcc2
16590    builtin and then its argument prototype would still apply.  */
16591 char $ac_func ();
16592 /* The GNU C library defines this for functions which it implements
16593     to always fail with ENOSYS.  Some functions are actually named
16594     something starting with __ and the normal name is an alias.  */
16595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16596 choke me
16597 #else
16598 char (*f) () = $ac_func;
16599 #endif
16600 #ifdef __cplusplus
16601 }
16602 #endif
16603
16604 int
16605 main ()
16606 {
16607 return f != $ac_func;
16608   ;
16609   return 0;
16610 }
16611 _ACEOF
16612 rm -f conftest.$ac_objext conftest$ac_exeext
16613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16614   (eval $ac_link) 2>conftest.er1
16615   ac_status=$?
16616   grep -v '^ *+' conftest.er1 >conftest.err
16617   rm -f conftest.er1
16618   cat conftest.err >&5
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); } &&
16621          { ac_try='test -z "$ac_c_werror_flag"
16622                          || test ! -s conftest.err'
16623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624   (eval $ac_try) 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; } &&
16628          { ac_try='test -s conftest$ac_exeext'
16629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630   (eval $ac_try) 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; }; then
16634   eval "$as_ac_var=yes"
16635 else
16636   echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16638
16639 eval "$as_ac_var=no"
16640 fi
16641 rm -f conftest.err conftest.$ac_objext \
16642       conftest$ac_exeext conftest.$ac_ext
16643 fi
16644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16646 if test `eval echo '${'$as_ac_var'}'` = yes; then
16647   cat >>confdefs.h <<_ACEOF
16648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16649 _ACEOF
16650
16651 fi
16652 done
16653
16654     fi
16655   fi
16656
16657
16658
16659   echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
16660 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
16661   if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
16662     if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
16663   echo $ECHO_N "(cached) $ECHO_C" >&6
16664 else
16665
16666
16667
16668       ac_ext=cc
16669 ac_cpp='$CXXCPP $CPPFLAGS'
16670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16673
16674       cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h.  */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h.  */
16680 #include <math.h>
16681                       #ifdef HAVE_IEEEFP_H
16682                       #include <ieeefp.h>
16683                       #endif
16684
16685 int
16686 main ()
16687 {
16688  sqrtf(0);
16689   ;
16690   return 0;
16691 }
16692 _ACEOF
16693 rm -f conftest.$ac_objext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16695   (eval $ac_compile) 2>conftest.er1
16696   ac_status=$?
16697   grep -v '^ *+' conftest.er1 >conftest.err
16698   rm -f conftest.er1
16699   cat conftest.err >&5
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); } &&
16702          { ac_try='test -z "$ac_cxx_werror_flag"
16703                          || test ! -s conftest.err'
16704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705   (eval $ac_try) 2>&5
16706   ac_status=$?
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); }; } &&
16709          { ac_try='test -s conftest.$ac_objext'
16710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711   (eval $ac_try) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; }; then
16715   glibcxx_cv_func_sqrtf_use=yes
16716 else
16717   echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16719
16720 glibcxx_cv_func_sqrtf_use=no
16721 fi
16722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16723       ac_ext=c
16724 ac_cpp='$CPP $CPPFLAGS'
16725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16728
16729
16730 fi
16731
16732   fi
16733   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
16734 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
16735
16736   if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
16737
16738 for ac_func in sqrtf
16739 do
16740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16741 echo "$as_me:$LINENO: checking for $ac_func" >&5
16742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16743 if eval "test \"\${$as_ac_var+set}\" = set"; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746   if test x$gcc_no_link = xyes; then
16747   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16749    { (exit 1); exit 1; }; }
16750 fi
16751 cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h.  */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h.  */
16757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16759 #define $ac_func innocuous_$ac_func
16760
16761 /* System header to define __stub macros and hopefully few prototypes,
16762     which can conflict with char $ac_func (); below.
16763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16764     <limits.h> exists even on freestanding compilers.  */
16765
16766 #ifdef __STDC__
16767 # include <limits.h>
16768 #else
16769 # include <assert.h>
16770 #endif
16771
16772 #undef $ac_func
16773
16774 /* Override any gcc2 internal prototype to avoid an error.  */
16775 #ifdef __cplusplus
16776 extern "C"
16777 {
16778 #endif
16779 /* We use char because int might match the return type of a gcc2
16780    builtin and then its argument prototype would still apply.  */
16781 char $ac_func ();
16782 /* The GNU C library defines this for functions which it implements
16783     to always fail with ENOSYS.  Some functions are actually named
16784     something starting with __ and the normal name is an alias.  */
16785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16786 choke me
16787 #else
16788 char (*f) () = $ac_func;
16789 #endif
16790 #ifdef __cplusplus
16791 }
16792 #endif
16793
16794 int
16795 main ()
16796 {
16797 return f != $ac_func;
16798   ;
16799   return 0;
16800 }
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804   (eval $ac_link) 2>conftest.er1
16805   ac_status=$?
16806   grep -v '^ *+' conftest.er1 >conftest.err
16807   rm -f conftest.er1
16808   cat conftest.err >&5
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); } &&
16811          { ac_try='test -z "$ac_c_werror_flag"
16812                          || test ! -s conftest.err'
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); }; } &&
16818          { ac_try='test -s conftest$ac_exeext'
16819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820   (eval $ac_try) 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); }; }; then
16824   eval "$as_ac_var=yes"
16825 else
16826   echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16828
16829 eval "$as_ac_var=no"
16830 fi
16831 rm -f conftest.err conftest.$ac_objext \
16832       conftest$ac_exeext conftest.$ac_ext
16833 fi
16834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16836 if test `eval echo '${'$as_ac_var'}'` = yes; then
16837   cat >>confdefs.h <<_ACEOF
16838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16839 _ACEOF
16840
16841 fi
16842 done
16843
16844   else
16845
16846   echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
16847 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
16848   if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
16849     if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852
16853
16854
16855       ac_ext=cc
16856 ac_cpp='$CXXCPP $CPPFLAGS'
16857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16860
16861       cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h.  */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h.  */
16867 #include <math.h>
16868                       #ifdef HAVE_IEEEFP_H
16869                       #include <ieeefp.h>
16870                       #endif
16871
16872 int
16873 main ()
16874 {
16875  _sqrtf(0);
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882   (eval $ac_compile) 2>conftest.er1
16883   ac_status=$?
16884   grep -v '^ *+' conftest.er1 >conftest.err
16885   rm -f conftest.er1
16886   cat conftest.err >&5
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); } &&
16889          { ac_try='test -z "$ac_cxx_werror_flag"
16890                          || test ! -s conftest.err'
16891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892   (eval $ac_try) 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; } &&
16896          { ac_try='test -s conftest.$ac_objext'
16897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898   (eval $ac_try) 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; }; then
16902   glibcxx_cv_func__sqrtf_use=yes
16903 else
16904   echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16906
16907 glibcxx_cv_func__sqrtf_use=no
16908 fi
16909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16910       ac_ext=c
16911 ac_cpp='$CPP $CPPFLAGS'
16912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16915
16916
16917 fi
16918
16919   fi
16920   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
16921 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
16922
16923     if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
16924
16925 for ac_func in _sqrtf
16926 do
16927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16928 echo "$as_me:$LINENO: checking for $ac_func" >&5
16929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16930 if eval "test \"\${$as_ac_var+set}\" = set"; then
16931   echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933   if test x$gcc_no_link = xyes; then
16934   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16936    { (exit 1); exit 1; }; }
16937 fi
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h.  */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h.  */
16944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16946 #define $ac_func innocuous_$ac_func
16947
16948 /* System header to define __stub macros and hopefully few prototypes,
16949     which can conflict with char $ac_func (); below.
16950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951     <limits.h> exists even on freestanding compilers.  */
16952
16953 #ifdef __STDC__
16954 # include <limits.h>
16955 #else
16956 # include <assert.h>
16957 #endif
16958
16959 #undef $ac_func
16960
16961 /* Override any gcc2 internal prototype to avoid an error.  */
16962 #ifdef __cplusplus
16963 extern "C"
16964 {
16965 #endif
16966 /* We use char because int might match the return type of a gcc2
16967    builtin and then its argument prototype would still apply.  */
16968 char $ac_func ();
16969 /* The GNU C library defines this for functions which it implements
16970     to always fail with ENOSYS.  Some functions are actually named
16971     something starting with __ and the normal name is an alias.  */
16972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16973 choke me
16974 #else
16975 char (*f) () = $ac_func;
16976 #endif
16977 #ifdef __cplusplus
16978 }
16979 #endif
16980
16981 int
16982 main ()
16983 {
16984 return f != $ac_func;
16985   ;
16986   return 0;
16987 }
16988 _ACEOF
16989 rm -f conftest.$ac_objext conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991   (eval $ac_link) 2>conftest.er1
16992   ac_status=$?
16993   grep -v '^ *+' conftest.er1 >conftest.err
16994   rm -f conftest.er1
16995   cat conftest.err >&5
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } &&
16998          { ac_try='test -z "$ac_c_werror_flag"
16999                          || test ! -s conftest.err'
17000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001   (eval $ac_try) 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; } &&
17005          { ac_try='test -s conftest$ac_exeext'
17006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007   (eval $ac_try) 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }; }; then
17011   eval "$as_ac_var=yes"
17012 else
17013   echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17015
17016 eval "$as_ac_var=no"
17017 fi
17018 rm -f conftest.err conftest.$ac_objext \
17019       conftest$ac_exeext conftest.$ac_ext
17020 fi
17021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17023 if test `eval echo '${'$as_ac_var'}'` = yes; then
17024   cat >>confdefs.h <<_ACEOF
17025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17026 _ACEOF
17027
17028 fi
17029 done
17030
17031     fi
17032   fi
17033
17034
17035
17036   echo "$as_me:$LINENO: checking for sincosf declaration" >&5
17037 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
17038   if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
17039     if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
17040   echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17042
17043
17044
17045       ac_ext=cc
17046 ac_cpp='$CXXCPP $CPPFLAGS'
17047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17050
17051       cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h.  */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h.  */
17057 #include <math.h>
17058 int
17059 main ()
17060 {
17061  sincosf(0, 0, 0);
17062   ;
17063   return 0;
17064 }
17065 _ACEOF
17066 rm -f conftest.$ac_objext
17067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17068   (eval $ac_compile) 2>conftest.er1
17069   ac_status=$?
17070   grep -v '^ *+' conftest.er1 >conftest.err
17071   rm -f conftest.er1
17072   cat conftest.err >&5
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } &&
17075          { ac_try='test -z "$ac_cxx_werror_flag"
17076                          || test ! -s conftest.err'
17077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078   (eval $ac_try) 2>&5
17079   ac_status=$?
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); }; } &&
17082          { ac_try='test -s conftest.$ac_objext'
17083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084   (eval $ac_try) 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; }; then
17088   glibcxx_cv_func_sincosf_use=yes
17089 else
17090   echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 glibcxx_cv_func_sincosf_use=no
17094 fi
17095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17096       ac_ext=c
17097 ac_cpp='$CPP $CPPFLAGS'
17098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17101
17102
17103 fi
17104
17105   fi
17106   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
17107 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
17108
17109   if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
17110
17111 for ac_func in sincosf
17112 do
17113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17114 echo "$as_me:$LINENO: checking for $ac_func" >&5
17115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17116 if eval "test \"\${$as_ac_var+set}\" = set"; then
17117   echo $ECHO_N "(cached) $ECHO_C" >&6
17118 else
17119   if test x$gcc_no_link = xyes; then
17120   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17122    { (exit 1); exit 1; }; }
17123 fi
17124 cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h.  */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h.  */
17130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17132 #define $ac_func innocuous_$ac_func
17133
17134 /* System header to define __stub macros and hopefully few prototypes,
17135     which can conflict with char $ac_func (); below.
17136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17137     <limits.h> exists even on freestanding compilers.  */
17138
17139 #ifdef __STDC__
17140 # include <limits.h>
17141 #else
17142 # include <assert.h>
17143 #endif
17144
17145 #undef $ac_func
17146
17147 /* Override any gcc2 internal prototype to avoid an error.  */
17148 #ifdef __cplusplus
17149 extern "C"
17150 {
17151 #endif
17152 /* We use char because int might match the return type of a gcc2
17153    builtin and then its argument prototype would still apply.  */
17154 char $ac_func ();
17155 /* The GNU C library defines this for functions which it implements
17156     to always fail with ENOSYS.  Some functions are actually named
17157     something starting with __ and the normal name is an alias.  */
17158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17159 choke me
17160 #else
17161 char (*f) () = $ac_func;
17162 #endif
17163 #ifdef __cplusplus
17164 }
17165 #endif
17166
17167 int
17168 main ()
17169 {
17170 return f != $ac_func;
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177   (eval $ac_link) 2>conftest.er1
17178   ac_status=$?
17179   grep -v '^ *+' conftest.er1 >conftest.err
17180   rm -f conftest.er1
17181   cat conftest.err >&5
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); } &&
17184          { ac_try='test -z "$ac_c_werror_flag"
17185                          || test ! -s conftest.err'
17186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187   (eval $ac_try) 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); }; } &&
17191          { ac_try='test -s conftest$ac_exeext'
17192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193   (eval $ac_try) 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); }; }; then
17197   eval "$as_ac_var=yes"
17198 else
17199   echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 eval "$as_ac_var=no"
17203 fi
17204 rm -f conftest.err conftest.$ac_objext \
17205       conftest$ac_exeext conftest.$ac_ext
17206 fi
17207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17209 if test `eval echo '${'$as_ac_var'}'` = yes; then
17210   cat >>confdefs.h <<_ACEOF
17211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17212 _ACEOF
17213
17214 fi
17215 done
17216
17217   else
17218
17219   echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
17220 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
17221   if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
17222     if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225
17226
17227
17228       ac_ext=cc
17229 ac_cpp='$CXXCPP $CPPFLAGS'
17230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17233
17234       cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h.  */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h.  */
17240 #include <math.h>
17241 int
17242 main ()
17243 {
17244  _sincosf(0, 0, 0);
17245   ;
17246   return 0;
17247 }
17248 _ACEOF
17249 rm -f conftest.$ac_objext
17250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17251   (eval $ac_compile) 2>conftest.er1
17252   ac_status=$?
17253   grep -v '^ *+' conftest.er1 >conftest.err
17254   rm -f conftest.er1
17255   cat conftest.err >&5
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); } &&
17258          { ac_try='test -z "$ac_cxx_werror_flag"
17259                          || test ! -s conftest.err'
17260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261   (eval $ac_try) 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); }; } &&
17265          { ac_try='test -s conftest.$ac_objext'
17266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267   (eval $ac_try) 2>&5
17268   ac_status=$?
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); }; }; then
17271   glibcxx_cv_func__sincosf_use=yes
17272 else
17273   echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 glibcxx_cv_func__sincosf_use=no
17277 fi
17278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17279       ac_ext=c
17280 ac_cpp='$CPP $CPPFLAGS'
17281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17284
17285
17286 fi
17287
17288   fi
17289   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
17290 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
17291
17292     if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
17293
17294 for ac_func in _sincosf
17295 do
17296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17297 echo "$as_me:$LINENO: checking for $ac_func" >&5
17298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17299 if eval "test \"\${$as_ac_var+set}\" = set"; then
17300   echo $ECHO_N "(cached) $ECHO_C" >&6
17301 else
17302   if test x$gcc_no_link = xyes; then
17303   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17305    { (exit 1); exit 1; }; }
17306 fi
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h.  */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h.  */
17313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17315 #define $ac_func innocuous_$ac_func
17316
17317 /* System header to define __stub macros and hopefully few prototypes,
17318     which can conflict with char $ac_func (); below.
17319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320     <limits.h> exists even on freestanding compilers.  */
17321
17322 #ifdef __STDC__
17323 # include <limits.h>
17324 #else
17325 # include <assert.h>
17326 #endif
17327
17328 #undef $ac_func
17329
17330 /* Override any gcc2 internal prototype to avoid an error.  */
17331 #ifdef __cplusplus
17332 extern "C"
17333 {
17334 #endif
17335 /* We use char because int might match the return type of a gcc2
17336    builtin and then its argument prototype would still apply.  */
17337 char $ac_func ();
17338 /* The GNU C library defines this for functions which it implements
17339     to always fail with ENOSYS.  Some functions are actually named
17340     something starting with __ and the normal name is an alias.  */
17341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17342 choke me
17343 #else
17344 char (*f) () = $ac_func;
17345 #endif
17346 #ifdef __cplusplus
17347 }
17348 #endif
17349
17350 int
17351 main ()
17352 {
17353 return f != $ac_func;
17354   ;
17355   return 0;
17356 }
17357 _ACEOF
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17360   (eval $ac_link) 2>conftest.er1
17361   ac_status=$?
17362   grep -v '^ *+' conftest.er1 >conftest.err
17363   rm -f conftest.er1
17364   cat conftest.err >&5
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); } &&
17367          { ac_try='test -z "$ac_c_werror_flag"
17368                          || test ! -s conftest.err'
17369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370   (eval $ac_try) 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; } &&
17374          { ac_try='test -s conftest$ac_exeext'
17375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376   (eval $ac_try) 2>&5
17377   ac_status=$?
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); }; }; then
17380   eval "$as_ac_var=yes"
17381 else
17382   echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17384
17385 eval "$as_ac_var=no"
17386 fi
17387 rm -f conftest.err conftest.$ac_objext \
17388       conftest$ac_exeext conftest.$ac_ext
17389 fi
17390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17392 if test `eval echo '${'$as_ac_var'}'` = yes; then
17393   cat >>confdefs.h <<_ACEOF
17394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17395 _ACEOF
17396
17397 fi
17398 done
17399
17400     fi
17401   fi
17402
17403
17404
17405   echo "$as_me:$LINENO: checking for finitef declaration" >&5
17406 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
17407   if test x${glibcxx_cv_func_finitef_use+set} != xset; then
17408     if test "${glibcxx_cv_func_finitef_use+set}" = set; then
17409   echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411
17412
17413
17414       ac_ext=cc
17415 ac_cpp='$CXXCPP $CPPFLAGS'
17416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17419
17420       cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426 #include <math.h>
17427                       #ifdef HAVE_IEEEFP_H
17428                       #include <ieeefp.h>
17429                       #endif
17430
17431 int
17432 main ()
17433 {
17434  finitef(0);
17435   ;
17436   return 0;
17437 }
17438 _ACEOF
17439 rm -f conftest.$ac_objext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17441   (eval $ac_compile) 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } &&
17448          { ac_try='test -z "$ac_cxx_werror_flag"
17449                          || test ! -s conftest.err'
17450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451   (eval $ac_try) 2>&5
17452   ac_status=$?
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); }; } &&
17455          { ac_try='test -s conftest.$ac_objext'
17456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457   (eval $ac_try) 2>&5
17458   ac_status=$?
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); }; }; then
17461   glibcxx_cv_func_finitef_use=yes
17462 else
17463   echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17465
17466 glibcxx_cv_func_finitef_use=no
17467 fi
17468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17469       ac_ext=c
17470 ac_cpp='$CPP $CPPFLAGS'
17471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17474
17475
17476 fi
17477
17478   fi
17479   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
17480 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
17481
17482   if test x$glibcxx_cv_func_finitef_use = x"yes"; then
17483
17484 for ac_func in finitef
17485 do
17486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17489 if eval "test \"\${$as_ac_var+set}\" = set"; then
17490   echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492   if test x$gcc_no_link = xyes; then
17493   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17495    { (exit 1); exit 1; }; }
17496 fi
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17505 #define $ac_func innocuous_$ac_func
17506
17507 /* System header to define __stub macros and hopefully few prototypes,
17508     which can conflict with char $ac_func (); below.
17509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510     <limits.h> exists even on freestanding compilers.  */
17511
17512 #ifdef __STDC__
17513 # include <limits.h>
17514 #else
17515 # include <assert.h>
17516 #endif
17517
17518 #undef $ac_func
17519
17520 /* Override any gcc2 internal prototype to avoid an error.  */
17521 #ifdef __cplusplus
17522 extern "C"
17523 {
17524 #endif
17525 /* We use char because int might match the return type of a gcc2
17526    builtin and then its argument prototype would still apply.  */
17527 char $ac_func ();
17528 /* The GNU C library defines this for functions which it implements
17529     to always fail with ENOSYS.  Some functions are actually named
17530     something starting with __ and the normal name is an alias.  */
17531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17532 choke me
17533 #else
17534 char (*f) () = $ac_func;
17535 #endif
17536 #ifdef __cplusplus
17537 }
17538 #endif
17539
17540 int
17541 main ()
17542 {
17543 return f != $ac_func;
17544   ;
17545   return 0;
17546 }
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17550   (eval $ac_link) 2>conftest.er1
17551   ac_status=$?
17552   grep -v '^ *+' conftest.er1 >conftest.err
17553   rm -f conftest.er1
17554   cat conftest.err >&5
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); } &&
17557          { ac_try='test -z "$ac_c_werror_flag"
17558                          || test ! -s conftest.err'
17559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560   (eval $ac_try) 2>&5
17561   ac_status=$?
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); }; } &&
17564          { ac_try='test -s conftest$ac_exeext'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; }; then
17570   eval "$as_ac_var=yes"
17571 else
17572   echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 eval "$as_ac_var=no"
17576 fi
17577 rm -f conftest.err conftest.$ac_objext \
17578       conftest$ac_exeext conftest.$ac_ext
17579 fi
17580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17582 if test `eval echo '${'$as_ac_var'}'` = yes; then
17583   cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17585 _ACEOF
17586
17587 fi
17588 done
17589
17590   else
17591
17592   echo "$as_me:$LINENO: checking for _finitef declaration" >&5
17593 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
17594   if test x${glibcxx_cv_func__finitef_use+set} != xset; then
17595     if test "${glibcxx_cv_func__finitef_use+set}" = set; then
17596   echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598
17599
17600
17601       ac_ext=cc
17602 ac_cpp='$CXXCPP $CPPFLAGS'
17603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17606
17607       cat >conftest.$ac_ext <<_ACEOF
17608 /* confdefs.h.  */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h.  */
17613 #include <math.h>
17614                       #ifdef HAVE_IEEEFP_H
17615                       #include <ieeefp.h>
17616                       #endif
17617
17618 int
17619 main ()
17620 {
17621  _finitef(0);
17622   ;
17623   return 0;
17624 }
17625 _ACEOF
17626 rm -f conftest.$ac_objext
17627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17628   (eval $ac_compile) 2>conftest.er1
17629   ac_status=$?
17630   grep -v '^ *+' conftest.er1 >conftest.err
17631   rm -f conftest.er1
17632   cat conftest.err >&5
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } &&
17635          { ac_try='test -z "$ac_cxx_werror_flag"
17636                          || test ! -s conftest.err'
17637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638   (eval $ac_try) 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); }; } &&
17642          { ac_try='test -s conftest.$ac_objext'
17643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644   (eval $ac_try) 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); }; }; then
17648   glibcxx_cv_func__finitef_use=yes
17649 else
17650   echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653 glibcxx_cv_func__finitef_use=no
17654 fi
17655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17656       ac_ext=c
17657 ac_cpp='$CPP $CPPFLAGS'
17658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17661
17662
17663 fi
17664
17665   fi
17666   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
17667 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
17668
17669     if test x$glibcxx_cv_func__finitef_use = x"yes"; then
17670
17671 for ac_func in _finitef
17672 do
17673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17674 echo "$as_me:$LINENO: checking for $ac_func" >&5
17675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17676 if eval "test \"\${$as_ac_var+set}\" = set"; then
17677   echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679   if test x$gcc_no_link = xyes; then
17680   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17682    { (exit 1); exit 1; }; }
17683 fi
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h.  */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h.  */
17690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17692 #define $ac_func innocuous_$ac_func
17693
17694 /* System header to define __stub macros and hopefully few prototypes,
17695     which can conflict with char $ac_func (); below.
17696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17697     <limits.h> exists even on freestanding compilers.  */
17698
17699 #ifdef __STDC__
17700 # include <limits.h>
17701 #else
17702 # include <assert.h>
17703 #endif
17704
17705 #undef $ac_func
17706
17707 /* Override any gcc2 internal prototype to avoid an error.  */
17708 #ifdef __cplusplus
17709 extern "C"
17710 {
17711 #endif
17712 /* We use char because int might match the return type of a gcc2
17713    builtin and then its argument prototype would still apply.  */
17714 char $ac_func ();
17715 /* The GNU C library defines this for functions which it implements
17716     to always fail with ENOSYS.  Some functions are actually named
17717     something starting with __ and the normal name is an alias.  */
17718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17719 choke me
17720 #else
17721 char (*f) () = $ac_func;
17722 #endif
17723 #ifdef __cplusplus
17724 }
17725 #endif
17726
17727 int
17728 main ()
17729 {
17730 return f != $ac_func;
17731   ;
17732   return 0;
17733 }
17734 _ACEOF
17735 rm -f conftest.$ac_objext conftest$ac_exeext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17737   (eval $ac_link) 2>conftest.er1
17738   ac_status=$?
17739   grep -v '^ *+' conftest.er1 >conftest.err
17740   rm -f conftest.er1
17741   cat conftest.err >&5
17742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743   (exit $ac_status); } &&
17744          { ac_try='test -z "$ac_c_werror_flag"
17745                          || test ! -s conftest.err'
17746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747   (eval $ac_try) 2>&5
17748   ac_status=$?
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); }; } &&
17751          { ac_try='test -s conftest$ac_exeext'
17752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753   (eval $ac_try) 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); }; }; then
17757   eval "$as_ac_var=yes"
17758 else
17759   echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17761
17762 eval "$as_ac_var=no"
17763 fi
17764 rm -f conftest.err conftest.$ac_objext \
17765       conftest$ac_exeext conftest.$ac_ext
17766 fi
17767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17769 if test `eval echo '${'$as_ac_var'}'` = yes; then
17770   cat >>confdefs.h <<_ACEOF
17771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17772 _ACEOF
17773
17774 fi
17775 done
17776
17777     fi
17778   fi
17779
17780
17781
17782   echo "$as_me:$LINENO: checking for long double trig functions" >&5
17783 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
17784   if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
17785   echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787
17788
17789
17790     ac_ext=cc
17791 ac_cpp='$CXXCPP $CPPFLAGS'
17792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17795
17796     cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802 #include <math.h>
17803 int
17804 main ()
17805 {
17806  `for x in acosl asinl atanl \
17807                                           cosl sinl tanl \
17808                                           coshl sinhl tanhl; do echo "$x (0);"; done`
17809   ;
17810   return 0;
17811 }
17812 _ACEOF
17813 rm -f conftest.$ac_objext
17814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17815   (eval $ac_compile) 2>conftest.er1
17816   ac_status=$?
17817   grep -v '^ *+' conftest.er1 >conftest.err
17818   rm -f conftest.er1
17819   cat conftest.err >&5
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); } &&
17822          { ac_try='test -z "$ac_cxx_werror_flag"
17823                          || test ! -s conftest.err'
17824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825   (eval $ac_try) 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); }; } &&
17829          { ac_try='test -s conftest.$ac_objext'
17830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831   (eval $ac_try) 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); }; }; then
17835   glibcxx_cv_func_long_double_trig_use=yes
17836 else
17837   echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840 glibcxx_cv_func_long_double_trig_use=no
17841 fi
17842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17843     ac_ext=c
17844 ac_cpp='$CPP $CPPFLAGS'
17845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17848
17849 fi
17850
17851   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
17852 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
17853   if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863 for ac_func in acosl asinl atanl \
17864                                           cosl sinl tanl \
17865                                           coshl sinhl tanhl
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 /* confdefs.h.  */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h.  */
17884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17886 #define $ac_func innocuous_$ac_func
17887
17888 /* System header to define __stub macros and hopefully few prototypes,
17889     which can conflict with char $ac_func (); below.
17890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17891     <limits.h> exists even on freestanding compilers.  */
17892
17893 #ifdef __STDC__
17894 # include <limits.h>
17895 #else
17896 # include <assert.h>
17897 #endif
17898
17899 #undef $ac_func
17900
17901 /* Override any gcc2 internal prototype to avoid an error.  */
17902 #ifdef __cplusplus
17903 extern "C"
17904 {
17905 #endif
17906 /* We use char because int might match the return type of a gcc2
17907    builtin and then its argument prototype would still apply.  */
17908 char $ac_func ();
17909 /* The GNU C library defines this for functions which it implements
17910     to always fail with ENOSYS.  Some functions are actually named
17911     something starting with __ and the normal name is an alias.  */
17912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17913 choke me
17914 #else
17915 char (*f) () = $ac_func;
17916 #endif
17917 #ifdef __cplusplus
17918 }
17919 #endif
17920
17921 int
17922 main ()
17923 {
17924 return f != $ac_func;
17925   ;
17926   return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931   (eval $ac_link) 2>conftest.er1
17932   ac_status=$?
17933   grep -v '^ *+' conftest.er1 >conftest.err
17934   rm -f conftest.er1
17935   cat conftest.err >&5
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); } &&
17938          { ac_try='test -z "$ac_c_werror_flag"
17939                          || test ! -s conftest.err'
17940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941   (eval $ac_try) 2>&5
17942   ac_status=$?
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); }; } &&
17945          { ac_try='test -s conftest$ac_exeext'
17946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947   (eval $ac_try) 2>&5
17948   ac_status=$?
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); }; }; then
17951   eval "$as_ac_var=yes"
17952 else
17953   echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17955
17956 eval "$as_ac_var=no"
17957 fi
17958 rm -f conftest.err conftest.$ac_objext \
17959       conftest$ac_exeext conftest.$ac_ext
17960 fi
17961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17963 if test `eval echo '${'$as_ac_var'}'` = yes; then
17964   cat >>confdefs.h <<_ACEOF
17965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17966 _ACEOF
17967
17968 fi
17969 done
17970
17971   fi
17972
17973
17974   echo "$as_me:$LINENO: checking for long double round functions" >&5
17975 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
17976   if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
17977   echo $ECHO_N "(cached) $ECHO_C" >&6
17978 else
17979
17980
17981
17982     ac_ext=cc
17983 ac_cpp='$CXXCPP $CPPFLAGS'
17984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17987
17988     cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h.  */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h.  */
17994 #include <math.h>
17995 int
17996 main ()
17997 {
17998  `for x in ceill floorl; do echo "$x (0);"; done`
17999   ;
18000   return 0;
18001 }
18002 _ACEOF
18003 rm -f conftest.$ac_objext
18004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18005   (eval $ac_compile) 2>conftest.er1
18006   ac_status=$?
18007   grep -v '^ *+' conftest.er1 >conftest.err
18008   rm -f conftest.er1
18009   cat conftest.err >&5
18010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011   (exit $ac_status); } &&
18012          { ac_try='test -z "$ac_cxx_werror_flag"
18013                          || test ! -s conftest.err'
18014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015   (eval $ac_try) 2>&5
18016   ac_status=$?
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); }; } &&
18019          { ac_try='test -s conftest.$ac_objext'
18020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021   (eval $ac_try) 2>&5
18022   ac_status=$?
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); }; }; then
18025   glibcxx_cv_func_long_double_round_use=yes
18026 else
18027   echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18029
18030 glibcxx_cv_func_long_double_round_use=no
18031 fi
18032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18033     ac_ext=c
18034 ac_cpp='$CPP $CPPFLAGS'
18035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18038
18039 fi
18040
18041   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
18042 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
18043   if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
18044
18045
18046 for ac_func in ceill floorl
18047 do
18048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18049 echo "$as_me:$LINENO: checking for $ac_func" >&5
18050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18051 if eval "test \"\${$as_ac_var+set}\" = set"; then
18052   echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054   if test x$gcc_no_link = xyes; then
18055   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18056 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18057    { (exit 1); exit 1; }; }
18058 fi
18059 cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h.  */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h.  */
18065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18067 #define $ac_func innocuous_$ac_func
18068
18069 /* System header to define __stub macros and hopefully few prototypes,
18070     which can conflict with char $ac_func (); below.
18071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18072     <limits.h> exists even on freestanding compilers.  */
18073
18074 #ifdef __STDC__
18075 # include <limits.h>
18076 #else
18077 # include <assert.h>
18078 #endif
18079
18080 #undef $ac_func
18081
18082 /* Override any gcc2 internal prototype to avoid an error.  */
18083 #ifdef __cplusplus
18084 extern "C"
18085 {
18086 #endif
18087 /* We use char because int might match the return type of a gcc2
18088    builtin and then its argument prototype would still apply.  */
18089 char $ac_func ();
18090 /* The GNU C library defines this for functions which it implements
18091     to always fail with ENOSYS.  Some functions are actually named
18092     something starting with __ and the normal name is an alias.  */
18093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18094 choke me
18095 #else
18096 char (*f) () = $ac_func;
18097 #endif
18098 #ifdef __cplusplus
18099 }
18100 #endif
18101
18102 int
18103 main ()
18104 {
18105 return f != $ac_func;
18106   ;
18107   return 0;
18108 }
18109 _ACEOF
18110 rm -f conftest.$ac_objext conftest$ac_exeext
18111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18112   (eval $ac_link) 2>conftest.er1
18113   ac_status=$?
18114   grep -v '^ *+' conftest.er1 >conftest.err
18115   rm -f conftest.er1
18116   cat conftest.err >&5
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); } &&
18119          { ac_try='test -z "$ac_c_werror_flag"
18120                          || test ! -s conftest.err'
18121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122   (eval $ac_try) 2>&5
18123   ac_status=$?
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); }; } &&
18126          { ac_try='test -s conftest$ac_exeext'
18127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128   (eval $ac_try) 2>&5
18129   ac_status=$?
18130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); }; }; then
18132   eval "$as_ac_var=yes"
18133 else
18134   echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18136
18137 eval "$as_ac_var=no"
18138 fi
18139 rm -f conftest.err conftest.$ac_objext \
18140       conftest$ac_exeext conftest.$ac_ext
18141 fi
18142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18144 if test `eval echo '${'$as_ac_var'}'` = yes; then
18145   cat >>confdefs.h <<_ACEOF
18146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18147 _ACEOF
18148
18149 fi
18150 done
18151
18152   fi
18153
18154
18155
18156   echo "$as_me:$LINENO: checking for isnanl declaration" >&5
18157 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
18158   if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
18159     if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
18160   echo $ECHO_N "(cached) $ECHO_C" >&6
18161 else
18162
18163
18164
18165       ac_ext=cc
18166 ac_cpp='$CXXCPP $CPPFLAGS'
18167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18170
18171       cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h.  */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h.  */
18177 #include <math.h>
18178                       #ifdef HAVE_IEEEFP_H
18179                       #include <ieeefp.h>
18180                       #endif
18181
18182 int
18183 main ()
18184 {
18185  isnanl(0);
18186   ;
18187   return 0;
18188 }
18189 _ACEOF
18190 rm -f conftest.$ac_objext
18191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18192   (eval $ac_compile) 2>conftest.er1
18193   ac_status=$?
18194   grep -v '^ *+' conftest.er1 >conftest.err
18195   rm -f conftest.er1
18196   cat conftest.err >&5
18197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198   (exit $ac_status); } &&
18199          { ac_try='test -z "$ac_cxx_werror_flag"
18200                          || test ! -s conftest.err'
18201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202   (eval $ac_try) 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }; } &&
18206          { ac_try='test -s conftest.$ac_objext'
18207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208   (eval $ac_try) 2>&5
18209   ac_status=$?
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); }; }; then
18212   glibcxx_cv_func_isnanl_use=yes
18213 else
18214   echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18216
18217 glibcxx_cv_func_isnanl_use=no
18218 fi
18219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18220       ac_ext=c
18221 ac_cpp='$CPP $CPPFLAGS'
18222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18225
18226
18227 fi
18228
18229   fi
18230   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
18231 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
18232
18233   if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
18234
18235 for ac_func in isnanl
18236 do
18237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18238 echo "$as_me:$LINENO: checking for $ac_func" >&5
18239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18240 if eval "test \"\${$as_ac_var+set}\" = set"; then
18241   echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243   if test x$gcc_no_link = xyes; then
18244   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18245 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18246    { (exit 1); exit 1; }; }
18247 fi
18248 cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h.  */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h.  */
18254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18256 #define $ac_func innocuous_$ac_func
18257
18258 /* System header to define __stub macros and hopefully few prototypes,
18259     which can conflict with char $ac_func (); below.
18260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18261     <limits.h> exists even on freestanding compilers.  */
18262
18263 #ifdef __STDC__
18264 # include <limits.h>
18265 #else
18266 # include <assert.h>
18267 #endif
18268
18269 #undef $ac_func
18270
18271 /* Override any gcc2 internal prototype to avoid an error.  */
18272 #ifdef __cplusplus
18273 extern "C"
18274 {
18275 #endif
18276 /* We use char because int might match the return type of a gcc2
18277    builtin and then its argument prototype would still apply.  */
18278 char $ac_func ();
18279 /* The GNU C library defines this for functions which it implements
18280     to always fail with ENOSYS.  Some functions are actually named
18281     something starting with __ and the normal name is an alias.  */
18282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18283 choke me
18284 #else
18285 char (*f) () = $ac_func;
18286 #endif
18287 #ifdef __cplusplus
18288 }
18289 #endif
18290
18291 int
18292 main ()
18293 {
18294 return f != $ac_func;
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18301   (eval $ac_link) 2>conftest.er1
18302   ac_status=$?
18303   grep -v '^ *+' conftest.er1 >conftest.err
18304   rm -f conftest.er1
18305   cat conftest.err >&5
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); } &&
18308          { ac_try='test -z "$ac_c_werror_flag"
18309                          || test ! -s conftest.err'
18310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311   (eval $ac_try) 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); }; } &&
18315          { ac_try='test -s conftest$ac_exeext'
18316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317   (eval $ac_try) 2>&5
18318   ac_status=$?
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); }; }; then
18321   eval "$as_ac_var=yes"
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326 eval "$as_ac_var=no"
18327 fi
18328 rm -f conftest.err conftest.$ac_objext \
18329       conftest$ac_exeext conftest.$ac_ext
18330 fi
18331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18333 if test `eval echo '${'$as_ac_var'}'` = yes; then
18334   cat >>confdefs.h <<_ACEOF
18335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18336 _ACEOF
18337
18338 fi
18339 done
18340
18341   else
18342
18343   echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
18344 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
18345   if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
18346     if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
18347   echo $ECHO_N "(cached) $ECHO_C" >&6
18348 else
18349
18350
18351
18352       ac_ext=cc
18353 ac_cpp='$CXXCPP $CPPFLAGS'
18354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18357
18358       cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h.  */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h.  */
18364 #include <math.h>
18365                       #ifdef HAVE_IEEEFP_H
18366                       #include <ieeefp.h>
18367                       #endif
18368
18369 int
18370 main ()
18371 {
18372  _isnanl(0);
18373   ;
18374   return 0;
18375 }
18376 _ACEOF
18377 rm -f conftest.$ac_objext
18378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18379   (eval $ac_compile) 2>conftest.er1
18380   ac_status=$?
18381   grep -v '^ *+' conftest.er1 >conftest.err
18382   rm -f conftest.er1
18383   cat conftest.err >&5
18384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385   (exit $ac_status); } &&
18386          { ac_try='test -z "$ac_cxx_werror_flag"
18387                          || test ! -s conftest.err'
18388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389   (eval $ac_try) 2>&5
18390   ac_status=$?
18391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); }; } &&
18393          { ac_try='test -s conftest.$ac_objext'
18394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395   (eval $ac_try) 2>&5
18396   ac_status=$?
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); }; }; then
18399   glibcxx_cv_func__isnanl_use=yes
18400 else
18401   echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18403
18404 glibcxx_cv_func__isnanl_use=no
18405 fi
18406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18407       ac_ext=c
18408 ac_cpp='$CPP $CPPFLAGS'
18409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18412
18413
18414 fi
18415
18416   fi
18417   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
18418 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
18419
18420     if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
18421
18422 for ac_func in _isnanl
18423 do
18424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18425 echo "$as_me:$LINENO: checking for $ac_func" >&5
18426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18427 if eval "test \"\${$as_ac_var+set}\" = set"; then
18428   echo $ECHO_N "(cached) $ECHO_C" >&6
18429 else
18430   if test x$gcc_no_link = xyes; then
18431   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18433    { (exit 1); exit 1; }; }
18434 fi
18435 cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h.  */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h.  */
18441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18443 #define $ac_func innocuous_$ac_func
18444
18445 /* System header to define __stub macros and hopefully few prototypes,
18446     which can conflict with char $ac_func (); below.
18447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18448     <limits.h> exists even on freestanding compilers.  */
18449
18450 #ifdef __STDC__
18451 # include <limits.h>
18452 #else
18453 # include <assert.h>
18454 #endif
18455
18456 #undef $ac_func
18457
18458 /* Override any gcc2 internal prototype to avoid an error.  */
18459 #ifdef __cplusplus
18460 extern "C"
18461 {
18462 #endif
18463 /* We use char because int might match the return type of a gcc2
18464    builtin and then its argument prototype would still apply.  */
18465 char $ac_func ();
18466 /* The GNU C library defines this for functions which it implements
18467     to always fail with ENOSYS.  Some functions are actually named
18468     something starting with __ and the normal name is an alias.  */
18469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18470 choke me
18471 #else
18472 char (*f) () = $ac_func;
18473 #endif
18474 #ifdef __cplusplus
18475 }
18476 #endif
18477
18478 int
18479 main ()
18480 {
18481 return f != $ac_func;
18482   ;
18483   return 0;
18484 }
18485 _ACEOF
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18488   (eval $ac_link) 2>conftest.er1
18489   ac_status=$?
18490   grep -v '^ *+' conftest.er1 >conftest.err
18491   rm -f conftest.er1
18492   cat conftest.err >&5
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); } &&
18495          { ac_try='test -z "$ac_c_werror_flag"
18496                          || test ! -s conftest.err'
18497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498   (eval $ac_try) 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; } &&
18502          { ac_try='test -s conftest$ac_exeext'
18503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504   (eval $ac_try) 2>&5
18505   ac_status=$?
18506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507   (exit $ac_status); }; }; then
18508   eval "$as_ac_var=yes"
18509 else
18510   echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18512
18513 eval "$as_ac_var=no"
18514 fi
18515 rm -f conftest.err conftest.$ac_objext \
18516       conftest$ac_exeext conftest.$ac_ext
18517 fi
18518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18520 if test `eval echo '${'$as_ac_var'}'` = yes; then
18521   cat >>confdefs.h <<_ACEOF
18522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18523 _ACEOF
18524
18525 fi
18526 done
18527
18528     fi
18529   fi
18530
18531
18532
18533   echo "$as_me:$LINENO: checking for isinfl declaration" >&5
18534 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
18535   if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
18536     if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
18537   echo $ECHO_N "(cached) $ECHO_C" >&6
18538 else
18539
18540
18541
18542       ac_ext=cc
18543 ac_cpp='$CXXCPP $CPPFLAGS'
18544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18547
18548       cat >conftest.$ac_ext <<_ACEOF
18549 /* confdefs.h.  */
18550 _ACEOF
18551 cat confdefs.h >>conftest.$ac_ext
18552 cat >>conftest.$ac_ext <<_ACEOF
18553 /* end confdefs.h.  */
18554 #include <math.h>
18555                       #ifdef HAVE_IEEEFP_H
18556                       #include <ieeefp.h>
18557                       #endif
18558
18559 int
18560 main ()
18561 {
18562  isinfl(0);
18563   ;
18564   return 0;
18565 }
18566 _ACEOF
18567 rm -f conftest.$ac_objext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18569   (eval $ac_compile) 2>conftest.er1
18570   ac_status=$?
18571   grep -v '^ *+' conftest.er1 >conftest.err
18572   rm -f conftest.er1
18573   cat conftest.err >&5
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); } &&
18576          { ac_try='test -z "$ac_cxx_werror_flag"
18577                          || test ! -s conftest.err'
18578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579   (eval $ac_try) 2>&5
18580   ac_status=$?
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); }; } &&
18583          { ac_try='test -s conftest.$ac_objext'
18584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585   (eval $ac_try) 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; }; then
18589   glibcxx_cv_func_isinfl_use=yes
18590 else
18591   echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18593
18594 glibcxx_cv_func_isinfl_use=no
18595 fi
18596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18597       ac_ext=c
18598 ac_cpp='$CPP $CPPFLAGS'
18599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18602
18603
18604 fi
18605
18606   fi
18607   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
18608 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
18609
18610   if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
18611
18612 for ac_func in isinfl
18613 do
18614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18615 echo "$as_me:$LINENO: checking for $ac_func" >&5
18616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18617 if eval "test \"\${$as_ac_var+set}\" = set"; then
18618   echo $ECHO_N "(cached) $ECHO_C" >&6
18619 else
18620   if test x$gcc_no_link = xyes; then
18621   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18623    { (exit 1); exit 1; }; }
18624 fi
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18633 #define $ac_func innocuous_$ac_func
18634
18635 /* System header to define __stub macros and hopefully few prototypes,
18636     which can conflict with char $ac_func (); below.
18637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18638     <limits.h> exists even on freestanding compilers.  */
18639
18640 #ifdef __STDC__
18641 # include <limits.h>
18642 #else
18643 # include <assert.h>
18644 #endif
18645
18646 #undef $ac_func
18647
18648 /* Override any gcc2 internal prototype to avoid an error.  */
18649 #ifdef __cplusplus
18650 extern "C"
18651 {
18652 #endif
18653 /* We use char because int might match the return type of a gcc2
18654    builtin and then its argument prototype would still apply.  */
18655 char $ac_func ();
18656 /* The GNU C library defines this for functions which it implements
18657     to always fail with ENOSYS.  Some functions are actually named
18658     something starting with __ and the normal name is an alias.  */
18659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18660 choke me
18661 #else
18662 char (*f) () = $ac_func;
18663 #endif
18664 #ifdef __cplusplus
18665 }
18666 #endif
18667
18668 int
18669 main ()
18670 {
18671 return f != $ac_func;
18672   ;
18673   return 0;
18674 }
18675 _ACEOF
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18678   (eval $ac_link) 2>conftest.er1
18679   ac_status=$?
18680   grep -v '^ *+' conftest.er1 >conftest.err
18681   rm -f conftest.er1
18682   cat conftest.err >&5
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); } &&
18685          { ac_try='test -z "$ac_c_werror_flag"
18686                          || test ! -s conftest.err'
18687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688   (eval $ac_try) 2>&5
18689   ac_status=$?
18690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); }; } &&
18692          { ac_try='test -s conftest$ac_exeext'
18693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694   (eval $ac_try) 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; }; then
18698   eval "$as_ac_var=yes"
18699 else
18700   echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18702
18703 eval "$as_ac_var=no"
18704 fi
18705 rm -f conftest.err conftest.$ac_objext \
18706       conftest$ac_exeext conftest.$ac_ext
18707 fi
18708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18710 if test `eval echo '${'$as_ac_var'}'` = yes; then
18711   cat >>confdefs.h <<_ACEOF
18712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18713 _ACEOF
18714
18715 fi
18716 done
18717
18718   else
18719
18720   echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
18721 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
18722   if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
18723     if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726
18727
18728
18729       ac_ext=cc
18730 ac_cpp='$CXXCPP $CPPFLAGS'
18731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18734
18735       cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h.  */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h.  */
18741 #include <math.h>
18742                       #ifdef HAVE_IEEEFP_H
18743                       #include <ieeefp.h>
18744                       #endif
18745
18746 int
18747 main ()
18748 {
18749  _isinfl(0);
18750   ;
18751   return 0;
18752 }
18753 _ACEOF
18754 rm -f conftest.$ac_objext
18755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18756   (eval $ac_compile) 2>conftest.er1
18757   ac_status=$?
18758   grep -v '^ *+' conftest.er1 >conftest.err
18759   rm -f conftest.er1
18760   cat conftest.err >&5
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } &&
18763          { ac_try='test -z "$ac_cxx_werror_flag"
18764                          || test ! -s conftest.err'
18765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766   (eval $ac_try) 2>&5
18767   ac_status=$?
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); }; } &&
18770          { ac_try='test -s conftest.$ac_objext'
18771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772   (eval $ac_try) 2>&5
18773   ac_status=$?
18774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775   (exit $ac_status); }; }; then
18776   glibcxx_cv_func__isinfl_use=yes
18777 else
18778   echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18780
18781 glibcxx_cv_func__isinfl_use=no
18782 fi
18783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18784       ac_ext=c
18785 ac_cpp='$CPP $CPPFLAGS'
18786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18789
18790
18791 fi
18792
18793   fi
18794   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
18795 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
18796
18797     if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
18798
18799 for ac_func in _isinfl
18800 do
18801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18802 echo "$as_me:$LINENO: checking for $ac_func" >&5
18803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18804 if eval "test \"\${$as_ac_var+set}\" = set"; then
18805   echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807   if test x$gcc_no_link = xyes; then
18808   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18810    { (exit 1); exit 1; }; }
18811 fi
18812 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h.  */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h.  */
18818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18820 #define $ac_func innocuous_$ac_func
18821
18822 /* System header to define __stub macros and hopefully few prototypes,
18823     which can conflict with char $ac_func (); below.
18824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18825     <limits.h> exists even on freestanding compilers.  */
18826
18827 #ifdef __STDC__
18828 # include <limits.h>
18829 #else
18830 # include <assert.h>
18831 #endif
18832
18833 #undef $ac_func
18834
18835 /* Override any gcc2 internal prototype to avoid an error.  */
18836 #ifdef __cplusplus
18837 extern "C"
18838 {
18839 #endif
18840 /* We use char because int might match the return type of a gcc2
18841    builtin and then its argument prototype would still apply.  */
18842 char $ac_func ();
18843 /* The GNU C library defines this for functions which it implements
18844     to always fail with ENOSYS.  Some functions are actually named
18845     something starting with __ and the normal name is an alias.  */
18846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18847 choke me
18848 #else
18849 char (*f) () = $ac_func;
18850 #endif
18851 #ifdef __cplusplus
18852 }
18853 #endif
18854
18855 int
18856 main ()
18857 {
18858 return f != $ac_func;
18859   ;
18860   return 0;
18861 }
18862 _ACEOF
18863 rm -f conftest.$ac_objext conftest$ac_exeext
18864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18865   (eval $ac_link) 2>conftest.er1
18866   ac_status=$?
18867   grep -v '^ *+' conftest.er1 >conftest.err
18868   rm -f conftest.er1
18869   cat conftest.err >&5
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); } &&
18872          { ac_try='test -z "$ac_c_werror_flag"
18873                          || test ! -s conftest.err'
18874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875   (eval $ac_try) 2>&5
18876   ac_status=$?
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); }; } &&
18879          { ac_try='test -s conftest$ac_exeext'
18880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881   (eval $ac_try) 2>&5
18882   ac_status=$?
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); }; }; then
18885   eval "$as_ac_var=yes"
18886 else
18887   echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18889
18890 eval "$as_ac_var=no"
18891 fi
18892 rm -f conftest.err conftest.$ac_objext \
18893       conftest$ac_exeext conftest.$ac_ext
18894 fi
18895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18897 if test `eval echo '${'$as_ac_var'}'` = yes; then
18898   cat >>confdefs.h <<_ACEOF
18899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18900 _ACEOF
18901
18902 fi
18903 done
18904
18905     fi
18906   fi
18907
18908
18909
18910   echo "$as_me:$LINENO: checking for copysignl declaration" >&5
18911 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
18912   if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
18913     if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
18914   echo $ECHO_N "(cached) $ECHO_C" >&6
18915 else
18916
18917
18918
18919       ac_ext=cc
18920 ac_cpp='$CXXCPP $CPPFLAGS'
18921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18924
18925       cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h.  */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h.  */
18931 #include <math.h>
18932 int
18933 main ()
18934 {
18935  copysignl(0, 0);
18936   ;
18937   return 0;
18938 }
18939 _ACEOF
18940 rm -f conftest.$ac_objext
18941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942   (eval $ac_compile) 2>conftest.er1
18943   ac_status=$?
18944   grep -v '^ *+' conftest.er1 >conftest.err
18945   rm -f conftest.er1
18946   cat conftest.err >&5
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); } &&
18949          { ac_try='test -z "$ac_cxx_werror_flag"
18950                          || test ! -s conftest.err'
18951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952   (eval $ac_try) 2>&5
18953   ac_status=$?
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); }; } &&
18956          { ac_try='test -s conftest.$ac_objext'
18957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958   (eval $ac_try) 2>&5
18959   ac_status=$?
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); }; }; then
18962   glibcxx_cv_func_copysignl_use=yes
18963 else
18964   echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18966
18967 glibcxx_cv_func_copysignl_use=no
18968 fi
18969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18970       ac_ext=c
18971 ac_cpp='$CPP $CPPFLAGS'
18972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18975
18976
18977 fi
18978
18979   fi
18980   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
18981 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
18982
18983   if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
18984
18985 for ac_func in copysignl
18986 do
18987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18988 echo "$as_me:$LINENO: checking for $ac_func" >&5
18989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18990 if eval "test \"\${$as_ac_var+set}\" = set"; then
18991   echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993   if test x$gcc_no_link = xyes; then
18994   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18996    { (exit 1); exit 1; }; }
18997 fi
18998 cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h.  */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h.  */
19004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19006 #define $ac_func innocuous_$ac_func
19007
19008 /* System header to define __stub macros and hopefully few prototypes,
19009     which can conflict with char $ac_func (); below.
19010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19011     <limits.h> exists even on freestanding compilers.  */
19012
19013 #ifdef __STDC__
19014 # include <limits.h>
19015 #else
19016 # include <assert.h>
19017 #endif
19018
19019 #undef $ac_func
19020
19021 /* Override any gcc2 internal prototype to avoid an error.  */
19022 #ifdef __cplusplus
19023 extern "C"
19024 {
19025 #endif
19026 /* We use char because int might match the return type of a gcc2
19027    builtin and then its argument prototype would still apply.  */
19028 char $ac_func ();
19029 /* The GNU C library defines this for functions which it implements
19030     to always fail with ENOSYS.  Some functions are actually named
19031     something starting with __ and the normal name is an alias.  */
19032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19033 choke me
19034 #else
19035 char (*f) () = $ac_func;
19036 #endif
19037 #ifdef __cplusplus
19038 }
19039 #endif
19040
19041 int
19042 main ()
19043 {
19044 return f != $ac_func;
19045   ;
19046   return 0;
19047 }
19048 _ACEOF
19049 rm -f conftest.$ac_objext conftest$ac_exeext
19050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19051   (eval $ac_link) 2>conftest.er1
19052   ac_status=$?
19053   grep -v '^ *+' conftest.er1 >conftest.err
19054   rm -f conftest.er1
19055   cat conftest.err >&5
19056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); } &&
19058          { ac_try='test -z "$ac_c_werror_flag"
19059                          || test ! -s conftest.err'
19060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061   (eval $ac_try) 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); }; } &&
19065          { ac_try='test -s conftest$ac_exeext'
19066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067   (eval $ac_try) 2>&5
19068   ac_status=$?
19069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070   (exit $ac_status); }; }; then
19071   eval "$as_ac_var=yes"
19072 else
19073   echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19075
19076 eval "$as_ac_var=no"
19077 fi
19078 rm -f conftest.err conftest.$ac_objext \
19079       conftest$ac_exeext conftest.$ac_ext
19080 fi
19081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19083 if test `eval echo '${'$as_ac_var'}'` = yes; then
19084   cat >>confdefs.h <<_ACEOF
19085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19086 _ACEOF
19087
19088 fi
19089 done
19090
19091   else
19092
19093   echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
19094 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
19095   if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
19096     if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
19097   echo $ECHO_N "(cached) $ECHO_C" >&6
19098 else
19099
19100
19101
19102       ac_ext=cc
19103 ac_cpp='$CXXCPP $CPPFLAGS'
19104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19107
19108       cat >conftest.$ac_ext <<_ACEOF
19109 /* confdefs.h.  */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h.  */
19114 #include <math.h>
19115 int
19116 main ()
19117 {
19118  _copysignl(0, 0);
19119   ;
19120   return 0;
19121 }
19122 _ACEOF
19123 rm -f conftest.$ac_objext
19124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19125   (eval $ac_compile) 2>conftest.er1
19126   ac_status=$?
19127   grep -v '^ *+' conftest.er1 >conftest.err
19128   rm -f conftest.er1
19129   cat conftest.err >&5
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); } &&
19132          { ac_try='test -z "$ac_cxx_werror_flag"
19133                          || test ! -s conftest.err'
19134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135   (eval $ac_try) 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); }; } &&
19139          { ac_try='test -s conftest.$ac_objext'
19140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141   (eval $ac_try) 2>&5
19142   ac_status=$?
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); }; }; then
19145   glibcxx_cv_func__copysignl_use=yes
19146 else
19147   echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 glibcxx_cv_func__copysignl_use=no
19151 fi
19152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19153       ac_ext=c
19154 ac_cpp='$CPP $CPPFLAGS'
19155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19158
19159
19160 fi
19161
19162   fi
19163   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
19164 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
19165
19166     if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
19167
19168 for ac_func in _copysignl
19169 do
19170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19171 echo "$as_me:$LINENO: checking for $ac_func" >&5
19172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19173 if eval "test \"\${$as_ac_var+set}\" = set"; then
19174   echo $ECHO_N "(cached) $ECHO_C" >&6
19175 else
19176   if test x$gcc_no_link = xyes; then
19177   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19179    { (exit 1); exit 1; }; }
19180 fi
19181 cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19189 #define $ac_func innocuous_$ac_func
19190
19191 /* System header to define __stub macros and hopefully few prototypes,
19192     which can conflict with char $ac_func (); below.
19193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19194     <limits.h> exists even on freestanding compilers.  */
19195
19196 #ifdef __STDC__
19197 # include <limits.h>
19198 #else
19199 # include <assert.h>
19200 #endif
19201
19202 #undef $ac_func
19203
19204 /* Override any gcc2 internal prototype to avoid an error.  */
19205 #ifdef __cplusplus
19206 extern "C"
19207 {
19208 #endif
19209 /* We use char because int might match the return type of a gcc2
19210    builtin and then its argument prototype would still apply.  */
19211 char $ac_func ();
19212 /* The GNU C library defines this for functions which it implements
19213     to always fail with ENOSYS.  Some functions are actually named
19214     something starting with __ and the normal name is an alias.  */
19215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19216 choke me
19217 #else
19218 char (*f) () = $ac_func;
19219 #endif
19220 #ifdef __cplusplus
19221 }
19222 #endif
19223
19224 int
19225 main ()
19226 {
19227 return f != $ac_func;
19228   ;
19229   return 0;
19230 }
19231 _ACEOF
19232 rm -f conftest.$ac_objext conftest$ac_exeext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19234   (eval $ac_link) 2>conftest.er1
19235   ac_status=$?
19236   grep -v '^ *+' conftest.er1 >conftest.err
19237   rm -f conftest.er1
19238   cat conftest.err >&5
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); } &&
19241          { ac_try='test -z "$ac_c_werror_flag"
19242                          || test ! -s conftest.err'
19243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244   (eval $ac_try) 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); }; } &&
19248          { ac_try='test -s conftest$ac_exeext'
19249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250   (eval $ac_try) 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); }; }; then
19254   eval "$as_ac_var=yes"
19255 else
19256   echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259 eval "$as_ac_var=no"
19260 fi
19261 rm -f conftest.err conftest.$ac_objext \
19262       conftest$ac_exeext conftest.$ac_ext
19263 fi
19264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19266 if test `eval echo '${'$as_ac_var'}'` = yes; then
19267   cat >>confdefs.h <<_ACEOF
19268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19269 _ACEOF
19270
19271 fi
19272 done
19273
19274     fi
19275   fi
19276
19277
19278
19279   echo "$as_me:$LINENO: checking for atan2l declaration" >&5
19280 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
19281   if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
19282     if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
19283   echo $ECHO_N "(cached) $ECHO_C" >&6
19284 else
19285
19286
19287
19288       ac_ext=cc
19289 ac_cpp='$CXXCPP $CPPFLAGS'
19290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19293
19294       cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h.  */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h.  */
19300 #include <math.h>
19301 int
19302 main ()
19303 {
19304  atan2l(0, 0);
19305   ;
19306   return 0;
19307 }
19308 _ACEOF
19309 rm -f conftest.$ac_objext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311   (eval $ac_compile) 2>conftest.er1
19312   ac_status=$?
19313   grep -v '^ *+' conftest.er1 >conftest.err
19314   rm -f conftest.er1
19315   cat conftest.err >&5
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); } &&
19318          { ac_try='test -z "$ac_cxx_werror_flag"
19319                          || test ! -s conftest.err'
19320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321   (eval $ac_try) 2>&5
19322   ac_status=$?
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); }; } &&
19325          { ac_try='test -s conftest.$ac_objext'
19326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327   (eval $ac_try) 2>&5
19328   ac_status=$?
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); }; }; then
19331   glibcxx_cv_func_atan2l_use=yes
19332 else
19333   echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19335
19336 glibcxx_cv_func_atan2l_use=no
19337 fi
19338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19339       ac_ext=c
19340 ac_cpp='$CPP $CPPFLAGS'
19341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19344
19345
19346 fi
19347
19348   fi
19349   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
19350 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
19351
19352   if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
19353
19354 for ac_func in atan2l
19355 do
19356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19357 echo "$as_me:$LINENO: checking for $ac_func" >&5
19358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19359 if eval "test \"\${$as_ac_var+set}\" = set"; then
19360   echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362   if test x$gcc_no_link = xyes; then
19363   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19364 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19365    { (exit 1); exit 1; }; }
19366 fi
19367 cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19375 #define $ac_func innocuous_$ac_func
19376
19377 /* System header to define __stub macros and hopefully few prototypes,
19378     which can conflict with char $ac_func (); below.
19379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19380     <limits.h> exists even on freestanding compilers.  */
19381
19382 #ifdef __STDC__
19383 # include <limits.h>
19384 #else
19385 # include <assert.h>
19386 #endif
19387
19388 #undef $ac_func
19389
19390 /* Override any gcc2 internal prototype to avoid an error.  */
19391 #ifdef __cplusplus
19392 extern "C"
19393 {
19394 #endif
19395 /* We use char because int might match the return type of a gcc2
19396    builtin and then its argument prototype would still apply.  */
19397 char $ac_func ();
19398 /* The GNU C library defines this for functions which it implements
19399     to always fail with ENOSYS.  Some functions are actually named
19400     something starting with __ and the normal name is an alias.  */
19401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19402 choke me
19403 #else
19404 char (*f) () = $ac_func;
19405 #endif
19406 #ifdef __cplusplus
19407 }
19408 #endif
19409
19410 int
19411 main ()
19412 {
19413 return f != $ac_func;
19414   ;
19415   return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19420   (eval $ac_link) 2>conftest.er1
19421   ac_status=$?
19422   grep -v '^ *+' conftest.er1 >conftest.err
19423   rm -f conftest.er1
19424   cat conftest.err >&5
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); } &&
19427          { ac_try='test -z "$ac_c_werror_flag"
19428                          || test ! -s conftest.err'
19429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430   (eval $ac_try) 2>&5
19431   ac_status=$?
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); }; } &&
19434          { ac_try='test -s conftest$ac_exeext'
19435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436   (eval $ac_try) 2>&5
19437   ac_status=$?
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); }; }; then
19440   eval "$as_ac_var=yes"
19441 else
19442   echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445 eval "$as_ac_var=no"
19446 fi
19447 rm -f conftest.err conftest.$ac_objext \
19448       conftest$ac_exeext conftest.$ac_ext
19449 fi
19450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19452 if test `eval echo '${'$as_ac_var'}'` = yes; then
19453   cat >>confdefs.h <<_ACEOF
19454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19455 _ACEOF
19456
19457 fi
19458 done
19459
19460   else
19461
19462   echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
19463 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
19464   if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
19465     if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
19466   echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468
19469
19470
19471       ac_ext=cc
19472 ac_cpp='$CXXCPP $CPPFLAGS'
19473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19476
19477       cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483 #include <math.h>
19484 int
19485 main ()
19486 {
19487  _atan2l(0, 0);
19488   ;
19489   return 0;
19490 }
19491 _ACEOF
19492 rm -f conftest.$ac_objext
19493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19494   (eval $ac_compile) 2>conftest.er1
19495   ac_status=$?
19496   grep -v '^ *+' conftest.er1 >conftest.err
19497   rm -f conftest.er1
19498   cat conftest.err >&5
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); } &&
19501          { ac_try='test -z "$ac_cxx_werror_flag"
19502                          || test ! -s conftest.err'
19503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504   (eval $ac_try) 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); }; } &&
19508          { ac_try='test -s conftest.$ac_objext'
19509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510   (eval $ac_try) 2>&5
19511   ac_status=$?
19512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513   (exit $ac_status); }; }; then
19514   glibcxx_cv_func__atan2l_use=yes
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 glibcxx_cv_func__atan2l_use=no
19520 fi
19521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19522       ac_ext=c
19523 ac_cpp='$CPP $CPPFLAGS'
19524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19527
19528
19529 fi
19530
19531   fi
19532   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
19533 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
19534
19535     if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
19536
19537 for ac_func in _atan2l
19538 do
19539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19540 echo "$as_me:$LINENO: checking for $ac_func" >&5
19541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19542 if eval "test \"\${$as_ac_var+set}\" = set"; then
19543   echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545   if test x$gcc_no_link = xyes; then
19546   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19548    { (exit 1); exit 1; }; }
19549 fi
19550 cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h.  */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h.  */
19556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19558 #define $ac_func innocuous_$ac_func
19559
19560 /* System header to define __stub macros and hopefully few prototypes,
19561     which can conflict with char $ac_func (); below.
19562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19563     <limits.h> exists even on freestanding compilers.  */
19564
19565 #ifdef __STDC__
19566 # include <limits.h>
19567 #else
19568 # include <assert.h>
19569 #endif
19570
19571 #undef $ac_func
19572
19573 /* Override any gcc2 internal prototype to avoid an error.  */
19574 #ifdef __cplusplus
19575 extern "C"
19576 {
19577 #endif
19578 /* We use char because int might match the return type of a gcc2
19579    builtin and then its argument prototype would still apply.  */
19580 char $ac_func ();
19581 /* The GNU C library defines this for functions which it implements
19582     to always fail with ENOSYS.  Some functions are actually named
19583     something starting with __ and the normal name is an alias.  */
19584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19585 choke me
19586 #else
19587 char (*f) () = $ac_func;
19588 #endif
19589 #ifdef __cplusplus
19590 }
19591 #endif
19592
19593 int
19594 main ()
19595 {
19596 return f != $ac_func;
19597   ;
19598   return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext conftest$ac_exeext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19603   (eval $ac_link) 2>conftest.er1
19604   ac_status=$?
19605   grep -v '^ *+' conftest.er1 >conftest.err
19606   rm -f conftest.er1
19607   cat conftest.err >&5
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); } &&
19610          { ac_try='test -z "$ac_c_werror_flag"
19611                          || test ! -s conftest.err'
19612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613   (eval $ac_try) 2>&5
19614   ac_status=$?
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); }; } &&
19617          { ac_try='test -s conftest$ac_exeext'
19618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619   (eval $ac_try) 2>&5
19620   ac_status=$?
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); }; }; then
19623   eval "$as_ac_var=yes"
19624 else
19625   echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19627
19628 eval "$as_ac_var=no"
19629 fi
19630 rm -f conftest.err conftest.$ac_objext \
19631       conftest$ac_exeext conftest.$ac_ext
19632 fi
19633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19635 if test `eval echo '${'$as_ac_var'}'` = yes; then
19636   cat >>confdefs.h <<_ACEOF
19637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19638 _ACEOF
19639
19640 fi
19641 done
19642
19643     fi
19644   fi
19645
19646
19647
19648   echo "$as_me:$LINENO: checking for expl declaration" >&5
19649 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
19650   if test x${glibcxx_cv_func_expl_use+set} != xset; then
19651     if test "${glibcxx_cv_func_expl_use+set}" = set; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654
19655
19656
19657       ac_ext=cc
19658 ac_cpp='$CXXCPP $CPPFLAGS'
19659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19662
19663       cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h.  */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h.  */
19669 #include <math.h>
19670                       #ifdef HAVE_IEEEFP_H
19671                       #include <ieeefp.h>
19672                       #endif
19673
19674 int
19675 main ()
19676 {
19677  expl(0);
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext
19683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19684   (eval $ac_compile) 2>conftest.er1
19685   ac_status=$?
19686   grep -v '^ *+' conftest.er1 >conftest.err
19687   rm -f conftest.er1
19688   cat conftest.err >&5
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); } &&
19691          { ac_try='test -z "$ac_cxx_werror_flag"
19692                          || test ! -s conftest.err'
19693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694   (eval $ac_try) 2>&5
19695   ac_status=$?
19696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); }; } &&
19698          { ac_try='test -s conftest.$ac_objext'
19699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700   (eval $ac_try) 2>&5
19701   ac_status=$?
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); }; }; then
19704   glibcxx_cv_func_expl_use=yes
19705 else
19706   echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19708
19709 glibcxx_cv_func_expl_use=no
19710 fi
19711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19712       ac_ext=c
19713 ac_cpp='$CPP $CPPFLAGS'
19714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19717
19718
19719 fi
19720
19721   fi
19722   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
19723 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
19724
19725   if test x$glibcxx_cv_func_expl_use = x"yes"; then
19726
19727 for ac_func in expl
19728 do
19729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19730 echo "$as_me:$LINENO: checking for $ac_func" >&5
19731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19732 if eval "test \"\${$as_ac_var+set}\" = set"; then
19733   echo $ECHO_N "(cached) $ECHO_C" >&6
19734 else
19735   if test x$gcc_no_link = xyes; then
19736   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19738    { (exit 1); exit 1; }; }
19739 fi
19740 cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h.  */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h.  */
19746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19748 #define $ac_func innocuous_$ac_func
19749
19750 /* System header to define __stub macros and hopefully few prototypes,
19751     which can conflict with char $ac_func (); below.
19752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19753     <limits.h> exists even on freestanding compilers.  */
19754
19755 #ifdef __STDC__
19756 # include <limits.h>
19757 #else
19758 # include <assert.h>
19759 #endif
19760
19761 #undef $ac_func
19762
19763 /* Override any gcc2 internal prototype to avoid an error.  */
19764 #ifdef __cplusplus
19765 extern "C"
19766 {
19767 #endif
19768 /* We use char because int might match the return type of a gcc2
19769    builtin and then its argument prototype would still apply.  */
19770 char $ac_func ();
19771 /* The GNU C library defines this for functions which it implements
19772     to always fail with ENOSYS.  Some functions are actually named
19773     something starting with __ and the normal name is an alias.  */
19774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19775 choke me
19776 #else
19777 char (*f) () = $ac_func;
19778 #endif
19779 #ifdef __cplusplus
19780 }
19781 #endif
19782
19783 int
19784 main ()
19785 {
19786 return f != $ac_func;
19787   ;
19788   return 0;
19789 }
19790 _ACEOF
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19793   (eval $ac_link) 2>conftest.er1
19794   ac_status=$?
19795   grep -v '^ *+' conftest.er1 >conftest.err
19796   rm -f conftest.er1
19797   cat conftest.err >&5
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); } &&
19800          { ac_try='test -z "$ac_c_werror_flag"
19801                          || test ! -s conftest.err'
19802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803   (eval $ac_try) 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); }; } &&
19807          { ac_try='test -s conftest$ac_exeext'
19808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809   (eval $ac_try) 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }; }; then
19813   eval "$as_ac_var=yes"
19814 else
19815   echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 eval "$as_ac_var=no"
19819 fi
19820 rm -f conftest.err conftest.$ac_objext \
19821       conftest$ac_exeext conftest.$ac_ext
19822 fi
19823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19825 if test `eval echo '${'$as_ac_var'}'` = yes; then
19826   cat >>confdefs.h <<_ACEOF
19827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19828 _ACEOF
19829
19830 fi
19831 done
19832
19833   else
19834
19835   echo "$as_me:$LINENO: checking for _expl declaration" >&5
19836 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
19837   if test x${glibcxx_cv_func__expl_use+set} != xset; then
19838     if test "${glibcxx_cv_func__expl_use+set}" = set; then
19839   echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841
19842
19843
19844       ac_ext=cc
19845 ac_cpp='$CXXCPP $CPPFLAGS'
19846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19849
19850       cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h.  */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h.  */
19856 #include <math.h>
19857                       #ifdef HAVE_IEEEFP_H
19858                       #include <ieeefp.h>
19859                       #endif
19860
19861 int
19862 main ()
19863 {
19864  _expl(0);
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19871   (eval $ac_compile) 2>conftest.er1
19872   ac_status=$?
19873   grep -v '^ *+' conftest.er1 >conftest.err
19874   rm -f conftest.er1
19875   cat conftest.err >&5
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } &&
19878          { ac_try='test -z "$ac_cxx_werror_flag"
19879                          || test ! -s conftest.err'
19880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881   (eval $ac_try) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; } &&
19885          { ac_try='test -s conftest.$ac_objext'
19886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887   (eval $ac_try) 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; }; then
19891   glibcxx_cv_func__expl_use=yes
19892 else
19893   echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 glibcxx_cv_func__expl_use=no
19897 fi
19898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19899       ac_ext=c
19900 ac_cpp='$CPP $CPPFLAGS'
19901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19904
19905
19906 fi
19907
19908   fi
19909   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
19910 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
19911
19912     if test x$glibcxx_cv_func__expl_use = x"yes"; then
19913
19914 for ac_func in _expl
19915 do
19916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19917 echo "$as_me:$LINENO: checking for $ac_func" >&5
19918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19919 if eval "test \"\${$as_ac_var+set}\" = set"; then
19920   echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922   if test x$gcc_no_link = xyes; then
19923   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19924 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19925    { (exit 1); exit 1; }; }
19926 fi
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19935 #define $ac_func innocuous_$ac_func
19936
19937 /* System header to define __stub macros and hopefully few prototypes,
19938     which can conflict with char $ac_func (); below.
19939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19940     <limits.h> exists even on freestanding compilers.  */
19941
19942 #ifdef __STDC__
19943 # include <limits.h>
19944 #else
19945 # include <assert.h>
19946 #endif
19947
19948 #undef $ac_func
19949
19950 /* Override any gcc2 internal prototype to avoid an error.  */
19951 #ifdef __cplusplus
19952 extern "C"
19953 {
19954 #endif
19955 /* We use char because int might match the return type of a gcc2
19956    builtin and then its argument prototype would still apply.  */
19957 char $ac_func ();
19958 /* The GNU C library defines this for functions which it implements
19959     to always fail with ENOSYS.  Some functions are actually named
19960     something starting with __ and the normal name is an alias.  */
19961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19962 choke me
19963 #else
19964 char (*f) () = $ac_func;
19965 #endif
19966 #ifdef __cplusplus
19967 }
19968 #endif
19969
19970 int
19971 main ()
19972 {
19973 return f != $ac_func;
19974   ;
19975   return 0;
19976 }
19977 _ACEOF
19978 rm -f conftest.$ac_objext conftest$ac_exeext
19979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19980   (eval $ac_link) 2>conftest.er1
19981   ac_status=$?
19982   grep -v '^ *+' conftest.er1 >conftest.err
19983   rm -f conftest.er1
19984   cat conftest.err >&5
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); } &&
19987          { ac_try='test -z "$ac_c_werror_flag"
19988                          || test ! -s conftest.err'
19989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990   (eval $ac_try) 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.err conftest.$ac_objext \
20008       conftest$ac_exeext conftest.$ac_ext
20009 fi
20010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20012 if test `eval echo '${'$as_ac_var'}'` = yes; then
20013   cat >>confdefs.h <<_ACEOF
20014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20015 _ACEOF
20016
20017 fi
20018 done
20019
20020     fi
20021   fi
20022
20023
20024
20025   echo "$as_me:$LINENO: checking for fabsl declaration" >&5
20026 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
20027   if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
20028     if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
20029   echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031
20032
20033
20034       ac_ext=cc
20035 ac_cpp='$CXXCPP $CPPFLAGS'
20036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20039
20040       cat >conftest.$ac_ext <<_ACEOF
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                       #ifdef HAVE_IEEEFP_H
20048                       #include <ieeefp.h>
20049                       #endif
20050
20051 int
20052 main ()
20053 {
20054  fabsl(0);
20055   ;
20056   return 0;
20057 }
20058 _ACEOF
20059 rm -f conftest.$ac_objext
20060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20061   (eval $ac_compile) 2>conftest.er1
20062   ac_status=$?
20063   grep -v '^ *+' conftest.er1 >conftest.err
20064   rm -f conftest.er1
20065   cat conftest.err >&5
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); } &&
20068          { ac_try='test -z "$ac_cxx_werror_flag"
20069                          || test ! -s conftest.err'
20070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071   (eval $ac_try) 2>&5
20072   ac_status=$?
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); }; } &&
20075          { ac_try='test -s conftest.$ac_objext'
20076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077   (eval $ac_try) 2>&5
20078   ac_status=$?
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); }; }; then
20081   glibcxx_cv_func_fabsl_use=yes
20082 else
20083   echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20085
20086 glibcxx_cv_func_fabsl_use=no
20087 fi
20088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20089       ac_ext=c
20090 ac_cpp='$CPP $CPPFLAGS'
20091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20094
20095
20096 fi
20097
20098   fi
20099   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
20100 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
20101
20102   if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
20103
20104 for ac_func in fabsl
20105 do
20106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107 echo "$as_me:$LINENO: checking for $ac_func" >&5
20108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20109 if eval "test \"\${$as_ac_var+set}\" = set"; then
20110   echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112   if test x$gcc_no_link = xyes; then
20113   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20115    { (exit 1); exit 1; }; }
20116 fi
20117 cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h.  */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h.  */
20123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20125 #define $ac_func innocuous_$ac_func
20126
20127 /* System header to define __stub macros and hopefully few prototypes,
20128     which can conflict with char $ac_func (); below.
20129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20130     <limits.h> exists even on freestanding compilers.  */
20131
20132 #ifdef __STDC__
20133 # include <limits.h>
20134 #else
20135 # include <assert.h>
20136 #endif
20137
20138 #undef $ac_func
20139
20140 /* Override any gcc2 internal prototype to avoid an error.  */
20141 #ifdef __cplusplus
20142 extern "C"
20143 {
20144 #endif
20145 /* We use char because int might match the return type of a gcc2
20146    builtin and then its argument prototype would still apply.  */
20147 char $ac_func ();
20148 /* The GNU C library defines this for functions which it implements
20149     to always fail with ENOSYS.  Some functions are actually named
20150     something starting with __ and the normal name is an alias.  */
20151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20152 choke me
20153 #else
20154 char (*f) () = $ac_func;
20155 #endif
20156 #ifdef __cplusplus
20157 }
20158 #endif
20159
20160 int
20161 main ()
20162 {
20163 return f != $ac_func;
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170   (eval $ac_link) 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } &&
20177          { ac_try='test -z "$ac_c_werror_flag"
20178                          || test ! -s conftest.err'
20179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180   (eval $ac_try) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; } &&
20184          { ac_try='test -s conftest$ac_exeext'
20185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186   (eval $ac_try) 2>&5
20187   ac_status=$?
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); }; }; then
20190   eval "$as_ac_var=yes"
20191 else
20192   echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 eval "$as_ac_var=no"
20196 fi
20197 rm -f conftest.err conftest.$ac_objext \
20198       conftest$ac_exeext conftest.$ac_ext
20199 fi
20200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20202 if test `eval echo '${'$as_ac_var'}'` = yes; then
20203   cat >>confdefs.h <<_ACEOF
20204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20205 _ACEOF
20206
20207 fi
20208 done
20209
20210   else
20211
20212   echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
20213 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
20214   if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
20215     if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
20216   echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218
20219
20220
20221       ac_ext=cc
20222 ac_cpp='$CXXCPP $CPPFLAGS'
20223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20226
20227       cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 #include <math.h>
20234                       #ifdef HAVE_IEEEFP_H
20235                       #include <ieeefp.h>
20236                       #endif
20237
20238 int
20239 main ()
20240 {
20241  _fabsl(0);
20242   ;
20243   return 0;
20244 }
20245 _ACEOF
20246 rm -f conftest.$ac_objext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20248   (eval $ac_compile) 2>conftest.er1
20249   ac_status=$?
20250   grep -v '^ *+' conftest.er1 >conftest.err
20251   rm -f conftest.er1
20252   cat conftest.err >&5
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); } &&
20255          { ac_try='test -z "$ac_cxx_werror_flag"
20256                          || test ! -s conftest.err'
20257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258   (eval $ac_try) 2>&5
20259   ac_status=$?
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }; } &&
20262          { ac_try='test -s conftest.$ac_objext'
20263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264   (eval $ac_try) 2>&5
20265   ac_status=$?
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); }; }; then
20268   glibcxx_cv_func__fabsl_use=yes
20269 else
20270   echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273 glibcxx_cv_func__fabsl_use=no
20274 fi
20275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20276       ac_ext=c
20277 ac_cpp='$CPP $CPPFLAGS'
20278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20281
20282
20283 fi
20284
20285   fi
20286   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
20287 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
20288
20289     if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
20290
20291 for ac_func in _fabsl
20292 do
20293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20294 echo "$as_me:$LINENO: checking for $ac_func" >&5
20295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20296 if eval "test \"\${$as_ac_var+set}\" = set"; then
20297   echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299   if test x$gcc_no_link = xyes; then
20300   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20301 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20302    { (exit 1); exit 1; }; }
20303 fi
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20312 #define $ac_func innocuous_$ac_func
20313
20314 /* System header to define __stub macros and hopefully few prototypes,
20315     which can conflict with char $ac_func (); below.
20316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20317     <limits.h> exists even on freestanding compilers.  */
20318
20319 #ifdef __STDC__
20320 # include <limits.h>
20321 #else
20322 # include <assert.h>
20323 #endif
20324
20325 #undef $ac_func
20326
20327 /* Override any gcc2 internal prototype to avoid an error.  */
20328 #ifdef __cplusplus
20329 extern "C"
20330 {
20331 #endif
20332 /* We use char because int might match the return type of a gcc2
20333    builtin and then its argument prototype would still apply.  */
20334 char $ac_func ();
20335 /* The GNU C library defines this for functions which it implements
20336     to always fail with ENOSYS.  Some functions are actually named
20337     something starting with __ and the normal name is an alias.  */
20338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20339 choke me
20340 #else
20341 char (*f) () = $ac_func;
20342 #endif
20343 #ifdef __cplusplus
20344 }
20345 #endif
20346
20347 int
20348 main ()
20349 {
20350 return f != $ac_func;
20351   ;
20352   return 0;
20353 }
20354 _ACEOF
20355 rm -f conftest.$ac_objext conftest$ac_exeext
20356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20357   (eval $ac_link) 2>conftest.er1
20358   ac_status=$?
20359   grep -v '^ *+' conftest.er1 >conftest.err
20360   rm -f conftest.er1
20361   cat conftest.err >&5
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); } &&
20364          { ac_try='test -z "$ac_c_werror_flag"
20365                          || test ! -s conftest.err'
20366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367   (eval $ac_try) 2>&5
20368   ac_status=$?
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); }; } &&
20371          { ac_try='test -s conftest$ac_exeext'
20372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373   (eval $ac_try) 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; }; then
20377   eval "$as_ac_var=yes"
20378 else
20379   echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 eval "$as_ac_var=no"
20383 fi
20384 rm -f conftest.err conftest.$ac_objext \
20385       conftest$ac_exeext conftest.$ac_ext
20386 fi
20387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20389 if test `eval echo '${'$as_ac_var'}'` = yes; then
20390   cat >>confdefs.h <<_ACEOF
20391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20392 _ACEOF
20393
20394 fi
20395 done
20396
20397     fi
20398   fi
20399
20400
20401
20402   echo "$as_me:$LINENO: checking for fmodl declaration" >&5
20403 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
20404   if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
20405     if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
20406   echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20408
20409
20410
20411       ac_ext=cc
20412 ac_cpp='$CXXCPP $CPPFLAGS'
20413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20416
20417       cat >conftest.$ac_ext <<_ACEOF
20418 /* confdefs.h.  */
20419 _ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h.  */
20423 #include <math.h>
20424 int
20425 main ()
20426 {
20427  fmodl(0, 0);
20428   ;
20429   return 0;
20430 }
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20434   (eval $ac_compile) 2>conftest.er1
20435   ac_status=$?
20436   grep -v '^ *+' conftest.er1 >conftest.err
20437   rm -f conftest.er1
20438   cat conftest.err >&5
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); } &&
20441          { ac_try='test -z "$ac_cxx_werror_flag"
20442                          || test ! -s conftest.err'
20443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444   (eval $ac_try) 2>&5
20445   ac_status=$?
20446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447   (exit $ac_status); }; } &&
20448          { ac_try='test -s conftest.$ac_objext'
20449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450   (eval $ac_try) 2>&5
20451   ac_status=$?
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); }; }; then
20454   glibcxx_cv_func_fmodl_use=yes
20455 else
20456   echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 glibcxx_cv_func_fmodl_use=no
20460 fi
20461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20462       ac_ext=c
20463 ac_cpp='$CPP $CPPFLAGS'
20464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20467
20468
20469 fi
20470
20471   fi
20472   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
20473 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
20474
20475   if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
20476
20477 for ac_func in fmodl
20478 do
20479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20480 echo "$as_me:$LINENO: checking for $ac_func" >&5
20481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20482 if eval "test \"\${$as_ac_var+set}\" = set"; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485   if test x$gcc_no_link = xyes; then
20486   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20488    { (exit 1); exit 1; }; }
20489 fi
20490 cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h.  */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h.  */
20496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20498 #define $ac_func innocuous_$ac_func
20499
20500 /* System header to define __stub macros and hopefully few prototypes,
20501     which can conflict with char $ac_func (); below.
20502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20503     <limits.h> exists even on freestanding compilers.  */
20504
20505 #ifdef __STDC__
20506 # include <limits.h>
20507 #else
20508 # include <assert.h>
20509 #endif
20510
20511 #undef $ac_func
20512
20513 /* Override any gcc2 internal prototype to avoid an error.  */
20514 #ifdef __cplusplus
20515 extern "C"
20516 {
20517 #endif
20518 /* We use char because int might match the return type of a gcc2
20519    builtin and then its argument prototype would still apply.  */
20520 char $ac_func ();
20521 /* The GNU C library defines this for functions which it implements
20522     to always fail with ENOSYS.  Some functions are actually named
20523     something starting with __ and the normal name is an alias.  */
20524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20525 choke me
20526 #else
20527 char (*f) () = $ac_func;
20528 #endif
20529 #ifdef __cplusplus
20530 }
20531 #endif
20532
20533 int
20534 main ()
20535 {
20536 return f != $ac_func;
20537   ;
20538   return 0;
20539 }
20540 _ACEOF
20541 rm -f conftest.$ac_objext conftest$ac_exeext
20542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20543   (eval $ac_link) 2>conftest.er1
20544   ac_status=$?
20545   grep -v '^ *+' conftest.er1 >conftest.err
20546   rm -f conftest.er1
20547   cat conftest.err >&5
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); } &&
20550          { ac_try='test -z "$ac_c_werror_flag"
20551                          || test ! -s conftest.err'
20552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553   (eval $ac_try) 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); }; } &&
20557          { ac_try='test -s conftest$ac_exeext'
20558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559   (eval $ac_try) 2>&5
20560   ac_status=$?
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); }; }; then
20563   eval "$as_ac_var=yes"
20564 else
20565   echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20567
20568 eval "$as_ac_var=no"
20569 fi
20570 rm -f conftest.err conftest.$ac_objext \
20571       conftest$ac_exeext conftest.$ac_ext
20572 fi
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20575 if test `eval echo '${'$as_ac_var'}'` = yes; then
20576   cat >>confdefs.h <<_ACEOF
20577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20578 _ACEOF
20579
20580 fi
20581 done
20582
20583   else
20584
20585   echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
20586 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
20587   if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
20588     if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
20589   echo $ECHO_N "(cached) $ECHO_C" >&6
20590 else
20591
20592
20593
20594       ac_ext=cc
20595 ac_cpp='$CXXCPP $CPPFLAGS'
20596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20599
20600       cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h.  */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h.  */
20606 #include <math.h>
20607 int
20608 main ()
20609 {
20610  _fmodl(0, 0);
20611   ;
20612   return 0;
20613 }
20614 _ACEOF
20615 rm -f conftest.$ac_objext
20616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617   (eval $ac_compile) 2>conftest.er1
20618   ac_status=$?
20619   grep -v '^ *+' conftest.er1 >conftest.err
20620   rm -f conftest.er1
20621   cat conftest.err >&5
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } &&
20624          { ac_try='test -z "$ac_cxx_werror_flag"
20625                          || test ! -s conftest.err'
20626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627   (eval $ac_try) 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; } &&
20631          { ac_try='test -s conftest.$ac_objext'
20632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633   (eval $ac_try) 2>&5
20634   ac_status=$?
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); }; }; then
20637   glibcxx_cv_func__fmodl_use=yes
20638 else
20639   echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20641
20642 glibcxx_cv_func__fmodl_use=no
20643 fi
20644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20645       ac_ext=c
20646 ac_cpp='$CPP $CPPFLAGS'
20647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20650
20651
20652 fi
20653
20654   fi
20655   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
20656 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
20657
20658     if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
20659
20660 for ac_func in _fmodl
20661 do
20662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20663 echo "$as_me:$LINENO: checking for $ac_func" >&5
20664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20665 if eval "test \"\${$as_ac_var+set}\" = set"; then
20666   echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668   if test x$gcc_no_link = xyes; then
20669   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20671    { (exit 1); exit 1; }; }
20672 fi
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20681 #define $ac_func innocuous_$ac_func
20682
20683 /* System header to define __stub macros and hopefully few prototypes,
20684     which can conflict with char $ac_func (); below.
20685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20686     <limits.h> exists even on freestanding compilers.  */
20687
20688 #ifdef __STDC__
20689 # include <limits.h>
20690 #else
20691 # include <assert.h>
20692 #endif
20693
20694 #undef $ac_func
20695
20696 /* Override any gcc2 internal prototype to avoid an error.  */
20697 #ifdef __cplusplus
20698 extern "C"
20699 {
20700 #endif
20701 /* We use char because int might match the return type of a gcc2
20702    builtin and then its argument prototype would still apply.  */
20703 char $ac_func ();
20704 /* The GNU C library defines this for functions which it implements
20705     to always fail with ENOSYS.  Some functions are actually named
20706     something starting with __ and the normal name is an alias.  */
20707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20708 choke me
20709 #else
20710 char (*f) () = $ac_func;
20711 #endif
20712 #ifdef __cplusplus
20713 }
20714 #endif
20715
20716 int
20717 main ()
20718 {
20719 return f != $ac_func;
20720   ;
20721   return 0;
20722 }
20723 _ACEOF
20724 rm -f conftest.$ac_objext conftest$ac_exeext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20726   (eval $ac_link) 2>conftest.er1
20727   ac_status=$?
20728   grep -v '^ *+' conftest.er1 >conftest.err
20729   rm -f conftest.er1
20730   cat conftest.err >&5
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); } &&
20733          { ac_try='test -z "$ac_c_werror_flag"
20734                          || test ! -s conftest.err'
20735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736   (eval $ac_try) 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); }; } &&
20740          { ac_try='test -s conftest$ac_exeext'
20741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742   (eval $ac_try) 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; }; then
20746   eval "$as_ac_var=yes"
20747 else
20748   echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 eval "$as_ac_var=no"
20752 fi
20753 rm -f conftest.err conftest.$ac_objext \
20754       conftest$ac_exeext conftest.$ac_ext
20755 fi
20756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20758 if test `eval echo '${'$as_ac_var'}'` = yes; then
20759   cat >>confdefs.h <<_ACEOF
20760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20761 _ACEOF
20762
20763 fi
20764 done
20765
20766     fi
20767   fi
20768
20769
20770
20771   echo "$as_me:$LINENO: checking for frexpl declaration" >&5
20772 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
20773   if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
20774     if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
20775   echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777
20778
20779
20780       ac_ext=cc
20781 ac_cpp='$CXXCPP $CPPFLAGS'
20782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20785
20786       cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h.  */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h.  */
20792 #include <math.h>
20793 int
20794 main ()
20795 {
20796  frexpl(0, 0);
20797   ;
20798   return 0;
20799 }
20800 _ACEOF
20801 rm -f conftest.$ac_objext
20802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20803   (eval $ac_compile) 2>conftest.er1
20804   ac_status=$?
20805   grep -v '^ *+' conftest.er1 >conftest.err
20806   rm -f conftest.er1
20807   cat conftest.err >&5
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); } &&
20810          { ac_try='test -z "$ac_cxx_werror_flag"
20811                          || test ! -s conftest.err'
20812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813   (eval $ac_try) 2>&5
20814   ac_status=$?
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); }; } &&
20817          { ac_try='test -s conftest.$ac_objext'
20818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819   (eval $ac_try) 2>&5
20820   ac_status=$?
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); }; }; then
20823   glibcxx_cv_func_frexpl_use=yes
20824 else
20825   echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20827
20828 glibcxx_cv_func_frexpl_use=no
20829 fi
20830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20831       ac_ext=c
20832 ac_cpp='$CPP $CPPFLAGS'
20833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20836
20837
20838 fi
20839
20840   fi
20841   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
20842 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
20843
20844   if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
20845
20846 for ac_func in frexpl
20847 do
20848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20849 echo "$as_me:$LINENO: checking for $ac_func" >&5
20850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20851 if eval "test \"\${$as_ac_var+set}\" = set"; then
20852   echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854   if test x$gcc_no_link = xyes; then
20855   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20857    { (exit 1); exit 1; }; }
20858 fi
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h.  */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h.  */
20865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20867 #define $ac_func innocuous_$ac_func
20868
20869 /* System header to define __stub macros and hopefully few prototypes,
20870     which can conflict with char $ac_func (); below.
20871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20872     <limits.h> exists even on freestanding compilers.  */
20873
20874 #ifdef __STDC__
20875 # include <limits.h>
20876 #else
20877 # include <assert.h>
20878 #endif
20879
20880 #undef $ac_func
20881
20882 /* Override any gcc2 internal prototype to avoid an error.  */
20883 #ifdef __cplusplus
20884 extern "C"
20885 {
20886 #endif
20887 /* We use char because int might match the return type of a gcc2
20888    builtin and then its argument prototype would still apply.  */
20889 char $ac_func ();
20890 /* The GNU C library defines this for functions which it implements
20891     to always fail with ENOSYS.  Some functions are actually named
20892     something starting with __ and the normal name is an alias.  */
20893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20894 choke me
20895 #else
20896 char (*f) () = $ac_func;
20897 #endif
20898 #ifdef __cplusplus
20899 }
20900 #endif
20901
20902 int
20903 main ()
20904 {
20905 return f != $ac_func;
20906   ;
20907   return 0;
20908 }
20909 _ACEOF
20910 rm -f conftest.$ac_objext conftest$ac_exeext
20911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20912   (eval $ac_link) 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } &&
20919          { ac_try='test -z "$ac_c_werror_flag"
20920                          || test ! -s conftest.err'
20921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922   (eval $ac_try) 2>&5
20923   ac_status=$?
20924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925   (exit $ac_status); }; } &&
20926          { ac_try='test -s conftest$ac_exeext'
20927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20928   (eval $ac_try) 2>&5
20929   ac_status=$?
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); }; }; then
20932   eval "$as_ac_var=yes"
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937 eval "$as_ac_var=no"
20938 fi
20939 rm -f conftest.err conftest.$ac_objext \
20940       conftest$ac_exeext conftest.$ac_ext
20941 fi
20942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20944 if test `eval echo '${'$as_ac_var'}'` = yes; then
20945   cat >>confdefs.h <<_ACEOF
20946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20947 _ACEOF
20948
20949 fi
20950 done
20951
20952   else
20953
20954   echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
20955 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
20956   if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
20957     if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
20958   echo $ECHO_N "(cached) $ECHO_C" >&6
20959 else
20960
20961
20962
20963       ac_ext=cc
20964 ac_cpp='$CXXCPP $CPPFLAGS'
20965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20968
20969       cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h.  */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h.  */
20975 #include <math.h>
20976 int
20977 main ()
20978 {
20979  _frexpl(0, 0);
20980   ;
20981   return 0;
20982 }
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20986   (eval $ac_compile) 2>conftest.er1
20987   ac_status=$?
20988   grep -v '^ *+' conftest.er1 >conftest.err
20989   rm -f conftest.er1
20990   cat conftest.err >&5
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); } &&
20993          { ac_try='test -z "$ac_cxx_werror_flag"
20994                          || test ! -s conftest.err'
20995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996   (eval $ac_try) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); }; } &&
21000          { ac_try='test -s conftest.$ac_objext'
21001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002   (eval $ac_try) 2>&5
21003   ac_status=$?
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); }; }; then
21006   glibcxx_cv_func__frexpl_use=yes
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011 glibcxx_cv_func__frexpl_use=no
21012 fi
21013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21014       ac_ext=c
21015 ac_cpp='$CPP $CPPFLAGS'
21016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21019
21020
21021 fi
21022
21023   fi
21024   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
21025 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
21026
21027     if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
21028
21029 for ac_func in _frexpl
21030 do
21031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21032 echo "$as_me:$LINENO: checking for $ac_func" >&5
21033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21034 if eval "test \"\${$as_ac_var+set}\" = set"; then
21035   echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037   if test x$gcc_no_link = xyes; then
21038   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21040    { (exit 1); exit 1; }; }
21041 fi
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h.  */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h.  */
21048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21050 #define $ac_func innocuous_$ac_func
21051
21052 /* System header to define __stub macros and hopefully few prototypes,
21053     which can conflict with char $ac_func (); below.
21054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21055     <limits.h> exists even on freestanding compilers.  */
21056
21057 #ifdef __STDC__
21058 # include <limits.h>
21059 #else
21060 # include <assert.h>
21061 #endif
21062
21063 #undef $ac_func
21064
21065 /* Override any gcc2 internal prototype to avoid an error.  */
21066 #ifdef __cplusplus
21067 extern "C"
21068 {
21069 #endif
21070 /* We use char because int might match the return type of a gcc2
21071    builtin and then its argument prototype would still apply.  */
21072 char $ac_func ();
21073 /* The GNU C library defines this for functions which it implements
21074     to always fail with ENOSYS.  Some functions are actually named
21075     something starting with __ and the normal name is an alias.  */
21076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21077 choke me
21078 #else
21079 char (*f) () = $ac_func;
21080 #endif
21081 #ifdef __cplusplus
21082 }
21083 #endif
21084
21085 int
21086 main ()
21087 {
21088 return f != $ac_func;
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21095   (eval $ac_link) 2>conftest.er1
21096   ac_status=$?
21097   grep -v '^ *+' conftest.er1 >conftest.err
21098   rm -f conftest.er1
21099   cat conftest.err >&5
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); } &&
21102          { ac_try='test -z "$ac_c_werror_flag"
21103                          || test ! -s conftest.err'
21104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105   (eval $ac_try) 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; } &&
21109          { ac_try='test -s conftest$ac_exeext'
21110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111   (eval $ac_try) 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); }; }; then
21115   eval "$as_ac_var=yes"
21116 else
21117   echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21119
21120 eval "$as_ac_var=no"
21121 fi
21122 rm -f conftest.err conftest.$ac_objext \
21123       conftest$ac_exeext conftest.$ac_ext
21124 fi
21125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21127 if test `eval echo '${'$as_ac_var'}'` = yes; then
21128   cat >>confdefs.h <<_ACEOF
21129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21130 _ACEOF
21131
21132 fi
21133 done
21134
21135     fi
21136   fi
21137
21138
21139
21140   echo "$as_me:$LINENO: checking for hypotl declaration" >&5
21141 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
21142   if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
21143     if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
21144   echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146
21147
21148
21149       ac_ext=cc
21150 ac_cpp='$CXXCPP $CPPFLAGS'
21151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21154
21155       cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161 #include <math.h>
21162 int
21163 main ()
21164 {
21165  hypotl(0, 0);
21166   ;
21167   return 0;
21168 }
21169 _ACEOF
21170 rm -f conftest.$ac_objext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21172   (eval $ac_compile) 2>conftest.er1
21173   ac_status=$?
21174   grep -v '^ *+' conftest.er1 >conftest.err
21175   rm -f conftest.er1
21176   cat conftest.err >&5
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); } &&
21179          { ac_try='test -z "$ac_cxx_werror_flag"
21180                          || test ! -s conftest.err'
21181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182   (eval $ac_try) 2>&5
21183   ac_status=$?
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); }; } &&
21186          { ac_try='test -s conftest.$ac_objext'
21187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188   (eval $ac_try) 2>&5
21189   ac_status=$?
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); }; }; then
21192   glibcxx_cv_func_hypotl_use=yes
21193 else
21194   echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197 glibcxx_cv_func_hypotl_use=no
21198 fi
21199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21200       ac_ext=c
21201 ac_cpp='$CPP $CPPFLAGS'
21202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21205
21206
21207 fi
21208
21209   fi
21210   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
21211 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
21212
21213   if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
21214
21215 for ac_func in hypotl
21216 do
21217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21218 echo "$as_me:$LINENO: checking for $ac_func" >&5
21219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21220 if eval "test \"\${$as_ac_var+set}\" = set"; then
21221   echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223   if test x$gcc_no_link = xyes; then
21224   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21226    { (exit 1); exit 1; }; }
21227 fi
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21236 #define $ac_func innocuous_$ac_func
21237
21238 /* System header to define __stub macros and hopefully few prototypes,
21239     which can conflict with char $ac_func (); below.
21240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21241     <limits.h> exists even on freestanding compilers.  */
21242
21243 #ifdef __STDC__
21244 # include <limits.h>
21245 #else
21246 # include <assert.h>
21247 #endif
21248
21249 #undef $ac_func
21250
21251 /* Override any gcc2 internal prototype to avoid an error.  */
21252 #ifdef __cplusplus
21253 extern "C"
21254 {
21255 #endif
21256 /* We use char because int might match the return type of a gcc2
21257    builtin and then its argument prototype would still apply.  */
21258 char $ac_func ();
21259 /* The GNU C library defines this for functions which it implements
21260     to always fail with ENOSYS.  Some functions are actually named
21261     something starting with __ and the normal name is an alias.  */
21262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21263 choke me
21264 #else
21265 char (*f) () = $ac_func;
21266 #endif
21267 #ifdef __cplusplus
21268 }
21269 #endif
21270
21271 int
21272 main ()
21273 {
21274 return f != $ac_func;
21275   ;
21276   return 0;
21277 }
21278 _ACEOF
21279 rm -f conftest.$ac_objext conftest$ac_exeext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21281   (eval $ac_link) 2>conftest.er1
21282   ac_status=$?
21283   grep -v '^ *+' conftest.er1 >conftest.err
21284   rm -f conftest.er1
21285   cat conftest.err >&5
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } &&
21288          { ac_try='test -z "$ac_c_werror_flag"
21289                          || test ! -s conftest.err'
21290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291   (eval $ac_try) 2>&5
21292   ac_status=$?
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); }; } &&
21295          { ac_try='test -s conftest$ac_exeext'
21296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297   (eval $ac_try) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; }; then
21301   eval "$as_ac_var=yes"
21302 else
21303   echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306 eval "$as_ac_var=no"
21307 fi
21308 rm -f conftest.err conftest.$ac_objext \
21309       conftest$ac_exeext conftest.$ac_ext
21310 fi
21311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21313 if test `eval echo '${'$as_ac_var'}'` = yes; then
21314   cat >>confdefs.h <<_ACEOF
21315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21316 _ACEOF
21317
21318 fi
21319 done
21320
21321   else
21322
21323   echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
21324 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
21325   if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
21326     if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
21327   echo $ECHO_N "(cached) $ECHO_C" >&6
21328 else
21329
21330
21331
21332       ac_ext=cc
21333 ac_cpp='$CXXCPP $CPPFLAGS'
21334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21337
21338       cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h.  */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h.  */
21344 #include <math.h>
21345 int
21346 main ()
21347 {
21348  _hypotl(0, 0);
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21355   (eval $ac_compile) 2>conftest.er1
21356   ac_status=$?
21357   grep -v '^ *+' conftest.er1 >conftest.err
21358   rm -f conftest.er1
21359   cat conftest.err >&5
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } &&
21362          { ac_try='test -z "$ac_cxx_werror_flag"
21363                          || test ! -s conftest.err'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; } &&
21369          { ac_try='test -s conftest.$ac_objext'
21370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371   (eval $ac_try) 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); }; }; then
21375   glibcxx_cv_func__hypotl_use=yes
21376 else
21377   echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21379
21380 glibcxx_cv_func__hypotl_use=no
21381 fi
21382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21383       ac_ext=c
21384 ac_cpp='$CPP $CPPFLAGS'
21385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21388
21389
21390 fi
21391
21392   fi
21393   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
21394 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
21395
21396     if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
21397
21398 for ac_func in _hypotl
21399 do
21400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21401 echo "$as_me:$LINENO: checking for $ac_func" >&5
21402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21403 if eval "test \"\${$as_ac_var+set}\" = set"; then
21404   echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406   if test x$gcc_no_link = xyes; then
21407   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21409    { (exit 1); exit 1; }; }
21410 fi
21411 cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h.  */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h.  */
21417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21419 #define $ac_func innocuous_$ac_func
21420
21421 /* System header to define __stub macros and hopefully few prototypes,
21422     which can conflict with char $ac_func (); below.
21423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21424     <limits.h> exists even on freestanding compilers.  */
21425
21426 #ifdef __STDC__
21427 # include <limits.h>
21428 #else
21429 # include <assert.h>
21430 #endif
21431
21432 #undef $ac_func
21433
21434 /* Override any gcc2 internal prototype to avoid an error.  */
21435 #ifdef __cplusplus
21436 extern "C"
21437 {
21438 #endif
21439 /* We use char because int might match the return type of a gcc2
21440    builtin and then its argument prototype would still apply.  */
21441 char $ac_func ();
21442 /* The GNU C library defines this for functions which it implements
21443     to always fail with ENOSYS.  Some functions are actually named
21444     something starting with __ and the normal name is an alias.  */
21445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21446 choke me
21447 #else
21448 char (*f) () = $ac_func;
21449 #endif
21450 #ifdef __cplusplus
21451 }
21452 #endif
21453
21454 int
21455 main ()
21456 {
21457 return f != $ac_func;
21458   ;
21459   return 0;
21460 }
21461 _ACEOF
21462 rm -f conftest.$ac_objext conftest$ac_exeext
21463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21464   (eval $ac_link) 2>conftest.er1
21465   ac_status=$?
21466   grep -v '^ *+' conftest.er1 >conftest.err
21467   rm -f conftest.er1
21468   cat conftest.err >&5
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); } &&
21471          { ac_try='test -z "$ac_c_werror_flag"
21472                          || test ! -s conftest.err'
21473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474   (eval $ac_try) 2>&5
21475   ac_status=$?
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); }; } &&
21478          { ac_try='test -s conftest$ac_exeext'
21479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480   (eval $ac_try) 2>&5
21481   ac_status=$?
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); }; }; then
21484   eval "$as_ac_var=yes"
21485 else
21486   echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21488
21489 eval "$as_ac_var=no"
21490 fi
21491 rm -f conftest.err conftest.$ac_objext \
21492       conftest$ac_exeext conftest.$ac_ext
21493 fi
21494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21496 if test `eval echo '${'$as_ac_var'}'` = yes; then
21497   cat >>confdefs.h <<_ACEOF
21498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21499 _ACEOF
21500
21501 fi
21502 done
21503
21504     fi
21505   fi
21506
21507
21508
21509   echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
21510 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
21511   if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
21512     if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
21513   echo $ECHO_N "(cached) $ECHO_C" >&6
21514 else
21515
21516
21517
21518       ac_ext=cc
21519 ac_cpp='$CXXCPP $CPPFLAGS'
21520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21523
21524       cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h.  */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h.  */
21530 #include <math.h>
21531 int
21532 main ()
21533 {
21534  ldexpl(0, 0);
21535   ;
21536   return 0;
21537 }
21538 _ACEOF
21539 rm -f conftest.$ac_objext
21540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21541   (eval $ac_compile) 2>conftest.er1
21542   ac_status=$?
21543   grep -v '^ *+' conftest.er1 >conftest.err
21544   rm -f conftest.er1
21545   cat conftest.err >&5
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); } &&
21548          { ac_try='test -z "$ac_cxx_werror_flag"
21549                          || test ! -s conftest.err'
21550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551   (eval $ac_try) 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); }; } &&
21555          { ac_try='test -s conftest.$ac_objext'
21556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557   (eval $ac_try) 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; }; then
21561   glibcxx_cv_func_ldexpl_use=yes
21562 else
21563   echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566 glibcxx_cv_func_ldexpl_use=no
21567 fi
21568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21569       ac_ext=c
21570 ac_cpp='$CPP $CPPFLAGS'
21571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21574
21575
21576 fi
21577
21578   fi
21579   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
21580 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
21581
21582   if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
21583
21584 for ac_func in ldexpl
21585 do
21586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21587 echo "$as_me:$LINENO: checking for $ac_func" >&5
21588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21589 if eval "test \"\${$as_ac_var+set}\" = set"; then
21590   echo $ECHO_N "(cached) $ECHO_C" >&6
21591 else
21592   if test x$gcc_no_link = xyes; then
21593   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21595    { (exit 1); exit 1; }; }
21596 fi
21597 cat >conftest.$ac_ext <<_ACEOF
21598 /* confdefs.h.  */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h.  */
21603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21605 #define $ac_func innocuous_$ac_func
21606
21607 /* System header to define __stub macros and hopefully few prototypes,
21608     which can conflict with char $ac_func (); below.
21609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21610     <limits.h> exists even on freestanding compilers.  */
21611
21612 #ifdef __STDC__
21613 # include <limits.h>
21614 #else
21615 # include <assert.h>
21616 #endif
21617
21618 #undef $ac_func
21619
21620 /* Override any gcc2 internal prototype to avoid an error.  */
21621 #ifdef __cplusplus
21622 extern "C"
21623 {
21624 #endif
21625 /* We use char because int might match the return type of a gcc2
21626    builtin and then its argument prototype would still apply.  */
21627 char $ac_func ();
21628 /* The GNU C library defines this for functions which it implements
21629     to always fail with ENOSYS.  Some functions are actually named
21630     something starting with __ and the normal name is an alias.  */
21631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21632 choke me
21633 #else
21634 char (*f) () = $ac_func;
21635 #endif
21636 #ifdef __cplusplus
21637 }
21638 #endif
21639
21640 int
21641 main ()
21642 {
21643 return f != $ac_func;
21644   ;
21645   return 0;
21646 }
21647 _ACEOF
21648 rm -f conftest.$ac_objext conftest$ac_exeext
21649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21650   (eval $ac_link) 2>conftest.er1
21651   ac_status=$?
21652   grep -v '^ *+' conftest.er1 >conftest.err
21653   rm -f conftest.er1
21654   cat conftest.err >&5
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } &&
21657          { ac_try='test -z "$ac_c_werror_flag"
21658                          || test ! -s conftest.err'
21659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660   (eval $ac_try) 2>&5
21661   ac_status=$?
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); }; } &&
21664          { ac_try='test -s conftest$ac_exeext'
21665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666   (eval $ac_try) 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; }; then
21670   eval "$as_ac_var=yes"
21671 else
21672   echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21674
21675 eval "$as_ac_var=no"
21676 fi
21677 rm -f conftest.err conftest.$ac_objext \
21678       conftest$ac_exeext conftest.$ac_ext
21679 fi
21680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21682 if test `eval echo '${'$as_ac_var'}'` = yes; then
21683   cat >>confdefs.h <<_ACEOF
21684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21685 _ACEOF
21686
21687 fi
21688 done
21689
21690   else
21691
21692   echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
21693 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
21694   if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
21695     if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
21696   echo $ECHO_N "(cached) $ECHO_C" >&6
21697 else
21698
21699
21700
21701       ac_ext=cc
21702 ac_cpp='$CXXCPP $CPPFLAGS'
21703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21706
21707       cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h.  */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h.  */
21713 #include <math.h>
21714 int
21715 main ()
21716 {
21717  _ldexpl(0, 0);
21718   ;
21719   return 0;
21720 }
21721 _ACEOF
21722 rm -f conftest.$ac_objext
21723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21724   (eval $ac_compile) 2>conftest.er1
21725   ac_status=$?
21726   grep -v '^ *+' conftest.er1 >conftest.err
21727   rm -f conftest.er1
21728   cat conftest.err >&5
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); } &&
21731          { ac_try='test -z "$ac_cxx_werror_flag"
21732                          || test ! -s conftest.err'
21733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734   (eval $ac_try) 2>&5
21735   ac_status=$?
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); }; } &&
21738          { ac_try='test -s conftest.$ac_objext'
21739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740   (eval $ac_try) 2>&5
21741   ac_status=$?
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); }; }; then
21744   glibcxx_cv_func__ldexpl_use=yes
21745 else
21746   echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.$ac_ext >&5
21748
21749 glibcxx_cv_func__ldexpl_use=no
21750 fi
21751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21752       ac_ext=c
21753 ac_cpp='$CPP $CPPFLAGS'
21754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21757
21758
21759 fi
21760
21761   fi
21762   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
21763 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
21764
21765     if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
21766
21767 for ac_func in _ldexpl
21768 do
21769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21770 echo "$as_me:$LINENO: checking for $ac_func" >&5
21771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21772 if eval "test \"\${$as_ac_var+set}\" = set"; then
21773   echo $ECHO_N "(cached) $ECHO_C" >&6
21774 else
21775   if test x$gcc_no_link = xyes; then
21776   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21778    { (exit 1); exit 1; }; }
21779 fi
21780 cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h.  */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h.  */
21786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21788 #define $ac_func innocuous_$ac_func
21789
21790 /* System header to define __stub macros and hopefully few prototypes,
21791     which can conflict with char $ac_func (); below.
21792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21793     <limits.h> exists even on freestanding compilers.  */
21794
21795 #ifdef __STDC__
21796 # include <limits.h>
21797 #else
21798 # include <assert.h>
21799 #endif
21800
21801 #undef $ac_func
21802
21803 /* Override any gcc2 internal prototype to avoid an error.  */
21804 #ifdef __cplusplus
21805 extern "C"
21806 {
21807 #endif
21808 /* We use char because int might match the return type of a gcc2
21809    builtin and then its argument prototype would still apply.  */
21810 char $ac_func ();
21811 /* The GNU C library defines this for functions which it implements
21812     to always fail with ENOSYS.  Some functions are actually named
21813     something starting with __ and the normal name is an alias.  */
21814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21815 choke me
21816 #else
21817 char (*f) () = $ac_func;
21818 #endif
21819 #ifdef __cplusplus
21820 }
21821 #endif
21822
21823 int
21824 main ()
21825 {
21826 return f != $ac_func;
21827   ;
21828   return 0;
21829 }
21830 _ACEOF
21831 rm -f conftest.$ac_objext conftest$ac_exeext
21832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21833   (eval $ac_link) 2>conftest.er1
21834   ac_status=$?
21835   grep -v '^ *+' conftest.er1 >conftest.err
21836   rm -f conftest.er1
21837   cat conftest.err >&5
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); } &&
21840          { ac_try='test -z "$ac_c_werror_flag"
21841                          || test ! -s conftest.err'
21842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843   (eval $ac_try) 2>&5
21844   ac_status=$?
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); }; } &&
21847          { ac_try='test -s conftest$ac_exeext'
21848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849   (eval $ac_try) 2>&5
21850   ac_status=$?
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; }; then
21853   eval "$as_ac_var=yes"
21854 else
21855   echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21857
21858 eval "$as_ac_var=no"
21859 fi
21860 rm -f conftest.err conftest.$ac_objext \
21861       conftest$ac_exeext conftest.$ac_ext
21862 fi
21863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21865 if test `eval echo '${'$as_ac_var'}'` = yes; then
21866   cat >>confdefs.h <<_ACEOF
21867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21868 _ACEOF
21869
21870 fi
21871 done
21872
21873     fi
21874   fi
21875
21876
21877
21878   echo "$as_me:$LINENO: checking for logl declaration" >&5
21879 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
21880   if test x${glibcxx_cv_func_logl_use+set} != xset; then
21881     if test "${glibcxx_cv_func_logl_use+set}" = set; then
21882   echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21884
21885
21886
21887       ac_ext=cc
21888 ac_cpp='$CXXCPP $CPPFLAGS'
21889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21892
21893       cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h.  */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h.  */
21899 #include <math.h>
21900                       #ifdef HAVE_IEEEFP_H
21901                       #include <ieeefp.h>
21902                       #endif
21903
21904 int
21905 main ()
21906 {
21907  logl(0);
21908   ;
21909   return 0;
21910 }
21911 _ACEOF
21912 rm -f conftest.$ac_objext
21913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21914   (eval $ac_compile) 2>conftest.er1
21915   ac_status=$?
21916   grep -v '^ *+' conftest.er1 >conftest.err
21917   rm -f conftest.er1
21918   cat conftest.err >&5
21919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); } &&
21921          { ac_try='test -z "$ac_cxx_werror_flag"
21922                          || test ! -s conftest.err'
21923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; } &&
21928          { ac_try='test -s conftest.$ac_objext'
21929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930   (eval $ac_try) 2>&5
21931   ac_status=$?
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); }; }; then
21934   glibcxx_cv_func_logl_use=yes
21935 else
21936   echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21938
21939 glibcxx_cv_func_logl_use=no
21940 fi
21941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21942       ac_ext=c
21943 ac_cpp='$CPP $CPPFLAGS'
21944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21947
21948
21949 fi
21950
21951   fi
21952   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
21953 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
21954
21955   if test x$glibcxx_cv_func_logl_use = x"yes"; then
21956
21957 for ac_func in logl
21958 do
21959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21960 echo "$as_me:$LINENO: checking for $ac_func" >&5
21961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21962 if eval "test \"\${$as_ac_var+set}\" = set"; then
21963   echo $ECHO_N "(cached) $ECHO_C" >&6
21964 else
21965   if test x$gcc_no_link = xyes; then
21966   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21968    { (exit 1); exit 1; }; }
21969 fi
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21978 #define $ac_func innocuous_$ac_func
21979
21980 /* System header to define __stub macros and hopefully few prototypes,
21981     which can conflict with char $ac_func (); below.
21982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21983     <limits.h> exists even on freestanding compilers.  */
21984
21985 #ifdef __STDC__
21986 # include <limits.h>
21987 #else
21988 # include <assert.h>
21989 #endif
21990
21991 #undef $ac_func
21992
21993 /* Override any gcc2 internal prototype to avoid an error.  */
21994 #ifdef __cplusplus
21995 extern "C"
21996 {
21997 #endif
21998 /* We use char because int might match the return type of a gcc2
21999    builtin and then its argument prototype would still apply.  */
22000 char $ac_func ();
22001 /* The GNU C library defines this for functions which it implements
22002     to always fail with ENOSYS.  Some functions are actually named
22003     something starting with __ and the normal name is an alias.  */
22004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22005 choke me
22006 #else
22007 char (*f) () = $ac_func;
22008 #endif
22009 #ifdef __cplusplus
22010 }
22011 #endif
22012
22013 int
22014 main ()
22015 {
22016 return f != $ac_func;
22017   ;
22018   return 0;
22019 }
22020 _ACEOF
22021 rm -f conftest.$ac_objext conftest$ac_exeext
22022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22023   (eval $ac_link) 2>conftest.er1
22024   ac_status=$?
22025   grep -v '^ *+' conftest.er1 >conftest.err
22026   rm -f conftest.er1
22027   cat conftest.err >&5
22028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); } &&
22030          { ac_try='test -z "$ac_c_werror_flag"
22031                          || test ! -s conftest.err'
22032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033   (eval $ac_try) 2>&5
22034   ac_status=$?
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); }; } &&
22037          { ac_try='test -s conftest$ac_exeext'
22038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039   (eval $ac_try) 2>&5
22040   ac_status=$?
22041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); }; }; then
22043   eval "$as_ac_var=yes"
22044 else
22045   echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22047
22048 eval "$as_ac_var=no"
22049 fi
22050 rm -f conftest.err conftest.$ac_objext \
22051       conftest$ac_exeext conftest.$ac_ext
22052 fi
22053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22055 if test `eval echo '${'$as_ac_var'}'` = yes; then
22056   cat >>confdefs.h <<_ACEOF
22057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22058 _ACEOF
22059
22060 fi
22061 done
22062
22063   else
22064
22065   echo "$as_me:$LINENO: checking for _logl declaration" >&5
22066 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
22067   if test x${glibcxx_cv_func__logl_use+set} != xset; then
22068     if test "${glibcxx_cv_func__logl_use+set}" = set; then
22069   echo $ECHO_N "(cached) $ECHO_C" >&6
22070 else
22071
22072
22073
22074       ac_ext=cc
22075 ac_cpp='$CXXCPP $CPPFLAGS'
22076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22079
22080       cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h.  */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h.  */
22086 #include <math.h>
22087                       #ifdef HAVE_IEEEFP_H
22088                       #include <ieeefp.h>
22089                       #endif
22090
22091 int
22092 main ()
22093 {
22094  _logl(0);
22095   ;
22096   return 0;
22097 }
22098 _ACEOF
22099 rm -f conftest.$ac_objext
22100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22101   (eval $ac_compile) 2>conftest.er1
22102   ac_status=$?
22103   grep -v '^ *+' conftest.er1 >conftest.err
22104   rm -f conftest.er1
22105   cat conftest.err >&5
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); } &&
22108          { ac_try='test -z "$ac_cxx_werror_flag"
22109                          || test ! -s conftest.err'
22110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111   (eval $ac_try) 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); }; } &&
22115          { ac_try='test -s conftest.$ac_objext'
22116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117   (eval $ac_try) 2>&5
22118   ac_status=$?
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); }; }; then
22121   glibcxx_cv_func__logl_use=yes
22122 else
22123   echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22125
22126 glibcxx_cv_func__logl_use=no
22127 fi
22128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22129       ac_ext=c
22130 ac_cpp='$CPP $CPPFLAGS'
22131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22134
22135
22136 fi
22137
22138   fi
22139   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
22140 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
22141
22142     if test x$glibcxx_cv_func__logl_use = x"yes"; then
22143
22144 for ac_func in _logl
22145 do
22146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22147 echo "$as_me:$LINENO: checking for $ac_func" >&5
22148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22149 if eval "test \"\${$as_ac_var+set}\" = set"; then
22150   echo $ECHO_N "(cached) $ECHO_C" >&6
22151 else
22152   if test x$gcc_no_link = xyes; then
22153   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22155    { (exit 1); exit 1; }; }
22156 fi
22157 cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h.  */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h.  */
22163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22165 #define $ac_func innocuous_$ac_func
22166
22167 /* System header to define __stub macros and hopefully few prototypes,
22168     which can conflict with char $ac_func (); below.
22169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22170     <limits.h> exists even on freestanding compilers.  */
22171
22172 #ifdef __STDC__
22173 # include <limits.h>
22174 #else
22175 # include <assert.h>
22176 #endif
22177
22178 #undef $ac_func
22179
22180 /* Override any gcc2 internal prototype to avoid an error.  */
22181 #ifdef __cplusplus
22182 extern "C"
22183 {
22184 #endif
22185 /* We use char because int might match the return type of a gcc2
22186    builtin and then its argument prototype would still apply.  */
22187 char $ac_func ();
22188 /* The GNU C library defines this for functions which it implements
22189     to always fail with ENOSYS.  Some functions are actually named
22190     something starting with __ and the normal name is an alias.  */
22191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22192 choke me
22193 #else
22194 char (*f) () = $ac_func;
22195 #endif
22196 #ifdef __cplusplus
22197 }
22198 #endif
22199
22200 int
22201 main ()
22202 {
22203 return f != $ac_func;
22204   ;
22205   return 0;
22206 }
22207 _ACEOF
22208 rm -f conftest.$ac_objext conftest$ac_exeext
22209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22210   (eval $ac_link) 2>conftest.er1
22211   ac_status=$?
22212   grep -v '^ *+' conftest.er1 >conftest.err
22213   rm -f conftest.er1
22214   cat conftest.err >&5
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); } &&
22217          { ac_try='test -z "$ac_c_werror_flag"
22218                          || test ! -s conftest.err'
22219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220   (eval $ac_try) 2>&5
22221   ac_status=$?
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); }; } &&
22224          { ac_try='test -s conftest$ac_exeext'
22225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226   (eval $ac_try) 2>&5
22227   ac_status=$?
22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); }; }; then
22230   eval "$as_ac_var=yes"
22231 else
22232   echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 eval "$as_ac_var=no"
22236 fi
22237 rm -f conftest.err conftest.$ac_objext \
22238       conftest$ac_exeext conftest.$ac_ext
22239 fi
22240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22242 if test `eval echo '${'$as_ac_var'}'` = yes; then
22243   cat >>confdefs.h <<_ACEOF
22244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22245 _ACEOF
22246
22247 fi
22248 done
22249
22250     fi
22251   fi
22252
22253
22254
22255   echo "$as_me:$LINENO: checking for log10l declaration" >&5
22256 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
22257   if test x${glibcxx_cv_func_log10l_use+set} != xset; then
22258     if test "${glibcxx_cv_func_log10l_use+set}" = set; then
22259   echo $ECHO_N "(cached) $ECHO_C" >&6
22260 else
22261
22262
22263
22264       ac_ext=cc
22265 ac_cpp='$CXXCPP $CPPFLAGS'
22266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22269
22270       cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h.  */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h.  */
22276 #include <math.h>
22277                       #ifdef HAVE_IEEEFP_H
22278                       #include <ieeefp.h>
22279                       #endif
22280
22281 int
22282 main ()
22283 {
22284  log10l(0);
22285   ;
22286   return 0;
22287 }
22288 _ACEOF
22289 rm -f conftest.$ac_objext
22290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22291   (eval $ac_compile) 2>conftest.er1
22292   ac_status=$?
22293   grep -v '^ *+' conftest.er1 >conftest.err
22294   rm -f conftest.er1
22295   cat conftest.err >&5
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); } &&
22298          { ac_try='test -z "$ac_cxx_werror_flag"
22299                          || test ! -s conftest.err'
22300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301   (eval $ac_try) 2>&5
22302   ac_status=$?
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); }; } &&
22305          { ac_try='test -s conftest.$ac_objext'
22306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307   (eval $ac_try) 2>&5
22308   ac_status=$?
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); }; }; then
22311   glibcxx_cv_func_log10l_use=yes
22312 else
22313   echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 glibcxx_cv_func_log10l_use=no
22317 fi
22318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22319       ac_ext=c
22320 ac_cpp='$CPP $CPPFLAGS'
22321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22324
22325
22326 fi
22327
22328   fi
22329   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
22330 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
22331
22332   if test x$glibcxx_cv_func_log10l_use = x"yes"; then
22333
22334 for ac_func in log10l
22335 do
22336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22337 echo "$as_me:$LINENO: checking for $ac_func" >&5
22338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22339 if eval "test \"\${$as_ac_var+set}\" = set"; then
22340   echo $ECHO_N "(cached) $ECHO_C" >&6
22341 else
22342   if test x$gcc_no_link = xyes; then
22343   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22345    { (exit 1); exit 1; }; }
22346 fi
22347 cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h.  */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h.  */
22353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22355 #define $ac_func innocuous_$ac_func
22356
22357 /* System header to define __stub macros and hopefully few prototypes,
22358     which can conflict with char $ac_func (); below.
22359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22360     <limits.h> exists even on freestanding compilers.  */
22361
22362 #ifdef __STDC__
22363 # include <limits.h>
22364 #else
22365 # include <assert.h>
22366 #endif
22367
22368 #undef $ac_func
22369
22370 /* Override any gcc2 internal prototype to avoid an error.  */
22371 #ifdef __cplusplus
22372 extern "C"
22373 {
22374 #endif
22375 /* We use char because int might match the return type of a gcc2
22376    builtin and then its argument prototype would still apply.  */
22377 char $ac_func ();
22378 /* The GNU C library defines this for functions which it implements
22379     to always fail with ENOSYS.  Some functions are actually named
22380     something starting with __ and the normal name is an alias.  */
22381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22382 choke me
22383 #else
22384 char (*f) () = $ac_func;
22385 #endif
22386 #ifdef __cplusplus
22387 }
22388 #endif
22389
22390 int
22391 main ()
22392 {
22393 return f != $ac_func;
22394   ;
22395   return 0;
22396 }
22397 _ACEOF
22398 rm -f conftest.$ac_objext conftest$ac_exeext
22399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22400   (eval $ac_link) 2>conftest.er1
22401   ac_status=$?
22402   grep -v '^ *+' conftest.er1 >conftest.err
22403   rm -f conftest.er1
22404   cat conftest.err >&5
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); } &&
22407          { ac_try='test -z "$ac_c_werror_flag"
22408                          || test ! -s conftest.err'
22409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410   (eval $ac_try) 2>&5
22411   ac_status=$?
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); }; } &&
22414          { ac_try='test -s conftest$ac_exeext'
22415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416   (eval $ac_try) 2>&5
22417   ac_status=$?
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); }; }; then
22420   eval "$as_ac_var=yes"
22421 else
22422   echo "$as_me: failed program was:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22424
22425 eval "$as_ac_var=no"
22426 fi
22427 rm -f conftest.err conftest.$ac_objext \
22428       conftest$ac_exeext conftest.$ac_ext
22429 fi
22430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22432 if test `eval echo '${'$as_ac_var'}'` = yes; then
22433   cat >>confdefs.h <<_ACEOF
22434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22435 _ACEOF
22436
22437 fi
22438 done
22439
22440   else
22441
22442   echo "$as_me:$LINENO: checking for _log10l declaration" >&5
22443 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
22444   if test x${glibcxx_cv_func__log10l_use+set} != xset; then
22445     if test "${glibcxx_cv_func__log10l_use+set}" = set; then
22446   echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448
22449
22450
22451       ac_ext=cc
22452 ac_cpp='$CXXCPP $CPPFLAGS'
22453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22456
22457       cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463 #include <math.h>
22464                       #ifdef HAVE_IEEEFP_H
22465                       #include <ieeefp.h>
22466                       #endif
22467
22468 int
22469 main ()
22470 {
22471  _log10l(0);
22472   ;
22473   return 0;
22474 }
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22478   (eval $ac_compile) 2>conftest.er1
22479   ac_status=$?
22480   grep -v '^ *+' conftest.er1 >conftest.err
22481   rm -f conftest.er1
22482   cat conftest.err >&5
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); } &&
22485          { ac_try='test -z "$ac_cxx_werror_flag"
22486                          || test ! -s conftest.err'
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); }; } &&
22492          { ac_try='test -s conftest.$ac_objext'
22493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494   (eval $ac_try) 2>&5
22495   ac_status=$?
22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); }; }; then
22498   glibcxx_cv_func__log10l_use=yes
22499 else
22500   echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503 glibcxx_cv_func__log10l_use=no
22504 fi
22505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22506       ac_ext=c
22507 ac_cpp='$CPP $CPPFLAGS'
22508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22511
22512
22513 fi
22514
22515   fi
22516   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
22517 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
22518
22519     if test x$glibcxx_cv_func__log10l_use = x"yes"; then
22520
22521 for ac_func in _log10l
22522 do
22523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22524 echo "$as_me:$LINENO: checking for $ac_func" >&5
22525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22526 if eval "test \"\${$as_ac_var+set}\" = set"; then
22527   echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529   if test x$gcc_no_link = xyes; then
22530   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22531 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22532    { (exit 1); exit 1; }; }
22533 fi
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h.  */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h.  */
22540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22542 #define $ac_func innocuous_$ac_func
22543
22544 /* System header to define __stub macros and hopefully few prototypes,
22545     which can conflict with char $ac_func (); below.
22546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22547     <limits.h> exists even on freestanding compilers.  */
22548
22549 #ifdef __STDC__
22550 # include <limits.h>
22551 #else
22552 # include <assert.h>
22553 #endif
22554
22555 #undef $ac_func
22556
22557 /* Override any gcc2 internal prototype to avoid an error.  */
22558 #ifdef __cplusplus
22559 extern "C"
22560 {
22561 #endif
22562 /* We use char because int might match the return type of a gcc2
22563    builtin and then its argument prototype would still apply.  */
22564 char $ac_func ();
22565 /* The GNU C library defines this for functions which it implements
22566     to always fail with ENOSYS.  Some functions are actually named
22567     something starting with __ and the normal name is an alias.  */
22568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22569 choke me
22570 #else
22571 char (*f) () = $ac_func;
22572 #endif
22573 #ifdef __cplusplus
22574 }
22575 #endif
22576
22577 int
22578 main ()
22579 {
22580 return f != $ac_func;
22581   ;
22582   return 0;
22583 }
22584 _ACEOF
22585 rm -f conftest.$ac_objext conftest$ac_exeext
22586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22587   (eval $ac_link) 2>conftest.er1
22588   ac_status=$?
22589   grep -v '^ *+' conftest.er1 >conftest.err
22590   rm -f conftest.er1
22591   cat conftest.err >&5
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); } &&
22594          { ac_try='test -z "$ac_c_werror_flag"
22595                          || test ! -s conftest.err'
22596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597   (eval $ac_try) 2>&5
22598   ac_status=$?
22599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600   (exit $ac_status); }; } &&
22601          { ac_try='test -s conftest$ac_exeext'
22602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603   (eval $ac_try) 2>&5
22604   ac_status=$?
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); }; }; then
22607   eval "$as_ac_var=yes"
22608 else
22609   echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22611
22612 eval "$as_ac_var=no"
22613 fi
22614 rm -f conftest.err conftest.$ac_objext \
22615       conftest$ac_exeext conftest.$ac_ext
22616 fi
22617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22619 if test `eval echo '${'$as_ac_var'}'` = yes; then
22620   cat >>confdefs.h <<_ACEOF
22621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22622 _ACEOF
22623
22624 fi
22625 done
22626
22627     fi
22628   fi
22629
22630
22631
22632   echo "$as_me:$LINENO: checking for modfl declaration" >&5
22633 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
22634   if test x${glibcxx_cv_func_modfl_use+set} != xset; then
22635     if test "${glibcxx_cv_func_modfl_use+set}" = set; then
22636   echo $ECHO_N "(cached) $ECHO_C" >&6
22637 else
22638
22639
22640
22641       ac_ext=cc
22642 ac_cpp='$CXXCPP $CPPFLAGS'
22643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22646
22647       cat >conftest.$ac_ext <<_ACEOF
22648 /* confdefs.h.  */
22649 _ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h.  */
22653 #include <math.h>
22654 int
22655 main ()
22656 {
22657  modfl(0, 0);
22658   ;
22659   return 0;
22660 }
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22664   (eval $ac_compile) 2>conftest.er1
22665   ac_status=$?
22666   grep -v '^ *+' conftest.er1 >conftest.err
22667   rm -f conftest.er1
22668   cat conftest.err >&5
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); } &&
22671          { ac_try='test -z "$ac_cxx_werror_flag"
22672                          || test ! -s conftest.err'
22673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674   (eval $ac_try) 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); }; } &&
22678          { ac_try='test -s conftest.$ac_objext'
22679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680   (eval $ac_try) 2>&5
22681   ac_status=$?
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); }; }; then
22684   glibcxx_cv_func_modfl_use=yes
22685 else
22686   echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22688
22689 glibcxx_cv_func_modfl_use=no
22690 fi
22691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22692       ac_ext=c
22693 ac_cpp='$CPP $CPPFLAGS'
22694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22697
22698
22699 fi
22700
22701   fi
22702   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
22703 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
22704
22705   if test x$glibcxx_cv_func_modfl_use = x"yes"; then
22706
22707 for ac_func in modfl
22708 do
22709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22710 echo "$as_me:$LINENO: checking for $ac_func" >&5
22711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22712 if eval "test \"\${$as_ac_var+set}\" = set"; then
22713   echo $ECHO_N "(cached) $ECHO_C" >&6
22714 else
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 /* confdefs.h.  */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h.  */
22726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22728 #define $ac_func innocuous_$ac_func
22729
22730 /* System header to define __stub macros and hopefully few prototypes,
22731     which can conflict with char $ac_func (); below.
22732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22733     <limits.h> exists even on freestanding compilers.  */
22734
22735 #ifdef __STDC__
22736 # include <limits.h>
22737 #else
22738 # include <assert.h>
22739 #endif
22740
22741 #undef $ac_func
22742
22743 /* Override any gcc2 internal prototype to avoid an error.  */
22744 #ifdef __cplusplus
22745 extern "C"
22746 {
22747 #endif
22748 /* We use char because int might match the return type of a gcc2
22749    builtin and then its argument prototype would still apply.  */
22750 char $ac_func ();
22751 /* The GNU C library defines this for functions which it implements
22752     to always fail with ENOSYS.  Some functions are actually named
22753     something starting with __ and the normal name is an alias.  */
22754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22755 choke me
22756 #else
22757 char (*f) () = $ac_func;
22758 #endif
22759 #ifdef __cplusplus
22760 }
22761 #endif
22762
22763 int
22764 main ()
22765 {
22766 return f != $ac_func;
22767   ;
22768   return 0;
22769 }
22770 _ACEOF
22771 rm -f conftest.$ac_objext conftest$ac_exeext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22773   (eval $ac_link) 2>conftest.er1
22774   ac_status=$?
22775   grep -v '^ *+' conftest.er1 >conftest.err
22776   rm -f conftest.er1
22777   cat conftest.err >&5
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); } &&
22780          { ac_try='test -z "$ac_c_werror_flag"
22781                          || test ! -s conftest.err'
22782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783   (eval $ac_try) 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); }; } &&
22787          { ac_try='test -s conftest$ac_exeext'
22788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789   (eval $ac_try) 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); }; }; then
22793   eval "$as_ac_var=yes"
22794 else
22795   echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22797
22798 eval "$as_ac_var=no"
22799 fi
22800 rm -f conftest.err conftest.$ac_objext \
22801       conftest$ac_exeext conftest.$ac_ext
22802 fi
22803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22805 if test `eval echo '${'$as_ac_var'}'` = yes; then
22806   cat >>confdefs.h <<_ACEOF
22807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22808 _ACEOF
22809
22810 fi
22811 done
22812
22813   else
22814
22815   echo "$as_me:$LINENO: checking for _modfl declaration" >&5
22816 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
22817   if test x${glibcxx_cv_func__modfl_use+set} != xset; then
22818     if test "${glibcxx_cv_func__modfl_use+set}" = set; then
22819   echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22821
22822
22823
22824       ac_ext=cc
22825 ac_cpp='$CXXCPP $CPPFLAGS'
22826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22829
22830       cat >conftest.$ac_ext <<_ACEOF
22831 /* confdefs.h.  */
22832 _ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h.  */
22836 #include <math.h>
22837 int
22838 main ()
22839 {
22840  _modfl(0, 0);
22841   ;
22842   return 0;
22843 }
22844 _ACEOF
22845 rm -f conftest.$ac_objext
22846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22847   (eval $ac_compile) 2>conftest.er1
22848   ac_status=$?
22849   grep -v '^ *+' conftest.er1 >conftest.err
22850   rm -f conftest.er1
22851   cat conftest.err >&5
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); } &&
22854          { ac_try='test -z "$ac_cxx_werror_flag"
22855                          || test ! -s conftest.err'
22856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857   (eval $ac_try) 2>&5
22858   ac_status=$?
22859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860   (exit $ac_status); }; } &&
22861          { ac_try='test -s conftest.$ac_objext'
22862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863   (eval $ac_try) 2>&5
22864   ac_status=$?
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); }; }; then
22867   glibcxx_cv_func__modfl_use=yes
22868 else
22869   echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22871
22872 glibcxx_cv_func__modfl_use=no
22873 fi
22874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22875       ac_ext=c
22876 ac_cpp='$CPP $CPPFLAGS'
22877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22880
22881
22882 fi
22883
22884   fi
22885   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
22886 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
22887
22888     if test x$glibcxx_cv_func__modfl_use = x"yes"; then
22889
22890 for ac_func in _modfl
22891 do
22892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22893 echo "$as_me:$LINENO: checking for $ac_func" >&5
22894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22895 if eval "test \"\${$as_ac_var+set}\" = set"; then
22896   echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898   if test x$gcc_no_link = xyes; then
22899   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22901    { (exit 1); exit 1; }; }
22902 fi
22903 cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h.  */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h.  */
22909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22911 #define $ac_func innocuous_$ac_func
22912
22913 /* System header to define __stub macros and hopefully few prototypes,
22914     which can conflict with char $ac_func (); below.
22915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22916     <limits.h> exists even on freestanding compilers.  */
22917
22918 #ifdef __STDC__
22919 # include <limits.h>
22920 #else
22921 # include <assert.h>
22922 #endif
22923
22924 #undef $ac_func
22925
22926 /* Override any gcc2 internal prototype to avoid an error.  */
22927 #ifdef __cplusplus
22928 extern "C"
22929 {
22930 #endif
22931 /* We use char because int might match the return type of a gcc2
22932    builtin and then its argument prototype would still apply.  */
22933 char $ac_func ();
22934 /* The GNU C library defines this for functions which it implements
22935     to always fail with ENOSYS.  Some functions are actually named
22936     something starting with __ and the normal name is an alias.  */
22937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22938 choke me
22939 #else
22940 char (*f) () = $ac_func;
22941 #endif
22942 #ifdef __cplusplus
22943 }
22944 #endif
22945
22946 int
22947 main ()
22948 {
22949 return f != $ac_func;
22950   ;
22951   return 0;
22952 }
22953 _ACEOF
22954 rm -f conftest.$ac_objext conftest$ac_exeext
22955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22956   (eval $ac_link) 2>conftest.er1
22957   ac_status=$?
22958   grep -v '^ *+' conftest.er1 >conftest.err
22959   rm -f conftest.er1
22960   cat conftest.err >&5
22961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962   (exit $ac_status); } &&
22963          { ac_try='test -z "$ac_c_werror_flag"
22964                          || test ! -s conftest.err'
22965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22966   (eval $ac_try) 2>&5
22967   ac_status=$?
22968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969   (exit $ac_status); }; } &&
22970          { ac_try='test -s conftest$ac_exeext'
22971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972   (eval $ac_try) 2>&5
22973   ac_status=$?
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); }; }; then
22976   eval "$as_ac_var=yes"
22977 else
22978   echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22980
22981 eval "$as_ac_var=no"
22982 fi
22983 rm -f conftest.err conftest.$ac_objext \
22984       conftest$ac_exeext conftest.$ac_ext
22985 fi
22986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22988 if test `eval echo '${'$as_ac_var'}'` = yes; then
22989   cat >>confdefs.h <<_ACEOF
22990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22991 _ACEOF
22992
22993 fi
22994 done
22995
22996     fi
22997   fi
22998
22999
23000
23001   echo "$as_me:$LINENO: checking for powl declaration" >&5
23002 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
23003   if test x${glibcxx_cv_func_powl_use+set} != xset; then
23004     if test "${glibcxx_cv_func_powl_use+set}" = set; then
23005   echo $ECHO_N "(cached) $ECHO_C" >&6
23006 else
23007
23008
23009
23010       ac_ext=cc
23011 ac_cpp='$CXXCPP $CPPFLAGS'
23012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23015
23016       cat >conftest.$ac_ext <<_ACEOF
23017 /* confdefs.h.  */
23018 _ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h.  */
23022 #include <math.h>
23023 int
23024 main ()
23025 {
23026  powl(0, 0);
23027   ;
23028   return 0;
23029 }
23030 _ACEOF
23031 rm -f conftest.$ac_objext
23032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23033   (eval $ac_compile) 2>conftest.er1
23034   ac_status=$?
23035   grep -v '^ *+' conftest.er1 >conftest.err
23036   rm -f conftest.er1
23037   cat conftest.err >&5
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); } &&
23040          { ac_try='test -z "$ac_cxx_werror_flag"
23041                          || test ! -s conftest.err'
23042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043   (eval $ac_try) 2>&5
23044   ac_status=$?
23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046   (exit $ac_status); }; } &&
23047          { ac_try='test -s conftest.$ac_objext'
23048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049   (eval $ac_try) 2>&5
23050   ac_status=$?
23051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052   (exit $ac_status); }; }; then
23053   glibcxx_cv_func_powl_use=yes
23054 else
23055   echo "$as_me: failed program was:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23057
23058 glibcxx_cv_func_powl_use=no
23059 fi
23060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23061       ac_ext=c
23062 ac_cpp='$CPP $CPPFLAGS'
23063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23066
23067
23068 fi
23069
23070   fi
23071   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
23072 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
23073
23074   if test x$glibcxx_cv_func_powl_use = x"yes"; then
23075
23076 for ac_func in powl
23077 do
23078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23079 echo "$as_me:$LINENO: checking for $ac_func" >&5
23080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23081 if eval "test \"\${$as_ac_var+set}\" = set"; then
23082   echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084   if test x$gcc_no_link = xyes; then
23085   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23086 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23087    { (exit 1); exit 1; }; }
23088 fi
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h.  */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h.  */
23095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23097 #define $ac_func innocuous_$ac_func
23098
23099 /* System header to define __stub macros and hopefully few prototypes,
23100     which can conflict with char $ac_func (); below.
23101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23102     <limits.h> exists even on freestanding compilers.  */
23103
23104 #ifdef __STDC__
23105 # include <limits.h>
23106 #else
23107 # include <assert.h>
23108 #endif
23109
23110 #undef $ac_func
23111
23112 /* Override any gcc2 internal prototype to avoid an error.  */
23113 #ifdef __cplusplus
23114 extern "C"
23115 {
23116 #endif
23117 /* We use char because int might match the return type of a gcc2
23118    builtin and then its argument prototype would still apply.  */
23119 char $ac_func ();
23120 /* The GNU C library defines this for functions which it implements
23121     to always fail with ENOSYS.  Some functions are actually named
23122     something starting with __ and the normal name is an alias.  */
23123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23124 choke me
23125 #else
23126 char (*f) () = $ac_func;
23127 #endif
23128 #ifdef __cplusplus
23129 }
23130 #endif
23131
23132 int
23133 main ()
23134 {
23135 return f != $ac_func;
23136   ;
23137   return 0;
23138 }
23139 _ACEOF
23140 rm -f conftest.$ac_objext conftest$ac_exeext
23141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23142   (eval $ac_link) 2>conftest.er1
23143   ac_status=$?
23144   grep -v '^ *+' conftest.er1 >conftest.err
23145   rm -f conftest.er1
23146   cat conftest.err >&5
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); } &&
23149          { ac_try='test -z "$ac_c_werror_flag"
23150                          || test ! -s conftest.err'
23151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23152   (eval $ac_try) 2>&5
23153   ac_status=$?
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); }; } &&
23156          { ac_try='test -s conftest$ac_exeext'
23157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158   (eval $ac_try) 2>&5
23159   ac_status=$?
23160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); }; }; then
23162   eval "$as_ac_var=yes"
23163 else
23164   echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23166
23167 eval "$as_ac_var=no"
23168 fi
23169 rm -f conftest.err conftest.$ac_objext \
23170       conftest$ac_exeext conftest.$ac_ext
23171 fi
23172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23174 if test `eval echo '${'$as_ac_var'}'` = yes; then
23175   cat >>confdefs.h <<_ACEOF
23176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23177 _ACEOF
23178
23179 fi
23180 done
23181
23182   else
23183
23184   echo "$as_me:$LINENO: checking for _powl declaration" >&5
23185 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
23186   if test x${glibcxx_cv_func__powl_use+set} != xset; then
23187     if test "${glibcxx_cv_func__powl_use+set}" = set; then
23188   echo $ECHO_N "(cached) $ECHO_C" >&6
23189 else
23190
23191
23192
23193       ac_ext=cc
23194 ac_cpp='$CXXCPP $CPPFLAGS'
23195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23198
23199       cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h.  */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h.  */
23205 #include <math.h>
23206 int
23207 main ()
23208 {
23209  _powl(0, 0);
23210   ;
23211   return 0;
23212 }
23213 _ACEOF
23214 rm -f conftest.$ac_objext
23215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23216   (eval $ac_compile) 2>conftest.er1
23217   ac_status=$?
23218   grep -v '^ *+' conftest.er1 >conftest.err
23219   rm -f conftest.er1
23220   cat conftest.err >&5
23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222   (exit $ac_status); } &&
23223          { ac_try='test -z "$ac_cxx_werror_flag"
23224                          || test ! -s conftest.err'
23225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226   (eval $ac_try) 2>&5
23227   ac_status=$?
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); }; } &&
23230          { ac_try='test -s conftest.$ac_objext'
23231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232   (eval $ac_try) 2>&5
23233   ac_status=$?
23234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235   (exit $ac_status); }; }; then
23236   glibcxx_cv_func__powl_use=yes
23237 else
23238   echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241 glibcxx_cv_func__powl_use=no
23242 fi
23243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23244       ac_ext=c
23245 ac_cpp='$CPP $CPPFLAGS'
23246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23249
23250
23251 fi
23252
23253   fi
23254   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
23255 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
23256
23257     if test x$glibcxx_cv_func__powl_use = x"yes"; then
23258
23259 for ac_func in _powl
23260 do
23261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23262 echo "$as_me:$LINENO: checking for $ac_func" >&5
23263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23264 if eval "test \"\${$as_ac_var+set}\" = set"; then
23265   echo $ECHO_N "(cached) $ECHO_C" >&6
23266 else
23267   if test x$gcc_no_link = xyes; then
23268   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23270    { (exit 1); exit 1; }; }
23271 fi
23272 cat >conftest.$ac_ext <<_ACEOF
23273 /* confdefs.h.  */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h.  */
23278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23280 #define $ac_func innocuous_$ac_func
23281
23282 /* System header to define __stub macros and hopefully few prototypes,
23283     which can conflict with char $ac_func (); below.
23284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23285     <limits.h> exists even on freestanding compilers.  */
23286
23287 #ifdef __STDC__
23288 # include <limits.h>
23289 #else
23290 # include <assert.h>
23291 #endif
23292
23293 #undef $ac_func
23294
23295 /* Override any gcc2 internal prototype to avoid an error.  */
23296 #ifdef __cplusplus
23297 extern "C"
23298 {
23299 #endif
23300 /* We use char because int might match the return type of a gcc2
23301    builtin and then its argument prototype would still apply.  */
23302 char $ac_func ();
23303 /* The GNU C library defines this for functions which it implements
23304     to always fail with ENOSYS.  Some functions are actually named
23305     something starting with __ and the normal name is an alias.  */
23306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23307 choke me
23308 #else
23309 char (*f) () = $ac_func;
23310 #endif
23311 #ifdef __cplusplus
23312 }
23313 #endif
23314
23315 int
23316 main ()
23317 {
23318 return f != $ac_func;
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext conftest$ac_exeext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325   (eval $ac_link) 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } &&
23332          { ac_try='test -z "$ac_c_werror_flag"
23333                          || test ! -s conftest.err'
23334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335   (eval $ac_try) 2>&5
23336   ac_status=$?
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); }; } &&
23339          { ac_try='test -s conftest$ac_exeext'
23340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); }; }; then
23345   eval "$as_ac_var=yes"
23346 else
23347   echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23349
23350 eval "$as_ac_var=no"
23351 fi
23352 rm -f conftest.err conftest.$ac_objext \
23353       conftest$ac_exeext conftest.$ac_ext
23354 fi
23355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23357 if test `eval echo '${'$as_ac_var'}'` = yes; then
23358   cat >>confdefs.h <<_ACEOF
23359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23360 _ACEOF
23361
23362 fi
23363 done
23364
23365     fi
23366   fi
23367
23368
23369
23370   echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
23371 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
23372   if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
23373     if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
23374   echo $ECHO_N "(cached) $ECHO_C" >&6
23375 else
23376
23377
23378
23379       ac_ext=cc
23380 ac_cpp='$CXXCPP $CPPFLAGS'
23381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23384
23385       cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h.  */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h.  */
23391 #include <math.h>
23392                       #ifdef HAVE_IEEEFP_H
23393                       #include <ieeefp.h>
23394                       #endif
23395
23396 int
23397 main ()
23398 {
23399  sqrtl(0);
23400   ;
23401   return 0;
23402 }
23403 _ACEOF
23404 rm -f conftest.$ac_objext
23405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23406   (eval $ac_compile) 2>conftest.er1
23407   ac_status=$?
23408   grep -v '^ *+' conftest.er1 >conftest.err
23409   rm -f conftest.er1
23410   cat conftest.err >&5
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); } &&
23413          { ac_try='test -z "$ac_cxx_werror_flag"
23414                          || test ! -s conftest.err'
23415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416   (eval $ac_try) 2>&5
23417   ac_status=$?
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); }; } &&
23420          { ac_try='test -s conftest.$ac_objext'
23421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422   (eval $ac_try) 2>&5
23423   ac_status=$?
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); }; }; then
23426   glibcxx_cv_func_sqrtl_use=yes
23427 else
23428   echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23430
23431 glibcxx_cv_func_sqrtl_use=no
23432 fi
23433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23434       ac_ext=c
23435 ac_cpp='$CPP $CPPFLAGS'
23436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23439
23440
23441 fi
23442
23443   fi
23444   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
23445 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
23446
23447   if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
23448
23449 for ac_func in sqrtl
23450 do
23451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23452 echo "$as_me:$LINENO: checking for $ac_func" >&5
23453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23454 if eval "test \"\${$as_ac_var+set}\" = set"; then
23455   echo $ECHO_N "(cached) $ECHO_C" >&6
23456 else
23457   if test x$gcc_no_link = xyes; then
23458   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23460    { (exit 1); exit 1; }; }
23461 fi
23462 cat >conftest.$ac_ext <<_ACEOF
23463 /* confdefs.h.  */
23464 _ACEOF
23465 cat confdefs.h >>conftest.$ac_ext
23466 cat >>conftest.$ac_ext <<_ACEOF
23467 /* end confdefs.h.  */
23468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23470 #define $ac_func innocuous_$ac_func
23471
23472 /* System header to define __stub macros and hopefully few prototypes,
23473     which can conflict with char $ac_func (); below.
23474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23475     <limits.h> exists even on freestanding compilers.  */
23476
23477 #ifdef __STDC__
23478 # include <limits.h>
23479 #else
23480 # include <assert.h>
23481 #endif
23482
23483 #undef $ac_func
23484
23485 /* Override any gcc2 internal prototype to avoid an error.  */
23486 #ifdef __cplusplus
23487 extern "C"
23488 {
23489 #endif
23490 /* We use char because int might match the return type of a gcc2
23491    builtin and then its argument prototype would still apply.  */
23492 char $ac_func ();
23493 /* The GNU C library defines this for functions which it implements
23494     to always fail with ENOSYS.  Some functions are actually named
23495     something starting with __ and the normal name is an alias.  */
23496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23497 choke me
23498 #else
23499 char (*f) () = $ac_func;
23500 #endif
23501 #ifdef __cplusplus
23502 }
23503 #endif
23504
23505 int
23506 main ()
23507 {
23508 return f != $ac_func;
23509   ;
23510   return 0;
23511 }
23512 _ACEOF
23513 rm -f conftest.$ac_objext conftest$ac_exeext
23514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23515   (eval $ac_link) 2>conftest.er1
23516   ac_status=$?
23517   grep -v '^ *+' conftest.er1 >conftest.err
23518   rm -f conftest.er1
23519   cat conftest.err >&5
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } &&
23522          { ac_try='test -z "$ac_c_werror_flag"
23523                          || test ! -s conftest.err'
23524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525   (eval $ac_try) 2>&5
23526   ac_status=$?
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); }; } &&
23529          { ac_try='test -s conftest$ac_exeext'
23530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531   (eval $ac_try) 2>&5
23532   ac_status=$?
23533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534   (exit $ac_status); }; }; then
23535   eval "$as_ac_var=yes"
23536 else
23537   echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23539
23540 eval "$as_ac_var=no"
23541 fi
23542 rm -f conftest.err conftest.$ac_objext \
23543       conftest$ac_exeext conftest.$ac_ext
23544 fi
23545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23547 if test `eval echo '${'$as_ac_var'}'` = yes; then
23548   cat >>confdefs.h <<_ACEOF
23549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23550 _ACEOF
23551
23552 fi
23553 done
23554
23555   else
23556
23557   echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
23558 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
23559   if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
23560     if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
23561   echo $ECHO_N "(cached) $ECHO_C" >&6
23562 else
23563
23564
23565
23566       ac_ext=cc
23567 ac_cpp='$CXXCPP $CPPFLAGS'
23568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23571
23572       cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h.  */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h.  */
23578 #include <math.h>
23579                       #ifdef HAVE_IEEEFP_H
23580                       #include <ieeefp.h>
23581                       #endif
23582
23583 int
23584 main ()
23585 {
23586  _sqrtl(0);
23587   ;
23588   return 0;
23589 }
23590 _ACEOF
23591 rm -f conftest.$ac_objext
23592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23593   (eval $ac_compile) 2>conftest.er1
23594   ac_status=$?
23595   grep -v '^ *+' conftest.er1 >conftest.err
23596   rm -f conftest.er1
23597   cat conftest.err >&5
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); } &&
23600          { ac_try='test -z "$ac_cxx_werror_flag"
23601                          || test ! -s conftest.err'
23602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603   (eval $ac_try) 2>&5
23604   ac_status=$?
23605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606   (exit $ac_status); }; } &&
23607          { ac_try='test -s conftest.$ac_objext'
23608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609   (eval $ac_try) 2>&5
23610   ac_status=$?
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); }; }; then
23613   glibcxx_cv_func__sqrtl_use=yes
23614 else
23615   echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.$ac_ext >&5
23617
23618 glibcxx_cv_func__sqrtl_use=no
23619 fi
23620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23621       ac_ext=c
23622 ac_cpp='$CPP $CPPFLAGS'
23623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23626
23627
23628 fi
23629
23630   fi
23631   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
23632 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
23633
23634     if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
23635
23636 for ac_func in _sqrtl
23637 do
23638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23639 echo "$as_me:$LINENO: checking for $ac_func" >&5
23640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23641 if eval "test \"\${$as_ac_var+set}\" = set"; then
23642   echo $ECHO_N "(cached) $ECHO_C" >&6
23643 else
23644   if test x$gcc_no_link = xyes; then
23645   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23646 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23647    { (exit 1); exit 1; }; }
23648 fi
23649 cat >conftest.$ac_ext <<_ACEOF
23650 /* confdefs.h.  */
23651 _ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h.  */
23655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23657 #define $ac_func innocuous_$ac_func
23658
23659 /* System header to define __stub macros and hopefully few prototypes,
23660     which can conflict with char $ac_func (); below.
23661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23662     <limits.h> exists even on freestanding compilers.  */
23663
23664 #ifdef __STDC__
23665 # include <limits.h>
23666 #else
23667 # include <assert.h>
23668 #endif
23669
23670 #undef $ac_func
23671
23672 /* Override any gcc2 internal prototype to avoid an error.  */
23673 #ifdef __cplusplus
23674 extern "C"
23675 {
23676 #endif
23677 /* We use char because int might match the return type of a gcc2
23678    builtin and then its argument prototype would still apply.  */
23679 char $ac_func ();
23680 /* The GNU C library defines this for functions which it implements
23681     to always fail with ENOSYS.  Some functions are actually named
23682     something starting with __ and the normal name is an alias.  */
23683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23684 choke me
23685 #else
23686 char (*f) () = $ac_func;
23687 #endif
23688 #ifdef __cplusplus
23689 }
23690 #endif
23691
23692 int
23693 main ()
23694 {
23695 return f != $ac_func;
23696   ;
23697   return 0;
23698 }
23699 _ACEOF
23700 rm -f conftest.$ac_objext conftest$ac_exeext
23701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23702   (eval $ac_link) 2>conftest.er1
23703   ac_status=$?
23704   grep -v '^ *+' conftest.er1 >conftest.err
23705   rm -f conftest.er1
23706   cat conftest.err >&5
23707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708   (exit $ac_status); } &&
23709          { ac_try='test -z "$ac_c_werror_flag"
23710                          || test ! -s conftest.err'
23711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712   (eval $ac_try) 2>&5
23713   ac_status=$?
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); }; } &&
23716          { ac_try='test -s conftest$ac_exeext'
23717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718   (eval $ac_try) 2>&5
23719   ac_status=$?
23720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721   (exit $ac_status); }; }; then
23722   eval "$as_ac_var=yes"
23723 else
23724   echo "$as_me: failed program was:" >&5
23725 sed 's/^/| /' conftest.$ac_ext >&5
23726
23727 eval "$as_ac_var=no"
23728 fi
23729 rm -f conftest.err conftest.$ac_objext \
23730       conftest$ac_exeext conftest.$ac_ext
23731 fi
23732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23734 if test `eval echo '${'$as_ac_var'}'` = yes; then
23735   cat >>confdefs.h <<_ACEOF
23736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23737 _ACEOF
23738
23739 fi
23740 done
23741
23742     fi
23743   fi
23744
23745
23746
23747   echo "$as_me:$LINENO: checking for sincosl declaration" >&5
23748 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
23749   if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
23750     if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
23751   echo $ECHO_N "(cached) $ECHO_C" >&6
23752 else
23753
23754
23755
23756       ac_ext=cc
23757 ac_cpp='$CXXCPP $CPPFLAGS'
23758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23761
23762       cat >conftest.$ac_ext <<_ACEOF
23763 /* confdefs.h.  */
23764 _ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h.  */
23768 #include <math.h>
23769 int
23770 main ()
23771 {
23772  sincosl(0, 0, 0);
23773   ;
23774   return 0;
23775 }
23776 _ACEOF
23777 rm -f conftest.$ac_objext
23778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23779   (eval $ac_compile) 2>conftest.er1
23780   ac_status=$?
23781   grep -v '^ *+' conftest.er1 >conftest.err
23782   rm -f conftest.er1
23783   cat conftest.err >&5
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } &&
23786          { ac_try='test -z "$ac_cxx_werror_flag"
23787                          || test ! -s conftest.err'
23788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789   (eval $ac_try) 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); }; } &&
23793          { ac_try='test -s conftest.$ac_objext'
23794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795   (eval $ac_try) 2>&5
23796   ac_status=$?
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); }; }; then
23799   glibcxx_cv_func_sincosl_use=yes
23800 else
23801   echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23803
23804 glibcxx_cv_func_sincosl_use=no
23805 fi
23806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23807       ac_ext=c
23808 ac_cpp='$CPP $CPPFLAGS'
23809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23812
23813
23814 fi
23815
23816   fi
23817   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
23818 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
23819
23820   if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
23821
23822 for ac_func in sincosl
23823 do
23824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23825 echo "$as_me:$LINENO: checking for $ac_func" >&5
23826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23827 if eval "test \"\${$as_ac_var+set}\" = set"; then
23828   echo $ECHO_N "(cached) $ECHO_C" >&6
23829 else
23830   if test x$gcc_no_link = xyes; then
23831   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23832 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23833    { (exit 1); exit 1; }; }
23834 fi
23835 cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h.  */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h.  */
23841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23843 #define $ac_func innocuous_$ac_func
23844
23845 /* System header to define __stub macros and hopefully few prototypes,
23846     which can conflict with char $ac_func (); below.
23847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23848     <limits.h> exists even on freestanding compilers.  */
23849
23850 #ifdef __STDC__
23851 # include <limits.h>
23852 #else
23853 # include <assert.h>
23854 #endif
23855
23856 #undef $ac_func
23857
23858 /* Override any gcc2 internal prototype to avoid an error.  */
23859 #ifdef __cplusplus
23860 extern "C"
23861 {
23862 #endif
23863 /* We use char because int might match the return type of a gcc2
23864    builtin and then its argument prototype would still apply.  */
23865 char $ac_func ();
23866 /* The GNU C library defines this for functions which it implements
23867     to always fail with ENOSYS.  Some functions are actually named
23868     something starting with __ and the normal name is an alias.  */
23869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23870 choke me
23871 #else
23872 char (*f) () = $ac_func;
23873 #endif
23874 #ifdef __cplusplus
23875 }
23876 #endif
23877
23878 int
23879 main ()
23880 {
23881 return f != $ac_func;
23882   ;
23883   return 0;
23884 }
23885 _ACEOF
23886 rm -f conftest.$ac_objext conftest$ac_exeext
23887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23888   (eval $ac_link) 2>conftest.er1
23889   ac_status=$?
23890   grep -v '^ *+' conftest.er1 >conftest.err
23891   rm -f conftest.er1
23892   cat conftest.err >&5
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); } &&
23895          { ac_try='test -z "$ac_c_werror_flag"
23896                          || test ! -s conftest.err'
23897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898   (eval $ac_try) 2>&5
23899   ac_status=$?
23900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901   (exit $ac_status); }; } &&
23902          { ac_try='test -s conftest$ac_exeext'
23903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904   (eval $ac_try) 2>&5
23905   ac_status=$?
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); }; }; then
23908   eval "$as_ac_var=yes"
23909 else
23910   echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23912
23913 eval "$as_ac_var=no"
23914 fi
23915 rm -f conftest.err conftest.$ac_objext \
23916       conftest$ac_exeext conftest.$ac_ext
23917 fi
23918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23920 if test `eval echo '${'$as_ac_var'}'` = yes; then
23921   cat >>confdefs.h <<_ACEOF
23922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23923 _ACEOF
23924
23925 fi
23926 done
23927
23928   else
23929
23930   echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
23931 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
23932   if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
23933     if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
23934   echo $ECHO_N "(cached) $ECHO_C" >&6
23935 else
23936
23937
23938
23939       ac_ext=cc
23940 ac_cpp='$CXXCPP $CPPFLAGS'
23941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23944
23945       cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h.  */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h.  */
23951 #include <math.h>
23952 int
23953 main ()
23954 {
23955  _sincosl(0, 0, 0);
23956   ;
23957   return 0;
23958 }
23959 _ACEOF
23960 rm -f conftest.$ac_objext
23961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23962   (eval $ac_compile) 2>conftest.er1
23963   ac_status=$?
23964   grep -v '^ *+' conftest.er1 >conftest.err
23965   rm -f conftest.er1
23966   cat conftest.err >&5
23967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968   (exit $ac_status); } &&
23969          { ac_try='test -z "$ac_cxx_werror_flag"
23970                          || test ! -s conftest.err'
23971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972   (eval $ac_try) 2>&5
23973   ac_status=$?
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); }; } &&
23976          { ac_try='test -s conftest.$ac_objext'
23977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23978   (eval $ac_try) 2>&5
23979   ac_status=$?
23980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981   (exit $ac_status); }; }; then
23982   glibcxx_cv_func__sincosl_use=yes
23983 else
23984   echo "$as_me: failed program was:" >&5
23985 sed 's/^/| /' conftest.$ac_ext >&5
23986
23987 glibcxx_cv_func__sincosl_use=no
23988 fi
23989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23990       ac_ext=c
23991 ac_cpp='$CPP $CPPFLAGS'
23992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23995
23996
23997 fi
23998
23999   fi
24000   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
24001 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
24002
24003     if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
24004
24005 for ac_func in _sincosl
24006 do
24007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24008 echo "$as_me:$LINENO: checking for $ac_func" >&5
24009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24010 if eval "test \"\${$as_ac_var+set}\" = set"; then
24011   echo $ECHO_N "(cached) $ECHO_C" >&6
24012 else
24013   if test x$gcc_no_link = xyes; then
24014   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24016    { (exit 1); exit 1; }; }
24017 fi
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h.  */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h.  */
24024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24026 #define $ac_func innocuous_$ac_func
24027
24028 /* System header to define __stub macros and hopefully few prototypes,
24029     which can conflict with char $ac_func (); below.
24030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24031     <limits.h> exists even on freestanding compilers.  */
24032
24033 #ifdef __STDC__
24034 # include <limits.h>
24035 #else
24036 # include <assert.h>
24037 #endif
24038
24039 #undef $ac_func
24040
24041 /* Override any gcc2 internal prototype to avoid an error.  */
24042 #ifdef __cplusplus
24043 extern "C"
24044 {
24045 #endif
24046 /* We use char because int might match the return type of a gcc2
24047    builtin and then its argument prototype would still apply.  */
24048 char $ac_func ();
24049 /* The GNU C library defines this for functions which it implements
24050     to always fail with ENOSYS.  Some functions are actually named
24051     something starting with __ and the normal name is an alias.  */
24052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24053 choke me
24054 #else
24055 char (*f) () = $ac_func;
24056 #endif
24057 #ifdef __cplusplus
24058 }
24059 #endif
24060
24061 int
24062 main ()
24063 {
24064 return f != $ac_func;
24065   ;
24066   return 0;
24067 }
24068 _ACEOF
24069 rm -f conftest.$ac_objext conftest$ac_exeext
24070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24071   (eval $ac_link) 2>conftest.er1
24072   ac_status=$?
24073   grep -v '^ *+' conftest.er1 >conftest.err
24074   rm -f conftest.er1
24075   cat conftest.err >&5
24076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077   (exit $ac_status); } &&
24078          { ac_try='test -z "$ac_c_werror_flag"
24079                          || test ! -s conftest.err'
24080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24081   (eval $ac_try) 2>&5
24082   ac_status=$?
24083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084   (exit $ac_status); }; } &&
24085          { ac_try='test -s conftest$ac_exeext'
24086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087   (eval $ac_try) 2>&5
24088   ac_status=$?
24089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090   (exit $ac_status); }; }; then
24091   eval "$as_ac_var=yes"
24092 else
24093   echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24095
24096 eval "$as_ac_var=no"
24097 fi
24098 rm -f conftest.err conftest.$ac_objext \
24099       conftest$ac_exeext conftest.$ac_ext
24100 fi
24101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24103 if test `eval echo '${'$as_ac_var'}'` = yes; then
24104   cat >>confdefs.h <<_ACEOF
24105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24106 _ACEOF
24107
24108 fi
24109 done
24110
24111     fi
24112   fi
24113
24114
24115
24116   echo "$as_me:$LINENO: checking for finitel declaration" >&5
24117 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
24118   if test x${glibcxx_cv_func_finitel_use+set} != xset; then
24119     if test "${glibcxx_cv_func_finitel_use+set}" = set; then
24120   echo $ECHO_N "(cached) $ECHO_C" >&6
24121 else
24122
24123
24124
24125       ac_ext=cc
24126 ac_cpp='$CXXCPP $CPPFLAGS'
24127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24130
24131       cat >conftest.$ac_ext <<_ACEOF
24132 /* confdefs.h.  */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h.  */
24137 #include <math.h>
24138                       #ifdef HAVE_IEEEFP_H
24139                       #include <ieeefp.h>
24140                       #endif
24141
24142 int
24143 main ()
24144 {
24145  finitel(0);
24146   ;
24147   return 0;
24148 }
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24152   (eval $ac_compile) 2>conftest.er1
24153   ac_status=$?
24154   grep -v '^ *+' conftest.er1 >conftest.err
24155   rm -f conftest.er1
24156   cat conftest.err >&5
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); } &&
24159          { ac_try='test -z "$ac_cxx_werror_flag"
24160                          || test ! -s conftest.err'
24161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162   (eval $ac_try) 2>&5
24163   ac_status=$?
24164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165   (exit $ac_status); }; } &&
24166          { ac_try='test -s conftest.$ac_objext'
24167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168   (eval $ac_try) 2>&5
24169   ac_status=$?
24170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171   (exit $ac_status); }; }; then
24172   glibcxx_cv_func_finitel_use=yes
24173 else
24174   echo "$as_me: failed program was:" >&5
24175 sed 's/^/| /' conftest.$ac_ext >&5
24176
24177 glibcxx_cv_func_finitel_use=no
24178 fi
24179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24180       ac_ext=c
24181 ac_cpp='$CPP $CPPFLAGS'
24182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24185
24186
24187 fi
24188
24189   fi
24190   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
24191 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
24192
24193   if test x$glibcxx_cv_func_finitel_use = x"yes"; then
24194
24195 for ac_func in finitel
24196 do
24197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24198 echo "$as_me:$LINENO: checking for $ac_func" >&5
24199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24200 if eval "test \"\${$as_ac_var+set}\" = set"; then
24201   echo $ECHO_N "(cached) $ECHO_C" >&6
24202 else
24203   if test x$gcc_no_link = xyes; then
24204   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24205 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24206    { (exit 1); exit 1; }; }
24207 fi
24208 cat >conftest.$ac_ext <<_ACEOF
24209 /* confdefs.h.  */
24210 _ACEOF
24211 cat confdefs.h >>conftest.$ac_ext
24212 cat >>conftest.$ac_ext <<_ACEOF
24213 /* end confdefs.h.  */
24214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24216 #define $ac_func innocuous_$ac_func
24217
24218 /* System header to define __stub macros and hopefully few prototypes,
24219     which can conflict with char $ac_func (); below.
24220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24221     <limits.h> exists even on freestanding compilers.  */
24222
24223 #ifdef __STDC__
24224 # include <limits.h>
24225 #else
24226 # include <assert.h>
24227 #endif
24228
24229 #undef $ac_func
24230
24231 /* Override any gcc2 internal prototype to avoid an error.  */
24232 #ifdef __cplusplus
24233 extern "C"
24234 {
24235 #endif
24236 /* We use char because int might match the return type of a gcc2
24237    builtin and then its argument prototype would still apply.  */
24238 char $ac_func ();
24239 /* The GNU C library defines this for functions which it implements
24240     to always fail with ENOSYS.  Some functions are actually named
24241     something starting with __ and the normal name is an alias.  */
24242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24243 choke me
24244 #else
24245 char (*f) () = $ac_func;
24246 #endif
24247 #ifdef __cplusplus
24248 }
24249 #endif
24250
24251 int
24252 main ()
24253 {
24254 return f != $ac_func;
24255   ;
24256   return 0;
24257 }
24258 _ACEOF
24259 rm -f conftest.$ac_objext conftest$ac_exeext
24260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24261   (eval $ac_link) 2>conftest.er1
24262   ac_status=$?
24263   grep -v '^ *+' conftest.er1 >conftest.err
24264   rm -f conftest.er1
24265   cat conftest.err >&5
24266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267   (exit $ac_status); } &&
24268          { ac_try='test -z "$ac_c_werror_flag"
24269                          || test ! -s conftest.err'
24270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271   (eval $ac_try) 2>&5
24272   ac_status=$?
24273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274   (exit $ac_status); }; } &&
24275          { ac_try='test -s conftest$ac_exeext'
24276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24277   (eval $ac_try) 2>&5
24278   ac_status=$?
24279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280   (exit $ac_status); }; }; then
24281   eval "$as_ac_var=yes"
24282 else
24283   echo "$as_me: failed program was:" >&5
24284 sed 's/^/| /' conftest.$ac_ext >&5
24285
24286 eval "$as_ac_var=no"
24287 fi
24288 rm -f conftest.err conftest.$ac_objext \
24289       conftest$ac_exeext conftest.$ac_ext
24290 fi
24291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24293 if test `eval echo '${'$as_ac_var'}'` = yes; then
24294   cat >>confdefs.h <<_ACEOF
24295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24296 _ACEOF
24297
24298 fi
24299 done
24300
24301   else
24302
24303   echo "$as_me:$LINENO: checking for _finitel declaration" >&5
24304 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
24305   if test x${glibcxx_cv_func__finitel_use+set} != xset; then
24306     if test "${glibcxx_cv_func__finitel_use+set}" = set; then
24307   echo $ECHO_N "(cached) $ECHO_C" >&6
24308 else
24309
24310
24311
24312       ac_ext=cc
24313 ac_cpp='$CXXCPP $CPPFLAGS'
24314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24317
24318       cat >conftest.$ac_ext <<_ACEOF
24319 /* confdefs.h.  */
24320 _ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h.  */
24324 #include <math.h>
24325                       #ifdef HAVE_IEEEFP_H
24326                       #include <ieeefp.h>
24327                       #endif
24328
24329 int
24330 main ()
24331 {
24332  _finitel(0);
24333   ;
24334   return 0;
24335 }
24336 _ACEOF
24337 rm -f conftest.$ac_objext
24338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24339   (eval $ac_compile) 2>conftest.er1
24340   ac_status=$?
24341   grep -v '^ *+' conftest.er1 >conftest.err
24342   rm -f conftest.er1
24343   cat conftest.err >&5
24344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); } &&
24346          { ac_try='test -z "$ac_cxx_werror_flag"
24347                          || test ! -s conftest.err'
24348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24349   (eval $ac_try) 2>&5
24350   ac_status=$?
24351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352   (exit $ac_status); }; } &&
24353          { ac_try='test -s conftest.$ac_objext'
24354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355   (eval $ac_try) 2>&5
24356   ac_status=$?
24357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358   (exit $ac_status); }; }; then
24359   glibcxx_cv_func__finitel_use=yes
24360 else
24361   echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24363
24364 glibcxx_cv_func__finitel_use=no
24365 fi
24366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24367       ac_ext=c
24368 ac_cpp='$CPP $CPPFLAGS'
24369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24372
24373
24374 fi
24375
24376   fi
24377   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
24378 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
24379
24380     if test x$glibcxx_cv_func__finitel_use = x"yes"; then
24381
24382 for ac_func in _finitel
24383 do
24384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24385 echo "$as_me:$LINENO: checking for $ac_func" >&5
24386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24387 if eval "test \"\${$as_ac_var+set}\" = set"; then
24388   echo $ECHO_N "(cached) $ECHO_C" >&6
24389 else
24390   if test x$gcc_no_link = xyes; then
24391   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24393    { (exit 1); exit 1; }; }
24394 fi
24395 cat >conftest.$ac_ext <<_ACEOF
24396 /* confdefs.h.  */
24397 _ACEOF
24398 cat confdefs.h >>conftest.$ac_ext
24399 cat >>conftest.$ac_ext <<_ACEOF
24400 /* end confdefs.h.  */
24401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24403 #define $ac_func innocuous_$ac_func
24404
24405 /* System header to define __stub macros and hopefully few prototypes,
24406     which can conflict with char $ac_func (); below.
24407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24408     <limits.h> exists even on freestanding compilers.  */
24409
24410 #ifdef __STDC__
24411 # include <limits.h>
24412 #else
24413 # include <assert.h>
24414 #endif
24415
24416 #undef $ac_func
24417
24418 /* Override any gcc2 internal prototype to avoid an error.  */
24419 #ifdef __cplusplus
24420 extern "C"
24421 {
24422 #endif
24423 /* We use char because int might match the return type of a gcc2
24424    builtin and then its argument prototype would still apply.  */
24425 char $ac_func ();
24426 /* The GNU C library defines this for functions which it implements
24427     to always fail with ENOSYS.  Some functions are actually named
24428     something starting with __ and the normal name is an alias.  */
24429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24430 choke me
24431 #else
24432 char (*f) () = $ac_func;
24433 #endif
24434 #ifdef __cplusplus
24435 }
24436 #endif
24437
24438 int
24439 main ()
24440 {
24441 return f != $ac_func;
24442   ;
24443   return 0;
24444 }
24445 _ACEOF
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24448   (eval $ac_link) 2>conftest.er1
24449   ac_status=$?
24450   grep -v '^ *+' conftest.er1 >conftest.err
24451   rm -f conftest.er1
24452   cat conftest.err >&5
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); } &&
24455          { ac_try='test -z "$ac_c_werror_flag"
24456                          || test ! -s conftest.err'
24457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458   (eval $ac_try) 2>&5
24459   ac_status=$?
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); }; } &&
24462          { ac_try='test -s conftest$ac_exeext'
24463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464   (eval $ac_try) 2>&5
24465   ac_status=$?
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); }; }; then
24468   eval "$as_ac_var=yes"
24469 else
24470   echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24472
24473 eval "$as_ac_var=no"
24474 fi
24475 rm -f conftest.err conftest.$ac_objext \
24476       conftest$ac_exeext conftest.$ac_ext
24477 fi
24478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24480 if test `eval echo '${'$as_ac_var'}'` = yes; then
24481   cat >>confdefs.h <<_ACEOF
24482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24483 _ACEOF
24484
24485 fi
24486 done
24487
24488     fi
24489   fi
24490
24491
24492
24493
24494   echo "$as_me:$LINENO: checking for _float trig functions" >&5
24495 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
24496   if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
24497   echo $ECHO_N "(cached) $ECHO_C" >&6
24498 else
24499
24500
24501
24502     ac_ext=cc
24503 ac_cpp='$CXXCPP $CPPFLAGS'
24504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24507
24508     cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h.  */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h.  */
24514 #include <math.h>
24515 int
24516 main ()
24517 {
24518  `for x in _acosf _asinf _atanf \
24519                                           _cosf _sinf _tanf \
24520                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done`
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 rm -f conftest.$ac_objext
24526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24527   (eval $ac_compile) 2>conftest.er1
24528   ac_status=$?
24529   grep -v '^ *+' conftest.er1 >conftest.err
24530   rm -f conftest.er1
24531   cat conftest.err >&5
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); } &&
24534          { ac_try='test -z "$ac_cxx_werror_flag"
24535                          || test ! -s conftest.err'
24536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537   (eval $ac_try) 2>&5
24538   ac_status=$?
24539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540   (exit $ac_status); }; } &&
24541          { ac_try='test -s conftest.$ac_objext'
24542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543   (eval $ac_try) 2>&5
24544   ac_status=$?
24545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); }; }; then
24547   glibcxx_cv_func__float_trig_use=yes
24548 else
24549   echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 glibcxx_cv_func__float_trig_use=no
24553 fi
24554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24555     ac_ext=c
24556 ac_cpp='$CPP $CPPFLAGS'
24557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24560
24561 fi
24562
24563   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
24564 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
24565   if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575 for ac_func in _acosf _asinf _atanf \
24576                                           _cosf _sinf _tanf \
24577                                           _coshf _sinhf _tanhf
24578 do
24579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24580 echo "$as_me:$LINENO: checking for $ac_func" >&5
24581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24582 if eval "test \"\${$as_ac_var+set}\" = set"; then
24583   echo $ECHO_N "(cached) $ECHO_C" >&6
24584 else
24585   if test x$gcc_no_link = xyes; then
24586   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24587 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24588    { (exit 1); exit 1; }; }
24589 fi
24590 cat >conftest.$ac_ext <<_ACEOF
24591 /* confdefs.h.  */
24592 _ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h.  */
24596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24598 #define $ac_func innocuous_$ac_func
24599
24600 /* System header to define __stub macros and hopefully few prototypes,
24601     which can conflict with char $ac_func (); below.
24602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24603     <limits.h> exists even on freestanding compilers.  */
24604
24605 #ifdef __STDC__
24606 # include <limits.h>
24607 #else
24608 # include <assert.h>
24609 #endif
24610
24611 #undef $ac_func
24612
24613 /* Override any gcc2 internal prototype to avoid an error.  */
24614 #ifdef __cplusplus
24615 extern "C"
24616 {
24617 #endif
24618 /* We use char because int might match the return type of a gcc2
24619    builtin and then its argument prototype would still apply.  */
24620 char $ac_func ();
24621 /* The GNU C library defines this for functions which it implements
24622     to always fail with ENOSYS.  Some functions are actually named
24623     something starting with __ and the normal name is an alias.  */
24624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24625 choke me
24626 #else
24627 char (*f) () = $ac_func;
24628 #endif
24629 #ifdef __cplusplus
24630 }
24631 #endif
24632
24633 int
24634 main ()
24635 {
24636 return f != $ac_func;
24637   ;
24638   return 0;
24639 }
24640 _ACEOF
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24643   (eval $ac_link) 2>conftest.er1
24644   ac_status=$?
24645   grep -v '^ *+' conftest.er1 >conftest.err
24646   rm -f conftest.er1
24647   cat conftest.err >&5
24648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649   (exit $ac_status); } &&
24650          { ac_try='test -z "$ac_c_werror_flag"
24651                          || test ! -s conftest.err'
24652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653   (eval $ac_try) 2>&5
24654   ac_status=$?
24655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656   (exit $ac_status); }; } &&
24657          { ac_try='test -s conftest$ac_exeext'
24658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659   (eval $ac_try) 2>&5
24660   ac_status=$?
24661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); }; }; then
24663   eval "$as_ac_var=yes"
24664 else
24665   echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24667
24668 eval "$as_ac_var=no"
24669 fi
24670 rm -f conftest.err conftest.$ac_objext \
24671       conftest$ac_exeext conftest.$ac_ext
24672 fi
24673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24675 if test `eval echo '${'$as_ac_var'}'` = yes; then
24676   cat >>confdefs.h <<_ACEOF
24677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24678 _ACEOF
24679
24680 fi
24681 done
24682
24683   fi
24684
24685
24686   echo "$as_me:$LINENO: checking for _float round functions" >&5
24687 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
24688   if test "${glibcxx_cv_func__float_round_use+set}" = set; then
24689   echo $ECHO_N "(cached) $ECHO_C" >&6
24690 else
24691
24692
24693
24694     ac_ext=cc
24695 ac_cpp='$CXXCPP $CPPFLAGS'
24696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24699
24700     cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h.  */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h.  */
24706 #include <math.h>
24707 int
24708 main ()
24709 {
24710  `for x in _ceilf _floorf; do echo "$x (0);"; done`
24711   ;
24712   return 0;
24713 }
24714 _ACEOF
24715 rm -f conftest.$ac_objext
24716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24717   (eval $ac_compile) 2>conftest.er1
24718   ac_status=$?
24719   grep -v '^ *+' conftest.er1 >conftest.err
24720   rm -f conftest.er1
24721   cat conftest.err >&5
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); } &&
24724          { ac_try='test -z "$ac_cxx_werror_flag"
24725                          || test ! -s conftest.err'
24726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24727   (eval $ac_try) 2>&5
24728   ac_status=$?
24729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730   (exit $ac_status); }; } &&
24731          { ac_try='test -s conftest.$ac_objext'
24732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733   (eval $ac_try) 2>&5
24734   ac_status=$?
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); }; }; then
24737   glibcxx_cv_func__float_round_use=yes
24738 else
24739   echo "$as_me: failed program was:" >&5
24740 sed 's/^/| /' conftest.$ac_ext >&5
24741
24742 glibcxx_cv_func__float_round_use=no
24743 fi
24744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24745     ac_ext=c
24746 ac_cpp='$CPP $CPPFLAGS'
24747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24750
24751 fi
24752
24753   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
24754 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
24755   if test x$glibcxx_cv_func__float_round_use = x"yes"; then
24756
24757
24758 for ac_func in _ceilf _floorf
24759 do
24760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24761 echo "$as_me:$LINENO: checking for $ac_func" >&5
24762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24763 if eval "test \"\${$as_ac_var+set}\" = set"; then
24764   echo $ECHO_N "(cached) $ECHO_C" >&6
24765 else
24766   if test x$gcc_no_link = xyes; then
24767   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24769    { (exit 1); exit 1; }; }
24770 fi
24771 cat >conftest.$ac_ext <<_ACEOF
24772 /* confdefs.h.  */
24773 _ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h.  */
24777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24779 #define $ac_func innocuous_$ac_func
24780
24781 /* System header to define __stub macros and hopefully few prototypes,
24782     which can conflict with char $ac_func (); below.
24783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24784     <limits.h> exists even on freestanding compilers.  */
24785
24786 #ifdef __STDC__
24787 # include <limits.h>
24788 #else
24789 # include <assert.h>
24790 #endif
24791
24792 #undef $ac_func
24793
24794 /* Override any gcc2 internal prototype to avoid an error.  */
24795 #ifdef __cplusplus
24796 extern "C"
24797 {
24798 #endif
24799 /* We use char because int might match the return type of a gcc2
24800    builtin and then its argument prototype would still apply.  */
24801 char $ac_func ();
24802 /* The GNU C library defines this for functions which it implements
24803     to always fail with ENOSYS.  Some functions are actually named
24804     something starting with __ and the normal name is an alias.  */
24805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24806 choke me
24807 #else
24808 char (*f) () = $ac_func;
24809 #endif
24810 #ifdef __cplusplus
24811 }
24812 #endif
24813
24814 int
24815 main ()
24816 {
24817 return f != $ac_func;
24818   ;
24819   return 0;
24820 }
24821 _ACEOF
24822 rm -f conftest.$ac_objext conftest$ac_exeext
24823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24824   (eval $ac_link) 2>conftest.er1
24825   ac_status=$?
24826   grep -v '^ *+' conftest.er1 >conftest.err
24827   rm -f conftest.er1
24828   cat conftest.err >&5
24829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830   (exit $ac_status); } &&
24831          { ac_try='test -z "$ac_c_werror_flag"
24832                          || test ! -s conftest.err'
24833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834   (eval $ac_try) 2>&5
24835   ac_status=$?
24836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837   (exit $ac_status); }; } &&
24838          { ac_try='test -s conftest$ac_exeext'
24839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840   (eval $ac_try) 2>&5
24841   ac_status=$?
24842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843   (exit $ac_status); }; }; then
24844   eval "$as_ac_var=yes"
24845 else
24846   echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24848
24849 eval "$as_ac_var=no"
24850 fi
24851 rm -f conftest.err conftest.$ac_objext \
24852       conftest$ac_exeext conftest.$ac_ext
24853 fi
24854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24856 if test `eval echo '${'$as_ac_var'}'` = yes; then
24857   cat >>confdefs.h <<_ACEOF
24858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24859 _ACEOF
24860
24861 fi
24862 done
24863
24864   fi
24865
24866
24867
24868   echo "$as_me:$LINENO: checking for _long double trig functions" >&5
24869 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
24870   if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
24871   echo $ECHO_N "(cached) $ECHO_C" >&6
24872 else
24873
24874
24875
24876     ac_ext=cc
24877 ac_cpp='$CXXCPP $CPPFLAGS'
24878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24881
24882     cat >conftest.$ac_ext <<_ACEOF
24883 /* confdefs.h.  */
24884 _ACEOF
24885 cat confdefs.h >>conftest.$ac_ext
24886 cat >>conftest.$ac_ext <<_ACEOF
24887 /* end confdefs.h.  */
24888 #include <math.h>
24889 int
24890 main ()
24891 {
24892  `for x in _acosl _asinl _atanl \
24893                                           _cosl _sinl _tanl \
24894                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done`
24895   ;
24896   return 0;
24897 }
24898 _ACEOF
24899 rm -f conftest.$ac_objext
24900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24901   (eval $ac_compile) 2>conftest.er1
24902   ac_status=$?
24903   grep -v '^ *+' conftest.er1 >conftest.err
24904   rm -f conftest.er1
24905   cat conftest.err >&5
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); } &&
24908          { ac_try='test -z "$ac_cxx_werror_flag"
24909                          || test ! -s conftest.err'
24910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911   (eval $ac_try) 2>&5
24912   ac_status=$?
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); }; } &&
24915          { ac_try='test -s conftest.$ac_objext'
24916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917   (eval $ac_try) 2>&5
24918   ac_status=$?
24919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920   (exit $ac_status); }; }; then
24921   glibcxx_cv_func__long_double_trig_use=yes
24922 else
24923   echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24925
24926 glibcxx_cv_func__long_double_trig_use=no
24927 fi
24928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24929     ac_ext=c
24930 ac_cpp='$CPP $CPPFLAGS'
24931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24934
24935 fi
24936
24937   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
24938 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
24939   if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949 for ac_func in _acosl _asinl _atanl \
24950                                           _cosl _sinl _tanl \
24951                                           _coshl _sinhl _tanhl
24952 do
24953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24954 echo "$as_me:$LINENO: checking for $ac_func" >&5
24955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24956 if eval "test \"\${$as_ac_var+set}\" = set"; then
24957   echo $ECHO_N "(cached) $ECHO_C" >&6
24958 else
24959   if test x$gcc_no_link = xyes; then
24960   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24961 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24962    { (exit 1); exit 1; }; }
24963 fi
24964 cat >conftest.$ac_ext <<_ACEOF
24965 /* confdefs.h.  */
24966 _ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h.  */
24970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24972 #define $ac_func innocuous_$ac_func
24973
24974 /* System header to define __stub macros and hopefully few prototypes,
24975     which can conflict with char $ac_func (); below.
24976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24977     <limits.h> exists even on freestanding compilers.  */
24978
24979 #ifdef __STDC__
24980 # include <limits.h>
24981 #else
24982 # include <assert.h>
24983 #endif
24984
24985 #undef $ac_func
24986
24987 /* Override any gcc2 internal prototype to avoid an error.  */
24988 #ifdef __cplusplus
24989 extern "C"
24990 {
24991 #endif
24992 /* We use char because int might match the return type of a gcc2
24993    builtin and then its argument prototype would still apply.  */
24994 char $ac_func ();
24995 /* The GNU C library defines this for functions which it implements
24996     to always fail with ENOSYS.  Some functions are actually named
24997     something starting with __ and the normal name is an alias.  */
24998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24999 choke me
25000 #else
25001 char (*f) () = $ac_func;
25002 #endif
25003 #ifdef __cplusplus
25004 }
25005 #endif
25006
25007 int
25008 main ()
25009 {
25010 return f != $ac_func;
25011   ;
25012   return 0;
25013 }
25014 _ACEOF
25015 rm -f conftest.$ac_objext conftest$ac_exeext
25016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25017   (eval $ac_link) 2>conftest.er1
25018   ac_status=$?
25019   grep -v '^ *+' conftest.er1 >conftest.err
25020   rm -f conftest.er1
25021   cat conftest.err >&5
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); } &&
25024          { ac_try='test -z "$ac_c_werror_flag"
25025                          || test ! -s conftest.err'
25026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027   (eval $ac_try) 2>&5
25028   ac_status=$?
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); }; } &&
25031          { ac_try='test -s conftest$ac_exeext'
25032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033   (eval $ac_try) 2>&5
25034   ac_status=$?
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); }; }; then
25037   eval "$as_ac_var=yes"
25038 else
25039   echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042 eval "$as_ac_var=no"
25043 fi
25044 rm -f conftest.err conftest.$ac_objext \
25045       conftest$ac_exeext conftest.$ac_ext
25046 fi
25047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25049 if test `eval echo '${'$as_ac_var'}'` = yes; then
25050   cat >>confdefs.h <<_ACEOF
25051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25052 _ACEOF
25053
25054 fi
25055 done
25056
25057   fi
25058
25059
25060   echo "$as_me:$LINENO: checking for _long double round functions" >&5
25061 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
25062   if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
25063   echo $ECHO_N "(cached) $ECHO_C" >&6
25064 else
25065
25066
25067
25068     ac_ext=cc
25069 ac_cpp='$CXXCPP $CPPFLAGS'
25070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25073
25074     cat >conftest.$ac_ext <<_ACEOF
25075 /* confdefs.h.  */
25076 _ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h.  */
25080 #include <math.h>
25081 int
25082 main ()
25083 {
25084  `for x in _ceill _floorl; do echo "$x (0);"; done`
25085   ;
25086   return 0;
25087 }
25088 _ACEOF
25089 rm -f conftest.$ac_objext
25090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25091   (eval $ac_compile) 2>conftest.er1
25092   ac_status=$?
25093   grep -v '^ *+' conftest.er1 >conftest.err
25094   rm -f conftest.er1
25095   cat conftest.err >&5
25096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097   (exit $ac_status); } &&
25098          { ac_try='test -z "$ac_cxx_werror_flag"
25099                          || test ! -s conftest.err'
25100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101   (eval $ac_try) 2>&5
25102   ac_status=$?
25103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104   (exit $ac_status); }; } &&
25105          { ac_try='test -s conftest.$ac_objext'
25106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107   (eval $ac_try) 2>&5
25108   ac_status=$?
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); }; }; then
25111   glibcxx_cv_func__long_double_round_use=yes
25112 else
25113   echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.$ac_ext >&5
25115
25116 glibcxx_cv_func__long_double_round_use=no
25117 fi
25118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25119     ac_ext=c
25120 ac_cpp='$CPP $CPPFLAGS'
25121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25124
25125 fi
25126
25127   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
25128 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
25129   if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
25130
25131
25132 for ac_func in _ceill _floorl
25133 do
25134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25135 echo "$as_me:$LINENO: checking for $ac_func" >&5
25136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25137 if eval "test \"\${$as_ac_var+set}\" = set"; then
25138   echo $ECHO_N "(cached) $ECHO_C" >&6
25139 else
25140   if test x$gcc_no_link = xyes; then
25141   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25142 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25143    { (exit 1); exit 1; }; }
25144 fi
25145 cat >conftest.$ac_ext <<_ACEOF
25146 /* confdefs.h.  */
25147 _ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h.  */
25151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25153 #define $ac_func innocuous_$ac_func
25154
25155 /* System header to define __stub macros and hopefully few prototypes,
25156     which can conflict with char $ac_func (); below.
25157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25158     <limits.h> exists even on freestanding compilers.  */
25159
25160 #ifdef __STDC__
25161 # include <limits.h>
25162 #else
25163 # include <assert.h>
25164 #endif
25165
25166 #undef $ac_func
25167
25168 /* Override any gcc2 internal prototype to avoid an error.  */
25169 #ifdef __cplusplus
25170 extern "C"
25171 {
25172 #endif
25173 /* We use char because int might match the return type of a gcc2
25174    builtin and then its argument prototype would still apply.  */
25175 char $ac_func ();
25176 /* The GNU C library defines this for functions which it implements
25177     to always fail with ENOSYS.  Some functions are actually named
25178     something starting with __ and the normal name is an alias.  */
25179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25180 choke me
25181 #else
25182 char (*f) () = $ac_func;
25183 #endif
25184 #ifdef __cplusplus
25185 }
25186 #endif
25187
25188 int
25189 main ()
25190 {
25191 return f != $ac_func;
25192   ;
25193   return 0;
25194 }
25195 _ACEOF
25196 rm -f conftest.$ac_objext conftest$ac_exeext
25197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25198   (eval $ac_link) 2>conftest.er1
25199   ac_status=$?
25200   grep -v '^ *+' conftest.er1 >conftest.err
25201   rm -f conftest.er1
25202   cat conftest.err >&5
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); } &&
25205          { ac_try='test -z "$ac_c_werror_flag"
25206                          || test ! -s conftest.err'
25207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25208   (eval $ac_try) 2>&5
25209   ac_status=$?
25210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); }; } &&
25212          { ac_try='test -s conftest$ac_exeext'
25213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25214   (eval $ac_try) 2>&5
25215   ac_status=$?
25216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217   (exit $ac_status); }; }; then
25218   eval "$as_ac_var=yes"
25219 else
25220   echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25222
25223 eval "$as_ac_var=no"
25224 fi
25225 rm -f conftest.err conftest.$ac_objext \
25226       conftest$ac_exeext conftest.$ac_ext
25227 fi
25228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25230 if test `eval echo '${'$as_ac_var'}'` = yes; then
25231   cat >>confdefs.h <<_ACEOF
25232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25233 _ACEOF
25234
25235 fi
25236 done
25237
25238   fi
25239
25240
25241   LIBS="$ac_save_LIBS"
25242   CXXFLAGS="$ac_save_CXXFLAGS"
25243
25244
25245
25246   echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
25247 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
25248   if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
25249     if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
25250   echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252
25253
25254
25255       ac_ext=cc
25256 ac_cpp='$CXXCPP $CPPFLAGS'
25257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25260
25261       cat >conftest.$ac_ext <<_ACEOF
25262 /* confdefs.h.  */
25263 _ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h.  */
25267 #include <math.h>
25268 int
25269 main ()
25270 {
25271  __builtin_abs(0);
25272   ;
25273   return 0;
25274 }
25275 _ACEOF
25276 rm -f conftest.$ac_objext
25277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25278   (eval $ac_compile) 2>conftest.er1
25279   ac_status=$?
25280   grep -v '^ *+' conftest.er1 >conftest.err
25281   rm -f conftest.er1
25282   cat conftest.err >&5
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); } &&
25285          { ac_try='test -z "$ac_cxx_werror_flag"
25286                          || test ! -s conftest.err'
25287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288   (eval $ac_try) 2>&5
25289   ac_status=$?
25290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291   (exit $ac_status); }; } &&
25292          { ac_try='test -s conftest.$ac_objext'
25293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294   (eval $ac_try) 2>&5
25295   ac_status=$?
25296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297   (exit $ac_status); }; }; then
25298   glibcxx_cv_func___builtin_abs_use=yes
25299 else
25300   echo "$as_me: failed program was:" >&5
25301 sed 's/^/| /' conftest.$ac_ext >&5
25302
25303 glibcxx_cv_func___builtin_abs_use=no
25304 fi
25305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25306       ac_ext=c
25307 ac_cpp='$CPP $CPPFLAGS'
25308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25311
25312
25313 fi
25314
25315   fi
25316   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
25317 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
25318   if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
25319     echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
25320 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
25321     if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
25322       if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
25323   echo $ECHO_N "(cached) $ECHO_C" >&6
25324 else
25325
25326         if test x$gcc_no_link = xyes; then
25327   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25329    { (exit 1); exit 1; }; }
25330 fi
25331 cat >conftest.$ac_ext <<_ACEOF
25332 /* confdefs.h.  */
25333 _ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h.  */
25337 #include <math.h>
25338 int
25339 main ()
25340 {
25341  __builtin_abs(0);
25342   ;
25343   return 0;
25344 }
25345 _ACEOF
25346 rm -f conftest.$ac_objext conftest$ac_exeext
25347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25348   (eval $ac_link) 2>conftest.er1
25349   ac_status=$?
25350   grep -v '^ *+' conftest.er1 >conftest.err
25351   rm -f conftest.er1
25352   cat conftest.err >&5
25353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); } &&
25355          { ac_try='test -z "$ac_c_werror_flag"
25356                          || test ! -s conftest.err'
25357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358   (eval $ac_try) 2>&5
25359   ac_status=$?
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); }; } &&
25362          { ac_try='test -s conftest$ac_exeext'
25363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25364   (eval $ac_try) 2>&5
25365   ac_status=$?
25366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367   (exit $ac_status); }; }; then
25368   glibcxx_cv_func___builtin_abs_link=yes
25369 else
25370   echo "$as_me: failed program was:" >&5
25371 sed 's/^/| /' conftest.$ac_ext >&5
25372
25373 glibcxx_cv_func___builtin_abs_link=no
25374 fi
25375 rm -f conftest.err conftest.$ac_objext \
25376       conftest$ac_exeext conftest.$ac_ext
25377
25378 fi
25379
25380     fi
25381     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
25382 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
25383     if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
25384       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25385       cat >>confdefs.h <<_ACEOF
25386 #define ${ac_tr_func} 1
25387 _ACEOF
25388
25389     fi
25390   fi
25391
25392
25393   echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
25394 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
25395   if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
25396     if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
25397   echo $ECHO_N "(cached) $ECHO_C" >&6
25398 else
25399
25400
25401
25402       ac_ext=cc
25403 ac_cpp='$CXXCPP $CPPFLAGS'
25404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25407
25408       cat >conftest.$ac_ext <<_ACEOF
25409 /* confdefs.h.  */
25410 _ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h.  */
25414 #include <math.h>
25415 int
25416 main ()
25417 {
25418  __builtin_fabsf(0);
25419   ;
25420   return 0;
25421 }
25422 _ACEOF
25423 rm -f conftest.$ac_objext
25424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25425   (eval $ac_compile) 2>conftest.er1
25426   ac_status=$?
25427   grep -v '^ *+' conftest.er1 >conftest.err
25428   rm -f conftest.er1
25429   cat conftest.err >&5
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); } &&
25432          { ac_try='test -z "$ac_cxx_werror_flag"
25433                          || test ! -s conftest.err'
25434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25435   (eval $ac_try) 2>&5
25436   ac_status=$?
25437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438   (exit $ac_status); }; } &&
25439          { ac_try='test -s conftest.$ac_objext'
25440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25441   (eval $ac_try) 2>&5
25442   ac_status=$?
25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444   (exit $ac_status); }; }; then
25445   glibcxx_cv_func___builtin_fabsf_use=yes
25446 else
25447   echo "$as_me: failed program was:" >&5
25448 sed 's/^/| /' conftest.$ac_ext >&5
25449
25450 glibcxx_cv_func___builtin_fabsf_use=no
25451 fi
25452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25453       ac_ext=c
25454 ac_cpp='$CPP $CPPFLAGS'
25455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25458
25459
25460 fi
25461
25462   fi
25463   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
25464 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
25465   if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
25466     echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
25467 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
25468     if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
25469       if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
25470   echo $ECHO_N "(cached) $ECHO_C" >&6
25471 else
25472
25473         if test x$gcc_no_link = xyes; then
25474   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25476    { (exit 1); exit 1; }; }
25477 fi
25478 cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h.  */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h.  */
25484 #include <math.h>
25485 int
25486 main ()
25487 {
25488  __builtin_fabsf(0);
25489   ;
25490   return 0;
25491 }
25492 _ACEOF
25493 rm -f conftest.$ac_objext conftest$ac_exeext
25494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25495   (eval $ac_link) 2>conftest.er1
25496   ac_status=$?
25497   grep -v '^ *+' conftest.er1 >conftest.err
25498   rm -f conftest.er1
25499   cat conftest.err >&5
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); } &&
25502          { ac_try='test -z "$ac_c_werror_flag"
25503                          || test ! -s conftest.err'
25504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505   (eval $ac_try) 2>&5
25506   ac_status=$?
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); }; } &&
25509          { ac_try='test -s conftest$ac_exeext'
25510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511   (eval $ac_try) 2>&5
25512   ac_status=$?
25513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); }; }; then
25515   glibcxx_cv_func___builtin_fabsf_link=yes
25516 else
25517   echo "$as_me: failed program was:" >&5
25518 sed 's/^/| /' conftest.$ac_ext >&5
25519
25520 glibcxx_cv_func___builtin_fabsf_link=no
25521 fi
25522 rm -f conftest.err conftest.$ac_objext \
25523       conftest$ac_exeext conftest.$ac_ext
25524
25525 fi
25526
25527     fi
25528     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
25529 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
25530     if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
25531       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25532       cat >>confdefs.h <<_ACEOF
25533 #define ${ac_tr_func} 1
25534 _ACEOF
25535
25536     fi
25537   fi
25538
25539
25540   echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
25541 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
25542   if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
25543     if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
25544   echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546
25547
25548
25549       ac_ext=cc
25550 ac_cpp='$CXXCPP $CPPFLAGS'
25551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25554
25555       cat >conftest.$ac_ext <<_ACEOF
25556 /* confdefs.h.  */
25557 _ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h.  */
25561 #include <math.h>
25562 int
25563 main ()
25564 {
25565  __builtin_fabs(0);
25566   ;
25567   return 0;
25568 }
25569 _ACEOF
25570 rm -f conftest.$ac_objext
25571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25572   (eval $ac_compile) 2>conftest.er1
25573   ac_status=$?
25574   grep -v '^ *+' conftest.er1 >conftest.err
25575   rm -f conftest.er1
25576   cat conftest.err >&5
25577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578   (exit $ac_status); } &&
25579          { ac_try='test -z "$ac_cxx_werror_flag"
25580                          || test ! -s conftest.err'
25581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582   (eval $ac_try) 2>&5
25583   ac_status=$?
25584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585   (exit $ac_status); }; } &&
25586          { ac_try='test -s conftest.$ac_objext'
25587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588   (eval $ac_try) 2>&5
25589   ac_status=$?
25590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591   (exit $ac_status); }; }; then
25592   glibcxx_cv_func___builtin_fabs_use=yes
25593 else
25594   echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25596
25597 glibcxx_cv_func___builtin_fabs_use=no
25598 fi
25599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25600       ac_ext=c
25601 ac_cpp='$CPP $CPPFLAGS'
25602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25605
25606
25607 fi
25608
25609   fi
25610   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
25611 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
25612   if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
25613     echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
25614 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
25615     if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
25616       if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
25617   echo $ECHO_N "(cached) $ECHO_C" >&6
25618 else
25619
25620         if test x$gcc_no_link = xyes; then
25621   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25623    { (exit 1); exit 1; }; }
25624 fi
25625 cat >conftest.$ac_ext <<_ACEOF
25626 /* confdefs.h.  */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h.  */
25631 #include <math.h>
25632 int
25633 main ()
25634 {
25635  __builtin_fabs(0);
25636   ;
25637   return 0;
25638 }
25639 _ACEOF
25640 rm -f conftest.$ac_objext conftest$ac_exeext
25641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25642   (eval $ac_link) 2>conftest.er1
25643   ac_status=$?
25644   grep -v '^ *+' conftest.er1 >conftest.err
25645   rm -f conftest.er1
25646   cat conftest.err >&5
25647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); } &&
25649          { ac_try='test -z "$ac_c_werror_flag"
25650                          || test ! -s conftest.err'
25651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25652   (eval $ac_try) 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   glibcxx_cv_func___builtin_fabs_link=yes
25663 else
25664   echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25666
25667 glibcxx_cv_func___builtin_fabs_link=no
25668 fi
25669 rm -f conftest.err conftest.$ac_objext \
25670       conftest$ac_exeext conftest.$ac_ext
25671
25672 fi
25673
25674     fi
25675     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
25676 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
25677     if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
25678       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25679       cat >>confdefs.h <<_ACEOF
25680 #define ${ac_tr_func} 1
25681 _ACEOF
25682
25683     fi
25684   fi
25685
25686
25687   echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
25688 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
25689   if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
25690     if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
25691   echo $ECHO_N "(cached) $ECHO_C" >&6
25692 else
25693
25694
25695
25696       ac_ext=cc
25697 ac_cpp='$CXXCPP $CPPFLAGS'
25698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25701
25702       cat >conftest.$ac_ext <<_ACEOF
25703 /* confdefs.h.  */
25704 _ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h.  */
25708 #include <math.h>
25709 int
25710 main ()
25711 {
25712  __builtin_fabsl(0);
25713   ;
25714   return 0;
25715 }
25716 _ACEOF
25717 rm -f conftest.$ac_objext
25718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25719   (eval $ac_compile) 2>conftest.er1
25720   ac_status=$?
25721   grep -v '^ *+' conftest.er1 >conftest.err
25722   rm -f conftest.er1
25723   cat conftest.err >&5
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); } &&
25726          { ac_try='test -z "$ac_cxx_werror_flag"
25727                          || test ! -s conftest.err'
25728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729   (eval $ac_try) 2>&5
25730   ac_status=$?
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); }; } &&
25733          { ac_try='test -s conftest.$ac_objext'
25734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735   (eval $ac_try) 2>&5
25736   ac_status=$?
25737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738   (exit $ac_status); }; }; then
25739   glibcxx_cv_func___builtin_fabsl_use=yes
25740 else
25741   echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25743
25744 glibcxx_cv_func___builtin_fabsl_use=no
25745 fi
25746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25747       ac_ext=c
25748 ac_cpp='$CPP $CPPFLAGS'
25749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25752
25753
25754 fi
25755
25756   fi
25757   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
25758 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
25759   if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
25760     echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
25761 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
25762     if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
25763       if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
25764   echo $ECHO_N "(cached) $ECHO_C" >&6
25765 else
25766
25767         if test x$gcc_no_link = xyes; then
25768   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25769 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25770    { (exit 1); exit 1; }; }
25771 fi
25772 cat >conftest.$ac_ext <<_ACEOF
25773 /* confdefs.h.  */
25774 _ACEOF
25775 cat confdefs.h >>conftest.$ac_ext
25776 cat >>conftest.$ac_ext <<_ACEOF
25777 /* end confdefs.h.  */
25778 #include <math.h>
25779 int
25780 main ()
25781 {
25782  __builtin_fabsl(0);
25783   ;
25784   return 0;
25785 }
25786 _ACEOF
25787 rm -f conftest.$ac_objext conftest$ac_exeext
25788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25789   (eval $ac_link) 2>conftest.er1
25790   ac_status=$?
25791   grep -v '^ *+' conftest.er1 >conftest.err
25792   rm -f conftest.er1
25793   cat conftest.err >&5
25794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795   (exit $ac_status); } &&
25796          { ac_try='test -z "$ac_c_werror_flag"
25797                          || test ! -s conftest.err'
25798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25799   (eval $ac_try) 2>&5
25800   ac_status=$?
25801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802   (exit $ac_status); }; } &&
25803          { ac_try='test -s conftest$ac_exeext'
25804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25805   (eval $ac_try) 2>&5
25806   ac_status=$?
25807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808   (exit $ac_status); }; }; then
25809   glibcxx_cv_func___builtin_fabsl_link=yes
25810 else
25811   echo "$as_me: failed program was:" >&5
25812 sed 's/^/| /' conftest.$ac_ext >&5
25813
25814 glibcxx_cv_func___builtin_fabsl_link=no
25815 fi
25816 rm -f conftest.err conftest.$ac_objext \
25817       conftest$ac_exeext conftest.$ac_ext
25818
25819 fi
25820
25821     fi
25822     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
25823 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
25824     if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
25825       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25826       cat >>confdefs.h <<_ACEOF
25827 #define ${ac_tr_func} 1
25828 _ACEOF
25829
25830     fi
25831   fi
25832
25833
25834   echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
25835 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
25836   if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
25837     if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
25838   echo $ECHO_N "(cached) $ECHO_C" >&6
25839 else
25840
25841
25842
25843       ac_ext=cc
25844 ac_cpp='$CXXCPP $CPPFLAGS'
25845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25848
25849       cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h.  */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h.  */
25855 #include <math.h>
25856 int
25857 main ()
25858 {
25859  __builtin_labs(0);
25860   ;
25861   return 0;
25862 }
25863 _ACEOF
25864 rm -f conftest.$ac_objext
25865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25866   (eval $ac_compile) 2>conftest.er1
25867   ac_status=$?
25868   grep -v '^ *+' conftest.er1 >conftest.err
25869   rm -f conftest.er1
25870   cat conftest.err >&5
25871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872   (exit $ac_status); } &&
25873          { ac_try='test -z "$ac_cxx_werror_flag"
25874                          || test ! -s conftest.err'
25875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876   (eval $ac_try) 2>&5
25877   ac_status=$?
25878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879   (exit $ac_status); }; } &&
25880          { ac_try='test -s conftest.$ac_objext'
25881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882   (eval $ac_try) 2>&5
25883   ac_status=$?
25884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885   (exit $ac_status); }; }; then
25886   glibcxx_cv_func___builtin_labs_use=yes
25887 else
25888   echo "$as_me: failed program was:" >&5
25889 sed 's/^/| /' conftest.$ac_ext >&5
25890
25891 glibcxx_cv_func___builtin_labs_use=no
25892 fi
25893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25894       ac_ext=c
25895 ac_cpp='$CPP $CPPFLAGS'
25896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25899
25900
25901 fi
25902
25903   fi
25904   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
25905 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
25906   if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
25907     echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
25908 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
25909     if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
25910       if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
25911   echo $ECHO_N "(cached) $ECHO_C" >&6
25912 else
25913
25914         if test x$gcc_no_link = xyes; then
25915   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25917    { (exit 1); exit 1; }; }
25918 fi
25919 cat >conftest.$ac_ext <<_ACEOF
25920 /* confdefs.h.  */
25921 _ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h.  */
25925 #include <math.h>
25926 int
25927 main ()
25928 {
25929  __builtin_labs(0);
25930   ;
25931   return 0;
25932 }
25933 _ACEOF
25934 rm -f conftest.$ac_objext conftest$ac_exeext
25935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25936   (eval $ac_link) 2>conftest.er1
25937   ac_status=$?
25938   grep -v '^ *+' conftest.er1 >conftest.err
25939   rm -f conftest.er1
25940   cat conftest.err >&5
25941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942   (exit $ac_status); } &&
25943          { ac_try='test -z "$ac_c_werror_flag"
25944                          || test ! -s conftest.err'
25945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946   (eval $ac_try) 2>&5
25947   ac_status=$?
25948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949   (exit $ac_status); }; } &&
25950          { ac_try='test -s conftest$ac_exeext'
25951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952   (eval $ac_try) 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); }; }; then
25956   glibcxx_cv_func___builtin_labs_link=yes
25957 else
25958   echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25960
25961 glibcxx_cv_func___builtin_labs_link=no
25962 fi
25963 rm -f conftest.err conftest.$ac_objext \
25964       conftest$ac_exeext conftest.$ac_ext
25965
25966 fi
25967
25968     fi
25969     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
25970 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
25971     if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
25972       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25973       cat >>confdefs.h <<_ACEOF
25974 #define ${ac_tr_func} 1
25975 _ACEOF
25976
25977     fi
25978   fi
25979
25980
25981
25982   echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
25983 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
25984   if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
25985     if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
25986   echo $ECHO_N "(cached) $ECHO_C" >&6
25987 else
25988
25989
25990
25991       ac_ext=cc
25992 ac_cpp='$CXXCPP $CPPFLAGS'
25993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25996
25997       cat >conftest.$ac_ext <<_ACEOF
25998 /* confdefs.h.  */
25999 _ACEOF
26000 cat confdefs.h >>conftest.$ac_ext
26001 cat >>conftest.$ac_ext <<_ACEOF
26002 /* end confdefs.h.  */
26003 #include <math.h>
26004 int
26005 main ()
26006 {
26007  __builtin_sqrtf(0);
26008   ;
26009   return 0;
26010 }
26011 _ACEOF
26012 rm -f conftest.$ac_objext
26013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26014   (eval $ac_compile) 2>conftest.er1
26015   ac_status=$?
26016   grep -v '^ *+' conftest.er1 >conftest.err
26017   rm -f conftest.er1
26018   cat conftest.err >&5
26019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020   (exit $ac_status); } &&
26021          { ac_try='test -z "$ac_cxx_werror_flag"
26022                          || test ! -s conftest.err'
26023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024   (eval $ac_try) 2>&5
26025   ac_status=$?
26026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); }; } &&
26028          { ac_try='test -s conftest.$ac_objext'
26029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030   (eval $ac_try) 2>&5
26031   ac_status=$?
26032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033   (exit $ac_status); }; }; then
26034   glibcxx_cv_func___builtin_sqrtf_use=yes
26035 else
26036   echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26038
26039 glibcxx_cv_func___builtin_sqrtf_use=no
26040 fi
26041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26042       ac_ext=c
26043 ac_cpp='$CPP $CPPFLAGS'
26044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26047
26048
26049 fi
26050
26051   fi
26052   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
26053 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
26054   if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
26055     echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
26056 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
26057     if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
26058       if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
26059   echo $ECHO_N "(cached) $ECHO_C" >&6
26060 else
26061
26062         if test x$gcc_no_link = xyes; then
26063   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26065    { (exit 1); exit 1; }; }
26066 fi
26067 cat >conftest.$ac_ext <<_ACEOF
26068 /* confdefs.h.  */
26069 _ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h.  */
26073 #include <math.h>
26074 int
26075 main ()
26076 {
26077  __builtin_sqrtf(0);
26078   ;
26079   return 0;
26080 }
26081 _ACEOF
26082 rm -f conftest.$ac_objext conftest$ac_exeext
26083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26084   (eval $ac_link) 2>conftest.er1
26085   ac_status=$?
26086   grep -v '^ *+' conftest.er1 >conftest.err
26087   rm -f conftest.er1
26088   cat conftest.err >&5
26089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090   (exit $ac_status); } &&
26091          { ac_try='test -z "$ac_c_werror_flag"
26092                          || test ! -s conftest.err'
26093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094   (eval $ac_try) 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   glibcxx_cv_func___builtin_sqrtf_link=yes
26105 else
26106   echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26108
26109 glibcxx_cv_func___builtin_sqrtf_link=no
26110 fi
26111 rm -f conftest.err conftest.$ac_objext \
26112       conftest$ac_exeext conftest.$ac_ext
26113
26114 fi
26115
26116     fi
26117     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
26118 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
26119     if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
26120       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26121       cat >>confdefs.h <<_ACEOF
26122 #define ${ac_tr_func} 1
26123 _ACEOF
26124
26125     fi
26126   fi
26127
26128
26129   echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
26130 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
26131   if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
26132     if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
26133   echo $ECHO_N "(cached) $ECHO_C" >&6
26134 else
26135
26136
26137
26138       ac_ext=cc
26139 ac_cpp='$CXXCPP $CPPFLAGS'
26140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26143
26144       cat >conftest.$ac_ext <<_ACEOF
26145 /* confdefs.h.  */
26146 _ACEOF
26147 cat confdefs.h >>conftest.$ac_ext
26148 cat >>conftest.$ac_ext <<_ACEOF
26149 /* end confdefs.h.  */
26150 #include <math.h>
26151 int
26152 main ()
26153 {
26154  __builtin_sqrt(0);
26155   ;
26156   return 0;
26157 }
26158 _ACEOF
26159 rm -f conftest.$ac_objext
26160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26161   (eval $ac_compile) 2>conftest.er1
26162   ac_status=$?
26163   grep -v '^ *+' conftest.er1 >conftest.err
26164   rm -f conftest.er1
26165   cat conftest.err >&5
26166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167   (exit $ac_status); } &&
26168          { ac_try='test -z "$ac_cxx_werror_flag"
26169                          || test ! -s conftest.err'
26170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26171   (eval $ac_try) 2>&5
26172   ac_status=$?
26173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174   (exit $ac_status); }; } &&
26175          { ac_try='test -s conftest.$ac_objext'
26176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26177   (eval $ac_try) 2>&5
26178   ac_status=$?
26179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180   (exit $ac_status); }; }; then
26181   glibcxx_cv_func___builtin_sqrt_use=yes
26182 else
26183   echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26185
26186 glibcxx_cv_func___builtin_sqrt_use=no
26187 fi
26188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26189       ac_ext=c
26190 ac_cpp='$CPP $CPPFLAGS'
26191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26194
26195
26196 fi
26197
26198   fi
26199   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
26200 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
26201   if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
26202     echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
26203 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
26204     if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
26205       if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
26206   echo $ECHO_N "(cached) $ECHO_C" >&6
26207 else
26208
26209         if test x$gcc_no_link = xyes; then
26210   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26212    { (exit 1); exit 1; }; }
26213 fi
26214 cat >conftest.$ac_ext <<_ACEOF
26215 /* confdefs.h.  */
26216 _ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h.  */
26220 #include <math.h>
26221 int
26222 main ()
26223 {
26224  __builtin_sqrt(0);
26225   ;
26226   return 0;
26227 }
26228 _ACEOF
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26231   (eval $ac_link) 2>conftest.er1
26232   ac_status=$?
26233   grep -v '^ *+' conftest.er1 >conftest.err
26234   rm -f conftest.er1
26235   cat conftest.err >&5
26236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237   (exit $ac_status); } &&
26238          { ac_try='test -z "$ac_c_werror_flag"
26239                          || test ! -s conftest.err'
26240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241   (eval $ac_try) 2>&5
26242   ac_status=$?
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); }; } &&
26245          { ac_try='test -s conftest$ac_exeext'
26246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247   (eval $ac_try) 2>&5
26248   ac_status=$?
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); }; }; then
26251   glibcxx_cv_func___builtin_sqrt_link=yes
26252 else
26253   echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26255
26256 glibcxx_cv_func___builtin_sqrt_link=no
26257 fi
26258 rm -f conftest.err conftest.$ac_objext \
26259       conftest$ac_exeext conftest.$ac_ext
26260
26261 fi
26262
26263     fi
26264     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
26265 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
26266     if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
26267       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26268       cat >>confdefs.h <<_ACEOF
26269 #define ${ac_tr_func} 1
26270 _ACEOF
26271
26272     fi
26273   fi
26274
26275
26276   echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
26277 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
26278   if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
26279     if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
26280   echo $ECHO_N "(cached) $ECHO_C" >&6
26281 else
26282
26283
26284
26285       ac_ext=cc
26286 ac_cpp='$CXXCPP $CPPFLAGS'
26287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26290
26291       cat >conftest.$ac_ext <<_ACEOF
26292 /* confdefs.h.  */
26293 _ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h.  */
26297 #include <math.h>
26298 int
26299 main ()
26300 {
26301  __builtin_sqrtl(0);
26302   ;
26303   return 0;
26304 }
26305 _ACEOF
26306 rm -f conftest.$ac_objext
26307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26308   (eval $ac_compile) 2>conftest.er1
26309   ac_status=$?
26310   grep -v '^ *+' conftest.er1 >conftest.err
26311   rm -f conftest.er1
26312   cat conftest.err >&5
26313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); } &&
26315          { ac_try='test -z "$ac_cxx_werror_flag"
26316                          || test ! -s conftest.err'
26317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318   (eval $ac_try) 2>&5
26319   ac_status=$?
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); }; } &&
26322          { ac_try='test -s conftest.$ac_objext'
26323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324   (eval $ac_try) 2>&5
26325   ac_status=$?
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); }; }; then
26328   glibcxx_cv_func___builtin_sqrtl_use=yes
26329 else
26330   echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26332
26333 glibcxx_cv_func___builtin_sqrtl_use=no
26334 fi
26335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26336       ac_ext=c
26337 ac_cpp='$CPP $CPPFLAGS'
26338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26341
26342
26343 fi
26344
26345   fi
26346   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
26347 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
26348   if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
26349     echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
26350 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
26351     if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
26352       if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
26353   echo $ECHO_N "(cached) $ECHO_C" >&6
26354 else
26355
26356         if test x$gcc_no_link = xyes; then
26357   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26358 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26359    { (exit 1); exit 1; }; }
26360 fi
26361 cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h.  */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h.  */
26367 #include <math.h>
26368 int
26369 main ()
26370 {
26371  __builtin_sqrtl(0);
26372   ;
26373   return 0;
26374 }
26375 _ACEOF
26376 rm -f conftest.$ac_objext conftest$ac_exeext
26377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26378   (eval $ac_link) 2>conftest.er1
26379   ac_status=$?
26380   grep -v '^ *+' conftest.er1 >conftest.err
26381   rm -f conftest.er1
26382   cat conftest.err >&5
26383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384   (exit $ac_status); } &&
26385          { ac_try='test -z "$ac_c_werror_flag"
26386                          || test ! -s conftest.err'
26387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26388   (eval $ac_try) 2>&5
26389   ac_status=$?
26390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391   (exit $ac_status); }; } &&
26392          { ac_try='test -s conftest$ac_exeext'
26393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26394   (eval $ac_try) 2>&5
26395   ac_status=$?
26396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397   (exit $ac_status); }; }; then
26398   glibcxx_cv_func___builtin_sqrtl_link=yes
26399 else
26400   echo "$as_me: failed program was:" >&5
26401 sed 's/^/| /' conftest.$ac_ext >&5
26402
26403 glibcxx_cv_func___builtin_sqrtl_link=no
26404 fi
26405 rm -f conftest.err conftest.$ac_objext \
26406       conftest$ac_exeext conftest.$ac_ext
26407
26408 fi
26409
26410     fi
26411     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
26412 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
26413     if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
26414       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26415       cat >>confdefs.h <<_ACEOF
26416 #define ${ac_tr_func} 1
26417 _ACEOF
26418
26419     fi
26420   fi
26421
26422
26423
26424   echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
26425 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
26426   if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
26427     if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
26428   echo $ECHO_N "(cached) $ECHO_C" >&6
26429 else
26430
26431
26432
26433       ac_ext=cc
26434 ac_cpp='$CXXCPP $CPPFLAGS'
26435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26438
26439       cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h.  */
26441 _ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h.  */
26445 #include <math.h>
26446 int
26447 main ()
26448 {
26449  __builtin_sinf(0);
26450   ;
26451   return 0;
26452 }
26453 _ACEOF
26454 rm -f conftest.$ac_objext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26456   (eval $ac_compile) 2>conftest.er1
26457   ac_status=$?
26458   grep -v '^ *+' conftest.er1 >conftest.err
26459   rm -f conftest.er1
26460   cat conftest.err >&5
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); } &&
26463          { ac_try='test -z "$ac_cxx_werror_flag"
26464                          || test ! -s conftest.err'
26465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466   (eval $ac_try) 2>&5
26467   ac_status=$?
26468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); }; } &&
26470          { ac_try='test -s conftest.$ac_objext'
26471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472   (eval $ac_try) 2>&5
26473   ac_status=$?
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); }; }; then
26476   glibcxx_cv_func___builtin_sinf_use=yes
26477 else
26478   echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481 glibcxx_cv_func___builtin_sinf_use=no
26482 fi
26483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26484       ac_ext=c
26485 ac_cpp='$CPP $CPPFLAGS'
26486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26489
26490
26491 fi
26492
26493   fi
26494   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
26495 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
26496   if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
26497     echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
26498 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
26499     if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
26500       if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
26501   echo $ECHO_N "(cached) $ECHO_C" >&6
26502 else
26503
26504         if test x$gcc_no_link = xyes; then
26505   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26506 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26507    { (exit 1); exit 1; }; }
26508 fi
26509 cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515 #include <math.h>
26516 int
26517 main ()
26518 {
26519  __builtin_sinf(0);
26520   ;
26521   return 0;
26522 }
26523 _ACEOF
26524 rm -f conftest.$ac_objext conftest$ac_exeext
26525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26526   (eval $ac_link) 2>conftest.er1
26527   ac_status=$?
26528   grep -v '^ *+' conftest.er1 >conftest.err
26529   rm -f conftest.er1
26530   cat conftest.err >&5
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); } &&
26533          { ac_try='test -z "$ac_c_werror_flag"
26534                          || test ! -s conftest.err'
26535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536   (eval $ac_try) 2>&5
26537   ac_status=$?
26538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); }; } &&
26540          { ac_try='test -s conftest$ac_exeext'
26541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542   (eval $ac_try) 2>&5
26543   ac_status=$?
26544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545   (exit $ac_status); }; }; then
26546   glibcxx_cv_func___builtin_sinf_link=yes
26547 else
26548   echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26550
26551 glibcxx_cv_func___builtin_sinf_link=no
26552 fi
26553 rm -f conftest.err conftest.$ac_objext \
26554       conftest$ac_exeext conftest.$ac_ext
26555
26556 fi
26557
26558     fi
26559     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
26560 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
26561     if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
26562       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26563       cat >>confdefs.h <<_ACEOF
26564 #define ${ac_tr_func} 1
26565 _ACEOF
26566
26567     fi
26568   fi
26569
26570
26571   echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
26572 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
26573   if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
26574     if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
26575   echo $ECHO_N "(cached) $ECHO_C" >&6
26576 else
26577
26578
26579
26580       ac_ext=cc
26581 ac_cpp='$CXXCPP $CPPFLAGS'
26582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26585
26586       cat >conftest.$ac_ext <<_ACEOF
26587 /* confdefs.h.  */
26588 _ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h.  */
26592 #include <math.h>
26593 int
26594 main ()
26595 {
26596  __builtin_sin(0);
26597   ;
26598   return 0;
26599 }
26600 _ACEOF
26601 rm -f conftest.$ac_objext
26602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26603   (eval $ac_compile) 2>conftest.er1
26604   ac_status=$?
26605   grep -v '^ *+' conftest.er1 >conftest.err
26606   rm -f conftest.er1
26607   cat conftest.err >&5
26608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609   (exit $ac_status); } &&
26610          { ac_try='test -z "$ac_cxx_werror_flag"
26611                          || test ! -s conftest.err'
26612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26613   (eval $ac_try) 2>&5
26614   ac_status=$?
26615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616   (exit $ac_status); }; } &&
26617          { ac_try='test -s conftest.$ac_objext'
26618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26619   (eval $ac_try) 2>&5
26620   ac_status=$?
26621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622   (exit $ac_status); }; }; then
26623   glibcxx_cv_func___builtin_sin_use=yes
26624 else
26625   echo "$as_me: failed program was:" >&5
26626 sed 's/^/| /' conftest.$ac_ext >&5
26627
26628 glibcxx_cv_func___builtin_sin_use=no
26629 fi
26630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26631       ac_ext=c
26632 ac_cpp='$CPP $CPPFLAGS'
26633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26636
26637
26638 fi
26639
26640   fi
26641   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
26642 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
26643   if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
26644     echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
26645 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
26646     if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
26647       if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
26648   echo $ECHO_N "(cached) $ECHO_C" >&6
26649 else
26650
26651         if test x$gcc_no_link = xyes; then
26652   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26654    { (exit 1); exit 1; }; }
26655 fi
26656 cat >conftest.$ac_ext <<_ACEOF
26657 /* confdefs.h.  */
26658 _ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h.  */
26662 #include <math.h>
26663 int
26664 main ()
26665 {
26666  __builtin_sin(0);
26667   ;
26668   return 0;
26669 }
26670 _ACEOF
26671 rm -f conftest.$ac_objext conftest$ac_exeext
26672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26673   (eval $ac_link) 2>conftest.er1
26674   ac_status=$?
26675   grep -v '^ *+' conftest.er1 >conftest.err
26676   rm -f conftest.er1
26677   cat conftest.err >&5
26678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679   (exit $ac_status); } &&
26680          { ac_try='test -z "$ac_c_werror_flag"
26681                          || test ! -s conftest.err'
26682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683   (eval $ac_try) 2>&5
26684   ac_status=$?
26685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686   (exit $ac_status); }; } &&
26687          { ac_try='test -s conftest$ac_exeext'
26688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26689   (eval $ac_try) 2>&5
26690   ac_status=$?
26691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692   (exit $ac_status); }; }; then
26693   glibcxx_cv_func___builtin_sin_link=yes
26694 else
26695   echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26697
26698 glibcxx_cv_func___builtin_sin_link=no
26699 fi
26700 rm -f conftest.err conftest.$ac_objext \
26701       conftest$ac_exeext conftest.$ac_ext
26702
26703 fi
26704
26705     fi
26706     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
26707 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
26708     if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
26709       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26710       cat >>confdefs.h <<_ACEOF
26711 #define ${ac_tr_func} 1
26712 _ACEOF
26713
26714     fi
26715   fi
26716
26717
26718   echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
26719 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
26720   if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
26721     if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
26722   echo $ECHO_N "(cached) $ECHO_C" >&6
26723 else
26724
26725
26726
26727       ac_ext=cc
26728 ac_cpp='$CXXCPP $CPPFLAGS'
26729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26732
26733       cat >conftest.$ac_ext <<_ACEOF
26734 /* confdefs.h.  */
26735 _ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h.  */
26739 #include <math.h>
26740 int
26741 main ()
26742 {
26743  __builtin_sinl(0);
26744   ;
26745   return 0;
26746 }
26747 _ACEOF
26748 rm -f conftest.$ac_objext
26749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26750   (eval $ac_compile) 2>conftest.er1
26751   ac_status=$?
26752   grep -v '^ *+' conftest.er1 >conftest.err
26753   rm -f conftest.er1
26754   cat conftest.err >&5
26755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); } &&
26757          { ac_try='test -z "$ac_cxx_werror_flag"
26758                          || test ! -s conftest.err'
26759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26760   (eval $ac_try) 2>&5
26761   ac_status=$?
26762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763   (exit $ac_status); }; } &&
26764          { ac_try='test -s conftest.$ac_objext'
26765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26766   (eval $ac_try) 2>&5
26767   ac_status=$?
26768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769   (exit $ac_status); }; }; then
26770   glibcxx_cv_func___builtin_sinl_use=yes
26771 else
26772   echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26774
26775 glibcxx_cv_func___builtin_sinl_use=no
26776 fi
26777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26778       ac_ext=c
26779 ac_cpp='$CPP $CPPFLAGS'
26780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26783
26784
26785 fi
26786
26787   fi
26788   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
26789 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
26790   if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
26791     echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
26792 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
26793     if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
26794       if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
26795   echo $ECHO_N "(cached) $ECHO_C" >&6
26796 else
26797
26798         if test x$gcc_no_link = xyes; then
26799   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26801    { (exit 1); exit 1; }; }
26802 fi
26803 cat >conftest.$ac_ext <<_ACEOF
26804 /* confdefs.h.  */
26805 _ACEOF
26806 cat confdefs.h >>conftest.$ac_ext
26807 cat >>conftest.$ac_ext <<_ACEOF
26808 /* end confdefs.h.  */
26809 #include <math.h>
26810 int
26811 main ()
26812 {
26813  __builtin_sinl(0);
26814   ;
26815   return 0;
26816 }
26817 _ACEOF
26818 rm -f conftest.$ac_objext conftest$ac_exeext
26819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26820   (eval $ac_link) 2>conftest.er1
26821   ac_status=$?
26822   grep -v '^ *+' conftest.er1 >conftest.err
26823   rm -f conftest.er1
26824   cat conftest.err >&5
26825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826   (exit $ac_status); } &&
26827          { ac_try='test -z "$ac_c_werror_flag"
26828                          || test ! -s conftest.err'
26829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830   (eval $ac_try) 2>&5
26831   ac_status=$?
26832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833   (exit $ac_status); }; } &&
26834          { ac_try='test -s conftest$ac_exeext'
26835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836   (eval $ac_try) 2>&5
26837   ac_status=$?
26838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839   (exit $ac_status); }; }; then
26840   glibcxx_cv_func___builtin_sinl_link=yes
26841 else
26842   echo "$as_me: failed program was:" >&5
26843 sed 's/^/| /' conftest.$ac_ext >&5
26844
26845 glibcxx_cv_func___builtin_sinl_link=no
26846 fi
26847 rm -f conftest.err conftest.$ac_objext \
26848       conftest$ac_exeext conftest.$ac_ext
26849
26850 fi
26851
26852     fi
26853     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
26854 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
26855     if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
26856       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26857       cat >>confdefs.h <<_ACEOF
26858 #define ${ac_tr_func} 1
26859 _ACEOF
26860
26861     fi
26862   fi
26863
26864
26865
26866   echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
26867 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
26868   if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
26869     if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
26870   echo $ECHO_N "(cached) $ECHO_C" >&6
26871 else
26872
26873
26874
26875       ac_ext=cc
26876 ac_cpp='$CXXCPP $CPPFLAGS'
26877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26880
26881       cat >conftest.$ac_ext <<_ACEOF
26882 /* confdefs.h.  */
26883 _ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h.  */
26887 #include <math.h>
26888 int
26889 main ()
26890 {
26891  __builtin_cosf(0);
26892   ;
26893   return 0;
26894 }
26895 _ACEOF
26896 rm -f conftest.$ac_objext
26897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26898   (eval $ac_compile) 2>conftest.er1
26899   ac_status=$?
26900   grep -v '^ *+' conftest.er1 >conftest.err
26901   rm -f conftest.er1
26902   cat conftest.err >&5
26903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904   (exit $ac_status); } &&
26905          { ac_try='test -z "$ac_cxx_werror_flag"
26906                          || test ! -s conftest.err'
26907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908   (eval $ac_try) 2>&5
26909   ac_status=$?
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); }; } &&
26912          { ac_try='test -s conftest.$ac_objext'
26913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914   (eval $ac_try) 2>&5
26915   ac_status=$?
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); }; }; then
26918   glibcxx_cv_func___builtin_cosf_use=yes
26919 else
26920   echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26922
26923 glibcxx_cv_func___builtin_cosf_use=no
26924 fi
26925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26926       ac_ext=c
26927 ac_cpp='$CPP $CPPFLAGS'
26928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26931
26932
26933 fi
26934
26935   fi
26936   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
26937 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
26938   if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
26939     echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
26940 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
26941     if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
26942       if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
26943   echo $ECHO_N "(cached) $ECHO_C" >&6
26944 else
26945
26946         if test x$gcc_no_link = xyes; then
26947   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26949    { (exit 1); exit 1; }; }
26950 fi
26951 cat >conftest.$ac_ext <<_ACEOF
26952 /* confdefs.h.  */
26953 _ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h.  */
26957 #include <math.h>
26958 int
26959 main ()
26960 {
26961  __builtin_cosf(0);
26962   ;
26963   return 0;
26964 }
26965 _ACEOF
26966 rm -f conftest.$ac_objext conftest$ac_exeext
26967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26968   (eval $ac_link) 2>conftest.er1
26969   ac_status=$?
26970   grep -v '^ *+' conftest.er1 >conftest.err
26971   rm -f conftest.er1
26972   cat conftest.err >&5
26973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974   (exit $ac_status); } &&
26975          { ac_try='test -z "$ac_c_werror_flag"
26976                          || test ! -s conftest.err'
26977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26978   (eval $ac_try) 2>&5
26979   ac_status=$?
26980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981   (exit $ac_status); }; } &&
26982          { ac_try='test -s conftest$ac_exeext'
26983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984   (eval $ac_try) 2>&5
26985   ac_status=$?
26986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987   (exit $ac_status); }; }; then
26988   glibcxx_cv_func___builtin_cosf_link=yes
26989 else
26990   echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26992
26993 glibcxx_cv_func___builtin_cosf_link=no
26994 fi
26995 rm -f conftest.err conftest.$ac_objext \
26996       conftest$ac_exeext conftest.$ac_ext
26997
26998 fi
26999
27000     fi
27001     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
27002 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
27003     if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
27004       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27005       cat >>confdefs.h <<_ACEOF
27006 #define ${ac_tr_func} 1
27007 _ACEOF
27008
27009     fi
27010   fi
27011
27012
27013   echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
27014 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
27015   if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
27016     if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
27017   echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27019
27020
27021
27022       ac_ext=cc
27023 ac_cpp='$CXXCPP $CPPFLAGS'
27024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27027
27028       cat >conftest.$ac_ext <<_ACEOF
27029 /* confdefs.h.  */
27030 _ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h.  */
27034 #include <math.h>
27035 int
27036 main ()
27037 {
27038  __builtin_cos(0);
27039   ;
27040   return 0;
27041 }
27042 _ACEOF
27043 rm -f conftest.$ac_objext
27044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27045   (eval $ac_compile) 2>conftest.er1
27046   ac_status=$?
27047   grep -v '^ *+' conftest.er1 >conftest.err
27048   rm -f conftest.er1
27049   cat conftest.err >&5
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); } &&
27052          { ac_try='test -z "$ac_cxx_werror_flag"
27053                          || test ! -s conftest.err'
27054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055   (eval $ac_try) 2>&5
27056   ac_status=$?
27057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058   (exit $ac_status); }; } &&
27059          { ac_try='test -s conftest.$ac_objext'
27060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27061   (eval $ac_try) 2>&5
27062   ac_status=$?
27063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064   (exit $ac_status); }; }; then
27065   glibcxx_cv_func___builtin_cos_use=yes
27066 else
27067   echo "$as_me: failed program was:" >&5
27068 sed 's/^/| /' conftest.$ac_ext >&5
27069
27070 glibcxx_cv_func___builtin_cos_use=no
27071 fi
27072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27073       ac_ext=c
27074 ac_cpp='$CPP $CPPFLAGS'
27075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27078
27079
27080 fi
27081
27082   fi
27083   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
27084 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
27085   if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
27086     echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
27087 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
27088     if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
27089       if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
27090   echo $ECHO_N "(cached) $ECHO_C" >&6
27091 else
27092
27093         if test x$gcc_no_link = xyes; then
27094   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27096    { (exit 1); exit 1; }; }
27097 fi
27098 cat >conftest.$ac_ext <<_ACEOF
27099 /* confdefs.h.  */
27100 _ACEOF
27101 cat confdefs.h >>conftest.$ac_ext
27102 cat >>conftest.$ac_ext <<_ACEOF
27103 /* end confdefs.h.  */
27104 #include <math.h>
27105 int
27106 main ()
27107 {
27108  __builtin_cos(0);
27109   ;
27110   return 0;
27111 }
27112 _ACEOF
27113 rm -f conftest.$ac_objext conftest$ac_exeext
27114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27115   (eval $ac_link) 2>conftest.er1
27116   ac_status=$?
27117   grep -v '^ *+' conftest.er1 >conftest.err
27118   rm -f conftest.er1
27119   cat conftest.err >&5
27120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); } &&
27122          { ac_try='test -z "$ac_c_werror_flag"
27123                          || test ! -s conftest.err'
27124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125   (eval $ac_try) 2>&5
27126   ac_status=$?
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); }; } &&
27129          { ac_try='test -s conftest$ac_exeext'
27130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131   (eval $ac_try) 2>&5
27132   ac_status=$?
27133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134   (exit $ac_status); }; }; then
27135   glibcxx_cv_func___builtin_cos_link=yes
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140 glibcxx_cv_func___builtin_cos_link=no
27141 fi
27142 rm -f conftest.err conftest.$ac_objext \
27143       conftest$ac_exeext conftest.$ac_ext
27144
27145 fi
27146
27147     fi
27148     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
27149 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
27150     if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
27151       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27152       cat >>confdefs.h <<_ACEOF
27153 #define ${ac_tr_func} 1
27154 _ACEOF
27155
27156     fi
27157   fi
27158
27159
27160   echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
27161 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
27162   if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
27163     if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
27164   echo $ECHO_N "(cached) $ECHO_C" >&6
27165 else
27166
27167
27168
27169       ac_ext=cc
27170 ac_cpp='$CXXCPP $CPPFLAGS'
27171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27174
27175       cat >conftest.$ac_ext <<_ACEOF
27176 /* confdefs.h.  */
27177 _ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h.  */
27181 #include <math.h>
27182 int
27183 main ()
27184 {
27185  __builtin_cosl(0);
27186   ;
27187   return 0;
27188 }
27189 _ACEOF
27190 rm -f conftest.$ac_objext
27191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27192   (eval $ac_compile) 2>conftest.er1
27193   ac_status=$?
27194   grep -v '^ *+' conftest.er1 >conftest.err
27195   rm -f conftest.er1
27196   cat conftest.err >&5
27197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198   (exit $ac_status); } &&
27199          { ac_try='test -z "$ac_cxx_werror_flag"
27200                          || test ! -s conftest.err'
27201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27202   (eval $ac_try) 2>&5
27203   ac_status=$?
27204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205   (exit $ac_status); }; } &&
27206          { ac_try='test -s conftest.$ac_objext'
27207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208   (eval $ac_try) 2>&5
27209   ac_status=$?
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); }; }; then
27212   glibcxx_cv_func___builtin_cosl_use=yes
27213 else
27214   echo "$as_me: failed program was:" >&5
27215 sed 's/^/| /' conftest.$ac_ext >&5
27216
27217 glibcxx_cv_func___builtin_cosl_use=no
27218 fi
27219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27220       ac_ext=c
27221 ac_cpp='$CPP $CPPFLAGS'
27222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27225
27226
27227 fi
27228
27229   fi
27230   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
27231 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
27232   if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
27233     echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
27234 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
27235     if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
27236       if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
27237   echo $ECHO_N "(cached) $ECHO_C" >&6
27238 else
27239
27240         if test x$gcc_no_link = xyes; then
27241   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27243    { (exit 1); exit 1; }; }
27244 fi
27245 cat >conftest.$ac_ext <<_ACEOF
27246 /* confdefs.h.  */
27247 _ACEOF
27248 cat confdefs.h >>conftest.$ac_ext
27249 cat >>conftest.$ac_ext <<_ACEOF
27250 /* end confdefs.h.  */
27251 #include <math.h>
27252 int
27253 main ()
27254 {
27255  __builtin_cosl(0);
27256   ;
27257   return 0;
27258 }
27259 _ACEOF
27260 rm -f conftest.$ac_objext conftest$ac_exeext
27261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27262   (eval $ac_link) 2>conftest.er1
27263   ac_status=$?
27264   grep -v '^ *+' conftest.er1 >conftest.err
27265   rm -f conftest.er1
27266   cat conftest.err >&5
27267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268   (exit $ac_status); } &&
27269          { ac_try='test -z "$ac_c_werror_flag"
27270                          || test ! -s conftest.err'
27271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272   (eval $ac_try) 2>&5
27273   ac_status=$?
27274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275   (exit $ac_status); }; } &&
27276          { ac_try='test -s conftest$ac_exeext'
27277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27278   (eval $ac_try) 2>&5
27279   ac_status=$?
27280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281   (exit $ac_status); }; }; then
27282   glibcxx_cv_func___builtin_cosl_link=yes
27283 else
27284   echo "$as_me: failed program was:" >&5
27285 sed 's/^/| /' conftest.$ac_ext >&5
27286
27287 glibcxx_cv_func___builtin_cosl_link=no
27288 fi
27289 rm -f conftest.err conftest.$ac_objext \
27290       conftest$ac_exeext conftest.$ac_ext
27291
27292 fi
27293
27294     fi
27295     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
27296 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
27297     if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
27298       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27299       cat >>confdefs.h <<_ACEOF
27300 #define ${ac_tr_func} 1
27301 _ACEOF
27302
27303     fi
27304   fi
27305
27306
27307               dummyvar=no
27308   if test x$dummyvar = x"yes"; then
27309     cat >>confdefs.h <<\_ACEOF
27310 #define HAVE___BUILTIN_ABS 1
27311 _ACEOF
27312
27313     cat >>confdefs.h <<\_ACEOF
27314 #define HAVE___BUILTIN_LABS 1
27315 _ACEOF
27316
27317     cat >>confdefs.h <<\_ACEOF
27318 #define HAVE___BUILTIN_COS 1
27319 _ACEOF
27320
27321     cat >>confdefs.h <<\_ACEOF
27322 #define HAVE___BUILTIN_COSF 1
27323 _ACEOF
27324
27325     cat >>confdefs.h <<\_ACEOF
27326 #define HAVE___BUILTIN_COSL 1
27327 _ACEOF
27328
27329     cat >>confdefs.h <<\_ACEOF
27330 #define HAVE___BUILTIN_FABS 1
27331 _ACEOF
27332
27333     cat >>confdefs.h <<\_ACEOF
27334 #define HAVE___BUILTIN_FABSF 1
27335 _ACEOF
27336
27337     cat >>confdefs.h <<\_ACEOF
27338 #define HAVE___BUILTIN_FABSL 1
27339 _ACEOF
27340
27341     cat >>confdefs.h <<\_ACEOF
27342 #define HAVE___BUILTIN_SIN 1
27343 _ACEOF
27344
27345     cat >>confdefs.h <<\_ACEOF
27346 #define HAVE___BUILTIN_SINF 1
27347 _ACEOF
27348
27349     cat >>confdefs.h <<\_ACEOF
27350 #define HAVE___BUILTIN_SINL 1
27351 _ACEOF
27352
27353     cat >>confdefs.h <<\_ACEOF
27354 #define HAVE___BUILTIN_SQRT 1
27355 _ACEOF
27356
27357     cat >>confdefs.h <<\_ACEOF
27358 #define HAVE___BUILTIN_SQRTF 1
27359 _ACEOF
27360
27361     cat >>confdefs.h <<\_ACEOF
27362 #define HAVE___BUILTIN_SQRTL 1
27363 _ACEOF
27364
27365   fi
27366
27367
27368
27369 echo "$as_me:$LINENO: checking for main in -lm" >&5
27370 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
27371 if test "${ac_cv_lib_m_main+set}" = set; then
27372   echo $ECHO_N "(cached) $ECHO_C" >&6
27373 else
27374   ac_check_lib_save_LIBS=$LIBS
27375 LIBS="-lm  $LIBS"
27376 if test x$gcc_no_link = xyes; then
27377   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27378 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27379    { (exit 1); exit 1; }; }
27380 fi
27381 cat >conftest.$ac_ext <<_ACEOF
27382 /* confdefs.h.  */
27383 _ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h.  */
27387
27388
27389 int
27390 main ()
27391 {
27392 main ();
27393   ;
27394   return 0;
27395 }
27396 _ACEOF
27397 rm -f conftest.$ac_objext conftest$ac_exeext
27398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27399   (eval $ac_link) 2>conftest.er1
27400   ac_status=$?
27401   grep -v '^ *+' conftest.er1 >conftest.err
27402   rm -f conftest.er1
27403   cat conftest.err >&5
27404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405   (exit $ac_status); } &&
27406          { ac_try='test -z "$ac_c_werror_flag"
27407                          || test ! -s conftest.err'
27408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409   (eval $ac_try) 2>&5
27410   ac_status=$?
27411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412   (exit $ac_status); }; } &&
27413          { ac_try='test -s conftest$ac_exeext'
27414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27415   (eval $ac_try) 2>&5
27416   ac_status=$?
27417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418   (exit $ac_status); }; }; then
27419   ac_cv_lib_m_main=yes
27420 else
27421   echo "$as_me: failed program was:" >&5
27422 sed 's/^/| /' conftest.$ac_ext >&5
27423
27424 ac_cv_lib_m_main=no
27425 fi
27426 rm -f conftest.err conftest.$ac_objext \
27427       conftest$ac_exeext conftest.$ac_ext
27428 LIBS=$ac_check_lib_save_LIBS
27429 fi
27430 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
27431 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
27432 if test $ac_cv_lib_m_main = yes; then
27433   cat >>confdefs.h <<_ACEOF
27434 #define HAVE_LIBM 1
27435 _ACEOF
27436
27437   LIBS="-lm $LIBS"
27438
27439 fi
27440
27441
27442 for ac_func in copysignf
27443 do
27444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27445 echo "$as_me:$LINENO: checking for $ac_func" >&5
27446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27447 if eval "test \"\${$as_ac_var+set}\" = set"; then
27448   echo $ECHO_N "(cached) $ECHO_C" >&6
27449 else
27450   if test x$gcc_no_link = xyes; then
27451   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27452 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27453    { (exit 1); exit 1; }; }
27454 fi
27455 cat >conftest.$ac_ext <<_ACEOF
27456 /* confdefs.h.  */
27457 _ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h.  */
27461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27463 #define $ac_func innocuous_$ac_func
27464
27465 /* System header to define __stub macros and hopefully few prototypes,
27466     which can conflict with char $ac_func (); below.
27467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27468     <limits.h> exists even on freestanding compilers.  */
27469
27470 #ifdef __STDC__
27471 # include <limits.h>
27472 #else
27473 # include <assert.h>
27474 #endif
27475
27476 #undef $ac_func
27477
27478 /* Override any gcc2 internal prototype to avoid an error.  */
27479 #ifdef __cplusplus
27480 extern "C"
27481 {
27482 #endif
27483 /* We use char because int might match the return type of a gcc2
27484    builtin and then its argument prototype would still apply.  */
27485 char $ac_func ();
27486 /* The GNU C library defines this for functions which it implements
27487     to always fail with ENOSYS.  Some functions are actually named
27488     something starting with __ and the normal name is an alias.  */
27489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27490 choke me
27491 #else
27492 char (*f) () = $ac_func;
27493 #endif
27494 #ifdef __cplusplus
27495 }
27496 #endif
27497
27498 int
27499 main ()
27500 {
27501 return f != $ac_func;
27502   ;
27503   return 0;
27504 }
27505 _ACEOF
27506 rm -f conftest.$ac_objext conftest$ac_exeext
27507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27508   (eval $ac_link) 2>conftest.er1
27509   ac_status=$?
27510   grep -v '^ *+' conftest.er1 >conftest.err
27511   rm -f conftest.er1
27512   cat conftest.err >&5
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); } &&
27515          { ac_try='test -z "$ac_c_werror_flag"
27516                          || test ! -s conftest.err'
27517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27518   (eval $ac_try) 2>&5
27519   ac_status=$?
27520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521   (exit $ac_status); }; } &&
27522          { ac_try='test -s conftest$ac_exeext'
27523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524   (eval $ac_try) 2>&5
27525   ac_status=$?
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); }; }; then
27528   eval "$as_ac_var=yes"
27529 else
27530   echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27532
27533 eval "$as_ac_var=no"
27534 fi
27535 rm -f conftest.err conftest.$ac_objext \
27536       conftest$ac_exeext conftest.$ac_ext
27537 fi
27538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27540 if test `eval echo '${'$as_ac_var'}'` = yes; then
27541   cat >>confdefs.h <<_ACEOF
27542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27543 _ACEOF
27544
27545 else
27546   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
27547 fi
27548 done
27549
27550
27551
27552 for ac_func in __signbit
27553 do
27554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27555 echo "$as_me:$LINENO: checking for $ac_func" >&5
27556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27557 if eval "test \"\${$as_ac_var+set}\" = set"; then
27558   echo $ECHO_N "(cached) $ECHO_C" >&6
27559 else
27560   if test x$gcc_no_link = xyes; then
27561   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27563    { (exit 1); exit 1; }; }
27564 fi
27565 cat >conftest.$ac_ext <<_ACEOF
27566 /* confdefs.h.  */
27567 _ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h.  */
27571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27573 #define $ac_func innocuous_$ac_func
27574
27575 /* System header to define __stub macros and hopefully few prototypes,
27576     which can conflict with char $ac_func (); below.
27577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27578     <limits.h> exists even on freestanding compilers.  */
27579
27580 #ifdef __STDC__
27581 # include <limits.h>
27582 #else
27583 # include <assert.h>
27584 #endif
27585
27586 #undef $ac_func
27587
27588 /* Override any gcc2 internal prototype to avoid an error.  */
27589 #ifdef __cplusplus
27590 extern "C"
27591 {
27592 #endif
27593 /* We use char because int might match the return type of a gcc2
27594    builtin and then its argument prototype would still apply.  */
27595 char $ac_func ();
27596 /* The GNU C library defines this for functions which it implements
27597     to always fail with ENOSYS.  Some functions are actually named
27598     something starting with __ and the normal name is an alias.  */
27599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27600 choke me
27601 #else
27602 char (*f) () = $ac_func;
27603 #endif
27604 #ifdef __cplusplus
27605 }
27606 #endif
27607
27608 int
27609 main ()
27610 {
27611 return f != $ac_func;
27612   ;
27613   return 0;
27614 }
27615 _ACEOF
27616 rm -f conftest.$ac_objext conftest$ac_exeext
27617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27618   (eval $ac_link) 2>conftest.er1
27619   ac_status=$?
27620   grep -v '^ *+' conftest.er1 >conftest.err
27621   rm -f conftest.er1
27622   cat conftest.err >&5
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); } &&
27625          { ac_try='test -z "$ac_c_werror_flag"
27626                          || test ! -s conftest.err'
27627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628   (eval $ac_try) 2>&5
27629   ac_status=$?
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); }; } &&
27632          { ac_try='test -s conftest$ac_exeext'
27633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634   (eval $ac_try) 2>&5
27635   ac_status=$?
27636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637   (exit $ac_status); }; }; then
27638   eval "$as_ac_var=yes"
27639 else
27640   echo "$as_me: failed program was:" >&5
27641 sed 's/^/| /' conftest.$ac_ext >&5
27642
27643 eval "$as_ac_var=no"
27644 fi
27645 rm -f conftest.err conftest.$ac_objext \
27646       conftest$ac_exeext conftest.$ac_ext
27647 fi
27648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27650 if test `eval echo '${'$as_ac_var'}'` = yes; then
27651   cat >>confdefs.h <<_ACEOF
27652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27653 _ACEOF
27654
27655 else
27656   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
27657 fi
27658 done
27659
27660
27661 for ac_func in __signbitf
27662 do
27663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27664 echo "$as_me:$LINENO: checking for $ac_func" >&5
27665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27666 if eval "test \"\${$as_ac_var+set}\" = set"; then
27667   echo $ECHO_N "(cached) $ECHO_C" >&6
27668 else
27669   if test x$gcc_no_link = xyes; then
27670   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27672    { (exit 1); exit 1; }; }
27673 fi
27674 cat >conftest.$ac_ext <<_ACEOF
27675 /* confdefs.h.  */
27676 _ACEOF
27677 cat confdefs.h >>conftest.$ac_ext
27678 cat >>conftest.$ac_ext <<_ACEOF
27679 /* end confdefs.h.  */
27680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27682 #define $ac_func innocuous_$ac_func
27683
27684 /* System header to define __stub macros and hopefully few prototypes,
27685     which can conflict with char $ac_func (); below.
27686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27687     <limits.h> exists even on freestanding compilers.  */
27688
27689 #ifdef __STDC__
27690 # include <limits.h>
27691 #else
27692 # include <assert.h>
27693 #endif
27694
27695 #undef $ac_func
27696
27697 /* Override any gcc2 internal prototype to avoid an error.  */
27698 #ifdef __cplusplus
27699 extern "C"
27700 {
27701 #endif
27702 /* We use char because int might match the return type of a gcc2
27703    builtin and then its argument prototype would still apply.  */
27704 char $ac_func ();
27705 /* The GNU C library defines this for functions which it implements
27706     to always fail with ENOSYS.  Some functions are actually named
27707     something starting with __ and the normal name is an alias.  */
27708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27709 choke me
27710 #else
27711 char (*f) () = $ac_func;
27712 #endif
27713 #ifdef __cplusplus
27714 }
27715 #endif
27716
27717 int
27718 main ()
27719 {
27720 return f != $ac_func;
27721   ;
27722   return 0;
27723 }
27724 _ACEOF
27725 rm -f conftest.$ac_objext conftest$ac_exeext
27726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27727   (eval $ac_link) 2>conftest.er1
27728   ac_status=$?
27729   grep -v '^ *+' conftest.er1 >conftest.err
27730   rm -f conftest.er1
27731   cat conftest.err >&5
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); } &&
27734          { ac_try='test -z "$ac_c_werror_flag"
27735                          || test ! -s conftest.err'
27736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27737   (eval $ac_try) 2>&5
27738   ac_status=$?
27739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740   (exit $ac_status); }; } &&
27741          { ac_try='test -s conftest$ac_exeext'
27742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27743   (eval $ac_try) 2>&5
27744   ac_status=$?
27745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746   (exit $ac_status); }; }; then
27747   eval "$as_ac_var=yes"
27748 else
27749   echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27751
27752 eval "$as_ac_var=no"
27753 fi
27754 rm -f conftest.err conftest.$ac_objext \
27755       conftest$ac_exeext conftest.$ac_ext
27756 fi
27757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27759 if test `eval echo '${'$as_ac_var'}'` = yes; then
27760   cat >>confdefs.h <<_ACEOF
27761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27762 _ACEOF
27763
27764 else
27765   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
27766 fi
27767 done
27768
27769
27770           if test x$ac_cv_func_copysignl = x"yes"; then
27771
27772 for ac_func in __signbitl
27773 do
27774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27775 echo "$as_me:$LINENO: checking for $ac_func" >&5
27776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27777 if eval "test \"\${$as_ac_var+set}\" = set"; then
27778   echo $ECHO_N "(cached) $ECHO_C" >&6
27779 else
27780   if test x$gcc_no_link = xyes; then
27781   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27782 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27783    { (exit 1); exit 1; }; }
27784 fi
27785 cat >conftest.$ac_ext <<_ACEOF
27786 /* confdefs.h.  */
27787 _ACEOF
27788 cat confdefs.h >>conftest.$ac_ext
27789 cat >>conftest.$ac_ext <<_ACEOF
27790 /* end confdefs.h.  */
27791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27793 #define $ac_func innocuous_$ac_func
27794
27795 /* System header to define __stub macros and hopefully few prototypes,
27796     which can conflict with char $ac_func (); below.
27797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27798     <limits.h> exists even on freestanding compilers.  */
27799
27800 #ifdef __STDC__
27801 # include <limits.h>
27802 #else
27803 # include <assert.h>
27804 #endif
27805
27806 #undef $ac_func
27807
27808 /* Override any gcc2 internal prototype to avoid an error.  */
27809 #ifdef __cplusplus
27810 extern "C"
27811 {
27812 #endif
27813 /* We use char because int might match the return type of a gcc2
27814    builtin and then its argument prototype would still apply.  */
27815 char $ac_func ();
27816 /* The GNU C library defines this for functions which it implements
27817     to always fail with ENOSYS.  Some functions are actually named
27818     something starting with __ and the normal name is an alias.  */
27819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27820 choke me
27821 #else
27822 char (*f) () = $ac_func;
27823 #endif
27824 #ifdef __cplusplus
27825 }
27826 #endif
27827
27828 int
27829 main ()
27830 {
27831 return f != $ac_func;
27832   ;
27833   return 0;
27834 }
27835 _ACEOF
27836 rm -f conftest.$ac_objext conftest$ac_exeext
27837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27838   (eval $ac_link) 2>conftest.er1
27839   ac_status=$?
27840   grep -v '^ *+' conftest.er1 >conftest.err
27841   rm -f conftest.er1
27842   cat conftest.err >&5
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); } &&
27845          { ac_try='test -z "$ac_c_werror_flag"
27846                          || test ! -s conftest.err'
27847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27848   (eval $ac_try) 2>&5
27849   ac_status=$?
27850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851   (exit $ac_status); }; } &&
27852          { ac_try='test -s conftest$ac_exeext'
27853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854   (eval $ac_try) 2>&5
27855   ac_status=$?
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); }; }; then
27858   eval "$as_ac_var=yes"
27859 else
27860   echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27862
27863 eval "$as_ac_var=no"
27864 fi
27865 rm -f conftest.err conftest.$ac_objext \
27866       conftest$ac_exeext conftest.$ac_ext
27867 fi
27868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27870 if test `eval echo '${'$as_ac_var'}'` = yes; then
27871   cat >>confdefs.h <<_ACEOF
27872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27873 _ACEOF
27874
27875 else
27876   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
27877 fi
27878 done
27879
27880   fi
27881
27882   # XXX Review this.  Nothing uses it.
27883   if test -n "$LIBMATHOBJS"; then
27884     need_libmath=yes
27885   fi
27886
27887
27888
27889   # Test wchar.h for mbstate_t, which is needed for char_traits and
27890   # others even if wchar_t support is not on.
27891   echo "$as_me:$LINENO: checking for mbstate_t" >&5
27892 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
27893   cat >conftest.$ac_ext <<_ACEOF
27894 /* confdefs.h.  */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h.  */
27899 #include <wchar.h>
27900 int
27901 main ()
27902 {
27903 mbstate_t teststate;
27904   ;
27905   return 0;
27906 }
27907 _ACEOF
27908 rm -f conftest.$ac_objext
27909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27910   (eval $ac_compile) 2>conftest.er1
27911   ac_status=$?
27912   grep -v '^ *+' conftest.er1 >conftest.err
27913   rm -f conftest.er1
27914   cat conftest.err >&5
27915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916   (exit $ac_status); } &&
27917          { ac_try='test -z "$ac_c_werror_flag"
27918                          || test ! -s conftest.err'
27919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27920   (eval $ac_try) 2>&5
27921   ac_status=$?
27922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923   (exit $ac_status); }; } &&
27924          { ac_try='test -s conftest.$ac_objext'
27925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27926   (eval $ac_try) 2>&5
27927   ac_status=$?
27928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929   (exit $ac_status); }; }; then
27930   have_mbstate_t=yes
27931 else
27932   echo "$as_me: failed program was:" >&5
27933 sed 's/^/| /' conftest.$ac_ext >&5
27934
27935 have_mbstate_t=no
27936 fi
27937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27938   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
27939 echo "${ECHO_T}$have_mbstate_t" >&6
27940   if test x"$have_mbstate_t" = xyes; then
27941     cat >>confdefs.h <<\_ACEOF
27942 #define HAVE_MBSTATE_T 1
27943 _ACEOF
27944
27945   fi
27946
27947   # Sanity check for existence of ISO C99 headers for extended encoding.
27948
27949 for ac_header in wchar.h
27950 do
27951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27953   echo "$as_me:$LINENO: checking for $ac_header" >&5
27954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27956   echo $ECHO_N "(cached) $ECHO_C" >&6
27957 fi
27958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27960 else
27961   # Is the header compilable?
27962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27964 cat >conftest.$ac_ext <<_ACEOF
27965 /* confdefs.h.  */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h.  */
27970 $ac_includes_default
27971 #include <$ac_header>
27972 _ACEOF
27973 rm -f conftest.$ac_objext
27974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27975   (eval $ac_compile) 2>conftest.er1
27976   ac_status=$?
27977   grep -v '^ *+' conftest.er1 >conftest.err
27978   rm -f conftest.er1
27979   cat conftest.err >&5
27980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981   (exit $ac_status); } &&
27982          { ac_try='test -z "$ac_c_werror_flag"
27983                          || test ! -s conftest.err'
27984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27985   (eval $ac_try) 2>&5
27986   ac_status=$?
27987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988   (exit $ac_status); }; } &&
27989          { ac_try='test -s conftest.$ac_objext'
27990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27991   (eval $ac_try) 2>&5
27992   ac_status=$?
27993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994   (exit $ac_status); }; }; then
27995   ac_header_compiler=yes
27996 else
27997   echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.$ac_ext >&5
27999
28000 ac_header_compiler=no
28001 fi
28002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28004 echo "${ECHO_T}$ac_header_compiler" >&6
28005
28006 # Is the header present?
28007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28009 cat >conftest.$ac_ext <<_ACEOF
28010 /* confdefs.h.  */
28011 _ACEOF
28012 cat confdefs.h >>conftest.$ac_ext
28013 cat >>conftest.$ac_ext <<_ACEOF
28014 /* end confdefs.h.  */
28015 #include <$ac_header>
28016 _ACEOF
28017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28019   ac_status=$?
28020   grep -v '^ *+' conftest.er1 >conftest.err
28021   rm -f conftest.er1
28022   cat conftest.err >&5
28023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024   (exit $ac_status); } >/dev/null; then
28025   if test -s conftest.err; then
28026     ac_cpp_err=$ac_c_preproc_warn_flag
28027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28028   else
28029     ac_cpp_err=
28030   fi
28031 else
28032   ac_cpp_err=yes
28033 fi
28034 if test -z "$ac_cpp_err"; then
28035   ac_header_preproc=yes
28036 else
28037   echo "$as_me: failed program was:" >&5
28038 sed 's/^/| /' conftest.$ac_ext >&5
28039
28040   ac_header_preproc=no
28041 fi
28042 rm -f conftest.err conftest.$ac_ext
28043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28044 echo "${ECHO_T}$ac_header_preproc" >&6
28045
28046 # So?  What about this header?
28047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28048   yes:no: )
28049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28053     ac_header_preproc=yes
28054     ;;
28055   no:yes:* )
28056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28068     (
28069       cat <<\_ASBOX
28070 ## ----------------------------------------- ##
28071 ## Report this to the package-unused lists.  ##
28072 ## ----------------------------------------- ##
28073 _ASBOX
28074     ) |
28075       sed "s/^/$as_me: WARNING:     /" >&2
28076     ;;
28077 esac
28078 echo "$as_me:$LINENO: checking for $ac_header" >&5
28079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28081   echo $ECHO_N "(cached) $ECHO_C" >&6
28082 else
28083   eval "$as_ac_Header=\$ac_header_preproc"
28084 fi
28085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28087
28088 fi
28089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28090   cat >>confdefs.h <<_ACEOF
28091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28092 _ACEOF
28093  ac_has_wchar_h=yes
28094 else
28095   ac_has_wchar_h=no
28096 fi
28097
28098 done
28099
28100
28101 for ac_header in wctype.h
28102 do
28103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28105   echo "$as_me:$LINENO: checking for $ac_header" >&5
28106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28108   echo $ECHO_N "(cached) $ECHO_C" >&6
28109 fi
28110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28112 else
28113   # Is the header compilable?
28114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28116 cat >conftest.$ac_ext <<_ACEOF
28117 /* confdefs.h.  */
28118 _ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h.  */
28122 $ac_includes_default
28123 #include <$ac_header>
28124 _ACEOF
28125 rm -f conftest.$ac_objext
28126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28127   (eval $ac_compile) 2>conftest.er1
28128   ac_status=$?
28129   grep -v '^ *+' conftest.er1 >conftest.err
28130   rm -f conftest.er1
28131   cat conftest.err >&5
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); } &&
28134          { ac_try='test -z "$ac_c_werror_flag"
28135                          || test ! -s conftest.err'
28136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28137   (eval $ac_try) 2>&5
28138   ac_status=$?
28139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140   (exit $ac_status); }; } &&
28141          { ac_try='test -s conftest.$ac_objext'
28142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28143   (eval $ac_try) 2>&5
28144   ac_status=$?
28145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); }; }; then
28147   ac_header_compiler=yes
28148 else
28149   echo "$as_me: failed program was:" >&5
28150 sed 's/^/| /' conftest.$ac_ext >&5
28151
28152 ac_header_compiler=no
28153 fi
28154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28156 echo "${ECHO_T}$ac_header_compiler" >&6
28157
28158 # Is the header present?
28159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28161 cat >conftest.$ac_ext <<_ACEOF
28162 /* confdefs.h.  */
28163 _ACEOF
28164 cat confdefs.h >>conftest.$ac_ext
28165 cat >>conftest.$ac_ext <<_ACEOF
28166 /* end confdefs.h.  */
28167 #include <$ac_header>
28168 _ACEOF
28169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28171   ac_status=$?
28172   grep -v '^ *+' conftest.er1 >conftest.err
28173   rm -f conftest.er1
28174   cat conftest.err >&5
28175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176   (exit $ac_status); } >/dev/null; then
28177   if test -s conftest.err; then
28178     ac_cpp_err=$ac_c_preproc_warn_flag
28179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28180   else
28181     ac_cpp_err=
28182   fi
28183 else
28184   ac_cpp_err=yes
28185 fi
28186 if test -z "$ac_cpp_err"; then
28187   ac_header_preproc=yes
28188 else
28189   echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28191
28192   ac_header_preproc=no
28193 fi
28194 rm -f conftest.err conftest.$ac_ext
28195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28196 echo "${ECHO_T}$ac_header_preproc" >&6
28197
28198 # So?  What about this header?
28199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28200   yes:no: )
28201     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28205     ac_header_preproc=yes
28206     ;;
28207   no:yes:* )
28208     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28210     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28211 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28212     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28214     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28215 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28218     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28220     (
28221       cat <<\_ASBOX
28222 ## ----------------------------------------- ##
28223 ## Report this to the package-unused lists.  ##
28224 ## ----------------------------------------- ##
28225 _ASBOX
28226     ) |
28227       sed "s/^/$as_me: WARNING:     /" >&2
28228     ;;
28229 esac
28230 echo "$as_me:$LINENO: checking for $ac_header" >&5
28231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28233   echo $ECHO_N "(cached) $ECHO_C" >&6
28234 else
28235   eval "$as_ac_Header=\$ac_header_preproc"
28236 fi
28237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28239
28240 fi
28241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28242   cat >>confdefs.h <<_ACEOF
28243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28244 _ACEOF
28245  ac_has_wctype_h=yes
28246 else
28247   ac_has_wctype_h=no
28248 fi
28249
28250 done
28251
28252
28253   # Only continue checking if the ISO C99 headers exist and support is on.
28254   if test x"$ac_has_wchar_h" = xyes &&
28255      test x"$ac_has_wctype_h" = xyes &&
28256      test x"$enable_c_mbchar" != xno; then
28257
28258     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
28259     # numeric_limits can instantiate type_traits<wchar_t>
28260     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
28261 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
28262     cat >conftest.$ac_ext <<_ACEOF
28263 /* confdefs.h.  */
28264 _ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h.  */
28268 #include <wchar.h>
28269 int
28270 main ()
28271 {
28272 int i = WCHAR_MIN; int j = WCHAR_MAX;
28273   ;
28274   return 0;
28275 }
28276 _ACEOF
28277 rm -f conftest.$ac_objext
28278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28279   (eval $ac_compile) 2>conftest.er1
28280   ac_status=$?
28281   grep -v '^ *+' conftest.er1 >conftest.err
28282   rm -f conftest.er1
28283   cat conftest.err >&5
28284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285   (exit $ac_status); } &&
28286          { ac_try='test -z "$ac_c_werror_flag"
28287                          || test ! -s conftest.err'
28288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289   (eval $ac_try) 2>&5
28290   ac_status=$?
28291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292   (exit $ac_status); }; } &&
28293          { ac_try='test -s conftest.$ac_objext'
28294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295   (eval $ac_try) 2>&5
28296   ac_status=$?
28297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298   (exit $ac_status); }; }; then
28299   has_wchar_minmax=yes
28300 else
28301   echo "$as_me: failed program was:" >&5
28302 sed 's/^/| /' conftest.$ac_ext >&5
28303
28304 has_wchar_minmax=no
28305 fi
28306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28307     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
28308 echo "${ECHO_T}$has_wchar_minmax" >&6
28309
28310     # Test wchar.h for WEOF, which is what we use to determine whether
28311     # to specialize for char_traits<wchar_t> or not.
28312     echo "$as_me:$LINENO: checking for WEOF" >&5
28313 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
28314     cat >conftest.$ac_ext <<_ACEOF
28315 /* confdefs.h.  */
28316 _ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h.  */
28320
28321       #include <wchar.h>
28322       #include <stddef.h>
28323 int
28324 main ()
28325 {
28326 wint_t i = WEOF;
28327   ;
28328   return 0;
28329 }
28330 _ACEOF
28331 rm -f conftest.$ac_objext
28332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28333   (eval $ac_compile) 2>conftest.er1
28334   ac_status=$?
28335   grep -v '^ *+' conftest.er1 >conftest.err
28336   rm -f conftest.er1
28337   cat conftest.err >&5
28338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339   (exit $ac_status); } &&
28340          { ac_try='test -z "$ac_c_werror_flag"
28341                          || test ! -s conftest.err'
28342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28343   (eval $ac_try) 2>&5
28344   ac_status=$?
28345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346   (exit $ac_status); }; } &&
28347          { ac_try='test -s conftest.$ac_objext'
28348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28349   (eval $ac_try) 2>&5
28350   ac_status=$?
28351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352   (exit $ac_status); }; }; then
28353   has_weof=yes
28354 else
28355   echo "$as_me: failed program was:" >&5
28356 sed 's/^/| /' conftest.$ac_ext >&5
28357
28358 has_weof=no
28359 fi
28360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28361     echo "$as_me:$LINENO: result: $has_weof" >&5
28362 echo "${ECHO_T}$has_weof" >&6
28363
28364     # Tests for wide character functions used in char_traits<wchar_t>.
28365     ac_wfuncs=yes
28366
28367
28368
28369
28370
28371
28372 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
28373 do
28374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28375 echo "$as_me:$LINENO: checking for $ac_func" >&5
28376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28377 if eval "test \"\${$as_ac_var+set}\" = set"; then
28378   echo $ECHO_N "(cached) $ECHO_C" >&6
28379 else
28380   if test x$gcc_no_link = xyes; then
28381   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28382 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28383    { (exit 1); exit 1; }; }
28384 fi
28385 cat >conftest.$ac_ext <<_ACEOF
28386 /* confdefs.h.  */
28387 _ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h.  */
28391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28393 #define $ac_func innocuous_$ac_func
28394
28395 /* System header to define __stub macros and hopefully few prototypes,
28396     which can conflict with char $ac_func (); below.
28397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28398     <limits.h> exists even on freestanding compilers.  */
28399
28400 #ifdef __STDC__
28401 # include <limits.h>
28402 #else
28403 # include <assert.h>
28404 #endif
28405
28406 #undef $ac_func
28407
28408 /* Override any gcc2 internal prototype to avoid an error.  */
28409 #ifdef __cplusplus
28410 extern "C"
28411 {
28412 #endif
28413 /* We use char because int might match the return type of a gcc2
28414    builtin and then its argument prototype would still apply.  */
28415 char $ac_func ();
28416 /* The GNU C library defines this for functions which it implements
28417     to always fail with ENOSYS.  Some functions are actually named
28418     something starting with __ and the normal name is an alias.  */
28419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28420 choke me
28421 #else
28422 char (*f) () = $ac_func;
28423 #endif
28424 #ifdef __cplusplus
28425 }
28426 #endif
28427
28428 int
28429 main ()
28430 {
28431 return f != $ac_func;
28432   ;
28433   return 0;
28434 }
28435 _ACEOF
28436 rm -f conftest.$ac_objext conftest$ac_exeext
28437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28438   (eval $ac_link) 2>conftest.er1
28439   ac_status=$?
28440   grep -v '^ *+' conftest.er1 >conftest.err
28441   rm -f conftest.er1
28442   cat conftest.err >&5
28443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444   (exit $ac_status); } &&
28445          { ac_try='test -z "$ac_c_werror_flag"
28446                          || test ! -s conftest.err'
28447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448   (eval $ac_try) 2>&5
28449   ac_status=$?
28450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451   (exit $ac_status); }; } &&
28452          { ac_try='test -s conftest$ac_exeext'
28453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454   (eval $ac_try) 2>&5
28455   ac_status=$?
28456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457   (exit $ac_status); }; }; then
28458   eval "$as_ac_var=yes"
28459 else
28460   echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28462
28463 eval "$as_ac_var=no"
28464 fi
28465 rm -f conftest.err conftest.$ac_objext \
28466       conftest$ac_exeext conftest.$ac_ext
28467 fi
28468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28470 if test `eval echo '${'$as_ac_var'}'` = yes; then
28471   cat >>confdefs.h <<_ACEOF
28472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28473 _ACEOF
28474
28475 else
28476   ac_wfuncs=no
28477 fi
28478 done
28479
28480
28481     # Checks for names injected into std:: by the c_std headers.
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
28529     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
28530     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
28531     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
28532     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
28533     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
28534 do
28535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28536 echo "$as_me:$LINENO: checking for $ac_func" >&5
28537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28538 if eval "test \"\${$as_ac_var+set}\" = set"; then
28539   echo $ECHO_N "(cached) $ECHO_C" >&6
28540 else
28541   if test x$gcc_no_link = xyes; then
28542   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28544    { (exit 1); exit 1; }; }
28545 fi
28546 cat >conftest.$ac_ext <<_ACEOF
28547 /* confdefs.h.  */
28548 _ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h.  */
28552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28554 #define $ac_func innocuous_$ac_func
28555
28556 /* System header to define __stub macros and hopefully few prototypes,
28557     which can conflict with char $ac_func (); below.
28558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28559     <limits.h> exists even on freestanding compilers.  */
28560
28561 #ifdef __STDC__
28562 # include <limits.h>
28563 #else
28564 # include <assert.h>
28565 #endif
28566
28567 #undef $ac_func
28568
28569 /* Override any gcc2 internal prototype to avoid an error.  */
28570 #ifdef __cplusplus
28571 extern "C"
28572 {
28573 #endif
28574 /* We use char because int might match the return type of a gcc2
28575    builtin and then its argument prototype would still apply.  */
28576 char $ac_func ();
28577 /* The GNU C library defines this for functions which it implements
28578     to always fail with ENOSYS.  Some functions are actually named
28579     something starting with __ and the normal name is an alias.  */
28580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28581 choke me
28582 #else
28583 char (*f) () = $ac_func;
28584 #endif
28585 #ifdef __cplusplus
28586 }
28587 #endif
28588
28589 int
28590 main ()
28591 {
28592 return f != $ac_func;
28593   ;
28594   return 0;
28595 }
28596 _ACEOF
28597 rm -f conftest.$ac_objext conftest$ac_exeext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28599   (eval $ac_link) 2>conftest.er1
28600   ac_status=$?
28601   grep -v '^ *+' conftest.er1 >conftest.err
28602   rm -f conftest.er1
28603   cat conftest.err >&5
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); } &&
28606          { ac_try='test -z "$ac_c_werror_flag"
28607                          || test ! -s conftest.err'
28608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609   (eval $ac_try) 2>&5
28610   ac_status=$?
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); }; } &&
28613          { ac_try='test -s conftest$ac_exeext'
28614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615   (eval $ac_try) 2>&5
28616   ac_status=$?
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); }; }; then
28619   eval "$as_ac_var=yes"
28620 else
28621   echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28623
28624 eval "$as_ac_var=no"
28625 fi
28626 rm -f conftest.err conftest.$ac_objext \
28627       conftest$ac_exeext conftest.$ac_ext
28628 fi
28629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28631 if test `eval echo '${'$as_ac_var'}'` = yes; then
28632   cat >>confdefs.h <<_ACEOF
28633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28634 _ACEOF
28635
28636 else
28637   ac_wfuncs=no
28638 fi
28639 done
28640
28641
28642     # Checks for wide character functions that are not required
28643     # for basic wchar_t support.  Don't disable support if they are missing.
28644     # Injection of these is wrapped with guard macros.
28645
28646
28647
28648
28649
28650 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
28651 do
28652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28653 echo "$as_me:$LINENO: checking for $ac_func" >&5
28654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28655 if eval "test \"\${$as_ac_var+set}\" = set"; then
28656   echo $ECHO_N "(cached) $ECHO_C" >&6
28657 else
28658   if test x$gcc_no_link = xyes; then
28659   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28660 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28661    { (exit 1); exit 1; }; }
28662 fi
28663 cat >conftest.$ac_ext <<_ACEOF
28664 /* confdefs.h.  */
28665 _ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h.  */
28669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28671 #define $ac_func innocuous_$ac_func
28672
28673 /* System header to define __stub macros and hopefully few prototypes,
28674     which can conflict with char $ac_func (); below.
28675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28676     <limits.h> exists even on freestanding compilers.  */
28677
28678 #ifdef __STDC__
28679 # include <limits.h>
28680 #else
28681 # include <assert.h>
28682 #endif
28683
28684 #undef $ac_func
28685
28686 /* Override any gcc2 internal prototype to avoid an error.  */
28687 #ifdef __cplusplus
28688 extern "C"
28689 {
28690 #endif
28691 /* We use char because int might match the return type of a gcc2
28692    builtin and then its argument prototype would still apply.  */
28693 char $ac_func ();
28694 /* The GNU C library defines this for functions which it implements
28695     to always fail with ENOSYS.  Some functions are actually named
28696     something starting with __ and the normal name is an alias.  */
28697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28698 choke me
28699 #else
28700 char (*f) () = $ac_func;
28701 #endif
28702 #ifdef __cplusplus
28703 }
28704 #endif
28705
28706 int
28707 main ()
28708 {
28709 return f != $ac_func;
28710   ;
28711   return 0;
28712 }
28713 _ACEOF
28714 rm -f conftest.$ac_objext conftest$ac_exeext
28715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28716   (eval $ac_link) 2>conftest.er1
28717   ac_status=$?
28718   grep -v '^ *+' conftest.er1 >conftest.err
28719   rm -f conftest.er1
28720   cat conftest.err >&5
28721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722   (exit $ac_status); } &&
28723          { ac_try='test -z "$ac_c_werror_flag"
28724                          || test ! -s conftest.err'
28725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28726   (eval $ac_try) 2>&5
28727   ac_status=$?
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); }; } &&
28730          { ac_try='test -s conftest$ac_exeext'
28731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732   (eval $ac_try) 2>&5
28733   ac_status=$?
28734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735   (exit $ac_status); }; }; then
28736   eval "$as_ac_var=yes"
28737 else
28738   echo "$as_me: failed program was:" >&5
28739 sed 's/^/| /' conftest.$ac_ext >&5
28740
28741 eval "$as_ac_var=no"
28742 fi
28743 rm -f conftest.err conftest.$ac_objext \
28744       conftest$ac_exeext conftest.$ac_ext
28745 fi
28746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28748 if test `eval echo '${'$as_ac_var'}'` = yes; then
28749   cat >>confdefs.h <<_ACEOF
28750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28751 _ACEOF
28752
28753 fi
28754 done
28755
28756
28757     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
28758 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
28759     if test x"$has_weof" = xyes &&
28760        test x"$has_wchar_minmax" = xyes &&
28761        test x"$ac_wfuncs" = xyes;
28762     then
28763       ac_isoC99_wchar_t=yes
28764     else
28765       ac_isoC99_wchar_t=no
28766     fi
28767     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
28768 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
28769
28770     # Use iconv for wchar_t to char conversions. As such, check for
28771     # X/Open Portability Guide, version 2 features (XPG2).
28772     if test "${ac_cv_header_iconv_h+set}" = set; then
28773   echo "$as_me:$LINENO: checking for iconv.h" >&5
28774 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28775 if test "${ac_cv_header_iconv_h+set}" = set; then
28776   echo $ECHO_N "(cached) $ECHO_C" >&6
28777 fi
28778 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28779 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28780 else
28781   # Is the header compilable?
28782 echo "$as_me:$LINENO: checking iconv.h usability" >&5
28783 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
28784 cat >conftest.$ac_ext <<_ACEOF
28785 /* confdefs.h.  */
28786 _ACEOF
28787 cat confdefs.h >>conftest.$ac_ext
28788 cat >>conftest.$ac_ext <<_ACEOF
28789 /* end confdefs.h.  */
28790 $ac_includes_default
28791 #include <iconv.h>
28792 _ACEOF
28793 rm -f conftest.$ac_objext
28794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28795   (eval $ac_compile) 2>conftest.er1
28796   ac_status=$?
28797   grep -v '^ *+' conftest.er1 >conftest.err
28798   rm -f conftest.er1
28799   cat conftest.err >&5
28800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801   (exit $ac_status); } &&
28802          { ac_try='test -z "$ac_c_werror_flag"
28803                          || test ! -s conftest.err'
28804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805   (eval $ac_try) 2>&5
28806   ac_status=$?
28807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808   (exit $ac_status); }; } &&
28809          { ac_try='test -s conftest.$ac_objext'
28810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811   (eval $ac_try) 2>&5
28812   ac_status=$?
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); }; }; then
28815   ac_header_compiler=yes
28816 else
28817   echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28819
28820 ac_header_compiler=no
28821 fi
28822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28824 echo "${ECHO_T}$ac_header_compiler" >&6
28825
28826 # Is the header present?
28827 echo "$as_me:$LINENO: checking iconv.h presence" >&5
28828 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
28829 cat >conftest.$ac_ext <<_ACEOF
28830 /* confdefs.h.  */
28831 _ACEOF
28832 cat confdefs.h >>conftest.$ac_ext
28833 cat >>conftest.$ac_ext <<_ACEOF
28834 /* end confdefs.h.  */
28835 #include <iconv.h>
28836 _ACEOF
28837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28839   ac_status=$?
28840   grep -v '^ *+' conftest.er1 >conftest.err
28841   rm -f conftest.er1
28842   cat conftest.err >&5
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); } >/dev/null; then
28845   if test -s conftest.err; then
28846     ac_cpp_err=$ac_c_preproc_warn_flag
28847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28848   else
28849     ac_cpp_err=
28850   fi
28851 else
28852   ac_cpp_err=yes
28853 fi
28854 if test -z "$ac_cpp_err"; then
28855   ac_header_preproc=yes
28856 else
28857   echo "$as_me: failed program was:" >&5
28858 sed 's/^/| /' conftest.$ac_ext >&5
28859
28860   ac_header_preproc=no
28861 fi
28862 rm -f conftest.err conftest.$ac_ext
28863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28864 echo "${ECHO_T}$ac_header_preproc" >&6
28865
28866 # So?  What about this header?
28867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28868   yes:no: )
28869     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
28870 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28871     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
28872 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
28873     ac_header_preproc=yes
28874     ;;
28875   no:yes:* )
28876     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
28877 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
28878     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
28879 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
28880     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
28881 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
28882     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
28883 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28884     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
28885 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
28886     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
28887 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
28888     (
28889       cat <<\_ASBOX
28890 ## ----------------------------------------- ##
28891 ## Report this to the package-unused lists.  ##
28892 ## ----------------------------------------- ##
28893 _ASBOX
28894     ) |
28895       sed "s/^/$as_me: WARNING:     /" >&2
28896     ;;
28897 esac
28898 echo "$as_me:$LINENO: checking for iconv.h" >&5
28899 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28900 if test "${ac_cv_header_iconv_h+set}" = set; then
28901   echo $ECHO_N "(cached) $ECHO_C" >&6
28902 else
28903   ac_cv_header_iconv_h=$ac_header_preproc
28904 fi
28905 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28906 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28907
28908 fi
28909 if test $ac_cv_header_iconv_h = yes; then
28910   ac_has_iconv_h=yes
28911 else
28912   ac_has_iconv_h=no
28913 fi
28914
28915
28916     if test "${ac_cv_header_langinfo_h+set}" = set; then
28917   echo "$as_me:$LINENO: checking for langinfo.h" >&5
28918 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28919 if test "${ac_cv_header_langinfo_h+set}" = set; then
28920   echo $ECHO_N "(cached) $ECHO_C" >&6
28921 fi
28922 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28923 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28924 else
28925   # Is the header compilable?
28926 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
28927 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
28928 cat >conftest.$ac_ext <<_ACEOF
28929 /* confdefs.h.  */
28930 _ACEOF
28931 cat confdefs.h >>conftest.$ac_ext
28932 cat >>conftest.$ac_ext <<_ACEOF
28933 /* end confdefs.h.  */
28934 $ac_includes_default
28935 #include <langinfo.h>
28936 _ACEOF
28937 rm -f conftest.$ac_objext
28938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28939   (eval $ac_compile) 2>conftest.er1
28940   ac_status=$?
28941   grep -v '^ *+' conftest.er1 >conftest.err
28942   rm -f conftest.er1
28943   cat conftest.err >&5
28944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945   (exit $ac_status); } &&
28946          { ac_try='test -z "$ac_c_werror_flag"
28947                          || test ! -s conftest.err'
28948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949   (eval $ac_try) 2>&5
28950   ac_status=$?
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); }; } &&
28953          { ac_try='test -s conftest.$ac_objext'
28954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955   (eval $ac_try) 2>&5
28956   ac_status=$?
28957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958   (exit $ac_status); }; }; then
28959   ac_header_compiler=yes
28960 else
28961   echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28963
28964 ac_header_compiler=no
28965 fi
28966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28968 echo "${ECHO_T}$ac_header_compiler" >&6
28969
28970 # Is the header present?
28971 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
28972 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
28973 cat >conftest.$ac_ext <<_ACEOF
28974 /* confdefs.h.  */
28975 _ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h.  */
28979 #include <langinfo.h>
28980 _ACEOF
28981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28983   ac_status=$?
28984   grep -v '^ *+' conftest.er1 >conftest.err
28985   rm -f conftest.er1
28986   cat conftest.err >&5
28987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28988   (exit $ac_status); } >/dev/null; then
28989   if test -s conftest.err; then
28990     ac_cpp_err=$ac_c_preproc_warn_flag
28991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28992   else
28993     ac_cpp_err=
28994   fi
28995 else
28996   ac_cpp_err=yes
28997 fi
28998 if test -z "$ac_cpp_err"; then
28999   ac_header_preproc=yes
29000 else
29001   echo "$as_me: failed program was:" >&5
29002 sed 's/^/| /' conftest.$ac_ext >&5
29003
29004   ac_header_preproc=no
29005 fi
29006 rm -f conftest.err conftest.$ac_ext
29007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29008 echo "${ECHO_T}$ac_header_preproc" >&6
29009
29010 # So?  What about this header?
29011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29012   yes:no: )
29013     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
29014 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29015     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
29016 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
29017     ac_header_preproc=yes
29018     ;;
29019   no:yes:* )
29020     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
29021 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
29022     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
29023 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
29024     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
29025 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
29026     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
29027 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29028     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
29029 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
29030     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
29031 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
29032     (
29033       cat <<\_ASBOX
29034 ## ----------------------------------------- ##
29035 ## Report this to the package-unused lists.  ##
29036 ## ----------------------------------------- ##
29037 _ASBOX
29038     ) |
29039       sed "s/^/$as_me: WARNING:     /" >&2
29040     ;;
29041 esac
29042 echo "$as_me:$LINENO: checking for langinfo.h" >&5
29043 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
29044 if test "${ac_cv_header_langinfo_h+set}" = set; then
29045   echo $ECHO_N "(cached) $ECHO_C" >&6
29046 else
29047   ac_cv_header_langinfo_h=$ac_header_preproc
29048 fi
29049 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
29050 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
29051
29052 fi
29053 if test $ac_cv_header_langinfo_h = yes; then
29054   ac_has_langinfo_h=yes
29055 else
29056   ac_has_langinfo_h=no
29057 fi
29058
29059
29060
29061     # Check for existence of libiconv.a providing XPG2 wchar_t support.
29062     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
29063 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
29064 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
29065   echo $ECHO_N "(cached) $ECHO_C" >&6
29066 else
29067   ac_check_lib_save_LIBS=$LIBS
29068 LIBS="-liconv  $LIBS"
29069 if test x$gcc_no_link = xyes; then
29070   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29071 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29072    { (exit 1); exit 1; }; }
29073 fi
29074 cat >conftest.$ac_ext <<_ACEOF
29075 /* confdefs.h.  */
29076 _ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h.  */
29080
29081 /* Override any gcc2 internal prototype to avoid an error.  */
29082 #ifdef __cplusplus
29083 extern "C"
29084 #endif
29085 /* We use char because int might match the return type of a gcc2
29086    builtin and then its argument prototype would still apply.  */
29087 char iconv ();
29088 int
29089 main ()
29090 {
29091 iconv ();
29092   ;
29093   return 0;
29094 }
29095 _ACEOF
29096 rm -f conftest.$ac_objext conftest$ac_exeext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29098   (eval $ac_link) 2>conftest.er1
29099   ac_status=$?
29100   grep -v '^ *+' conftest.er1 >conftest.err
29101   rm -f conftest.er1
29102   cat conftest.err >&5
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } &&
29105          { ac_try='test -z "$ac_c_werror_flag"
29106                          || test ! -s conftest.err'
29107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108   (eval $ac_try) 2>&5
29109   ac_status=$?
29110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111   (exit $ac_status); }; } &&
29112          { ac_try='test -s conftest$ac_exeext'
29113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114   (eval $ac_try) 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; }; then
29118   ac_cv_lib_iconv_iconv=yes
29119 else
29120   echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29122
29123 ac_cv_lib_iconv_iconv=no
29124 fi
29125 rm -f conftest.err conftest.$ac_objext \
29126       conftest$ac_exeext conftest.$ac_ext
29127 LIBS=$ac_check_lib_save_LIBS
29128 fi
29129 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
29130 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
29131 if test $ac_cv_lib_iconv_iconv = yes; then
29132   libiconv="-liconv"
29133 fi
29134
29135     ac_save_LIBS="$LIBS"
29136     LIBS="$LIBS $libiconv"
29137
29138
29139
29140
29141
29142 for ac_func in iconv_open iconv_close iconv nl_langinfo
29143 do
29144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29145 echo "$as_me:$LINENO: checking for $ac_func" >&5
29146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29147 if eval "test \"\${$as_ac_var+set}\" = set"; then
29148   echo $ECHO_N "(cached) $ECHO_C" >&6
29149 else
29150   if test x$gcc_no_link = xyes; then
29151   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29152 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29153    { (exit 1); exit 1; }; }
29154 fi
29155 cat >conftest.$ac_ext <<_ACEOF
29156 /* confdefs.h.  */
29157 _ACEOF
29158 cat confdefs.h >>conftest.$ac_ext
29159 cat >>conftest.$ac_ext <<_ACEOF
29160 /* end confdefs.h.  */
29161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29163 #define $ac_func innocuous_$ac_func
29164
29165 /* System header to define __stub macros and hopefully few prototypes,
29166     which can conflict with char $ac_func (); below.
29167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29168     <limits.h> exists even on freestanding compilers.  */
29169
29170 #ifdef __STDC__
29171 # include <limits.h>
29172 #else
29173 # include <assert.h>
29174 #endif
29175
29176 #undef $ac_func
29177
29178 /* Override any gcc2 internal prototype to avoid an error.  */
29179 #ifdef __cplusplus
29180 extern "C"
29181 {
29182 #endif
29183 /* We use char because int might match the return type of a gcc2
29184    builtin and then its argument prototype would still apply.  */
29185 char $ac_func ();
29186 /* The GNU C library defines this for functions which it implements
29187     to always fail with ENOSYS.  Some functions are actually named
29188     something starting with __ and the normal name is an alias.  */
29189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29190 choke me
29191 #else
29192 char (*f) () = $ac_func;
29193 #endif
29194 #ifdef __cplusplus
29195 }
29196 #endif
29197
29198 int
29199 main ()
29200 {
29201 return f != $ac_func;
29202   ;
29203   return 0;
29204 }
29205 _ACEOF
29206 rm -f conftest.$ac_objext conftest$ac_exeext
29207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29208   (eval $ac_link) 2>conftest.er1
29209   ac_status=$?
29210   grep -v '^ *+' conftest.er1 >conftest.err
29211   rm -f conftest.er1
29212   cat conftest.err >&5
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); } &&
29215          { ac_try='test -z "$ac_c_werror_flag"
29216                          || test ! -s conftest.err'
29217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218   (eval $ac_try) 2>&5
29219   ac_status=$?
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); }; } &&
29222          { ac_try='test -s conftest$ac_exeext'
29223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224   (eval $ac_try) 2>&5
29225   ac_status=$?
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); }; }; then
29228   eval "$as_ac_var=yes"
29229 else
29230   echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.$ac_ext >&5
29232
29233 eval "$as_ac_var=no"
29234 fi
29235 rm -f conftest.err conftest.$ac_objext \
29236       conftest$ac_exeext conftest.$ac_ext
29237 fi
29238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29240 if test `eval echo '${'$as_ac_var'}'` = yes; then
29241   cat >>confdefs.h <<_ACEOF
29242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29243 _ACEOF
29244  ac_XPG2funcs=yes
29245 else
29246   ac_XPG2funcs=no
29247 fi
29248 done
29249
29250
29251     LIBS="$ac_save_LIBS"
29252
29253     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
29254 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
29255     if test x"$ac_has_iconv_h" = xyes &&
29256        test x"$ac_has_langinfo_h" = xyes &&
29257        test x"$ac_XPG2funcs" = xyes;
29258     then
29259       ac_XPG2_wchar_t=yes
29260     else
29261       ac_XPG2_wchar_t=no
29262     fi
29263     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
29264 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
29265
29266     # At the moment, only enable wchar_t specializations if all the
29267     # above support is present.
29268     if test x"$ac_isoC99_wchar_t" = xyes &&
29269        test x"$ac_XPG2_wchar_t" = xyes;
29270     then
29271       cat >>confdefs.h <<\_ACEOF
29272 #define _GLIBCXX_USE_WCHAR_T 1
29273 _ACEOF
29274
29275       enable_wchar_t=yes
29276     fi
29277   fi
29278   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
29279 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
29280   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
29281 echo "${ECHO_T}$enable_wchar_t" >&6
29282
29283
29284   ac_test_CXXFLAGS="${CXXFLAGS+set}"
29285   ac_save_CXXFLAGS="$CXXFLAGS"
29286   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
29287
29288
29289   echo "$as_me:$LINENO: checking for strtold declaration" >&5
29290 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
29291   if test x${glibcxx_cv_func_strtold_use+set} != xset; then
29292     if test "${glibcxx_cv_func_strtold_use+set}" = set; then
29293   echo $ECHO_N "(cached) $ECHO_C" >&6
29294 else
29295
29296
29297
29298       ac_ext=cc
29299 ac_cpp='$CXXCPP $CPPFLAGS'
29300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29303
29304       cat >conftest.$ac_ext <<_ACEOF
29305 /* confdefs.h.  */
29306 _ACEOF
29307 cat confdefs.h >>conftest.$ac_ext
29308 cat >>conftest.$ac_ext <<_ACEOF
29309 /* end confdefs.h.  */
29310 #include <stdlib.h>
29311 int
29312 main ()
29313 {
29314  strtold(0, 0);
29315   ;
29316   return 0;
29317 }
29318 _ACEOF
29319 rm -f conftest.$ac_objext
29320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29321   (eval $ac_compile) 2>conftest.er1
29322   ac_status=$?
29323   grep -v '^ *+' conftest.er1 >conftest.err
29324   rm -f conftest.er1
29325   cat conftest.err >&5
29326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327   (exit $ac_status); } &&
29328          { ac_try='test -z "$ac_cxx_werror_flag"
29329                          || test ! -s conftest.err'
29330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29331   (eval $ac_try) 2>&5
29332   ac_status=$?
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   (exit $ac_status); }; } &&
29335          { ac_try='test -s conftest.$ac_objext'
29336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29337   (eval $ac_try) 2>&5
29338   ac_status=$?
29339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340   (exit $ac_status); }; }; then
29341   glibcxx_cv_func_strtold_use=yes
29342 else
29343   echo "$as_me: failed program was:" >&5
29344 sed 's/^/| /' conftest.$ac_ext >&5
29345
29346 glibcxx_cv_func_strtold_use=no
29347 fi
29348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29349       ac_ext=c
29350 ac_cpp='$CPP $CPPFLAGS'
29351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29354
29355
29356 fi
29357
29358   fi
29359   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
29360 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
29361   if test x$glibcxx_cv_func_strtold_use = x"yes"; then
29362
29363 for ac_func in strtold
29364 do
29365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29366 echo "$as_me:$LINENO: checking for $ac_func" >&5
29367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29368 if eval "test \"\${$as_ac_var+set}\" = set"; then
29369   echo $ECHO_N "(cached) $ECHO_C" >&6
29370 else
29371   if test x$gcc_no_link = xyes; then
29372   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29374    { (exit 1); exit 1; }; }
29375 fi
29376 cat >conftest.$ac_ext <<_ACEOF
29377 /* confdefs.h.  */
29378 _ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h.  */
29382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29384 #define $ac_func innocuous_$ac_func
29385
29386 /* System header to define __stub macros and hopefully few prototypes,
29387     which can conflict with char $ac_func (); below.
29388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29389     <limits.h> exists even on freestanding compilers.  */
29390
29391 #ifdef __STDC__
29392 # include <limits.h>
29393 #else
29394 # include <assert.h>
29395 #endif
29396
29397 #undef $ac_func
29398
29399 /* Override any gcc2 internal prototype to avoid an error.  */
29400 #ifdef __cplusplus
29401 extern "C"
29402 {
29403 #endif
29404 /* We use char because int might match the return type of a gcc2
29405    builtin and then its argument prototype would still apply.  */
29406 char $ac_func ();
29407 /* The GNU C library defines this for functions which it implements
29408     to always fail with ENOSYS.  Some functions are actually named
29409     something starting with __ and the normal name is an alias.  */
29410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29411 choke me
29412 #else
29413 char (*f) () = $ac_func;
29414 #endif
29415 #ifdef __cplusplus
29416 }
29417 #endif
29418
29419 int
29420 main ()
29421 {
29422 return f != $ac_func;
29423   ;
29424   return 0;
29425 }
29426 _ACEOF
29427 rm -f conftest.$ac_objext conftest$ac_exeext
29428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29429   (eval $ac_link) 2>conftest.er1
29430   ac_status=$?
29431   grep -v '^ *+' conftest.er1 >conftest.err
29432   rm -f conftest.er1
29433   cat conftest.err >&5
29434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435   (exit $ac_status); } &&
29436          { ac_try='test -z "$ac_c_werror_flag"
29437                          || test ! -s conftest.err'
29438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439   (eval $ac_try) 2>&5
29440   ac_status=$?
29441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442   (exit $ac_status); }; } &&
29443          { ac_try='test -s conftest$ac_exeext'
29444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29445   (eval $ac_try) 2>&5
29446   ac_status=$?
29447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448   (exit $ac_status); }; }; then
29449   eval "$as_ac_var=yes"
29450 else
29451   echo "$as_me: failed program was:" >&5
29452 sed 's/^/| /' conftest.$ac_ext >&5
29453
29454 eval "$as_ac_var=no"
29455 fi
29456 rm -f conftest.err conftest.$ac_objext \
29457       conftest$ac_exeext conftest.$ac_ext
29458 fi
29459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29461 if test `eval echo '${'$as_ac_var'}'` = yes; then
29462   cat >>confdefs.h <<_ACEOF
29463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29464 _ACEOF
29465
29466 fi
29467 done
29468
29469   fi
29470
29471
29472   echo "$as_me:$LINENO: checking for strtof declaration" >&5
29473 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
29474   if test x${glibcxx_cv_func_strtof_use+set} != xset; then
29475     if test "${glibcxx_cv_func_strtof_use+set}" = set; then
29476   echo $ECHO_N "(cached) $ECHO_C" >&6
29477 else
29478
29479
29480
29481       ac_ext=cc
29482 ac_cpp='$CXXCPP $CPPFLAGS'
29483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29486
29487       cat >conftest.$ac_ext <<_ACEOF
29488 /* confdefs.h.  */
29489 _ACEOF
29490 cat confdefs.h >>conftest.$ac_ext
29491 cat >>conftest.$ac_ext <<_ACEOF
29492 /* end confdefs.h.  */
29493 #include <stdlib.h>
29494 int
29495 main ()
29496 {
29497  strtof(0, 0);
29498   ;
29499   return 0;
29500 }
29501 _ACEOF
29502 rm -f conftest.$ac_objext
29503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29504   (eval $ac_compile) 2>conftest.er1
29505   ac_status=$?
29506   grep -v '^ *+' conftest.er1 >conftest.err
29507   rm -f conftest.er1
29508   cat conftest.err >&5
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); } &&
29511          { ac_try='test -z "$ac_cxx_werror_flag"
29512                          || test ! -s conftest.err'
29513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514   (eval $ac_try) 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; } &&
29518          { ac_try='test -s conftest.$ac_objext'
29519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520   (eval $ac_try) 2>&5
29521   ac_status=$?
29522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523   (exit $ac_status); }; }; then
29524   glibcxx_cv_func_strtof_use=yes
29525 else
29526   echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29528
29529 glibcxx_cv_func_strtof_use=no
29530 fi
29531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29532       ac_ext=c
29533 ac_cpp='$CPP $CPPFLAGS'
29534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29537
29538
29539 fi
29540
29541   fi
29542   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
29543 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
29544   if test x$glibcxx_cv_func_strtof_use = x"yes"; then
29545
29546 for ac_func in strtof
29547 do
29548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29549 echo "$as_me:$LINENO: checking for $ac_func" >&5
29550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29551 if eval "test \"\${$as_ac_var+set}\" = set"; then
29552   echo $ECHO_N "(cached) $ECHO_C" >&6
29553 else
29554   if test x$gcc_no_link = xyes; then
29555   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29557    { (exit 1); exit 1; }; }
29558 fi
29559 cat >conftest.$ac_ext <<_ACEOF
29560 /* confdefs.h.  */
29561 _ACEOF
29562 cat confdefs.h >>conftest.$ac_ext
29563 cat >>conftest.$ac_ext <<_ACEOF
29564 /* end confdefs.h.  */
29565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29567 #define $ac_func innocuous_$ac_func
29568
29569 /* System header to define __stub macros and hopefully few prototypes,
29570     which can conflict with char $ac_func (); below.
29571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29572     <limits.h> exists even on freestanding compilers.  */
29573
29574 #ifdef __STDC__
29575 # include <limits.h>
29576 #else
29577 # include <assert.h>
29578 #endif
29579
29580 #undef $ac_func
29581
29582 /* Override any gcc2 internal prototype to avoid an error.  */
29583 #ifdef __cplusplus
29584 extern "C"
29585 {
29586 #endif
29587 /* We use char because int might match the return type of a gcc2
29588    builtin and then its argument prototype would still apply.  */
29589 char $ac_func ();
29590 /* The GNU C library defines this for functions which it implements
29591     to always fail with ENOSYS.  Some functions are actually named
29592     something starting with __ and the normal name is an alias.  */
29593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29594 choke me
29595 #else
29596 char (*f) () = $ac_func;
29597 #endif
29598 #ifdef __cplusplus
29599 }
29600 #endif
29601
29602 int
29603 main ()
29604 {
29605 return f != $ac_func;
29606   ;
29607   return 0;
29608 }
29609 _ACEOF
29610 rm -f conftest.$ac_objext conftest$ac_exeext
29611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29612   (eval $ac_link) 2>conftest.er1
29613   ac_status=$?
29614   grep -v '^ *+' conftest.er1 >conftest.err
29615   rm -f conftest.er1
29616   cat conftest.err >&5
29617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618   (exit $ac_status); } &&
29619          { ac_try='test -z "$ac_c_werror_flag"
29620                          || test ! -s conftest.err'
29621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29622   (eval $ac_try) 2>&5
29623   ac_status=$?
29624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625   (exit $ac_status); }; } &&
29626          { ac_try='test -s conftest$ac_exeext'
29627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628   (eval $ac_try) 2>&5
29629   ac_status=$?
29630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631   (exit $ac_status); }; }; then
29632   eval "$as_ac_var=yes"
29633 else
29634   echo "$as_me: failed program was:" >&5
29635 sed 's/^/| /' conftest.$ac_ext >&5
29636
29637 eval "$as_ac_var=no"
29638 fi
29639 rm -f conftest.err conftest.$ac_objext \
29640       conftest$ac_exeext conftest.$ac_ext
29641 fi
29642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29644 if test `eval echo '${'$as_ac_var'}'` = yes; then
29645   cat >>confdefs.h <<_ACEOF
29646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29647 _ACEOF
29648
29649 fi
29650 done
29651
29652   fi
29653
29654
29655   CXXFLAGS="$ac_save_CXXFLAGS"
29656
29657
29658   # For showmanyc_helper().
29659
29660
29661 for ac_header in sys/ioctl.h sys/filio.h
29662 do
29663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29665   echo "$as_me:$LINENO: checking for $ac_header" >&5
29666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29668   echo $ECHO_N "(cached) $ECHO_C" >&6
29669 fi
29670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29672 else
29673   # Is the header compilable?
29674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29676 cat >conftest.$ac_ext <<_ACEOF
29677 /* confdefs.h.  */
29678 _ACEOF
29679 cat confdefs.h >>conftest.$ac_ext
29680 cat >>conftest.$ac_ext <<_ACEOF
29681 /* end confdefs.h.  */
29682 $ac_includes_default
29683 #include <$ac_header>
29684 _ACEOF
29685 rm -f conftest.$ac_objext
29686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29687   (eval $ac_compile) 2>conftest.er1
29688   ac_status=$?
29689   grep -v '^ *+' conftest.er1 >conftest.err
29690   rm -f conftest.er1
29691   cat conftest.err >&5
29692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693   (exit $ac_status); } &&
29694          { ac_try='test -z "$ac_c_werror_flag"
29695                          || test ! -s conftest.err'
29696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697   (eval $ac_try) 2>&5
29698   ac_status=$?
29699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700   (exit $ac_status); }; } &&
29701          { ac_try='test -s conftest.$ac_objext'
29702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703   (eval $ac_try) 2>&5
29704   ac_status=$?
29705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706   (exit $ac_status); }; }; then
29707   ac_header_compiler=yes
29708 else
29709   echo "$as_me: failed program was:" >&5
29710 sed 's/^/| /' conftest.$ac_ext >&5
29711
29712 ac_header_compiler=no
29713 fi
29714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29716 echo "${ECHO_T}$ac_header_compiler" >&6
29717
29718 # Is the header present?
29719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29721 cat >conftest.$ac_ext <<_ACEOF
29722 /* confdefs.h.  */
29723 _ACEOF
29724 cat confdefs.h >>conftest.$ac_ext
29725 cat >>conftest.$ac_ext <<_ACEOF
29726 /* end confdefs.h.  */
29727 #include <$ac_header>
29728 _ACEOF
29729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29731   ac_status=$?
29732   grep -v '^ *+' conftest.er1 >conftest.err
29733   rm -f conftest.er1
29734   cat conftest.err >&5
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); } >/dev/null; then
29737   if test -s conftest.err; then
29738     ac_cpp_err=$ac_c_preproc_warn_flag
29739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29740   else
29741     ac_cpp_err=
29742   fi
29743 else
29744   ac_cpp_err=yes
29745 fi
29746 if test -z "$ac_cpp_err"; then
29747   ac_header_preproc=yes
29748 else
29749   echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29751
29752   ac_header_preproc=no
29753 fi
29754 rm -f conftest.err conftest.$ac_ext
29755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29756 echo "${ECHO_T}$ac_header_preproc" >&6
29757
29758 # So?  What about this header?
29759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29760   yes:no: )
29761     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29765     ac_header_preproc=yes
29766     ;;
29767   no:yes:* )
29768     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29770     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29771 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29772     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29774     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29775 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29778     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29780     (
29781       cat <<\_ASBOX
29782 ## ----------------------------------------- ##
29783 ## Report this to the package-unused lists.  ##
29784 ## ----------------------------------------- ##
29785 _ASBOX
29786     ) |
29787       sed "s/^/$as_me: WARNING:     /" >&2
29788     ;;
29789 esac
29790 echo "$as_me:$LINENO: checking for $ac_header" >&5
29791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29793   echo $ECHO_N "(cached) $ECHO_C" >&6
29794 else
29795   eval "$as_ac_Header=\$ac_header_preproc"
29796 fi
29797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29799
29800 fi
29801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29802   cat >>confdefs.h <<_ACEOF
29803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29804 _ACEOF
29805
29806 fi
29807
29808 done
29809
29810
29811   if test "${glibcxx_cv_POLL+set}" = set; then
29812   echo $ECHO_N "(cached) $ECHO_C" >&6
29813 else
29814
29815     if test x$gcc_no_link = xyes; then
29816   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29818    { (exit 1); exit 1; }; }
29819 fi
29820 cat >conftest.$ac_ext <<_ACEOF
29821 /* confdefs.h.  */
29822 _ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h.  */
29826 #include <poll.h>
29827 int
29828 main ()
29829 {
29830 struct pollfd pfd[1];
29831        pfd[0].events = POLLIN;
29832        poll(pfd, 1, 0);
29833   ;
29834   return 0;
29835 }
29836 _ACEOF
29837 rm -f conftest.$ac_objext conftest$ac_exeext
29838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29839   (eval $ac_link) 2>conftest.er1
29840   ac_status=$?
29841   grep -v '^ *+' conftest.er1 >conftest.err
29842   rm -f conftest.er1
29843   cat conftest.err >&5
29844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845   (exit $ac_status); } &&
29846          { ac_try='test -z "$ac_c_werror_flag"
29847                          || test ! -s conftest.err'
29848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29849   (eval $ac_try) 2>&5
29850   ac_status=$?
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); }; } &&
29853          { ac_try='test -s conftest$ac_exeext'
29854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29855   (eval $ac_try) 2>&5
29856   ac_status=$?
29857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858   (exit $ac_status); }; }; then
29859   glibcxx_cv_POLL=yes
29860 else
29861   echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29863
29864 glibcxx_cv_POLL=no
29865 fi
29866 rm -f conftest.err conftest.$ac_objext \
29867       conftest$ac_exeext conftest.$ac_ext
29868
29869 fi
29870
29871   if test $glibcxx_cv_POLL = yes; then
29872     cat >>confdefs.h <<\_ACEOF
29873 #define HAVE_POLL 1
29874 _ACEOF
29875
29876   fi
29877
29878
29879   if test "${glibcxx_cv_S_ISREG+set}" = set; then
29880   echo $ECHO_N "(cached) $ECHO_C" >&6
29881 else
29882
29883     if test x$gcc_no_link = xyes; then
29884   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29885 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29886    { (exit 1); exit 1; }; }
29887 fi
29888 cat >conftest.$ac_ext <<_ACEOF
29889 /* confdefs.h.  */
29890 _ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h.  */
29894 #include <sys/stat.h>
29895 int
29896 main ()
29897 {
29898 struct stat buffer;
29899        fstat(0, &buffer);
29900        S_ISREG(buffer.st_mode);
29901   ;
29902   return 0;
29903 }
29904 _ACEOF
29905 rm -f conftest.$ac_objext conftest$ac_exeext
29906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29907   (eval $ac_link) 2>conftest.er1
29908   ac_status=$?
29909   grep -v '^ *+' conftest.er1 >conftest.err
29910   rm -f conftest.er1
29911   cat conftest.err >&5
29912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913   (exit $ac_status); } &&
29914          { ac_try='test -z "$ac_c_werror_flag"
29915                          || test ! -s conftest.err'
29916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29917   (eval $ac_try) 2>&5
29918   ac_status=$?
29919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920   (exit $ac_status); }; } &&
29921          { ac_try='test -s conftest$ac_exeext'
29922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923   (eval $ac_try) 2>&5
29924   ac_status=$?
29925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926   (exit $ac_status); }; }; then
29927   glibcxx_cv_S_ISREG=yes
29928 else
29929   echo "$as_me: failed program was:" >&5
29930 sed 's/^/| /' conftest.$ac_ext >&5
29931
29932 glibcxx_cv_S_ISREG=no
29933 fi
29934 rm -f conftest.err conftest.$ac_objext \
29935       conftest$ac_exeext conftest.$ac_ext
29936
29937 fi
29938
29939   if test "${glibcxx_cv_S_IFREG+set}" = set; then
29940   echo $ECHO_N "(cached) $ECHO_C" >&6
29941 else
29942
29943     if test x$gcc_no_link = xyes; then
29944   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29945 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29946    { (exit 1); exit 1; }; }
29947 fi
29948 cat >conftest.$ac_ext <<_ACEOF
29949 /* confdefs.h.  */
29950 _ACEOF
29951 cat confdefs.h >>conftest.$ac_ext
29952 cat >>conftest.$ac_ext <<_ACEOF
29953 /* end confdefs.h.  */
29954 #include <sys/stat.h>
29955 int
29956 main ()
29957 {
29958 struct stat buffer;
29959        fstat(0, &buffer);
29960        S_IFREG & buffer.st_mode;
29961   ;
29962   return 0;
29963 }
29964 _ACEOF
29965 rm -f conftest.$ac_objext conftest$ac_exeext
29966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29967   (eval $ac_link) 2>conftest.er1
29968   ac_status=$?
29969   grep -v '^ *+' conftest.er1 >conftest.err
29970   rm -f conftest.er1
29971   cat conftest.err >&5
29972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973   (exit $ac_status); } &&
29974          { ac_try='test -z "$ac_c_werror_flag"
29975                          || test ! -s conftest.err'
29976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977   (eval $ac_try) 2>&5
29978   ac_status=$?
29979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980   (exit $ac_status); }; } &&
29981          { ac_try='test -s conftest$ac_exeext'
29982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983   (eval $ac_try) 2>&5
29984   ac_status=$?
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); }; }; then
29987   glibcxx_cv_S_IFREG=yes
29988 else
29989   echo "$as_me: failed program was:" >&5
29990 sed 's/^/| /' conftest.$ac_ext >&5
29991
29992 glibcxx_cv_S_IFREG=no
29993 fi
29994 rm -f conftest.err conftest.$ac_objext \
29995       conftest$ac_exeext conftest.$ac_ext
29996
29997 fi
29998
29999   if test $glibcxx_cv_S_ISREG = yes; then
30000     cat >>confdefs.h <<\_ACEOF
30001 #define HAVE_S_ISREG 1
30002 _ACEOF
30003
30004   elif test $glibcxx_cv_S_IFREG = yes; then
30005     cat >>confdefs.h <<\_ACEOF
30006 #define HAVE_S_IFREG 1
30007 _ACEOF
30008
30009   fi
30010
30011
30012   # For xsputn_2().
30013
30014 for ac_header in sys/uio.h
30015 do
30016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30018   echo "$as_me:$LINENO: checking for $ac_header" >&5
30019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30021   echo $ECHO_N "(cached) $ECHO_C" >&6
30022 fi
30023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30025 else
30026   # Is the header compilable?
30027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30029 cat >conftest.$ac_ext <<_ACEOF
30030 /* confdefs.h.  */
30031 _ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h.  */
30035 $ac_includes_default
30036 #include <$ac_header>
30037 _ACEOF
30038 rm -f conftest.$ac_objext
30039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30040   (eval $ac_compile) 2>conftest.er1
30041   ac_status=$?
30042   grep -v '^ *+' conftest.er1 >conftest.err
30043   rm -f conftest.er1
30044   cat conftest.err >&5
30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046   (exit $ac_status); } &&
30047          { ac_try='test -z "$ac_c_werror_flag"
30048                          || test ! -s conftest.err'
30049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050   (eval $ac_try) 2>&5
30051   ac_status=$?
30052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053   (exit $ac_status); }; } &&
30054          { ac_try='test -s conftest.$ac_objext'
30055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056   (eval $ac_try) 2>&5
30057   ac_status=$?
30058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059   (exit $ac_status); }; }; then
30060   ac_header_compiler=yes
30061 else
30062   echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30064
30065 ac_header_compiler=no
30066 fi
30067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30069 echo "${ECHO_T}$ac_header_compiler" >&6
30070
30071 # Is the header present?
30072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30074 cat >conftest.$ac_ext <<_ACEOF
30075 /* confdefs.h.  */
30076 _ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h.  */
30080 #include <$ac_header>
30081 _ACEOF
30082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30084   ac_status=$?
30085   grep -v '^ *+' conftest.er1 >conftest.err
30086   rm -f conftest.er1
30087   cat conftest.err >&5
30088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089   (exit $ac_status); } >/dev/null; then
30090   if test -s conftest.err; then
30091     ac_cpp_err=$ac_c_preproc_warn_flag
30092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30093   else
30094     ac_cpp_err=
30095   fi
30096 else
30097   ac_cpp_err=yes
30098 fi
30099 if test -z "$ac_cpp_err"; then
30100   ac_header_preproc=yes
30101 else
30102   echo "$as_me: failed program was:" >&5
30103 sed 's/^/| /' conftest.$ac_ext >&5
30104
30105   ac_header_preproc=no
30106 fi
30107 rm -f conftest.err conftest.$ac_ext
30108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30109 echo "${ECHO_T}$ac_header_preproc" >&6
30110
30111 # So?  What about this header?
30112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30113   yes:no: )
30114     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30118     ac_header_preproc=yes
30119     ;;
30120   no:yes:* )
30121     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30123     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30124 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30125     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30127     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30128 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30131     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30133     (
30134       cat <<\_ASBOX
30135 ## ----------------------------------------- ##
30136 ## Report this to the package-unused lists.  ##
30137 ## ----------------------------------------- ##
30138 _ASBOX
30139     ) |
30140       sed "s/^/$as_me: WARNING:     /" >&2
30141     ;;
30142 esac
30143 echo "$as_me:$LINENO: checking for $ac_header" >&5
30144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30146   echo $ECHO_N "(cached) $ECHO_C" >&6
30147 else
30148   eval "$as_ac_Header=\$ac_header_preproc"
30149 fi
30150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30152
30153 fi
30154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30155   cat >>confdefs.h <<_ACEOF
30156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30157 _ACEOF
30158
30159 fi
30160
30161 done
30162
30163
30164   if test "${glibcxx_cv_WRITEV+set}" = set; then
30165   echo $ECHO_N "(cached) $ECHO_C" >&6
30166 else
30167
30168     if test x$gcc_no_link = xyes; then
30169   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30171    { (exit 1); exit 1; }; }
30172 fi
30173 cat >conftest.$ac_ext <<_ACEOF
30174 /* confdefs.h.  */
30175 _ACEOF
30176 cat confdefs.h >>conftest.$ac_ext
30177 cat >>conftest.$ac_ext <<_ACEOF
30178 /* end confdefs.h.  */
30179 #include <sys/uio.h>
30180 int
30181 main ()
30182 {
30183 struct iovec iov[2];
30184        writev(0, iov, 0);
30185   ;
30186   return 0;
30187 }
30188 _ACEOF
30189 rm -f conftest.$ac_objext conftest$ac_exeext
30190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30191   (eval $ac_link) 2>conftest.er1
30192   ac_status=$?
30193   grep -v '^ *+' conftest.er1 >conftest.err
30194   rm -f conftest.er1
30195   cat conftest.err >&5
30196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197   (exit $ac_status); } &&
30198          { ac_try='test -z "$ac_c_werror_flag"
30199                          || test ! -s conftest.err'
30200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201   (eval $ac_try) 2>&5
30202   ac_status=$?
30203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204   (exit $ac_status); }; } &&
30205          { ac_try='test -s conftest$ac_exeext'
30206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207   (eval $ac_try) 2>&5
30208   ac_status=$?
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); }; }; then
30211   glibcxx_cv_WRITEV=yes
30212 else
30213   echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30215
30216 glibcxx_cv_WRITEV=no
30217 fi
30218 rm -f conftest.err conftest.$ac_objext \
30219       conftest$ac_exeext conftest.$ac_ext
30220
30221 fi
30222
30223   if test $glibcxx_cv_WRITEV = yes; then
30224     cat >>confdefs.h <<\_ACEOF
30225 #define HAVE_WRITEV 1
30226 _ACEOF
30227
30228   fi
30229
30230
30231   # For the __streamoff_base_type typedef.
30232
30233   if test "${glibcxx_cv_INT64_T+set}" = set; then
30234   echo $ECHO_N "(cached) $ECHO_C" >&6
30235 else
30236
30237     cat >conftest.$ac_ext <<_ACEOF
30238 /* confdefs.h.  */
30239 _ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h.  */
30243 #include <stdint.h>
30244 int
30245 main ()
30246 {
30247 int64_t var;
30248   ;
30249   return 0;
30250 }
30251 _ACEOF
30252 rm -f conftest.$ac_objext
30253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30254   (eval $ac_compile) 2>conftest.er1
30255   ac_status=$?
30256   grep -v '^ *+' conftest.er1 >conftest.err
30257   rm -f conftest.er1
30258   cat conftest.err >&5
30259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260   (exit $ac_status); } &&
30261          { ac_try='test -z "$ac_c_werror_flag"
30262                          || test ! -s conftest.err'
30263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30264   (eval $ac_try) 2>&5
30265   ac_status=$?
30266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267   (exit $ac_status); }; } &&
30268          { ac_try='test -s conftest.$ac_objext'
30269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30270   (eval $ac_try) 2>&5
30271   ac_status=$?
30272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273   (exit $ac_status); }; }; then
30274   glibcxx_cv_INT64_T=yes
30275 else
30276   echo "$as_me: failed program was:" >&5
30277 sed 's/^/| /' conftest.$ac_ext >&5
30278
30279 glibcxx_cv_INT64_T=no
30280 fi
30281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30282
30283 fi
30284
30285   if test $glibcxx_cv_INT64_T = yes; then
30286     cat >>confdefs.h <<\_ACEOF
30287 #define HAVE_INT64_T 1
30288 _ACEOF
30289
30290   fi
30291
30292
30293   # For LFS support.
30294
30295
30296
30297   ac_ext=cc
30298 ac_cpp='$CXXCPP $CPPFLAGS'
30299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30302
30303   ac_save_CXXFLAGS="$CXXFLAGS"
30304   CXXFLAGS="$CXXFLAGS -fno-exceptions"
30305   if test "${glibcxx_cv_LFS+set}" = set; then
30306   echo $ECHO_N "(cached) $ECHO_C" >&6
30307 else
30308
30309     if test x$gcc_no_link = xyes; then
30310   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30312    { (exit 1); exit 1; }; }
30313 fi
30314 cat >conftest.$ac_ext <<_ACEOF
30315 /* confdefs.h.  */
30316 _ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h.  */
30320 #include <unistd.h>
30321        #include <stdio.h>
30322
30323 int
30324 main ()
30325 {
30326 FILE* fp;
30327        fopen64("t", "w");
30328        fseeko64(fp, 0, SEEK_CUR);
30329        ftello64(fp);
30330        lseek64(1, 0, SEEK_CUR);
30331   ;
30332   return 0;
30333 }
30334 _ACEOF
30335 rm -f conftest.$ac_objext conftest$ac_exeext
30336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30337   (eval $ac_link) 2>conftest.er1
30338   ac_status=$?
30339   grep -v '^ *+' conftest.er1 >conftest.err
30340   rm -f conftest.er1
30341   cat conftest.err >&5
30342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343   (exit $ac_status); } &&
30344          { ac_try='test -z "$ac_cxx_werror_flag"
30345                          || test ! -s conftest.err'
30346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347   (eval $ac_try) 2>&5
30348   ac_status=$?
30349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350   (exit $ac_status); }; } &&
30351          { ac_try='test -s conftest$ac_exeext'
30352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30353   (eval $ac_try) 2>&5
30354   ac_status=$?
30355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356   (exit $ac_status); }; }; then
30357   glibcxx_cv_LFS=yes
30358 else
30359   echo "$as_me: failed program was:" >&5
30360 sed 's/^/| /' conftest.$ac_ext >&5
30361
30362 glibcxx_cv_LFS=no
30363 fi
30364 rm -f conftest.err conftest.$ac_objext \
30365       conftest$ac_exeext conftest.$ac_ext
30366
30367 fi
30368
30369   if test $glibcxx_cv_LFS = yes; then
30370     cat >>confdefs.h <<\_ACEOF
30371 #define _GLIBCXX_USE_LFS 1
30372 _ACEOF
30373
30374   fi
30375   CXXFLAGS="$ac_save_CXXFLAGS"
30376   ac_ext=c
30377 ac_cpp='$CPP $CPPFLAGS'
30378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30381
30382
30383
30384
30385   if test "${ac_cv_header_locale_h+set}" = set; then
30386   echo "$as_me:$LINENO: checking for locale.h" >&5
30387 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30388 if test "${ac_cv_header_locale_h+set}" = set; then
30389   echo $ECHO_N "(cached) $ECHO_C" >&6
30390 fi
30391 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30392 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30393 else
30394   # Is the header compilable?
30395 echo "$as_me:$LINENO: checking locale.h usability" >&5
30396 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30397 cat >conftest.$ac_ext <<_ACEOF
30398 /* confdefs.h.  */
30399 _ACEOF
30400 cat confdefs.h >>conftest.$ac_ext
30401 cat >>conftest.$ac_ext <<_ACEOF
30402 /* end confdefs.h.  */
30403 $ac_includes_default
30404 #include <locale.h>
30405 _ACEOF
30406 rm -f conftest.$ac_objext
30407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30408   (eval $ac_compile) 2>conftest.er1
30409   ac_status=$?
30410   grep -v '^ *+' conftest.er1 >conftest.err
30411   rm -f conftest.er1
30412   cat conftest.err >&5
30413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414   (exit $ac_status); } &&
30415          { ac_try='test -z "$ac_c_werror_flag"
30416                          || test ! -s conftest.err'
30417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30418   (eval $ac_try) 2>&5
30419   ac_status=$?
30420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421   (exit $ac_status); }; } &&
30422          { ac_try='test -s conftest.$ac_objext'
30423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30424   (eval $ac_try) 2>&5
30425   ac_status=$?
30426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427   (exit $ac_status); }; }; then
30428   ac_header_compiler=yes
30429 else
30430   echo "$as_me: failed program was:" >&5
30431 sed 's/^/| /' conftest.$ac_ext >&5
30432
30433 ac_header_compiler=no
30434 fi
30435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30437 echo "${ECHO_T}$ac_header_compiler" >&6
30438
30439 # Is the header present?
30440 echo "$as_me:$LINENO: checking locale.h presence" >&5
30441 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30442 cat >conftest.$ac_ext <<_ACEOF
30443 /* confdefs.h.  */
30444 _ACEOF
30445 cat confdefs.h >>conftest.$ac_ext
30446 cat >>conftest.$ac_ext <<_ACEOF
30447 /* end confdefs.h.  */
30448 #include <locale.h>
30449 _ACEOF
30450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30452   ac_status=$?
30453   grep -v '^ *+' conftest.er1 >conftest.err
30454   rm -f conftest.er1
30455   cat conftest.err >&5
30456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457   (exit $ac_status); } >/dev/null; then
30458   if test -s conftest.err; then
30459     ac_cpp_err=$ac_c_preproc_warn_flag
30460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30461   else
30462     ac_cpp_err=
30463   fi
30464 else
30465   ac_cpp_err=yes
30466 fi
30467 if test -z "$ac_cpp_err"; then
30468   ac_header_preproc=yes
30469 else
30470   echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.$ac_ext >&5
30472
30473   ac_header_preproc=no
30474 fi
30475 rm -f conftest.err conftest.$ac_ext
30476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30477 echo "${ECHO_T}$ac_header_preproc" >&6
30478
30479 # So?  What about this header?
30480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30481   yes:no: )
30482     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
30483 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30484     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
30485 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
30486     ac_header_preproc=yes
30487     ;;
30488   no:yes:* )
30489     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
30490 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
30491     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
30492 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
30493     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
30494 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
30495     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
30496 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30497     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
30498 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
30499     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
30500 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
30501     (
30502       cat <<\_ASBOX
30503 ## ----------------------------------------- ##
30504 ## Report this to the package-unused lists.  ##
30505 ## ----------------------------------------- ##
30506 _ASBOX
30507     ) |
30508       sed "s/^/$as_me: WARNING:     /" >&2
30509     ;;
30510 esac
30511 echo "$as_me:$LINENO: checking for locale.h" >&5
30512 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30513 if test "${ac_cv_header_locale_h+set}" = set; then
30514   echo $ECHO_N "(cached) $ECHO_C" >&6
30515 else
30516   ac_cv_header_locale_h=$ac_header_preproc
30517 fi
30518 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30519 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30520
30521 fi
30522 if test $ac_cv_header_locale_h = yes; then
30523
30524     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
30525 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
30526 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
30527   echo $ECHO_N "(cached) $ECHO_C" >&6
30528 else
30529   if test x$gcc_no_link = xyes; then
30530   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30531 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30532    { (exit 1); exit 1; }; }
30533 fi
30534 cat >conftest.$ac_ext <<_ACEOF
30535 /* confdefs.h.  */
30536 _ACEOF
30537 cat confdefs.h >>conftest.$ac_ext
30538 cat >>conftest.$ac_ext <<_ACEOF
30539 /* end confdefs.h.  */
30540 #include <locale.h>
30541 int
30542 main ()
30543 {
30544 return LC_MESSAGES
30545   ;
30546   return 0;
30547 }
30548 _ACEOF
30549 rm -f conftest.$ac_objext conftest$ac_exeext
30550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30551   (eval $ac_link) 2>conftest.er1
30552   ac_status=$?
30553   grep -v '^ *+' conftest.er1 >conftest.err
30554   rm -f conftest.er1
30555   cat conftest.err >&5
30556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557   (exit $ac_status); } &&
30558          { ac_try='test -z "$ac_c_werror_flag"
30559                          || test ! -s conftest.err'
30560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30561   (eval $ac_try) 2>&5
30562   ac_status=$?
30563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564   (exit $ac_status); }; } &&
30565          { ac_try='test -s conftest$ac_exeext'
30566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567   (eval $ac_try) 2>&5
30568   ac_status=$?
30569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570   (exit $ac_status); }; }; then
30571   ac_cv_val_LC_MESSAGES=yes
30572 else
30573   echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30575
30576 ac_cv_val_LC_MESSAGES=no
30577 fi
30578 rm -f conftest.err conftest.$ac_objext \
30579       conftest$ac_exeext conftest.$ac_ext
30580 fi
30581 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
30582 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
30583     if test $ac_cv_val_LC_MESSAGES = yes; then
30584       cat >>confdefs.h <<\_ACEOF
30585 #define HAVE_LC_MESSAGES 1
30586 _ACEOF
30587
30588     fi
30589
30590 fi
30591
30592
30593
30594
30595   cat >conftest.$ac_ext <<_ACEOF
30596 /* confdefs.h.  */
30597 _ACEOF
30598 cat confdefs.h >>conftest.$ac_ext
30599 cat >>conftest.$ac_ext <<_ACEOF
30600 /* end confdefs.h.  */
30601 #include <setjmp.h>
30602 int
30603 main ()
30604 {
30605 sigjmp_buf env;
30606      while (! sigsetjmp (env, 1))
30607        siglongjmp (env, 1);
30608
30609   ;
30610   return 0;
30611 }
30612 _ACEOF
30613 rm -f conftest.$ac_objext
30614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30615   (eval $ac_compile) 2>conftest.er1
30616   ac_status=$?
30617   grep -v '^ *+' conftest.er1 >conftest.err
30618   rm -f conftest.er1
30619   cat conftest.err >&5
30620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621   (exit $ac_status); } &&
30622          { ac_try='test -z "$ac_c_werror_flag"
30623                          || test ! -s conftest.err'
30624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30625   (eval $ac_try) 2>&5
30626   ac_status=$?
30627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628   (exit $ac_status); }; } &&
30629          { ac_try='test -s conftest.$ac_objext'
30630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631   (eval $ac_try) 2>&5
30632   ac_status=$?
30633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634   (exit $ac_status); }; }; then
30635
30636 cat >>confdefs.h <<\_ACEOF
30637 #define HAVE_SIGSETJMP 1
30638 _ACEOF
30639
30640 else
30641   echo "$as_me: failed program was:" >&5
30642 sed 's/^/| /' conftest.$ac_ext >&5
30643
30644 fi
30645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30646
30647   if test x$gcc_no_link = xyes; then
30648   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30649     ac_cv_func_mmap_fixed_mapped=no
30650   fi
30651 fi
30652 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30653
30654
30655 for ac_header in stdlib.h unistd.h
30656 do
30657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30659   echo "$as_me:$LINENO: checking for $ac_header" >&5
30660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30662   echo $ECHO_N "(cached) $ECHO_C" >&6
30663 fi
30664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30666 else
30667   # Is the header compilable?
30668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30670 cat >conftest.$ac_ext <<_ACEOF
30671 /* confdefs.h.  */
30672 _ACEOF
30673 cat confdefs.h >>conftest.$ac_ext
30674 cat >>conftest.$ac_ext <<_ACEOF
30675 /* end confdefs.h.  */
30676 $ac_includes_default
30677 #include <$ac_header>
30678 _ACEOF
30679 rm -f conftest.$ac_objext
30680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30681   (eval $ac_compile) 2>conftest.er1
30682   ac_status=$?
30683   grep -v '^ *+' conftest.er1 >conftest.err
30684   rm -f conftest.er1
30685   cat conftest.err >&5
30686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687   (exit $ac_status); } &&
30688          { ac_try='test -z "$ac_c_werror_flag"
30689                          || test ! -s conftest.err'
30690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30691   (eval $ac_try) 2>&5
30692   ac_status=$?
30693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694   (exit $ac_status); }; } &&
30695          { ac_try='test -s conftest.$ac_objext'
30696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30697   (eval $ac_try) 2>&5
30698   ac_status=$?
30699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700   (exit $ac_status); }; }; then
30701   ac_header_compiler=yes
30702 else
30703   echo "$as_me: failed program was:" >&5
30704 sed 's/^/| /' conftest.$ac_ext >&5
30705
30706 ac_header_compiler=no
30707 fi
30708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30710 echo "${ECHO_T}$ac_header_compiler" >&6
30711
30712 # Is the header present?
30713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30715 cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h.  */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h.  */
30721 #include <$ac_header>
30722 _ACEOF
30723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30725   ac_status=$?
30726   grep -v '^ *+' conftest.er1 >conftest.err
30727   rm -f conftest.er1
30728   cat conftest.err >&5
30729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); } >/dev/null; then
30731   if test -s conftest.err; then
30732     ac_cpp_err=$ac_c_preproc_warn_flag
30733     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30734   else
30735     ac_cpp_err=
30736   fi
30737 else
30738   ac_cpp_err=yes
30739 fi
30740 if test -z "$ac_cpp_err"; then
30741   ac_header_preproc=yes
30742 else
30743   echo "$as_me: failed program was:" >&5
30744 sed 's/^/| /' conftest.$ac_ext >&5
30745
30746   ac_header_preproc=no
30747 fi
30748 rm -f conftest.err conftest.$ac_ext
30749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30750 echo "${ECHO_T}$ac_header_preproc" >&6
30751
30752 # So?  What about this header?
30753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30754   yes:no: )
30755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30759     ac_header_preproc=yes
30760     ;;
30761   no:yes:* )
30762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30774     (
30775       cat <<\_ASBOX
30776 ## ----------------------------------------- ##
30777 ## Report this to the package-unused lists.  ##
30778 ## ----------------------------------------- ##
30779 _ASBOX
30780     ) |
30781       sed "s/^/$as_me: WARNING:     /" >&2
30782     ;;
30783 esac
30784 echo "$as_me:$LINENO: checking for $ac_header" >&5
30785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30787   echo $ECHO_N "(cached) $ECHO_C" >&6
30788 else
30789   eval "$as_ac_Header=\$ac_header_preproc"
30790 fi
30791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30793
30794 fi
30795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30796   cat >>confdefs.h <<_ACEOF
30797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30798 _ACEOF
30799
30800 fi
30801
30802 done
30803
30804
30805 for ac_func in getpagesize
30806 do
30807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30808 echo "$as_me:$LINENO: checking for $ac_func" >&5
30809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30810 if eval "test \"\${$as_ac_var+set}\" = set"; then
30811   echo $ECHO_N "(cached) $ECHO_C" >&6
30812 else
30813   if test x$gcc_no_link = xyes; then
30814   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30815 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30816    { (exit 1); exit 1; }; }
30817 fi
30818 cat >conftest.$ac_ext <<_ACEOF
30819 /* confdefs.h.  */
30820 _ACEOF
30821 cat confdefs.h >>conftest.$ac_ext
30822 cat >>conftest.$ac_ext <<_ACEOF
30823 /* end confdefs.h.  */
30824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30826 #define $ac_func innocuous_$ac_func
30827
30828 /* System header to define __stub macros and hopefully few prototypes,
30829     which can conflict with char $ac_func (); below.
30830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30831     <limits.h> exists even on freestanding compilers.  */
30832
30833 #ifdef __STDC__
30834 # include <limits.h>
30835 #else
30836 # include <assert.h>
30837 #endif
30838
30839 #undef $ac_func
30840
30841 /* Override any gcc2 internal prototype to avoid an error.  */
30842 #ifdef __cplusplus
30843 extern "C"
30844 {
30845 #endif
30846 /* We use char because int might match the return type of a gcc2
30847    builtin and then its argument prototype would still apply.  */
30848 char $ac_func ();
30849 /* The GNU C library defines this for functions which it implements
30850     to always fail with ENOSYS.  Some functions are actually named
30851     something starting with __ and the normal name is an alias.  */
30852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30853 choke me
30854 #else
30855 char (*f) () = $ac_func;
30856 #endif
30857 #ifdef __cplusplus
30858 }
30859 #endif
30860
30861 int
30862 main ()
30863 {
30864 return f != $ac_func;
30865   ;
30866   return 0;
30867 }
30868 _ACEOF
30869 rm -f conftest.$ac_objext conftest$ac_exeext
30870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30871   (eval $ac_link) 2>conftest.er1
30872   ac_status=$?
30873   grep -v '^ *+' conftest.er1 >conftest.err
30874   rm -f conftest.er1
30875   cat conftest.err >&5
30876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877   (exit $ac_status); } &&
30878          { ac_try='test -z "$ac_c_werror_flag"
30879                          || test ! -s conftest.err'
30880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30881   (eval $ac_try) 2>&5
30882   ac_status=$?
30883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884   (exit $ac_status); }; } &&
30885          { ac_try='test -s conftest$ac_exeext'
30886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30887   (eval $ac_try) 2>&5
30888   ac_status=$?
30889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890   (exit $ac_status); }; }; then
30891   eval "$as_ac_var=yes"
30892 else
30893   echo "$as_me: failed program was:" >&5
30894 sed 's/^/| /' conftest.$ac_ext >&5
30895
30896 eval "$as_ac_var=no"
30897 fi
30898 rm -f conftest.err conftest.$ac_objext \
30899       conftest$ac_exeext conftest.$ac_ext
30900 fi
30901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30903 if test `eval echo '${'$as_ac_var'}'` = yes; then
30904   cat >>confdefs.h <<_ACEOF
30905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30906 _ACEOF
30907
30908 fi
30909 done
30910
30911 echo "$as_me:$LINENO: checking for working mmap" >&5
30912 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30913 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30914   echo $ECHO_N "(cached) $ECHO_C" >&6
30915 else
30916   if test "$cross_compiling" = yes; then
30917   ac_cv_func_mmap_fixed_mapped=no
30918 else
30919   cat >conftest.$ac_ext <<_ACEOF
30920 /* confdefs.h.  */
30921 _ACEOF
30922 cat confdefs.h >>conftest.$ac_ext
30923 cat >>conftest.$ac_ext <<_ACEOF
30924 /* end confdefs.h.  */
30925 $ac_includes_default
30926 /* malloc might have been renamed as rpl_malloc. */
30927 #undef malloc
30928
30929 /* Thanks to Mike Haertel and Jim Avera for this test.
30930    Here is a matrix of mmap possibilities:
30931         mmap private not fixed
30932         mmap private fixed at somewhere currently unmapped
30933         mmap private fixed at somewhere already mapped
30934         mmap shared not fixed
30935         mmap shared fixed at somewhere currently unmapped
30936         mmap shared fixed at somewhere already mapped
30937    For private mappings, we should verify that changes cannot be read()
30938    back from the file, nor mmap's back from the file at a different
30939    address.  (There have been systems where private was not correctly
30940    implemented like the infamous i386 svr4.0, and systems where the
30941    VM page cache was not coherent with the file system buffer cache
30942    like early versions of FreeBSD and possibly contemporary NetBSD.)
30943    For shared mappings, we should conversely verify that changes get
30944    propagated back to all the places they're supposed to be.
30945
30946    Grep wants private fixed already mapped.
30947    The main things grep needs to know about mmap are:
30948    * does it exist and is it safe to write into the mmap'd area
30949    * how to use it (BSD variants)  */
30950
30951 #include <fcntl.h>
30952 #include <sys/mman.h>
30953
30954 #if !STDC_HEADERS && !HAVE_STDLIB_H
30955 char *malloc ();
30956 #endif
30957
30958 /* This mess was copied from the GNU getpagesize.h.  */
30959 #if !HAVE_GETPAGESIZE
30960 /* Assume that all systems that can run configure have sys/param.h.  */
30961 # if !HAVE_SYS_PARAM_H
30962 #  define HAVE_SYS_PARAM_H 1
30963 # endif
30964
30965 # ifdef _SC_PAGESIZE
30966 #  define getpagesize() sysconf(_SC_PAGESIZE)
30967 # else /* no _SC_PAGESIZE */
30968 #  if HAVE_SYS_PARAM_H
30969 #   include <sys/param.h>
30970 #   ifdef EXEC_PAGESIZE
30971 #    define getpagesize() EXEC_PAGESIZE
30972 #   else /* no EXEC_PAGESIZE */
30973 #    ifdef NBPG
30974 #     define getpagesize() NBPG * CLSIZE
30975 #     ifndef CLSIZE
30976 #      define CLSIZE 1
30977 #     endif /* no CLSIZE */
30978 #    else /* no NBPG */
30979 #     ifdef NBPC
30980 #      define getpagesize() NBPC
30981 #     else /* no NBPC */
30982 #      ifdef PAGESIZE
30983 #       define getpagesize() PAGESIZE
30984 #      endif /* PAGESIZE */
30985 #     endif /* no NBPC */
30986 #    endif /* no NBPG */
30987 #   endif /* no EXEC_PAGESIZE */
30988 #  else /* no HAVE_SYS_PARAM_H */
30989 #   define getpagesize() 8192   /* punt totally */
30990 #  endif /* no HAVE_SYS_PARAM_H */
30991 # endif /* no _SC_PAGESIZE */
30992
30993 #endif /* no HAVE_GETPAGESIZE */
30994
30995 int
30996 main ()
30997 {
30998   char *data, *data2, *data3;
30999   int i, pagesize;
31000   int fd;
31001
31002   pagesize = getpagesize ();
31003
31004   /* First, make a file with some known garbage in it. */
31005   data = (char *) malloc (pagesize);
31006   if (!data)
31007     exit (1);
31008   for (i = 0; i < pagesize; ++i)
31009     *(data + i) = rand ();
31010   umask (0);
31011   fd = creat ("conftest.mmap", 0600);
31012   if (fd < 0)
31013     exit (1);
31014   if (write (fd, data, pagesize) != pagesize)
31015     exit (1);
31016   close (fd);
31017
31018   /* Next, try to mmap the file at a fixed address which already has
31019      something else allocated at it.  If we can, also make sure that
31020      we see the same garbage.  */
31021   fd = open ("conftest.mmap", O_RDWR);
31022   if (fd < 0)
31023     exit (1);
31024   data2 = (char *) malloc (2 * pagesize);
31025   if (!data2)
31026     exit (1);
31027   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
31028   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31029                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
31030     exit (1);
31031   for (i = 0; i < pagesize; ++i)
31032     if (*(data + i) != *(data2 + i))
31033       exit (1);
31034
31035   /* Finally, make sure that changes to the mapped area do not
31036      percolate back to the file as seen by read().  (This is a bug on
31037      some variants of i386 svr4.0.)  */
31038   for (i = 0; i < pagesize; ++i)
31039     *(data2 + i) = *(data2 + i) + 1;
31040   data3 = (char *) malloc (pagesize);
31041   if (!data3)
31042     exit (1);
31043   if (read (fd, data3, pagesize) != pagesize)
31044     exit (1);
31045   for (i = 0; i < pagesize; ++i)
31046     if (*(data + i) != *(data3 + i))
31047       exit (1);
31048   close (fd);
31049   exit (0);
31050 }
31051 _ACEOF
31052 rm -f conftest$ac_exeext
31053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31054   (eval $ac_link) 2>&5
31055   ac_status=$?
31056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31059   (eval $ac_try) 2>&5
31060   ac_status=$?
31061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062   (exit $ac_status); }; }; then
31063   ac_cv_func_mmap_fixed_mapped=yes
31064 else
31065   echo "$as_me: program exited with status $ac_status" >&5
31066 echo "$as_me: failed program was:" >&5
31067 sed 's/^/| /' conftest.$ac_ext >&5
31068
31069 ( exit $ac_status )
31070 ac_cv_func_mmap_fixed_mapped=no
31071 fi
31072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31073 fi
31074 fi
31075 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31076 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31077 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31078
31079 cat >>confdefs.h <<\_ACEOF
31080 #define HAVE_MMAP 1
31081 _ACEOF
31082
31083 fi
31084 rm -f conftest.mmap
31085
31086 fi
31087
31088 else
31089
31090   # This lets us hard-code the functionality we know we'll have in the cross
31091   # target environment.  "Let" is a sugar-coated word placed on an especially
31092   # dull and tedious hack, actually.
31093   #
31094   # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
31095   # that involve linking, can't be used:
31096   #    "cannot open sim-crt0.o"
31097   #    "cannot open crt0.o"
31098   # etc.  All this is because there currently exists no unified, consistent
31099   # way for top level CC information to be passed down to target directories:
31100   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
31101   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
31102   # crosses can be removed.
31103
31104   # If Canadian cross, then don't pick up tools from the build directory.
31105   # Used only in GLIBCXX_EXPORT_INCLUDES.
31106   if test -n "$with_cross_host" &&
31107      test x"$build_alias" != x"$with_cross_host" &&
31108      test x"$build" != x"$target";
31109   then
31110     CANADIAN=yes
31111   else
31112     CANADIAN=no
31113   fi
31114
31115   # Construct crosses by hand, eliminating bits that need ld...
31116   # GLIBCXX_CHECK_COMPILER_FEATURES
31117   # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
31118   # GLIBCXX_CHECK_MATH_SUPPORT
31119
31120   # First, test for "known" system libraries.  We may be using newlib even
31121   # on a hosted environment.
31122   if test "x${with_newlib}" = "xyes"; then
31123     os_include_dir="os/newlib"
31124     cat >>confdefs.h <<\_ACEOF
31125 #define HAVE_HYPOT 1
31126 _ACEOF
31127
31128
31129     # GLIBCXX_CHECK_STDLIB_SUPPORT
31130     cat >>confdefs.h <<\_ACEOF
31131 #define HAVE_STRTOF 1
31132 _ACEOF
31133
31134     cat >>confdefs.h <<\_ACEOF
31135 #define HAVE_STRTOLD 1
31136 _ACEOF
31137
31138     # AC_FUNC_MMAP
31139     cat >>confdefs.h <<\_ACEOF
31140 #define HAVE_MMAP 1
31141 _ACEOF
31142
31143
31144     cat >>confdefs.h <<\_ACEOF
31145 #define HAVE_ACOSF 1
31146 _ACEOF
31147
31148     cat >>confdefs.h <<\_ACEOF
31149 #define HAVE_ASINF 1
31150 _ACEOF
31151
31152     cat >>confdefs.h <<\_ACEOF
31153 #define HAVE_ATAN2F 1
31154 _ACEOF
31155
31156     cat >>confdefs.h <<\_ACEOF
31157 #define HAVE_ATANF 1
31158 _ACEOF
31159
31160     cat >>confdefs.h <<\_ACEOF
31161 #define HAVE_CEILF 1
31162 _ACEOF
31163
31164     cat >>confdefs.h <<\_ACEOF
31165 #define HAVE_COPYSIGN 1
31166 _ACEOF
31167
31168     cat >>confdefs.h <<\_ACEOF
31169 #define HAVE_COPYSIGNF 1
31170 _ACEOF
31171
31172     cat >>confdefs.h <<\_ACEOF
31173 #define HAVE_COSF 1
31174 _ACEOF
31175
31176     cat >>confdefs.h <<\_ACEOF
31177 #define HAVE_COSHF 1
31178 _ACEOF
31179
31180     cat >>confdefs.h <<\_ACEOF
31181 #define HAVE_EXPF 1
31182 _ACEOF
31183
31184     cat >>confdefs.h <<\_ACEOF
31185 #define HAVE_FABSF 1
31186 _ACEOF
31187
31188     cat >>confdefs.h <<\_ACEOF
31189 #define HAVE_FLOORF 1
31190 _ACEOF
31191
31192     cat >>confdefs.h <<\_ACEOF
31193 #define HAVE_FMODF 1
31194 _ACEOF
31195
31196     cat >>confdefs.h <<\_ACEOF
31197 #define HAVE_FREXPF 1
31198 _ACEOF
31199
31200     cat >>confdefs.h <<\_ACEOF
31201 #define HAVE_LDEXPF 1
31202 _ACEOF
31203
31204     cat >>confdefs.h <<\_ACEOF
31205 #define HAVE_LOG10F 1
31206 _ACEOF
31207
31208     cat >>confdefs.h <<\_ACEOF
31209 #define HAVE_LOGF 1
31210 _ACEOF
31211
31212     cat >>confdefs.h <<\_ACEOF
31213 #define HAVE_MODFF 1
31214 _ACEOF
31215
31216     cat >>confdefs.h <<\_ACEOF
31217 #define HAVE_POWF 1
31218 _ACEOF
31219
31220     cat >>confdefs.h <<\_ACEOF
31221 #define HAVE_SINF 1
31222 _ACEOF
31223
31224     cat >>confdefs.h <<\_ACEOF
31225 #define HAVE_SINHF 1
31226 _ACEOF
31227
31228     cat >>confdefs.h <<\_ACEOF
31229 #define HAVE_SQRTF 1
31230 _ACEOF
31231
31232     cat >>confdefs.h <<\_ACEOF
31233 #define HAVE_TANF 1
31234 _ACEOF
31235
31236     cat >>confdefs.h <<\_ACEOF
31237 #define HAVE_TANHF 1
31238 _ACEOF
31239
31240
31241     cat >>confdefs.h <<\_ACEOF
31242 #define HAVE_S_ISREG 1
31243 _ACEOF
31244
31245     cat >>confdefs.h <<\_ACEOF
31246 #define HAVE_S_IFREG 1
31247 _ACEOF
31248
31249   else
31250
31251 # Base decisions on target environment.
31252 case "${host}" in
31253   *-darwin*)
31254     # Darwin versions vary, but the linker should work in a cross environment,
31255     # so we just check for all the features here.
31256     # Check for available headers.
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
31271     machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
31272     sys/types.h
31273 do
31274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31276   echo "$as_me:$LINENO: checking for $ac_header" >&5
31277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31279   echo $ECHO_N "(cached) $ECHO_C" >&6
31280 fi
31281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31283 else
31284   # Is the header compilable?
31285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31287 cat >conftest.$ac_ext <<_ACEOF
31288 /* confdefs.h.  */
31289 _ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h.  */
31293 $ac_includes_default
31294 #include <$ac_header>
31295 _ACEOF
31296 rm -f conftest.$ac_objext
31297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31298   (eval $ac_compile) 2>conftest.er1
31299   ac_status=$?
31300   grep -v '^ *+' conftest.er1 >conftest.err
31301   rm -f conftest.er1
31302   cat conftest.err >&5
31303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304   (exit $ac_status); } &&
31305          { ac_try='test -z "$ac_c_werror_flag"
31306                          || test ! -s conftest.err'
31307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308   (eval $ac_try) 2>&5
31309   ac_status=$?
31310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311   (exit $ac_status); }; } &&
31312          { ac_try='test -s conftest.$ac_objext'
31313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314   (eval $ac_try) 2>&5
31315   ac_status=$?
31316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317   (exit $ac_status); }; }; then
31318   ac_header_compiler=yes
31319 else
31320   echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31322
31323 ac_header_compiler=no
31324 fi
31325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31327 echo "${ECHO_T}$ac_header_compiler" >&6
31328
31329 # Is the header present?
31330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31332 cat >conftest.$ac_ext <<_ACEOF
31333 /* confdefs.h.  */
31334 _ACEOF
31335 cat confdefs.h >>conftest.$ac_ext
31336 cat >>conftest.$ac_ext <<_ACEOF
31337 /* end confdefs.h.  */
31338 #include <$ac_header>
31339 _ACEOF
31340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31342   ac_status=$?
31343   grep -v '^ *+' conftest.er1 >conftest.err
31344   rm -f conftest.er1
31345   cat conftest.err >&5
31346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347   (exit $ac_status); } >/dev/null; then
31348   if test -s conftest.err; then
31349     ac_cpp_err=$ac_c_preproc_warn_flag
31350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31351   else
31352     ac_cpp_err=
31353   fi
31354 else
31355   ac_cpp_err=yes
31356 fi
31357 if test -z "$ac_cpp_err"; then
31358   ac_header_preproc=yes
31359 else
31360   echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31362
31363   ac_header_preproc=no
31364 fi
31365 rm -f conftest.err conftest.$ac_ext
31366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31367 echo "${ECHO_T}$ac_header_preproc" >&6
31368
31369 # So?  What about this header?
31370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31371   yes:no: )
31372     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31376     ac_header_preproc=yes
31377     ;;
31378   no:yes:* )
31379     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31381     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31382 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31383     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31385     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31386 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31389     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31391     (
31392       cat <<\_ASBOX
31393 ## ----------------------------------------- ##
31394 ## Report this to the package-unused lists.  ##
31395 ## ----------------------------------------- ##
31396 _ASBOX
31397     ) |
31398       sed "s/^/$as_me: WARNING:     /" >&2
31399     ;;
31400 esac
31401 echo "$as_me:$LINENO: checking for $ac_header" >&5
31402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31404   echo $ECHO_N "(cached) $ECHO_C" >&6
31405 else
31406   eval "$as_ac_Header=\$ac_header_preproc"
31407 fi
31408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31410
31411 fi
31412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31413   cat >>confdefs.h <<_ACEOF
31414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31415 _ACEOF
31416
31417 fi
31418
31419 done
31420
31421
31422
31423   # All these tests are for C++; save the language and the compiler flags.
31424   # The CXXFLAGS thing is suspicious, but based on similar bits previously
31425   # found in GLIBCXX_CONFIGURE.
31426
31427
31428   ac_ext=cc
31429 ac_cpp='$CXXCPP $CPPFLAGS'
31430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31433
31434   ac_test_CXXFLAGS="${CXXFLAGS+set}"
31435   ac_save_CXXFLAGS="$CXXFLAGS"
31436
31437   # Check for maintainer-mode bits.
31438   if test x"$USE_MAINTAINER_MODE" = xno; then
31439     WERROR=''
31440   else
31441     WERROR='-Werror'
31442   fi
31443
31444   # Check for -ffunction-sections -fdata-sections
31445   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
31446 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
31447   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
31448   cat >conftest.$ac_ext <<_ACEOF
31449 /* confdefs.h.  */
31450 _ACEOF
31451 cat confdefs.h >>conftest.$ac_ext
31452 cat >>conftest.$ac_ext <<_ACEOF
31453 /* end confdefs.h.  */
31454
31455 int
31456 main ()
31457 {
31458 int foo;
31459   ;
31460   return 0;
31461 }
31462 _ACEOF
31463 rm -f conftest.$ac_objext
31464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31465   (eval $ac_compile) 2>conftest.er1
31466   ac_status=$?
31467   grep -v '^ *+' conftest.er1 >conftest.err
31468   rm -f conftest.er1
31469   cat conftest.err >&5
31470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471   (exit $ac_status); } &&
31472          { ac_try='test -z "$ac_cxx_werror_flag"
31473                          || test ! -s conftest.err'
31474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31475   (eval $ac_try) 2>&5
31476   ac_status=$?
31477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478   (exit $ac_status); }; } &&
31479          { ac_try='test -s conftest.$ac_objext'
31480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31481   (eval $ac_try) 2>&5
31482   ac_status=$?
31483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484   (exit $ac_status); }; }; then
31485   ac_fdsections=yes
31486 else
31487   echo "$as_me: failed program was:" >&5
31488 sed 's/^/| /' conftest.$ac_ext >&5
31489
31490 ac_fdsections=no
31491 fi
31492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31493   if test "$ac_test_CXXFLAGS" = set; then
31494     CXXFLAGS="$ac_save_CXXFLAGS"
31495   else
31496     # this is the suspicious part
31497     CXXFLAGS=''
31498   fi
31499   if test x"$ac_fdsections" = x"yes"; then
31500     SECTION_FLAGS='-ffunction-sections -fdata-sections'
31501   fi
31502   echo "$as_me:$LINENO: result: $ac_fdsections" >&5
31503 echo "${ECHO_T}$ac_fdsections" >&6
31504
31505   ac_ext=c
31506 ac_cpp='$CPP $CPPFLAGS'
31507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31510
31511
31512
31513
31514     # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
31515
31516   ac_test_CXXFLAGS="${CXXFLAGS+set}"
31517   ac_save_CXXFLAGS="$CXXFLAGS"
31518   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31519
31520     echo "$as_me:$LINENO: checking for sin in -lm" >&5
31521 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
31522 if test "${ac_cv_lib_m_sin+set}" = set; then
31523   echo $ECHO_N "(cached) $ECHO_C" >&6
31524 else
31525   ac_check_lib_save_LIBS=$LIBS
31526 LIBS="-lm  $LIBS"
31527 if test x$gcc_no_link = xyes; then
31528   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31529 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31530    { (exit 1); exit 1; }; }
31531 fi
31532 cat >conftest.$ac_ext <<_ACEOF
31533 /* confdefs.h.  */
31534 _ACEOF
31535 cat confdefs.h >>conftest.$ac_ext
31536 cat >>conftest.$ac_ext <<_ACEOF
31537 /* end confdefs.h.  */
31538
31539 /* Override any gcc2 internal prototype to avoid an error.  */
31540 #ifdef __cplusplus
31541 extern "C"
31542 #endif
31543 /* We use char because int might match the return type of a gcc2
31544    builtin and then its argument prototype would still apply.  */
31545 char sin ();
31546 int
31547 main ()
31548 {
31549 sin ();
31550   ;
31551   return 0;
31552 }
31553 _ACEOF
31554 rm -f conftest.$ac_objext conftest$ac_exeext
31555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31556   (eval $ac_link) 2>conftest.er1
31557   ac_status=$?
31558   grep -v '^ *+' conftest.er1 >conftest.err
31559   rm -f conftest.er1
31560   cat conftest.err >&5
31561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562   (exit $ac_status); } &&
31563          { ac_try='test -z "$ac_c_werror_flag"
31564                          || test ! -s conftest.err'
31565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31566   (eval $ac_try) 2>&5
31567   ac_status=$?
31568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569   (exit $ac_status); }; } &&
31570          { ac_try='test -s conftest$ac_exeext'
31571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572   (eval $ac_try) 2>&5
31573   ac_status=$?
31574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575   (exit $ac_status); }; }; then
31576   ac_cv_lib_m_sin=yes
31577 else
31578   echo "$as_me: failed program was:" >&5
31579 sed 's/^/| /' conftest.$ac_ext >&5
31580
31581 ac_cv_lib_m_sin=no
31582 fi
31583 rm -f conftest.err conftest.$ac_objext \
31584       conftest$ac_exeext conftest.$ac_ext
31585 LIBS=$ac_check_lib_save_LIBS
31586 fi
31587 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
31588 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
31589 if test $ac_cv_lib_m_sin = yes; then
31590   libm="-lm"
31591 fi
31592
31593   ac_save_LIBS="$LIBS"
31594   LIBS="$LIBS $libm"
31595
31596
31597
31598   echo "$as_me:$LINENO: checking for isinf declaration" >&5
31599 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
31600   if test x${glibcxx_cv_func_isinf_use+set} != xset; then
31601     if test "${glibcxx_cv_func_isinf_use+set}" = set; then
31602   echo $ECHO_N "(cached) $ECHO_C" >&6
31603 else
31604
31605
31606
31607       ac_ext=cc
31608 ac_cpp='$CXXCPP $CPPFLAGS'
31609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31612
31613       cat >conftest.$ac_ext <<_ACEOF
31614 /* confdefs.h.  */
31615 _ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h.  */
31619 #include <math.h>
31620                       #ifdef HAVE_IEEEFP_H
31621                       #include <ieeefp.h>
31622                       #endif
31623
31624 int
31625 main ()
31626 {
31627  isinf(0);
31628   ;
31629   return 0;
31630 }
31631 _ACEOF
31632 rm -f conftest.$ac_objext
31633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31634   (eval $ac_compile) 2>conftest.er1
31635   ac_status=$?
31636   grep -v '^ *+' conftest.er1 >conftest.err
31637   rm -f conftest.er1
31638   cat conftest.err >&5
31639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640   (exit $ac_status); } &&
31641          { ac_try='test -z "$ac_cxx_werror_flag"
31642                          || test ! -s conftest.err'
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); }; } &&
31648          { ac_try='test -s conftest.$ac_objext'
31649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31650   (eval $ac_try) 2>&5
31651   ac_status=$?
31652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653   (exit $ac_status); }; }; then
31654   glibcxx_cv_func_isinf_use=yes
31655 else
31656   echo "$as_me: failed program was:" >&5
31657 sed 's/^/| /' conftest.$ac_ext >&5
31658
31659 glibcxx_cv_func_isinf_use=no
31660 fi
31661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31662       ac_ext=c
31663 ac_cpp='$CPP $CPPFLAGS'
31664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31667
31668
31669 fi
31670
31671   fi
31672   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
31673 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
31674
31675   if test x$glibcxx_cv_func_isinf_use = x"yes"; then
31676
31677 for ac_func in isinf
31678 do
31679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31680 echo "$as_me:$LINENO: checking for $ac_func" >&5
31681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31682 if eval "test \"\${$as_ac_var+set}\" = set"; then
31683   echo $ECHO_N "(cached) $ECHO_C" >&6
31684 else
31685   if test x$gcc_no_link = xyes; then
31686   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31687 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31688    { (exit 1); exit 1; }; }
31689 fi
31690 cat >conftest.$ac_ext <<_ACEOF
31691 /* confdefs.h.  */
31692 _ACEOF
31693 cat confdefs.h >>conftest.$ac_ext
31694 cat >>conftest.$ac_ext <<_ACEOF
31695 /* end confdefs.h.  */
31696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31698 #define $ac_func innocuous_$ac_func
31699
31700 /* System header to define __stub macros and hopefully few prototypes,
31701     which can conflict with char $ac_func (); below.
31702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31703     <limits.h> exists even on freestanding compilers.  */
31704
31705 #ifdef __STDC__
31706 # include <limits.h>
31707 #else
31708 # include <assert.h>
31709 #endif
31710
31711 #undef $ac_func
31712
31713 /* Override any gcc2 internal prototype to avoid an error.  */
31714 #ifdef __cplusplus
31715 extern "C"
31716 {
31717 #endif
31718 /* We use char because int might match the return type of a gcc2
31719    builtin and then its argument prototype would still apply.  */
31720 char $ac_func ();
31721 /* The GNU C library defines this for functions which it implements
31722     to always fail with ENOSYS.  Some functions are actually named
31723     something starting with __ and the normal name is an alias.  */
31724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31725 choke me
31726 #else
31727 char (*f) () = $ac_func;
31728 #endif
31729 #ifdef __cplusplus
31730 }
31731 #endif
31732
31733 int
31734 main ()
31735 {
31736 return f != $ac_func;
31737   ;
31738   return 0;
31739 }
31740 _ACEOF
31741 rm -f conftest.$ac_objext conftest$ac_exeext
31742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31743   (eval $ac_link) 2>conftest.er1
31744   ac_status=$?
31745   grep -v '^ *+' conftest.er1 >conftest.err
31746   rm -f conftest.er1
31747   cat conftest.err >&5
31748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749   (exit $ac_status); } &&
31750          { ac_try='test -z "$ac_c_werror_flag"
31751                          || test ! -s conftest.err'
31752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753   (eval $ac_try) 2>&5
31754   ac_status=$?
31755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756   (exit $ac_status); }; } &&
31757          { ac_try='test -s conftest$ac_exeext'
31758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31759   (eval $ac_try) 2>&5
31760   ac_status=$?
31761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762   (exit $ac_status); }; }; then
31763   eval "$as_ac_var=yes"
31764 else
31765   echo "$as_me: failed program was:" >&5
31766 sed 's/^/| /' conftest.$ac_ext >&5
31767
31768 eval "$as_ac_var=no"
31769 fi
31770 rm -f conftest.err conftest.$ac_objext \
31771       conftest$ac_exeext conftest.$ac_ext
31772 fi
31773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31775 if test `eval echo '${'$as_ac_var'}'` = yes; then
31776   cat >>confdefs.h <<_ACEOF
31777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31778 _ACEOF
31779
31780 fi
31781 done
31782
31783   else
31784
31785   echo "$as_me:$LINENO: checking for _isinf declaration" >&5
31786 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
31787   if test x${glibcxx_cv_func__isinf_use+set} != xset; then
31788     if test "${glibcxx_cv_func__isinf_use+set}" = set; then
31789   echo $ECHO_N "(cached) $ECHO_C" >&6
31790 else
31791
31792
31793
31794       ac_ext=cc
31795 ac_cpp='$CXXCPP $CPPFLAGS'
31796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31799
31800       cat >conftest.$ac_ext <<_ACEOF
31801 /* confdefs.h.  */
31802 _ACEOF
31803 cat confdefs.h >>conftest.$ac_ext
31804 cat >>conftest.$ac_ext <<_ACEOF
31805 /* end confdefs.h.  */
31806 #include <math.h>
31807                       #ifdef HAVE_IEEEFP_H
31808                       #include <ieeefp.h>
31809                       #endif
31810
31811 int
31812 main ()
31813 {
31814  _isinf(0);
31815   ;
31816   return 0;
31817 }
31818 _ACEOF
31819 rm -f conftest.$ac_objext
31820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31821   (eval $ac_compile) 2>conftest.er1
31822   ac_status=$?
31823   grep -v '^ *+' conftest.er1 >conftest.err
31824   rm -f conftest.er1
31825   cat conftest.err >&5
31826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827   (exit $ac_status); } &&
31828          { ac_try='test -z "$ac_cxx_werror_flag"
31829                          || test ! -s conftest.err'
31830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31831   (eval $ac_try) 2>&5
31832   ac_status=$?
31833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834   (exit $ac_status); }; } &&
31835          { ac_try='test -s conftest.$ac_objext'
31836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31837   (eval $ac_try) 2>&5
31838   ac_status=$?
31839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840   (exit $ac_status); }; }; then
31841   glibcxx_cv_func__isinf_use=yes
31842 else
31843   echo "$as_me: failed program was:" >&5
31844 sed 's/^/| /' conftest.$ac_ext >&5
31845
31846 glibcxx_cv_func__isinf_use=no
31847 fi
31848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31849       ac_ext=c
31850 ac_cpp='$CPP $CPPFLAGS'
31851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31854
31855
31856 fi
31857
31858   fi
31859   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
31860 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
31861
31862     if test x$glibcxx_cv_func__isinf_use = x"yes"; then
31863
31864 for ac_func in _isinf
31865 do
31866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31867 echo "$as_me:$LINENO: checking for $ac_func" >&5
31868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31869 if eval "test \"\${$as_ac_var+set}\" = set"; then
31870   echo $ECHO_N "(cached) $ECHO_C" >&6
31871 else
31872   if test x$gcc_no_link = xyes; then
31873   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31875    { (exit 1); exit 1; }; }
31876 fi
31877 cat >conftest.$ac_ext <<_ACEOF
31878 /* confdefs.h.  */
31879 _ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h.  */
31883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31885 #define $ac_func innocuous_$ac_func
31886
31887 /* System header to define __stub macros and hopefully few prototypes,
31888     which can conflict with char $ac_func (); below.
31889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31890     <limits.h> exists even on freestanding compilers.  */
31891
31892 #ifdef __STDC__
31893 # include <limits.h>
31894 #else
31895 # include <assert.h>
31896 #endif
31897
31898 #undef $ac_func
31899
31900 /* Override any gcc2 internal prototype to avoid an error.  */
31901 #ifdef __cplusplus
31902 extern "C"
31903 {
31904 #endif
31905 /* We use char because int might match the return type of a gcc2
31906    builtin and then its argument prototype would still apply.  */
31907 char $ac_func ();
31908 /* The GNU C library defines this for functions which it implements
31909     to always fail with ENOSYS.  Some functions are actually named
31910     something starting with __ and the normal name is an alias.  */
31911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31912 choke me
31913 #else
31914 char (*f) () = $ac_func;
31915 #endif
31916 #ifdef __cplusplus
31917 }
31918 #endif
31919
31920 int
31921 main ()
31922 {
31923 return f != $ac_func;
31924   ;
31925   return 0;
31926 }
31927 _ACEOF
31928 rm -f conftest.$ac_objext conftest$ac_exeext
31929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31930   (eval $ac_link) 2>conftest.er1
31931   ac_status=$?
31932   grep -v '^ *+' conftest.er1 >conftest.err
31933   rm -f conftest.er1
31934   cat conftest.err >&5
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); } &&
31937          { ac_try='test -z "$ac_c_werror_flag"
31938                          || test ! -s conftest.err'
31939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31940   (eval $ac_try) 2>&5
31941   ac_status=$?
31942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943   (exit $ac_status); }; } &&
31944          { ac_try='test -s conftest$ac_exeext'
31945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31946   (eval $ac_try) 2>&5
31947   ac_status=$?
31948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949   (exit $ac_status); }; }; then
31950   eval "$as_ac_var=yes"
31951 else
31952   echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31954
31955 eval "$as_ac_var=no"
31956 fi
31957 rm -f conftest.err conftest.$ac_objext \
31958       conftest$ac_exeext conftest.$ac_ext
31959 fi
31960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31962 if test `eval echo '${'$as_ac_var'}'` = yes; then
31963   cat >>confdefs.h <<_ACEOF
31964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31965 _ACEOF
31966
31967 fi
31968 done
31969
31970     fi
31971   fi
31972
31973
31974
31975   echo "$as_me:$LINENO: checking for isnan declaration" >&5
31976 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
31977   if test x${glibcxx_cv_func_isnan_use+set} != xset; then
31978     if test "${glibcxx_cv_func_isnan_use+set}" = set; then
31979   echo $ECHO_N "(cached) $ECHO_C" >&6
31980 else
31981
31982
31983
31984       ac_ext=cc
31985 ac_cpp='$CXXCPP $CPPFLAGS'
31986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31989
31990       cat >conftest.$ac_ext <<_ACEOF
31991 /* confdefs.h.  */
31992 _ACEOF
31993 cat confdefs.h >>conftest.$ac_ext
31994 cat >>conftest.$ac_ext <<_ACEOF
31995 /* end confdefs.h.  */
31996 #include <math.h>
31997                       #ifdef HAVE_IEEEFP_H
31998                       #include <ieeefp.h>
31999                       #endif
32000
32001 int
32002 main ()
32003 {
32004  isnan(0);
32005   ;
32006   return 0;
32007 }
32008 _ACEOF
32009 rm -f conftest.$ac_objext
32010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32011   (eval $ac_compile) 2>conftest.er1
32012   ac_status=$?
32013   grep -v '^ *+' conftest.er1 >conftest.err
32014   rm -f conftest.er1
32015   cat conftest.err >&5
32016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017   (exit $ac_status); } &&
32018          { ac_try='test -z "$ac_cxx_werror_flag"
32019                          || test ! -s conftest.err'
32020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32021   (eval $ac_try) 2>&5
32022   ac_status=$?
32023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024   (exit $ac_status); }; } &&
32025          { ac_try='test -s conftest.$ac_objext'
32026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32027   (eval $ac_try) 2>&5
32028   ac_status=$?
32029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030   (exit $ac_status); }; }; then
32031   glibcxx_cv_func_isnan_use=yes
32032 else
32033   echo "$as_me: failed program was:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32035
32036 glibcxx_cv_func_isnan_use=no
32037 fi
32038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32039       ac_ext=c
32040 ac_cpp='$CPP $CPPFLAGS'
32041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32044
32045
32046 fi
32047
32048   fi
32049   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
32050 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
32051
32052   if test x$glibcxx_cv_func_isnan_use = x"yes"; then
32053
32054 for ac_func in isnan
32055 do
32056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32057 echo "$as_me:$LINENO: checking for $ac_func" >&5
32058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32059 if eval "test \"\${$as_ac_var+set}\" = set"; then
32060   echo $ECHO_N "(cached) $ECHO_C" >&6
32061 else
32062   if test x$gcc_no_link = xyes; then
32063   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32065    { (exit 1); exit 1; }; }
32066 fi
32067 cat >conftest.$ac_ext <<_ACEOF
32068 /* confdefs.h.  */
32069 _ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h.  */
32073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32075 #define $ac_func innocuous_$ac_func
32076
32077 /* System header to define __stub macros and hopefully few prototypes,
32078     which can conflict with char $ac_func (); below.
32079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32080     <limits.h> exists even on freestanding compilers.  */
32081
32082 #ifdef __STDC__
32083 # include <limits.h>
32084 #else
32085 # include <assert.h>
32086 #endif
32087
32088 #undef $ac_func
32089
32090 /* Override any gcc2 internal prototype to avoid an error.  */
32091 #ifdef __cplusplus
32092 extern "C"
32093 {
32094 #endif
32095 /* We use char because int might match the return type of a gcc2
32096    builtin and then its argument prototype would still apply.  */
32097 char $ac_func ();
32098 /* The GNU C library defines this for functions which it implements
32099     to always fail with ENOSYS.  Some functions are actually named
32100     something starting with __ and the normal name is an alias.  */
32101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32102 choke me
32103 #else
32104 char (*f) () = $ac_func;
32105 #endif
32106 #ifdef __cplusplus
32107 }
32108 #endif
32109
32110 int
32111 main ()
32112 {
32113 return f != $ac_func;
32114   ;
32115   return 0;
32116 }
32117 _ACEOF
32118 rm -f conftest.$ac_objext conftest$ac_exeext
32119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32120   (eval $ac_link) 2>conftest.er1
32121   ac_status=$?
32122   grep -v '^ *+' conftest.er1 >conftest.err
32123   rm -f conftest.er1
32124   cat conftest.err >&5
32125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126   (exit $ac_status); } &&
32127          { ac_try='test -z "$ac_c_werror_flag"
32128                          || test ! -s conftest.err'
32129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32130   (eval $ac_try) 2>&5
32131   ac_status=$?
32132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133   (exit $ac_status); }; } &&
32134          { ac_try='test -s conftest$ac_exeext'
32135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32136   (eval $ac_try) 2>&5
32137   ac_status=$?
32138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139   (exit $ac_status); }; }; then
32140   eval "$as_ac_var=yes"
32141 else
32142   echo "$as_me: failed program was:" >&5
32143 sed 's/^/| /' conftest.$ac_ext >&5
32144
32145 eval "$as_ac_var=no"
32146 fi
32147 rm -f conftest.err conftest.$ac_objext \
32148       conftest$ac_exeext conftest.$ac_ext
32149 fi
32150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32152 if test `eval echo '${'$as_ac_var'}'` = yes; then
32153   cat >>confdefs.h <<_ACEOF
32154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32155 _ACEOF
32156
32157 fi
32158 done
32159
32160   else
32161
32162   echo "$as_me:$LINENO: checking for _isnan declaration" >&5
32163 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
32164   if test x${glibcxx_cv_func__isnan_use+set} != xset; then
32165     if test "${glibcxx_cv_func__isnan_use+set}" = set; then
32166   echo $ECHO_N "(cached) $ECHO_C" >&6
32167 else
32168
32169
32170
32171       ac_ext=cc
32172 ac_cpp='$CXXCPP $CPPFLAGS'
32173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32176
32177       cat >conftest.$ac_ext <<_ACEOF
32178 /* confdefs.h.  */
32179 _ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h.  */
32183 #include <math.h>
32184                       #ifdef HAVE_IEEEFP_H
32185                       #include <ieeefp.h>
32186                       #endif
32187
32188 int
32189 main ()
32190 {
32191  _isnan(0);
32192   ;
32193   return 0;
32194 }
32195 _ACEOF
32196 rm -f conftest.$ac_objext
32197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32198   (eval $ac_compile) 2>conftest.er1
32199   ac_status=$?
32200   grep -v '^ *+' conftest.er1 >conftest.err
32201   rm -f conftest.er1
32202   cat conftest.err >&5
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); } &&
32205          { ac_try='test -z "$ac_cxx_werror_flag"
32206                          || test ! -s conftest.err'
32207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208   (eval $ac_try) 2>&5
32209   ac_status=$?
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); }; } &&
32212          { ac_try='test -s conftest.$ac_objext'
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   glibcxx_cv_func__isnan_use=yes
32219 else
32220   echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32222
32223 glibcxx_cv_func__isnan_use=no
32224 fi
32225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32226       ac_ext=c
32227 ac_cpp='$CPP $CPPFLAGS'
32228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32231
32232
32233 fi
32234
32235   fi
32236   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
32237 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
32238
32239     if test x$glibcxx_cv_func__isnan_use = x"yes"; then
32240
32241 for ac_func in _isnan
32242 do
32243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32244 echo "$as_me:$LINENO: checking for $ac_func" >&5
32245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32246 if eval "test \"\${$as_ac_var+set}\" = set"; then
32247   echo $ECHO_N "(cached) $ECHO_C" >&6
32248 else
32249   if test x$gcc_no_link = xyes; then
32250   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32251 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32252    { (exit 1); exit 1; }; }
32253 fi
32254 cat >conftest.$ac_ext <<_ACEOF
32255 /* confdefs.h.  */
32256 _ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h.  */
32260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32262 #define $ac_func innocuous_$ac_func
32263
32264 /* System header to define __stub macros and hopefully few prototypes,
32265     which can conflict with char $ac_func (); below.
32266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32267     <limits.h> exists even on freestanding compilers.  */
32268
32269 #ifdef __STDC__
32270 # include <limits.h>
32271 #else
32272 # include <assert.h>
32273 #endif
32274
32275 #undef $ac_func
32276
32277 /* Override any gcc2 internal prototype to avoid an error.  */
32278 #ifdef __cplusplus
32279 extern "C"
32280 {
32281 #endif
32282 /* We use char because int might match the return type of a gcc2
32283    builtin and then its argument prototype would still apply.  */
32284 char $ac_func ();
32285 /* The GNU C library defines this for functions which it implements
32286     to always fail with ENOSYS.  Some functions are actually named
32287     something starting with __ and the normal name is an alias.  */
32288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32289 choke me
32290 #else
32291 char (*f) () = $ac_func;
32292 #endif
32293 #ifdef __cplusplus
32294 }
32295 #endif
32296
32297 int
32298 main ()
32299 {
32300 return f != $ac_func;
32301   ;
32302   return 0;
32303 }
32304 _ACEOF
32305 rm -f conftest.$ac_objext conftest$ac_exeext
32306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32307   (eval $ac_link) 2>conftest.er1
32308   ac_status=$?
32309   grep -v '^ *+' conftest.er1 >conftest.err
32310   rm -f conftest.er1
32311   cat conftest.err >&5
32312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313   (exit $ac_status); } &&
32314          { ac_try='test -z "$ac_c_werror_flag"
32315                          || test ! -s conftest.err'
32316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32317   (eval $ac_try) 2>&5
32318   ac_status=$?
32319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320   (exit $ac_status); }; } &&
32321          { ac_try='test -s conftest$ac_exeext'
32322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32323   (eval $ac_try) 2>&5
32324   ac_status=$?
32325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326   (exit $ac_status); }; }; then
32327   eval "$as_ac_var=yes"
32328 else
32329   echo "$as_me: failed program was:" >&5
32330 sed 's/^/| /' conftest.$ac_ext >&5
32331
32332 eval "$as_ac_var=no"
32333 fi
32334 rm -f conftest.err conftest.$ac_objext \
32335       conftest$ac_exeext conftest.$ac_ext
32336 fi
32337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32339 if test `eval echo '${'$as_ac_var'}'` = yes; then
32340   cat >>confdefs.h <<_ACEOF
32341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32342 _ACEOF
32343
32344 fi
32345 done
32346
32347     fi
32348   fi
32349
32350
32351
32352   echo "$as_me:$LINENO: checking for finite declaration" >&5
32353 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
32354   if test x${glibcxx_cv_func_finite_use+set} != xset; then
32355     if test "${glibcxx_cv_func_finite_use+set}" = set; then
32356   echo $ECHO_N "(cached) $ECHO_C" >&6
32357 else
32358
32359
32360
32361       ac_ext=cc
32362 ac_cpp='$CXXCPP $CPPFLAGS'
32363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32366
32367       cat >conftest.$ac_ext <<_ACEOF
32368 /* confdefs.h.  */
32369 _ACEOF
32370 cat confdefs.h >>conftest.$ac_ext
32371 cat >>conftest.$ac_ext <<_ACEOF
32372 /* end confdefs.h.  */
32373 #include <math.h>
32374                       #ifdef HAVE_IEEEFP_H
32375                       #include <ieeefp.h>
32376                       #endif
32377
32378 int
32379 main ()
32380 {
32381  finite(0);
32382   ;
32383   return 0;
32384 }
32385 _ACEOF
32386 rm -f conftest.$ac_objext
32387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32388   (eval $ac_compile) 2>conftest.er1
32389   ac_status=$?
32390   grep -v '^ *+' conftest.er1 >conftest.err
32391   rm -f conftest.er1
32392   cat conftest.err >&5
32393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394   (exit $ac_status); } &&
32395          { ac_try='test -z "$ac_cxx_werror_flag"
32396                          || test ! -s conftest.err'
32397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398   (eval $ac_try) 2>&5
32399   ac_status=$?
32400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401   (exit $ac_status); }; } &&
32402          { ac_try='test -s conftest.$ac_objext'
32403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404   (eval $ac_try) 2>&5
32405   ac_status=$?
32406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407   (exit $ac_status); }; }; then
32408   glibcxx_cv_func_finite_use=yes
32409 else
32410   echo "$as_me: failed program was:" >&5
32411 sed 's/^/| /' conftest.$ac_ext >&5
32412
32413 glibcxx_cv_func_finite_use=no
32414 fi
32415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32416       ac_ext=c
32417 ac_cpp='$CPP $CPPFLAGS'
32418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32421
32422
32423 fi
32424
32425   fi
32426   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
32427 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
32428
32429   if test x$glibcxx_cv_func_finite_use = x"yes"; then
32430
32431 for ac_func in finite
32432 do
32433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32434 echo "$as_me:$LINENO: checking for $ac_func" >&5
32435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32436 if eval "test \"\${$as_ac_var+set}\" = set"; then
32437   echo $ECHO_N "(cached) $ECHO_C" >&6
32438 else
32439   if test x$gcc_no_link = xyes; then
32440   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32441 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32442    { (exit 1); exit 1; }; }
32443 fi
32444 cat >conftest.$ac_ext <<_ACEOF
32445 /* confdefs.h.  */
32446 _ACEOF
32447 cat confdefs.h >>conftest.$ac_ext
32448 cat >>conftest.$ac_ext <<_ACEOF
32449 /* end confdefs.h.  */
32450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32452 #define $ac_func innocuous_$ac_func
32453
32454 /* System header to define __stub macros and hopefully few prototypes,
32455     which can conflict with char $ac_func (); below.
32456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32457     <limits.h> exists even on freestanding compilers.  */
32458
32459 #ifdef __STDC__
32460 # include <limits.h>
32461 #else
32462 # include <assert.h>
32463 #endif
32464
32465 #undef $ac_func
32466
32467 /* Override any gcc2 internal prototype to avoid an error.  */
32468 #ifdef __cplusplus
32469 extern "C"
32470 {
32471 #endif
32472 /* We use char because int might match the return type of a gcc2
32473    builtin and then its argument prototype would still apply.  */
32474 char $ac_func ();
32475 /* The GNU C library defines this for functions which it implements
32476     to always fail with ENOSYS.  Some functions are actually named
32477     something starting with __ and the normal name is an alias.  */
32478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32479 choke me
32480 #else
32481 char (*f) () = $ac_func;
32482 #endif
32483 #ifdef __cplusplus
32484 }
32485 #endif
32486
32487 int
32488 main ()
32489 {
32490 return f != $ac_func;
32491   ;
32492   return 0;
32493 }
32494 _ACEOF
32495 rm -f conftest.$ac_objext conftest$ac_exeext
32496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32497   (eval $ac_link) 2>conftest.er1
32498   ac_status=$?
32499   grep -v '^ *+' conftest.er1 >conftest.err
32500   rm -f conftest.er1
32501   cat conftest.err >&5
32502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503   (exit $ac_status); } &&
32504          { ac_try='test -z "$ac_c_werror_flag"
32505                          || test ! -s conftest.err'
32506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32507   (eval $ac_try) 2>&5
32508   ac_status=$?
32509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510   (exit $ac_status); }; } &&
32511          { ac_try='test -s conftest$ac_exeext'
32512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32513   (eval $ac_try) 2>&5
32514   ac_status=$?
32515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516   (exit $ac_status); }; }; then
32517   eval "$as_ac_var=yes"
32518 else
32519   echo "$as_me: failed program was:" >&5
32520 sed 's/^/| /' conftest.$ac_ext >&5
32521
32522 eval "$as_ac_var=no"
32523 fi
32524 rm -f conftest.err conftest.$ac_objext \
32525       conftest$ac_exeext conftest.$ac_ext
32526 fi
32527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32529 if test `eval echo '${'$as_ac_var'}'` = yes; then
32530   cat >>confdefs.h <<_ACEOF
32531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32532 _ACEOF
32533
32534 fi
32535 done
32536
32537   else
32538
32539   echo "$as_me:$LINENO: checking for _finite declaration" >&5
32540 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
32541   if test x${glibcxx_cv_func__finite_use+set} != xset; then
32542     if test "${glibcxx_cv_func__finite_use+set}" = set; then
32543   echo $ECHO_N "(cached) $ECHO_C" >&6
32544 else
32545
32546
32547
32548       ac_ext=cc
32549 ac_cpp='$CXXCPP $CPPFLAGS'
32550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32553
32554       cat >conftest.$ac_ext <<_ACEOF
32555 /* confdefs.h.  */
32556 _ACEOF
32557 cat confdefs.h >>conftest.$ac_ext
32558 cat >>conftest.$ac_ext <<_ACEOF
32559 /* end confdefs.h.  */
32560 #include <math.h>
32561                       #ifdef HAVE_IEEEFP_H
32562                       #include <ieeefp.h>
32563                       #endif
32564
32565 int
32566 main ()
32567 {
32568  _finite(0);
32569   ;
32570   return 0;
32571 }
32572 _ACEOF
32573 rm -f conftest.$ac_objext
32574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32575   (eval $ac_compile) 2>conftest.er1
32576   ac_status=$?
32577   grep -v '^ *+' conftest.er1 >conftest.err
32578   rm -f conftest.er1
32579   cat conftest.err >&5
32580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581   (exit $ac_status); } &&
32582          { ac_try='test -z "$ac_cxx_werror_flag"
32583                          || test ! -s conftest.err'
32584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32585   (eval $ac_try) 2>&5
32586   ac_status=$?
32587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588   (exit $ac_status); }; } &&
32589          { ac_try='test -s conftest.$ac_objext'
32590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32591   (eval $ac_try) 2>&5
32592   ac_status=$?
32593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594   (exit $ac_status); }; }; then
32595   glibcxx_cv_func__finite_use=yes
32596 else
32597   echo "$as_me: failed program was:" >&5
32598 sed 's/^/| /' conftest.$ac_ext >&5
32599
32600 glibcxx_cv_func__finite_use=no
32601 fi
32602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32603       ac_ext=c
32604 ac_cpp='$CPP $CPPFLAGS'
32605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32608
32609
32610 fi
32611
32612   fi
32613   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
32614 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
32615
32616     if test x$glibcxx_cv_func__finite_use = x"yes"; then
32617
32618 for ac_func in _finite
32619 do
32620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32621 echo "$as_me:$LINENO: checking for $ac_func" >&5
32622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32623 if eval "test \"\${$as_ac_var+set}\" = set"; then
32624   echo $ECHO_N "(cached) $ECHO_C" >&6
32625 else
32626   if test x$gcc_no_link = xyes; then
32627   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32628 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32629    { (exit 1); exit 1; }; }
32630 fi
32631 cat >conftest.$ac_ext <<_ACEOF
32632 /* confdefs.h.  */
32633 _ACEOF
32634 cat confdefs.h >>conftest.$ac_ext
32635 cat >>conftest.$ac_ext <<_ACEOF
32636 /* end confdefs.h.  */
32637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32639 #define $ac_func innocuous_$ac_func
32640
32641 /* System header to define __stub macros and hopefully few prototypes,
32642     which can conflict with char $ac_func (); below.
32643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32644     <limits.h> exists even on freestanding compilers.  */
32645
32646 #ifdef __STDC__
32647 # include <limits.h>
32648 #else
32649 # include <assert.h>
32650 #endif
32651
32652 #undef $ac_func
32653
32654 /* Override any gcc2 internal prototype to avoid an error.  */
32655 #ifdef __cplusplus
32656 extern "C"
32657 {
32658 #endif
32659 /* We use char because int might match the return type of a gcc2
32660    builtin and then its argument prototype would still apply.  */
32661 char $ac_func ();
32662 /* The GNU C library defines this for functions which it implements
32663     to always fail with ENOSYS.  Some functions are actually named
32664     something starting with __ and the normal name is an alias.  */
32665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32666 choke me
32667 #else
32668 char (*f) () = $ac_func;
32669 #endif
32670 #ifdef __cplusplus
32671 }
32672 #endif
32673
32674 int
32675 main ()
32676 {
32677 return f != $ac_func;
32678   ;
32679   return 0;
32680 }
32681 _ACEOF
32682 rm -f conftest.$ac_objext conftest$ac_exeext
32683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32684   (eval $ac_link) 2>conftest.er1
32685   ac_status=$?
32686   grep -v '^ *+' conftest.er1 >conftest.err
32687   rm -f conftest.er1
32688   cat conftest.err >&5
32689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690   (exit $ac_status); } &&
32691          { ac_try='test -z "$ac_c_werror_flag"
32692                          || test ! -s conftest.err'
32693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32694   (eval $ac_try) 2>&5
32695   ac_status=$?
32696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697   (exit $ac_status); }; } &&
32698          { ac_try='test -s conftest$ac_exeext'
32699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32700   (eval $ac_try) 2>&5
32701   ac_status=$?
32702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703   (exit $ac_status); }; }; then
32704   eval "$as_ac_var=yes"
32705 else
32706   echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32708
32709 eval "$as_ac_var=no"
32710 fi
32711 rm -f conftest.err conftest.$ac_objext \
32712       conftest$ac_exeext conftest.$ac_ext
32713 fi
32714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32716 if test `eval echo '${'$as_ac_var'}'` = yes; then
32717   cat >>confdefs.h <<_ACEOF
32718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32719 _ACEOF
32720
32721 fi
32722 done
32723
32724     fi
32725   fi
32726
32727
32728
32729   echo "$as_me:$LINENO: checking for copysign declaration" >&5
32730 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
32731   if test x${glibcxx_cv_func_copysign_use+set} != xset; then
32732     if test "${glibcxx_cv_func_copysign_use+set}" = set; then
32733   echo $ECHO_N "(cached) $ECHO_C" >&6
32734 else
32735
32736
32737
32738       ac_ext=cc
32739 ac_cpp='$CXXCPP $CPPFLAGS'
32740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32743
32744       cat >conftest.$ac_ext <<_ACEOF
32745 /* confdefs.h.  */
32746 _ACEOF
32747 cat confdefs.h >>conftest.$ac_ext
32748 cat >>conftest.$ac_ext <<_ACEOF
32749 /* end confdefs.h.  */
32750 #include <math.h>
32751 int
32752 main ()
32753 {
32754  copysign(0, 0);
32755   ;
32756   return 0;
32757 }
32758 _ACEOF
32759 rm -f conftest.$ac_objext
32760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32761   (eval $ac_compile) 2>conftest.er1
32762   ac_status=$?
32763   grep -v '^ *+' conftest.er1 >conftest.err
32764   rm -f conftest.er1
32765   cat conftest.err >&5
32766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767   (exit $ac_status); } &&
32768          { ac_try='test -z "$ac_cxx_werror_flag"
32769                          || test ! -s conftest.err'
32770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32771   (eval $ac_try) 2>&5
32772   ac_status=$?
32773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774   (exit $ac_status); }; } &&
32775          { ac_try='test -s conftest.$ac_objext'
32776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777   (eval $ac_try) 2>&5
32778   ac_status=$?
32779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); }; }; then
32781   glibcxx_cv_func_copysign_use=yes
32782 else
32783   echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32785
32786 glibcxx_cv_func_copysign_use=no
32787 fi
32788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32789       ac_ext=c
32790 ac_cpp='$CPP $CPPFLAGS'
32791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32794
32795
32796 fi
32797
32798   fi
32799   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
32800 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
32801
32802   if test x$glibcxx_cv_func_copysign_use = x"yes"; then
32803
32804 for ac_func in copysign
32805 do
32806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32807 echo "$as_me:$LINENO: checking for $ac_func" >&5
32808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32809 if eval "test \"\${$as_ac_var+set}\" = set"; then
32810   echo $ECHO_N "(cached) $ECHO_C" >&6
32811 else
32812   if test x$gcc_no_link = xyes; then
32813   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32815    { (exit 1); exit 1; }; }
32816 fi
32817 cat >conftest.$ac_ext <<_ACEOF
32818 /* confdefs.h.  */
32819 _ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h.  */
32823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32825 #define $ac_func innocuous_$ac_func
32826
32827 /* System header to define __stub macros and hopefully few prototypes,
32828     which can conflict with char $ac_func (); below.
32829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32830     <limits.h> exists even on freestanding compilers.  */
32831
32832 #ifdef __STDC__
32833 # include <limits.h>
32834 #else
32835 # include <assert.h>
32836 #endif
32837
32838 #undef $ac_func
32839
32840 /* Override any gcc2 internal prototype to avoid an error.  */
32841 #ifdef __cplusplus
32842 extern "C"
32843 {
32844 #endif
32845 /* We use char because int might match the return type of a gcc2
32846    builtin and then its argument prototype would still apply.  */
32847 char $ac_func ();
32848 /* The GNU C library defines this for functions which it implements
32849     to always fail with ENOSYS.  Some functions are actually named
32850     something starting with __ and the normal name is an alias.  */
32851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32852 choke me
32853 #else
32854 char (*f) () = $ac_func;
32855 #endif
32856 #ifdef __cplusplus
32857 }
32858 #endif
32859
32860 int
32861 main ()
32862 {
32863 return f != $ac_func;
32864   ;
32865   return 0;
32866 }
32867 _ACEOF
32868 rm -f conftest.$ac_objext conftest$ac_exeext
32869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32870   (eval $ac_link) 2>conftest.er1
32871   ac_status=$?
32872   grep -v '^ *+' conftest.er1 >conftest.err
32873   rm -f conftest.er1
32874   cat conftest.err >&5
32875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876   (exit $ac_status); } &&
32877          { ac_try='test -z "$ac_c_werror_flag"
32878                          || test ! -s conftest.err'
32879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32880   (eval $ac_try) 2>&5
32881   ac_status=$?
32882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883   (exit $ac_status); }; } &&
32884          { ac_try='test -s conftest$ac_exeext'
32885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886   (eval $ac_try) 2>&5
32887   ac_status=$?
32888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889   (exit $ac_status); }; }; then
32890   eval "$as_ac_var=yes"
32891 else
32892   echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32894
32895 eval "$as_ac_var=no"
32896 fi
32897 rm -f conftest.err conftest.$ac_objext \
32898       conftest$ac_exeext conftest.$ac_ext
32899 fi
32900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32902 if test `eval echo '${'$as_ac_var'}'` = yes; then
32903   cat >>confdefs.h <<_ACEOF
32904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32905 _ACEOF
32906
32907 fi
32908 done
32909
32910   else
32911
32912   echo "$as_me:$LINENO: checking for _copysign declaration" >&5
32913 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
32914   if test x${glibcxx_cv_func__copysign_use+set} != xset; then
32915     if test "${glibcxx_cv_func__copysign_use+set}" = set; then
32916   echo $ECHO_N "(cached) $ECHO_C" >&6
32917 else
32918
32919
32920
32921       ac_ext=cc
32922 ac_cpp='$CXXCPP $CPPFLAGS'
32923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32926
32927       cat >conftest.$ac_ext <<_ACEOF
32928 /* confdefs.h.  */
32929 _ACEOF
32930 cat confdefs.h >>conftest.$ac_ext
32931 cat >>conftest.$ac_ext <<_ACEOF
32932 /* end confdefs.h.  */
32933 #include <math.h>
32934 int
32935 main ()
32936 {
32937  _copysign(0, 0);
32938   ;
32939   return 0;
32940 }
32941 _ACEOF
32942 rm -f conftest.$ac_objext
32943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32944   (eval $ac_compile) 2>conftest.er1
32945   ac_status=$?
32946   grep -v '^ *+' conftest.er1 >conftest.err
32947   rm -f conftest.er1
32948   cat conftest.err >&5
32949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950   (exit $ac_status); } &&
32951          { ac_try='test -z "$ac_cxx_werror_flag"
32952                          || test ! -s conftest.err'
32953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954   (eval $ac_try) 2>&5
32955   ac_status=$?
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); }; } &&
32958          { ac_try='test -s conftest.$ac_objext'
32959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960   (eval $ac_try) 2>&5
32961   ac_status=$?
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); }; }; then
32964   glibcxx_cv_func__copysign_use=yes
32965 else
32966   echo "$as_me: failed program was:" >&5
32967 sed 's/^/| /' conftest.$ac_ext >&5
32968
32969 glibcxx_cv_func__copysign_use=no
32970 fi
32971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32972       ac_ext=c
32973 ac_cpp='$CPP $CPPFLAGS'
32974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32977
32978
32979 fi
32980
32981   fi
32982   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
32983 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
32984
32985     if test x$glibcxx_cv_func__copysign_use = x"yes"; then
32986
32987 for ac_func in _copysign
32988 do
32989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32990 echo "$as_me:$LINENO: checking for $ac_func" >&5
32991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32992 if eval "test \"\${$as_ac_var+set}\" = set"; then
32993   echo $ECHO_N "(cached) $ECHO_C" >&6
32994 else
32995   if test x$gcc_no_link = xyes; then
32996   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32998    { (exit 1); exit 1; }; }
32999 fi
33000 cat >conftest.$ac_ext <<_ACEOF
33001 /* confdefs.h.  */
33002 _ACEOF
33003 cat confdefs.h >>conftest.$ac_ext
33004 cat >>conftest.$ac_ext <<_ACEOF
33005 /* end confdefs.h.  */
33006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33008 #define $ac_func innocuous_$ac_func
33009
33010 /* System header to define __stub macros and hopefully few prototypes,
33011     which can conflict with char $ac_func (); below.
33012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33013     <limits.h> exists even on freestanding compilers.  */
33014
33015 #ifdef __STDC__
33016 # include <limits.h>
33017 #else
33018 # include <assert.h>
33019 #endif
33020
33021 #undef $ac_func
33022
33023 /* Override any gcc2 internal prototype to avoid an error.  */
33024 #ifdef __cplusplus
33025 extern "C"
33026 {
33027 #endif
33028 /* We use char because int might match the return type of a gcc2
33029    builtin and then its argument prototype would still apply.  */
33030 char $ac_func ();
33031 /* The GNU C library defines this for functions which it implements
33032     to always fail with ENOSYS.  Some functions are actually named
33033     something starting with __ and the normal name is an alias.  */
33034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33035 choke me
33036 #else
33037 char (*f) () = $ac_func;
33038 #endif
33039 #ifdef __cplusplus
33040 }
33041 #endif
33042
33043 int
33044 main ()
33045 {
33046 return f != $ac_func;
33047   ;
33048   return 0;
33049 }
33050 _ACEOF
33051 rm -f conftest.$ac_objext conftest$ac_exeext
33052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33053   (eval $ac_link) 2>conftest.er1
33054   ac_status=$?
33055   grep -v '^ *+' conftest.er1 >conftest.err
33056   rm -f conftest.er1
33057   cat conftest.err >&5
33058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059   (exit $ac_status); } &&
33060          { ac_try='test -z "$ac_c_werror_flag"
33061                          || test ! -s conftest.err'
33062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33063   (eval $ac_try) 2>&5
33064   ac_status=$?
33065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066   (exit $ac_status); }; } &&
33067          { ac_try='test -s conftest$ac_exeext'
33068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33069   (eval $ac_try) 2>&5
33070   ac_status=$?
33071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072   (exit $ac_status); }; }; then
33073   eval "$as_ac_var=yes"
33074 else
33075   echo "$as_me: failed program was:" >&5
33076 sed 's/^/| /' conftest.$ac_ext >&5
33077
33078 eval "$as_ac_var=no"
33079 fi
33080 rm -f conftest.err conftest.$ac_objext \
33081       conftest$ac_exeext conftest.$ac_ext
33082 fi
33083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33085 if test `eval echo '${'$as_ac_var'}'` = yes; then
33086   cat >>confdefs.h <<_ACEOF
33087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33088 _ACEOF
33089
33090 fi
33091 done
33092
33093     fi
33094   fi
33095
33096
33097
33098   echo "$as_me:$LINENO: checking for sincos declaration" >&5
33099 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
33100   if test x${glibcxx_cv_func_sincos_use+set} != xset; then
33101     if test "${glibcxx_cv_func_sincos_use+set}" = set; then
33102   echo $ECHO_N "(cached) $ECHO_C" >&6
33103 else
33104
33105
33106
33107       ac_ext=cc
33108 ac_cpp='$CXXCPP $CPPFLAGS'
33109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33112
33113       cat >conftest.$ac_ext <<_ACEOF
33114 /* confdefs.h.  */
33115 _ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h.  */
33119 #include <math.h>
33120 int
33121 main ()
33122 {
33123  sincos(0, 0, 0);
33124   ;
33125   return 0;
33126 }
33127 _ACEOF
33128 rm -f conftest.$ac_objext
33129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33130   (eval $ac_compile) 2>conftest.er1
33131   ac_status=$?
33132   grep -v '^ *+' conftest.er1 >conftest.err
33133   rm -f conftest.er1
33134   cat conftest.err >&5
33135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136   (exit $ac_status); } &&
33137          { ac_try='test -z "$ac_cxx_werror_flag"
33138                          || test ! -s conftest.err'
33139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33140   (eval $ac_try) 2>&5
33141   ac_status=$?
33142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143   (exit $ac_status); }; } &&
33144          { ac_try='test -s conftest.$ac_objext'
33145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33146   (eval $ac_try) 2>&5
33147   ac_status=$?
33148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149   (exit $ac_status); }; }; then
33150   glibcxx_cv_func_sincos_use=yes
33151 else
33152   echo "$as_me: failed program was:" >&5
33153 sed 's/^/| /' conftest.$ac_ext >&5
33154
33155 glibcxx_cv_func_sincos_use=no
33156 fi
33157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33158       ac_ext=c
33159 ac_cpp='$CPP $CPPFLAGS'
33160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33163
33164
33165 fi
33166
33167   fi
33168   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
33169 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
33170
33171   if test x$glibcxx_cv_func_sincos_use = x"yes"; then
33172
33173 for ac_func in sincos
33174 do
33175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33176 echo "$as_me:$LINENO: checking for $ac_func" >&5
33177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33178 if eval "test \"\${$as_ac_var+set}\" = set"; then
33179   echo $ECHO_N "(cached) $ECHO_C" >&6
33180 else
33181   if test x$gcc_no_link = xyes; then
33182   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33183 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33184    { (exit 1); exit 1; }; }
33185 fi
33186 cat >conftest.$ac_ext <<_ACEOF
33187 /* confdefs.h.  */
33188 _ACEOF
33189 cat confdefs.h >>conftest.$ac_ext
33190 cat >>conftest.$ac_ext <<_ACEOF
33191 /* end confdefs.h.  */
33192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33194 #define $ac_func innocuous_$ac_func
33195
33196 /* System header to define __stub macros and hopefully few prototypes,
33197     which can conflict with char $ac_func (); below.
33198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33199     <limits.h> exists even on freestanding compilers.  */
33200
33201 #ifdef __STDC__
33202 # include <limits.h>
33203 #else
33204 # include <assert.h>
33205 #endif
33206
33207 #undef $ac_func
33208
33209 /* Override any gcc2 internal prototype to avoid an error.  */
33210 #ifdef __cplusplus
33211 extern "C"
33212 {
33213 #endif
33214 /* We use char because int might match the return type of a gcc2
33215    builtin and then its argument prototype would still apply.  */
33216 char $ac_func ();
33217 /* The GNU C library defines this for functions which it implements
33218     to always fail with ENOSYS.  Some functions are actually named
33219     something starting with __ and the normal name is an alias.  */
33220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33221 choke me
33222 #else
33223 char (*f) () = $ac_func;
33224 #endif
33225 #ifdef __cplusplus
33226 }
33227 #endif
33228
33229 int
33230 main ()
33231 {
33232 return f != $ac_func;
33233   ;
33234   return 0;
33235 }
33236 _ACEOF
33237 rm -f conftest.$ac_objext conftest$ac_exeext
33238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33239   (eval $ac_link) 2>conftest.er1
33240   ac_status=$?
33241   grep -v '^ *+' conftest.er1 >conftest.err
33242   rm -f conftest.er1
33243   cat conftest.err >&5
33244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245   (exit $ac_status); } &&
33246          { ac_try='test -z "$ac_c_werror_flag"
33247                          || test ! -s conftest.err'
33248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249   (eval $ac_try) 2>&5
33250   ac_status=$?
33251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252   (exit $ac_status); }; } &&
33253          { ac_try='test -s conftest$ac_exeext'
33254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33255   (eval $ac_try) 2>&5
33256   ac_status=$?
33257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258   (exit $ac_status); }; }; then
33259   eval "$as_ac_var=yes"
33260 else
33261   echo "$as_me: failed program was:" >&5
33262 sed 's/^/| /' conftest.$ac_ext >&5
33263
33264 eval "$as_ac_var=no"
33265 fi
33266 rm -f conftest.err conftest.$ac_objext \
33267       conftest$ac_exeext conftest.$ac_ext
33268 fi
33269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33271 if test `eval echo '${'$as_ac_var'}'` = yes; then
33272   cat >>confdefs.h <<_ACEOF
33273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33274 _ACEOF
33275
33276 fi
33277 done
33278
33279   else
33280
33281   echo "$as_me:$LINENO: checking for _sincos declaration" >&5
33282 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
33283   if test x${glibcxx_cv_func__sincos_use+set} != xset; then
33284     if test "${glibcxx_cv_func__sincos_use+set}" = set; then
33285   echo $ECHO_N "(cached) $ECHO_C" >&6
33286 else
33287
33288
33289
33290       ac_ext=cc
33291 ac_cpp='$CXXCPP $CPPFLAGS'
33292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33295
33296       cat >conftest.$ac_ext <<_ACEOF
33297 /* confdefs.h.  */
33298 _ACEOF
33299 cat confdefs.h >>conftest.$ac_ext
33300 cat >>conftest.$ac_ext <<_ACEOF
33301 /* end confdefs.h.  */
33302 #include <math.h>
33303 int
33304 main ()
33305 {
33306  _sincos(0, 0, 0);
33307   ;
33308   return 0;
33309 }
33310 _ACEOF
33311 rm -f conftest.$ac_objext
33312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33313   (eval $ac_compile) 2>conftest.er1
33314   ac_status=$?
33315   grep -v '^ *+' conftest.er1 >conftest.err
33316   rm -f conftest.er1
33317   cat conftest.err >&5
33318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319   (exit $ac_status); } &&
33320          { ac_try='test -z "$ac_cxx_werror_flag"
33321                          || test ! -s conftest.err'
33322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323   (eval $ac_try) 2>&5
33324   ac_status=$?
33325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326   (exit $ac_status); }; } &&
33327          { ac_try='test -s conftest.$ac_objext'
33328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329   (eval $ac_try) 2>&5
33330   ac_status=$?
33331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332   (exit $ac_status); }; }; then
33333   glibcxx_cv_func__sincos_use=yes
33334 else
33335   echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33337
33338 glibcxx_cv_func__sincos_use=no
33339 fi
33340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33341       ac_ext=c
33342 ac_cpp='$CPP $CPPFLAGS'
33343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33346
33347
33348 fi
33349
33350   fi
33351   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
33352 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
33353
33354     if test x$glibcxx_cv_func__sincos_use = x"yes"; then
33355
33356 for ac_func in _sincos
33357 do
33358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33359 echo "$as_me:$LINENO: checking for $ac_func" >&5
33360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33361 if eval "test \"\${$as_ac_var+set}\" = set"; then
33362   echo $ECHO_N "(cached) $ECHO_C" >&6
33363 else
33364   if test x$gcc_no_link = xyes; then
33365   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33366 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33367    { (exit 1); exit 1; }; }
33368 fi
33369 cat >conftest.$ac_ext <<_ACEOF
33370 /* confdefs.h.  */
33371 _ACEOF
33372 cat confdefs.h >>conftest.$ac_ext
33373 cat >>conftest.$ac_ext <<_ACEOF
33374 /* end confdefs.h.  */
33375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33377 #define $ac_func innocuous_$ac_func
33378
33379 /* System header to define __stub macros and hopefully few prototypes,
33380     which can conflict with char $ac_func (); below.
33381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33382     <limits.h> exists even on freestanding compilers.  */
33383
33384 #ifdef __STDC__
33385 # include <limits.h>
33386 #else
33387 # include <assert.h>
33388 #endif
33389
33390 #undef $ac_func
33391
33392 /* Override any gcc2 internal prototype to avoid an error.  */
33393 #ifdef __cplusplus
33394 extern "C"
33395 {
33396 #endif
33397 /* We use char because int might match the return type of a gcc2
33398    builtin and then its argument prototype would still apply.  */
33399 char $ac_func ();
33400 /* The GNU C library defines this for functions which it implements
33401     to always fail with ENOSYS.  Some functions are actually named
33402     something starting with __ and the normal name is an alias.  */
33403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33404 choke me
33405 #else
33406 char (*f) () = $ac_func;
33407 #endif
33408 #ifdef __cplusplus
33409 }
33410 #endif
33411
33412 int
33413 main ()
33414 {
33415 return f != $ac_func;
33416   ;
33417   return 0;
33418 }
33419 _ACEOF
33420 rm -f conftest.$ac_objext conftest$ac_exeext
33421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33422   (eval $ac_link) 2>conftest.er1
33423   ac_status=$?
33424   grep -v '^ *+' conftest.er1 >conftest.err
33425   rm -f conftest.er1
33426   cat conftest.err >&5
33427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428   (exit $ac_status); } &&
33429          { ac_try='test -z "$ac_c_werror_flag"
33430                          || test ! -s conftest.err'
33431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432   (eval $ac_try) 2>&5
33433   ac_status=$?
33434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435   (exit $ac_status); }; } &&
33436          { ac_try='test -s conftest$ac_exeext'
33437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33438   (eval $ac_try) 2>&5
33439   ac_status=$?
33440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441   (exit $ac_status); }; }; then
33442   eval "$as_ac_var=yes"
33443 else
33444   echo "$as_me: failed program was:" >&5
33445 sed 's/^/| /' conftest.$ac_ext >&5
33446
33447 eval "$as_ac_var=no"
33448 fi
33449 rm -f conftest.err conftest.$ac_objext \
33450       conftest$ac_exeext conftest.$ac_ext
33451 fi
33452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33454 if test `eval echo '${'$as_ac_var'}'` = yes; then
33455   cat >>confdefs.h <<_ACEOF
33456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33457 _ACEOF
33458
33459 fi
33460 done
33461
33462     fi
33463   fi
33464
33465
33466
33467   echo "$as_me:$LINENO: checking for fpclass declaration" >&5
33468 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
33469   if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
33470     if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
33471   echo $ECHO_N "(cached) $ECHO_C" >&6
33472 else
33473
33474
33475
33476       ac_ext=cc
33477 ac_cpp='$CXXCPP $CPPFLAGS'
33478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33481
33482       cat >conftest.$ac_ext <<_ACEOF
33483 /* confdefs.h.  */
33484 _ACEOF
33485 cat confdefs.h >>conftest.$ac_ext
33486 cat >>conftest.$ac_ext <<_ACEOF
33487 /* end confdefs.h.  */
33488 #include <math.h>
33489                       #ifdef HAVE_IEEEFP_H
33490                       #include <ieeefp.h>
33491                       #endif
33492
33493 int
33494 main ()
33495 {
33496  fpclass(0);
33497   ;
33498   return 0;
33499 }
33500 _ACEOF
33501 rm -f conftest.$ac_objext
33502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33503   (eval $ac_compile) 2>conftest.er1
33504   ac_status=$?
33505   grep -v '^ *+' conftest.er1 >conftest.err
33506   rm -f conftest.er1
33507   cat conftest.err >&5
33508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509   (exit $ac_status); } &&
33510          { ac_try='test -z "$ac_cxx_werror_flag"
33511                          || test ! -s conftest.err'
33512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33513   (eval $ac_try) 2>&5
33514   ac_status=$?
33515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516   (exit $ac_status); }; } &&
33517          { ac_try='test -s conftest.$ac_objext'
33518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33519   (eval $ac_try) 2>&5
33520   ac_status=$?
33521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522   (exit $ac_status); }; }; then
33523   glibcxx_cv_func_fpclass_use=yes
33524 else
33525   echo "$as_me: failed program was:" >&5
33526 sed 's/^/| /' conftest.$ac_ext >&5
33527
33528 glibcxx_cv_func_fpclass_use=no
33529 fi
33530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33531       ac_ext=c
33532 ac_cpp='$CPP $CPPFLAGS'
33533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33536
33537
33538 fi
33539
33540   fi
33541   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
33542 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
33543
33544   if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
33545
33546 for ac_func in fpclass
33547 do
33548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33549 echo "$as_me:$LINENO: checking for $ac_func" >&5
33550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33551 if eval "test \"\${$as_ac_var+set}\" = set"; then
33552   echo $ECHO_N "(cached) $ECHO_C" >&6
33553 else
33554   if test x$gcc_no_link = xyes; then
33555   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33557    { (exit 1); exit 1; }; }
33558 fi
33559 cat >conftest.$ac_ext <<_ACEOF
33560 /* confdefs.h.  */
33561 _ACEOF
33562 cat confdefs.h >>conftest.$ac_ext
33563 cat >>conftest.$ac_ext <<_ACEOF
33564 /* end confdefs.h.  */
33565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33567 #define $ac_func innocuous_$ac_func
33568
33569 /* System header to define __stub macros and hopefully few prototypes,
33570     which can conflict with char $ac_func (); below.
33571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33572     <limits.h> exists even on freestanding compilers.  */
33573
33574 #ifdef __STDC__
33575 # include <limits.h>
33576 #else
33577 # include <assert.h>
33578 #endif
33579
33580 #undef $ac_func
33581
33582 /* Override any gcc2 internal prototype to avoid an error.  */
33583 #ifdef __cplusplus
33584 extern "C"
33585 {
33586 #endif
33587 /* We use char because int might match the return type of a gcc2
33588    builtin and then its argument prototype would still apply.  */
33589 char $ac_func ();
33590 /* The GNU C library defines this for functions which it implements
33591     to always fail with ENOSYS.  Some functions are actually named
33592     something starting with __ and the normal name is an alias.  */
33593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33594 choke me
33595 #else
33596 char (*f) () = $ac_func;
33597 #endif
33598 #ifdef __cplusplus
33599 }
33600 #endif
33601
33602 int
33603 main ()
33604 {
33605 return f != $ac_func;
33606   ;
33607   return 0;
33608 }
33609 _ACEOF
33610 rm -f conftest.$ac_objext conftest$ac_exeext
33611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33612   (eval $ac_link) 2>conftest.er1
33613   ac_status=$?
33614   grep -v '^ *+' conftest.er1 >conftest.err
33615   rm -f conftest.er1
33616   cat conftest.err >&5
33617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618   (exit $ac_status); } &&
33619          { ac_try='test -z "$ac_c_werror_flag"
33620                          || test ! -s conftest.err'
33621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33622   (eval $ac_try) 2>&5
33623   ac_status=$?
33624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625   (exit $ac_status); }; } &&
33626          { ac_try='test -s conftest$ac_exeext'
33627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33628   (eval $ac_try) 2>&5
33629   ac_status=$?
33630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631   (exit $ac_status); }; }; then
33632   eval "$as_ac_var=yes"
33633 else
33634   echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33636
33637 eval "$as_ac_var=no"
33638 fi
33639 rm -f conftest.err conftest.$ac_objext \
33640       conftest$ac_exeext conftest.$ac_ext
33641 fi
33642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33644 if test `eval echo '${'$as_ac_var'}'` = yes; then
33645   cat >>confdefs.h <<_ACEOF
33646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33647 _ACEOF
33648
33649 fi
33650 done
33651
33652   else
33653
33654   echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
33655 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
33656   if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
33657     if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
33658   echo $ECHO_N "(cached) $ECHO_C" >&6
33659 else
33660
33661
33662
33663       ac_ext=cc
33664 ac_cpp='$CXXCPP $CPPFLAGS'
33665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33668
33669       cat >conftest.$ac_ext <<_ACEOF
33670 /* confdefs.h.  */
33671 _ACEOF
33672 cat confdefs.h >>conftest.$ac_ext
33673 cat >>conftest.$ac_ext <<_ACEOF
33674 /* end confdefs.h.  */
33675 #include <math.h>
33676                       #ifdef HAVE_IEEEFP_H
33677                       #include <ieeefp.h>
33678                       #endif
33679
33680 int
33681 main ()
33682 {
33683  _fpclass(0);
33684   ;
33685   return 0;
33686 }
33687 _ACEOF
33688 rm -f conftest.$ac_objext
33689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33690   (eval $ac_compile) 2>conftest.er1
33691   ac_status=$?
33692   grep -v '^ *+' conftest.er1 >conftest.err
33693   rm -f conftest.er1
33694   cat conftest.err >&5
33695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33696   (exit $ac_status); } &&
33697          { ac_try='test -z "$ac_cxx_werror_flag"
33698                          || test ! -s conftest.err'
33699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33700   (eval $ac_try) 2>&5
33701   ac_status=$?
33702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703   (exit $ac_status); }; } &&
33704          { ac_try='test -s conftest.$ac_objext'
33705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33706   (eval $ac_try) 2>&5
33707   ac_status=$?
33708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709   (exit $ac_status); }; }; then
33710   glibcxx_cv_func__fpclass_use=yes
33711 else
33712   echo "$as_me: failed program was:" >&5
33713 sed 's/^/| /' conftest.$ac_ext >&5
33714
33715 glibcxx_cv_func__fpclass_use=no
33716 fi
33717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33718       ac_ext=c
33719 ac_cpp='$CPP $CPPFLAGS'
33720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33723
33724
33725 fi
33726
33727   fi
33728   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
33729 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
33730
33731     if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
33732
33733 for ac_func in _fpclass
33734 do
33735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33736 echo "$as_me:$LINENO: checking for $ac_func" >&5
33737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33738 if eval "test \"\${$as_ac_var+set}\" = set"; then
33739   echo $ECHO_N "(cached) $ECHO_C" >&6
33740 else
33741   if test x$gcc_no_link = xyes; then
33742   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33744    { (exit 1); exit 1; }; }
33745 fi
33746 cat >conftest.$ac_ext <<_ACEOF
33747 /* confdefs.h.  */
33748 _ACEOF
33749 cat confdefs.h >>conftest.$ac_ext
33750 cat >>conftest.$ac_ext <<_ACEOF
33751 /* end confdefs.h.  */
33752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33754 #define $ac_func innocuous_$ac_func
33755
33756 /* System header to define __stub macros and hopefully few prototypes,
33757     which can conflict with char $ac_func (); below.
33758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33759     <limits.h> exists even on freestanding compilers.  */
33760
33761 #ifdef __STDC__
33762 # include <limits.h>
33763 #else
33764 # include <assert.h>
33765 #endif
33766
33767 #undef $ac_func
33768
33769 /* Override any gcc2 internal prototype to avoid an error.  */
33770 #ifdef __cplusplus
33771 extern "C"
33772 {
33773 #endif
33774 /* We use char because int might match the return type of a gcc2
33775    builtin and then its argument prototype would still apply.  */
33776 char $ac_func ();
33777 /* The GNU C library defines this for functions which it implements
33778     to always fail with ENOSYS.  Some functions are actually named
33779     something starting with __ and the normal name is an alias.  */
33780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33781 choke me
33782 #else
33783 char (*f) () = $ac_func;
33784 #endif
33785 #ifdef __cplusplus
33786 }
33787 #endif
33788
33789 int
33790 main ()
33791 {
33792 return f != $ac_func;
33793   ;
33794   return 0;
33795 }
33796 _ACEOF
33797 rm -f conftest.$ac_objext conftest$ac_exeext
33798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33799   (eval $ac_link) 2>conftest.er1
33800   ac_status=$?
33801   grep -v '^ *+' conftest.er1 >conftest.err
33802   rm -f conftest.er1
33803   cat conftest.err >&5
33804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805   (exit $ac_status); } &&
33806          { ac_try='test -z "$ac_c_werror_flag"
33807                          || test ! -s conftest.err'
33808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33809   (eval $ac_try) 2>&5
33810   ac_status=$?
33811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812   (exit $ac_status); }; } &&
33813          { ac_try='test -s conftest$ac_exeext'
33814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815   (eval $ac_try) 2>&5
33816   ac_status=$?
33817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818   (exit $ac_status); }; }; then
33819   eval "$as_ac_var=yes"
33820 else
33821   echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33823
33824 eval "$as_ac_var=no"
33825 fi
33826 rm -f conftest.err conftest.$ac_objext \
33827       conftest$ac_exeext conftest.$ac_ext
33828 fi
33829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33831 if test `eval echo '${'$as_ac_var'}'` = yes; then
33832   cat >>confdefs.h <<_ACEOF
33833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33834 _ACEOF
33835
33836 fi
33837 done
33838
33839     fi
33840   fi
33841
33842
33843
33844   echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
33845 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
33846   if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
33847     if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
33848   echo $ECHO_N "(cached) $ECHO_C" >&6
33849 else
33850
33851
33852
33853       ac_ext=cc
33854 ac_cpp='$CXXCPP $CPPFLAGS'
33855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33858
33859       cat >conftest.$ac_ext <<_ACEOF
33860 /* confdefs.h.  */
33861 _ACEOF
33862 cat confdefs.h >>conftest.$ac_ext
33863 cat >>conftest.$ac_ext <<_ACEOF
33864 /* end confdefs.h.  */
33865 #include <math.h>
33866                       #ifdef HAVE_IEEEFP_H
33867                       #include <ieeefp.h>
33868                       #endif
33869
33870 int
33871 main ()
33872 {
33873  qfpclass(0);
33874   ;
33875   return 0;
33876 }
33877 _ACEOF
33878 rm -f conftest.$ac_objext
33879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33880   (eval $ac_compile) 2>conftest.er1
33881   ac_status=$?
33882   grep -v '^ *+' conftest.er1 >conftest.err
33883   rm -f conftest.er1
33884   cat conftest.err >&5
33885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886   (exit $ac_status); } &&
33887          { ac_try='test -z "$ac_cxx_werror_flag"
33888                          || test ! -s conftest.err'
33889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33890   (eval $ac_try) 2>&5
33891   ac_status=$?
33892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893   (exit $ac_status); }; } &&
33894          { ac_try='test -s conftest.$ac_objext'
33895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33896   (eval $ac_try) 2>&5
33897   ac_status=$?
33898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899   (exit $ac_status); }; }; then
33900   glibcxx_cv_func_qfpclass_use=yes
33901 else
33902   echo "$as_me: failed program was:" >&5
33903 sed 's/^/| /' conftest.$ac_ext >&5
33904
33905 glibcxx_cv_func_qfpclass_use=no
33906 fi
33907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33908       ac_ext=c
33909 ac_cpp='$CPP $CPPFLAGS'
33910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33913
33914
33915 fi
33916
33917   fi
33918   echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
33919 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
33920
33921   if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
33922
33923 for ac_func in qfpclass
33924 do
33925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33926 echo "$as_me:$LINENO: checking for $ac_func" >&5
33927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33928 if eval "test \"\${$as_ac_var+set}\" = set"; then
33929   echo $ECHO_N "(cached) $ECHO_C" >&6
33930 else
33931   if test x$gcc_no_link = xyes; then
33932   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33934    { (exit 1); exit 1; }; }
33935 fi
33936 cat >conftest.$ac_ext <<_ACEOF
33937 /* confdefs.h.  */
33938 _ACEOF
33939 cat confdefs.h >>conftest.$ac_ext
33940 cat >>conftest.$ac_ext <<_ACEOF
33941 /* end confdefs.h.  */
33942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33944 #define $ac_func innocuous_$ac_func
33945
33946 /* System header to define __stub macros and hopefully few prototypes,
33947     which can conflict with char $ac_func (); below.
33948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33949     <limits.h> exists even on freestanding compilers.  */
33950
33951 #ifdef __STDC__
33952 # include <limits.h>
33953 #else
33954 # include <assert.h>
33955 #endif
33956
33957 #undef $ac_func
33958
33959 /* Override any gcc2 internal prototype to avoid an error.  */
33960 #ifdef __cplusplus
33961 extern "C"
33962 {
33963 #endif
33964 /* We use char because int might match the return type of a gcc2
33965    builtin and then its argument prototype would still apply.  */
33966 char $ac_func ();
33967 /* The GNU C library defines this for functions which it implements
33968     to always fail with ENOSYS.  Some functions are actually named
33969     something starting with __ and the normal name is an alias.  */
33970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33971 choke me
33972 #else
33973 char (*f) () = $ac_func;
33974 #endif
33975 #ifdef __cplusplus
33976 }
33977 #endif
33978
33979 int
33980 main ()
33981 {
33982 return f != $ac_func;
33983   ;
33984   return 0;
33985 }
33986 _ACEOF
33987 rm -f conftest.$ac_objext conftest$ac_exeext
33988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33989   (eval $ac_link) 2>conftest.er1
33990   ac_status=$?
33991   grep -v '^ *+' conftest.er1 >conftest.err
33992   rm -f conftest.er1
33993   cat conftest.err >&5
33994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995   (exit $ac_status); } &&
33996          { ac_try='test -z "$ac_c_werror_flag"
33997                          || test ! -s conftest.err'
33998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999   (eval $ac_try) 2>&5
34000   ac_status=$?
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); }; } &&
34003          { ac_try='test -s conftest$ac_exeext'
34004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005   (eval $ac_try) 2>&5
34006   ac_status=$?
34007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008   (exit $ac_status); }; }; then
34009   eval "$as_ac_var=yes"
34010 else
34011   echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34013
34014 eval "$as_ac_var=no"
34015 fi
34016 rm -f conftest.err conftest.$ac_objext \
34017       conftest$ac_exeext conftest.$ac_ext
34018 fi
34019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34021 if test `eval echo '${'$as_ac_var'}'` = yes; then
34022   cat >>confdefs.h <<_ACEOF
34023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34024 _ACEOF
34025
34026 fi
34027 done
34028
34029   else
34030
34031   echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
34032 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
34033   if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
34034     if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
34035   echo $ECHO_N "(cached) $ECHO_C" >&6
34036 else
34037
34038
34039
34040       ac_ext=cc
34041 ac_cpp='$CXXCPP $CPPFLAGS'
34042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34045
34046       cat >conftest.$ac_ext <<_ACEOF
34047 /* confdefs.h.  */
34048 _ACEOF
34049 cat confdefs.h >>conftest.$ac_ext
34050 cat >>conftest.$ac_ext <<_ACEOF
34051 /* end confdefs.h.  */
34052 #include <math.h>
34053                       #ifdef HAVE_IEEEFP_H
34054                       #include <ieeefp.h>
34055                       #endif
34056
34057 int
34058 main ()
34059 {
34060  _qfpclass(0);
34061   ;
34062   return 0;
34063 }
34064 _ACEOF
34065 rm -f conftest.$ac_objext
34066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34067   (eval $ac_compile) 2>conftest.er1
34068   ac_status=$?
34069   grep -v '^ *+' conftest.er1 >conftest.err
34070   rm -f conftest.er1
34071   cat conftest.err >&5
34072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073   (exit $ac_status); } &&
34074          { ac_try='test -z "$ac_cxx_werror_flag"
34075                          || test ! -s conftest.err'
34076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34077   (eval $ac_try) 2>&5
34078   ac_status=$?
34079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080   (exit $ac_status); }; } &&
34081          { ac_try='test -s conftest.$ac_objext'
34082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34083   (eval $ac_try) 2>&5
34084   ac_status=$?
34085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086   (exit $ac_status); }; }; then
34087   glibcxx_cv_func__qfpclass_use=yes
34088 else
34089   echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34091
34092 glibcxx_cv_func__qfpclass_use=no
34093 fi
34094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34095       ac_ext=c
34096 ac_cpp='$CPP $CPPFLAGS'
34097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34100
34101
34102 fi
34103
34104   fi
34105   echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
34106 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
34107
34108     if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
34109
34110 for ac_func in _qfpclass
34111 do
34112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34113 echo "$as_me:$LINENO: checking for $ac_func" >&5
34114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34115 if eval "test \"\${$as_ac_var+set}\" = set"; then
34116   echo $ECHO_N "(cached) $ECHO_C" >&6
34117 else
34118   if test x$gcc_no_link = xyes; then
34119   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34121    { (exit 1); exit 1; }; }
34122 fi
34123 cat >conftest.$ac_ext <<_ACEOF
34124 /* confdefs.h.  */
34125 _ACEOF
34126 cat confdefs.h >>conftest.$ac_ext
34127 cat >>conftest.$ac_ext <<_ACEOF
34128 /* end confdefs.h.  */
34129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34131 #define $ac_func innocuous_$ac_func
34132
34133 /* System header to define __stub macros and hopefully few prototypes,
34134     which can conflict with char $ac_func (); below.
34135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34136     <limits.h> exists even on freestanding compilers.  */
34137
34138 #ifdef __STDC__
34139 # include <limits.h>
34140 #else
34141 # include <assert.h>
34142 #endif
34143
34144 #undef $ac_func
34145
34146 /* Override any gcc2 internal prototype to avoid an error.  */
34147 #ifdef __cplusplus
34148 extern "C"
34149 {
34150 #endif
34151 /* We use char because int might match the return type of a gcc2
34152    builtin and then its argument prototype would still apply.  */
34153 char $ac_func ();
34154 /* The GNU C library defines this for functions which it implements
34155     to always fail with ENOSYS.  Some functions are actually named
34156     something starting with __ and the normal name is an alias.  */
34157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34158 choke me
34159 #else
34160 char (*f) () = $ac_func;
34161 #endif
34162 #ifdef __cplusplus
34163 }
34164 #endif
34165
34166 int
34167 main ()
34168 {
34169 return f != $ac_func;
34170   ;
34171   return 0;
34172 }
34173 _ACEOF
34174 rm -f conftest.$ac_objext conftest$ac_exeext
34175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34176   (eval $ac_link) 2>conftest.er1
34177   ac_status=$?
34178   grep -v '^ *+' conftest.er1 >conftest.err
34179   rm -f conftest.er1
34180   cat conftest.err >&5
34181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182   (exit $ac_status); } &&
34183          { ac_try='test -z "$ac_c_werror_flag"
34184                          || test ! -s conftest.err'
34185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34186   (eval $ac_try) 2>&5
34187   ac_status=$?
34188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189   (exit $ac_status); }; } &&
34190          { ac_try='test -s conftest$ac_exeext'
34191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34192   (eval $ac_try) 2>&5
34193   ac_status=$?
34194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195   (exit $ac_status); }; }; then
34196   eval "$as_ac_var=yes"
34197 else
34198   echo "$as_me: failed program was:" >&5
34199 sed 's/^/| /' conftest.$ac_ext >&5
34200
34201 eval "$as_ac_var=no"
34202 fi
34203 rm -f conftest.err conftest.$ac_objext \
34204       conftest$ac_exeext conftest.$ac_ext
34205 fi
34206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34208 if test `eval echo '${'$as_ac_var'}'` = yes; then
34209   cat >>confdefs.h <<_ACEOF
34210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34211 _ACEOF
34212
34213 fi
34214 done
34215
34216     fi
34217   fi
34218
34219
34220
34221   echo "$as_me:$LINENO: checking for hypot declaration" >&5
34222 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
34223   if test x${glibcxx_cv_func_hypot_use+set} != xset; then
34224     if test "${glibcxx_cv_func_hypot_use+set}" = set; then
34225   echo $ECHO_N "(cached) $ECHO_C" >&6
34226 else
34227
34228
34229
34230       ac_ext=cc
34231 ac_cpp='$CXXCPP $CPPFLAGS'
34232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34235
34236       cat >conftest.$ac_ext <<_ACEOF
34237 /* confdefs.h.  */
34238 _ACEOF
34239 cat confdefs.h >>conftest.$ac_ext
34240 cat >>conftest.$ac_ext <<_ACEOF
34241 /* end confdefs.h.  */
34242 #include <math.h>
34243 int
34244 main ()
34245 {
34246  hypot(0, 0);
34247   ;
34248   return 0;
34249 }
34250 _ACEOF
34251 rm -f conftest.$ac_objext
34252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34253   (eval $ac_compile) 2>conftest.er1
34254   ac_status=$?
34255   grep -v '^ *+' conftest.er1 >conftest.err
34256   rm -f conftest.er1
34257   cat conftest.err >&5
34258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34259   (exit $ac_status); } &&
34260          { ac_try='test -z "$ac_cxx_werror_flag"
34261                          || test ! -s conftest.err'
34262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34263   (eval $ac_try) 2>&5
34264   ac_status=$?
34265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266   (exit $ac_status); }; } &&
34267          { ac_try='test -s conftest.$ac_objext'
34268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34269   (eval $ac_try) 2>&5
34270   ac_status=$?
34271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272   (exit $ac_status); }; }; then
34273   glibcxx_cv_func_hypot_use=yes
34274 else
34275   echo "$as_me: failed program was:" >&5
34276 sed 's/^/| /' conftest.$ac_ext >&5
34277
34278 glibcxx_cv_func_hypot_use=no
34279 fi
34280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34281       ac_ext=c
34282 ac_cpp='$CPP $CPPFLAGS'
34283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34286
34287
34288 fi
34289
34290   fi
34291   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
34292 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
34293
34294   if test x$glibcxx_cv_func_hypot_use = x"yes"; then
34295
34296 for ac_func in hypot
34297 do
34298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34299 echo "$as_me:$LINENO: checking for $ac_func" >&5
34300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34301 if eval "test \"\${$as_ac_var+set}\" = set"; then
34302   echo $ECHO_N "(cached) $ECHO_C" >&6
34303 else
34304   if test x$gcc_no_link = xyes; then
34305   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34307    { (exit 1); exit 1; }; }
34308 fi
34309 cat >conftest.$ac_ext <<_ACEOF
34310 /* confdefs.h.  */
34311 _ACEOF
34312 cat confdefs.h >>conftest.$ac_ext
34313 cat >>conftest.$ac_ext <<_ACEOF
34314 /* end confdefs.h.  */
34315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34317 #define $ac_func innocuous_$ac_func
34318
34319 /* System header to define __stub macros and hopefully few prototypes,
34320     which can conflict with char $ac_func (); below.
34321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34322     <limits.h> exists even on freestanding compilers.  */
34323
34324 #ifdef __STDC__
34325 # include <limits.h>
34326 #else
34327 # include <assert.h>
34328 #endif
34329
34330 #undef $ac_func
34331
34332 /* Override any gcc2 internal prototype to avoid an error.  */
34333 #ifdef __cplusplus
34334 extern "C"
34335 {
34336 #endif
34337 /* We use char because int might match the return type of a gcc2
34338    builtin and then its argument prototype would still apply.  */
34339 char $ac_func ();
34340 /* The GNU C library defines this for functions which it implements
34341     to always fail with ENOSYS.  Some functions are actually named
34342     something starting with __ and the normal name is an alias.  */
34343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34344 choke me
34345 #else
34346 char (*f) () = $ac_func;
34347 #endif
34348 #ifdef __cplusplus
34349 }
34350 #endif
34351
34352 int
34353 main ()
34354 {
34355 return f != $ac_func;
34356   ;
34357   return 0;
34358 }
34359 _ACEOF
34360 rm -f conftest.$ac_objext conftest$ac_exeext
34361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34362   (eval $ac_link) 2>conftest.er1
34363   ac_status=$?
34364   grep -v '^ *+' conftest.er1 >conftest.err
34365   rm -f conftest.er1
34366   cat conftest.err >&5
34367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368   (exit $ac_status); } &&
34369          { ac_try='test -z "$ac_c_werror_flag"
34370                          || test ! -s conftest.err'
34371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34372   (eval $ac_try) 2>&5
34373   ac_status=$?
34374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375   (exit $ac_status); }; } &&
34376          { ac_try='test -s conftest$ac_exeext'
34377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34378   (eval $ac_try) 2>&5
34379   ac_status=$?
34380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381   (exit $ac_status); }; }; then
34382   eval "$as_ac_var=yes"
34383 else
34384   echo "$as_me: failed program was:" >&5
34385 sed 's/^/| /' conftest.$ac_ext >&5
34386
34387 eval "$as_ac_var=no"
34388 fi
34389 rm -f conftest.err conftest.$ac_objext \
34390       conftest$ac_exeext conftest.$ac_ext
34391 fi
34392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34394 if test `eval echo '${'$as_ac_var'}'` = yes; then
34395   cat >>confdefs.h <<_ACEOF
34396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34397 _ACEOF
34398
34399 fi
34400 done
34401
34402   else
34403
34404   echo "$as_me:$LINENO: checking for _hypot declaration" >&5
34405 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
34406   if test x${glibcxx_cv_func__hypot_use+set} != xset; then
34407     if test "${glibcxx_cv_func__hypot_use+set}" = set; then
34408   echo $ECHO_N "(cached) $ECHO_C" >&6
34409 else
34410
34411
34412
34413       ac_ext=cc
34414 ac_cpp='$CXXCPP $CPPFLAGS'
34415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34418
34419       cat >conftest.$ac_ext <<_ACEOF
34420 /* confdefs.h.  */
34421 _ACEOF
34422 cat confdefs.h >>conftest.$ac_ext
34423 cat >>conftest.$ac_ext <<_ACEOF
34424 /* end confdefs.h.  */
34425 #include <math.h>
34426 int
34427 main ()
34428 {
34429  _hypot(0, 0);
34430   ;
34431   return 0;
34432 }
34433 _ACEOF
34434 rm -f conftest.$ac_objext
34435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34436   (eval $ac_compile) 2>conftest.er1
34437   ac_status=$?
34438   grep -v '^ *+' conftest.er1 >conftest.err
34439   rm -f conftest.er1
34440   cat conftest.err >&5
34441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442   (exit $ac_status); } &&
34443          { ac_try='test -z "$ac_cxx_werror_flag"
34444                          || test ! -s conftest.err'
34445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34446   (eval $ac_try) 2>&5
34447   ac_status=$?
34448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449   (exit $ac_status); }; } &&
34450          { ac_try='test -s conftest.$ac_objext'
34451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34452   (eval $ac_try) 2>&5
34453   ac_status=$?
34454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455   (exit $ac_status); }; }; then
34456   glibcxx_cv_func__hypot_use=yes
34457 else
34458   echo "$as_me: failed program was:" >&5
34459 sed 's/^/| /' conftest.$ac_ext >&5
34460
34461 glibcxx_cv_func__hypot_use=no
34462 fi
34463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34464       ac_ext=c
34465 ac_cpp='$CPP $CPPFLAGS'
34466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34469
34470
34471 fi
34472
34473   fi
34474   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
34475 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
34476
34477     if test x$glibcxx_cv_func__hypot_use = x"yes"; then
34478
34479 for ac_func in _hypot
34480 do
34481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34482 echo "$as_me:$LINENO: checking for $ac_func" >&5
34483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34484 if eval "test \"\${$as_ac_var+set}\" = set"; then
34485   echo $ECHO_N "(cached) $ECHO_C" >&6
34486 else
34487   if test x$gcc_no_link = xyes; then
34488   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34490    { (exit 1); exit 1; }; }
34491 fi
34492 cat >conftest.$ac_ext <<_ACEOF
34493 /* confdefs.h.  */
34494 _ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h.  */
34498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34500 #define $ac_func innocuous_$ac_func
34501
34502 /* System header to define __stub macros and hopefully few prototypes,
34503     which can conflict with char $ac_func (); below.
34504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34505     <limits.h> exists even on freestanding compilers.  */
34506
34507 #ifdef __STDC__
34508 # include <limits.h>
34509 #else
34510 # include <assert.h>
34511 #endif
34512
34513 #undef $ac_func
34514
34515 /* Override any gcc2 internal prototype to avoid an error.  */
34516 #ifdef __cplusplus
34517 extern "C"
34518 {
34519 #endif
34520 /* We use char because int might match the return type of a gcc2
34521    builtin and then its argument prototype would still apply.  */
34522 char $ac_func ();
34523 /* The GNU C library defines this for functions which it implements
34524     to always fail with ENOSYS.  Some functions are actually named
34525     something starting with __ and the normal name is an alias.  */
34526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34527 choke me
34528 #else
34529 char (*f) () = $ac_func;
34530 #endif
34531 #ifdef __cplusplus
34532 }
34533 #endif
34534
34535 int
34536 main ()
34537 {
34538 return f != $ac_func;
34539   ;
34540   return 0;
34541 }
34542 _ACEOF
34543 rm -f conftest.$ac_objext conftest$ac_exeext
34544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34545   (eval $ac_link) 2>conftest.er1
34546   ac_status=$?
34547   grep -v '^ *+' conftest.er1 >conftest.err
34548   rm -f conftest.er1
34549   cat conftest.err >&5
34550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551   (exit $ac_status); } &&
34552          { ac_try='test -z "$ac_c_werror_flag"
34553                          || test ! -s conftest.err'
34554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34555   (eval $ac_try) 2>&5
34556   ac_status=$?
34557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558   (exit $ac_status); }; } &&
34559          { ac_try='test -s conftest$ac_exeext'
34560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34561   (eval $ac_try) 2>&5
34562   ac_status=$?
34563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564   (exit $ac_status); }; }; then
34565   eval "$as_ac_var=yes"
34566 else
34567   echo "$as_me: failed program was:" >&5
34568 sed 's/^/| /' conftest.$ac_ext >&5
34569
34570 eval "$as_ac_var=no"
34571 fi
34572 rm -f conftest.err conftest.$ac_objext \
34573       conftest$ac_exeext conftest.$ac_ext
34574 fi
34575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34577 if test `eval echo '${'$as_ac_var'}'` = yes; then
34578   cat >>confdefs.h <<_ACEOF
34579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34580 _ACEOF
34581
34582 fi
34583 done
34584
34585     fi
34586   fi
34587
34588
34589
34590   echo "$as_me:$LINENO: checking for float trig functions" >&5
34591 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
34592   if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
34593   echo $ECHO_N "(cached) $ECHO_C" >&6
34594 else
34595
34596
34597
34598     ac_ext=cc
34599 ac_cpp='$CXXCPP $CPPFLAGS'
34600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34603
34604     cat >conftest.$ac_ext <<_ACEOF
34605 /* confdefs.h.  */
34606 _ACEOF
34607 cat confdefs.h >>conftest.$ac_ext
34608 cat >>conftest.$ac_ext <<_ACEOF
34609 /* end confdefs.h.  */
34610 #include <math.h>
34611 int
34612 main ()
34613 {
34614  `for x in acosf asinf atanf \
34615                                           cosf sinf tanf \
34616                                           coshf sinhf tanhf; do echo "$x (0);"; done`
34617   ;
34618   return 0;
34619 }
34620 _ACEOF
34621 rm -f conftest.$ac_objext
34622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34623   (eval $ac_compile) 2>conftest.er1
34624   ac_status=$?
34625   grep -v '^ *+' conftest.er1 >conftest.err
34626   rm -f conftest.er1
34627   cat conftest.err >&5
34628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629   (exit $ac_status); } &&
34630          { ac_try='test -z "$ac_cxx_werror_flag"
34631                          || test ! -s conftest.err'
34632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633   (eval $ac_try) 2>&5
34634   ac_status=$?
34635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636   (exit $ac_status); }; } &&
34637          { ac_try='test -s conftest.$ac_objext'
34638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34639   (eval $ac_try) 2>&5
34640   ac_status=$?
34641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642   (exit $ac_status); }; }; then
34643   glibcxx_cv_func_float_trig_use=yes
34644 else
34645   echo "$as_me: failed program was:" >&5
34646 sed 's/^/| /' conftest.$ac_ext >&5
34647
34648 glibcxx_cv_func_float_trig_use=no
34649 fi
34650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34651     ac_ext=c
34652 ac_cpp='$CPP $CPPFLAGS'
34653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34656
34657 fi
34658
34659   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
34660 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
34661   if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671 for ac_func in acosf asinf atanf \
34672                                           cosf sinf tanf \
34673                                           coshf sinhf tanhf
34674 do
34675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34676 echo "$as_me:$LINENO: checking for $ac_func" >&5
34677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34678 if eval "test \"\${$as_ac_var+set}\" = set"; then
34679   echo $ECHO_N "(cached) $ECHO_C" >&6
34680 else
34681   if test x$gcc_no_link = xyes; then
34682   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34684    { (exit 1); exit 1; }; }
34685 fi
34686 cat >conftest.$ac_ext <<_ACEOF
34687 /* confdefs.h.  */
34688 _ACEOF
34689 cat confdefs.h >>conftest.$ac_ext
34690 cat >>conftest.$ac_ext <<_ACEOF
34691 /* end confdefs.h.  */
34692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34694 #define $ac_func innocuous_$ac_func
34695
34696 /* System header to define __stub macros and hopefully few prototypes,
34697     which can conflict with char $ac_func (); below.
34698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34699     <limits.h> exists even on freestanding compilers.  */
34700
34701 #ifdef __STDC__
34702 # include <limits.h>
34703 #else
34704 # include <assert.h>
34705 #endif
34706
34707 #undef $ac_func
34708
34709 /* Override any gcc2 internal prototype to avoid an error.  */
34710 #ifdef __cplusplus
34711 extern "C"
34712 {
34713 #endif
34714 /* We use char because int might match the return type of a gcc2
34715    builtin and then its argument prototype would still apply.  */
34716 char $ac_func ();
34717 /* The GNU C library defines this for functions which it implements
34718     to always fail with ENOSYS.  Some functions are actually named
34719     something starting with __ and the normal name is an alias.  */
34720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34721 choke me
34722 #else
34723 char (*f) () = $ac_func;
34724 #endif
34725 #ifdef __cplusplus
34726 }
34727 #endif
34728
34729 int
34730 main ()
34731 {
34732 return f != $ac_func;
34733   ;
34734   return 0;
34735 }
34736 _ACEOF
34737 rm -f conftest.$ac_objext conftest$ac_exeext
34738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34739   (eval $ac_link) 2>conftest.er1
34740   ac_status=$?
34741   grep -v '^ *+' conftest.er1 >conftest.err
34742   rm -f conftest.er1
34743   cat conftest.err >&5
34744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745   (exit $ac_status); } &&
34746          { ac_try='test -z "$ac_c_werror_flag"
34747                          || test ! -s conftest.err'
34748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749   (eval $ac_try) 2>&5
34750   ac_status=$?
34751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752   (exit $ac_status); }; } &&
34753          { ac_try='test -s conftest$ac_exeext'
34754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755   (eval $ac_try) 2>&5
34756   ac_status=$?
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); }; }; then
34759   eval "$as_ac_var=yes"
34760 else
34761   echo "$as_me: failed program was:" >&5
34762 sed 's/^/| /' conftest.$ac_ext >&5
34763
34764 eval "$as_ac_var=no"
34765 fi
34766 rm -f conftest.err conftest.$ac_objext \
34767       conftest$ac_exeext conftest.$ac_ext
34768 fi
34769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34771 if test `eval echo '${'$as_ac_var'}'` = yes; then
34772   cat >>confdefs.h <<_ACEOF
34773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34774 _ACEOF
34775
34776 fi
34777 done
34778
34779   fi
34780
34781
34782   echo "$as_me:$LINENO: checking for float round functions" >&5
34783 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
34784   if test "${glibcxx_cv_func_float_round_use+set}" = set; then
34785   echo $ECHO_N "(cached) $ECHO_C" >&6
34786 else
34787
34788
34789
34790     ac_ext=cc
34791 ac_cpp='$CXXCPP $CPPFLAGS'
34792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34795
34796     cat >conftest.$ac_ext <<_ACEOF
34797 /* confdefs.h.  */
34798 _ACEOF
34799 cat confdefs.h >>conftest.$ac_ext
34800 cat >>conftest.$ac_ext <<_ACEOF
34801 /* end confdefs.h.  */
34802 #include <math.h>
34803 int
34804 main ()
34805 {
34806  `for x in ceilf floorf; do echo "$x (0);"; done`
34807   ;
34808   return 0;
34809 }
34810 _ACEOF
34811 rm -f conftest.$ac_objext
34812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34813   (eval $ac_compile) 2>conftest.er1
34814   ac_status=$?
34815   grep -v '^ *+' conftest.er1 >conftest.err
34816   rm -f conftest.er1
34817   cat conftest.err >&5
34818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819   (exit $ac_status); } &&
34820          { ac_try='test -z "$ac_cxx_werror_flag"
34821                          || test ! -s conftest.err'
34822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34823   (eval $ac_try) 2>&5
34824   ac_status=$?
34825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826   (exit $ac_status); }; } &&
34827          { ac_try='test -s conftest.$ac_objext'
34828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829   (eval $ac_try) 2>&5
34830   ac_status=$?
34831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832   (exit $ac_status); }; }; then
34833   glibcxx_cv_func_float_round_use=yes
34834 else
34835   echo "$as_me: failed program was:" >&5
34836 sed 's/^/| /' conftest.$ac_ext >&5
34837
34838 glibcxx_cv_func_float_round_use=no
34839 fi
34840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34841     ac_ext=c
34842 ac_cpp='$CPP $CPPFLAGS'
34843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34846
34847 fi
34848
34849   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
34850 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
34851   if test x$glibcxx_cv_func_float_round_use = x"yes"; then
34852
34853
34854 for ac_func in ceilf floorf
34855 do
34856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34857 echo "$as_me:$LINENO: checking for $ac_func" >&5
34858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34859 if eval "test \"\${$as_ac_var+set}\" = set"; then
34860   echo $ECHO_N "(cached) $ECHO_C" >&6
34861 else
34862   if test x$gcc_no_link = xyes; then
34863   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34865    { (exit 1); exit 1; }; }
34866 fi
34867 cat >conftest.$ac_ext <<_ACEOF
34868 /* confdefs.h.  */
34869 _ACEOF
34870 cat confdefs.h >>conftest.$ac_ext
34871 cat >>conftest.$ac_ext <<_ACEOF
34872 /* end confdefs.h.  */
34873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34875 #define $ac_func innocuous_$ac_func
34876
34877 /* System header to define __stub macros and hopefully few prototypes,
34878     which can conflict with char $ac_func (); below.
34879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34880     <limits.h> exists even on freestanding compilers.  */
34881
34882 #ifdef __STDC__
34883 # include <limits.h>
34884 #else
34885 # include <assert.h>
34886 #endif
34887
34888 #undef $ac_func
34889
34890 /* Override any gcc2 internal prototype to avoid an error.  */
34891 #ifdef __cplusplus
34892 extern "C"
34893 {
34894 #endif
34895 /* We use char because int might match the return type of a gcc2
34896    builtin and then its argument prototype would still apply.  */
34897 char $ac_func ();
34898 /* The GNU C library defines this for functions which it implements
34899     to always fail with ENOSYS.  Some functions are actually named
34900     something starting with __ and the normal name is an alias.  */
34901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34902 choke me
34903 #else
34904 char (*f) () = $ac_func;
34905 #endif
34906 #ifdef __cplusplus
34907 }
34908 #endif
34909
34910 int
34911 main ()
34912 {
34913 return f != $ac_func;
34914   ;
34915   return 0;
34916 }
34917 _ACEOF
34918 rm -f conftest.$ac_objext conftest$ac_exeext
34919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34920   (eval $ac_link) 2>conftest.er1
34921   ac_status=$?
34922   grep -v '^ *+' conftest.er1 >conftest.err
34923   rm -f conftest.er1
34924   cat conftest.err >&5
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); } &&
34927          { ac_try='test -z "$ac_c_werror_flag"
34928                          || test ! -s conftest.err'
34929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930   (eval $ac_try) 2>&5
34931   ac_status=$?
34932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933   (exit $ac_status); }; } &&
34934          { ac_try='test -s conftest$ac_exeext'
34935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34936   (eval $ac_try) 2>&5
34937   ac_status=$?
34938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939   (exit $ac_status); }; }; then
34940   eval "$as_ac_var=yes"
34941 else
34942   echo "$as_me: failed program was:" >&5
34943 sed 's/^/| /' conftest.$ac_ext >&5
34944
34945 eval "$as_ac_var=no"
34946 fi
34947 rm -f conftest.err conftest.$ac_objext \
34948       conftest$ac_exeext conftest.$ac_ext
34949 fi
34950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34952 if test `eval echo '${'$as_ac_var'}'` = yes; then
34953   cat >>confdefs.h <<_ACEOF
34954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34955 _ACEOF
34956
34957 fi
34958 done
34959
34960   fi
34961
34962
34963
34964   echo "$as_me:$LINENO: checking for expf declaration" >&5
34965 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
34966   if test x${glibcxx_cv_func_expf_use+set} != xset; then
34967     if test "${glibcxx_cv_func_expf_use+set}" = set; then
34968   echo $ECHO_N "(cached) $ECHO_C" >&6
34969 else
34970
34971
34972
34973       ac_ext=cc
34974 ac_cpp='$CXXCPP $CPPFLAGS'
34975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34978
34979       cat >conftest.$ac_ext <<_ACEOF
34980 /* confdefs.h.  */
34981 _ACEOF
34982 cat confdefs.h >>conftest.$ac_ext
34983 cat >>conftest.$ac_ext <<_ACEOF
34984 /* end confdefs.h.  */
34985 #include <math.h>
34986                       #ifdef HAVE_IEEEFP_H
34987                       #include <ieeefp.h>
34988                       #endif
34989
34990 int
34991 main ()
34992 {
34993  expf(0);
34994   ;
34995   return 0;
34996 }
34997 _ACEOF
34998 rm -f conftest.$ac_objext
34999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35000   (eval $ac_compile) 2>conftest.er1
35001   ac_status=$?
35002   grep -v '^ *+' conftest.er1 >conftest.err
35003   rm -f conftest.er1
35004   cat conftest.err >&5
35005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006   (exit $ac_status); } &&
35007          { ac_try='test -z "$ac_cxx_werror_flag"
35008                          || test ! -s conftest.err'
35009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35010   (eval $ac_try) 2>&5
35011   ac_status=$?
35012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013   (exit $ac_status); }; } &&
35014          { ac_try='test -s conftest.$ac_objext'
35015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35016   (eval $ac_try) 2>&5
35017   ac_status=$?
35018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019   (exit $ac_status); }; }; then
35020   glibcxx_cv_func_expf_use=yes
35021 else
35022   echo "$as_me: failed program was:" >&5
35023 sed 's/^/| /' conftest.$ac_ext >&5
35024
35025 glibcxx_cv_func_expf_use=no
35026 fi
35027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35028       ac_ext=c
35029 ac_cpp='$CPP $CPPFLAGS'
35030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35033
35034
35035 fi
35036
35037   fi
35038   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
35039 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
35040
35041   if test x$glibcxx_cv_func_expf_use = x"yes"; then
35042
35043 for ac_func in expf
35044 do
35045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35046 echo "$as_me:$LINENO: checking for $ac_func" >&5
35047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35048 if eval "test \"\${$as_ac_var+set}\" = set"; then
35049   echo $ECHO_N "(cached) $ECHO_C" >&6
35050 else
35051   if test x$gcc_no_link = xyes; then
35052   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35054    { (exit 1); exit 1; }; }
35055 fi
35056 cat >conftest.$ac_ext <<_ACEOF
35057 /* confdefs.h.  */
35058 _ACEOF
35059 cat confdefs.h >>conftest.$ac_ext
35060 cat >>conftest.$ac_ext <<_ACEOF
35061 /* end confdefs.h.  */
35062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35064 #define $ac_func innocuous_$ac_func
35065
35066 /* System header to define __stub macros and hopefully few prototypes,
35067     which can conflict with char $ac_func (); below.
35068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35069     <limits.h> exists even on freestanding compilers.  */
35070
35071 #ifdef __STDC__
35072 # include <limits.h>
35073 #else
35074 # include <assert.h>
35075 #endif
35076
35077 #undef $ac_func
35078
35079 /* Override any gcc2 internal prototype to avoid an error.  */
35080 #ifdef __cplusplus
35081 extern "C"
35082 {
35083 #endif
35084 /* We use char because int might match the return type of a gcc2
35085    builtin and then its argument prototype would still apply.  */
35086 char $ac_func ();
35087 /* The GNU C library defines this for functions which it implements
35088     to always fail with ENOSYS.  Some functions are actually named
35089     something starting with __ and the normal name is an alias.  */
35090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35091 choke me
35092 #else
35093 char (*f) () = $ac_func;
35094 #endif
35095 #ifdef __cplusplus
35096 }
35097 #endif
35098
35099 int
35100 main ()
35101 {
35102 return f != $ac_func;
35103   ;
35104   return 0;
35105 }
35106 _ACEOF
35107 rm -f conftest.$ac_objext conftest$ac_exeext
35108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35109   (eval $ac_link) 2>conftest.er1
35110   ac_status=$?
35111   grep -v '^ *+' conftest.er1 >conftest.err
35112   rm -f conftest.er1
35113   cat conftest.err >&5
35114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115   (exit $ac_status); } &&
35116          { ac_try='test -z "$ac_c_werror_flag"
35117                          || test ! -s conftest.err'
35118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119   (eval $ac_try) 2>&5
35120   ac_status=$?
35121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122   (exit $ac_status); }; } &&
35123          { ac_try='test -s conftest$ac_exeext'
35124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35125   (eval $ac_try) 2>&5
35126   ac_status=$?
35127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128   (exit $ac_status); }; }; then
35129   eval "$as_ac_var=yes"
35130 else
35131   echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35133
35134 eval "$as_ac_var=no"
35135 fi
35136 rm -f conftest.err conftest.$ac_objext \
35137       conftest$ac_exeext conftest.$ac_ext
35138 fi
35139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35141 if test `eval echo '${'$as_ac_var'}'` = yes; then
35142   cat >>confdefs.h <<_ACEOF
35143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35144 _ACEOF
35145
35146 fi
35147 done
35148
35149   else
35150
35151   echo "$as_me:$LINENO: checking for _expf declaration" >&5
35152 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
35153   if test x${glibcxx_cv_func__expf_use+set} != xset; then
35154     if test "${glibcxx_cv_func__expf_use+set}" = set; then
35155   echo $ECHO_N "(cached) $ECHO_C" >&6
35156 else
35157
35158
35159
35160       ac_ext=cc
35161 ac_cpp='$CXXCPP $CPPFLAGS'
35162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35165
35166       cat >conftest.$ac_ext <<_ACEOF
35167 /* confdefs.h.  */
35168 _ACEOF
35169 cat confdefs.h >>conftest.$ac_ext
35170 cat >>conftest.$ac_ext <<_ACEOF
35171 /* end confdefs.h.  */
35172 #include <math.h>
35173                       #ifdef HAVE_IEEEFP_H
35174                       #include <ieeefp.h>
35175                       #endif
35176
35177 int
35178 main ()
35179 {
35180  _expf(0);
35181   ;
35182   return 0;
35183 }
35184 _ACEOF
35185 rm -f conftest.$ac_objext
35186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35187   (eval $ac_compile) 2>conftest.er1
35188   ac_status=$?
35189   grep -v '^ *+' conftest.er1 >conftest.err
35190   rm -f conftest.er1
35191   cat conftest.err >&5
35192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193   (exit $ac_status); } &&
35194          { ac_try='test -z "$ac_cxx_werror_flag"
35195                          || test ! -s conftest.err'
35196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35197   (eval $ac_try) 2>&5
35198   ac_status=$?
35199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200   (exit $ac_status); }; } &&
35201          { ac_try='test -s conftest.$ac_objext'
35202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35203   (eval $ac_try) 2>&5
35204   ac_status=$?
35205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206   (exit $ac_status); }; }; then
35207   glibcxx_cv_func__expf_use=yes
35208 else
35209   echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35211
35212 glibcxx_cv_func__expf_use=no
35213 fi
35214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35215       ac_ext=c
35216 ac_cpp='$CPP $CPPFLAGS'
35217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35220
35221
35222 fi
35223
35224   fi
35225   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
35226 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
35227
35228     if test x$glibcxx_cv_func__expf_use = x"yes"; then
35229
35230 for ac_func in _expf
35231 do
35232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35233 echo "$as_me:$LINENO: checking for $ac_func" >&5
35234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35235 if eval "test \"\${$as_ac_var+set}\" = set"; then
35236   echo $ECHO_N "(cached) $ECHO_C" >&6
35237 else
35238   if test x$gcc_no_link = xyes; then
35239   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35240 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35241    { (exit 1); exit 1; }; }
35242 fi
35243 cat >conftest.$ac_ext <<_ACEOF
35244 /* confdefs.h.  */
35245 _ACEOF
35246 cat confdefs.h >>conftest.$ac_ext
35247 cat >>conftest.$ac_ext <<_ACEOF
35248 /* end confdefs.h.  */
35249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35251 #define $ac_func innocuous_$ac_func
35252
35253 /* System header to define __stub macros and hopefully few prototypes,
35254     which can conflict with char $ac_func (); below.
35255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35256     <limits.h> exists even on freestanding compilers.  */
35257
35258 #ifdef __STDC__
35259 # include <limits.h>
35260 #else
35261 # include <assert.h>
35262 #endif
35263
35264 #undef $ac_func
35265
35266 /* Override any gcc2 internal prototype to avoid an error.  */
35267 #ifdef __cplusplus
35268 extern "C"
35269 {
35270 #endif
35271 /* We use char because int might match the return type of a gcc2
35272    builtin and then its argument prototype would still apply.  */
35273 char $ac_func ();
35274 /* The GNU C library defines this for functions which it implements
35275     to always fail with ENOSYS.  Some functions are actually named
35276     something starting with __ and the normal name is an alias.  */
35277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35278 choke me
35279 #else
35280 char (*f) () = $ac_func;
35281 #endif
35282 #ifdef __cplusplus
35283 }
35284 #endif
35285
35286 int
35287 main ()
35288 {
35289 return f != $ac_func;
35290   ;
35291   return 0;
35292 }
35293 _ACEOF
35294 rm -f conftest.$ac_objext conftest$ac_exeext
35295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35296   (eval $ac_link) 2>conftest.er1
35297   ac_status=$?
35298   grep -v '^ *+' conftest.er1 >conftest.err
35299   rm -f conftest.er1
35300   cat conftest.err >&5
35301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302   (exit $ac_status); } &&
35303          { ac_try='test -z "$ac_c_werror_flag"
35304                          || test ! -s conftest.err'
35305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35306   (eval $ac_try) 2>&5
35307   ac_status=$?
35308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309   (exit $ac_status); }; } &&
35310          { ac_try='test -s conftest$ac_exeext'
35311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312   (eval $ac_try) 2>&5
35313   ac_status=$?
35314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315   (exit $ac_status); }; }; then
35316   eval "$as_ac_var=yes"
35317 else
35318   echo "$as_me: failed program was:" >&5
35319 sed 's/^/| /' conftest.$ac_ext >&5
35320
35321 eval "$as_ac_var=no"
35322 fi
35323 rm -f conftest.err conftest.$ac_objext \
35324       conftest$ac_exeext conftest.$ac_ext
35325 fi
35326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35328 if test `eval echo '${'$as_ac_var'}'` = yes; then
35329   cat >>confdefs.h <<_ACEOF
35330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35331 _ACEOF
35332
35333 fi
35334 done
35335
35336     fi
35337   fi
35338
35339
35340
35341   echo "$as_me:$LINENO: checking for isnanf declaration" >&5
35342 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
35343   if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
35344     if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
35345   echo $ECHO_N "(cached) $ECHO_C" >&6
35346 else
35347
35348
35349
35350       ac_ext=cc
35351 ac_cpp='$CXXCPP $CPPFLAGS'
35352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35355
35356       cat >conftest.$ac_ext <<_ACEOF
35357 /* confdefs.h.  */
35358 _ACEOF
35359 cat confdefs.h >>conftest.$ac_ext
35360 cat >>conftest.$ac_ext <<_ACEOF
35361 /* end confdefs.h.  */
35362 #include <math.h>
35363                       #ifdef HAVE_IEEEFP_H
35364                       #include <ieeefp.h>
35365                       #endif
35366
35367 int
35368 main ()
35369 {
35370  isnanf(0);
35371   ;
35372   return 0;
35373 }
35374 _ACEOF
35375 rm -f conftest.$ac_objext
35376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35377   (eval $ac_compile) 2>conftest.er1
35378   ac_status=$?
35379   grep -v '^ *+' conftest.er1 >conftest.err
35380   rm -f conftest.er1
35381   cat conftest.err >&5
35382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35383   (exit $ac_status); } &&
35384          { ac_try='test -z "$ac_cxx_werror_flag"
35385                          || test ! -s conftest.err'
35386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387   (eval $ac_try) 2>&5
35388   ac_status=$?
35389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390   (exit $ac_status); }; } &&
35391          { ac_try='test -s conftest.$ac_objext'
35392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35393   (eval $ac_try) 2>&5
35394   ac_status=$?
35395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396   (exit $ac_status); }; }; then
35397   glibcxx_cv_func_isnanf_use=yes
35398 else
35399   echo "$as_me: failed program was:" >&5
35400 sed 's/^/| /' conftest.$ac_ext >&5
35401
35402 glibcxx_cv_func_isnanf_use=no
35403 fi
35404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35405       ac_ext=c
35406 ac_cpp='$CPP $CPPFLAGS'
35407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35410
35411
35412 fi
35413
35414   fi
35415   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
35416 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
35417
35418   if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
35419
35420 for ac_func in isnanf
35421 do
35422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35423 echo "$as_me:$LINENO: checking for $ac_func" >&5
35424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35425 if eval "test \"\${$as_ac_var+set}\" = set"; then
35426   echo $ECHO_N "(cached) $ECHO_C" >&6
35427 else
35428   if test x$gcc_no_link = xyes; then
35429   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35431    { (exit 1); exit 1; }; }
35432 fi
35433 cat >conftest.$ac_ext <<_ACEOF
35434 /* confdefs.h.  */
35435 _ACEOF
35436 cat confdefs.h >>conftest.$ac_ext
35437 cat >>conftest.$ac_ext <<_ACEOF
35438 /* end confdefs.h.  */
35439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35441 #define $ac_func innocuous_$ac_func
35442
35443 /* System header to define __stub macros and hopefully few prototypes,
35444     which can conflict with char $ac_func (); below.
35445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35446     <limits.h> exists even on freestanding compilers.  */
35447
35448 #ifdef __STDC__
35449 # include <limits.h>
35450 #else
35451 # include <assert.h>
35452 #endif
35453
35454 #undef $ac_func
35455
35456 /* Override any gcc2 internal prototype to avoid an error.  */
35457 #ifdef __cplusplus
35458 extern "C"
35459 {
35460 #endif
35461 /* We use char because int might match the return type of a gcc2
35462    builtin and then its argument prototype would still apply.  */
35463 char $ac_func ();
35464 /* The GNU C library defines this for functions which it implements
35465     to always fail with ENOSYS.  Some functions are actually named
35466     something starting with __ and the normal name is an alias.  */
35467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35468 choke me
35469 #else
35470 char (*f) () = $ac_func;
35471 #endif
35472 #ifdef __cplusplus
35473 }
35474 #endif
35475
35476 int
35477 main ()
35478 {
35479 return f != $ac_func;
35480   ;
35481   return 0;
35482 }
35483 _ACEOF
35484 rm -f conftest.$ac_objext conftest$ac_exeext
35485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35486   (eval $ac_link) 2>conftest.er1
35487   ac_status=$?
35488   grep -v '^ *+' conftest.er1 >conftest.err
35489   rm -f conftest.er1
35490   cat conftest.err >&5
35491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35492   (exit $ac_status); } &&
35493          { ac_try='test -z "$ac_c_werror_flag"
35494                          || test ! -s conftest.err'
35495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35496   (eval $ac_try) 2>&5
35497   ac_status=$?
35498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35499   (exit $ac_status); }; } &&
35500          { ac_try='test -s conftest$ac_exeext'
35501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35502   (eval $ac_try) 2>&5
35503   ac_status=$?
35504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505   (exit $ac_status); }; }; then
35506   eval "$as_ac_var=yes"
35507 else
35508   echo "$as_me: failed program was:" >&5
35509 sed 's/^/| /' conftest.$ac_ext >&5
35510
35511 eval "$as_ac_var=no"
35512 fi
35513 rm -f conftest.err conftest.$ac_objext \
35514       conftest$ac_exeext conftest.$ac_ext
35515 fi
35516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35518 if test `eval echo '${'$as_ac_var'}'` = yes; then
35519   cat >>confdefs.h <<_ACEOF
35520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35521 _ACEOF
35522
35523 fi
35524 done
35525
35526   else
35527
35528   echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
35529 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
35530   if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
35531     if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
35532   echo $ECHO_N "(cached) $ECHO_C" >&6
35533 else
35534
35535
35536
35537       ac_ext=cc
35538 ac_cpp='$CXXCPP $CPPFLAGS'
35539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35542
35543       cat >conftest.$ac_ext <<_ACEOF
35544 /* confdefs.h.  */
35545 _ACEOF
35546 cat confdefs.h >>conftest.$ac_ext
35547 cat >>conftest.$ac_ext <<_ACEOF
35548 /* end confdefs.h.  */
35549 #include <math.h>
35550                       #ifdef HAVE_IEEEFP_H
35551                       #include <ieeefp.h>
35552                       #endif
35553
35554 int
35555 main ()
35556 {
35557  _isnanf(0);
35558   ;
35559   return 0;
35560 }
35561 _ACEOF
35562 rm -f conftest.$ac_objext
35563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35564   (eval $ac_compile) 2>conftest.er1
35565   ac_status=$?
35566   grep -v '^ *+' conftest.er1 >conftest.err
35567   rm -f conftest.er1
35568   cat conftest.err >&5
35569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570   (exit $ac_status); } &&
35571          { ac_try='test -z "$ac_cxx_werror_flag"
35572                          || test ! -s conftest.err'
35573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35574   (eval $ac_try) 2>&5
35575   ac_status=$?
35576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577   (exit $ac_status); }; } &&
35578          { ac_try='test -s conftest.$ac_objext'
35579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35580   (eval $ac_try) 2>&5
35581   ac_status=$?
35582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583   (exit $ac_status); }; }; then
35584   glibcxx_cv_func__isnanf_use=yes
35585 else
35586   echo "$as_me: failed program was:" >&5
35587 sed 's/^/| /' conftest.$ac_ext >&5
35588
35589 glibcxx_cv_func__isnanf_use=no
35590 fi
35591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35592       ac_ext=c
35593 ac_cpp='$CPP $CPPFLAGS'
35594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35597
35598
35599 fi
35600
35601   fi
35602   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
35603 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
35604
35605     if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
35606
35607 for ac_func in _isnanf
35608 do
35609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35610 echo "$as_me:$LINENO: checking for $ac_func" >&5
35611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35612 if eval "test \"\${$as_ac_var+set}\" = set"; then
35613   echo $ECHO_N "(cached) $ECHO_C" >&6
35614 else
35615   if test x$gcc_no_link = xyes; then
35616   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35618    { (exit 1); exit 1; }; }
35619 fi
35620 cat >conftest.$ac_ext <<_ACEOF
35621 /* confdefs.h.  */
35622 _ACEOF
35623 cat confdefs.h >>conftest.$ac_ext
35624 cat >>conftest.$ac_ext <<_ACEOF
35625 /* end confdefs.h.  */
35626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35628 #define $ac_func innocuous_$ac_func
35629
35630 /* System header to define __stub macros and hopefully few prototypes,
35631     which can conflict with char $ac_func (); below.
35632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35633     <limits.h> exists even on freestanding compilers.  */
35634
35635 #ifdef __STDC__
35636 # include <limits.h>
35637 #else
35638 # include <assert.h>
35639 #endif
35640
35641 #undef $ac_func
35642
35643 /* Override any gcc2 internal prototype to avoid an error.  */
35644 #ifdef __cplusplus
35645 extern "C"
35646 {
35647 #endif
35648 /* We use char because int might match the return type of a gcc2
35649    builtin and then its argument prototype would still apply.  */
35650 char $ac_func ();
35651 /* The GNU C library defines this for functions which it implements
35652     to always fail with ENOSYS.  Some functions are actually named
35653     something starting with __ and the normal name is an alias.  */
35654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35655 choke me
35656 #else
35657 char (*f) () = $ac_func;
35658 #endif
35659 #ifdef __cplusplus
35660 }
35661 #endif
35662
35663 int
35664 main ()
35665 {
35666 return f != $ac_func;
35667   ;
35668   return 0;
35669 }
35670 _ACEOF
35671 rm -f conftest.$ac_objext conftest$ac_exeext
35672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35673   (eval $ac_link) 2>conftest.er1
35674   ac_status=$?
35675   grep -v '^ *+' conftest.er1 >conftest.err
35676   rm -f conftest.er1
35677   cat conftest.err >&5
35678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679   (exit $ac_status); } &&
35680          { ac_try='test -z "$ac_c_werror_flag"
35681                          || test ! -s conftest.err'
35682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683   (eval $ac_try) 2>&5
35684   ac_status=$?
35685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); }; } &&
35687          { ac_try='test -s conftest$ac_exeext'
35688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689   (eval $ac_try) 2>&5
35690   ac_status=$?
35691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692   (exit $ac_status); }; }; then
35693   eval "$as_ac_var=yes"
35694 else
35695   echo "$as_me: failed program was:" >&5
35696 sed 's/^/| /' conftest.$ac_ext >&5
35697
35698 eval "$as_ac_var=no"
35699 fi
35700 rm -f conftest.err conftest.$ac_objext \
35701       conftest$ac_exeext conftest.$ac_ext
35702 fi
35703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35705 if test `eval echo '${'$as_ac_var'}'` = yes; then
35706   cat >>confdefs.h <<_ACEOF
35707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35708 _ACEOF
35709
35710 fi
35711 done
35712
35713     fi
35714   fi
35715
35716
35717
35718   echo "$as_me:$LINENO: checking for isinff declaration" >&5
35719 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
35720   if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35721     if test "${glibcxx_cv_func_isinff_use+set}" = set; then
35722   echo $ECHO_N "(cached) $ECHO_C" >&6
35723 else
35724
35725
35726
35727       ac_ext=cc
35728 ac_cpp='$CXXCPP $CPPFLAGS'
35729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35732
35733       cat >conftest.$ac_ext <<_ACEOF
35734 /* confdefs.h.  */
35735 _ACEOF
35736 cat confdefs.h >>conftest.$ac_ext
35737 cat >>conftest.$ac_ext <<_ACEOF
35738 /* end confdefs.h.  */
35739 #include <math.h>
35740                       #ifdef HAVE_IEEEFP_H
35741                       #include <ieeefp.h>
35742                       #endif
35743
35744 int
35745 main ()
35746 {
35747  isinff(0);
35748   ;
35749   return 0;
35750 }
35751 _ACEOF
35752 rm -f conftest.$ac_objext
35753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35754   (eval $ac_compile) 2>conftest.er1
35755   ac_status=$?
35756   grep -v '^ *+' conftest.er1 >conftest.err
35757   rm -f conftest.er1
35758   cat conftest.err >&5
35759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760   (exit $ac_status); } &&
35761          { ac_try='test -z "$ac_cxx_werror_flag"
35762                          || test ! -s conftest.err'
35763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35764   (eval $ac_try) 2>&5
35765   ac_status=$?
35766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35767   (exit $ac_status); }; } &&
35768          { ac_try='test -s conftest.$ac_objext'
35769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35770   (eval $ac_try) 2>&5
35771   ac_status=$?
35772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773   (exit $ac_status); }; }; then
35774   glibcxx_cv_func_isinff_use=yes
35775 else
35776   echo "$as_me: failed program was:" >&5
35777 sed 's/^/| /' conftest.$ac_ext >&5
35778
35779 glibcxx_cv_func_isinff_use=no
35780 fi
35781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35782       ac_ext=c
35783 ac_cpp='$CPP $CPPFLAGS'
35784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35787
35788
35789 fi
35790
35791   fi
35792   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
35793 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
35794
35795   if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35796
35797 for ac_func in isinff
35798 do
35799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35800 echo "$as_me:$LINENO: checking for $ac_func" >&5
35801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35802 if eval "test \"\${$as_ac_var+set}\" = set"; then
35803   echo $ECHO_N "(cached) $ECHO_C" >&6
35804 else
35805   if test x$gcc_no_link = xyes; then
35806   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35808    { (exit 1); exit 1; }; }
35809 fi
35810 cat >conftest.$ac_ext <<_ACEOF
35811 /* confdefs.h.  */
35812 _ACEOF
35813 cat confdefs.h >>conftest.$ac_ext
35814 cat >>conftest.$ac_ext <<_ACEOF
35815 /* end confdefs.h.  */
35816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35818 #define $ac_func innocuous_$ac_func
35819
35820 /* System header to define __stub macros and hopefully few prototypes,
35821     which can conflict with char $ac_func (); below.
35822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35823     <limits.h> exists even on freestanding compilers.  */
35824
35825 #ifdef __STDC__
35826 # include <limits.h>
35827 #else
35828 # include <assert.h>
35829 #endif
35830
35831 #undef $ac_func
35832
35833 /* Override any gcc2 internal prototype to avoid an error.  */
35834 #ifdef __cplusplus
35835 extern "C"
35836 {
35837 #endif
35838 /* We use char because int might match the return type of a gcc2
35839    builtin and then its argument prototype would still apply.  */
35840 char $ac_func ();
35841 /* The GNU C library defines this for functions which it implements
35842     to always fail with ENOSYS.  Some functions are actually named
35843     something starting with __ and the normal name is an alias.  */
35844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35845 choke me
35846 #else
35847 char (*f) () = $ac_func;
35848 #endif
35849 #ifdef __cplusplus
35850 }
35851 #endif
35852
35853 int
35854 main ()
35855 {
35856 return f != $ac_func;
35857   ;
35858   return 0;
35859 }
35860 _ACEOF
35861 rm -f conftest.$ac_objext conftest$ac_exeext
35862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35863   (eval $ac_link) 2>conftest.er1
35864   ac_status=$?
35865   grep -v '^ *+' conftest.er1 >conftest.err
35866   rm -f conftest.er1
35867   cat conftest.err >&5
35868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869   (exit $ac_status); } &&
35870          { ac_try='test -z "$ac_c_werror_flag"
35871                          || test ! -s conftest.err'
35872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35873   (eval $ac_try) 2>&5
35874   ac_status=$?
35875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876   (exit $ac_status); }; } &&
35877          { ac_try='test -s conftest$ac_exeext'
35878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35879   (eval $ac_try) 2>&5
35880   ac_status=$?
35881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882   (exit $ac_status); }; }; then
35883   eval "$as_ac_var=yes"
35884 else
35885   echo "$as_me: failed program was:" >&5
35886 sed 's/^/| /' conftest.$ac_ext >&5
35887
35888 eval "$as_ac_var=no"
35889 fi
35890 rm -f conftest.err conftest.$ac_objext \
35891       conftest$ac_exeext conftest.$ac_ext
35892 fi
35893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35895 if test `eval echo '${'$as_ac_var'}'` = yes; then
35896   cat >>confdefs.h <<_ACEOF
35897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35898 _ACEOF
35899
35900 fi
35901 done
35902
35903   else
35904
35905   echo "$as_me:$LINENO: checking for _isinff declaration" >&5
35906 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
35907   if test x${glibcxx_cv_func__isinff_use+set} != xset; then
35908     if test "${glibcxx_cv_func__isinff_use+set}" = set; then
35909   echo $ECHO_N "(cached) $ECHO_C" >&6
35910 else
35911
35912
35913
35914       ac_ext=cc
35915 ac_cpp='$CXXCPP $CPPFLAGS'
35916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35919
35920       cat >conftest.$ac_ext <<_ACEOF
35921 /* confdefs.h.  */
35922 _ACEOF
35923 cat confdefs.h >>conftest.$ac_ext
35924 cat >>conftest.$ac_ext <<_ACEOF
35925 /* end confdefs.h.  */
35926 #include <math.h>
35927                       #ifdef HAVE_IEEEFP_H
35928                       #include <ieeefp.h>
35929                       #endif
35930
35931 int
35932 main ()
35933 {
35934  _isinff(0);
35935   ;
35936   return 0;
35937 }
35938 _ACEOF
35939 rm -f conftest.$ac_objext
35940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35941   (eval $ac_compile) 2>conftest.er1
35942   ac_status=$?
35943   grep -v '^ *+' conftest.er1 >conftest.err
35944   rm -f conftest.er1
35945   cat conftest.err >&5
35946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947   (exit $ac_status); } &&
35948          { ac_try='test -z "$ac_cxx_werror_flag"
35949                          || test ! -s conftest.err'
35950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951   (eval $ac_try) 2>&5
35952   ac_status=$?
35953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954   (exit $ac_status); }; } &&
35955          { ac_try='test -s conftest.$ac_objext'
35956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35957   (eval $ac_try) 2>&5
35958   ac_status=$?
35959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35960   (exit $ac_status); }; }; then
35961   glibcxx_cv_func__isinff_use=yes
35962 else
35963   echo "$as_me: failed program was:" >&5
35964 sed 's/^/| /' conftest.$ac_ext >&5
35965
35966 glibcxx_cv_func__isinff_use=no
35967 fi
35968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35969       ac_ext=c
35970 ac_cpp='$CPP $CPPFLAGS'
35971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35974
35975
35976 fi
35977
35978   fi
35979   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
35980 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
35981
35982     if test x$glibcxx_cv_func__isinff_use = x"yes"; then
35983
35984 for ac_func in _isinff
35985 do
35986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35987 echo "$as_me:$LINENO: checking for $ac_func" >&5
35988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35989 if eval "test \"\${$as_ac_var+set}\" = set"; then
35990   echo $ECHO_N "(cached) $ECHO_C" >&6
35991 else
35992   if test x$gcc_no_link = xyes; then
35993   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35994 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35995    { (exit 1); exit 1; }; }
35996 fi
35997 cat >conftest.$ac_ext <<_ACEOF
35998 /* confdefs.h.  */
35999 _ACEOF
36000 cat confdefs.h >>conftest.$ac_ext
36001 cat >>conftest.$ac_ext <<_ACEOF
36002 /* end confdefs.h.  */
36003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36005 #define $ac_func innocuous_$ac_func
36006
36007 /* System header to define __stub macros and hopefully few prototypes,
36008     which can conflict with char $ac_func (); below.
36009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36010     <limits.h> exists even on freestanding compilers.  */
36011
36012 #ifdef __STDC__
36013 # include <limits.h>
36014 #else
36015 # include <assert.h>
36016 #endif
36017
36018 #undef $ac_func
36019
36020 /* Override any gcc2 internal prototype to avoid an error.  */
36021 #ifdef __cplusplus
36022 extern "C"
36023 {
36024 #endif
36025 /* We use char because int might match the return type of a gcc2
36026    builtin and then its argument prototype would still apply.  */
36027 char $ac_func ();
36028 /* The GNU C library defines this for functions which it implements
36029     to always fail with ENOSYS.  Some functions are actually named
36030     something starting with __ and the normal name is an alias.  */
36031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36032 choke me
36033 #else
36034 char (*f) () = $ac_func;
36035 #endif
36036 #ifdef __cplusplus
36037 }
36038 #endif
36039
36040 int
36041 main ()
36042 {
36043 return f != $ac_func;
36044   ;
36045   return 0;
36046 }
36047 _ACEOF
36048 rm -f conftest.$ac_objext conftest$ac_exeext
36049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36050   (eval $ac_link) 2>conftest.er1
36051   ac_status=$?
36052   grep -v '^ *+' conftest.er1 >conftest.err
36053   rm -f conftest.er1
36054   cat conftest.err >&5
36055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056   (exit $ac_status); } &&
36057          { ac_try='test -z "$ac_c_werror_flag"
36058                          || test ! -s conftest.err'
36059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36060   (eval $ac_try) 2>&5
36061   ac_status=$?
36062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063   (exit $ac_status); }; } &&
36064          { ac_try='test -s conftest$ac_exeext'
36065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36066   (eval $ac_try) 2>&5
36067   ac_status=$?
36068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069   (exit $ac_status); }; }; then
36070   eval "$as_ac_var=yes"
36071 else
36072   echo "$as_me: failed program was:" >&5
36073 sed 's/^/| /' conftest.$ac_ext >&5
36074
36075 eval "$as_ac_var=no"
36076 fi
36077 rm -f conftest.err conftest.$ac_objext \
36078       conftest$ac_exeext conftest.$ac_ext
36079 fi
36080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36082 if test `eval echo '${'$as_ac_var'}'` = yes; then
36083   cat >>confdefs.h <<_ACEOF
36084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36085 _ACEOF
36086
36087 fi
36088 done
36089
36090     fi
36091   fi
36092
36093
36094
36095   echo "$as_me:$LINENO: checking for atan2f declaration" >&5
36096 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
36097   if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
36098     if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
36099   echo $ECHO_N "(cached) $ECHO_C" >&6
36100 else
36101
36102
36103
36104       ac_ext=cc
36105 ac_cpp='$CXXCPP $CPPFLAGS'
36106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36109
36110       cat >conftest.$ac_ext <<_ACEOF
36111 /* confdefs.h.  */
36112 _ACEOF
36113 cat confdefs.h >>conftest.$ac_ext
36114 cat >>conftest.$ac_ext <<_ACEOF
36115 /* end confdefs.h.  */
36116 #include <math.h>
36117 int
36118 main ()
36119 {
36120  atan2f(0, 0);
36121   ;
36122   return 0;
36123 }
36124 _ACEOF
36125 rm -f conftest.$ac_objext
36126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36127   (eval $ac_compile) 2>conftest.er1
36128   ac_status=$?
36129   grep -v '^ *+' conftest.er1 >conftest.err
36130   rm -f conftest.er1
36131   cat conftest.err >&5
36132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133   (exit $ac_status); } &&
36134          { ac_try='test -z "$ac_cxx_werror_flag"
36135                          || test ! -s conftest.err'
36136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36137   (eval $ac_try) 2>&5
36138   ac_status=$?
36139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140   (exit $ac_status); }; } &&
36141          { ac_try='test -s conftest.$ac_objext'
36142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36143   (eval $ac_try) 2>&5
36144   ac_status=$?
36145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146   (exit $ac_status); }; }; then
36147   glibcxx_cv_func_atan2f_use=yes
36148 else
36149   echo "$as_me: failed program was:" >&5
36150 sed 's/^/| /' conftest.$ac_ext >&5
36151
36152 glibcxx_cv_func_atan2f_use=no
36153 fi
36154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36155       ac_ext=c
36156 ac_cpp='$CPP $CPPFLAGS'
36157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36160
36161
36162 fi
36163
36164   fi
36165   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
36166 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
36167
36168   if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
36169
36170 for ac_func in atan2f
36171 do
36172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36173 echo "$as_me:$LINENO: checking for $ac_func" >&5
36174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36175 if eval "test \"\${$as_ac_var+set}\" = set"; then
36176   echo $ECHO_N "(cached) $ECHO_C" >&6
36177 else
36178   if test x$gcc_no_link = xyes; then
36179   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36181    { (exit 1); exit 1; }; }
36182 fi
36183 cat >conftest.$ac_ext <<_ACEOF
36184 /* confdefs.h.  */
36185 _ACEOF
36186 cat confdefs.h >>conftest.$ac_ext
36187 cat >>conftest.$ac_ext <<_ACEOF
36188 /* end confdefs.h.  */
36189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36191 #define $ac_func innocuous_$ac_func
36192
36193 /* System header to define __stub macros and hopefully few prototypes,
36194     which can conflict with char $ac_func (); below.
36195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36196     <limits.h> exists even on freestanding compilers.  */
36197
36198 #ifdef __STDC__
36199 # include <limits.h>
36200 #else
36201 # include <assert.h>
36202 #endif
36203
36204 #undef $ac_func
36205
36206 /* Override any gcc2 internal prototype to avoid an error.  */
36207 #ifdef __cplusplus
36208 extern "C"
36209 {
36210 #endif
36211 /* We use char because int might match the return type of a gcc2
36212    builtin and then its argument prototype would still apply.  */
36213 char $ac_func ();
36214 /* The GNU C library defines this for functions which it implements
36215     to always fail with ENOSYS.  Some functions are actually named
36216     something starting with __ and the normal name is an alias.  */
36217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36218 choke me
36219 #else
36220 char (*f) () = $ac_func;
36221 #endif
36222 #ifdef __cplusplus
36223 }
36224 #endif
36225
36226 int
36227 main ()
36228 {
36229 return f != $ac_func;
36230   ;
36231   return 0;
36232 }
36233 _ACEOF
36234 rm -f conftest.$ac_objext conftest$ac_exeext
36235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36236   (eval $ac_link) 2>conftest.er1
36237   ac_status=$?
36238   grep -v '^ *+' conftest.er1 >conftest.err
36239   rm -f conftest.er1
36240   cat conftest.err >&5
36241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242   (exit $ac_status); } &&
36243          { ac_try='test -z "$ac_c_werror_flag"
36244                          || test ! -s conftest.err'
36245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246   (eval $ac_try) 2>&5
36247   ac_status=$?
36248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249   (exit $ac_status); }; } &&
36250          { ac_try='test -s conftest$ac_exeext'
36251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36252   (eval $ac_try) 2>&5
36253   ac_status=$?
36254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255   (exit $ac_status); }; }; then
36256   eval "$as_ac_var=yes"
36257 else
36258   echo "$as_me: failed program was:" >&5
36259 sed 's/^/| /' conftest.$ac_ext >&5
36260
36261 eval "$as_ac_var=no"
36262 fi
36263 rm -f conftest.err conftest.$ac_objext \
36264       conftest$ac_exeext conftest.$ac_ext
36265 fi
36266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36268 if test `eval echo '${'$as_ac_var'}'` = yes; then
36269   cat >>confdefs.h <<_ACEOF
36270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36271 _ACEOF
36272
36273 fi
36274 done
36275
36276   else
36277
36278   echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
36279 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
36280   if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
36281     if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
36282   echo $ECHO_N "(cached) $ECHO_C" >&6
36283 else
36284
36285
36286
36287       ac_ext=cc
36288 ac_cpp='$CXXCPP $CPPFLAGS'
36289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36292
36293       cat >conftest.$ac_ext <<_ACEOF
36294 /* confdefs.h.  */
36295 _ACEOF
36296 cat confdefs.h >>conftest.$ac_ext
36297 cat >>conftest.$ac_ext <<_ACEOF
36298 /* end confdefs.h.  */
36299 #include <math.h>
36300 int
36301 main ()
36302 {
36303  _atan2f(0, 0);
36304   ;
36305   return 0;
36306 }
36307 _ACEOF
36308 rm -f conftest.$ac_objext
36309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36310   (eval $ac_compile) 2>conftest.er1
36311   ac_status=$?
36312   grep -v '^ *+' conftest.er1 >conftest.err
36313   rm -f conftest.er1
36314   cat conftest.err >&5
36315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36316   (exit $ac_status); } &&
36317          { ac_try='test -z "$ac_cxx_werror_flag"
36318                          || test ! -s conftest.err'
36319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36320   (eval $ac_try) 2>&5
36321   ac_status=$?
36322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36323   (exit $ac_status); }; } &&
36324          { ac_try='test -s conftest.$ac_objext'
36325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36326   (eval $ac_try) 2>&5
36327   ac_status=$?
36328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329   (exit $ac_status); }; }; then
36330   glibcxx_cv_func__atan2f_use=yes
36331 else
36332   echo "$as_me: failed program was:" >&5
36333 sed 's/^/| /' conftest.$ac_ext >&5
36334
36335 glibcxx_cv_func__atan2f_use=no
36336 fi
36337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36338       ac_ext=c
36339 ac_cpp='$CPP $CPPFLAGS'
36340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36343
36344
36345 fi
36346
36347   fi
36348   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
36349 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
36350
36351     if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
36352
36353 for ac_func in _atan2f
36354 do
36355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36356 echo "$as_me:$LINENO: checking for $ac_func" >&5
36357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36358 if eval "test \"\${$as_ac_var+set}\" = set"; then
36359   echo $ECHO_N "(cached) $ECHO_C" >&6
36360 else
36361   if test x$gcc_no_link = xyes; then
36362   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36363 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36364    { (exit 1); exit 1; }; }
36365 fi
36366 cat >conftest.$ac_ext <<_ACEOF
36367 /* confdefs.h.  */
36368 _ACEOF
36369 cat confdefs.h >>conftest.$ac_ext
36370 cat >>conftest.$ac_ext <<_ACEOF
36371 /* end confdefs.h.  */
36372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36374 #define $ac_func innocuous_$ac_func
36375
36376 /* System header to define __stub macros and hopefully few prototypes,
36377     which can conflict with char $ac_func (); below.
36378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36379     <limits.h> exists even on freestanding compilers.  */
36380
36381 #ifdef __STDC__
36382 # include <limits.h>
36383 #else
36384 # include <assert.h>
36385 #endif
36386
36387 #undef $ac_func
36388
36389 /* Override any gcc2 internal prototype to avoid an error.  */
36390 #ifdef __cplusplus
36391 extern "C"
36392 {
36393 #endif
36394 /* We use char because int might match the return type of a gcc2
36395    builtin and then its argument prototype would still apply.  */
36396 char $ac_func ();
36397 /* The GNU C library defines this for functions which it implements
36398     to always fail with ENOSYS.  Some functions are actually named
36399     something starting with __ and the normal name is an alias.  */
36400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36401 choke me
36402 #else
36403 char (*f) () = $ac_func;
36404 #endif
36405 #ifdef __cplusplus
36406 }
36407 #endif
36408
36409 int
36410 main ()
36411 {
36412 return f != $ac_func;
36413   ;
36414   return 0;
36415 }
36416 _ACEOF
36417 rm -f conftest.$ac_objext conftest$ac_exeext
36418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36419   (eval $ac_link) 2>conftest.er1
36420   ac_status=$?
36421   grep -v '^ *+' conftest.er1 >conftest.err
36422   rm -f conftest.er1
36423   cat conftest.err >&5
36424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425   (exit $ac_status); } &&
36426          { ac_try='test -z "$ac_c_werror_flag"
36427                          || test ! -s conftest.err'
36428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36429   (eval $ac_try) 2>&5
36430   ac_status=$?
36431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432   (exit $ac_status); }; } &&
36433          { ac_try='test -s conftest$ac_exeext'
36434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36435   (eval $ac_try) 2>&5
36436   ac_status=$?
36437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438   (exit $ac_status); }; }; then
36439   eval "$as_ac_var=yes"
36440 else
36441   echo "$as_me: failed program was:" >&5
36442 sed 's/^/| /' conftest.$ac_ext >&5
36443
36444 eval "$as_ac_var=no"
36445 fi
36446 rm -f conftest.err conftest.$ac_objext \
36447       conftest$ac_exeext conftest.$ac_ext
36448 fi
36449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36451 if test `eval echo '${'$as_ac_var'}'` = yes; then
36452   cat >>confdefs.h <<_ACEOF
36453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36454 _ACEOF
36455
36456 fi
36457 done
36458
36459     fi
36460   fi
36461
36462
36463
36464   echo "$as_me:$LINENO: checking for fabsf declaration" >&5
36465 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
36466   if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
36467     if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
36468   echo $ECHO_N "(cached) $ECHO_C" >&6
36469 else
36470
36471
36472
36473       ac_ext=cc
36474 ac_cpp='$CXXCPP $CPPFLAGS'
36475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36478
36479       cat >conftest.$ac_ext <<_ACEOF
36480 /* confdefs.h.  */
36481 _ACEOF
36482 cat confdefs.h >>conftest.$ac_ext
36483 cat >>conftest.$ac_ext <<_ACEOF
36484 /* end confdefs.h.  */
36485 #include <math.h>
36486                       #ifdef HAVE_IEEEFP_H
36487                       #include <ieeefp.h>
36488                       #endif
36489
36490 int
36491 main ()
36492 {
36493  fabsf(0);
36494   ;
36495   return 0;
36496 }
36497 _ACEOF
36498 rm -f conftest.$ac_objext
36499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36500   (eval $ac_compile) 2>conftest.er1
36501   ac_status=$?
36502   grep -v '^ *+' conftest.er1 >conftest.err
36503   rm -f conftest.er1
36504   cat conftest.err >&5
36505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36506   (exit $ac_status); } &&
36507          { ac_try='test -z "$ac_cxx_werror_flag"
36508                          || test ! -s conftest.err'
36509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36510   (eval $ac_try) 2>&5
36511   ac_status=$?
36512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513   (exit $ac_status); }; } &&
36514          { ac_try='test -s conftest.$ac_objext'
36515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36516   (eval $ac_try) 2>&5
36517   ac_status=$?
36518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519   (exit $ac_status); }; }; then
36520   glibcxx_cv_func_fabsf_use=yes
36521 else
36522   echo "$as_me: failed program was:" >&5
36523 sed 's/^/| /' conftest.$ac_ext >&5
36524
36525 glibcxx_cv_func_fabsf_use=no
36526 fi
36527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36528       ac_ext=c
36529 ac_cpp='$CPP $CPPFLAGS'
36530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36533
36534
36535 fi
36536
36537   fi
36538   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
36539 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
36540
36541   if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
36542
36543 for ac_func in fabsf
36544 do
36545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36546 echo "$as_me:$LINENO: checking for $ac_func" >&5
36547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36548 if eval "test \"\${$as_ac_var+set}\" = set"; then
36549   echo $ECHO_N "(cached) $ECHO_C" >&6
36550 else
36551   if test x$gcc_no_link = xyes; then
36552   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36554    { (exit 1); exit 1; }; }
36555 fi
36556 cat >conftest.$ac_ext <<_ACEOF
36557 /* confdefs.h.  */
36558 _ACEOF
36559 cat confdefs.h >>conftest.$ac_ext
36560 cat >>conftest.$ac_ext <<_ACEOF
36561 /* end confdefs.h.  */
36562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36564 #define $ac_func innocuous_$ac_func
36565
36566 /* System header to define __stub macros and hopefully few prototypes,
36567     which can conflict with char $ac_func (); below.
36568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36569     <limits.h> exists even on freestanding compilers.  */
36570
36571 #ifdef __STDC__
36572 # include <limits.h>
36573 #else
36574 # include <assert.h>
36575 #endif
36576
36577 #undef $ac_func
36578
36579 /* Override any gcc2 internal prototype to avoid an error.  */
36580 #ifdef __cplusplus
36581 extern "C"
36582 {
36583 #endif
36584 /* We use char because int might match the return type of a gcc2
36585    builtin and then its argument prototype would still apply.  */
36586 char $ac_func ();
36587 /* The GNU C library defines this for functions which it implements
36588     to always fail with ENOSYS.  Some functions are actually named
36589     something starting with __ and the normal name is an alias.  */
36590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36591 choke me
36592 #else
36593 char (*f) () = $ac_func;
36594 #endif
36595 #ifdef __cplusplus
36596 }
36597 #endif
36598
36599 int
36600 main ()
36601 {
36602 return f != $ac_func;
36603   ;
36604   return 0;
36605 }
36606 _ACEOF
36607 rm -f conftest.$ac_objext conftest$ac_exeext
36608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36609   (eval $ac_link) 2>conftest.er1
36610   ac_status=$?
36611   grep -v '^ *+' conftest.er1 >conftest.err
36612   rm -f conftest.er1
36613   cat conftest.err >&5
36614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615   (exit $ac_status); } &&
36616          { ac_try='test -z "$ac_c_werror_flag"
36617                          || test ! -s conftest.err'
36618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36619   (eval $ac_try) 2>&5
36620   ac_status=$?
36621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622   (exit $ac_status); }; } &&
36623          { ac_try='test -s conftest$ac_exeext'
36624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36625   (eval $ac_try) 2>&5
36626   ac_status=$?
36627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628   (exit $ac_status); }; }; then
36629   eval "$as_ac_var=yes"
36630 else
36631   echo "$as_me: failed program was:" >&5
36632 sed 's/^/| /' conftest.$ac_ext >&5
36633
36634 eval "$as_ac_var=no"
36635 fi
36636 rm -f conftest.err conftest.$ac_objext \
36637       conftest$ac_exeext conftest.$ac_ext
36638 fi
36639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36641 if test `eval echo '${'$as_ac_var'}'` = yes; then
36642   cat >>confdefs.h <<_ACEOF
36643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36644 _ACEOF
36645
36646 fi
36647 done
36648
36649   else
36650
36651   echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
36652 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
36653   if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
36654     if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
36655   echo $ECHO_N "(cached) $ECHO_C" >&6
36656 else
36657
36658
36659
36660       ac_ext=cc
36661 ac_cpp='$CXXCPP $CPPFLAGS'
36662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36665
36666       cat >conftest.$ac_ext <<_ACEOF
36667 /* confdefs.h.  */
36668 _ACEOF
36669 cat confdefs.h >>conftest.$ac_ext
36670 cat >>conftest.$ac_ext <<_ACEOF
36671 /* end confdefs.h.  */
36672 #include <math.h>
36673                       #ifdef HAVE_IEEEFP_H
36674                       #include <ieeefp.h>
36675                       #endif
36676
36677 int
36678 main ()
36679 {
36680  _fabsf(0);
36681   ;
36682   return 0;
36683 }
36684 _ACEOF
36685 rm -f conftest.$ac_objext
36686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36687   (eval $ac_compile) 2>conftest.er1
36688   ac_status=$?
36689   grep -v '^ *+' conftest.er1 >conftest.err
36690   rm -f conftest.er1
36691   cat conftest.err >&5
36692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693   (exit $ac_status); } &&
36694          { ac_try='test -z "$ac_cxx_werror_flag"
36695                          || test ! -s conftest.err'
36696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36697   (eval $ac_try) 2>&5
36698   ac_status=$?
36699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700   (exit $ac_status); }; } &&
36701          { ac_try='test -s conftest.$ac_objext'
36702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703   (eval $ac_try) 2>&5
36704   ac_status=$?
36705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706   (exit $ac_status); }; }; then
36707   glibcxx_cv_func__fabsf_use=yes
36708 else
36709   echo "$as_me: failed program was:" >&5
36710 sed 's/^/| /' conftest.$ac_ext >&5
36711
36712 glibcxx_cv_func__fabsf_use=no
36713 fi
36714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36715       ac_ext=c
36716 ac_cpp='$CPP $CPPFLAGS'
36717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36720
36721
36722 fi
36723
36724   fi
36725   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
36726 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
36727
36728     if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
36729
36730 for ac_func in _fabsf
36731 do
36732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36733 echo "$as_me:$LINENO: checking for $ac_func" >&5
36734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36735 if eval "test \"\${$as_ac_var+set}\" = set"; then
36736   echo $ECHO_N "(cached) $ECHO_C" >&6
36737 else
36738   if test x$gcc_no_link = xyes; then
36739   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36740 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36741    { (exit 1); exit 1; }; }
36742 fi
36743 cat >conftest.$ac_ext <<_ACEOF
36744 /* confdefs.h.  */
36745 _ACEOF
36746 cat confdefs.h >>conftest.$ac_ext
36747 cat >>conftest.$ac_ext <<_ACEOF
36748 /* end confdefs.h.  */
36749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36751 #define $ac_func innocuous_$ac_func
36752
36753 /* System header to define __stub macros and hopefully few prototypes,
36754     which can conflict with char $ac_func (); below.
36755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36756     <limits.h> exists even on freestanding compilers.  */
36757
36758 #ifdef __STDC__
36759 # include <limits.h>
36760 #else
36761 # include <assert.h>
36762 #endif
36763
36764 #undef $ac_func
36765
36766 /* Override any gcc2 internal prototype to avoid an error.  */
36767 #ifdef __cplusplus
36768 extern "C"
36769 {
36770 #endif
36771 /* We use char because int might match the return type of a gcc2
36772    builtin and then its argument prototype would still apply.  */
36773 char $ac_func ();
36774 /* The GNU C library defines this for functions which it implements
36775     to always fail with ENOSYS.  Some functions are actually named
36776     something starting with __ and the normal name is an alias.  */
36777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36778 choke me
36779 #else
36780 char (*f) () = $ac_func;
36781 #endif
36782 #ifdef __cplusplus
36783 }
36784 #endif
36785
36786 int
36787 main ()
36788 {
36789 return f != $ac_func;
36790   ;
36791   return 0;
36792 }
36793 _ACEOF
36794 rm -f conftest.$ac_objext conftest$ac_exeext
36795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36796   (eval $ac_link) 2>conftest.er1
36797   ac_status=$?
36798   grep -v '^ *+' conftest.er1 >conftest.err
36799   rm -f conftest.er1
36800   cat conftest.err >&5
36801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802   (exit $ac_status); } &&
36803          { ac_try='test -z "$ac_c_werror_flag"
36804                          || test ! -s conftest.err'
36805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36806   (eval $ac_try) 2>&5
36807   ac_status=$?
36808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809   (exit $ac_status); }; } &&
36810          { ac_try='test -s conftest$ac_exeext'
36811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36812   (eval $ac_try) 2>&5
36813   ac_status=$?
36814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815   (exit $ac_status); }; }; then
36816   eval "$as_ac_var=yes"
36817 else
36818   echo "$as_me: failed program was:" >&5
36819 sed 's/^/| /' conftest.$ac_ext >&5
36820
36821 eval "$as_ac_var=no"
36822 fi
36823 rm -f conftest.err conftest.$ac_objext \
36824       conftest$ac_exeext conftest.$ac_ext
36825 fi
36826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36828 if test `eval echo '${'$as_ac_var'}'` = yes; then
36829   cat >>confdefs.h <<_ACEOF
36830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36831 _ACEOF
36832
36833 fi
36834 done
36835
36836     fi
36837   fi
36838
36839
36840
36841   echo "$as_me:$LINENO: checking for fmodf declaration" >&5
36842 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
36843   if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36844     if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
36845   echo $ECHO_N "(cached) $ECHO_C" >&6
36846 else
36847
36848
36849
36850       ac_ext=cc
36851 ac_cpp='$CXXCPP $CPPFLAGS'
36852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36855
36856       cat >conftest.$ac_ext <<_ACEOF
36857 /* confdefs.h.  */
36858 _ACEOF
36859 cat confdefs.h >>conftest.$ac_ext
36860 cat >>conftest.$ac_ext <<_ACEOF
36861 /* end confdefs.h.  */
36862 #include <math.h>
36863 int
36864 main ()
36865 {
36866  fmodf(0, 0);
36867   ;
36868   return 0;
36869 }
36870 _ACEOF
36871 rm -f conftest.$ac_objext
36872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36873   (eval $ac_compile) 2>conftest.er1
36874   ac_status=$?
36875   grep -v '^ *+' conftest.er1 >conftest.err
36876   rm -f conftest.er1
36877   cat conftest.err >&5
36878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879   (exit $ac_status); } &&
36880          { ac_try='test -z "$ac_cxx_werror_flag"
36881                          || test ! -s conftest.err'
36882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36883   (eval $ac_try) 2>&5
36884   ac_status=$?
36885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36886   (exit $ac_status); }; } &&
36887          { ac_try='test -s conftest.$ac_objext'
36888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36889   (eval $ac_try) 2>&5
36890   ac_status=$?
36891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892   (exit $ac_status); }; }; then
36893   glibcxx_cv_func_fmodf_use=yes
36894 else
36895   echo "$as_me: failed program was:" >&5
36896 sed 's/^/| /' conftest.$ac_ext >&5
36897
36898 glibcxx_cv_func_fmodf_use=no
36899 fi
36900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36901       ac_ext=c
36902 ac_cpp='$CPP $CPPFLAGS'
36903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36906
36907
36908 fi
36909
36910   fi
36911   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
36912 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
36913
36914   if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
36915
36916 for ac_func in fmodf
36917 do
36918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36919 echo "$as_me:$LINENO: checking for $ac_func" >&5
36920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36921 if eval "test \"\${$as_ac_var+set}\" = set"; then
36922   echo $ECHO_N "(cached) $ECHO_C" >&6
36923 else
36924   if test x$gcc_no_link = xyes; then
36925   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36927    { (exit 1); exit 1; }; }
36928 fi
36929 cat >conftest.$ac_ext <<_ACEOF
36930 /* confdefs.h.  */
36931 _ACEOF
36932 cat confdefs.h >>conftest.$ac_ext
36933 cat >>conftest.$ac_ext <<_ACEOF
36934 /* end confdefs.h.  */
36935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36937 #define $ac_func innocuous_$ac_func
36938
36939 /* System header to define __stub macros and hopefully few prototypes,
36940     which can conflict with char $ac_func (); below.
36941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36942     <limits.h> exists even on freestanding compilers.  */
36943
36944 #ifdef __STDC__
36945 # include <limits.h>
36946 #else
36947 # include <assert.h>
36948 #endif
36949
36950 #undef $ac_func
36951
36952 /* Override any gcc2 internal prototype to avoid an error.  */
36953 #ifdef __cplusplus
36954 extern "C"
36955 {
36956 #endif
36957 /* We use char because int might match the return type of a gcc2
36958    builtin and then its argument prototype would still apply.  */
36959 char $ac_func ();
36960 /* The GNU C library defines this for functions which it implements
36961     to always fail with ENOSYS.  Some functions are actually named
36962     something starting with __ and the normal name is an alias.  */
36963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36964 choke me
36965 #else
36966 char (*f) () = $ac_func;
36967 #endif
36968 #ifdef __cplusplus
36969 }
36970 #endif
36971
36972 int
36973 main ()
36974 {
36975 return f != $ac_func;
36976   ;
36977   return 0;
36978 }
36979 _ACEOF
36980 rm -f conftest.$ac_objext conftest$ac_exeext
36981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36982   (eval $ac_link) 2>conftest.er1
36983   ac_status=$?
36984   grep -v '^ *+' conftest.er1 >conftest.err
36985   rm -f conftest.er1
36986   cat conftest.err >&5
36987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36988   (exit $ac_status); } &&
36989          { ac_try='test -z "$ac_c_werror_flag"
36990                          || test ! -s conftest.err'
36991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36992   (eval $ac_try) 2>&5
36993   ac_status=$?
36994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995   (exit $ac_status); }; } &&
36996          { ac_try='test -s conftest$ac_exeext'
36997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36998   (eval $ac_try) 2>&5
36999   ac_status=$?
37000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37001   (exit $ac_status); }; }; then
37002   eval "$as_ac_var=yes"
37003 else
37004   echo "$as_me: failed program was:" >&5
37005 sed 's/^/| /' conftest.$ac_ext >&5
37006
37007 eval "$as_ac_var=no"
37008 fi
37009 rm -f conftest.err conftest.$ac_objext \
37010       conftest$ac_exeext conftest.$ac_ext
37011 fi
37012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37014 if test `eval echo '${'$as_ac_var'}'` = yes; then
37015   cat >>confdefs.h <<_ACEOF
37016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37017 _ACEOF
37018
37019 fi
37020 done
37021
37022   else
37023
37024   echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
37025 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
37026   if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
37027     if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030
37031
37032
37033       ac_ext=cc
37034 ac_cpp='$CXXCPP $CPPFLAGS'
37035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37038
37039       cat >conftest.$ac_ext <<_ACEOF
37040 /* confdefs.h.  */
37041 _ACEOF
37042 cat confdefs.h >>conftest.$ac_ext
37043 cat >>conftest.$ac_ext <<_ACEOF
37044 /* end confdefs.h.  */
37045 #include <math.h>
37046 int
37047 main ()
37048 {
37049  _fmodf(0, 0);
37050   ;
37051   return 0;
37052 }
37053 _ACEOF
37054 rm -f conftest.$ac_objext
37055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37056   (eval $ac_compile) 2>conftest.er1
37057   ac_status=$?
37058   grep -v '^ *+' conftest.er1 >conftest.err
37059   rm -f conftest.er1
37060   cat conftest.err >&5
37061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062   (exit $ac_status); } &&
37063          { ac_try='test -z "$ac_cxx_werror_flag"
37064                          || test ! -s conftest.err'
37065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37066   (eval $ac_try) 2>&5
37067   ac_status=$?
37068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069   (exit $ac_status); }; } &&
37070          { ac_try='test -s conftest.$ac_objext'
37071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37072   (eval $ac_try) 2>&5
37073   ac_status=$?
37074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075   (exit $ac_status); }; }; then
37076   glibcxx_cv_func__fmodf_use=yes
37077 else
37078   echo "$as_me: failed program was:" >&5
37079 sed 's/^/| /' conftest.$ac_ext >&5
37080
37081 glibcxx_cv_func__fmodf_use=no
37082 fi
37083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37084       ac_ext=c
37085 ac_cpp='$CPP $CPPFLAGS'
37086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37089
37090
37091 fi
37092
37093   fi
37094   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
37095 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
37096
37097     if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
37098
37099 for ac_func in _fmodf
37100 do
37101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37102 echo "$as_me:$LINENO: checking for $ac_func" >&5
37103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37104 if eval "test \"\${$as_ac_var+set}\" = set"; then
37105   echo $ECHO_N "(cached) $ECHO_C" >&6
37106 else
37107   if test x$gcc_no_link = xyes; then
37108   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37110    { (exit 1); exit 1; }; }
37111 fi
37112 cat >conftest.$ac_ext <<_ACEOF
37113 /* confdefs.h.  */
37114 _ACEOF
37115 cat confdefs.h >>conftest.$ac_ext
37116 cat >>conftest.$ac_ext <<_ACEOF
37117 /* end confdefs.h.  */
37118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37120 #define $ac_func innocuous_$ac_func
37121
37122 /* System header to define __stub macros and hopefully few prototypes,
37123     which can conflict with char $ac_func (); below.
37124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37125     <limits.h> exists even on freestanding compilers.  */
37126
37127 #ifdef __STDC__
37128 # include <limits.h>
37129 #else
37130 # include <assert.h>
37131 #endif
37132
37133 #undef $ac_func
37134
37135 /* Override any gcc2 internal prototype to avoid an error.  */
37136 #ifdef __cplusplus
37137 extern "C"
37138 {
37139 #endif
37140 /* We use char because int might match the return type of a gcc2
37141    builtin and then its argument prototype would still apply.  */
37142 char $ac_func ();
37143 /* The GNU C library defines this for functions which it implements
37144     to always fail with ENOSYS.  Some functions are actually named
37145     something starting with __ and the normal name is an alias.  */
37146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37147 choke me
37148 #else
37149 char (*f) () = $ac_func;
37150 #endif
37151 #ifdef __cplusplus
37152 }
37153 #endif
37154
37155 int
37156 main ()
37157 {
37158 return f != $ac_func;
37159   ;
37160   return 0;
37161 }
37162 _ACEOF
37163 rm -f conftest.$ac_objext conftest$ac_exeext
37164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37165   (eval $ac_link) 2>conftest.er1
37166   ac_status=$?
37167   grep -v '^ *+' conftest.er1 >conftest.err
37168   rm -f conftest.er1
37169   cat conftest.err >&5
37170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171   (exit $ac_status); } &&
37172          { ac_try='test -z "$ac_c_werror_flag"
37173                          || test ! -s conftest.err'
37174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37175   (eval $ac_try) 2>&5
37176   ac_status=$?
37177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37178   (exit $ac_status); }; } &&
37179          { ac_try='test -s conftest$ac_exeext'
37180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37181   (eval $ac_try) 2>&5
37182   ac_status=$?
37183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184   (exit $ac_status); }; }; then
37185   eval "$as_ac_var=yes"
37186 else
37187   echo "$as_me: failed program was:" >&5
37188 sed 's/^/| /' conftest.$ac_ext >&5
37189
37190 eval "$as_ac_var=no"
37191 fi
37192 rm -f conftest.err conftest.$ac_objext \
37193       conftest$ac_exeext conftest.$ac_ext
37194 fi
37195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37197 if test `eval echo '${'$as_ac_var'}'` = yes; then
37198   cat >>confdefs.h <<_ACEOF
37199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37200 _ACEOF
37201
37202 fi
37203 done
37204
37205     fi
37206   fi
37207
37208
37209
37210   echo "$as_me:$LINENO: checking for frexpf declaration" >&5
37211 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
37212   if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
37213     if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
37214   echo $ECHO_N "(cached) $ECHO_C" >&6
37215 else
37216
37217
37218
37219       ac_ext=cc
37220 ac_cpp='$CXXCPP $CPPFLAGS'
37221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37224
37225       cat >conftest.$ac_ext <<_ACEOF
37226 /* confdefs.h.  */
37227 _ACEOF
37228 cat confdefs.h >>conftest.$ac_ext
37229 cat >>conftest.$ac_ext <<_ACEOF
37230 /* end confdefs.h.  */
37231 #include <math.h>
37232 int
37233 main ()
37234 {
37235  frexpf(0, 0);
37236   ;
37237   return 0;
37238 }
37239 _ACEOF
37240 rm -f conftest.$ac_objext
37241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37242   (eval $ac_compile) 2>conftest.er1
37243   ac_status=$?
37244   grep -v '^ *+' conftest.er1 >conftest.err
37245   rm -f conftest.er1
37246   cat conftest.err >&5
37247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248   (exit $ac_status); } &&
37249          { ac_try='test -z "$ac_cxx_werror_flag"
37250                          || test ! -s conftest.err'
37251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37252   (eval $ac_try) 2>&5
37253   ac_status=$?
37254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255   (exit $ac_status); }; } &&
37256          { ac_try='test -s conftest.$ac_objext'
37257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37258   (eval $ac_try) 2>&5
37259   ac_status=$?
37260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261   (exit $ac_status); }; }; then
37262   glibcxx_cv_func_frexpf_use=yes
37263 else
37264   echo "$as_me: failed program was:" >&5
37265 sed 's/^/| /' conftest.$ac_ext >&5
37266
37267 glibcxx_cv_func_frexpf_use=no
37268 fi
37269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37270       ac_ext=c
37271 ac_cpp='$CPP $CPPFLAGS'
37272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37275
37276
37277 fi
37278
37279   fi
37280   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
37281 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
37282
37283   if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
37284
37285 for ac_func in frexpf
37286 do
37287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37288 echo "$as_me:$LINENO: checking for $ac_func" >&5
37289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37290 if eval "test \"\${$as_ac_var+set}\" = set"; then
37291   echo $ECHO_N "(cached) $ECHO_C" >&6
37292 else
37293   if test x$gcc_no_link = xyes; then
37294   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37296    { (exit 1); exit 1; }; }
37297 fi
37298 cat >conftest.$ac_ext <<_ACEOF
37299 /* confdefs.h.  */
37300 _ACEOF
37301 cat confdefs.h >>conftest.$ac_ext
37302 cat >>conftest.$ac_ext <<_ACEOF
37303 /* end confdefs.h.  */
37304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37306 #define $ac_func innocuous_$ac_func
37307
37308 /* System header to define __stub macros and hopefully few prototypes,
37309     which can conflict with char $ac_func (); below.
37310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37311     <limits.h> exists even on freestanding compilers.  */
37312
37313 #ifdef __STDC__
37314 # include <limits.h>
37315 #else
37316 # include <assert.h>
37317 #endif
37318
37319 #undef $ac_func
37320
37321 /* Override any gcc2 internal prototype to avoid an error.  */
37322 #ifdef __cplusplus
37323 extern "C"
37324 {
37325 #endif
37326 /* We use char because int might match the return type of a gcc2
37327    builtin and then its argument prototype would still apply.  */
37328 char $ac_func ();
37329 /* The GNU C library defines this for functions which it implements
37330     to always fail with ENOSYS.  Some functions are actually named
37331     something starting with __ and the normal name is an alias.  */
37332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37333 choke me
37334 #else
37335 char (*f) () = $ac_func;
37336 #endif
37337 #ifdef __cplusplus
37338 }
37339 #endif
37340
37341 int
37342 main ()
37343 {
37344 return f != $ac_func;
37345   ;
37346   return 0;
37347 }
37348 _ACEOF
37349 rm -f conftest.$ac_objext conftest$ac_exeext
37350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37351   (eval $ac_link) 2>conftest.er1
37352   ac_status=$?
37353   grep -v '^ *+' conftest.er1 >conftest.err
37354   rm -f conftest.er1
37355   cat conftest.err >&5
37356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357   (exit $ac_status); } &&
37358          { ac_try='test -z "$ac_c_werror_flag"
37359                          || test ! -s conftest.err'
37360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37361   (eval $ac_try) 2>&5
37362   ac_status=$?
37363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364   (exit $ac_status); }; } &&
37365          { ac_try='test -s conftest$ac_exeext'
37366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37367   (eval $ac_try) 2>&5
37368   ac_status=$?
37369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37370   (exit $ac_status); }; }; then
37371   eval "$as_ac_var=yes"
37372 else
37373   echo "$as_me: failed program was:" >&5
37374 sed 's/^/| /' conftest.$ac_ext >&5
37375
37376 eval "$as_ac_var=no"
37377 fi
37378 rm -f conftest.err conftest.$ac_objext \
37379       conftest$ac_exeext conftest.$ac_ext
37380 fi
37381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37383 if test `eval echo '${'$as_ac_var'}'` = yes; then
37384   cat >>confdefs.h <<_ACEOF
37385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37386 _ACEOF
37387
37388 fi
37389 done
37390
37391   else
37392
37393   echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
37394 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
37395   if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
37396     if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
37397   echo $ECHO_N "(cached) $ECHO_C" >&6
37398 else
37399
37400
37401
37402       ac_ext=cc
37403 ac_cpp='$CXXCPP $CPPFLAGS'
37404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37407
37408       cat >conftest.$ac_ext <<_ACEOF
37409 /* confdefs.h.  */
37410 _ACEOF
37411 cat confdefs.h >>conftest.$ac_ext
37412 cat >>conftest.$ac_ext <<_ACEOF
37413 /* end confdefs.h.  */
37414 #include <math.h>
37415 int
37416 main ()
37417 {
37418  _frexpf(0, 0);
37419   ;
37420   return 0;
37421 }
37422 _ACEOF
37423 rm -f conftest.$ac_objext
37424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37425   (eval $ac_compile) 2>conftest.er1
37426   ac_status=$?
37427   grep -v '^ *+' conftest.er1 >conftest.err
37428   rm -f conftest.er1
37429   cat conftest.err >&5
37430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431   (exit $ac_status); } &&
37432          { ac_try='test -z "$ac_cxx_werror_flag"
37433                          || test ! -s conftest.err'
37434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37435   (eval $ac_try) 2>&5
37436   ac_status=$?
37437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438   (exit $ac_status); }; } &&
37439          { ac_try='test -s conftest.$ac_objext'
37440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37441   (eval $ac_try) 2>&5
37442   ac_status=$?
37443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444   (exit $ac_status); }; }; then
37445   glibcxx_cv_func__frexpf_use=yes
37446 else
37447   echo "$as_me: failed program was:" >&5
37448 sed 's/^/| /' conftest.$ac_ext >&5
37449
37450 glibcxx_cv_func__frexpf_use=no
37451 fi
37452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37453       ac_ext=c
37454 ac_cpp='$CPP $CPPFLAGS'
37455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37458
37459
37460 fi
37461
37462   fi
37463   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
37464 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
37465
37466     if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
37467
37468 for ac_func in _frexpf
37469 do
37470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37471 echo "$as_me:$LINENO: checking for $ac_func" >&5
37472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37473 if eval "test \"\${$as_ac_var+set}\" = set"; then
37474   echo $ECHO_N "(cached) $ECHO_C" >&6
37475 else
37476   if test x$gcc_no_link = xyes; then
37477   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37479    { (exit 1); exit 1; }; }
37480 fi
37481 cat >conftest.$ac_ext <<_ACEOF
37482 /* confdefs.h.  */
37483 _ACEOF
37484 cat confdefs.h >>conftest.$ac_ext
37485 cat >>conftest.$ac_ext <<_ACEOF
37486 /* end confdefs.h.  */
37487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37489 #define $ac_func innocuous_$ac_func
37490
37491 /* System header to define __stub macros and hopefully few prototypes,
37492     which can conflict with char $ac_func (); below.
37493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37494     <limits.h> exists even on freestanding compilers.  */
37495
37496 #ifdef __STDC__
37497 # include <limits.h>
37498 #else
37499 # include <assert.h>
37500 #endif
37501
37502 #undef $ac_func
37503
37504 /* Override any gcc2 internal prototype to avoid an error.  */
37505 #ifdef __cplusplus
37506 extern "C"
37507 {
37508 #endif
37509 /* We use char because int might match the return type of a gcc2
37510    builtin and then its argument prototype would still apply.  */
37511 char $ac_func ();
37512 /* The GNU C library defines this for functions which it implements
37513     to always fail with ENOSYS.  Some functions are actually named
37514     something starting with __ and the normal name is an alias.  */
37515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37516 choke me
37517 #else
37518 char (*f) () = $ac_func;
37519 #endif
37520 #ifdef __cplusplus
37521 }
37522 #endif
37523
37524 int
37525 main ()
37526 {
37527 return f != $ac_func;
37528   ;
37529   return 0;
37530 }
37531 _ACEOF
37532 rm -f conftest.$ac_objext conftest$ac_exeext
37533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37534   (eval $ac_link) 2>conftest.er1
37535   ac_status=$?
37536   grep -v '^ *+' conftest.er1 >conftest.err
37537   rm -f conftest.er1
37538   cat conftest.err >&5
37539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37540   (exit $ac_status); } &&
37541          { ac_try='test -z "$ac_c_werror_flag"
37542                          || test ! -s conftest.err'
37543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37544   (eval $ac_try) 2>&5
37545   ac_status=$?
37546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547   (exit $ac_status); }; } &&
37548          { ac_try='test -s conftest$ac_exeext'
37549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37550   (eval $ac_try) 2>&5
37551   ac_status=$?
37552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37553   (exit $ac_status); }; }; then
37554   eval "$as_ac_var=yes"
37555 else
37556   echo "$as_me: failed program was:" >&5
37557 sed 's/^/| /' conftest.$ac_ext >&5
37558
37559 eval "$as_ac_var=no"
37560 fi
37561 rm -f conftest.err conftest.$ac_objext \
37562       conftest$ac_exeext conftest.$ac_ext
37563 fi
37564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37566 if test `eval echo '${'$as_ac_var'}'` = yes; then
37567   cat >>confdefs.h <<_ACEOF
37568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37569 _ACEOF
37570
37571 fi
37572 done
37573
37574     fi
37575   fi
37576
37577
37578
37579   echo "$as_me:$LINENO: checking for hypotf declaration" >&5
37580 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
37581   if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
37582     if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
37583   echo $ECHO_N "(cached) $ECHO_C" >&6
37584 else
37585
37586
37587
37588       ac_ext=cc
37589 ac_cpp='$CXXCPP $CPPFLAGS'
37590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37593
37594       cat >conftest.$ac_ext <<_ACEOF
37595 /* confdefs.h.  */
37596 _ACEOF
37597 cat confdefs.h >>conftest.$ac_ext
37598 cat >>conftest.$ac_ext <<_ACEOF
37599 /* end confdefs.h.  */
37600 #include <math.h>
37601 int
37602 main ()
37603 {
37604  hypotf(0, 0);
37605   ;
37606   return 0;
37607 }
37608 _ACEOF
37609 rm -f conftest.$ac_objext
37610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37611   (eval $ac_compile) 2>conftest.er1
37612   ac_status=$?
37613   grep -v '^ *+' conftest.er1 >conftest.err
37614   rm -f conftest.er1
37615   cat conftest.err >&5
37616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617   (exit $ac_status); } &&
37618          { ac_try='test -z "$ac_cxx_werror_flag"
37619                          || test ! -s conftest.err'
37620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37621   (eval $ac_try) 2>&5
37622   ac_status=$?
37623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624   (exit $ac_status); }; } &&
37625          { ac_try='test -s conftest.$ac_objext'
37626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37627   (eval $ac_try) 2>&5
37628   ac_status=$?
37629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630   (exit $ac_status); }; }; then
37631   glibcxx_cv_func_hypotf_use=yes
37632 else
37633   echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37635
37636 glibcxx_cv_func_hypotf_use=no
37637 fi
37638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37639       ac_ext=c
37640 ac_cpp='$CPP $CPPFLAGS'
37641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37644
37645
37646 fi
37647
37648   fi
37649   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
37650 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
37651
37652   if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
37653
37654 for ac_func in hypotf
37655 do
37656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37657 echo "$as_me:$LINENO: checking for $ac_func" >&5
37658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37659 if eval "test \"\${$as_ac_var+set}\" = set"; then
37660   echo $ECHO_N "(cached) $ECHO_C" >&6
37661 else
37662   if test x$gcc_no_link = xyes; then
37663   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37665    { (exit 1); exit 1; }; }
37666 fi
37667 cat >conftest.$ac_ext <<_ACEOF
37668 /* confdefs.h.  */
37669 _ACEOF
37670 cat confdefs.h >>conftest.$ac_ext
37671 cat >>conftest.$ac_ext <<_ACEOF
37672 /* end confdefs.h.  */
37673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37675 #define $ac_func innocuous_$ac_func
37676
37677 /* System header to define __stub macros and hopefully few prototypes,
37678     which can conflict with char $ac_func (); below.
37679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37680     <limits.h> exists even on freestanding compilers.  */
37681
37682 #ifdef __STDC__
37683 # include <limits.h>
37684 #else
37685 # include <assert.h>
37686 #endif
37687
37688 #undef $ac_func
37689
37690 /* Override any gcc2 internal prototype to avoid an error.  */
37691 #ifdef __cplusplus
37692 extern "C"
37693 {
37694 #endif
37695 /* We use char because int might match the return type of a gcc2
37696    builtin and then its argument prototype would still apply.  */
37697 char $ac_func ();
37698 /* The GNU C library defines this for functions which it implements
37699     to always fail with ENOSYS.  Some functions are actually named
37700     something starting with __ and the normal name is an alias.  */
37701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37702 choke me
37703 #else
37704 char (*f) () = $ac_func;
37705 #endif
37706 #ifdef __cplusplus
37707 }
37708 #endif
37709
37710 int
37711 main ()
37712 {
37713 return f != $ac_func;
37714   ;
37715   return 0;
37716 }
37717 _ACEOF
37718 rm -f conftest.$ac_objext conftest$ac_exeext
37719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37720   (eval $ac_link) 2>conftest.er1
37721   ac_status=$?
37722   grep -v '^ *+' conftest.er1 >conftest.err
37723   rm -f conftest.er1
37724   cat conftest.err >&5
37725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726   (exit $ac_status); } &&
37727          { ac_try='test -z "$ac_c_werror_flag"
37728                          || test ! -s conftest.err'
37729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37730   (eval $ac_try) 2>&5
37731   ac_status=$?
37732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733   (exit $ac_status); }; } &&
37734          { ac_try='test -s conftest$ac_exeext'
37735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37736   (eval $ac_try) 2>&5
37737   ac_status=$?
37738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37739   (exit $ac_status); }; }; then
37740   eval "$as_ac_var=yes"
37741 else
37742   echo "$as_me: failed program was:" >&5
37743 sed 's/^/| /' conftest.$ac_ext >&5
37744
37745 eval "$as_ac_var=no"
37746 fi
37747 rm -f conftest.err conftest.$ac_objext \
37748       conftest$ac_exeext conftest.$ac_ext
37749 fi
37750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37752 if test `eval echo '${'$as_ac_var'}'` = yes; then
37753   cat >>confdefs.h <<_ACEOF
37754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37755 _ACEOF
37756
37757 fi
37758 done
37759
37760   else
37761
37762   echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
37763 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
37764   if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
37765     if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
37766   echo $ECHO_N "(cached) $ECHO_C" >&6
37767 else
37768
37769
37770
37771       ac_ext=cc
37772 ac_cpp='$CXXCPP $CPPFLAGS'
37773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37776
37777       cat >conftest.$ac_ext <<_ACEOF
37778 /* confdefs.h.  */
37779 _ACEOF
37780 cat confdefs.h >>conftest.$ac_ext
37781 cat >>conftest.$ac_ext <<_ACEOF
37782 /* end confdefs.h.  */
37783 #include <math.h>
37784 int
37785 main ()
37786 {
37787  _hypotf(0, 0);
37788   ;
37789   return 0;
37790 }
37791 _ACEOF
37792 rm -f conftest.$ac_objext
37793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37794   (eval $ac_compile) 2>conftest.er1
37795   ac_status=$?
37796   grep -v '^ *+' conftest.er1 >conftest.err
37797   rm -f conftest.er1
37798   cat conftest.err >&5
37799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37800   (exit $ac_status); } &&
37801          { ac_try='test -z "$ac_cxx_werror_flag"
37802                          || test ! -s conftest.err'
37803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37804   (eval $ac_try) 2>&5
37805   ac_status=$?
37806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807   (exit $ac_status); }; } &&
37808          { ac_try='test -s conftest.$ac_objext'
37809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37810   (eval $ac_try) 2>&5
37811   ac_status=$?
37812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813   (exit $ac_status); }; }; then
37814   glibcxx_cv_func__hypotf_use=yes
37815 else
37816   echo "$as_me: failed program was:" >&5
37817 sed 's/^/| /' conftest.$ac_ext >&5
37818
37819 glibcxx_cv_func__hypotf_use=no
37820 fi
37821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37822       ac_ext=c
37823 ac_cpp='$CPP $CPPFLAGS'
37824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37827
37828
37829 fi
37830
37831   fi
37832   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
37833 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
37834
37835     if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
37836
37837 for ac_func in _hypotf
37838 do
37839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37840 echo "$as_me:$LINENO: checking for $ac_func" >&5
37841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37842 if eval "test \"\${$as_ac_var+set}\" = set"; then
37843   echo $ECHO_N "(cached) $ECHO_C" >&6
37844 else
37845   if test x$gcc_no_link = xyes; then
37846   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37848    { (exit 1); exit 1; }; }
37849 fi
37850 cat >conftest.$ac_ext <<_ACEOF
37851 /* confdefs.h.  */
37852 _ACEOF
37853 cat confdefs.h >>conftest.$ac_ext
37854 cat >>conftest.$ac_ext <<_ACEOF
37855 /* end confdefs.h.  */
37856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37858 #define $ac_func innocuous_$ac_func
37859
37860 /* System header to define __stub macros and hopefully few prototypes,
37861     which can conflict with char $ac_func (); below.
37862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37863     <limits.h> exists even on freestanding compilers.  */
37864
37865 #ifdef __STDC__
37866 # include <limits.h>
37867 #else
37868 # include <assert.h>
37869 #endif
37870
37871 #undef $ac_func
37872
37873 /* Override any gcc2 internal prototype to avoid an error.  */
37874 #ifdef __cplusplus
37875 extern "C"
37876 {
37877 #endif
37878 /* We use char because int might match the return type of a gcc2
37879    builtin and then its argument prototype would still apply.  */
37880 char $ac_func ();
37881 /* The GNU C library defines this for functions which it implements
37882     to always fail with ENOSYS.  Some functions are actually named
37883     something starting with __ and the normal name is an alias.  */
37884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37885 choke me
37886 #else
37887 char (*f) () = $ac_func;
37888 #endif
37889 #ifdef __cplusplus
37890 }
37891 #endif
37892
37893 int
37894 main ()
37895 {
37896 return f != $ac_func;
37897   ;
37898   return 0;
37899 }
37900 _ACEOF
37901 rm -f conftest.$ac_objext conftest$ac_exeext
37902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37903   (eval $ac_link) 2>conftest.er1
37904   ac_status=$?
37905   grep -v '^ *+' conftest.er1 >conftest.err
37906   rm -f conftest.er1
37907   cat conftest.err >&5
37908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909   (exit $ac_status); } &&
37910          { ac_try='test -z "$ac_c_werror_flag"
37911                          || test ! -s conftest.err'
37912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37913   (eval $ac_try) 2>&5
37914   ac_status=$?
37915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916   (exit $ac_status); }; } &&
37917          { ac_try='test -s conftest$ac_exeext'
37918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37919   (eval $ac_try) 2>&5
37920   ac_status=$?
37921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922   (exit $ac_status); }; }; then
37923   eval "$as_ac_var=yes"
37924 else
37925   echo "$as_me: failed program was:" >&5
37926 sed 's/^/| /' conftest.$ac_ext >&5
37927
37928 eval "$as_ac_var=no"
37929 fi
37930 rm -f conftest.err conftest.$ac_objext \
37931       conftest$ac_exeext conftest.$ac_ext
37932 fi
37933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37935 if test `eval echo '${'$as_ac_var'}'` = yes; then
37936   cat >>confdefs.h <<_ACEOF
37937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37938 _ACEOF
37939
37940 fi
37941 done
37942
37943     fi
37944   fi
37945
37946
37947
37948   echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
37949 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
37950   if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
37951     if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
37952   echo $ECHO_N "(cached) $ECHO_C" >&6
37953 else
37954
37955
37956
37957       ac_ext=cc
37958 ac_cpp='$CXXCPP $CPPFLAGS'
37959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37962
37963       cat >conftest.$ac_ext <<_ACEOF
37964 /* confdefs.h.  */
37965 _ACEOF
37966 cat confdefs.h >>conftest.$ac_ext
37967 cat >>conftest.$ac_ext <<_ACEOF
37968 /* end confdefs.h.  */
37969 #include <math.h>
37970 int
37971 main ()
37972 {
37973  ldexpf(0, 0);
37974   ;
37975   return 0;
37976 }
37977 _ACEOF
37978 rm -f conftest.$ac_objext
37979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37980   (eval $ac_compile) 2>conftest.er1
37981   ac_status=$?
37982   grep -v '^ *+' conftest.er1 >conftest.err
37983   rm -f conftest.er1
37984   cat conftest.err >&5
37985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37986   (exit $ac_status); } &&
37987          { ac_try='test -z "$ac_cxx_werror_flag"
37988                          || test ! -s conftest.err'
37989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37990   (eval $ac_try) 2>&5
37991   ac_status=$?
37992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37993   (exit $ac_status); }; } &&
37994          { ac_try='test -s conftest.$ac_objext'
37995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37996   (eval $ac_try) 2>&5
37997   ac_status=$?
37998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37999   (exit $ac_status); }; }; then
38000   glibcxx_cv_func_ldexpf_use=yes
38001 else
38002   echo "$as_me: failed program was:" >&5
38003 sed 's/^/| /' conftest.$ac_ext >&5
38004
38005 glibcxx_cv_func_ldexpf_use=no
38006 fi
38007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38008       ac_ext=c
38009 ac_cpp='$CPP $CPPFLAGS'
38010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38013
38014
38015 fi
38016
38017   fi
38018   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
38019 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
38020
38021   if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
38022
38023 for ac_func in ldexpf
38024 do
38025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38026 echo "$as_me:$LINENO: checking for $ac_func" >&5
38027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38028 if eval "test \"\${$as_ac_var+set}\" = set"; then
38029   echo $ECHO_N "(cached) $ECHO_C" >&6
38030 else
38031   if test x$gcc_no_link = xyes; then
38032   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38034    { (exit 1); exit 1; }; }
38035 fi
38036 cat >conftest.$ac_ext <<_ACEOF
38037 /* confdefs.h.  */
38038 _ACEOF
38039 cat confdefs.h >>conftest.$ac_ext
38040 cat >>conftest.$ac_ext <<_ACEOF
38041 /* end confdefs.h.  */
38042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38044 #define $ac_func innocuous_$ac_func
38045
38046 /* System header to define __stub macros and hopefully few prototypes,
38047     which can conflict with char $ac_func (); below.
38048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38049     <limits.h> exists even on freestanding compilers.  */
38050
38051 #ifdef __STDC__
38052 # include <limits.h>
38053 #else
38054 # include <assert.h>
38055 #endif
38056
38057 #undef $ac_func
38058
38059 /* Override any gcc2 internal prototype to avoid an error.  */
38060 #ifdef __cplusplus
38061 extern "C"
38062 {
38063 #endif
38064 /* We use char because int might match the return type of a gcc2
38065    builtin and then its argument prototype would still apply.  */
38066 char $ac_func ();
38067 /* The GNU C library defines this for functions which it implements
38068     to always fail with ENOSYS.  Some functions are actually named
38069     something starting with __ and the normal name is an alias.  */
38070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38071 choke me
38072 #else
38073 char (*f) () = $ac_func;
38074 #endif
38075 #ifdef __cplusplus
38076 }
38077 #endif
38078
38079 int
38080 main ()
38081 {
38082 return f != $ac_func;
38083   ;
38084   return 0;
38085 }
38086 _ACEOF
38087 rm -f conftest.$ac_objext conftest$ac_exeext
38088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38089   (eval $ac_link) 2>conftest.er1
38090   ac_status=$?
38091   grep -v '^ *+' conftest.er1 >conftest.err
38092   rm -f conftest.er1
38093   cat conftest.err >&5
38094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095   (exit $ac_status); } &&
38096          { ac_try='test -z "$ac_c_werror_flag"
38097                          || test ! -s conftest.err'
38098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38099   (eval $ac_try) 2>&5
38100   ac_status=$?
38101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102   (exit $ac_status); }; } &&
38103          { ac_try='test -s conftest$ac_exeext'
38104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38105   (eval $ac_try) 2>&5
38106   ac_status=$?
38107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108   (exit $ac_status); }; }; then
38109   eval "$as_ac_var=yes"
38110 else
38111   echo "$as_me: failed program was:" >&5
38112 sed 's/^/| /' conftest.$ac_ext >&5
38113
38114 eval "$as_ac_var=no"
38115 fi
38116 rm -f conftest.err conftest.$ac_objext \
38117       conftest$ac_exeext conftest.$ac_ext
38118 fi
38119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38121 if test `eval echo '${'$as_ac_var'}'` = yes; then
38122   cat >>confdefs.h <<_ACEOF
38123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38124 _ACEOF
38125
38126 fi
38127 done
38128
38129   else
38130
38131   echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
38132 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
38133   if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
38134     if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
38135   echo $ECHO_N "(cached) $ECHO_C" >&6
38136 else
38137
38138
38139
38140       ac_ext=cc
38141 ac_cpp='$CXXCPP $CPPFLAGS'
38142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38145
38146       cat >conftest.$ac_ext <<_ACEOF
38147 /* confdefs.h.  */
38148 _ACEOF
38149 cat confdefs.h >>conftest.$ac_ext
38150 cat >>conftest.$ac_ext <<_ACEOF
38151 /* end confdefs.h.  */
38152 #include <math.h>
38153 int
38154 main ()
38155 {
38156  _ldexpf(0, 0);
38157   ;
38158   return 0;
38159 }
38160 _ACEOF
38161 rm -f conftest.$ac_objext
38162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38163   (eval $ac_compile) 2>conftest.er1
38164   ac_status=$?
38165   grep -v '^ *+' conftest.er1 >conftest.err
38166   rm -f conftest.er1
38167   cat conftest.err >&5
38168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169   (exit $ac_status); } &&
38170          { ac_try='test -z "$ac_cxx_werror_flag"
38171                          || test ! -s conftest.err'
38172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38173   (eval $ac_try) 2>&5
38174   ac_status=$?
38175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38176   (exit $ac_status); }; } &&
38177          { ac_try='test -s conftest.$ac_objext'
38178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38179   (eval $ac_try) 2>&5
38180   ac_status=$?
38181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182   (exit $ac_status); }; }; then
38183   glibcxx_cv_func__ldexpf_use=yes
38184 else
38185   echo "$as_me: failed program was:" >&5
38186 sed 's/^/| /' conftest.$ac_ext >&5
38187
38188 glibcxx_cv_func__ldexpf_use=no
38189 fi
38190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38191       ac_ext=c
38192 ac_cpp='$CPP $CPPFLAGS'
38193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38196
38197
38198 fi
38199
38200   fi
38201   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
38202 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
38203
38204     if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
38205
38206 for ac_func in _ldexpf
38207 do
38208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38209 echo "$as_me:$LINENO: checking for $ac_func" >&5
38210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38211 if eval "test \"\${$as_ac_var+set}\" = set"; then
38212   echo $ECHO_N "(cached) $ECHO_C" >&6
38213 else
38214   if test x$gcc_no_link = xyes; then
38215   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38217    { (exit 1); exit 1; }; }
38218 fi
38219 cat >conftest.$ac_ext <<_ACEOF
38220 /* confdefs.h.  */
38221 _ACEOF
38222 cat confdefs.h >>conftest.$ac_ext
38223 cat >>conftest.$ac_ext <<_ACEOF
38224 /* end confdefs.h.  */
38225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38227 #define $ac_func innocuous_$ac_func
38228
38229 /* System header to define __stub macros and hopefully few prototypes,
38230     which can conflict with char $ac_func (); below.
38231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38232     <limits.h> exists even on freestanding compilers.  */
38233
38234 #ifdef __STDC__
38235 # include <limits.h>
38236 #else
38237 # include <assert.h>
38238 #endif
38239
38240 #undef $ac_func
38241
38242 /* Override any gcc2 internal prototype to avoid an error.  */
38243 #ifdef __cplusplus
38244 extern "C"
38245 {
38246 #endif
38247 /* We use char because int might match the return type of a gcc2
38248    builtin and then its argument prototype would still apply.  */
38249 char $ac_func ();
38250 /* The GNU C library defines this for functions which it implements
38251     to always fail with ENOSYS.  Some functions are actually named
38252     something starting with __ and the normal name is an alias.  */
38253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38254 choke me
38255 #else
38256 char (*f) () = $ac_func;
38257 #endif
38258 #ifdef __cplusplus
38259 }
38260 #endif
38261
38262 int
38263 main ()
38264 {
38265 return f != $ac_func;
38266   ;
38267   return 0;
38268 }
38269 _ACEOF
38270 rm -f conftest.$ac_objext conftest$ac_exeext
38271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38272   (eval $ac_link) 2>conftest.er1
38273   ac_status=$?
38274   grep -v '^ *+' conftest.er1 >conftest.err
38275   rm -f conftest.er1
38276   cat conftest.err >&5
38277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278   (exit $ac_status); } &&
38279          { ac_try='test -z "$ac_c_werror_flag"
38280                          || test ! -s conftest.err'
38281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38282   (eval $ac_try) 2>&5
38283   ac_status=$?
38284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285   (exit $ac_status); }; } &&
38286          { ac_try='test -s conftest$ac_exeext'
38287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288   (eval $ac_try) 2>&5
38289   ac_status=$?
38290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291   (exit $ac_status); }; }; then
38292   eval "$as_ac_var=yes"
38293 else
38294   echo "$as_me: failed program was:" >&5
38295 sed 's/^/| /' conftest.$ac_ext >&5
38296
38297 eval "$as_ac_var=no"
38298 fi
38299 rm -f conftest.err conftest.$ac_objext \
38300       conftest$ac_exeext conftest.$ac_ext
38301 fi
38302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38304 if test `eval echo '${'$as_ac_var'}'` = yes; then
38305   cat >>confdefs.h <<_ACEOF
38306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38307 _ACEOF
38308
38309 fi
38310 done
38311
38312     fi
38313   fi
38314
38315
38316
38317   echo "$as_me:$LINENO: checking for logf declaration" >&5
38318 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
38319   if test x${glibcxx_cv_func_logf_use+set} != xset; then
38320     if test "${glibcxx_cv_func_logf_use+set}" = set; then
38321   echo $ECHO_N "(cached) $ECHO_C" >&6
38322 else
38323
38324
38325
38326       ac_ext=cc
38327 ac_cpp='$CXXCPP $CPPFLAGS'
38328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38331
38332       cat >conftest.$ac_ext <<_ACEOF
38333 /* confdefs.h.  */
38334 _ACEOF
38335 cat confdefs.h >>conftest.$ac_ext
38336 cat >>conftest.$ac_ext <<_ACEOF
38337 /* end confdefs.h.  */
38338 #include <math.h>
38339                       #ifdef HAVE_IEEEFP_H
38340                       #include <ieeefp.h>
38341                       #endif
38342
38343 int
38344 main ()
38345 {
38346  logf(0);
38347   ;
38348   return 0;
38349 }
38350 _ACEOF
38351 rm -f conftest.$ac_objext
38352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38353   (eval $ac_compile) 2>conftest.er1
38354   ac_status=$?
38355   grep -v '^ *+' conftest.er1 >conftest.err
38356   rm -f conftest.er1
38357   cat conftest.err >&5
38358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359   (exit $ac_status); } &&
38360          { ac_try='test -z "$ac_cxx_werror_flag"
38361                          || test ! -s conftest.err'
38362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38363   (eval $ac_try) 2>&5
38364   ac_status=$?
38365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366   (exit $ac_status); }; } &&
38367          { ac_try='test -s conftest.$ac_objext'
38368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38369   (eval $ac_try) 2>&5
38370   ac_status=$?
38371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372   (exit $ac_status); }; }; then
38373   glibcxx_cv_func_logf_use=yes
38374 else
38375   echo "$as_me: failed program was:" >&5
38376 sed 's/^/| /' conftest.$ac_ext >&5
38377
38378 glibcxx_cv_func_logf_use=no
38379 fi
38380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38381       ac_ext=c
38382 ac_cpp='$CPP $CPPFLAGS'
38383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38386
38387
38388 fi
38389
38390   fi
38391   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
38392 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
38393
38394   if test x$glibcxx_cv_func_logf_use = x"yes"; then
38395
38396 for ac_func in logf
38397 do
38398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38399 echo "$as_me:$LINENO: checking for $ac_func" >&5
38400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38401 if eval "test \"\${$as_ac_var+set}\" = set"; then
38402   echo $ECHO_N "(cached) $ECHO_C" >&6
38403 else
38404   if test x$gcc_no_link = xyes; then
38405   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38407    { (exit 1); exit 1; }; }
38408 fi
38409 cat >conftest.$ac_ext <<_ACEOF
38410 /* confdefs.h.  */
38411 _ACEOF
38412 cat confdefs.h >>conftest.$ac_ext
38413 cat >>conftest.$ac_ext <<_ACEOF
38414 /* end confdefs.h.  */
38415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38417 #define $ac_func innocuous_$ac_func
38418
38419 /* System header to define __stub macros and hopefully few prototypes,
38420     which can conflict with char $ac_func (); below.
38421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38422     <limits.h> exists even on freestanding compilers.  */
38423
38424 #ifdef __STDC__
38425 # include <limits.h>
38426 #else
38427 # include <assert.h>
38428 #endif
38429
38430 #undef $ac_func
38431
38432 /* Override any gcc2 internal prototype to avoid an error.  */
38433 #ifdef __cplusplus
38434 extern "C"
38435 {
38436 #endif
38437 /* We use char because int might match the return type of a gcc2
38438    builtin and then its argument prototype would still apply.  */
38439 char $ac_func ();
38440 /* The GNU C library defines this for functions which it implements
38441     to always fail with ENOSYS.  Some functions are actually named
38442     something starting with __ and the normal name is an alias.  */
38443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38444 choke me
38445 #else
38446 char (*f) () = $ac_func;
38447 #endif
38448 #ifdef __cplusplus
38449 }
38450 #endif
38451
38452 int
38453 main ()
38454 {
38455 return f != $ac_func;
38456   ;
38457   return 0;
38458 }
38459 _ACEOF
38460 rm -f conftest.$ac_objext conftest$ac_exeext
38461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38462   (eval $ac_link) 2>conftest.er1
38463   ac_status=$?
38464   grep -v '^ *+' conftest.er1 >conftest.err
38465   rm -f conftest.er1
38466   cat conftest.err >&5
38467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38468   (exit $ac_status); } &&
38469          { ac_try='test -z "$ac_c_werror_flag"
38470                          || test ! -s conftest.err'
38471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38472   (eval $ac_try) 2>&5
38473   ac_status=$?
38474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475   (exit $ac_status); }; } &&
38476          { ac_try='test -s conftest$ac_exeext'
38477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478   (eval $ac_try) 2>&5
38479   ac_status=$?
38480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481   (exit $ac_status); }; }; then
38482   eval "$as_ac_var=yes"
38483 else
38484   echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.$ac_ext >&5
38486
38487 eval "$as_ac_var=no"
38488 fi
38489 rm -f conftest.err conftest.$ac_objext \
38490       conftest$ac_exeext conftest.$ac_ext
38491 fi
38492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38494 if test `eval echo '${'$as_ac_var'}'` = yes; then
38495   cat >>confdefs.h <<_ACEOF
38496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38497 _ACEOF
38498
38499 fi
38500 done
38501
38502   else
38503
38504   echo "$as_me:$LINENO: checking for _logf declaration" >&5
38505 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
38506   if test x${glibcxx_cv_func__logf_use+set} != xset; then
38507     if test "${glibcxx_cv_func__logf_use+set}" = set; then
38508   echo $ECHO_N "(cached) $ECHO_C" >&6
38509 else
38510
38511
38512
38513       ac_ext=cc
38514 ac_cpp='$CXXCPP $CPPFLAGS'
38515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38518
38519       cat >conftest.$ac_ext <<_ACEOF
38520 /* confdefs.h.  */
38521 _ACEOF
38522 cat confdefs.h >>conftest.$ac_ext
38523 cat >>conftest.$ac_ext <<_ACEOF
38524 /* end confdefs.h.  */
38525 #include <math.h>
38526                       #ifdef HAVE_IEEEFP_H
38527                       #include <ieeefp.h>
38528                       #endif
38529
38530 int
38531 main ()
38532 {
38533  _logf(0);
38534   ;
38535   return 0;
38536 }
38537 _ACEOF
38538 rm -f conftest.$ac_objext
38539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38540   (eval $ac_compile) 2>conftest.er1
38541   ac_status=$?
38542   grep -v '^ *+' conftest.er1 >conftest.err
38543   rm -f conftest.er1
38544   cat conftest.err >&5
38545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546   (exit $ac_status); } &&
38547          { ac_try='test -z "$ac_cxx_werror_flag"
38548                          || test ! -s conftest.err'
38549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38550   (eval $ac_try) 2>&5
38551   ac_status=$?
38552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38553   (exit $ac_status); }; } &&
38554          { ac_try='test -s conftest.$ac_objext'
38555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38556   (eval $ac_try) 2>&5
38557   ac_status=$?
38558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559   (exit $ac_status); }; }; then
38560   glibcxx_cv_func__logf_use=yes
38561 else
38562   echo "$as_me: failed program was:" >&5
38563 sed 's/^/| /' conftest.$ac_ext >&5
38564
38565 glibcxx_cv_func__logf_use=no
38566 fi
38567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38568       ac_ext=c
38569 ac_cpp='$CPP $CPPFLAGS'
38570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38573
38574
38575 fi
38576
38577   fi
38578   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
38579 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
38580
38581     if test x$glibcxx_cv_func__logf_use = x"yes"; then
38582
38583 for ac_func in _logf
38584 do
38585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38586 echo "$as_me:$LINENO: checking for $ac_func" >&5
38587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38588 if eval "test \"\${$as_ac_var+set}\" = set"; then
38589   echo $ECHO_N "(cached) $ECHO_C" >&6
38590 else
38591   if test x$gcc_no_link = xyes; then
38592   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38594    { (exit 1); exit 1; }; }
38595 fi
38596 cat >conftest.$ac_ext <<_ACEOF
38597 /* confdefs.h.  */
38598 _ACEOF
38599 cat confdefs.h >>conftest.$ac_ext
38600 cat >>conftest.$ac_ext <<_ACEOF
38601 /* end confdefs.h.  */
38602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38604 #define $ac_func innocuous_$ac_func
38605
38606 /* System header to define __stub macros and hopefully few prototypes,
38607     which can conflict with char $ac_func (); below.
38608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38609     <limits.h> exists even on freestanding compilers.  */
38610
38611 #ifdef __STDC__
38612 # include <limits.h>
38613 #else
38614 # include <assert.h>
38615 #endif
38616
38617 #undef $ac_func
38618
38619 /* Override any gcc2 internal prototype to avoid an error.  */
38620 #ifdef __cplusplus
38621 extern "C"
38622 {
38623 #endif
38624 /* We use char because int might match the return type of a gcc2
38625    builtin and then its argument prototype would still apply.  */
38626 char $ac_func ();
38627 /* The GNU C library defines this for functions which it implements
38628     to always fail with ENOSYS.  Some functions are actually named
38629     something starting with __ and the normal name is an alias.  */
38630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38631 choke me
38632 #else
38633 char (*f) () = $ac_func;
38634 #endif
38635 #ifdef __cplusplus
38636 }
38637 #endif
38638
38639 int
38640 main ()
38641 {
38642 return f != $ac_func;
38643   ;
38644   return 0;
38645 }
38646 _ACEOF
38647 rm -f conftest.$ac_objext conftest$ac_exeext
38648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38649   (eval $ac_link) 2>conftest.er1
38650   ac_status=$?
38651   grep -v '^ *+' conftest.er1 >conftest.err
38652   rm -f conftest.er1
38653   cat conftest.err >&5
38654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655   (exit $ac_status); } &&
38656          { ac_try='test -z "$ac_c_werror_flag"
38657                          || test ! -s conftest.err'
38658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38659   (eval $ac_try) 2>&5
38660   ac_status=$?
38661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38662   (exit $ac_status); }; } &&
38663          { ac_try='test -s conftest$ac_exeext'
38664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38665   (eval $ac_try) 2>&5
38666   ac_status=$?
38667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668   (exit $ac_status); }; }; then
38669   eval "$as_ac_var=yes"
38670 else
38671   echo "$as_me: failed program was:" >&5
38672 sed 's/^/| /' conftest.$ac_ext >&5
38673
38674 eval "$as_ac_var=no"
38675 fi
38676 rm -f conftest.err conftest.$ac_objext \
38677       conftest$ac_exeext conftest.$ac_ext
38678 fi
38679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38681 if test `eval echo '${'$as_ac_var'}'` = yes; then
38682   cat >>confdefs.h <<_ACEOF
38683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38684 _ACEOF
38685
38686 fi
38687 done
38688
38689     fi
38690   fi
38691
38692
38693
38694   echo "$as_me:$LINENO: checking for log10f declaration" >&5
38695 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
38696   if test x${glibcxx_cv_func_log10f_use+set} != xset; then
38697     if test "${glibcxx_cv_func_log10f_use+set}" = set; then
38698   echo $ECHO_N "(cached) $ECHO_C" >&6
38699 else
38700
38701
38702
38703       ac_ext=cc
38704 ac_cpp='$CXXCPP $CPPFLAGS'
38705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38708
38709       cat >conftest.$ac_ext <<_ACEOF
38710 /* confdefs.h.  */
38711 _ACEOF
38712 cat confdefs.h >>conftest.$ac_ext
38713 cat >>conftest.$ac_ext <<_ACEOF
38714 /* end confdefs.h.  */
38715 #include <math.h>
38716                       #ifdef HAVE_IEEEFP_H
38717                       #include <ieeefp.h>
38718                       #endif
38719
38720 int
38721 main ()
38722 {
38723  log10f(0);
38724   ;
38725   return 0;
38726 }
38727 _ACEOF
38728 rm -f conftest.$ac_objext
38729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38730   (eval $ac_compile) 2>conftest.er1
38731   ac_status=$?
38732   grep -v '^ *+' conftest.er1 >conftest.err
38733   rm -f conftest.er1
38734   cat conftest.err >&5
38735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38736   (exit $ac_status); } &&
38737          { ac_try='test -z "$ac_cxx_werror_flag"
38738                          || test ! -s conftest.err'
38739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38740   (eval $ac_try) 2>&5
38741   ac_status=$?
38742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743   (exit $ac_status); }; } &&
38744          { ac_try='test -s conftest.$ac_objext'
38745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38746   (eval $ac_try) 2>&5
38747   ac_status=$?
38748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749   (exit $ac_status); }; }; then
38750   glibcxx_cv_func_log10f_use=yes
38751 else
38752   echo "$as_me: failed program was:" >&5
38753 sed 's/^/| /' conftest.$ac_ext >&5
38754
38755 glibcxx_cv_func_log10f_use=no
38756 fi
38757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38758       ac_ext=c
38759 ac_cpp='$CPP $CPPFLAGS'
38760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38763
38764
38765 fi
38766
38767   fi
38768   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
38769 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
38770
38771   if test x$glibcxx_cv_func_log10f_use = x"yes"; then
38772
38773 for ac_func in log10f
38774 do
38775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38776 echo "$as_me:$LINENO: checking for $ac_func" >&5
38777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38778 if eval "test \"\${$as_ac_var+set}\" = set"; then
38779   echo $ECHO_N "(cached) $ECHO_C" >&6
38780 else
38781   if test x$gcc_no_link = xyes; then
38782   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38784    { (exit 1); exit 1; }; }
38785 fi
38786 cat >conftest.$ac_ext <<_ACEOF
38787 /* confdefs.h.  */
38788 _ACEOF
38789 cat confdefs.h >>conftest.$ac_ext
38790 cat >>conftest.$ac_ext <<_ACEOF
38791 /* end confdefs.h.  */
38792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38794 #define $ac_func innocuous_$ac_func
38795
38796 /* System header to define __stub macros and hopefully few prototypes,
38797     which can conflict with char $ac_func (); below.
38798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38799     <limits.h> exists even on freestanding compilers.  */
38800
38801 #ifdef __STDC__
38802 # include <limits.h>
38803 #else
38804 # include <assert.h>
38805 #endif
38806
38807 #undef $ac_func
38808
38809 /* Override any gcc2 internal prototype to avoid an error.  */
38810 #ifdef __cplusplus
38811 extern "C"
38812 {
38813 #endif
38814 /* We use char because int might match the return type of a gcc2
38815    builtin and then its argument prototype would still apply.  */
38816 char $ac_func ();
38817 /* The GNU C library defines this for functions which it implements
38818     to always fail with ENOSYS.  Some functions are actually named
38819     something starting with __ and the normal name is an alias.  */
38820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38821 choke me
38822 #else
38823 char (*f) () = $ac_func;
38824 #endif
38825 #ifdef __cplusplus
38826 }
38827 #endif
38828
38829 int
38830 main ()
38831 {
38832 return f != $ac_func;
38833   ;
38834   return 0;
38835 }
38836 _ACEOF
38837 rm -f conftest.$ac_objext conftest$ac_exeext
38838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38839   (eval $ac_link) 2>conftest.er1
38840   ac_status=$?
38841   grep -v '^ *+' conftest.er1 >conftest.err
38842   rm -f conftest.er1
38843   cat conftest.err >&5
38844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845   (exit $ac_status); } &&
38846          { ac_try='test -z "$ac_c_werror_flag"
38847                          || test ! -s conftest.err'
38848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38849   (eval $ac_try) 2>&5
38850   ac_status=$?
38851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852   (exit $ac_status); }; } &&
38853          { ac_try='test -s conftest$ac_exeext'
38854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38855   (eval $ac_try) 2>&5
38856   ac_status=$?
38857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858   (exit $ac_status); }; }; then
38859   eval "$as_ac_var=yes"
38860 else
38861   echo "$as_me: failed program was:" >&5
38862 sed 's/^/| /' conftest.$ac_ext >&5
38863
38864 eval "$as_ac_var=no"
38865 fi
38866 rm -f conftest.err conftest.$ac_objext \
38867       conftest$ac_exeext conftest.$ac_ext
38868 fi
38869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38871 if test `eval echo '${'$as_ac_var'}'` = yes; then
38872   cat >>confdefs.h <<_ACEOF
38873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38874 _ACEOF
38875
38876 fi
38877 done
38878
38879   else
38880
38881   echo "$as_me:$LINENO: checking for _log10f declaration" >&5
38882 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
38883   if test x${glibcxx_cv_func__log10f_use+set} != xset; then
38884     if test "${glibcxx_cv_func__log10f_use+set}" = set; then
38885   echo $ECHO_N "(cached) $ECHO_C" >&6
38886 else
38887
38888
38889
38890       ac_ext=cc
38891 ac_cpp='$CXXCPP $CPPFLAGS'
38892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38895
38896       cat >conftest.$ac_ext <<_ACEOF
38897 /* confdefs.h.  */
38898 _ACEOF
38899 cat confdefs.h >>conftest.$ac_ext
38900 cat >>conftest.$ac_ext <<_ACEOF
38901 /* end confdefs.h.  */
38902 #include <math.h>
38903                       #ifdef HAVE_IEEEFP_H
38904                       #include <ieeefp.h>
38905                       #endif
38906
38907 int
38908 main ()
38909 {
38910  _log10f(0);
38911   ;
38912   return 0;
38913 }
38914 _ACEOF
38915 rm -f conftest.$ac_objext
38916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38917   (eval $ac_compile) 2>conftest.er1
38918   ac_status=$?
38919   grep -v '^ *+' conftest.er1 >conftest.err
38920   rm -f conftest.er1
38921   cat conftest.err >&5
38922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923   (exit $ac_status); } &&
38924          { ac_try='test -z "$ac_cxx_werror_flag"
38925                          || test ! -s conftest.err'
38926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38927   (eval $ac_try) 2>&5
38928   ac_status=$?
38929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930   (exit $ac_status); }; } &&
38931          { ac_try='test -s conftest.$ac_objext'
38932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38933   (eval $ac_try) 2>&5
38934   ac_status=$?
38935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38936   (exit $ac_status); }; }; then
38937   glibcxx_cv_func__log10f_use=yes
38938 else
38939   echo "$as_me: failed program was:" >&5
38940 sed 's/^/| /' conftest.$ac_ext >&5
38941
38942 glibcxx_cv_func__log10f_use=no
38943 fi
38944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38945       ac_ext=c
38946 ac_cpp='$CPP $CPPFLAGS'
38947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38950
38951
38952 fi
38953
38954   fi
38955   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
38956 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
38957
38958     if test x$glibcxx_cv_func__log10f_use = x"yes"; then
38959
38960 for ac_func in _log10f
38961 do
38962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38963 echo "$as_me:$LINENO: checking for $ac_func" >&5
38964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38965 if eval "test \"\${$as_ac_var+set}\" = set"; then
38966   echo $ECHO_N "(cached) $ECHO_C" >&6
38967 else
38968   if test x$gcc_no_link = xyes; then
38969   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38971    { (exit 1); exit 1; }; }
38972 fi
38973 cat >conftest.$ac_ext <<_ACEOF
38974 /* confdefs.h.  */
38975 _ACEOF
38976 cat confdefs.h >>conftest.$ac_ext
38977 cat >>conftest.$ac_ext <<_ACEOF
38978 /* end confdefs.h.  */
38979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38981 #define $ac_func innocuous_$ac_func
38982
38983 /* System header to define __stub macros and hopefully few prototypes,
38984     which can conflict with char $ac_func (); below.
38985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38986     <limits.h> exists even on freestanding compilers.  */
38987
38988 #ifdef __STDC__
38989 # include <limits.h>
38990 #else
38991 # include <assert.h>
38992 #endif
38993
38994 #undef $ac_func
38995
38996 /* Override any gcc2 internal prototype to avoid an error.  */
38997 #ifdef __cplusplus
38998 extern "C"
38999 {
39000 #endif
39001 /* We use char because int might match the return type of a gcc2
39002    builtin and then its argument prototype would still apply.  */
39003 char $ac_func ();
39004 /* The GNU C library defines this for functions which it implements
39005     to always fail with ENOSYS.  Some functions are actually named
39006     something starting with __ and the normal name is an alias.  */
39007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39008 choke me
39009 #else
39010 char (*f) () = $ac_func;
39011 #endif
39012 #ifdef __cplusplus
39013 }
39014 #endif
39015
39016 int
39017 main ()
39018 {
39019 return f != $ac_func;
39020   ;
39021   return 0;
39022 }
39023 _ACEOF
39024 rm -f conftest.$ac_objext conftest$ac_exeext
39025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39026   (eval $ac_link) 2>conftest.er1
39027   ac_status=$?
39028   grep -v '^ *+' conftest.er1 >conftest.err
39029   rm -f conftest.er1
39030   cat conftest.err >&5
39031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39032   (exit $ac_status); } &&
39033          { ac_try='test -z "$ac_c_werror_flag"
39034                          || test ! -s conftest.err'
39035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39036   (eval $ac_try) 2>&5
39037   ac_status=$?
39038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39039   (exit $ac_status); }; } &&
39040          { ac_try='test -s conftest$ac_exeext'
39041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39042   (eval $ac_try) 2>&5
39043   ac_status=$?
39044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39045   (exit $ac_status); }; }; then
39046   eval "$as_ac_var=yes"
39047 else
39048   echo "$as_me: failed program was:" >&5
39049 sed 's/^/| /' conftest.$ac_ext >&5
39050
39051 eval "$as_ac_var=no"
39052 fi
39053 rm -f conftest.err conftest.$ac_objext \
39054       conftest$ac_exeext conftest.$ac_ext
39055 fi
39056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39058 if test `eval echo '${'$as_ac_var'}'` = yes; then
39059   cat >>confdefs.h <<_ACEOF
39060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39061 _ACEOF
39062
39063 fi
39064 done
39065
39066     fi
39067   fi
39068
39069
39070
39071   echo "$as_me:$LINENO: checking for modff declaration" >&5
39072 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
39073   if test x${glibcxx_cv_func_modff_use+set} != xset; then
39074     if test "${glibcxx_cv_func_modff_use+set}" = set; then
39075   echo $ECHO_N "(cached) $ECHO_C" >&6
39076 else
39077
39078
39079
39080       ac_ext=cc
39081 ac_cpp='$CXXCPP $CPPFLAGS'
39082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39085
39086       cat >conftest.$ac_ext <<_ACEOF
39087 /* confdefs.h.  */
39088 _ACEOF
39089 cat confdefs.h >>conftest.$ac_ext
39090 cat >>conftest.$ac_ext <<_ACEOF
39091 /* end confdefs.h.  */
39092 #include <math.h>
39093 int
39094 main ()
39095 {
39096  modff(0, 0);
39097   ;
39098   return 0;
39099 }
39100 _ACEOF
39101 rm -f conftest.$ac_objext
39102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39103   (eval $ac_compile) 2>conftest.er1
39104   ac_status=$?
39105   grep -v '^ *+' conftest.er1 >conftest.err
39106   rm -f conftest.er1
39107   cat conftest.err >&5
39108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39109   (exit $ac_status); } &&
39110          { ac_try='test -z "$ac_cxx_werror_flag"
39111                          || test ! -s conftest.err'
39112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39113   (eval $ac_try) 2>&5
39114   ac_status=$?
39115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39116   (exit $ac_status); }; } &&
39117          { ac_try='test -s conftest.$ac_objext'
39118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39119   (eval $ac_try) 2>&5
39120   ac_status=$?
39121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122   (exit $ac_status); }; }; then
39123   glibcxx_cv_func_modff_use=yes
39124 else
39125   echo "$as_me: failed program was:" >&5
39126 sed 's/^/| /' conftest.$ac_ext >&5
39127
39128 glibcxx_cv_func_modff_use=no
39129 fi
39130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39131       ac_ext=c
39132 ac_cpp='$CPP $CPPFLAGS'
39133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39136
39137
39138 fi
39139
39140   fi
39141   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
39142 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
39143
39144   if test x$glibcxx_cv_func_modff_use = x"yes"; then
39145
39146 for ac_func in modff
39147 do
39148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39149 echo "$as_me:$LINENO: checking for $ac_func" >&5
39150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39151 if eval "test \"\${$as_ac_var+set}\" = set"; then
39152   echo $ECHO_N "(cached) $ECHO_C" >&6
39153 else
39154   if test x$gcc_no_link = xyes; then
39155   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39156 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39157    { (exit 1); exit 1; }; }
39158 fi
39159 cat >conftest.$ac_ext <<_ACEOF
39160 /* confdefs.h.  */
39161 _ACEOF
39162 cat confdefs.h >>conftest.$ac_ext
39163 cat >>conftest.$ac_ext <<_ACEOF
39164 /* end confdefs.h.  */
39165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39167 #define $ac_func innocuous_$ac_func
39168
39169 /* System header to define __stub macros and hopefully few prototypes,
39170     which can conflict with char $ac_func (); below.
39171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39172     <limits.h> exists even on freestanding compilers.  */
39173
39174 #ifdef __STDC__
39175 # include <limits.h>
39176 #else
39177 # include <assert.h>
39178 #endif
39179
39180 #undef $ac_func
39181
39182 /* Override any gcc2 internal prototype to avoid an error.  */
39183 #ifdef __cplusplus
39184 extern "C"
39185 {
39186 #endif
39187 /* We use char because int might match the return type of a gcc2
39188    builtin and then its argument prototype would still apply.  */
39189 char $ac_func ();
39190 /* The GNU C library defines this for functions which it implements
39191     to always fail with ENOSYS.  Some functions are actually named
39192     something starting with __ and the normal name is an alias.  */
39193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39194 choke me
39195 #else
39196 char (*f) () = $ac_func;
39197 #endif
39198 #ifdef __cplusplus
39199 }
39200 #endif
39201
39202 int
39203 main ()
39204 {
39205 return f != $ac_func;
39206   ;
39207   return 0;
39208 }
39209 _ACEOF
39210 rm -f conftest.$ac_objext conftest$ac_exeext
39211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39212   (eval $ac_link) 2>conftest.er1
39213   ac_status=$?
39214   grep -v '^ *+' conftest.er1 >conftest.err
39215   rm -f conftest.er1
39216   cat conftest.err >&5
39217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39218   (exit $ac_status); } &&
39219          { ac_try='test -z "$ac_c_werror_flag"
39220                          || test ! -s conftest.err'
39221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222   (eval $ac_try) 2>&5
39223   ac_status=$?
39224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225   (exit $ac_status); }; } &&
39226          { ac_try='test -s conftest$ac_exeext'
39227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39228   (eval $ac_try) 2>&5
39229   ac_status=$?
39230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231   (exit $ac_status); }; }; then
39232   eval "$as_ac_var=yes"
39233 else
39234   echo "$as_me: failed program was:" >&5
39235 sed 's/^/| /' conftest.$ac_ext >&5
39236
39237 eval "$as_ac_var=no"
39238 fi
39239 rm -f conftest.err conftest.$ac_objext \
39240       conftest$ac_exeext conftest.$ac_ext
39241 fi
39242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39244 if test `eval echo '${'$as_ac_var'}'` = yes; then
39245   cat >>confdefs.h <<_ACEOF
39246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39247 _ACEOF
39248
39249 fi
39250 done
39251
39252   else
39253
39254   echo "$as_me:$LINENO: checking for _modff declaration" >&5
39255 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
39256   if test x${glibcxx_cv_func__modff_use+set} != xset; then
39257     if test "${glibcxx_cv_func__modff_use+set}" = set; then
39258   echo $ECHO_N "(cached) $ECHO_C" >&6
39259 else
39260
39261
39262
39263       ac_ext=cc
39264 ac_cpp='$CXXCPP $CPPFLAGS'
39265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39268
39269       cat >conftest.$ac_ext <<_ACEOF
39270 /* confdefs.h.  */
39271 _ACEOF
39272 cat confdefs.h >>conftest.$ac_ext
39273 cat >>conftest.$ac_ext <<_ACEOF
39274 /* end confdefs.h.  */
39275 #include <math.h>
39276 int
39277 main ()
39278 {
39279  _modff(0, 0);
39280   ;
39281   return 0;
39282 }
39283 _ACEOF
39284 rm -f conftest.$ac_objext
39285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39286   (eval $ac_compile) 2>conftest.er1
39287   ac_status=$?
39288   grep -v '^ *+' conftest.er1 >conftest.err
39289   rm -f conftest.er1
39290   cat conftest.err >&5
39291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292   (exit $ac_status); } &&
39293          { ac_try='test -z "$ac_cxx_werror_flag"
39294                          || test ! -s conftest.err'
39295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39296   (eval $ac_try) 2>&5
39297   ac_status=$?
39298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299   (exit $ac_status); }; } &&
39300          { ac_try='test -s conftest.$ac_objext'
39301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302   (eval $ac_try) 2>&5
39303   ac_status=$?
39304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305   (exit $ac_status); }; }; then
39306   glibcxx_cv_func__modff_use=yes
39307 else
39308   echo "$as_me: failed program was:" >&5
39309 sed 's/^/| /' conftest.$ac_ext >&5
39310
39311 glibcxx_cv_func__modff_use=no
39312 fi
39313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39314       ac_ext=c
39315 ac_cpp='$CPP $CPPFLAGS'
39316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39319
39320
39321 fi
39322
39323   fi
39324   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
39325 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
39326
39327     if test x$glibcxx_cv_func__modff_use = x"yes"; then
39328
39329 for ac_func in _modff
39330 do
39331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39332 echo "$as_me:$LINENO: checking for $ac_func" >&5
39333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39334 if eval "test \"\${$as_ac_var+set}\" = set"; then
39335   echo $ECHO_N "(cached) $ECHO_C" >&6
39336 else
39337   if test x$gcc_no_link = xyes; then
39338   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39340    { (exit 1); exit 1; }; }
39341 fi
39342 cat >conftest.$ac_ext <<_ACEOF
39343 /* confdefs.h.  */
39344 _ACEOF
39345 cat confdefs.h >>conftest.$ac_ext
39346 cat >>conftest.$ac_ext <<_ACEOF
39347 /* end confdefs.h.  */
39348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39350 #define $ac_func innocuous_$ac_func
39351
39352 /* System header to define __stub macros and hopefully few prototypes,
39353     which can conflict with char $ac_func (); below.
39354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39355     <limits.h> exists even on freestanding compilers.  */
39356
39357 #ifdef __STDC__
39358 # include <limits.h>
39359 #else
39360 # include <assert.h>
39361 #endif
39362
39363 #undef $ac_func
39364
39365 /* Override any gcc2 internal prototype to avoid an error.  */
39366 #ifdef __cplusplus
39367 extern "C"
39368 {
39369 #endif
39370 /* We use char because int might match the return type of a gcc2
39371    builtin and then its argument prototype would still apply.  */
39372 char $ac_func ();
39373 /* The GNU C library defines this for functions which it implements
39374     to always fail with ENOSYS.  Some functions are actually named
39375     something starting with __ and the normal name is an alias.  */
39376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39377 choke me
39378 #else
39379 char (*f) () = $ac_func;
39380 #endif
39381 #ifdef __cplusplus
39382 }
39383 #endif
39384
39385 int
39386 main ()
39387 {
39388 return f != $ac_func;
39389   ;
39390   return 0;
39391 }
39392 _ACEOF
39393 rm -f conftest.$ac_objext conftest$ac_exeext
39394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39395   (eval $ac_link) 2>conftest.er1
39396   ac_status=$?
39397   grep -v '^ *+' conftest.er1 >conftest.err
39398   rm -f conftest.er1
39399   cat conftest.err >&5
39400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401   (exit $ac_status); } &&
39402          { ac_try='test -z "$ac_c_werror_flag"
39403                          || test ! -s conftest.err'
39404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39405   (eval $ac_try) 2>&5
39406   ac_status=$?
39407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39408   (exit $ac_status); }; } &&
39409          { ac_try='test -s conftest$ac_exeext'
39410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39411   (eval $ac_try) 2>&5
39412   ac_status=$?
39413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39414   (exit $ac_status); }; }; then
39415   eval "$as_ac_var=yes"
39416 else
39417   echo "$as_me: failed program was:" >&5
39418 sed 's/^/| /' conftest.$ac_ext >&5
39419
39420 eval "$as_ac_var=no"
39421 fi
39422 rm -f conftest.err conftest.$ac_objext \
39423       conftest$ac_exeext conftest.$ac_ext
39424 fi
39425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39427 if test `eval echo '${'$as_ac_var'}'` = yes; then
39428   cat >>confdefs.h <<_ACEOF
39429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39430 _ACEOF
39431
39432 fi
39433 done
39434
39435     fi
39436   fi
39437
39438
39439
39440   echo "$as_me:$LINENO: checking for powf declaration" >&5
39441 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
39442   if test x${glibcxx_cv_func_powf_use+set} != xset; then
39443     if test "${glibcxx_cv_func_powf_use+set}" = set; then
39444   echo $ECHO_N "(cached) $ECHO_C" >&6
39445 else
39446
39447
39448
39449       ac_ext=cc
39450 ac_cpp='$CXXCPP $CPPFLAGS'
39451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39454
39455       cat >conftest.$ac_ext <<_ACEOF
39456 /* confdefs.h.  */
39457 _ACEOF
39458 cat confdefs.h >>conftest.$ac_ext
39459 cat >>conftest.$ac_ext <<_ACEOF
39460 /* end confdefs.h.  */
39461 #include <math.h>
39462 int
39463 main ()
39464 {
39465  powf(0, 0);
39466   ;
39467   return 0;
39468 }
39469 _ACEOF
39470 rm -f conftest.$ac_objext
39471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39472   (eval $ac_compile) 2>conftest.er1
39473   ac_status=$?
39474   grep -v '^ *+' conftest.er1 >conftest.err
39475   rm -f conftest.er1
39476   cat conftest.err >&5
39477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39478   (exit $ac_status); } &&
39479          { ac_try='test -z "$ac_cxx_werror_flag"
39480                          || test ! -s conftest.err'
39481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39482   (eval $ac_try) 2>&5
39483   ac_status=$?
39484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39485   (exit $ac_status); }; } &&
39486          { ac_try='test -s conftest.$ac_objext'
39487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39488   (eval $ac_try) 2>&5
39489   ac_status=$?
39490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39491   (exit $ac_status); }; }; then
39492   glibcxx_cv_func_powf_use=yes
39493 else
39494   echo "$as_me: failed program was:" >&5
39495 sed 's/^/| /' conftest.$ac_ext >&5
39496
39497 glibcxx_cv_func_powf_use=no
39498 fi
39499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39500       ac_ext=c
39501 ac_cpp='$CPP $CPPFLAGS'
39502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39505
39506
39507 fi
39508
39509   fi
39510   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
39511 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
39512
39513   if test x$glibcxx_cv_func_powf_use = x"yes"; then
39514
39515 for ac_func in powf
39516 do
39517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39518 echo "$as_me:$LINENO: checking for $ac_func" >&5
39519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39520 if eval "test \"\${$as_ac_var+set}\" = set"; then
39521   echo $ECHO_N "(cached) $ECHO_C" >&6
39522 else
39523   if test x$gcc_no_link = xyes; then
39524   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39525 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39526    { (exit 1); exit 1; }; }
39527 fi
39528 cat >conftest.$ac_ext <<_ACEOF
39529 /* confdefs.h.  */
39530 _ACEOF
39531 cat confdefs.h >>conftest.$ac_ext
39532 cat >>conftest.$ac_ext <<_ACEOF
39533 /* end confdefs.h.  */
39534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39536 #define $ac_func innocuous_$ac_func
39537
39538 /* System header to define __stub macros and hopefully few prototypes,
39539     which can conflict with char $ac_func (); below.
39540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39541     <limits.h> exists even on freestanding compilers.  */
39542
39543 #ifdef __STDC__
39544 # include <limits.h>
39545 #else
39546 # include <assert.h>
39547 #endif
39548
39549 #undef $ac_func
39550
39551 /* Override any gcc2 internal prototype to avoid an error.  */
39552 #ifdef __cplusplus
39553 extern "C"
39554 {
39555 #endif
39556 /* We use char because int might match the return type of a gcc2
39557    builtin and then its argument prototype would still apply.  */
39558 char $ac_func ();
39559 /* The GNU C library defines this for functions which it implements
39560     to always fail with ENOSYS.  Some functions are actually named
39561     something starting with __ and the normal name is an alias.  */
39562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39563 choke me
39564 #else
39565 char (*f) () = $ac_func;
39566 #endif
39567 #ifdef __cplusplus
39568 }
39569 #endif
39570
39571 int
39572 main ()
39573 {
39574 return f != $ac_func;
39575   ;
39576   return 0;
39577 }
39578 _ACEOF
39579 rm -f conftest.$ac_objext conftest$ac_exeext
39580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39581   (eval $ac_link) 2>conftest.er1
39582   ac_status=$?
39583   grep -v '^ *+' conftest.er1 >conftest.err
39584   rm -f conftest.er1
39585   cat conftest.err >&5
39586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39587   (exit $ac_status); } &&
39588          { ac_try='test -z "$ac_c_werror_flag"
39589                          || test ! -s conftest.err'
39590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39591   (eval $ac_try) 2>&5
39592   ac_status=$?
39593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39594   (exit $ac_status); }; } &&
39595          { ac_try='test -s conftest$ac_exeext'
39596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39597   (eval $ac_try) 2>&5
39598   ac_status=$?
39599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600   (exit $ac_status); }; }; then
39601   eval "$as_ac_var=yes"
39602 else
39603   echo "$as_me: failed program was:" >&5
39604 sed 's/^/| /' conftest.$ac_ext >&5
39605
39606 eval "$as_ac_var=no"
39607 fi
39608 rm -f conftest.err conftest.$ac_objext \
39609       conftest$ac_exeext conftest.$ac_ext
39610 fi
39611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39613 if test `eval echo '${'$as_ac_var'}'` = yes; then
39614   cat >>confdefs.h <<_ACEOF
39615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39616 _ACEOF
39617
39618 fi
39619 done
39620
39621   else
39622
39623   echo "$as_me:$LINENO: checking for _powf declaration" >&5
39624 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
39625   if test x${glibcxx_cv_func__powf_use+set} != xset; then
39626     if test "${glibcxx_cv_func__powf_use+set}" = set; then
39627   echo $ECHO_N "(cached) $ECHO_C" >&6
39628 else
39629
39630
39631
39632       ac_ext=cc
39633 ac_cpp='$CXXCPP $CPPFLAGS'
39634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39637
39638       cat >conftest.$ac_ext <<_ACEOF
39639 /* confdefs.h.  */
39640 _ACEOF
39641 cat confdefs.h >>conftest.$ac_ext
39642 cat >>conftest.$ac_ext <<_ACEOF
39643 /* end confdefs.h.  */
39644 #include <math.h>
39645 int
39646 main ()
39647 {
39648  _powf(0, 0);
39649   ;
39650   return 0;
39651 }
39652 _ACEOF
39653 rm -f conftest.$ac_objext
39654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39655   (eval $ac_compile) 2>conftest.er1
39656   ac_status=$?
39657   grep -v '^ *+' conftest.er1 >conftest.err
39658   rm -f conftest.er1
39659   cat conftest.err >&5
39660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39661   (exit $ac_status); } &&
39662          { ac_try='test -z "$ac_cxx_werror_flag"
39663                          || test ! -s conftest.err'
39664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39665   (eval $ac_try) 2>&5
39666   ac_status=$?
39667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668   (exit $ac_status); }; } &&
39669          { ac_try='test -s conftest.$ac_objext'
39670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39671   (eval $ac_try) 2>&5
39672   ac_status=$?
39673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674   (exit $ac_status); }; }; then
39675   glibcxx_cv_func__powf_use=yes
39676 else
39677   echo "$as_me: failed program was:" >&5
39678 sed 's/^/| /' conftest.$ac_ext >&5
39679
39680 glibcxx_cv_func__powf_use=no
39681 fi
39682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39683       ac_ext=c
39684 ac_cpp='$CPP $CPPFLAGS'
39685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39688
39689
39690 fi
39691
39692   fi
39693   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
39694 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
39695
39696     if test x$glibcxx_cv_func__powf_use = x"yes"; then
39697
39698 for ac_func in _powf
39699 do
39700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39701 echo "$as_me:$LINENO: checking for $ac_func" >&5
39702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39703 if eval "test \"\${$as_ac_var+set}\" = set"; then
39704   echo $ECHO_N "(cached) $ECHO_C" >&6
39705 else
39706   if test x$gcc_no_link = xyes; then
39707   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39708 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39709    { (exit 1); exit 1; }; }
39710 fi
39711 cat >conftest.$ac_ext <<_ACEOF
39712 /* confdefs.h.  */
39713 _ACEOF
39714 cat confdefs.h >>conftest.$ac_ext
39715 cat >>conftest.$ac_ext <<_ACEOF
39716 /* end confdefs.h.  */
39717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39719 #define $ac_func innocuous_$ac_func
39720
39721 /* System header to define __stub macros and hopefully few prototypes,
39722     which can conflict with char $ac_func (); below.
39723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39724     <limits.h> exists even on freestanding compilers.  */
39725
39726 #ifdef __STDC__
39727 # include <limits.h>
39728 #else
39729 # include <assert.h>
39730 #endif
39731
39732 #undef $ac_func
39733
39734 /* Override any gcc2 internal prototype to avoid an error.  */
39735 #ifdef __cplusplus
39736 extern "C"
39737 {
39738 #endif
39739 /* We use char because int might match the return type of a gcc2
39740    builtin and then its argument prototype would still apply.  */
39741 char $ac_func ();
39742 /* The GNU C library defines this for functions which it implements
39743     to always fail with ENOSYS.  Some functions are actually named
39744     something starting with __ and the normal name is an alias.  */
39745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39746 choke me
39747 #else
39748 char (*f) () = $ac_func;
39749 #endif
39750 #ifdef __cplusplus
39751 }
39752 #endif
39753
39754 int
39755 main ()
39756 {
39757 return f != $ac_func;
39758   ;
39759   return 0;
39760 }
39761 _ACEOF
39762 rm -f conftest.$ac_objext conftest$ac_exeext
39763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39764   (eval $ac_link) 2>conftest.er1
39765   ac_status=$?
39766   grep -v '^ *+' conftest.er1 >conftest.err
39767   rm -f conftest.er1
39768   cat conftest.err >&5
39769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770   (exit $ac_status); } &&
39771          { ac_try='test -z "$ac_c_werror_flag"
39772                          || test ! -s conftest.err'
39773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39774   (eval $ac_try) 2>&5
39775   ac_status=$?
39776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777   (exit $ac_status); }; } &&
39778          { ac_try='test -s conftest$ac_exeext'
39779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39780   (eval $ac_try) 2>&5
39781   ac_status=$?
39782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783   (exit $ac_status); }; }; then
39784   eval "$as_ac_var=yes"
39785 else
39786   echo "$as_me: failed program was:" >&5
39787 sed 's/^/| /' conftest.$ac_ext >&5
39788
39789 eval "$as_ac_var=no"
39790 fi
39791 rm -f conftest.err conftest.$ac_objext \
39792       conftest$ac_exeext conftest.$ac_ext
39793 fi
39794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39796 if test `eval echo '${'$as_ac_var'}'` = yes; then
39797   cat >>confdefs.h <<_ACEOF
39798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39799 _ACEOF
39800
39801 fi
39802 done
39803
39804     fi
39805   fi
39806
39807
39808
39809   echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
39810 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
39811   if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
39812     if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
39813   echo $ECHO_N "(cached) $ECHO_C" >&6
39814 else
39815
39816
39817
39818       ac_ext=cc
39819 ac_cpp='$CXXCPP $CPPFLAGS'
39820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39823
39824       cat >conftest.$ac_ext <<_ACEOF
39825 /* confdefs.h.  */
39826 _ACEOF
39827 cat confdefs.h >>conftest.$ac_ext
39828 cat >>conftest.$ac_ext <<_ACEOF
39829 /* end confdefs.h.  */
39830 #include <math.h>
39831                       #ifdef HAVE_IEEEFP_H
39832                       #include <ieeefp.h>
39833                       #endif
39834
39835 int
39836 main ()
39837 {
39838  sqrtf(0);
39839   ;
39840   return 0;
39841 }
39842 _ACEOF
39843 rm -f conftest.$ac_objext
39844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39845   (eval $ac_compile) 2>conftest.er1
39846   ac_status=$?
39847   grep -v '^ *+' conftest.er1 >conftest.err
39848   rm -f conftest.er1
39849   cat conftest.err >&5
39850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851   (exit $ac_status); } &&
39852          { ac_try='test -z "$ac_cxx_werror_flag"
39853                          || test ! -s conftest.err'
39854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39855   (eval $ac_try) 2>&5
39856   ac_status=$?
39857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39858   (exit $ac_status); }; } &&
39859          { ac_try='test -s conftest.$ac_objext'
39860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39861   (eval $ac_try) 2>&5
39862   ac_status=$?
39863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864   (exit $ac_status); }; }; then
39865   glibcxx_cv_func_sqrtf_use=yes
39866 else
39867   echo "$as_me: failed program was:" >&5
39868 sed 's/^/| /' conftest.$ac_ext >&5
39869
39870 glibcxx_cv_func_sqrtf_use=no
39871 fi
39872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39873       ac_ext=c
39874 ac_cpp='$CPP $CPPFLAGS'
39875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39878
39879
39880 fi
39881
39882   fi
39883   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
39884 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
39885
39886   if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
39887
39888 for ac_func in sqrtf
39889 do
39890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39891 echo "$as_me:$LINENO: checking for $ac_func" >&5
39892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39893 if eval "test \"\${$as_ac_var+set}\" = set"; then
39894   echo $ECHO_N "(cached) $ECHO_C" >&6
39895 else
39896   if test x$gcc_no_link = xyes; then
39897   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39898 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39899    { (exit 1); exit 1; }; }
39900 fi
39901 cat >conftest.$ac_ext <<_ACEOF
39902 /* confdefs.h.  */
39903 _ACEOF
39904 cat confdefs.h >>conftest.$ac_ext
39905 cat >>conftest.$ac_ext <<_ACEOF
39906 /* end confdefs.h.  */
39907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39909 #define $ac_func innocuous_$ac_func
39910
39911 /* System header to define __stub macros and hopefully few prototypes,
39912     which can conflict with char $ac_func (); below.
39913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39914     <limits.h> exists even on freestanding compilers.  */
39915
39916 #ifdef __STDC__
39917 # include <limits.h>
39918 #else
39919 # include <assert.h>
39920 #endif
39921
39922 #undef $ac_func
39923
39924 /* Override any gcc2 internal prototype to avoid an error.  */
39925 #ifdef __cplusplus
39926 extern "C"
39927 {
39928 #endif
39929 /* We use char because int might match the return type of a gcc2
39930    builtin and then its argument prototype would still apply.  */
39931 char $ac_func ();
39932 /* The GNU C library defines this for functions which it implements
39933     to always fail with ENOSYS.  Some functions are actually named
39934     something starting with __ and the normal name is an alias.  */
39935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39936 choke me
39937 #else
39938 char (*f) () = $ac_func;
39939 #endif
39940 #ifdef __cplusplus
39941 }
39942 #endif
39943
39944 int
39945 main ()
39946 {
39947 return f != $ac_func;
39948   ;
39949   return 0;
39950 }
39951 _ACEOF
39952 rm -f conftest.$ac_objext conftest$ac_exeext
39953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39954   (eval $ac_link) 2>conftest.er1
39955   ac_status=$?
39956   grep -v '^ *+' conftest.er1 >conftest.err
39957   rm -f conftest.er1
39958   cat conftest.err >&5
39959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960   (exit $ac_status); } &&
39961          { ac_try='test -z "$ac_c_werror_flag"
39962                          || test ! -s conftest.err'
39963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964   (eval $ac_try) 2>&5
39965   ac_status=$?
39966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967   (exit $ac_status); }; } &&
39968          { ac_try='test -s conftest$ac_exeext'
39969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39970   (eval $ac_try) 2>&5
39971   ac_status=$?
39972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973   (exit $ac_status); }; }; then
39974   eval "$as_ac_var=yes"
39975 else
39976   echo "$as_me: failed program was:" >&5
39977 sed 's/^/| /' conftest.$ac_ext >&5
39978
39979 eval "$as_ac_var=no"
39980 fi
39981 rm -f conftest.err conftest.$ac_objext \
39982       conftest$ac_exeext conftest.$ac_ext
39983 fi
39984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39986 if test `eval echo '${'$as_ac_var'}'` = yes; then
39987   cat >>confdefs.h <<_ACEOF
39988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39989 _ACEOF
39990
39991 fi
39992 done
39993
39994   else
39995
39996   echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
39997 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
39998   if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
39999     if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
40000   echo $ECHO_N "(cached) $ECHO_C" >&6
40001 else
40002
40003
40004
40005       ac_ext=cc
40006 ac_cpp='$CXXCPP $CPPFLAGS'
40007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40010
40011       cat >conftest.$ac_ext <<_ACEOF
40012 /* confdefs.h.  */
40013 _ACEOF
40014 cat confdefs.h >>conftest.$ac_ext
40015 cat >>conftest.$ac_ext <<_ACEOF
40016 /* end confdefs.h.  */
40017 #include <math.h>
40018                       #ifdef HAVE_IEEEFP_H
40019                       #include <ieeefp.h>
40020                       #endif
40021
40022 int
40023 main ()
40024 {
40025  _sqrtf(0);
40026   ;
40027   return 0;
40028 }
40029 _ACEOF
40030 rm -f conftest.$ac_objext
40031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40032   (eval $ac_compile) 2>conftest.er1
40033   ac_status=$?
40034   grep -v '^ *+' conftest.er1 >conftest.err
40035   rm -f conftest.er1
40036   cat conftest.err >&5
40037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40038   (exit $ac_status); } &&
40039          { ac_try='test -z "$ac_cxx_werror_flag"
40040                          || test ! -s conftest.err'
40041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40042   (eval $ac_try) 2>&5
40043   ac_status=$?
40044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045   (exit $ac_status); }; } &&
40046          { ac_try='test -s conftest.$ac_objext'
40047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40048   (eval $ac_try) 2>&5
40049   ac_status=$?
40050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051   (exit $ac_status); }; }; then
40052   glibcxx_cv_func__sqrtf_use=yes
40053 else
40054   echo "$as_me: failed program was:" >&5
40055 sed 's/^/| /' conftest.$ac_ext >&5
40056
40057 glibcxx_cv_func__sqrtf_use=no
40058 fi
40059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40060       ac_ext=c
40061 ac_cpp='$CPP $CPPFLAGS'
40062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40065
40066
40067 fi
40068
40069   fi
40070   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
40071 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
40072
40073     if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
40074
40075 for ac_func in _sqrtf
40076 do
40077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40078 echo "$as_me:$LINENO: checking for $ac_func" >&5
40079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40080 if eval "test \"\${$as_ac_var+set}\" = set"; then
40081   echo $ECHO_N "(cached) $ECHO_C" >&6
40082 else
40083   if test x$gcc_no_link = xyes; then
40084   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40085 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40086    { (exit 1); exit 1; }; }
40087 fi
40088 cat >conftest.$ac_ext <<_ACEOF
40089 /* confdefs.h.  */
40090 _ACEOF
40091 cat confdefs.h >>conftest.$ac_ext
40092 cat >>conftest.$ac_ext <<_ACEOF
40093 /* end confdefs.h.  */
40094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40096 #define $ac_func innocuous_$ac_func
40097
40098 /* System header to define __stub macros and hopefully few prototypes,
40099     which can conflict with char $ac_func (); below.
40100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40101     <limits.h> exists even on freestanding compilers.  */
40102
40103 #ifdef __STDC__
40104 # include <limits.h>
40105 #else
40106 # include <assert.h>
40107 #endif
40108
40109 #undef $ac_func
40110
40111 /* Override any gcc2 internal prototype to avoid an error.  */
40112 #ifdef __cplusplus
40113 extern "C"
40114 {
40115 #endif
40116 /* We use char because int might match the return type of a gcc2
40117    builtin and then its argument prototype would still apply.  */
40118 char $ac_func ();
40119 /* The GNU C library defines this for functions which it implements
40120     to always fail with ENOSYS.  Some functions are actually named
40121     something starting with __ and the normal name is an alias.  */
40122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40123 choke me
40124 #else
40125 char (*f) () = $ac_func;
40126 #endif
40127 #ifdef __cplusplus
40128 }
40129 #endif
40130
40131 int
40132 main ()
40133 {
40134 return f != $ac_func;
40135   ;
40136   return 0;
40137 }
40138 _ACEOF
40139 rm -f conftest.$ac_objext conftest$ac_exeext
40140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40141   (eval $ac_link) 2>conftest.er1
40142   ac_status=$?
40143   grep -v '^ *+' conftest.er1 >conftest.err
40144   rm -f conftest.er1
40145   cat conftest.err >&5
40146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147   (exit $ac_status); } &&
40148          { ac_try='test -z "$ac_c_werror_flag"
40149                          || test ! -s conftest.err'
40150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40151   (eval $ac_try) 2>&5
40152   ac_status=$?
40153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40154   (exit $ac_status); }; } &&
40155          { ac_try='test -s conftest$ac_exeext'
40156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40157   (eval $ac_try) 2>&5
40158   ac_status=$?
40159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160   (exit $ac_status); }; }; then
40161   eval "$as_ac_var=yes"
40162 else
40163   echo "$as_me: failed program was:" >&5
40164 sed 's/^/| /' conftest.$ac_ext >&5
40165
40166 eval "$as_ac_var=no"
40167 fi
40168 rm -f conftest.err conftest.$ac_objext \
40169       conftest$ac_exeext conftest.$ac_ext
40170 fi
40171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40173 if test `eval echo '${'$as_ac_var'}'` = yes; then
40174   cat >>confdefs.h <<_ACEOF
40175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40176 _ACEOF
40177
40178 fi
40179 done
40180
40181     fi
40182   fi
40183
40184
40185
40186   echo "$as_me:$LINENO: checking for sincosf declaration" >&5
40187 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
40188   if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
40189     if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
40190   echo $ECHO_N "(cached) $ECHO_C" >&6
40191 else
40192
40193
40194
40195       ac_ext=cc
40196 ac_cpp='$CXXCPP $CPPFLAGS'
40197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40200
40201       cat >conftest.$ac_ext <<_ACEOF
40202 /* confdefs.h.  */
40203 _ACEOF
40204 cat confdefs.h >>conftest.$ac_ext
40205 cat >>conftest.$ac_ext <<_ACEOF
40206 /* end confdefs.h.  */
40207 #include <math.h>
40208 int
40209 main ()
40210 {
40211  sincosf(0, 0, 0);
40212   ;
40213   return 0;
40214 }
40215 _ACEOF
40216 rm -f conftest.$ac_objext
40217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40218   (eval $ac_compile) 2>conftest.er1
40219   ac_status=$?
40220   grep -v '^ *+' conftest.er1 >conftest.err
40221   rm -f conftest.er1
40222   cat conftest.err >&5
40223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40224   (exit $ac_status); } &&
40225          { ac_try='test -z "$ac_cxx_werror_flag"
40226                          || test ! -s conftest.err'
40227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40228   (eval $ac_try) 2>&5
40229   ac_status=$?
40230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40231   (exit $ac_status); }; } &&
40232          { ac_try='test -s conftest.$ac_objext'
40233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40234   (eval $ac_try) 2>&5
40235   ac_status=$?
40236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40237   (exit $ac_status); }; }; then
40238   glibcxx_cv_func_sincosf_use=yes
40239 else
40240   echo "$as_me: failed program was:" >&5
40241 sed 's/^/| /' conftest.$ac_ext >&5
40242
40243 glibcxx_cv_func_sincosf_use=no
40244 fi
40245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40246       ac_ext=c
40247 ac_cpp='$CPP $CPPFLAGS'
40248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40251
40252
40253 fi
40254
40255   fi
40256   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
40257 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
40258
40259   if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
40260
40261 for ac_func in sincosf
40262 do
40263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40264 echo "$as_me:$LINENO: checking for $ac_func" >&5
40265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40266 if eval "test \"\${$as_ac_var+set}\" = set"; then
40267   echo $ECHO_N "(cached) $ECHO_C" >&6
40268 else
40269   if test x$gcc_no_link = xyes; then
40270   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40271 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40272    { (exit 1); exit 1; }; }
40273 fi
40274 cat >conftest.$ac_ext <<_ACEOF
40275 /* confdefs.h.  */
40276 _ACEOF
40277 cat confdefs.h >>conftest.$ac_ext
40278 cat >>conftest.$ac_ext <<_ACEOF
40279 /* end confdefs.h.  */
40280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40282 #define $ac_func innocuous_$ac_func
40283
40284 /* System header to define __stub macros and hopefully few prototypes,
40285     which can conflict with char $ac_func (); below.
40286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40287     <limits.h> exists even on freestanding compilers.  */
40288
40289 #ifdef __STDC__
40290 # include <limits.h>
40291 #else
40292 # include <assert.h>
40293 #endif
40294
40295 #undef $ac_func
40296
40297 /* Override any gcc2 internal prototype to avoid an error.  */
40298 #ifdef __cplusplus
40299 extern "C"
40300 {
40301 #endif
40302 /* We use char because int might match the return type of a gcc2
40303    builtin and then its argument prototype would still apply.  */
40304 char $ac_func ();
40305 /* The GNU C library defines this for functions which it implements
40306     to always fail with ENOSYS.  Some functions are actually named
40307     something starting with __ and the normal name is an alias.  */
40308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40309 choke me
40310 #else
40311 char (*f) () = $ac_func;
40312 #endif
40313 #ifdef __cplusplus
40314 }
40315 #endif
40316
40317 int
40318 main ()
40319 {
40320 return f != $ac_func;
40321   ;
40322   return 0;
40323 }
40324 _ACEOF
40325 rm -f conftest.$ac_objext conftest$ac_exeext
40326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40327   (eval $ac_link) 2>conftest.er1
40328   ac_status=$?
40329   grep -v '^ *+' conftest.er1 >conftest.err
40330   rm -f conftest.er1
40331   cat conftest.err >&5
40332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40333   (exit $ac_status); } &&
40334          { ac_try='test -z "$ac_c_werror_flag"
40335                          || test ! -s conftest.err'
40336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40337   (eval $ac_try) 2>&5
40338   ac_status=$?
40339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340   (exit $ac_status); }; } &&
40341          { ac_try='test -s conftest$ac_exeext'
40342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40343   (eval $ac_try) 2>&5
40344   ac_status=$?
40345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40346   (exit $ac_status); }; }; then
40347   eval "$as_ac_var=yes"
40348 else
40349   echo "$as_me: failed program was:" >&5
40350 sed 's/^/| /' conftest.$ac_ext >&5
40351
40352 eval "$as_ac_var=no"
40353 fi
40354 rm -f conftest.err conftest.$ac_objext \
40355       conftest$ac_exeext conftest.$ac_ext
40356 fi
40357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40359 if test `eval echo '${'$as_ac_var'}'` = yes; then
40360   cat >>confdefs.h <<_ACEOF
40361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40362 _ACEOF
40363
40364 fi
40365 done
40366
40367   else
40368
40369   echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
40370 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
40371   if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
40372     if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
40373   echo $ECHO_N "(cached) $ECHO_C" >&6
40374 else
40375
40376
40377
40378       ac_ext=cc
40379 ac_cpp='$CXXCPP $CPPFLAGS'
40380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40383
40384       cat >conftest.$ac_ext <<_ACEOF
40385 /* confdefs.h.  */
40386 _ACEOF
40387 cat confdefs.h >>conftest.$ac_ext
40388 cat >>conftest.$ac_ext <<_ACEOF
40389 /* end confdefs.h.  */
40390 #include <math.h>
40391 int
40392 main ()
40393 {
40394  _sincosf(0, 0, 0);
40395   ;
40396   return 0;
40397 }
40398 _ACEOF
40399 rm -f conftest.$ac_objext
40400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40401   (eval $ac_compile) 2>conftest.er1
40402   ac_status=$?
40403   grep -v '^ *+' conftest.er1 >conftest.err
40404   rm -f conftest.er1
40405   cat conftest.err >&5
40406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40407   (exit $ac_status); } &&
40408          { ac_try='test -z "$ac_cxx_werror_flag"
40409                          || test ! -s conftest.err'
40410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40411   (eval $ac_try) 2>&5
40412   ac_status=$?
40413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414   (exit $ac_status); }; } &&
40415          { ac_try='test -s conftest.$ac_objext'
40416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417   (eval $ac_try) 2>&5
40418   ac_status=$?
40419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420   (exit $ac_status); }; }; then
40421   glibcxx_cv_func__sincosf_use=yes
40422 else
40423   echo "$as_me: failed program was:" >&5
40424 sed 's/^/| /' conftest.$ac_ext >&5
40425
40426 glibcxx_cv_func__sincosf_use=no
40427 fi
40428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40429       ac_ext=c
40430 ac_cpp='$CPP $CPPFLAGS'
40431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40434
40435
40436 fi
40437
40438   fi
40439   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
40440 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
40441
40442     if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
40443
40444 for ac_func in _sincosf
40445 do
40446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40447 echo "$as_me:$LINENO: checking for $ac_func" >&5
40448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40449 if eval "test \"\${$as_ac_var+set}\" = set"; then
40450   echo $ECHO_N "(cached) $ECHO_C" >&6
40451 else
40452   if test x$gcc_no_link = xyes; then
40453   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40454 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40455    { (exit 1); exit 1; }; }
40456 fi
40457 cat >conftest.$ac_ext <<_ACEOF
40458 /* confdefs.h.  */
40459 _ACEOF
40460 cat confdefs.h >>conftest.$ac_ext
40461 cat >>conftest.$ac_ext <<_ACEOF
40462 /* end confdefs.h.  */
40463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40465 #define $ac_func innocuous_$ac_func
40466
40467 /* System header to define __stub macros and hopefully few prototypes,
40468     which can conflict with char $ac_func (); below.
40469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40470     <limits.h> exists even on freestanding compilers.  */
40471
40472 #ifdef __STDC__
40473 # include <limits.h>
40474 #else
40475 # include <assert.h>
40476 #endif
40477
40478 #undef $ac_func
40479
40480 /* Override any gcc2 internal prototype to avoid an error.  */
40481 #ifdef __cplusplus
40482 extern "C"
40483 {
40484 #endif
40485 /* We use char because int might match the return type of a gcc2
40486    builtin and then its argument prototype would still apply.  */
40487 char $ac_func ();
40488 /* The GNU C library defines this for functions which it implements
40489     to always fail with ENOSYS.  Some functions are actually named
40490     something starting with __ and the normal name is an alias.  */
40491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40492 choke me
40493 #else
40494 char (*f) () = $ac_func;
40495 #endif
40496 #ifdef __cplusplus
40497 }
40498 #endif
40499
40500 int
40501 main ()
40502 {
40503 return f != $ac_func;
40504   ;
40505   return 0;
40506 }
40507 _ACEOF
40508 rm -f conftest.$ac_objext conftest$ac_exeext
40509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40510   (eval $ac_link) 2>conftest.er1
40511   ac_status=$?
40512   grep -v '^ *+' conftest.er1 >conftest.err
40513   rm -f conftest.er1
40514   cat conftest.err >&5
40515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40516   (exit $ac_status); } &&
40517          { ac_try='test -z "$ac_c_werror_flag"
40518                          || test ! -s conftest.err'
40519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40520   (eval $ac_try) 2>&5
40521   ac_status=$?
40522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40523   (exit $ac_status); }; } &&
40524          { ac_try='test -s conftest$ac_exeext'
40525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40526   (eval $ac_try) 2>&5
40527   ac_status=$?
40528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40529   (exit $ac_status); }; }; then
40530   eval "$as_ac_var=yes"
40531 else
40532   echo "$as_me: failed program was:" >&5
40533 sed 's/^/| /' conftest.$ac_ext >&5
40534
40535 eval "$as_ac_var=no"
40536 fi
40537 rm -f conftest.err conftest.$ac_objext \
40538       conftest$ac_exeext conftest.$ac_ext
40539 fi
40540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40542 if test `eval echo '${'$as_ac_var'}'` = yes; then
40543   cat >>confdefs.h <<_ACEOF
40544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40545 _ACEOF
40546
40547 fi
40548 done
40549
40550     fi
40551   fi
40552
40553
40554
40555   echo "$as_me:$LINENO: checking for finitef declaration" >&5
40556 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
40557   if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40558     if test "${glibcxx_cv_func_finitef_use+set}" = set; then
40559   echo $ECHO_N "(cached) $ECHO_C" >&6
40560 else
40561
40562
40563
40564       ac_ext=cc
40565 ac_cpp='$CXXCPP $CPPFLAGS'
40566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40569
40570       cat >conftest.$ac_ext <<_ACEOF
40571 /* confdefs.h.  */
40572 _ACEOF
40573 cat confdefs.h >>conftest.$ac_ext
40574 cat >>conftest.$ac_ext <<_ACEOF
40575 /* end confdefs.h.  */
40576 #include <math.h>
40577                       #ifdef HAVE_IEEEFP_H
40578                       #include <ieeefp.h>
40579                       #endif
40580
40581 int
40582 main ()
40583 {
40584  finitef(0);
40585   ;
40586   return 0;
40587 }
40588 _ACEOF
40589 rm -f conftest.$ac_objext
40590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40591   (eval $ac_compile) 2>conftest.er1
40592   ac_status=$?
40593   grep -v '^ *+' conftest.er1 >conftest.err
40594   rm -f conftest.er1
40595   cat conftest.err >&5
40596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40597   (exit $ac_status); } &&
40598          { ac_try='test -z "$ac_cxx_werror_flag"
40599                          || test ! -s conftest.err'
40600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40601   (eval $ac_try) 2>&5
40602   ac_status=$?
40603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40604   (exit $ac_status); }; } &&
40605          { ac_try='test -s conftest.$ac_objext'
40606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40607   (eval $ac_try) 2>&5
40608   ac_status=$?
40609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40610   (exit $ac_status); }; }; then
40611   glibcxx_cv_func_finitef_use=yes
40612 else
40613   echo "$as_me: failed program was:" >&5
40614 sed 's/^/| /' conftest.$ac_ext >&5
40615
40616 glibcxx_cv_func_finitef_use=no
40617 fi
40618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40619       ac_ext=c
40620 ac_cpp='$CPP $CPPFLAGS'
40621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40624
40625
40626 fi
40627
40628   fi
40629   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
40630 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
40631
40632   if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40633
40634 for ac_func in finitef
40635 do
40636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40637 echo "$as_me:$LINENO: checking for $ac_func" >&5
40638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40639 if eval "test \"\${$as_ac_var+set}\" = set"; then
40640   echo $ECHO_N "(cached) $ECHO_C" >&6
40641 else
40642   if test x$gcc_no_link = xyes; then
40643   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40645    { (exit 1); exit 1; }; }
40646 fi
40647 cat >conftest.$ac_ext <<_ACEOF
40648 /* confdefs.h.  */
40649 _ACEOF
40650 cat confdefs.h >>conftest.$ac_ext
40651 cat >>conftest.$ac_ext <<_ACEOF
40652 /* end confdefs.h.  */
40653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40655 #define $ac_func innocuous_$ac_func
40656
40657 /* System header to define __stub macros and hopefully few prototypes,
40658     which can conflict with char $ac_func (); below.
40659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40660     <limits.h> exists even on freestanding compilers.  */
40661
40662 #ifdef __STDC__
40663 # include <limits.h>
40664 #else
40665 # include <assert.h>
40666 #endif
40667
40668 #undef $ac_func
40669
40670 /* Override any gcc2 internal prototype to avoid an error.  */
40671 #ifdef __cplusplus
40672 extern "C"
40673 {
40674 #endif
40675 /* We use char because int might match the return type of a gcc2
40676    builtin and then its argument prototype would still apply.  */
40677 char $ac_func ();
40678 /* The GNU C library defines this for functions which it implements
40679     to always fail with ENOSYS.  Some functions are actually named
40680     something starting with __ and the normal name is an alias.  */
40681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40682 choke me
40683 #else
40684 char (*f) () = $ac_func;
40685 #endif
40686 #ifdef __cplusplus
40687 }
40688 #endif
40689
40690 int
40691 main ()
40692 {
40693 return f != $ac_func;
40694   ;
40695   return 0;
40696 }
40697 _ACEOF
40698 rm -f conftest.$ac_objext conftest$ac_exeext
40699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40700   (eval $ac_link) 2>conftest.er1
40701   ac_status=$?
40702   grep -v '^ *+' conftest.er1 >conftest.err
40703   rm -f conftest.er1
40704   cat conftest.err >&5
40705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40706   (exit $ac_status); } &&
40707          { ac_try='test -z "$ac_c_werror_flag"
40708                          || test ! -s conftest.err'
40709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40710   (eval $ac_try) 2>&5
40711   ac_status=$?
40712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40713   (exit $ac_status); }; } &&
40714          { ac_try='test -s conftest$ac_exeext'
40715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40716   (eval $ac_try) 2>&5
40717   ac_status=$?
40718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40719   (exit $ac_status); }; }; then
40720   eval "$as_ac_var=yes"
40721 else
40722   echo "$as_me: failed program was:" >&5
40723 sed 's/^/| /' conftest.$ac_ext >&5
40724
40725 eval "$as_ac_var=no"
40726 fi
40727 rm -f conftest.err conftest.$ac_objext \
40728       conftest$ac_exeext conftest.$ac_ext
40729 fi
40730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40732 if test `eval echo '${'$as_ac_var'}'` = yes; then
40733   cat >>confdefs.h <<_ACEOF
40734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40735 _ACEOF
40736
40737 fi
40738 done
40739
40740   else
40741
40742   echo "$as_me:$LINENO: checking for _finitef declaration" >&5
40743 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
40744   if test x${glibcxx_cv_func__finitef_use+set} != xset; then
40745     if test "${glibcxx_cv_func__finitef_use+set}" = set; then
40746   echo $ECHO_N "(cached) $ECHO_C" >&6
40747 else
40748
40749
40750
40751       ac_ext=cc
40752 ac_cpp='$CXXCPP $CPPFLAGS'
40753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40756
40757       cat >conftest.$ac_ext <<_ACEOF
40758 /* confdefs.h.  */
40759 _ACEOF
40760 cat confdefs.h >>conftest.$ac_ext
40761 cat >>conftest.$ac_ext <<_ACEOF
40762 /* end confdefs.h.  */
40763 #include <math.h>
40764                       #ifdef HAVE_IEEEFP_H
40765                       #include <ieeefp.h>
40766                       #endif
40767
40768 int
40769 main ()
40770 {
40771  _finitef(0);
40772   ;
40773   return 0;
40774 }
40775 _ACEOF
40776 rm -f conftest.$ac_objext
40777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40778   (eval $ac_compile) 2>conftest.er1
40779   ac_status=$?
40780   grep -v '^ *+' conftest.er1 >conftest.err
40781   rm -f conftest.er1
40782   cat conftest.err >&5
40783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40784   (exit $ac_status); } &&
40785          { ac_try='test -z "$ac_cxx_werror_flag"
40786                          || test ! -s conftest.err'
40787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40788   (eval $ac_try) 2>&5
40789   ac_status=$?
40790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791   (exit $ac_status); }; } &&
40792          { ac_try='test -s conftest.$ac_objext'
40793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40794   (eval $ac_try) 2>&5
40795   ac_status=$?
40796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40797   (exit $ac_status); }; }; then
40798   glibcxx_cv_func__finitef_use=yes
40799 else
40800   echo "$as_me: failed program was:" >&5
40801 sed 's/^/| /' conftest.$ac_ext >&5
40802
40803 glibcxx_cv_func__finitef_use=no
40804 fi
40805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40806       ac_ext=c
40807 ac_cpp='$CPP $CPPFLAGS'
40808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40811
40812
40813 fi
40814
40815   fi
40816   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
40817 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
40818
40819     if test x$glibcxx_cv_func__finitef_use = x"yes"; then
40820
40821 for ac_func in _finitef
40822 do
40823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40824 echo "$as_me:$LINENO: checking for $ac_func" >&5
40825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40826 if eval "test \"\${$as_ac_var+set}\" = set"; then
40827   echo $ECHO_N "(cached) $ECHO_C" >&6
40828 else
40829   if test x$gcc_no_link = xyes; then
40830   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40832    { (exit 1); exit 1; }; }
40833 fi
40834 cat >conftest.$ac_ext <<_ACEOF
40835 /* confdefs.h.  */
40836 _ACEOF
40837 cat confdefs.h >>conftest.$ac_ext
40838 cat >>conftest.$ac_ext <<_ACEOF
40839 /* end confdefs.h.  */
40840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40842 #define $ac_func innocuous_$ac_func
40843
40844 /* System header to define __stub macros and hopefully few prototypes,
40845     which can conflict with char $ac_func (); below.
40846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40847     <limits.h> exists even on freestanding compilers.  */
40848
40849 #ifdef __STDC__
40850 # include <limits.h>
40851 #else
40852 # include <assert.h>
40853 #endif
40854
40855 #undef $ac_func
40856
40857 /* Override any gcc2 internal prototype to avoid an error.  */
40858 #ifdef __cplusplus
40859 extern "C"
40860 {
40861 #endif
40862 /* We use char because int might match the return type of a gcc2
40863    builtin and then its argument prototype would still apply.  */
40864 char $ac_func ();
40865 /* The GNU C library defines this for functions which it implements
40866     to always fail with ENOSYS.  Some functions are actually named
40867     something starting with __ and the normal name is an alias.  */
40868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40869 choke me
40870 #else
40871 char (*f) () = $ac_func;
40872 #endif
40873 #ifdef __cplusplus
40874 }
40875 #endif
40876
40877 int
40878 main ()
40879 {
40880 return f != $ac_func;
40881   ;
40882   return 0;
40883 }
40884 _ACEOF
40885 rm -f conftest.$ac_objext conftest$ac_exeext
40886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40887   (eval $ac_link) 2>conftest.er1
40888   ac_status=$?
40889   grep -v '^ *+' conftest.er1 >conftest.err
40890   rm -f conftest.er1
40891   cat conftest.err >&5
40892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40893   (exit $ac_status); } &&
40894          { ac_try='test -z "$ac_c_werror_flag"
40895                          || test ! -s conftest.err'
40896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40897   (eval $ac_try) 2>&5
40898   ac_status=$?
40899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900   (exit $ac_status); }; } &&
40901          { ac_try='test -s conftest$ac_exeext'
40902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40903   (eval $ac_try) 2>&5
40904   ac_status=$?
40905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40906   (exit $ac_status); }; }; then
40907   eval "$as_ac_var=yes"
40908 else
40909   echo "$as_me: failed program was:" >&5
40910 sed 's/^/| /' conftest.$ac_ext >&5
40911
40912 eval "$as_ac_var=no"
40913 fi
40914 rm -f conftest.err conftest.$ac_objext \
40915       conftest$ac_exeext conftest.$ac_ext
40916 fi
40917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40919 if test `eval echo '${'$as_ac_var'}'` = yes; then
40920   cat >>confdefs.h <<_ACEOF
40921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40922 _ACEOF
40923
40924 fi
40925 done
40926
40927     fi
40928   fi
40929
40930
40931
40932   echo "$as_me:$LINENO: checking for long double trig functions" >&5
40933 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
40934   if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
40935   echo $ECHO_N "(cached) $ECHO_C" >&6
40936 else
40937
40938
40939
40940     ac_ext=cc
40941 ac_cpp='$CXXCPP $CPPFLAGS'
40942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40945
40946     cat >conftest.$ac_ext <<_ACEOF
40947 /* confdefs.h.  */
40948 _ACEOF
40949 cat confdefs.h >>conftest.$ac_ext
40950 cat >>conftest.$ac_ext <<_ACEOF
40951 /* end confdefs.h.  */
40952 #include <math.h>
40953 int
40954 main ()
40955 {
40956  `for x in acosl asinl atanl \
40957                                           cosl sinl tanl \
40958                                           coshl sinhl tanhl; do echo "$x (0);"; done`
40959   ;
40960   return 0;
40961 }
40962 _ACEOF
40963 rm -f conftest.$ac_objext
40964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40965   (eval $ac_compile) 2>conftest.er1
40966   ac_status=$?
40967   grep -v '^ *+' conftest.er1 >conftest.err
40968   rm -f conftest.er1
40969   cat conftest.err >&5
40970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971   (exit $ac_status); } &&
40972          { ac_try='test -z "$ac_cxx_werror_flag"
40973                          || test ! -s conftest.err'
40974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40975   (eval $ac_try) 2>&5
40976   ac_status=$?
40977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978   (exit $ac_status); }; } &&
40979          { ac_try='test -s conftest.$ac_objext'
40980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40981   (eval $ac_try) 2>&5
40982   ac_status=$?
40983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984   (exit $ac_status); }; }; then
40985   glibcxx_cv_func_long_double_trig_use=yes
40986 else
40987   echo "$as_me: failed program was:" >&5
40988 sed 's/^/| /' conftest.$ac_ext >&5
40989
40990 glibcxx_cv_func_long_double_trig_use=no
40991 fi
40992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40993     ac_ext=c
40994 ac_cpp='$CPP $CPPFLAGS'
40995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40998
40999 fi
41000
41001   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
41002 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
41003   if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
41004
41005
41006
41007
41008
41009
41010
41011
41012
41013 for ac_func in acosl asinl atanl \
41014                                           cosl sinl tanl \
41015                                           coshl sinhl tanhl
41016 do
41017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41018 echo "$as_me:$LINENO: checking for $ac_func" >&5
41019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41020 if eval "test \"\${$as_ac_var+set}\" = set"; then
41021   echo $ECHO_N "(cached) $ECHO_C" >&6
41022 else
41023   if test x$gcc_no_link = xyes; then
41024   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41025 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41026    { (exit 1); exit 1; }; }
41027 fi
41028 cat >conftest.$ac_ext <<_ACEOF
41029 /* confdefs.h.  */
41030 _ACEOF
41031 cat confdefs.h >>conftest.$ac_ext
41032 cat >>conftest.$ac_ext <<_ACEOF
41033 /* end confdefs.h.  */
41034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41036 #define $ac_func innocuous_$ac_func
41037
41038 /* System header to define __stub macros and hopefully few prototypes,
41039     which can conflict with char $ac_func (); below.
41040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41041     <limits.h> exists even on freestanding compilers.  */
41042
41043 #ifdef __STDC__
41044 # include <limits.h>
41045 #else
41046 # include <assert.h>
41047 #endif
41048
41049 #undef $ac_func
41050
41051 /* Override any gcc2 internal prototype to avoid an error.  */
41052 #ifdef __cplusplus
41053 extern "C"
41054 {
41055 #endif
41056 /* We use char because int might match the return type of a gcc2
41057    builtin and then its argument prototype would still apply.  */
41058 char $ac_func ();
41059 /* The GNU C library defines this for functions which it implements
41060     to always fail with ENOSYS.  Some functions are actually named
41061     something starting with __ and the normal name is an alias.  */
41062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41063 choke me
41064 #else
41065 char (*f) () = $ac_func;
41066 #endif
41067 #ifdef __cplusplus
41068 }
41069 #endif
41070
41071 int
41072 main ()
41073 {
41074 return f != $ac_func;
41075   ;
41076   return 0;
41077 }
41078 _ACEOF
41079 rm -f conftest.$ac_objext conftest$ac_exeext
41080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41081   (eval $ac_link) 2>conftest.er1
41082   ac_status=$?
41083   grep -v '^ *+' conftest.er1 >conftest.err
41084   rm -f conftest.er1
41085   cat conftest.err >&5
41086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087   (exit $ac_status); } &&
41088          { ac_try='test -z "$ac_c_werror_flag"
41089                          || test ! -s conftest.err'
41090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41091   (eval $ac_try) 2>&5
41092   ac_status=$?
41093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094   (exit $ac_status); }; } &&
41095          { ac_try='test -s conftest$ac_exeext'
41096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41097   (eval $ac_try) 2>&5
41098   ac_status=$?
41099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41100   (exit $ac_status); }; }; then
41101   eval "$as_ac_var=yes"
41102 else
41103   echo "$as_me: failed program was:" >&5
41104 sed 's/^/| /' conftest.$ac_ext >&5
41105
41106 eval "$as_ac_var=no"
41107 fi
41108 rm -f conftest.err conftest.$ac_objext \
41109       conftest$ac_exeext conftest.$ac_ext
41110 fi
41111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41113 if test `eval echo '${'$as_ac_var'}'` = yes; then
41114   cat >>confdefs.h <<_ACEOF
41115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41116 _ACEOF
41117
41118 fi
41119 done
41120
41121   fi
41122
41123
41124   echo "$as_me:$LINENO: checking for long double round functions" >&5
41125 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
41126   if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
41127   echo $ECHO_N "(cached) $ECHO_C" >&6
41128 else
41129
41130
41131
41132     ac_ext=cc
41133 ac_cpp='$CXXCPP $CPPFLAGS'
41134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41137
41138     cat >conftest.$ac_ext <<_ACEOF
41139 /* confdefs.h.  */
41140 _ACEOF
41141 cat confdefs.h >>conftest.$ac_ext
41142 cat >>conftest.$ac_ext <<_ACEOF
41143 /* end confdefs.h.  */
41144 #include <math.h>
41145 int
41146 main ()
41147 {
41148  `for x in ceill floorl; do echo "$x (0);"; done`
41149   ;
41150   return 0;
41151 }
41152 _ACEOF
41153 rm -f conftest.$ac_objext
41154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41155   (eval $ac_compile) 2>conftest.er1
41156   ac_status=$?
41157   grep -v '^ *+' conftest.er1 >conftest.err
41158   rm -f conftest.er1
41159   cat conftest.err >&5
41160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161   (exit $ac_status); } &&
41162          { ac_try='test -z "$ac_cxx_werror_flag"
41163                          || test ! -s conftest.err'
41164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41165   (eval $ac_try) 2>&5
41166   ac_status=$?
41167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168   (exit $ac_status); }; } &&
41169          { ac_try='test -s conftest.$ac_objext'
41170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41171   (eval $ac_try) 2>&5
41172   ac_status=$?
41173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41174   (exit $ac_status); }; }; then
41175   glibcxx_cv_func_long_double_round_use=yes
41176 else
41177   echo "$as_me: failed program was:" >&5
41178 sed 's/^/| /' conftest.$ac_ext >&5
41179
41180 glibcxx_cv_func_long_double_round_use=no
41181 fi
41182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41183     ac_ext=c
41184 ac_cpp='$CPP $CPPFLAGS'
41185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41188
41189 fi
41190
41191   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
41192 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
41193   if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
41194
41195
41196 for ac_func in ceill floorl
41197 do
41198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41199 echo "$as_me:$LINENO: checking for $ac_func" >&5
41200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41201 if eval "test \"\${$as_ac_var+set}\" = set"; then
41202   echo $ECHO_N "(cached) $ECHO_C" >&6
41203 else
41204   if test x$gcc_no_link = xyes; then
41205   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41206 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41207    { (exit 1); exit 1; }; }
41208 fi
41209 cat >conftest.$ac_ext <<_ACEOF
41210 /* confdefs.h.  */
41211 _ACEOF
41212 cat confdefs.h >>conftest.$ac_ext
41213 cat >>conftest.$ac_ext <<_ACEOF
41214 /* end confdefs.h.  */
41215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41217 #define $ac_func innocuous_$ac_func
41218
41219 /* System header to define __stub macros and hopefully few prototypes,
41220     which can conflict with char $ac_func (); below.
41221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41222     <limits.h> exists even on freestanding compilers.  */
41223
41224 #ifdef __STDC__
41225 # include <limits.h>
41226 #else
41227 # include <assert.h>
41228 #endif
41229
41230 #undef $ac_func
41231
41232 /* Override any gcc2 internal prototype to avoid an error.  */
41233 #ifdef __cplusplus
41234 extern "C"
41235 {
41236 #endif
41237 /* We use char because int might match the return type of a gcc2
41238    builtin and then its argument prototype would still apply.  */
41239 char $ac_func ();
41240 /* The GNU C library defines this for functions which it implements
41241     to always fail with ENOSYS.  Some functions are actually named
41242     something starting with __ and the normal name is an alias.  */
41243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41244 choke me
41245 #else
41246 char (*f) () = $ac_func;
41247 #endif
41248 #ifdef __cplusplus
41249 }
41250 #endif
41251
41252 int
41253 main ()
41254 {
41255 return f != $ac_func;
41256   ;
41257   return 0;
41258 }
41259 _ACEOF
41260 rm -f conftest.$ac_objext conftest$ac_exeext
41261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41262   (eval $ac_link) 2>conftest.er1
41263   ac_status=$?
41264   grep -v '^ *+' conftest.er1 >conftest.err
41265   rm -f conftest.er1
41266   cat conftest.err >&5
41267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268   (exit $ac_status); } &&
41269          { ac_try='test -z "$ac_c_werror_flag"
41270                          || test ! -s conftest.err'
41271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41272   (eval $ac_try) 2>&5
41273   ac_status=$?
41274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41275   (exit $ac_status); }; } &&
41276          { ac_try='test -s conftest$ac_exeext'
41277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41278   (eval $ac_try) 2>&5
41279   ac_status=$?
41280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41281   (exit $ac_status); }; }; then
41282   eval "$as_ac_var=yes"
41283 else
41284   echo "$as_me: failed program was:" >&5
41285 sed 's/^/| /' conftest.$ac_ext >&5
41286
41287 eval "$as_ac_var=no"
41288 fi
41289 rm -f conftest.err conftest.$ac_objext \
41290       conftest$ac_exeext conftest.$ac_ext
41291 fi
41292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41294 if test `eval echo '${'$as_ac_var'}'` = yes; then
41295   cat >>confdefs.h <<_ACEOF
41296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41297 _ACEOF
41298
41299 fi
41300 done
41301
41302   fi
41303
41304
41305
41306   echo "$as_me:$LINENO: checking for isnanl declaration" >&5
41307 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
41308   if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
41309     if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
41310   echo $ECHO_N "(cached) $ECHO_C" >&6
41311 else
41312
41313
41314
41315       ac_ext=cc
41316 ac_cpp='$CXXCPP $CPPFLAGS'
41317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41320
41321       cat >conftest.$ac_ext <<_ACEOF
41322 /* confdefs.h.  */
41323 _ACEOF
41324 cat confdefs.h >>conftest.$ac_ext
41325 cat >>conftest.$ac_ext <<_ACEOF
41326 /* end confdefs.h.  */
41327 #include <math.h>
41328                       #ifdef HAVE_IEEEFP_H
41329                       #include <ieeefp.h>
41330                       #endif
41331
41332 int
41333 main ()
41334 {
41335  isnanl(0);
41336   ;
41337   return 0;
41338 }
41339 _ACEOF
41340 rm -f conftest.$ac_objext
41341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41342   (eval $ac_compile) 2>conftest.er1
41343   ac_status=$?
41344   grep -v '^ *+' conftest.er1 >conftest.err
41345   rm -f conftest.er1
41346   cat conftest.err >&5
41347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41348   (exit $ac_status); } &&
41349          { ac_try='test -z "$ac_cxx_werror_flag"
41350                          || test ! -s conftest.err'
41351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41352   (eval $ac_try) 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_isnanl_use=yes
41363 else
41364   echo "$as_me: failed program was:" >&5
41365 sed 's/^/| /' conftest.$ac_ext >&5
41366
41367 glibcxx_cv_func_isnanl_use=no
41368 fi
41369 rm -f conftest.err 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_isnanl_use" >&5
41381 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
41382
41383   if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
41384
41385 for ac_func in isnanl
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 /* confdefs.h.  */
41400 _ACEOF
41401 cat confdefs.h >>conftest.$ac_ext
41402 cat >>conftest.$ac_ext <<_ACEOF
41403 /* end confdefs.h.  */
41404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41406 #define $ac_func innocuous_$ac_func
41407
41408 /* System header to define __stub macros and hopefully few prototypes,
41409     which can conflict with char $ac_func (); below.
41410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41411     <limits.h> exists even on freestanding compilers.  */
41412
41413 #ifdef __STDC__
41414 # include <limits.h>
41415 #else
41416 # include <assert.h>
41417 #endif
41418
41419 #undef $ac_func
41420
41421 /* Override any gcc2 internal prototype to avoid an error.  */
41422 #ifdef __cplusplus
41423 extern "C"
41424 {
41425 #endif
41426 /* We use char because int might match the return type of a gcc2
41427    builtin and then its argument prototype would still apply.  */
41428 char $ac_func ();
41429 /* The GNU C library defines this for functions which it implements
41430     to always fail with ENOSYS.  Some functions are actually named
41431     something starting with __ and the normal name is an alias.  */
41432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41433 choke me
41434 #else
41435 char (*f) () = $ac_func;
41436 #endif
41437 #ifdef __cplusplus
41438 }
41439 #endif
41440
41441 int
41442 main ()
41443 {
41444 return f != $ac_func;
41445   ;
41446   return 0;
41447 }
41448 _ACEOF
41449 rm -f conftest.$ac_objext conftest$ac_exeext
41450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41451   (eval $ac_link) 2>conftest.er1
41452   ac_status=$?
41453   grep -v '^ *+' conftest.er1 >conftest.err
41454   rm -f conftest.er1
41455   cat conftest.err >&5
41456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41457   (exit $ac_status); } &&
41458          { ac_try='test -z "$ac_c_werror_flag"
41459                          || test ! -s conftest.err'
41460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41461   (eval $ac_try) 2>&5
41462   ac_status=$?
41463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464   (exit $ac_status); }; } &&
41465          { ac_try='test -s conftest$ac_exeext'
41466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41467   (eval $ac_try) 2>&5
41468   ac_status=$?
41469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470   (exit $ac_status); }; }; then
41471   eval "$as_ac_var=yes"
41472 else
41473   echo "$as_me: failed program was:" >&5
41474 sed 's/^/| /' conftest.$ac_ext >&5
41475
41476 eval "$as_ac_var=no"
41477 fi
41478 rm -f conftest.err conftest.$ac_objext \
41479       conftest$ac_exeext conftest.$ac_ext
41480 fi
41481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41483 if test `eval echo '${'$as_ac_var'}'` = yes; then
41484   cat >>confdefs.h <<_ACEOF
41485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41486 _ACEOF
41487
41488 fi
41489 done
41490
41491   else
41492
41493   echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
41494 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
41495   if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
41496     if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
41497   echo $ECHO_N "(cached) $ECHO_C" >&6
41498 else
41499
41500
41501
41502       ac_ext=cc
41503 ac_cpp='$CXXCPP $CPPFLAGS'
41504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41507
41508       cat >conftest.$ac_ext <<_ACEOF
41509 /* confdefs.h.  */
41510 _ACEOF
41511 cat confdefs.h >>conftest.$ac_ext
41512 cat >>conftest.$ac_ext <<_ACEOF
41513 /* end confdefs.h.  */
41514 #include <math.h>
41515                       #ifdef HAVE_IEEEFP_H
41516                       #include <ieeefp.h>
41517                       #endif
41518
41519 int
41520 main ()
41521 {
41522  _isnanl(0);
41523   ;
41524   return 0;
41525 }
41526 _ACEOF
41527 rm -f conftest.$ac_objext
41528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41529   (eval $ac_compile) 2>conftest.er1
41530   ac_status=$?
41531   grep -v '^ *+' conftest.er1 >conftest.err
41532   rm -f conftest.er1
41533   cat conftest.err >&5
41534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41535   (exit $ac_status); } &&
41536          { ac_try='test -z "$ac_cxx_werror_flag"
41537                          || test ! -s conftest.err'
41538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41539   (eval $ac_try) 2>&5
41540   ac_status=$?
41541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542   (exit $ac_status); }; } &&
41543          { ac_try='test -s conftest.$ac_objext'
41544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41545   (eval $ac_try) 2>&5
41546   ac_status=$?
41547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548   (exit $ac_status); }; }; then
41549   glibcxx_cv_func__isnanl_use=yes
41550 else
41551   echo "$as_me: failed program was:" >&5
41552 sed 's/^/| /' conftest.$ac_ext >&5
41553
41554 glibcxx_cv_func__isnanl_use=no
41555 fi
41556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41557       ac_ext=c
41558 ac_cpp='$CPP $CPPFLAGS'
41559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41562
41563
41564 fi
41565
41566   fi
41567   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
41568 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
41569
41570     if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
41571
41572 for ac_func in _isnanl
41573 do
41574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41575 echo "$as_me:$LINENO: checking for $ac_func" >&5
41576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41577 if eval "test \"\${$as_ac_var+set}\" = set"; then
41578   echo $ECHO_N "(cached) $ECHO_C" >&6
41579 else
41580   if test x$gcc_no_link = xyes; then
41581   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41582 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41583    { (exit 1); exit 1; }; }
41584 fi
41585 cat >conftest.$ac_ext <<_ACEOF
41586 /* confdefs.h.  */
41587 _ACEOF
41588 cat confdefs.h >>conftest.$ac_ext
41589 cat >>conftest.$ac_ext <<_ACEOF
41590 /* end confdefs.h.  */
41591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41593 #define $ac_func innocuous_$ac_func
41594
41595 /* System header to define __stub macros and hopefully few prototypes,
41596     which can conflict with char $ac_func (); below.
41597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41598     <limits.h> exists even on freestanding compilers.  */
41599
41600 #ifdef __STDC__
41601 # include <limits.h>
41602 #else
41603 # include <assert.h>
41604 #endif
41605
41606 #undef $ac_func
41607
41608 /* Override any gcc2 internal prototype to avoid an error.  */
41609 #ifdef __cplusplus
41610 extern "C"
41611 {
41612 #endif
41613 /* We use char because int might match the return type of a gcc2
41614    builtin and then its argument prototype would still apply.  */
41615 char $ac_func ();
41616 /* The GNU C library defines this for functions which it implements
41617     to always fail with ENOSYS.  Some functions are actually named
41618     something starting with __ and the normal name is an alias.  */
41619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41620 choke me
41621 #else
41622 char (*f) () = $ac_func;
41623 #endif
41624 #ifdef __cplusplus
41625 }
41626 #endif
41627
41628 int
41629 main ()
41630 {
41631 return f != $ac_func;
41632   ;
41633   return 0;
41634 }
41635 _ACEOF
41636 rm -f conftest.$ac_objext conftest$ac_exeext
41637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41638   (eval $ac_link) 2>conftest.er1
41639   ac_status=$?
41640   grep -v '^ *+' conftest.er1 >conftest.err
41641   rm -f conftest.er1
41642   cat conftest.err >&5
41643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644   (exit $ac_status); } &&
41645          { ac_try='test -z "$ac_c_werror_flag"
41646                          || test ! -s conftest.err'
41647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41648   (eval $ac_try) 2>&5
41649   ac_status=$?
41650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41651   (exit $ac_status); }; } &&
41652          { ac_try='test -s conftest$ac_exeext'
41653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41654   (eval $ac_try) 2>&5
41655   ac_status=$?
41656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41657   (exit $ac_status); }; }; then
41658   eval "$as_ac_var=yes"
41659 else
41660   echo "$as_me: failed program was:" >&5
41661 sed 's/^/| /' conftest.$ac_ext >&5
41662
41663 eval "$as_ac_var=no"
41664 fi
41665 rm -f conftest.err conftest.$ac_objext \
41666       conftest$ac_exeext conftest.$ac_ext
41667 fi
41668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41670 if test `eval echo '${'$as_ac_var'}'` = yes; then
41671   cat >>confdefs.h <<_ACEOF
41672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41673 _ACEOF
41674
41675 fi
41676 done
41677
41678     fi
41679   fi
41680
41681
41682
41683   echo "$as_me:$LINENO: checking for isinfl declaration" >&5
41684 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
41685   if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
41686     if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
41687   echo $ECHO_N "(cached) $ECHO_C" >&6
41688 else
41689
41690
41691
41692       ac_ext=cc
41693 ac_cpp='$CXXCPP $CPPFLAGS'
41694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41697
41698       cat >conftest.$ac_ext <<_ACEOF
41699 /* confdefs.h.  */
41700 _ACEOF
41701 cat confdefs.h >>conftest.$ac_ext
41702 cat >>conftest.$ac_ext <<_ACEOF
41703 /* end confdefs.h.  */
41704 #include <math.h>
41705                       #ifdef HAVE_IEEEFP_H
41706                       #include <ieeefp.h>
41707                       #endif
41708
41709 int
41710 main ()
41711 {
41712  isinfl(0);
41713   ;
41714   return 0;
41715 }
41716 _ACEOF
41717 rm -f conftest.$ac_objext
41718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41719   (eval $ac_compile) 2>conftest.er1
41720   ac_status=$?
41721   grep -v '^ *+' conftest.er1 >conftest.err
41722   rm -f conftest.er1
41723   cat conftest.err >&5
41724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41725   (exit $ac_status); } &&
41726          { ac_try='test -z "$ac_cxx_werror_flag"
41727                          || test ! -s conftest.err'
41728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41729   (eval $ac_try) 2>&5
41730   ac_status=$?
41731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41732   (exit $ac_status); }; } &&
41733          { ac_try='test -s conftest.$ac_objext'
41734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41735   (eval $ac_try) 2>&5
41736   ac_status=$?
41737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738   (exit $ac_status); }; }; then
41739   glibcxx_cv_func_isinfl_use=yes
41740 else
41741   echo "$as_me: failed program was:" >&5
41742 sed 's/^/| /' conftest.$ac_ext >&5
41743
41744 glibcxx_cv_func_isinfl_use=no
41745 fi
41746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41747       ac_ext=c
41748 ac_cpp='$CPP $CPPFLAGS'
41749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41752
41753
41754 fi
41755
41756   fi
41757   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
41758 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
41759
41760   if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
41761
41762 for ac_func in isinfl
41763 do
41764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41765 echo "$as_me:$LINENO: checking for $ac_func" >&5
41766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41767 if eval "test \"\${$as_ac_var+set}\" = set"; then
41768   echo $ECHO_N "(cached) $ECHO_C" >&6
41769 else
41770   if test x$gcc_no_link = xyes; then
41771   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41773    { (exit 1); exit 1; }; }
41774 fi
41775 cat >conftest.$ac_ext <<_ACEOF
41776 /* confdefs.h.  */
41777 _ACEOF
41778 cat confdefs.h >>conftest.$ac_ext
41779 cat >>conftest.$ac_ext <<_ACEOF
41780 /* end confdefs.h.  */
41781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41783 #define $ac_func innocuous_$ac_func
41784
41785 /* System header to define __stub macros and hopefully few prototypes,
41786     which can conflict with char $ac_func (); below.
41787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41788     <limits.h> exists even on freestanding compilers.  */
41789
41790 #ifdef __STDC__
41791 # include <limits.h>
41792 #else
41793 # include <assert.h>
41794 #endif
41795
41796 #undef $ac_func
41797
41798 /* Override any gcc2 internal prototype to avoid an error.  */
41799 #ifdef __cplusplus
41800 extern "C"
41801 {
41802 #endif
41803 /* We use char because int might match the return type of a gcc2
41804    builtin and then its argument prototype would still apply.  */
41805 char $ac_func ();
41806 /* The GNU C library defines this for functions which it implements
41807     to always fail with ENOSYS.  Some functions are actually named
41808     something starting with __ and the normal name is an alias.  */
41809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41810 choke me
41811 #else
41812 char (*f) () = $ac_func;
41813 #endif
41814 #ifdef __cplusplus
41815 }
41816 #endif
41817
41818 int
41819 main ()
41820 {
41821 return f != $ac_func;
41822   ;
41823   return 0;
41824 }
41825 _ACEOF
41826 rm -f conftest.$ac_objext conftest$ac_exeext
41827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41828   (eval $ac_link) 2>conftest.er1
41829   ac_status=$?
41830   grep -v '^ *+' conftest.er1 >conftest.err
41831   rm -f conftest.er1
41832   cat conftest.err >&5
41833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834   (exit $ac_status); } &&
41835          { ac_try='test -z "$ac_c_werror_flag"
41836                          || test ! -s conftest.err'
41837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41838   (eval $ac_try) 2>&5
41839   ac_status=$?
41840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41841   (exit $ac_status); }; } &&
41842          { ac_try='test -s conftest$ac_exeext'
41843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41844   (eval $ac_try) 2>&5
41845   ac_status=$?
41846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847   (exit $ac_status); }; }; then
41848   eval "$as_ac_var=yes"
41849 else
41850   echo "$as_me: failed program was:" >&5
41851 sed 's/^/| /' conftest.$ac_ext >&5
41852
41853 eval "$as_ac_var=no"
41854 fi
41855 rm -f conftest.err conftest.$ac_objext \
41856       conftest$ac_exeext conftest.$ac_ext
41857 fi
41858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41860 if test `eval echo '${'$as_ac_var'}'` = yes; then
41861   cat >>confdefs.h <<_ACEOF
41862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41863 _ACEOF
41864
41865 fi
41866 done
41867
41868   else
41869
41870   echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
41871 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
41872   if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
41873     if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
41874   echo $ECHO_N "(cached) $ECHO_C" >&6
41875 else
41876
41877
41878
41879       ac_ext=cc
41880 ac_cpp='$CXXCPP $CPPFLAGS'
41881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41884
41885       cat >conftest.$ac_ext <<_ACEOF
41886 /* confdefs.h.  */
41887 _ACEOF
41888 cat confdefs.h >>conftest.$ac_ext
41889 cat >>conftest.$ac_ext <<_ACEOF
41890 /* end confdefs.h.  */
41891 #include <math.h>
41892                       #ifdef HAVE_IEEEFP_H
41893                       #include <ieeefp.h>
41894                       #endif
41895
41896 int
41897 main ()
41898 {
41899  _isinfl(0);
41900   ;
41901   return 0;
41902 }
41903 _ACEOF
41904 rm -f conftest.$ac_objext
41905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41906   (eval $ac_compile) 2>conftest.er1
41907   ac_status=$?
41908   grep -v '^ *+' conftest.er1 >conftest.err
41909   rm -f conftest.er1
41910   cat conftest.err >&5
41911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41912   (exit $ac_status); } &&
41913          { ac_try='test -z "$ac_cxx_werror_flag"
41914                          || test ! -s conftest.err'
41915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41916   (eval $ac_try) 2>&5
41917   ac_status=$?
41918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41919   (exit $ac_status); }; } &&
41920          { ac_try='test -s conftest.$ac_objext'
41921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41922   (eval $ac_try) 2>&5
41923   ac_status=$?
41924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41925   (exit $ac_status); }; }; then
41926   glibcxx_cv_func__isinfl_use=yes
41927 else
41928   echo "$as_me: failed program was:" >&5
41929 sed 's/^/| /' conftest.$ac_ext >&5
41930
41931 glibcxx_cv_func__isinfl_use=no
41932 fi
41933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41934       ac_ext=c
41935 ac_cpp='$CPP $CPPFLAGS'
41936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41939
41940
41941 fi
41942
41943   fi
41944   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
41945 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
41946
41947     if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
41948
41949 for ac_func in _isinfl
41950 do
41951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41952 echo "$as_me:$LINENO: checking for $ac_func" >&5
41953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41954 if eval "test \"\${$as_ac_var+set}\" = set"; then
41955   echo $ECHO_N "(cached) $ECHO_C" >&6
41956 else
41957   if test x$gcc_no_link = xyes; then
41958   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41960    { (exit 1); exit 1; }; }
41961 fi
41962 cat >conftest.$ac_ext <<_ACEOF
41963 /* confdefs.h.  */
41964 _ACEOF
41965 cat confdefs.h >>conftest.$ac_ext
41966 cat >>conftest.$ac_ext <<_ACEOF
41967 /* end confdefs.h.  */
41968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41970 #define $ac_func innocuous_$ac_func
41971
41972 /* System header to define __stub macros and hopefully few prototypes,
41973     which can conflict with char $ac_func (); below.
41974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41975     <limits.h> exists even on freestanding compilers.  */
41976
41977 #ifdef __STDC__
41978 # include <limits.h>
41979 #else
41980 # include <assert.h>
41981 #endif
41982
41983 #undef $ac_func
41984
41985 /* Override any gcc2 internal prototype to avoid an error.  */
41986 #ifdef __cplusplus
41987 extern "C"
41988 {
41989 #endif
41990 /* We use char because int might match the return type of a gcc2
41991    builtin and then its argument prototype would still apply.  */
41992 char $ac_func ();
41993 /* The GNU C library defines this for functions which it implements
41994     to always fail with ENOSYS.  Some functions are actually named
41995     something starting with __ and the normal name is an alias.  */
41996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41997 choke me
41998 #else
41999 char (*f) () = $ac_func;
42000 #endif
42001 #ifdef __cplusplus
42002 }
42003 #endif
42004
42005 int
42006 main ()
42007 {
42008 return f != $ac_func;
42009   ;
42010   return 0;
42011 }
42012 _ACEOF
42013 rm -f conftest.$ac_objext conftest$ac_exeext
42014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42015   (eval $ac_link) 2>conftest.er1
42016   ac_status=$?
42017   grep -v '^ *+' conftest.er1 >conftest.err
42018   rm -f conftest.er1
42019   cat conftest.err >&5
42020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42021   (exit $ac_status); } &&
42022          { ac_try='test -z "$ac_c_werror_flag"
42023                          || test ! -s conftest.err'
42024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42025   (eval $ac_try) 2>&5
42026   ac_status=$?
42027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42028   (exit $ac_status); }; } &&
42029          { ac_try='test -s conftest$ac_exeext'
42030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42031   (eval $ac_try) 2>&5
42032   ac_status=$?
42033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42034   (exit $ac_status); }; }; then
42035   eval "$as_ac_var=yes"
42036 else
42037   echo "$as_me: failed program was:" >&5
42038 sed 's/^/| /' conftest.$ac_ext >&5
42039
42040 eval "$as_ac_var=no"
42041 fi
42042 rm -f conftest.err conftest.$ac_objext \
42043       conftest$ac_exeext conftest.$ac_ext
42044 fi
42045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42047 if test `eval echo '${'$as_ac_var'}'` = yes; then
42048   cat >>confdefs.h <<_ACEOF
42049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42050 _ACEOF
42051
42052 fi
42053 done
42054
42055     fi
42056   fi
42057
42058
42059
42060   echo "$as_me:$LINENO: checking for copysignl declaration" >&5
42061 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
42062   if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
42063     if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
42064   echo $ECHO_N "(cached) $ECHO_C" >&6
42065 else
42066
42067
42068
42069       ac_ext=cc
42070 ac_cpp='$CXXCPP $CPPFLAGS'
42071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42074
42075       cat >conftest.$ac_ext <<_ACEOF
42076 /* confdefs.h.  */
42077 _ACEOF
42078 cat confdefs.h >>conftest.$ac_ext
42079 cat >>conftest.$ac_ext <<_ACEOF
42080 /* end confdefs.h.  */
42081 #include <math.h>
42082 int
42083 main ()
42084 {
42085  copysignl(0, 0);
42086   ;
42087   return 0;
42088 }
42089 _ACEOF
42090 rm -f conftest.$ac_objext
42091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42092   (eval $ac_compile) 2>conftest.er1
42093   ac_status=$?
42094   grep -v '^ *+' conftest.er1 >conftest.err
42095   rm -f conftest.er1
42096   cat conftest.err >&5
42097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42098   (exit $ac_status); } &&
42099          { ac_try='test -z "$ac_cxx_werror_flag"
42100                          || test ! -s conftest.err'
42101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42102   (eval $ac_try) 2>&5
42103   ac_status=$?
42104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42105   (exit $ac_status); }; } &&
42106          { ac_try='test -s conftest.$ac_objext'
42107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42108   (eval $ac_try) 2>&5
42109   ac_status=$?
42110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42111   (exit $ac_status); }; }; then
42112   glibcxx_cv_func_copysignl_use=yes
42113 else
42114   echo "$as_me: failed program was:" >&5
42115 sed 's/^/| /' conftest.$ac_ext >&5
42116
42117 glibcxx_cv_func_copysignl_use=no
42118 fi
42119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42120       ac_ext=c
42121 ac_cpp='$CPP $CPPFLAGS'
42122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42125
42126
42127 fi
42128
42129   fi
42130   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
42131 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
42132
42133   if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
42134
42135 for ac_func in copysignl
42136 do
42137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42138 echo "$as_me:$LINENO: checking for $ac_func" >&5
42139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42140 if eval "test \"\${$as_ac_var+set}\" = set"; then
42141   echo $ECHO_N "(cached) $ECHO_C" >&6
42142 else
42143   if test x$gcc_no_link = xyes; then
42144   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42146    { (exit 1); exit 1; }; }
42147 fi
42148 cat >conftest.$ac_ext <<_ACEOF
42149 /* confdefs.h.  */
42150 _ACEOF
42151 cat confdefs.h >>conftest.$ac_ext
42152 cat >>conftest.$ac_ext <<_ACEOF
42153 /* end confdefs.h.  */
42154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42156 #define $ac_func innocuous_$ac_func
42157
42158 /* System header to define __stub macros and hopefully few prototypes,
42159     which can conflict with char $ac_func (); below.
42160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42161     <limits.h> exists even on freestanding compilers.  */
42162
42163 #ifdef __STDC__
42164 # include <limits.h>
42165 #else
42166 # include <assert.h>
42167 #endif
42168
42169 #undef $ac_func
42170
42171 /* Override any gcc2 internal prototype to avoid an error.  */
42172 #ifdef __cplusplus
42173 extern "C"
42174 {
42175 #endif
42176 /* We use char because int might match the return type of a gcc2
42177    builtin and then its argument prototype would still apply.  */
42178 char $ac_func ();
42179 /* The GNU C library defines this for functions which it implements
42180     to always fail with ENOSYS.  Some functions are actually named
42181     something starting with __ and the normal name is an alias.  */
42182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42183 choke me
42184 #else
42185 char (*f) () = $ac_func;
42186 #endif
42187 #ifdef __cplusplus
42188 }
42189 #endif
42190
42191 int
42192 main ()
42193 {
42194 return f != $ac_func;
42195   ;
42196   return 0;
42197 }
42198 _ACEOF
42199 rm -f conftest.$ac_objext conftest$ac_exeext
42200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42201   (eval $ac_link) 2>conftest.er1
42202   ac_status=$?
42203   grep -v '^ *+' conftest.er1 >conftest.err
42204   rm -f conftest.er1
42205   cat conftest.err >&5
42206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42207   (exit $ac_status); } &&
42208          { ac_try='test -z "$ac_c_werror_flag"
42209                          || test ! -s conftest.err'
42210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42211   (eval $ac_try) 2>&5
42212   ac_status=$?
42213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42214   (exit $ac_status); }; } &&
42215          { ac_try='test -s conftest$ac_exeext'
42216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42217   (eval $ac_try) 2>&5
42218   ac_status=$?
42219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42220   (exit $ac_status); }; }; then
42221   eval "$as_ac_var=yes"
42222 else
42223   echo "$as_me: failed program was:" >&5
42224 sed 's/^/| /' conftest.$ac_ext >&5
42225
42226 eval "$as_ac_var=no"
42227 fi
42228 rm -f conftest.err conftest.$ac_objext \
42229       conftest$ac_exeext conftest.$ac_ext
42230 fi
42231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42233 if test `eval echo '${'$as_ac_var'}'` = yes; then
42234   cat >>confdefs.h <<_ACEOF
42235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42236 _ACEOF
42237
42238 fi
42239 done
42240
42241   else
42242
42243   echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
42244 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
42245   if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
42246     if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
42247   echo $ECHO_N "(cached) $ECHO_C" >&6
42248 else
42249
42250
42251
42252       ac_ext=cc
42253 ac_cpp='$CXXCPP $CPPFLAGS'
42254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42257
42258       cat >conftest.$ac_ext <<_ACEOF
42259 /* confdefs.h.  */
42260 _ACEOF
42261 cat confdefs.h >>conftest.$ac_ext
42262 cat >>conftest.$ac_ext <<_ACEOF
42263 /* end confdefs.h.  */
42264 #include <math.h>
42265 int
42266 main ()
42267 {
42268  _copysignl(0, 0);
42269   ;
42270   return 0;
42271 }
42272 _ACEOF
42273 rm -f conftest.$ac_objext
42274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42275   (eval $ac_compile) 2>conftest.er1
42276   ac_status=$?
42277   grep -v '^ *+' conftest.er1 >conftest.err
42278   rm -f conftest.er1
42279   cat conftest.err >&5
42280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42281   (exit $ac_status); } &&
42282          { ac_try='test -z "$ac_cxx_werror_flag"
42283                          || test ! -s conftest.err'
42284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42285   (eval $ac_try) 2>&5
42286   ac_status=$?
42287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42288   (exit $ac_status); }; } &&
42289          { ac_try='test -s conftest.$ac_objext'
42290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42291   (eval $ac_try) 2>&5
42292   ac_status=$?
42293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42294   (exit $ac_status); }; }; then
42295   glibcxx_cv_func__copysignl_use=yes
42296 else
42297   echo "$as_me: failed program was:" >&5
42298 sed 's/^/| /' conftest.$ac_ext >&5
42299
42300 glibcxx_cv_func__copysignl_use=no
42301 fi
42302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42303       ac_ext=c
42304 ac_cpp='$CPP $CPPFLAGS'
42305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42308
42309
42310 fi
42311
42312   fi
42313   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
42314 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
42315
42316     if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
42317
42318 for ac_func in _copysignl
42319 do
42320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42321 echo "$as_me:$LINENO: checking for $ac_func" >&5
42322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42323 if eval "test \"\${$as_ac_var+set}\" = set"; then
42324   echo $ECHO_N "(cached) $ECHO_C" >&6
42325 else
42326   if test x$gcc_no_link = xyes; then
42327   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42329    { (exit 1); exit 1; }; }
42330 fi
42331 cat >conftest.$ac_ext <<_ACEOF
42332 /* confdefs.h.  */
42333 _ACEOF
42334 cat confdefs.h >>conftest.$ac_ext
42335 cat >>conftest.$ac_ext <<_ACEOF
42336 /* end confdefs.h.  */
42337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42339 #define $ac_func innocuous_$ac_func
42340
42341 /* System header to define __stub macros and hopefully few prototypes,
42342     which can conflict with char $ac_func (); below.
42343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42344     <limits.h> exists even on freestanding compilers.  */
42345
42346 #ifdef __STDC__
42347 # include <limits.h>
42348 #else
42349 # include <assert.h>
42350 #endif
42351
42352 #undef $ac_func
42353
42354 /* Override any gcc2 internal prototype to avoid an error.  */
42355 #ifdef __cplusplus
42356 extern "C"
42357 {
42358 #endif
42359 /* We use char because int might match the return type of a gcc2
42360    builtin and then its argument prototype would still apply.  */
42361 char $ac_func ();
42362 /* The GNU C library defines this for functions which it implements
42363     to always fail with ENOSYS.  Some functions are actually named
42364     something starting with __ and the normal name is an alias.  */
42365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42366 choke me
42367 #else
42368 char (*f) () = $ac_func;
42369 #endif
42370 #ifdef __cplusplus
42371 }
42372 #endif
42373
42374 int
42375 main ()
42376 {
42377 return f != $ac_func;
42378   ;
42379   return 0;
42380 }
42381 _ACEOF
42382 rm -f conftest.$ac_objext conftest$ac_exeext
42383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42384   (eval $ac_link) 2>conftest.er1
42385   ac_status=$?
42386   grep -v '^ *+' conftest.er1 >conftest.err
42387   rm -f conftest.er1
42388   cat conftest.err >&5
42389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42390   (exit $ac_status); } &&
42391          { ac_try='test -z "$ac_c_werror_flag"
42392                          || test ! -s conftest.err'
42393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42394   (eval $ac_try) 2>&5
42395   ac_status=$?
42396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42397   (exit $ac_status); }; } &&
42398          { ac_try='test -s conftest$ac_exeext'
42399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42400   (eval $ac_try) 2>&5
42401   ac_status=$?
42402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403   (exit $ac_status); }; }; then
42404   eval "$as_ac_var=yes"
42405 else
42406   echo "$as_me: failed program was:" >&5
42407 sed 's/^/| /' conftest.$ac_ext >&5
42408
42409 eval "$as_ac_var=no"
42410 fi
42411 rm -f conftest.err conftest.$ac_objext \
42412       conftest$ac_exeext conftest.$ac_ext
42413 fi
42414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42416 if test `eval echo '${'$as_ac_var'}'` = yes; then
42417   cat >>confdefs.h <<_ACEOF
42418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42419 _ACEOF
42420
42421 fi
42422 done
42423
42424     fi
42425   fi
42426
42427
42428
42429   echo "$as_me:$LINENO: checking for atan2l declaration" >&5
42430 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
42431   if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
42432     if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
42433   echo $ECHO_N "(cached) $ECHO_C" >&6
42434 else
42435
42436
42437
42438       ac_ext=cc
42439 ac_cpp='$CXXCPP $CPPFLAGS'
42440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42443
42444       cat >conftest.$ac_ext <<_ACEOF
42445 /* confdefs.h.  */
42446 _ACEOF
42447 cat confdefs.h >>conftest.$ac_ext
42448 cat >>conftest.$ac_ext <<_ACEOF
42449 /* end confdefs.h.  */
42450 #include <math.h>
42451 int
42452 main ()
42453 {
42454  atan2l(0, 0);
42455   ;
42456   return 0;
42457 }
42458 _ACEOF
42459 rm -f conftest.$ac_objext
42460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42461   (eval $ac_compile) 2>conftest.er1
42462   ac_status=$?
42463   grep -v '^ *+' conftest.er1 >conftest.err
42464   rm -f conftest.er1
42465   cat conftest.err >&5
42466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42467   (exit $ac_status); } &&
42468          { ac_try='test -z "$ac_cxx_werror_flag"
42469                          || test ! -s conftest.err'
42470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42471   (eval $ac_try) 2>&5
42472   ac_status=$?
42473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42474   (exit $ac_status); }; } &&
42475          { ac_try='test -s conftest.$ac_objext'
42476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42477   (eval $ac_try) 2>&5
42478   ac_status=$?
42479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42480   (exit $ac_status); }; }; then
42481   glibcxx_cv_func_atan2l_use=yes
42482 else
42483   echo "$as_me: failed program was:" >&5
42484 sed 's/^/| /' conftest.$ac_ext >&5
42485
42486 glibcxx_cv_func_atan2l_use=no
42487 fi
42488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42489       ac_ext=c
42490 ac_cpp='$CPP $CPPFLAGS'
42491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42494
42495
42496 fi
42497
42498   fi
42499   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
42500 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
42501
42502   if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
42503
42504 for ac_func in atan2l
42505 do
42506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42507 echo "$as_me:$LINENO: checking for $ac_func" >&5
42508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42509 if eval "test \"\${$as_ac_var+set}\" = set"; then
42510   echo $ECHO_N "(cached) $ECHO_C" >&6
42511 else
42512   if test x$gcc_no_link = xyes; then
42513   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42515    { (exit 1); exit 1; }; }
42516 fi
42517 cat >conftest.$ac_ext <<_ACEOF
42518 /* confdefs.h.  */
42519 _ACEOF
42520 cat confdefs.h >>conftest.$ac_ext
42521 cat >>conftest.$ac_ext <<_ACEOF
42522 /* end confdefs.h.  */
42523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42525 #define $ac_func innocuous_$ac_func
42526
42527 /* System header to define __stub macros and hopefully few prototypes,
42528     which can conflict with char $ac_func (); below.
42529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42530     <limits.h> exists even on freestanding compilers.  */
42531
42532 #ifdef __STDC__
42533 # include <limits.h>
42534 #else
42535 # include <assert.h>
42536 #endif
42537
42538 #undef $ac_func
42539
42540 /* Override any gcc2 internal prototype to avoid an error.  */
42541 #ifdef __cplusplus
42542 extern "C"
42543 {
42544 #endif
42545 /* We use char because int might match the return type of a gcc2
42546    builtin and then its argument prototype would still apply.  */
42547 char $ac_func ();
42548 /* The GNU C library defines this for functions which it implements
42549     to always fail with ENOSYS.  Some functions are actually named
42550     something starting with __ and the normal name is an alias.  */
42551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42552 choke me
42553 #else
42554 char (*f) () = $ac_func;
42555 #endif
42556 #ifdef __cplusplus
42557 }
42558 #endif
42559
42560 int
42561 main ()
42562 {
42563 return f != $ac_func;
42564   ;
42565   return 0;
42566 }
42567 _ACEOF
42568 rm -f conftest.$ac_objext conftest$ac_exeext
42569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42570   (eval $ac_link) 2>conftest.er1
42571   ac_status=$?
42572   grep -v '^ *+' conftest.er1 >conftest.err
42573   rm -f conftest.er1
42574   cat conftest.err >&5
42575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576   (exit $ac_status); } &&
42577          { ac_try='test -z "$ac_c_werror_flag"
42578                          || test ! -s conftest.err'
42579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42580   (eval $ac_try) 2>&5
42581   ac_status=$?
42582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583   (exit $ac_status); }; } &&
42584          { ac_try='test -s conftest$ac_exeext'
42585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42586   (eval $ac_try) 2>&5
42587   ac_status=$?
42588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589   (exit $ac_status); }; }; then
42590   eval "$as_ac_var=yes"
42591 else
42592   echo "$as_me: failed program was:" >&5
42593 sed 's/^/| /' conftest.$ac_ext >&5
42594
42595 eval "$as_ac_var=no"
42596 fi
42597 rm -f conftest.err conftest.$ac_objext \
42598       conftest$ac_exeext conftest.$ac_ext
42599 fi
42600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42602 if test `eval echo '${'$as_ac_var'}'` = yes; then
42603   cat >>confdefs.h <<_ACEOF
42604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42605 _ACEOF
42606
42607 fi
42608 done
42609
42610   else
42611
42612   echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
42613 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
42614   if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
42615     if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
42616   echo $ECHO_N "(cached) $ECHO_C" >&6
42617 else
42618
42619
42620
42621       ac_ext=cc
42622 ac_cpp='$CXXCPP $CPPFLAGS'
42623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42626
42627       cat >conftest.$ac_ext <<_ACEOF
42628 /* confdefs.h.  */
42629 _ACEOF
42630 cat confdefs.h >>conftest.$ac_ext
42631 cat >>conftest.$ac_ext <<_ACEOF
42632 /* end confdefs.h.  */
42633 #include <math.h>
42634 int
42635 main ()
42636 {
42637  _atan2l(0, 0);
42638   ;
42639   return 0;
42640 }
42641 _ACEOF
42642 rm -f conftest.$ac_objext
42643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42644   (eval $ac_compile) 2>conftest.er1
42645   ac_status=$?
42646   grep -v '^ *+' conftest.er1 >conftest.err
42647   rm -f conftest.er1
42648   cat conftest.err >&5
42649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42650   (exit $ac_status); } &&
42651          { ac_try='test -z "$ac_cxx_werror_flag"
42652                          || test ! -s conftest.err'
42653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42654   (eval $ac_try) 2>&5
42655   ac_status=$?
42656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657   (exit $ac_status); }; } &&
42658          { ac_try='test -s conftest.$ac_objext'
42659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42660   (eval $ac_try) 2>&5
42661   ac_status=$?
42662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42663   (exit $ac_status); }; }; then
42664   glibcxx_cv_func__atan2l_use=yes
42665 else
42666   echo "$as_me: failed program was:" >&5
42667 sed 's/^/| /' conftest.$ac_ext >&5
42668
42669 glibcxx_cv_func__atan2l_use=no
42670 fi
42671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42672       ac_ext=c
42673 ac_cpp='$CPP $CPPFLAGS'
42674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42677
42678
42679 fi
42680
42681   fi
42682   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
42683 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
42684
42685     if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
42686
42687 for ac_func in _atan2l
42688 do
42689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42690 echo "$as_me:$LINENO: checking for $ac_func" >&5
42691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42692 if eval "test \"\${$as_ac_var+set}\" = set"; then
42693   echo $ECHO_N "(cached) $ECHO_C" >&6
42694 else
42695   if test x$gcc_no_link = xyes; then
42696   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42698    { (exit 1); exit 1; }; }
42699 fi
42700 cat >conftest.$ac_ext <<_ACEOF
42701 /* confdefs.h.  */
42702 _ACEOF
42703 cat confdefs.h >>conftest.$ac_ext
42704 cat >>conftest.$ac_ext <<_ACEOF
42705 /* end confdefs.h.  */
42706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42708 #define $ac_func innocuous_$ac_func
42709
42710 /* System header to define __stub macros and hopefully few prototypes,
42711     which can conflict with char $ac_func (); below.
42712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42713     <limits.h> exists even on freestanding compilers.  */
42714
42715 #ifdef __STDC__
42716 # include <limits.h>
42717 #else
42718 # include <assert.h>
42719 #endif
42720
42721 #undef $ac_func
42722
42723 /* Override any gcc2 internal prototype to avoid an error.  */
42724 #ifdef __cplusplus
42725 extern "C"
42726 {
42727 #endif
42728 /* We use char because int might match the return type of a gcc2
42729    builtin and then its argument prototype would still apply.  */
42730 char $ac_func ();
42731 /* The GNU C library defines this for functions which it implements
42732     to always fail with ENOSYS.  Some functions are actually named
42733     something starting with __ and the normal name is an alias.  */
42734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42735 choke me
42736 #else
42737 char (*f) () = $ac_func;
42738 #endif
42739 #ifdef __cplusplus
42740 }
42741 #endif
42742
42743 int
42744 main ()
42745 {
42746 return f != $ac_func;
42747   ;
42748   return 0;
42749 }
42750 _ACEOF
42751 rm -f conftest.$ac_objext conftest$ac_exeext
42752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42753   (eval $ac_link) 2>conftest.er1
42754   ac_status=$?
42755   grep -v '^ *+' conftest.er1 >conftest.err
42756   rm -f conftest.er1
42757   cat conftest.err >&5
42758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42759   (exit $ac_status); } &&
42760          { ac_try='test -z "$ac_c_werror_flag"
42761                          || test ! -s conftest.err'
42762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42763   (eval $ac_try) 2>&5
42764   ac_status=$?
42765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42766   (exit $ac_status); }; } &&
42767          { ac_try='test -s conftest$ac_exeext'
42768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42769   (eval $ac_try) 2>&5
42770   ac_status=$?
42771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42772   (exit $ac_status); }; }; then
42773   eval "$as_ac_var=yes"
42774 else
42775   echo "$as_me: failed program was:" >&5
42776 sed 's/^/| /' conftest.$ac_ext >&5
42777
42778 eval "$as_ac_var=no"
42779 fi
42780 rm -f conftest.err conftest.$ac_objext \
42781       conftest$ac_exeext conftest.$ac_ext
42782 fi
42783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42785 if test `eval echo '${'$as_ac_var'}'` = yes; then
42786   cat >>confdefs.h <<_ACEOF
42787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42788 _ACEOF
42789
42790 fi
42791 done
42792
42793     fi
42794   fi
42795
42796
42797
42798   echo "$as_me:$LINENO: checking for expl declaration" >&5
42799 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
42800   if test x${glibcxx_cv_func_expl_use+set} != xset; then
42801     if test "${glibcxx_cv_func_expl_use+set}" = set; then
42802   echo $ECHO_N "(cached) $ECHO_C" >&6
42803 else
42804
42805
42806
42807       ac_ext=cc
42808 ac_cpp='$CXXCPP $CPPFLAGS'
42809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42812
42813       cat >conftest.$ac_ext <<_ACEOF
42814 /* confdefs.h.  */
42815 _ACEOF
42816 cat confdefs.h >>conftest.$ac_ext
42817 cat >>conftest.$ac_ext <<_ACEOF
42818 /* end confdefs.h.  */
42819 #include <math.h>
42820                       #ifdef HAVE_IEEEFP_H
42821                       #include <ieeefp.h>
42822                       #endif
42823
42824 int
42825 main ()
42826 {
42827  expl(0);
42828   ;
42829   return 0;
42830 }
42831 _ACEOF
42832 rm -f conftest.$ac_objext
42833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42834   (eval $ac_compile) 2>conftest.er1
42835   ac_status=$?
42836   grep -v '^ *+' conftest.er1 >conftest.err
42837   rm -f conftest.er1
42838   cat conftest.err >&5
42839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42840   (exit $ac_status); } &&
42841          { ac_try='test -z "$ac_cxx_werror_flag"
42842                          || test ! -s conftest.err'
42843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42844   (eval $ac_try) 2>&5
42845   ac_status=$?
42846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42847   (exit $ac_status); }; } &&
42848          { ac_try='test -s conftest.$ac_objext'
42849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42850   (eval $ac_try) 2>&5
42851   ac_status=$?
42852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42853   (exit $ac_status); }; }; then
42854   glibcxx_cv_func_expl_use=yes
42855 else
42856   echo "$as_me: failed program was:" >&5
42857 sed 's/^/| /' conftest.$ac_ext >&5
42858
42859 glibcxx_cv_func_expl_use=no
42860 fi
42861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42862       ac_ext=c
42863 ac_cpp='$CPP $CPPFLAGS'
42864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42867
42868
42869 fi
42870
42871   fi
42872   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
42873 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
42874
42875   if test x$glibcxx_cv_func_expl_use = x"yes"; then
42876
42877 for ac_func in expl
42878 do
42879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42880 echo "$as_me:$LINENO: checking for $ac_func" >&5
42881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42882 if eval "test \"\${$as_ac_var+set}\" = set"; then
42883   echo $ECHO_N "(cached) $ECHO_C" >&6
42884 else
42885   if test x$gcc_no_link = xyes; then
42886   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42888    { (exit 1); exit 1; }; }
42889 fi
42890 cat >conftest.$ac_ext <<_ACEOF
42891 /* confdefs.h.  */
42892 _ACEOF
42893 cat confdefs.h >>conftest.$ac_ext
42894 cat >>conftest.$ac_ext <<_ACEOF
42895 /* end confdefs.h.  */
42896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42898 #define $ac_func innocuous_$ac_func
42899
42900 /* System header to define __stub macros and hopefully few prototypes,
42901     which can conflict with char $ac_func (); below.
42902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42903     <limits.h> exists even on freestanding compilers.  */
42904
42905 #ifdef __STDC__
42906 # include <limits.h>
42907 #else
42908 # include <assert.h>
42909 #endif
42910
42911 #undef $ac_func
42912
42913 /* Override any gcc2 internal prototype to avoid an error.  */
42914 #ifdef __cplusplus
42915 extern "C"
42916 {
42917 #endif
42918 /* We use char because int might match the return type of a gcc2
42919    builtin and then its argument prototype would still apply.  */
42920 char $ac_func ();
42921 /* The GNU C library defines this for functions which it implements
42922     to always fail with ENOSYS.  Some functions are actually named
42923     something starting with __ and the normal name is an alias.  */
42924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42925 choke me
42926 #else
42927 char (*f) () = $ac_func;
42928 #endif
42929 #ifdef __cplusplus
42930 }
42931 #endif
42932
42933 int
42934 main ()
42935 {
42936 return f != $ac_func;
42937   ;
42938   return 0;
42939 }
42940 _ACEOF
42941 rm -f conftest.$ac_objext conftest$ac_exeext
42942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42943   (eval $ac_link) 2>conftest.er1
42944   ac_status=$?
42945   grep -v '^ *+' conftest.er1 >conftest.err
42946   rm -f conftest.er1
42947   cat conftest.err >&5
42948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42949   (exit $ac_status); } &&
42950          { ac_try='test -z "$ac_c_werror_flag"
42951                          || test ! -s conftest.err'
42952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42953   (eval $ac_try) 2>&5
42954   ac_status=$?
42955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42956   (exit $ac_status); }; } &&
42957          { ac_try='test -s conftest$ac_exeext'
42958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42959   (eval $ac_try) 2>&5
42960   ac_status=$?
42961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42962   (exit $ac_status); }; }; then
42963   eval "$as_ac_var=yes"
42964 else
42965   echo "$as_me: failed program was:" >&5
42966 sed 's/^/| /' conftest.$ac_ext >&5
42967
42968 eval "$as_ac_var=no"
42969 fi
42970 rm -f conftest.err conftest.$ac_objext \
42971       conftest$ac_exeext conftest.$ac_ext
42972 fi
42973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42975 if test `eval echo '${'$as_ac_var'}'` = yes; then
42976   cat >>confdefs.h <<_ACEOF
42977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42978 _ACEOF
42979
42980 fi
42981 done
42982
42983   else
42984
42985   echo "$as_me:$LINENO: checking for _expl declaration" >&5
42986 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
42987   if test x${glibcxx_cv_func__expl_use+set} != xset; then
42988     if test "${glibcxx_cv_func__expl_use+set}" = set; then
42989   echo $ECHO_N "(cached) $ECHO_C" >&6
42990 else
42991
42992
42993
42994       ac_ext=cc
42995 ac_cpp='$CXXCPP $CPPFLAGS'
42996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42999
43000       cat >conftest.$ac_ext <<_ACEOF
43001 /* confdefs.h.  */
43002 _ACEOF
43003 cat confdefs.h >>conftest.$ac_ext
43004 cat >>conftest.$ac_ext <<_ACEOF
43005 /* end confdefs.h.  */
43006 #include <math.h>
43007                       #ifdef HAVE_IEEEFP_H
43008                       #include <ieeefp.h>
43009                       #endif
43010
43011 int
43012 main ()
43013 {
43014  _expl(0);
43015   ;
43016   return 0;
43017 }
43018 _ACEOF
43019 rm -f conftest.$ac_objext
43020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43021   (eval $ac_compile) 2>conftest.er1
43022   ac_status=$?
43023   grep -v '^ *+' conftest.er1 >conftest.err
43024   rm -f conftest.er1
43025   cat conftest.err >&5
43026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43027   (exit $ac_status); } &&
43028          { ac_try='test -z "$ac_cxx_werror_flag"
43029                          || test ! -s conftest.err'
43030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43031   (eval $ac_try) 2>&5
43032   ac_status=$?
43033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43034   (exit $ac_status); }; } &&
43035          { ac_try='test -s conftest.$ac_objext'
43036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43037   (eval $ac_try) 2>&5
43038   ac_status=$?
43039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43040   (exit $ac_status); }; }; then
43041   glibcxx_cv_func__expl_use=yes
43042 else
43043   echo "$as_me: failed program was:" >&5
43044 sed 's/^/| /' conftest.$ac_ext >&5
43045
43046 glibcxx_cv_func__expl_use=no
43047 fi
43048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43049       ac_ext=c
43050 ac_cpp='$CPP $CPPFLAGS'
43051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43054
43055
43056 fi
43057
43058   fi
43059   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
43060 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
43061
43062     if test x$glibcxx_cv_func__expl_use = x"yes"; then
43063
43064 for ac_func in _expl
43065 do
43066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43067 echo "$as_me:$LINENO: checking for $ac_func" >&5
43068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43069 if eval "test \"\${$as_ac_var+set}\" = set"; then
43070   echo $ECHO_N "(cached) $ECHO_C" >&6
43071 else
43072   if test x$gcc_no_link = xyes; then
43073   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43075    { (exit 1); exit 1; }; }
43076 fi
43077 cat >conftest.$ac_ext <<_ACEOF
43078 /* confdefs.h.  */
43079 _ACEOF
43080 cat confdefs.h >>conftest.$ac_ext
43081 cat >>conftest.$ac_ext <<_ACEOF
43082 /* end confdefs.h.  */
43083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43085 #define $ac_func innocuous_$ac_func
43086
43087 /* System header to define __stub macros and hopefully few prototypes,
43088     which can conflict with char $ac_func (); below.
43089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43090     <limits.h> exists even on freestanding compilers.  */
43091
43092 #ifdef __STDC__
43093 # include <limits.h>
43094 #else
43095 # include <assert.h>
43096 #endif
43097
43098 #undef $ac_func
43099
43100 /* Override any gcc2 internal prototype to avoid an error.  */
43101 #ifdef __cplusplus
43102 extern "C"
43103 {
43104 #endif
43105 /* We use char because int might match the return type of a gcc2
43106    builtin and then its argument prototype would still apply.  */
43107 char $ac_func ();
43108 /* The GNU C library defines this for functions which it implements
43109     to always fail with ENOSYS.  Some functions are actually named
43110     something starting with __ and the normal name is an alias.  */
43111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43112 choke me
43113 #else
43114 char (*f) () = $ac_func;
43115 #endif
43116 #ifdef __cplusplus
43117 }
43118 #endif
43119
43120 int
43121 main ()
43122 {
43123 return f != $ac_func;
43124   ;
43125   return 0;
43126 }
43127 _ACEOF
43128 rm -f conftest.$ac_objext conftest$ac_exeext
43129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43130   (eval $ac_link) 2>conftest.er1
43131   ac_status=$?
43132   grep -v '^ *+' conftest.er1 >conftest.err
43133   rm -f conftest.er1
43134   cat conftest.err >&5
43135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43136   (exit $ac_status); } &&
43137          { ac_try='test -z "$ac_c_werror_flag"
43138                          || test ! -s conftest.err'
43139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43140   (eval $ac_try) 2>&5
43141   ac_status=$?
43142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43143   (exit $ac_status); }; } &&
43144          { ac_try='test -s conftest$ac_exeext'
43145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43146   (eval $ac_try) 2>&5
43147   ac_status=$?
43148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43149   (exit $ac_status); }; }; then
43150   eval "$as_ac_var=yes"
43151 else
43152   echo "$as_me: failed program was:" >&5
43153 sed 's/^/| /' conftest.$ac_ext >&5
43154
43155 eval "$as_ac_var=no"
43156 fi
43157 rm -f conftest.err conftest.$ac_objext \
43158       conftest$ac_exeext conftest.$ac_ext
43159 fi
43160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43162 if test `eval echo '${'$as_ac_var'}'` = yes; then
43163   cat >>confdefs.h <<_ACEOF
43164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43165 _ACEOF
43166
43167 fi
43168 done
43169
43170     fi
43171   fi
43172
43173
43174
43175   echo "$as_me:$LINENO: checking for fabsl declaration" >&5
43176 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
43177   if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
43178     if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
43179   echo $ECHO_N "(cached) $ECHO_C" >&6
43180 else
43181
43182
43183
43184       ac_ext=cc
43185 ac_cpp='$CXXCPP $CPPFLAGS'
43186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43189
43190       cat >conftest.$ac_ext <<_ACEOF
43191 /* confdefs.h.  */
43192 _ACEOF
43193 cat confdefs.h >>conftest.$ac_ext
43194 cat >>conftest.$ac_ext <<_ACEOF
43195 /* end confdefs.h.  */
43196 #include <math.h>
43197                       #ifdef HAVE_IEEEFP_H
43198                       #include <ieeefp.h>
43199                       #endif
43200
43201 int
43202 main ()
43203 {
43204  fabsl(0);
43205   ;
43206   return 0;
43207 }
43208 _ACEOF
43209 rm -f conftest.$ac_objext
43210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43211   (eval $ac_compile) 2>conftest.er1
43212   ac_status=$?
43213   grep -v '^ *+' conftest.er1 >conftest.err
43214   rm -f conftest.er1
43215   cat conftest.err >&5
43216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43217   (exit $ac_status); } &&
43218          { ac_try='test -z "$ac_cxx_werror_flag"
43219                          || test ! -s conftest.err'
43220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43221   (eval $ac_try) 2>&5
43222   ac_status=$?
43223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43224   (exit $ac_status); }; } &&
43225          { ac_try='test -s conftest.$ac_objext'
43226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43227   (eval $ac_try) 2>&5
43228   ac_status=$?
43229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43230   (exit $ac_status); }; }; then
43231   glibcxx_cv_func_fabsl_use=yes
43232 else
43233   echo "$as_me: failed program was:" >&5
43234 sed 's/^/| /' conftest.$ac_ext >&5
43235
43236 glibcxx_cv_func_fabsl_use=no
43237 fi
43238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43239       ac_ext=c
43240 ac_cpp='$CPP $CPPFLAGS'
43241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43244
43245
43246 fi
43247
43248   fi
43249   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
43250 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
43251
43252   if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
43253
43254 for ac_func in fabsl
43255 do
43256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43257 echo "$as_me:$LINENO: checking for $ac_func" >&5
43258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43259 if eval "test \"\${$as_ac_var+set}\" = set"; then
43260   echo $ECHO_N "(cached) $ECHO_C" >&6
43261 else
43262   if test x$gcc_no_link = xyes; then
43263   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43264 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43265    { (exit 1); exit 1; }; }
43266 fi
43267 cat >conftest.$ac_ext <<_ACEOF
43268 /* confdefs.h.  */
43269 _ACEOF
43270 cat confdefs.h >>conftest.$ac_ext
43271 cat >>conftest.$ac_ext <<_ACEOF
43272 /* end confdefs.h.  */
43273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43275 #define $ac_func innocuous_$ac_func
43276
43277 /* System header to define __stub macros and hopefully few prototypes,
43278     which can conflict with char $ac_func (); below.
43279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43280     <limits.h> exists even on freestanding compilers.  */
43281
43282 #ifdef __STDC__
43283 # include <limits.h>
43284 #else
43285 # include <assert.h>
43286 #endif
43287
43288 #undef $ac_func
43289
43290 /* Override any gcc2 internal prototype to avoid an error.  */
43291 #ifdef __cplusplus
43292 extern "C"
43293 {
43294 #endif
43295 /* We use char because int might match the return type of a gcc2
43296    builtin and then its argument prototype would still apply.  */
43297 char $ac_func ();
43298 /* The GNU C library defines this for functions which it implements
43299     to always fail with ENOSYS.  Some functions are actually named
43300     something starting with __ and the normal name is an alias.  */
43301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43302 choke me
43303 #else
43304 char (*f) () = $ac_func;
43305 #endif
43306 #ifdef __cplusplus
43307 }
43308 #endif
43309
43310 int
43311 main ()
43312 {
43313 return f != $ac_func;
43314   ;
43315   return 0;
43316 }
43317 _ACEOF
43318 rm -f conftest.$ac_objext conftest$ac_exeext
43319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43320   (eval $ac_link) 2>conftest.er1
43321   ac_status=$?
43322   grep -v '^ *+' conftest.er1 >conftest.err
43323   rm -f conftest.er1
43324   cat conftest.err >&5
43325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43326   (exit $ac_status); } &&
43327          { ac_try='test -z "$ac_c_werror_flag"
43328                          || test ! -s conftest.err'
43329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43330   (eval $ac_try) 2>&5
43331   ac_status=$?
43332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333   (exit $ac_status); }; } &&
43334          { ac_try='test -s conftest$ac_exeext'
43335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43336   (eval $ac_try) 2>&5
43337   ac_status=$?
43338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339   (exit $ac_status); }; }; then
43340   eval "$as_ac_var=yes"
43341 else
43342   echo "$as_me: failed program was:" >&5
43343 sed 's/^/| /' conftest.$ac_ext >&5
43344
43345 eval "$as_ac_var=no"
43346 fi
43347 rm -f conftest.err conftest.$ac_objext \
43348       conftest$ac_exeext conftest.$ac_ext
43349 fi
43350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43352 if test `eval echo '${'$as_ac_var'}'` = yes; then
43353   cat >>confdefs.h <<_ACEOF
43354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43355 _ACEOF
43356
43357 fi
43358 done
43359
43360   else
43361
43362   echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
43363 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
43364   if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
43365     if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
43366   echo $ECHO_N "(cached) $ECHO_C" >&6
43367 else
43368
43369
43370
43371       ac_ext=cc
43372 ac_cpp='$CXXCPP $CPPFLAGS'
43373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43376
43377       cat >conftest.$ac_ext <<_ACEOF
43378 /* confdefs.h.  */
43379 _ACEOF
43380 cat confdefs.h >>conftest.$ac_ext
43381 cat >>conftest.$ac_ext <<_ACEOF
43382 /* end confdefs.h.  */
43383 #include <math.h>
43384                       #ifdef HAVE_IEEEFP_H
43385                       #include <ieeefp.h>
43386                       #endif
43387
43388 int
43389 main ()
43390 {
43391  _fabsl(0);
43392   ;
43393   return 0;
43394 }
43395 _ACEOF
43396 rm -f conftest.$ac_objext
43397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43398   (eval $ac_compile) 2>conftest.er1
43399   ac_status=$?
43400   grep -v '^ *+' conftest.er1 >conftest.err
43401   rm -f conftest.er1
43402   cat conftest.err >&5
43403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43404   (exit $ac_status); } &&
43405          { ac_try='test -z "$ac_cxx_werror_flag"
43406                          || test ! -s conftest.err'
43407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43408   (eval $ac_try) 2>&5
43409   ac_status=$?
43410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43411   (exit $ac_status); }; } &&
43412          { ac_try='test -s conftest.$ac_objext'
43413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43414   (eval $ac_try) 2>&5
43415   ac_status=$?
43416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417   (exit $ac_status); }; }; then
43418   glibcxx_cv_func__fabsl_use=yes
43419 else
43420   echo "$as_me: failed program was:" >&5
43421 sed 's/^/| /' conftest.$ac_ext >&5
43422
43423 glibcxx_cv_func__fabsl_use=no
43424 fi
43425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43426       ac_ext=c
43427 ac_cpp='$CPP $CPPFLAGS'
43428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43431
43432
43433 fi
43434
43435   fi
43436   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
43437 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
43438
43439     if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
43440
43441 for ac_func in _fabsl
43442 do
43443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43444 echo "$as_me:$LINENO: checking for $ac_func" >&5
43445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43446 if eval "test \"\${$as_ac_var+set}\" = set"; then
43447   echo $ECHO_N "(cached) $ECHO_C" >&6
43448 else
43449   if test x$gcc_no_link = xyes; then
43450   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43451 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43452    { (exit 1); exit 1; }; }
43453 fi
43454 cat >conftest.$ac_ext <<_ACEOF
43455 /* confdefs.h.  */
43456 _ACEOF
43457 cat confdefs.h >>conftest.$ac_ext
43458 cat >>conftest.$ac_ext <<_ACEOF
43459 /* end confdefs.h.  */
43460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43462 #define $ac_func innocuous_$ac_func
43463
43464 /* System header to define __stub macros and hopefully few prototypes,
43465     which can conflict with char $ac_func (); below.
43466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43467     <limits.h> exists even on freestanding compilers.  */
43468
43469 #ifdef __STDC__
43470 # include <limits.h>
43471 #else
43472 # include <assert.h>
43473 #endif
43474
43475 #undef $ac_func
43476
43477 /* Override any gcc2 internal prototype to avoid an error.  */
43478 #ifdef __cplusplus
43479 extern "C"
43480 {
43481 #endif
43482 /* We use char because int might match the return type of a gcc2
43483    builtin and then its argument prototype would still apply.  */
43484 char $ac_func ();
43485 /* The GNU C library defines this for functions which it implements
43486     to always fail with ENOSYS.  Some functions are actually named
43487     something starting with __ and the normal name is an alias.  */
43488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43489 choke me
43490 #else
43491 char (*f) () = $ac_func;
43492 #endif
43493 #ifdef __cplusplus
43494 }
43495 #endif
43496
43497 int
43498 main ()
43499 {
43500 return f != $ac_func;
43501   ;
43502   return 0;
43503 }
43504 _ACEOF
43505 rm -f conftest.$ac_objext conftest$ac_exeext
43506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43507   (eval $ac_link) 2>conftest.er1
43508   ac_status=$?
43509   grep -v '^ *+' conftest.er1 >conftest.err
43510   rm -f conftest.er1
43511   cat conftest.err >&5
43512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43513   (exit $ac_status); } &&
43514          { ac_try='test -z "$ac_c_werror_flag"
43515                          || test ! -s conftest.err'
43516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43517   (eval $ac_try) 2>&5
43518   ac_status=$?
43519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43520   (exit $ac_status); }; } &&
43521          { ac_try='test -s conftest$ac_exeext'
43522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43523   (eval $ac_try) 2>&5
43524   ac_status=$?
43525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43526   (exit $ac_status); }; }; then
43527   eval "$as_ac_var=yes"
43528 else
43529   echo "$as_me: failed program was:" >&5
43530 sed 's/^/| /' conftest.$ac_ext >&5
43531
43532 eval "$as_ac_var=no"
43533 fi
43534 rm -f conftest.err conftest.$ac_objext \
43535       conftest$ac_exeext conftest.$ac_ext
43536 fi
43537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43539 if test `eval echo '${'$as_ac_var'}'` = yes; then
43540   cat >>confdefs.h <<_ACEOF
43541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43542 _ACEOF
43543
43544 fi
43545 done
43546
43547     fi
43548   fi
43549
43550
43551
43552   echo "$as_me:$LINENO: checking for fmodl declaration" >&5
43553 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
43554   if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
43555     if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
43556   echo $ECHO_N "(cached) $ECHO_C" >&6
43557 else
43558
43559
43560
43561       ac_ext=cc
43562 ac_cpp='$CXXCPP $CPPFLAGS'
43563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43566
43567       cat >conftest.$ac_ext <<_ACEOF
43568 /* confdefs.h.  */
43569 _ACEOF
43570 cat confdefs.h >>conftest.$ac_ext
43571 cat >>conftest.$ac_ext <<_ACEOF
43572 /* end confdefs.h.  */
43573 #include <math.h>
43574 int
43575 main ()
43576 {
43577  fmodl(0, 0);
43578   ;
43579   return 0;
43580 }
43581 _ACEOF
43582 rm -f conftest.$ac_objext
43583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43584   (eval $ac_compile) 2>conftest.er1
43585   ac_status=$?
43586   grep -v '^ *+' conftest.er1 >conftest.err
43587   rm -f conftest.er1
43588   cat conftest.err >&5
43589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43590   (exit $ac_status); } &&
43591          { ac_try='test -z "$ac_cxx_werror_flag"
43592                          || test ! -s conftest.err'
43593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43594   (eval $ac_try) 2>&5
43595   ac_status=$?
43596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43597   (exit $ac_status); }; } &&
43598          { ac_try='test -s conftest.$ac_objext'
43599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43600   (eval $ac_try) 2>&5
43601   ac_status=$?
43602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43603   (exit $ac_status); }; }; then
43604   glibcxx_cv_func_fmodl_use=yes
43605 else
43606   echo "$as_me: failed program was:" >&5
43607 sed 's/^/| /' conftest.$ac_ext >&5
43608
43609 glibcxx_cv_func_fmodl_use=no
43610 fi
43611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43612       ac_ext=c
43613 ac_cpp='$CPP $CPPFLAGS'
43614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43617
43618
43619 fi
43620
43621   fi
43622   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
43623 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
43624
43625   if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
43626
43627 for ac_func in fmodl
43628 do
43629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43630 echo "$as_me:$LINENO: checking for $ac_func" >&5
43631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43632 if eval "test \"\${$as_ac_var+set}\" = set"; then
43633   echo $ECHO_N "(cached) $ECHO_C" >&6
43634 else
43635   if test x$gcc_no_link = xyes; then
43636   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43637 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43638    { (exit 1); exit 1; }; }
43639 fi
43640 cat >conftest.$ac_ext <<_ACEOF
43641 /* confdefs.h.  */
43642 _ACEOF
43643 cat confdefs.h >>conftest.$ac_ext
43644 cat >>conftest.$ac_ext <<_ACEOF
43645 /* end confdefs.h.  */
43646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43648 #define $ac_func innocuous_$ac_func
43649
43650 /* System header to define __stub macros and hopefully few prototypes,
43651     which can conflict with char $ac_func (); below.
43652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43653     <limits.h> exists even on freestanding compilers.  */
43654
43655 #ifdef __STDC__
43656 # include <limits.h>
43657 #else
43658 # include <assert.h>
43659 #endif
43660
43661 #undef $ac_func
43662
43663 /* Override any gcc2 internal prototype to avoid an error.  */
43664 #ifdef __cplusplus
43665 extern "C"
43666 {
43667 #endif
43668 /* We use char because int might match the return type of a gcc2
43669    builtin and then its argument prototype would still apply.  */
43670 char $ac_func ();
43671 /* The GNU C library defines this for functions which it implements
43672     to always fail with ENOSYS.  Some functions are actually named
43673     something starting with __ and the normal name is an alias.  */
43674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43675 choke me
43676 #else
43677 char (*f) () = $ac_func;
43678 #endif
43679 #ifdef __cplusplus
43680 }
43681 #endif
43682
43683 int
43684 main ()
43685 {
43686 return f != $ac_func;
43687   ;
43688   return 0;
43689 }
43690 _ACEOF
43691 rm -f conftest.$ac_objext conftest$ac_exeext
43692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43693   (eval $ac_link) 2>conftest.er1
43694   ac_status=$?
43695   grep -v '^ *+' conftest.er1 >conftest.err
43696   rm -f conftest.er1
43697   cat conftest.err >&5
43698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43699   (exit $ac_status); } &&
43700          { ac_try='test -z "$ac_c_werror_flag"
43701                          || test ! -s conftest.err'
43702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43703   (eval $ac_try) 2>&5
43704   ac_status=$?
43705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43706   (exit $ac_status); }; } &&
43707          { ac_try='test -s conftest$ac_exeext'
43708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43709   (eval $ac_try) 2>&5
43710   ac_status=$?
43711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43712   (exit $ac_status); }; }; then
43713   eval "$as_ac_var=yes"
43714 else
43715   echo "$as_me: failed program was:" >&5
43716 sed 's/^/| /' conftest.$ac_ext >&5
43717
43718 eval "$as_ac_var=no"
43719 fi
43720 rm -f conftest.err conftest.$ac_objext \
43721       conftest$ac_exeext conftest.$ac_ext
43722 fi
43723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43725 if test `eval echo '${'$as_ac_var'}'` = yes; then
43726   cat >>confdefs.h <<_ACEOF
43727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43728 _ACEOF
43729
43730 fi
43731 done
43732
43733   else
43734
43735   echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
43736 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
43737   if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
43738     if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
43739   echo $ECHO_N "(cached) $ECHO_C" >&6
43740 else
43741
43742
43743
43744       ac_ext=cc
43745 ac_cpp='$CXXCPP $CPPFLAGS'
43746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43749
43750       cat >conftest.$ac_ext <<_ACEOF
43751 /* confdefs.h.  */
43752 _ACEOF
43753 cat confdefs.h >>conftest.$ac_ext
43754 cat >>conftest.$ac_ext <<_ACEOF
43755 /* end confdefs.h.  */
43756 #include <math.h>
43757 int
43758 main ()
43759 {
43760  _fmodl(0, 0);
43761   ;
43762   return 0;
43763 }
43764 _ACEOF
43765 rm -f conftest.$ac_objext
43766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43767   (eval $ac_compile) 2>conftest.er1
43768   ac_status=$?
43769   grep -v '^ *+' conftest.er1 >conftest.err
43770   rm -f conftest.er1
43771   cat conftest.err >&5
43772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43773   (exit $ac_status); } &&
43774          { ac_try='test -z "$ac_cxx_werror_flag"
43775                          || test ! -s conftest.err'
43776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43777   (eval $ac_try) 2>&5
43778   ac_status=$?
43779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43780   (exit $ac_status); }; } &&
43781          { ac_try='test -s conftest.$ac_objext'
43782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43783   (eval $ac_try) 2>&5
43784   ac_status=$?
43785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43786   (exit $ac_status); }; }; then
43787   glibcxx_cv_func__fmodl_use=yes
43788 else
43789   echo "$as_me: failed program was:" >&5
43790 sed 's/^/| /' conftest.$ac_ext >&5
43791
43792 glibcxx_cv_func__fmodl_use=no
43793 fi
43794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43795       ac_ext=c
43796 ac_cpp='$CPP $CPPFLAGS'
43797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43800
43801
43802 fi
43803
43804   fi
43805   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
43806 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
43807
43808     if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
43809
43810 for ac_func in _fmodl
43811 do
43812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43813 echo "$as_me:$LINENO: checking for $ac_func" >&5
43814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43815 if eval "test \"\${$as_ac_var+set}\" = set"; then
43816   echo $ECHO_N "(cached) $ECHO_C" >&6
43817 else
43818   if test x$gcc_no_link = xyes; then
43819   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43821    { (exit 1); exit 1; }; }
43822 fi
43823 cat >conftest.$ac_ext <<_ACEOF
43824 /* confdefs.h.  */
43825 _ACEOF
43826 cat confdefs.h >>conftest.$ac_ext
43827 cat >>conftest.$ac_ext <<_ACEOF
43828 /* end confdefs.h.  */
43829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43831 #define $ac_func innocuous_$ac_func
43832
43833 /* System header to define __stub macros and hopefully few prototypes,
43834     which can conflict with char $ac_func (); below.
43835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43836     <limits.h> exists even on freestanding compilers.  */
43837
43838 #ifdef __STDC__
43839 # include <limits.h>
43840 #else
43841 # include <assert.h>
43842 #endif
43843
43844 #undef $ac_func
43845
43846 /* Override any gcc2 internal prototype to avoid an error.  */
43847 #ifdef __cplusplus
43848 extern "C"
43849 {
43850 #endif
43851 /* We use char because int might match the return type of a gcc2
43852    builtin and then its argument prototype would still apply.  */
43853 char $ac_func ();
43854 /* The GNU C library defines this for functions which it implements
43855     to always fail with ENOSYS.  Some functions are actually named
43856     something starting with __ and the normal name is an alias.  */
43857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43858 choke me
43859 #else
43860 char (*f) () = $ac_func;
43861 #endif
43862 #ifdef __cplusplus
43863 }
43864 #endif
43865
43866 int
43867 main ()
43868 {
43869 return f != $ac_func;
43870   ;
43871   return 0;
43872 }
43873 _ACEOF
43874 rm -f conftest.$ac_objext conftest$ac_exeext
43875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43876   (eval $ac_link) 2>conftest.er1
43877   ac_status=$?
43878   grep -v '^ *+' conftest.er1 >conftest.err
43879   rm -f conftest.er1
43880   cat conftest.err >&5
43881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43882   (exit $ac_status); } &&
43883          { ac_try='test -z "$ac_c_werror_flag"
43884                          || test ! -s conftest.err'
43885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43886   (eval $ac_try) 2>&5
43887   ac_status=$?
43888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43889   (exit $ac_status); }; } &&
43890          { ac_try='test -s conftest$ac_exeext'
43891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43892   (eval $ac_try) 2>&5
43893   ac_status=$?
43894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43895   (exit $ac_status); }; }; then
43896   eval "$as_ac_var=yes"
43897 else
43898   echo "$as_me: failed program was:" >&5
43899 sed 's/^/| /' conftest.$ac_ext >&5
43900
43901 eval "$as_ac_var=no"
43902 fi
43903 rm -f conftest.err conftest.$ac_objext \
43904       conftest$ac_exeext conftest.$ac_ext
43905 fi
43906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43908 if test `eval echo '${'$as_ac_var'}'` = yes; then
43909   cat >>confdefs.h <<_ACEOF
43910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43911 _ACEOF
43912
43913 fi
43914 done
43915
43916     fi
43917   fi
43918
43919
43920
43921   echo "$as_me:$LINENO: checking for frexpl declaration" >&5
43922 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
43923   if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
43924     if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
43925   echo $ECHO_N "(cached) $ECHO_C" >&6
43926 else
43927
43928
43929
43930       ac_ext=cc
43931 ac_cpp='$CXXCPP $CPPFLAGS'
43932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43935
43936       cat >conftest.$ac_ext <<_ACEOF
43937 /* confdefs.h.  */
43938 _ACEOF
43939 cat confdefs.h >>conftest.$ac_ext
43940 cat >>conftest.$ac_ext <<_ACEOF
43941 /* end confdefs.h.  */
43942 #include <math.h>
43943 int
43944 main ()
43945 {
43946  frexpl(0, 0);
43947   ;
43948   return 0;
43949 }
43950 _ACEOF
43951 rm -f conftest.$ac_objext
43952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43953   (eval $ac_compile) 2>conftest.er1
43954   ac_status=$?
43955   grep -v '^ *+' conftest.er1 >conftest.err
43956   rm -f conftest.er1
43957   cat conftest.err >&5
43958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43959   (exit $ac_status); } &&
43960          { ac_try='test -z "$ac_cxx_werror_flag"
43961                          || test ! -s conftest.err'
43962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43963   (eval $ac_try) 2>&5
43964   ac_status=$?
43965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43966   (exit $ac_status); }; } &&
43967          { ac_try='test -s conftest.$ac_objext'
43968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43969   (eval $ac_try) 2>&5
43970   ac_status=$?
43971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43972   (exit $ac_status); }; }; then
43973   glibcxx_cv_func_frexpl_use=yes
43974 else
43975   echo "$as_me: failed program was:" >&5
43976 sed 's/^/| /' conftest.$ac_ext >&5
43977
43978 glibcxx_cv_func_frexpl_use=no
43979 fi
43980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43981       ac_ext=c
43982 ac_cpp='$CPP $CPPFLAGS'
43983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43986
43987
43988 fi
43989
43990   fi
43991   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
43992 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
43993
43994   if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
43995
43996 for ac_func in frexpl
43997 do
43998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43999 echo "$as_me:$LINENO: checking for $ac_func" >&5
44000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44001 if eval "test \"\${$as_ac_var+set}\" = set"; then
44002   echo $ECHO_N "(cached) $ECHO_C" >&6
44003 else
44004   if test x$gcc_no_link = xyes; then
44005   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44007    { (exit 1); exit 1; }; }
44008 fi
44009 cat >conftest.$ac_ext <<_ACEOF
44010 /* confdefs.h.  */
44011 _ACEOF
44012 cat confdefs.h >>conftest.$ac_ext
44013 cat >>conftest.$ac_ext <<_ACEOF
44014 /* end confdefs.h.  */
44015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44017 #define $ac_func innocuous_$ac_func
44018
44019 /* System header to define __stub macros and hopefully few prototypes,
44020     which can conflict with char $ac_func (); below.
44021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44022     <limits.h> exists even on freestanding compilers.  */
44023
44024 #ifdef __STDC__
44025 # include <limits.h>
44026 #else
44027 # include <assert.h>
44028 #endif
44029
44030 #undef $ac_func
44031
44032 /* Override any gcc2 internal prototype to avoid an error.  */
44033 #ifdef __cplusplus
44034 extern "C"
44035 {
44036 #endif
44037 /* We use char because int might match the return type of a gcc2
44038    builtin and then its argument prototype would still apply.  */
44039 char $ac_func ();
44040 /* The GNU C library defines this for functions which it implements
44041     to always fail with ENOSYS.  Some functions are actually named
44042     something starting with __ and the normal name is an alias.  */
44043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44044 choke me
44045 #else
44046 char (*f) () = $ac_func;
44047 #endif
44048 #ifdef __cplusplus
44049 }
44050 #endif
44051
44052 int
44053 main ()
44054 {
44055 return f != $ac_func;
44056   ;
44057   return 0;
44058 }
44059 _ACEOF
44060 rm -f conftest.$ac_objext conftest$ac_exeext
44061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44062   (eval $ac_link) 2>conftest.er1
44063   ac_status=$?
44064   grep -v '^ *+' conftest.er1 >conftest.err
44065   rm -f conftest.er1
44066   cat conftest.err >&5
44067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44068   (exit $ac_status); } &&
44069          { ac_try='test -z "$ac_c_werror_flag"
44070                          || test ! -s conftest.err'
44071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44072   (eval $ac_try) 2>&5
44073   ac_status=$?
44074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44075   (exit $ac_status); }; } &&
44076          { ac_try='test -s conftest$ac_exeext'
44077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44078   (eval $ac_try) 2>&5
44079   ac_status=$?
44080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44081   (exit $ac_status); }; }; then
44082   eval "$as_ac_var=yes"
44083 else
44084   echo "$as_me: failed program was:" >&5
44085 sed 's/^/| /' conftest.$ac_ext >&5
44086
44087 eval "$as_ac_var=no"
44088 fi
44089 rm -f conftest.err conftest.$ac_objext \
44090       conftest$ac_exeext conftest.$ac_ext
44091 fi
44092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44094 if test `eval echo '${'$as_ac_var'}'` = yes; then
44095   cat >>confdefs.h <<_ACEOF
44096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44097 _ACEOF
44098
44099 fi
44100 done
44101
44102   else
44103
44104   echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
44105 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
44106   if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
44107     if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
44108   echo $ECHO_N "(cached) $ECHO_C" >&6
44109 else
44110
44111
44112
44113       ac_ext=cc
44114 ac_cpp='$CXXCPP $CPPFLAGS'
44115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44118
44119       cat >conftest.$ac_ext <<_ACEOF
44120 /* confdefs.h.  */
44121 _ACEOF
44122 cat confdefs.h >>conftest.$ac_ext
44123 cat >>conftest.$ac_ext <<_ACEOF
44124 /* end confdefs.h.  */
44125 #include <math.h>
44126 int
44127 main ()
44128 {
44129  _frexpl(0, 0);
44130   ;
44131   return 0;
44132 }
44133 _ACEOF
44134 rm -f conftest.$ac_objext
44135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44136   (eval $ac_compile) 2>conftest.er1
44137   ac_status=$?
44138   grep -v '^ *+' conftest.er1 >conftest.err
44139   rm -f conftest.er1
44140   cat conftest.err >&5
44141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44142   (exit $ac_status); } &&
44143          { ac_try='test -z "$ac_cxx_werror_flag"
44144                          || test ! -s conftest.err'
44145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44146   (eval $ac_try) 2>&5
44147   ac_status=$?
44148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44149   (exit $ac_status); }; } &&
44150          { ac_try='test -s conftest.$ac_objext'
44151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44152   (eval $ac_try) 2>&5
44153   ac_status=$?
44154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44155   (exit $ac_status); }; }; then
44156   glibcxx_cv_func__frexpl_use=yes
44157 else
44158   echo "$as_me: failed program was:" >&5
44159 sed 's/^/| /' conftest.$ac_ext >&5
44160
44161 glibcxx_cv_func__frexpl_use=no
44162 fi
44163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44164       ac_ext=c
44165 ac_cpp='$CPP $CPPFLAGS'
44166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44169
44170
44171 fi
44172
44173   fi
44174   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
44175 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
44176
44177     if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
44178
44179 for ac_func in _frexpl
44180 do
44181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44182 echo "$as_me:$LINENO: checking for $ac_func" >&5
44183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44184 if eval "test \"\${$as_ac_var+set}\" = set"; then
44185   echo $ECHO_N "(cached) $ECHO_C" >&6
44186 else
44187   if test x$gcc_no_link = xyes; then
44188   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44189 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44190    { (exit 1); exit 1; }; }
44191 fi
44192 cat >conftest.$ac_ext <<_ACEOF
44193 /* confdefs.h.  */
44194 _ACEOF
44195 cat confdefs.h >>conftest.$ac_ext
44196 cat >>conftest.$ac_ext <<_ACEOF
44197 /* end confdefs.h.  */
44198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44200 #define $ac_func innocuous_$ac_func
44201
44202 /* System header to define __stub macros and hopefully few prototypes,
44203     which can conflict with char $ac_func (); below.
44204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44205     <limits.h> exists even on freestanding compilers.  */
44206
44207 #ifdef __STDC__
44208 # include <limits.h>
44209 #else
44210 # include <assert.h>
44211 #endif
44212
44213 #undef $ac_func
44214
44215 /* Override any gcc2 internal prototype to avoid an error.  */
44216 #ifdef __cplusplus
44217 extern "C"
44218 {
44219 #endif
44220 /* We use char because int might match the return type of a gcc2
44221    builtin and then its argument prototype would still apply.  */
44222 char $ac_func ();
44223 /* The GNU C library defines this for functions which it implements
44224     to always fail with ENOSYS.  Some functions are actually named
44225     something starting with __ and the normal name is an alias.  */
44226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44227 choke me
44228 #else
44229 char (*f) () = $ac_func;
44230 #endif
44231 #ifdef __cplusplus
44232 }
44233 #endif
44234
44235 int
44236 main ()
44237 {
44238 return f != $ac_func;
44239   ;
44240   return 0;
44241 }
44242 _ACEOF
44243 rm -f conftest.$ac_objext conftest$ac_exeext
44244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44245   (eval $ac_link) 2>conftest.er1
44246   ac_status=$?
44247   grep -v '^ *+' conftest.er1 >conftest.err
44248   rm -f conftest.er1
44249   cat conftest.err >&5
44250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44251   (exit $ac_status); } &&
44252          { ac_try='test -z "$ac_c_werror_flag"
44253                          || test ! -s conftest.err'
44254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44255   (eval $ac_try) 2>&5
44256   ac_status=$?
44257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44258   (exit $ac_status); }; } &&
44259          { ac_try='test -s conftest$ac_exeext'
44260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44261   (eval $ac_try) 2>&5
44262   ac_status=$?
44263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44264   (exit $ac_status); }; }; then
44265   eval "$as_ac_var=yes"
44266 else
44267   echo "$as_me: failed program was:" >&5
44268 sed 's/^/| /' conftest.$ac_ext >&5
44269
44270 eval "$as_ac_var=no"
44271 fi
44272 rm -f conftest.err conftest.$ac_objext \
44273       conftest$ac_exeext conftest.$ac_ext
44274 fi
44275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44277 if test `eval echo '${'$as_ac_var'}'` = yes; then
44278   cat >>confdefs.h <<_ACEOF
44279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44280 _ACEOF
44281
44282 fi
44283 done
44284
44285     fi
44286   fi
44287
44288
44289
44290   echo "$as_me:$LINENO: checking for hypotl declaration" >&5
44291 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
44292   if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
44293     if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
44294   echo $ECHO_N "(cached) $ECHO_C" >&6
44295 else
44296
44297
44298
44299       ac_ext=cc
44300 ac_cpp='$CXXCPP $CPPFLAGS'
44301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44304
44305       cat >conftest.$ac_ext <<_ACEOF
44306 /* confdefs.h.  */
44307 _ACEOF
44308 cat confdefs.h >>conftest.$ac_ext
44309 cat >>conftest.$ac_ext <<_ACEOF
44310 /* end confdefs.h.  */
44311 #include <math.h>
44312 int
44313 main ()
44314 {
44315  hypotl(0, 0);
44316   ;
44317   return 0;
44318 }
44319 _ACEOF
44320 rm -f conftest.$ac_objext
44321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44322   (eval $ac_compile) 2>conftest.er1
44323   ac_status=$?
44324   grep -v '^ *+' conftest.er1 >conftest.err
44325   rm -f conftest.er1
44326   cat conftest.err >&5
44327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44328   (exit $ac_status); } &&
44329          { ac_try='test -z "$ac_cxx_werror_flag"
44330                          || test ! -s conftest.err'
44331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44332   (eval $ac_try) 2>&5
44333   ac_status=$?
44334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44335   (exit $ac_status); }; } &&
44336          { ac_try='test -s conftest.$ac_objext'
44337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44338   (eval $ac_try) 2>&5
44339   ac_status=$?
44340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44341   (exit $ac_status); }; }; then
44342   glibcxx_cv_func_hypotl_use=yes
44343 else
44344   echo "$as_me: failed program was:" >&5
44345 sed 's/^/| /' conftest.$ac_ext >&5
44346
44347 glibcxx_cv_func_hypotl_use=no
44348 fi
44349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44350       ac_ext=c
44351 ac_cpp='$CPP $CPPFLAGS'
44352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44355
44356
44357 fi
44358
44359   fi
44360   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
44361 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
44362
44363   if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
44364
44365 for ac_func in hypotl
44366 do
44367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44368 echo "$as_me:$LINENO: checking for $ac_func" >&5
44369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44370 if eval "test \"\${$as_ac_var+set}\" = set"; then
44371   echo $ECHO_N "(cached) $ECHO_C" >&6
44372 else
44373   if test x$gcc_no_link = xyes; then
44374   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44375 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44376    { (exit 1); exit 1; }; }
44377 fi
44378 cat >conftest.$ac_ext <<_ACEOF
44379 /* confdefs.h.  */
44380 _ACEOF
44381 cat confdefs.h >>conftest.$ac_ext
44382 cat >>conftest.$ac_ext <<_ACEOF
44383 /* end confdefs.h.  */
44384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44386 #define $ac_func innocuous_$ac_func
44387
44388 /* System header to define __stub macros and hopefully few prototypes,
44389     which can conflict with char $ac_func (); below.
44390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44391     <limits.h> exists even on freestanding compilers.  */
44392
44393 #ifdef __STDC__
44394 # include <limits.h>
44395 #else
44396 # include <assert.h>
44397 #endif
44398
44399 #undef $ac_func
44400
44401 /* Override any gcc2 internal prototype to avoid an error.  */
44402 #ifdef __cplusplus
44403 extern "C"
44404 {
44405 #endif
44406 /* We use char because int might match the return type of a gcc2
44407    builtin and then its argument prototype would still apply.  */
44408 char $ac_func ();
44409 /* The GNU C library defines this for functions which it implements
44410     to always fail with ENOSYS.  Some functions are actually named
44411     something starting with __ and the normal name is an alias.  */
44412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44413 choke me
44414 #else
44415 char (*f) () = $ac_func;
44416 #endif
44417 #ifdef __cplusplus
44418 }
44419 #endif
44420
44421 int
44422 main ()
44423 {
44424 return f != $ac_func;
44425   ;
44426   return 0;
44427 }
44428 _ACEOF
44429 rm -f conftest.$ac_objext conftest$ac_exeext
44430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44431   (eval $ac_link) 2>conftest.er1
44432   ac_status=$?
44433   grep -v '^ *+' conftest.er1 >conftest.err
44434   rm -f conftest.er1
44435   cat conftest.err >&5
44436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44437   (exit $ac_status); } &&
44438          { ac_try='test -z "$ac_c_werror_flag"
44439                          || test ! -s conftest.err'
44440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44441   (eval $ac_try) 2>&5
44442   ac_status=$?
44443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44444   (exit $ac_status); }; } &&
44445          { ac_try='test -s conftest$ac_exeext'
44446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44447   (eval $ac_try) 2>&5
44448   ac_status=$?
44449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44450   (exit $ac_status); }; }; then
44451   eval "$as_ac_var=yes"
44452 else
44453   echo "$as_me: failed program was:" >&5
44454 sed 's/^/| /' conftest.$ac_ext >&5
44455
44456 eval "$as_ac_var=no"
44457 fi
44458 rm -f conftest.err conftest.$ac_objext \
44459       conftest$ac_exeext conftest.$ac_ext
44460 fi
44461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44463 if test `eval echo '${'$as_ac_var'}'` = yes; then
44464   cat >>confdefs.h <<_ACEOF
44465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44466 _ACEOF
44467
44468 fi
44469 done
44470
44471   else
44472
44473   echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
44474 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
44475   if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
44476     if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
44477   echo $ECHO_N "(cached) $ECHO_C" >&6
44478 else
44479
44480
44481
44482       ac_ext=cc
44483 ac_cpp='$CXXCPP $CPPFLAGS'
44484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44487
44488       cat >conftest.$ac_ext <<_ACEOF
44489 /* confdefs.h.  */
44490 _ACEOF
44491 cat confdefs.h >>conftest.$ac_ext
44492 cat >>conftest.$ac_ext <<_ACEOF
44493 /* end confdefs.h.  */
44494 #include <math.h>
44495 int
44496 main ()
44497 {
44498  _hypotl(0, 0);
44499   ;
44500   return 0;
44501 }
44502 _ACEOF
44503 rm -f conftest.$ac_objext
44504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44505   (eval $ac_compile) 2>conftest.er1
44506   ac_status=$?
44507   grep -v '^ *+' conftest.er1 >conftest.err
44508   rm -f conftest.er1
44509   cat conftest.err >&5
44510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44511   (exit $ac_status); } &&
44512          { ac_try='test -z "$ac_cxx_werror_flag"
44513                          || test ! -s conftest.err'
44514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44515   (eval $ac_try) 2>&5
44516   ac_status=$?
44517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44518   (exit $ac_status); }; } &&
44519          { ac_try='test -s conftest.$ac_objext'
44520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44521   (eval $ac_try) 2>&5
44522   ac_status=$?
44523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44524   (exit $ac_status); }; }; then
44525   glibcxx_cv_func__hypotl_use=yes
44526 else
44527   echo "$as_me: failed program was:" >&5
44528 sed 's/^/| /' conftest.$ac_ext >&5
44529
44530 glibcxx_cv_func__hypotl_use=no
44531 fi
44532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44533       ac_ext=c
44534 ac_cpp='$CPP $CPPFLAGS'
44535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44538
44539
44540 fi
44541
44542   fi
44543   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
44544 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
44545
44546     if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
44547
44548 for ac_func in _hypotl
44549 do
44550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44551 echo "$as_me:$LINENO: checking for $ac_func" >&5
44552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44553 if eval "test \"\${$as_ac_var+set}\" = set"; then
44554   echo $ECHO_N "(cached) $ECHO_C" >&6
44555 else
44556   if test x$gcc_no_link = xyes; then
44557   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44559    { (exit 1); exit 1; }; }
44560 fi
44561 cat >conftest.$ac_ext <<_ACEOF
44562 /* confdefs.h.  */
44563 _ACEOF
44564 cat confdefs.h >>conftest.$ac_ext
44565 cat >>conftest.$ac_ext <<_ACEOF
44566 /* end confdefs.h.  */
44567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44569 #define $ac_func innocuous_$ac_func
44570
44571 /* System header to define __stub macros and hopefully few prototypes,
44572     which can conflict with char $ac_func (); below.
44573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44574     <limits.h> exists even on freestanding compilers.  */
44575
44576 #ifdef __STDC__
44577 # include <limits.h>
44578 #else
44579 # include <assert.h>
44580 #endif
44581
44582 #undef $ac_func
44583
44584 /* Override any gcc2 internal prototype to avoid an error.  */
44585 #ifdef __cplusplus
44586 extern "C"
44587 {
44588 #endif
44589 /* We use char because int might match the return type of a gcc2
44590    builtin and then its argument prototype would still apply.  */
44591 char $ac_func ();
44592 /* The GNU C library defines this for functions which it implements
44593     to always fail with ENOSYS.  Some functions are actually named
44594     something starting with __ and the normal name is an alias.  */
44595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44596 choke me
44597 #else
44598 char (*f) () = $ac_func;
44599 #endif
44600 #ifdef __cplusplus
44601 }
44602 #endif
44603
44604 int
44605 main ()
44606 {
44607 return f != $ac_func;
44608   ;
44609   return 0;
44610 }
44611 _ACEOF
44612 rm -f conftest.$ac_objext conftest$ac_exeext
44613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44614   (eval $ac_link) 2>conftest.er1
44615   ac_status=$?
44616   grep -v '^ *+' conftest.er1 >conftest.err
44617   rm -f conftest.er1
44618   cat conftest.err >&5
44619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44620   (exit $ac_status); } &&
44621          { ac_try='test -z "$ac_c_werror_flag"
44622                          || test ! -s conftest.err'
44623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44624   (eval $ac_try) 2>&5
44625   ac_status=$?
44626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44627   (exit $ac_status); }; } &&
44628          { ac_try='test -s conftest$ac_exeext'
44629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44630   (eval $ac_try) 2>&5
44631   ac_status=$?
44632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44633   (exit $ac_status); }; }; then
44634   eval "$as_ac_var=yes"
44635 else
44636   echo "$as_me: failed program was:" >&5
44637 sed 's/^/| /' conftest.$ac_ext >&5
44638
44639 eval "$as_ac_var=no"
44640 fi
44641 rm -f conftest.err conftest.$ac_objext \
44642       conftest$ac_exeext conftest.$ac_ext
44643 fi
44644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44646 if test `eval echo '${'$as_ac_var'}'` = yes; then
44647   cat >>confdefs.h <<_ACEOF
44648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44649 _ACEOF
44650
44651 fi
44652 done
44653
44654     fi
44655   fi
44656
44657
44658
44659   echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
44660 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
44661   if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44662     if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
44663   echo $ECHO_N "(cached) $ECHO_C" >&6
44664 else
44665
44666
44667
44668       ac_ext=cc
44669 ac_cpp='$CXXCPP $CPPFLAGS'
44670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44673
44674       cat >conftest.$ac_ext <<_ACEOF
44675 /* confdefs.h.  */
44676 _ACEOF
44677 cat confdefs.h >>conftest.$ac_ext
44678 cat >>conftest.$ac_ext <<_ACEOF
44679 /* end confdefs.h.  */
44680 #include <math.h>
44681 int
44682 main ()
44683 {
44684  ldexpl(0, 0);
44685   ;
44686   return 0;
44687 }
44688 _ACEOF
44689 rm -f conftest.$ac_objext
44690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44691   (eval $ac_compile) 2>conftest.er1
44692   ac_status=$?
44693   grep -v '^ *+' conftest.er1 >conftest.err
44694   rm -f conftest.er1
44695   cat conftest.err >&5
44696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44697   (exit $ac_status); } &&
44698          { ac_try='test -z "$ac_cxx_werror_flag"
44699                          || test ! -s conftest.err'
44700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44701   (eval $ac_try) 2>&5
44702   ac_status=$?
44703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44704   (exit $ac_status); }; } &&
44705          { ac_try='test -s conftest.$ac_objext'
44706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44707   (eval $ac_try) 2>&5
44708   ac_status=$?
44709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44710   (exit $ac_status); }; }; then
44711   glibcxx_cv_func_ldexpl_use=yes
44712 else
44713   echo "$as_me: failed program was:" >&5
44714 sed 's/^/| /' conftest.$ac_ext >&5
44715
44716 glibcxx_cv_func_ldexpl_use=no
44717 fi
44718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44719       ac_ext=c
44720 ac_cpp='$CPP $CPPFLAGS'
44721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44724
44725
44726 fi
44727
44728   fi
44729   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
44730 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
44731
44732   if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44733
44734 for ac_func in ldexpl
44735 do
44736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44737 echo "$as_me:$LINENO: checking for $ac_func" >&5
44738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44739 if eval "test \"\${$as_ac_var+set}\" = set"; then
44740   echo $ECHO_N "(cached) $ECHO_C" >&6
44741 else
44742   if test x$gcc_no_link = xyes; then
44743   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44744 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44745    { (exit 1); exit 1; }; }
44746 fi
44747 cat >conftest.$ac_ext <<_ACEOF
44748 /* confdefs.h.  */
44749 _ACEOF
44750 cat confdefs.h >>conftest.$ac_ext
44751 cat >>conftest.$ac_ext <<_ACEOF
44752 /* end confdefs.h.  */
44753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44755 #define $ac_func innocuous_$ac_func
44756
44757 /* System header to define __stub macros and hopefully few prototypes,
44758     which can conflict with char $ac_func (); below.
44759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44760     <limits.h> exists even on freestanding compilers.  */
44761
44762 #ifdef __STDC__
44763 # include <limits.h>
44764 #else
44765 # include <assert.h>
44766 #endif
44767
44768 #undef $ac_func
44769
44770 /* Override any gcc2 internal prototype to avoid an error.  */
44771 #ifdef __cplusplus
44772 extern "C"
44773 {
44774 #endif
44775 /* We use char because int might match the return type of a gcc2
44776    builtin and then its argument prototype would still apply.  */
44777 char $ac_func ();
44778 /* The GNU C library defines this for functions which it implements
44779     to always fail with ENOSYS.  Some functions are actually named
44780     something starting with __ and the normal name is an alias.  */
44781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44782 choke me
44783 #else
44784 char (*f) () = $ac_func;
44785 #endif
44786 #ifdef __cplusplus
44787 }
44788 #endif
44789
44790 int
44791 main ()
44792 {
44793 return f != $ac_func;
44794   ;
44795   return 0;
44796 }
44797 _ACEOF
44798 rm -f conftest.$ac_objext conftest$ac_exeext
44799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44800   (eval $ac_link) 2>conftest.er1
44801   ac_status=$?
44802   grep -v '^ *+' conftest.er1 >conftest.err
44803   rm -f conftest.er1
44804   cat conftest.err >&5
44805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44806   (exit $ac_status); } &&
44807          { ac_try='test -z "$ac_c_werror_flag"
44808                          || test ! -s conftest.err'
44809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44810   (eval $ac_try) 2>&5
44811   ac_status=$?
44812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44813   (exit $ac_status); }; } &&
44814          { ac_try='test -s conftest$ac_exeext'
44815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44816   (eval $ac_try) 2>&5
44817   ac_status=$?
44818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44819   (exit $ac_status); }; }; then
44820   eval "$as_ac_var=yes"
44821 else
44822   echo "$as_me: failed program was:" >&5
44823 sed 's/^/| /' conftest.$ac_ext >&5
44824
44825 eval "$as_ac_var=no"
44826 fi
44827 rm -f conftest.err conftest.$ac_objext \
44828       conftest$ac_exeext conftest.$ac_ext
44829 fi
44830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44832 if test `eval echo '${'$as_ac_var'}'` = yes; then
44833   cat >>confdefs.h <<_ACEOF
44834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44835 _ACEOF
44836
44837 fi
44838 done
44839
44840   else
44841
44842   echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
44843 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
44844   if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
44845     if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
44846   echo $ECHO_N "(cached) $ECHO_C" >&6
44847 else
44848
44849
44850
44851       ac_ext=cc
44852 ac_cpp='$CXXCPP $CPPFLAGS'
44853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44856
44857       cat >conftest.$ac_ext <<_ACEOF
44858 /* confdefs.h.  */
44859 _ACEOF
44860 cat confdefs.h >>conftest.$ac_ext
44861 cat >>conftest.$ac_ext <<_ACEOF
44862 /* end confdefs.h.  */
44863 #include <math.h>
44864 int
44865 main ()
44866 {
44867  _ldexpl(0, 0);
44868   ;
44869   return 0;
44870 }
44871 _ACEOF
44872 rm -f conftest.$ac_objext
44873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44874   (eval $ac_compile) 2>conftest.er1
44875   ac_status=$?
44876   grep -v '^ *+' conftest.er1 >conftest.err
44877   rm -f conftest.er1
44878   cat conftest.err >&5
44879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44880   (exit $ac_status); } &&
44881          { ac_try='test -z "$ac_cxx_werror_flag"
44882                          || test ! -s conftest.err'
44883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44884   (eval $ac_try) 2>&5
44885   ac_status=$?
44886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44887   (exit $ac_status); }; } &&
44888          { ac_try='test -s conftest.$ac_objext'
44889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44890   (eval $ac_try) 2>&5
44891   ac_status=$?
44892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44893   (exit $ac_status); }; }; then
44894   glibcxx_cv_func__ldexpl_use=yes
44895 else
44896   echo "$as_me: failed program was:" >&5
44897 sed 's/^/| /' conftest.$ac_ext >&5
44898
44899 glibcxx_cv_func__ldexpl_use=no
44900 fi
44901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44902       ac_ext=c
44903 ac_cpp='$CPP $CPPFLAGS'
44904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44907
44908
44909 fi
44910
44911   fi
44912   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
44913 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
44914
44915     if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
44916
44917 for ac_func in _ldexpl
44918 do
44919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44920 echo "$as_me:$LINENO: checking for $ac_func" >&5
44921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44922 if eval "test \"\${$as_ac_var+set}\" = set"; then
44923   echo $ECHO_N "(cached) $ECHO_C" >&6
44924 else
44925   if test x$gcc_no_link = xyes; then
44926   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44928    { (exit 1); exit 1; }; }
44929 fi
44930 cat >conftest.$ac_ext <<_ACEOF
44931 /* confdefs.h.  */
44932 _ACEOF
44933 cat confdefs.h >>conftest.$ac_ext
44934 cat >>conftest.$ac_ext <<_ACEOF
44935 /* end confdefs.h.  */
44936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44938 #define $ac_func innocuous_$ac_func
44939
44940 /* System header to define __stub macros and hopefully few prototypes,
44941     which can conflict with char $ac_func (); below.
44942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44943     <limits.h> exists even on freestanding compilers.  */
44944
44945 #ifdef __STDC__
44946 # include <limits.h>
44947 #else
44948 # include <assert.h>
44949 #endif
44950
44951 #undef $ac_func
44952
44953 /* Override any gcc2 internal prototype to avoid an error.  */
44954 #ifdef __cplusplus
44955 extern "C"
44956 {
44957 #endif
44958 /* We use char because int might match the return type of a gcc2
44959    builtin and then its argument prototype would still apply.  */
44960 char $ac_func ();
44961 /* The GNU C library defines this for functions which it implements
44962     to always fail with ENOSYS.  Some functions are actually named
44963     something starting with __ and the normal name is an alias.  */
44964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44965 choke me
44966 #else
44967 char (*f) () = $ac_func;
44968 #endif
44969 #ifdef __cplusplus
44970 }
44971 #endif
44972
44973 int
44974 main ()
44975 {
44976 return f != $ac_func;
44977   ;
44978   return 0;
44979 }
44980 _ACEOF
44981 rm -f conftest.$ac_objext conftest$ac_exeext
44982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44983   (eval $ac_link) 2>conftest.er1
44984   ac_status=$?
44985   grep -v '^ *+' conftest.er1 >conftest.err
44986   rm -f conftest.er1
44987   cat conftest.err >&5
44988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44989   (exit $ac_status); } &&
44990          { ac_try='test -z "$ac_c_werror_flag"
44991                          || test ! -s conftest.err'
44992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44993   (eval $ac_try) 2>&5
44994   ac_status=$?
44995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44996   (exit $ac_status); }; } &&
44997          { ac_try='test -s conftest$ac_exeext'
44998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44999   (eval $ac_try) 2>&5
45000   ac_status=$?
45001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45002   (exit $ac_status); }; }; then
45003   eval "$as_ac_var=yes"
45004 else
45005   echo "$as_me: failed program was:" >&5
45006 sed 's/^/| /' conftest.$ac_ext >&5
45007
45008 eval "$as_ac_var=no"
45009 fi
45010 rm -f conftest.err conftest.$ac_objext \
45011       conftest$ac_exeext conftest.$ac_ext
45012 fi
45013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45015 if test `eval echo '${'$as_ac_var'}'` = yes; then
45016   cat >>confdefs.h <<_ACEOF
45017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45018 _ACEOF
45019
45020 fi
45021 done
45022
45023     fi
45024   fi
45025
45026
45027
45028   echo "$as_me:$LINENO: checking for logl declaration" >&5
45029 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
45030   if test x${glibcxx_cv_func_logl_use+set} != xset; then
45031     if test "${glibcxx_cv_func_logl_use+set}" = set; then
45032   echo $ECHO_N "(cached) $ECHO_C" >&6
45033 else
45034
45035
45036
45037       ac_ext=cc
45038 ac_cpp='$CXXCPP $CPPFLAGS'
45039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45042
45043       cat >conftest.$ac_ext <<_ACEOF
45044 /* confdefs.h.  */
45045 _ACEOF
45046 cat confdefs.h >>conftest.$ac_ext
45047 cat >>conftest.$ac_ext <<_ACEOF
45048 /* end confdefs.h.  */
45049 #include <math.h>
45050                       #ifdef HAVE_IEEEFP_H
45051                       #include <ieeefp.h>
45052                       #endif
45053
45054 int
45055 main ()
45056 {
45057  logl(0);
45058   ;
45059   return 0;
45060 }
45061 _ACEOF
45062 rm -f conftest.$ac_objext
45063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45064   (eval $ac_compile) 2>conftest.er1
45065   ac_status=$?
45066   grep -v '^ *+' conftest.er1 >conftest.err
45067   rm -f conftest.er1
45068   cat conftest.err >&5
45069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45070   (exit $ac_status); } &&
45071          { ac_try='test -z "$ac_cxx_werror_flag"
45072                          || test ! -s conftest.err'
45073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45074   (eval $ac_try) 2>&5
45075   ac_status=$?
45076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45077   (exit $ac_status); }; } &&
45078          { ac_try='test -s conftest.$ac_objext'
45079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45080   (eval $ac_try) 2>&5
45081   ac_status=$?
45082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45083   (exit $ac_status); }; }; then
45084   glibcxx_cv_func_logl_use=yes
45085 else
45086   echo "$as_me: failed program was:" >&5
45087 sed 's/^/| /' conftest.$ac_ext >&5
45088
45089 glibcxx_cv_func_logl_use=no
45090 fi
45091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45092       ac_ext=c
45093 ac_cpp='$CPP $CPPFLAGS'
45094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45097
45098
45099 fi
45100
45101   fi
45102   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
45103 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
45104
45105   if test x$glibcxx_cv_func_logl_use = x"yes"; then
45106
45107 for ac_func in logl
45108 do
45109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45110 echo "$as_me:$LINENO: checking for $ac_func" >&5
45111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45112 if eval "test \"\${$as_ac_var+set}\" = set"; then
45113   echo $ECHO_N "(cached) $ECHO_C" >&6
45114 else
45115   if test x$gcc_no_link = xyes; then
45116   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45118    { (exit 1); exit 1; }; }
45119 fi
45120 cat >conftest.$ac_ext <<_ACEOF
45121 /* confdefs.h.  */
45122 _ACEOF
45123 cat confdefs.h >>conftest.$ac_ext
45124 cat >>conftest.$ac_ext <<_ACEOF
45125 /* end confdefs.h.  */
45126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45128 #define $ac_func innocuous_$ac_func
45129
45130 /* System header to define __stub macros and hopefully few prototypes,
45131     which can conflict with char $ac_func (); below.
45132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45133     <limits.h> exists even on freestanding compilers.  */
45134
45135 #ifdef __STDC__
45136 # include <limits.h>
45137 #else
45138 # include <assert.h>
45139 #endif
45140
45141 #undef $ac_func
45142
45143 /* Override any gcc2 internal prototype to avoid an error.  */
45144 #ifdef __cplusplus
45145 extern "C"
45146 {
45147 #endif
45148 /* We use char because int might match the return type of a gcc2
45149    builtin and then its argument prototype would still apply.  */
45150 char $ac_func ();
45151 /* The GNU C library defines this for functions which it implements
45152     to always fail with ENOSYS.  Some functions are actually named
45153     something starting with __ and the normal name is an alias.  */
45154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45155 choke me
45156 #else
45157 char (*f) () = $ac_func;
45158 #endif
45159 #ifdef __cplusplus
45160 }
45161 #endif
45162
45163 int
45164 main ()
45165 {
45166 return f != $ac_func;
45167   ;
45168   return 0;
45169 }
45170 _ACEOF
45171 rm -f conftest.$ac_objext conftest$ac_exeext
45172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45173   (eval $ac_link) 2>conftest.er1
45174   ac_status=$?
45175   grep -v '^ *+' conftest.er1 >conftest.err
45176   rm -f conftest.er1
45177   cat conftest.err >&5
45178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45179   (exit $ac_status); } &&
45180          { ac_try='test -z "$ac_c_werror_flag"
45181                          || test ! -s conftest.err'
45182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45183   (eval $ac_try) 2>&5
45184   ac_status=$?
45185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45186   (exit $ac_status); }; } &&
45187          { ac_try='test -s conftest$ac_exeext'
45188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45189   (eval $ac_try) 2>&5
45190   ac_status=$?
45191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45192   (exit $ac_status); }; }; then
45193   eval "$as_ac_var=yes"
45194 else
45195   echo "$as_me: failed program was:" >&5
45196 sed 's/^/| /' conftest.$ac_ext >&5
45197
45198 eval "$as_ac_var=no"
45199 fi
45200 rm -f conftest.err conftest.$ac_objext \
45201       conftest$ac_exeext conftest.$ac_ext
45202 fi
45203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45205 if test `eval echo '${'$as_ac_var'}'` = yes; then
45206   cat >>confdefs.h <<_ACEOF
45207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45208 _ACEOF
45209
45210 fi
45211 done
45212
45213   else
45214
45215   echo "$as_me:$LINENO: checking for _logl declaration" >&5
45216 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
45217   if test x${glibcxx_cv_func__logl_use+set} != xset; then
45218     if test "${glibcxx_cv_func__logl_use+set}" = set; then
45219   echo $ECHO_N "(cached) $ECHO_C" >&6
45220 else
45221
45222
45223
45224       ac_ext=cc
45225 ac_cpp='$CXXCPP $CPPFLAGS'
45226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45229
45230       cat >conftest.$ac_ext <<_ACEOF
45231 /* confdefs.h.  */
45232 _ACEOF
45233 cat confdefs.h >>conftest.$ac_ext
45234 cat >>conftest.$ac_ext <<_ACEOF
45235 /* end confdefs.h.  */
45236 #include <math.h>
45237                       #ifdef HAVE_IEEEFP_H
45238                       #include <ieeefp.h>
45239                       #endif
45240
45241 int
45242 main ()
45243 {
45244  _logl(0);
45245   ;
45246   return 0;
45247 }
45248 _ACEOF
45249 rm -f conftest.$ac_objext
45250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45251   (eval $ac_compile) 2>conftest.er1
45252   ac_status=$?
45253   grep -v '^ *+' conftest.er1 >conftest.err
45254   rm -f conftest.er1
45255   cat conftest.err >&5
45256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45257   (exit $ac_status); } &&
45258          { ac_try='test -z "$ac_cxx_werror_flag"
45259                          || test ! -s conftest.err'
45260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45261   (eval $ac_try) 2>&5
45262   ac_status=$?
45263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45264   (exit $ac_status); }; } &&
45265          { ac_try='test -s conftest.$ac_objext'
45266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45267   (eval $ac_try) 2>&5
45268   ac_status=$?
45269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45270   (exit $ac_status); }; }; then
45271   glibcxx_cv_func__logl_use=yes
45272 else
45273   echo "$as_me: failed program was:" >&5
45274 sed 's/^/| /' conftest.$ac_ext >&5
45275
45276 glibcxx_cv_func__logl_use=no
45277 fi
45278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45279       ac_ext=c
45280 ac_cpp='$CPP $CPPFLAGS'
45281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45284
45285
45286 fi
45287
45288   fi
45289   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
45290 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
45291
45292     if test x$glibcxx_cv_func__logl_use = x"yes"; then
45293
45294 for ac_func in _logl
45295 do
45296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45297 echo "$as_me:$LINENO: checking for $ac_func" >&5
45298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45299 if eval "test \"\${$as_ac_var+set}\" = set"; then
45300   echo $ECHO_N "(cached) $ECHO_C" >&6
45301 else
45302   if test x$gcc_no_link = xyes; then
45303   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45305    { (exit 1); exit 1; }; }
45306 fi
45307 cat >conftest.$ac_ext <<_ACEOF
45308 /* confdefs.h.  */
45309 _ACEOF
45310 cat confdefs.h >>conftest.$ac_ext
45311 cat >>conftest.$ac_ext <<_ACEOF
45312 /* end confdefs.h.  */
45313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45315 #define $ac_func innocuous_$ac_func
45316
45317 /* System header to define __stub macros and hopefully few prototypes,
45318     which can conflict with char $ac_func (); below.
45319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45320     <limits.h> exists even on freestanding compilers.  */
45321
45322 #ifdef __STDC__
45323 # include <limits.h>
45324 #else
45325 # include <assert.h>
45326 #endif
45327
45328 #undef $ac_func
45329
45330 /* Override any gcc2 internal prototype to avoid an error.  */
45331 #ifdef __cplusplus
45332 extern "C"
45333 {
45334 #endif
45335 /* We use char because int might match the return type of a gcc2
45336    builtin and then its argument prototype would still apply.  */
45337 char $ac_func ();
45338 /* The GNU C library defines this for functions which it implements
45339     to always fail with ENOSYS.  Some functions are actually named
45340     something starting with __ and the normal name is an alias.  */
45341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45342 choke me
45343 #else
45344 char (*f) () = $ac_func;
45345 #endif
45346 #ifdef __cplusplus
45347 }
45348 #endif
45349
45350 int
45351 main ()
45352 {
45353 return f != $ac_func;
45354   ;
45355   return 0;
45356 }
45357 _ACEOF
45358 rm -f conftest.$ac_objext conftest$ac_exeext
45359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45360   (eval $ac_link) 2>conftest.er1
45361   ac_status=$?
45362   grep -v '^ *+' conftest.er1 >conftest.err
45363   rm -f conftest.er1
45364   cat conftest.err >&5
45365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45366   (exit $ac_status); } &&
45367          { ac_try='test -z "$ac_c_werror_flag"
45368                          || test ! -s conftest.err'
45369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45370   (eval $ac_try) 2>&5
45371   ac_status=$?
45372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45373   (exit $ac_status); }; } &&
45374          { ac_try='test -s conftest$ac_exeext'
45375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45376   (eval $ac_try) 2>&5
45377   ac_status=$?
45378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45379   (exit $ac_status); }; }; then
45380   eval "$as_ac_var=yes"
45381 else
45382   echo "$as_me: failed program was:" >&5
45383 sed 's/^/| /' conftest.$ac_ext >&5
45384
45385 eval "$as_ac_var=no"
45386 fi
45387 rm -f conftest.err conftest.$ac_objext \
45388       conftest$ac_exeext conftest.$ac_ext
45389 fi
45390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45392 if test `eval echo '${'$as_ac_var'}'` = yes; then
45393   cat >>confdefs.h <<_ACEOF
45394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45395 _ACEOF
45396
45397 fi
45398 done
45399
45400     fi
45401   fi
45402
45403
45404
45405   echo "$as_me:$LINENO: checking for log10l declaration" >&5
45406 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
45407   if test x${glibcxx_cv_func_log10l_use+set} != xset; then
45408     if test "${glibcxx_cv_func_log10l_use+set}" = set; then
45409   echo $ECHO_N "(cached) $ECHO_C" >&6
45410 else
45411
45412
45413
45414       ac_ext=cc
45415 ac_cpp='$CXXCPP $CPPFLAGS'
45416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45419
45420       cat >conftest.$ac_ext <<_ACEOF
45421 /* confdefs.h.  */
45422 _ACEOF
45423 cat confdefs.h >>conftest.$ac_ext
45424 cat >>conftest.$ac_ext <<_ACEOF
45425 /* end confdefs.h.  */
45426 #include <math.h>
45427                       #ifdef HAVE_IEEEFP_H
45428                       #include <ieeefp.h>
45429                       #endif
45430
45431 int
45432 main ()
45433 {
45434  log10l(0);
45435   ;
45436   return 0;
45437 }
45438 _ACEOF
45439 rm -f conftest.$ac_objext
45440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45441   (eval $ac_compile) 2>conftest.er1
45442   ac_status=$?
45443   grep -v '^ *+' conftest.er1 >conftest.err
45444   rm -f conftest.er1
45445   cat conftest.err >&5
45446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45447   (exit $ac_status); } &&
45448          { ac_try='test -z "$ac_cxx_werror_flag"
45449                          || test ! -s conftest.err'
45450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45451   (eval $ac_try) 2>&5
45452   ac_status=$?
45453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45454   (exit $ac_status); }; } &&
45455          { ac_try='test -s conftest.$ac_objext'
45456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45457   (eval $ac_try) 2>&5
45458   ac_status=$?
45459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45460   (exit $ac_status); }; }; then
45461   glibcxx_cv_func_log10l_use=yes
45462 else
45463   echo "$as_me: failed program was:" >&5
45464 sed 's/^/| /' conftest.$ac_ext >&5
45465
45466 glibcxx_cv_func_log10l_use=no
45467 fi
45468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45469       ac_ext=c
45470 ac_cpp='$CPP $CPPFLAGS'
45471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45474
45475
45476 fi
45477
45478   fi
45479   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
45480 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
45481
45482   if test x$glibcxx_cv_func_log10l_use = x"yes"; then
45483
45484 for ac_func in log10l
45485 do
45486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45487 echo "$as_me:$LINENO: checking for $ac_func" >&5
45488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45489 if eval "test \"\${$as_ac_var+set}\" = set"; then
45490   echo $ECHO_N "(cached) $ECHO_C" >&6
45491 else
45492   if test x$gcc_no_link = xyes; then
45493   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45495    { (exit 1); exit 1; }; }
45496 fi
45497 cat >conftest.$ac_ext <<_ACEOF
45498 /* confdefs.h.  */
45499 _ACEOF
45500 cat confdefs.h >>conftest.$ac_ext
45501 cat >>conftest.$ac_ext <<_ACEOF
45502 /* end confdefs.h.  */
45503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45505 #define $ac_func innocuous_$ac_func
45506
45507 /* System header to define __stub macros and hopefully few prototypes,
45508     which can conflict with char $ac_func (); below.
45509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45510     <limits.h> exists even on freestanding compilers.  */
45511
45512 #ifdef __STDC__
45513 # include <limits.h>
45514 #else
45515 # include <assert.h>
45516 #endif
45517
45518 #undef $ac_func
45519
45520 /* Override any gcc2 internal prototype to avoid an error.  */
45521 #ifdef __cplusplus
45522 extern "C"
45523 {
45524 #endif
45525 /* We use char because int might match the return type of a gcc2
45526    builtin and then its argument prototype would still apply.  */
45527 char $ac_func ();
45528 /* The GNU C library defines this for functions which it implements
45529     to always fail with ENOSYS.  Some functions are actually named
45530     something starting with __ and the normal name is an alias.  */
45531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45532 choke me
45533 #else
45534 char (*f) () = $ac_func;
45535 #endif
45536 #ifdef __cplusplus
45537 }
45538 #endif
45539
45540 int
45541 main ()
45542 {
45543 return f != $ac_func;
45544   ;
45545   return 0;
45546 }
45547 _ACEOF
45548 rm -f conftest.$ac_objext conftest$ac_exeext
45549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45550   (eval $ac_link) 2>conftest.er1
45551   ac_status=$?
45552   grep -v '^ *+' conftest.er1 >conftest.err
45553   rm -f conftest.er1
45554   cat conftest.err >&5
45555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45556   (exit $ac_status); } &&
45557          { ac_try='test -z "$ac_c_werror_flag"
45558                          || test ! -s conftest.err'
45559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45560   (eval $ac_try) 2>&5
45561   ac_status=$?
45562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45563   (exit $ac_status); }; } &&
45564          { ac_try='test -s conftest$ac_exeext'
45565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45566   (eval $ac_try) 2>&5
45567   ac_status=$?
45568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45569   (exit $ac_status); }; }; then
45570   eval "$as_ac_var=yes"
45571 else
45572   echo "$as_me: failed program was:" >&5
45573 sed 's/^/| /' conftest.$ac_ext >&5
45574
45575 eval "$as_ac_var=no"
45576 fi
45577 rm -f conftest.err conftest.$ac_objext \
45578       conftest$ac_exeext conftest.$ac_ext
45579 fi
45580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45582 if test `eval echo '${'$as_ac_var'}'` = yes; then
45583   cat >>confdefs.h <<_ACEOF
45584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45585 _ACEOF
45586
45587 fi
45588 done
45589
45590   else
45591
45592   echo "$as_me:$LINENO: checking for _log10l declaration" >&5
45593 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
45594   if test x${glibcxx_cv_func__log10l_use+set} != xset; then
45595     if test "${glibcxx_cv_func__log10l_use+set}" = set; then
45596   echo $ECHO_N "(cached) $ECHO_C" >&6
45597 else
45598
45599
45600
45601       ac_ext=cc
45602 ac_cpp='$CXXCPP $CPPFLAGS'
45603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45606
45607       cat >conftest.$ac_ext <<_ACEOF
45608 /* confdefs.h.  */
45609 _ACEOF
45610 cat confdefs.h >>conftest.$ac_ext
45611 cat >>conftest.$ac_ext <<_ACEOF
45612 /* end confdefs.h.  */
45613 #include <math.h>
45614                       #ifdef HAVE_IEEEFP_H
45615                       #include <ieeefp.h>
45616                       #endif
45617
45618 int
45619 main ()
45620 {
45621  _log10l(0);
45622   ;
45623   return 0;
45624 }
45625 _ACEOF
45626 rm -f conftest.$ac_objext
45627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45628   (eval $ac_compile) 2>conftest.er1
45629   ac_status=$?
45630   grep -v '^ *+' conftest.er1 >conftest.err
45631   rm -f conftest.er1
45632   cat conftest.err >&5
45633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45634   (exit $ac_status); } &&
45635          { ac_try='test -z "$ac_cxx_werror_flag"
45636                          || test ! -s conftest.err'
45637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45638   (eval $ac_try) 2>&5
45639   ac_status=$?
45640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45641   (exit $ac_status); }; } &&
45642          { ac_try='test -s conftest.$ac_objext'
45643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45644   (eval $ac_try) 2>&5
45645   ac_status=$?
45646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45647   (exit $ac_status); }; }; then
45648   glibcxx_cv_func__log10l_use=yes
45649 else
45650   echo "$as_me: failed program was:" >&5
45651 sed 's/^/| /' conftest.$ac_ext >&5
45652
45653 glibcxx_cv_func__log10l_use=no
45654 fi
45655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45656       ac_ext=c
45657 ac_cpp='$CPP $CPPFLAGS'
45658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45661
45662
45663 fi
45664
45665   fi
45666   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
45667 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
45668
45669     if test x$glibcxx_cv_func__log10l_use = x"yes"; then
45670
45671 for ac_func in _log10l
45672 do
45673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45674 echo "$as_me:$LINENO: checking for $ac_func" >&5
45675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45676 if eval "test \"\${$as_ac_var+set}\" = set"; then
45677   echo $ECHO_N "(cached) $ECHO_C" >&6
45678 else
45679   if test x$gcc_no_link = xyes; then
45680   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45682    { (exit 1); exit 1; }; }
45683 fi
45684 cat >conftest.$ac_ext <<_ACEOF
45685 /* confdefs.h.  */
45686 _ACEOF
45687 cat confdefs.h >>conftest.$ac_ext
45688 cat >>conftest.$ac_ext <<_ACEOF
45689 /* end confdefs.h.  */
45690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45692 #define $ac_func innocuous_$ac_func
45693
45694 /* System header to define __stub macros and hopefully few prototypes,
45695     which can conflict with char $ac_func (); below.
45696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45697     <limits.h> exists even on freestanding compilers.  */
45698
45699 #ifdef __STDC__
45700 # include <limits.h>
45701 #else
45702 # include <assert.h>
45703 #endif
45704
45705 #undef $ac_func
45706
45707 /* Override any gcc2 internal prototype to avoid an error.  */
45708 #ifdef __cplusplus
45709 extern "C"
45710 {
45711 #endif
45712 /* We use char because int might match the return type of a gcc2
45713    builtin and then its argument prototype would still apply.  */
45714 char $ac_func ();
45715 /* The GNU C library defines this for functions which it implements
45716     to always fail with ENOSYS.  Some functions are actually named
45717     something starting with __ and the normal name is an alias.  */
45718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45719 choke me
45720 #else
45721 char (*f) () = $ac_func;
45722 #endif
45723 #ifdef __cplusplus
45724 }
45725 #endif
45726
45727 int
45728 main ()
45729 {
45730 return f != $ac_func;
45731   ;
45732   return 0;
45733 }
45734 _ACEOF
45735 rm -f conftest.$ac_objext conftest$ac_exeext
45736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45737   (eval $ac_link) 2>conftest.er1
45738   ac_status=$?
45739   grep -v '^ *+' conftest.er1 >conftest.err
45740   rm -f conftest.er1
45741   cat conftest.err >&5
45742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45743   (exit $ac_status); } &&
45744          { ac_try='test -z "$ac_c_werror_flag"
45745                          || test ! -s conftest.err'
45746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45747   (eval $ac_try) 2>&5
45748   ac_status=$?
45749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45750   (exit $ac_status); }; } &&
45751          { ac_try='test -s conftest$ac_exeext'
45752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45753   (eval $ac_try) 2>&5
45754   ac_status=$?
45755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45756   (exit $ac_status); }; }; then
45757   eval "$as_ac_var=yes"
45758 else
45759   echo "$as_me: failed program was:" >&5
45760 sed 's/^/| /' conftest.$ac_ext >&5
45761
45762 eval "$as_ac_var=no"
45763 fi
45764 rm -f conftest.err conftest.$ac_objext \
45765       conftest$ac_exeext conftest.$ac_ext
45766 fi
45767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45769 if test `eval echo '${'$as_ac_var'}'` = yes; then
45770   cat >>confdefs.h <<_ACEOF
45771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45772 _ACEOF
45773
45774 fi
45775 done
45776
45777     fi
45778   fi
45779
45780
45781
45782   echo "$as_me:$LINENO: checking for modfl declaration" >&5
45783 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
45784   if test x${glibcxx_cv_func_modfl_use+set} != xset; then
45785     if test "${glibcxx_cv_func_modfl_use+set}" = set; then
45786   echo $ECHO_N "(cached) $ECHO_C" >&6
45787 else
45788
45789
45790
45791       ac_ext=cc
45792 ac_cpp='$CXXCPP $CPPFLAGS'
45793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45796
45797       cat >conftest.$ac_ext <<_ACEOF
45798 /* confdefs.h.  */
45799 _ACEOF
45800 cat confdefs.h >>conftest.$ac_ext
45801 cat >>conftest.$ac_ext <<_ACEOF
45802 /* end confdefs.h.  */
45803 #include <math.h>
45804 int
45805 main ()
45806 {
45807  modfl(0, 0);
45808   ;
45809   return 0;
45810 }
45811 _ACEOF
45812 rm -f conftest.$ac_objext
45813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45814   (eval $ac_compile) 2>conftest.er1
45815   ac_status=$?
45816   grep -v '^ *+' conftest.er1 >conftest.err
45817   rm -f conftest.er1
45818   cat conftest.err >&5
45819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45820   (exit $ac_status); } &&
45821          { ac_try='test -z "$ac_cxx_werror_flag"
45822                          || test ! -s conftest.err'
45823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45824   (eval $ac_try) 2>&5
45825   ac_status=$?
45826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45827   (exit $ac_status); }; } &&
45828          { ac_try='test -s conftest.$ac_objext'
45829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45830   (eval $ac_try) 2>&5
45831   ac_status=$?
45832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45833   (exit $ac_status); }; }; then
45834   glibcxx_cv_func_modfl_use=yes
45835 else
45836   echo "$as_me: failed program was:" >&5
45837 sed 's/^/| /' conftest.$ac_ext >&5
45838
45839 glibcxx_cv_func_modfl_use=no
45840 fi
45841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842       ac_ext=c
45843 ac_cpp='$CPP $CPPFLAGS'
45844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45847
45848
45849 fi
45850
45851   fi
45852   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
45853 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
45854
45855   if test x$glibcxx_cv_func_modfl_use = x"yes"; then
45856
45857 for ac_func in modfl
45858 do
45859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45860 echo "$as_me:$LINENO: checking for $ac_func" >&5
45861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45862 if eval "test \"\${$as_ac_var+set}\" = set"; then
45863   echo $ECHO_N "(cached) $ECHO_C" >&6
45864 else
45865   if test x$gcc_no_link = xyes; then
45866   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45867 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45868    { (exit 1); exit 1; }; }
45869 fi
45870 cat >conftest.$ac_ext <<_ACEOF
45871 /* confdefs.h.  */
45872 _ACEOF
45873 cat confdefs.h >>conftest.$ac_ext
45874 cat >>conftest.$ac_ext <<_ACEOF
45875 /* end confdefs.h.  */
45876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45878 #define $ac_func innocuous_$ac_func
45879
45880 /* System header to define __stub macros and hopefully few prototypes,
45881     which can conflict with char $ac_func (); below.
45882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45883     <limits.h> exists even on freestanding compilers.  */
45884
45885 #ifdef __STDC__
45886 # include <limits.h>
45887 #else
45888 # include <assert.h>
45889 #endif
45890
45891 #undef $ac_func
45892
45893 /* Override any gcc2 internal prototype to avoid an error.  */
45894 #ifdef __cplusplus
45895 extern "C"
45896 {
45897 #endif
45898 /* We use char because int might match the return type of a gcc2
45899    builtin and then its argument prototype would still apply.  */
45900 char $ac_func ();
45901 /* The GNU C library defines this for functions which it implements
45902     to always fail with ENOSYS.  Some functions are actually named
45903     something starting with __ and the normal name is an alias.  */
45904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45905 choke me
45906 #else
45907 char (*f) () = $ac_func;
45908 #endif
45909 #ifdef __cplusplus
45910 }
45911 #endif
45912
45913 int
45914 main ()
45915 {
45916 return f != $ac_func;
45917   ;
45918   return 0;
45919 }
45920 _ACEOF
45921 rm -f conftest.$ac_objext conftest$ac_exeext
45922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45923   (eval $ac_link) 2>conftest.er1
45924   ac_status=$?
45925   grep -v '^ *+' conftest.er1 >conftest.err
45926   rm -f conftest.er1
45927   cat conftest.err >&5
45928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45929   (exit $ac_status); } &&
45930          { ac_try='test -z "$ac_c_werror_flag"
45931                          || test ! -s conftest.err'
45932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45933   (eval $ac_try) 2>&5
45934   ac_status=$?
45935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45936   (exit $ac_status); }; } &&
45937          { ac_try='test -s conftest$ac_exeext'
45938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45939   (eval $ac_try) 2>&5
45940   ac_status=$?
45941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45942   (exit $ac_status); }; }; then
45943   eval "$as_ac_var=yes"
45944 else
45945   echo "$as_me: failed program was:" >&5
45946 sed 's/^/| /' conftest.$ac_ext >&5
45947
45948 eval "$as_ac_var=no"
45949 fi
45950 rm -f conftest.err conftest.$ac_objext \
45951       conftest$ac_exeext conftest.$ac_ext
45952 fi
45953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45955 if test `eval echo '${'$as_ac_var'}'` = yes; then
45956   cat >>confdefs.h <<_ACEOF
45957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45958 _ACEOF
45959
45960 fi
45961 done
45962
45963   else
45964
45965   echo "$as_me:$LINENO: checking for _modfl declaration" >&5
45966 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
45967   if test x${glibcxx_cv_func__modfl_use+set} != xset; then
45968     if test "${glibcxx_cv_func__modfl_use+set}" = set; then
45969   echo $ECHO_N "(cached) $ECHO_C" >&6
45970 else
45971
45972
45973
45974       ac_ext=cc
45975 ac_cpp='$CXXCPP $CPPFLAGS'
45976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45979
45980       cat >conftest.$ac_ext <<_ACEOF
45981 /* confdefs.h.  */
45982 _ACEOF
45983 cat confdefs.h >>conftest.$ac_ext
45984 cat >>conftest.$ac_ext <<_ACEOF
45985 /* end confdefs.h.  */
45986 #include <math.h>
45987 int
45988 main ()
45989 {
45990  _modfl(0, 0);
45991   ;
45992   return 0;
45993 }
45994 _ACEOF
45995 rm -f conftest.$ac_objext
45996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45997   (eval $ac_compile) 2>conftest.er1
45998   ac_status=$?
45999   grep -v '^ *+' conftest.er1 >conftest.err
46000   rm -f conftest.er1
46001   cat conftest.err >&5
46002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46003   (exit $ac_status); } &&
46004          { ac_try='test -z "$ac_cxx_werror_flag"
46005                          || test ! -s conftest.err'
46006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46007   (eval $ac_try) 2>&5
46008   ac_status=$?
46009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46010   (exit $ac_status); }; } &&
46011          { ac_try='test -s conftest.$ac_objext'
46012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46013   (eval $ac_try) 2>&5
46014   ac_status=$?
46015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46016   (exit $ac_status); }; }; then
46017   glibcxx_cv_func__modfl_use=yes
46018 else
46019   echo "$as_me: failed program was:" >&5
46020 sed 's/^/| /' conftest.$ac_ext >&5
46021
46022 glibcxx_cv_func__modfl_use=no
46023 fi
46024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46025       ac_ext=c
46026 ac_cpp='$CPP $CPPFLAGS'
46027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46030
46031
46032 fi
46033
46034   fi
46035   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
46036 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
46037
46038     if test x$glibcxx_cv_func__modfl_use = x"yes"; then
46039
46040 for ac_func in _modfl
46041 do
46042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46043 echo "$as_me:$LINENO: checking for $ac_func" >&5
46044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46045 if eval "test \"\${$as_ac_var+set}\" = set"; then
46046   echo $ECHO_N "(cached) $ECHO_C" >&6
46047 else
46048   if test x$gcc_no_link = xyes; then
46049   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46050 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46051    { (exit 1); exit 1; }; }
46052 fi
46053 cat >conftest.$ac_ext <<_ACEOF
46054 /* confdefs.h.  */
46055 _ACEOF
46056 cat confdefs.h >>conftest.$ac_ext
46057 cat >>conftest.$ac_ext <<_ACEOF
46058 /* end confdefs.h.  */
46059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46061 #define $ac_func innocuous_$ac_func
46062
46063 /* System header to define __stub macros and hopefully few prototypes,
46064     which can conflict with char $ac_func (); below.
46065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46066     <limits.h> exists even on freestanding compilers.  */
46067
46068 #ifdef __STDC__
46069 # include <limits.h>
46070 #else
46071 # include <assert.h>
46072 #endif
46073
46074 #undef $ac_func
46075
46076 /* Override any gcc2 internal prototype to avoid an error.  */
46077 #ifdef __cplusplus
46078 extern "C"
46079 {
46080 #endif
46081 /* We use char because int might match the return type of a gcc2
46082    builtin and then its argument prototype would still apply.  */
46083 char $ac_func ();
46084 /* The GNU C library defines this for functions which it implements
46085     to always fail with ENOSYS.  Some functions are actually named
46086     something starting with __ and the normal name is an alias.  */
46087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46088 choke me
46089 #else
46090 char (*f) () = $ac_func;
46091 #endif
46092 #ifdef __cplusplus
46093 }
46094 #endif
46095
46096 int
46097 main ()
46098 {
46099 return f != $ac_func;
46100   ;
46101   return 0;
46102 }
46103 _ACEOF
46104 rm -f conftest.$ac_objext conftest$ac_exeext
46105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46106   (eval $ac_link) 2>conftest.er1
46107   ac_status=$?
46108   grep -v '^ *+' conftest.er1 >conftest.err
46109   rm -f conftest.er1
46110   cat conftest.err >&5
46111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112   (exit $ac_status); } &&
46113          { ac_try='test -z "$ac_c_werror_flag"
46114                          || test ! -s conftest.err'
46115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46116   (eval $ac_try) 2>&5
46117   ac_status=$?
46118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46119   (exit $ac_status); }; } &&
46120          { ac_try='test -s conftest$ac_exeext'
46121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46122   (eval $ac_try) 2>&5
46123   ac_status=$?
46124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46125   (exit $ac_status); }; }; then
46126   eval "$as_ac_var=yes"
46127 else
46128   echo "$as_me: failed program was:" >&5
46129 sed 's/^/| /' conftest.$ac_ext >&5
46130
46131 eval "$as_ac_var=no"
46132 fi
46133 rm -f conftest.err conftest.$ac_objext \
46134       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   fi
46148
46149
46150
46151   echo "$as_me:$LINENO: checking for powl declaration" >&5
46152 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
46153   if test x${glibcxx_cv_func_powl_use+set} != xset; then
46154     if test "${glibcxx_cv_func_powl_use+set}" = set; then
46155   echo $ECHO_N "(cached) $ECHO_C" >&6
46156 else
46157
46158
46159
46160       ac_ext=cc
46161 ac_cpp='$CXXCPP $CPPFLAGS'
46162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46165
46166       cat >conftest.$ac_ext <<_ACEOF
46167 /* confdefs.h.  */
46168 _ACEOF
46169 cat confdefs.h >>conftest.$ac_ext
46170 cat >>conftest.$ac_ext <<_ACEOF
46171 /* end confdefs.h.  */
46172 #include <math.h>
46173 int
46174 main ()
46175 {
46176  powl(0, 0);
46177   ;
46178   return 0;
46179 }
46180 _ACEOF
46181 rm -f conftest.$ac_objext
46182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46183   (eval $ac_compile) 2>conftest.er1
46184   ac_status=$?
46185   grep -v '^ *+' conftest.er1 >conftest.err
46186   rm -f conftest.er1
46187   cat conftest.err >&5
46188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46189   (exit $ac_status); } &&
46190          { ac_try='test -z "$ac_cxx_werror_flag"
46191                          || test ! -s conftest.err'
46192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46193   (eval $ac_try) 2>&5
46194   ac_status=$?
46195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46196   (exit $ac_status); }; } &&
46197          { ac_try='test -s conftest.$ac_objext'
46198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46199   (eval $ac_try) 2>&5
46200   ac_status=$?
46201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46202   (exit $ac_status); }; }; then
46203   glibcxx_cv_func_powl_use=yes
46204 else
46205   echo "$as_me: failed program was:" >&5
46206 sed 's/^/| /' conftest.$ac_ext >&5
46207
46208 glibcxx_cv_func_powl_use=no
46209 fi
46210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46211       ac_ext=c
46212 ac_cpp='$CPP $CPPFLAGS'
46213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46216
46217
46218 fi
46219
46220   fi
46221   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
46222 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
46223
46224   if test x$glibcxx_cv_func_powl_use = x"yes"; then
46225
46226 for ac_func in powl
46227 do
46228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46229 echo "$as_me:$LINENO: checking for $ac_func" >&5
46230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46231 if eval "test \"\${$as_ac_var+set}\" = set"; then
46232   echo $ECHO_N "(cached) $ECHO_C" >&6
46233 else
46234   if test x$gcc_no_link = xyes; then
46235   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46237    { (exit 1); exit 1; }; }
46238 fi
46239 cat >conftest.$ac_ext <<_ACEOF
46240 /* confdefs.h.  */
46241 _ACEOF
46242 cat confdefs.h >>conftest.$ac_ext
46243 cat >>conftest.$ac_ext <<_ACEOF
46244 /* end confdefs.h.  */
46245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46247 #define $ac_func innocuous_$ac_func
46248
46249 /* System header to define __stub macros and hopefully few prototypes,
46250     which can conflict with char $ac_func (); below.
46251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46252     <limits.h> exists even on freestanding compilers.  */
46253
46254 #ifdef __STDC__
46255 # include <limits.h>
46256 #else
46257 # include <assert.h>
46258 #endif
46259
46260 #undef $ac_func
46261
46262 /* Override any gcc2 internal prototype to avoid an error.  */
46263 #ifdef __cplusplus
46264 extern "C"
46265 {
46266 #endif
46267 /* We use char because int might match the return type of a gcc2
46268    builtin and then its argument prototype would still apply.  */
46269 char $ac_func ();
46270 /* The GNU C library defines this for functions which it implements
46271     to always fail with ENOSYS.  Some functions are actually named
46272     something starting with __ and the normal name is an alias.  */
46273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46274 choke me
46275 #else
46276 char (*f) () = $ac_func;
46277 #endif
46278 #ifdef __cplusplus
46279 }
46280 #endif
46281
46282 int
46283 main ()
46284 {
46285 return f != $ac_func;
46286   ;
46287   return 0;
46288 }
46289 _ACEOF
46290 rm -f conftest.$ac_objext conftest$ac_exeext
46291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46292   (eval $ac_link) 2>conftest.er1
46293   ac_status=$?
46294   grep -v '^ *+' conftest.er1 >conftest.err
46295   rm -f conftest.er1
46296   cat conftest.err >&5
46297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46298   (exit $ac_status); } &&
46299          { ac_try='test -z "$ac_c_werror_flag"
46300                          || test ! -s conftest.err'
46301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46302   (eval $ac_try) 2>&5
46303   ac_status=$?
46304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46305   (exit $ac_status); }; } &&
46306          { ac_try='test -s conftest$ac_exeext'
46307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46308   (eval $ac_try) 2>&5
46309   ac_status=$?
46310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46311   (exit $ac_status); }; }; then
46312   eval "$as_ac_var=yes"
46313 else
46314   echo "$as_me: failed program was:" >&5
46315 sed 's/^/| /' conftest.$ac_ext >&5
46316
46317 eval "$as_ac_var=no"
46318 fi
46319 rm -f conftest.err conftest.$ac_objext \
46320       conftest$ac_exeext conftest.$ac_ext
46321 fi
46322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46324 if test `eval echo '${'$as_ac_var'}'` = yes; then
46325   cat >>confdefs.h <<_ACEOF
46326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46327 _ACEOF
46328
46329 fi
46330 done
46331
46332   else
46333
46334   echo "$as_me:$LINENO: checking for _powl declaration" >&5
46335 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
46336   if test x${glibcxx_cv_func__powl_use+set} != xset; then
46337     if test "${glibcxx_cv_func__powl_use+set}" = set; then
46338   echo $ECHO_N "(cached) $ECHO_C" >&6
46339 else
46340
46341
46342
46343       ac_ext=cc
46344 ac_cpp='$CXXCPP $CPPFLAGS'
46345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46348
46349       cat >conftest.$ac_ext <<_ACEOF
46350 /* confdefs.h.  */
46351 _ACEOF
46352 cat confdefs.h >>conftest.$ac_ext
46353 cat >>conftest.$ac_ext <<_ACEOF
46354 /* end confdefs.h.  */
46355 #include <math.h>
46356 int
46357 main ()
46358 {
46359  _powl(0, 0);
46360   ;
46361   return 0;
46362 }
46363 _ACEOF
46364 rm -f conftest.$ac_objext
46365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46366   (eval $ac_compile) 2>conftest.er1
46367   ac_status=$?
46368   grep -v '^ *+' conftest.er1 >conftest.err
46369   rm -f conftest.er1
46370   cat conftest.err >&5
46371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46372   (exit $ac_status); } &&
46373          { ac_try='test -z "$ac_cxx_werror_flag"
46374                          || test ! -s conftest.err'
46375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46376   (eval $ac_try) 2>&5
46377   ac_status=$?
46378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46379   (exit $ac_status); }; } &&
46380          { ac_try='test -s conftest.$ac_objext'
46381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46382   (eval $ac_try) 2>&5
46383   ac_status=$?
46384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46385   (exit $ac_status); }; }; then
46386   glibcxx_cv_func__powl_use=yes
46387 else
46388   echo "$as_me: failed program was:" >&5
46389 sed 's/^/| /' conftest.$ac_ext >&5
46390
46391 glibcxx_cv_func__powl_use=no
46392 fi
46393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46394       ac_ext=c
46395 ac_cpp='$CPP $CPPFLAGS'
46396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46399
46400
46401 fi
46402
46403   fi
46404   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
46405 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
46406
46407     if test x$glibcxx_cv_func__powl_use = x"yes"; then
46408
46409 for ac_func in _powl
46410 do
46411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46412 echo "$as_me:$LINENO: checking for $ac_func" >&5
46413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46414 if eval "test \"\${$as_ac_var+set}\" = set"; then
46415   echo $ECHO_N "(cached) $ECHO_C" >&6
46416 else
46417   if test x$gcc_no_link = xyes; then
46418   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46420    { (exit 1); exit 1; }; }
46421 fi
46422 cat >conftest.$ac_ext <<_ACEOF
46423 /* confdefs.h.  */
46424 _ACEOF
46425 cat confdefs.h >>conftest.$ac_ext
46426 cat >>conftest.$ac_ext <<_ACEOF
46427 /* end confdefs.h.  */
46428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46430 #define $ac_func innocuous_$ac_func
46431
46432 /* System header to define __stub macros and hopefully few prototypes,
46433     which can conflict with char $ac_func (); below.
46434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46435     <limits.h> exists even on freestanding compilers.  */
46436
46437 #ifdef __STDC__
46438 # include <limits.h>
46439 #else
46440 # include <assert.h>
46441 #endif
46442
46443 #undef $ac_func
46444
46445 /* Override any gcc2 internal prototype to avoid an error.  */
46446 #ifdef __cplusplus
46447 extern "C"
46448 {
46449 #endif
46450 /* We use char because int might match the return type of a gcc2
46451    builtin and then its argument prototype would still apply.  */
46452 char $ac_func ();
46453 /* The GNU C library defines this for functions which it implements
46454     to always fail with ENOSYS.  Some functions are actually named
46455     something starting with __ and the normal name is an alias.  */
46456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46457 choke me
46458 #else
46459 char (*f) () = $ac_func;
46460 #endif
46461 #ifdef __cplusplus
46462 }
46463 #endif
46464
46465 int
46466 main ()
46467 {
46468 return f != $ac_func;
46469   ;
46470   return 0;
46471 }
46472 _ACEOF
46473 rm -f conftest.$ac_objext conftest$ac_exeext
46474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46475   (eval $ac_link) 2>conftest.er1
46476   ac_status=$?
46477   grep -v '^ *+' conftest.er1 >conftest.err
46478   rm -f conftest.er1
46479   cat conftest.err >&5
46480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46481   (exit $ac_status); } &&
46482          { ac_try='test -z "$ac_c_werror_flag"
46483                          || test ! -s conftest.err'
46484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46485   (eval $ac_try) 2>&5
46486   ac_status=$?
46487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46488   (exit $ac_status); }; } &&
46489          { ac_try='test -s conftest$ac_exeext'
46490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46491   (eval $ac_try) 2>&5
46492   ac_status=$?
46493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46494   (exit $ac_status); }; }; then
46495   eval "$as_ac_var=yes"
46496 else
46497   echo "$as_me: failed program was:" >&5
46498 sed 's/^/| /' conftest.$ac_ext >&5
46499
46500 eval "$as_ac_var=no"
46501 fi
46502 rm -f conftest.err conftest.$ac_objext \
46503       conftest$ac_exeext conftest.$ac_ext
46504 fi
46505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46507 if test `eval echo '${'$as_ac_var'}'` = yes; then
46508   cat >>confdefs.h <<_ACEOF
46509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46510 _ACEOF
46511
46512 fi
46513 done
46514
46515     fi
46516   fi
46517
46518
46519
46520   echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
46521 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
46522   if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
46523     if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
46524   echo $ECHO_N "(cached) $ECHO_C" >&6
46525 else
46526
46527
46528
46529       ac_ext=cc
46530 ac_cpp='$CXXCPP $CPPFLAGS'
46531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46534
46535       cat >conftest.$ac_ext <<_ACEOF
46536 /* confdefs.h.  */
46537 _ACEOF
46538 cat confdefs.h >>conftest.$ac_ext
46539 cat >>conftest.$ac_ext <<_ACEOF
46540 /* end confdefs.h.  */
46541 #include <math.h>
46542                       #ifdef HAVE_IEEEFP_H
46543                       #include <ieeefp.h>
46544                       #endif
46545
46546 int
46547 main ()
46548 {
46549  sqrtl(0);
46550   ;
46551   return 0;
46552 }
46553 _ACEOF
46554 rm -f conftest.$ac_objext
46555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46556   (eval $ac_compile) 2>conftest.er1
46557   ac_status=$?
46558   grep -v '^ *+' conftest.er1 >conftest.err
46559   rm -f conftest.er1
46560   cat conftest.err >&5
46561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46562   (exit $ac_status); } &&
46563          { ac_try='test -z "$ac_cxx_werror_flag"
46564                          || test ! -s conftest.err'
46565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46566   (eval $ac_try) 2>&5
46567   ac_status=$?
46568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46569   (exit $ac_status); }; } &&
46570          { ac_try='test -s conftest.$ac_objext'
46571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46572   (eval $ac_try) 2>&5
46573   ac_status=$?
46574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46575   (exit $ac_status); }; }; then
46576   glibcxx_cv_func_sqrtl_use=yes
46577 else
46578   echo "$as_me: failed program was:" >&5
46579 sed 's/^/| /' conftest.$ac_ext >&5
46580
46581 glibcxx_cv_func_sqrtl_use=no
46582 fi
46583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46584       ac_ext=c
46585 ac_cpp='$CPP $CPPFLAGS'
46586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46589
46590
46591 fi
46592
46593   fi
46594   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
46595 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
46596
46597   if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
46598
46599 for ac_func in sqrtl
46600 do
46601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46602 echo "$as_me:$LINENO: checking for $ac_func" >&5
46603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46604 if eval "test \"\${$as_ac_var+set}\" = set"; then
46605   echo $ECHO_N "(cached) $ECHO_C" >&6
46606 else
46607   if test x$gcc_no_link = xyes; then
46608   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46609 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46610    { (exit 1); exit 1; }; }
46611 fi
46612 cat >conftest.$ac_ext <<_ACEOF
46613 /* confdefs.h.  */
46614 _ACEOF
46615 cat confdefs.h >>conftest.$ac_ext
46616 cat >>conftest.$ac_ext <<_ACEOF
46617 /* end confdefs.h.  */
46618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46620 #define $ac_func innocuous_$ac_func
46621
46622 /* System header to define __stub macros and hopefully few prototypes,
46623     which can conflict with char $ac_func (); below.
46624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46625     <limits.h> exists even on freestanding compilers.  */
46626
46627 #ifdef __STDC__
46628 # include <limits.h>
46629 #else
46630 # include <assert.h>
46631 #endif
46632
46633 #undef $ac_func
46634
46635 /* Override any gcc2 internal prototype to avoid an error.  */
46636 #ifdef __cplusplus
46637 extern "C"
46638 {
46639 #endif
46640 /* We use char because int might match the return type of a gcc2
46641    builtin and then its argument prototype would still apply.  */
46642 char $ac_func ();
46643 /* The GNU C library defines this for functions which it implements
46644     to always fail with ENOSYS.  Some functions are actually named
46645     something starting with __ and the normal name is an alias.  */
46646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46647 choke me
46648 #else
46649 char (*f) () = $ac_func;
46650 #endif
46651 #ifdef __cplusplus
46652 }
46653 #endif
46654
46655 int
46656 main ()
46657 {
46658 return f != $ac_func;
46659   ;
46660   return 0;
46661 }
46662 _ACEOF
46663 rm -f conftest.$ac_objext conftest$ac_exeext
46664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46665   (eval $ac_link) 2>conftest.er1
46666   ac_status=$?
46667   grep -v '^ *+' conftest.er1 >conftest.err
46668   rm -f conftest.er1
46669   cat conftest.err >&5
46670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46671   (exit $ac_status); } &&
46672          { ac_try='test -z "$ac_c_werror_flag"
46673                          || test ! -s conftest.err'
46674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46675   (eval $ac_try) 2>&5
46676   ac_status=$?
46677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46678   (exit $ac_status); }; } &&
46679          { ac_try='test -s conftest$ac_exeext'
46680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46681   (eval $ac_try) 2>&5
46682   ac_status=$?
46683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46684   (exit $ac_status); }; }; then
46685   eval "$as_ac_var=yes"
46686 else
46687   echo "$as_me: failed program was:" >&5
46688 sed 's/^/| /' conftest.$ac_ext >&5
46689
46690 eval "$as_ac_var=no"
46691 fi
46692 rm -f conftest.err conftest.$ac_objext \
46693       conftest$ac_exeext conftest.$ac_ext
46694 fi
46695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46697 if test `eval echo '${'$as_ac_var'}'` = yes; then
46698   cat >>confdefs.h <<_ACEOF
46699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46700 _ACEOF
46701
46702 fi
46703 done
46704
46705   else
46706
46707   echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
46708 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
46709   if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
46710     if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
46711   echo $ECHO_N "(cached) $ECHO_C" >&6
46712 else
46713
46714
46715
46716       ac_ext=cc
46717 ac_cpp='$CXXCPP $CPPFLAGS'
46718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46721
46722       cat >conftest.$ac_ext <<_ACEOF
46723 /* confdefs.h.  */
46724 _ACEOF
46725 cat confdefs.h >>conftest.$ac_ext
46726 cat >>conftest.$ac_ext <<_ACEOF
46727 /* end confdefs.h.  */
46728 #include <math.h>
46729                       #ifdef HAVE_IEEEFP_H
46730                       #include <ieeefp.h>
46731                       #endif
46732
46733 int
46734 main ()
46735 {
46736  _sqrtl(0);
46737   ;
46738   return 0;
46739 }
46740 _ACEOF
46741 rm -f conftest.$ac_objext
46742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46743   (eval $ac_compile) 2>conftest.er1
46744   ac_status=$?
46745   grep -v '^ *+' conftest.er1 >conftest.err
46746   rm -f conftest.er1
46747   cat conftest.err >&5
46748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46749   (exit $ac_status); } &&
46750          { ac_try='test -z "$ac_cxx_werror_flag"
46751                          || test ! -s conftest.err'
46752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46753   (eval $ac_try) 2>&5
46754   ac_status=$?
46755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46756   (exit $ac_status); }; } &&
46757          { ac_try='test -s conftest.$ac_objext'
46758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46759   (eval $ac_try) 2>&5
46760   ac_status=$?
46761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46762   (exit $ac_status); }; }; then
46763   glibcxx_cv_func__sqrtl_use=yes
46764 else
46765   echo "$as_me: failed program was:" >&5
46766 sed 's/^/| /' conftest.$ac_ext >&5
46767
46768 glibcxx_cv_func__sqrtl_use=no
46769 fi
46770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46771       ac_ext=c
46772 ac_cpp='$CPP $CPPFLAGS'
46773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46776
46777
46778 fi
46779
46780   fi
46781   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
46782 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
46783
46784     if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
46785
46786 for ac_func in _sqrtl
46787 do
46788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46789 echo "$as_me:$LINENO: checking for $ac_func" >&5
46790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46791 if eval "test \"\${$as_ac_var+set}\" = set"; then
46792   echo $ECHO_N "(cached) $ECHO_C" >&6
46793 else
46794   if test x$gcc_no_link = xyes; then
46795   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46797    { (exit 1); exit 1; }; }
46798 fi
46799 cat >conftest.$ac_ext <<_ACEOF
46800 /* confdefs.h.  */
46801 _ACEOF
46802 cat confdefs.h >>conftest.$ac_ext
46803 cat >>conftest.$ac_ext <<_ACEOF
46804 /* end confdefs.h.  */
46805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46807 #define $ac_func innocuous_$ac_func
46808
46809 /* System header to define __stub macros and hopefully few prototypes,
46810     which can conflict with char $ac_func (); below.
46811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46812     <limits.h> exists even on freestanding compilers.  */
46813
46814 #ifdef __STDC__
46815 # include <limits.h>
46816 #else
46817 # include <assert.h>
46818 #endif
46819
46820 #undef $ac_func
46821
46822 /* Override any gcc2 internal prototype to avoid an error.  */
46823 #ifdef __cplusplus
46824 extern "C"
46825 {
46826 #endif
46827 /* We use char because int might match the return type of a gcc2
46828    builtin and then its argument prototype would still apply.  */
46829 char $ac_func ();
46830 /* The GNU C library defines this for functions which it implements
46831     to always fail with ENOSYS.  Some functions are actually named
46832     something starting with __ and the normal name is an alias.  */
46833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46834 choke me
46835 #else
46836 char (*f) () = $ac_func;
46837 #endif
46838 #ifdef __cplusplus
46839 }
46840 #endif
46841
46842 int
46843 main ()
46844 {
46845 return f != $ac_func;
46846   ;
46847   return 0;
46848 }
46849 _ACEOF
46850 rm -f conftest.$ac_objext conftest$ac_exeext
46851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46852   (eval $ac_link) 2>conftest.er1
46853   ac_status=$?
46854   grep -v '^ *+' conftest.er1 >conftest.err
46855   rm -f conftest.er1
46856   cat conftest.err >&5
46857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46858   (exit $ac_status); } &&
46859          { ac_try='test -z "$ac_c_werror_flag"
46860                          || test ! -s conftest.err'
46861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46862   (eval $ac_try) 2>&5
46863   ac_status=$?
46864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46865   (exit $ac_status); }; } &&
46866          { ac_try='test -s conftest$ac_exeext'
46867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46868   (eval $ac_try) 2>&5
46869   ac_status=$?
46870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46871   (exit $ac_status); }; }; then
46872   eval "$as_ac_var=yes"
46873 else
46874   echo "$as_me: failed program was:" >&5
46875 sed 's/^/| /' conftest.$ac_ext >&5
46876
46877 eval "$as_ac_var=no"
46878 fi
46879 rm -f conftest.err conftest.$ac_objext \
46880       conftest$ac_exeext conftest.$ac_ext
46881 fi
46882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46884 if test `eval echo '${'$as_ac_var'}'` = yes; then
46885   cat >>confdefs.h <<_ACEOF
46886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46887 _ACEOF
46888
46889 fi
46890 done
46891
46892     fi
46893   fi
46894
46895
46896
46897   echo "$as_me:$LINENO: checking for sincosl declaration" >&5
46898 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
46899   if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
46900     if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
46901   echo $ECHO_N "(cached) $ECHO_C" >&6
46902 else
46903
46904
46905
46906       ac_ext=cc
46907 ac_cpp='$CXXCPP $CPPFLAGS'
46908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46911
46912       cat >conftest.$ac_ext <<_ACEOF
46913 /* confdefs.h.  */
46914 _ACEOF
46915 cat confdefs.h >>conftest.$ac_ext
46916 cat >>conftest.$ac_ext <<_ACEOF
46917 /* end confdefs.h.  */
46918 #include <math.h>
46919 int
46920 main ()
46921 {
46922  sincosl(0, 0, 0);
46923   ;
46924   return 0;
46925 }
46926 _ACEOF
46927 rm -f conftest.$ac_objext
46928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46929   (eval $ac_compile) 2>conftest.er1
46930   ac_status=$?
46931   grep -v '^ *+' conftest.er1 >conftest.err
46932   rm -f conftest.er1
46933   cat conftest.err >&5
46934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46935   (exit $ac_status); } &&
46936          { ac_try='test -z "$ac_cxx_werror_flag"
46937                          || test ! -s conftest.err'
46938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46939   (eval $ac_try) 2>&5
46940   ac_status=$?
46941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46942   (exit $ac_status); }; } &&
46943          { ac_try='test -s conftest.$ac_objext'
46944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46945   (eval $ac_try) 2>&5
46946   ac_status=$?
46947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46948   (exit $ac_status); }; }; then
46949   glibcxx_cv_func_sincosl_use=yes
46950 else
46951   echo "$as_me: failed program was:" >&5
46952 sed 's/^/| /' conftest.$ac_ext >&5
46953
46954 glibcxx_cv_func_sincosl_use=no
46955 fi
46956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46957       ac_ext=c
46958 ac_cpp='$CPP $CPPFLAGS'
46959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46962
46963
46964 fi
46965
46966   fi
46967   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
46968 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
46969
46970   if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
46971
46972 for ac_func in sincosl
46973 do
46974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46975 echo "$as_me:$LINENO: checking for $ac_func" >&5
46976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46977 if eval "test \"\${$as_ac_var+set}\" = set"; then
46978   echo $ECHO_N "(cached) $ECHO_C" >&6
46979 else
46980   if test x$gcc_no_link = xyes; then
46981   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46983    { (exit 1); exit 1; }; }
46984 fi
46985 cat >conftest.$ac_ext <<_ACEOF
46986 /* confdefs.h.  */
46987 _ACEOF
46988 cat confdefs.h >>conftest.$ac_ext
46989 cat >>conftest.$ac_ext <<_ACEOF
46990 /* end confdefs.h.  */
46991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46993 #define $ac_func innocuous_$ac_func
46994
46995 /* System header to define __stub macros and hopefully few prototypes,
46996     which can conflict with char $ac_func (); below.
46997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46998     <limits.h> exists even on freestanding compilers.  */
46999
47000 #ifdef __STDC__
47001 # include <limits.h>
47002 #else
47003 # include <assert.h>
47004 #endif
47005
47006 #undef $ac_func
47007
47008 /* Override any gcc2 internal prototype to avoid an error.  */
47009 #ifdef __cplusplus
47010 extern "C"
47011 {
47012 #endif
47013 /* We use char because int might match the return type of a gcc2
47014    builtin and then its argument prototype would still apply.  */
47015 char $ac_func ();
47016 /* The GNU C library defines this for functions which it implements
47017     to always fail with ENOSYS.  Some functions are actually named
47018     something starting with __ and the normal name is an alias.  */
47019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47020 choke me
47021 #else
47022 char (*f) () = $ac_func;
47023 #endif
47024 #ifdef __cplusplus
47025 }
47026 #endif
47027
47028 int
47029 main ()
47030 {
47031 return f != $ac_func;
47032   ;
47033   return 0;
47034 }
47035 _ACEOF
47036 rm -f conftest.$ac_objext conftest$ac_exeext
47037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47038   (eval $ac_link) 2>conftest.er1
47039   ac_status=$?
47040   grep -v '^ *+' conftest.er1 >conftest.err
47041   rm -f conftest.er1
47042   cat conftest.err >&5
47043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47044   (exit $ac_status); } &&
47045          { ac_try='test -z "$ac_c_werror_flag"
47046                          || test ! -s conftest.err'
47047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47048   (eval $ac_try) 2>&5
47049   ac_status=$?
47050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47051   (exit $ac_status); }; } &&
47052          { ac_try='test -s conftest$ac_exeext'
47053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47054   (eval $ac_try) 2>&5
47055   ac_status=$?
47056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47057   (exit $ac_status); }; }; then
47058   eval "$as_ac_var=yes"
47059 else
47060   echo "$as_me: failed program was:" >&5
47061 sed 's/^/| /' conftest.$ac_ext >&5
47062
47063 eval "$as_ac_var=no"
47064 fi
47065 rm -f conftest.err conftest.$ac_objext \
47066       conftest$ac_exeext conftest.$ac_ext
47067 fi
47068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47070 if test `eval echo '${'$as_ac_var'}'` = yes; then
47071   cat >>confdefs.h <<_ACEOF
47072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47073 _ACEOF
47074
47075 fi
47076 done
47077
47078   else
47079
47080   echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
47081 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
47082   if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
47083     if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
47084   echo $ECHO_N "(cached) $ECHO_C" >&6
47085 else
47086
47087
47088
47089       ac_ext=cc
47090 ac_cpp='$CXXCPP $CPPFLAGS'
47091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47094
47095       cat >conftest.$ac_ext <<_ACEOF
47096 /* confdefs.h.  */
47097 _ACEOF
47098 cat confdefs.h >>conftest.$ac_ext
47099 cat >>conftest.$ac_ext <<_ACEOF
47100 /* end confdefs.h.  */
47101 #include <math.h>
47102 int
47103 main ()
47104 {
47105  _sincosl(0, 0, 0);
47106   ;
47107   return 0;
47108 }
47109 _ACEOF
47110 rm -f conftest.$ac_objext
47111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47112   (eval $ac_compile) 2>conftest.er1
47113   ac_status=$?
47114   grep -v '^ *+' conftest.er1 >conftest.err
47115   rm -f conftest.er1
47116   cat conftest.err >&5
47117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47118   (exit $ac_status); } &&
47119          { ac_try='test -z "$ac_cxx_werror_flag"
47120                          || test ! -s conftest.err'
47121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47122   (eval $ac_try) 2>&5
47123   ac_status=$?
47124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47125   (exit $ac_status); }; } &&
47126          { ac_try='test -s conftest.$ac_objext'
47127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47128   (eval $ac_try) 2>&5
47129   ac_status=$?
47130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47131   (exit $ac_status); }; }; then
47132   glibcxx_cv_func__sincosl_use=yes
47133 else
47134   echo "$as_me: failed program was:" >&5
47135 sed 's/^/| /' conftest.$ac_ext >&5
47136
47137 glibcxx_cv_func__sincosl_use=no
47138 fi
47139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47140       ac_ext=c
47141 ac_cpp='$CPP $CPPFLAGS'
47142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47145
47146
47147 fi
47148
47149   fi
47150   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
47151 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
47152
47153     if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
47154
47155 for ac_func in _sincosl
47156 do
47157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47158 echo "$as_me:$LINENO: checking for $ac_func" >&5
47159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47160 if eval "test \"\${$as_ac_var+set}\" = set"; then
47161   echo $ECHO_N "(cached) $ECHO_C" >&6
47162 else
47163   if test x$gcc_no_link = xyes; then
47164   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47165 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47166    { (exit 1); exit 1; }; }
47167 fi
47168 cat >conftest.$ac_ext <<_ACEOF
47169 /* confdefs.h.  */
47170 _ACEOF
47171 cat confdefs.h >>conftest.$ac_ext
47172 cat >>conftest.$ac_ext <<_ACEOF
47173 /* end confdefs.h.  */
47174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47176 #define $ac_func innocuous_$ac_func
47177
47178 /* System header to define __stub macros and hopefully few prototypes,
47179     which can conflict with char $ac_func (); below.
47180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47181     <limits.h> exists even on freestanding compilers.  */
47182
47183 #ifdef __STDC__
47184 # include <limits.h>
47185 #else
47186 # include <assert.h>
47187 #endif
47188
47189 #undef $ac_func
47190
47191 /* Override any gcc2 internal prototype to avoid an error.  */
47192 #ifdef __cplusplus
47193 extern "C"
47194 {
47195 #endif
47196 /* We use char because int might match the return type of a gcc2
47197    builtin and then its argument prototype would still apply.  */
47198 char $ac_func ();
47199 /* The GNU C library defines this for functions which it implements
47200     to always fail with ENOSYS.  Some functions are actually named
47201     something starting with __ and the normal name is an alias.  */
47202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47203 choke me
47204 #else
47205 char (*f) () = $ac_func;
47206 #endif
47207 #ifdef __cplusplus
47208 }
47209 #endif
47210
47211 int
47212 main ()
47213 {
47214 return f != $ac_func;
47215   ;
47216   return 0;
47217 }
47218 _ACEOF
47219 rm -f conftest.$ac_objext conftest$ac_exeext
47220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47221   (eval $ac_link) 2>conftest.er1
47222   ac_status=$?
47223   grep -v '^ *+' conftest.er1 >conftest.err
47224   rm -f conftest.er1
47225   cat conftest.err >&5
47226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47227   (exit $ac_status); } &&
47228          { ac_try='test -z "$ac_c_werror_flag"
47229                          || test ! -s conftest.err'
47230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47231   (eval $ac_try) 2>&5
47232   ac_status=$?
47233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47234   (exit $ac_status); }; } &&
47235          { ac_try='test -s conftest$ac_exeext'
47236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47237   (eval $ac_try) 2>&5
47238   ac_status=$?
47239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47240   (exit $ac_status); }; }; then
47241   eval "$as_ac_var=yes"
47242 else
47243   echo "$as_me: failed program was:" >&5
47244 sed 's/^/| /' conftest.$ac_ext >&5
47245
47246 eval "$as_ac_var=no"
47247 fi
47248 rm -f conftest.err conftest.$ac_objext \
47249       conftest$ac_exeext conftest.$ac_ext
47250 fi
47251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47253 if test `eval echo '${'$as_ac_var'}'` = yes; then
47254   cat >>confdefs.h <<_ACEOF
47255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47256 _ACEOF
47257
47258 fi
47259 done
47260
47261     fi
47262   fi
47263
47264
47265
47266   echo "$as_me:$LINENO: checking for finitel declaration" >&5
47267 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
47268   if test x${glibcxx_cv_func_finitel_use+set} != xset; then
47269     if test "${glibcxx_cv_func_finitel_use+set}" = set; then
47270   echo $ECHO_N "(cached) $ECHO_C" >&6
47271 else
47272
47273
47274
47275       ac_ext=cc
47276 ac_cpp='$CXXCPP $CPPFLAGS'
47277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47280
47281       cat >conftest.$ac_ext <<_ACEOF
47282 /* confdefs.h.  */
47283 _ACEOF
47284 cat confdefs.h >>conftest.$ac_ext
47285 cat >>conftest.$ac_ext <<_ACEOF
47286 /* end confdefs.h.  */
47287 #include <math.h>
47288                       #ifdef HAVE_IEEEFP_H
47289                       #include <ieeefp.h>
47290                       #endif
47291
47292 int
47293 main ()
47294 {
47295  finitel(0);
47296   ;
47297   return 0;
47298 }
47299 _ACEOF
47300 rm -f conftest.$ac_objext
47301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47302   (eval $ac_compile) 2>conftest.er1
47303   ac_status=$?
47304   grep -v '^ *+' conftest.er1 >conftest.err
47305   rm -f conftest.er1
47306   cat conftest.err >&5
47307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47308   (exit $ac_status); } &&
47309          { ac_try='test -z "$ac_cxx_werror_flag"
47310                          || test ! -s conftest.err'
47311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47312   (eval $ac_try) 2>&5
47313   ac_status=$?
47314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47315   (exit $ac_status); }; } &&
47316          { ac_try='test -s conftest.$ac_objext'
47317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47318   (eval $ac_try) 2>&5
47319   ac_status=$?
47320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47321   (exit $ac_status); }; }; then
47322   glibcxx_cv_func_finitel_use=yes
47323 else
47324   echo "$as_me: failed program was:" >&5
47325 sed 's/^/| /' conftest.$ac_ext >&5
47326
47327 glibcxx_cv_func_finitel_use=no
47328 fi
47329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47330       ac_ext=c
47331 ac_cpp='$CPP $CPPFLAGS'
47332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47335
47336
47337 fi
47338
47339   fi
47340   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
47341 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
47342
47343   if test x$glibcxx_cv_func_finitel_use = x"yes"; then
47344
47345 for ac_func in finitel
47346 do
47347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47348 echo "$as_me:$LINENO: checking for $ac_func" >&5
47349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47350 if eval "test \"\${$as_ac_var+set}\" = set"; then
47351   echo $ECHO_N "(cached) $ECHO_C" >&6
47352 else
47353   if test x$gcc_no_link = xyes; then
47354   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47355 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47356    { (exit 1); exit 1; }; }
47357 fi
47358 cat >conftest.$ac_ext <<_ACEOF
47359 /* confdefs.h.  */
47360 _ACEOF
47361 cat confdefs.h >>conftest.$ac_ext
47362 cat >>conftest.$ac_ext <<_ACEOF
47363 /* end confdefs.h.  */
47364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47366 #define $ac_func innocuous_$ac_func
47367
47368 /* System header to define __stub macros and hopefully few prototypes,
47369     which can conflict with char $ac_func (); below.
47370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47371     <limits.h> exists even on freestanding compilers.  */
47372
47373 #ifdef __STDC__
47374 # include <limits.h>
47375 #else
47376 # include <assert.h>
47377 #endif
47378
47379 #undef $ac_func
47380
47381 /* Override any gcc2 internal prototype to avoid an error.  */
47382 #ifdef __cplusplus
47383 extern "C"
47384 {
47385 #endif
47386 /* We use char because int might match the return type of a gcc2
47387    builtin and then its argument prototype would still apply.  */
47388 char $ac_func ();
47389 /* The GNU C library defines this for functions which it implements
47390     to always fail with ENOSYS.  Some functions are actually named
47391     something starting with __ and the normal name is an alias.  */
47392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47393 choke me
47394 #else
47395 char (*f) () = $ac_func;
47396 #endif
47397 #ifdef __cplusplus
47398 }
47399 #endif
47400
47401 int
47402 main ()
47403 {
47404 return f != $ac_func;
47405   ;
47406   return 0;
47407 }
47408 _ACEOF
47409 rm -f conftest.$ac_objext conftest$ac_exeext
47410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47411   (eval $ac_link) 2>conftest.er1
47412   ac_status=$?
47413   grep -v '^ *+' conftest.er1 >conftest.err
47414   rm -f conftest.er1
47415   cat conftest.err >&5
47416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47417   (exit $ac_status); } &&
47418          { ac_try='test -z "$ac_c_werror_flag"
47419                          || test ! -s conftest.err'
47420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47421   (eval $ac_try) 2>&5
47422   ac_status=$?
47423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47424   (exit $ac_status); }; } &&
47425          { ac_try='test -s conftest$ac_exeext'
47426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47427   (eval $ac_try) 2>&5
47428   ac_status=$?
47429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47430   (exit $ac_status); }; }; then
47431   eval "$as_ac_var=yes"
47432 else
47433   echo "$as_me: failed program was:" >&5
47434 sed 's/^/| /' conftest.$ac_ext >&5
47435
47436 eval "$as_ac_var=no"
47437 fi
47438 rm -f conftest.err conftest.$ac_objext \
47439       conftest$ac_exeext conftest.$ac_ext
47440 fi
47441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47443 if test `eval echo '${'$as_ac_var'}'` = yes; then
47444   cat >>confdefs.h <<_ACEOF
47445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47446 _ACEOF
47447
47448 fi
47449 done
47450
47451   else
47452
47453   echo "$as_me:$LINENO: checking for _finitel declaration" >&5
47454 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
47455   if test x${glibcxx_cv_func__finitel_use+set} != xset; then
47456     if test "${glibcxx_cv_func__finitel_use+set}" = set; then
47457   echo $ECHO_N "(cached) $ECHO_C" >&6
47458 else
47459
47460
47461
47462       ac_ext=cc
47463 ac_cpp='$CXXCPP $CPPFLAGS'
47464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47467
47468       cat >conftest.$ac_ext <<_ACEOF
47469 /* confdefs.h.  */
47470 _ACEOF
47471 cat confdefs.h >>conftest.$ac_ext
47472 cat >>conftest.$ac_ext <<_ACEOF
47473 /* end confdefs.h.  */
47474 #include <math.h>
47475                       #ifdef HAVE_IEEEFP_H
47476                       #include <ieeefp.h>
47477                       #endif
47478
47479 int
47480 main ()
47481 {
47482  _finitel(0);
47483   ;
47484   return 0;
47485 }
47486 _ACEOF
47487 rm -f conftest.$ac_objext
47488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47489   (eval $ac_compile) 2>conftest.er1
47490   ac_status=$?
47491   grep -v '^ *+' conftest.er1 >conftest.err
47492   rm -f conftest.er1
47493   cat conftest.err >&5
47494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47495   (exit $ac_status); } &&
47496          { ac_try='test -z "$ac_cxx_werror_flag"
47497                          || test ! -s conftest.err'
47498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47499   (eval $ac_try) 2>&5
47500   ac_status=$?
47501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47502   (exit $ac_status); }; } &&
47503          { ac_try='test -s conftest.$ac_objext'
47504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47505   (eval $ac_try) 2>&5
47506   ac_status=$?
47507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47508   (exit $ac_status); }; }; then
47509   glibcxx_cv_func__finitel_use=yes
47510 else
47511   echo "$as_me: failed program was:" >&5
47512 sed 's/^/| /' conftest.$ac_ext >&5
47513
47514 glibcxx_cv_func__finitel_use=no
47515 fi
47516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47517       ac_ext=c
47518 ac_cpp='$CPP $CPPFLAGS'
47519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47522
47523
47524 fi
47525
47526   fi
47527   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
47528 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
47529
47530     if test x$glibcxx_cv_func__finitel_use = x"yes"; then
47531
47532 for ac_func in _finitel
47533 do
47534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47535 echo "$as_me:$LINENO: checking for $ac_func" >&5
47536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47537 if eval "test \"\${$as_ac_var+set}\" = set"; then
47538   echo $ECHO_N "(cached) $ECHO_C" >&6
47539 else
47540   if test x$gcc_no_link = xyes; then
47541   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47543    { (exit 1); exit 1; }; }
47544 fi
47545 cat >conftest.$ac_ext <<_ACEOF
47546 /* confdefs.h.  */
47547 _ACEOF
47548 cat confdefs.h >>conftest.$ac_ext
47549 cat >>conftest.$ac_ext <<_ACEOF
47550 /* end confdefs.h.  */
47551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47553 #define $ac_func innocuous_$ac_func
47554
47555 /* System header to define __stub macros and hopefully few prototypes,
47556     which can conflict with char $ac_func (); below.
47557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47558     <limits.h> exists even on freestanding compilers.  */
47559
47560 #ifdef __STDC__
47561 # include <limits.h>
47562 #else
47563 # include <assert.h>
47564 #endif
47565
47566 #undef $ac_func
47567
47568 /* Override any gcc2 internal prototype to avoid an error.  */
47569 #ifdef __cplusplus
47570 extern "C"
47571 {
47572 #endif
47573 /* We use char because int might match the return type of a gcc2
47574    builtin and then its argument prototype would still apply.  */
47575 char $ac_func ();
47576 /* The GNU C library defines this for functions which it implements
47577     to always fail with ENOSYS.  Some functions are actually named
47578     something starting with __ and the normal name is an alias.  */
47579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47580 choke me
47581 #else
47582 char (*f) () = $ac_func;
47583 #endif
47584 #ifdef __cplusplus
47585 }
47586 #endif
47587
47588 int
47589 main ()
47590 {
47591 return f != $ac_func;
47592   ;
47593   return 0;
47594 }
47595 _ACEOF
47596 rm -f conftest.$ac_objext conftest$ac_exeext
47597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47598   (eval $ac_link) 2>conftest.er1
47599   ac_status=$?
47600   grep -v '^ *+' conftest.er1 >conftest.err
47601   rm -f conftest.er1
47602   cat conftest.err >&5
47603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47604   (exit $ac_status); } &&
47605          { ac_try='test -z "$ac_c_werror_flag"
47606                          || test ! -s conftest.err'
47607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47608   (eval $ac_try) 2>&5
47609   ac_status=$?
47610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47611   (exit $ac_status); }; } &&
47612          { ac_try='test -s conftest$ac_exeext'
47613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47614   (eval $ac_try) 2>&5
47615   ac_status=$?
47616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47617   (exit $ac_status); }; }; then
47618   eval "$as_ac_var=yes"
47619 else
47620   echo "$as_me: failed program was:" >&5
47621 sed 's/^/| /' conftest.$ac_ext >&5
47622
47623 eval "$as_ac_var=no"
47624 fi
47625 rm -f conftest.err conftest.$ac_objext \
47626       conftest$ac_exeext conftest.$ac_ext
47627 fi
47628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47630 if test `eval echo '${'$as_ac_var'}'` = yes; then
47631   cat >>confdefs.h <<_ACEOF
47632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47633 _ACEOF
47634
47635 fi
47636 done
47637
47638     fi
47639   fi
47640
47641
47642
47643
47644   echo "$as_me:$LINENO: checking for _float trig functions" >&5
47645 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
47646   if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
47647   echo $ECHO_N "(cached) $ECHO_C" >&6
47648 else
47649
47650
47651
47652     ac_ext=cc
47653 ac_cpp='$CXXCPP $CPPFLAGS'
47654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47657
47658     cat >conftest.$ac_ext <<_ACEOF
47659 /* confdefs.h.  */
47660 _ACEOF
47661 cat confdefs.h >>conftest.$ac_ext
47662 cat >>conftest.$ac_ext <<_ACEOF
47663 /* end confdefs.h.  */
47664 #include <math.h>
47665 int
47666 main ()
47667 {
47668  `for x in _acosf _asinf _atanf \
47669                                           _cosf _sinf _tanf \
47670                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done`
47671   ;
47672   return 0;
47673 }
47674 _ACEOF
47675 rm -f conftest.$ac_objext
47676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47677   (eval $ac_compile) 2>conftest.er1
47678   ac_status=$?
47679   grep -v '^ *+' conftest.er1 >conftest.err
47680   rm -f conftest.er1
47681   cat conftest.err >&5
47682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47683   (exit $ac_status); } &&
47684          { ac_try='test -z "$ac_cxx_werror_flag"
47685                          || test ! -s conftest.err'
47686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47687   (eval $ac_try) 2>&5
47688   ac_status=$?
47689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47690   (exit $ac_status); }; } &&
47691          { ac_try='test -s conftest.$ac_objext'
47692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47693   (eval $ac_try) 2>&5
47694   ac_status=$?
47695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47696   (exit $ac_status); }; }; then
47697   glibcxx_cv_func__float_trig_use=yes
47698 else
47699   echo "$as_me: failed program was:" >&5
47700 sed 's/^/| /' conftest.$ac_ext >&5
47701
47702 glibcxx_cv_func__float_trig_use=no
47703 fi
47704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47705     ac_ext=c
47706 ac_cpp='$CPP $CPPFLAGS'
47707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47710
47711 fi
47712
47713   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
47714 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
47715   if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
47716
47717
47718
47719
47720
47721
47722
47723
47724
47725 for ac_func in _acosf _asinf _atanf \
47726                                           _cosf _sinf _tanf \
47727                                           _coshf _sinhf _tanhf
47728 do
47729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47730 echo "$as_me:$LINENO: checking for $ac_func" >&5
47731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47732 if eval "test \"\${$as_ac_var+set}\" = set"; then
47733   echo $ECHO_N "(cached) $ECHO_C" >&6
47734 else
47735   if test x$gcc_no_link = xyes; then
47736   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47738    { (exit 1); exit 1; }; }
47739 fi
47740 cat >conftest.$ac_ext <<_ACEOF
47741 /* confdefs.h.  */
47742 _ACEOF
47743 cat confdefs.h >>conftest.$ac_ext
47744 cat >>conftest.$ac_ext <<_ACEOF
47745 /* end confdefs.h.  */
47746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47748 #define $ac_func innocuous_$ac_func
47749
47750 /* System header to define __stub macros and hopefully few prototypes,
47751     which can conflict with char $ac_func (); below.
47752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47753     <limits.h> exists even on freestanding compilers.  */
47754
47755 #ifdef __STDC__
47756 # include <limits.h>
47757 #else
47758 # include <assert.h>
47759 #endif
47760
47761 #undef $ac_func
47762
47763 /* Override any gcc2 internal prototype to avoid an error.  */
47764 #ifdef __cplusplus
47765 extern "C"
47766 {
47767 #endif
47768 /* We use char because int might match the return type of a gcc2
47769    builtin and then its argument prototype would still apply.  */
47770 char $ac_func ();
47771 /* The GNU C library defines this for functions which it implements
47772     to always fail with ENOSYS.  Some functions are actually named
47773     something starting with __ and the normal name is an alias.  */
47774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47775 choke me
47776 #else
47777 char (*f) () = $ac_func;
47778 #endif
47779 #ifdef __cplusplus
47780 }
47781 #endif
47782
47783 int
47784 main ()
47785 {
47786 return f != $ac_func;
47787   ;
47788   return 0;
47789 }
47790 _ACEOF
47791 rm -f conftest.$ac_objext conftest$ac_exeext
47792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47793   (eval $ac_link) 2>conftest.er1
47794   ac_status=$?
47795   grep -v '^ *+' conftest.er1 >conftest.err
47796   rm -f conftest.er1
47797   cat conftest.err >&5
47798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47799   (exit $ac_status); } &&
47800          { ac_try='test -z "$ac_c_werror_flag"
47801                          || test ! -s conftest.err'
47802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47803   (eval $ac_try) 2>&5
47804   ac_status=$?
47805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47806   (exit $ac_status); }; } &&
47807          { ac_try='test -s conftest$ac_exeext'
47808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47809   (eval $ac_try) 2>&5
47810   ac_status=$?
47811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47812   (exit $ac_status); }; }; then
47813   eval "$as_ac_var=yes"
47814 else
47815   echo "$as_me: failed program was:" >&5
47816 sed 's/^/| /' conftest.$ac_ext >&5
47817
47818 eval "$as_ac_var=no"
47819 fi
47820 rm -f conftest.err conftest.$ac_objext \
47821       conftest$ac_exeext conftest.$ac_ext
47822 fi
47823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47825 if test `eval echo '${'$as_ac_var'}'` = yes; then
47826   cat >>confdefs.h <<_ACEOF
47827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47828 _ACEOF
47829
47830 fi
47831 done
47832
47833   fi
47834
47835
47836   echo "$as_me:$LINENO: checking for _float round functions" >&5
47837 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
47838   if test "${glibcxx_cv_func__float_round_use+set}" = set; then
47839   echo $ECHO_N "(cached) $ECHO_C" >&6
47840 else
47841
47842
47843
47844     ac_ext=cc
47845 ac_cpp='$CXXCPP $CPPFLAGS'
47846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47849
47850     cat >conftest.$ac_ext <<_ACEOF
47851 /* confdefs.h.  */
47852 _ACEOF
47853 cat confdefs.h >>conftest.$ac_ext
47854 cat >>conftest.$ac_ext <<_ACEOF
47855 /* end confdefs.h.  */
47856 #include <math.h>
47857 int
47858 main ()
47859 {
47860  `for x in _ceilf _floorf; do echo "$x (0);"; done`
47861   ;
47862   return 0;
47863 }
47864 _ACEOF
47865 rm -f conftest.$ac_objext
47866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47867   (eval $ac_compile) 2>conftest.er1
47868   ac_status=$?
47869   grep -v '^ *+' conftest.er1 >conftest.err
47870   rm -f conftest.er1
47871   cat conftest.err >&5
47872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47873   (exit $ac_status); } &&
47874          { ac_try='test -z "$ac_cxx_werror_flag"
47875                          || test ! -s conftest.err'
47876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47877   (eval $ac_try) 2>&5
47878   ac_status=$?
47879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47880   (exit $ac_status); }; } &&
47881          { ac_try='test -s conftest.$ac_objext'
47882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47883   (eval $ac_try) 2>&5
47884   ac_status=$?
47885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47886   (exit $ac_status); }; }; then
47887   glibcxx_cv_func__float_round_use=yes
47888 else
47889   echo "$as_me: failed program was:" >&5
47890 sed 's/^/| /' conftest.$ac_ext >&5
47891
47892 glibcxx_cv_func__float_round_use=no
47893 fi
47894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47895     ac_ext=c
47896 ac_cpp='$CPP $CPPFLAGS'
47897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47900
47901 fi
47902
47903   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
47904 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
47905   if test x$glibcxx_cv_func__float_round_use = x"yes"; then
47906
47907
47908 for ac_func in _ceilf _floorf
47909 do
47910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47911 echo "$as_me:$LINENO: checking for $ac_func" >&5
47912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47913 if eval "test \"\${$as_ac_var+set}\" = set"; then
47914   echo $ECHO_N "(cached) $ECHO_C" >&6
47915 else
47916   if test x$gcc_no_link = xyes; then
47917   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47919    { (exit 1); exit 1; }; }
47920 fi
47921 cat >conftest.$ac_ext <<_ACEOF
47922 /* confdefs.h.  */
47923 _ACEOF
47924 cat confdefs.h >>conftest.$ac_ext
47925 cat >>conftest.$ac_ext <<_ACEOF
47926 /* end confdefs.h.  */
47927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47929 #define $ac_func innocuous_$ac_func
47930
47931 /* System header to define __stub macros and hopefully few prototypes,
47932     which can conflict with char $ac_func (); below.
47933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47934     <limits.h> exists even on freestanding compilers.  */
47935
47936 #ifdef __STDC__
47937 # include <limits.h>
47938 #else
47939 # include <assert.h>
47940 #endif
47941
47942 #undef $ac_func
47943
47944 /* Override any gcc2 internal prototype to avoid an error.  */
47945 #ifdef __cplusplus
47946 extern "C"
47947 {
47948 #endif
47949 /* We use char because int might match the return type of a gcc2
47950    builtin and then its argument prototype would still apply.  */
47951 char $ac_func ();
47952 /* The GNU C library defines this for functions which it implements
47953     to always fail with ENOSYS.  Some functions are actually named
47954     something starting with __ and the normal name is an alias.  */
47955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47956 choke me
47957 #else
47958 char (*f) () = $ac_func;
47959 #endif
47960 #ifdef __cplusplus
47961 }
47962 #endif
47963
47964 int
47965 main ()
47966 {
47967 return f != $ac_func;
47968   ;
47969   return 0;
47970 }
47971 _ACEOF
47972 rm -f conftest.$ac_objext conftest$ac_exeext
47973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47974   (eval $ac_link) 2>conftest.er1
47975   ac_status=$?
47976   grep -v '^ *+' conftest.er1 >conftest.err
47977   rm -f conftest.er1
47978   cat conftest.err >&5
47979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47980   (exit $ac_status); } &&
47981          { ac_try='test -z "$ac_c_werror_flag"
47982                          || test ! -s conftest.err'
47983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47984   (eval $ac_try) 2>&5
47985   ac_status=$?
47986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47987   (exit $ac_status); }; } &&
47988          { ac_try='test -s conftest$ac_exeext'
47989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47990   (eval $ac_try) 2>&5
47991   ac_status=$?
47992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47993   (exit $ac_status); }; }; then
47994   eval "$as_ac_var=yes"
47995 else
47996   echo "$as_me: failed program was:" >&5
47997 sed 's/^/| /' conftest.$ac_ext >&5
47998
47999 eval "$as_ac_var=no"
48000 fi
48001 rm -f conftest.err conftest.$ac_objext \
48002       conftest$ac_exeext conftest.$ac_ext
48003 fi
48004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48006 if test `eval echo '${'$as_ac_var'}'` = yes; then
48007   cat >>confdefs.h <<_ACEOF
48008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48009 _ACEOF
48010
48011 fi
48012 done
48013
48014   fi
48015
48016
48017
48018   echo "$as_me:$LINENO: checking for _long double trig functions" >&5
48019 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
48020   if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
48021   echo $ECHO_N "(cached) $ECHO_C" >&6
48022 else
48023
48024
48025
48026     ac_ext=cc
48027 ac_cpp='$CXXCPP $CPPFLAGS'
48028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48031
48032     cat >conftest.$ac_ext <<_ACEOF
48033 /* confdefs.h.  */
48034 _ACEOF
48035 cat confdefs.h >>conftest.$ac_ext
48036 cat >>conftest.$ac_ext <<_ACEOF
48037 /* end confdefs.h.  */
48038 #include <math.h>
48039 int
48040 main ()
48041 {
48042  `for x in _acosl _asinl _atanl \
48043                                           _cosl _sinl _tanl \
48044                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done`
48045   ;
48046   return 0;
48047 }
48048 _ACEOF
48049 rm -f conftest.$ac_objext
48050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48051   (eval $ac_compile) 2>conftest.er1
48052   ac_status=$?
48053   grep -v '^ *+' conftest.er1 >conftest.err
48054   rm -f conftest.er1
48055   cat conftest.err >&5
48056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48057   (exit $ac_status); } &&
48058          { ac_try='test -z "$ac_cxx_werror_flag"
48059                          || test ! -s conftest.err'
48060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48061   (eval $ac_try) 2>&5
48062   ac_status=$?
48063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48064   (exit $ac_status); }; } &&
48065          { ac_try='test -s conftest.$ac_objext'
48066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48067   (eval $ac_try) 2>&5
48068   ac_status=$?
48069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48070   (exit $ac_status); }; }; then
48071   glibcxx_cv_func__long_double_trig_use=yes
48072 else
48073   echo "$as_me: failed program was:" >&5
48074 sed 's/^/| /' conftest.$ac_ext >&5
48075
48076 glibcxx_cv_func__long_double_trig_use=no
48077 fi
48078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48079     ac_ext=c
48080 ac_cpp='$CPP $CPPFLAGS'
48081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48084
48085 fi
48086
48087   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
48088 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
48089   if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
48090
48091
48092
48093
48094
48095
48096
48097
48098
48099 for ac_func in _acosl _asinl _atanl \
48100                                           _cosl _sinl _tanl \
48101                                           _coshl _sinhl _tanhl
48102 do
48103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48104 echo "$as_me:$LINENO: checking for $ac_func" >&5
48105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48106 if eval "test \"\${$as_ac_var+set}\" = set"; then
48107   echo $ECHO_N "(cached) $ECHO_C" >&6
48108 else
48109   if test x$gcc_no_link = xyes; then
48110   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48112    { (exit 1); exit 1; }; }
48113 fi
48114 cat >conftest.$ac_ext <<_ACEOF
48115 /* confdefs.h.  */
48116 _ACEOF
48117 cat confdefs.h >>conftest.$ac_ext
48118 cat >>conftest.$ac_ext <<_ACEOF
48119 /* end confdefs.h.  */
48120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48122 #define $ac_func innocuous_$ac_func
48123
48124 /* System header to define __stub macros and hopefully few prototypes,
48125     which can conflict with char $ac_func (); below.
48126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48127     <limits.h> exists even on freestanding compilers.  */
48128
48129 #ifdef __STDC__
48130 # include <limits.h>
48131 #else
48132 # include <assert.h>
48133 #endif
48134
48135 #undef $ac_func
48136
48137 /* Override any gcc2 internal prototype to avoid an error.  */
48138 #ifdef __cplusplus
48139 extern "C"
48140 {
48141 #endif
48142 /* We use char because int might match the return type of a gcc2
48143    builtin and then its argument prototype would still apply.  */
48144 char $ac_func ();
48145 /* The GNU C library defines this for functions which it implements
48146     to always fail with ENOSYS.  Some functions are actually named
48147     something starting with __ and the normal name is an alias.  */
48148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48149 choke me
48150 #else
48151 char (*f) () = $ac_func;
48152 #endif
48153 #ifdef __cplusplus
48154 }
48155 #endif
48156
48157 int
48158 main ()
48159 {
48160 return f != $ac_func;
48161   ;
48162   return 0;
48163 }
48164 _ACEOF
48165 rm -f conftest.$ac_objext conftest$ac_exeext
48166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48167   (eval $ac_link) 2>conftest.er1
48168   ac_status=$?
48169   grep -v '^ *+' conftest.er1 >conftest.err
48170   rm -f conftest.er1
48171   cat conftest.err >&5
48172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48173   (exit $ac_status); } &&
48174          { ac_try='test -z "$ac_c_werror_flag"
48175                          || test ! -s conftest.err'
48176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48177   (eval $ac_try) 2>&5
48178   ac_status=$?
48179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180   (exit $ac_status); }; } &&
48181          { ac_try='test -s conftest$ac_exeext'
48182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48183   (eval $ac_try) 2>&5
48184   ac_status=$?
48185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48186   (exit $ac_status); }; }; then
48187   eval "$as_ac_var=yes"
48188 else
48189   echo "$as_me: failed program was:" >&5
48190 sed 's/^/| /' conftest.$ac_ext >&5
48191
48192 eval "$as_ac_var=no"
48193 fi
48194 rm -f conftest.err conftest.$ac_objext \
48195       conftest$ac_exeext conftest.$ac_ext
48196 fi
48197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48199 if test `eval echo '${'$as_ac_var'}'` = yes; then
48200   cat >>confdefs.h <<_ACEOF
48201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48202 _ACEOF
48203
48204 fi
48205 done
48206
48207   fi
48208
48209
48210   echo "$as_me:$LINENO: checking for _long double round functions" >&5
48211 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
48212   if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
48213   echo $ECHO_N "(cached) $ECHO_C" >&6
48214 else
48215
48216
48217
48218     ac_ext=cc
48219 ac_cpp='$CXXCPP $CPPFLAGS'
48220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48223
48224     cat >conftest.$ac_ext <<_ACEOF
48225 /* confdefs.h.  */
48226 _ACEOF
48227 cat confdefs.h >>conftest.$ac_ext
48228 cat >>conftest.$ac_ext <<_ACEOF
48229 /* end confdefs.h.  */
48230 #include <math.h>
48231 int
48232 main ()
48233 {
48234  `for x in _ceill _floorl; do echo "$x (0);"; done`
48235   ;
48236   return 0;
48237 }
48238 _ACEOF
48239 rm -f conftest.$ac_objext
48240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48241   (eval $ac_compile) 2>conftest.er1
48242   ac_status=$?
48243   grep -v '^ *+' conftest.er1 >conftest.err
48244   rm -f conftest.er1
48245   cat conftest.err >&5
48246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48247   (exit $ac_status); } &&
48248          { ac_try='test -z "$ac_cxx_werror_flag"
48249                          || test ! -s conftest.err'
48250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48251   (eval $ac_try) 2>&5
48252   ac_status=$?
48253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48254   (exit $ac_status); }; } &&
48255          { ac_try='test -s conftest.$ac_objext'
48256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48257   (eval $ac_try) 2>&5
48258   ac_status=$?
48259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48260   (exit $ac_status); }; }; then
48261   glibcxx_cv_func__long_double_round_use=yes
48262 else
48263   echo "$as_me: failed program was:" >&5
48264 sed 's/^/| /' conftest.$ac_ext >&5
48265
48266 glibcxx_cv_func__long_double_round_use=no
48267 fi
48268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48269     ac_ext=c
48270 ac_cpp='$CPP $CPPFLAGS'
48271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48274
48275 fi
48276
48277   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
48278 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
48279   if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
48280
48281
48282 for ac_func in _ceill _floorl
48283 do
48284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48285 echo "$as_me:$LINENO: checking for $ac_func" >&5
48286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48287 if eval "test \"\${$as_ac_var+set}\" = set"; then
48288   echo $ECHO_N "(cached) $ECHO_C" >&6
48289 else
48290   if test x$gcc_no_link = xyes; then
48291   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48293    { (exit 1); exit 1; }; }
48294 fi
48295 cat >conftest.$ac_ext <<_ACEOF
48296 /* confdefs.h.  */
48297 _ACEOF
48298 cat confdefs.h >>conftest.$ac_ext
48299 cat >>conftest.$ac_ext <<_ACEOF
48300 /* end confdefs.h.  */
48301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48303 #define $ac_func innocuous_$ac_func
48304
48305 /* System header to define __stub macros and hopefully few prototypes,
48306     which can conflict with char $ac_func (); below.
48307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48308     <limits.h> exists even on freestanding compilers.  */
48309
48310 #ifdef __STDC__
48311 # include <limits.h>
48312 #else
48313 # include <assert.h>
48314 #endif
48315
48316 #undef $ac_func
48317
48318 /* Override any gcc2 internal prototype to avoid an error.  */
48319 #ifdef __cplusplus
48320 extern "C"
48321 {
48322 #endif
48323 /* We use char because int might match the return type of a gcc2
48324    builtin and then its argument prototype would still apply.  */
48325 char $ac_func ();
48326 /* The GNU C library defines this for functions which it implements
48327     to always fail with ENOSYS.  Some functions are actually named
48328     something starting with __ and the normal name is an alias.  */
48329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48330 choke me
48331 #else
48332 char (*f) () = $ac_func;
48333 #endif
48334 #ifdef __cplusplus
48335 }
48336 #endif
48337
48338 int
48339 main ()
48340 {
48341 return f != $ac_func;
48342   ;
48343   return 0;
48344 }
48345 _ACEOF
48346 rm -f conftest.$ac_objext conftest$ac_exeext
48347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48348   (eval $ac_link) 2>conftest.er1
48349   ac_status=$?
48350   grep -v '^ *+' conftest.er1 >conftest.err
48351   rm -f conftest.er1
48352   cat conftest.err >&5
48353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48354   (exit $ac_status); } &&
48355          { ac_try='test -z "$ac_c_werror_flag"
48356                          || test ! -s conftest.err'
48357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48358   (eval $ac_try) 2>&5
48359   ac_status=$?
48360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48361   (exit $ac_status); }; } &&
48362          { ac_try='test -s conftest$ac_exeext'
48363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48364   (eval $ac_try) 2>&5
48365   ac_status=$?
48366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48367   (exit $ac_status); }; }; then
48368   eval "$as_ac_var=yes"
48369 else
48370   echo "$as_me: failed program was:" >&5
48371 sed 's/^/| /' conftest.$ac_ext >&5
48372
48373 eval "$as_ac_var=no"
48374 fi
48375 rm -f conftest.err conftest.$ac_objext \
48376       conftest$ac_exeext conftest.$ac_ext
48377 fi
48378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48380 if test `eval echo '${'$as_ac_var'}'` = yes; then
48381   cat >>confdefs.h <<_ACEOF
48382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48383 _ACEOF
48384
48385 fi
48386 done
48387
48388   fi
48389
48390
48391   LIBS="$ac_save_LIBS"
48392   CXXFLAGS="$ac_save_CXXFLAGS"
48393
48394
48395
48396   echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
48397 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
48398   if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
48399     if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
48400   echo $ECHO_N "(cached) $ECHO_C" >&6
48401 else
48402
48403
48404
48405       ac_ext=cc
48406 ac_cpp='$CXXCPP $CPPFLAGS'
48407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48410
48411       cat >conftest.$ac_ext <<_ACEOF
48412 /* confdefs.h.  */
48413 _ACEOF
48414 cat confdefs.h >>conftest.$ac_ext
48415 cat >>conftest.$ac_ext <<_ACEOF
48416 /* end confdefs.h.  */
48417 #include <math.h>
48418 int
48419 main ()
48420 {
48421  __builtin_abs(0);
48422   ;
48423   return 0;
48424 }
48425 _ACEOF
48426 rm -f conftest.$ac_objext
48427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48428   (eval $ac_compile) 2>conftest.er1
48429   ac_status=$?
48430   grep -v '^ *+' conftest.er1 >conftest.err
48431   rm -f conftest.er1
48432   cat conftest.err >&5
48433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48434   (exit $ac_status); } &&
48435          { ac_try='test -z "$ac_cxx_werror_flag"
48436                          || test ! -s conftest.err'
48437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48438   (eval $ac_try) 2>&5
48439   ac_status=$?
48440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48441   (exit $ac_status); }; } &&
48442          { ac_try='test -s conftest.$ac_objext'
48443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48444   (eval $ac_try) 2>&5
48445   ac_status=$?
48446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48447   (exit $ac_status); }; }; then
48448   glibcxx_cv_func___builtin_abs_use=yes
48449 else
48450   echo "$as_me: failed program was:" >&5
48451 sed 's/^/| /' conftest.$ac_ext >&5
48452
48453 glibcxx_cv_func___builtin_abs_use=no
48454 fi
48455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48456       ac_ext=c
48457 ac_cpp='$CPP $CPPFLAGS'
48458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48461
48462
48463 fi
48464
48465   fi
48466   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
48467 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
48468   if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
48469     echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
48470 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
48471     if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
48472       if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
48473   echo $ECHO_N "(cached) $ECHO_C" >&6
48474 else
48475
48476         if test x$gcc_no_link = xyes; then
48477   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48479    { (exit 1); exit 1; }; }
48480 fi
48481 cat >conftest.$ac_ext <<_ACEOF
48482 /* confdefs.h.  */
48483 _ACEOF
48484 cat confdefs.h >>conftest.$ac_ext
48485 cat >>conftest.$ac_ext <<_ACEOF
48486 /* end confdefs.h.  */
48487 #include <math.h>
48488 int
48489 main ()
48490 {
48491  __builtin_abs(0);
48492   ;
48493   return 0;
48494 }
48495 _ACEOF
48496 rm -f conftest.$ac_objext conftest$ac_exeext
48497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48498   (eval $ac_link) 2>conftest.er1
48499   ac_status=$?
48500   grep -v '^ *+' conftest.er1 >conftest.err
48501   rm -f conftest.er1
48502   cat conftest.err >&5
48503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48504   (exit $ac_status); } &&
48505          { ac_try='test -z "$ac_c_werror_flag"
48506                          || test ! -s conftest.err'
48507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48508   (eval $ac_try) 2>&5
48509   ac_status=$?
48510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48511   (exit $ac_status); }; } &&
48512          { ac_try='test -s conftest$ac_exeext'
48513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48514   (eval $ac_try) 2>&5
48515   ac_status=$?
48516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48517   (exit $ac_status); }; }; then
48518   glibcxx_cv_func___builtin_abs_link=yes
48519 else
48520   echo "$as_me: failed program was:" >&5
48521 sed 's/^/| /' conftest.$ac_ext >&5
48522
48523 glibcxx_cv_func___builtin_abs_link=no
48524 fi
48525 rm -f conftest.err conftest.$ac_objext \
48526       conftest$ac_exeext conftest.$ac_ext
48527
48528 fi
48529
48530     fi
48531     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
48532 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
48533     if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
48534       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48535       cat >>confdefs.h <<_ACEOF
48536 #define ${ac_tr_func} 1
48537 _ACEOF
48538
48539     fi
48540   fi
48541
48542
48543   echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
48544 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
48545   if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
48546     if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
48547   echo $ECHO_N "(cached) $ECHO_C" >&6
48548 else
48549
48550
48551
48552       ac_ext=cc
48553 ac_cpp='$CXXCPP $CPPFLAGS'
48554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48557
48558       cat >conftest.$ac_ext <<_ACEOF
48559 /* confdefs.h.  */
48560 _ACEOF
48561 cat confdefs.h >>conftest.$ac_ext
48562 cat >>conftest.$ac_ext <<_ACEOF
48563 /* end confdefs.h.  */
48564 #include <math.h>
48565 int
48566 main ()
48567 {
48568  __builtin_fabsf(0);
48569   ;
48570   return 0;
48571 }
48572 _ACEOF
48573 rm -f conftest.$ac_objext
48574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48575   (eval $ac_compile) 2>conftest.er1
48576   ac_status=$?
48577   grep -v '^ *+' conftest.er1 >conftest.err
48578   rm -f conftest.er1
48579   cat conftest.err >&5
48580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48581   (exit $ac_status); } &&
48582          { ac_try='test -z "$ac_cxx_werror_flag"
48583                          || test ! -s conftest.err'
48584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48585   (eval $ac_try) 2>&5
48586   ac_status=$?
48587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48588   (exit $ac_status); }; } &&
48589          { ac_try='test -s conftest.$ac_objext'
48590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48591   (eval $ac_try) 2>&5
48592   ac_status=$?
48593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48594   (exit $ac_status); }; }; then
48595   glibcxx_cv_func___builtin_fabsf_use=yes
48596 else
48597   echo "$as_me: failed program was:" >&5
48598 sed 's/^/| /' conftest.$ac_ext >&5
48599
48600 glibcxx_cv_func___builtin_fabsf_use=no
48601 fi
48602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48603       ac_ext=c
48604 ac_cpp='$CPP $CPPFLAGS'
48605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48608
48609
48610 fi
48611
48612   fi
48613   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
48614 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
48615   if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
48616     echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
48617 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
48618     if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
48619       if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
48620   echo $ECHO_N "(cached) $ECHO_C" >&6
48621 else
48622
48623         if test x$gcc_no_link = xyes; then
48624   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48626    { (exit 1); exit 1; }; }
48627 fi
48628 cat >conftest.$ac_ext <<_ACEOF
48629 /* confdefs.h.  */
48630 _ACEOF
48631 cat confdefs.h >>conftest.$ac_ext
48632 cat >>conftest.$ac_ext <<_ACEOF
48633 /* end confdefs.h.  */
48634 #include <math.h>
48635 int
48636 main ()
48637 {
48638  __builtin_fabsf(0);
48639   ;
48640   return 0;
48641 }
48642 _ACEOF
48643 rm -f conftest.$ac_objext conftest$ac_exeext
48644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48645   (eval $ac_link) 2>conftest.er1
48646   ac_status=$?
48647   grep -v '^ *+' conftest.er1 >conftest.err
48648   rm -f conftest.er1
48649   cat conftest.err >&5
48650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48651   (exit $ac_status); } &&
48652          { ac_try='test -z "$ac_c_werror_flag"
48653                          || test ! -s conftest.err'
48654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48655   (eval $ac_try) 2>&5
48656   ac_status=$?
48657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48658   (exit $ac_status); }; } &&
48659          { ac_try='test -s conftest$ac_exeext'
48660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48661   (eval $ac_try) 2>&5
48662   ac_status=$?
48663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48664   (exit $ac_status); }; }; then
48665   glibcxx_cv_func___builtin_fabsf_link=yes
48666 else
48667   echo "$as_me: failed program was:" >&5
48668 sed 's/^/| /' conftest.$ac_ext >&5
48669
48670 glibcxx_cv_func___builtin_fabsf_link=no
48671 fi
48672 rm -f conftest.err conftest.$ac_objext \
48673       conftest$ac_exeext conftest.$ac_ext
48674
48675 fi
48676
48677     fi
48678     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
48679 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
48680     if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
48681       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48682       cat >>confdefs.h <<_ACEOF
48683 #define ${ac_tr_func} 1
48684 _ACEOF
48685
48686     fi
48687   fi
48688
48689
48690   echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
48691 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
48692   if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
48693     if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
48694   echo $ECHO_N "(cached) $ECHO_C" >&6
48695 else
48696
48697
48698
48699       ac_ext=cc
48700 ac_cpp='$CXXCPP $CPPFLAGS'
48701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48704
48705       cat >conftest.$ac_ext <<_ACEOF
48706 /* confdefs.h.  */
48707 _ACEOF
48708 cat confdefs.h >>conftest.$ac_ext
48709 cat >>conftest.$ac_ext <<_ACEOF
48710 /* end confdefs.h.  */
48711 #include <math.h>
48712 int
48713 main ()
48714 {
48715  __builtin_fabs(0);
48716   ;
48717   return 0;
48718 }
48719 _ACEOF
48720 rm -f conftest.$ac_objext
48721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48722   (eval $ac_compile) 2>conftest.er1
48723   ac_status=$?
48724   grep -v '^ *+' conftest.er1 >conftest.err
48725   rm -f conftest.er1
48726   cat conftest.err >&5
48727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48728   (exit $ac_status); } &&
48729          { ac_try='test -z "$ac_cxx_werror_flag"
48730                          || test ! -s conftest.err'
48731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48732   (eval $ac_try) 2>&5
48733   ac_status=$?
48734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48735   (exit $ac_status); }; } &&
48736          { ac_try='test -s conftest.$ac_objext'
48737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48738   (eval $ac_try) 2>&5
48739   ac_status=$?
48740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48741   (exit $ac_status); }; }; then
48742   glibcxx_cv_func___builtin_fabs_use=yes
48743 else
48744   echo "$as_me: failed program was:" >&5
48745 sed 's/^/| /' conftest.$ac_ext >&5
48746
48747 glibcxx_cv_func___builtin_fabs_use=no
48748 fi
48749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48750       ac_ext=c
48751 ac_cpp='$CPP $CPPFLAGS'
48752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48755
48756
48757 fi
48758
48759   fi
48760   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
48761 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
48762   if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
48763     echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
48764 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
48765     if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
48766       if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
48767   echo $ECHO_N "(cached) $ECHO_C" >&6
48768 else
48769
48770         if test x$gcc_no_link = xyes; then
48771   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48773    { (exit 1); exit 1; }; }
48774 fi
48775 cat >conftest.$ac_ext <<_ACEOF
48776 /* confdefs.h.  */
48777 _ACEOF
48778 cat confdefs.h >>conftest.$ac_ext
48779 cat >>conftest.$ac_ext <<_ACEOF
48780 /* end confdefs.h.  */
48781 #include <math.h>
48782 int
48783 main ()
48784 {
48785  __builtin_fabs(0);
48786   ;
48787   return 0;
48788 }
48789 _ACEOF
48790 rm -f conftest.$ac_objext conftest$ac_exeext
48791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48792   (eval $ac_link) 2>conftest.er1
48793   ac_status=$?
48794   grep -v '^ *+' conftest.er1 >conftest.err
48795   rm -f conftest.er1
48796   cat conftest.err >&5
48797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48798   (exit $ac_status); } &&
48799          { ac_try='test -z "$ac_c_werror_flag"
48800                          || test ! -s conftest.err'
48801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48802   (eval $ac_try) 2>&5
48803   ac_status=$?
48804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48805   (exit $ac_status); }; } &&
48806          { ac_try='test -s conftest$ac_exeext'
48807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48808   (eval $ac_try) 2>&5
48809   ac_status=$?
48810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48811   (exit $ac_status); }; }; then
48812   glibcxx_cv_func___builtin_fabs_link=yes
48813 else
48814   echo "$as_me: failed program was:" >&5
48815 sed 's/^/| /' conftest.$ac_ext >&5
48816
48817 glibcxx_cv_func___builtin_fabs_link=no
48818 fi
48819 rm -f conftest.err conftest.$ac_objext \
48820       conftest$ac_exeext conftest.$ac_ext
48821
48822 fi
48823
48824     fi
48825     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
48826 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
48827     if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
48828       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48829       cat >>confdefs.h <<_ACEOF
48830 #define ${ac_tr_func} 1
48831 _ACEOF
48832
48833     fi
48834   fi
48835
48836
48837   echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
48838 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
48839   if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
48840     if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
48841   echo $ECHO_N "(cached) $ECHO_C" >&6
48842 else
48843
48844
48845
48846       ac_ext=cc
48847 ac_cpp='$CXXCPP $CPPFLAGS'
48848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48851
48852       cat >conftest.$ac_ext <<_ACEOF
48853 /* confdefs.h.  */
48854 _ACEOF
48855 cat confdefs.h >>conftest.$ac_ext
48856 cat >>conftest.$ac_ext <<_ACEOF
48857 /* end confdefs.h.  */
48858 #include <math.h>
48859 int
48860 main ()
48861 {
48862  __builtin_fabsl(0);
48863   ;
48864   return 0;
48865 }
48866 _ACEOF
48867 rm -f conftest.$ac_objext
48868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48869   (eval $ac_compile) 2>conftest.er1
48870   ac_status=$?
48871   grep -v '^ *+' conftest.er1 >conftest.err
48872   rm -f conftest.er1
48873   cat conftest.err >&5
48874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48875   (exit $ac_status); } &&
48876          { ac_try='test -z "$ac_cxx_werror_flag"
48877                          || test ! -s conftest.err'
48878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48879   (eval $ac_try) 2>&5
48880   ac_status=$?
48881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48882   (exit $ac_status); }; } &&
48883          { ac_try='test -s conftest.$ac_objext'
48884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48885   (eval $ac_try) 2>&5
48886   ac_status=$?
48887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48888   (exit $ac_status); }; }; then
48889   glibcxx_cv_func___builtin_fabsl_use=yes
48890 else
48891   echo "$as_me: failed program was:" >&5
48892 sed 's/^/| /' conftest.$ac_ext >&5
48893
48894 glibcxx_cv_func___builtin_fabsl_use=no
48895 fi
48896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48897       ac_ext=c
48898 ac_cpp='$CPP $CPPFLAGS'
48899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48902
48903
48904 fi
48905
48906   fi
48907   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
48908 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
48909   if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
48910     echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
48911 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
48912     if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
48913       if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
48914   echo $ECHO_N "(cached) $ECHO_C" >&6
48915 else
48916
48917         if test x$gcc_no_link = xyes; then
48918   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48919 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48920    { (exit 1); exit 1; }; }
48921 fi
48922 cat >conftest.$ac_ext <<_ACEOF
48923 /* confdefs.h.  */
48924 _ACEOF
48925 cat confdefs.h >>conftest.$ac_ext
48926 cat >>conftest.$ac_ext <<_ACEOF
48927 /* end confdefs.h.  */
48928 #include <math.h>
48929 int
48930 main ()
48931 {
48932  __builtin_fabsl(0);
48933   ;
48934   return 0;
48935 }
48936 _ACEOF
48937 rm -f conftest.$ac_objext conftest$ac_exeext
48938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48939   (eval $ac_link) 2>conftest.er1
48940   ac_status=$?
48941   grep -v '^ *+' conftest.er1 >conftest.err
48942   rm -f conftest.er1
48943   cat conftest.err >&5
48944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945   (exit $ac_status); } &&
48946          { ac_try='test -z "$ac_c_werror_flag"
48947                          || test ! -s conftest.err'
48948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48949   (eval $ac_try) 2>&5
48950   ac_status=$?
48951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48952   (exit $ac_status); }; } &&
48953          { ac_try='test -s conftest$ac_exeext'
48954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48955   (eval $ac_try) 2>&5
48956   ac_status=$?
48957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48958   (exit $ac_status); }; }; then
48959   glibcxx_cv_func___builtin_fabsl_link=yes
48960 else
48961   echo "$as_me: failed program was:" >&5
48962 sed 's/^/| /' conftest.$ac_ext >&5
48963
48964 glibcxx_cv_func___builtin_fabsl_link=no
48965 fi
48966 rm -f conftest.err conftest.$ac_objext \
48967       conftest$ac_exeext conftest.$ac_ext
48968
48969 fi
48970
48971     fi
48972     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
48973 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
48974     if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
48975       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48976       cat >>confdefs.h <<_ACEOF
48977 #define ${ac_tr_func} 1
48978 _ACEOF
48979
48980     fi
48981   fi
48982
48983
48984   echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
48985 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
48986   if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
48987     if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
48988   echo $ECHO_N "(cached) $ECHO_C" >&6
48989 else
48990
48991
48992
48993       ac_ext=cc
48994 ac_cpp='$CXXCPP $CPPFLAGS'
48995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48998
48999       cat >conftest.$ac_ext <<_ACEOF
49000 /* confdefs.h.  */
49001 _ACEOF
49002 cat confdefs.h >>conftest.$ac_ext
49003 cat >>conftest.$ac_ext <<_ACEOF
49004 /* end confdefs.h.  */
49005 #include <math.h>
49006 int
49007 main ()
49008 {
49009  __builtin_labs(0);
49010   ;
49011   return 0;
49012 }
49013 _ACEOF
49014 rm -f conftest.$ac_objext
49015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49016   (eval $ac_compile) 2>conftest.er1
49017   ac_status=$?
49018   grep -v '^ *+' conftest.er1 >conftest.err
49019   rm -f conftest.er1
49020   cat conftest.err >&5
49021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49022   (exit $ac_status); } &&
49023          { ac_try='test -z "$ac_cxx_werror_flag"
49024                          || test ! -s conftest.err'
49025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49026   (eval $ac_try) 2>&5
49027   ac_status=$?
49028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49029   (exit $ac_status); }; } &&
49030          { ac_try='test -s conftest.$ac_objext'
49031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49032   (eval $ac_try) 2>&5
49033   ac_status=$?
49034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49035   (exit $ac_status); }; }; then
49036   glibcxx_cv_func___builtin_labs_use=yes
49037 else
49038   echo "$as_me: failed program was:" >&5
49039 sed 's/^/| /' conftest.$ac_ext >&5
49040
49041 glibcxx_cv_func___builtin_labs_use=no
49042 fi
49043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49044       ac_ext=c
49045 ac_cpp='$CPP $CPPFLAGS'
49046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49049
49050
49051 fi
49052
49053   fi
49054   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
49055 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
49056   if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
49057     echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
49058 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
49059     if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
49060       if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
49061   echo $ECHO_N "(cached) $ECHO_C" >&6
49062 else
49063
49064         if test x$gcc_no_link = xyes; then
49065   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49066 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49067    { (exit 1); exit 1; }; }
49068 fi
49069 cat >conftest.$ac_ext <<_ACEOF
49070 /* confdefs.h.  */
49071 _ACEOF
49072 cat confdefs.h >>conftest.$ac_ext
49073 cat >>conftest.$ac_ext <<_ACEOF
49074 /* end confdefs.h.  */
49075 #include <math.h>
49076 int
49077 main ()
49078 {
49079  __builtin_labs(0);
49080   ;
49081   return 0;
49082 }
49083 _ACEOF
49084 rm -f conftest.$ac_objext conftest$ac_exeext
49085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49086   (eval $ac_link) 2>conftest.er1
49087   ac_status=$?
49088   grep -v '^ *+' conftest.er1 >conftest.err
49089   rm -f conftest.er1
49090   cat conftest.err >&5
49091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49092   (exit $ac_status); } &&
49093          { ac_try='test -z "$ac_c_werror_flag"
49094                          || test ! -s conftest.err'
49095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49096   (eval $ac_try) 2>&5
49097   ac_status=$?
49098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49099   (exit $ac_status); }; } &&
49100          { ac_try='test -s conftest$ac_exeext'
49101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49102   (eval $ac_try) 2>&5
49103   ac_status=$?
49104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49105   (exit $ac_status); }; }; then
49106   glibcxx_cv_func___builtin_labs_link=yes
49107 else
49108   echo "$as_me: failed program was:" >&5
49109 sed 's/^/| /' conftest.$ac_ext >&5
49110
49111 glibcxx_cv_func___builtin_labs_link=no
49112 fi
49113 rm -f conftest.err conftest.$ac_objext \
49114       conftest$ac_exeext conftest.$ac_ext
49115
49116 fi
49117
49118     fi
49119     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
49120 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
49121     if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
49122       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49123       cat >>confdefs.h <<_ACEOF
49124 #define ${ac_tr_func} 1
49125 _ACEOF
49126
49127     fi
49128   fi
49129
49130
49131
49132   echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
49133 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
49134   if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
49135     if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
49136   echo $ECHO_N "(cached) $ECHO_C" >&6
49137 else
49138
49139
49140
49141       ac_ext=cc
49142 ac_cpp='$CXXCPP $CPPFLAGS'
49143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49146
49147       cat >conftest.$ac_ext <<_ACEOF
49148 /* confdefs.h.  */
49149 _ACEOF
49150 cat confdefs.h >>conftest.$ac_ext
49151 cat >>conftest.$ac_ext <<_ACEOF
49152 /* end confdefs.h.  */
49153 #include <math.h>
49154 int
49155 main ()
49156 {
49157  __builtin_sqrtf(0);
49158   ;
49159   return 0;
49160 }
49161 _ACEOF
49162 rm -f conftest.$ac_objext
49163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49164   (eval $ac_compile) 2>conftest.er1
49165   ac_status=$?
49166   grep -v '^ *+' conftest.er1 >conftest.err
49167   rm -f conftest.er1
49168   cat conftest.err >&5
49169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49170   (exit $ac_status); } &&
49171          { ac_try='test -z "$ac_cxx_werror_flag"
49172                          || test ! -s conftest.err'
49173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49174   (eval $ac_try) 2>&5
49175   ac_status=$?
49176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49177   (exit $ac_status); }; } &&
49178          { ac_try='test -s conftest.$ac_objext'
49179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49180   (eval $ac_try) 2>&5
49181   ac_status=$?
49182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49183   (exit $ac_status); }; }; then
49184   glibcxx_cv_func___builtin_sqrtf_use=yes
49185 else
49186   echo "$as_me: failed program was:" >&5
49187 sed 's/^/| /' conftest.$ac_ext >&5
49188
49189 glibcxx_cv_func___builtin_sqrtf_use=no
49190 fi
49191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49192       ac_ext=c
49193 ac_cpp='$CPP $CPPFLAGS'
49194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49197
49198
49199 fi
49200
49201   fi
49202   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
49203 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
49204   if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
49205     echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
49206 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
49207     if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
49208       if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
49209   echo $ECHO_N "(cached) $ECHO_C" >&6
49210 else
49211
49212         if test x$gcc_no_link = xyes; then
49213   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49215    { (exit 1); exit 1; }; }
49216 fi
49217 cat >conftest.$ac_ext <<_ACEOF
49218 /* confdefs.h.  */
49219 _ACEOF
49220 cat confdefs.h >>conftest.$ac_ext
49221 cat >>conftest.$ac_ext <<_ACEOF
49222 /* end confdefs.h.  */
49223 #include <math.h>
49224 int
49225 main ()
49226 {
49227  __builtin_sqrtf(0);
49228   ;
49229   return 0;
49230 }
49231 _ACEOF
49232 rm -f conftest.$ac_objext conftest$ac_exeext
49233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49234   (eval $ac_link) 2>conftest.er1
49235   ac_status=$?
49236   grep -v '^ *+' conftest.er1 >conftest.err
49237   rm -f conftest.er1
49238   cat conftest.err >&5
49239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49240   (exit $ac_status); } &&
49241          { ac_try='test -z "$ac_c_werror_flag"
49242                          || test ! -s conftest.err'
49243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49244   (eval $ac_try) 2>&5
49245   ac_status=$?
49246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49247   (exit $ac_status); }; } &&
49248          { ac_try='test -s conftest$ac_exeext'
49249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49250   (eval $ac_try) 2>&5
49251   ac_status=$?
49252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49253   (exit $ac_status); }; }; then
49254   glibcxx_cv_func___builtin_sqrtf_link=yes
49255 else
49256   echo "$as_me: failed program was:" >&5
49257 sed 's/^/| /' conftest.$ac_ext >&5
49258
49259 glibcxx_cv_func___builtin_sqrtf_link=no
49260 fi
49261 rm -f conftest.err conftest.$ac_objext \
49262       conftest$ac_exeext conftest.$ac_ext
49263
49264 fi
49265
49266     fi
49267     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
49268 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
49269     if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
49270       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49271       cat >>confdefs.h <<_ACEOF
49272 #define ${ac_tr_func} 1
49273 _ACEOF
49274
49275     fi
49276   fi
49277
49278
49279   echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
49280 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
49281   if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
49282     if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
49283   echo $ECHO_N "(cached) $ECHO_C" >&6
49284 else
49285
49286
49287
49288       ac_ext=cc
49289 ac_cpp='$CXXCPP $CPPFLAGS'
49290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49293
49294       cat >conftest.$ac_ext <<_ACEOF
49295 /* confdefs.h.  */
49296 _ACEOF
49297 cat confdefs.h >>conftest.$ac_ext
49298 cat >>conftest.$ac_ext <<_ACEOF
49299 /* end confdefs.h.  */
49300 #include <math.h>
49301 int
49302 main ()
49303 {
49304  __builtin_sqrt(0);
49305   ;
49306   return 0;
49307 }
49308 _ACEOF
49309 rm -f conftest.$ac_objext
49310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49311   (eval $ac_compile) 2>conftest.er1
49312   ac_status=$?
49313   grep -v '^ *+' conftest.er1 >conftest.err
49314   rm -f conftest.er1
49315   cat conftest.err >&5
49316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49317   (exit $ac_status); } &&
49318          { ac_try='test -z "$ac_cxx_werror_flag"
49319                          || test ! -s conftest.err'
49320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49321   (eval $ac_try) 2>&5
49322   ac_status=$?
49323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49324   (exit $ac_status); }; } &&
49325          { ac_try='test -s conftest.$ac_objext'
49326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49327   (eval $ac_try) 2>&5
49328   ac_status=$?
49329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49330   (exit $ac_status); }; }; then
49331   glibcxx_cv_func___builtin_sqrt_use=yes
49332 else
49333   echo "$as_me: failed program was:" >&5
49334 sed 's/^/| /' conftest.$ac_ext >&5
49335
49336 glibcxx_cv_func___builtin_sqrt_use=no
49337 fi
49338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49339       ac_ext=c
49340 ac_cpp='$CPP $CPPFLAGS'
49341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49344
49345
49346 fi
49347
49348   fi
49349   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
49350 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
49351   if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
49352     echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
49353 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
49354     if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
49355       if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
49356   echo $ECHO_N "(cached) $ECHO_C" >&6
49357 else
49358
49359         if test x$gcc_no_link = xyes; then
49360   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49362    { (exit 1); exit 1; }; }
49363 fi
49364 cat >conftest.$ac_ext <<_ACEOF
49365 /* confdefs.h.  */
49366 _ACEOF
49367 cat confdefs.h >>conftest.$ac_ext
49368 cat >>conftest.$ac_ext <<_ACEOF
49369 /* end confdefs.h.  */
49370 #include <math.h>
49371 int
49372 main ()
49373 {
49374  __builtin_sqrt(0);
49375   ;
49376   return 0;
49377 }
49378 _ACEOF
49379 rm -f conftest.$ac_objext conftest$ac_exeext
49380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49381   (eval $ac_link) 2>conftest.er1
49382   ac_status=$?
49383   grep -v '^ *+' conftest.er1 >conftest.err
49384   rm -f conftest.er1
49385   cat conftest.err >&5
49386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49387   (exit $ac_status); } &&
49388          { ac_try='test -z "$ac_c_werror_flag"
49389                          || test ! -s conftest.err'
49390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49391   (eval $ac_try) 2>&5
49392   ac_status=$?
49393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49394   (exit $ac_status); }; } &&
49395          { ac_try='test -s conftest$ac_exeext'
49396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49397   (eval $ac_try) 2>&5
49398   ac_status=$?
49399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49400   (exit $ac_status); }; }; then
49401   glibcxx_cv_func___builtin_sqrt_link=yes
49402 else
49403   echo "$as_me: failed program was:" >&5
49404 sed 's/^/| /' conftest.$ac_ext >&5
49405
49406 glibcxx_cv_func___builtin_sqrt_link=no
49407 fi
49408 rm -f conftest.err conftest.$ac_objext \
49409       conftest$ac_exeext conftest.$ac_ext
49410
49411 fi
49412
49413     fi
49414     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
49415 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
49416     if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
49417       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49418       cat >>confdefs.h <<_ACEOF
49419 #define ${ac_tr_func} 1
49420 _ACEOF
49421
49422     fi
49423   fi
49424
49425
49426   echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
49427 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
49428   if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
49429     if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
49430   echo $ECHO_N "(cached) $ECHO_C" >&6
49431 else
49432
49433
49434
49435       ac_ext=cc
49436 ac_cpp='$CXXCPP $CPPFLAGS'
49437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49440
49441       cat >conftest.$ac_ext <<_ACEOF
49442 /* confdefs.h.  */
49443 _ACEOF
49444 cat confdefs.h >>conftest.$ac_ext
49445 cat >>conftest.$ac_ext <<_ACEOF
49446 /* end confdefs.h.  */
49447 #include <math.h>
49448 int
49449 main ()
49450 {
49451  __builtin_sqrtl(0);
49452   ;
49453   return 0;
49454 }
49455 _ACEOF
49456 rm -f conftest.$ac_objext
49457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49458   (eval $ac_compile) 2>conftest.er1
49459   ac_status=$?
49460   grep -v '^ *+' conftest.er1 >conftest.err
49461   rm -f conftest.er1
49462   cat conftest.err >&5
49463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49464   (exit $ac_status); } &&
49465          { ac_try='test -z "$ac_cxx_werror_flag"
49466                          || test ! -s conftest.err'
49467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49468   (eval $ac_try) 2>&5
49469   ac_status=$?
49470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49471   (exit $ac_status); }; } &&
49472          { ac_try='test -s conftest.$ac_objext'
49473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49474   (eval $ac_try) 2>&5
49475   ac_status=$?
49476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49477   (exit $ac_status); }; }; then
49478   glibcxx_cv_func___builtin_sqrtl_use=yes
49479 else
49480   echo "$as_me: failed program was:" >&5
49481 sed 's/^/| /' conftest.$ac_ext >&5
49482
49483 glibcxx_cv_func___builtin_sqrtl_use=no
49484 fi
49485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49486       ac_ext=c
49487 ac_cpp='$CPP $CPPFLAGS'
49488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49491
49492
49493 fi
49494
49495   fi
49496   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
49497 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
49498   if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
49499     echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
49500 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
49501     if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
49502       if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
49503   echo $ECHO_N "(cached) $ECHO_C" >&6
49504 else
49505
49506         if test x$gcc_no_link = xyes; then
49507   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49509    { (exit 1); exit 1; }; }
49510 fi
49511 cat >conftest.$ac_ext <<_ACEOF
49512 /* confdefs.h.  */
49513 _ACEOF
49514 cat confdefs.h >>conftest.$ac_ext
49515 cat >>conftest.$ac_ext <<_ACEOF
49516 /* end confdefs.h.  */
49517 #include <math.h>
49518 int
49519 main ()
49520 {
49521  __builtin_sqrtl(0);
49522   ;
49523   return 0;
49524 }
49525 _ACEOF
49526 rm -f conftest.$ac_objext conftest$ac_exeext
49527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49528   (eval $ac_link) 2>conftest.er1
49529   ac_status=$?
49530   grep -v '^ *+' conftest.er1 >conftest.err
49531   rm -f conftest.er1
49532   cat conftest.err >&5
49533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49534   (exit $ac_status); } &&
49535          { ac_try='test -z "$ac_c_werror_flag"
49536                          || test ! -s conftest.err'
49537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49538   (eval $ac_try) 2>&5
49539   ac_status=$?
49540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49541   (exit $ac_status); }; } &&
49542          { ac_try='test -s conftest$ac_exeext'
49543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49544   (eval $ac_try) 2>&5
49545   ac_status=$?
49546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49547   (exit $ac_status); }; }; then
49548   glibcxx_cv_func___builtin_sqrtl_link=yes
49549 else
49550   echo "$as_me: failed program was:" >&5
49551 sed 's/^/| /' conftest.$ac_ext >&5
49552
49553 glibcxx_cv_func___builtin_sqrtl_link=no
49554 fi
49555 rm -f conftest.err conftest.$ac_objext \
49556       conftest$ac_exeext conftest.$ac_ext
49557
49558 fi
49559
49560     fi
49561     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
49562 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
49563     if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
49564       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49565       cat >>confdefs.h <<_ACEOF
49566 #define ${ac_tr_func} 1
49567 _ACEOF
49568
49569     fi
49570   fi
49571
49572
49573
49574   echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
49575 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
49576   if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
49577     if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
49578   echo $ECHO_N "(cached) $ECHO_C" >&6
49579 else
49580
49581
49582
49583       ac_ext=cc
49584 ac_cpp='$CXXCPP $CPPFLAGS'
49585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49588
49589       cat >conftest.$ac_ext <<_ACEOF
49590 /* confdefs.h.  */
49591 _ACEOF
49592 cat confdefs.h >>conftest.$ac_ext
49593 cat >>conftest.$ac_ext <<_ACEOF
49594 /* end confdefs.h.  */
49595 #include <math.h>
49596 int
49597 main ()
49598 {
49599  __builtin_sinf(0);
49600   ;
49601   return 0;
49602 }
49603 _ACEOF
49604 rm -f conftest.$ac_objext
49605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49606   (eval $ac_compile) 2>conftest.er1
49607   ac_status=$?
49608   grep -v '^ *+' conftest.er1 >conftest.err
49609   rm -f conftest.er1
49610   cat conftest.err >&5
49611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49612   (exit $ac_status); } &&
49613          { ac_try='test -z "$ac_cxx_werror_flag"
49614                          || test ! -s conftest.err'
49615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49616   (eval $ac_try) 2>&5
49617   ac_status=$?
49618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49619   (exit $ac_status); }; } &&
49620          { ac_try='test -s conftest.$ac_objext'
49621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49622   (eval $ac_try) 2>&5
49623   ac_status=$?
49624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49625   (exit $ac_status); }; }; then
49626   glibcxx_cv_func___builtin_sinf_use=yes
49627 else
49628   echo "$as_me: failed program was:" >&5
49629 sed 's/^/| /' conftest.$ac_ext >&5
49630
49631 glibcxx_cv_func___builtin_sinf_use=no
49632 fi
49633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49634       ac_ext=c
49635 ac_cpp='$CPP $CPPFLAGS'
49636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49639
49640
49641 fi
49642
49643   fi
49644   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
49645 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
49646   if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
49647     echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
49648 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
49649     if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
49650       if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
49651   echo $ECHO_N "(cached) $ECHO_C" >&6
49652 else
49653
49654         if test x$gcc_no_link = xyes; then
49655   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49657    { (exit 1); exit 1; }; }
49658 fi
49659 cat >conftest.$ac_ext <<_ACEOF
49660 /* confdefs.h.  */
49661 _ACEOF
49662 cat confdefs.h >>conftest.$ac_ext
49663 cat >>conftest.$ac_ext <<_ACEOF
49664 /* end confdefs.h.  */
49665 #include <math.h>
49666 int
49667 main ()
49668 {
49669  __builtin_sinf(0);
49670   ;
49671   return 0;
49672 }
49673 _ACEOF
49674 rm -f conftest.$ac_objext conftest$ac_exeext
49675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49676   (eval $ac_link) 2>conftest.er1
49677   ac_status=$?
49678   grep -v '^ *+' conftest.er1 >conftest.err
49679   rm -f conftest.er1
49680   cat conftest.err >&5
49681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49682   (exit $ac_status); } &&
49683          { ac_try='test -z "$ac_c_werror_flag"
49684                          || test ! -s conftest.err'
49685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49686   (eval $ac_try) 2>&5
49687   ac_status=$?
49688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49689   (exit $ac_status); }; } &&
49690          { ac_try='test -s conftest$ac_exeext'
49691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49692   (eval $ac_try) 2>&5
49693   ac_status=$?
49694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49695   (exit $ac_status); }; }; then
49696   glibcxx_cv_func___builtin_sinf_link=yes
49697 else
49698   echo "$as_me: failed program was:" >&5
49699 sed 's/^/| /' conftest.$ac_ext >&5
49700
49701 glibcxx_cv_func___builtin_sinf_link=no
49702 fi
49703 rm -f conftest.err conftest.$ac_objext \
49704       conftest$ac_exeext conftest.$ac_ext
49705
49706 fi
49707
49708     fi
49709     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
49710 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
49711     if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
49712       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49713       cat >>confdefs.h <<_ACEOF
49714 #define ${ac_tr_func} 1
49715 _ACEOF
49716
49717     fi
49718   fi
49719
49720
49721   echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
49722 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
49723   if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
49724     if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
49725   echo $ECHO_N "(cached) $ECHO_C" >&6
49726 else
49727
49728
49729
49730       ac_ext=cc
49731 ac_cpp='$CXXCPP $CPPFLAGS'
49732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49735
49736       cat >conftest.$ac_ext <<_ACEOF
49737 /* confdefs.h.  */
49738 _ACEOF
49739 cat confdefs.h >>conftest.$ac_ext
49740 cat >>conftest.$ac_ext <<_ACEOF
49741 /* end confdefs.h.  */
49742 #include <math.h>
49743 int
49744 main ()
49745 {
49746  __builtin_sin(0);
49747   ;
49748   return 0;
49749 }
49750 _ACEOF
49751 rm -f conftest.$ac_objext
49752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49753   (eval $ac_compile) 2>conftest.er1
49754   ac_status=$?
49755   grep -v '^ *+' conftest.er1 >conftest.err
49756   rm -f conftest.er1
49757   cat conftest.err >&5
49758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49759   (exit $ac_status); } &&
49760          { ac_try='test -z "$ac_cxx_werror_flag"
49761                          || test ! -s conftest.err'
49762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49763   (eval $ac_try) 2>&5
49764   ac_status=$?
49765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49766   (exit $ac_status); }; } &&
49767          { ac_try='test -s conftest.$ac_objext'
49768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49769   (eval $ac_try) 2>&5
49770   ac_status=$?
49771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49772   (exit $ac_status); }; }; then
49773   glibcxx_cv_func___builtin_sin_use=yes
49774 else
49775   echo "$as_me: failed program was:" >&5
49776 sed 's/^/| /' conftest.$ac_ext >&5
49777
49778 glibcxx_cv_func___builtin_sin_use=no
49779 fi
49780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49781       ac_ext=c
49782 ac_cpp='$CPP $CPPFLAGS'
49783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49786
49787
49788 fi
49789
49790   fi
49791   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
49792 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
49793   if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
49794     echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
49795 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
49796     if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
49797       if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
49798   echo $ECHO_N "(cached) $ECHO_C" >&6
49799 else
49800
49801         if test x$gcc_no_link = xyes; then
49802   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49803 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49804    { (exit 1); exit 1; }; }
49805 fi
49806 cat >conftest.$ac_ext <<_ACEOF
49807 /* confdefs.h.  */
49808 _ACEOF
49809 cat confdefs.h >>conftest.$ac_ext
49810 cat >>conftest.$ac_ext <<_ACEOF
49811 /* end confdefs.h.  */
49812 #include <math.h>
49813 int
49814 main ()
49815 {
49816  __builtin_sin(0);
49817   ;
49818   return 0;
49819 }
49820 _ACEOF
49821 rm -f conftest.$ac_objext conftest$ac_exeext
49822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49823   (eval $ac_link) 2>conftest.er1
49824   ac_status=$?
49825   grep -v '^ *+' conftest.er1 >conftest.err
49826   rm -f conftest.er1
49827   cat conftest.err >&5
49828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49829   (exit $ac_status); } &&
49830          { ac_try='test -z "$ac_c_werror_flag"
49831                          || test ! -s conftest.err'
49832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49833   (eval $ac_try) 2>&5
49834   ac_status=$?
49835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49836   (exit $ac_status); }; } &&
49837          { ac_try='test -s conftest$ac_exeext'
49838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49839   (eval $ac_try) 2>&5
49840   ac_status=$?
49841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49842   (exit $ac_status); }; }; then
49843   glibcxx_cv_func___builtin_sin_link=yes
49844 else
49845   echo "$as_me: failed program was:" >&5
49846 sed 's/^/| /' conftest.$ac_ext >&5
49847
49848 glibcxx_cv_func___builtin_sin_link=no
49849 fi
49850 rm -f conftest.err conftest.$ac_objext \
49851       conftest$ac_exeext conftest.$ac_ext
49852
49853 fi
49854
49855     fi
49856     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
49857 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
49858     if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
49859       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49860       cat >>confdefs.h <<_ACEOF
49861 #define ${ac_tr_func} 1
49862 _ACEOF
49863
49864     fi
49865   fi
49866
49867
49868   echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
49869 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
49870   if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
49871     if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
49872   echo $ECHO_N "(cached) $ECHO_C" >&6
49873 else
49874
49875
49876
49877       ac_ext=cc
49878 ac_cpp='$CXXCPP $CPPFLAGS'
49879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49882
49883       cat >conftest.$ac_ext <<_ACEOF
49884 /* confdefs.h.  */
49885 _ACEOF
49886 cat confdefs.h >>conftest.$ac_ext
49887 cat >>conftest.$ac_ext <<_ACEOF
49888 /* end confdefs.h.  */
49889 #include <math.h>
49890 int
49891 main ()
49892 {
49893  __builtin_sinl(0);
49894   ;
49895   return 0;
49896 }
49897 _ACEOF
49898 rm -f conftest.$ac_objext
49899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49900   (eval $ac_compile) 2>conftest.er1
49901   ac_status=$?
49902   grep -v '^ *+' conftest.er1 >conftest.err
49903   rm -f conftest.er1
49904   cat conftest.err >&5
49905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49906   (exit $ac_status); } &&
49907          { ac_try='test -z "$ac_cxx_werror_flag"
49908                          || test ! -s conftest.err'
49909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49910   (eval $ac_try) 2>&5
49911   ac_status=$?
49912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49913   (exit $ac_status); }; } &&
49914          { ac_try='test -s conftest.$ac_objext'
49915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49916   (eval $ac_try) 2>&5
49917   ac_status=$?
49918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49919   (exit $ac_status); }; }; then
49920   glibcxx_cv_func___builtin_sinl_use=yes
49921 else
49922   echo "$as_me: failed program was:" >&5
49923 sed 's/^/| /' conftest.$ac_ext >&5
49924
49925 glibcxx_cv_func___builtin_sinl_use=no
49926 fi
49927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49928       ac_ext=c
49929 ac_cpp='$CPP $CPPFLAGS'
49930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49933
49934
49935 fi
49936
49937   fi
49938   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
49939 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
49940   if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
49941     echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
49942 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
49943     if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
49944       if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
49945   echo $ECHO_N "(cached) $ECHO_C" >&6
49946 else
49947
49948         if test x$gcc_no_link = xyes; then
49949   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49951    { (exit 1); exit 1; }; }
49952 fi
49953 cat >conftest.$ac_ext <<_ACEOF
49954 /* confdefs.h.  */
49955 _ACEOF
49956 cat confdefs.h >>conftest.$ac_ext
49957 cat >>conftest.$ac_ext <<_ACEOF
49958 /* end confdefs.h.  */
49959 #include <math.h>
49960 int
49961 main ()
49962 {
49963  __builtin_sinl(0);
49964   ;
49965   return 0;
49966 }
49967 _ACEOF
49968 rm -f conftest.$ac_objext conftest$ac_exeext
49969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49970   (eval $ac_link) 2>conftest.er1
49971   ac_status=$?
49972   grep -v '^ *+' conftest.er1 >conftest.err
49973   rm -f conftest.er1
49974   cat conftest.err >&5
49975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49976   (exit $ac_status); } &&
49977          { ac_try='test -z "$ac_c_werror_flag"
49978                          || test ! -s conftest.err'
49979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49980   (eval $ac_try) 2>&5
49981   ac_status=$?
49982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49983   (exit $ac_status); }; } &&
49984          { ac_try='test -s conftest$ac_exeext'
49985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49986   (eval $ac_try) 2>&5
49987   ac_status=$?
49988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49989   (exit $ac_status); }; }; then
49990   glibcxx_cv_func___builtin_sinl_link=yes
49991 else
49992   echo "$as_me: failed program was:" >&5
49993 sed 's/^/| /' conftest.$ac_ext >&5
49994
49995 glibcxx_cv_func___builtin_sinl_link=no
49996 fi
49997 rm -f conftest.err conftest.$ac_objext \
49998       conftest$ac_exeext conftest.$ac_ext
49999
50000 fi
50001
50002     fi
50003     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
50004 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
50005     if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
50006       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50007       cat >>confdefs.h <<_ACEOF
50008 #define ${ac_tr_func} 1
50009 _ACEOF
50010
50011     fi
50012   fi
50013
50014
50015
50016   echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
50017 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
50018   if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
50019     if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
50020   echo $ECHO_N "(cached) $ECHO_C" >&6
50021 else
50022
50023
50024
50025       ac_ext=cc
50026 ac_cpp='$CXXCPP $CPPFLAGS'
50027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50030
50031       cat >conftest.$ac_ext <<_ACEOF
50032 /* confdefs.h.  */
50033 _ACEOF
50034 cat confdefs.h >>conftest.$ac_ext
50035 cat >>conftest.$ac_ext <<_ACEOF
50036 /* end confdefs.h.  */
50037 #include <math.h>
50038 int
50039 main ()
50040 {
50041  __builtin_cosf(0);
50042   ;
50043   return 0;
50044 }
50045 _ACEOF
50046 rm -f conftest.$ac_objext
50047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50048   (eval $ac_compile) 2>conftest.er1
50049   ac_status=$?
50050   grep -v '^ *+' conftest.er1 >conftest.err
50051   rm -f conftest.er1
50052   cat conftest.err >&5
50053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50054   (exit $ac_status); } &&
50055          { ac_try='test -z "$ac_cxx_werror_flag"
50056                          || test ! -s conftest.err'
50057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50058   (eval $ac_try) 2>&5
50059   ac_status=$?
50060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50061   (exit $ac_status); }; } &&
50062          { ac_try='test -s conftest.$ac_objext'
50063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50064   (eval $ac_try) 2>&5
50065   ac_status=$?
50066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50067   (exit $ac_status); }; }; then
50068   glibcxx_cv_func___builtin_cosf_use=yes
50069 else
50070   echo "$as_me: failed program was:" >&5
50071 sed 's/^/| /' conftest.$ac_ext >&5
50072
50073 glibcxx_cv_func___builtin_cosf_use=no
50074 fi
50075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50076       ac_ext=c
50077 ac_cpp='$CPP $CPPFLAGS'
50078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50081
50082
50083 fi
50084
50085   fi
50086   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
50087 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
50088   if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
50089     echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
50090 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
50091     if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
50092       if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
50093   echo $ECHO_N "(cached) $ECHO_C" >&6
50094 else
50095
50096         if test x$gcc_no_link = xyes; then
50097   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50099    { (exit 1); exit 1; }; }
50100 fi
50101 cat >conftest.$ac_ext <<_ACEOF
50102 /* confdefs.h.  */
50103 _ACEOF
50104 cat confdefs.h >>conftest.$ac_ext
50105 cat >>conftest.$ac_ext <<_ACEOF
50106 /* end confdefs.h.  */
50107 #include <math.h>
50108 int
50109 main ()
50110 {
50111  __builtin_cosf(0);
50112   ;
50113   return 0;
50114 }
50115 _ACEOF
50116 rm -f conftest.$ac_objext conftest$ac_exeext
50117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50118   (eval $ac_link) 2>conftest.er1
50119   ac_status=$?
50120   grep -v '^ *+' conftest.er1 >conftest.err
50121   rm -f conftest.er1
50122   cat conftest.err >&5
50123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50124   (exit $ac_status); } &&
50125          { ac_try='test -z "$ac_c_werror_flag"
50126                          || test ! -s conftest.err'
50127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50128   (eval $ac_try) 2>&5
50129   ac_status=$?
50130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50131   (exit $ac_status); }; } &&
50132          { ac_try='test -s conftest$ac_exeext'
50133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50134   (eval $ac_try) 2>&5
50135   ac_status=$?
50136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50137   (exit $ac_status); }; }; then
50138   glibcxx_cv_func___builtin_cosf_link=yes
50139 else
50140   echo "$as_me: failed program was:" >&5
50141 sed 's/^/| /' conftest.$ac_ext >&5
50142
50143 glibcxx_cv_func___builtin_cosf_link=no
50144 fi
50145 rm -f conftest.err conftest.$ac_objext \
50146       conftest$ac_exeext conftest.$ac_ext
50147
50148 fi
50149
50150     fi
50151     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
50152 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
50153     if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
50154       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50155       cat >>confdefs.h <<_ACEOF
50156 #define ${ac_tr_func} 1
50157 _ACEOF
50158
50159     fi
50160   fi
50161
50162
50163   echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
50164 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
50165   if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
50166     if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
50167   echo $ECHO_N "(cached) $ECHO_C" >&6
50168 else
50169
50170
50171
50172       ac_ext=cc
50173 ac_cpp='$CXXCPP $CPPFLAGS'
50174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50177
50178       cat >conftest.$ac_ext <<_ACEOF
50179 /* confdefs.h.  */
50180 _ACEOF
50181 cat confdefs.h >>conftest.$ac_ext
50182 cat >>conftest.$ac_ext <<_ACEOF
50183 /* end confdefs.h.  */
50184 #include <math.h>
50185 int
50186 main ()
50187 {
50188  __builtin_cos(0);
50189   ;
50190   return 0;
50191 }
50192 _ACEOF
50193 rm -f conftest.$ac_objext
50194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50195   (eval $ac_compile) 2>conftest.er1
50196   ac_status=$?
50197   grep -v '^ *+' conftest.er1 >conftest.err
50198   rm -f conftest.er1
50199   cat conftest.err >&5
50200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50201   (exit $ac_status); } &&
50202          { ac_try='test -z "$ac_cxx_werror_flag"
50203                          || test ! -s conftest.err'
50204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50205   (eval $ac_try) 2>&5
50206   ac_status=$?
50207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50208   (exit $ac_status); }; } &&
50209          { ac_try='test -s conftest.$ac_objext'
50210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50211   (eval $ac_try) 2>&5
50212   ac_status=$?
50213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50214   (exit $ac_status); }; }; then
50215   glibcxx_cv_func___builtin_cos_use=yes
50216 else
50217   echo "$as_me: failed program was:" >&5
50218 sed 's/^/| /' conftest.$ac_ext >&5
50219
50220 glibcxx_cv_func___builtin_cos_use=no
50221 fi
50222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50223       ac_ext=c
50224 ac_cpp='$CPP $CPPFLAGS'
50225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50228
50229
50230 fi
50231
50232   fi
50233   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
50234 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
50235   if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
50236     echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
50237 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
50238     if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
50239       if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
50240   echo $ECHO_N "(cached) $ECHO_C" >&6
50241 else
50242
50243         if test x$gcc_no_link = xyes; then
50244   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50245 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50246    { (exit 1); exit 1; }; }
50247 fi
50248 cat >conftest.$ac_ext <<_ACEOF
50249 /* confdefs.h.  */
50250 _ACEOF
50251 cat confdefs.h >>conftest.$ac_ext
50252 cat >>conftest.$ac_ext <<_ACEOF
50253 /* end confdefs.h.  */
50254 #include <math.h>
50255 int
50256 main ()
50257 {
50258  __builtin_cos(0);
50259   ;
50260   return 0;
50261 }
50262 _ACEOF
50263 rm -f conftest.$ac_objext conftest$ac_exeext
50264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50265   (eval $ac_link) 2>conftest.er1
50266   ac_status=$?
50267   grep -v '^ *+' conftest.er1 >conftest.err
50268   rm -f conftest.er1
50269   cat conftest.err >&5
50270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50271   (exit $ac_status); } &&
50272          { ac_try='test -z "$ac_c_werror_flag"
50273                          || test ! -s conftest.err'
50274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50275   (eval $ac_try) 2>&5
50276   ac_status=$?
50277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50278   (exit $ac_status); }; } &&
50279          { ac_try='test -s conftest$ac_exeext'
50280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50281   (eval $ac_try) 2>&5
50282   ac_status=$?
50283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50284   (exit $ac_status); }; }; then
50285   glibcxx_cv_func___builtin_cos_link=yes
50286 else
50287   echo "$as_me: failed program was:" >&5
50288 sed 's/^/| /' conftest.$ac_ext >&5
50289
50290 glibcxx_cv_func___builtin_cos_link=no
50291 fi
50292 rm -f conftest.err conftest.$ac_objext \
50293       conftest$ac_exeext conftest.$ac_ext
50294
50295 fi
50296
50297     fi
50298     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
50299 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
50300     if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
50301       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50302       cat >>confdefs.h <<_ACEOF
50303 #define ${ac_tr_func} 1
50304 _ACEOF
50305
50306     fi
50307   fi
50308
50309
50310   echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
50311 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
50312   if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
50313     if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
50314   echo $ECHO_N "(cached) $ECHO_C" >&6
50315 else
50316
50317
50318
50319       ac_ext=cc
50320 ac_cpp='$CXXCPP $CPPFLAGS'
50321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50324
50325       cat >conftest.$ac_ext <<_ACEOF
50326 /* confdefs.h.  */
50327 _ACEOF
50328 cat confdefs.h >>conftest.$ac_ext
50329 cat >>conftest.$ac_ext <<_ACEOF
50330 /* end confdefs.h.  */
50331 #include <math.h>
50332 int
50333 main ()
50334 {
50335  __builtin_cosl(0);
50336   ;
50337   return 0;
50338 }
50339 _ACEOF
50340 rm -f conftest.$ac_objext
50341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50342   (eval $ac_compile) 2>conftest.er1
50343   ac_status=$?
50344   grep -v '^ *+' conftest.er1 >conftest.err
50345   rm -f conftest.er1
50346   cat conftest.err >&5
50347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50348   (exit $ac_status); } &&
50349          { ac_try='test -z "$ac_cxx_werror_flag"
50350                          || test ! -s conftest.err'
50351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50352   (eval $ac_try) 2>&5
50353   ac_status=$?
50354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50355   (exit $ac_status); }; } &&
50356          { ac_try='test -s conftest.$ac_objext'
50357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50358   (eval $ac_try) 2>&5
50359   ac_status=$?
50360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50361   (exit $ac_status); }; }; then
50362   glibcxx_cv_func___builtin_cosl_use=yes
50363 else
50364   echo "$as_me: failed program was:" >&5
50365 sed 's/^/| /' conftest.$ac_ext >&5
50366
50367 glibcxx_cv_func___builtin_cosl_use=no
50368 fi
50369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50370       ac_ext=c
50371 ac_cpp='$CPP $CPPFLAGS'
50372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50375
50376
50377 fi
50378
50379   fi
50380   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
50381 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
50382   if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
50383     echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
50384 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
50385     if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
50386       if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
50387   echo $ECHO_N "(cached) $ECHO_C" >&6
50388 else
50389
50390         if test x$gcc_no_link = xyes; then
50391   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50393    { (exit 1); exit 1; }; }
50394 fi
50395 cat >conftest.$ac_ext <<_ACEOF
50396 /* confdefs.h.  */
50397 _ACEOF
50398 cat confdefs.h >>conftest.$ac_ext
50399 cat >>conftest.$ac_ext <<_ACEOF
50400 /* end confdefs.h.  */
50401 #include <math.h>
50402 int
50403 main ()
50404 {
50405  __builtin_cosl(0);
50406   ;
50407   return 0;
50408 }
50409 _ACEOF
50410 rm -f conftest.$ac_objext conftest$ac_exeext
50411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50412   (eval $ac_link) 2>conftest.er1
50413   ac_status=$?
50414   grep -v '^ *+' conftest.er1 >conftest.err
50415   rm -f conftest.er1
50416   cat conftest.err >&5
50417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50418   (exit $ac_status); } &&
50419          { ac_try='test -z "$ac_c_werror_flag"
50420                          || test ! -s conftest.err'
50421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50422   (eval $ac_try) 2>&5
50423   ac_status=$?
50424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50425   (exit $ac_status); }; } &&
50426          { ac_try='test -s conftest$ac_exeext'
50427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50428   (eval $ac_try) 2>&5
50429   ac_status=$?
50430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50431   (exit $ac_status); }; }; then
50432   glibcxx_cv_func___builtin_cosl_link=yes
50433 else
50434   echo "$as_me: failed program was:" >&5
50435 sed 's/^/| /' conftest.$ac_ext >&5
50436
50437 glibcxx_cv_func___builtin_cosl_link=no
50438 fi
50439 rm -f conftest.err conftest.$ac_objext \
50440       conftest$ac_exeext conftest.$ac_ext
50441
50442 fi
50443
50444     fi
50445     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
50446 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
50447     if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
50448       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50449       cat >>confdefs.h <<_ACEOF
50450 #define ${ac_tr_func} 1
50451 _ACEOF
50452
50453     fi
50454   fi
50455
50456
50457               dummyvar=no
50458   if test x$dummyvar = x"yes"; then
50459     cat >>confdefs.h <<\_ACEOF
50460 #define HAVE___BUILTIN_ABS 1
50461 _ACEOF
50462
50463     cat >>confdefs.h <<\_ACEOF
50464 #define HAVE___BUILTIN_LABS 1
50465 _ACEOF
50466
50467     cat >>confdefs.h <<\_ACEOF
50468 #define HAVE___BUILTIN_COS 1
50469 _ACEOF
50470
50471     cat >>confdefs.h <<\_ACEOF
50472 #define HAVE___BUILTIN_COSF 1
50473 _ACEOF
50474
50475     cat >>confdefs.h <<\_ACEOF
50476 #define HAVE___BUILTIN_COSL 1
50477 _ACEOF
50478
50479     cat >>confdefs.h <<\_ACEOF
50480 #define HAVE___BUILTIN_FABS 1
50481 _ACEOF
50482
50483     cat >>confdefs.h <<\_ACEOF
50484 #define HAVE___BUILTIN_FABSF 1
50485 _ACEOF
50486
50487     cat >>confdefs.h <<\_ACEOF
50488 #define HAVE___BUILTIN_FABSL 1
50489 _ACEOF
50490
50491     cat >>confdefs.h <<\_ACEOF
50492 #define HAVE___BUILTIN_SIN 1
50493 _ACEOF
50494
50495     cat >>confdefs.h <<\_ACEOF
50496 #define HAVE___BUILTIN_SINF 1
50497 _ACEOF
50498
50499     cat >>confdefs.h <<\_ACEOF
50500 #define HAVE___BUILTIN_SINL 1
50501 _ACEOF
50502
50503     cat >>confdefs.h <<\_ACEOF
50504 #define HAVE___BUILTIN_SQRT 1
50505 _ACEOF
50506
50507     cat >>confdefs.h <<\_ACEOF
50508 #define HAVE___BUILTIN_SQRTF 1
50509 _ACEOF
50510
50511     cat >>confdefs.h <<\_ACEOF
50512 #define HAVE___BUILTIN_SQRTL 1
50513 _ACEOF
50514
50515   fi
50516
50517
50518
50519 echo "$as_me:$LINENO: checking for main in -lm" >&5
50520 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
50521 if test "${ac_cv_lib_m_main+set}" = set; then
50522   echo $ECHO_N "(cached) $ECHO_C" >&6
50523 else
50524   ac_check_lib_save_LIBS=$LIBS
50525 LIBS="-lm  $LIBS"
50526 if test x$gcc_no_link = xyes; then
50527   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50529    { (exit 1); exit 1; }; }
50530 fi
50531 cat >conftest.$ac_ext <<_ACEOF
50532 /* confdefs.h.  */
50533 _ACEOF
50534 cat confdefs.h >>conftest.$ac_ext
50535 cat >>conftest.$ac_ext <<_ACEOF
50536 /* end confdefs.h.  */
50537
50538
50539 int
50540 main ()
50541 {
50542 main ();
50543   ;
50544   return 0;
50545 }
50546 _ACEOF
50547 rm -f conftest.$ac_objext conftest$ac_exeext
50548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50549   (eval $ac_link) 2>conftest.er1
50550   ac_status=$?
50551   grep -v '^ *+' conftest.er1 >conftest.err
50552   rm -f conftest.er1
50553   cat conftest.err >&5
50554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50555   (exit $ac_status); } &&
50556          { ac_try='test -z "$ac_c_werror_flag"
50557                          || test ! -s conftest.err'
50558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50559   (eval $ac_try) 2>&5
50560   ac_status=$?
50561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50562   (exit $ac_status); }; } &&
50563          { ac_try='test -s conftest$ac_exeext'
50564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50565   (eval $ac_try) 2>&5
50566   ac_status=$?
50567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50568   (exit $ac_status); }; }; then
50569   ac_cv_lib_m_main=yes
50570 else
50571   echo "$as_me: failed program was:" >&5
50572 sed 's/^/| /' conftest.$ac_ext >&5
50573
50574 ac_cv_lib_m_main=no
50575 fi
50576 rm -f conftest.err conftest.$ac_objext \
50577       conftest$ac_exeext conftest.$ac_ext
50578 LIBS=$ac_check_lib_save_LIBS
50579 fi
50580 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
50581 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
50582 if test $ac_cv_lib_m_main = yes; then
50583   cat >>confdefs.h <<_ACEOF
50584 #define HAVE_LIBM 1
50585 _ACEOF
50586
50587   LIBS="-lm $LIBS"
50588
50589 fi
50590
50591
50592 for ac_func in copysignf
50593 do
50594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50595 echo "$as_me:$LINENO: checking for $ac_func" >&5
50596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50597 if eval "test \"\${$as_ac_var+set}\" = set"; then
50598   echo $ECHO_N "(cached) $ECHO_C" >&6
50599 else
50600   if test x$gcc_no_link = xyes; then
50601   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50602 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50603    { (exit 1); exit 1; }; }
50604 fi
50605 cat >conftest.$ac_ext <<_ACEOF
50606 /* confdefs.h.  */
50607 _ACEOF
50608 cat confdefs.h >>conftest.$ac_ext
50609 cat >>conftest.$ac_ext <<_ACEOF
50610 /* end confdefs.h.  */
50611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50613 #define $ac_func innocuous_$ac_func
50614
50615 /* System header to define __stub macros and hopefully few prototypes,
50616     which can conflict with char $ac_func (); below.
50617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50618     <limits.h> exists even on freestanding compilers.  */
50619
50620 #ifdef __STDC__
50621 # include <limits.h>
50622 #else
50623 # include <assert.h>
50624 #endif
50625
50626 #undef $ac_func
50627
50628 /* Override any gcc2 internal prototype to avoid an error.  */
50629 #ifdef __cplusplus
50630 extern "C"
50631 {
50632 #endif
50633 /* We use char because int might match the return type of a gcc2
50634    builtin and then its argument prototype would still apply.  */
50635 char $ac_func ();
50636 /* The GNU C library defines this for functions which it implements
50637     to always fail with ENOSYS.  Some functions are actually named
50638     something starting with __ and the normal name is an alias.  */
50639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50640 choke me
50641 #else
50642 char (*f) () = $ac_func;
50643 #endif
50644 #ifdef __cplusplus
50645 }
50646 #endif
50647
50648 int
50649 main ()
50650 {
50651 return f != $ac_func;
50652   ;
50653   return 0;
50654 }
50655 _ACEOF
50656 rm -f conftest.$ac_objext conftest$ac_exeext
50657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50658   (eval $ac_link) 2>conftest.er1
50659   ac_status=$?
50660   grep -v '^ *+' conftest.er1 >conftest.err
50661   rm -f conftest.er1
50662   cat conftest.err >&5
50663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50664   (exit $ac_status); } &&
50665          { ac_try='test -z "$ac_c_werror_flag"
50666                          || test ! -s conftest.err'
50667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50668   (eval $ac_try) 2>&5
50669   ac_status=$?
50670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50671   (exit $ac_status); }; } &&
50672          { ac_try='test -s conftest$ac_exeext'
50673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50674   (eval $ac_try) 2>&5
50675   ac_status=$?
50676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50677   (exit $ac_status); }; }; then
50678   eval "$as_ac_var=yes"
50679 else
50680   echo "$as_me: failed program was:" >&5
50681 sed 's/^/| /' conftest.$ac_ext >&5
50682
50683 eval "$as_ac_var=no"
50684 fi
50685 rm -f conftest.err conftest.$ac_objext \
50686       conftest$ac_exeext conftest.$ac_ext
50687 fi
50688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50690 if test `eval echo '${'$as_ac_var'}'` = yes; then
50691   cat >>confdefs.h <<_ACEOF
50692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50693 _ACEOF
50694
50695 else
50696   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50697 fi
50698 done
50699
50700
50701
50702 for ac_func in __signbit
50703 do
50704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50705 echo "$as_me:$LINENO: checking for $ac_func" >&5
50706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50707 if eval "test \"\${$as_ac_var+set}\" = set"; then
50708   echo $ECHO_N "(cached) $ECHO_C" >&6
50709 else
50710   if test x$gcc_no_link = xyes; then
50711   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50713    { (exit 1); exit 1; }; }
50714 fi
50715 cat >conftest.$ac_ext <<_ACEOF
50716 /* confdefs.h.  */
50717 _ACEOF
50718 cat confdefs.h >>conftest.$ac_ext
50719 cat >>conftest.$ac_ext <<_ACEOF
50720 /* end confdefs.h.  */
50721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50723 #define $ac_func innocuous_$ac_func
50724
50725 /* System header to define __stub macros and hopefully few prototypes,
50726     which can conflict with char $ac_func (); below.
50727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50728     <limits.h> exists even on freestanding compilers.  */
50729
50730 #ifdef __STDC__
50731 # include <limits.h>
50732 #else
50733 # include <assert.h>
50734 #endif
50735
50736 #undef $ac_func
50737
50738 /* Override any gcc2 internal prototype to avoid an error.  */
50739 #ifdef __cplusplus
50740 extern "C"
50741 {
50742 #endif
50743 /* We use char because int might match the return type of a gcc2
50744    builtin and then its argument prototype would still apply.  */
50745 char $ac_func ();
50746 /* The GNU C library defines this for functions which it implements
50747     to always fail with ENOSYS.  Some functions are actually named
50748     something starting with __ and the normal name is an alias.  */
50749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50750 choke me
50751 #else
50752 char (*f) () = $ac_func;
50753 #endif
50754 #ifdef __cplusplus
50755 }
50756 #endif
50757
50758 int
50759 main ()
50760 {
50761 return f != $ac_func;
50762   ;
50763   return 0;
50764 }
50765 _ACEOF
50766 rm -f conftest.$ac_objext conftest$ac_exeext
50767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50768   (eval $ac_link) 2>conftest.er1
50769   ac_status=$?
50770   grep -v '^ *+' conftest.er1 >conftest.err
50771   rm -f conftest.er1
50772   cat conftest.err >&5
50773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50774   (exit $ac_status); } &&
50775          { ac_try='test -z "$ac_c_werror_flag"
50776                          || test ! -s conftest.err'
50777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50778   (eval $ac_try) 2>&5
50779   ac_status=$?
50780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50781   (exit $ac_status); }; } &&
50782          { ac_try='test -s conftest$ac_exeext'
50783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50784   (eval $ac_try) 2>&5
50785   ac_status=$?
50786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50787   (exit $ac_status); }; }; then
50788   eval "$as_ac_var=yes"
50789 else
50790   echo "$as_me: failed program was:" >&5
50791 sed 's/^/| /' conftest.$ac_ext >&5
50792
50793 eval "$as_ac_var=no"
50794 fi
50795 rm -f conftest.err conftest.$ac_objext \
50796       conftest$ac_exeext conftest.$ac_ext
50797 fi
50798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50800 if test `eval echo '${'$as_ac_var'}'` = yes; then
50801   cat >>confdefs.h <<_ACEOF
50802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50803 _ACEOF
50804
50805 else
50806   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
50807 fi
50808 done
50809
50810
50811 for ac_func in __signbitf
50812 do
50813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50814 echo "$as_me:$LINENO: checking for $ac_func" >&5
50815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50816 if eval "test \"\${$as_ac_var+set}\" = set"; then
50817   echo $ECHO_N "(cached) $ECHO_C" >&6
50818 else
50819   if test x$gcc_no_link = xyes; then
50820   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50821 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50822    { (exit 1); exit 1; }; }
50823 fi
50824 cat >conftest.$ac_ext <<_ACEOF
50825 /* confdefs.h.  */
50826 _ACEOF
50827 cat confdefs.h >>conftest.$ac_ext
50828 cat >>conftest.$ac_ext <<_ACEOF
50829 /* end confdefs.h.  */
50830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50832 #define $ac_func innocuous_$ac_func
50833
50834 /* System header to define __stub macros and hopefully few prototypes,
50835     which can conflict with char $ac_func (); below.
50836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50837     <limits.h> exists even on freestanding compilers.  */
50838
50839 #ifdef __STDC__
50840 # include <limits.h>
50841 #else
50842 # include <assert.h>
50843 #endif
50844
50845 #undef $ac_func
50846
50847 /* Override any gcc2 internal prototype to avoid an error.  */
50848 #ifdef __cplusplus
50849 extern "C"
50850 {
50851 #endif
50852 /* We use char because int might match the return type of a gcc2
50853    builtin and then its argument prototype would still apply.  */
50854 char $ac_func ();
50855 /* The GNU C library defines this for functions which it implements
50856     to always fail with ENOSYS.  Some functions are actually named
50857     something starting with __ and the normal name is an alias.  */
50858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50859 choke me
50860 #else
50861 char (*f) () = $ac_func;
50862 #endif
50863 #ifdef __cplusplus
50864 }
50865 #endif
50866
50867 int
50868 main ()
50869 {
50870 return f != $ac_func;
50871   ;
50872   return 0;
50873 }
50874 _ACEOF
50875 rm -f conftest.$ac_objext conftest$ac_exeext
50876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50877   (eval $ac_link) 2>conftest.er1
50878   ac_status=$?
50879   grep -v '^ *+' conftest.er1 >conftest.err
50880   rm -f conftest.er1
50881   cat conftest.err >&5
50882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50883   (exit $ac_status); } &&
50884          { ac_try='test -z "$ac_c_werror_flag"
50885                          || test ! -s conftest.err'
50886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50887   (eval $ac_try) 2>&5
50888   ac_status=$?
50889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50890   (exit $ac_status); }; } &&
50891          { ac_try='test -s conftest$ac_exeext'
50892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50893   (eval $ac_try) 2>&5
50894   ac_status=$?
50895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50896   (exit $ac_status); }; }; then
50897   eval "$as_ac_var=yes"
50898 else
50899   echo "$as_me: failed program was:" >&5
50900 sed 's/^/| /' conftest.$ac_ext >&5
50901
50902 eval "$as_ac_var=no"
50903 fi
50904 rm -f conftest.err conftest.$ac_objext \
50905       conftest$ac_exeext conftest.$ac_ext
50906 fi
50907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50909 if test `eval echo '${'$as_ac_var'}'` = yes; then
50910   cat >>confdefs.h <<_ACEOF
50911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50912 _ACEOF
50913
50914 else
50915   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
50916 fi
50917 done
50918
50919
50920           if test x$ac_cv_func_copysignl = x"yes"; then
50921
50922 for ac_func in __signbitl
50923 do
50924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50925 echo "$as_me:$LINENO: checking for $ac_func" >&5
50926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50927 if eval "test \"\${$as_ac_var+set}\" = set"; then
50928   echo $ECHO_N "(cached) $ECHO_C" >&6
50929 else
50930   if test x$gcc_no_link = xyes; then
50931   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50932 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50933    { (exit 1); exit 1; }; }
50934 fi
50935 cat >conftest.$ac_ext <<_ACEOF
50936 /* confdefs.h.  */
50937 _ACEOF
50938 cat confdefs.h >>conftest.$ac_ext
50939 cat >>conftest.$ac_ext <<_ACEOF
50940 /* end confdefs.h.  */
50941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50943 #define $ac_func innocuous_$ac_func
50944
50945 /* System header to define __stub macros and hopefully few prototypes,
50946     which can conflict with char $ac_func (); below.
50947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50948     <limits.h> exists even on freestanding compilers.  */
50949
50950 #ifdef __STDC__
50951 # include <limits.h>
50952 #else
50953 # include <assert.h>
50954 #endif
50955
50956 #undef $ac_func
50957
50958 /* Override any gcc2 internal prototype to avoid an error.  */
50959 #ifdef __cplusplus
50960 extern "C"
50961 {
50962 #endif
50963 /* We use char because int might match the return type of a gcc2
50964    builtin and then its argument prototype would still apply.  */
50965 char $ac_func ();
50966 /* The GNU C library defines this for functions which it implements
50967     to always fail with ENOSYS.  Some functions are actually named
50968     something starting with __ and the normal name is an alias.  */
50969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50970 choke me
50971 #else
50972 char (*f) () = $ac_func;
50973 #endif
50974 #ifdef __cplusplus
50975 }
50976 #endif
50977
50978 int
50979 main ()
50980 {
50981 return f != $ac_func;
50982   ;
50983   return 0;
50984 }
50985 _ACEOF
50986 rm -f conftest.$ac_objext conftest$ac_exeext
50987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50988   (eval $ac_link) 2>conftest.er1
50989   ac_status=$?
50990   grep -v '^ *+' conftest.er1 >conftest.err
50991   rm -f conftest.er1
50992   cat conftest.err >&5
50993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50994   (exit $ac_status); } &&
50995          { ac_try='test -z "$ac_c_werror_flag"
50996                          || test ! -s conftest.err'
50997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50998   (eval $ac_try) 2>&5
50999   ac_status=$?
51000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51001   (exit $ac_status); }; } &&
51002          { ac_try='test -s conftest$ac_exeext'
51003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51004   (eval $ac_try) 2>&5
51005   ac_status=$?
51006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51007   (exit $ac_status); }; }; then
51008   eval "$as_ac_var=yes"
51009 else
51010   echo "$as_me: failed program was:" >&5
51011 sed 's/^/| /' conftest.$ac_ext >&5
51012
51013 eval "$as_ac_var=no"
51014 fi
51015 rm -f conftest.err conftest.$ac_objext \
51016       conftest$ac_exeext conftest.$ac_ext
51017 fi
51018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51020 if test `eval echo '${'$as_ac_var'}'` = yes; then
51021   cat >>confdefs.h <<_ACEOF
51022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51023 _ACEOF
51024
51025 else
51026   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51027 fi
51028 done
51029
51030   fi
51031
51032   # XXX Review this.  Nothing uses it.
51033   if test -n "$LIBMATHOBJS"; then
51034     need_libmath=yes
51035   fi
51036
51037
51038
51039   # Test wchar.h for mbstate_t, which is needed for char_traits and
51040   # others even if wchar_t support is not on.
51041   echo "$as_me:$LINENO: checking for mbstate_t" >&5
51042 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51043   cat >conftest.$ac_ext <<_ACEOF
51044 /* confdefs.h.  */
51045 _ACEOF
51046 cat confdefs.h >>conftest.$ac_ext
51047 cat >>conftest.$ac_ext <<_ACEOF
51048 /* end confdefs.h.  */
51049 #include <wchar.h>
51050 int
51051 main ()
51052 {
51053 mbstate_t teststate;
51054   ;
51055   return 0;
51056 }
51057 _ACEOF
51058 rm -f conftest.$ac_objext
51059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51060   (eval $ac_compile) 2>conftest.er1
51061   ac_status=$?
51062   grep -v '^ *+' conftest.er1 >conftest.err
51063   rm -f conftest.er1
51064   cat conftest.err >&5
51065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51066   (exit $ac_status); } &&
51067          { ac_try='test -z "$ac_c_werror_flag"
51068                          || test ! -s conftest.err'
51069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51070   (eval $ac_try) 2>&5
51071   ac_status=$?
51072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51073   (exit $ac_status); }; } &&
51074          { ac_try='test -s conftest.$ac_objext'
51075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51076   (eval $ac_try) 2>&5
51077   ac_status=$?
51078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51079   (exit $ac_status); }; }; then
51080   have_mbstate_t=yes
51081 else
51082   echo "$as_me: failed program was:" >&5
51083 sed 's/^/| /' conftest.$ac_ext >&5
51084
51085 have_mbstate_t=no
51086 fi
51087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51088   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51089 echo "${ECHO_T}$have_mbstate_t" >&6
51090   if test x"$have_mbstate_t" = xyes; then
51091     cat >>confdefs.h <<\_ACEOF
51092 #define HAVE_MBSTATE_T 1
51093 _ACEOF
51094
51095   fi
51096
51097   # Sanity check for existence of ISO C99 headers for extended encoding.
51098
51099 for ac_header in wchar.h
51100 do
51101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51103   echo "$as_me:$LINENO: checking for $ac_header" >&5
51104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51106   echo $ECHO_N "(cached) $ECHO_C" >&6
51107 fi
51108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51110 else
51111   # Is the header compilable?
51112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51114 cat >conftest.$ac_ext <<_ACEOF
51115 /* confdefs.h.  */
51116 _ACEOF
51117 cat confdefs.h >>conftest.$ac_ext
51118 cat >>conftest.$ac_ext <<_ACEOF
51119 /* end confdefs.h.  */
51120 $ac_includes_default
51121 #include <$ac_header>
51122 _ACEOF
51123 rm -f conftest.$ac_objext
51124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51125   (eval $ac_compile) 2>conftest.er1
51126   ac_status=$?
51127   grep -v '^ *+' conftest.er1 >conftest.err
51128   rm -f conftest.er1
51129   cat conftest.err >&5
51130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51131   (exit $ac_status); } &&
51132          { ac_try='test -z "$ac_c_werror_flag"
51133                          || test ! -s conftest.err'
51134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51135   (eval $ac_try) 2>&5
51136   ac_status=$?
51137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51138   (exit $ac_status); }; } &&
51139          { ac_try='test -s conftest.$ac_objext'
51140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51141   (eval $ac_try) 2>&5
51142   ac_status=$?
51143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51144   (exit $ac_status); }; }; then
51145   ac_header_compiler=yes
51146 else
51147   echo "$as_me: failed program was:" >&5
51148 sed 's/^/| /' conftest.$ac_ext >&5
51149
51150 ac_header_compiler=no
51151 fi
51152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51154 echo "${ECHO_T}$ac_header_compiler" >&6
51155
51156 # Is the header present?
51157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51159 cat >conftest.$ac_ext <<_ACEOF
51160 /* confdefs.h.  */
51161 _ACEOF
51162 cat confdefs.h >>conftest.$ac_ext
51163 cat >>conftest.$ac_ext <<_ACEOF
51164 /* end confdefs.h.  */
51165 #include <$ac_header>
51166 _ACEOF
51167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51169   ac_status=$?
51170   grep -v '^ *+' conftest.er1 >conftest.err
51171   rm -f conftest.er1
51172   cat conftest.err >&5
51173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51174   (exit $ac_status); } >/dev/null; then
51175   if test -s conftest.err; then
51176     ac_cpp_err=$ac_c_preproc_warn_flag
51177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51178   else
51179     ac_cpp_err=
51180   fi
51181 else
51182   ac_cpp_err=yes
51183 fi
51184 if test -z "$ac_cpp_err"; then
51185   ac_header_preproc=yes
51186 else
51187   echo "$as_me: failed program was:" >&5
51188 sed 's/^/| /' conftest.$ac_ext >&5
51189
51190   ac_header_preproc=no
51191 fi
51192 rm -f conftest.err conftest.$ac_ext
51193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51194 echo "${ECHO_T}$ac_header_preproc" >&6
51195
51196 # So?  What about this header?
51197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51198   yes:no: )
51199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51203     ac_header_preproc=yes
51204     ;;
51205   no:yes:* )
51206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51218     (
51219       cat <<\_ASBOX
51220 ## ----------------------------------------- ##
51221 ## Report this to the package-unused lists.  ##
51222 ## ----------------------------------------- ##
51223 _ASBOX
51224     ) |
51225       sed "s/^/$as_me: WARNING:     /" >&2
51226     ;;
51227 esac
51228 echo "$as_me:$LINENO: checking for $ac_header" >&5
51229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51231   echo $ECHO_N "(cached) $ECHO_C" >&6
51232 else
51233   eval "$as_ac_Header=\$ac_header_preproc"
51234 fi
51235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51237
51238 fi
51239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51240   cat >>confdefs.h <<_ACEOF
51241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51242 _ACEOF
51243  ac_has_wchar_h=yes
51244 else
51245   ac_has_wchar_h=no
51246 fi
51247
51248 done
51249
51250
51251 for ac_header in wctype.h
51252 do
51253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51255   echo "$as_me:$LINENO: checking for $ac_header" >&5
51256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51258   echo $ECHO_N "(cached) $ECHO_C" >&6
51259 fi
51260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51262 else
51263   # Is the header compilable?
51264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51266 cat >conftest.$ac_ext <<_ACEOF
51267 /* confdefs.h.  */
51268 _ACEOF
51269 cat confdefs.h >>conftest.$ac_ext
51270 cat >>conftest.$ac_ext <<_ACEOF
51271 /* end confdefs.h.  */
51272 $ac_includes_default
51273 #include <$ac_header>
51274 _ACEOF
51275 rm -f conftest.$ac_objext
51276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51277   (eval $ac_compile) 2>conftest.er1
51278   ac_status=$?
51279   grep -v '^ *+' conftest.er1 >conftest.err
51280   rm -f conftest.er1
51281   cat conftest.err >&5
51282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51283   (exit $ac_status); } &&
51284          { ac_try='test -z "$ac_c_werror_flag"
51285                          || test ! -s conftest.err'
51286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51287   (eval $ac_try) 2>&5
51288   ac_status=$?
51289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51290   (exit $ac_status); }; } &&
51291          { ac_try='test -s conftest.$ac_objext'
51292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51293   (eval $ac_try) 2>&5
51294   ac_status=$?
51295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51296   (exit $ac_status); }; }; then
51297   ac_header_compiler=yes
51298 else
51299   echo "$as_me: failed program was:" >&5
51300 sed 's/^/| /' conftest.$ac_ext >&5
51301
51302 ac_header_compiler=no
51303 fi
51304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51306 echo "${ECHO_T}$ac_header_compiler" >&6
51307
51308 # Is the header present?
51309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51311 cat >conftest.$ac_ext <<_ACEOF
51312 /* confdefs.h.  */
51313 _ACEOF
51314 cat confdefs.h >>conftest.$ac_ext
51315 cat >>conftest.$ac_ext <<_ACEOF
51316 /* end confdefs.h.  */
51317 #include <$ac_header>
51318 _ACEOF
51319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51321   ac_status=$?
51322   grep -v '^ *+' conftest.er1 >conftest.err
51323   rm -f conftest.er1
51324   cat conftest.err >&5
51325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51326   (exit $ac_status); } >/dev/null; then
51327   if test -s conftest.err; then
51328     ac_cpp_err=$ac_c_preproc_warn_flag
51329     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51330   else
51331     ac_cpp_err=
51332   fi
51333 else
51334   ac_cpp_err=yes
51335 fi
51336 if test -z "$ac_cpp_err"; then
51337   ac_header_preproc=yes
51338 else
51339   echo "$as_me: failed program was:" >&5
51340 sed 's/^/| /' conftest.$ac_ext >&5
51341
51342   ac_header_preproc=no
51343 fi
51344 rm -f conftest.err conftest.$ac_ext
51345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51346 echo "${ECHO_T}$ac_header_preproc" >&6
51347
51348 # So?  What about this header?
51349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51350   yes:no: )
51351     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51355     ac_header_preproc=yes
51356     ;;
51357   no:yes:* )
51358     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51360     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51361 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51362     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51364     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51365 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51368     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51370     (
51371       cat <<\_ASBOX
51372 ## ----------------------------------------- ##
51373 ## Report this to the package-unused lists.  ##
51374 ## ----------------------------------------- ##
51375 _ASBOX
51376     ) |
51377       sed "s/^/$as_me: WARNING:     /" >&2
51378     ;;
51379 esac
51380 echo "$as_me:$LINENO: checking for $ac_header" >&5
51381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51383   echo $ECHO_N "(cached) $ECHO_C" >&6
51384 else
51385   eval "$as_ac_Header=\$ac_header_preproc"
51386 fi
51387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51389
51390 fi
51391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51392   cat >>confdefs.h <<_ACEOF
51393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51394 _ACEOF
51395  ac_has_wctype_h=yes
51396 else
51397   ac_has_wctype_h=no
51398 fi
51399
51400 done
51401
51402
51403   # Only continue checking if the ISO C99 headers exist and support is on.
51404   if test x"$ac_has_wchar_h" = xyes &&
51405      test x"$ac_has_wctype_h" = xyes &&
51406      test x"$enable_c_mbchar" != xno; then
51407
51408     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51409     # numeric_limits can instantiate type_traits<wchar_t>
51410     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51411 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51412     cat >conftest.$ac_ext <<_ACEOF
51413 /* confdefs.h.  */
51414 _ACEOF
51415 cat confdefs.h >>conftest.$ac_ext
51416 cat >>conftest.$ac_ext <<_ACEOF
51417 /* end confdefs.h.  */
51418 #include <wchar.h>
51419 int
51420 main ()
51421 {
51422 int i = WCHAR_MIN; int j = WCHAR_MAX;
51423   ;
51424   return 0;
51425 }
51426 _ACEOF
51427 rm -f conftest.$ac_objext
51428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51429   (eval $ac_compile) 2>conftest.er1
51430   ac_status=$?
51431   grep -v '^ *+' conftest.er1 >conftest.err
51432   rm -f conftest.er1
51433   cat conftest.err >&5
51434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51435   (exit $ac_status); } &&
51436          { ac_try='test -z "$ac_c_werror_flag"
51437                          || test ! -s conftest.err'
51438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51439   (eval $ac_try) 2>&5
51440   ac_status=$?
51441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51442   (exit $ac_status); }; } &&
51443          { ac_try='test -s conftest.$ac_objext'
51444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51445   (eval $ac_try) 2>&5
51446   ac_status=$?
51447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51448   (exit $ac_status); }; }; then
51449   has_wchar_minmax=yes
51450 else
51451   echo "$as_me: failed program was:" >&5
51452 sed 's/^/| /' conftest.$ac_ext >&5
51453
51454 has_wchar_minmax=no
51455 fi
51456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51457     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51458 echo "${ECHO_T}$has_wchar_minmax" >&6
51459
51460     # Test wchar.h for WEOF, which is what we use to determine whether
51461     # to specialize for char_traits<wchar_t> or not.
51462     echo "$as_me:$LINENO: checking for WEOF" >&5
51463 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51464     cat >conftest.$ac_ext <<_ACEOF
51465 /* confdefs.h.  */
51466 _ACEOF
51467 cat confdefs.h >>conftest.$ac_ext
51468 cat >>conftest.$ac_ext <<_ACEOF
51469 /* end confdefs.h.  */
51470
51471       #include <wchar.h>
51472       #include <stddef.h>
51473 int
51474 main ()
51475 {
51476 wint_t i = WEOF;
51477   ;
51478   return 0;
51479 }
51480 _ACEOF
51481 rm -f conftest.$ac_objext
51482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51483   (eval $ac_compile) 2>conftest.er1
51484   ac_status=$?
51485   grep -v '^ *+' conftest.er1 >conftest.err
51486   rm -f conftest.er1
51487   cat conftest.err >&5
51488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51489   (exit $ac_status); } &&
51490          { ac_try='test -z "$ac_c_werror_flag"
51491                          || test ! -s conftest.err'
51492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51493   (eval $ac_try) 2>&5
51494   ac_status=$?
51495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51496   (exit $ac_status); }; } &&
51497          { ac_try='test -s conftest.$ac_objext'
51498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51499   (eval $ac_try) 2>&5
51500   ac_status=$?
51501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51502   (exit $ac_status); }; }; then
51503   has_weof=yes
51504 else
51505   echo "$as_me: failed program was:" >&5
51506 sed 's/^/| /' conftest.$ac_ext >&5
51507
51508 has_weof=no
51509 fi
51510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51511     echo "$as_me:$LINENO: result: $has_weof" >&5
51512 echo "${ECHO_T}$has_weof" >&6
51513
51514     # Tests for wide character functions used in char_traits<wchar_t>.
51515     ac_wfuncs=yes
51516
51517
51518
51519
51520
51521
51522 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
51523 do
51524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51525 echo "$as_me:$LINENO: checking for $ac_func" >&5
51526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51527 if eval "test \"\${$as_ac_var+set}\" = set"; then
51528   echo $ECHO_N "(cached) $ECHO_C" >&6
51529 else
51530   if test x$gcc_no_link = xyes; then
51531   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51533    { (exit 1); exit 1; }; }
51534 fi
51535 cat >conftest.$ac_ext <<_ACEOF
51536 /* confdefs.h.  */
51537 _ACEOF
51538 cat confdefs.h >>conftest.$ac_ext
51539 cat >>conftest.$ac_ext <<_ACEOF
51540 /* end confdefs.h.  */
51541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51543 #define $ac_func innocuous_$ac_func
51544
51545 /* System header to define __stub macros and hopefully few prototypes,
51546     which can conflict with char $ac_func (); below.
51547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51548     <limits.h> exists even on freestanding compilers.  */
51549
51550 #ifdef __STDC__
51551 # include <limits.h>
51552 #else
51553 # include <assert.h>
51554 #endif
51555
51556 #undef $ac_func
51557
51558 /* Override any gcc2 internal prototype to avoid an error.  */
51559 #ifdef __cplusplus
51560 extern "C"
51561 {
51562 #endif
51563 /* We use char because int might match the return type of a gcc2
51564    builtin and then its argument prototype would still apply.  */
51565 char $ac_func ();
51566 /* The GNU C library defines this for functions which it implements
51567     to always fail with ENOSYS.  Some functions are actually named
51568     something starting with __ and the normal name is an alias.  */
51569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51570 choke me
51571 #else
51572 char (*f) () = $ac_func;
51573 #endif
51574 #ifdef __cplusplus
51575 }
51576 #endif
51577
51578 int
51579 main ()
51580 {
51581 return f != $ac_func;
51582   ;
51583   return 0;
51584 }
51585 _ACEOF
51586 rm -f conftest.$ac_objext conftest$ac_exeext
51587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51588   (eval $ac_link) 2>conftest.er1
51589   ac_status=$?
51590   grep -v '^ *+' conftest.er1 >conftest.err
51591   rm -f conftest.er1
51592   cat conftest.err >&5
51593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51594   (exit $ac_status); } &&
51595          { ac_try='test -z "$ac_c_werror_flag"
51596                          || test ! -s conftest.err'
51597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51598   (eval $ac_try) 2>&5
51599   ac_status=$?
51600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51601   (exit $ac_status); }; } &&
51602          { ac_try='test -s conftest$ac_exeext'
51603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51604   (eval $ac_try) 2>&5
51605   ac_status=$?
51606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51607   (exit $ac_status); }; }; then
51608   eval "$as_ac_var=yes"
51609 else
51610   echo "$as_me: failed program was:" >&5
51611 sed 's/^/| /' conftest.$ac_ext >&5
51612
51613 eval "$as_ac_var=no"
51614 fi
51615 rm -f conftest.err conftest.$ac_objext \
51616       conftest$ac_exeext conftest.$ac_ext
51617 fi
51618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51620 if test `eval echo '${'$as_ac_var'}'` = yes; then
51621   cat >>confdefs.h <<_ACEOF
51622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51623 _ACEOF
51624
51625 else
51626   ac_wfuncs=no
51627 fi
51628 done
51629
51630
51631     # Checks for names injected into std:: by the c_std headers.
51632
51633
51634
51635
51636
51637
51638
51639
51640
51641
51642
51643
51644
51645
51646
51647
51648
51649
51650
51651
51652
51653
51654
51655
51656
51657
51658
51659
51660
51661
51662
51663
51664
51665
51666
51667
51668
51669
51670
51671
51672
51673
51674
51675
51676
51677
51678 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51679     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
51680     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51681     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
51682     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51683     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51684 do
51685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51686 echo "$as_me:$LINENO: checking for $ac_func" >&5
51687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51688 if eval "test \"\${$as_ac_var+set}\" = set"; then
51689   echo $ECHO_N "(cached) $ECHO_C" >&6
51690 else
51691   if test x$gcc_no_link = xyes; then
51692   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51694    { (exit 1); exit 1; }; }
51695 fi
51696 cat >conftest.$ac_ext <<_ACEOF
51697 /* confdefs.h.  */
51698 _ACEOF
51699 cat confdefs.h >>conftest.$ac_ext
51700 cat >>conftest.$ac_ext <<_ACEOF
51701 /* end confdefs.h.  */
51702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51704 #define $ac_func innocuous_$ac_func
51705
51706 /* System header to define __stub macros and hopefully few prototypes,
51707     which can conflict with char $ac_func (); below.
51708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51709     <limits.h> exists even on freestanding compilers.  */
51710
51711 #ifdef __STDC__
51712 # include <limits.h>
51713 #else
51714 # include <assert.h>
51715 #endif
51716
51717 #undef $ac_func
51718
51719 /* Override any gcc2 internal prototype to avoid an error.  */
51720 #ifdef __cplusplus
51721 extern "C"
51722 {
51723 #endif
51724 /* We use char because int might match the return type of a gcc2
51725    builtin and then its argument prototype would still apply.  */
51726 char $ac_func ();
51727 /* The GNU C library defines this for functions which it implements
51728     to always fail with ENOSYS.  Some functions are actually named
51729     something starting with __ and the normal name is an alias.  */
51730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51731 choke me
51732 #else
51733 char (*f) () = $ac_func;
51734 #endif
51735 #ifdef __cplusplus
51736 }
51737 #endif
51738
51739 int
51740 main ()
51741 {
51742 return f != $ac_func;
51743   ;
51744   return 0;
51745 }
51746 _ACEOF
51747 rm -f conftest.$ac_objext conftest$ac_exeext
51748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51749   (eval $ac_link) 2>conftest.er1
51750   ac_status=$?
51751   grep -v '^ *+' conftest.er1 >conftest.err
51752   rm -f conftest.er1
51753   cat conftest.err >&5
51754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51755   (exit $ac_status); } &&
51756          { ac_try='test -z "$ac_c_werror_flag"
51757                          || test ! -s conftest.err'
51758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51759   (eval $ac_try) 2>&5
51760   ac_status=$?
51761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51762   (exit $ac_status); }; } &&
51763          { ac_try='test -s conftest$ac_exeext'
51764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51765   (eval $ac_try) 2>&5
51766   ac_status=$?
51767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51768   (exit $ac_status); }; }; then
51769   eval "$as_ac_var=yes"
51770 else
51771   echo "$as_me: failed program was:" >&5
51772 sed 's/^/| /' conftest.$ac_ext >&5
51773
51774 eval "$as_ac_var=no"
51775 fi
51776 rm -f conftest.err conftest.$ac_objext \
51777       conftest$ac_exeext conftest.$ac_ext
51778 fi
51779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51781 if test `eval echo '${'$as_ac_var'}'` = yes; then
51782   cat >>confdefs.h <<_ACEOF
51783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51784 _ACEOF
51785
51786 else
51787   ac_wfuncs=no
51788 fi
51789 done
51790
51791
51792     # Checks for wide character functions that are not required
51793     # for basic wchar_t support.  Don't disable support if they are missing.
51794     # Injection of these is wrapped with guard macros.
51795
51796
51797
51798
51799
51800 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
51801 do
51802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51803 echo "$as_me:$LINENO: checking for $ac_func" >&5
51804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51805 if eval "test \"\${$as_ac_var+set}\" = set"; then
51806   echo $ECHO_N "(cached) $ECHO_C" >&6
51807 else
51808   if test x$gcc_no_link = xyes; then
51809   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51811    { (exit 1); exit 1; }; }
51812 fi
51813 cat >conftest.$ac_ext <<_ACEOF
51814 /* confdefs.h.  */
51815 _ACEOF
51816 cat confdefs.h >>conftest.$ac_ext
51817 cat >>conftest.$ac_ext <<_ACEOF
51818 /* end confdefs.h.  */
51819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51821 #define $ac_func innocuous_$ac_func
51822
51823 /* System header to define __stub macros and hopefully few prototypes,
51824     which can conflict with char $ac_func (); below.
51825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51826     <limits.h> exists even on freestanding compilers.  */
51827
51828 #ifdef __STDC__
51829 # include <limits.h>
51830 #else
51831 # include <assert.h>
51832 #endif
51833
51834 #undef $ac_func
51835
51836 /* Override any gcc2 internal prototype to avoid an error.  */
51837 #ifdef __cplusplus
51838 extern "C"
51839 {
51840 #endif
51841 /* We use char because int might match the return type of a gcc2
51842    builtin and then its argument prototype would still apply.  */
51843 char $ac_func ();
51844 /* The GNU C library defines this for functions which it implements
51845     to always fail with ENOSYS.  Some functions are actually named
51846     something starting with __ and the normal name is an alias.  */
51847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51848 choke me
51849 #else
51850 char (*f) () = $ac_func;
51851 #endif
51852 #ifdef __cplusplus
51853 }
51854 #endif
51855
51856 int
51857 main ()
51858 {
51859 return f != $ac_func;
51860   ;
51861   return 0;
51862 }
51863 _ACEOF
51864 rm -f conftest.$ac_objext conftest$ac_exeext
51865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51866   (eval $ac_link) 2>conftest.er1
51867   ac_status=$?
51868   grep -v '^ *+' conftest.er1 >conftest.err
51869   rm -f conftest.er1
51870   cat conftest.err >&5
51871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51872   (exit $ac_status); } &&
51873          { ac_try='test -z "$ac_c_werror_flag"
51874                          || test ! -s conftest.err'
51875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51876   (eval $ac_try) 2>&5
51877   ac_status=$?
51878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51879   (exit $ac_status); }; } &&
51880          { ac_try='test -s conftest$ac_exeext'
51881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51882   (eval $ac_try) 2>&5
51883   ac_status=$?
51884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51885   (exit $ac_status); }; }; then
51886   eval "$as_ac_var=yes"
51887 else
51888   echo "$as_me: failed program was:" >&5
51889 sed 's/^/| /' conftest.$ac_ext >&5
51890
51891 eval "$as_ac_var=no"
51892 fi
51893 rm -f conftest.err conftest.$ac_objext \
51894       conftest$ac_exeext conftest.$ac_ext
51895 fi
51896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51898 if test `eval echo '${'$as_ac_var'}'` = yes; then
51899   cat >>confdefs.h <<_ACEOF
51900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51901 _ACEOF
51902
51903 fi
51904 done
51905
51906
51907     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
51908 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
51909     if test x"$has_weof" = xyes &&
51910        test x"$has_wchar_minmax" = xyes &&
51911        test x"$ac_wfuncs" = xyes;
51912     then
51913       ac_isoC99_wchar_t=yes
51914     else
51915       ac_isoC99_wchar_t=no
51916     fi
51917     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
51918 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
51919
51920     # Use iconv for wchar_t to char conversions. As such, check for
51921     # X/Open Portability Guide, version 2 features (XPG2).
51922     if test "${ac_cv_header_iconv_h+set}" = set; then
51923   echo "$as_me:$LINENO: checking for iconv.h" >&5
51924 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51925 if test "${ac_cv_header_iconv_h+set}" = set; then
51926   echo $ECHO_N "(cached) $ECHO_C" >&6
51927 fi
51928 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51929 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51930 else
51931   # Is the header compilable?
51932 echo "$as_me:$LINENO: checking iconv.h usability" >&5
51933 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
51934 cat >conftest.$ac_ext <<_ACEOF
51935 /* confdefs.h.  */
51936 _ACEOF
51937 cat confdefs.h >>conftest.$ac_ext
51938 cat >>conftest.$ac_ext <<_ACEOF
51939 /* end confdefs.h.  */
51940 $ac_includes_default
51941 #include <iconv.h>
51942 _ACEOF
51943 rm -f conftest.$ac_objext
51944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51945   (eval $ac_compile) 2>conftest.er1
51946   ac_status=$?
51947   grep -v '^ *+' conftest.er1 >conftest.err
51948   rm -f conftest.er1
51949   cat conftest.err >&5
51950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51951   (exit $ac_status); } &&
51952          { ac_try='test -z "$ac_c_werror_flag"
51953                          || test ! -s conftest.err'
51954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51955   (eval $ac_try) 2>&5
51956   ac_status=$?
51957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51958   (exit $ac_status); }; } &&
51959          { ac_try='test -s conftest.$ac_objext'
51960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51961   (eval $ac_try) 2>&5
51962   ac_status=$?
51963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51964   (exit $ac_status); }; }; then
51965   ac_header_compiler=yes
51966 else
51967   echo "$as_me: failed program was:" >&5
51968 sed 's/^/| /' conftest.$ac_ext >&5
51969
51970 ac_header_compiler=no
51971 fi
51972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51974 echo "${ECHO_T}$ac_header_compiler" >&6
51975
51976 # Is the header present?
51977 echo "$as_me:$LINENO: checking iconv.h presence" >&5
51978 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
51979 cat >conftest.$ac_ext <<_ACEOF
51980 /* confdefs.h.  */
51981 _ACEOF
51982 cat confdefs.h >>conftest.$ac_ext
51983 cat >>conftest.$ac_ext <<_ACEOF
51984 /* end confdefs.h.  */
51985 #include <iconv.h>
51986 _ACEOF
51987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51989   ac_status=$?
51990   grep -v '^ *+' conftest.er1 >conftest.err
51991   rm -f conftest.er1
51992   cat conftest.err >&5
51993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51994   (exit $ac_status); } >/dev/null; then
51995   if test -s conftest.err; then
51996     ac_cpp_err=$ac_c_preproc_warn_flag
51997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51998   else
51999     ac_cpp_err=
52000   fi
52001 else
52002   ac_cpp_err=yes
52003 fi
52004 if test -z "$ac_cpp_err"; then
52005   ac_header_preproc=yes
52006 else
52007   echo "$as_me: failed program was:" >&5
52008 sed 's/^/| /' conftest.$ac_ext >&5
52009
52010   ac_header_preproc=no
52011 fi
52012 rm -f conftest.err conftest.$ac_ext
52013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52014 echo "${ECHO_T}$ac_header_preproc" >&6
52015
52016 # So?  What about this header?
52017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52018   yes:no: )
52019     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52020 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52021     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
52022 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
52023     ac_header_preproc=yes
52024     ;;
52025   no:yes:* )
52026     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52027 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52028     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
52029 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
52030     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
52031 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
52032     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
52033 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
52034     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52035 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52036     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
52037 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
52038     (
52039       cat <<\_ASBOX
52040 ## ----------------------------------------- ##
52041 ## Report this to the package-unused lists.  ##
52042 ## ----------------------------------------- ##
52043 _ASBOX
52044     ) |
52045       sed "s/^/$as_me: WARNING:     /" >&2
52046     ;;
52047 esac
52048 echo "$as_me:$LINENO: checking for iconv.h" >&5
52049 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52050 if test "${ac_cv_header_iconv_h+set}" = set; then
52051   echo $ECHO_N "(cached) $ECHO_C" >&6
52052 else
52053   ac_cv_header_iconv_h=$ac_header_preproc
52054 fi
52055 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52056 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52057
52058 fi
52059 if test $ac_cv_header_iconv_h = yes; then
52060   ac_has_iconv_h=yes
52061 else
52062   ac_has_iconv_h=no
52063 fi
52064
52065
52066     if test "${ac_cv_header_langinfo_h+set}" = set; then
52067   echo "$as_me:$LINENO: checking for langinfo.h" >&5
52068 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52069 if test "${ac_cv_header_langinfo_h+set}" = set; then
52070   echo $ECHO_N "(cached) $ECHO_C" >&6
52071 fi
52072 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52073 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52074 else
52075   # Is the header compilable?
52076 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52077 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52078 cat >conftest.$ac_ext <<_ACEOF
52079 /* confdefs.h.  */
52080 _ACEOF
52081 cat confdefs.h >>conftest.$ac_ext
52082 cat >>conftest.$ac_ext <<_ACEOF
52083 /* end confdefs.h.  */
52084 $ac_includes_default
52085 #include <langinfo.h>
52086 _ACEOF
52087 rm -f conftest.$ac_objext
52088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52089   (eval $ac_compile) 2>conftest.er1
52090   ac_status=$?
52091   grep -v '^ *+' conftest.er1 >conftest.err
52092   rm -f conftest.er1
52093   cat conftest.err >&5
52094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52095   (exit $ac_status); } &&
52096          { ac_try='test -z "$ac_c_werror_flag"
52097                          || test ! -s conftest.err'
52098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52099   (eval $ac_try) 2>&5
52100   ac_status=$?
52101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52102   (exit $ac_status); }; } &&
52103          { ac_try='test -s conftest.$ac_objext'
52104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52105   (eval $ac_try) 2>&5
52106   ac_status=$?
52107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52108   (exit $ac_status); }; }; then
52109   ac_header_compiler=yes
52110 else
52111   echo "$as_me: failed program was:" >&5
52112 sed 's/^/| /' conftest.$ac_ext >&5
52113
52114 ac_header_compiler=no
52115 fi
52116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52118 echo "${ECHO_T}$ac_header_compiler" >&6
52119
52120 # Is the header present?
52121 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52122 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52123 cat >conftest.$ac_ext <<_ACEOF
52124 /* confdefs.h.  */
52125 _ACEOF
52126 cat confdefs.h >>conftest.$ac_ext
52127 cat >>conftest.$ac_ext <<_ACEOF
52128 /* end confdefs.h.  */
52129 #include <langinfo.h>
52130 _ACEOF
52131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52133   ac_status=$?
52134   grep -v '^ *+' conftest.er1 >conftest.err
52135   rm -f conftest.er1
52136   cat conftest.err >&5
52137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52138   (exit $ac_status); } >/dev/null; then
52139   if test -s conftest.err; then
52140     ac_cpp_err=$ac_c_preproc_warn_flag
52141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52142   else
52143     ac_cpp_err=
52144   fi
52145 else
52146   ac_cpp_err=yes
52147 fi
52148 if test -z "$ac_cpp_err"; then
52149   ac_header_preproc=yes
52150 else
52151   echo "$as_me: failed program was:" >&5
52152 sed 's/^/| /' conftest.$ac_ext >&5
52153
52154   ac_header_preproc=no
52155 fi
52156 rm -f conftest.err conftest.$ac_ext
52157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52158 echo "${ECHO_T}$ac_header_preproc" >&6
52159
52160 # So?  What about this header?
52161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52162   yes:no: )
52163     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52164 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52165     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
52166 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
52167     ac_header_preproc=yes
52168     ;;
52169   no:yes:* )
52170     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52171 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52172     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
52173 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
52174     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
52175 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
52176     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
52177 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
52178     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52179 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52180     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
52181 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
52182     (
52183       cat <<\_ASBOX
52184 ## ----------------------------------------- ##
52185 ## Report this to the package-unused lists.  ##
52186 ## ----------------------------------------- ##
52187 _ASBOX
52188     ) |
52189       sed "s/^/$as_me: WARNING:     /" >&2
52190     ;;
52191 esac
52192 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52193 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52194 if test "${ac_cv_header_langinfo_h+set}" = set; then
52195   echo $ECHO_N "(cached) $ECHO_C" >&6
52196 else
52197   ac_cv_header_langinfo_h=$ac_header_preproc
52198 fi
52199 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52200 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52201
52202 fi
52203 if test $ac_cv_header_langinfo_h = yes; then
52204   ac_has_langinfo_h=yes
52205 else
52206   ac_has_langinfo_h=no
52207 fi
52208
52209
52210
52211     # Check for existence of libiconv.a providing XPG2 wchar_t support.
52212     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52213 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52214 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52215   echo $ECHO_N "(cached) $ECHO_C" >&6
52216 else
52217   ac_check_lib_save_LIBS=$LIBS
52218 LIBS="-liconv  $LIBS"
52219 if test x$gcc_no_link = xyes; then
52220   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52222    { (exit 1); exit 1; }; }
52223 fi
52224 cat >conftest.$ac_ext <<_ACEOF
52225 /* confdefs.h.  */
52226 _ACEOF
52227 cat confdefs.h >>conftest.$ac_ext
52228 cat >>conftest.$ac_ext <<_ACEOF
52229 /* end confdefs.h.  */
52230
52231 /* Override any gcc2 internal prototype to avoid an error.  */
52232 #ifdef __cplusplus
52233 extern "C"
52234 #endif
52235 /* We use char because int might match the return type of a gcc2
52236    builtin and then its argument prototype would still apply.  */
52237 char iconv ();
52238 int
52239 main ()
52240 {
52241 iconv ();
52242   ;
52243   return 0;
52244 }
52245 _ACEOF
52246 rm -f conftest.$ac_objext conftest$ac_exeext
52247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52248   (eval $ac_link) 2>conftest.er1
52249   ac_status=$?
52250   grep -v '^ *+' conftest.er1 >conftest.err
52251   rm -f conftest.er1
52252   cat conftest.err >&5
52253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52254   (exit $ac_status); } &&
52255          { ac_try='test -z "$ac_c_werror_flag"
52256                          || test ! -s conftest.err'
52257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52258   (eval $ac_try) 2>&5
52259   ac_status=$?
52260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52261   (exit $ac_status); }; } &&
52262          { ac_try='test -s conftest$ac_exeext'
52263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52264   (eval $ac_try) 2>&5
52265   ac_status=$?
52266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52267   (exit $ac_status); }; }; then
52268   ac_cv_lib_iconv_iconv=yes
52269 else
52270   echo "$as_me: failed program was:" >&5
52271 sed 's/^/| /' conftest.$ac_ext >&5
52272
52273 ac_cv_lib_iconv_iconv=no
52274 fi
52275 rm -f conftest.err conftest.$ac_objext \
52276       conftest$ac_exeext conftest.$ac_ext
52277 LIBS=$ac_check_lib_save_LIBS
52278 fi
52279 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52280 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52281 if test $ac_cv_lib_iconv_iconv = yes; then
52282   libiconv="-liconv"
52283 fi
52284
52285     ac_save_LIBS="$LIBS"
52286     LIBS="$LIBS $libiconv"
52287
52288
52289
52290
52291
52292 for ac_func in iconv_open iconv_close iconv nl_langinfo
52293 do
52294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52295 echo "$as_me:$LINENO: checking for $ac_func" >&5
52296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52297 if eval "test \"\${$as_ac_var+set}\" = set"; then
52298   echo $ECHO_N "(cached) $ECHO_C" >&6
52299 else
52300   if test x$gcc_no_link = xyes; then
52301   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52303    { (exit 1); exit 1; }; }
52304 fi
52305 cat >conftest.$ac_ext <<_ACEOF
52306 /* confdefs.h.  */
52307 _ACEOF
52308 cat confdefs.h >>conftest.$ac_ext
52309 cat >>conftest.$ac_ext <<_ACEOF
52310 /* end confdefs.h.  */
52311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52313 #define $ac_func innocuous_$ac_func
52314
52315 /* System header to define __stub macros and hopefully few prototypes,
52316     which can conflict with char $ac_func (); below.
52317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52318     <limits.h> exists even on freestanding compilers.  */
52319
52320 #ifdef __STDC__
52321 # include <limits.h>
52322 #else
52323 # include <assert.h>
52324 #endif
52325
52326 #undef $ac_func
52327
52328 /* Override any gcc2 internal prototype to avoid an error.  */
52329 #ifdef __cplusplus
52330 extern "C"
52331 {
52332 #endif
52333 /* We use char because int might match the return type of a gcc2
52334    builtin and then its argument prototype would still apply.  */
52335 char $ac_func ();
52336 /* The GNU C library defines this for functions which it implements
52337     to always fail with ENOSYS.  Some functions are actually named
52338     something starting with __ and the normal name is an alias.  */
52339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52340 choke me
52341 #else
52342 char (*f) () = $ac_func;
52343 #endif
52344 #ifdef __cplusplus
52345 }
52346 #endif
52347
52348 int
52349 main ()
52350 {
52351 return f != $ac_func;
52352   ;
52353   return 0;
52354 }
52355 _ACEOF
52356 rm -f conftest.$ac_objext conftest$ac_exeext
52357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52358   (eval $ac_link) 2>conftest.er1
52359   ac_status=$?
52360   grep -v '^ *+' conftest.er1 >conftest.err
52361   rm -f conftest.er1
52362   cat conftest.err >&5
52363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52364   (exit $ac_status); } &&
52365          { ac_try='test -z "$ac_c_werror_flag"
52366                          || test ! -s conftest.err'
52367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52368   (eval $ac_try) 2>&5
52369   ac_status=$?
52370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52371   (exit $ac_status); }; } &&
52372          { ac_try='test -s conftest$ac_exeext'
52373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52374   (eval $ac_try) 2>&5
52375   ac_status=$?
52376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52377   (exit $ac_status); }; }; then
52378   eval "$as_ac_var=yes"
52379 else
52380   echo "$as_me: failed program was:" >&5
52381 sed 's/^/| /' conftest.$ac_ext >&5
52382
52383 eval "$as_ac_var=no"
52384 fi
52385 rm -f conftest.err conftest.$ac_objext \
52386       conftest$ac_exeext conftest.$ac_ext
52387 fi
52388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52390 if test `eval echo '${'$as_ac_var'}'` = yes; then
52391   cat >>confdefs.h <<_ACEOF
52392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52393 _ACEOF
52394  ac_XPG2funcs=yes
52395 else
52396   ac_XPG2funcs=no
52397 fi
52398 done
52399
52400
52401     LIBS="$ac_save_LIBS"
52402
52403     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52404 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52405     if test x"$ac_has_iconv_h" = xyes &&
52406        test x"$ac_has_langinfo_h" = xyes &&
52407        test x"$ac_XPG2funcs" = xyes;
52408     then
52409       ac_XPG2_wchar_t=yes
52410     else
52411       ac_XPG2_wchar_t=no
52412     fi
52413     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52414 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52415
52416     # At the moment, only enable wchar_t specializations if all the
52417     # above support is present.
52418     if test x"$ac_isoC99_wchar_t" = xyes &&
52419        test x"$ac_XPG2_wchar_t" = xyes;
52420     then
52421       cat >>confdefs.h <<\_ACEOF
52422 #define _GLIBCXX_USE_WCHAR_T 1
52423 _ACEOF
52424
52425       enable_wchar_t=yes
52426     fi
52427   fi
52428   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52429 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52430   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52431 echo "${ECHO_T}$enable_wchar_t" >&6
52432
52433
52434   ac_test_CXXFLAGS="${CXXFLAGS+set}"
52435   ac_save_CXXFLAGS="$CXXFLAGS"
52436   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
52437
52438
52439   echo "$as_me:$LINENO: checking for strtold declaration" >&5
52440 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
52441   if test x${glibcxx_cv_func_strtold_use+set} != xset; then
52442     if test "${glibcxx_cv_func_strtold_use+set}" = set; then
52443   echo $ECHO_N "(cached) $ECHO_C" >&6
52444 else
52445
52446
52447
52448       ac_ext=cc
52449 ac_cpp='$CXXCPP $CPPFLAGS'
52450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52453
52454       cat >conftest.$ac_ext <<_ACEOF
52455 /* confdefs.h.  */
52456 _ACEOF
52457 cat confdefs.h >>conftest.$ac_ext
52458 cat >>conftest.$ac_ext <<_ACEOF
52459 /* end confdefs.h.  */
52460 #include <stdlib.h>
52461 int
52462 main ()
52463 {
52464  strtold(0, 0);
52465   ;
52466   return 0;
52467 }
52468 _ACEOF
52469 rm -f conftest.$ac_objext
52470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52471   (eval $ac_compile) 2>conftest.er1
52472   ac_status=$?
52473   grep -v '^ *+' conftest.er1 >conftest.err
52474   rm -f conftest.er1
52475   cat conftest.err >&5
52476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52477   (exit $ac_status); } &&
52478          { ac_try='test -z "$ac_cxx_werror_flag"
52479                          || test ! -s conftest.err'
52480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52481   (eval $ac_try) 2>&5
52482   ac_status=$?
52483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52484   (exit $ac_status); }; } &&
52485          { ac_try='test -s conftest.$ac_objext'
52486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52487   (eval $ac_try) 2>&5
52488   ac_status=$?
52489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52490   (exit $ac_status); }; }; then
52491   glibcxx_cv_func_strtold_use=yes
52492 else
52493   echo "$as_me: failed program was:" >&5
52494 sed 's/^/| /' conftest.$ac_ext >&5
52495
52496 glibcxx_cv_func_strtold_use=no
52497 fi
52498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52499       ac_ext=c
52500 ac_cpp='$CPP $CPPFLAGS'
52501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52504
52505
52506 fi
52507
52508   fi
52509   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
52510 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
52511   if test x$glibcxx_cv_func_strtold_use = x"yes"; then
52512
52513 for ac_func in strtold
52514 do
52515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52516 echo "$as_me:$LINENO: checking for $ac_func" >&5
52517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52518 if eval "test \"\${$as_ac_var+set}\" = set"; then
52519   echo $ECHO_N "(cached) $ECHO_C" >&6
52520 else
52521   if test x$gcc_no_link = xyes; then
52522   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52523 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52524    { (exit 1); exit 1; }; }
52525 fi
52526 cat >conftest.$ac_ext <<_ACEOF
52527 /* confdefs.h.  */
52528 _ACEOF
52529 cat confdefs.h >>conftest.$ac_ext
52530 cat >>conftest.$ac_ext <<_ACEOF
52531 /* end confdefs.h.  */
52532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52534 #define $ac_func innocuous_$ac_func
52535
52536 /* System header to define __stub macros and hopefully few prototypes,
52537     which can conflict with char $ac_func (); below.
52538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52539     <limits.h> exists even on freestanding compilers.  */
52540
52541 #ifdef __STDC__
52542 # include <limits.h>
52543 #else
52544 # include <assert.h>
52545 #endif
52546
52547 #undef $ac_func
52548
52549 /* Override any gcc2 internal prototype to avoid an error.  */
52550 #ifdef __cplusplus
52551 extern "C"
52552 {
52553 #endif
52554 /* We use char because int might match the return type of a gcc2
52555    builtin and then its argument prototype would still apply.  */
52556 char $ac_func ();
52557 /* The GNU C library defines this for functions which it implements
52558     to always fail with ENOSYS.  Some functions are actually named
52559     something starting with __ and the normal name is an alias.  */
52560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52561 choke me
52562 #else
52563 char (*f) () = $ac_func;
52564 #endif
52565 #ifdef __cplusplus
52566 }
52567 #endif
52568
52569 int
52570 main ()
52571 {
52572 return f != $ac_func;
52573   ;
52574   return 0;
52575 }
52576 _ACEOF
52577 rm -f conftest.$ac_objext conftest$ac_exeext
52578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52579   (eval $ac_link) 2>conftest.er1
52580   ac_status=$?
52581   grep -v '^ *+' conftest.er1 >conftest.err
52582   rm -f conftest.er1
52583   cat conftest.err >&5
52584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52585   (exit $ac_status); } &&
52586          { ac_try='test -z "$ac_c_werror_flag"
52587                          || test ! -s conftest.err'
52588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52589   (eval $ac_try) 2>&5
52590   ac_status=$?
52591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52592   (exit $ac_status); }; } &&
52593          { ac_try='test -s conftest$ac_exeext'
52594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52595   (eval $ac_try) 2>&5
52596   ac_status=$?
52597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52598   (exit $ac_status); }; }; then
52599   eval "$as_ac_var=yes"
52600 else
52601   echo "$as_me: failed program was:" >&5
52602 sed 's/^/| /' conftest.$ac_ext >&5
52603
52604 eval "$as_ac_var=no"
52605 fi
52606 rm -f conftest.err conftest.$ac_objext \
52607       conftest$ac_exeext conftest.$ac_ext
52608 fi
52609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52611 if test `eval echo '${'$as_ac_var'}'` = yes; then
52612   cat >>confdefs.h <<_ACEOF
52613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52614 _ACEOF
52615
52616 fi
52617 done
52618
52619   fi
52620
52621
52622   echo "$as_me:$LINENO: checking for strtof declaration" >&5
52623 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
52624   if test x${glibcxx_cv_func_strtof_use+set} != xset; then
52625     if test "${glibcxx_cv_func_strtof_use+set}" = set; then
52626   echo $ECHO_N "(cached) $ECHO_C" >&6
52627 else
52628
52629
52630
52631       ac_ext=cc
52632 ac_cpp='$CXXCPP $CPPFLAGS'
52633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52636
52637       cat >conftest.$ac_ext <<_ACEOF
52638 /* confdefs.h.  */
52639 _ACEOF
52640 cat confdefs.h >>conftest.$ac_ext
52641 cat >>conftest.$ac_ext <<_ACEOF
52642 /* end confdefs.h.  */
52643 #include <stdlib.h>
52644 int
52645 main ()
52646 {
52647  strtof(0, 0);
52648   ;
52649   return 0;
52650 }
52651 _ACEOF
52652 rm -f conftest.$ac_objext
52653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52654   (eval $ac_compile) 2>conftest.er1
52655   ac_status=$?
52656   grep -v '^ *+' conftest.er1 >conftest.err
52657   rm -f conftest.er1
52658   cat conftest.err >&5
52659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52660   (exit $ac_status); } &&
52661          { ac_try='test -z "$ac_cxx_werror_flag"
52662                          || test ! -s conftest.err'
52663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52664   (eval $ac_try) 2>&5
52665   ac_status=$?
52666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52667   (exit $ac_status); }; } &&
52668          { ac_try='test -s conftest.$ac_objext'
52669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52670   (eval $ac_try) 2>&5
52671   ac_status=$?
52672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52673   (exit $ac_status); }; }; then
52674   glibcxx_cv_func_strtof_use=yes
52675 else
52676   echo "$as_me: failed program was:" >&5
52677 sed 's/^/| /' conftest.$ac_ext >&5
52678
52679 glibcxx_cv_func_strtof_use=no
52680 fi
52681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52682       ac_ext=c
52683 ac_cpp='$CPP $CPPFLAGS'
52684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52687
52688
52689 fi
52690
52691   fi
52692   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
52693 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
52694   if test x$glibcxx_cv_func_strtof_use = x"yes"; then
52695
52696 for ac_func in strtof
52697 do
52698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52699 echo "$as_me:$LINENO: checking for $ac_func" >&5
52700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52701 if eval "test \"\${$as_ac_var+set}\" = set"; then
52702   echo $ECHO_N "(cached) $ECHO_C" >&6
52703 else
52704   if test x$gcc_no_link = xyes; then
52705   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52707    { (exit 1); exit 1; }; }
52708 fi
52709 cat >conftest.$ac_ext <<_ACEOF
52710 /* confdefs.h.  */
52711 _ACEOF
52712 cat confdefs.h >>conftest.$ac_ext
52713 cat >>conftest.$ac_ext <<_ACEOF
52714 /* end confdefs.h.  */
52715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52717 #define $ac_func innocuous_$ac_func
52718
52719 /* System header to define __stub macros and hopefully few prototypes,
52720     which can conflict with char $ac_func (); below.
52721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52722     <limits.h> exists even on freestanding compilers.  */
52723
52724 #ifdef __STDC__
52725 # include <limits.h>
52726 #else
52727 # include <assert.h>
52728 #endif
52729
52730 #undef $ac_func
52731
52732 /* Override any gcc2 internal prototype to avoid an error.  */
52733 #ifdef __cplusplus
52734 extern "C"
52735 {
52736 #endif
52737 /* We use char because int might match the return type of a gcc2
52738    builtin and then its argument prototype would still apply.  */
52739 char $ac_func ();
52740 /* The GNU C library defines this for functions which it implements
52741     to always fail with ENOSYS.  Some functions are actually named
52742     something starting with __ and the normal name is an alias.  */
52743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52744 choke me
52745 #else
52746 char (*f) () = $ac_func;
52747 #endif
52748 #ifdef __cplusplus
52749 }
52750 #endif
52751
52752 int
52753 main ()
52754 {
52755 return f != $ac_func;
52756   ;
52757   return 0;
52758 }
52759 _ACEOF
52760 rm -f conftest.$ac_objext conftest$ac_exeext
52761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52762   (eval $ac_link) 2>conftest.er1
52763   ac_status=$?
52764   grep -v '^ *+' conftest.er1 >conftest.err
52765   rm -f conftest.er1
52766   cat conftest.err >&5
52767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52768   (exit $ac_status); } &&
52769          { ac_try='test -z "$ac_c_werror_flag"
52770                          || test ! -s conftest.err'
52771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52772   (eval $ac_try) 2>&5
52773   ac_status=$?
52774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52775   (exit $ac_status); }; } &&
52776          { ac_try='test -s conftest$ac_exeext'
52777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52778   (eval $ac_try) 2>&5
52779   ac_status=$?
52780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52781   (exit $ac_status); }; }; then
52782   eval "$as_ac_var=yes"
52783 else
52784   echo "$as_me: failed program was:" >&5
52785 sed 's/^/| /' conftest.$ac_ext >&5
52786
52787 eval "$as_ac_var=no"
52788 fi
52789 rm -f conftest.err conftest.$ac_objext \
52790       conftest$ac_exeext conftest.$ac_ext
52791 fi
52792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52794 if test `eval echo '${'$as_ac_var'}'` = yes; then
52795   cat >>confdefs.h <<_ACEOF
52796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52797 _ACEOF
52798
52799 fi
52800 done
52801
52802   fi
52803
52804
52805   CXXFLAGS="$ac_save_CXXFLAGS"
52806
52807
52808     # For showmanyc_helper().
52809
52810
52811 for ac_header in sys/ioctl.h sys/filio.h
52812 do
52813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52815   echo "$as_me:$LINENO: checking for $ac_header" >&5
52816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52818   echo $ECHO_N "(cached) $ECHO_C" >&6
52819 fi
52820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52822 else
52823   # Is the header compilable?
52824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52826 cat >conftest.$ac_ext <<_ACEOF
52827 /* confdefs.h.  */
52828 _ACEOF
52829 cat confdefs.h >>conftest.$ac_ext
52830 cat >>conftest.$ac_ext <<_ACEOF
52831 /* end confdefs.h.  */
52832 $ac_includes_default
52833 #include <$ac_header>
52834 _ACEOF
52835 rm -f conftest.$ac_objext
52836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52837   (eval $ac_compile) 2>conftest.er1
52838   ac_status=$?
52839   grep -v '^ *+' conftest.er1 >conftest.err
52840   rm -f conftest.er1
52841   cat conftest.err >&5
52842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52843   (exit $ac_status); } &&
52844          { ac_try='test -z "$ac_c_werror_flag"
52845                          || test ! -s conftest.err'
52846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52847   (eval $ac_try) 2>&5
52848   ac_status=$?
52849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52850   (exit $ac_status); }; } &&
52851          { ac_try='test -s conftest.$ac_objext'
52852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52853   (eval $ac_try) 2>&5
52854   ac_status=$?
52855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52856   (exit $ac_status); }; }; then
52857   ac_header_compiler=yes
52858 else
52859   echo "$as_me: failed program was:" >&5
52860 sed 's/^/| /' conftest.$ac_ext >&5
52861
52862 ac_header_compiler=no
52863 fi
52864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52866 echo "${ECHO_T}$ac_header_compiler" >&6
52867
52868 # Is the header present?
52869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52871 cat >conftest.$ac_ext <<_ACEOF
52872 /* confdefs.h.  */
52873 _ACEOF
52874 cat confdefs.h >>conftest.$ac_ext
52875 cat >>conftest.$ac_ext <<_ACEOF
52876 /* end confdefs.h.  */
52877 #include <$ac_header>
52878 _ACEOF
52879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52881   ac_status=$?
52882   grep -v '^ *+' conftest.er1 >conftest.err
52883   rm -f conftest.er1
52884   cat conftest.err >&5
52885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52886   (exit $ac_status); } >/dev/null; then
52887   if test -s conftest.err; then
52888     ac_cpp_err=$ac_c_preproc_warn_flag
52889     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52890   else
52891     ac_cpp_err=
52892   fi
52893 else
52894   ac_cpp_err=yes
52895 fi
52896 if test -z "$ac_cpp_err"; then
52897   ac_header_preproc=yes
52898 else
52899   echo "$as_me: failed program was:" >&5
52900 sed 's/^/| /' conftest.$ac_ext >&5
52901
52902   ac_header_preproc=no
52903 fi
52904 rm -f conftest.err conftest.$ac_ext
52905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52906 echo "${ECHO_T}$ac_header_preproc" >&6
52907
52908 # So?  What about this header?
52909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52910   yes:no: )
52911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52915     ac_header_preproc=yes
52916     ;;
52917   no:yes:* )
52918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52930     (
52931       cat <<\_ASBOX
52932 ## ----------------------------------------- ##
52933 ## Report this to the package-unused lists.  ##
52934 ## ----------------------------------------- ##
52935 _ASBOX
52936     ) |
52937       sed "s/^/$as_me: WARNING:     /" >&2
52938     ;;
52939 esac
52940 echo "$as_me:$LINENO: checking for $ac_header" >&5
52941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52943   echo $ECHO_N "(cached) $ECHO_C" >&6
52944 else
52945   eval "$as_ac_Header=\$ac_header_preproc"
52946 fi
52947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52949
52950 fi
52951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52952   cat >>confdefs.h <<_ACEOF
52953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52954 _ACEOF
52955
52956 fi
52957
52958 done
52959
52960
52961   if test "${glibcxx_cv_POLL+set}" = set; then
52962   echo $ECHO_N "(cached) $ECHO_C" >&6
52963 else
52964
52965     if test x$gcc_no_link = xyes; then
52966   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52968    { (exit 1); exit 1; }; }
52969 fi
52970 cat >conftest.$ac_ext <<_ACEOF
52971 /* confdefs.h.  */
52972 _ACEOF
52973 cat confdefs.h >>conftest.$ac_ext
52974 cat >>conftest.$ac_ext <<_ACEOF
52975 /* end confdefs.h.  */
52976 #include <poll.h>
52977 int
52978 main ()
52979 {
52980 struct pollfd pfd[1];
52981        pfd[0].events = POLLIN;
52982        poll(pfd, 1, 0);
52983   ;
52984   return 0;
52985 }
52986 _ACEOF
52987 rm -f conftest.$ac_objext conftest$ac_exeext
52988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52989   (eval $ac_link) 2>conftest.er1
52990   ac_status=$?
52991   grep -v '^ *+' conftest.er1 >conftest.err
52992   rm -f conftest.er1
52993   cat conftest.err >&5
52994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52995   (exit $ac_status); } &&
52996          { ac_try='test -z "$ac_c_werror_flag"
52997                          || test ! -s conftest.err'
52998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52999   (eval $ac_try) 2>&5
53000   ac_status=$?
53001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53002   (exit $ac_status); }; } &&
53003          { ac_try='test -s conftest$ac_exeext'
53004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53005   (eval $ac_try) 2>&5
53006   ac_status=$?
53007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53008   (exit $ac_status); }; }; then
53009   glibcxx_cv_POLL=yes
53010 else
53011   echo "$as_me: failed program was:" >&5
53012 sed 's/^/| /' conftest.$ac_ext >&5
53013
53014 glibcxx_cv_POLL=no
53015 fi
53016 rm -f conftest.err conftest.$ac_objext \
53017       conftest$ac_exeext conftest.$ac_ext
53018
53019 fi
53020
53021   if test $glibcxx_cv_POLL = yes; then
53022     cat >>confdefs.h <<\_ACEOF
53023 #define HAVE_POLL 1
53024 _ACEOF
53025
53026   fi
53027
53028
53029   if test "${glibcxx_cv_S_ISREG+set}" = set; then
53030   echo $ECHO_N "(cached) $ECHO_C" >&6
53031 else
53032
53033     if test x$gcc_no_link = xyes; then
53034   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53035 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53036    { (exit 1); exit 1; }; }
53037 fi
53038 cat >conftest.$ac_ext <<_ACEOF
53039 /* confdefs.h.  */
53040 _ACEOF
53041 cat confdefs.h >>conftest.$ac_ext
53042 cat >>conftest.$ac_ext <<_ACEOF
53043 /* end confdefs.h.  */
53044 #include <sys/stat.h>
53045 int
53046 main ()
53047 {
53048 struct stat buffer;
53049        fstat(0, &buffer);
53050        S_ISREG(buffer.st_mode);
53051   ;
53052   return 0;
53053 }
53054 _ACEOF
53055 rm -f conftest.$ac_objext conftest$ac_exeext
53056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53057   (eval $ac_link) 2>conftest.er1
53058   ac_status=$?
53059   grep -v '^ *+' conftest.er1 >conftest.err
53060   rm -f conftest.er1
53061   cat conftest.err >&5
53062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53063   (exit $ac_status); } &&
53064          { ac_try='test -z "$ac_c_werror_flag"
53065                          || test ! -s conftest.err'
53066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53067   (eval $ac_try) 2>&5
53068   ac_status=$?
53069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53070   (exit $ac_status); }; } &&
53071          { ac_try='test -s conftest$ac_exeext'
53072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53073   (eval $ac_try) 2>&5
53074   ac_status=$?
53075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53076   (exit $ac_status); }; }; then
53077   glibcxx_cv_S_ISREG=yes
53078 else
53079   echo "$as_me: failed program was:" >&5
53080 sed 's/^/| /' conftest.$ac_ext >&5
53081
53082 glibcxx_cv_S_ISREG=no
53083 fi
53084 rm -f conftest.err conftest.$ac_objext \
53085       conftest$ac_exeext conftest.$ac_ext
53086
53087 fi
53088
53089   if test "${glibcxx_cv_S_IFREG+set}" = set; then
53090   echo $ECHO_N "(cached) $ECHO_C" >&6
53091 else
53092
53093     if test x$gcc_no_link = xyes; then
53094   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53096    { (exit 1); exit 1; }; }
53097 fi
53098 cat >conftest.$ac_ext <<_ACEOF
53099 /* confdefs.h.  */
53100 _ACEOF
53101 cat confdefs.h >>conftest.$ac_ext
53102 cat >>conftest.$ac_ext <<_ACEOF
53103 /* end confdefs.h.  */
53104 #include <sys/stat.h>
53105 int
53106 main ()
53107 {
53108 struct stat buffer;
53109        fstat(0, &buffer);
53110        S_IFREG & buffer.st_mode;
53111   ;
53112   return 0;
53113 }
53114 _ACEOF
53115 rm -f conftest.$ac_objext conftest$ac_exeext
53116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53117   (eval $ac_link) 2>conftest.er1
53118   ac_status=$?
53119   grep -v '^ *+' conftest.er1 >conftest.err
53120   rm -f conftest.er1
53121   cat conftest.err >&5
53122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53123   (exit $ac_status); } &&
53124          { ac_try='test -z "$ac_c_werror_flag"
53125                          || test ! -s conftest.err'
53126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53127   (eval $ac_try) 2>&5
53128   ac_status=$?
53129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53130   (exit $ac_status); }; } &&
53131          { ac_try='test -s conftest$ac_exeext'
53132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53133   (eval $ac_try) 2>&5
53134   ac_status=$?
53135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53136   (exit $ac_status); }; }; then
53137   glibcxx_cv_S_IFREG=yes
53138 else
53139   echo "$as_me: failed program was:" >&5
53140 sed 's/^/| /' conftest.$ac_ext >&5
53141
53142 glibcxx_cv_S_IFREG=no
53143 fi
53144 rm -f conftest.err conftest.$ac_objext \
53145       conftest$ac_exeext conftest.$ac_ext
53146
53147 fi
53148
53149   if test $glibcxx_cv_S_ISREG = yes; then
53150     cat >>confdefs.h <<\_ACEOF
53151 #define HAVE_S_ISREG 1
53152 _ACEOF
53153
53154   elif test $glibcxx_cv_S_IFREG = yes; then
53155     cat >>confdefs.h <<\_ACEOF
53156 #define HAVE_S_IFREG 1
53157 _ACEOF
53158
53159   fi
53160
53161
53162     # For xsputn_2().
53163
53164 for ac_header in sys/uio.h
53165 do
53166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53168   echo "$as_me:$LINENO: checking for $ac_header" >&5
53169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53171   echo $ECHO_N "(cached) $ECHO_C" >&6
53172 fi
53173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53175 else
53176   # Is the header compilable?
53177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53179 cat >conftest.$ac_ext <<_ACEOF
53180 /* confdefs.h.  */
53181 _ACEOF
53182 cat confdefs.h >>conftest.$ac_ext
53183 cat >>conftest.$ac_ext <<_ACEOF
53184 /* end confdefs.h.  */
53185 $ac_includes_default
53186 #include <$ac_header>
53187 _ACEOF
53188 rm -f conftest.$ac_objext
53189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53190   (eval $ac_compile) 2>conftest.er1
53191   ac_status=$?
53192   grep -v '^ *+' conftest.er1 >conftest.err
53193   rm -f conftest.er1
53194   cat conftest.err >&5
53195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53196   (exit $ac_status); } &&
53197          { ac_try='test -z "$ac_c_werror_flag"
53198                          || test ! -s conftest.err'
53199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53200   (eval $ac_try) 2>&5
53201   ac_status=$?
53202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53203   (exit $ac_status); }; } &&
53204          { ac_try='test -s conftest.$ac_objext'
53205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53206   (eval $ac_try) 2>&5
53207   ac_status=$?
53208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53209   (exit $ac_status); }; }; then
53210   ac_header_compiler=yes
53211 else
53212   echo "$as_me: failed program was:" >&5
53213 sed 's/^/| /' conftest.$ac_ext >&5
53214
53215 ac_header_compiler=no
53216 fi
53217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53219 echo "${ECHO_T}$ac_header_compiler" >&6
53220
53221 # Is the header present?
53222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53224 cat >conftest.$ac_ext <<_ACEOF
53225 /* confdefs.h.  */
53226 _ACEOF
53227 cat confdefs.h >>conftest.$ac_ext
53228 cat >>conftest.$ac_ext <<_ACEOF
53229 /* end confdefs.h.  */
53230 #include <$ac_header>
53231 _ACEOF
53232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53234   ac_status=$?
53235   grep -v '^ *+' conftest.er1 >conftest.err
53236   rm -f conftest.er1
53237   cat conftest.err >&5
53238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53239   (exit $ac_status); } >/dev/null; then
53240   if test -s conftest.err; then
53241     ac_cpp_err=$ac_c_preproc_warn_flag
53242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53243   else
53244     ac_cpp_err=
53245   fi
53246 else
53247   ac_cpp_err=yes
53248 fi
53249 if test -z "$ac_cpp_err"; then
53250   ac_header_preproc=yes
53251 else
53252   echo "$as_me: failed program was:" >&5
53253 sed 's/^/| /' conftest.$ac_ext >&5
53254
53255   ac_header_preproc=no
53256 fi
53257 rm -f conftest.err conftest.$ac_ext
53258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53259 echo "${ECHO_T}$ac_header_preproc" >&6
53260
53261 # So?  What about this header?
53262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53263   yes:no: )
53264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53268     ac_header_preproc=yes
53269     ;;
53270   no:yes:* )
53271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53273     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53274 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53275     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53277     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53278 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53281     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53283     (
53284       cat <<\_ASBOX
53285 ## ----------------------------------------- ##
53286 ## Report this to the package-unused lists.  ##
53287 ## ----------------------------------------- ##
53288 _ASBOX
53289     ) |
53290       sed "s/^/$as_me: WARNING:     /" >&2
53291     ;;
53292 esac
53293 echo "$as_me:$LINENO: checking for $ac_header" >&5
53294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53296   echo $ECHO_N "(cached) $ECHO_C" >&6
53297 else
53298   eval "$as_ac_Header=\$ac_header_preproc"
53299 fi
53300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53302
53303 fi
53304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53305   cat >>confdefs.h <<_ACEOF
53306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53307 _ACEOF
53308
53309 fi
53310
53311 done
53312
53313
53314   if test "${glibcxx_cv_WRITEV+set}" = set; then
53315   echo $ECHO_N "(cached) $ECHO_C" >&6
53316 else
53317
53318     if test x$gcc_no_link = xyes; then
53319   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53320 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53321    { (exit 1); exit 1; }; }
53322 fi
53323 cat >conftest.$ac_ext <<_ACEOF
53324 /* confdefs.h.  */
53325 _ACEOF
53326 cat confdefs.h >>conftest.$ac_ext
53327 cat >>conftest.$ac_ext <<_ACEOF
53328 /* end confdefs.h.  */
53329 #include <sys/uio.h>
53330 int
53331 main ()
53332 {
53333 struct iovec iov[2];
53334        writev(0, iov, 0);
53335   ;
53336   return 0;
53337 }
53338 _ACEOF
53339 rm -f conftest.$ac_objext conftest$ac_exeext
53340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53341   (eval $ac_link) 2>conftest.er1
53342   ac_status=$?
53343   grep -v '^ *+' conftest.er1 >conftest.err
53344   rm -f conftest.er1
53345   cat conftest.err >&5
53346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53347   (exit $ac_status); } &&
53348          { ac_try='test -z "$ac_c_werror_flag"
53349                          || test ! -s conftest.err'
53350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53351   (eval $ac_try) 2>&5
53352   ac_status=$?
53353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53354   (exit $ac_status); }; } &&
53355          { ac_try='test -s conftest$ac_exeext'
53356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53357   (eval $ac_try) 2>&5
53358   ac_status=$?
53359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53360   (exit $ac_status); }; }; then
53361   glibcxx_cv_WRITEV=yes
53362 else
53363   echo "$as_me: failed program was:" >&5
53364 sed 's/^/| /' conftest.$ac_ext >&5
53365
53366 glibcxx_cv_WRITEV=no
53367 fi
53368 rm -f conftest.err conftest.$ac_objext \
53369       conftest$ac_exeext conftest.$ac_ext
53370
53371 fi
53372
53373   if test $glibcxx_cv_WRITEV = yes; then
53374     cat >>confdefs.h <<\_ACEOF
53375 #define HAVE_WRITEV 1
53376 _ACEOF
53377
53378   fi
53379
53380
53381     cat >>confdefs.h <<\_ACEOF
53382 #define HAVE_LC_MESSAGES 1
53383 _ACEOF
53384
53385
53386     cat >conftest.$ac_ext <<_ACEOF
53387 /* confdefs.h.  */
53388 _ACEOF
53389 cat confdefs.h >>conftest.$ac_ext
53390 cat >>conftest.$ac_ext <<_ACEOF
53391 /* end confdefs.h.  */
53392 #include <setjmp.h>
53393 int
53394 main ()
53395 {
53396 sigjmp_buf env;
53397        while (! sigsetjmp (env, 1))
53398          siglongjmp (env, 1);
53399
53400   ;
53401   return 0;
53402 }
53403 _ACEOF
53404 rm -f conftest.$ac_objext
53405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53406   (eval $ac_compile) 2>conftest.er1
53407   ac_status=$?
53408   grep -v '^ *+' conftest.er1 >conftest.err
53409   rm -f conftest.er1
53410   cat conftest.err >&5
53411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53412   (exit $ac_status); } &&
53413          { ac_try='test -z "$ac_c_werror_flag"
53414                          || test ! -s conftest.err'
53415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53416   (eval $ac_try) 2>&5
53417   ac_status=$?
53418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53419   (exit $ac_status); }; } &&
53420          { ac_try='test -s conftest.$ac_objext'
53421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53422   (eval $ac_try) 2>&5
53423   ac_status=$?
53424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53425   (exit $ac_status); }; }; then
53426
53427 cat >>confdefs.h <<\_ACEOF
53428 #define HAVE_SIGSETJMP 1
53429 _ACEOF
53430
53431 else
53432   echo "$as_me: failed program was:" >&5
53433 sed 's/^/| /' conftest.$ac_ext >&5
53434
53435 fi
53436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53437
53438     cat >>confdefs.h <<\_ACEOF
53439 #define HAVE_MMAP 1
53440 _ACEOF
53441
53442     ;;
53443
53444   *-freebsd*)
53445
53446
53447
53448
53449
53450
53451
53452
53453
53454
53455
53456
53457
53458
53459
53460
53461 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
53462       machine/endian.h machine/param.h sys/machine.h sys/types.h \
53463       fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
53464       sys/time.h unistd.h
53465 do
53466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53468   echo "$as_me:$LINENO: checking for $ac_header" >&5
53469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53471   echo $ECHO_N "(cached) $ECHO_C" >&6
53472 fi
53473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53475 else
53476   # Is the header compilable?
53477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53479 cat >conftest.$ac_ext <<_ACEOF
53480 /* confdefs.h.  */
53481 _ACEOF
53482 cat confdefs.h >>conftest.$ac_ext
53483 cat >>conftest.$ac_ext <<_ACEOF
53484 /* end confdefs.h.  */
53485 $ac_includes_default
53486 #include <$ac_header>
53487 _ACEOF
53488 rm -f conftest.$ac_objext
53489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53490   (eval $ac_compile) 2>conftest.er1
53491   ac_status=$?
53492   grep -v '^ *+' conftest.er1 >conftest.err
53493   rm -f conftest.er1
53494   cat conftest.err >&5
53495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53496   (exit $ac_status); } &&
53497          { ac_try='test -z "$ac_c_werror_flag"
53498                          || test ! -s conftest.err'
53499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53500   (eval $ac_try) 2>&5
53501   ac_status=$?
53502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53503   (exit $ac_status); }; } &&
53504          { ac_try='test -s conftest.$ac_objext'
53505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53506   (eval $ac_try) 2>&5
53507   ac_status=$?
53508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53509   (exit $ac_status); }; }; then
53510   ac_header_compiler=yes
53511 else
53512   echo "$as_me: failed program was:" >&5
53513 sed 's/^/| /' conftest.$ac_ext >&5
53514
53515 ac_header_compiler=no
53516 fi
53517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53519 echo "${ECHO_T}$ac_header_compiler" >&6
53520
53521 # Is the header present?
53522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53524 cat >conftest.$ac_ext <<_ACEOF
53525 /* confdefs.h.  */
53526 _ACEOF
53527 cat confdefs.h >>conftest.$ac_ext
53528 cat >>conftest.$ac_ext <<_ACEOF
53529 /* end confdefs.h.  */
53530 #include <$ac_header>
53531 _ACEOF
53532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53534   ac_status=$?
53535   grep -v '^ *+' conftest.er1 >conftest.err
53536   rm -f conftest.er1
53537   cat conftest.err >&5
53538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53539   (exit $ac_status); } >/dev/null; then
53540   if test -s conftest.err; then
53541     ac_cpp_err=$ac_c_preproc_warn_flag
53542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53543   else
53544     ac_cpp_err=
53545   fi
53546 else
53547   ac_cpp_err=yes
53548 fi
53549 if test -z "$ac_cpp_err"; then
53550   ac_header_preproc=yes
53551 else
53552   echo "$as_me: failed program was:" >&5
53553 sed 's/^/| /' conftest.$ac_ext >&5
53554
53555   ac_header_preproc=no
53556 fi
53557 rm -f conftest.err conftest.$ac_ext
53558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53559 echo "${ECHO_T}$ac_header_preproc" >&6
53560
53561 # So?  What about this header?
53562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53563   yes:no: )
53564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53568     ac_header_preproc=yes
53569     ;;
53570   no:yes:* )
53571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53583     (
53584       cat <<\_ASBOX
53585 ## ----------------------------------------- ##
53586 ## Report this to the package-unused lists.  ##
53587 ## ----------------------------------------- ##
53588 _ASBOX
53589     ) |
53590       sed "s/^/$as_me: WARNING:     /" >&2
53591     ;;
53592 esac
53593 echo "$as_me:$LINENO: checking for $ac_header" >&5
53594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53596   echo $ECHO_N "(cached) $ECHO_C" >&6
53597 else
53598   eval "$as_ac_Header=\$ac_header_preproc"
53599 fi
53600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53602
53603 fi
53604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53605   cat >>confdefs.h <<_ACEOF
53606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53607 _ACEOF
53608
53609 fi
53610
53611 done
53612
53613     SECTION_FLAGS='-ffunction-sections -fdata-sections'
53614
53615
53616   # If we're not using GNU ld, then there's no point in even trying these
53617   # tests.  Check for that first.  We should have already tested for gld
53618   # by now (in libtool), but require it now just to be safe...
53619   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53620   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53621
53622
53623
53624   # The name set by libtool depends on the version of libtool.  Shame on us
53625   # for depending on an impl detail, but c'est la vie.  Older versions used
53626   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53627   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53628   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
53629   # set (hence we're using an older libtool), then set it.
53630   if test x${with_gnu_ld+set} != xset; then
53631     if test x${ac_cv_prog_gnu_ld+set} != xset; then
53632       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
53633       with_gnu_ld=no
53634     else
53635       with_gnu_ld=$ac_cv_prog_gnu_ld
53636     fi
53637   fi
53638
53639   # Start by getting the version number.  I think the libtool test already
53640   # does some of this, but throws away the result.
53641
53642   ldver=`$LD --version 2>/dev/null | head -1 | \
53643          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53644
53645   glibcxx_gnu_ld_version=`echo $ldver | \
53646          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53647
53648   # Set --gc-sections.
53649   if test "$with_gnu_ld" = "notbroken"; then
53650     # GNU ld it is!  Joy and bunny rabbits!
53651
53652     # All these tests are for C++; save the language and the compiler flags.
53653     # Need to do this so that g++ won't try to link in libstdc++
53654     ac_test_CFLAGS="${CFLAGS+set}"
53655     ac_save_CFLAGS="$CFLAGS"
53656     CFLAGS='-x c++  -Wl,--gc-sections'
53657
53658     # Check for -Wl,--gc-sections
53659     # XXX This test is broken at the moment, as symbols required for linking
53660     # are now in libsupc++ (not built yet).  In addition, this test has
53661     # cored on solaris in the past.  In addition, --gc-sections doesn't
53662     # really work at the moment (keeps on discarding used sections, first
53663     # .eh_frame and now some of the glibc sections for iconv).
53664     # Bzzzzt.  Thanks for playing, maybe next time.
53665     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53666 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53667     if test "$cross_compiling" = yes; then
53668   ac_sectionLDflags=yes
53669 else
53670   cat >conftest.$ac_ext <<_ACEOF
53671 /* confdefs.h.  */
53672 _ACEOF
53673 cat confdefs.h >>conftest.$ac_ext
53674 cat >>conftest.$ac_ext <<_ACEOF
53675 /* end confdefs.h.  */
53676
53677      int main(void)
53678      {
53679        try { throw 1; }
53680        catch (...) { };
53681        return 0;
53682      }
53683
53684 _ACEOF
53685 rm -f conftest$ac_exeext
53686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53687   (eval $ac_link) 2>&5
53688   ac_status=$?
53689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53692   (eval $ac_try) 2>&5
53693   ac_status=$?
53694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53695   (exit $ac_status); }; }; then
53696   ac_sectionLDflags=yes
53697 else
53698   echo "$as_me: program exited with status $ac_status" >&5
53699 echo "$as_me: failed program was:" >&5
53700 sed 's/^/| /' conftest.$ac_ext >&5
53701
53702 ( exit $ac_status )
53703 ac_sectionLDflags=no
53704 fi
53705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53706 fi
53707     if test "$ac_test_CFLAGS" = set; then
53708       CFLAGS="$ac_save_CFLAGS"
53709     else
53710       # this is the suspicious part
53711       CFLAGS=''
53712     fi
53713     if test "$ac_sectionLDflags" = "yes"; then
53714       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53715     fi
53716     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53717 echo "${ECHO_T}$ac_sectionLDflags" >&6
53718   fi
53719
53720   # Set linker optimization flags.
53721   if test x"$with_gnu_ld" = x"yes"; then
53722     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53723   fi
53724
53725
53726
53727
53728
53729
53730 echo "$as_me:$LINENO: checking for main in -lm" >&5
53731 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53732 if test "${ac_cv_lib_m_main+set}" = set; then
53733   echo $ECHO_N "(cached) $ECHO_C" >&6
53734 else
53735   ac_check_lib_save_LIBS=$LIBS
53736 LIBS="-lm  $LIBS"
53737 if test x$gcc_no_link = xyes; then
53738   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53739 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53740    { (exit 1); exit 1; }; }
53741 fi
53742 cat >conftest.$ac_ext <<_ACEOF
53743 /* confdefs.h.  */
53744 _ACEOF
53745 cat confdefs.h >>conftest.$ac_ext
53746 cat >>conftest.$ac_ext <<_ACEOF
53747 /* end confdefs.h.  */
53748
53749
53750 int
53751 main ()
53752 {
53753 main ();
53754   ;
53755   return 0;
53756 }
53757 _ACEOF
53758 rm -f conftest.$ac_objext conftest$ac_exeext
53759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53760   (eval $ac_link) 2>conftest.er1
53761   ac_status=$?
53762   grep -v '^ *+' conftest.er1 >conftest.err
53763   rm -f conftest.er1
53764   cat conftest.err >&5
53765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53766   (exit $ac_status); } &&
53767          { ac_try='test -z "$ac_c_werror_flag"
53768                          || test ! -s conftest.err'
53769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53770   (eval $ac_try) 2>&5
53771   ac_status=$?
53772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53773   (exit $ac_status); }; } &&
53774          { ac_try='test -s conftest$ac_exeext'
53775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53776   (eval $ac_try) 2>&5
53777   ac_status=$?
53778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53779   (exit $ac_status); }; }; then
53780   ac_cv_lib_m_main=yes
53781 else
53782   echo "$as_me: failed program was:" >&5
53783 sed 's/^/| /' conftest.$ac_ext >&5
53784
53785 ac_cv_lib_m_main=no
53786 fi
53787 rm -f conftest.err conftest.$ac_objext \
53788       conftest$ac_exeext conftest.$ac_ext
53789 LIBS=$ac_check_lib_save_LIBS
53790 fi
53791 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53792 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53793 if test $ac_cv_lib_m_main = yes; then
53794   cat >>confdefs.h <<_ACEOF
53795 #define HAVE_LIBM 1
53796 _ACEOF
53797
53798   LIBS="-lm $LIBS"
53799
53800 fi
53801
53802
53803 for ac_func in copysignf
53804 do
53805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53806 echo "$as_me:$LINENO: checking for $ac_func" >&5
53807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53808 if eval "test \"\${$as_ac_var+set}\" = set"; then
53809   echo $ECHO_N "(cached) $ECHO_C" >&6
53810 else
53811   if test x$gcc_no_link = xyes; then
53812   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53814    { (exit 1); exit 1; }; }
53815 fi
53816 cat >conftest.$ac_ext <<_ACEOF
53817 /* confdefs.h.  */
53818 _ACEOF
53819 cat confdefs.h >>conftest.$ac_ext
53820 cat >>conftest.$ac_ext <<_ACEOF
53821 /* end confdefs.h.  */
53822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53824 #define $ac_func innocuous_$ac_func
53825
53826 /* System header to define __stub macros and hopefully few prototypes,
53827     which can conflict with char $ac_func (); below.
53828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53829     <limits.h> exists even on freestanding compilers.  */
53830
53831 #ifdef __STDC__
53832 # include <limits.h>
53833 #else
53834 # include <assert.h>
53835 #endif
53836
53837 #undef $ac_func
53838
53839 /* Override any gcc2 internal prototype to avoid an error.  */
53840 #ifdef __cplusplus
53841 extern "C"
53842 {
53843 #endif
53844 /* We use char because int might match the return type of a gcc2
53845    builtin and then its argument prototype would still apply.  */
53846 char $ac_func ();
53847 /* The GNU C library defines this for functions which it implements
53848     to always fail with ENOSYS.  Some functions are actually named
53849     something starting with __ and the normal name is an alias.  */
53850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53851 choke me
53852 #else
53853 char (*f) () = $ac_func;
53854 #endif
53855 #ifdef __cplusplus
53856 }
53857 #endif
53858
53859 int
53860 main ()
53861 {
53862 return f != $ac_func;
53863   ;
53864   return 0;
53865 }
53866 _ACEOF
53867 rm -f conftest.$ac_objext conftest$ac_exeext
53868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53869   (eval $ac_link) 2>conftest.er1
53870   ac_status=$?
53871   grep -v '^ *+' conftest.er1 >conftest.err
53872   rm -f conftest.er1
53873   cat conftest.err >&5
53874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53875   (exit $ac_status); } &&
53876          { ac_try='test -z "$ac_c_werror_flag"
53877                          || test ! -s conftest.err'
53878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53879   (eval $ac_try) 2>&5
53880   ac_status=$?
53881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53882   (exit $ac_status); }; } &&
53883          { ac_try='test -s conftest$ac_exeext'
53884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53885   (eval $ac_try) 2>&5
53886   ac_status=$?
53887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53888   (exit $ac_status); }; }; then
53889   eval "$as_ac_var=yes"
53890 else
53891   echo "$as_me: failed program was:" >&5
53892 sed 's/^/| /' conftest.$ac_ext >&5
53893
53894 eval "$as_ac_var=no"
53895 fi
53896 rm -f conftest.err conftest.$ac_objext \
53897       conftest$ac_exeext conftest.$ac_ext
53898 fi
53899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53901 if test `eval echo '${'$as_ac_var'}'` = yes; then
53902   cat >>confdefs.h <<_ACEOF
53903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53904 _ACEOF
53905
53906 else
53907   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53908 fi
53909 done
53910
53911
53912
53913 for ac_func in __signbit
53914 do
53915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53916 echo "$as_me:$LINENO: checking for $ac_func" >&5
53917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53918 if eval "test \"\${$as_ac_var+set}\" = set"; then
53919   echo $ECHO_N "(cached) $ECHO_C" >&6
53920 else
53921   if test x$gcc_no_link = xyes; then
53922   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53924    { (exit 1); exit 1; }; }
53925 fi
53926 cat >conftest.$ac_ext <<_ACEOF
53927 /* confdefs.h.  */
53928 _ACEOF
53929 cat confdefs.h >>conftest.$ac_ext
53930 cat >>conftest.$ac_ext <<_ACEOF
53931 /* end confdefs.h.  */
53932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53934 #define $ac_func innocuous_$ac_func
53935
53936 /* System header to define __stub macros and hopefully few prototypes,
53937     which can conflict with char $ac_func (); below.
53938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53939     <limits.h> exists even on freestanding compilers.  */
53940
53941 #ifdef __STDC__
53942 # include <limits.h>
53943 #else
53944 # include <assert.h>
53945 #endif
53946
53947 #undef $ac_func
53948
53949 /* Override any gcc2 internal prototype to avoid an error.  */
53950 #ifdef __cplusplus
53951 extern "C"
53952 {
53953 #endif
53954 /* We use char because int might match the return type of a gcc2
53955    builtin and then its argument prototype would still apply.  */
53956 char $ac_func ();
53957 /* The GNU C library defines this for functions which it implements
53958     to always fail with ENOSYS.  Some functions are actually named
53959     something starting with __ and the normal name is an alias.  */
53960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53961 choke me
53962 #else
53963 char (*f) () = $ac_func;
53964 #endif
53965 #ifdef __cplusplus
53966 }
53967 #endif
53968
53969 int
53970 main ()
53971 {
53972 return f != $ac_func;
53973   ;
53974   return 0;
53975 }
53976 _ACEOF
53977 rm -f conftest.$ac_objext conftest$ac_exeext
53978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53979   (eval $ac_link) 2>conftest.er1
53980   ac_status=$?
53981   grep -v '^ *+' conftest.er1 >conftest.err
53982   rm -f conftest.er1
53983   cat conftest.err >&5
53984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53985   (exit $ac_status); } &&
53986          { ac_try='test -z "$ac_c_werror_flag"
53987                          || test ! -s conftest.err'
53988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53989   (eval $ac_try) 2>&5
53990   ac_status=$?
53991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53992   (exit $ac_status); }; } &&
53993          { ac_try='test -s conftest$ac_exeext'
53994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53995   (eval $ac_try) 2>&5
53996   ac_status=$?
53997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53998   (exit $ac_status); }; }; then
53999   eval "$as_ac_var=yes"
54000 else
54001   echo "$as_me: failed program was:" >&5
54002 sed 's/^/| /' conftest.$ac_ext >&5
54003
54004 eval "$as_ac_var=no"
54005 fi
54006 rm -f conftest.err conftest.$ac_objext \
54007       conftest$ac_exeext conftest.$ac_ext
54008 fi
54009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54011 if test `eval echo '${'$as_ac_var'}'` = yes; then
54012   cat >>confdefs.h <<_ACEOF
54013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54014 _ACEOF
54015
54016 else
54017   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
54018 fi
54019 done
54020
54021
54022 for ac_func in __signbitf
54023 do
54024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54025 echo "$as_me:$LINENO: checking for $ac_func" >&5
54026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54027 if eval "test \"\${$as_ac_var+set}\" = set"; then
54028   echo $ECHO_N "(cached) $ECHO_C" >&6
54029 else
54030   if test x$gcc_no_link = xyes; then
54031   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54033    { (exit 1); exit 1; }; }
54034 fi
54035 cat >conftest.$ac_ext <<_ACEOF
54036 /* confdefs.h.  */
54037 _ACEOF
54038 cat confdefs.h >>conftest.$ac_ext
54039 cat >>conftest.$ac_ext <<_ACEOF
54040 /* end confdefs.h.  */
54041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54043 #define $ac_func innocuous_$ac_func
54044
54045 /* System header to define __stub macros and hopefully few prototypes,
54046     which can conflict with char $ac_func (); below.
54047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54048     <limits.h> exists even on freestanding compilers.  */
54049
54050 #ifdef __STDC__
54051 # include <limits.h>
54052 #else
54053 # include <assert.h>
54054 #endif
54055
54056 #undef $ac_func
54057
54058 /* Override any gcc2 internal prototype to avoid an error.  */
54059 #ifdef __cplusplus
54060 extern "C"
54061 {
54062 #endif
54063 /* We use char because int might match the return type of a gcc2
54064    builtin and then its argument prototype would still apply.  */
54065 char $ac_func ();
54066 /* The GNU C library defines this for functions which it implements
54067     to always fail with ENOSYS.  Some functions are actually named
54068     something starting with __ and the normal name is an alias.  */
54069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54070 choke me
54071 #else
54072 char (*f) () = $ac_func;
54073 #endif
54074 #ifdef __cplusplus
54075 }
54076 #endif
54077
54078 int
54079 main ()
54080 {
54081 return f != $ac_func;
54082   ;
54083   return 0;
54084 }
54085 _ACEOF
54086 rm -f conftest.$ac_objext conftest$ac_exeext
54087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54088   (eval $ac_link) 2>conftest.er1
54089   ac_status=$?
54090   grep -v '^ *+' conftest.er1 >conftest.err
54091   rm -f conftest.er1
54092   cat conftest.err >&5
54093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54094   (exit $ac_status); } &&
54095          { ac_try='test -z "$ac_c_werror_flag"
54096                          || test ! -s conftest.err'
54097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54098   (eval $ac_try) 2>&5
54099   ac_status=$?
54100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54101   (exit $ac_status); }; } &&
54102          { ac_try='test -s conftest$ac_exeext'
54103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54104   (eval $ac_try) 2>&5
54105   ac_status=$?
54106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54107   (exit $ac_status); }; }; then
54108   eval "$as_ac_var=yes"
54109 else
54110   echo "$as_me: failed program was:" >&5
54111 sed 's/^/| /' conftest.$ac_ext >&5
54112
54113 eval "$as_ac_var=no"
54114 fi
54115 rm -f conftest.err conftest.$ac_objext \
54116       conftest$ac_exeext conftest.$ac_ext
54117 fi
54118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54120 if test `eval echo '${'$as_ac_var'}'` = yes; then
54121   cat >>confdefs.h <<_ACEOF
54122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54123 _ACEOF
54124
54125 else
54126   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
54127 fi
54128 done
54129
54130
54131           if test x$ac_cv_func_copysignl = x"yes"; then
54132
54133 for ac_func in __signbitl
54134 do
54135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54136 echo "$as_me:$LINENO: checking for $ac_func" >&5
54137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54138 if eval "test \"\${$as_ac_var+set}\" = set"; then
54139   echo $ECHO_N "(cached) $ECHO_C" >&6
54140 else
54141   if test x$gcc_no_link = xyes; then
54142   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54144    { (exit 1); exit 1; }; }
54145 fi
54146 cat >conftest.$ac_ext <<_ACEOF
54147 /* confdefs.h.  */
54148 _ACEOF
54149 cat confdefs.h >>conftest.$ac_ext
54150 cat >>conftest.$ac_ext <<_ACEOF
54151 /* end confdefs.h.  */
54152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54154 #define $ac_func innocuous_$ac_func
54155
54156 /* System header to define __stub macros and hopefully few prototypes,
54157     which can conflict with char $ac_func (); below.
54158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54159     <limits.h> exists even on freestanding compilers.  */
54160
54161 #ifdef __STDC__
54162 # include <limits.h>
54163 #else
54164 # include <assert.h>
54165 #endif
54166
54167 #undef $ac_func
54168
54169 /* Override any gcc2 internal prototype to avoid an error.  */
54170 #ifdef __cplusplus
54171 extern "C"
54172 {
54173 #endif
54174 /* We use char because int might match the return type of a gcc2
54175    builtin and then its argument prototype would still apply.  */
54176 char $ac_func ();
54177 /* The GNU C library defines this for functions which it implements
54178     to always fail with ENOSYS.  Some functions are actually named
54179     something starting with __ and the normal name is an alias.  */
54180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54181 choke me
54182 #else
54183 char (*f) () = $ac_func;
54184 #endif
54185 #ifdef __cplusplus
54186 }
54187 #endif
54188
54189 int
54190 main ()
54191 {
54192 return f != $ac_func;
54193   ;
54194   return 0;
54195 }
54196 _ACEOF
54197 rm -f conftest.$ac_objext conftest$ac_exeext
54198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54199   (eval $ac_link) 2>conftest.er1
54200   ac_status=$?
54201   grep -v '^ *+' conftest.er1 >conftest.err
54202   rm -f conftest.er1
54203   cat conftest.err >&5
54204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54205   (exit $ac_status); } &&
54206          { ac_try='test -z "$ac_c_werror_flag"
54207                          || test ! -s conftest.err'
54208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54209   (eval $ac_try) 2>&5
54210   ac_status=$?
54211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54212   (exit $ac_status); }; } &&
54213          { ac_try='test -s conftest$ac_exeext'
54214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54215   (eval $ac_try) 2>&5
54216   ac_status=$?
54217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54218   (exit $ac_status); }; }; then
54219   eval "$as_ac_var=yes"
54220 else
54221   echo "$as_me: failed program was:" >&5
54222 sed 's/^/| /' conftest.$ac_ext >&5
54223
54224 eval "$as_ac_var=no"
54225 fi
54226 rm -f conftest.err conftest.$ac_objext \
54227       conftest$ac_exeext conftest.$ac_ext
54228 fi
54229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54231 if test `eval echo '${'$as_ac_var'}'` = yes; then
54232   cat >>confdefs.h <<_ACEOF
54233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54234 _ACEOF
54235
54236 else
54237   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
54238 fi
54239 done
54240
54241   fi
54242
54243   # XXX Review this.  Nothing uses it.
54244   if test -n "$LIBMATHOBJS"; then
54245     need_libmath=yes
54246   fi
54247
54248
54249
54250   # Test wchar.h for mbstate_t, which is needed for char_traits and
54251   # others even if wchar_t support is not on.
54252   echo "$as_me:$LINENO: checking for mbstate_t" >&5
54253 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
54254   cat >conftest.$ac_ext <<_ACEOF
54255 /* confdefs.h.  */
54256 _ACEOF
54257 cat confdefs.h >>conftest.$ac_ext
54258 cat >>conftest.$ac_ext <<_ACEOF
54259 /* end confdefs.h.  */
54260 #include <wchar.h>
54261 int
54262 main ()
54263 {
54264 mbstate_t teststate;
54265   ;
54266   return 0;
54267 }
54268 _ACEOF
54269 rm -f conftest.$ac_objext
54270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54271   (eval $ac_compile) 2>conftest.er1
54272   ac_status=$?
54273   grep -v '^ *+' conftest.er1 >conftest.err
54274   rm -f conftest.er1
54275   cat conftest.err >&5
54276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54277   (exit $ac_status); } &&
54278          { ac_try='test -z "$ac_c_werror_flag"
54279                          || test ! -s conftest.err'
54280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54281   (eval $ac_try) 2>&5
54282   ac_status=$?
54283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54284   (exit $ac_status); }; } &&
54285          { ac_try='test -s conftest.$ac_objext'
54286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54287   (eval $ac_try) 2>&5
54288   ac_status=$?
54289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54290   (exit $ac_status); }; }; then
54291   have_mbstate_t=yes
54292 else
54293   echo "$as_me: failed program was:" >&5
54294 sed 's/^/| /' conftest.$ac_ext >&5
54295
54296 have_mbstate_t=no
54297 fi
54298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54299   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
54300 echo "${ECHO_T}$have_mbstate_t" >&6
54301   if test x"$have_mbstate_t" = xyes; then
54302     cat >>confdefs.h <<\_ACEOF
54303 #define HAVE_MBSTATE_T 1
54304 _ACEOF
54305
54306   fi
54307
54308   # Sanity check for existence of ISO C99 headers for extended encoding.
54309
54310 for ac_header in wchar.h
54311 do
54312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54314   echo "$as_me:$LINENO: checking for $ac_header" >&5
54315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54317   echo $ECHO_N "(cached) $ECHO_C" >&6
54318 fi
54319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54321 else
54322   # Is the header compilable?
54323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54325 cat >conftest.$ac_ext <<_ACEOF
54326 /* confdefs.h.  */
54327 _ACEOF
54328 cat confdefs.h >>conftest.$ac_ext
54329 cat >>conftest.$ac_ext <<_ACEOF
54330 /* end confdefs.h.  */
54331 $ac_includes_default
54332 #include <$ac_header>
54333 _ACEOF
54334 rm -f conftest.$ac_objext
54335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54336   (eval $ac_compile) 2>conftest.er1
54337   ac_status=$?
54338   grep -v '^ *+' conftest.er1 >conftest.err
54339   rm -f conftest.er1
54340   cat conftest.err >&5
54341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54342   (exit $ac_status); } &&
54343          { ac_try='test -z "$ac_c_werror_flag"
54344                          || test ! -s conftest.err'
54345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54346   (eval $ac_try) 2>&5
54347   ac_status=$?
54348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54349   (exit $ac_status); }; } &&
54350          { ac_try='test -s conftest.$ac_objext'
54351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54352   (eval $ac_try) 2>&5
54353   ac_status=$?
54354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54355   (exit $ac_status); }; }; then
54356   ac_header_compiler=yes
54357 else
54358   echo "$as_me: failed program was:" >&5
54359 sed 's/^/| /' conftest.$ac_ext >&5
54360
54361 ac_header_compiler=no
54362 fi
54363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54365 echo "${ECHO_T}$ac_header_compiler" >&6
54366
54367 # Is the header present?
54368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54370 cat >conftest.$ac_ext <<_ACEOF
54371 /* confdefs.h.  */
54372 _ACEOF
54373 cat confdefs.h >>conftest.$ac_ext
54374 cat >>conftest.$ac_ext <<_ACEOF
54375 /* end confdefs.h.  */
54376 #include <$ac_header>
54377 _ACEOF
54378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54380   ac_status=$?
54381   grep -v '^ *+' conftest.er1 >conftest.err
54382   rm -f conftest.er1
54383   cat conftest.err >&5
54384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54385   (exit $ac_status); } >/dev/null; then
54386   if test -s conftest.err; then
54387     ac_cpp_err=$ac_c_preproc_warn_flag
54388     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54389   else
54390     ac_cpp_err=
54391   fi
54392 else
54393   ac_cpp_err=yes
54394 fi
54395 if test -z "$ac_cpp_err"; then
54396   ac_header_preproc=yes
54397 else
54398   echo "$as_me: failed program was:" >&5
54399 sed 's/^/| /' conftest.$ac_ext >&5
54400
54401   ac_header_preproc=no
54402 fi
54403 rm -f conftest.err conftest.$ac_ext
54404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54405 echo "${ECHO_T}$ac_header_preproc" >&6
54406
54407 # So?  What about this header?
54408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54409   yes:no: )
54410     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54414     ac_header_preproc=yes
54415     ;;
54416   no:yes:* )
54417     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54419     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54420 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54421     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54423     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54424 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54427     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54429     (
54430       cat <<\_ASBOX
54431 ## ----------------------------------------- ##
54432 ## Report this to the package-unused lists.  ##
54433 ## ----------------------------------------- ##
54434 _ASBOX
54435     ) |
54436       sed "s/^/$as_me: WARNING:     /" >&2
54437     ;;
54438 esac
54439 echo "$as_me:$LINENO: checking for $ac_header" >&5
54440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54442   echo $ECHO_N "(cached) $ECHO_C" >&6
54443 else
54444   eval "$as_ac_Header=\$ac_header_preproc"
54445 fi
54446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54448
54449 fi
54450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54451   cat >>confdefs.h <<_ACEOF
54452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54453 _ACEOF
54454  ac_has_wchar_h=yes
54455 else
54456   ac_has_wchar_h=no
54457 fi
54458
54459 done
54460
54461
54462 for ac_header in wctype.h
54463 do
54464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54466   echo "$as_me:$LINENO: checking for $ac_header" >&5
54467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54469   echo $ECHO_N "(cached) $ECHO_C" >&6
54470 fi
54471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54473 else
54474   # Is the header compilable?
54475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54477 cat >conftest.$ac_ext <<_ACEOF
54478 /* confdefs.h.  */
54479 _ACEOF
54480 cat confdefs.h >>conftest.$ac_ext
54481 cat >>conftest.$ac_ext <<_ACEOF
54482 /* end confdefs.h.  */
54483 $ac_includes_default
54484 #include <$ac_header>
54485 _ACEOF
54486 rm -f conftest.$ac_objext
54487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54488   (eval $ac_compile) 2>conftest.er1
54489   ac_status=$?
54490   grep -v '^ *+' conftest.er1 >conftest.err
54491   rm -f conftest.er1
54492   cat conftest.err >&5
54493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54494   (exit $ac_status); } &&
54495          { ac_try='test -z "$ac_c_werror_flag"
54496                          || test ! -s conftest.err'
54497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54498   (eval $ac_try) 2>&5
54499   ac_status=$?
54500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54501   (exit $ac_status); }; } &&
54502          { ac_try='test -s conftest.$ac_objext'
54503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54504   (eval $ac_try) 2>&5
54505   ac_status=$?
54506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54507   (exit $ac_status); }; }; then
54508   ac_header_compiler=yes
54509 else
54510   echo "$as_me: failed program was:" >&5
54511 sed 's/^/| /' conftest.$ac_ext >&5
54512
54513 ac_header_compiler=no
54514 fi
54515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54517 echo "${ECHO_T}$ac_header_compiler" >&6
54518
54519 # Is the header present?
54520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54522 cat >conftest.$ac_ext <<_ACEOF
54523 /* confdefs.h.  */
54524 _ACEOF
54525 cat confdefs.h >>conftest.$ac_ext
54526 cat >>conftest.$ac_ext <<_ACEOF
54527 /* end confdefs.h.  */
54528 #include <$ac_header>
54529 _ACEOF
54530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54532   ac_status=$?
54533   grep -v '^ *+' conftest.er1 >conftest.err
54534   rm -f conftest.er1
54535   cat conftest.err >&5
54536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54537   (exit $ac_status); } >/dev/null; then
54538   if test -s conftest.err; then
54539     ac_cpp_err=$ac_c_preproc_warn_flag
54540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54541   else
54542     ac_cpp_err=
54543   fi
54544 else
54545   ac_cpp_err=yes
54546 fi
54547 if test -z "$ac_cpp_err"; then
54548   ac_header_preproc=yes
54549 else
54550   echo "$as_me: failed program was:" >&5
54551 sed 's/^/| /' conftest.$ac_ext >&5
54552
54553   ac_header_preproc=no
54554 fi
54555 rm -f conftest.err conftest.$ac_ext
54556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54557 echo "${ECHO_T}$ac_header_preproc" >&6
54558
54559 # So?  What about this header?
54560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54561   yes:no: )
54562     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54566     ac_header_preproc=yes
54567     ;;
54568   no:yes:* )
54569     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54571     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54572 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54573     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54575     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54576 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54579     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54581     (
54582       cat <<\_ASBOX
54583 ## ----------------------------------------- ##
54584 ## Report this to the package-unused lists.  ##
54585 ## ----------------------------------------- ##
54586 _ASBOX
54587     ) |
54588       sed "s/^/$as_me: WARNING:     /" >&2
54589     ;;
54590 esac
54591 echo "$as_me:$LINENO: checking for $ac_header" >&5
54592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54594   echo $ECHO_N "(cached) $ECHO_C" >&6
54595 else
54596   eval "$as_ac_Header=\$ac_header_preproc"
54597 fi
54598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54600
54601 fi
54602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54603   cat >>confdefs.h <<_ACEOF
54604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54605 _ACEOF
54606  ac_has_wctype_h=yes
54607 else
54608   ac_has_wctype_h=no
54609 fi
54610
54611 done
54612
54613
54614   # Only continue checking if the ISO C99 headers exist and support is on.
54615   if test x"$ac_has_wchar_h" = xyes &&
54616      test x"$ac_has_wctype_h" = xyes &&
54617      test x"$enable_c_mbchar" != xno; then
54618
54619     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
54620     # numeric_limits can instantiate type_traits<wchar_t>
54621     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
54622 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
54623     cat >conftest.$ac_ext <<_ACEOF
54624 /* confdefs.h.  */
54625 _ACEOF
54626 cat confdefs.h >>conftest.$ac_ext
54627 cat >>conftest.$ac_ext <<_ACEOF
54628 /* end confdefs.h.  */
54629 #include <wchar.h>
54630 int
54631 main ()
54632 {
54633 int i = WCHAR_MIN; int j = WCHAR_MAX;
54634   ;
54635   return 0;
54636 }
54637 _ACEOF
54638 rm -f conftest.$ac_objext
54639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54640   (eval $ac_compile) 2>conftest.er1
54641   ac_status=$?
54642   grep -v '^ *+' conftest.er1 >conftest.err
54643   rm -f conftest.er1
54644   cat conftest.err >&5
54645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54646   (exit $ac_status); } &&
54647          { ac_try='test -z "$ac_c_werror_flag"
54648                          || test ! -s conftest.err'
54649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54650   (eval $ac_try) 2>&5
54651   ac_status=$?
54652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54653   (exit $ac_status); }; } &&
54654          { ac_try='test -s conftest.$ac_objext'
54655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54656   (eval $ac_try) 2>&5
54657   ac_status=$?
54658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54659   (exit $ac_status); }; }; then
54660   has_wchar_minmax=yes
54661 else
54662   echo "$as_me: failed program was:" >&5
54663 sed 's/^/| /' conftest.$ac_ext >&5
54664
54665 has_wchar_minmax=no
54666 fi
54667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54668     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54669 echo "${ECHO_T}$has_wchar_minmax" >&6
54670
54671     # Test wchar.h for WEOF, which is what we use to determine whether
54672     # to specialize for char_traits<wchar_t> or not.
54673     echo "$as_me:$LINENO: checking for WEOF" >&5
54674 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54675     cat >conftest.$ac_ext <<_ACEOF
54676 /* confdefs.h.  */
54677 _ACEOF
54678 cat confdefs.h >>conftest.$ac_ext
54679 cat >>conftest.$ac_ext <<_ACEOF
54680 /* end confdefs.h.  */
54681
54682       #include <wchar.h>
54683       #include <stddef.h>
54684 int
54685 main ()
54686 {
54687 wint_t i = WEOF;
54688   ;
54689   return 0;
54690 }
54691 _ACEOF
54692 rm -f conftest.$ac_objext
54693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54694   (eval $ac_compile) 2>conftest.er1
54695   ac_status=$?
54696   grep -v '^ *+' conftest.er1 >conftest.err
54697   rm -f conftest.er1
54698   cat conftest.err >&5
54699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54700   (exit $ac_status); } &&
54701          { ac_try='test -z "$ac_c_werror_flag"
54702                          || test ! -s conftest.err'
54703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54704   (eval $ac_try) 2>&5
54705   ac_status=$?
54706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54707   (exit $ac_status); }; } &&
54708          { ac_try='test -s conftest.$ac_objext'
54709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54710   (eval $ac_try) 2>&5
54711   ac_status=$?
54712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54713   (exit $ac_status); }; }; then
54714   has_weof=yes
54715 else
54716   echo "$as_me: failed program was:" >&5
54717 sed 's/^/| /' conftest.$ac_ext >&5
54718
54719 has_weof=no
54720 fi
54721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54722     echo "$as_me:$LINENO: result: $has_weof" >&5
54723 echo "${ECHO_T}$has_weof" >&6
54724
54725     # Tests for wide character functions used in char_traits<wchar_t>.
54726     ac_wfuncs=yes
54727
54728
54729
54730
54731
54732
54733 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54734 do
54735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54736 echo "$as_me:$LINENO: checking for $ac_func" >&5
54737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54738 if eval "test \"\${$as_ac_var+set}\" = set"; then
54739   echo $ECHO_N "(cached) $ECHO_C" >&6
54740 else
54741   if test x$gcc_no_link = xyes; then
54742   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54744    { (exit 1); exit 1; }; }
54745 fi
54746 cat >conftest.$ac_ext <<_ACEOF
54747 /* confdefs.h.  */
54748 _ACEOF
54749 cat confdefs.h >>conftest.$ac_ext
54750 cat >>conftest.$ac_ext <<_ACEOF
54751 /* end confdefs.h.  */
54752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54754 #define $ac_func innocuous_$ac_func
54755
54756 /* System header to define __stub macros and hopefully few prototypes,
54757     which can conflict with char $ac_func (); below.
54758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54759     <limits.h> exists even on freestanding compilers.  */
54760
54761 #ifdef __STDC__
54762 # include <limits.h>
54763 #else
54764 # include <assert.h>
54765 #endif
54766
54767 #undef $ac_func
54768
54769 /* Override any gcc2 internal prototype to avoid an error.  */
54770 #ifdef __cplusplus
54771 extern "C"
54772 {
54773 #endif
54774 /* We use char because int might match the return type of a gcc2
54775    builtin and then its argument prototype would still apply.  */
54776 char $ac_func ();
54777 /* The GNU C library defines this for functions which it implements
54778     to always fail with ENOSYS.  Some functions are actually named
54779     something starting with __ and the normal name is an alias.  */
54780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54781 choke me
54782 #else
54783 char (*f) () = $ac_func;
54784 #endif
54785 #ifdef __cplusplus
54786 }
54787 #endif
54788
54789 int
54790 main ()
54791 {
54792 return f != $ac_func;
54793   ;
54794   return 0;
54795 }
54796 _ACEOF
54797 rm -f conftest.$ac_objext conftest$ac_exeext
54798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54799   (eval $ac_link) 2>conftest.er1
54800   ac_status=$?
54801   grep -v '^ *+' conftest.er1 >conftest.err
54802   rm -f conftest.er1
54803   cat conftest.err >&5
54804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54805   (exit $ac_status); } &&
54806          { ac_try='test -z "$ac_c_werror_flag"
54807                          || test ! -s conftest.err'
54808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54809   (eval $ac_try) 2>&5
54810   ac_status=$?
54811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54812   (exit $ac_status); }; } &&
54813          { ac_try='test -s conftest$ac_exeext'
54814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54815   (eval $ac_try) 2>&5
54816   ac_status=$?
54817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54818   (exit $ac_status); }; }; then
54819   eval "$as_ac_var=yes"
54820 else
54821   echo "$as_me: failed program was:" >&5
54822 sed 's/^/| /' conftest.$ac_ext >&5
54823
54824 eval "$as_ac_var=no"
54825 fi
54826 rm -f conftest.err conftest.$ac_objext \
54827       conftest$ac_exeext conftest.$ac_ext
54828 fi
54829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54831 if test `eval echo '${'$as_ac_var'}'` = yes; then
54832   cat >>confdefs.h <<_ACEOF
54833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54834 _ACEOF
54835
54836 else
54837   ac_wfuncs=no
54838 fi
54839 done
54840
54841
54842     # Checks for names injected into std:: by the c_std headers.
54843
54844
54845
54846
54847
54848
54849
54850
54851
54852
54853
54854
54855
54856
54857
54858
54859
54860
54861
54862
54863
54864
54865
54866
54867
54868
54869
54870
54871
54872
54873
54874
54875
54876
54877
54878
54879
54880
54881
54882
54883
54884
54885
54886
54887
54888
54889 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54890     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
54891     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54892     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
54893     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54894     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54895 do
54896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54897 echo "$as_me:$LINENO: checking for $ac_func" >&5
54898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54899 if eval "test \"\${$as_ac_var+set}\" = set"; then
54900   echo $ECHO_N "(cached) $ECHO_C" >&6
54901 else
54902   if test x$gcc_no_link = xyes; then
54903   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54904 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54905    { (exit 1); exit 1; }; }
54906 fi
54907 cat >conftest.$ac_ext <<_ACEOF
54908 /* confdefs.h.  */
54909 _ACEOF
54910 cat confdefs.h >>conftest.$ac_ext
54911 cat >>conftest.$ac_ext <<_ACEOF
54912 /* end confdefs.h.  */
54913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54915 #define $ac_func innocuous_$ac_func
54916
54917 /* System header to define __stub macros and hopefully few prototypes,
54918     which can conflict with char $ac_func (); below.
54919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54920     <limits.h> exists even on freestanding compilers.  */
54921
54922 #ifdef __STDC__
54923 # include <limits.h>
54924 #else
54925 # include <assert.h>
54926 #endif
54927
54928 #undef $ac_func
54929
54930 /* Override any gcc2 internal prototype to avoid an error.  */
54931 #ifdef __cplusplus
54932 extern "C"
54933 {
54934 #endif
54935 /* We use char because int might match the return type of a gcc2
54936    builtin and then its argument prototype would still apply.  */
54937 char $ac_func ();
54938 /* The GNU C library defines this for functions which it implements
54939     to always fail with ENOSYS.  Some functions are actually named
54940     something starting with __ and the normal name is an alias.  */
54941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54942 choke me
54943 #else
54944 char (*f) () = $ac_func;
54945 #endif
54946 #ifdef __cplusplus
54947 }
54948 #endif
54949
54950 int
54951 main ()
54952 {
54953 return f != $ac_func;
54954   ;
54955   return 0;
54956 }
54957 _ACEOF
54958 rm -f conftest.$ac_objext conftest$ac_exeext
54959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54960   (eval $ac_link) 2>conftest.er1
54961   ac_status=$?
54962   grep -v '^ *+' conftest.er1 >conftest.err
54963   rm -f conftest.er1
54964   cat conftest.err >&5
54965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54966   (exit $ac_status); } &&
54967          { ac_try='test -z "$ac_c_werror_flag"
54968                          || test ! -s conftest.err'
54969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54970   (eval $ac_try) 2>&5
54971   ac_status=$?
54972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54973   (exit $ac_status); }; } &&
54974          { ac_try='test -s conftest$ac_exeext'
54975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54976   (eval $ac_try) 2>&5
54977   ac_status=$?
54978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54979   (exit $ac_status); }; }; then
54980   eval "$as_ac_var=yes"
54981 else
54982   echo "$as_me: failed program was:" >&5
54983 sed 's/^/| /' conftest.$ac_ext >&5
54984
54985 eval "$as_ac_var=no"
54986 fi
54987 rm -f conftest.err conftest.$ac_objext \
54988       conftest$ac_exeext conftest.$ac_ext
54989 fi
54990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54992 if test `eval echo '${'$as_ac_var'}'` = yes; then
54993   cat >>confdefs.h <<_ACEOF
54994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54995 _ACEOF
54996
54997 else
54998   ac_wfuncs=no
54999 fi
55000 done
55001
55002
55003     # Checks for wide character functions that are not required
55004     # for basic wchar_t support.  Don't disable support if they are missing.
55005     # Injection of these is wrapped with guard macros.
55006
55007
55008
55009
55010
55011 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
55012 do
55013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55014 echo "$as_me:$LINENO: checking for $ac_func" >&5
55015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55016 if eval "test \"\${$as_ac_var+set}\" = set"; then
55017   echo $ECHO_N "(cached) $ECHO_C" >&6
55018 else
55019   if test x$gcc_no_link = xyes; then
55020   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55021 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55022    { (exit 1); exit 1; }; }
55023 fi
55024 cat >conftest.$ac_ext <<_ACEOF
55025 /* confdefs.h.  */
55026 _ACEOF
55027 cat confdefs.h >>conftest.$ac_ext
55028 cat >>conftest.$ac_ext <<_ACEOF
55029 /* end confdefs.h.  */
55030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55032 #define $ac_func innocuous_$ac_func
55033
55034 /* System header to define __stub macros and hopefully few prototypes,
55035     which can conflict with char $ac_func (); below.
55036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55037     <limits.h> exists even on freestanding compilers.  */
55038
55039 #ifdef __STDC__
55040 # include <limits.h>
55041 #else
55042 # include <assert.h>
55043 #endif
55044
55045 #undef $ac_func
55046
55047 /* Override any gcc2 internal prototype to avoid an error.  */
55048 #ifdef __cplusplus
55049 extern "C"
55050 {
55051 #endif
55052 /* We use char because int might match the return type of a gcc2
55053    builtin and then its argument prototype would still apply.  */
55054 char $ac_func ();
55055 /* The GNU C library defines this for functions which it implements
55056     to always fail with ENOSYS.  Some functions are actually named
55057     something starting with __ and the normal name is an alias.  */
55058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55059 choke me
55060 #else
55061 char (*f) () = $ac_func;
55062 #endif
55063 #ifdef __cplusplus
55064 }
55065 #endif
55066
55067 int
55068 main ()
55069 {
55070 return f != $ac_func;
55071   ;
55072   return 0;
55073 }
55074 _ACEOF
55075 rm -f conftest.$ac_objext conftest$ac_exeext
55076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55077   (eval $ac_link) 2>conftest.er1
55078   ac_status=$?
55079   grep -v '^ *+' conftest.er1 >conftest.err
55080   rm -f conftest.er1
55081   cat conftest.err >&5
55082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55083   (exit $ac_status); } &&
55084          { ac_try='test -z "$ac_c_werror_flag"
55085                          || test ! -s conftest.err'
55086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55087   (eval $ac_try) 2>&5
55088   ac_status=$?
55089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55090   (exit $ac_status); }; } &&
55091          { ac_try='test -s conftest$ac_exeext'
55092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55093   (eval $ac_try) 2>&5
55094   ac_status=$?
55095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55096   (exit $ac_status); }; }; then
55097   eval "$as_ac_var=yes"
55098 else
55099   echo "$as_me: failed program was:" >&5
55100 sed 's/^/| /' conftest.$ac_ext >&5
55101
55102 eval "$as_ac_var=no"
55103 fi
55104 rm -f conftest.err conftest.$ac_objext \
55105       conftest$ac_exeext conftest.$ac_ext
55106 fi
55107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55109 if test `eval echo '${'$as_ac_var'}'` = yes; then
55110   cat >>confdefs.h <<_ACEOF
55111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55112 _ACEOF
55113
55114 fi
55115 done
55116
55117
55118     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
55119 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
55120     if test x"$has_weof" = xyes &&
55121        test x"$has_wchar_minmax" = xyes &&
55122        test x"$ac_wfuncs" = xyes;
55123     then
55124       ac_isoC99_wchar_t=yes
55125     else
55126       ac_isoC99_wchar_t=no
55127     fi
55128     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
55129 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
55130
55131     # Use iconv for wchar_t to char conversions. As such, check for
55132     # X/Open Portability Guide, version 2 features (XPG2).
55133     if test "${ac_cv_header_iconv_h+set}" = set; then
55134   echo "$as_me:$LINENO: checking for iconv.h" >&5
55135 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55136 if test "${ac_cv_header_iconv_h+set}" = set; then
55137   echo $ECHO_N "(cached) $ECHO_C" >&6
55138 fi
55139 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55140 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55141 else
55142   # Is the header compilable?
55143 echo "$as_me:$LINENO: checking iconv.h usability" >&5
55144 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
55145 cat >conftest.$ac_ext <<_ACEOF
55146 /* confdefs.h.  */
55147 _ACEOF
55148 cat confdefs.h >>conftest.$ac_ext
55149 cat >>conftest.$ac_ext <<_ACEOF
55150 /* end confdefs.h.  */
55151 $ac_includes_default
55152 #include <iconv.h>
55153 _ACEOF
55154 rm -f conftest.$ac_objext
55155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55156   (eval $ac_compile) 2>conftest.er1
55157   ac_status=$?
55158   grep -v '^ *+' conftest.er1 >conftest.err
55159   rm -f conftest.er1
55160   cat conftest.err >&5
55161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55162   (exit $ac_status); } &&
55163          { ac_try='test -z "$ac_c_werror_flag"
55164                          || test ! -s conftest.err'
55165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55166   (eval $ac_try) 2>&5
55167   ac_status=$?
55168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55169   (exit $ac_status); }; } &&
55170          { ac_try='test -s conftest.$ac_objext'
55171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55172   (eval $ac_try) 2>&5
55173   ac_status=$?
55174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55175   (exit $ac_status); }; }; then
55176   ac_header_compiler=yes
55177 else
55178   echo "$as_me: failed program was:" >&5
55179 sed 's/^/| /' conftest.$ac_ext >&5
55180
55181 ac_header_compiler=no
55182 fi
55183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55185 echo "${ECHO_T}$ac_header_compiler" >&6
55186
55187 # Is the header present?
55188 echo "$as_me:$LINENO: checking iconv.h presence" >&5
55189 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
55190 cat >conftest.$ac_ext <<_ACEOF
55191 /* confdefs.h.  */
55192 _ACEOF
55193 cat confdefs.h >>conftest.$ac_ext
55194 cat >>conftest.$ac_ext <<_ACEOF
55195 /* end confdefs.h.  */
55196 #include <iconv.h>
55197 _ACEOF
55198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55200   ac_status=$?
55201   grep -v '^ *+' conftest.er1 >conftest.err
55202   rm -f conftest.er1
55203   cat conftest.err >&5
55204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55205   (exit $ac_status); } >/dev/null; then
55206   if test -s conftest.err; then
55207     ac_cpp_err=$ac_c_preproc_warn_flag
55208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55209   else
55210     ac_cpp_err=
55211   fi
55212 else
55213   ac_cpp_err=yes
55214 fi
55215 if test -z "$ac_cpp_err"; then
55216   ac_header_preproc=yes
55217 else
55218   echo "$as_me: failed program was:" >&5
55219 sed 's/^/| /' conftest.$ac_ext >&5
55220
55221   ac_header_preproc=no
55222 fi
55223 rm -f conftest.err conftest.$ac_ext
55224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55225 echo "${ECHO_T}$ac_header_preproc" >&6
55226
55227 # So?  What about this header?
55228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55229   yes:no: )
55230     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
55231 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55232     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
55233 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
55234     ac_header_preproc=yes
55235     ;;
55236   no:yes:* )
55237     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
55238 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
55239     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
55240 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
55241     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
55242 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
55243     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
55244 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
55245     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55246 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55247     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
55248 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
55249     (
55250       cat <<\_ASBOX
55251 ## ----------------------------------------- ##
55252 ## Report this to the package-unused lists.  ##
55253 ## ----------------------------------------- ##
55254 _ASBOX
55255     ) |
55256       sed "s/^/$as_me: WARNING:     /" >&2
55257     ;;
55258 esac
55259 echo "$as_me:$LINENO: checking for iconv.h" >&5
55260 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55261 if test "${ac_cv_header_iconv_h+set}" = set; then
55262   echo $ECHO_N "(cached) $ECHO_C" >&6
55263 else
55264   ac_cv_header_iconv_h=$ac_header_preproc
55265 fi
55266 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55267 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55268
55269 fi
55270 if test $ac_cv_header_iconv_h = yes; then
55271   ac_has_iconv_h=yes
55272 else
55273   ac_has_iconv_h=no
55274 fi
55275
55276
55277     if test "${ac_cv_header_langinfo_h+set}" = set; then
55278   echo "$as_me:$LINENO: checking for langinfo.h" >&5
55279 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55280 if test "${ac_cv_header_langinfo_h+set}" = set; then
55281   echo $ECHO_N "(cached) $ECHO_C" >&6
55282 fi
55283 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55284 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55285 else
55286   # Is the header compilable?
55287 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55288 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55289 cat >conftest.$ac_ext <<_ACEOF
55290 /* confdefs.h.  */
55291 _ACEOF
55292 cat confdefs.h >>conftest.$ac_ext
55293 cat >>conftest.$ac_ext <<_ACEOF
55294 /* end confdefs.h.  */
55295 $ac_includes_default
55296 #include <langinfo.h>
55297 _ACEOF
55298 rm -f conftest.$ac_objext
55299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55300   (eval $ac_compile) 2>conftest.er1
55301   ac_status=$?
55302   grep -v '^ *+' conftest.er1 >conftest.err
55303   rm -f conftest.er1
55304   cat conftest.err >&5
55305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55306   (exit $ac_status); } &&
55307          { ac_try='test -z "$ac_c_werror_flag"
55308                          || test ! -s conftest.err'
55309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55310   (eval $ac_try) 2>&5
55311   ac_status=$?
55312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55313   (exit $ac_status); }; } &&
55314          { ac_try='test -s conftest.$ac_objext'
55315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55316   (eval $ac_try) 2>&5
55317   ac_status=$?
55318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55319   (exit $ac_status); }; }; then
55320   ac_header_compiler=yes
55321 else
55322   echo "$as_me: failed program was:" >&5
55323 sed 's/^/| /' conftest.$ac_ext >&5
55324
55325 ac_header_compiler=no
55326 fi
55327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55329 echo "${ECHO_T}$ac_header_compiler" >&6
55330
55331 # Is the header present?
55332 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55333 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55334 cat >conftest.$ac_ext <<_ACEOF
55335 /* confdefs.h.  */
55336 _ACEOF
55337 cat confdefs.h >>conftest.$ac_ext
55338 cat >>conftest.$ac_ext <<_ACEOF
55339 /* end confdefs.h.  */
55340 #include <langinfo.h>
55341 _ACEOF
55342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55344   ac_status=$?
55345   grep -v '^ *+' conftest.er1 >conftest.err
55346   rm -f conftest.er1
55347   cat conftest.err >&5
55348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55349   (exit $ac_status); } >/dev/null; then
55350   if test -s conftest.err; then
55351     ac_cpp_err=$ac_c_preproc_warn_flag
55352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55353   else
55354     ac_cpp_err=
55355   fi
55356 else
55357   ac_cpp_err=yes
55358 fi
55359 if test -z "$ac_cpp_err"; then
55360   ac_header_preproc=yes
55361 else
55362   echo "$as_me: failed program was:" >&5
55363 sed 's/^/| /' conftest.$ac_ext >&5
55364
55365   ac_header_preproc=no
55366 fi
55367 rm -f conftest.err conftest.$ac_ext
55368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55369 echo "${ECHO_T}$ac_header_preproc" >&6
55370
55371 # So?  What about this header?
55372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55373   yes:no: )
55374     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55375 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55376     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
55377 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
55378     ac_header_preproc=yes
55379     ;;
55380   no:yes:* )
55381     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55382 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55383     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
55384 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
55385     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
55386 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
55387     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
55388 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
55389     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55390 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55391     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
55392 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
55393     (
55394       cat <<\_ASBOX
55395 ## ----------------------------------------- ##
55396 ## Report this to the package-unused lists.  ##
55397 ## ----------------------------------------- ##
55398 _ASBOX
55399     ) |
55400       sed "s/^/$as_me: WARNING:     /" >&2
55401     ;;
55402 esac
55403 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55404 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55405 if test "${ac_cv_header_langinfo_h+set}" = set; then
55406   echo $ECHO_N "(cached) $ECHO_C" >&6
55407 else
55408   ac_cv_header_langinfo_h=$ac_header_preproc
55409 fi
55410 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55411 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55412
55413 fi
55414 if test $ac_cv_header_langinfo_h = yes; then
55415   ac_has_langinfo_h=yes
55416 else
55417   ac_has_langinfo_h=no
55418 fi
55419
55420
55421
55422     # Check for existence of libiconv.a providing XPG2 wchar_t support.
55423     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
55424 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
55425 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
55426   echo $ECHO_N "(cached) $ECHO_C" >&6
55427 else
55428   ac_check_lib_save_LIBS=$LIBS
55429 LIBS="-liconv  $LIBS"
55430 if test x$gcc_no_link = xyes; then
55431   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55433    { (exit 1); exit 1; }; }
55434 fi
55435 cat >conftest.$ac_ext <<_ACEOF
55436 /* confdefs.h.  */
55437 _ACEOF
55438 cat confdefs.h >>conftest.$ac_ext
55439 cat >>conftest.$ac_ext <<_ACEOF
55440 /* end confdefs.h.  */
55441
55442 /* Override any gcc2 internal prototype to avoid an error.  */
55443 #ifdef __cplusplus
55444 extern "C"
55445 #endif
55446 /* We use char because int might match the return type of a gcc2
55447    builtin and then its argument prototype would still apply.  */
55448 char iconv ();
55449 int
55450 main ()
55451 {
55452 iconv ();
55453   ;
55454   return 0;
55455 }
55456 _ACEOF
55457 rm -f conftest.$ac_objext conftest$ac_exeext
55458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55459   (eval $ac_link) 2>conftest.er1
55460   ac_status=$?
55461   grep -v '^ *+' conftest.er1 >conftest.err
55462   rm -f conftest.er1
55463   cat conftest.err >&5
55464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55465   (exit $ac_status); } &&
55466          { ac_try='test -z "$ac_c_werror_flag"
55467                          || test ! -s conftest.err'
55468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55469   (eval $ac_try) 2>&5
55470   ac_status=$?
55471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55472   (exit $ac_status); }; } &&
55473          { ac_try='test -s conftest$ac_exeext'
55474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55475   (eval $ac_try) 2>&5
55476   ac_status=$?
55477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55478   (exit $ac_status); }; }; then
55479   ac_cv_lib_iconv_iconv=yes
55480 else
55481   echo "$as_me: failed program was:" >&5
55482 sed 's/^/| /' conftest.$ac_ext >&5
55483
55484 ac_cv_lib_iconv_iconv=no
55485 fi
55486 rm -f conftest.err conftest.$ac_objext \
55487       conftest$ac_exeext conftest.$ac_ext
55488 LIBS=$ac_check_lib_save_LIBS
55489 fi
55490 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
55491 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
55492 if test $ac_cv_lib_iconv_iconv = yes; then
55493   libiconv="-liconv"
55494 fi
55495
55496     ac_save_LIBS="$LIBS"
55497     LIBS="$LIBS $libiconv"
55498
55499
55500
55501
55502
55503 for ac_func in iconv_open iconv_close iconv nl_langinfo
55504 do
55505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55506 echo "$as_me:$LINENO: checking for $ac_func" >&5
55507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55508 if eval "test \"\${$as_ac_var+set}\" = set"; then
55509   echo $ECHO_N "(cached) $ECHO_C" >&6
55510 else
55511   if test x$gcc_no_link = xyes; then
55512   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55513 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55514    { (exit 1); exit 1; }; }
55515 fi
55516 cat >conftest.$ac_ext <<_ACEOF
55517 /* confdefs.h.  */
55518 _ACEOF
55519 cat confdefs.h >>conftest.$ac_ext
55520 cat >>conftest.$ac_ext <<_ACEOF
55521 /* end confdefs.h.  */
55522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55524 #define $ac_func innocuous_$ac_func
55525
55526 /* System header to define __stub macros and hopefully few prototypes,
55527     which can conflict with char $ac_func (); below.
55528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55529     <limits.h> exists even on freestanding compilers.  */
55530
55531 #ifdef __STDC__
55532 # include <limits.h>
55533 #else
55534 # include <assert.h>
55535 #endif
55536
55537 #undef $ac_func
55538
55539 /* Override any gcc2 internal prototype to avoid an error.  */
55540 #ifdef __cplusplus
55541 extern "C"
55542 {
55543 #endif
55544 /* We use char because int might match the return type of a gcc2
55545    builtin and then its argument prototype would still apply.  */
55546 char $ac_func ();
55547 /* The GNU C library defines this for functions which it implements
55548     to always fail with ENOSYS.  Some functions are actually named
55549     something starting with __ and the normal name is an alias.  */
55550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55551 choke me
55552 #else
55553 char (*f) () = $ac_func;
55554 #endif
55555 #ifdef __cplusplus
55556 }
55557 #endif
55558
55559 int
55560 main ()
55561 {
55562 return f != $ac_func;
55563   ;
55564   return 0;
55565 }
55566 _ACEOF
55567 rm -f conftest.$ac_objext conftest$ac_exeext
55568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55569   (eval $ac_link) 2>conftest.er1
55570   ac_status=$?
55571   grep -v '^ *+' conftest.er1 >conftest.err
55572   rm -f conftest.er1
55573   cat conftest.err >&5
55574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55575   (exit $ac_status); } &&
55576          { ac_try='test -z "$ac_c_werror_flag"
55577                          || test ! -s conftest.err'
55578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55579   (eval $ac_try) 2>&5
55580   ac_status=$?
55581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55582   (exit $ac_status); }; } &&
55583          { ac_try='test -s conftest$ac_exeext'
55584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55585   (eval $ac_try) 2>&5
55586   ac_status=$?
55587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55588   (exit $ac_status); }; }; then
55589   eval "$as_ac_var=yes"
55590 else
55591   echo "$as_me: failed program was:" >&5
55592 sed 's/^/| /' conftest.$ac_ext >&5
55593
55594 eval "$as_ac_var=no"
55595 fi
55596 rm -f conftest.err conftest.$ac_objext \
55597       conftest$ac_exeext conftest.$ac_ext
55598 fi
55599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55601 if test `eval echo '${'$as_ac_var'}'` = yes; then
55602   cat >>confdefs.h <<_ACEOF
55603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55604 _ACEOF
55605  ac_XPG2funcs=yes
55606 else
55607   ac_XPG2funcs=no
55608 fi
55609 done
55610
55611
55612     LIBS="$ac_save_LIBS"
55613
55614     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
55615 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
55616     if test x"$ac_has_iconv_h" = xyes &&
55617        test x"$ac_has_langinfo_h" = xyes &&
55618        test x"$ac_XPG2funcs" = xyes;
55619     then
55620       ac_XPG2_wchar_t=yes
55621     else
55622       ac_XPG2_wchar_t=no
55623     fi
55624     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
55625 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
55626
55627     # At the moment, only enable wchar_t specializations if all the
55628     # above support is present.
55629     if test x"$ac_isoC99_wchar_t" = xyes &&
55630        test x"$ac_XPG2_wchar_t" = xyes;
55631     then
55632       cat >>confdefs.h <<\_ACEOF
55633 #define _GLIBCXX_USE_WCHAR_T 1
55634 _ACEOF
55635
55636       enable_wchar_t=yes
55637     fi
55638   fi
55639   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
55640 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
55641   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
55642 echo "${ECHO_T}$enable_wchar_t" >&6
55643
55644     cat >>confdefs.h <<\_ACEOF
55645 #define HAVE_LC_MESSAGES 1
55646 _ACEOF
55647
55648     cat >>confdefs.h <<\_ACEOF
55649 #define HAVE_GETPAGESIZE 1
55650 _ACEOF
55651
55652     cat >>confdefs.h <<\_ACEOF
55653 #define HAVE_SETENV 1
55654 _ACEOF
55655
55656     cat >>confdefs.h <<\_ACEOF
55657 #define HAVE_SIGSETJMP 1
55658 _ACEOF
55659
55660     cat >>confdefs.h <<\_ACEOF
55661 #define HAVE_COPYSIGN 1
55662 _ACEOF
55663
55664     cat >>confdefs.h <<\_ACEOF
55665 #define HAVE_COPYSIGNF 1
55666 _ACEOF
55667
55668     cat >>confdefs.h <<\_ACEOF
55669 #define HAVE_FINITEF 1
55670 _ACEOF
55671
55672     cat >>confdefs.h <<\_ACEOF
55673 #define HAVE_FINITE 1
55674 _ACEOF
55675
55676     cat >>confdefs.h <<\_ACEOF
55677 #define HAVE_FREXPF 1
55678 _ACEOF
55679
55680     cat >>confdefs.h <<\_ACEOF
55681 #define HAVE_HYPOT 1
55682 _ACEOF
55683
55684     cat >>confdefs.h <<\_ACEOF
55685 #define HAVE_HYPOTF 1
55686 _ACEOF
55687
55688     cat >>confdefs.h <<\_ACEOF
55689 #define HAVE_ISINF 1
55690 _ACEOF
55691
55692     cat >>confdefs.h <<\_ACEOF
55693 #define HAVE_ISNAN 1
55694 _ACEOF
55695
55696     cat >>confdefs.h <<\_ACEOF
55697 #define HAVE_ISNANF 1
55698 _ACEOF
55699
55700
55701     cat >>confdefs.h <<\_ACEOF
55702 #define HAVE_MMAP 1
55703 _ACEOF
55704
55705     cat >>confdefs.h <<\_ACEOF
55706 #define HAVE_ACOSF 1
55707 _ACEOF
55708
55709     cat >>confdefs.h <<\_ACEOF
55710 #define HAVE_ASINF 1
55711 _ACEOF
55712
55713     cat >>confdefs.h <<\_ACEOF
55714 #define HAVE_ATAN2F 1
55715 _ACEOF
55716
55717     cat >>confdefs.h <<\_ACEOF
55718 #define HAVE_ATANF 1
55719 _ACEOF
55720
55721     cat >>confdefs.h <<\_ACEOF
55722 #define HAVE_CEILF 1
55723 _ACEOF
55724
55725     cat >>confdefs.h <<\_ACEOF
55726 #define HAVE_COPYSIGN 1
55727 _ACEOF
55728
55729     cat >>confdefs.h <<\_ACEOF
55730 #define HAVE_COPYSIGNF 1
55731 _ACEOF
55732
55733     cat >>confdefs.h <<\_ACEOF
55734 #define HAVE_COSF 1
55735 _ACEOF
55736
55737     cat >>confdefs.h <<\_ACEOF
55738 #define HAVE_COSHF 1
55739 _ACEOF
55740
55741     cat >>confdefs.h <<\_ACEOF
55742 #define HAVE_EXPF 1
55743 _ACEOF
55744
55745     cat >>confdefs.h <<\_ACEOF
55746 #define HAVE_FABSF 1
55747 _ACEOF
55748
55749     cat >>confdefs.h <<\_ACEOF
55750 #define HAVE_FLOORF 1
55751 _ACEOF
55752
55753     cat >>confdefs.h <<\_ACEOF
55754 #define HAVE_FMODF 1
55755 _ACEOF
55756
55757     cat >>confdefs.h <<\_ACEOF
55758 #define HAVE_FREXPF 1
55759 _ACEOF
55760
55761     cat >>confdefs.h <<\_ACEOF
55762 #define HAVE_LDEXPF 1
55763 _ACEOF
55764
55765     cat >>confdefs.h <<\_ACEOF
55766 #define HAVE_LOG10F 1
55767 _ACEOF
55768
55769     cat >>confdefs.h <<\_ACEOF
55770 #define HAVE_LOGF 1
55771 _ACEOF
55772
55773     cat >>confdefs.h <<\_ACEOF
55774 #define HAVE_MODFF 1
55775 _ACEOF
55776
55777     cat >>confdefs.h <<\_ACEOF
55778 #define HAVE_POWF 1
55779 _ACEOF
55780
55781     cat >>confdefs.h <<\_ACEOF
55782 #define HAVE_SINF 1
55783 _ACEOF
55784
55785     cat >>confdefs.h <<\_ACEOF
55786 #define HAVE_SINHF 1
55787 _ACEOF
55788
55789     cat >>confdefs.h <<\_ACEOF
55790 #define HAVE_SQRTF 1
55791 _ACEOF
55792
55793     cat >>confdefs.h <<\_ACEOF
55794 #define HAVE_TANF 1
55795 _ACEOF
55796
55797     cat >>confdefs.h <<\_ACEOF
55798 #define HAVE_TANHF 1
55799 _ACEOF
55800
55801     if test x"long_double_math_on_this_cpu" = x"yes"; then
55802       cat >>confdefs.h <<\_ACEOF
55803 #define HAVE_FINITEL 1
55804 _ACEOF
55805
55806       cat >>confdefs.h <<\_ACEOF
55807 #define HAVE_ISINFL 1
55808 _ACEOF
55809
55810       cat >>confdefs.h <<\_ACEOF
55811 #define HAVE_ISNANL 1
55812 _ACEOF
55813
55814     fi
55815     ;;
55816   *-hpux*)
55817
55818
55819
55820
55821
55822
55823
55824
55825
55826
55827
55828
55829 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55830       machine/endian.h machine/param.h sys/machine.h sys/types.h \
55831       fp.h locale.h float.h inttypes.h
55832 do
55833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55835   echo "$as_me:$LINENO: checking for $ac_header" >&5
55836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55838   echo $ECHO_N "(cached) $ECHO_C" >&6
55839 fi
55840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55842 else
55843   # Is the header compilable?
55844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55846 cat >conftest.$ac_ext <<_ACEOF
55847 /* confdefs.h.  */
55848 _ACEOF
55849 cat confdefs.h >>conftest.$ac_ext
55850 cat >>conftest.$ac_ext <<_ACEOF
55851 /* end confdefs.h.  */
55852 $ac_includes_default
55853 #include <$ac_header>
55854 _ACEOF
55855 rm -f conftest.$ac_objext
55856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55857   (eval $ac_compile) 2>conftest.er1
55858   ac_status=$?
55859   grep -v '^ *+' conftest.er1 >conftest.err
55860   rm -f conftest.er1
55861   cat conftest.err >&5
55862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55863   (exit $ac_status); } &&
55864          { ac_try='test -z "$ac_c_werror_flag"
55865                          || test ! -s conftest.err'
55866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55867   (eval $ac_try) 2>&5
55868   ac_status=$?
55869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55870   (exit $ac_status); }; } &&
55871          { ac_try='test -s conftest.$ac_objext'
55872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55873   (eval $ac_try) 2>&5
55874   ac_status=$?
55875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55876   (exit $ac_status); }; }; then
55877   ac_header_compiler=yes
55878 else
55879   echo "$as_me: failed program was:" >&5
55880 sed 's/^/| /' conftest.$ac_ext >&5
55881
55882 ac_header_compiler=no
55883 fi
55884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55886 echo "${ECHO_T}$ac_header_compiler" >&6
55887
55888 # Is the header present?
55889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55891 cat >conftest.$ac_ext <<_ACEOF
55892 /* confdefs.h.  */
55893 _ACEOF
55894 cat confdefs.h >>conftest.$ac_ext
55895 cat >>conftest.$ac_ext <<_ACEOF
55896 /* end confdefs.h.  */
55897 #include <$ac_header>
55898 _ACEOF
55899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55901   ac_status=$?
55902   grep -v '^ *+' conftest.er1 >conftest.err
55903   rm -f conftest.er1
55904   cat conftest.err >&5
55905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55906   (exit $ac_status); } >/dev/null; then
55907   if test -s conftest.err; then
55908     ac_cpp_err=$ac_c_preproc_warn_flag
55909     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55910   else
55911     ac_cpp_err=
55912   fi
55913 else
55914   ac_cpp_err=yes
55915 fi
55916 if test -z "$ac_cpp_err"; then
55917   ac_header_preproc=yes
55918 else
55919   echo "$as_me: failed program was:" >&5
55920 sed 's/^/| /' conftest.$ac_ext >&5
55921
55922   ac_header_preproc=no
55923 fi
55924 rm -f conftest.err conftest.$ac_ext
55925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55926 echo "${ECHO_T}$ac_header_preproc" >&6
55927
55928 # So?  What about this header?
55929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55930   yes:no: )
55931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55935     ac_header_preproc=yes
55936     ;;
55937   no:yes:* )
55938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
55941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
55942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
55945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
55946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55950     (
55951       cat <<\_ASBOX
55952 ## ----------------------------------------- ##
55953 ## Report this to the package-unused lists.  ##
55954 ## ----------------------------------------- ##
55955 _ASBOX
55956     ) |
55957       sed "s/^/$as_me: WARNING:     /" >&2
55958     ;;
55959 esac
55960 echo "$as_me:$LINENO: checking for $ac_header" >&5
55961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55963   echo $ECHO_N "(cached) $ECHO_C" >&6
55964 else
55965   eval "$as_ac_Header=\$ac_header_preproc"
55966 fi
55967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55969
55970 fi
55971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55972   cat >>confdefs.h <<_ACEOF
55973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55974 _ACEOF
55975
55976 fi
55977
55978 done
55979
55980     SECTION_FLAGS='-ffunction-sections -fdata-sections'
55981
55982
55983   # If we're not using GNU ld, then there's no point in even trying these
55984   # tests.  Check for that first.  We should have already tested for gld
55985   # by now (in libtool), but require it now just to be safe...
55986   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
55987   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
55988
55989
55990
55991   # The name set by libtool depends on the version of libtool.  Shame on us
55992   # for depending on an impl detail, but c'est la vie.  Older versions used
55993   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
55994   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
55995   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
55996   # set (hence we're using an older libtool), then set it.
55997   if test x${with_gnu_ld+set} != xset; then
55998     if test x${ac_cv_prog_gnu_ld+set} != xset; then
55999       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
56000       with_gnu_ld=no
56001     else
56002       with_gnu_ld=$ac_cv_prog_gnu_ld
56003     fi
56004   fi
56005
56006   # Start by getting the version number.  I think the libtool test already
56007   # does some of this, but throws away the result.
56008
56009   ldver=`$LD --version 2>/dev/null | head -1 | \
56010          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
56011
56012   glibcxx_gnu_ld_version=`echo $ldver | \
56013          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
56014
56015   # Set --gc-sections.
56016   if test "$with_gnu_ld" = "notbroken"; then
56017     # GNU ld it is!  Joy and bunny rabbits!
56018
56019     # All these tests are for C++; save the language and the compiler flags.
56020     # Need to do this so that g++ won't try to link in libstdc++
56021     ac_test_CFLAGS="${CFLAGS+set}"
56022     ac_save_CFLAGS="$CFLAGS"
56023     CFLAGS='-x c++  -Wl,--gc-sections'
56024
56025     # Check for -Wl,--gc-sections
56026     # XXX This test is broken at the moment, as symbols required for linking
56027     # are now in libsupc++ (not built yet).  In addition, this test has
56028     # cored on solaris in the past.  In addition, --gc-sections doesn't
56029     # really work at the moment (keeps on discarding used sections, first
56030     # .eh_frame and now some of the glibc sections for iconv).
56031     # Bzzzzt.  Thanks for playing, maybe next time.
56032     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
56033 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
56034     if test "$cross_compiling" = yes; then
56035   ac_sectionLDflags=yes
56036 else
56037   cat >conftest.$ac_ext <<_ACEOF
56038 /* confdefs.h.  */
56039 _ACEOF
56040 cat confdefs.h >>conftest.$ac_ext
56041 cat >>conftest.$ac_ext <<_ACEOF
56042 /* end confdefs.h.  */
56043
56044      int main(void)
56045      {
56046        try { throw 1; }
56047        catch (...) { };
56048        return 0;
56049      }
56050
56051 _ACEOF
56052 rm -f conftest$ac_exeext
56053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56054   (eval $ac_link) 2>&5
56055   ac_status=$?
56056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56059   (eval $ac_try) 2>&5
56060   ac_status=$?
56061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56062   (exit $ac_status); }; }; then
56063   ac_sectionLDflags=yes
56064 else
56065   echo "$as_me: program exited with status $ac_status" >&5
56066 echo "$as_me: failed program was:" >&5
56067 sed 's/^/| /' conftest.$ac_ext >&5
56068
56069 ( exit $ac_status )
56070 ac_sectionLDflags=no
56071 fi
56072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56073 fi
56074     if test "$ac_test_CFLAGS" = set; then
56075       CFLAGS="$ac_save_CFLAGS"
56076     else
56077       # this is the suspicious part
56078       CFLAGS=''
56079     fi
56080     if test "$ac_sectionLDflags" = "yes"; then
56081       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
56082     fi
56083     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
56084 echo "${ECHO_T}$ac_sectionLDflags" >&6
56085   fi
56086
56087   # Set linker optimization flags.
56088   if test x"$with_gnu_ld" = x"yes"; then
56089     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
56090   fi
56091
56092
56093
56094
56095
56096
56097 echo "$as_me:$LINENO: checking for main in -lm" >&5
56098 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
56099 if test "${ac_cv_lib_m_main+set}" = set; then
56100   echo $ECHO_N "(cached) $ECHO_C" >&6
56101 else
56102   ac_check_lib_save_LIBS=$LIBS
56103 LIBS="-lm  $LIBS"
56104 if test x$gcc_no_link = xyes; then
56105   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56107    { (exit 1); exit 1; }; }
56108 fi
56109 cat >conftest.$ac_ext <<_ACEOF
56110 /* confdefs.h.  */
56111 _ACEOF
56112 cat confdefs.h >>conftest.$ac_ext
56113 cat >>conftest.$ac_ext <<_ACEOF
56114 /* end confdefs.h.  */
56115
56116
56117 int
56118 main ()
56119 {
56120 main ();
56121   ;
56122   return 0;
56123 }
56124 _ACEOF
56125 rm -f conftest.$ac_objext conftest$ac_exeext
56126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56127   (eval $ac_link) 2>conftest.er1
56128   ac_status=$?
56129   grep -v '^ *+' conftest.er1 >conftest.err
56130   rm -f conftest.er1
56131   cat conftest.err >&5
56132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56133   (exit $ac_status); } &&
56134          { ac_try='test -z "$ac_c_werror_flag"
56135                          || test ! -s conftest.err'
56136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56137   (eval $ac_try) 2>&5
56138   ac_status=$?
56139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56140   (exit $ac_status); }; } &&
56141          { ac_try='test -s conftest$ac_exeext'
56142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56143   (eval $ac_try) 2>&5
56144   ac_status=$?
56145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56146   (exit $ac_status); }; }; then
56147   ac_cv_lib_m_main=yes
56148 else
56149   echo "$as_me: failed program was:" >&5
56150 sed 's/^/| /' conftest.$ac_ext >&5
56151
56152 ac_cv_lib_m_main=no
56153 fi
56154 rm -f conftest.err conftest.$ac_objext \
56155       conftest$ac_exeext conftest.$ac_ext
56156 LIBS=$ac_check_lib_save_LIBS
56157 fi
56158 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
56159 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
56160 if test $ac_cv_lib_m_main = yes; then
56161   cat >>confdefs.h <<_ACEOF
56162 #define HAVE_LIBM 1
56163 _ACEOF
56164
56165   LIBS="-lm $LIBS"
56166
56167 fi
56168
56169
56170 for ac_func in copysignf
56171 do
56172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56173 echo "$as_me:$LINENO: checking for $ac_func" >&5
56174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56175 if eval "test \"\${$as_ac_var+set}\" = set"; then
56176   echo $ECHO_N "(cached) $ECHO_C" >&6
56177 else
56178   if test x$gcc_no_link = xyes; then
56179   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56181    { (exit 1); exit 1; }; }
56182 fi
56183 cat >conftest.$ac_ext <<_ACEOF
56184 /* confdefs.h.  */
56185 _ACEOF
56186 cat confdefs.h >>conftest.$ac_ext
56187 cat >>conftest.$ac_ext <<_ACEOF
56188 /* end confdefs.h.  */
56189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56191 #define $ac_func innocuous_$ac_func
56192
56193 /* System header to define __stub macros and hopefully few prototypes,
56194     which can conflict with char $ac_func (); below.
56195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56196     <limits.h> exists even on freestanding compilers.  */
56197
56198 #ifdef __STDC__
56199 # include <limits.h>
56200 #else
56201 # include <assert.h>
56202 #endif
56203
56204 #undef $ac_func
56205
56206 /* Override any gcc2 internal prototype to avoid an error.  */
56207 #ifdef __cplusplus
56208 extern "C"
56209 {
56210 #endif
56211 /* We use char because int might match the return type of a gcc2
56212    builtin and then its argument prototype would still apply.  */
56213 char $ac_func ();
56214 /* The GNU C library defines this for functions which it implements
56215     to always fail with ENOSYS.  Some functions are actually named
56216     something starting with __ and the normal name is an alias.  */
56217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56218 choke me
56219 #else
56220 char (*f) () = $ac_func;
56221 #endif
56222 #ifdef __cplusplus
56223 }
56224 #endif
56225
56226 int
56227 main ()
56228 {
56229 return f != $ac_func;
56230   ;
56231   return 0;
56232 }
56233 _ACEOF
56234 rm -f conftest.$ac_objext conftest$ac_exeext
56235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56236   (eval $ac_link) 2>conftest.er1
56237   ac_status=$?
56238   grep -v '^ *+' conftest.er1 >conftest.err
56239   rm -f conftest.er1
56240   cat conftest.err >&5
56241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56242   (exit $ac_status); } &&
56243          { ac_try='test -z "$ac_c_werror_flag"
56244                          || test ! -s conftest.err'
56245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56246   (eval $ac_try) 2>&5
56247   ac_status=$?
56248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56249   (exit $ac_status); }; } &&
56250          { ac_try='test -s conftest$ac_exeext'
56251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56252   (eval $ac_try) 2>&5
56253   ac_status=$?
56254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56255   (exit $ac_status); }; }; then
56256   eval "$as_ac_var=yes"
56257 else
56258   echo "$as_me: failed program was:" >&5
56259 sed 's/^/| /' conftest.$ac_ext >&5
56260
56261 eval "$as_ac_var=no"
56262 fi
56263 rm -f conftest.err conftest.$ac_objext \
56264       conftest$ac_exeext conftest.$ac_ext
56265 fi
56266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56268 if test `eval echo '${'$as_ac_var'}'` = yes; then
56269   cat >>confdefs.h <<_ACEOF
56270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56271 _ACEOF
56272
56273 else
56274   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
56275 fi
56276 done
56277
56278
56279
56280 for ac_func in __signbit
56281 do
56282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56283 echo "$as_me:$LINENO: checking for $ac_func" >&5
56284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56285 if eval "test \"\${$as_ac_var+set}\" = set"; then
56286   echo $ECHO_N "(cached) $ECHO_C" >&6
56287 else
56288   if test x$gcc_no_link = xyes; then
56289   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56291    { (exit 1); exit 1; }; }
56292 fi
56293 cat >conftest.$ac_ext <<_ACEOF
56294 /* confdefs.h.  */
56295 _ACEOF
56296 cat confdefs.h >>conftest.$ac_ext
56297 cat >>conftest.$ac_ext <<_ACEOF
56298 /* end confdefs.h.  */
56299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56301 #define $ac_func innocuous_$ac_func
56302
56303 /* System header to define __stub macros and hopefully few prototypes,
56304     which can conflict with char $ac_func (); below.
56305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56306     <limits.h> exists even on freestanding compilers.  */
56307
56308 #ifdef __STDC__
56309 # include <limits.h>
56310 #else
56311 # include <assert.h>
56312 #endif
56313
56314 #undef $ac_func
56315
56316 /* Override any gcc2 internal prototype to avoid an error.  */
56317 #ifdef __cplusplus
56318 extern "C"
56319 {
56320 #endif
56321 /* We use char because int might match the return type of a gcc2
56322    builtin and then its argument prototype would still apply.  */
56323 char $ac_func ();
56324 /* The GNU C library defines this for functions which it implements
56325     to always fail with ENOSYS.  Some functions are actually named
56326     something starting with __ and the normal name is an alias.  */
56327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56328 choke me
56329 #else
56330 char (*f) () = $ac_func;
56331 #endif
56332 #ifdef __cplusplus
56333 }
56334 #endif
56335
56336 int
56337 main ()
56338 {
56339 return f != $ac_func;
56340   ;
56341   return 0;
56342 }
56343 _ACEOF
56344 rm -f conftest.$ac_objext conftest$ac_exeext
56345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56346   (eval $ac_link) 2>conftest.er1
56347   ac_status=$?
56348   grep -v '^ *+' conftest.er1 >conftest.err
56349   rm -f conftest.er1
56350   cat conftest.err >&5
56351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56352   (exit $ac_status); } &&
56353          { ac_try='test -z "$ac_c_werror_flag"
56354                          || test ! -s conftest.err'
56355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56356   (eval $ac_try) 2>&5
56357   ac_status=$?
56358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56359   (exit $ac_status); }; } &&
56360          { ac_try='test -s conftest$ac_exeext'
56361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56362   (eval $ac_try) 2>&5
56363   ac_status=$?
56364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56365   (exit $ac_status); }; }; then
56366   eval "$as_ac_var=yes"
56367 else
56368   echo "$as_me: failed program was:" >&5
56369 sed 's/^/| /' conftest.$ac_ext >&5
56370
56371 eval "$as_ac_var=no"
56372 fi
56373 rm -f conftest.err conftest.$ac_objext \
56374       conftest$ac_exeext conftest.$ac_ext
56375 fi
56376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56378 if test `eval echo '${'$as_ac_var'}'` = yes; then
56379   cat >>confdefs.h <<_ACEOF
56380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56381 _ACEOF
56382
56383 else
56384   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
56385 fi
56386 done
56387
56388
56389 for ac_func in __signbitf
56390 do
56391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56392 echo "$as_me:$LINENO: checking for $ac_func" >&5
56393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56394 if eval "test \"\${$as_ac_var+set}\" = set"; then
56395   echo $ECHO_N "(cached) $ECHO_C" >&6
56396 else
56397   if test x$gcc_no_link = xyes; then
56398   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56399 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56400    { (exit 1); exit 1; }; }
56401 fi
56402 cat >conftest.$ac_ext <<_ACEOF
56403 /* confdefs.h.  */
56404 _ACEOF
56405 cat confdefs.h >>conftest.$ac_ext
56406 cat >>conftest.$ac_ext <<_ACEOF
56407 /* end confdefs.h.  */
56408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56410 #define $ac_func innocuous_$ac_func
56411
56412 /* System header to define __stub macros and hopefully few prototypes,
56413     which can conflict with char $ac_func (); below.
56414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56415     <limits.h> exists even on freestanding compilers.  */
56416
56417 #ifdef __STDC__
56418 # include <limits.h>
56419 #else
56420 # include <assert.h>
56421 #endif
56422
56423 #undef $ac_func
56424
56425 /* Override any gcc2 internal prototype to avoid an error.  */
56426 #ifdef __cplusplus
56427 extern "C"
56428 {
56429 #endif
56430 /* We use char because int might match the return type of a gcc2
56431    builtin and then its argument prototype would still apply.  */
56432 char $ac_func ();
56433 /* The GNU C library defines this for functions which it implements
56434     to always fail with ENOSYS.  Some functions are actually named
56435     something starting with __ and the normal name is an alias.  */
56436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56437 choke me
56438 #else
56439 char (*f) () = $ac_func;
56440 #endif
56441 #ifdef __cplusplus
56442 }
56443 #endif
56444
56445 int
56446 main ()
56447 {
56448 return f != $ac_func;
56449   ;
56450   return 0;
56451 }
56452 _ACEOF
56453 rm -f conftest.$ac_objext conftest$ac_exeext
56454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56455   (eval $ac_link) 2>conftest.er1
56456   ac_status=$?
56457   grep -v '^ *+' conftest.er1 >conftest.err
56458   rm -f conftest.er1
56459   cat conftest.err >&5
56460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56461   (exit $ac_status); } &&
56462          { ac_try='test -z "$ac_c_werror_flag"
56463                          || test ! -s conftest.err'
56464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56465   (eval $ac_try) 2>&5
56466   ac_status=$?
56467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56468   (exit $ac_status); }; } &&
56469          { ac_try='test -s conftest$ac_exeext'
56470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56471   (eval $ac_try) 2>&5
56472   ac_status=$?
56473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56474   (exit $ac_status); }; }; then
56475   eval "$as_ac_var=yes"
56476 else
56477   echo "$as_me: failed program was:" >&5
56478 sed 's/^/| /' conftest.$ac_ext >&5
56479
56480 eval "$as_ac_var=no"
56481 fi
56482 rm -f conftest.err conftest.$ac_objext \
56483       conftest$ac_exeext conftest.$ac_ext
56484 fi
56485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56487 if test `eval echo '${'$as_ac_var'}'` = yes; then
56488   cat >>confdefs.h <<_ACEOF
56489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56490 _ACEOF
56491
56492 else
56493   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
56494 fi
56495 done
56496
56497
56498           if test x$ac_cv_func_copysignl = x"yes"; then
56499
56500 for ac_func in __signbitl
56501 do
56502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56503 echo "$as_me:$LINENO: checking for $ac_func" >&5
56504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56505 if eval "test \"\${$as_ac_var+set}\" = set"; then
56506   echo $ECHO_N "(cached) $ECHO_C" >&6
56507 else
56508   if test x$gcc_no_link = xyes; then
56509   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56511    { (exit 1); exit 1; }; }
56512 fi
56513 cat >conftest.$ac_ext <<_ACEOF
56514 /* confdefs.h.  */
56515 _ACEOF
56516 cat confdefs.h >>conftest.$ac_ext
56517 cat >>conftest.$ac_ext <<_ACEOF
56518 /* end confdefs.h.  */
56519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56521 #define $ac_func innocuous_$ac_func
56522
56523 /* System header to define __stub macros and hopefully few prototypes,
56524     which can conflict with char $ac_func (); below.
56525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56526     <limits.h> exists even on freestanding compilers.  */
56527
56528 #ifdef __STDC__
56529 # include <limits.h>
56530 #else
56531 # include <assert.h>
56532 #endif
56533
56534 #undef $ac_func
56535
56536 /* Override any gcc2 internal prototype to avoid an error.  */
56537 #ifdef __cplusplus
56538 extern "C"
56539 {
56540 #endif
56541 /* We use char because int might match the return type of a gcc2
56542    builtin and then its argument prototype would still apply.  */
56543 char $ac_func ();
56544 /* The GNU C library defines this for functions which it implements
56545     to always fail with ENOSYS.  Some functions are actually named
56546     something starting with __ and the normal name is an alias.  */
56547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56548 choke me
56549 #else
56550 char (*f) () = $ac_func;
56551 #endif
56552 #ifdef __cplusplus
56553 }
56554 #endif
56555
56556 int
56557 main ()
56558 {
56559 return f != $ac_func;
56560   ;
56561   return 0;
56562 }
56563 _ACEOF
56564 rm -f conftest.$ac_objext conftest$ac_exeext
56565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56566   (eval $ac_link) 2>conftest.er1
56567   ac_status=$?
56568   grep -v '^ *+' conftest.er1 >conftest.err
56569   rm -f conftest.er1
56570   cat conftest.err >&5
56571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56572   (exit $ac_status); } &&
56573          { ac_try='test -z "$ac_c_werror_flag"
56574                          || test ! -s conftest.err'
56575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56576   (eval $ac_try) 2>&5
56577   ac_status=$?
56578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56579   (exit $ac_status); }; } &&
56580          { ac_try='test -s conftest$ac_exeext'
56581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56582   (eval $ac_try) 2>&5
56583   ac_status=$?
56584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56585   (exit $ac_status); }; }; then
56586   eval "$as_ac_var=yes"
56587 else
56588   echo "$as_me: failed program was:" >&5
56589 sed 's/^/| /' conftest.$ac_ext >&5
56590
56591 eval "$as_ac_var=no"
56592 fi
56593 rm -f conftest.err conftest.$ac_objext \
56594       conftest$ac_exeext conftest.$ac_ext
56595 fi
56596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56598 if test `eval echo '${'$as_ac_var'}'` = yes; then
56599   cat >>confdefs.h <<_ACEOF
56600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56601 _ACEOF
56602
56603 else
56604   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56605 fi
56606 done
56607
56608   fi
56609
56610   # XXX Review this.  Nothing uses it.
56611   if test -n "$LIBMATHOBJS"; then
56612     need_libmath=yes
56613   fi
56614
56615
56616
56617   # Test wchar.h for mbstate_t, which is needed for char_traits and
56618   # others even if wchar_t support is not on.
56619   echo "$as_me:$LINENO: checking for mbstate_t" >&5
56620 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56621   cat >conftest.$ac_ext <<_ACEOF
56622 /* confdefs.h.  */
56623 _ACEOF
56624 cat confdefs.h >>conftest.$ac_ext
56625 cat >>conftest.$ac_ext <<_ACEOF
56626 /* end confdefs.h.  */
56627 #include <wchar.h>
56628 int
56629 main ()
56630 {
56631 mbstate_t teststate;
56632   ;
56633   return 0;
56634 }
56635 _ACEOF
56636 rm -f conftest.$ac_objext
56637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56638   (eval $ac_compile) 2>conftest.er1
56639   ac_status=$?
56640   grep -v '^ *+' conftest.er1 >conftest.err
56641   rm -f conftest.er1
56642   cat conftest.err >&5
56643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56644   (exit $ac_status); } &&
56645          { ac_try='test -z "$ac_c_werror_flag"
56646                          || test ! -s conftest.err'
56647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56648   (eval $ac_try) 2>&5
56649   ac_status=$?
56650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56651   (exit $ac_status); }; } &&
56652          { ac_try='test -s conftest.$ac_objext'
56653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56654   (eval $ac_try) 2>&5
56655   ac_status=$?
56656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56657   (exit $ac_status); }; }; then
56658   have_mbstate_t=yes
56659 else
56660   echo "$as_me: failed program was:" >&5
56661 sed 's/^/| /' conftest.$ac_ext >&5
56662
56663 have_mbstate_t=no
56664 fi
56665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56666   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56667 echo "${ECHO_T}$have_mbstate_t" >&6
56668   if test x"$have_mbstate_t" = xyes; then
56669     cat >>confdefs.h <<\_ACEOF
56670 #define HAVE_MBSTATE_T 1
56671 _ACEOF
56672
56673   fi
56674
56675   # Sanity check for existence of ISO C99 headers for extended encoding.
56676
56677 for ac_header in wchar.h
56678 do
56679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56681   echo "$as_me:$LINENO: checking for $ac_header" >&5
56682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56684   echo $ECHO_N "(cached) $ECHO_C" >&6
56685 fi
56686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56688 else
56689   # Is the header compilable?
56690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56692 cat >conftest.$ac_ext <<_ACEOF
56693 /* confdefs.h.  */
56694 _ACEOF
56695 cat confdefs.h >>conftest.$ac_ext
56696 cat >>conftest.$ac_ext <<_ACEOF
56697 /* end confdefs.h.  */
56698 $ac_includes_default
56699 #include <$ac_header>
56700 _ACEOF
56701 rm -f conftest.$ac_objext
56702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56703   (eval $ac_compile) 2>conftest.er1
56704   ac_status=$?
56705   grep -v '^ *+' conftest.er1 >conftest.err
56706   rm -f conftest.er1
56707   cat conftest.err >&5
56708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56709   (exit $ac_status); } &&
56710          { ac_try='test -z "$ac_c_werror_flag"
56711                          || test ! -s conftest.err'
56712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56713   (eval $ac_try) 2>&5
56714   ac_status=$?
56715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56716   (exit $ac_status); }; } &&
56717          { ac_try='test -s conftest.$ac_objext'
56718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56719   (eval $ac_try) 2>&5
56720   ac_status=$?
56721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56722   (exit $ac_status); }; }; then
56723   ac_header_compiler=yes
56724 else
56725   echo "$as_me: failed program was:" >&5
56726 sed 's/^/| /' conftest.$ac_ext >&5
56727
56728 ac_header_compiler=no
56729 fi
56730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56732 echo "${ECHO_T}$ac_header_compiler" >&6
56733
56734 # Is the header present?
56735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56737 cat >conftest.$ac_ext <<_ACEOF
56738 /* confdefs.h.  */
56739 _ACEOF
56740 cat confdefs.h >>conftest.$ac_ext
56741 cat >>conftest.$ac_ext <<_ACEOF
56742 /* end confdefs.h.  */
56743 #include <$ac_header>
56744 _ACEOF
56745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56747   ac_status=$?
56748   grep -v '^ *+' conftest.er1 >conftest.err
56749   rm -f conftest.er1
56750   cat conftest.err >&5
56751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56752   (exit $ac_status); } >/dev/null; then
56753   if test -s conftest.err; then
56754     ac_cpp_err=$ac_c_preproc_warn_flag
56755     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56756   else
56757     ac_cpp_err=
56758   fi
56759 else
56760   ac_cpp_err=yes
56761 fi
56762 if test -z "$ac_cpp_err"; then
56763   ac_header_preproc=yes
56764 else
56765   echo "$as_me: failed program was:" >&5
56766 sed 's/^/| /' conftest.$ac_ext >&5
56767
56768   ac_header_preproc=no
56769 fi
56770 rm -f conftest.err conftest.$ac_ext
56771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56772 echo "${ECHO_T}$ac_header_preproc" >&6
56773
56774 # So?  What about this header?
56775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56776   yes:no: )
56777     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56781     ac_header_preproc=yes
56782     ;;
56783   no:yes:* )
56784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56786     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
56787 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
56788     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56790     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
56791 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
56792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56794     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56796     (
56797       cat <<\_ASBOX
56798 ## ----------------------------------------- ##
56799 ## Report this to the package-unused lists.  ##
56800 ## ----------------------------------------- ##
56801 _ASBOX
56802     ) |
56803       sed "s/^/$as_me: WARNING:     /" >&2
56804     ;;
56805 esac
56806 echo "$as_me:$LINENO: checking for $ac_header" >&5
56807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56809   echo $ECHO_N "(cached) $ECHO_C" >&6
56810 else
56811   eval "$as_ac_Header=\$ac_header_preproc"
56812 fi
56813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56815
56816 fi
56817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56818   cat >>confdefs.h <<_ACEOF
56819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56820 _ACEOF
56821  ac_has_wchar_h=yes
56822 else
56823   ac_has_wchar_h=no
56824 fi
56825
56826 done
56827
56828
56829 for ac_header in wctype.h
56830 do
56831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56833   echo "$as_me:$LINENO: checking for $ac_header" >&5
56834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56836   echo $ECHO_N "(cached) $ECHO_C" >&6
56837 fi
56838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56840 else
56841   # Is the header compilable?
56842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56844 cat >conftest.$ac_ext <<_ACEOF
56845 /* confdefs.h.  */
56846 _ACEOF
56847 cat confdefs.h >>conftest.$ac_ext
56848 cat >>conftest.$ac_ext <<_ACEOF
56849 /* end confdefs.h.  */
56850 $ac_includes_default
56851 #include <$ac_header>
56852 _ACEOF
56853 rm -f conftest.$ac_objext
56854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56855   (eval $ac_compile) 2>conftest.er1
56856   ac_status=$?
56857   grep -v '^ *+' conftest.er1 >conftest.err
56858   rm -f conftest.er1
56859   cat conftest.err >&5
56860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56861   (exit $ac_status); } &&
56862          { ac_try='test -z "$ac_c_werror_flag"
56863                          || test ! -s conftest.err'
56864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56865   (eval $ac_try) 2>&5
56866   ac_status=$?
56867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56868   (exit $ac_status); }; } &&
56869          { ac_try='test -s conftest.$ac_objext'
56870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56871   (eval $ac_try) 2>&5
56872   ac_status=$?
56873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56874   (exit $ac_status); }; }; then
56875   ac_header_compiler=yes
56876 else
56877   echo "$as_me: failed program was:" >&5
56878 sed 's/^/| /' conftest.$ac_ext >&5
56879
56880 ac_header_compiler=no
56881 fi
56882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56884 echo "${ECHO_T}$ac_header_compiler" >&6
56885
56886 # Is the header present?
56887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56889 cat >conftest.$ac_ext <<_ACEOF
56890 /* confdefs.h.  */
56891 _ACEOF
56892 cat confdefs.h >>conftest.$ac_ext
56893 cat >>conftest.$ac_ext <<_ACEOF
56894 /* end confdefs.h.  */
56895 #include <$ac_header>
56896 _ACEOF
56897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56899   ac_status=$?
56900   grep -v '^ *+' conftest.er1 >conftest.err
56901   rm -f conftest.er1
56902   cat conftest.err >&5
56903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56904   (exit $ac_status); } >/dev/null; then
56905   if test -s conftest.err; then
56906     ac_cpp_err=$ac_c_preproc_warn_flag
56907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56908   else
56909     ac_cpp_err=
56910   fi
56911 else
56912   ac_cpp_err=yes
56913 fi
56914 if test -z "$ac_cpp_err"; then
56915   ac_header_preproc=yes
56916 else
56917   echo "$as_me: failed program was:" >&5
56918 sed 's/^/| /' conftest.$ac_ext >&5
56919
56920   ac_header_preproc=no
56921 fi
56922 rm -f conftest.err conftest.$ac_ext
56923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56924 echo "${ECHO_T}$ac_header_preproc" >&6
56925
56926 # So?  What about this header?
56927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56928   yes:no: )
56929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56933     ac_header_preproc=yes
56934     ;;
56935   no:yes:* )
56936     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56938     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
56939 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
56940     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56942     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
56943 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
56944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56946     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56948     (
56949       cat <<\_ASBOX
56950 ## ----------------------------------------- ##
56951 ## Report this to the package-unused lists.  ##
56952 ## ----------------------------------------- ##
56953 _ASBOX
56954     ) |
56955       sed "s/^/$as_me: WARNING:     /" >&2
56956     ;;
56957 esac
56958 echo "$as_me:$LINENO: checking for $ac_header" >&5
56959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56961   echo $ECHO_N "(cached) $ECHO_C" >&6
56962 else
56963   eval "$as_ac_Header=\$ac_header_preproc"
56964 fi
56965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56967
56968 fi
56969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56970   cat >>confdefs.h <<_ACEOF
56971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56972 _ACEOF
56973  ac_has_wctype_h=yes
56974 else
56975   ac_has_wctype_h=no
56976 fi
56977
56978 done
56979
56980
56981   # Only continue checking if the ISO C99 headers exist and support is on.
56982   if test x"$ac_has_wchar_h" = xyes &&
56983      test x"$ac_has_wctype_h" = xyes &&
56984      test x"$enable_c_mbchar" != xno; then
56985
56986     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
56987     # numeric_limits can instantiate type_traits<wchar_t>
56988     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
56989 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
56990     cat >conftest.$ac_ext <<_ACEOF
56991 /* confdefs.h.  */
56992 _ACEOF
56993 cat confdefs.h >>conftest.$ac_ext
56994 cat >>conftest.$ac_ext <<_ACEOF
56995 /* end confdefs.h.  */
56996 #include <wchar.h>
56997 int
56998 main ()
56999 {
57000 int i = WCHAR_MIN; int j = WCHAR_MAX;
57001   ;
57002   return 0;
57003 }
57004 _ACEOF
57005 rm -f conftest.$ac_objext
57006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57007   (eval $ac_compile) 2>conftest.er1
57008   ac_status=$?
57009   grep -v '^ *+' conftest.er1 >conftest.err
57010   rm -f conftest.er1
57011   cat conftest.err >&5
57012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57013   (exit $ac_status); } &&
57014          { ac_try='test -z "$ac_c_werror_flag"
57015                          || test ! -s conftest.err'
57016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57017   (eval $ac_try) 2>&5
57018   ac_status=$?
57019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57020   (exit $ac_status); }; } &&
57021          { ac_try='test -s conftest.$ac_objext'
57022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57023   (eval $ac_try) 2>&5
57024   ac_status=$?
57025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57026   (exit $ac_status); }; }; then
57027   has_wchar_minmax=yes
57028 else
57029   echo "$as_me: failed program was:" >&5
57030 sed 's/^/| /' conftest.$ac_ext >&5
57031
57032 has_wchar_minmax=no
57033 fi
57034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57035     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
57036 echo "${ECHO_T}$has_wchar_minmax" >&6
57037
57038     # Test wchar.h for WEOF, which is what we use to determine whether
57039     # to specialize for char_traits<wchar_t> or not.
57040     echo "$as_me:$LINENO: checking for WEOF" >&5
57041 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
57042     cat >conftest.$ac_ext <<_ACEOF
57043 /* confdefs.h.  */
57044 _ACEOF
57045 cat confdefs.h >>conftest.$ac_ext
57046 cat >>conftest.$ac_ext <<_ACEOF
57047 /* end confdefs.h.  */
57048
57049       #include <wchar.h>
57050       #include <stddef.h>
57051 int
57052 main ()
57053 {
57054 wint_t i = WEOF;
57055   ;
57056   return 0;
57057 }
57058 _ACEOF
57059 rm -f conftest.$ac_objext
57060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57061   (eval $ac_compile) 2>conftest.er1
57062   ac_status=$?
57063   grep -v '^ *+' conftest.er1 >conftest.err
57064   rm -f conftest.er1
57065   cat conftest.err >&5
57066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57067   (exit $ac_status); } &&
57068          { ac_try='test -z "$ac_c_werror_flag"
57069                          || test ! -s conftest.err'
57070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57071   (eval $ac_try) 2>&5
57072   ac_status=$?
57073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57074   (exit $ac_status); }; } &&
57075          { ac_try='test -s conftest.$ac_objext'
57076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57077   (eval $ac_try) 2>&5
57078   ac_status=$?
57079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57080   (exit $ac_status); }; }; then
57081   has_weof=yes
57082 else
57083   echo "$as_me: failed program was:" >&5
57084 sed 's/^/| /' conftest.$ac_ext >&5
57085
57086 has_weof=no
57087 fi
57088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57089     echo "$as_me:$LINENO: result: $has_weof" >&5
57090 echo "${ECHO_T}$has_weof" >&6
57091
57092     # Tests for wide character functions used in char_traits<wchar_t>.
57093     ac_wfuncs=yes
57094
57095
57096
57097
57098
57099
57100 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
57101 do
57102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57103 echo "$as_me:$LINENO: checking for $ac_func" >&5
57104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57105 if eval "test \"\${$as_ac_var+set}\" = set"; then
57106   echo $ECHO_N "(cached) $ECHO_C" >&6
57107 else
57108   if test x$gcc_no_link = xyes; then
57109   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57111    { (exit 1); exit 1; }; }
57112 fi
57113 cat >conftest.$ac_ext <<_ACEOF
57114 /* confdefs.h.  */
57115 _ACEOF
57116 cat confdefs.h >>conftest.$ac_ext
57117 cat >>conftest.$ac_ext <<_ACEOF
57118 /* end confdefs.h.  */
57119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57121 #define $ac_func innocuous_$ac_func
57122
57123 /* System header to define __stub macros and hopefully few prototypes,
57124     which can conflict with char $ac_func (); below.
57125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57126     <limits.h> exists even on freestanding compilers.  */
57127
57128 #ifdef __STDC__
57129 # include <limits.h>
57130 #else
57131 # include <assert.h>
57132 #endif
57133
57134 #undef $ac_func
57135
57136 /* Override any gcc2 internal prototype to avoid an error.  */
57137 #ifdef __cplusplus
57138 extern "C"
57139 {
57140 #endif
57141 /* We use char because int might match the return type of a gcc2
57142    builtin and then its argument prototype would still apply.  */
57143 char $ac_func ();
57144 /* The GNU C library defines this for functions which it implements
57145     to always fail with ENOSYS.  Some functions are actually named
57146     something starting with __ and the normal name is an alias.  */
57147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57148 choke me
57149 #else
57150 char (*f) () = $ac_func;
57151 #endif
57152 #ifdef __cplusplus
57153 }
57154 #endif
57155
57156 int
57157 main ()
57158 {
57159 return f != $ac_func;
57160   ;
57161   return 0;
57162 }
57163 _ACEOF
57164 rm -f conftest.$ac_objext conftest$ac_exeext
57165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57166   (eval $ac_link) 2>conftest.er1
57167   ac_status=$?
57168   grep -v '^ *+' conftest.er1 >conftest.err
57169   rm -f conftest.er1
57170   cat conftest.err >&5
57171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57172   (exit $ac_status); } &&
57173          { ac_try='test -z "$ac_c_werror_flag"
57174                          || test ! -s conftest.err'
57175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57176   (eval $ac_try) 2>&5
57177   ac_status=$?
57178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57179   (exit $ac_status); }; } &&
57180          { ac_try='test -s conftest$ac_exeext'
57181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57182   (eval $ac_try) 2>&5
57183   ac_status=$?
57184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57185   (exit $ac_status); }; }; then
57186   eval "$as_ac_var=yes"
57187 else
57188   echo "$as_me: failed program was:" >&5
57189 sed 's/^/| /' conftest.$ac_ext >&5
57190
57191 eval "$as_ac_var=no"
57192 fi
57193 rm -f conftest.err conftest.$ac_objext \
57194       conftest$ac_exeext conftest.$ac_ext
57195 fi
57196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57198 if test `eval echo '${'$as_ac_var'}'` = yes; then
57199   cat >>confdefs.h <<_ACEOF
57200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57201 _ACEOF
57202
57203 else
57204   ac_wfuncs=no
57205 fi
57206 done
57207
57208
57209     # Checks for names injected into std:: by the c_std headers.
57210
57211
57212
57213
57214
57215
57216
57217
57218
57219
57220
57221
57222
57223
57224
57225
57226
57227
57228
57229
57230
57231
57232
57233
57234
57235
57236
57237
57238
57239
57240
57241
57242
57243
57244
57245
57246
57247
57248
57249
57250
57251
57252
57253
57254
57255
57256 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
57257     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
57258     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
57259     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
57260     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
57261     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
57262 do
57263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57264 echo "$as_me:$LINENO: checking for $ac_func" >&5
57265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57266 if eval "test \"\${$as_ac_var+set}\" = set"; then
57267   echo $ECHO_N "(cached) $ECHO_C" >&6
57268 else
57269   if test x$gcc_no_link = xyes; then
57270   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57271 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57272    { (exit 1); exit 1; }; }
57273 fi
57274 cat >conftest.$ac_ext <<_ACEOF
57275 /* confdefs.h.  */
57276 _ACEOF
57277 cat confdefs.h >>conftest.$ac_ext
57278 cat >>conftest.$ac_ext <<_ACEOF
57279 /* end confdefs.h.  */
57280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57282 #define $ac_func innocuous_$ac_func
57283
57284 /* System header to define __stub macros and hopefully few prototypes,
57285     which can conflict with char $ac_func (); below.
57286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57287     <limits.h> exists even on freestanding compilers.  */
57288
57289 #ifdef __STDC__
57290 # include <limits.h>
57291 #else
57292 # include <assert.h>
57293 #endif
57294
57295 #undef $ac_func
57296
57297 /* Override any gcc2 internal prototype to avoid an error.  */
57298 #ifdef __cplusplus
57299 extern "C"
57300 {
57301 #endif
57302 /* We use char because int might match the return type of a gcc2
57303    builtin and then its argument prototype would still apply.  */
57304 char $ac_func ();
57305 /* The GNU C library defines this for functions which it implements
57306     to always fail with ENOSYS.  Some functions are actually named
57307     something starting with __ and the normal name is an alias.  */
57308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57309 choke me
57310 #else
57311 char (*f) () = $ac_func;
57312 #endif
57313 #ifdef __cplusplus
57314 }
57315 #endif
57316
57317 int
57318 main ()
57319 {
57320 return f != $ac_func;
57321   ;
57322   return 0;
57323 }
57324 _ACEOF
57325 rm -f conftest.$ac_objext conftest$ac_exeext
57326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57327   (eval $ac_link) 2>conftest.er1
57328   ac_status=$?
57329   grep -v '^ *+' conftest.er1 >conftest.err
57330   rm -f conftest.er1
57331   cat conftest.err >&5
57332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57333   (exit $ac_status); } &&
57334          { ac_try='test -z "$ac_c_werror_flag"
57335                          || test ! -s conftest.err'
57336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57337   (eval $ac_try) 2>&5
57338   ac_status=$?
57339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57340   (exit $ac_status); }; } &&
57341          { ac_try='test -s conftest$ac_exeext'
57342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57343   (eval $ac_try) 2>&5
57344   ac_status=$?
57345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57346   (exit $ac_status); }; }; then
57347   eval "$as_ac_var=yes"
57348 else
57349   echo "$as_me: failed program was:" >&5
57350 sed 's/^/| /' conftest.$ac_ext >&5
57351
57352 eval "$as_ac_var=no"
57353 fi
57354 rm -f conftest.err conftest.$ac_objext \
57355       conftest$ac_exeext conftest.$ac_ext
57356 fi
57357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57359 if test `eval echo '${'$as_ac_var'}'` = yes; then
57360   cat >>confdefs.h <<_ACEOF
57361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57362 _ACEOF
57363
57364 else
57365   ac_wfuncs=no
57366 fi
57367 done
57368
57369
57370     # Checks for wide character functions that are not required
57371     # for basic wchar_t support.  Don't disable support if they are missing.
57372     # Injection of these is wrapped with guard macros.
57373
57374
57375
57376
57377
57378 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
57379 do
57380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57381 echo "$as_me:$LINENO: checking for $ac_func" >&5
57382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57383 if eval "test \"\${$as_ac_var+set}\" = set"; then
57384   echo $ECHO_N "(cached) $ECHO_C" >&6
57385 else
57386   if test x$gcc_no_link = xyes; then
57387   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57389    { (exit 1); exit 1; }; }
57390 fi
57391 cat >conftest.$ac_ext <<_ACEOF
57392 /* confdefs.h.  */
57393 _ACEOF
57394 cat confdefs.h >>conftest.$ac_ext
57395 cat >>conftest.$ac_ext <<_ACEOF
57396 /* end confdefs.h.  */
57397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57399 #define $ac_func innocuous_$ac_func
57400
57401 /* System header to define __stub macros and hopefully few prototypes,
57402     which can conflict with char $ac_func (); below.
57403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57404     <limits.h> exists even on freestanding compilers.  */
57405
57406 #ifdef __STDC__
57407 # include <limits.h>
57408 #else
57409 # include <assert.h>
57410 #endif
57411
57412 #undef $ac_func
57413
57414 /* Override any gcc2 internal prototype to avoid an error.  */
57415 #ifdef __cplusplus
57416 extern "C"
57417 {
57418 #endif
57419 /* We use char because int might match the return type of a gcc2
57420    builtin and then its argument prototype would still apply.  */
57421 char $ac_func ();
57422 /* The GNU C library defines this for functions which it implements
57423     to always fail with ENOSYS.  Some functions are actually named
57424     something starting with __ and the normal name is an alias.  */
57425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57426 choke me
57427 #else
57428 char (*f) () = $ac_func;
57429 #endif
57430 #ifdef __cplusplus
57431 }
57432 #endif
57433
57434 int
57435 main ()
57436 {
57437 return f != $ac_func;
57438   ;
57439   return 0;
57440 }
57441 _ACEOF
57442 rm -f conftest.$ac_objext conftest$ac_exeext
57443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57444   (eval $ac_link) 2>conftest.er1
57445   ac_status=$?
57446   grep -v '^ *+' conftest.er1 >conftest.err
57447   rm -f conftest.er1
57448   cat conftest.err >&5
57449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57450   (exit $ac_status); } &&
57451          { ac_try='test -z "$ac_c_werror_flag"
57452                          || test ! -s conftest.err'
57453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57454   (eval $ac_try) 2>&5
57455   ac_status=$?
57456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57457   (exit $ac_status); }; } &&
57458          { ac_try='test -s conftest$ac_exeext'
57459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57460   (eval $ac_try) 2>&5
57461   ac_status=$?
57462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57463   (exit $ac_status); }; }; then
57464   eval "$as_ac_var=yes"
57465 else
57466   echo "$as_me: failed program was:" >&5
57467 sed 's/^/| /' conftest.$ac_ext >&5
57468
57469 eval "$as_ac_var=no"
57470 fi
57471 rm -f conftest.err conftest.$ac_objext \
57472       conftest$ac_exeext conftest.$ac_ext
57473 fi
57474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57476 if test `eval echo '${'$as_ac_var'}'` = yes; then
57477   cat >>confdefs.h <<_ACEOF
57478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57479 _ACEOF
57480
57481 fi
57482 done
57483
57484
57485     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
57486 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
57487     if test x"$has_weof" = xyes &&
57488        test x"$has_wchar_minmax" = xyes &&
57489        test x"$ac_wfuncs" = xyes;
57490     then
57491       ac_isoC99_wchar_t=yes
57492     else
57493       ac_isoC99_wchar_t=no
57494     fi
57495     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
57496 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
57497
57498     # Use iconv for wchar_t to char conversions. As such, check for
57499     # X/Open Portability Guide, version 2 features (XPG2).
57500     if test "${ac_cv_header_iconv_h+set}" = set; then
57501   echo "$as_me:$LINENO: checking for iconv.h" >&5
57502 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57503 if test "${ac_cv_header_iconv_h+set}" = set; then
57504   echo $ECHO_N "(cached) $ECHO_C" >&6
57505 fi
57506 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57507 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57508 else
57509   # Is the header compilable?
57510 echo "$as_me:$LINENO: checking iconv.h usability" >&5
57511 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
57512 cat >conftest.$ac_ext <<_ACEOF
57513 /* confdefs.h.  */
57514 _ACEOF
57515 cat confdefs.h >>conftest.$ac_ext
57516 cat >>conftest.$ac_ext <<_ACEOF
57517 /* end confdefs.h.  */
57518 $ac_includes_default
57519 #include <iconv.h>
57520 _ACEOF
57521 rm -f conftest.$ac_objext
57522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57523   (eval $ac_compile) 2>conftest.er1
57524   ac_status=$?
57525   grep -v '^ *+' conftest.er1 >conftest.err
57526   rm -f conftest.er1
57527   cat conftest.err >&5
57528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57529   (exit $ac_status); } &&
57530          { ac_try='test -z "$ac_c_werror_flag"
57531                          || test ! -s conftest.err'
57532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57533   (eval $ac_try) 2>&5
57534   ac_status=$?
57535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57536   (exit $ac_status); }; } &&
57537          { ac_try='test -s conftest.$ac_objext'
57538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57539   (eval $ac_try) 2>&5
57540   ac_status=$?
57541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57542   (exit $ac_status); }; }; then
57543   ac_header_compiler=yes
57544 else
57545   echo "$as_me: failed program was:" >&5
57546 sed 's/^/| /' conftest.$ac_ext >&5
57547
57548 ac_header_compiler=no
57549 fi
57550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57552 echo "${ECHO_T}$ac_header_compiler" >&6
57553
57554 # Is the header present?
57555 echo "$as_me:$LINENO: checking iconv.h presence" >&5
57556 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
57557 cat >conftest.$ac_ext <<_ACEOF
57558 /* confdefs.h.  */
57559 _ACEOF
57560 cat confdefs.h >>conftest.$ac_ext
57561 cat >>conftest.$ac_ext <<_ACEOF
57562 /* end confdefs.h.  */
57563 #include <iconv.h>
57564 _ACEOF
57565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57567   ac_status=$?
57568   grep -v '^ *+' conftest.er1 >conftest.err
57569   rm -f conftest.er1
57570   cat conftest.err >&5
57571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57572   (exit $ac_status); } >/dev/null; then
57573   if test -s conftest.err; then
57574     ac_cpp_err=$ac_c_preproc_warn_flag
57575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57576   else
57577     ac_cpp_err=
57578   fi
57579 else
57580   ac_cpp_err=yes
57581 fi
57582 if test -z "$ac_cpp_err"; then
57583   ac_header_preproc=yes
57584 else
57585   echo "$as_me: failed program was:" >&5
57586 sed 's/^/| /' conftest.$ac_ext >&5
57587
57588   ac_header_preproc=no
57589 fi
57590 rm -f conftest.err conftest.$ac_ext
57591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57592 echo "${ECHO_T}$ac_header_preproc" >&6
57593
57594 # So?  What about this header?
57595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57596   yes:no: )
57597     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
57598 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57599     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
57600 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
57601     ac_header_preproc=yes
57602     ;;
57603   no:yes:* )
57604     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
57605 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
57606     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
57607 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
57608     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
57609 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
57610     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
57611 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
57612     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57613 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57614     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
57615 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
57616     (
57617       cat <<\_ASBOX
57618 ## ----------------------------------------- ##
57619 ## Report this to the package-unused lists.  ##
57620 ## ----------------------------------------- ##
57621 _ASBOX
57622     ) |
57623       sed "s/^/$as_me: WARNING:     /" >&2
57624     ;;
57625 esac
57626 echo "$as_me:$LINENO: checking for iconv.h" >&5
57627 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57628 if test "${ac_cv_header_iconv_h+set}" = set; then
57629   echo $ECHO_N "(cached) $ECHO_C" >&6
57630 else
57631   ac_cv_header_iconv_h=$ac_header_preproc
57632 fi
57633 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57634 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57635
57636 fi
57637 if test $ac_cv_header_iconv_h = yes; then
57638   ac_has_iconv_h=yes
57639 else
57640   ac_has_iconv_h=no
57641 fi
57642
57643
57644     if test "${ac_cv_header_langinfo_h+set}" = set; then
57645   echo "$as_me:$LINENO: checking for langinfo.h" >&5
57646 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57647 if test "${ac_cv_header_langinfo_h+set}" = set; then
57648   echo $ECHO_N "(cached) $ECHO_C" >&6
57649 fi
57650 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57651 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57652 else
57653   # Is the header compilable?
57654 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57655 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57656 cat >conftest.$ac_ext <<_ACEOF
57657 /* confdefs.h.  */
57658 _ACEOF
57659 cat confdefs.h >>conftest.$ac_ext
57660 cat >>conftest.$ac_ext <<_ACEOF
57661 /* end confdefs.h.  */
57662 $ac_includes_default
57663 #include <langinfo.h>
57664 _ACEOF
57665 rm -f conftest.$ac_objext
57666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57667   (eval $ac_compile) 2>conftest.er1
57668   ac_status=$?
57669   grep -v '^ *+' conftest.er1 >conftest.err
57670   rm -f conftest.er1
57671   cat conftest.err >&5
57672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57673   (exit $ac_status); } &&
57674          { ac_try='test -z "$ac_c_werror_flag"
57675                          || test ! -s conftest.err'
57676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57677   (eval $ac_try) 2>&5
57678   ac_status=$?
57679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57680   (exit $ac_status); }; } &&
57681          { ac_try='test -s conftest.$ac_objext'
57682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57683   (eval $ac_try) 2>&5
57684   ac_status=$?
57685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57686   (exit $ac_status); }; }; then
57687   ac_header_compiler=yes
57688 else
57689   echo "$as_me: failed program was:" >&5
57690 sed 's/^/| /' conftest.$ac_ext >&5
57691
57692 ac_header_compiler=no
57693 fi
57694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57696 echo "${ECHO_T}$ac_header_compiler" >&6
57697
57698 # Is the header present?
57699 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57700 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57701 cat >conftest.$ac_ext <<_ACEOF
57702 /* confdefs.h.  */
57703 _ACEOF
57704 cat confdefs.h >>conftest.$ac_ext
57705 cat >>conftest.$ac_ext <<_ACEOF
57706 /* end confdefs.h.  */
57707 #include <langinfo.h>
57708 _ACEOF
57709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57710   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57711   ac_status=$?
57712   grep -v '^ *+' conftest.er1 >conftest.err
57713   rm -f conftest.er1
57714   cat conftest.err >&5
57715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57716   (exit $ac_status); } >/dev/null; then
57717   if test -s conftest.err; then
57718     ac_cpp_err=$ac_c_preproc_warn_flag
57719     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57720   else
57721     ac_cpp_err=
57722   fi
57723 else
57724   ac_cpp_err=yes
57725 fi
57726 if test -z "$ac_cpp_err"; then
57727   ac_header_preproc=yes
57728 else
57729   echo "$as_me: failed program was:" >&5
57730 sed 's/^/| /' conftest.$ac_ext >&5
57731
57732   ac_header_preproc=no
57733 fi
57734 rm -f conftest.err conftest.$ac_ext
57735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57736 echo "${ECHO_T}$ac_header_preproc" >&6
57737
57738 # So?  What about this header?
57739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57740   yes:no: )
57741     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57742 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57743     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
57744 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
57745     ac_header_preproc=yes
57746     ;;
57747   no:yes:* )
57748     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57749 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57750     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
57751 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
57752     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
57753 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
57754     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
57755 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
57756     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57757 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57758     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
57759 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
57760     (
57761       cat <<\_ASBOX
57762 ## ----------------------------------------- ##
57763 ## Report this to the package-unused lists.  ##
57764 ## ----------------------------------------- ##
57765 _ASBOX
57766     ) |
57767       sed "s/^/$as_me: WARNING:     /" >&2
57768     ;;
57769 esac
57770 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57771 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57772 if test "${ac_cv_header_langinfo_h+set}" = set; then
57773   echo $ECHO_N "(cached) $ECHO_C" >&6
57774 else
57775   ac_cv_header_langinfo_h=$ac_header_preproc
57776 fi
57777 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57778 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57779
57780 fi
57781 if test $ac_cv_header_langinfo_h = yes; then
57782   ac_has_langinfo_h=yes
57783 else
57784   ac_has_langinfo_h=no
57785 fi
57786
57787
57788
57789     # Check for existence of libiconv.a providing XPG2 wchar_t support.
57790     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57791 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57792 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57793   echo $ECHO_N "(cached) $ECHO_C" >&6
57794 else
57795   ac_check_lib_save_LIBS=$LIBS
57796 LIBS="-liconv  $LIBS"
57797 if test x$gcc_no_link = xyes; then
57798   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57800    { (exit 1); exit 1; }; }
57801 fi
57802 cat >conftest.$ac_ext <<_ACEOF
57803 /* confdefs.h.  */
57804 _ACEOF
57805 cat confdefs.h >>conftest.$ac_ext
57806 cat >>conftest.$ac_ext <<_ACEOF
57807 /* end confdefs.h.  */
57808
57809 /* Override any gcc2 internal prototype to avoid an error.  */
57810 #ifdef __cplusplus
57811 extern "C"
57812 #endif
57813 /* We use char because int might match the return type of a gcc2
57814    builtin and then its argument prototype would still apply.  */
57815 char iconv ();
57816 int
57817 main ()
57818 {
57819 iconv ();
57820   ;
57821   return 0;
57822 }
57823 _ACEOF
57824 rm -f conftest.$ac_objext conftest$ac_exeext
57825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57826   (eval $ac_link) 2>conftest.er1
57827   ac_status=$?
57828   grep -v '^ *+' conftest.er1 >conftest.err
57829   rm -f conftest.er1
57830   cat conftest.err >&5
57831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57832   (exit $ac_status); } &&
57833          { ac_try='test -z "$ac_c_werror_flag"
57834                          || test ! -s conftest.err'
57835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57836   (eval $ac_try) 2>&5
57837   ac_status=$?
57838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57839   (exit $ac_status); }; } &&
57840          { ac_try='test -s conftest$ac_exeext'
57841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57842   (eval $ac_try) 2>&5
57843   ac_status=$?
57844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57845   (exit $ac_status); }; }; then
57846   ac_cv_lib_iconv_iconv=yes
57847 else
57848   echo "$as_me: failed program was:" >&5
57849 sed 's/^/| /' conftest.$ac_ext >&5
57850
57851 ac_cv_lib_iconv_iconv=no
57852 fi
57853 rm -f conftest.err conftest.$ac_objext \
57854       conftest$ac_exeext conftest.$ac_ext
57855 LIBS=$ac_check_lib_save_LIBS
57856 fi
57857 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57858 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57859 if test $ac_cv_lib_iconv_iconv = yes; then
57860   libiconv="-liconv"
57861 fi
57862
57863     ac_save_LIBS="$LIBS"
57864     LIBS="$LIBS $libiconv"
57865
57866
57867
57868
57869
57870 for ac_func in iconv_open iconv_close iconv nl_langinfo
57871 do
57872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57873 echo "$as_me:$LINENO: checking for $ac_func" >&5
57874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57875 if eval "test \"\${$as_ac_var+set}\" = set"; then
57876   echo $ECHO_N "(cached) $ECHO_C" >&6
57877 else
57878   if test x$gcc_no_link = xyes; then
57879   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57881    { (exit 1); exit 1; }; }
57882 fi
57883 cat >conftest.$ac_ext <<_ACEOF
57884 /* confdefs.h.  */
57885 _ACEOF
57886 cat confdefs.h >>conftest.$ac_ext
57887 cat >>conftest.$ac_ext <<_ACEOF
57888 /* end confdefs.h.  */
57889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57891 #define $ac_func innocuous_$ac_func
57892
57893 /* System header to define __stub macros and hopefully few prototypes,
57894     which can conflict with char $ac_func (); below.
57895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57896     <limits.h> exists even on freestanding compilers.  */
57897
57898 #ifdef __STDC__
57899 # include <limits.h>
57900 #else
57901 # include <assert.h>
57902 #endif
57903
57904 #undef $ac_func
57905
57906 /* Override any gcc2 internal prototype to avoid an error.  */
57907 #ifdef __cplusplus
57908 extern "C"
57909 {
57910 #endif
57911 /* We use char because int might match the return type of a gcc2
57912    builtin and then its argument prototype would still apply.  */
57913 char $ac_func ();
57914 /* The GNU C library defines this for functions which it implements
57915     to always fail with ENOSYS.  Some functions are actually named
57916     something starting with __ and the normal name is an alias.  */
57917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57918 choke me
57919 #else
57920 char (*f) () = $ac_func;
57921 #endif
57922 #ifdef __cplusplus
57923 }
57924 #endif
57925
57926 int
57927 main ()
57928 {
57929 return f != $ac_func;
57930   ;
57931   return 0;
57932 }
57933 _ACEOF
57934 rm -f conftest.$ac_objext conftest$ac_exeext
57935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57936   (eval $ac_link) 2>conftest.er1
57937   ac_status=$?
57938   grep -v '^ *+' conftest.er1 >conftest.err
57939   rm -f conftest.er1
57940   cat conftest.err >&5
57941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57942   (exit $ac_status); } &&
57943          { ac_try='test -z "$ac_c_werror_flag"
57944                          || test ! -s conftest.err'
57945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57946   (eval $ac_try) 2>&5
57947   ac_status=$?
57948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57949   (exit $ac_status); }; } &&
57950          { ac_try='test -s conftest$ac_exeext'
57951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57952   (eval $ac_try) 2>&5
57953   ac_status=$?
57954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57955   (exit $ac_status); }; }; then
57956   eval "$as_ac_var=yes"
57957 else
57958   echo "$as_me: failed program was:" >&5
57959 sed 's/^/| /' conftest.$ac_ext >&5
57960
57961 eval "$as_ac_var=no"
57962 fi
57963 rm -f conftest.err conftest.$ac_objext \
57964       conftest$ac_exeext conftest.$ac_ext
57965 fi
57966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57968 if test `eval echo '${'$as_ac_var'}'` = yes; then
57969   cat >>confdefs.h <<_ACEOF
57970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57971 _ACEOF
57972  ac_XPG2funcs=yes
57973 else
57974   ac_XPG2funcs=no
57975 fi
57976 done
57977
57978
57979     LIBS="$ac_save_LIBS"
57980
57981     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57982 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57983     if test x"$ac_has_iconv_h" = xyes &&
57984        test x"$ac_has_langinfo_h" = xyes &&
57985        test x"$ac_XPG2funcs" = xyes;
57986     then
57987       ac_XPG2_wchar_t=yes
57988     else
57989       ac_XPG2_wchar_t=no
57990     fi
57991     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57992 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57993
57994     # At the moment, only enable wchar_t specializations if all the
57995     # above support is present.
57996     if test x"$ac_isoC99_wchar_t" = xyes &&
57997        test x"$ac_XPG2_wchar_t" = xyes;
57998     then
57999       cat >>confdefs.h <<\_ACEOF
58000 #define _GLIBCXX_USE_WCHAR_T 1
58001 _ACEOF
58002
58003       enable_wchar_t=yes
58004     fi
58005   fi
58006   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
58007 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
58008   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
58009 echo "${ECHO_T}$enable_wchar_t" >&6
58010
58011     cat >>confdefs.h <<\_ACEOF
58012 #define HAVE_COPYSIGN 1
58013 _ACEOF
58014
58015     cat >>confdefs.h <<\_ACEOF
58016 #define HAVE_COPYSIGNF 1
58017 _ACEOF
58018
58019     cat >>confdefs.h <<\_ACEOF
58020 #define HAVE_FREXPF 1
58021 _ACEOF
58022
58023     cat >>confdefs.h <<\_ACEOF
58024 #define HAVE_HYPOT 1
58025 _ACEOF
58026
58027     case "$target" in
58028       *-hpux10*)
58029         cat >>confdefs.h <<\_ACEOF
58030 #define HAVE_FINITE 1
58031 _ACEOF
58032
58033         cat >>confdefs.h <<\_ACEOF
58034 #define HAVE_FINITEF 1
58035 _ACEOF
58036
58037         cat >>confdefs.h <<\_ACEOF
58038 #define HAVE_ISINF 1
58039 _ACEOF
58040
58041         cat >>confdefs.h <<\_ACEOF
58042 #define HAVE_ISINFF 1
58043 _ACEOF
58044
58045         cat >>confdefs.h <<\_ACEOF
58046 #define HAVE_ISNAN 1
58047 _ACEOF
58048
58049         cat >>confdefs.h <<\_ACEOF
58050 #define HAVE_ISNANF 1
58051 _ACEOF
58052
58053         ;;
58054     esac
58055     ;;
58056   *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
58057
58058
58059
58060
58061
58062
58063
58064
58065
58066
58067
58068
58069 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
58070       machine/endian.h machine/param.h sys/machine.h sys/types.h \
58071       fp.h locale.h float.h inttypes.h
58072 do
58073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58075   echo "$as_me:$LINENO: checking for $ac_header" >&5
58076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58078   echo $ECHO_N "(cached) $ECHO_C" >&6
58079 fi
58080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58082 else
58083   # Is the header compilable?
58084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58086 cat >conftest.$ac_ext <<_ACEOF
58087 /* confdefs.h.  */
58088 _ACEOF
58089 cat confdefs.h >>conftest.$ac_ext
58090 cat >>conftest.$ac_ext <<_ACEOF
58091 /* end confdefs.h.  */
58092 $ac_includes_default
58093 #include <$ac_header>
58094 _ACEOF
58095 rm -f conftest.$ac_objext
58096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58097   (eval $ac_compile) 2>conftest.er1
58098   ac_status=$?
58099   grep -v '^ *+' conftest.er1 >conftest.err
58100   rm -f conftest.er1
58101   cat conftest.err >&5
58102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58103   (exit $ac_status); } &&
58104          { ac_try='test -z "$ac_c_werror_flag"
58105                          || test ! -s conftest.err'
58106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58107   (eval $ac_try) 2>&5
58108   ac_status=$?
58109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58110   (exit $ac_status); }; } &&
58111          { ac_try='test -s conftest.$ac_objext'
58112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58113   (eval $ac_try) 2>&5
58114   ac_status=$?
58115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58116   (exit $ac_status); }; }; then
58117   ac_header_compiler=yes
58118 else
58119   echo "$as_me: failed program was:" >&5
58120 sed 's/^/| /' conftest.$ac_ext >&5
58121
58122 ac_header_compiler=no
58123 fi
58124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58126 echo "${ECHO_T}$ac_header_compiler" >&6
58127
58128 # Is the header present?
58129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58131 cat >conftest.$ac_ext <<_ACEOF
58132 /* confdefs.h.  */
58133 _ACEOF
58134 cat confdefs.h >>conftest.$ac_ext
58135 cat >>conftest.$ac_ext <<_ACEOF
58136 /* end confdefs.h.  */
58137 #include <$ac_header>
58138 _ACEOF
58139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58141   ac_status=$?
58142   grep -v '^ *+' conftest.er1 >conftest.err
58143   rm -f conftest.er1
58144   cat conftest.err >&5
58145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58146   (exit $ac_status); } >/dev/null; then
58147   if test -s conftest.err; then
58148     ac_cpp_err=$ac_c_preproc_warn_flag
58149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58150   else
58151     ac_cpp_err=
58152   fi
58153 else
58154   ac_cpp_err=yes
58155 fi
58156 if test -z "$ac_cpp_err"; then
58157   ac_header_preproc=yes
58158 else
58159   echo "$as_me: failed program was:" >&5
58160 sed 's/^/| /' conftest.$ac_ext >&5
58161
58162   ac_header_preproc=no
58163 fi
58164 rm -f conftest.err conftest.$ac_ext
58165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58166 echo "${ECHO_T}$ac_header_preproc" >&6
58167
58168 # So?  What about this header?
58169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58170   yes:no: )
58171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58175     ac_header_preproc=yes
58176     ;;
58177   no:yes:* )
58178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
58181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
58182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
58185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
58186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58190     (
58191       cat <<\_ASBOX
58192 ## ----------------------------------------- ##
58193 ## Report this to the package-unused lists.  ##
58194 ## ----------------------------------------- ##
58195 _ASBOX
58196     ) |
58197       sed "s/^/$as_me: WARNING:     /" >&2
58198     ;;
58199 esac
58200 echo "$as_me:$LINENO: checking for $ac_header" >&5
58201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58203   echo $ECHO_N "(cached) $ECHO_C" >&6
58204 else
58205   eval "$as_ac_Header=\$ac_header_preproc"
58206 fi
58207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58209
58210 fi
58211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58212   cat >>confdefs.h <<_ACEOF
58213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58214 _ACEOF
58215
58216 fi
58217
58218 done
58219
58220     SECTION_FLAGS='-ffunction-sections -fdata-sections'
58221
58222
58223   # If we're not using GNU ld, then there's no point in even trying these
58224   # tests.  Check for that first.  We should have already tested for gld
58225   # by now (in libtool), but require it now just to be safe...
58226   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
58227   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
58228
58229
58230
58231   # The name set by libtool depends on the version of libtool.  Shame on us
58232   # for depending on an impl detail, but c'est la vie.  Older versions used
58233   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
58234   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
58235   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
58236   # set (hence we're using an older libtool), then set it.
58237   if test x${with_gnu_ld+set} != xset; then
58238     if test x${ac_cv_prog_gnu_ld+set} != xset; then
58239       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
58240       with_gnu_ld=no
58241     else
58242       with_gnu_ld=$ac_cv_prog_gnu_ld
58243     fi
58244   fi
58245
58246   # Start by getting the version number.  I think the libtool test already
58247   # does some of this, but throws away the result.
58248
58249   ldver=`$LD --version 2>/dev/null | head -1 | \
58250          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
58251
58252   glibcxx_gnu_ld_version=`echo $ldver | \
58253          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
58254
58255   # Set --gc-sections.
58256   if test "$with_gnu_ld" = "notbroken"; then
58257     # GNU ld it is!  Joy and bunny rabbits!
58258
58259     # All these tests are for C++; save the language and the compiler flags.
58260     # Need to do this so that g++ won't try to link in libstdc++
58261     ac_test_CFLAGS="${CFLAGS+set}"
58262     ac_save_CFLAGS="$CFLAGS"
58263     CFLAGS='-x c++  -Wl,--gc-sections'
58264
58265     # Check for -Wl,--gc-sections
58266     # XXX This test is broken at the moment, as symbols required for linking
58267     # are now in libsupc++ (not built yet).  In addition, this test has
58268     # cored on solaris in the past.  In addition, --gc-sections doesn't
58269     # really work at the moment (keeps on discarding used sections, first
58270     # .eh_frame and now some of the glibc sections for iconv).
58271     # Bzzzzt.  Thanks for playing, maybe next time.
58272     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
58273 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
58274     if test "$cross_compiling" = yes; then
58275   ac_sectionLDflags=yes
58276 else
58277   cat >conftest.$ac_ext <<_ACEOF
58278 /* confdefs.h.  */
58279 _ACEOF
58280 cat confdefs.h >>conftest.$ac_ext
58281 cat >>conftest.$ac_ext <<_ACEOF
58282 /* end confdefs.h.  */
58283
58284      int main(void)
58285      {
58286        try { throw 1; }
58287        catch (...) { };
58288        return 0;
58289      }
58290
58291 _ACEOF
58292 rm -f conftest$ac_exeext
58293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58294   (eval $ac_link) 2>&5
58295   ac_status=$?
58296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58299   (eval $ac_try) 2>&5
58300   ac_status=$?
58301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58302   (exit $ac_status); }; }; then
58303   ac_sectionLDflags=yes
58304 else
58305   echo "$as_me: program exited with status $ac_status" >&5
58306 echo "$as_me: failed program was:" >&5
58307 sed 's/^/| /' conftest.$ac_ext >&5
58308
58309 ( exit $ac_status )
58310 ac_sectionLDflags=no
58311 fi
58312 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58313 fi
58314     if test "$ac_test_CFLAGS" = set; then
58315       CFLAGS="$ac_save_CFLAGS"
58316     else
58317       # this is the suspicious part
58318       CFLAGS=''
58319     fi
58320     if test "$ac_sectionLDflags" = "yes"; then
58321       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
58322     fi
58323     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
58324 echo "${ECHO_T}$ac_sectionLDflags" >&6
58325   fi
58326
58327   # Set linker optimization flags.
58328   if test x"$with_gnu_ld" = x"yes"; then
58329     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
58330   fi
58331
58332
58333
58334
58335
58336
58337 echo "$as_me:$LINENO: checking for main in -lm" >&5
58338 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
58339 if test "${ac_cv_lib_m_main+set}" = set; then
58340   echo $ECHO_N "(cached) $ECHO_C" >&6
58341 else
58342   ac_check_lib_save_LIBS=$LIBS
58343 LIBS="-lm  $LIBS"
58344 if test x$gcc_no_link = xyes; then
58345   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58347    { (exit 1); exit 1; }; }
58348 fi
58349 cat >conftest.$ac_ext <<_ACEOF
58350 /* confdefs.h.  */
58351 _ACEOF
58352 cat confdefs.h >>conftest.$ac_ext
58353 cat >>conftest.$ac_ext <<_ACEOF
58354 /* end confdefs.h.  */
58355
58356
58357 int
58358 main ()
58359 {
58360 main ();
58361   ;
58362   return 0;
58363 }
58364 _ACEOF
58365 rm -f conftest.$ac_objext conftest$ac_exeext
58366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58367   (eval $ac_link) 2>conftest.er1
58368   ac_status=$?
58369   grep -v '^ *+' conftest.er1 >conftest.err
58370   rm -f conftest.er1
58371   cat conftest.err >&5
58372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58373   (exit $ac_status); } &&
58374          { ac_try='test -z "$ac_c_werror_flag"
58375                          || test ! -s conftest.err'
58376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58377   (eval $ac_try) 2>&5
58378   ac_status=$?
58379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58380   (exit $ac_status); }; } &&
58381          { ac_try='test -s conftest$ac_exeext'
58382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58383   (eval $ac_try) 2>&5
58384   ac_status=$?
58385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58386   (exit $ac_status); }; }; then
58387   ac_cv_lib_m_main=yes
58388 else
58389   echo "$as_me: failed program was:" >&5
58390 sed 's/^/| /' conftest.$ac_ext >&5
58391
58392 ac_cv_lib_m_main=no
58393 fi
58394 rm -f conftest.err conftest.$ac_objext \
58395       conftest$ac_exeext conftest.$ac_ext
58396 LIBS=$ac_check_lib_save_LIBS
58397 fi
58398 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
58399 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
58400 if test $ac_cv_lib_m_main = yes; then
58401   cat >>confdefs.h <<_ACEOF
58402 #define HAVE_LIBM 1
58403 _ACEOF
58404
58405   LIBS="-lm $LIBS"
58406
58407 fi
58408
58409
58410 for ac_func in copysignf
58411 do
58412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58413 echo "$as_me:$LINENO: checking for $ac_func" >&5
58414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58415 if eval "test \"\${$as_ac_var+set}\" = set"; then
58416   echo $ECHO_N "(cached) $ECHO_C" >&6
58417 else
58418   if test x$gcc_no_link = xyes; then
58419   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58421    { (exit 1); exit 1; }; }
58422 fi
58423 cat >conftest.$ac_ext <<_ACEOF
58424 /* confdefs.h.  */
58425 _ACEOF
58426 cat confdefs.h >>conftest.$ac_ext
58427 cat >>conftest.$ac_ext <<_ACEOF
58428 /* end confdefs.h.  */
58429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58431 #define $ac_func innocuous_$ac_func
58432
58433 /* System header to define __stub macros and hopefully few prototypes,
58434     which can conflict with char $ac_func (); below.
58435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58436     <limits.h> exists even on freestanding compilers.  */
58437
58438 #ifdef __STDC__
58439 # include <limits.h>
58440 #else
58441 # include <assert.h>
58442 #endif
58443
58444 #undef $ac_func
58445
58446 /* Override any gcc2 internal prototype to avoid an error.  */
58447 #ifdef __cplusplus
58448 extern "C"
58449 {
58450 #endif
58451 /* We use char because int might match the return type of a gcc2
58452    builtin and then its argument prototype would still apply.  */
58453 char $ac_func ();
58454 /* The GNU C library defines this for functions which it implements
58455     to always fail with ENOSYS.  Some functions are actually named
58456     something starting with __ and the normal name is an alias.  */
58457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58458 choke me
58459 #else
58460 char (*f) () = $ac_func;
58461 #endif
58462 #ifdef __cplusplus
58463 }
58464 #endif
58465
58466 int
58467 main ()
58468 {
58469 return f != $ac_func;
58470   ;
58471   return 0;
58472 }
58473 _ACEOF
58474 rm -f conftest.$ac_objext conftest$ac_exeext
58475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58476   (eval $ac_link) 2>conftest.er1
58477   ac_status=$?
58478   grep -v '^ *+' conftest.er1 >conftest.err
58479   rm -f conftest.er1
58480   cat conftest.err >&5
58481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58482   (exit $ac_status); } &&
58483          { ac_try='test -z "$ac_c_werror_flag"
58484                          || test ! -s conftest.err'
58485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58486   (eval $ac_try) 2>&5
58487   ac_status=$?
58488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58489   (exit $ac_status); }; } &&
58490          { ac_try='test -s conftest$ac_exeext'
58491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58492   (eval $ac_try) 2>&5
58493   ac_status=$?
58494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58495   (exit $ac_status); }; }; then
58496   eval "$as_ac_var=yes"
58497 else
58498   echo "$as_me: failed program was:" >&5
58499 sed 's/^/| /' conftest.$ac_ext >&5
58500
58501 eval "$as_ac_var=no"
58502 fi
58503 rm -f conftest.err conftest.$ac_objext \
58504       conftest$ac_exeext conftest.$ac_ext
58505 fi
58506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58508 if test `eval echo '${'$as_ac_var'}'` = yes; then
58509   cat >>confdefs.h <<_ACEOF
58510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58511 _ACEOF
58512
58513 else
58514   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
58515 fi
58516 done
58517
58518
58519
58520 for ac_func in __signbit
58521 do
58522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58523 echo "$as_me:$LINENO: checking for $ac_func" >&5
58524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58525 if eval "test \"\${$as_ac_var+set}\" = set"; then
58526   echo $ECHO_N "(cached) $ECHO_C" >&6
58527 else
58528   if test x$gcc_no_link = xyes; then
58529   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58531    { (exit 1); exit 1; }; }
58532 fi
58533 cat >conftest.$ac_ext <<_ACEOF
58534 /* confdefs.h.  */
58535 _ACEOF
58536 cat confdefs.h >>conftest.$ac_ext
58537 cat >>conftest.$ac_ext <<_ACEOF
58538 /* end confdefs.h.  */
58539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58541 #define $ac_func innocuous_$ac_func
58542
58543 /* System header to define __stub macros and hopefully few prototypes,
58544     which can conflict with char $ac_func (); below.
58545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58546     <limits.h> exists even on freestanding compilers.  */
58547
58548 #ifdef __STDC__
58549 # include <limits.h>
58550 #else
58551 # include <assert.h>
58552 #endif
58553
58554 #undef $ac_func
58555
58556 /* Override any gcc2 internal prototype to avoid an error.  */
58557 #ifdef __cplusplus
58558 extern "C"
58559 {
58560 #endif
58561 /* We use char because int might match the return type of a gcc2
58562    builtin and then its argument prototype would still apply.  */
58563 char $ac_func ();
58564 /* The GNU C library defines this for functions which it implements
58565     to always fail with ENOSYS.  Some functions are actually named
58566     something starting with __ and the normal name is an alias.  */
58567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58568 choke me
58569 #else
58570 char (*f) () = $ac_func;
58571 #endif
58572 #ifdef __cplusplus
58573 }
58574 #endif
58575
58576 int
58577 main ()
58578 {
58579 return f != $ac_func;
58580   ;
58581   return 0;
58582 }
58583 _ACEOF
58584 rm -f conftest.$ac_objext conftest$ac_exeext
58585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58586   (eval $ac_link) 2>conftest.er1
58587   ac_status=$?
58588   grep -v '^ *+' conftest.er1 >conftest.err
58589   rm -f conftest.er1
58590   cat conftest.err >&5
58591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58592   (exit $ac_status); } &&
58593          { ac_try='test -z "$ac_c_werror_flag"
58594                          || test ! -s conftest.err'
58595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58596   (eval $ac_try) 2>&5
58597   ac_status=$?
58598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58599   (exit $ac_status); }; } &&
58600          { ac_try='test -s conftest$ac_exeext'
58601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58602   (eval $ac_try) 2>&5
58603   ac_status=$?
58604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58605   (exit $ac_status); }; }; then
58606   eval "$as_ac_var=yes"
58607 else
58608   echo "$as_me: failed program was:" >&5
58609 sed 's/^/| /' conftest.$ac_ext >&5
58610
58611 eval "$as_ac_var=no"
58612 fi
58613 rm -f conftest.err conftest.$ac_objext \
58614       conftest$ac_exeext conftest.$ac_ext
58615 fi
58616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58618 if test `eval echo '${'$as_ac_var'}'` = yes; then
58619   cat >>confdefs.h <<_ACEOF
58620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58621 _ACEOF
58622
58623 else
58624   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
58625 fi
58626 done
58627
58628
58629 for ac_func in __signbitf
58630 do
58631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58632 echo "$as_me:$LINENO: checking for $ac_func" >&5
58633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58634 if eval "test \"\${$as_ac_var+set}\" = set"; then
58635   echo $ECHO_N "(cached) $ECHO_C" >&6
58636 else
58637   if test x$gcc_no_link = xyes; then
58638   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58640    { (exit 1); exit 1; }; }
58641 fi
58642 cat >conftest.$ac_ext <<_ACEOF
58643 /* confdefs.h.  */
58644 _ACEOF
58645 cat confdefs.h >>conftest.$ac_ext
58646 cat >>conftest.$ac_ext <<_ACEOF
58647 /* end confdefs.h.  */
58648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58650 #define $ac_func innocuous_$ac_func
58651
58652 /* System header to define __stub macros and hopefully few prototypes,
58653     which can conflict with char $ac_func (); below.
58654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58655     <limits.h> exists even on freestanding compilers.  */
58656
58657 #ifdef __STDC__
58658 # include <limits.h>
58659 #else
58660 # include <assert.h>
58661 #endif
58662
58663 #undef $ac_func
58664
58665 /* Override any gcc2 internal prototype to avoid an error.  */
58666 #ifdef __cplusplus
58667 extern "C"
58668 {
58669 #endif
58670 /* We use char because int might match the return type of a gcc2
58671    builtin and then its argument prototype would still apply.  */
58672 char $ac_func ();
58673 /* The GNU C library defines this for functions which it implements
58674     to always fail with ENOSYS.  Some functions are actually named
58675     something starting with __ and the normal name is an alias.  */
58676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58677 choke me
58678 #else
58679 char (*f) () = $ac_func;
58680 #endif
58681 #ifdef __cplusplus
58682 }
58683 #endif
58684
58685 int
58686 main ()
58687 {
58688 return f != $ac_func;
58689   ;
58690   return 0;
58691 }
58692 _ACEOF
58693 rm -f conftest.$ac_objext conftest$ac_exeext
58694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58695   (eval $ac_link) 2>conftest.er1
58696   ac_status=$?
58697   grep -v '^ *+' conftest.er1 >conftest.err
58698   rm -f conftest.er1
58699   cat conftest.err >&5
58700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58701   (exit $ac_status); } &&
58702          { ac_try='test -z "$ac_c_werror_flag"
58703                          || test ! -s conftest.err'
58704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58705   (eval $ac_try) 2>&5
58706   ac_status=$?
58707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58708   (exit $ac_status); }; } &&
58709          { ac_try='test -s conftest$ac_exeext'
58710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58711   (eval $ac_try) 2>&5
58712   ac_status=$?
58713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58714   (exit $ac_status); }; }; then
58715   eval "$as_ac_var=yes"
58716 else
58717   echo "$as_me: failed program was:" >&5
58718 sed 's/^/| /' conftest.$ac_ext >&5
58719
58720 eval "$as_ac_var=no"
58721 fi
58722 rm -f conftest.err conftest.$ac_objext \
58723       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 else
58733   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
58734 fi
58735 done
58736
58737
58738           if test x$ac_cv_func_copysignl = x"yes"; then
58739
58740 for ac_func in __signbitl
58741 do
58742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58743 echo "$as_me:$LINENO: checking for $ac_func" >&5
58744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58745 if eval "test \"\${$as_ac_var+set}\" = set"; then
58746   echo $ECHO_N "(cached) $ECHO_C" >&6
58747 else
58748   if test x$gcc_no_link = xyes; then
58749   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58751    { (exit 1); exit 1; }; }
58752 fi
58753 cat >conftest.$ac_ext <<_ACEOF
58754 /* confdefs.h.  */
58755 _ACEOF
58756 cat confdefs.h >>conftest.$ac_ext
58757 cat >>conftest.$ac_ext <<_ACEOF
58758 /* end confdefs.h.  */
58759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58761 #define $ac_func innocuous_$ac_func
58762
58763 /* System header to define __stub macros and hopefully few prototypes,
58764     which can conflict with char $ac_func (); below.
58765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58766     <limits.h> exists even on freestanding compilers.  */
58767
58768 #ifdef __STDC__
58769 # include <limits.h>
58770 #else
58771 # include <assert.h>
58772 #endif
58773
58774 #undef $ac_func
58775
58776 /* Override any gcc2 internal prototype to avoid an error.  */
58777 #ifdef __cplusplus
58778 extern "C"
58779 {
58780 #endif
58781 /* We use char because int might match the return type of a gcc2
58782    builtin and then its argument prototype would still apply.  */
58783 char $ac_func ();
58784 /* The GNU C library defines this for functions which it implements
58785     to always fail with ENOSYS.  Some functions are actually named
58786     something starting with __ and the normal name is an alias.  */
58787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58788 choke me
58789 #else
58790 char (*f) () = $ac_func;
58791 #endif
58792 #ifdef __cplusplus
58793 }
58794 #endif
58795
58796 int
58797 main ()
58798 {
58799 return f != $ac_func;
58800   ;
58801   return 0;
58802 }
58803 _ACEOF
58804 rm -f conftest.$ac_objext conftest$ac_exeext
58805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58806   (eval $ac_link) 2>conftest.er1
58807   ac_status=$?
58808   grep -v '^ *+' conftest.er1 >conftest.err
58809   rm -f conftest.er1
58810   cat conftest.err >&5
58811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58812   (exit $ac_status); } &&
58813          { ac_try='test -z "$ac_c_werror_flag"
58814                          || test ! -s conftest.err'
58815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58816   (eval $ac_try) 2>&5
58817   ac_status=$?
58818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58819   (exit $ac_status); }; } &&
58820          { ac_try='test -s conftest$ac_exeext'
58821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58822   (eval $ac_try) 2>&5
58823   ac_status=$?
58824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58825   (exit $ac_status); }; }; then
58826   eval "$as_ac_var=yes"
58827 else
58828   echo "$as_me: failed program was:" >&5
58829 sed 's/^/| /' conftest.$ac_ext >&5
58830
58831 eval "$as_ac_var=no"
58832 fi
58833 rm -f conftest.err conftest.$ac_objext \
58834       conftest$ac_exeext conftest.$ac_ext
58835 fi
58836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58838 if test `eval echo '${'$as_ac_var'}'` = yes; then
58839   cat >>confdefs.h <<_ACEOF
58840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58841 _ACEOF
58842
58843 else
58844   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
58845 fi
58846 done
58847
58848   fi
58849
58850   # XXX Review this.  Nothing uses it.
58851   if test -n "$LIBMATHOBJS"; then
58852     need_libmath=yes
58853   fi
58854
58855
58856
58857   # Test wchar.h for mbstate_t, which is needed for char_traits and
58858   # others even if wchar_t support is not on.
58859   echo "$as_me:$LINENO: checking for mbstate_t" >&5
58860 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
58861   cat >conftest.$ac_ext <<_ACEOF
58862 /* confdefs.h.  */
58863 _ACEOF
58864 cat confdefs.h >>conftest.$ac_ext
58865 cat >>conftest.$ac_ext <<_ACEOF
58866 /* end confdefs.h.  */
58867 #include <wchar.h>
58868 int
58869 main ()
58870 {
58871 mbstate_t teststate;
58872   ;
58873   return 0;
58874 }
58875 _ACEOF
58876 rm -f conftest.$ac_objext
58877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58878   (eval $ac_compile) 2>conftest.er1
58879   ac_status=$?
58880   grep -v '^ *+' conftest.er1 >conftest.err
58881   rm -f conftest.er1
58882   cat conftest.err >&5
58883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58884   (exit $ac_status); } &&
58885          { ac_try='test -z "$ac_c_werror_flag"
58886                          || test ! -s conftest.err'
58887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58888   (eval $ac_try) 2>&5
58889   ac_status=$?
58890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58891   (exit $ac_status); }; } &&
58892          { ac_try='test -s conftest.$ac_objext'
58893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58894   (eval $ac_try) 2>&5
58895   ac_status=$?
58896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58897   (exit $ac_status); }; }; then
58898   have_mbstate_t=yes
58899 else
58900   echo "$as_me: failed program was:" >&5
58901 sed 's/^/| /' conftest.$ac_ext >&5
58902
58903 have_mbstate_t=no
58904 fi
58905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58906   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
58907 echo "${ECHO_T}$have_mbstate_t" >&6
58908   if test x"$have_mbstate_t" = xyes; then
58909     cat >>confdefs.h <<\_ACEOF
58910 #define HAVE_MBSTATE_T 1
58911 _ACEOF
58912
58913   fi
58914
58915   # Sanity check for existence of ISO C99 headers for extended encoding.
58916
58917 for ac_header in wchar.h
58918 do
58919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58921   echo "$as_me:$LINENO: checking for $ac_header" >&5
58922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58924   echo $ECHO_N "(cached) $ECHO_C" >&6
58925 fi
58926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58928 else
58929   # Is the header compilable?
58930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58932 cat >conftest.$ac_ext <<_ACEOF
58933 /* confdefs.h.  */
58934 _ACEOF
58935 cat confdefs.h >>conftest.$ac_ext
58936 cat >>conftest.$ac_ext <<_ACEOF
58937 /* end confdefs.h.  */
58938 $ac_includes_default
58939 #include <$ac_header>
58940 _ACEOF
58941 rm -f conftest.$ac_objext
58942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58943   (eval $ac_compile) 2>conftest.er1
58944   ac_status=$?
58945   grep -v '^ *+' conftest.er1 >conftest.err
58946   rm -f conftest.er1
58947   cat conftest.err >&5
58948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58949   (exit $ac_status); } &&
58950          { ac_try='test -z "$ac_c_werror_flag"
58951                          || test ! -s conftest.err'
58952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58953   (eval $ac_try) 2>&5
58954   ac_status=$?
58955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58956   (exit $ac_status); }; } &&
58957          { ac_try='test -s conftest.$ac_objext'
58958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58959   (eval $ac_try) 2>&5
58960   ac_status=$?
58961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58962   (exit $ac_status); }; }; then
58963   ac_header_compiler=yes
58964 else
58965   echo "$as_me: failed program was:" >&5
58966 sed 's/^/| /' conftest.$ac_ext >&5
58967
58968 ac_header_compiler=no
58969 fi
58970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58972 echo "${ECHO_T}$ac_header_compiler" >&6
58973
58974 # Is the header present?
58975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58977 cat >conftest.$ac_ext <<_ACEOF
58978 /* confdefs.h.  */
58979 _ACEOF
58980 cat confdefs.h >>conftest.$ac_ext
58981 cat >>conftest.$ac_ext <<_ACEOF
58982 /* end confdefs.h.  */
58983 #include <$ac_header>
58984 _ACEOF
58985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58987   ac_status=$?
58988   grep -v '^ *+' conftest.er1 >conftest.err
58989   rm -f conftest.er1
58990   cat conftest.err >&5
58991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58992   (exit $ac_status); } >/dev/null; then
58993   if test -s conftest.err; then
58994     ac_cpp_err=$ac_c_preproc_warn_flag
58995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58996   else
58997     ac_cpp_err=
58998   fi
58999 else
59000   ac_cpp_err=yes
59001 fi
59002 if test -z "$ac_cpp_err"; then
59003   ac_header_preproc=yes
59004 else
59005   echo "$as_me: failed program was:" >&5
59006 sed 's/^/| /' conftest.$ac_ext >&5
59007
59008   ac_header_preproc=no
59009 fi
59010 rm -f conftest.err conftest.$ac_ext
59011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59012 echo "${ECHO_T}$ac_header_preproc" >&6
59013
59014 # So?  What about this header?
59015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59016   yes:no: )
59017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59021     ac_header_preproc=yes
59022     ;;
59023   no:yes:* )
59024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59026     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
59027 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
59028     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59030     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
59031 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
59032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59034     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59036     (
59037       cat <<\_ASBOX
59038 ## ----------------------------------------- ##
59039 ## Report this to the package-unused lists.  ##
59040 ## ----------------------------------------- ##
59041 _ASBOX
59042     ) |
59043       sed "s/^/$as_me: WARNING:     /" >&2
59044     ;;
59045 esac
59046 echo "$as_me:$LINENO: checking for $ac_header" >&5
59047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59049   echo $ECHO_N "(cached) $ECHO_C" >&6
59050 else
59051   eval "$as_ac_Header=\$ac_header_preproc"
59052 fi
59053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59055
59056 fi
59057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59058   cat >>confdefs.h <<_ACEOF
59059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59060 _ACEOF
59061  ac_has_wchar_h=yes
59062 else
59063   ac_has_wchar_h=no
59064 fi
59065
59066 done
59067
59068
59069 for ac_header in wctype.h
59070 do
59071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59073   echo "$as_me:$LINENO: checking for $ac_header" >&5
59074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59076   echo $ECHO_N "(cached) $ECHO_C" >&6
59077 fi
59078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59080 else
59081   # Is the header compilable?
59082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59084 cat >conftest.$ac_ext <<_ACEOF
59085 /* confdefs.h.  */
59086 _ACEOF
59087 cat confdefs.h >>conftest.$ac_ext
59088 cat >>conftest.$ac_ext <<_ACEOF
59089 /* end confdefs.h.  */
59090 $ac_includes_default
59091 #include <$ac_header>
59092 _ACEOF
59093 rm -f conftest.$ac_objext
59094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59095   (eval $ac_compile) 2>conftest.er1
59096   ac_status=$?
59097   grep -v '^ *+' conftest.er1 >conftest.err
59098   rm -f conftest.er1
59099   cat conftest.err >&5
59100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59101   (exit $ac_status); } &&
59102          { ac_try='test -z "$ac_c_werror_flag"
59103                          || test ! -s conftest.err'
59104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59105   (eval $ac_try) 2>&5
59106   ac_status=$?
59107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59108   (exit $ac_status); }; } &&
59109          { ac_try='test -s conftest.$ac_objext'
59110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59111   (eval $ac_try) 2>&5
59112   ac_status=$?
59113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59114   (exit $ac_status); }; }; then
59115   ac_header_compiler=yes
59116 else
59117   echo "$as_me: failed program was:" >&5
59118 sed 's/^/| /' conftest.$ac_ext >&5
59119
59120 ac_header_compiler=no
59121 fi
59122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59124 echo "${ECHO_T}$ac_header_compiler" >&6
59125
59126 # Is the header present?
59127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59129 cat >conftest.$ac_ext <<_ACEOF
59130 /* confdefs.h.  */
59131 _ACEOF
59132 cat confdefs.h >>conftest.$ac_ext
59133 cat >>conftest.$ac_ext <<_ACEOF
59134 /* end confdefs.h.  */
59135 #include <$ac_header>
59136 _ACEOF
59137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59139   ac_status=$?
59140   grep -v '^ *+' conftest.er1 >conftest.err
59141   rm -f conftest.er1
59142   cat conftest.err >&5
59143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59144   (exit $ac_status); } >/dev/null; then
59145   if test -s conftest.err; then
59146     ac_cpp_err=$ac_c_preproc_warn_flag
59147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59148   else
59149     ac_cpp_err=
59150   fi
59151 else
59152   ac_cpp_err=yes
59153 fi
59154 if test -z "$ac_cpp_err"; then
59155   ac_header_preproc=yes
59156 else
59157   echo "$as_me: failed program was:" >&5
59158 sed 's/^/| /' conftest.$ac_ext >&5
59159
59160   ac_header_preproc=no
59161 fi
59162 rm -f conftest.err conftest.$ac_ext
59163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59164 echo "${ECHO_T}$ac_header_preproc" >&6
59165
59166 # So?  What about this header?
59167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59168   yes:no: )
59169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59173     ac_header_preproc=yes
59174     ;;
59175   no:yes:* )
59176     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59178     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
59179 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
59180     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59182     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
59183 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
59184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59186     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59188     (
59189       cat <<\_ASBOX
59190 ## ----------------------------------------- ##
59191 ## Report this to the package-unused lists.  ##
59192 ## ----------------------------------------- ##
59193 _ASBOX
59194     ) |
59195       sed "s/^/$as_me: WARNING:     /" >&2
59196     ;;
59197 esac
59198 echo "$as_me:$LINENO: checking for $ac_header" >&5
59199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59201   echo $ECHO_N "(cached) $ECHO_C" >&6
59202 else
59203   eval "$as_ac_Header=\$ac_header_preproc"
59204 fi
59205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59207
59208 fi
59209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59210   cat >>confdefs.h <<_ACEOF
59211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59212 _ACEOF
59213  ac_has_wctype_h=yes
59214 else
59215   ac_has_wctype_h=no
59216 fi
59217
59218 done
59219
59220
59221   # Only continue checking if the ISO C99 headers exist and support is on.
59222   if test x"$ac_has_wchar_h" = xyes &&
59223      test x"$ac_has_wctype_h" = xyes &&
59224      test x"$enable_c_mbchar" != xno; then
59225
59226     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
59227     # numeric_limits can instantiate type_traits<wchar_t>
59228     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
59229 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
59230     cat >conftest.$ac_ext <<_ACEOF
59231 /* confdefs.h.  */
59232 _ACEOF
59233 cat confdefs.h >>conftest.$ac_ext
59234 cat >>conftest.$ac_ext <<_ACEOF
59235 /* end confdefs.h.  */
59236 #include <wchar.h>
59237 int
59238 main ()
59239 {
59240 int i = WCHAR_MIN; int j = WCHAR_MAX;
59241   ;
59242   return 0;
59243 }
59244 _ACEOF
59245 rm -f conftest.$ac_objext
59246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59247   (eval $ac_compile) 2>conftest.er1
59248   ac_status=$?
59249   grep -v '^ *+' conftest.er1 >conftest.err
59250   rm -f conftest.er1
59251   cat conftest.err >&5
59252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59253   (exit $ac_status); } &&
59254          { ac_try='test -z "$ac_c_werror_flag"
59255                          || test ! -s conftest.err'
59256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59257   (eval $ac_try) 2>&5
59258   ac_status=$?
59259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59260   (exit $ac_status); }; } &&
59261          { ac_try='test -s conftest.$ac_objext'
59262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59263   (eval $ac_try) 2>&5
59264   ac_status=$?
59265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59266   (exit $ac_status); }; }; then
59267   has_wchar_minmax=yes
59268 else
59269   echo "$as_me: failed program was:" >&5
59270 sed 's/^/| /' conftest.$ac_ext >&5
59271
59272 has_wchar_minmax=no
59273 fi
59274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59275     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
59276 echo "${ECHO_T}$has_wchar_minmax" >&6
59277
59278     # Test wchar.h for WEOF, which is what we use to determine whether
59279     # to specialize for char_traits<wchar_t> or not.
59280     echo "$as_me:$LINENO: checking for WEOF" >&5
59281 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
59282     cat >conftest.$ac_ext <<_ACEOF
59283 /* confdefs.h.  */
59284 _ACEOF
59285 cat confdefs.h >>conftest.$ac_ext
59286 cat >>conftest.$ac_ext <<_ACEOF
59287 /* end confdefs.h.  */
59288
59289       #include <wchar.h>
59290       #include <stddef.h>
59291 int
59292 main ()
59293 {
59294 wint_t i = WEOF;
59295   ;
59296   return 0;
59297 }
59298 _ACEOF
59299 rm -f conftest.$ac_objext
59300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59301   (eval $ac_compile) 2>conftest.er1
59302   ac_status=$?
59303   grep -v '^ *+' conftest.er1 >conftest.err
59304   rm -f conftest.er1
59305   cat conftest.err >&5
59306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59307   (exit $ac_status); } &&
59308          { ac_try='test -z "$ac_c_werror_flag"
59309                          || test ! -s conftest.err'
59310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59311   (eval $ac_try) 2>&5
59312   ac_status=$?
59313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59314   (exit $ac_status); }; } &&
59315          { ac_try='test -s conftest.$ac_objext'
59316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59317   (eval $ac_try) 2>&5
59318   ac_status=$?
59319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59320   (exit $ac_status); }; }; then
59321   has_weof=yes
59322 else
59323   echo "$as_me: failed program was:" >&5
59324 sed 's/^/| /' conftest.$ac_ext >&5
59325
59326 has_weof=no
59327 fi
59328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59329     echo "$as_me:$LINENO: result: $has_weof" >&5
59330 echo "${ECHO_T}$has_weof" >&6
59331
59332     # Tests for wide character functions used in char_traits<wchar_t>.
59333     ac_wfuncs=yes
59334
59335
59336
59337
59338
59339
59340 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
59341 do
59342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59343 echo "$as_me:$LINENO: checking for $ac_func" >&5
59344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59345 if eval "test \"\${$as_ac_var+set}\" = set"; then
59346   echo $ECHO_N "(cached) $ECHO_C" >&6
59347 else
59348   if test x$gcc_no_link = xyes; then
59349   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59351    { (exit 1); exit 1; }; }
59352 fi
59353 cat >conftest.$ac_ext <<_ACEOF
59354 /* confdefs.h.  */
59355 _ACEOF
59356 cat confdefs.h >>conftest.$ac_ext
59357 cat >>conftest.$ac_ext <<_ACEOF
59358 /* end confdefs.h.  */
59359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59361 #define $ac_func innocuous_$ac_func
59362
59363 /* System header to define __stub macros and hopefully few prototypes,
59364     which can conflict with char $ac_func (); below.
59365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59366     <limits.h> exists even on freestanding compilers.  */
59367
59368 #ifdef __STDC__
59369 # include <limits.h>
59370 #else
59371 # include <assert.h>
59372 #endif
59373
59374 #undef $ac_func
59375
59376 /* Override any gcc2 internal prototype to avoid an error.  */
59377 #ifdef __cplusplus
59378 extern "C"
59379 {
59380 #endif
59381 /* We use char because int might match the return type of a gcc2
59382    builtin and then its argument prototype would still apply.  */
59383 char $ac_func ();
59384 /* The GNU C library defines this for functions which it implements
59385     to always fail with ENOSYS.  Some functions are actually named
59386     something starting with __ and the normal name is an alias.  */
59387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59388 choke me
59389 #else
59390 char (*f) () = $ac_func;
59391 #endif
59392 #ifdef __cplusplus
59393 }
59394 #endif
59395
59396 int
59397 main ()
59398 {
59399 return f != $ac_func;
59400   ;
59401   return 0;
59402 }
59403 _ACEOF
59404 rm -f conftest.$ac_objext conftest$ac_exeext
59405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59406   (eval $ac_link) 2>conftest.er1
59407   ac_status=$?
59408   grep -v '^ *+' conftest.er1 >conftest.err
59409   rm -f conftest.er1
59410   cat conftest.err >&5
59411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59412   (exit $ac_status); } &&
59413          { ac_try='test -z "$ac_c_werror_flag"
59414                          || test ! -s conftest.err'
59415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59416   (eval $ac_try) 2>&5
59417   ac_status=$?
59418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59419   (exit $ac_status); }; } &&
59420          { ac_try='test -s conftest$ac_exeext'
59421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59422   (eval $ac_try) 2>&5
59423   ac_status=$?
59424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59425   (exit $ac_status); }; }; then
59426   eval "$as_ac_var=yes"
59427 else
59428   echo "$as_me: failed program was:" >&5
59429 sed 's/^/| /' conftest.$ac_ext >&5
59430
59431 eval "$as_ac_var=no"
59432 fi
59433 rm -f conftest.err conftest.$ac_objext \
59434       conftest$ac_exeext conftest.$ac_ext
59435 fi
59436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59438 if test `eval echo '${'$as_ac_var'}'` = yes; then
59439   cat >>confdefs.h <<_ACEOF
59440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59441 _ACEOF
59442
59443 else
59444   ac_wfuncs=no
59445 fi
59446 done
59447
59448
59449     # Checks for names injected into std:: by the c_std headers.
59450
59451
59452
59453
59454
59455
59456
59457
59458
59459
59460
59461
59462
59463
59464
59465
59466
59467
59468
59469
59470
59471
59472
59473
59474
59475
59476
59477
59478
59479
59480
59481
59482
59483
59484
59485
59486
59487
59488
59489
59490
59491
59492
59493
59494
59495
59496 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
59497     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
59498     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
59499     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
59500     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
59501     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
59502 do
59503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59504 echo "$as_me:$LINENO: checking for $ac_func" >&5
59505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59506 if eval "test \"\${$as_ac_var+set}\" = set"; then
59507   echo $ECHO_N "(cached) $ECHO_C" >&6
59508 else
59509   if test x$gcc_no_link = xyes; then
59510   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59512    { (exit 1); exit 1; }; }
59513 fi
59514 cat >conftest.$ac_ext <<_ACEOF
59515 /* confdefs.h.  */
59516 _ACEOF
59517 cat confdefs.h >>conftest.$ac_ext
59518 cat >>conftest.$ac_ext <<_ACEOF
59519 /* end confdefs.h.  */
59520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59522 #define $ac_func innocuous_$ac_func
59523
59524 /* System header to define __stub macros and hopefully few prototypes,
59525     which can conflict with char $ac_func (); below.
59526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59527     <limits.h> exists even on freestanding compilers.  */
59528
59529 #ifdef __STDC__
59530 # include <limits.h>
59531 #else
59532 # include <assert.h>
59533 #endif
59534
59535 #undef $ac_func
59536
59537 /* Override any gcc2 internal prototype to avoid an error.  */
59538 #ifdef __cplusplus
59539 extern "C"
59540 {
59541 #endif
59542 /* We use char because int might match the return type of a gcc2
59543    builtin and then its argument prototype would still apply.  */
59544 char $ac_func ();
59545 /* The GNU C library defines this for functions which it implements
59546     to always fail with ENOSYS.  Some functions are actually named
59547     something starting with __ and the normal name is an alias.  */
59548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59549 choke me
59550 #else
59551 char (*f) () = $ac_func;
59552 #endif
59553 #ifdef __cplusplus
59554 }
59555 #endif
59556
59557 int
59558 main ()
59559 {
59560 return f != $ac_func;
59561   ;
59562   return 0;
59563 }
59564 _ACEOF
59565 rm -f conftest.$ac_objext conftest$ac_exeext
59566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59567   (eval $ac_link) 2>conftest.er1
59568   ac_status=$?
59569   grep -v '^ *+' conftest.er1 >conftest.err
59570   rm -f conftest.er1
59571   cat conftest.err >&5
59572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59573   (exit $ac_status); } &&
59574          { ac_try='test -z "$ac_c_werror_flag"
59575                          || test ! -s conftest.err'
59576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59577   (eval $ac_try) 2>&5
59578   ac_status=$?
59579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59580   (exit $ac_status); }; } &&
59581          { ac_try='test -s conftest$ac_exeext'
59582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59583   (eval $ac_try) 2>&5
59584   ac_status=$?
59585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59586   (exit $ac_status); }; }; then
59587   eval "$as_ac_var=yes"
59588 else
59589   echo "$as_me: failed program was:" >&5
59590 sed 's/^/| /' conftest.$ac_ext >&5
59591
59592 eval "$as_ac_var=no"
59593 fi
59594 rm -f conftest.err conftest.$ac_objext \
59595       conftest$ac_exeext conftest.$ac_ext
59596 fi
59597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59599 if test `eval echo '${'$as_ac_var'}'` = yes; then
59600   cat >>confdefs.h <<_ACEOF
59601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59602 _ACEOF
59603
59604 else
59605   ac_wfuncs=no
59606 fi
59607 done
59608
59609
59610     # Checks for wide character functions that are not required
59611     # for basic wchar_t support.  Don't disable support if they are missing.
59612     # Injection of these is wrapped with guard macros.
59613
59614
59615
59616
59617
59618 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
59619 do
59620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59621 echo "$as_me:$LINENO: checking for $ac_func" >&5
59622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59623 if eval "test \"\${$as_ac_var+set}\" = set"; then
59624   echo $ECHO_N "(cached) $ECHO_C" >&6
59625 else
59626   if test x$gcc_no_link = xyes; then
59627   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59628 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59629    { (exit 1); exit 1; }; }
59630 fi
59631 cat >conftest.$ac_ext <<_ACEOF
59632 /* confdefs.h.  */
59633 _ACEOF
59634 cat confdefs.h >>conftest.$ac_ext
59635 cat >>conftest.$ac_ext <<_ACEOF
59636 /* end confdefs.h.  */
59637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59639 #define $ac_func innocuous_$ac_func
59640
59641 /* System header to define __stub macros and hopefully few prototypes,
59642     which can conflict with char $ac_func (); below.
59643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59644     <limits.h> exists even on freestanding compilers.  */
59645
59646 #ifdef __STDC__
59647 # include <limits.h>
59648 #else
59649 # include <assert.h>
59650 #endif
59651
59652 #undef $ac_func
59653
59654 /* Override any gcc2 internal prototype to avoid an error.  */
59655 #ifdef __cplusplus
59656 extern "C"
59657 {
59658 #endif
59659 /* We use char because int might match the return type of a gcc2
59660    builtin and then its argument prototype would still apply.  */
59661 char $ac_func ();
59662 /* The GNU C library defines this for functions which it implements
59663     to always fail with ENOSYS.  Some functions are actually named
59664     something starting with __ and the normal name is an alias.  */
59665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59666 choke me
59667 #else
59668 char (*f) () = $ac_func;
59669 #endif
59670 #ifdef __cplusplus
59671 }
59672 #endif
59673
59674 int
59675 main ()
59676 {
59677 return f != $ac_func;
59678   ;
59679   return 0;
59680 }
59681 _ACEOF
59682 rm -f conftest.$ac_objext conftest$ac_exeext
59683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59684   (eval $ac_link) 2>conftest.er1
59685   ac_status=$?
59686   grep -v '^ *+' conftest.er1 >conftest.err
59687   rm -f conftest.er1
59688   cat conftest.err >&5
59689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59690   (exit $ac_status); } &&
59691          { ac_try='test -z "$ac_c_werror_flag"
59692                          || test ! -s conftest.err'
59693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59694   (eval $ac_try) 2>&5
59695   ac_status=$?
59696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59697   (exit $ac_status); }; } &&
59698          { ac_try='test -s conftest$ac_exeext'
59699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59700   (eval $ac_try) 2>&5
59701   ac_status=$?
59702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59703   (exit $ac_status); }; }; then
59704   eval "$as_ac_var=yes"
59705 else
59706   echo "$as_me: failed program was:" >&5
59707 sed 's/^/| /' conftest.$ac_ext >&5
59708
59709 eval "$as_ac_var=no"
59710 fi
59711 rm -f conftest.err conftest.$ac_objext \
59712       conftest$ac_exeext conftest.$ac_ext
59713 fi
59714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59716 if test `eval echo '${'$as_ac_var'}'` = yes; then
59717   cat >>confdefs.h <<_ACEOF
59718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59719 _ACEOF
59720
59721 fi
59722 done
59723
59724
59725     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
59726 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
59727     if test x"$has_weof" = xyes &&
59728        test x"$has_wchar_minmax" = xyes &&
59729        test x"$ac_wfuncs" = xyes;
59730     then
59731       ac_isoC99_wchar_t=yes
59732     else
59733       ac_isoC99_wchar_t=no
59734     fi
59735     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
59736 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
59737
59738     # Use iconv for wchar_t to char conversions. As such, check for
59739     # X/Open Portability Guide, version 2 features (XPG2).
59740     if test "${ac_cv_header_iconv_h+set}" = set; then
59741   echo "$as_me:$LINENO: checking for iconv.h" >&5
59742 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59743 if test "${ac_cv_header_iconv_h+set}" = set; then
59744   echo $ECHO_N "(cached) $ECHO_C" >&6
59745 fi
59746 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59747 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59748 else
59749   # Is the header compilable?
59750 echo "$as_me:$LINENO: checking iconv.h usability" >&5
59751 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
59752 cat >conftest.$ac_ext <<_ACEOF
59753 /* confdefs.h.  */
59754 _ACEOF
59755 cat confdefs.h >>conftest.$ac_ext
59756 cat >>conftest.$ac_ext <<_ACEOF
59757 /* end confdefs.h.  */
59758 $ac_includes_default
59759 #include <iconv.h>
59760 _ACEOF
59761 rm -f conftest.$ac_objext
59762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59763   (eval $ac_compile) 2>conftest.er1
59764   ac_status=$?
59765   grep -v '^ *+' conftest.er1 >conftest.err
59766   rm -f conftest.er1
59767   cat conftest.err >&5
59768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59769   (exit $ac_status); } &&
59770          { ac_try='test -z "$ac_c_werror_flag"
59771                          || test ! -s conftest.err'
59772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59773   (eval $ac_try) 2>&5
59774   ac_status=$?
59775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59776   (exit $ac_status); }; } &&
59777          { ac_try='test -s conftest.$ac_objext'
59778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59779   (eval $ac_try) 2>&5
59780   ac_status=$?
59781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59782   (exit $ac_status); }; }; then
59783   ac_header_compiler=yes
59784 else
59785   echo "$as_me: failed program was:" >&5
59786 sed 's/^/| /' conftest.$ac_ext >&5
59787
59788 ac_header_compiler=no
59789 fi
59790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59792 echo "${ECHO_T}$ac_header_compiler" >&6
59793
59794 # Is the header present?
59795 echo "$as_me:$LINENO: checking iconv.h presence" >&5
59796 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
59797 cat >conftest.$ac_ext <<_ACEOF
59798 /* confdefs.h.  */
59799 _ACEOF
59800 cat confdefs.h >>conftest.$ac_ext
59801 cat >>conftest.$ac_ext <<_ACEOF
59802 /* end confdefs.h.  */
59803 #include <iconv.h>
59804 _ACEOF
59805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59807   ac_status=$?
59808   grep -v '^ *+' conftest.er1 >conftest.err
59809   rm -f conftest.er1
59810   cat conftest.err >&5
59811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59812   (exit $ac_status); } >/dev/null; then
59813   if test -s conftest.err; then
59814     ac_cpp_err=$ac_c_preproc_warn_flag
59815     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59816   else
59817     ac_cpp_err=
59818   fi
59819 else
59820   ac_cpp_err=yes
59821 fi
59822 if test -z "$ac_cpp_err"; then
59823   ac_header_preproc=yes
59824 else
59825   echo "$as_me: failed program was:" >&5
59826 sed 's/^/| /' conftest.$ac_ext >&5
59827
59828   ac_header_preproc=no
59829 fi
59830 rm -f conftest.err conftest.$ac_ext
59831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59832 echo "${ECHO_T}$ac_header_preproc" >&6
59833
59834 # So?  What about this header?
59835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59836   yes:no: )
59837     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
59838 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59839     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
59840 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
59841     ac_header_preproc=yes
59842     ;;
59843   no:yes:* )
59844     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
59845 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
59846     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
59847 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
59848     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
59849 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
59850     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
59851 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
59852     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
59853 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
59854     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
59855 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
59856     (
59857       cat <<\_ASBOX
59858 ## ----------------------------------------- ##
59859 ## Report this to the package-unused lists.  ##
59860 ## ----------------------------------------- ##
59861 _ASBOX
59862     ) |
59863       sed "s/^/$as_me: WARNING:     /" >&2
59864     ;;
59865 esac
59866 echo "$as_me:$LINENO: checking for iconv.h" >&5
59867 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59868 if test "${ac_cv_header_iconv_h+set}" = set; then
59869   echo $ECHO_N "(cached) $ECHO_C" >&6
59870 else
59871   ac_cv_header_iconv_h=$ac_header_preproc
59872 fi
59873 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59874 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59875
59876 fi
59877 if test $ac_cv_header_iconv_h = yes; then
59878   ac_has_iconv_h=yes
59879 else
59880   ac_has_iconv_h=no
59881 fi
59882
59883
59884     if test "${ac_cv_header_langinfo_h+set}" = set; then
59885   echo "$as_me:$LINENO: checking for langinfo.h" >&5
59886 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59887 if test "${ac_cv_header_langinfo_h+set}" = set; then
59888   echo $ECHO_N "(cached) $ECHO_C" >&6
59889 fi
59890 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59891 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59892 else
59893   # Is the header compilable?
59894 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
59895 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
59896 cat >conftest.$ac_ext <<_ACEOF
59897 /* confdefs.h.  */
59898 _ACEOF
59899 cat confdefs.h >>conftest.$ac_ext
59900 cat >>conftest.$ac_ext <<_ACEOF
59901 /* end confdefs.h.  */
59902 $ac_includes_default
59903 #include <langinfo.h>
59904 _ACEOF
59905 rm -f conftest.$ac_objext
59906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59907   (eval $ac_compile) 2>conftest.er1
59908   ac_status=$?
59909   grep -v '^ *+' conftest.er1 >conftest.err
59910   rm -f conftest.er1
59911   cat conftest.err >&5
59912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59913   (exit $ac_status); } &&
59914          { ac_try='test -z "$ac_c_werror_flag"
59915                          || test ! -s conftest.err'
59916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59917   (eval $ac_try) 2>&5
59918   ac_status=$?
59919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59920   (exit $ac_status); }; } &&
59921          { ac_try='test -s conftest.$ac_objext'
59922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59923   (eval $ac_try) 2>&5
59924   ac_status=$?
59925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59926   (exit $ac_status); }; }; then
59927   ac_header_compiler=yes
59928 else
59929   echo "$as_me: failed program was:" >&5
59930 sed 's/^/| /' conftest.$ac_ext >&5
59931
59932 ac_header_compiler=no
59933 fi
59934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59936 echo "${ECHO_T}$ac_header_compiler" >&6
59937
59938 # Is the header present?
59939 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
59940 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
59941 cat >conftest.$ac_ext <<_ACEOF
59942 /* confdefs.h.  */
59943 _ACEOF
59944 cat confdefs.h >>conftest.$ac_ext
59945 cat >>conftest.$ac_ext <<_ACEOF
59946 /* end confdefs.h.  */
59947 #include <langinfo.h>
59948 _ACEOF
59949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59951   ac_status=$?
59952   grep -v '^ *+' conftest.er1 >conftest.err
59953   rm -f conftest.er1
59954   cat conftest.err >&5
59955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59956   (exit $ac_status); } >/dev/null; then
59957   if test -s conftest.err; then
59958     ac_cpp_err=$ac_c_preproc_warn_flag
59959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59960   else
59961     ac_cpp_err=
59962   fi
59963 else
59964   ac_cpp_err=yes
59965 fi
59966 if test -z "$ac_cpp_err"; then
59967   ac_header_preproc=yes
59968 else
59969   echo "$as_me: failed program was:" >&5
59970 sed 's/^/| /' conftest.$ac_ext >&5
59971
59972   ac_header_preproc=no
59973 fi
59974 rm -f conftest.err conftest.$ac_ext
59975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59976 echo "${ECHO_T}$ac_header_preproc" >&6
59977
59978 # So?  What about this header?
59979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59980   yes:no: )
59981     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
59982 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59983     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
59984 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
59985     ac_header_preproc=yes
59986     ;;
59987   no:yes:* )
59988     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
59989 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
59990     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
59991 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
59992     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
59993 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
59994     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
59995 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
59996     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
59997 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
59998     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
59999 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
60000     (
60001       cat <<\_ASBOX
60002 ## ----------------------------------------- ##
60003 ## Report this to the package-unused lists.  ##
60004 ## ----------------------------------------- ##
60005 _ASBOX
60006     ) |
60007       sed "s/^/$as_me: WARNING:     /" >&2
60008     ;;
60009 esac
60010 echo "$as_me:$LINENO: checking for langinfo.h" >&5
60011 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60012 if test "${ac_cv_header_langinfo_h+set}" = set; then
60013   echo $ECHO_N "(cached) $ECHO_C" >&6
60014 else
60015   ac_cv_header_langinfo_h=$ac_header_preproc
60016 fi
60017 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60018 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60019
60020 fi
60021 if test $ac_cv_header_langinfo_h = yes; then
60022   ac_has_langinfo_h=yes
60023 else
60024   ac_has_langinfo_h=no
60025 fi
60026
60027
60028
60029     # Check for existence of libiconv.a providing XPG2 wchar_t support.
60030     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
60031 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
60032 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
60033   echo $ECHO_N "(cached) $ECHO_C" >&6
60034 else
60035   ac_check_lib_save_LIBS=$LIBS
60036 LIBS="-liconv  $LIBS"
60037 if test x$gcc_no_link = xyes; then
60038   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60040    { (exit 1); exit 1; }; }
60041 fi
60042 cat >conftest.$ac_ext <<_ACEOF
60043 /* confdefs.h.  */
60044 _ACEOF
60045 cat confdefs.h >>conftest.$ac_ext
60046 cat >>conftest.$ac_ext <<_ACEOF
60047 /* end confdefs.h.  */
60048
60049 /* Override any gcc2 internal prototype to avoid an error.  */
60050 #ifdef __cplusplus
60051 extern "C"
60052 #endif
60053 /* We use char because int might match the return type of a gcc2
60054    builtin and then its argument prototype would still apply.  */
60055 char iconv ();
60056 int
60057 main ()
60058 {
60059 iconv ();
60060   ;
60061   return 0;
60062 }
60063 _ACEOF
60064 rm -f conftest.$ac_objext conftest$ac_exeext
60065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60066   (eval $ac_link) 2>conftest.er1
60067   ac_status=$?
60068   grep -v '^ *+' conftest.er1 >conftest.err
60069   rm -f conftest.er1
60070   cat conftest.err >&5
60071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60072   (exit $ac_status); } &&
60073          { ac_try='test -z "$ac_c_werror_flag"
60074                          || test ! -s conftest.err'
60075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60076   (eval $ac_try) 2>&5
60077   ac_status=$?
60078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60079   (exit $ac_status); }; } &&
60080          { ac_try='test -s conftest$ac_exeext'
60081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60082   (eval $ac_try) 2>&5
60083   ac_status=$?
60084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60085   (exit $ac_status); }; }; then
60086   ac_cv_lib_iconv_iconv=yes
60087 else
60088   echo "$as_me: failed program was:" >&5
60089 sed 's/^/| /' conftest.$ac_ext >&5
60090
60091 ac_cv_lib_iconv_iconv=no
60092 fi
60093 rm -f conftest.err conftest.$ac_objext \
60094       conftest$ac_exeext conftest.$ac_ext
60095 LIBS=$ac_check_lib_save_LIBS
60096 fi
60097 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
60098 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
60099 if test $ac_cv_lib_iconv_iconv = yes; then
60100   libiconv="-liconv"
60101 fi
60102
60103     ac_save_LIBS="$LIBS"
60104     LIBS="$LIBS $libiconv"
60105
60106
60107
60108
60109
60110 for ac_func in iconv_open iconv_close iconv nl_langinfo
60111 do
60112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60113 echo "$as_me:$LINENO: checking for $ac_func" >&5
60114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60115 if eval "test \"\${$as_ac_var+set}\" = set"; then
60116   echo $ECHO_N "(cached) $ECHO_C" >&6
60117 else
60118   if test x$gcc_no_link = xyes; then
60119   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60121    { (exit 1); exit 1; }; }
60122 fi
60123 cat >conftest.$ac_ext <<_ACEOF
60124 /* confdefs.h.  */
60125 _ACEOF
60126 cat confdefs.h >>conftest.$ac_ext
60127 cat >>conftest.$ac_ext <<_ACEOF
60128 /* end confdefs.h.  */
60129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60131 #define $ac_func innocuous_$ac_func
60132
60133 /* System header to define __stub macros and hopefully few prototypes,
60134     which can conflict with char $ac_func (); below.
60135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60136     <limits.h> exists even on freestanding compilers.  */
60137
60138 #ifdef __STDC__
60139 # include <limits.h>
60140 #else
60141 # include <assert.h>
60142 #endif
60143
60144 #undef $ac_func
60145
60146 /* Override any gcc2 internal prototype to avoid an error.  */
60147 #ifdef __cplusplus
60148 extern "C"
60149 {
60150 #endif
60151 /* We use char because int might match the return type of a gcc2
60152    builtin and then its argument prototype would still apply.  */
60153 char $ac_func ();
60154 /* The GNU C library defines this for functions which it implements
60155     to always fail with ENOSYS.  Some functions are actually named
60156     something starting with __ and the normal name is an alias.  */
60157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60158 choke me
60159 #else
60160 char (*f) () = $ac_func;
60161 #endif
60162 #ifdef __cplusplus
60163 }
60164 #endif
60165
60166 int
60167 main ()
60168 {
60169 return f != $ac_func;
60170   ;
60171   return 0;
60172 }
60173 _ACEOF
60174 rm -f conftest.$ac_objext conftest$ac_exeext
60175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60176   (eval $ac_link) 2>conftest.er1
60177   ac_status=$?
60178   grep -v '^ *+' conftest.er1 >conftest.err
60179   rm -f conftest.er1
60180   cat conftest.err >&5
60181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60182   (exit $ac_status); } &&
60183          { ac_try='test -z "$ac_c_werror_flag"
60184                          || test ! -s conftest.err'
60185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60186   (eval $ac_try) 2>&5
60187   ac_status=$?
60188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60189   (exit $ac_status); }; } &&
60190          { ac_try='test -s conftest$ac_exeext'
60191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60192   (eval $ac_try) 2>&5
60193   ac_status=$?
60194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60195   (exit $ac_status); }; }; then
60196   eval "$as_ac_var=yes"
60197 else
60198   echo "$as_me: failed program was:" >&5
60199 sed 's/^/| /' conftest.$ac_ext >&5
60200
60201 eval "$as_ac_var=no"
60202 fi
60203 rm -f conftest.err conftest.$ac_objext \
60204       conftest$ac_exeext conftest.$ac_ext
60205 fi
60206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60208 if test `eval echo '${'$as_ac_var'}'` = yes; then
60209   cat >>confdefs.h <<_ACEOF
60210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60211 _ACEOF
60212  ac_XPG2funcs=yes
60213 else
60214   ac_XPG2funcs=no
60215 fi
60216 done
60217
60218
60219     LIBS="$ac_save_LIBS"
60220
60221     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
60222 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
60223     if test x"$ac_has_iconv_h" = xyes &&
60224        test x"$ac_has_langinfo_h" = xyes &&
60225        test x"$ac_XPG2funcs" = xyes;
60226     then
60227       ac_XPG2_wchar_t=yes
60228     else
60229       ac_XPG2_wchar_t=no
60230     fi
60231     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
60232 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
60233
60234     # At the moment, only enable wchar_t specializations if all the
60235     # above support is present.
60236     if test x"$ac_isoC99_wchar_t" = xyes &&
60237        test x"$ac_XPG2_wchar_t" = xyes;
60238     then
60239       cat >>confdefs.h <<\_ACEOF
60240 #define _GLIBCXX_USE_WCHAR_T 1
60241 _ACEOF
60242
60243       enable_wchar_t=yes
60244     fi
60245   fi
60246   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
60247 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
60248   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
60249 echo "${ECHO_T}$enable_wchar_t" >&6
60250
60251
60252     # For LFS.
60253     cat >>confdefs.h <<\_ACEOF
60254 #define HAVE_INT64_T 1
60255 _ACEOF
60256
60257     case "$target" in
60258       *-uclinux*)
60259         # Don't enable LFS with uClibc
60260         ;;
60261       *)
60262         cat >>confdefs.h <<\_ACEOF
60263 #define _GLIBCXX_USE_LFS 1
60264 _ACEOF
60265
60266     esac
60267
60268     # For showmanyc_helper().
60269
60270
60271 for ac_header in sys/ioctl.h sys/filio.h
60272 do
60273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60275   echo "$as_me:$LINENO: checking for $ac_header" >&5
60276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60278   echo $ECHO_N "(cached) $ECHO_C" >&6
60279 fi
60280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60282 else
60283   # Is the header compilable?
60284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60286 cat >conftest.$ac_ext <<_ACEOF
60287 /* confdefs.h.  */
60288 _ACEOF
60289 cat confdefs.h >>conftest.$ac_ext
60290 cat >>conftest.$ac_ext <<_ACEOF
60291 /* end confdefs.h.  */
60292 $ac_includes_default
60293 #include <$ac_header>
60294 _ACEOF
60295 rm -f conftest.$ac_objext
60296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60297   (eval $ac_compile) 2>conftest.er1
60298   ac_status=$?
60299   grep -v '^ *+' conftest.er1 >conftest.err
60300   rm -f conftest.er1
60301   cat conftest.err >&5
60302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60303   (exit $ac_status); } &&
60304          { ac_try='test -z "$ac_c_werror_flag"
60305                          || test ! -s conftest.err'
60306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60307   (eval $ac_try) 2>&5
60308   ac_status=$?
60309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60310   (exit $ac_status); }; } &&
60311          { ac_try='test -s conftest.$ac_objext'
60312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60313   (eval $ac_try) 2>&5
60314   ac_status=$?
60315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60316   (exit $ac_status); }; }; then
60317   ac_header_compiler=yes
60318 else
60319   echo "$as_me: failed program was:" >&5
60320 sed 's/^/| /' conftest.$ac_ext >&5
60321
60322 ac_header_compiler=no
60323 fi
60324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60326 echo "${ECHO_T}$ac_header_compiler" >&6
60327
60328 # Is the header present?
60329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60331 cat >conftest.$ac_ext <<_ACEOF
60332 /* confdefs.h.  */
60333 _ACEOF
60334 cat confdefs.h >>conftest.$ac_ext
60335 cat >>conftest.$ac_ext <<_ACEOF
60336 /* end confdefs.h.  */
60337 #include <$ac_header>
60338 _ACEOF
60339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60340   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60341   ac_status=$?
60342   grep -v '^ *+' conftest.er1 >conftest.err
60343   rm -f conftest.er1
60344   cat conftest.err >&5
60345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60346   (exit $ac_status); } >/dev/null; then
60347   if test -s conftest.err; then
60348     ac_cpp_err=$ac_c_preproc_warn_flag
60349     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60350   else
60351     ac_cpp_err=
60352   fi
60353 else
60354   ac_cpp_err=yes
60355 fi
60356 if test -z "$ac_cpp_err"; then
60357   ac_header_preproc=yes
60358 else
60359   echo "$as_me: failed program was:" >&5
60360 sed 's/^/| /' conftest.$ac_ext >&5
60361
60362   ac_header_preproc=no
60363 fi
60364 rm -f conftest.err conftest.$ac_ext
60365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60366 echo "${ECHO_T}$ac_header_preproc" >&6
60367
60368 # So?  What about this header?
60369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60370   yes:no: )
60371     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60375     ac_header_preproc=yes
60376     ;;
60377   no:yes:* )
60378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60380     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
60381 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
60382     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60384     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
60385 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
60386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60388     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60390     (
60391       cat <<\_ASBOX
60392 ## ----------------------------------------- ##
60393 ## Report this to the package-unused lists.  ##
60394 ## ----------------------------------------- ##
60395 _ASBOX
60396     ) |
60397       sed "s/^/$as_me: WARNING:     /" >&2
60398     ;;
60399 esac
60400 echo "$as_me:$LINENO: checking for $ac_header" >&5
60401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60403   echo $ECHO_N "(cached) $ECHO_C" >&6
60404 else
60405   eval "$as_ac_Header=\$ac_header_preproc"
60406 fi
60407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60409
60410 fi
60411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60412   cat >>confdefs.h <<_ACEOF
60413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60414 _ACEOF
60415
60416 fi
60417
60418 done
60419
60420
60421   if test "${glibcxx_cv_POLL+set}" = set; then
60422   echo $ECHO_N "(cached) $ECHO_C" >&6
60423 else
60424
60425     if test x$gcc_no_link = xyes; then
60426   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60427 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60428    { (exit 1); exit 1; }; }
60429 fi
60430 cat >conftest.$ac_ext <<_ACEOF
60431 /* confdefs.h.  */
60432 _ACEOF
60433 cat confdefs.h >>conftest.$ac_ext
60434 cat >>conftest.$ac_ext <<_ACEOF
60435 /* end confdefs.h.  */
60436 #include <poll.h>
60437 int
60438 main ()
60439 {
60440 struct pollfd pfd[1];
60441        pfd[0].events = POLLIN;
60442        poll(pfd, 1, 0);
60443   ;
60444   return 0;
60445 }
60446 _ACEOF
60447 rm -f conftest.$ac_objext conftest$ac_exeext
60448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60449   (eval $ac_link) 2>conftest.er1
60450   ac_status=$?
60451   grep -v '^ *+' conftest.er1 >conftest.err
60452   rm -f conftest.er1
60453   cat conftest.err >&5
60454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60455   (exit $ac_status); } &&
60456          { ac_try='test -z "$ac_c_werror_flag"
60457                          || test ! -s conftest.err'
60458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60459   (eval $ac_try) 2>&5
60460   ac_status=$?
60461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60462   (exit $ac_status); }; } &&
60463          { ac_try='test -s conftest$ac_exeext'
60464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60465   (eval $ac_try) 2>&5
60466   ac_status=$?
60467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60468   (exit $ac_status); }; }; then
60469   glibcxx_cv_POLL=yes
60470 else
60471   echo "$as_me: failed program was:" >&5
60472 sed 's/^/| /' conftest.$ac_ext >&5
60473
60474 glibcxx_cv_POLL=no
60475 fi
60476 rm -f conftest.err conftest.$ac_objext \
60477       conftest$ac_exeext conftest.$ac_ext
60478
60479 fi
60480
60481   if test $glibcxx_cv_POLL = yes; then
60482     cat >>confdefs.h <<\_ACEOF
60483 #define HAVE_POLL 1
60484 _ACEOF
60485
60486   fi
60487
60488
60489   if test "${glibcxx_cv_S_ISREG+set}" = set; then
60490   echo $ECHO_N "(cached) $ECHO_C" >&6
60491 else
60492
60493     if test x$gcc_no_link = xyes; then
60494   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60495 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60496    { (exit 1); exit 1; }; }
60497 fi
60498 cat >conftest.$ac_ext <<_ACEOF
60499 /* confdefs.h.  */
60500 _ACEOF
60501 cat confdefs.h >>conftest.$ac_ext
60502 cat >>conftest.$ac_ext <<_ACEOF
60503 /* end confdefs.h.  */
60504 #include <sys/stat.h>
60505 int
60506 main ()
60507 {
60508 struct stat buffer;
60509        fstat(0, &buffer);
60510        S_ISREG(buffer.st_mode);
60511   ;
60512   return 0;
60513 }
60514 _ACEOF
60515 rm -f conftest.$ac_objext conftest$ac_exeext
60516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60517   (eval $ac_link) 2>conftest.er1
60518   ac_status=$?
60519   grep -v '^ *+' conftest.er1 >conftest.err
60520   rm -f conftest.er1
60521   cat conftest.err >&5
60522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60523   (exit $ac_status); } &&
60524          { ac_try='test -z "$ac_c_werror_flag"
60525                          || test ! -s conftest.err'
60526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60527   (eval $ac_try) 2>&5
60528   ac_status=$?
60529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60530   (exit $ac_status); }; } &&
60531          { ac_try='test -s conftest$ac_exeext'
60532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60533   (eval $ac_try) 2>&5
60534   ac_status=$?
60535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60536   (exit $ac_status); }; }; then
60537   glibcxx_cv_S_ISREG=yes
60538 else
60539   echo "$as_me: failed program was:" >&5
60540 sed 's/^/| /' conftest.$ac_ext >&5
60541
60542 glibcxx_cv_S_ISREG=no
60543 fi
60544 rm -f conftest.err conftest.$ac_objext \
60545       conftest$ac_exeext conftest.$ac_ext
60546
60547 fi
60548
60549   if test "${glibcxx_cv_S_IFREG+set}" = set; then
60550   echo $ECHO_N "(cached) $ECHO_C" >&6
60551 else
60552
60553     if test x$gcc_no_link = xyes; then
60554   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60556    { (exit 1); exit 1; }; }
60557 fi
60558 cat >conftest.$ac_ext <<_ACEOF
60559 /* confdefs.h.  */
60560 _ACEOF
60561 cat confdefs.h >>conftest.$ac_ext
60562 cat >>conftest.$ac_ext <<_ACEOF
60563 /* end confdefs.h.  */
60564 #include <sys/stat.h>
60565 int
60566 main ()
60567 {
60568 struct stat buffer;
60569        fstat(0, &buffer);
60570        S_IFREG & buffer.st_mode;
60571   ;
60572   return 0;
60573 }
60574 _ACEOF
60575 rm -f conftest.$ac_objext conftest$ac_exeext
60576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60577   (eval $ac_link) 2>conftest.er1
60578   ac_status=$?
60579   grep -v '^ *+' conftest.er1 >conftest.err
60580   rm -f conftest.er1
60581   cat conftest.err >&5
60582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60583   (exit $ac_status); } &&
60584          { ac_try='test -z "$ac_c_werror_flag"
60585                          || test ! -s conftest.err'
60586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60587   (eval $ac_try) 2>&5
60588   ac_status=$?
60589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60590   (exit $ac_status); }; } &&
60591          { ac_try='test -s conftest$ac_exeext'
60592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60593   (eval $ac_try) 2>&5
60594   ac_status=$?
60595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60596   (exit $ac_status); }; }; then
60597   glibcxx_cv_S_IFREG=yes
60598 else
60599   echo "$as_me: failed program was:" >&5
60600 sed 's/^/| /' conftest.$ac_ext >&5
60601
60602 glibcxx_cv_S_IFREG=no
60603 fi
60604 rm -f conftest.err conftest.$ac_objext \
60605       conftest$ac_exeext conftest.$ac_ext
60606
60607 fi
60608
60609   if test $glibcxx_cv_S_ISREG = yes; then
60610     cat >>confdefs.h <<\_ACEOF
60611 #define HAVE_S_ISREG 1
60612 _ACEOF
60613
60614   elif test $glibcxx_cv_S_IFREG = yes; then
60615     cat >>confdefs.h <<\_ACEOF
60616 #define HAVE_S_IFREG 1
60617 _ACEOF
60618
60619   fi
60620
60621
60622     # For xsputn_2().
60623
60624 for ac_header in sys/uio.h
60625 do
60626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60628   echo "$as_me:$LINENO: checking for $ac_header" >&5
60629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60631   echo $ECHO_N "(cached) $ECHO_C" >&6
60632 fi
60633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60635 else
60636   # Is the header compilable?
60637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60639 cat >conftest.$ac_ext <<_ACEOF
60640 /* confdefs.h.  */
60641 _ACEOF
60642 cat confdefs.h >>conftest.$ac_ext
60643 cat >>conftest.$ac_ext <<_ACEOF
60644 /* end confdefs.h.  */
60645 $ac_includes_default
60646 #include <$ac_header>
60647 _ACEOF
60648 rm -f conftest.$ac_objext
60649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60650   (eval $ac_compile) 2>conftest.er1
60651   ac_status=$?
60652   grep -v '^ *+' conftest.er1 >conftest.err
60653   rm -f conftest.er1
60654   cat conftest.err >&5
60655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60656   (exit $ac_status); } &&
60657          { ac_try='test -z "$ac_c_werror_flag"
60658                          || test ! -s conftest.err'
60659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60660   (eval $ac_try) 2>&5
60661   ac_status=$?
60662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60663   (exit $ac_status); }; } &&
60664          { ac_try='test -s conftest.$ac_objext'
60665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60666   (eval $ac_try) 2>&5
60667   ac_status=$?
60668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60669   (exit $ac_status); }; }; then
60670   ac_header_compiler=yes
60671 else
60672   echo "$as_me: failed program was:" >&5
60673 sed 's/^/| /' conftest.$ac_ext >&5
60674
60675 ac_header_compiler=no
60676 fi
60677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60679 echo "${ECHO_T}$ac_header_compiler" >&6
60680
60681 # Is the header present?
60682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60684 cat >conftest.$ac_ext <<_ACEOF
60685 /* confdefs.h.  */
60686 _ACEOF
60687 cat confdefs.h >>conftest.$ac_ext
60688 cat >>conftest.$ac_ext <<_ACEOF
60689 /* end confdefs.h.  */
60690 #include <$ac_header>
60691 _ACEOF
60692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60694   ac_status=$?
60695   grep -v '^ *+' conftest.er1 >conftest.err
60696   rm -f conftest.er1
60697   cat conftest.err >&5
60698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60699   (exit $ac_status); } >/dev/null; then
60700   if test -s conftest.err; then
60701     ac_cpp_err=$ac_c_preproc_warn_flag
60702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60703   else
60704     ac_cpp_err=
60705   fi
60706 else
60707   ac_cpp_err=yes
60708 fi
60709 if test -z "$ac_cpp_err"; then
60710   ac_header_preproc=yes
60711 else
60712   echo "$as_me: failed program was:" >&5
60713 sed 's/^/| /' conftest.$ac_ext >&5
60714
60715   ac_header_preproc=no
60716 fi
60717 rm -f conftest.err conftest.$ac_ext
60718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60719 echo "${ECHO_T}$ac_header_preproc" >&6
60720
60721 # So?  What about this header?
60722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60723   yes:no: )
60724     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60728     ac_header_preproc=yes
60729     ;;
60730   no:yes:* )
60731     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60733     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
60734 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
60735     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60737     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
60738 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
60739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60741     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60743     (
60744       cat <<\_ASBOX
60745 ## ----------------------------------------- ##
60746 ## Report this to the package-unused lists.  ##
60747 ## ----------------------------------------- ##
60748 _ASBOX
60749     ) |
60750       sed "s/^/$as_me: WARNING:     /" >&2
60751     ;;
60752 esac
60753 echo "$as_me:$LINENO: checking for $ac_header" >&5
60754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60756   echo $ECHO_N "(cached) $ECHO_C" >&6
60757 else
60758   eval "$as_ac_Header=\$ac_header_preproc"
60759 fi
60760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60762
60763 fi
60764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60765   cat >>confdefs.h <<_ACEOF
60766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60767 _ACEOF
60768
60769 fi
60770
60771 done
60772
60773
60774   if test "${glibcxx_cv_WRITEV+set}" = set; then
60775   echo $ECHO_N "(cached) $ECHO_C" >&6
60776 else
60777
60778     if test x$gcc_no_link = xyes; then
60779   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60781    { (exit 1); exit 1; }; }
60782 fi
60783 cat >conftest.$ac_ext <<_ACEOF
60784 /* confdefs.h.  */
60785 _ACEOF
60786 cat confdefs.h >>conftest.$ac_ext
60787 cat >>conftest.$ac_ext <<_ACEOF
60788 /* end confdefs.h.  */
60789 #include <sys/uio.h>
60790 int
60791 main ()
60792 {
60793 struct iovec iov[2];
60794        writev(0, iov, 0);
60795   ;
60796   return 0;
60797 }
60798 _ACEOF
60799 rm -f conftest.$ac_objext conftest$ac_exeext
60800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60801   (eval $ac_link) 2>conftest.er1
60802   ac_status=$?
60803   grep -v '^ *+' conftest.er1 >conftest.err
60804   rm -f conftest.er1
60805   cat conftest.err >&5
60806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60807   (exit $ac_status); } &&
60808          { ac_try='test -z "$ac_c_werror_flag"
60809                          || test ! -s conftest.err'
60810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60811   (eval $ac_try) 2>&5
60812   ac_status=$?
60813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60814   (exit $ac_status); }; } &&
60815          { ac_try='test -s conftest$ac_exeext'
60816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60817   (eval $ac_try) 2>&5
60818   ac_status=$?
60819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60820   (exit $ac_status); }; }; then
60821   glibcxx_cv_WRITEV=yes
60822 else
60823   echo "$as_me: failed program was:" >&5
60824 sed 's/^/| /' conftest.$ac_ext >&5
60825
60826 glibcxx_cv_WRITEV=no
60827 fi
60828 rm -f conftest.err conftest.$ac_objext \
60829       conftest$ac_exeext conftest.$ac_ext
60830
60831 fi
60832
60833   if test $glibcxx_cv_WRITEV = yes; then
60834     cat >>confdefs.h <<\_ACEOF
60835 #define HAVE_WRITEV 1
60836 _ACEOF
60837
60838   fi
60839
60840
60841     cat >>confdefs.h <<\_ACEOF
60842 #define HAVE_COPYSIGN 1
60843 _ACEOF
60844
60845     cat >>confdefs.h <<\_ACEOF
60846 #define HAVE_COPYSIGNF 1
60847 _ACEOF
60848
60849     cat >>confdefs.h <<\_ACEOF
60850 #define HAVE_FINITE 1
60851 _ACEOF
60852
60853     cat >>confdefs.h <<\_ACEOF
60854 #define HAVE_FINITEF 1
60855 _ACEOF
60856
60857     cat >>confdefs.h <<\_ACEOF
60858 #define HAVE_FREXPF 1
60859 _ACEOF
60860
60861     cat >>confdefs.h <<\_ACEOF
60862 #define HAVE_HYPOTF 1
60863 _ACEOF
60864
60865     cat >>confdefs.h <<\_ACEOF
60866 #define HAVE_ISINF 1
60867 _ACEOF
60868
60869     cat >>confdefs.h <<\_ACEOF
60870 #define HAVE_ISINFF 1
60871 _ACEOF
60872
60873     cat >>confdefs.h <<\_ACEOF
60874 #define HAVE_ISNAN 1
60875 _ACEOF
60876
60877     cat >>confdefs.h <<\_ACEOF
60878 #define HAVE_ISNANF 1
60879 _ACEOF
60880
60881     cat >>confdefs.h <<\_ACEOF
60882 #define HAVE_SINCOS 1
60883 _ACEOF
60884
60885     cat >>confdefs.h <<\_ACEOF
60886 #define HAVE_SINCOSF 1
60887 _ACEOF
60888
60889     if test x"long_double_math_on_this_cpu" = x"yes"; then
60890       cat >>confdefs.h <<\_ACEOF
60891 #define HAVE_FINITEL 1
60892 _ACEOF
60893
60894       cat >>confdefs.h <<\_ACEOF
60895 #define HAVE_HYPOTL 1
60896 _ACEOF
60897
60898       cat >>confdefs.h <<\_ACEOF
60899 #define HAVE_ISINFL 1
60900 _ACEOF
60901
60902       cat >>confdefs.h <<\_ACEOF
60903 #define HAVE_ISNANL 1
60904 _ACEOF
60905
60906     fi
60907     ;;
60908   *-mingw32*)
60909
60910
60911
60912 for ac_header in sys/types.h locale.h float.h
60913 do
60914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60916   echo "$as_me:$LINENO: checking for $ac_header" >&5
60917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60919   echo $ECHO_N "(cached) $ECHO_C" >&6
60920 fi
60921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60923 else
60924   # Is the header compilable?
60925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60927 cat >conftest.$ac_ext <<_ACEOF
60928 /* confdefs.h.  */
60929 _ACEOF
60930 cat confdefs.h >>conftest.$ac_ext
60931 cat >>conftest.$ac_ext <<_ACEOF
60932 /* end confdefs.h.  */
60933 $ac_includes_default
60934 #include <$ac_header>
60935 _ACEOF
60936 rm -f conftest.$ac_objext
60937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60938   (eval $ac_compile) 2>conftest.er1
60939   ac_status=$?
60940   grep -v '^ *+' conftest.er1 >conftest.err
60941   rm -f conftest.er1
60942   cat conftest.err >&5
60943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60944   (exit $ac_status); } &&
60945          { ac_try='test -z "$ac_c_werror_flag"
60946                          || test ! -s conftest.err'
60947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60948   (eval $ac_try) 2>&5
60949   ac_status=$?
60950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60951   (exit $ac_status); }; } &&
60952          { ac_try='test -s conftest.$ac_objext'
60953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60954   (eval $ac_try) 2>&5
60955   ac_status=$?
60956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60957   (exit $ac_status); }; }; then
60958   ac_header_compiler=yes
60959 else
60960   echo "$as_me: failed program was:" >&5
60961 sed 's/^/| /' conftest.$ac_ext >&5
60962
60963 ac_header_compiler=no
60964 fi
60965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60967 echo "${ECHO_T}$ac_header_compiler" >&6
60968
60969 # Is the header present?
60970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60972 cat >conftest.$ac_ext <<_ACEOF
60973 /* confdefs.h.  */
60974 _ACEOF
60975 cat confdefs.h >>conftest.$ac_ext
60976 cat >>conftest.$ac_ext <<_ACEOF
60977 /* end confdefs.h.  */
60978 #include <$ac_header>
60979 _ACEOF
60980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60982   ac_status=$?
60983   grep -v '^ *+' conftest.er1 >conftest.err
60984   rm -f conftest.er1
60985   cat conftest.err >&5
60986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60987   (exit $ac_status); } >/dev/null; then
60988   if test -s conftest.err; then
60989     ac_cpp_err=$ac_c_preproc_warn_flag
60990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60991   else
60992     ac_cpp_err=
60993   fi
60994 else
60995   ac_cpp_err=yes
60996 fi
60997 if test -z "$ac_cpp_err"; then
60998   ac_header_preproc=yes
60999 else
61000   echo "$as_me: failed program was:" >&5
61001 sed 's/^/| /' conftest.$ac_ext >&5
61002
61003   ac_header_preproc=no
61004 fi
61005 rm -f conftest.err conftest.$ac_ext
61006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61007 echo "${ECHO_T}$ac_header_preproc" >&6
61008
61009 # So?  What about this header?
61010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61011   yes:no: )
61012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61016     ac_header_preproc=yes
61017     ;;
61018   no:yes:* )
61019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
61022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
61023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
61026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
61027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61031     (
61032       cat <<\_ASBOX
61033 ## ----------------------------------------- ##
61034 ## Report this to the package-unused lists.  ##
61035 ## ----------------------------------------- ##
61036 _ASBOX
61037     ) |
61038       sed "s/^/$as_me: WARNING:     /" >&2
61039     ;;
61040 esac
61041 echo "$as_me:$LINENO: checking for $ac_header" >&5
61042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61044   echo $ECHO_N "(cached) $ECHO_C" >&6
61045 else
61046   eval "$as_ac_Header=\$ac_header_preproc"
61047 fi
61048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61050
61051 fi
61052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61053   cat >>confdefs.h <<_ACEOF
61054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61055 _ACEOF
61056
61057 fi
61058
61059 done
61060
61061
61062   # If we're not using GNU ld, then there's no point in even trying these
61063   # tests.  Check for that first.  We should have already tested for gld
61064   # by now (in libtool), but require it now just to be safe...
61065   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
61066   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
61067
61068
61069
61070   # The name set by libtool depends on the version of libtool.  Shame on us
61071   # for depending on an impl detail, but c'est la vie.  Older versions used
61072   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
61073   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
61074   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
61075   # set (hence we're using an older libtool), then set it.
61076   if test x${with_gnu_ld+set} != xset; then
61077     if test x${ac_cv_prog_gnu_ld+set} != xset; then
61078       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
61079       with_gnu_ld=no
61080     else
61081       with_gnu_ld=$ac_cv_prog_gnu_ld
61082     fi
61083   fi
61084
61085   # Start by getting the version number.  I think the libtool test already
61086   # does some of this, but throws away the result.
61087
61088   ldver=`$LD --version 2>/dev/null | head -1 | \
61089          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
61090
61091   glibcxx_gnu_ld_version=`echo $ldver | \
61092          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
61093
61094   # Set --gc-sections.
61095   if test "$with_gnu_ld" = "notbroken"; then
61096     # GNU ld it is!  Joy and bunny rabbits!
61097
61098     # All these tests are for C++; save the language and the compiler flags.
61099     # Need to do this so that g++ won't try to link in libstdc++
61100     ac_test_CFLAGS="${CFLAGS+set}"
61101     ac_save_CFLAGS="$CFLAGS"
61102     CFLAGS='-x c++  -Wl,--gc-sections'
61103
61104     # Check for -Wl,--gc-sections
61105     # XXX This test is broken at the moment, as symbols required for linking
61106     # are now in libsupc++ (not built yet).  In addition, this test has
61107     # cored on solaris in the past.  In addition, --gc-sections doesn't
61108     # really work at the moment (keeps on discarding used sections, first
61109     # .eh_frame and now some of the glibc sections for iconv).
61110     # Bzzzzt.  Thanks for playing, maybe next time.
61111     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
61112 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
61113     if test "$cross_compiling" = yes; then
61114   ac_sectionLDflags=yes
61115 else
61116   cat >conftest.$ac_ext <<_ACEOF
61117 /* confdefs.h.  */
61118 _ACEOF
61119 cat confdefs.h >>conftest.$ac_ext
61120 cat >>conftest.$ac_ext <<_ACEOF
61121 /* end confdefs.h.  */
61122
61123      int main(void)
61124      {
61125        try { throw 1; }
61126        catch (...) { };
61127        return 0;
61128      }
61129
61130 _ACEOF
61131 rm -f conftest$ac_exeext
61132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61133   (eval $ac_link) 2>&5
61134   ac_status=$?
61135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61138   (eval $ac_try) 2>&5
61139   ac_status=$?
61140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61141   (exit $ac_status); }; }; then
61142   ac_sectionLDflags=yes
61143 else
61144   echo "$as_me: program exited with status $ac_status" >&5
61145 echo "$as_me: failed program was:" >&5
61146 sed 's/^/| /' conftest.$ac_ext >&5
61147
61148 ( exit $ac_status )
61149 ac_sectionLDflags=no
61150 fi
61151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61152 fi
61153     if test "$ac_test_CFLAGS" = set; then
61154       CFLAGS="$ac_save_CFLAGS"
61155     else
61156       # this is the suspicious part
61157       CFLAGS=''
61158     fi
61159     if test "$ac_sectionLDflags" = "yes"; then
61160       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
61161     fi
61162     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
61163 echo "${ECHO_T}$ac_sectionLDflags" >&6
61164   fi
61165
61166   # Set linker optimization flags.
61167   if test x"$with_gnu_ld" = x"yes"; then
61168     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
61169   fi
61170
61171
61172
61173
61174
61175
61176 echo "$as_me:$LINENO: checking for main in -lm" >&5
61177 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
61178 if test "${ac_cv_lib_m_main+set}" = set; then
61179   echo $ECHO_N "(cached) $ECHO_C" >&6
61180 else
61181   ac_check_lib_save_LIBS=$LIBS
61182 LIBS="-lm  $LIBS"
61183 if test x$gcc_no_link = xyes; then
61184   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61185 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61186    { (exit 1); exit 1; }; }
61187 fi
61188 cat >conftest.$ac_ext <<_ACEOF
61189 /* confdefs.h.  */
61190 _ACEOF
61191 cat confdefs.h >>conftest.$ac_ext
61192 cat >>conftest.$ac_ext <<_ACEOF
61193 /* end confdefs.h.  */
61194
61195
61196 int
61197 main ()
61198 {
61199 main ();
61200   ;
61201   return 0;
61202 }
61203 _ACEOF
61204 rm -f conftest.$ac_objext conftest$ac_exeext
61205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61206   (eval $ac_link) 2>conftest.er1
61207   ac_status=$?
61208   grep -v '^ *+' conftest.er1 >conftest.err
61209   rm -f conftest.er1
61210   cat conftest.err >&5
61211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61212   (exit $ac_status); } &&
61213          { ac_try='test -z "$ac_c_werror_flag"
61214                          || test ! -s conftest.err'
61215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61216   (eval $ac_try) 2>&5
61217   ac_status=$?
61218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61219   (exit $ac_status); }; } &&
61220          { ac_try='test -s conftest$ac_exeext'
61221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61222   (eval $ac_try) 2>&5
61223   ac_status=$?
61224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61225   (exit $ac_status); }; }; then
61226   ac_cv_lib_m_main=yes
61227 else
61228   echo "$as_me: failed program was:" >&5
61229 sed 's/^/| /' conftest.$ac_ext >&5
61230
61231 ac_cv_lib_m_main=no
61232 fi
61233 rm -f conftest.err conftest.$ac_objext \
61234       conftest$ac_exeext conftest.$ac_ext
61235 LIBS=$ac_check_lib_save_LIBS
61236 fi
61237 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
61238 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
61239 if test $ac_cv_lib_m_main = yes; then
61240   cat >>confdefs.h <<_ACEOF
61241 #define HAVE_LIBM 1
61242 _ACEOF
61243
61244   LIBS="-lm $LIBS"
61245
61246 fi
61247
61248
61249 for ac_func in copysignf
61250 do
61251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61252 echo "$as_me:$LINENO: checking for $ac_func" >&5
61253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61254 if eval "test \"\${$as_ac_var+set}\" = set"; then
61255   echo $ECHO_N "(cached) $ECHO_C" >&6
61256 else
61257   if test x$gcc_no_link = xyes; then
61258   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61260    { (exit 1); exit 1; }; }
61261 fi
61262 cat >conftest.$ac_ext <<_ACEOF
61263 /* confdefs.h.  */
61264 _ACEOF
61265 cat confdefs.h >>conftest.$ac_ext
61266 cat >>conftest.$ac_ext <<_ACEOF
61267 /* end confdefs.h.  */
61268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61270 #define $ac_func innocuous_$ac_func
61271
61272 /* System header to define __stub macros and hopefully few prototypes,
61273     which can conflict with char $ac_func (); below.
61274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61275     <limits.h> exists even on freestanding compilers.  */
61276
61277 #ifdef __STDC__
61278 # include <limits.h>
61279 #else
61280 # include <assert.h>
61281 #endif
61282
61283 #undef $ac_func
61284
61285 /* Override any gcc2 internal prototype to avoid an error.  */
61286 #ifdef __cplusplus
61287 extern "C"
61288 {
61289 #endif
61290 /* We use char because int might match the return type of a gcc2
61291    builtin and then its argument prototype would still apply.  */
61292 char $ac_func ();
61293 /* The GNU C library defines this for functions which it implements
61294     to always fail with ENOSYS.  Some functions are actually named
61295     something starting with __ and the normal name is an alias.  */
61296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61297 choke me
61298 #else
61299 char (*f) () = $ac_func;
61300 #endif
61301 #ifdef __cplusplus
61302 }
61303 #endif
61304
61305 int
61306 main ()
61307 {
61308 return f != $ac_func;
61309   ;
61310   return 0;
61311 }
61312 _ACEOF
61313 rm -f conftest.$ac_objext conftest$ac_exeext
61314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61315   (eval $ac_link) 2>conftest.er1
61316   ac_status=$?
61317   grep -v '^ *+' conftest.er1 >conftest.err
61318   rm -f conftest.er1
61319   cat conftest.err >&5
61320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61321   (exit $ac_status); } &&
61322          { ac_try='test -z "$ac_c_werror_flag"
61323                          || test ! -s conftest.err'
61324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61325   (eval $ac_try) 2>&5
61326   ac_status=$?
61327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61328   (exit $ac_status); }; } &&
61329          { ac_try='test -s conftest$ac_exeext'
61330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61331   (eval $ac_try) 2>&5
61332   ac_status=$?
61333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61334   (exit $ac_status); }; }; then
61335   eval "$as_ac_var=yes"
61336 else
61337   echo "$as_me: failed program was:" >&5
61338 sed 's/^/| /' conftest.$ac_ext >&5
61339
61340 eval "$as_ac_var=no"
61341 fi
61342 rm -f conftest.err conftest.$ac_objext \
61343       conftest$ac_exeext conftest.$ac_ext
61344 fi
61345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61347 if test `eval echo '${'$as_ac_var'}'` = yes; then
61348   cat >>confdefs.h <<_ACEOF
61349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61350 _ACEOF
61351
61352 else
61353   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
61354 fi
61355 done
61356
61357
61358
61359 for ac_func in __signbit
61360 do
61361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61362 echo "$as_me:$LINENO: checking for $ac_func" >&5
61363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61364 if eval "test \"\${$as_ac_var+set}\" = set"; then
61365   echo $ECHO_N "(cached) $ECHO_C" >&6
61366 else
61367   if test x$gcc_no_link = xyes; then
61368   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61369 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61370    { (exit 1); exit 1; }; }
61371 fi
61372 cat >conftest.$ac_ext <<_ACEOF
61373 /* confdefs.h.  */
61374 _ACEOF
61375 cat confdefs.h >>conftest.$ac_ext
61376 cat >>conftest.$ac_ext <<_ACEOF
61377 /* end confdefs.h.  */
61378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61380 #define $ac_func innocuous_$ac_func
61381
61382 /* System header to define __stub macros and hopefully few prototypes,
61383     which can conflict with char $ac_func (); below.
61384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61385     <limits.h> exists even on freestanding compilers.  */
61386
61387 #ifdef __STDC__
61388 # include <limits.h>
61389 #else
61390 # include <assert.h>
61391 #endif
61392
61393 #undef $ac_func
61394
61395 /* Override any gcc2 internal prototype to avoid an error.  */
61396 #ifdef __cplusplus
61397 extern "C"
61398 {
61399 #endif
61400 /* We use char because int might match the return type of a gcc2
61401    builtin and then its argument prototype would still apply.  */
61402 char $ac_func ();
61403 /* The GNU C library defines this for functions which it implements
61404     to always fail with ENOSYS.  Some functions are actually named
61405     something starting with __ and the normal name is an alias.  */
61406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61407 choke me
61408 #else
61409 char (*f) () = $ac_func;
61410 #endif
61411 #ifdef __cplusplus
61412 }
61413 #endif
61414
61415 int
61416 main ()
61417 {
61418 return f != $ac_func;
61419   ;
61420   return 0;
61421 }
61422 _ACEOF
61423 rm -f conftest.$ac_objext conftest$ac_exeext
61424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61425   (eval $ac_link) 2>conftest.er1
61426   ac_status=$?
61427   grep -v '^ *+' conftest.er1 >conftest.err
61428   rm -f conftest.er1
61429   cat conftest.err >&5
61430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61431   (exit $ac_status); } &&
61432          { ac_try='test -z "$ac_c_werror_flag"
61433                          || test ! -s conftest.err'
61434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61435   (eval $ac_try) 2>&5
61436   ac_status=$?
61437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61438   (exit $ac_status); }; } &&
61439          { ac_try='test -s conftest$ac_exeext'
61440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61441   (eval $ac_try) 2>&5
61442   ac_status=$?
61443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61444   (exit $ac_status); }; }; then
61445   eval "$as_ac_var=yes"
61446 else
61447   echo "$as_me: failed program was:" >&5
61448 sed 's/^/| /' conftest.$ac_ext >&5
61449
61450 eval "$as_ac_var=no"
61451 fi
61452 rm -f conftest.err conftest.$ac_objext \
61453       conftest$ac_exeext conftest.$ac_ext
61454 fi
61455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61457 if test `eval echo '${'$as_ac_var'}'` = yes; then
61458   cat >>confdefs.h <<_ACEOF
61459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61460 _ACEOF
61461
61462 else
61463   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
61464 fi
61465 done
61466
61467
61468 for ac_func in __signbitf
61469 do
61470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61471 echo "$as_me:$LINENO: checking for $ac_func" >&5
61472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61473 if eval "test \"\${$as_ac_var+set}\" = set"; then
61474   echo $ECHO_N "(cached) $ECHO_C" >&6
61475 else
61476   if test x$gcc_no_link = xyes; then
61477   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61479    { (exit 1); exit 1; }; }
61480 fi
61481 cat >conftest.$ac_ext <<_ACEOF
61482 /* confdefs.h.  */
61483 _ACEOF
61484 cat confdefs.h >>conftest.$ac_ext
61485 cat >>conftest.$ac_ext <<_ACEOF
61486 /* end confdefs.h.  */
61487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61489 #define $ac_func innocuous_$ac_func
61490
61491 /* System header to define __stub macros and hopefully few prototypes,
61492     which can conflict with char $ac_func (); below.
61493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61494     <limits.h> exists even on freestanding compilers.  */
61495
61496 #ifdef __STDC__
61497 # include <limits.h>
61498 #else
61499 # include <assert.h>
61500 #endif
61501
61502 #undef $ac_func
61503
61504 /* Override any gcc2 internal prototype to avoid an error.  */
61505 #ifdef __cplusplus
61506 extern "C"
61507 {
61508 #endif
61509 /* We use char because int might match the return type of a gcc2
61510    builtin and then its argument prototype would still apply.  */
61511 char $ac_func ();
61512 /* The GNU C library defines this for functions which it implements
61513     to always fail with ENOSYS.  Some functions are actually named
61514     something starting with __ and the normal name is an alias.  */
61515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61516 choke me
61517 #else
61518 char (*f) () = $ac_func;
61519 #endif
61520 #ifdef __cplusplus
61521 }
61522 #endif
61523
61524 int
61525 main ()
61526 {
61527 return f != $ac_func;
61528   ;
61529   return 0;
61530 }
61531 _ACEOF
61532 rm -f conftest.$ac_objext conftest$ac_exeext
61533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61534   (eval $ac_link) 2>conftest.er1
61535   ac_status=$?
61536   grep -v '^ *+' conftest.er1 >conftest.err
61537   rm -f conftest.er1
61538   cat conftest.err >&5
61539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61540   (exit $ac_status); } &&
61541          { ac_try='test -z "$ac_c_werror_flag"
61542                          || test ! -s conftest.err'
61543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61544   (eval $ac_try) 2>&5
61545   ac_status=$?
61546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61547   (exit $ac_status); }; } &&
61548          { ac_try='test -s conftest$ac_exeext'
61549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61550   (eval $ac_try) 2>&5
61551   ac_status=$?
61552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61553   (exit $ac_status); }; }; then
61554   eval "$as_ac_var=yes"
61555 else
61556   echo "$as_me: failed program was:" >&5
61557 sed 's/^/| /' conftest.$ac_ext >&5
61558
61559 eval "$as_ac_var=no"
61560 fi
61561 rm -f conftest.err conftest.$ac_objext \
61562       conftest$ac_exeext conftest.$ac_ext
61563 fi
61564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61566 if test `eval echo '${'$as_ac_var'}'` = yes; then
61567   cat >>confdefs.h <<_ACEOF
61568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61569 _ACEOF
61570
61571 else
61572   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
61573 fi
61574 done
61575
61576
61577           if test x$ac_cv_func_copysignl = x"yes"; then
61578
61579 for ac_func in __signbitl
61580 do
61581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61582 echo "$as_me:$LINENO: checking for $ac_func" >&5
61583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61584 if eval "test \"\${$as_ac_var+set}\" = set"; then
61585   echo $ECHO_N "(cached) $ECHO_C" >&6
61586 else
61587   if test x$gcc_no_link = xyes; then
61588   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61590    { (exit 1); exit 1; }; }
61591 fi
61592 cat >conftest.$ac_ext <<_ACEOF
61593 /* confdefs.h.  */
61594 _ACEOF
61595 cat confdefs.h >>conftest.$ac_ext
61596 cat >>conftest.$ac_ext <<_ACEOF
61597 /* end confdefs.h.  */
61598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61600 #define $ac_func innocuous_$ac_func
61601
61602 /* System header to define __stub macros and hopefully few prototypes,
61603     which can conflict with char $ac_func (); below.
61604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61605     <limits.h> exists even on freestanding compilers.  */
61606
61607 #ifdef __STDC__
61608 # include <limits.h>
61609 #else
61610 # include <assert.h>
61611 #endif
61612
61613 #undef $ac_func
61614
61615 /* Override any gcc2 internal prototype to avoid an error.  */
61616 #ifdef __cplusplus
61617 extern "C"
61618 {
61619 #endif
61620 /* We use char because int might match the return type of a gcc2
61621    builtin and then its argument prototype would still apply.  */
61622 char $ac_func ();
61623 /* The GNU C library defines this for functions which it implements
61624     to always fail with ENOSYS.  Some functions are actually named
61625     something starting with __ and the normal name is an alias.  */
61626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61627 choke me
61628 #else
61629 char (*f) () = $ac_func;
61630 #endif
61631 #ifdef __cplusplus
61632 }
61633 #endif
61634
61635 int
61636 main ()
61637 {
61638 return f != $ac_func;
61639   ;
61640   return 0;
61641 }
61642 _ACEOF
61643 rm -f conftest.$ac_objext conftest$ac_exeext
61644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61645   (eval $ac_link) 2>conftest.er1
61646   ac_status=$?
61647   grep -v '^ *+' conftest.er1 >conftest.err
61648   rm -f conftest.er1
61649   cat conftest.err >&5
61650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61651   (exit $ac_status); } &&
61652          { ac_try='test -z "$ac_c_werror_flag"
61653                          || test ! -s conftest.err'
61654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61655   (eval $ac_try) 2>&5
61656   ac_status=$?
61657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61658   (exit $ac_status); }; } &&
61659          { ac_try='test -s conftest$ac_exeext'
61660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61661   (eval $ac_try) 2>&5
61662   ac_status=$?
61663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61664   (exit $ac_status); }; }; then
61665   eval "$as_ac_var=yes"
61666 else
61667   echo "$as_me: failed program was:" >&5
61668 sed 's/^/| /' conftest.$ac_ext >&5
61669
61670 eval "$as_ac_var=no"
61671 fi
61672 rm -f conftest.err conftest.$ac_objext \
61673       conftest$ac_exeext conftest.$ac_ext
61674 fi
61675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61677 if test `eval echo '${'$as_ac_var'}'` = yes; then
61678   cat >>confdefs.h <<_ACEOF
61679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61680 _ACEOF
61681
61682 else
61683   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
61684 fi
61685 done
61686
61687   fi
61688
61689   # XXX Review this.  Nothing uses it.
61690   if test -n "$LIBMATHOBJS"; then
61691     need_libmath=yes
61692   fi
61693
61694
61695
61696   # Test wchar.h for mbstate_t, which is needed for char_traits and
61697   # others even if wchar_t support is not on.
61698   echo "$as_me:$LINENO: checking for mbstate_t" >&5
61699 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
61700   cat >conftest.$ac_ext <<_ACEOF
61701 /* confdefs.h.  */
61702 _ACEOF
61703 cat confdefs.h >>conftest.$ac_ext
61704 cat >>conftest.$ac_ext <<_ACEOF
61705 /* end confdefs.h.  */
61706 #include <wchar.h>
61707 int
61708 main ()
61709 {
61710 mbstate_t teststate;
61711   ;
61712   return 0;
61713 }
61714 _ACEOF
61715 rm -f conftest.$ac_objext
61716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61717   (eval $ac_compile) 2>conftest.er1
61718   ac_status=$?
61719   grep -v '^ *+' conftest.er1 >conftest.err
61720   rm -f conftest.er1
61721   cat conftest.err >&5
61722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61723   (exit $ac_status); } &&
61724          { ac_try='test -z "$ac_c_werror_flag"
61725                          || test ! -s conftest.err'
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); }; } &&
61731          { ac_try='test -s conftest.$ac_objext'
61732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61733   (eval $ac_try) 2>&5
61734   ac_status=$?
61735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61736   (exit $ac_status); }; }; then
61737   have_mbstate_t=yes
61738 else
61739   echo "$as_me: failed program was:" >&5
61740 sed 's/^/| /' conftest.$ac_ext >&5
61741
61742 have_mbstate_t=no
61743 fi
61744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61745   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
61746 echo "${ECHO_T}$have_mbstate_t" >&6
61747   if test x"$have_mbstate_t" = xyes; then
61748     cat >>confdefs.h <<\_ACEOF
61749 #define HAVE_MBSTATE_T 1
61750 _ACEOF
61751
61752   fi
61753
61754   # Sanity check for existence of ISO C99 headers for extended encoding.
61755
61756 for ac_header in wchar.h
61757 do
61758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61760   echo "$as_me:$LINENO: checking for $ac_header" >&5
61761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61763   echo $ECHO_N "(cached) $ECHO_C" >&6
61764 fi
61765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61767 else
61768   # Is the header compilable?
61769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61771 cat >conftest.$ac_ext <<_ACEOF
61772 /* confdefs.h.  */
61773 _ACEOF
61774 cat confdefs.h >>conftest.$ac_ext
61775 cat >>conftest.$ac_ext <<_ACEOF
61776 /* end confdefs.h.  */
61777 $ac_includes_default
61778 #include <$ac_header>
61779 _ACEOF
61780 rm -f conftest.$ac_objext
61781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61782   (eval $ac_compile) 2>conftest.er1
61783   ac_status=$?
61784   grep -v '^ *+' conftest.er1 >conftest.err
61785   rm -f conftest.er1
61786   cat conftest.err >&5
61787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61788   (exit $ac_status); } &&
61789          { ac_try='test -z "$ac_c_werror_flag"
61790                          || test ! -s conftest.err'
61791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61792   (eval $ac_try) 2>&5
61793   ac_status=$?
61794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61795   (exit $ac_status); }; } &&
61796          { ac_try='test -s conftest.$ac_objext'
61797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61798   (eval $ac_try) 2>&5
61799   ac_status=$?
61800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61801   (exit $ac_status); }; }; then
61802   ac_header_compiler=yes
61803 else
61804   echo "$as_me: failed program was:" >&5
61805 sed 's/^/| /' conftest.$ac_ext >&5
61806
61807 ac_header_compiler=no
61808 fi
61809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61811 echo "${ECHO_T}$ac_header_compiler" >&6
61812
61813 # Is the header present?
61814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61816 cat >conftest.$ac_ext <<_ACEOF
61817 /* confdefs.h.  */
61818 _ACEOF
61819 cat confdefs.h >>conftest.$ac_ext
61820 cat >>conftest.$ac_ext <<_ACEOF
61821 /* end confdefs.h.  */
61822 #include <$ac_header>
61823 _ACEOF
61824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61825   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61826   ac_status=$?
61827   grep -v '^ *+' conftest.er1 >conftest.err
61828   rm -f conftest.er1
61829   cat conftest.err >&5
61830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61831   (exit $ac_status); } >/dev/null; then
61832   if test -s conftest.err; then
61833     ac_cpp_err=$ac_c_preproc_warn_flag
61834     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61835   else
61836     ac_cpp_err=
61837   fi
61838 else
61839   ac_cpp_err=yes
61840 fi
61841 if test -z "$ac_cpp_err"; then
61842   ac_header_preproc=yes
61843 else
61844   echo "$as_me: failed program was:" >&5
61845 sed 's/^/| /' conftest.$ac_ext >&5
61846
61847   ac_header_preproc=no
61848 fi
61849 rm -f conftest.err conftest.$ac_ext
61850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61851 echo "${ECHO_T}$ac_header_preproc" >&6
61852
61853 # So?  What about this header?
61854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61855   yes:no: )
61856     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61860     ac_header_preproc=yes
61861     ;;
61862   no:yes:* )
61863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61865     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
61866 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
61867     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61869     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
61870 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
61871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61873     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61875     (
61876       cat <<\_ASBOX
61877 ## ----------------------------------------- ##
61878 ## Report this to the package-unused lists.  ##
61879 ## ----------------------------------------- ##
61880 _ASBOX
61881     ) |
61882       sed "s/^/$as_me: WARNING:     /" >&2
61883     ;;
61884 esac
61885 echo "$as_me:$LINENO: checking for $ac_header" >&5
61886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61888   echo $ECHO_N "(cached) $ECHO_C" >&6
61889 else
61890   eval "$as_ac_Header=\$ac_header_preproc"
61891 fi
61892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61894
61895 fi
61896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61897   cat >>confdefs.h <<_ACEOF
61898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61899 _ACEOF
61900  ac_has_wchar_h=yes
61901 else
61902   ac_has_wchar_h=no
61903 fi
61904
61905 done
61906
61907
61908 for ac_header in wctype.h
61909 do
61910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61912   echo "$as_me:$LINENO: checking for $ac_header" >&5
61913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61915   echo $ECHO_N "(cached) $ECHO_C" >&6
61916 fi
61917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61919 else
61920   # Is the header compilable?
61921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61923 cat >conftest.$ac_ext <<_ACEOF
61924 /* confdefs.h.  */
61925 _ACEOF
61926 cat confdefs.h >>conftest.$ac_ext
61927 cat >>conftest.$ac_ext <<_ACEOF
61928 /* end confdefs.h.  */
61929 $ac_includes_default
61930 #include <$ac_header>
61931 _ACEOF
61932 rm -f conftest.$ac_objext
61933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61934   (eval $ac_compile) 2>conftest.er1
61935   ac_status=$?
61936   grep -v '^ *+' conftest.er1 >conftest.err
61937   rm -f conftest.er1
61938   cat conftest.err >&5
61939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61940   (exit $ac_status); } &&
61941          { ac_try='test -z "$ac_c_werror_flag"
61942                          || test ! -s conftest.err'
61943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61944   (eval $ac_try) 2>&5
61945   ac_status=$?
61946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61947   (exit $ac_status); }; } &&
61948          { ac_try='test -s conftest.$ac_objext'
61949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61950   (eval $ac_try) 2>&5
61951   ac_status=$?
61952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61953   (exit $ac_status); }; }; then
61954   ac_header_compiler=yes
61955 else
61956   echo "$as_me: failed program was:" >&5
61957 sed 's/^/| /' conftest.$ac_ext >&5
61958
61959 ac_header_compiler=no
61960 fi
61961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61963 echo "${ECHO_T}$ac_header_compiler" >&6
61964
61965 # Is the header present?
61966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61968 cat >conftest.$ac_ext <<_ACEOF
61969 /* confdefs.h.  */
61970 _ACEOF
61971 cat confdefs.h >>conftest.$ac_ext
61972 cat >>conftest.$ac_ext <<_ACEOF
61973 /* end confdefs.h.  */
61974 #include <$ac_header>
61975 _ACEOF
61976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61978   ac_status=$?
61979   grep -v '^ *+' conftest.er1 >conftest.err
61980   rm -f conftest.er1
61981   cat conftest.err >&5
61982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61983   (exit $ac_status); } >/dev/null; then
61984   if test -s conftest.err; then
61985     ac_cpp_err=$ac_c_preproc_warn_flag
61986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61987   else
61988     ac_cpp_err=
61989   fi
61990 else
61991   ac_cpp_err=yes
61992 fi
61993 if test -z "$ac_cpp_err"; then
61994   ac_header_preproc=yes
61995 else
61996   echo "$as_me: failed program was:" >&5
61997 sed 's/^/| /' conftest.$ac_ext >&5
61998
61999   ac_header_preproc=no
62000 fi
62001 rm -f conftest.err conftest.$ac_ext
62002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62003 echo "${ECHO_T}$ac_header_preproc" >&6
62004
62005 # So?  What about this header?
62006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62007   yes:no: )
62008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
62009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
62010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
62011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
62012     ac_header_preproc=yes
62013     ;;
62014   no:yes:* )
62015     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
62016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
62017     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
62018 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
62019     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
62020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
62021     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
62022 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
62023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
62024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62025     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62027     (
62028       cat <<\_ASBOX
62029 ## ----------------------------------------- ##
62030 ## Report this to the package-unused lists.  ##
62031 ## ----------------------------------------- ##
62032 _ASBOX
62033     ) |
62034       sed "s/^/$as_me: WARNING:     /" >&2
62035     ;;
62036 esac
62037 echo "$as_me:$LINENO: checking for $ac_header" >&5
62038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62040   echo $ECHO_N "(cached) $ECHO_C" >&6
62041 else
62042   eval "$as_ac_Header=\$ac_header_preproc"
62043 fi
62044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62046
62047 fi
62048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62049   cat >>confdefs.h <<_ACEOF
62050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
62051 _ACEOF
62052  ac_has_wctype_h=yes
62053 else
62054   ac_has_wctype_h=no
62055 fi
62056
62057 done
62058
62059
62060   # Only continue checking if the ISO C99 headers exist and support is on.
62061   if test x"$ac_has_wchar_h" = xyes &&
62062      test x"$ac_has_wctype_h" = xyes &&
62063      test x"$enable_c_mbchar" != xno; then
62064
62065     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
62066     # numeric_limits can instantiate type_traits<wchar_t>
62067     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
62068 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
62069     cat >conftest.$ac_ext <<_ACEOF
62070 /* confdefs.h.  */
62071 _ACEOF
62072 cat confdefs.h >>conftest.$ac_ext
62073 cat >>conftest.$ac_ext <<_ACEOF
62074 /* end confdefs.h.  */
62075 #include <wchar.h>
62076 int
62077 main ()
62078 {
62079 int i = WCHAR_MIN; int j = WCHAR_MAX;
62080   ;
62081   return 0;
62082 }
62083 _ACEOF
62084 rm -f conftest.$ac_objext
62085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62086   (eval $ac_compile) 2>conftest.er1
62087   ac_status=$?
62088   grep -v '^ *+' conftest.er1 >conftest.err
62089   rm -f conftest.er1
62090   cat conftest.err >&5
62091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62092   (exit $ac_status); } &&
62093          { ac_try='test -z "$ac_c_werror_flag"
62094                          || test ! -s conftest.err'
62095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62096   (eval $ac_try) 2>&5
62097   ac_status=$?
62098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62099   (exit $ac_status); }; } &&
62100          { ac_try='test -s conftest.$ac_objext'
62101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62102   (eval $ac_try) 2>&5
62103   ac_status=$?
62104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62105   (exit $ac_status); }; }; then
62106   has_wchar_minmax=yes
62107 else
62108   echo "$as_me: failed program was:" >&5
62109 sed 's/^/| /' conftest.$ac_ext >&5
62110
62111 has_wchar_minmax=no
62112 fi
62113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62114     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
62115 echo "${ECHO_T}$has_wchar_minmax" >&6
62116
62117     # Test wchar.h for WEOF, which is what we use to determine whether
62118     # to specialize for char_traits<wchar_t> or not.
62119     echo "$as_me:$LINENO: checking for WEOF" >&5
62120 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
62121     cat >conftest.$ac_ext <<_ACEOF
62122 /* confdefs.h.  */
62123 _ACEOF
62124 cat confdefs.h >>conftest.$ac_ext
62125 cat >>conftest.$ac_ext <<_ACEOF
62126 /* end confdefs.h.  */
62127
62128       #include <wchar.h>
62129       #include <stddef.h>
62130 int
62131 main ()
62132 {
62133 wint_t i = WEOF;
62134   ;
62135   return 0;
62136 }
62137 _ACEOF
62138 rm -f conftest.$ac_objext
62139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62140   (eval $ac_compile) 2>conftest.er1
62141   ac_status=$?
62142   grep -v '^ *+' conftest.er1 >conftest.err
62143   rm -f conftest.er1
62144   cat conftest.err >&5
62145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62146   (exit $ac_status); } &&
62147          { ac_try='test -z "$ac_c_werror_flag"
62148                          || test ! -s conftest.err'
62149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62150   (eval $ac_try) 2>&5
62151   ac_status=$?
62152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62153   (exit $ac_status); }; } &&
62154          { ac_try='test -s conftest.$ac_objext'
62155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62156   (eval $ac_try) 2>&5
62157   ac_status=$?
62158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62159   (exit $ac_status); }; }; then
62160   has_weof=yes
62161 else
62162   echo "$as_me: failed program was:" >&5
62163 sed 's/^/| /' conftest.$ac_ext >&5
62164
62165 has_weof=no
62166 fi
62167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62168     echo "$as_me:$LINENO: result: $has_weof" >&5
62169 echo "${ECHO_T}$has_weof" >&6
62170
62171     # Tests for wide character functions used in char_traits<wchar_t>.
62172     ac_wfuncs=yes
62173
62174
62175
62176
62177
62178
62179 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
62180 do
62181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62182 echo "$as_me:$LINENO: checking for $ac_func" >&5
62183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62184 if eval "test \"\${$as_ac_var+set}\" = set"; then
62185   echo $ECHO_N "(cached) $ECHO_C" >&6
62186 else
62187   if test x$gcc_no_link = xyes; then
62188   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62189 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62190    { (exit 1); exit 1; }; }
62191 fi
62192 cat >conftest.$ac_ext <<_ACEOF
62193 /* confdefs.h.  */
62194 _ACEOF
62195 cat confdefs.h >>conftest.$ac_ext
62196 cat >>conftest.$ac_ext <<_ACEOF
62197 /* end confdefs.h.  */
62198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62200 #define $ac_func innocuous_$ac_func
62201
62202 /* System header to define __stub macros and hopefully few prototypes,
62203     which can conflict with char $ac_func (); below.
62204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62205     <limits.h> exists even on freestanding compilers.  */
62206
62207 #ifdef __STDC__
62208 # include <limits.h>
62209 #else
62210 # include <assert.h>
62211 #endif
62212
62213 #undef $ac_func
62214
62215 /* Override any gcc2 internal prototype to avoid an error.  */
62216 #ifdef __cplusplus
62217 extern "C"
62218 {
62219 #endif
62220 /* We use char because int might match the return type of a gcc2
62221    builtin and then its argument prototype would still apply.  */
62222 char $ac_func ();
62223 /* The GNU C library defines this for functions which it implements
62224     to always fail with ENOSYS.  Some functions are actually named
62225     something starting with __ and the normal name is an alias.  */
62226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62227 choke me
62228 #else
62229 char (*f) () = $ac_func;
62230 #endif
62231 #ifdef __cplusplus
62232 }
62233 #endif
62234
62235 int
62236 main ()
62237 {
62238 return f != $ac_func;
62239   ;
62240   return 0;
62241 }
62242 _ACEOF
62243 rm -f conftest.$ac_objext conftest$ac_exeext
62244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62245   (eval $ac_link) 2>conftest.er1
62246   ac_status=$?
62247   grep -v '^ *+' conftest.er1 >conftest.err
62248   rm -f conftest.er1
62249   cat conftest.err >&5
62250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62251   (exit $ac_status); } &&
62252          { ac_try='test -z "$ac_c_werror_flag"
62253                          || test ! -s conftest.err'
62254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62255   (eval $ac_try) 2>&5
62256   ac_status=$?
62257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62258   (exit $ac_status); }; } &&
62259          { ac_try='test -s conftest$ac_exeext'
62260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62261   (eval $ac_try) 2>&5
62262   ac_status=$?
62263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62264   (exit $ac_status); }; }; then
62265   eval "$as_ac_var=yes"
62266 else
62267   echo "$as_me: failed program was:" >&5
62268 sed 's/^/| /' conftest.$ac_ext >&5
62269
62270 eval "$as_ac_var=no"
62271 fi
62272 rm -f conftest.err conftest.$ac_objext \
62273       conftest$ac_exeext conftest.$ac_ext
62274 fi
62275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62277 if test `eval echo '${'$as_ac_var'}'` = yes; then
62278   cat >>confdefs.h <<_ACEOF
62279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62280 _ACEOF
62281
62282 else
62283   ac_wfuncs=no
62284 fi
62285 done
62286
62287
62288     # Checks for names injected into std:: by the c_std headers.
62289
62290
62291
62292
62293
62294
62295
62296
62297
62298
62299
62300
62301
62302
62303
62304
62305
62306
62307
62308
62309
62310
62311
62312
62313
62314
62315
62316
62317
62318
62319
62320
62321
62322
62323
62324
62325
62326
62327
62328
62329
62330
62331
62332
62333
62334
62335 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
62336     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
62337     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
62338     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
62339     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
62340     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
62341 do
62342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62343 echo "$as_me:$LINENO: checking for $ac_func" >&5
62344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62345 if eval "test \"\${$as_ac_var+set}\" = set"; then
62346   echo $ECHO_N "(cached) $ECHO_C" >&6
62347 else
62348   if test x$gcc_no_link = xyes; then
62349   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62351    { (exit 1); exit 1; }; }
62352 fi
62353 cat >conftest.$ac_ext <<_ACEOF
62354 /* confdefs.h.  */
62355 _ACEOF
62356 cat confdefs.h >>conftest.$ac_ext
62357 cat >>conftest.$ac_ext <<_ACEOF
62358 /* end confdefs.h.  */
62359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62361 #define $ac_func innocuous_$ac_func
62362
62363 /* System header to define __stub macros and hopefully few prototypes,
62364     which can conflict with char $ac_func (); below.
62365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62366     <limits.h> exists even on freestanding compilers.  */
62367
62368 #ifdef __STDC__
62369 # include <limits.h>
62370 #else
62371 # include <assert.h>
62372 #endif
62373
62374 #undef $ac_func
62375
62376 /* Override any gcc2 internal prototype to avoid an error.  */
62377 #ifdef __cplusplus
62378 extern "C"
62379 {
62380 #endif
62381 /* We use char because int might match the return type of a gcc2
62382    builtin and then its argument prototype would still apply.  */
62383 char $ac_func ();
62384 /* The GNU C library defines this for functions which it implements
62385     to always fail with ENOSYS.  Some functions are actually named
62386     something starting with __ and the normal name is an alias.  */
62387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62388 choke me
62389 #else
62390 char (*f) () = $ac_func;
62391 #endif
62392 #ifdef __cplusplus
62393 }
62394 #endif
62395
62396 int
62397 main ()
62398 {
62399 return f != $ac_func;
62400   ;
62401   return 0;
62402 }
62403 _ACEOF
62404 rm -f conftest.$ac_objext conftest$ac_exeext
62405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62406   (eval $ac_link) 2>conftest.er1
62407   ac_status=$?
62408   grep -v '^ *+' conftest.er1 >conftest.err
62409   rm -f conftest.er1
62410   cat conftest.err >&5
62411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62412   (exit $ac_status); } &&
62413          { ac_try='test -z "$ac_c_werror_flag"
62414                          || test ! -s conftest.err'
62415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62416   (eval $ac_try) 2>&5
62417   ac_status=$?
62418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62419   (exit $ac_status); }; } &&
62420          { ac_try='test -s conftest$ac_exeext'
62421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62422   (eval $ac_try) 2>&5
62423   ac_status=$?
62424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62425   (exit $ac_status); }; }; then
62426   eval "$as_ac_var=yes"
62427 else
62428   echo "$as_me: failed program was:" >&5
62429 sed 's/^/| /' conftest.$ac_ext >&5
62430
62431 eval "$as_ac_var=no"
62432 fi
62433 rm -f conftest.err conftest.$ac_objext \
62434       conftest$ac_exeext conftest.$ac_ext
62435 fi
62436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62438 if test `eval echo '${'$as_ac_var'}'` = yes; then
62439   cat >>confdefs.h <<_ACEOF
62440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62441 _ACEOF
62442
62443 else
62444   ac_wfuncs=no
62445 fi
62446 done
62447
62448
62449     # Checks for wide character functions that are not required
62450     # for basic wchar_t support.  Don't disable support if they are missing.
62451     # Injection of these is wrapped with guard macros.
62452
62453
62454
62455
62456
62457 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
62458 do
62459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62460 echo "$as_me:$LINENO: checking for $ac_func" >&5
62461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62462 if eval "test \"\${$as_ac_var+set}\" = set"; then
62463   echo $ECHO_N "(cached) $ECHO_C" >&6
62464 else
62465   if test x$gcc_no_link = xyes; then
62466   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62467 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62468    { (exit 1); exit 1; }; }
62469 fi
62470 cat >conftest.$ac_ext <<_ACEOF
62471 /* confdefs.h.  */
62472 _ACEOF
62473 cat confdefs.h >>conftest.$ac_ext
62474 cat >>conftest.$ac_ext <<_ACEOF
62475 /* end confdefs.h.  */
62476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62478 #define $ac_func innocuous_$ac_func
62479
62480 /* System header to define __stub macros and hopefully few prototypes,
62481     which can conflict with char $ac_func (); below.
62482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62483     <limits.h> exists even on freestanding compilers.  */
62484
62485 #ifdef __STDC__
62486 # include <limits.h>
62487 #else
62488 # include <assert.h>
62489 #endif
62490
62491 #undef $ac_func
62492
62493 /* Override any gcc2 internal prototype to avoid an error.  */
62494 #ifdef __cplusplus
62495 extern "C"
62496 {
62497 #endif
62498 /* We use char because int might match the return type of a gcc2
62499    builtin and then its argument prototype would still apply.  */
62500 char $ac_func ();
62501 /* The GNU C library defines this for functions which it implements
62502     to always fail with ENOSYS.  Some functions are actually named
62503     something starting with __ and the normal name is an alias.  */
62504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62505 choke me
62506 #else
62507 char (*f) () = $ac_func;
62508 #endif
62509 #ifdef __cplusplus
62510 }
62511 #endif
62512
62513 int
62514 main ()
62515 {
62516 return f != $ac_func;
62517   ;
62518   return 0;
62519 }
62520 _ACEOF
62521 rm -f conftest.$ac_objext conftest$ac_exeext
62522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62523   (eval $ac_link) 2>conftest.er1
62524   ac_status=$?
62525   grep -v '^ *+' conftest.er1 >conftest.err
62526   rm -f conftest.er1
62527   cat conftest.err >&5
62528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62529   (exit $ac_status); } &&
62530          { ac_try='test -z "$ac_c_werror_flag"
62531                          || test ! -s conftest.err'
62532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62533   (eval $ac_try) 2>&5
62534   ac_status=$?
62535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62536   (exit $ac_status); }; } &&
62537          { ac_try='test -s conftest$ac_exeext'
62538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62539   (eval $ac_try) 2>&5
62540   ac_status=$?
62541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62542   (exit $ac_status); }; }; then
62543   eval "$as_ac_var=yes"
62544 else
62545   echo "$as_me: failed program was:" >&5
62546 sed 's/^/| /' conftest.$ac_ext >&5
62547
62548 eval "$as_ac_var=no"
62549 fi
62550 rm -f conftest.err conftest.$ac_objext \
62551       conftest$ac_exeext conftest.$ac_ext
62552 fi
62553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62555 if test `eval echo '${'$as_ac_var'}'` = yes; then
62556   cat >>confdefs.h <<_ACEOF
62557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62558 _ACEOF
62559
62560 fi
62561 done
62562
62563
62564     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
62565 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
62566     if test x"$has_weof" = xyes &&
62567        test x"$has_wchar_minmax" = xyes &&
62568        test x"$ac_wfuncs" = xyes;
62569     then
62570       ac_isoC99_wchar_t=yes
62571     else
62572       ac_isoC99_wchar_t=no
62573     fi
62574     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
62575 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
62576
62577     # Use iconv for wchar_t to char conversions. As such, check for
62578     # X/Open Portability Guide, version 2 features (XPG2).
62579     if test "${ac_cv_header_iconv_h+set}" = set; then
62580   echo "$as_me:$LINENO: checking for iconv.h" >&5
62581 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62582 if test "${ac_cv_header_iconv_h+set}" = set; then
62583   echo $ECHO_N "(cached) $ECHO_C" >&6
62584 fi
62585 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62586 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62587 else
62588   # Is the header compilable?
62589 echo "$as_me:$LINENO: checking iconv.h usability" >&5
62590 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
62591 cat >conftest.$ac_ext <<_ACEOF
62592 /* confdefs.h.  */
62593 _ACEOF
62594 cat confdefs.h >>conftest.$ac_ext
62595 cat >>conftest.$ac_ext <<_ACEOF
62596 /* end confdefs.h.  */
62597 $ac_includes_default
62598 #include <iconv.h>
62599 _ACEOF
62600 rm -f conftest.$ac_objext
62601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62602   (eval $ac_compile) 2>conftest.er1
62603   ac_status=$?
62604   grep -v '^ *+' conftest.er1 >conftest.err
62605   rm -f conftest.er1
62606   cat conftest.err >&5
62607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62608   (exit $ac_status); } &&
62609          { ac_try='test -z "$ac_c_werror_flag"
62610                          || test ! -s conftest.err'
62611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62612   (eval $ac_try) 2>&5
62613   ac_status=$?
62614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62615   (exit $ac_status); }; } &&
62616          { ac_try='test -s conftest.$ac_objext'
62617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62618   (eval $ac_try) 2>&5
62619   ac_status=$?
62620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62621   (exit $ac_status); }; }; then
62622   ac_header_compiler=yes
62623 else
62624   echo "$as_me: failed program was:" >&5
62625 sed 's/^/| /' conftest.$ac_ext >&5
62626
62627 ac_header_compiler=no
62628 fi
62629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62631 echo "${ECHO_T}$ac_header_compiler" >&6
62632
62633 # Is the header present?
62634 echo "$as_me:$LINENO: checking iconv.h presence" >&5
62635 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
62636 cat >conftest.$ac_ext <<_ACEOF
62637 /* confdefs.h.  */
62638 _ACEOF
62639 cat confdefs.h >>conftest.$ac_ext
62640 cat >>conftest.$ac_ext <<_ACEOF
62641 /* end confdefs.h.  */
62642 #include <iconv.h>
62643 _ACEOF
62644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62646   ac_status=$?
62647   grep -v '^ *+' conftest.er1 >conftest.err
62648   rm -f conftest.er1
62649   cat conftest.err >&5
62650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62651   (exit $ac_status); } >/dev/null; then
62652   if test -s conftest.err; then
62653     ac_cpp_err=$ac_c_preproc_warn_flag
62654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62655   else
62656     ac_cpp_err=
62657   fi
62658 else
62659   ac_cpp_err=yes
62660 fi
62661 if test -z "$ac_cpp_err"; then
62662   ac_header_preproc=yes
62663 else
62664   echo "$as_me: failed program was:" >&5
62665 sed 's/^/| /' conftest.$ac_ext >&5
62666
62667   ac_header_preproc=no
62668 fi
62669 rm -f conftest.err conftest.$ac_ext
62670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62671 echo "${ECHO_T}$ac_header_preproc" >&6
62672
62673 # So?  What about this header?
62674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62675   yes:no: )
62676     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
62677 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62678     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
62679 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
62680     ac_header_preproc=yes
62681     ;;
62682   no:yes:* )
62683     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
62684 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
62685     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
62686 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
62687     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
62688 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
62689     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
62690 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
62691     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
62692 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
62693     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
62694 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
62695     (
62696       cat <<\_ASBOX
62697 ## ----------------------------------------- ##
62698 ## Report this to the package-unused lists.  ##
62699 ## ----------------------------------------- ##
62700 _ASBOX
62701     ) |
62702       sed "s/^/$as_me: WARNING:     /" >&2
62703     ;;
62704 esac
62705 echo "$as_me:$LINENO: checking for iconv.h" >&5
62706 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62707 if test "${ac_cv_header_iconv_h+set}" = set; then
62708   echo $ECHO_N "(cached) $ECHO_C" >&6
62709 else
62710   ac_cv_header_iconv_h=$ac_header_preproc
62711 fi
62712 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62713 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62714
62715 fi
62716 if test $ac_cv_header_iconv_h = yes; then
62717   ac_has_iconv_h=yes
62718 else
62719   ac_has_iconv_h=no
62720 fi
62721
62722
62723     if test "${ac_cv_header_langinfo_h+set}" = set; then
62724   echo "$as_me:$LINENO: checking for langinfo.h" >&5
62725 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62726 if test "${ac_cv_header_langinfo_h+set}" = set; then
62727   echo $ECHO_N "(cached) $ECHO_C" >&6
62728 fi
62729 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62730 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62731 else
62732   # Is the header compilable?
62733 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
62734 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
62735 cat >conftest.$ac_ext <<_ACEOF
62736 /* confdefs.h.  */
62737 _ACEOF
62738 cat confdefs.h >>conftest.$ac_ext
62739 cat >>conftest.$ac_ext <<_ACEOF
62740 /* end confdefs.h.  */
62741 $ac_includes_default
62742 #include <langinfo.h>
62743 _ACEOF
62744 rm -f conftest.$ac_objext
62745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62746   (eval $ac_compile) 2>conftest.er1
62747   ac_status=$?
62748   grep -v '^ *+' conftest.er1 >conftest.err
62749   rm -f conftest.er1
62750   cat conftest.err >&5
62751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62752   (exit $ac_status); } &&
62753          { ac_try='test -z "$ac_c_werror_flag"
62754                          || test ! -s conftest.err'
62755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62756   (eval $ac_try) 2>&5
62757   ac_status=$?
62758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62759   (exit $ac_status); }; } &&
62760          { ac_try='test -s conftest.$ac_objext'
62761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62762   (eval $ac_try) 2>&5
62763   ac_status=$?
62764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62765   (exit $ac_status); }; }; then
62766   ac_header_compiler=yes
62767 else
62768   echo "$as_me: failed program was:" >&5
62769 sed 's/^/| /' conftest.$ac_ext >&5
62770
62771 ac_header_compiler=no
62772 fi
62773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62775 echo "${ECHO_T}$ac_header_compiler" >&6
62776
62777 # Is the header present?
62778 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
62779 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
62780 cat >conftest.$ac_ext <<_ACEOF
62781 /* confdefs.h.  */
62782 _ACEOF
62783 cat confdefs.h >>conftest.$ac_ext
62784 cat >>conftest.$ac_ext <<_ACEOF
62785 /* end confdefs.h.  */
62786 #include <langinfo.h>
62787 _ACEOF
62788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62790   ac_status=$?
62791   grep -v '^ *+' conftest.er1 >conftest.err
62792   rm -f conftest.er1
62793   cat conftest.err >&5
62794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62795   (exit $ac_status); } >/dev/null; then
62796   if test -s conftest.err; then
62797     ac_cpp_err=$ac_c_preproc_warn_flag
62798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62799   else
62800     ac_cpp_err=
62801   fi
62802 else
62803   ac_cpp_err=yes
62804 fi
62805 if test -z "$ac_cpp_err"; then
62806   ac_header_preproc=yes
62807 else
62808   echo "$as_me: failed program was:" >&5
62809 sed 's/^/| /' conftest.$ac_ext >&5
62810
62811   ac_header_preproc=no
62812 fi
62813 rm -f conftest.err conftest.$ac_ext
62814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62815 echo "${ECHO_T}$ac_header_preproc" >&6
62816
62817 # So?  What about this header?
62818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62819   yes:no: )
62820     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
62821 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62822     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
62823 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
62824     ac_header_preproc=yes
62825     ;;
62826   no:yes:* )
62827     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
62828 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
62829     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
62830 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
62831     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
62832 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
62833     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
62834 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
62835     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
62836 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
62837     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
62838 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
62839     (
62840       cat <<\_ASBOX
62841 ## ----------------------------------------- ##
62842 ## Report this to the package-unused lists.  ##
62843 ## ----------------------------------------- ##
62844 _ASBOX
62845     ) |
62846       sed "s/^/$as_me: WARNING:     /" >&2
62847     ;;
62848 esac
62849 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62850 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62851 if test "${ac_cv_header_langinfo_h+set}" = set; then
62852   echo $ECHO_N "(cached) $ECHO_C" >&6
62853 else
62854   ac_cv_header_langinfo_h=$ac_header_preproc
62855 fi
62856 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62857 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62858
62859 fi
62860 if test $ac_cv_header_langinfo_h = yes; then
62861   ac_has_langinfo_h=yes
62862 else
62863   ac_has_langinfo_h=no
62864 fi
62865
62866
62867
62868     # Check for existence of libiconv.a providing XPG2 wchar_t support.
62869     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
62870 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
62871 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
62872   echo $ECHO_N "(cached) $ECHO_C" >&6
62873 else
62874   ac_check_lib_save_LIBS=$LIBS
62875 LIBS="-liconv  $LIBS"
62876 if test x$gcc_no_link = xyes; then
62877   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62879    { (exit 1); exit 1; }; }
62880 fi
62881 cat >conftest.$ac_ext <<_ACEOF
62882 /* confdefs.h.  */
62883 _ACEOF
62884 cat confdefs.h >>conftest.$ac_ext
62885 cat >>conftest.$ac_ext <<_ACEOF
62886 /* end confdefs.h.  */
62887
62888 /* Override any gcc2 internal prototype to avoid an error.  */
62889 #ifdef __cplusplus
62890 extern "C"
62891 #endif
62892 /* We use char because int might match the return type of a gcc2
62893    builtin and then its argument prototype would still apply.  */
62894 char iconv ();
62895 int
62896 main ()
62897 {
62898 iconv ();
62899   ;
62900   return 0;
62901 }
62902 _ACEOF
62903 rm -f conftest.$ac_objext conftest$ac_exeext
62904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62905   (eval $ac_link) 2>conftest.er1
62906   ac_status=$?
62907   grep -v '^ *+' conftest.er1 >conftest.err
62908   rm -f conftest.er1
62909   cat conftest.err >&5
62910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62911   (exit $ac_status); } &&
62912          { ac_try='test -z "$ac_c_werror_flag"
62913                          || test ! -s conftest.err'
62914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62915   (eval $ac_try) 2>&5
62916   ac_status=$?
62917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62918   (exit $ac_status); }; } &&
62919          { ac_try='test -s conftest$ac_exeext'
62920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62921   (eval $ac_try) 2>&5
62922   ac_status=$?
62923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62924   (exit $ac_status); }; }; then
62925   ac_cv_lib_iconv_iconv=yes
62926 else
62927   echo "$as_me: failed program was:" >&5
62928 sed 's/^/| /' conftest.$ac_ext >&5
62929
62930 ac_cv_lib_iconv_iconv=no
62931 fi
62932 rm -f conftest.err conftest.$ac_objext \
62933       conftest$ac_exeext conftest.$ac_ext
62934 LIBS=$ac_check_lib_save_LIBS
62935 fi
62936 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
62937 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
62938 if test $ac_cv_lib_iconv_iconv = yes; then
62939   libiconv="-liconv"
62940 fi
62941
62942     ac_save_LIBS="$LIBS"
62943     LIBS="$LIBS $libiconv"
62944
62945
62946
62947
62948
62949 for ac_func in iconv_open iconv_close iconv nl_langinfo
62950 do
62951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62952 echo "$as_me:$LINENO: checking for $ac_func" >&5
62953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62954 if eval "test \"\${$as_ac_var+set}\" = set"; then
62955   echo $ECHO_N "(cached) $ECHO_C" >&6
62956 else
62957   if test x$gcc_no_link = xyes; then
62958   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62960    { (exit 1); exit 1; }; }
62961 fi
62962 cat >conftest.$ac_ext <<_ACEOF
62963 /* confdefs.h.  */
62964 _ACEOF
62965 cat confdefs.h >>conftest.$ac_ext
62966 cat >>conftest.$ac_ext <<_ACEOF
62967 /* end confdefs.h.  */
62968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62970 #define $ac_func innocuous_$ac_func
62971
62972 /* System header to define __stub macros and hopefully few prototypes,
62973     which can conflict with char $ac_func (); below.
62974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62975     <limits.h> exists even on freestanding compilers.  */
62976
62977 #ifdef __STDC__
62978 # include <limits.h>
62979 #else
62980 # include <assert.h>
62981 #endif
62982
62983 #undef $ac_func
62984
62985 /* Override any gcc2 internal prototype to avoid an error.  */
62986 #ifdef __cplusplus
62987 extern "C"
62988 {
62989 #endif
62990 /* We use char because int might match the return type of a gcc2
62991    builtin and then its argument prototype would still apply.  */
62992 char $ac_func ();
62993 /* The GNU C library defines this for functions which it implements
62994     to always fail with ENOSYS.  Some functions are actually named
62995     something starting with __ and the normal name is an alias.  */
62996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62997 choke me
62998 #else
62999 char (*f) () = $ac_func;
63000 #endif
63001 #ifdef __cplusplus
63002 }
63003 #endif
63004
63005 int
63006 main ()
63007 {
63008 return f != $ac_func;
63009   ;
63010   return 0;
63011 }
63012 _ACEOF
63013 rm -f conftest.$ac_objext conftest$ac_exeext
63014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63015   (eval $ac_link) 2>conftest.er1
63016   ac_status=$?
63017   grep -v '^ *+' conftest.er1 >conftest.err
63018   rm -f conftest.er1
63019   cat conftest.err >&5
63020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63021   (exit $ac_status); } &&
63022          { ac_try='test -z "$ac_c_werror_flag"
63023                          || test ! -s conftest.err'
63024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63025   (eval $ac_try) 2>&5
63026   ac_status=$?
63027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63028   (exit $ac_status); }; } &&
63029          { ac_try='test -s conftest$ac_exeext'
63030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63031   (eval $ac_try) 2>&5
63032   ac_status=$?
63033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63034   (exit $ac_status); }; }; then
63035   eval "$as_ac_var=yes"
63036 else
63037   echo "$as_me: failed program was:" >&5
63038 sed 's/^/| /' conftest.$ac_ext >&5
63039
63040 eval "$as_ac_var=no"
63041 fi
63042 rm -f conftest.err conftest.$ac_objext \
63043       conftest$ac_exeext conftest.$ac_ext
63044 fi
63045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63047 if test `eval echo '${'$as_ac_var'}'` = yes; then
63048   cat >>confdefs.h <<_ACEOF
63049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63050 _ACEOF
63051  ac_XPG2funcs=yes
63052 else
63053   ac_XPG2funcs=no
63054 fi
63055 done
63056
63057
63058     LIBS="$ac_save_LIBS"
63059
63060     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
63061 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
63062     if test x"$ac_has_iconv_h" = xyes &&
63063        test x"$ac_has_langinfo_h" = xyes &&
63064        test x"$ac_XPG2funcs" = xyes;
63065     then
63066       ac_XPG2_wchar_t=yes
63067     else
63068       ac_XPG2_wchar_t=no
63069     fi
63070     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
63071 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
63072
63073     # At the moment, only enable wchar_t specializations if all the
63074     # above support is present.
63075     if test x"$ac_isoC99_wchar_t" = xyes &&
63076        test x"$ac_XPG2_wchar_t" = xyes;
63077     then
63078       cat >>confdefs.h <<\_ACEOF
63079 #define _GLIBCXX_USE_WCHAR_T 1
63080 _ACEOF
63081
63082       enable_wchar_t=yes
63083     fi
63084   fi
63085   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
63086 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
63087   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
63088 echo "${ECHO_T}$enable_wchar_t" >&6
63089
63090     ;;
63091   *-netbsd*)
63092
63093
63094
63095
63096
63097
63098
63099
63100
63101
63102
63103
63104 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
63105       machine/endian.h machine/param.h sys/machine.h sys/types.h \
63106       fp.h locale.h float.h inttypes.h
63107 do
63108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63110   echo "$as_me:$LINENO: checking for $ac_header" >&5
63111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63113   echo $ECHO_N "(cached) $ECHO_C" >&6
63114 fi
63115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63117 else
63118   # Is the header compilable?
63119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63121 cat >conftest.$ac_ext <<_ACEOF
63122 /* confdefs.h.  */
63123 _ACEOF
63124 cat confdefs.h >>conftest.$ac_ext
63125 cat >>conftest.$ac_ext <<_ACEOF
63126 /* end confdefs.h.  */
63127 $ac_includes_default
63128 #include <$ac_header>
63129 _ACEOF
63130 rm -f conftest.$ac_objext
63131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63132   (eval $ac_compile) 2>conftest.er1
63133   ac_status=$?
63134   grep -v '^ *+' conftest.er1 >conftest.err
63135   rm -f conftest.er1
63136   cat conftest.err >&5
63137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63138   (exit $ac_status); } &&
63139          { ac_try='test -z "$ac_c_werror_flag"
63140                          || test ! -s conftest.err'
63141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63142   (eval $ac_try) 2>&5
63143   ac_status=$?
63144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63145   (exit $ac_status); }; } &&
63146          { ac_try='test -s conftest.$ac_objext'
63147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63148   (eval $ac_try) 2>&5
63149   ac_status=$?
63150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63151   (exit $ac_status); }; }; then
63152   ac_header_compiler=yes
63153 else
63154   echo "$as_me: failed program was:" >&5
63155 sed 's/^/| /' conftest.$ac_ext >&5
63156
63157 ac_header_compiler=no
63158 fi
63159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63161 echo "${ECHO_T}$ac_header_compiler" >&6
63162
63163 # Is the header present?
63164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
63165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63166 cat >conftest.$ac_ext <<_ACEOF
63167 /* confdefs.h.  */
63168 _ACEOF
63169 cat confdefs.h >>conftest.$ac_ext
63170 cat >>conftest.$ac_ext <<_ACEOF
63171 /* end confdefs.h.  */
63172 #include <$ac_header>
63173 _ACEOF
63174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63176   ac_status=$?
63177   grep -v '^ *+' conftest.er1 >conftest.err
63178   rm -f conftest.er1
63179   cat conftest.err >&5
63180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63181   (exit $ac_status); } >/dev/null; then
63182   if test -s conftest.err; then
63183     ac_cpp_err=$ac_c_preproc_warn_flag
63184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63185   else
63186     ac_cpp_err=
63187   fi
63188 else
63189   ac_cpp_err=yes
63190 fi
63191 if test -z "$ac_cpp_err"; then
63192   ac_header_preproc=yes
63193 else
63194   echo "$as_me: failed program was:" >&5
63195 sed 's/^/| /' conftest.$ac_ext >&5
63196
63197   ac_header_preproc=no
63198 fi
63199 rm -f conftest.err conftest.$ac_ext
63200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63201 echo "${ECHO_T}$ac_header_preproc" >&6
63202
63203 # So?  What about this header?
63204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63205   yes:no: )
63206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63210     ac_header_preproc=yes
63211     ;;
63212   no:yes:* )
63213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63215     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
63216 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
63217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63219     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
63220 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
63221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63225     (
63226       cat <<\_ASBOX
63227 ## ----------------------------------------- ##
63228 ## Report this to the package-unused lists.  ##
63229 ## ----------------------------------------- ##
63230 _ASBOX
63231     ) |
63232       sed "s/^/$as_me: WARNING:     /" >&2
63233     ;;
63234 esac
63235 echo "$as_me:$LINENO: checking for $ac_header" >&5
63236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63238   echo $ECHO_N "(cached) $ECHO_C" >&6
63239 else
63240   eval "$as_ac_Header=\$ac_header_preproc"
63241 fi
63242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63244
63245 fi
63246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63247   cat >>confdefs.h <<_ACEOF
63248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63249 _ACEOF
63250
63251 fi
63252
63253 done
63254
63255     SECTION_FLAGS='-ffunction-sections -fdata-sections'
63256
63257
63258   # If we're not using GNU ld, then there's no point in even trying these
63259   # tests.  Check for that first.  We should have already tested for gld
63260   # by now (in libtool), but require it now just to be safe...
63261   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
63262   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
63263
63264
63265
63266   # The name set by libtool depends on the version of libtool.  Shame on us
63267   # for depending on an impl detail, but c'est la vie.  Older versions used
63268   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
63269   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
63270   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
63271   # set (hence we're using an older libtool), then set it.
63272   if test x${with_gnu_ld+set} != xset; then
63273     if test x${ac_cv_prog_gnu_ld+set} != xset; then
63274       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
63275       with_gnu_ld=no
63276     else
63277       with_gnu_ld=$ac_cv_prog_gnu_ld
63278     fi
63279   fi
63280
63281   # Start by getting the version number.  I think the libtool test already
63282   # does some of this, but throws away the result.
63283
63284   ldver=`$LD --version 2>/dev/null | head -1 | \
63285          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
63286
63287   glibcxx_gnu_ld_version=`echo $ldver | \
63288          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
63289
63290   # Set --gc-sections.
63291   if test "$with_gnu_ld" = "notbroken"; then
63292     # GNU ld it is!  Joy and bunny rabbits!
63293
63294     # All these tests are for C++; save the language and the compiler flags.
63295     # Need to do this so that g++ won't try to link in libstdc++
63296     ac_test_CFLAGS="${CFLAGS+set}"
63297     ac_save_CFLAGS="$CFLAGS"
63298     CFLAGS='-x c++  -Wl,--gc-sections'
63299
63300     # Check for -Wl,--gc-sections
63301     # XXX This test is broken at the moment, as symbols required for linking
63302     # are now in libsupc++ (not built yet).  In addition, this test has
63303     # cored on solaris in the past.  In addition, --gc-sections doesn't
63304     # really work at the moment (keeps on discarding used sections, first
63305     # .eh_frame and now some of the glibc sections for iconv).
63306     # Bzzzzt.  Thanks for playing, maybe next time.
63307     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
63308 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
63309     if test "$cross_compiling" = yes; then
63310   ac_sectionLDflags=yes
63311 else
63312   cat >conftest.$ac_ext <<_ACEOF
63313 /* confdefs.h.  */
63314 _ACEOF
63315 cat confdefs.h >>conftest.$ac_ext
63316 cat >>conftest.$ac_ext <<_ACEOF
63317 /* end confdefs.h.  */
63318
63319      int main(void)
63320      {
63321        try { throw 1; }
63322        catch (...) { };
63323        return 0;
63324      }
63325
63326 _ACEOF
63327 rm -f conftest$ac_exeext
63328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63329   (eval $ac_link) 2>&5
63330   ac_status=$?
63331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
63333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63334   (eval $ac_try) 2>&5
63335   ac_status=$?
63336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63337   (exit $ac_status); }; }; then
63338   ac_sectionLDflags=yes
63339 else
63340   echo "$as_me: program exited with status $ac_status" >&5
63341 echo "$as_me: failed program was:" >&5
63342 sed 's/^/| /' conftest.$ac_ext >&5
63343
63344 ( exit $ac_status )
63345 ac_sectionLDflags=no
63346 fi
63347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63348 fi
63349     if test "$ac_test_CFLAGS" = set; then
63350       CFLAGS="$ac_save_CFLAGS"
63351     else
63352       # this is the suspicious part
63353       CFLAGS=''
63354     fi
63355     if test "$ac_sectionLDflags" = "yes"; then
63356       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
63357     fi
63358     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
63359 echo "${ECHO_T}$ac_sectionLDflags" >&6
63360   fi
63361
63362   # Set linker optimization flags.
63363   if test x"$with_gnu_ld" = x"yes"; then
63364     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
63365   fi
63366
63367
63368
63369
63370
63371
63372 echo "$as_me:$LINENO: checking for main in -lm" >&5
63373 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
63374 if test "${ac_cv_lib_m_main+set}" = set; then
63375   echo $ECHO_N "(cached) $ECHO_C" >&6
63376 else
63377   ac_check_lib_save_LIBS=$LIBS
63378 LIBS="-lm  $LIBS"
63379 if test x$gcc_no_link = xyes; then
63380   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63382    { (exit 1); exit 1; }; }
63383 fi
63384 cat >conftest.$ac_ext <<_ACEOF
63385 /* confdefs.h.  */
63386 _ACEOF
63387 cat confdefs.h >>conftest.$ac_ext
63388 cat >>conftest.$ac_ext <<_ACEOF
63389 /* end confdefs.h.  */
63390
63391
63392 int
63393 main ()
63394 {
63395 main ();
63396   ;
63397   return 0;
63398 }
63399 _ACEOF
63400 rm -f conftest.$ac_objext conftest$ac_exeext
63401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63402   (eval $ac_link) 2>conftest.er1
63403   ac_status=$?
63404   grep -v '^ *+' conftest.er1 >conftest.err
63405   rm -f conftest.er1
63406   cat conftest.err >&5
63407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63408   (exit $ac_status); } &&
63409          { ac_try='test -z "$ac_c_werror_flag"
63410                          || test ! -s conftest.err'
63411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63412   (eval $ac_try) 2>&5
63413   ac_status=$?
63414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63415   (exit $ac_status); }; } &&
63416          { ac_try='test -s conftest$ac_exeext'
63417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63418   (eval $ac_try) 2>&5
63419   ac_status=$?
63420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63421   (exit $ac_status); }; }; then
63422   ac_cv_lib_m_main=yes
63423 else
63424   echo "$as_me: failed program was:" >&5
63425 sed 's/^/| /' conftest.$ac_ext >&5
63426
63427 ac_cv_lib_m_main=no
63428 fi
63429 rm -f conftest.err conftest.$ac_objext \
63430       conftest$ac_exeext conftest.$ac_ext
63431 LIBS=$ac_check_lib_save_LIBS
63432 fi
63433 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
63434 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
63435 if test $ac_cv_lib_m_main = yes; then
63436   cat >>confdefs.h <<_ACEOF
63437 #define HAVE_LIBM 1
63438 _ACEOF
63439
63440   LIBS="-lm $LIBS"
63441
63442 fi
63443
63444
63445 for ac_func in copysignf
63446 do
63447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63448 echo "$as_me:$LINENO: checking for $ac_func" >&5
63449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63450 if eval "test \"\${$as_ac_var+set}\" = set"; then
63451   echo $ECHO_N "(cached) $ECHO_C" >&6
63452 else
63453   if test x$gcc_no_link = xyes; then
63454   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63456    { (exit 1); exit 1; }; }
63457 fi
63458 cat >conftest.$ac_ext <<_ACEOF
63459 /* confdefs.h.  */
63460 _ACEOF
63461 cat confdefs.h >>conftest.$ac_ext
63462 cat >>conftest.$ac_ext <<_ACEOF
63463 /* end confdefs.h.  */
63464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63466 #define $ac_func innocuous_$ac_func
63467
63468 /* System header to define __stub macros and hopefully few prototypes,
63469     which can conflict with char $ac_func (); below.
63470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63471     <limits.h> exists even on freestanding compilers.  */
63472
63473 #ifdef __STDC__
63474 # include <limits.h>
63475 #else
63476 # include <assert.h>
63477 #endif
63478
63479 #undef $ac_func
63480
63481 /* Override any gcc2 internal prototype to avoid an error.  */
63482 #ifdef __cplusplus
63483 extern "C"
63484 {
63485 #endif
63486 /* We use char because int might match the return type of a gcc2
63487    builtin and then its argument prototype would still apply.  */
63488 char $ac_func ();
63489 /* The GNU C library defines this for functions which it implements
63490     to always fail with ENOSYS.  Some functions are actually named
63491     something starting with __ and the normal name is an alias.  */
63492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63493 choke me
63494 #else
63495 char (*f) () = $ac_func;
63496 #endif
63497 #ifdef __cplusplus
63498 }
63499 #endif
63500
63501 int
63502 main ()
63503 {
63504 return f != $ac_func;
63505   ;
63506   return 0;
63507 }
63508 _ACEOF
63509 rm -f conftest.$ac_objext conftest$ac_exeext
63510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63511   (eval $ac_link) 2>conftest.er1
63512   ac_status=$?
63513   grep -v '^ *+' conftest.er1 >conftest.err
63514   rm -f conftest.er1
63515   cat conftest.err >&5
63516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63517   (exit $ac_status); } &&
63518          { ac_try='test -z "$ac_c_werror_flag"
63519                          || test ! -s conftest.err'
63520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63521   (eval $ac_try) 2>&5
63522   ac_status=$?
63523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63524   (exit $ac_status); }; } &&
63525          { ac_try='test -s conftest$ac_exeext'
63526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63527   (eval $ac_try) 2>&5
63528   ac_status=$?
63529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63530   (exit $ac_status); }; }; then
63531   eval "$as_ac_var=yes"
63532 else
63533   echo "$as_me: failed program was:" >&5
63534 sed 's/^/| /' conftest.$ac_ext >&5
63535
63536 eval "$as_ac_var=no"
63537 fi
63538 rm -f conftest.err conftest.$ac_objext \
63539       conftest$ac_exeext conftest.$ac_ext
63540 fi
63541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63543 if test `eval echo '${'$as_ac_var'}'` = yes; then
63544   cat >>confdefs.h <<_ACEOF
63545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63546 _ACEOF
63547
63548 else
63549   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
63550 fi
63551 done
63552
63553
63554
63555 for ac_func in __signbit
63556 do
63557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63558 echo "$as_me:$LINENO: checking for $ac_func" >&5
63559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63560 if eval "test \"\${$as_ac_var+set}\" = set"; then
63561   echo $ECHO_N "(cached) $ECHO_C" >&6
63562 else
63563   if test x$gcc_no_link = xyes; then
63564   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63566    { (exit 1); exit 1; }; }
63567 fi
63568 cat >conftest.$ac_ext <<_ACEOF
63569 /* confdefs.h.  */
63570 _ACEOF
63571 cat confdefs.h >>conftest.$ac_ext
63572 cat >>conftest.$ac_ext <<_ACEOF
63573 /* end confdefs.h.  */
63574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63576 #define $ac_func innocuous_$ac_func
63577
63578 /* System header to define __stub macros and hopefully few prototypes,
63579     which can conflict with char $ac_func (); below.
63580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63581     <limits.h> exists even on freestanding compilers.  */
63582
63583 #ifdef __STDC__
63584 # include <limits.h>
63585 #else
63586 # include <assert.h>
63587 #endif
63588
63589 #undef $ac_func
63590
63591 /* Override any gcc2 internal prototype to avoid an error.  */
63592 #ifdef __cplusplus
63593 extern "C"
63594 {
63595 #endif
63596 /* We use char because int might match the return type of a gcc2
63597    builtin and then its argument prototype would still apply.  */
63598 char $ac_func ();
63599 /* The GNU C library defines this for functions which it implements
63600     to always fail with ENOSYS.  Some functions are actually named
63601     something starting with __ and the normal name is an alias.  */
63602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63603 choke me
63604 #else
63605 char (*f) () = $ac_func;
63606 #endif
63607 #ifdef __cplusplus
63608 }
63609 #endif
63610
63611 int
63612 main ()
63613 {
63614 return f != $ac_func;
63615   ;
63616   return 0;
63617 }
63618 _ACEOF
63619 rm -f conftest.$ac_objext conftest$ac_exeext
63620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63621   (eval $ac_link) 2>conftest.er1
63622   ac_status=$?
63623   grep -v '^ *+' conftest.er1 >conftest.err
63624   rm -f conftest.er1
63625   cat conftest.err >&5
63626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63627   (exit $ac_status); } &&
63628          { ac_try='test -z "$ac_c_werror_flag"
63629                          || test ! -s conftest.err'
63630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63631   (eval $ac_try) 2>&5
63632   ac_status=$?
63633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63634   (exit $ac_status); }; } &&
63635          { ac_try='test -s conftest$ac_exeext'
63636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63637   (eval $ac_try) 2>&5
63638   ac_status=$?
63639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63640   (exit $ac_status); }; }; then
63641   eval "$as_ac_var=yes"
63642 else
63643   echo "$as_me: failed program was:" >&5
63644 sed 's/^/| /' conftest.$ac_ext >&5
63645
63646 eval "$as_ac_var=no"
63647 fi
63648 rm -f conftest.err conftest.$ac_objext \
63649       conftest$ac_exeext conftest.$ac_ext
63650 fi
63651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63653 if test `eval echo '${'$as_ac_var'}'` = yes; then
63654   cat >>confdefs.h <<_ACEOF
63655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63656 _ACEOF
63657
63658 else
63659   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
63660 fi
63661 done
63662
63663
63664 for ac_func in __signbitf
63665 do
63666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63667 echo "$as_me:$LINENO: checking for $ac_func" >&5
63668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63669 if eval "test \"\${$as_ac_var+set}\" = set"; then
63670   echo $ECHO_N "(cached) $ECHO_C" >&6
63671 else
63672   if test x$gcc_no_link = xyes; then
63673   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63675    { (exit 1); exit 1; }; }
63676 fi
63677 cat >conftest.$ac_ext <<_ACEOF
63678 /* confdefs.h.  */
63679 _ACEOF
63680 cat confdefs.h >>conftest.$ac_ext
63681 cat >>conftest.$ac_ext <<_ACEOF
63682 /* end confdefs.h.  */
63683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63685 #define $ac_func innocuous_$ac_func
63686
63687 /* System header to define __stub macros and hopefully few prototypes,
63688     which can conflict with char $ac_func (); below.
63689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63690     <limits.h> exists even on freestanding compilers.  */
63691
63692 #ifdef __STDC__
63693 # include <limits.h>
63694 #else
63695 # include <assert.h>
63696 #endif
63697
63698 #undef $ac_func
63699
63700 /* Override any gcc2 internal prototype to avoid an error.  */
63701 #ifdef __cplusplus
63702 extern "C"
63703 {
63704 #endif
63705 /* We use char because int might match the return type of a gcc2
63706    builtin and then its argument prototype would still apply.  */
63707 char $ac_func ();
63708 /* The GNU C library defines this for functions which it implements
63709     to always fail with ENOSYS.  Some functions are actually named
63710     something starting with __ and the normal name is an alias.  */
63711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63712 choke me
63713 #else
63714 char (*f) () = $ac_func;
63715 #endif
63716 #ifdef __cplusplus
63717 }
63718 #endif
63719
63720 int
63721 main ()
63722 {
63723 return f != $ac_func;
63724   ;
63725   return 0;
63726 }
63727 _ACEOF
63728 rm -f conftest.$ac_objext conftest$ac_exeext
63729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63730   (eval $ac_link) 2>conftest.er1
63731   ac_status=$?
63732   grep -v '^ *+' conftest.er1 >conftest.err
63733   rm -f conftest.er1
63734   cat conftest.err >&5
63735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63736   (exit $ac_status); } &&
63737          { ac_try='test -z "$ac_c_werror_flag"
63738                          || test ! -s conftest.err'
63739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63740   (eval $ac_try) 2>&5
63741   ac_status=$?
63742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63743   (exit $ac_status); }; } &&
63744          { ac_try='test -s conftest$ac_exeext'
63745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63746   (eval $ac_try) 2>&5
63747   ac_status=$?
63748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63749   (exit $ac_status); }; }; then
63750   eval "$as_ac_var=yes"
63751 else
63752   echo "$as_me: failed program was:" >&5
63753 sed 's/^/| /' conftest.$ac_ext >&5
63754
63755 eval "$as_ac_var=no"
63756 fi
63757 rm -f conftest.err conftest.$ac_objext \
63758       conftest$ac_exeext conftest.$ac_ext
63759 fi
63760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63762 if test `eval echo '${'$as_ac_var'}'` = yes; then
63763   cat >>confdefs.h <<_ACEOF
63764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63765 _ACEOF
63766
63767 else
63768   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
63769 fi
63770 done
63771
63772
63773           if test x$ac_cv_func_copysignl = x"yes"; then
63774
63775 for ac_func in __signbitl
63776 do
63777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63778 echo "$as_me:$LINENO: checking for $ac_func" >&5
63779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63780 if eval "test \"\${$as_ac_var+set}\" = set"; then
63781   echo $ECHO_N "(cached) $ECHO_C" >&6
63782 else
63783   if test x$gcc_no_link = xyes; then
63784   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63785 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63786    { (exit 1); exit 1; }; }
63787 fi
63788 cat >conftest.$ac_ext <<_ACEOF
63789 /* confdefs.h.  */
63790 _ACEOF
63791 cat confdefs.h >>conftest.$ac_ext
63792 cat >>conftest.$ac_ext <<_ACEOF
63793 /* end confdefs.h.  */
63794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63796 #define $ac_func innocuous_$ac_func
63797
63798 /* System header to define __stub macros and hopefully few prototypes,
63799     which can conflict with char $ac_func (); below.
63800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63801     <limits.h> exists even on freestanding compilers.  */
63802
63803 #ifdef __STDC__
63804 # include <limits.h>
63805 #else
63806 # include <assert.h>
63807 #endif
63808
63809 #undef $ac_func
63810
63811 /* Override any gcc2 internal prototype to avoid an error.  */
63812 #ifdef __cplusplus
63813 extern "C"
63814 {
63815 #endif
63816 /* We use char because int might match the return type of a gcc2
63817    builtin and then its argument prototype would still apply.  */
63818 char $ac_func ();
63819 /* The GNU C library defines this for functions which it implements
63820     to always fail with ENOSYS.  Some functions are actually named
63821     something starting with __ and the normal name is an alias.  */
63822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63823 choke me
63824 #else
63825 char (*f) () = $ac_func;
63826 #endif
63827 #ifdef __cplusplus
63828 }
63829 #endif
63830
63831 int
63832 main ()
63833 {
63834 return f != $ac_func;
63835   ;
63836   return 0;
63837 }
63838 _ACEOF
63839 rm -f conftest.$ac_objext conftest$ac_exeext
63840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63841   (eval $ac_link) 2>conftest.er1
63842   ac_status=$?
63843   grep -v '^ *+' conftest.er1 >conftest.err
63844   rm -f conftest.er1
63845   cat conftest.err >&5
63846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63847   (exit $ac_status); } &&
63848          { ac_try='test -z "$ac_c_werror_flag"
63849                          || test ! -s conftest.err'
63850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63851   (eval $ac_try) 2>&5
63852   ac_status=$?
63853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63854   (exit $ac_status); }; } &&
63855          { ac_try='test -s conftest$ac_exeext'
63856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63857   (eval $ac_try) 2>&5
63858   ac_status=$?
63859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63860   (exit $ac_status); }; }; then
63861   eval "$as_ac_var=yes"
63862 else
63863   echo "$as_me: failed program was:" >&5
63864 sed 's/^/| /' conftest.$ac_ext >&5
63865
63866 eval "$as_ac_var=no"
63867 fi
63868 rm -f conftest.err conftest.$ac_objext \
63869       conftest$ac_exeext conftest.$ac_ext
63870 fi
63871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63873 if test `eval echo '${'$as_ac_var'}'` = yes; then
63874   cat >>confdefs.h <<_ACEOF
63875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63876 _ACEOF
63877
63878 else
63879   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
63880 fi
63881 done
63882
63883   fi
63884
63885   # XXX Review this.  Nothing uses it.
63886   if test -n "$LIBMATHOBJS"; then
63887     need_libmath=yes
63888   fi
63889
63890
63891
63892   # Test wchar.h for mbstate_t, which is needed for char_traits and
63893   # others even if wchar_t support is not on.
63894   echo "$as_me:$LINENO: checking for mbstate_t" >&5
63895 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
63896   cat >conftest.$ac_ext <<_ACEOF
63897 /* confdefs.h.  */
63898 _ACEOF
63899 cat confdefs.h >>conftest.$ac_ext
63900 cat >>conftest.$ac_ext <<_ACEOF
63901 /* end confdefs.h.  */
63902 #include <wchar.h>
63903 int
63904 main ()
63905 {
63906 mbstate_t teststate;
63907   ;
63908   return 0;
63909 }
63910 _ACEOF
63911 rm -f conftest.$ac_objext
63912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63913   (eval $ac_compile) 2>conftest.er1
63914   ac_status=$?
63915   grep -v '^ *+' conftest.er1 >conftest.err
63916   rm -f conftest.er1
63917   cat conftest.err >&5
63918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63919   (exit $ac_status); } &&
63920          { ac_try='test -z "$ac_c_werror_flag"
63921                          || test ! -s conftest.err'
63922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63923   (eval $ac_try) 2>&5
63924   ac_status=$?
63925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63926   (exit $ac_status); }; } &&
63927          { ac_try='test -s conftest.$ac_objext'
63928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63929   (eval $ac_try) 2>&5
63930   ac_status=$?
63931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63932   (exit $ac_status); }; }; then
63933   have_mbstate_t=yes
63934 else
63935   echo "$as_me: failed program was:" >&5
63936 sed 's/^/| /' conftest.$ac_ext >&5
63937
63938 have_mbstate_t=no
63939 fi
63940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63941   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
63942 echo "${ECHO_T}$have_mbstate_t" >&6
63943   if test x"$have_mbstate_t" = xyes; then
63944     cat >>confdefs.h <<\_ACEOF
63945 #define HAVE_MBSTATE_T 1
63946 _ACEOF
63947
63948   fi
63949
63950   # Sanity check for existence of ISO C99 headers for extended encoding.
63951
63952 for ac_header in wchar.h
63953 do
63954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63956   echo "$as_me:$LINENO: checking for $ac_header" >&5
63957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63959   echo $ECHO_N "(cached) $ECHO_C" >&6
63960 fi
63961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63963 else
63964   # Is the header compilable?
63965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63967 cat >conftest.$ac_ext <<_ACEOF
63968 /* confdefs.h.  */
63969 _ACEOF
63970 cat confdefs.h >>conftest.$ac_ext
63971 cat >>conftest.$ac_ext <<_ACEOF
63972 /* end confdefs.h.  */
63973 $ac_includes_default
63974 #include <$ac_header>
63975 _ACEOF
63976 rm -f conftest.$ac_objext
63977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63978   (eval $ac_compile) 2>conftest.er1
63979   ac_status=$?
63980   grep -v '^ *+' conftest.er1 >conftest.err
63981   rm -f conftest.er1
63982   cat conftest.err >&5
63983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63984   (exit $ac_status); } &&
63985          { ac_try='test -z "$ac_c_werror_flag"
63986                          || test ! -s conftest.err'
63987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63988   (eval $ac_try) 2>&5
63989   ac_status=$?
63990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63991   (exit $ac_status); }; } &&
63992          { ac_try='test -s conftest.$ac_objext'
63993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63994   (eval $ac_try) 2>&5
63995   ac_status=$?
63996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63997   (exit $ac_status); }; }; then
63998   ac_header_compiler=yes
63999 else
64000   echo "$as_me: failed program was:" >&5
64001 sed 's/^/| /' conftest.$ac_ext >&5
64002
64003 ac_header_compiler=no
64004 fi
64005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64007 echo "${ECHO_T}$ac_header_compiler" >&6
64008
64009 # Is the header present?
64010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64012 cat >conftest.$ac_ext <<_ACEOF
64013 /* confdefs.h.  */
64014 _ACEOF
64015 cat confdefs.h >>conftest.$ac_ext
64016 cat >>conftest.$ac_ext <<_ACEOF
64017 /* end confdefs.h.  */
64018 #include <$ac_header>
64019 _ACEOF
64020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64022   ac_status=$?
64023   grep -v '^ *+' conftest.er1 >conftest.err
64024   rm -f conftest.er1
64025   cat conftest.err >&5
64026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64027   (exit $ac_status); } >/dev/null; then
64028   if test -s conftest.err; then
64029     ac_cpp_err=$ac_c_preproc_warn_flag
64030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64031   else
64032     ac_cpp_err=
64033   fi
64034 else
64035   ac_cpp_err=yes
64036 fi
64037 if test -z "$ac_cpp_err"; then
64038   ac_header_preproc=yes
64039 else
64040   echo "$as_me: failed program was:" >&5
64041 sed 's/^/| /' conftest.$ac_ext >&5
64042
64043   ac_header_preproc=no
64044 fi
64045 rm -f conftest.err conftest.$ac_ext
64046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64047 echo "${ECHO_T}$ac_header_preproc" >&6
64048
64049 # So?  What about this header?
64050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64051   yes:no: )
64052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64056     ac_header_preproc=yes
64057     ;;
64058   no:yes:* )
64059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
64062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
64063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
64066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
64067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64071     (
64072       cat <<\_ASBOX
64073 ## ----------------------------------------- ##
64074 ## Report this to the package-unused lists.  ##
64075 ## ----------------------------------------- ##
64076 _ASBOX
64077     ) |
64078       sed "s/^/$as_me: WARNING:     /" >&2
64079     ;;
64080 esac
64081 echo "$as_me:$LINENO: checking for $ac_header" >&5
64082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64084   echo $ECHO_N "(cached) $ECHO_C" >&6
64085 else
64086   eval "$as_ac_Header=\$ac_header_preproc"
64087 fi
64088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64090
64091 fi
64092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64093   cat >>confdefs.h <<_ACEOF
64094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64095 _ACEOF
64096  ac_has_wchar_h=yes
64097 else
64098   ac_has_wchar_h=no
64099 fi
64100
64101 done
64102
64103
64104 for ac_header in wctype.h
64105 do
64106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64108   echo "$as_me:$LINENO: checking for $ac_header" >&5
64109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64111   echo $ECHO_N "(cached) $ECHO_C" >&6
64112 fi
64113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64115 else
64116   # Is the header compilable?
64117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64119 cat >conftest.$ac_ext <<_ACEOF
64120 /* confdefs.h.  */
64121 _ACEOF
64122 cat confdefs.h >>conftest.$ac_ext
64123 cat >>conftest.$ac_ext <<_ACEOF
64124 /* end confdefs.h.  */
64125 $ac_includes_default
64126 #include <$ac_header>
64127 _ACEOF
64128 rm -f conftest.$ac_objext
64129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64130   (eval $ac_compile) 2>conftest.er1
64131   ac_status=$?
64132   grep -v '^ *+' conftest.er1 >conftest.err
64133   rm -f conftest.er1
64134   cat conftest.err >&5
64135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64136   (exit $ac_status); } &&
64137          { ac_try='test -z "$ac_c_werror_flag"
64138                          || test ! -s conftest.err'
64139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64140   (eval $ac_try) 2>&5
64141   ac_status=$?
64142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64143   (exit $ac_status); }; } &&
64144          { ac_try='test -s conftest.$ac_objext'
64145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64146   (eval $ac_try) 2>&5
64147   ac_status=$?
64148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64149   (exit $ac_status); }; }; then
64150   ac_header_compiler=yes
64151 else
64152   echo "$as_me: failed program was:" >&5
64153 sed 's/^/| /' conftest.$ac_ext >&5
64154
64155 ac_header_compiler=no
64156 fi
64157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64159 echo "${ECHO_T}$ac_header_compiler" >&6
64160
64161 # Is the header present?
64162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64164 cat >conftest.$ac_ext <<_ACEOF
64165 /* confdefs.h.  */
64166 _ACEOF
64167 cat confdefs.h >>conftest.$ac_ext
64168 cat >>conftest.$ac_ext <<_ACEOF
64169 /* end confdefs.h.  */
64170 #include <$ac_header>
64171 _ACEOF
64172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64174   ac_status=$?
64175   grep -v '^ *+' conftest.er1 >conftest.err
64176   rm -f conftest.er1
64177   cat conftest.err >&5
64178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64179   (exit $ac_status); } >/dev/null; then
64180   if test -s conftest.err; then
64181     ac_cpp_err=$ac_c_preproc_warn_flag
64182     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64183   else
64184     ac_cpp_err=
64185   fi
64186 else
64187   ac_cpp_err=yes
64188 fi
64189 if test -z "$ac_cpp_err"; then
64190   ac_header_preproc=yes
64191 else
64192   echo "$as_me: failed program was:" >&5
64193 sed 's/^/| /' conftest.$ac_ext >&5
64194
64195   ac_header_preproc=no
64196 fi
64197 rm -f conftest.err conftest.$ac_ext
64198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64199 echo "${ECHO_T}$ac_header_preproc" >&6
64200
64201 # So?  What about this header?
64202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64203   yes:no: )
64204     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64208     ac_header_preproc=yes
64209     ;;
64210   no:yes:* )
64211     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64213     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
64214 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
64215     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64217     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
64218 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
64219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64221     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64223     (
64224       cat <<\_ASBOX
64225 ## ----------------------------------------- ##
64226 ## Report this to the package-unused lists.  ##
64227 ## ----------------------------------------- ##
64228 _ASBOX
64229     ) |
64230       sed "s/^/$as_me: WARNING:     /" >&2
64231     ;;
64232 esac
64233 echo "$as_me:$LINENO: checking for $ac_header" >&5
64234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64236   echo $ECHO_N "(cached) $ECHO_C" >&6
64237 else
64238   eval "$as_ac_Header=\$ac_header_preproc"
64239 fi
64240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64242
64243 fi
64244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64245   cat >>confdefs.h <<_ACEOF
64246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64247 _ACEOF
64248  ac_has_wctype_h=yes
64249 else
64250   ac_has_wctype_h=no
64251 fi
64252
64253 done
64254
64255
64256   # Only continue checking if the ISO C99 headers exist and support is on.
64257   if test x"$ac_has_wchar_h" = xyes &&
64258      test x"$ac_has_wctype_h" = xyes &&
64259      test x"$enable_c_mbchar" != xno; then
64260
64261     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
64262     # numeric_limits can instantiate type_traits<wchar_t>
64263     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
64264 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
64265     cat >conftest.$ac_ext <<_ACEOF
64266 /* confdefs.h.  */
64267 _ACEOF
64268 cat confdefs.h >>conftest.$ac_ext
64269 cat >>conftest.$ac_ext <<_ACEOF
64270 /* end confdefs.h.  */
64271 #include <wchar.h>
64272 int
64273 main ()
64274 {
64275 int i = WCHAR_MIN; int j = WCHAR_MAX;
64276   ;
64277   return 0;
64278 }
64279 _ACEOF
64280 rm -f conftest.$ac_objext
64281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64282   (eval $ac_compile) 2>conftest.er1
64283   ac_status=$?
64284   grep -v '^ *+' conftest.er1 >conftest.err
64285   rm -f conftest.er1
64286   cat conftest.err >&5
64287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64288   (exit $ac_status); } &&
64289          { ac_try='test -z "$ac_c_werror_flag"
64290                          || test ! -s conftest.err'
64291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64292   (eval $ac_try) 2>&5
64293   ac_status=$?
64294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64295   (exit $ac_status); }; } &&
64296          { ac_try='test -s conftest.$ac_objext'
64297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64298   (eval $ac_try) 2>&5
64299   ac_status=$?
64300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64301   (exit $ac_status); }; }; then
64302   has_wchar_minmax=yes
64303 else
64304   echo "$as_me: failed program was:" >&5
64305 sed 's/^/| /' conftest.$ac_ext >&5
64306
64307 has_wchar_minmax=no
64308 fi
64309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64310     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
64311 echo "${ECHO_T}$has_wchar_minmax" >&6
64312
64313     # Test wchar.h for WEOF, which is what we use to determine whether
64314     # to specialize for char_traits<wchar_t> or not.
64315     echo "$as_me:$LINENO: checking for WEOF" >&5
64316 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
64317     cat >conftest.$ac_ext <<_ACEOF
64318 /* confdefs.h.  */
64319 _ACEOF
64320 cat confdefs.h >>conftest.$ac_ext
64321 cat >>conftest.$ac_ext <<_ACEOF
64322 /* end confdefs.h.  */
64323
64324       #include <wchar.h>
64325       #include <stddef.h>
64326 int
64327 main ()
64328 {
64329 wint_t i = WEOF;
64330   ;
64331   return 0;
64332 }
64333 _ACEOF
64334 rm -f conftest.$ac_objext
64335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64336   (eval $ac_compile) 2>conftest.er1
64337   ac_status=$?
64338   grep -v '^ *+' conftest.er1 >conftest.err
64339   rm -f conftest.er1
64340   cat conftest.err >&5
64341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64342   (exit $ac_status); } &&
64343          { ac_try='test -z "$ac_c_werror_flag"
64344                          || test ! -s conftest.err'
64345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64346   (eval $ac_try) 2>&5
64347   ac_status=$?
64348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64349   (exit $ac_status); }; } &&
64350          { ac_try='test -s conftest.$ac_objext'
64351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64352   (eval $ac_try) 2>&5
64353   ac_status=$?
64354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64355   (exit $ac_status); }; }; then
64356   has_weof=yes
64357 else
64358   echo "$as_me: failed program was:" >&5
64359 sed 's/^/| /' conftest.$ac_ext >&5
64360
64361 has_weof=no
64362 fi
64363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64364     echo "$as_me:$LINENO: result: $has_weof" >&5
64365 echo "${ECHO_T}$has_weof" >&6
64366
64367     # Tests for wide character functions used in char_traits<wchar_t>.
64368     ac_wfuncs=yes
64369
64370
64371
64372
64373
64374
64375 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
64376 do
64377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64378 echo "$as_me:$LINENO: checking for $ac_func" >&5
64379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64380 if eval "test \"\${$as_ac_var+set}\" = set"; then
64381   echo $ECHO_N "(cached) $ECHO_C" >&6
64382 else
64383   if test x$gcc_no_link = xyes; then
64384   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64385 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64386    { (exit 1); exit 1; }; }
64387 fi
64388 cat >conftest.$ac_ext <<_ACEOF
64389 /* confdefs.h.  */
64390 _ACEOF
64391 cat confdefs.h >>conftest.$ac_ext
64392 cat >>conftest.$ac_ext <<_ACEOF
64393 /* end confdefs.h.  */
64394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64396 #define $ac_func innocuous_$ac_func
64397
64398 /* System header to define __stub macros and hopefully few prototypes,
64399     which can conflict with char $ac_func (); below.
64400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64401     <limits.h> exists even on freestanding compilers.  */
64402
64403 #ifdef __STDC__
64404 # include <limits.h>
64405 #else
64406 # include <assert.h>
64407 #endif
64408
64409 #undef $ac_func
64410
64411 /* Override any gcc2 internal prototype to avoid an error.  */
64412 #ifdef __cplusplus
64413 extern "C"
64414 {
64415 #endif
64416 /* We use char because int might match the return type of a gcc2
64417    builtin and then its argument prototype would still apply.  */
64418 char $ac_func ();
64419 /* The GNU C library defines this for functions which it implements
64420     to always fail with ENOSYS.  Some functions are actually named
64421     something starting with __ and the normal name is an alias.  */
64422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64423 choke me
64424 #else
64425 char (*f) () = $ac_func;
64426 #endif
64427 #ifdef __cplusplus
64428 }
64429 #endif
64430
64431 int
64432 main ()
64433 {
64434 return f != $ac_func;
64435   ;
64436   return 0;
64437 }
64438 _ACEOF
64439 rm -f conftest.$ac_objext conftest$ac_exeext
64440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64441   (eval $ac_link) 2>conftest.er1
64442   ac_status=$?
64443   grep -v '^ *+' conftest.er1 >conftest.err
64444   rm -f conftest.er1
64445   cat conftest.err >&5
64446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64447   (exit $ac_status); } &&
64448          { ac_try='test -z "$ac_c_werror_flag"
64449                          || test ! -s conftest.err'
64450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64451   (eval $ac_try) 2>&5
64452   ac_status=$?
64453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64454   (exit $ac_status); }; } &&
64455          { ac_try='test -s conftest$ac_exeext'
64456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64457   (eval $ac_try) 2>&5
64458   ac_status=$?
64459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64460   (exit $ac_status); }; }; then
64461   eval "$as_ac_var=yes"
64462 else
64463   echo "$as_me: failed program was:" >&5
64464 sed 's/^/| /' conftest.$ac_ext >&5
64465
64466 eval "$as_ac_var=no"
64467 fi
64468 rm -f conftest.err conftest.$ac_objext \
64469       conftest$ac_exeext conftest.$ac_ext
64470 fi
64471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64473 if test `eval echo '${'$as_ac_var'}'` = yes; then
64474   cat >>confdefs.h <<_ACEOF
64475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64476 _ACEOF
64477
64478 else
64479   ac_wfuncs=no
64480 fi
64481 done
64482
64483
64484     # Checks for names injected into std:: by the c_std headers.
64485
64486
64487
64488
64489
64490
64491
64492
64493
64494
64495
64496
64497
64498
64499
64500
64501
64502
64503
64504
64505
64506
64507
64508
64509
64510
64511
64512
64513
64514
64515
64516
64517
64518
64519
64520
64521
64522
64523
64524
64525
64526
64527
64528
64529
64530
64531 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
64532     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
64533     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
64534     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
64535     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
64536     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
64537 do
64538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64539 echo "$as_me:$LINENO: checking for $ac_func" >&5
64540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64541 if eval "test \"\${$as_ac_var+set}\" = set"; then
64542   echo $ECHO_N "(cached) $ECHO_C" >&6
64543 else
64544   if test x$gcc_no_link = xyes; then
64545   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64547    { (exit 1); exit 1; }; }
64548 fi
64549 cat >conftest.$ac_ext <<_ACEOF
64550 /* confdefs.h.  */
64551 _ACEOF
64552 cat confdefs.h >>conftest.$ac_ext
64553 cat >>conftest.$ac_ext <<_ACEOF
64554 /* end confdefs.h.  */
64555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64557 #define $ac_func innocuous_$ac_func
64558
64559 /* System header to define __stub macros and hopefully few prototypes,
64560     which can conflict with char $ac_func (); below.
64561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64562     <limits.h> exists even on freestanding compilers.  */
64563
64564 #ifdef __STDC__
64565 # include <limits.h>
64566 #else
64567 # include <assert.h>
64568 #endif
64569
64570 #undef $ac_func
64571
64572 /* Override any gcc2 internal prototype to avoid an error.  */
64573 #ifdef __cplusplus
64574 extern "C"
64575 {
64576 #endif
64577 /* We use char because int might match the return type of a gcc2
64578    builtin and then its argument prototype would still apply.  */
64579 char $ac_func ();
64580 /* The GNU C library defines this for functions which it implements
64581     to always fail with ENOSYS.  Some functions are actually named
64582     something starting with __ and the normal name is an alias.  */
64583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64584 choke me
64585 #else
64586 char (*f) () = $ac_func;
64587 #endif
64588 #ifdef __cplusplus
64589 }
64590 #endif
64591
64592 int
64593 main ()
64594 {
64595 return f != $ac_func;
64596   ;
64597   return 0;
64598 }
64599 _ACEOF
64600 rm -f conftest.$ac_objext conftest$ac_exeext
64601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64602   (eval $ac_link) 2>conftest.er1
64603   ac_status=$?
64604   grep -v '^ *+' conftest.er1 >conftest.err
64605   rm -f conftest.er1
64606   cat conftest.err >&5
64607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64608   (exit $ac_status); } &&
64609          { ac_try='test -z "$ac_c_werror_flag"
64610                          || test ! -s conftest.err'
64611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64612   (eval $ac_try) 2>&5
64613   ac_status=$?
64614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64615   (exit $ac_status); }; } &&
64616          { ac_try='test -s conftest$ac_exeext'
64617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64618   (eval $ac_try) 2>&5
64619   ac_status=$?
64620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64621   (exit $ac_status); }; }; then
64622   eval "$as_ac_var=yes"
64623 else
64624   echo "$as_me: failed program was:" >&5
64625 sed 's/^/| /' conftest.$ac_ext >&5
64626
64627 eval "$as_ac_var=no"
64628 fi
64629 rm -f conftest.err conftest.$ac_objext \
64630       conftest$ac_exeext conftest.$ac_ext
64631 fi
64632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64634 if test `eval echo '${'$as_ac_var'}'` = yes; then
64635   cat >>confdefs.h <<_ACEOF
64636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64637 _ACEOF
64638
64639 else
64640   ac_wfuncs=no
64641 fi
64642 done
64643
64644
64645     # Checks for wide character functions that are not required
64646     # for basic wchar_t support.  Don't disable support if they are missing.
64647     # Injection of these is wrapped with guard macros.
64648
64649
64650
64651
64652
64653 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
64654 do
64655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64656 echo "$as_me:$LINENO: checking for $ac_func" >&5
64657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64658 if eval "test \"\${$as_ac_var+set}\" = set"; then
64659   echo $ECHO_N "(cached) $ECHO_C" >&6
64660 else
64661   if test x$gcc_no_link = xyes; then
64662   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64663 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64664    { (exit 1); exit 1; }; }
64665 fi
64666 cat >conftest.$ac_ext <<_ACEOF
64667 /* confdefs.h.  */
64668 _ACEOF
64669 cat confdefs.h >>conftest.$ac_ext
64670 cat >>conftest.$ac_ext <<_ACEOF
64671 /* end confdefs.h.  */
64672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64674 #define $ac_func innocuous_$ac_func
64675
64676 /* System header to define __stub macros and hopefully few prototypes,
64677     which can conflict with char $ac_func (); below.
64678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64679     <limits.h> exists even on freestanding compilers.  */
64680
64681 #ifdef __STDC__
64682 # include <limits.h>
64683 #else
64684 # include <assert.h>
64685 #endif
64686
64687 #undef $ac_func
64688
64689 /* Override any gcc2 internal prototype to avoid an error.  */
64690 #ifdef __cplusplus
64691 extern "C"
64692 {
64693 #endif
64694 /* We use char because int might match the return type of a gcc2
64695    builtin and then its argument prototype would still apply.  */
64696 char $ac_func ();
64697 /* The GNU C library defines this for functions which it implements
64698     to always fail with ENOSYS.  Some functions are actually named
64699     something starting with __ and the normal name is an alias.  */
64700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64701 choke me
64702 #else
64703 char (*f) () = $ac_func;
64704 #endif
64705 #ifdef __cplusplus
64706 }
64707 #endif
64708
64709 int
64710 main ()
64711 {
64712 return f != $ac_func;
64713   ;
64714   return 0;
64715 }
64716 _ACEOF
64717 rm -f conftest.$ac_objext conftest$ac_exeext
64718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64719   (eval $ac_link) 2>conftest.er1
64720   ac_status=$?
64721   grep -v '^ *+' conftest.er1 >conftest.err
64722   rm -f conftest.er1
64723   cat conftest.err >&5
64724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64725   (exit $ac_status); } &&
64726          { ac_try='test -z "$ac_c_werror_flag"
64727                          || test ! -s conftest.err'
64728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64729   (eval $ac_try) 2>&5
64730   ac_status=$?
64731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64732   (exit $ac_status); }; } &&
64733          { ac_try='test -s conftest$ac_exeext'
64734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64735   (eval $ac_try) 2>&5
64736   ac_status=$?
64737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64738   (exit $ac_status); }; }; then
64739   eval "$as_ac_var=yes"
64740 else
64741   echo "$as_me: failed program was:" >&5
64742 sed 's/^/| /' conftest.$ac_ext >&5
64743
64744 eval "$as_ac_var=no"
64745 fi
64746 rm -f conftest.err conftest.$ac_objext \
64747       conftest$ac_exeext conftest.$ac_ext
64748 fi
64749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64751 if test `eval echo '${'$as_ac_var'}'` = yes; then
64752   cat >>confdefs.h <<_ACEOF
64753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64754 _ACEOF
64755
64756 fi
64757 done
64758
64759
64760     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
64761 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
64762     if test x"$has_weof" = xyes &&
64763        test x"$has_wchar_minmax" = xyes &&
64764        test x"$ac_wfuncs" = xyes;
64765     then
64766       ac_isoC99_wchar_t=yes
64767     else
64768       ac_isoC99_wchar_t=no
64769     fi
64770     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
64771 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
64772
64773     # Use iconv for wchar_t to char conversions. As such, check for
64774     # X/Open Portability Guide, version 2 features (XPG2).
64775     if test "${ac_cv_header_iconv_h+set}" = set; then
64776   echo "$as_me:$LINENO: checking for iconv.h" >&5
64777 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
64778 if test "${ac_cv_header_iconv_h+set}" = set; then
64779   echo $ECHO_N "(cached) $ECHO_C" >&6
64780 fi
64781 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
64782 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
64783 else
64784   # Is the header compilable?
64785 echo "$as_me:$LINENO: checking iconv.h usability" >&5
64786 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
64787 cat >conftest.$ac_ext <<_ACEOF
64788 /* confdefs.h.  */
64789 _ACEOF
64790 cat confdefs.h >>conftest.$ac_ext
64791 cat >>conftest.$ac_ext <<_ACEOF
64792 /* end confdefs.h.  */
64793 $ac_includes_default
64794 #include <iconv.h>
64795 _ACEOF
64796 rm -f conftest.$ac_objext
64797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64798   (eval $ac_compile) 2>conftest.er1
64799   ac_status=$?
64800   grep -v '^ *+' conftest.er1 >conftest.err
64801   rm -f conftest.er1
64802   cat conftest.err >&5
64803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64804   (exit $ac_status); } &&
64805          { ac_try='test -z "$ac_c_werror_flag"
64806                          || test ! -s conftest.err'
64807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64808   (eval $ac_try) 2>&5
64809   ac_status=$?
64810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64811   (exit $ac_status); }; } &&
64812          { ac_try='test -s conftest.$ac_objext'
64813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64814   (eval $ac_try) 2>&5
64815   ac_status=$?
64816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64817   (exit $ac_status); }; }; then
64818   ac_header_compiler=yes
64819 else
64820   echo "$as_me: failed program was:" >&5
64821 sed 's/^/| /' conftest.$ac_ext >&5
64822
64823 ac_header_compiler=no
64824 fi
64825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64827 echo "${ECHO_T}$ac_header_compiler" >&6
64828
64829 # Is the header present?
64830 echo "$as_me:$LINENO: checking iconv.h presence" >&5
64831 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
64832 cat >conftest.$ac_ext <<_ACEOF
64833 /* confdefs.h.  */
64834 _ACEOF
64835 cat confdefs.h >>conftest.$ac_ext
64836 cat >>conftest.$ac_ext <<_ACEOF
64837 /* end confdefs.h.  */
64838 #include <iconv.h>
64839 _ACEOF
64840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64842   ac_status=$?
64843   grep -v '^ *+' conftest.er1 >conftest.err
64844   rm -f conftest.er1
64845   cat conftest.err >&5
64846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64847   (exit $ac_status); } >/dev/null; then
64848   if test -s conftest.err; then
64849     ac_cpp_err=$ac_c_preproc_warn_flag
64850     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64851   else
64852     ac_cpp_err=
64853   fi
64854 else
64855   ac_cpp_err=yes
64856 fi
64857 if test -z "$ac_cpp_err"; then
64858   ac_header_preproc=yes
64859 else
64860   echo "$as_me: failed program was:" >&5
64861 sed 's/^/| /' conftest.$ac_ext >&5
64862
64863   ac_header_preproc=no
64864 fi
64865 rm -f conftest.err conftest.$ac_ext
64866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64867 echo "${ECHO_T}$ac_header_preproc" >&6
64868
64869 # So?  What about this header?
64870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64871   yes:no: )
64872     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
64873 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
64874     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
64875 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
64876     ac_header_preproc=yes
64877     ;;
64878   no:yes:* )
64879     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
64880 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
64881     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
64882 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
64883     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
64884 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
64885     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
64886 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
64887     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
64888 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
64889     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
64890 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
64891     (
64892       cat <<\_ASBOX
64893 ## ----------------------------------------- ##
64894 ## Report this to the package-unused lists.  ##
64895 ## ----------------------------------------- ##
64896 _ASBOX
64897     ) |
64898       sed "s/^/$as_me: WARNING:     /" >&2
64899     ;;
64900 esac
64901 echo "$as_me:$LINENO: checking for iconv.h" >&5
64902 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
64903 if test "${ac_cv_header_iconv_h+set}" = set; then
64904   echo $ECHO_N "(cached) $ECHO_C" >&6
64905 else
64906   ac_cv_header_iconv_h=$ac_header_preproc
64907 fi
64908 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
64909 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
64910
64911 fi
64912 if test $ac_cv_header_iconv_h = yes; then
64913   ac_has_iconv_h=yes
64914 else
64915   ac_has_iconv_h=no
64916 fi
64917
64918
64919     if test "${ac_cv_header_langinfo_h+set}" = set; then
64920   echo "$as_me:$LINENO: checking for langinfo.h" >&5
64921 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
64922 if test "${ac_cv_header_langinfo_h+set}" = set; then
64923   echo $ECHO_N "(cached) $ECHO_C" >&6
64924 fi
64925 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
64926 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
64927 else
64928   # Is the header compilable?
64929 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
64930 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
64931 cat >conftest.$ac_ext <<_ACEOF
64932 /* confdefs.h.  */
64933 _ACEOF
64934 cat confdefs.h >>conftest.$ac_ext
64935 cat >>conftest.$ac_ext <<_ACEOF
64936 /* end confdefs.h.  */
64937 $ac_includes_default
64938 #include <langinfo.h>
64939 _ACEOF
64940 rm -f conftest.$ac_objext
64941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64942   (eval $ac_compile) 2>conftest.er1
64943   ac_status=$?
64944   grep -v '^ *+' conftest.er1 >conftest.err
64945   rm -f conftest.er1
64946   cat conftest.err >&5
64947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64948   (exit $ac_status); } &&
64949          { ac_try='test -z "$ac_c_werror_flag"
64950                          || test ! -s conftest.err'
64951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64952   (eval $ac_try) 2>&5
64953   ac_status=$?
64954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64955   (exit $ac_status); }; } &&
64956          { ac_try='test -s conftest.$ac_objext'
64957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64958   (eval $ac_try) 2>&5
64959   ac_status=$?
64960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64961   (exit $ac_status); }; }; then
64962   ac_header_compiler=yes
64963 else
64964   echo "$as_me: failed program was:" >&5
64965 sed 's/^/| /' conftest.$ac_ext >&5
64966
64967 ac_header_compiler=no
64968 fi
64969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64971 echo "${ECHO_T}$ac_header_compiler" >&6
64972
64973 # Is the header present?
64974 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
64975 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
64976 cat >conftest.$ac_ext <<_ACEOF
64977 /* confdefs.h.  */
64978 _ACEOF
64979 cat confdefs.h >>conftest.$ac_ext
64980 cat >>conftest.$ac_ext <<_ACEOF
64981 /* end confdefs.h.  */
64982 #include <langinfo.h>
64983 _ACEOF
64984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64985   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64986   ac_status=$?
64987   grep -v '^ *+' conftest.er1 >conftest.err
64988   rm -f conftest.er1
64989   cat conftest.err >&5
64990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64991   (exit $ac_status); } >/dev/null; then
64992   if test -s conftest.err; then
64993     ac_cpp_err=$ac_c_preproc_warn_flag
64994     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64995   else
64996     ac_cpp_err=
64997   fi
64998 else
64999   ac_cpp_err=yes
65000 fi
65001 if test -z "$ac_cpp_err"; then
65002   ac_header_preproc=yes
65003 else
65004   echo "$as_me: failed program was:" >&5
65005 sed 's/^/| /' conftest.$ac_ext >&5
65006
65007   ac_header_preproc=no
65008 fi
65009 rm -f conftest.err conftest.$ac_ext
65010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65011 echo "${ECHO_T}$ac_header_preproc" >&6
65012
65013 # So?  What about this header?
65014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65015   yes:no: )
65016     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
65017 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
65018     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
65019 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
65020     ac_header_preproc=yes
65021     ;;
65022   no:yes:* )
65023     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
65024 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
65025     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
65026 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
65027     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
65028 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
65029     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
65030 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
65031     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
65032 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
65033     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
65034 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
65035     (
65036       cat <<\_ASBOX
65037 ## ----------------------------------------- ##
65038 ## Report this to the package-unused lists.  ##
65039 ## ----------------------------------------- ##
65040 _ASBOX
65041     ) |
65042       sed "s/^/$as_me: WARNING:     /" >&2
65043     ;;
65044 esac
65045 echo "$as_me:$LINENO: checking for langinfo.h" >&5
65046 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
65047 if test "${ac_cv_header_langinfo_h+set}" = set; then
65048   echo $ECHO_N "(cached) $ECHO_C" >&6
65049 else
65050   ac_cv_header_langinfo_h=$ac_header_preproc
65051 fi
65052 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
65053 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
65054
65055 fi
65056 if test $ac_cv_header_langinfo_h = yes; then
65057   ac_has_langinfo_h=yes
65058 else
65059   ac_has_langinfo_h=no
65060 fi
65061
65062
65063
65064     # Check for existence of libiconv.a providing XPG2 wchar_t support.
65065     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
65066 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
65067 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
65068   echo $ECHO_N "(cached) $ECHO_C" >&6
65069 else
65070   ac_check_lib_save_LIBS=$LIBS
65071 LIBS="-liconv  $LIBS"
65072 if test x$gcc_no_link = xyes; then
65073   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65075    { (exit 1); exit 1; }; }
65076 fi
65077 cat >conftest.$ac_ext <<_ACEOF
65078 /* confdefs.h.  */
65079 _ACEOF
65080 cat confdefs.h >>conftest.$ac_ext
65081 cat >>conftest.$ac_ext <<_ACEOF
65082 /* end confdefs.h.  */
65083
65084 /* Override any gcc2 internal prototype to avoid an error.  */
65085 #ifdef __cplusplus
65086 extern "C"
65087 #endif
65088 /* We use char because int might match the return type of a gcc2
65089    builtin and then its argument prototype would still apply.  */
65090 char iconv ();
65091 int
65092 main ()
65093 {
65094 iconv ();
65095   ;
65096   return 0;
65097 }
65098 _ACEOF
65099 rm -f conftest.$ac_objext conftest$ac_exeext
65100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65101   (eval $ac_link) 2>conftest.er1
65102   ac_status=$?
65103   grep -v '^ *+' conftest.er1 >conftest.err
65104   rm -f conftest.er1
65105   cat conftest.err >&5
65106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65107   (exit $ac_status); } &&
65108          { ac_try='test -z "$ac_c_werror_flag"
65109                          || test ! -s conftest.err'
65110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65111   (eval $ac_try) 2>&5
65112   ac_status=$?
65113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65114   (exit $ac_status); }; } &&
65115          { ac_try='test -s conftest$ac_exeext'
65116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65117   (eval $ac_try) 2>&5
65118   ac_status=$?
65119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65120   (exit $ac_status); }; }; then
65121   ac_cv_lib_iconv_iconv=yes
65122 else
65123   echo "$as_me: failed program was:" >&5
65124 sed 's/^/| /' conftest.$ac_ext >&5
65125
65126 ac_cv_lib_iconv_iconv=no
65127 fi
65128 rm -f conftest.err conftest.$ac_objext \
65129       conftest$ac_exeext conftest.$ac_ext
65130 LIBS=$ac_check_lib_save_LIBS
65131 fi
65132 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
65133 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
65134 if test $ac_cv_lib_iconv_iconv = yes; then
65135   libiconv="-liconv"
65136 fi
65137
65138     ac_save_LIBS="$LIBS"
65139     LIBS="$LIBS $libiconv"
65140
65141
65142
65143
65144
65145 for ac_func in iconv_open iconv_close iconv nl_langinfo
65146 do
65147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65148 echo "$as_me:$LINENO: checking for $ac_func" >&5
65149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65150 if eval "test \"\${$as_ac_var+set}\" = set"; then
65151   echo $ECHO_N "(cached) $ECHO_C" >&6
65152 else
65153   if test x$gcc_no_link = xyes; then
65154   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65156    { (exit 1); exit 1; }; }
65157 fi
65158 cat >conftest.$ac_ext <<_ACEOF
65159 /* confdefs.h.  */
65160 _ACEOF
65161 cat confdefs.h >>conftest.$ac_ext
65162 cat >>conftest.$ac_ext <<_ACEOF
65163 /* end confdefs.h.  */
65164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65166 #define $ac_func innocuous_$ac_func
65167
65168 /* System header to define __stub macros and hopefully few prototypes,
65169     which can conflict with char $ac_func (); below.
65170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65171     <limits.h> exists even on freestanding compilers.  */
65172
65173 #ifdef __STDC__
65174 # include <limits.h>
65175 #else
65176 # include <assert.h>
65177 #endif
65178
65179 #undef $ac_func
65180
65181 /* Override any gcc2 internal prototype to avoid an error.  */
65182 #ifdef __cplusplus
65183 extern "C"
65184 {
65185 #endif
65186 /* We use char because int might match the return type of a gcc2
65187    builtin and then its argument prototype would still apply.  */
65188 char $ac_func ();
65189 /* The GNU C library defines this for functions which it implements
65190     to always fail with ENOSYS.  Some functions are actually named
65191     something starting with __ and the normal name is an alias.  */
65192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65193 choke me
65194 #else
65195 char (*f) () = $ac_func;
65196 #endif
65197 #ifdef __cplusplus
65198 }
65199 #endif
65200
65201 int
65202 main ()
65203 {
65204 return f != $ac_func;
65205   ;
65206   return 0;
65207 }
65208 _ACEOF
65209 rm -f conftest.$ac_objext conftest$ac_exeext
65210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65211   (eval $ac_link) 2>conftest.er1
65212   ac_status=$?
65213   grep -v '^ *+' conftest.er1 >conftest.err
65214   rm -f conftest.er1
65215   cat conftest.err >&5
65216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65217   (exit $ac_status); } &&
65218          { ac_try='test -z "$ac_c_werror_flag"
65219                          || test ! -s conftest.err'
65220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65221   (eval $ac_try) 2>&5
65222   ac_status=$?
65223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65224   (exit $ac_status); }; } &&
65225          { ac_try='test -s conftest$ac_exeext'
65226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65227   (eval $ac_try) 2>&5
65228   ac_status=$?
65229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65230   (exit $ac_status); }; }; then
65231   eval "$as_ac_var=yes"
65232 else
65233   echo "$as_me: failed program was:" >&5
65234 sed 's/^/| /' conftest.$ac_ext >&5
65235
65236 eval "$as_ac_var=no"
65237 fi
65238 rm -f conftest.err conftest.$ac_objext \
65239       conftest$ac_exeext conftest.$ac_ext
65240 fi
65241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65243 if test `eval echo '${'$as_ac_var'}'` = yes; then
65244   cat >>confdefs.h <<_ACEOF
65245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65246 _ACEOF
65247  ac_XPG2funcs=yes
65248 else
65249   ac_XPG2funcs=no
65250 fi
65251 done
65252
65253
65254     LIBS="$ac_save_LIBS"
65255
65256     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
65257 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
65258     if test x"$ac_has_iconv_h" = xyes &&
65259        test x"$ac_has_langinfo_h" = xyes &&
65260        test x"$ac_XPG2funcs" = xyes;
65261     then
65262       ac_XPG2_wchar_t=yes
65263     else
65264       ac_XPG2_wchar_t=no
65265     fi
65266     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
65267 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
65268
65269     # At the moment, only enable wchar_t specializations if all the
65270     # above support is present.
65271     if test x"$ac_isoC99_wchar_t" = xyes &&
65272        test x"$ac_XPG2_wchar_t" = xyes;
65273     then
65274       cat >>confdefs.h <<\_ACEOF
65275 #define _GLIBCXX_USE_WCHAR_T 1
65276 _ACEOF
65277
65278       enable_wchar_t=yes
65279     fi
65280   fi
65281   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
65282 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
65283   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
65284 echo "${ECHO_T}$enable_wchar_t" >&6
65285
65286     cat >>confdefs.h <<\_ACEOF
65287 #define HAVE_COPYSIGN 1
65288 _ACEOF
65289
65290     cat >>confdefs.h <<\_ACEOF
65291 #define HAVE_COPYSIGNF 1
65292 _ACEOF
65293
65294     cat >>confdefs.h <<\_ACEOF
65295 #define HAVE_FINITEF 1
65296 _ACEOF
65297
65298     cat >>confdefs.h <<\_ACEOF
65299 #define HAVE_FINITE 1
65300 _ACEOF
65301
65302     cat >>confdefs.h <<\_ACEOF
65303 #define HAVE_FREXPF 1
65304 _ACEOF
65305
65306     cat >>confdefs.h <<\_ACEOF
65307 #define HAVE_HYPOTF 1
65308 _ACEOF
65309
65310     cat >>confdefs.h <<\_ACEOF
65311 #define HAVE_ISINF 1
65312 _ACEOF
65313
65314     cat >>confdefs.h <<\_ACEOF
65315 #define HAVE_ISINFF 1
65316 _ACEOF
65317
65318     cat >>confdefs.h <<\_ACEOF
65319 #define HAVE_ISNAN 1
65320 _ACEOF
65321
65322     cat >>confdefs.h <<\_ACEOF
65323 #define HAVE_ISNANF 1
65324 _ACEOF
65325
65326     if test x"long_double_math_on_this_cpu" = x"yes"; then
65327       cat >>confdefs.h <<\_ACEOF
65328 #define HAVE_FINITEL 1
65329 _ACEOF
65330
65331       cat >>confdefs.h <<\_ACEOF
65332 #define HAVE_ISINFL 1
65333 _ACEOF
65334
65335       cat >>confdefs.h <<\_ACEOF
65336 #define HAVE_ISNANL 1
65337 _ACEOF
65338
65339     fi
65340     ;;
65341   *-qnx6.1* | *-qnx6.2*)
65342     SECTION_FLAGS='-ffunction-sections -fdata-sections'
65343
65344
65345   # If we're not using GNU ld, then there's no point in even trying these
65346   # tests.  Check for that first.  We should have already tested for gld
65347   # by now (in libtool), but require it now just to be safe...
65348   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
65349   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
65350
65351
65352
65353   # The name set by libtool depends on the version of libtool.  Shame on us
65354   # for depending on an impl detail, but c'est la vie.  Older versions used
65355   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
65356   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
65357   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
65358   # set (hence we're using an older libtool), then set it.
65359   if test x${with_gnu_ld+set} != xset; then
65360     if test x${ac_cv_prog_gnu_ld+set} != xset; then
65361       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
65362       with_gnu_ld=no
65363     else
65364       with_gnu_ld=$ac_cv_prog_gnu_ld
65365     fi
65366   fi
65367
65368   # Start by getting the version number.  I think the libtool test already
65369   # does some of this, but throws away the result.
65370
65371   ldver=`$LD --version 2>/dev/null | head -1 | \
65372          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
65373
65374   glibcxx_gnu_ld_version=`echo $ldver | \
65375          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
65376
65377   # Set --gc-sections.
65378   if test "$with_gnu_ld" = "notbroken"; then
65379     # GNU ld it is!  Joy and bunny rabbits!
65380
65381     # All these tests are for C++; save the language and the compiler flags.
65382     # Need to do this so that g++ won't try to link in libstdc++
65383     ac_test_CFLAGS="${CFLAGS+set}"
65384     ac_save_CFLAGS="$CFLAGS"
65385     CFLAGS='-x c++  -Wl,--gc-sections'
65386
65387     # Check for -Wl,--gc-sections
65388     # XXX This test is broken at the moment, as symbols required for linking
65389     # are now in libsupc++ (not built yet).  In addition, this test has
65390     # cored on solaris in the past.  In addition, --gc-sections doesn't
65391     # really work at the moment (keeps on discarding used sections, first
65392     # .eh_frame and now some of the glibc sections for iconv).
65393     # Bzzzzt.  Thanks for playing, maybe next time.
65394     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
65395 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
65396     if test "$cross_compiling" = yes; then
65397   ac_sectionLDflags=yes
65398 else
65399   cat >conftest.$ac_ext <<_ACEOF
65400 /* confdefs.h.  */
65401 _ACEOF
65402 cat confdefs.h >>conftest.$ac_ext
65403 cat >>conftest.$ac_ext <<_ACEOF
65404 /* end confdefs.h.  */
65405
65406      int main(void)
65407      {
65408        try { throw 1; }
65409        catch (...) { };
65410        return 0;
65411      }
65412
65413 _ACEOF
65414 rm -f conftest$ac_exeext
65415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65416   (eval $ac_link) 2>&5
65417   ac_status=$?
65418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65421   (eval $ac_try) 2>&5
65422   ac_status=$?
65423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65424   (exit $ac_status); }; }; then
65425   ac_sectionLDflags=yes
65426 else
65427   echo "$as_me: program exited with status $ac_status" >&5
65428 echo "$as_me: failed program was:" >&5
65429 sed 's/^/| /' conftest.$ac_ext >&5
65430
65431 ( exit $ac_status )
65432 ac_sectionLDflags=no
65433 fi
65434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65435 fi
65436     if test "$ac_test_CFLAGS" = set; then
65437       CFLAGS="$ac_save_CFLAGS"
65438     else
65439       # this is the suspicious part
65440       CFLAGS=''
65441     fi
65442     if test "$ac_sectionLDflags" = "yes"; then
65443       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
65444     fi
65445     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
65446 echo "${ECHO_T}$ac_sectionLDflags" >&6
65447   fi
65448
65449   # Set linker optimization flags.
65450   if test x"$with_gnu_ld" = x"yes"; then
65451     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
65452   fi
65453
65454
65455
65456
65457
65458
65459 echo "$as_me:$LINENO: checking for main in -lm" >&5
65460 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
65461 if test "${ac_cv_lib_m_main+set}" = set; then
65462   echo $ECHO_N "(cached) $ECHO_C" >&6
65463 else
65464   ac_check_lib_save_LIBS=$LIBS
65465 LIBS="-lm  $LIBS"
65466 if test x$gcc_no_link = xyes; then
65467   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65469    { (exit 1); exit 1; }; }
65470 fi
65471 cat >conftest.$ac_ext <<_ACEOF
65472 /* confdefs.h.  */
65473 _ACEOF
65474 cat confdefs.h >>conftest.$ac_ext
65475 cat >>conftest.$ac_ext <<_ACEOF
65476 /* end confdefs.h.  */
65477
65478
65479 int
65480 main ()
65481 {
65482 main ();
65483   ;
65484   return 0;
65485 }
65486 _ACEOF
65487 rm -f conftest.$ac_objext conftest$ac_exeext
65488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65489   (eval $ac_link) 2>conftest.er1
65490   ac_status=$?
65491   grep -v '^ *+' conftest.er1 >conftest.err
65492   rm -f conftest.er1
65493   cat conftest.err >&5
65494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65495   (exit $ac_status); } &&
65496          { ac_try='test -z "$ac_c_werror_flag"
65497                          || test ! -s conftest.err'
65498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65499   (eval $ac_try) 2>&5
65500   ac_status=$?
65501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65502   (exit $ac_status); }; } &&
65503          { ac_try='test -s conftest$ac_exeext'
65504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65505   (eval $ac_try) 2>&5
65506   ac_status=$?
65507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65508   (exit $ac_status); }; }; then
65509   ac_cv_lib_m_main=yes
65510 else
65511   echo "$as_me: failed program was:" >&5
65512 sed 's/^/| /' conftest.$ac_ext >&5
65513
65514 ac_cv_lib_m_main=no
65515 fi
65516 rm -f conftest.err conftest.$ac_objext \
65517       conftest$ac_exeext conftest.$ac_ext
65518 LIBS=$ac_check_lib_save_LIBS
65519 fi
65520 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
65521 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
65522 if test $ac_cv_lib_m_main = yes; then
65523   cat >>confdefs.h <<_ACEOF
65524 #define HAVE_LIBM 1
65525 _ACEOF
65526
65527   LIBS="-lm $LIBS"
65528
65529 fi
65530
65531
65532 for ac_func in copysignf
65533 do
65534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65535 echo "$as_me:$LINENO: checking for $ac_func" >&5
65536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65537 if eval "test \"\${$as_ac_var+set}\" = set"; then
65538   echo $ECHO_N "(cached) $ECHO_C" >&6
65539 else
65540   if test x$gcc_no_link = xyes; then
65541   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65543    { (exit 1); exit 1; }; }
65544 fi
65545 cat >conftest.$ac_ext <<_ACEOF
65546 /* confdefs.h.  */
65547 _ACEOF
65548 cat confdefs.h >>conftest.$ac_ext
65549 cat >>conftest.$ac_ext <<_ACEOF
65550 /* end confdefs.h.  */
65551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65553 #define $ac_func innocuous_$ac_func
65554
65555 /* System header to define __stub macros and hopefully few prototypes,
65556     which can conflict with char $ac_func (); below.
65557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65558     <limits.h> exists even on freestanding compilers.  */
65559
65560 #ifdef __STDC__
65561 # include <limits.h>
65562 #else
65563 # include <assert.h>
65564 #endif
65565
65566 #undef $ac_func
65567
65568 /* Override any gcc2 internal prototype to avoid an error.  */
65569 #ifdef __cplusplus
65570 extern "C"
65571 {
65572 #endif
65573 /* We use char because int might match the return type of a gcc2
65574    builtin and then its argument prototype would still apply.  */
65575 char $ac_func ();
65576 /* The GNU C library defines this for functions which it implements
65577     to always fail with ENOSYS.  Some functions are actually named
65578     something starting with __ and the normal name is an alias.  */
65579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65580 choke me
65581 #else
65582 char (*f) () = $ac_func;
65583 #endif
65584 #ifdef __cplusplus
65585 }
65586 #endif
65587
65588 int
65589 main ()
65590 {
65591 return f != $ac_func;
65592   ;
65593   return 0;
65594 }
65595 _ACEOF
65596 rm -f conftest.$ac_objext conftest$ac_exeext
65597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65598   (eval $ac_link) 2>conftest.er1
65599   ac_status=$?
65600   grep -v '^ *+' conftest.er1 >conftest.err
65601   rm -f conftest.er1
65602   cat conftest.err >&5
65603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65604   (exit $ac_status); } &&
65605          { ac_try='test -z "$ac_c_werror_flag"
65606                          || test ! -s conftest.err'
65607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65608   (eval $ac_try) 2>&5
65609   ac_status=$?
65610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65611   (exit $ac_status); }; } &&
65612          { ac_try='test -s conftest$ac_exeext'
65613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65614   (eval $ac_try) 2>&5
65615   ac_status=$?
65616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65617   (exit $ac_status); }; }; then
65618   eval "$as_ac_var=yes"
65619 else
65620   echo "$as_me: failed program was:" >&5
65621 sed 's/^/| /' conftest.$ac_ext >&5
65622
65623 eval "$as_ac_var=no"
65624 fi
65625 rm -f conftest.err conftest.$ac_objext \
65626       conftest$ac_exeext conftest.$ac_ext
65627 fi
65628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65630 if test `eval echo '${'$as_ac_var'}'` = yes; then
65631   cat >>confdefs.h <<_ACEOF
65632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65633 _ACEOF
65634
65635 else
65636   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
65637 fi
65638 done
65639
65640
65641
65642 for ac_func in __signbit
65643 do
65644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65645 echo "$as_me:$LINENO: checking for $ac_func" >&5
65646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65647 if eval "test \"\${$as_ac_var+set}\" = set"; then
65648   echo $ECHO_N "(cached) $ECHO_C" >&6
65649 else
65650   if test x$gcc_no_link = xyes; then
65651   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65653    { (exit 1); exit 1; }; }
65654 fi
65655 cat >conftest.$ac_ext <<_ACEOF
65656 /* confdefs.h.  */
65657 _ACEOF
65658 cat confdefs.h >>conftest.$ac_ext
65659 cat >>conftest.$ac_ext <<_ACEOF
65660 /* end confdefs.h.  */
65661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65663 #define $ac_func innocuous_$ac_func
65664
65665 /* System header to define __stub macros and hopefully few prototypes,
65666     which can conflict with char $ac_func (); below.
65667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65668     <limits.h> exists even on freestanding compilers.  */
65669
65670 #ifdef __STDC__
65671 # include <limits.h>
65672 #else
65673 # include <assert.h>
65674 #endif
65675
65676 #undef $ac_func
65677
65678 /* Override any gcc2 internal prototype to avoid an error.  */
65679 #ifdef __cplusplus
65680 extern "C"
65681 {
65682 #endif
65683 /* We use char because int might match the return type of a gcc2
65684    builtin and then its argument prototype would still apply.  */
65685 char $ac_func ();
65686 /* The GNU C library defines this for functions which it implements
65687     to always fail with ENOSYS.  Some functions are actually named
65688     something starting with __ and the normal name is an alias.  */
65689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65690 choke me
65691 #else
65692 char (*f) () = $ac_func;
65693 #endif
65694 #ifdef __cplusplus
65695 }
65696 #endif
65697
65698 int
65699 main ()
65700 {
65701 return f != $ac_func;
65702   ;
65703   return 0;
65704 }
65705 _ACEOF
65706 rm -f conftest.$ac_objext conftest$ac_exeext
65707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65708   (eval $ac_link) 2>conftest.er1
65709   ac_status=$?
65710   grep -v '^ *+' conftest.er1 >conftest.err
65711   rm -f conftest.er1
65712   cat conftest.err >&5
65713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65714   (exit $ac_status); } &&
65715          { ac_try='test -z "$ac_c_werror_flag"
65716                          || test ! -s conftest.err'
65717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65718   (eval $ac_try) 2>&5
65719   ac_status=$?
65720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65721   (exit $ac_status); }; } &&
65722          { ac_try='test -s conftest$ac_exeext'
65723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65724   (eval $ac_try) 2>&5
65725   ac_status=$?
65726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65727   (exit $ac_status); }; }; then
65728   eval "$as_ac_var=yes"
65729 else
65730   echo "$as_me: failed program was:" >&5
65731 sed 's/^/| /' conftest.$ac_ext >&5
65732
65733 eval "$as_ac_var=no"
65734 fi
65735 rm -f conftest.err conftest.$ac_objext \
65736       conftest$ac_exeext conftest.$ac_ext
65737 fi
65738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65740 if test `eval echo '${'$as_ac_var'}'` = yes; then
65741   cat >>confdefs.h <<_ACEOF
65742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65743 _ACEOF
65744
65745 else
65746   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
65747 fi
65748 done
65749
65750
65751 for ac_func in __signbitf
65752 do
65753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65754 echo "$as_me:$LINENO: checking for $ac_func" >&5
65755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65756 if eval "test \"\${$as_ac_var+set}\" = set"; then
65757   echo $ECHO_N "(cached) $ECHO_C" >&6
65758 else
65759   if test x$gcc_no_link = xyes; then
65760   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65761 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65762    { (exit 1); exit 1; }; }
65763 fi
65764 cat >conftest.$ac_ext <<_ACEOF
65765 /* confdefs.h.  */
65766 _ACEOF
65767 cat confdefs.h >>conftest.$ac_ext
65768 cat >>conftest.$ac_ext <<_ACEOF
65769 /* end confdefs.h.  */
65770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65772 #define $ac_func innocuous_$ac_func
65773
65774 /* System header to define __stub macros and hopefully few prototypes,
65775     which can conflict with char $ac_func (); below.
65776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65777     <limits.h> exists even on freestanding compilers.  */
65778
65779 #ifdef __STDC__
65780 # include <limits.h>
65781 #else
65782 # include <assert.h>
65783 #endif
65784
65785 #undef $ac_func
65786
65787 /* Override any gcc2 internal prototype to avoid an error.  */
65788 #ifdef __cplusplus
65789 extern "C"
65790 {
65791 #endif
65792 /* We use char because int might match the return type of a gcc2
65793    builtin and then its argument prototype would still apply.  */
65794 char $ac_func ();
65795 /* The GNU C library defines this for functions which it implements
65796     to always fail with ENOSYS.  Some functions are actually named
65797     something starting with __ and the normal name is an alias.  */
65798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65799 choke me
65800 #else
65801 char (*f) () = $ac_func;
65802 #endif
65803 #ifdef __cplusplus
65804 }
65805 #endif
65806
65807 int
65808 main ()
65809 {
65810 return f != $ac_func;
65811   ;
65812   return 0;
65813 }
65814 _ACEOF
65815 rm -f conftest.$ac_objext conftest$ac_exeext
65816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65817   (eval $ac_link) 2>conftest.er1
65818   ac_status=$?
65819   grep -v '^ *+' conftest.er1 >conftest.err
65820   rm -f conftest.er1
65821   cat conftest.err >&5
65822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65823   (exit $ac_status); } &&
65824          { ac_try='test -z "$ac_c_werror_flag"
65825                          || test ! -s conftest.err'
65826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65827   (eval $ac_try) 2>&5
65828   ac_status=$?
65829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65830   (exit $ac_status); }; } &&
65831          { ac_try='test -s conftest$ac_exeext'
65832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65833   (eval $ac_try) 2>&5
65834   ac_status=$?
65835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65836   (exit $ac_status); }; }; then
65837   eval "$as_ac_var=yes"
65838 else
65839   echo "$as_me: failed program was:" >&5
65840 sed 's/^/| /' conftest.$ac_ext >&5
65841
65842 eval "$as_ac_var=no"
65843 fi
65844 rm -f conftest.err conftest.$ac_objext \
65845       conftest$ac_exeext conftest.$ac_ext
65846 fi
65847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65849 if test `eval echo '${'$as_ac_var'}'` = yes; then
65850   cat >>confdefs.h <<_ACEOF
65851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65852 _ACEOF
65853
65854 else
65855   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
65856 fi
65857 done
65858
65859
65860           if test x$ac_cv_func_copysignl = x"yes"; then
65861
65862 for ac_func in __signbitl
65863 do
65864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65865 echo "$as_me:$LINENO: checking for $ac_func" >&5
65866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65867 if eval "test \"\${$as_ac_var+set}\" = set"; then
65868   echo $ECHO_N "(cached) $ECHO_C" >&6
65869 else
65870   if test x$gcc_no_link = xyes; then
65871   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65872 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65873    { (exit 1); exit 1; }; }
65874 fi
65875 cat >conftest.$ac_ext <<_ACEOF
65876 /* confdefs.h.  */
65877 _ACEOF
65878 cat confdefs.h >>conftest.$ac_ext
65879 cat >>conftest.$ac_ext <<_ACEOF
65880 /* end confdefs.h.  */
65881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65883 #define $ac_func innocuous_$ac_func
65884
65885 /* System header to define __stub macros and hopefully few prototypes,
65886     which can conflict with char $ac_func (); below.
65887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65888     <limits.h> exists even on freestanding compilers.  */
65889
65890 #ifdef __STDC__
65891 # include <limits.h>
65892 #else
65893 # include <assert.h>
65894 #endif
65895
65896 #undef $ac_func
65897
65898 /* Override any gcc2 internal prototype to avoid an error.  */
65899 #ifdef __cplusplus
65900 extern "C"
65901 {
65902 #endif
65903 /* We use char because int might match the return type of a gcc2
65904    builtin and then its argument prototype would still apply.  */
65905 char $ac_func ();
65906 /* The GNU C library defines this for functions which it implements
65907     to always fail with ENOSYS.  Some functions are actually named
65908     something starting with __ and the normal name is an alias.  */
65909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65910 choke me
65911 #else
65912 char (*f) () = $ac_func;
65913 #endif
65914 #ifdef __cplusplus
65915 }
65916 #endif
65917
65918 int
65919 main ()
65920 {
65921 return f != $ac_func;
65922   ;
65923   return 0;
65924 }
65925 _ACEOF
65926 rm -f conftest.$ac_objext conftest$ac_exeext
65927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65928   (eval $ac_link) 2>conftest.er1
65929   ac_status=$?
65930   grep -v '^ *+' conftest.er1 >conftest.err
65931   rm -f conftest.er1
65932   cat conftest.err >&5
65933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65934   (exit $ac_status); } &&
65935          { ac_try='test -z "$ac_c_werror_flag"
65936                          || test ! -s conftest.err'
65937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65938   (eval $ac_try) 2>&5
65939   ac_status=$?
65940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65941   (exit $ac_status); }; } &&
65942          { ac_try='test -s conftest$ac_exeext'
65943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65944   (eval $ac_try) 2>&5
65945   ac_status=$?
65946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65947   (exit $ac_status); }; }; then
65948   eval "$as_ac_var=yes"
65949 else
65950   echo "$as_me: failed program was:" >&5
65951 sed 's/^/| /' conftest.$ac_ext >&5
65952
65953 eval "$as_ac_var=no"
65954 fi
65955 rm -f conftest.err conftest.$ac_objext \
65956       conftest$ac_exeext conftest.$ac_ext
65957 fi
65958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65960 if test `eval echo '${'$as_ac_var'}'` = yes; then
65961   cat >>confdefs.h <<_ACEOF
65962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65963 _ACEOF
65964
65965 else
65966   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
65967 fi
65968 done
65969
65970   fi
65971
65972   # XXX Review this.  Nothing uses it.
65973   if test -n "$LIBMATHOBJS"; then
65974     need_libmath=yes
65975   fi
65976
65977
65978
65979   # Test wchar.h for mbstate_t, which is needed for char_traits and
65980   # others even if wchar_t support is not on.
65981   echo "$as_me:$LINENO: checking for mbstate_t" >&5
65982 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
65983   cat >conftest.$ac_ext <<_ACEOF
65984 /* confdefs.h.  */
65985 _ACEOF
65986 cat confdefs.h >>conftest.$ac_ext
65987 cat >>conftest.$ac_ext <<_ACEOF
65988 /* end confdefs.h.  */
65989 #include <wchar.h>
65990 int
65991 main ()
65992 {
65993 mbstate_t teststate;
65994   ;
65995   return 0;
65996 }
65997 _ACEOF
65998 rm -f conftest.$ac_objext
65999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66000   (eval $ac_compile) 2>conftest.er1
66001   ac_status=$?
66002   grep -v '^ *+' conftest.er1 >conftest.err
66003   rm -f conftest.er1
66004   cat conftest.err >&5
66005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66006   (exit $ac_status); } &&
66007          { ac_try='test -z "$ac_c_werror_flag"
66008                          || test ! -s conftest.err'
66009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66010   (eval $ac_try) 2>&5
66011   ac_status=$?
66012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66013   (exit $ac_status); }; } &&
66014          { ac_try='test -s conftest.$ac_objext'
66015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66016   (eval $ac_try) 2>&5
66017   ac_status=$?
66018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66019   (exit $ac_status); }; }; then
66020   have_mbstate_t=yes
66021 else
66022   echo "$as_me: failed program was:" >&5
66023 sed 's/^/| /' conftest.$ac_ext >&5
66024
66025 have_mbstate_t=no
66026 fi
66027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66028   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
66029 echo "${ECHO_T}$have_mbstate_t" >&6
66030   if test x"$have_mbstate_t" = xyes; then
66031     cat >>confdefs.h <<\_ACEOF
66032 #define HAVE_MBSTATE_T 1
66033 _ACEOF
66034
66035   fi
66036
66037   # Sanity check for existence of ISO C99 headers for extended encoding.
66038
66039 for ac_header in wchar.h
66040 do
66041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66043   echo "$as_me:$LINENO: checking for $ac_header" >&5
66044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66046   echo $ECHO_N "(cached) $ECHO_C" >&6
66047 fi
66048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66050 else
66051   # Is the header compilable?
66052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66054 cat >conftest.$ac_ext <<_ACEOF
66055 /* confdefs.h.  */
66056 _ACEOF
66057 cat confdefs.h >>conftest.$ac_ext
66058 cat >>conftest.$ac_ext <<_ACEOF
66059 /* end confdefs.h.  */
66060 $ac_includes_default
66061 #include <$ac_header>
66062 _ACEOF
66063 rm -f conftest.$ac_objext
66064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66065   (eval $ac_compile) 2>conftest.er1
66066   ac_status=$?
66067   grep -v '^ *+' conftest.er1 >conftest.err
66068   rm -f conftest.er1
66069   cat conftest.err >&5
66070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66071   (exit $ac_status); } &&
66072          { ac_try='test -z "$ac_c_werror_flag"
66073                          || test ! -s conftest.err'
66074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66075   (eval $ac_try) 2>&5
66076   ac_status=$?
66077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66078   (exit $ac_status); }; } &&
66079          { ac_try='test -s conftest.$ac_objext'
66080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66081   (eval $ac_try) 2>&5
66082   ac_status=$?
66083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66084   (exit $ac_status); }; }; then
66085   ac_header_compiler=yes
66086 else
66087   echo "$as_me: failed program was:" >&5
66088 sed 's/^/| /' conftest.$ac_ext >&5
66089
66090 ac_header_compiler=no
66091 fi
66092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66094 echo "${ECHO_T}$ac_header_compiler" >&6
66095
66096 # Is the header present?
66097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66099 cat >conftest.$ac_ext <<_ACEOF
66100 /* confdefs.h.  */
66101 _ACEOF
66102 cat confdefs.h >>conftest.$ac_ext
66103 cat >>conftest.$ac_ext <<_ACEOF
66104 /* end confdefs.h.  */
66105 #include <$ac_header>
66106 _ACEOF
66107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66109   ac_status=$?
66110   grep -v '^ *+' conftest.er1 >conftest.err
66111   rm -f conftest.er1
66112   cat conftest.err >&5
66113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66114   (exit $ac_status); } >/dev/null; then
66115   if test -s conftest.err; then
66116     ac_cpp_err=$ac_c_preproc_warn_flag
66117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66118   else
66119     ac_cpp_err=
66120   fi
66121 else
66122   ac_cpp_err=yes
66123 fi
66124 if test -z "$ac_cpp_err"; then
66125   ac_header_preproc=yes
66126 else
66127   echo "$as_me: failed program was:" >&5
66128 sed 's/^/| /' conftest.$ac_ext >&5
66129
66130   ac_header_preproc=no
66131 fi
66132 rm -f conftest.err conftest.$ac_ext
66133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66134 echo "${ECHO_T}$ac_header_preproc" >&6
66135
66136 # So?  What about this header?
66137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66138   yes:no: )
66139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66143     ac_header_preproc=yes
66144     ;;
66145   no:yes:* )
66146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66148     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
66149 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
66150     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66152     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
66153 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
66154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66156     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66158     (
66159       cat <<\_ASBOX
66160 ## ----------------------------------------- ##
66161 ## Report this to the package-unused lists.  ##
66162 ## ----------------------------------------- ##
66163 _ASBOX
66164     ) |
66165       sed "s/^/$as_me: WARNING:     /" >&2
66166     ;;
66167 esac
66168 echo "$as_me:$LINENO: checking for $ac_header" >&5
66169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66171   echo $ECHO_N "(cached) $ECHO_C" >&6
66172 else
66173   eval "$as_ac_Header=\$ac_header_preproc"
66174 fi
66175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66177
66178 fi
66179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66180   cat >>confdefs.h <<_ACEOF
66181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66182 _ACEOF
66183  ac_has_wchar_h=yes
66184 else
66185   ac_has_wchar_h=no
66186 fi
66187
66188 done
66189
66190
66191 for ac_header in wctype.h
66192 do
66193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66195   echo "$as_me:$LINENO: checking for $ac_header" >&5
66196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66198   echo $ECHO_N "(cached) $ECHO_C" >&6
66199 fi
66200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66202 else
66203   # Is the header compilable?
66204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66206 cat >conftest.$ac_ext <<_ACEOF
66207 /* confdefs.h.  */
66208 _ACEOF
66209 cat confdefs.h >>conftest.$ac_ext
66210 cat >>conftest.$ac_ext <<_ACEOF
66211 /* end confdefs.h.  */
66212 $ac_includes_default
66213 #include <$ac_header>
66214 _ACEOF
66215 rm -f conftest.$ac_objext
66216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66217   (eval $ac_compile) 2>conftest.er1
66218   ac_status=$?
66219   grep -v '^ *+' conftest.er1 >conftest.err
66220   rm -f conftest.er1
66221   cat conftest.err >&5
66222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66223   (exit $ac_status); } &&
66224          { ac_try='test -z "$ac_c_werror_flag"
66225                          || test ! -s conftest.err'
66226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66227   (eval $ac_try) 2>&5
66228   ac_status=$?
66229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66230   (exit $ac_status); }; } &&
66231          { ac_try='test -s conftest.$ac_objext'
66232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66233   (eval $ac_try) 2>&5
66234   ac_status=$?
66235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66236   (exit $ac_status); }; }; then
66237   ac_header_compiler=yes
66238 else
66239   echo "$as_me: failed program was:" >&5
66240 sed 's/^/| /' conftest.$ac_ext >&5
66241
66242 ac_header_compiler=no
66243 fi
66244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66246 echo "${ECHO_T}$ac_header_compiler" >&6
66247
66248 # Is the header present?
66249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66251 cat >conftest.$ac_ext <<_ACEOF
66252 /* confdefs.h.  */
66253 _ACEOF
66254 cat confdefs.h >>conftest.$ac_ext
66255 cat >>conftest.$ac_ext <<_ACEOF
66256 /* end confdefs.h.  */
66257 #include <$ac_header>
66258 _ACEOF
66259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66261   ac_status=$?
66262   grep -v '^ *+' conftest.er1 >conftest.err
66263   rm -f conftest.er1
66264   cat conftest.err >&5
66265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66266   (exit $ac_status); } >/dev/null; then
66267   if test -s conftest.err; then
66268     ac_cpp_err=$ac_c_preproc_warn_flag
66269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66270   else
66271     ac_cpp_err=
66272   fi
66273 else
66274   ac_cpp_err=yes
66275 fi
66276 if test -z "$ac_cpp_err"; then
66277   ac_header_preproc=yes
66278 else
66279   echo "$as_me: failed program was:" >&5
66280 sed 's/^/| /' conftest.$ac_ext >&5
66281
66282   ac_header_preproc=no
66283 fi
66284 rm -f conftest.err conftest.$ac_ext
66285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66286 echo "${ECHO_T}$ac_header_preproc" >&6
66287
66288 # So?  What about this header?
66289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66290   yes:no: )
66291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66295     ac_header_preproc=yes
66296     ;;
66297   no:yes:* )
66298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
66301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
66302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
66305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
66306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66310     (
66311       cat <<\_ASBOX
66312 ## ----------------------------------------- ##
66313 ## Report this to the package-unused lists.  ##
66314 ## ----------------------------------------- ##
66315 _ASBOX
66316     ) |
66317       sed "s/^/$as_me: WARNING:     /" >&2
66318     ;;
66319 esac
66320 echo "$as_me:$LINENO: checking for $ac_header" >&5
66321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66323   echo $ECHO_N "(cached) $ECHO_C" >&6
66324 else
66325   eval "$as_ac_Header=\$ac_header_preproc"
66326 fi
66327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66329
66330 fi
66331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66332   cat >>confdefs.h <<_ACEOF
66333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66334 _ACEOF
66335  ac_has_wctype_h=yes
66336 else
66337   ac_has_wctype_h=no
66338 fi
66339
66340 done
66341
66342
66343   # Only continue checking if the ISO C99 headers exist and support is on.
66344   if test x"$ac_has_wchar_h" = xyes &&
66345      test x"$ac_has_wctype_h" = xyes &&
66346      test x"$enable_c_mbchar" != xno; then
66347
66348     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
66349     # numeric_limits can instantiate type_traits<wchar_t>
66350     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
66351 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
66352     cat >conftest.$ac_ext <<_ACEOF
66353 /* confdefs.h.  */
66354 _ACEOF
66355 cat confdefs.h >>conftest.$ac_ext
66356 cat >>conftest.$ac_ext <<_ACEOF
66357 /* end confdefs.h.  */
66358 #include <wchar.h>
66359 int
66360 main ()
66361 {
66362 int i = WCHAR_MIN; int j = WCHAR_MAX;
66363   ;
66364   return 0;
66365 }
66366 _ACEOF
66367 rm -f conftest.$ac_objext
66368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66369   (eval $ac_compile) 2>conftest.er1
66370   ac_status=$?
66371   grep -v '^ *+' conftest.er1 >conftest.err
66372   rm -f conftest.er1
66373   cat conftest.err >&5
66374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66375   (exit $ac_status); } &&
66376          { ac_try='test -z "$ac_c_werror_flag"
66377                          || test ! -s conftest.err'
66378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66379   (eval $ac_try) 2>&5
66380   ac_status=$?
66381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66382   (exit $ac_status); }; } &&
66383          { ac_try='test -s conftest.$ac_objext'
66384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66385   (eval $ac_try) 2>&5
66386   ac_status=$?
66387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66388   (exit $ac_status); }; }; then
66389   has_wchar_minmax=yes
66390 else
66391   echo "$as_me: failed program was:" >&5
66392 sed 's/^/| /' conftest.$ac_ext >&5
66393
66394 has_wchar_minmax=no
66395 fi
66396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66397     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
66398 echo "${ECHO_T}$has_wchar_minmax" >&6
66399
66400     # Test wchar.h for WEOF, which is what we use to determine whether
66401     # to specialize for char_traits<wchar_t> or not.
66402     echo "$as_me:$LINENO: checking for WEOF" >&5
66403 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
66404     cat >conftest.$ac_ext <<_ACEOF
66405 /* confdefs.h.  */
66406 _ACEOF
66407 cat confdefs.h >>conftest.$ac_ext
66408 cat >>conftest.$ac_ext <<_ACEOF
66409 /* end confdefs.h.  */
66410
66411       #include <wchar.h>
66412       #include <stddef.h>
66413 int
66414 main ()
66415 {
66416 wint_t i = WEOF;
66417   ;
66418   return 0;
66419 }
66420 _ACEOF
66421 rm -f conftest.$ac_objext
66422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66423   (eval $ac_compile) 2>conftest.er1
66424   ac_status=$?
66425   grep -v '^ *+' conftest.er1 >conftest.err
66426   rm -f conftest.er1
66427   cat conftest.err >&5
66428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66429   (exit $ac_status); } &&
66430          { ac_try='test -z "$ac_c_werror_flag"
66431                          || test ! -s conftest.err'
66432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66433   (eval $ac_try) 2>&5
66434   ac_status=$?
66435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66436   (exit $ac_status); }; } &&
66437          { ac_try='test -s conftest.$ac_objext'
66438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66439   (eval $ac_try) 2>&5
66440   ac_status=$?
66441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66442   (exit $ac_status); }; }; then
66443   has_weof=yes
66444 else
66445   echo "$as_me: failed program was:" >&5
66446 sed 's/^/| /' conftest.$ac_ext >&5
66447
66448 has_weof=no
66449 fi
66450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66451     echo "$as_me:$LINENO: result: $has_weof" >&5
66452 echo "${ECHO_T}$has_weof" >&6
66453
66454     # Tests for wide character functions used in char_traits<wchar_t>.
66455     ac_wfuncs=yes
66456
66457
66458
66459
66460
66461
66462 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
66463 do
66464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66465 echo "$as_me:$LINENO: checking for $ac_func" >&5
66466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66467 if eval "test \"\${$as_ac_var+set}\" = set"; then
66468   echo $ECHO_N "(cached) $ECHO_C" >&6
66469 else
66470   if test x$gcc_no_link = xyes; then
66471   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66472 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66473    { (exit 1); exit 1; }; }
66474 fi
66475 cat >conftest.$ac_ext <<_ACEOF
66476 /* confdefs.h.  */
66477 _ACEOF
66478 cat confdefs.h >>conftest.$ac_ext
66479 cat >>conftest.$ac_ext <<_ACEOF
66480 /* end confdefs.h.  */
66481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66483 #define $ac_func innocuous_$ac_func
66484
66485 /* System header to define __stub macros and hopefully few prototypes,
66486     which can conflict with char $ac_func (); below.
66487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66488     <limits.h> exists even on freestanding compilers.  */
66489
66490 #ifdef __STDC__
66491 # include <limits.h>
66492 #else
66493 # include <assert.h>
66494 #endif
66495
66496 #undef $ac_func
66497
66498 /* Override any gcc2 internal prototype to avoid an error.  */
66499 #ifdef __cplusplus
66500 extern "C"
66501 {
66502 #endif
66503 /* We use char because int might match the return type of a gcc2
66504    builtin and then its argument prototype would still apply.  */
66505 char $ac_func ();
66506 /* The GNU C library defines this for functions which it implements
66507     to always fail with ENOSYS.  Some functions are actually named
66508     something starting with __ and the normal name is an alias.  */
66509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66510 choke me
66511 #else
66512 char (*f) () = $ac_func;
66513 #endif
66514 #ifdef __cplusplus
66515 }
66516 #endif
66517
66518 int
66519 main ()
66520 {
66521 return f != $ac_func;
66522   ;
66523   return 0;
66524 }
66525 _ACEOF
66526 rm -f conftest.$ac_objext conftest$ac_exeext
66527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66528   (eval $ac_link) 2>conftest.er1
66529   ac_status=$?
66530   grep -v '^ *+' conftest.er1 >conftest.err
66531   rm -f conftest.er1
66532   cat conftest.err >&5
66533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66534   (exit $ac_status); } &&
66535          { ac_try='test -z "$ac_c_werror_flag"
66536                          || test ! -s conftest.err'
66537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66538   (eval $ac_try) 2>&5
66539   ac_status=$?
66540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66541   (exit $ac_status); }; } &&
66542          { ac_try='test -s conftest$ac_exeext'
66543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66544   (eval $ac_try) 2>&5
66545   ac_status=$?
66546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66547   (exit $ac_status); }; }; then
66548   eval "$as_ac_var=yes"
66549 else
66550   echo "$as_me: failed program was:" >&5
66551 sed 's/^/| /' conftest.$ac_ext >&5
66552
66553 eval "$as_ac_var=no"
66554 fi
66555 rm -f conftest.err conftest.$ac_objext \
66556       conftest$ac_exeext conftest.$ac_ext
66557 fi
66558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66560 if test `eval echo '${'$as_ac_var'}'` = yes; then
66561   cat >>confdefs.h <<_ACEOF
66562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66563 _ACEOF
66564
66565 else
66566   ac_wfuncs=no
66567 fi
66568 done
66569
66570
66571     # Checks for names injected into std:: by the c_std headers.
66572
66573
66574
66575
66576
66577
66578
66579
66580
66581
66582
66583
66584
66585
66586
66587
66588
66589
66590
66591
66592
66593
66594
66595
66596
66597
66598
66599
66600
66601
66602
66603
66604
66605
66606
66607
66608
66609
66610
66611
66612
66613
66614
66615
66616
66617
66618 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
66619     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
66620     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
66621     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
66622     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
66623     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
66624 do
66625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66626 echo "$as_me:$LINENO: checking for $ac_func" >&5
66627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66628 if eval "test \"\${$as_ac_var+set}\" = set"; then
66629   echo $ECHO_N "(cached) $ECHO_C" >&6
66630 else
66631   if test x$gcc_no_link = xyes; then
66632   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66634    { (exit 1); exit 1; }; }
66635 fi
66636 cat >conftest.$ac_ext <<_ACEOF
66637 /* confdefs.h.  */
66638 _ACEOF
66639 cat confdefs.h >>conftest.$ac_ext
66640 cat >>conftest.$ac_ext <<_ACEOF
66641 /* end confdefs.h.  */
66642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66644 #define $ac_func innocuous_$ac_func
66645
66646 /* System header to define __stub macros and hopefully few prototypes,
66647     which can conflict with char $ac_func (); below.
66648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66649     <limits.h> exists even on freestanding compilers.  */
66650
66651 #ifdef __STDC__
66652 # include <limits.h>
66653 #else
66654 # include <assert.h>
66655 #endif
66656
66657 #undef $ac_func
66658
66659 /* Override any gcc2 internal prototype to avoid an error.  */
66660 #ifdef __cplusplus
66661 extern "C"
66662 {
66663 #endif
66664 /* We use char because int might match the return type of a gcc2
66665    builtin and then its argument prototype would still apply.  */
66666 char $ac_func ();
66667 /* The GNU C library defines this for functions which it implements
66668     to always fail with ENOSYS.  Some functions are actually named
66669     something starting with __ and the normal name is an alias.  */
66670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66671 choke me
66672 #else
66673 char (*f) () = $ac_func;
66674 #endif
66675 #ifdef __cplusplus
66676 }
66677 #endif
66678
66679 int
66680 main ()
66681 {
66682 return f != $ac_func;
66683   ;
66684   return 0;
66685 }
66686 _ACEOF
66687 rm -f conftest.$ac_objext conftest$ac_exeext
66688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66689   (eval $ac_link) 2>conftest.er1
66690   ac_status=$?
66691   grep -v '^ *+' conftest.er1 >conftest.err
66692   rm -f conftest.er1
66693   cat conftest.err >&5
66694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66695   (exit $ac_status); } &&
66696          { ac_try='test -z "$ac_c_werror_flag"
66697                          || test ! -s conftest.err'
66698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66699   (eval $ac_try) 2>&5
66700   ac_status=$?
66701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66702   (exit $ac_status); }; } &&
66703          { ac_try='test -s conftest$ac_exeext'
66704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66705   (eval $ac_try) 2>&5
66706   ac_status=$?
66707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66708   (exit $ac_status); }; }; then
66709   eval "$as_ac_var=yes"
66710 else
66711   echo "$as_me: failed program was:" >&5
66712 sed 's/^/| /' conftest.$ac_ext >&5
66713
66714 eval "$as_ac_var=no"
66715 fi
66716 rm -f conftest.err conftest.$ac_objext \
66717       conftest$ac_exeext conftest.$ac_ext
66718 fi
66719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66721 if test `eval echo '${'$as_ac_var'}'` = yes; then
66722   cat >>confdefs.h <<_ACEOF
66723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66724 _ACEOF
66725
66726 else
66727   ac_wfuncs=no
66728 fi
66729 done
66730
66731
66732     # Checks for wide character functions that are not required
66733     # for basic wchar_t support.  Don't disable support if they are missing.
66734     # Injection of these is wrapped with guard macros.
66735
66736
66737
66738
66739
66740 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
66741 do
66742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66743 echo "$as_me:$LINENO: checking for $ac_func" >&5
66744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66745 if eval "test \"\${$as_ac_var+set}\" = set"; then
66746   echo $ECHO_N "(cached) $ECHO_C" >&6
66747 else
66748   if test x$gcc_no_link = xyes; then
66749   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66751    { (exit 1); exit 1; }; }
66752 fi
66753 cat >conftest.$ac_ext <<_ACEOF
66754 /* confdefs.h.  */
66755 _ACEOF
66756 cat confdefs.h >>conftest.$ac_ext
66757 cat >>conftest.$ac_ext <<_ACEOF
66758 /* end confdefs.h.  */
66759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66761 #define $ac_func innocuous_$ac_func
66762
66763 /* System header to define __stub macros and hopefully few prototypes,
66764     which can conflict with char $ac_func (); below.
66765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66766     <limits.h> exists even on freestanding compilers.  */
66767
66768 #ifdef __STDC__
66769 # include <limits.h>
66770 #else
66771 # include <assert.h>
66772 #endif
66773
66774 #undef $ac_func
66775
66776 /* Override any gcc2 internal prototype to avoid an error.  */
66777 #ifdef __cplusplus
66778 extern "C"
66779 {
66780 #endif
66781 /* We use char because int might match the return type of a gcc2
66782    builtin and then its argument prototype would still apply.  */
66783 char $ac_func ();
66784 /* The GNU C library defines this for functions which it implements
66785     to always fail with ENOSYS.  Some functions are actually named
66786     something starting with __ and the normal name is an alias.  */
66787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66788 choke me
66789 #else
66790 char (*f) () = $ac_func;
66791 #endif
66792 #ifdef __cplusplus
66793 }
66794 #endif
66795
66796 int
66797 main ()
66798 {
66799 return f != $ac_func;
66800   ;
66801   return 0;
66802 }
66803 _ACEOF
66804 rm -f conftest.$ac_objext conftest$ac_exeext
66805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66806   (eval $ac_link) 2>conftest.er1
66807   ac_status=$?
66808   grep -v '^ *+' conftest.er1 >conftest.err
66809   rm -f conftest.er1
66810   cat conftest.err >&5
66811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66812   (exit $ac_status); } &&
66813          { ac_try='test -z "$ac_c_werror_flag"
66814                          || test ! -s conftest.err'
66815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66816   (eval $ac_try) 2>&5
66817   ac_status=$?
66818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66819   (exit $ac_status); }; } &&
66820          { ac_try='test -s conftest$ac_exeext'
66821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66822   (eval $ac_try) 2>&5
66823   ac_status=$?
66824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66825   (exit $ac_status); }; }; then
66826   eval "$as_ac_var=yes"
66827 else
66828   echo "$as_me: failed program was:" >&5
66829 sed 's/^/| /' conftest.$ac_ext >&5
66830
66831 eval "$as_ac_var=no"
66832 fi
66833 rm -f conftest.err conftest.$ac_objext \
66834       conftest$ac_exeext conftest.$ac_ext
66835 fi
66836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66838 if test `eval echo '${'$as_ac_var'}'` = yes; then
66839   cat >>confdefs.h <<_ACEOF
66840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66841 _ACEOF
66842
66843 fi
66844 done
66845
66846
66847     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
66848 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
66849     if test x"$has_weof" = xyes &&
66850        test x"$has_wchar_minmax" = xyes &&
66851        test x"$ac_wfuncs" = xyes;
66852     then
66853       ac_isoC99_wchar_t=yes
66854     else
66855       ac_isoC99_wchar_t=no
66856     fi
66857     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
66858 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
66859
66860     # Use iconv for wchar_t to char conversions. As such, check for
66861     # X/Open Portability Guide, version 2 features (XPG2).
66862     if test "${ac_cv_header_iconv_h+set}" = set; then
66863   echo "$as_me:$LINENO: checking for iconv.h" >&5
66864 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
66865 if test "${ac_cv_header_iconv_h+set}" = set; then
66866   echo $ECHO_N "(cached) $ECHO_C" >&6
66867 fi
66868 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
66869 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
66870 else
66871   # Is the header compilable?
66872 echo "$as_me:$LINENO: checking iconv.h usability" >&5
66873 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
66874 cat >conftest.$ac_ext <<_ACEOF
66875 /* confdefs.h.  */
66876 _ACEOF
66877 cat confdefs.h >>conftest.$ac_ext
66878 cat >>conftest.$ac_ext <<_ACEOF
66879 /* end confdefs.h.  */
66880 $ac_includes_default
66881 #include <iconv.h>
66882 _ACEOF
66883 rm -f conftest.$ac_objext
66884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66885   (eval $ac_compile) 2>conftest.er1
66886   ac_status=$?
66887   grep -v '^ *+' conftest.er1 >conftest.err
66888   rm -f conftest.er1
66889   cat conftest.err >&5
66890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66891   (exit $ac_status); } &&
66892          { ac_try='test -z "$ac_c_werror_flag"
66893                          || test ! -s conftest.err'
66894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66895   (eval $ac_try) 2>&5
66896   ac_status=$?
66897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66898   (exit $ac_status); }; } &&
66899          { ac_try='test -s conftest.$ac_objext'
66900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66901   (eval $ac_try) 2>&5
66902   ac_status=$?
66903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66904   (exit $ac_status); }; }; then
66905   ac_header_compiler=yes
66906 else
66907   echo "$as_me: failed program was:" >&5
66908 sed 's/^/| /' conftest.$ac_ext >&5
66909
66910 ac_header_compiler=no
66911 fi
66912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66914 echo "${ECHO_T}$ac_header_compiler" >&6
66915
66916 # Is the header present?
66917 echo "$as_me:$LINENO: checking iconv.h presence" >&5
66918 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
66919 cat >conftest.$ac_ext <<_ACEOF
66920 /* confdefs.h.  */
66921 _ACEOF
66922 cat confdefs.h >>conftest.$ac_ext
66923 cat >>conftest.$ac_ext <<_ACEOF
66924 /* end confdefs.h.  */
66925 #include <iconv.h>
66926 _ACEOF
66927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66928   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66929   ac_status=$?
66930   grep -v '^ *+' conftest.er1 >conftest.err
66931   rm -f conftest.er1
66932   cat conftest.err >&5
66933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66934   (exit $ac_status); } >/dev/null; then
66935   if test -s conftest.err; then
66936     ac_cpp_err=$ac_c_preproc_warn_flag
66937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66938   else
66939     ac_cpp_err=
66940   fi
66941 else
66942   ac_cpp_err=yes
66943 fi
66944 if test -z "$ac_cpp_err"; then
66945   ac_header_preproc=yes
66946 else
66947   echo "$as_me: failed program was:" >&5
66948 sed 's/^/| /' conftest.$ac_ext >&5
66949
66950   ac_header_preproc=no
66951 fi
66952 rm -f conftest.err conftest.$ac_ext
66953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66954 echo "${ECHO_T}$ac_header_preproc" >&6
66955
66956 # So?  What about this header?
66957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66958   yes:no: )
66959     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
66960 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
66961     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
66962 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
66963     ac_header_preproc=yes
66964     ;;
66965   no:yes:* )
66966     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
66967 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
66968     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
66969 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
66970     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
66971 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
66972     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
66973 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
66974     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
66975 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
66976     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
66977 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
66978     (
66979       cat <<\_ASBOX
66980 ## ----------------------------------------- ##
66981 ## Report this to the package-unused lists.  ##
66982 ## ----------------------------------------- ##
66983 _ASBOX
66984     ) |
66985       sed "s/^/$as_me: WARNING:     /" >&2
66986     ;;
66987 esac
66988 echo "$as_me:$LINENO: checking for iconv.h" >&5
66989 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
66990 if test "${ac_cv_header_iconv_h+set}" = set; then
66991   echo $ECHO_N "(cached) $ECHO_C" >&6
66992 else
66993   ac_cv_header_iconv_h=$ac_header_preproc
66994 fi
66995 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
66996 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
66997
66998 fi
66999 if test $ac_cv_header_iconv_h = yes; then
67000   ac_has_iconv_h=yes
67001 else
67002   ac_has_iconv_h=no
67003 fi
67004
67005
67006     if test "${ac_cv_header_langinfo_h+set}" = set; then
67007   echo "$as_me:$LINENO: checking for langinfo.h" >&5
67008 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67009 if test "${ac_cv_header_langinfo_h+set}" = set; then
67010   echo $ECHO_N "(cached) $ECHO_C" >&6
67011 fi
67012 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67013 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67014 else
67015   # Is the header compilable?
67016 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
67017 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
67018 cat >conftest.$ac_ext <<_ACEOF
67019 /* confdefs.h.  */
67020 _ACEOF
67021 cat confdefs.h >>conftest.$ac_ext
67022 cat >>conftest.$ac_ext <<_ACEOF
67023 /* end confdefs.h.  */
67024 $ac_includes_default
67025 #include <langinfo.h>
67026 _ACEOF
67027 rm -f conftest.$ac_objext
67028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67029   (eval $ac_compile) 2>conftest.er1
67030   ac_status=$?
67031   grep -v '^ *+' conftest.er1 >conftest.err
67032   rm -f conftest.er1
67033   cat conftest.err >&5
67034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67035   (exit $ac_status); } &&
67036          { ac_try='test -z "$ac_c_werror_flag"
67037                          || test ! -s conftest.err'
67038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67039   (eval $ac_try) 2>&5
67040   ac_status=$?
67041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67042   (exit $ac_status); }; } &&
67043          { ac_try='test -s conftest.$ac_objext'
67044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67045   (eval $ac_try) 2>&5
67046   ac_status=$?
67047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67048   (exit $ac_status); }; }; then
67049   ac_header_compiler=yes
67050 else
67051   echo "$as_me: failed program was:" >&5
67052 sed 's/^/| /' conftest.$ac_ext >&5
67053
67054 ac_header_compiler=no
67055 fi
67056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67058 echo "${ECHO_T}$ac_header_compiler" >&6
67059
67060 # Is the header present?
67061 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
67062 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
67063 cat >conftest.$ac_ext <<_ACEOF
67064 /* confdefs.h.  */
67065 _ACEOF
67066 cat confdefs.h >>conftest.$ac_ext
67067 cat >>conftest.$ac_ext <<_ACEOF
67068 /* end confdefs.h.  */
67069 #include <langinfo.h>
67070 _ACEOF
67071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67073   ac_status=$?
67074   grep -v '^ *+' conftest.er1 >conftest.err
67075   rm -f conftest.er1
67076   cat conftest.err >&5
67077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67078   (exit $ac_status); } >/dev/null; then
67079   if test -s conftest.err; then
67080     ac_cpp_err=$ac_c_preproc_warn_flag
67081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67082   else
67083     ac_cpp_err=
67084   fi
67085 else
67086   ac_cpp_err=yes
67087 fi
67088 if test -z "$ac_cpp_err"; then
67089   ac_header_preproc=yes
67090 else
67091   echo "$as_me: failed program was:" >&5
67092 sed 's/^/| /' conftest.$ac_ext >&5
67093
67094   ac_header_preproc=no
67095 fi
67096 rm -f conftest.err conftest.$ac_ext
67097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67098 echo "${ECHO_T}$ac_header_preproc" >&6
67099
67100 # So?  What about this header?
67101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67102   yes:no: )
67103     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
67104 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67105     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
67106 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
67107     ac_header_preproc=yes
67108     ;;
67109   no:yes:* )
67110     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
67111 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
67112     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
67113 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
67114     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
67115 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
67116     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
67117 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
67118     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
67119 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
67120     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
67121 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
67122     (
67123       cat <<\_ASBOX
67124 ## ----------------------------------------- ##
67125 ## Report this to the package-unused lists.  ##
67126 ## ----------------------------------------- ##
67127 _ASBOX
67128     ) |
67129       sed "s/^/$as_me: WARNING:     /" >&2
67130     ;;
67131 esac
67132 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67133 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67134 if test "${ac_cv_header_langinfo_h+set}" = set; then
67135   echo $ECHO_N "(cached) $ECHO_C" >&6
67136 else
67137   ac_cv_header_langinfo_h=$ac_header_preproc
67138 fi
67139 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67140 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67141
67142 fi
67143 if test $ac_cv_header_langinfo_h = yes; then
67144   ac_has_langinfo_h=yes
67145 else
67146   ac_has_langinfo_h=no
67147 fi
67148
67149
67150
67151     # Check for existence of libiconv.a providing XPG2 wchar_t support.
67152     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
67153 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
67154 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
67155   echo $ECHO_N "(cached) $ECHO_C" >&6
67156 else
67157   ac_check_lib_save_LIBS=$LIBS
67158 LIBS="-liconv  $LIBS"
67159 if test x$gcc_no_link = xyes; then
67160   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67162    { (exit 1); exit 1; }; }
67163 fi
67164 cat >conftest.$ac_ext <<_ACEOF
67165 /* confdefs.h.  */
67166 _ACEOF
67167 cat confdefs.h >>conftest.$ac_ext
67168 cat >>conftest.$ac_ext <<_ACEOF
67169 /* end confdefs.h.  */
67170
67171 /* Override any gcc2 internal prototype to avoid an error.  */
67172 #ifdef __cplusplus
67173 extern "C"
67174 #endif
67175 /* We use char because int might match the return type of a gcc2
67176    builtin and then its argument prototype would still apply.  */
67177 char iconv ();
67178 int
67179 main ()
67180 {
67181 iconv ();
67182   ;
67183   return 0;
67184 }
67185 _ACEOF
67186 rm -f conftest.$ac_objext conftest$ac_exeext
67187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67188   (eval $ac_link) 2>conftest.er1
67189   ac_status=$?
67190   grep -v '^ *+' conftest.er1 >conftest.err
67191   rm -f conftest.er1
67192   cat conftest.err >&5
67193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67194   (exit $ac_status); } &&
67195          { ac_try='test -z "$ac_c_werror_flag"
67196                          || test ! -s conftest.err'
67197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67198   (eval $ac_try) 2>&5
67199   ac_status=$?
67200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67201   (exit $ac_status); }; } &&
67202          { ac_try='test -s conftest$ac_exeext'
67203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67204   (eval $ac_try) 2>&5
67205   ac_status=$?
67206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67207   (exit $ac_status); }; }; then
67208   ac_cv_lib_iconv_iconv=yes
67209 else
67210   echo "$as_me: failed program was:" >&5
67211 sed 's/^/| /' conftest.$ac_ext >&5
67212
67213 ac_cv_lib_iconv_iconv=no
67214 fi
67215 rm -f conftest.err conftest.$ac_objext \
67216       conftest$ac_exeext conftest.$ac_ext
67217 LIBS=$ac_check_lib_save_LIBS
67218 fi
67219 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
67220 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
67221 if test $ac_cv_lib_iconv_iconv = yes; then
67222   libiconv="-liconv"
67223 fi
67224
67225     ac_save_LIBS="$LIBS"
67226     LIBS="$LIBS $libiconv"
67227
67228
67229
67230
67231
67232 for ac_func in iconv_open iconv_close iconv nl_langinfo
67233 do
67234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67235 echo "$as_me:$LINENO: checking for $ac_func" >&5
67236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67237 if eval "test \"\${$as_ac_var+set}\" = set"; then
67238   echo $ECHO_N "(cached) $ECHO_C" >&6
67239 else
67240   if test x$gcc_no_link = xyes; then
67241   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67243    { (exit 1); exit 1; }; }
67244 fi
67245 cat >conftest.$ac_ext <<_ACEOF
67246 /* confdefs.h.  */
67247 _ACEOF
67248 cat confdefs.h >>conftest.$ac_ext
67249 cat >>conftest.$ac_ext <<_ACEOF
67250 /* end confdefs.h.  */
67251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67253 #define $ac_func innocuous_$ac_func
67254
67255 /* System header to define __stub macros and hopefully few prototypes,
67256     which can conflict with char $ac_func (); below.
67257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67258     <limits.h> exists even on freestanding compilers.  */
67259
67260 #ifdef __STDC__
67261 # include <limits.h>
67262 #else
67263 # include <assert.h>
67264 #endif
67265
67266 #undef $ac_func
67267
67268 /* Override any gcc2 internal prototype to avoid an error.  */
67269 #ifdef __cplusplus
67270 extern "C"
67271 {
67272 #endif
67273 /* We use char because int might match the return type of a gcc2
67274    builtin and then its argument prototype would still apply.  */
67275 char $ac_func ();
67276 /* The GNU C library defines this for functions which it implements
67277     to always fail with ENOSYS.  Some functions are actually named
67278     something starting with __ and the normal name is an alias.  */
67279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67280 choke me
67281 #else
67282 char (*f) () = $ac_func;
67283 #endif
67284 #ifdef __cplusplus
67285 }
67286 #endif
67287
67288 int
67289 main ()
67290 {
67291 return f != $ac_func;
67292   ;
67293   return 0;
67294 }
67295 _ACEOF
67296 rm -f conftest.$ac_objext conftest$ac_exeext
67297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67298   (eval $ac_link) 2>conftest.er1
67299   ac_status=$?
67300   grep -v '^ *+' conftest.er1 >conftest.err
67301   rm -f conftest.er1
67302   cat conftest.err >&5
67303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67304   (exit $ac_status); } &&
67305          { ac_try='test -z "$ac_c_werror_flag"
67306                          || test ! -s conftest.err'
67307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67308   (eval $ac_try) 2>&5
67309   ac_status=$?
67310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67311   (exit $ac_status); }; } &&
67312          { ac_try='test -s conftest$ac_exeext'
67313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67314   (eval $ac_try) 2>&5
67315   ac_status=$?
67316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67317   (exit $ac_status); }; }; then
67318   eval "$as_ac_var=yes"
67319 else
67320   echo "$as_me: failed program was:" >&5
67321 sed 's/^/| /' conftest.$ac_ext >&5
67322
67323 eval "$as_ac_var=no"
67324 fi
67325 rm -f conftest.err conftest.$ac_objext \
67326       conftest$ac_exeext conftest.$ac_ext
67327 fi
67328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67330 if test `eval echo '${'$as_ac_var'}'` = yes; then
67331   cat >>confdefs.h <<_ACEOF
67332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67333 _ACEOF
67334  ac_XPG2funcs=yes
67335 else
67336   ac_XPG2funcs=no
67337 fi
67338 done
67339
67340
67341     LIBS="$ac_save_LIBS"
67342
67343     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
67344 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
67345     if test x"$ac_has_iconv_h" = xyes &&
67346        test x"$ac_has_langinfo_h" = xyes &&
67347        test x"$ac_XPG2funcs" = xyes;
67348     then
67349       ac_XPG2_wchar_t=yes
67350     else
67351       ac_XPG2_wchar_t=no
67352     fi
67353     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
67354 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
67355
67356     # At the moment, only enable wchar_t specializations if all the
67357     # above support is present.
67358     if test x"$ac_isoC99_wchar_t" = xyes &&
67359        test x"$ac_XPG2_wchar_t" = xyes;
67360     then
67361       cat >>confdefs.h <<\_ACEOF
67362 #define _GLIBCXX_USE_WCHAR_T 1
67363 _ACEOF
67364
67365       enable_wchar_t=yes
67366     fi
67367   fi
67368   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
67369 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
67370   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
67371 echo "${ECHO_T}$enable_wchar_t" >&6
67372
67373     cat >>confdefs.h <<\_ACEOF
67374 #define HAVE_COSF 1
67375 _ACEOF
67376
67377     cat >>confdefs.h <<\_ACEOF
67378 #define HAVE_COSL 1
67379 _ACEOF
67380
67381     cat >>confdefs.h <<\_ACEOF
67382 #define HAVE_COSHF 1
67383 _ACEOF
67384
67385     cat >>confdefs.h <<\_ACEOF
67386 #define HAVE_COSHL 1
67387 _ACEOF
67388
67389     cat >>confdefs.h <<\_ACEOF
67390 #define HAVE_LOGF 1
67391 _ACEOF
67392
67393     cat >>confdefs.h <<\_ACEOF
67394 #define HAVE_LOGL 1
67395 _ACEOF
67396
67397     cat >>confdefs.h <<\_ACEOF
67398 #define HAVE_LOG10F 1
67399 _ACEOF
67400
67401     cat >>confdefs.h <<\_ACEOF
67402 #define HAVE_LOG10L 1
67403 _ACEOF
67404
67405     cat >>confdefs.h <<\_ACEOF
67406 #define HAVE_SINF 1
67407 _ACEOF
67408
67409     cat >>confdefs.h <<\_ACEOF
67410 #define HAVE_SINL 1
67411 _ACEOF
67412
67413     cat >>confdefs.h <<\_ACEOF
67414 #define HAVE_SINHF 1
67415 _ACEOF
67416
67417     cat >>confdefs.h <<\_ACEOF
67418 #define HAVE_SINHL 1
67419 _ACEOF
67420
67421     ;;
67422   *-solaris*)
67423     case "$target" in
67424     #  *-solaris2.5)
67425     #    os_include_dir="os/solaris/solaris2.5"
67426     #    ;;
67427     #  *-solaris2.6)
67428     #    os_include_dir="os/solaris/solaris2.6"
67429     #    ;;
67430       *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
67431          cat >>confdefs.h <<\_ACEOF
67432 #define HAVE_GETPAGESIZE 1
67433 _ACEOF
67434
67435          cat >>confdefs.h <<\_ACEOF
67436 #define HAVE_SIGSETJMP 1
67437 _ACEOF
67438
67439          cat >>confdefs.h <<\_ACEOF
67440 #define HAVE_MBSTATE_T 1
67441 _ACEOF
67442
67443          cat >>confdefs.h <<\_ACEOF
67444 #define HAVE_POLL 1
67445 _ACEOF
67446
67447          cat >>confdefs.h <<\_ACEOF
67448 #define HAVE_S_ISREG 1
67449 _ACEOF
67450
67451          cat >>confdefs.h <<\_ACEOF
67452 #define HAVE_LC_MESSAGES 1
67453 _ACEOF
67454
67455          cat >>confdefs.h <<\_ACEOF
67456 #define HAVE_BTOWC 1
67457 _ACEOF
67458
67459          cat >>confdefs.h <<\_ACEOF
67460 #define HAVE_FGETWC 1
67461 _ACEOF
67462
67463          cat >>confdefs.h <<\_ACEOF
67464 #define HAVE_FGETWS 1
67465 _ACEOF
67466
67467          cat >>confdefs.h <<\_ACEOF
67468 #define HAVE_FINITE 1
67469 _ACEOF
67470
67471          cat >>confdefs.h <<\_ACEOF
67472 #define HAVE_FPCLASS 1
67473 _ACEOF
67474
67475          cat >>confdefs.h <<\_ACEOF
67476 #define HAVE_FPUTWC 1
67477 _ACEOF
67478
67479          cat >>confdefs.h <<\_ACEOF
67480 #define HAVE_FPUTWS 1
67481 _ACEOF
67482
67483          cat >>confdefs.h <<\_ACEOF
67484 #define HAVE_FWIDE 1
67485 _ACEOF
67486
67487          cat >>confdefs.h <<\_ACEOF
67488 #define HAVE_FWPRINTF 1
67489 _ACEOF
67490
67491          cat >>confdefs.h <<\_ACEOF
67492 #define HAVE_FWSCANF 1
67493 _ACEOF
67494
67495          cat >>confdefs.h <<\_ACEOF
67496 #define HAVE_GETPAGESIZE 1
67497 _ACEOF
67498
67499          cat >>confdefs.h <<\_ACEOF
67500 #define HAVE_GETWC 1
67501 _ACEOF
67502
67503          cat >>confdefs.h <<\_ACEOF
67504 #define HAVE_GETWCHAR 1
67505 _ACEOF
67506
67507          cat >>confdefs.h <<\_ACEOF
67508 #define HAVE_MBRLEN 1
67509 _ACEOF
67510
67511          cat >>confdefs.h <<\_ACEOF
67512 #define HAVE_MBRTOWC 1
67513 _ACEOF
67514
67515          cat >>confdefs.h <<\_ACEOF
67516 #define HAVE_MBSINIT 1
67517 _ACEOF
67518
67519          cat >>confdefs.h <<\_ACEOF
67520 #define HAVE_MBSRTOWCS 1
67521 _ACEOF
67522
67523          cat >>confdefs.h <<\_ACEOF
67524 #define HAVE_NL_LANGINFO 1
67525 _ACEOF
67526
67527          cat >>confdefs.h <<\_ACEOF
67528 #define HAVE_PUTWC 1
67529 _ACEOF
67530
67531          cat >>confdefs.h <<\_ACEOF
67532 #define HAVE_PUTWCHAR 1
67533 _ACEOF
67534
67535          cat >>confdefs.h <<\_ACEOF
67536 #define HAVE_SWPRINTF 1
67537 _ACEOF
67538
67539          cat >>confdefs.h <<\_ACEOF
67540 #define HAVE_SWSCANF 1
67541 _ACEOF
67542
67543          cat >>confdefs.h <<\_ACEOF
67544 #define HAVE_UNGETWC 1
67545 _ACEOF
67546
67547          cat >>confdefs.h <<\_ACEOF
67548 #define HAVE_VFWPRINTF 1
67549 _ACEOF
67550
67551          cat >>confdefs.h <<\_ACEOF
67552 #define HAVE_VSWPRINTF 1
67553 _ACEOF
67554
67555          cat >>confdefs.h <<\_ACEOF
67556 #define HAVE_VWPRINTF 1
67557 _ACEOF
67558
67559          cat >>confdefs.h <<\_ACEOF
67560 #define HAVE_WCRTOMB 1
67561 _ACEOF
67562
67563          cat >>confdefs.h <<\_ACEOF
67564 #define HAVE_WCSCAT 1
67565 _ACEOF
67566
67567          cat >>confdefs.h <<\_ACEOF
67568 #define HAVE_WCSCHR 1
67569 _ACEOF
67570
67571          cat >>confdefs.h <<\_ACEOF
67572 #define HAVE_WCSCMP 1
67573 _ACEOF
67574
67575          cat >>confdefs.h <<\_ACEOF
67576 #define HAVE_WCSCOLL 1
67577 _ACEOF
67578
67579          cat >>confdefs.h <<\_ACEOF
67580 #define HAVE_WCSCPY 1
67581 _ACEOF
67582
67583          cat >>confdefs.h <<\_ACEOF
67584 #define HAVE_WCSCSPN 1
67585 _ACEOF
67586
67587          cat >>confdefs.h <<\_ACEOF
67588 #define HAVE_WCSFTIME 1
67589 _ACEOF
67590
67591          cat >>confdefs.h <<\_ACEOF
67592 #define HAVE_WCSLEN 1
67593 _ACEOF
67594
67595          cat >>confdefs.h <<\_ACEOF
67596 #define HAVE_WCSNCAT 1
67597 _ACEOF
67598
67599          cat >>confdefs.h <<\_ACEOF
67600 #define HAVE_WCSNCMP 1
67601 _ACEOF
67602
67603          cat >>confdefs.h <<\_ACEOF
67604 #define HAVE_WCSNCPY 1
67605 _ACEOF
67606
67607          cat >>confdefs.h <<\_ACEOF
67608 #define HAVE_WCSPBRK 1
67609 _ACEOF
67610
67611          cat >>confdefs.h <<\_ACEOF
67612 #define HAVE_WCSRCHR 1
67613 _ACEOF
67614
67615          cat >>confdefs.h <<\_ACEOF
67616 #define HAVE_WCSRTOMBS 1
67617 _ACEOF
67618
67619          cat >>confdefs.h <<\_ACEOF
67620 #define HAVE_WCSSPN 1
67621 _ACEOF
67622
67623          cat >>confdefs.h <<\_ACEOF
67624 #define HAVE_WCSSTR 1
67625 _ACEOF
67626
67627          cat >>confdefs.h <<\_ACEOF
67628 #define HAVE_WCSTOD 1
67629 _ACEOF
67630
67631          cat >>confdefs.h <<\_ACEOF
67632 #define HAVE_WCSTOK 1
67633 _ACEOF
67634
67635          cat >>confdefs.h <<\_ACEOF
67636 #define HAVE_WCSTOL 1
67637 _ACEOF
67638
67639          cat >>confdefs.h <<\_ACEOF
67640 #define HAVE_WCSTOUL 1
67641 _ACEOF
67642
67643          cat >>confdefs.h <<\_ACEOF
67644 #define HAVE_WCSXFRM 1
67645 _ACEOF
67646
67647          cat >>confdefs.h <<\_ACEOF
67648 #define HAVE_WCTOB 1
67649 _ACEOF
67650
67651          cat >>confdefs.h <<\_ACEOF
67652 #define HAVE_WMEMCHR 1
67653 _ACEOF
67654
67655          cat >>confdefs.h <<\_ACEOF
67656 #define HAVE_WMEMCMP 1
67657 _ACEOF
67658
67659          cat >>confdefs.h <<\_ACEOF
67660 #define HAVE_WMEMCPY 1
67661 _ACEOF
67662
67663          cat >>confdefs.h <<\_ACEOF
67664 #define HAVE_WMEMMOVE 1
67665 _ACEOF
67666
67667          cat >>confdefs.h <<\_ACEOF
67668 #define HAVE_WMEMSET 1
67669 _ACEOF
67670
67671          cat >>confdefs.h <<\_ACEOF
67672 #define HAVE_WPRINTF 1
67673 _ACEOF
67674
67675          cat >>confdefs.h <<\_ACEOF
67676 #define HAVE_WSCANF 1
67677 _ACEOF
67678
67679          cat >>confdefs.h <<\_ACEOF
67680 #define HAVE_ICONV 1
67681 _ACEOF
67682
67683          cat >>confdefs.h <<\_ACEOF
67684 #define HAVE_ICONV_CLOSE 1
67685 _ACEOF
67686
67687          cat >>confdefs.h <<\_ACEOF
67688 #define HAVE_ICONV_OPEN 1
67689 _ACEOF
67690
67691          # Look for the pieces required for wchar_t support in order to
67692          # get all the right HAVE_* macros defined.
67693
67694   # Test wchar.h for mbstate_t, which is needed for char_traits and
67695   # others even if wchar_t support is not on.
67696   echo "$as_me:$LINENO: checking for mbstate_t" >&5
67697 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
67698   cat >conftest.$ac_ext <<_ACEOF
67699 /* confdefs.h.  */
67700 _ACEOF
67701 cat confdefs.h >>conftest.$ac_ext
67702 cat >>conftest.$ac_ext <<_ACEOF
67703 /* end confdefs.h.  */
67704 #include <wchar.h>
67705 int
67706 main ()
67707 {
67708 mbstate_t teststate;
67709   ;
67710   return 0;
67711 }
67712 _ACEOF
67713 rm -f conftest.$ac_objext
67714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67715   (eval $ac_compile) 2>conftest.er1
67716   ac_status=$?
67717   grep -v '^ *+' conftest.er1 >conftest.err
67718   rm -f conftest.er1
67719   cat conftest.err >&5
67720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67721   (exit $ac_status); } &&
67722          { ac_try='test -z "$ac_c_werror_flag"
67723                          || test ! -s conftest.err'
67724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67725   (eval $ac_try) 2>&5
67726   ac_status=$?
67727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67728   (exit $ac_status); }; } &&
67729          { ac_try='test -s conftest.$ac_objext'
67730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67731   (eval $ac_try) 2>&5
67732   ac_status=$?
67733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67734   (exit $ac_status); }; }; then
67735   have_mbstate_t=yes
67736 else
67737   echo "$as_me: failed program was:" >&5
67738 sed 's/^/| /' conftest.$ac_ext >&5
67739
67740 have_mbstate_t=no
67741 fi
67742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67743   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
67744 echo "${ECHO_T}$have_mbstate_t" >&6
67745   if test x"$have_mbstate_t" = xyes; then
67746     cat >>confdefs.h <<\_ACEOF
67747 #define HAVE_MBSTATE_T 1
67748 _ACEOF
67749
67750   fi
67751
67752   # Sanity check for existence of ISO C99 headers for extended encoding.
67753
67754 for ac_header in wchar.h
67755 do
67756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
67757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67758   echo "$as_me:$LINENO: checking for $ac_header" >&5
67759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67761   echo $ECHO_N "(cached) $ECHO_C" >&6
67762 fi
67763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67765 else
67766   # Is the header compilable?
67767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
67768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
67769 cat >conftest.$ac_ext <<_ACEOF
67770 /* confdefs.h.  */
67771 _ACEOF
67772 cat confdefs.h >>conftest.$ac_ext
67773 cat >>conftest.$ac_ext <<_ACEOF
67774 /* end confdefs.h.  */
67775 $ac_includes_default
67776 #include <$ac_header>
67777 _ACEOF
67778 rm -f conftest.$ac_objext
67779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67780   (eval $ac_compile) 2>conftest.er1
67781   ac_status=$?
67782   grep -v '^ *+' conftest.er1 >conftest.err
67783   rm -f conftest.er1
67784   cat conftest.err >&5
67785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67786   (exit $ac_status); } &&
67787          { ac_try='test -z "$ac_c_werror_flag"
67788                          || test ! -s conftest.err'
67789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67790   (eval $ac_try) 2>&5
67791   ac_status=$?
67792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67793   (exit $ac_status); }; } &&
67794          { ac_try='test -s conftest.$ac_objext'
67795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67796   (eval $ac_try) 2>&5
67797   ac_status=$?
67798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67799   (exit $ac_status); }; }; then
67800   ac_header_compiler=yes
67801 else
67802   echo "$as_me: failed program was:" >&5
67803 sed 's/^/| /' conftest.$ac_ext >&5
67804
67805 ac_header_compiler=no
67806 fi
67807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67809 echo "${ECHO_T}$ac_header_compiler" >&6
67810
67811 # Is the header present?
67812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
67813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
67814 cat >conftest.$ac_ext <<_ACEOF
67815 /* confdefs.h.  */
67816 _ACEOF
67817 cat confdefs.h >>conftest.$ac_ext
67818 cat >>conftest.$ac_ext <<_ACEOF
67819 /* end confdefs.h.  */
67820 #include <$ac_header>
67821 _ACEOF
67822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67824   ac_status=$?
67825   grep -v '^ *+' conftest.er1 >conftest.err
67826   rm -f conftest.er1
67827   cat conftest.err >&5
67828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67829   (exit $ac_status); } >/dev/null; then
67830   if test -s conftest.err; then
67831     ac_cpp_err=$ac_c_preproc_warn_flag
67832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67833   else
67834     ac_cpp_err=
67835   fi
67836 else
67837   ac_cpp_err=yes
67838 fi
67839 if test -z "$ac_cpp_err"; then
67840   ac_header_preproc=yes
67841 else
67842   echo "$as_me: failed program was:" >&5
67843 sed 's/^/| /' conftest.$ac_ext >&5
67844
67845   ac_header_preproc=no
67846 fi
67847 rm -f conftest.err conftest.$ac_ext
67848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67849 echo "${ECHO_T}$ac_header_preproc" >&6
67850
67851 # So?  What about this header?
67852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67853   yes:no: )
67854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
67855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
67856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
67857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
67858     ac_header_preproc=yes
67859     ;;
67860   no:yes:* )
67861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
67862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
67863     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
67864 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
67865     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
67866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
67867     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
67868 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
67869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
67870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
67871     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
67872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
67873     (
67874       cat <<\_ASBOX
67875 ## ----------------------------------------- ##
67876 ## Report this to the package-unused lists.  ##
67877 ## ----------------------------------------- ##
67878 _ASBOX
67879     ) |
67880       sed "s/^/$as_me: WARNING:     /" >&2
67881     ;;
67882 esac
67883 echo "$as_me:$LINENO: checking for $ac_header" >&5
67884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67886   echo $ECHO_N "(cached) $ECHO_C" >&6
67887 else
67888   eval "$as_ac_Header=\$ac_header_preproc"
67889 fi
67890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67892
67893 fi
67894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
67895   cat >>confdefs.h <<_ACEOF
67896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
67897 _ACEOF
67898  ac_has_wchar_h=yes
67899 else
67900   ac_has_wchar_h=no
67901 fi
67902
67903 done
67904
67905
67906 for ac_header in wctype.h
67907 do
67908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
67909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67910   echo "$as_me:$LINENO: checking for $ac_header" >&5
67911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67913   echo $ECHO_N "(cached) $ECHO_C" >&6
67914 fi
67915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67917 else
67918   # Is the header compilable?
67919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
67920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
67921 cat >conftest.$ac_ext <<_ACEOF
67922 /* confdefs.h.  */
67923 _ACEOF
67924 cat confdefs.h >>conftest.$ac_ext
67925 cat >>conftest.$ac_ext <<_ACEOF
67926 /* end confdefs.h.  */
67927 $ac_includes_default
67928 #include <$ac_header>
67929 _ACEOF
67930 rm -f conftest.$ac_objext
67931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67932   (eval $ac_compile) 2>conftest.er1
67933   ac_status=$?
67934   grep -v '^ *+' conftest.er1 >conftest.err
67935   rm -f conftest.er1
67936   cat conftest.err >&5
67937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67938   (exit $ac_status); } &&
67939          { ac_try='test -z "$ac_c_werror_flag"
67940                          || test ! -s conftest.err'
67941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67942   (eval $ac_try) 2>&5
67943   ac_status=$?
67944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67945   (exit $ac_status); }; } &&
67946          { ac_try='test -s conftest.$ac_objext'
67947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67948   (eval $ac_try) 2>&5
67949   ac_status=$?
67950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67951   (exit $ac_status); }; }; then
67952   ac_header_compiler=yes
67953 else
67954   echo "$as_me: failed program was:" >&5
67955 sed 's/^/| /' conftest.$ac_ext >&5
67956
67957 ac_header_compiler=no
67958 fi
67959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67961 echo "${ECHO_T}$ac_header_compiler" >&6
67962
67963 # Is the header present?
67964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
67965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
67966 cat >conftest.$ac_ext <<_ACEOF
67967 /* confdefs.h.  */
67968 _ACEOF
67969 cat confdefs.h >>conftest.$ac_ext
67970 cat >>conftest.$ac_ext <<_ACEOF
67971 /* end confdefs.h.  */
67972 #include <$ac_header>
67973 _ACEOF
67974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67976   ac_status=$?
67977   grep -v '^ *+' conftest.er1 >conftest.err
67978   rm -f conftest.er1
67979   cat conftest.err >&5
67980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67981   (exit $ac_status); } >/dev/null; then
67982   if test -s conftest.err; then
67983     ac_cpp_err=$ac_c_preproc_warn_flag
67984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67985   else
67986     ac_cpp_err=
67987   fi
67988 else
67989   ac_cpp_err=yes
67990 fi
67991 if test -z "$ac_cpp_err"; then
67992   ac_header_preproc=yes
67993 else
67994   echo "$as_me: failed program was:" >&5
67995 sed 's/^/| /' conftest.$ac_ext >&5
67996
67997   ac_header_preproc=no
67998 fi
67999 rm -f conftest.err conftest.$ac_ext
68000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68001 echo "${ECHO_T}$ac_header_preproc" >&6
68002
68003 # So?  What about this header?
68004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68005   yes:no: )
68006     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68010     ac_header_preproc=yes
68011     ;;
68012   no:yes:* )
68013     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68015     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
68016 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
68017     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68019     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
68020 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
68021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68023     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68025     (
68026       cat <<\_ASBOX
68027 ## ----------------------------------------- ##
68028 ## Report this to the package-unused lists.  ##
68029 ## ----------------------------------------- ##
68030 _ASBOX
68031     ) |
68032       sed "s/^/$as_me: WARNING:     /" >&2
68033     ;;
68034 esac
68035 echo "$as_me:$LINENO: checking for $ac_header" >&5
68036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68038   echo $ECHO_N "(cached) $ECHO_C" >&6
68039 else
68040   eval "$as_ac_Header=\$ac_header_preproc"
68041 fi
68042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68044
68045 fi
68046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
68047   cat >>confdefs.h <<_ACEOF
68048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
68049 _ACEOF
68050  ac_has_wctype_h=yes
68051 else
68052   ac_has_wctype_h=no
68053 fi
68054
68055 done
68056
68057
68058   # Only continue checking if the ISO C99 headers exist and support is on.
68059   if test x"$ac_has_wchar_h" = xyes &&
68060      test x"$ac_has_wctype_h" = xyes &&
68061      test x"$enable_c_mbchar" != xno; then
68062
68063     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
68064     # numeric_limits can instantiate type_traits<wchar_t>
68065     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
68066 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
68067     cat >conftest.$ac_ext <<_ACEOF
68068 /* confdefs.h.  */
68069 _ACEOF
68070 cat confdefs.h >>conftest.$ac_ext
68071 cat >>conftest.$ac_ext <<_ACEOF
68072 /* end confdefs.h.  */
68073 #include <wchar.h>
68074 int
68075 main ()
68076 {
68077 int i = WCHAR_MIN; int j = WCHAR_MAX;
68078   ;
68079   return 0;
68080 }
68081 _ACEOF
68082 rm -f conftest.$ac_objext
68083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68084   (eval $ac_compile) 2>conftest.er1
68085   ac_status=$?
68086   grep -v '^ *+' conftest.er1 >conftest.err
68087   rm -f conftest.er1
68088   cat conftest.err >&5
68089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68090   (exit $ac_status); } &&
68091          { ac_try='test -z "$ac_c_werror_flag"
68092                          || test ! -s conftest.err'
68093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68094   (eval $ac_try) 2>&5
68095   ac_status=$?
68096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68097   (exit $ac_status); }; } &&
68098          { ac_try='test -s conftest.$ac_objext'
68099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68100   (eval $ac_try) 2>&5
68101   ac_status=$?
68102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68103   (exit $ac_status); }; }; then
68104   has_wchar_minmax=yes
68105 else
68106   echo "$as_me: failed program was:" >&5
68107 sed 's/^/| /' conftest.$ac_ext >&5
68108
68109 has_wchar_minmax=no
68110 fi
68111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68112     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
68113 echo "${ECHO_T}$has_wchar_minmax" >&6
68114
68115     # Test wchar.h for WEOF, which is what we use to determine whether
68116     # to specialize for char_traits<wchar_t> or not.
68117     echo "$as_me:$LINENO: checking for WEOF" >&5
68118 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
68119     cat >conftest.$ac_ext <<_ACEOF
68120 /* confdefs.h.  */
68121 _ACEOF
68122 cat confdefs.h >>conftest.$ac_ext
68123 cat >>conftest.$ac_ext <<_ACEOF
68124 /* end confdefs.h.  */
68125
68126       #include <wchar.h>
68127       #include <stddef.h>
68128 int
68129 main ()
68130 {
68131 wint_t i = WEOF;
68132   ;
68133   return 0;
68134 }
68135 _ACEOF
68136 rm -f conftest.$ac_objext
68137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68138   (eval $ac_compile) 2>conftest.er1
68139   ac_status=$?
68140   grep -v '^ *+' conftest.er1 >conftest.err
68141   rm -f conftest.er1
68142   cat conftest.err >&5
68143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68144   (exit $ac_status); } &&
68145          { ac_try='test -z "$ac_c_werror_flag"
68146                          || test ! -s conftest.err'
68147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68148   (eval $ac_try) 2>&5
68149   ac_status=$?
68150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68151   (exit $ac_status); }; } &&
68152          { ac_try='test -s conftest.$ac_objext'
68153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68154   (eval $ac_try) 2>&5
68155   ac_status=$?
68156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68157   (exit $ac_status); }; }; then
68158   has_weof=yes
68159 else
68160   echo "$as_me: failed program was:" >&5
68161 sed 's/^/| /' conftest.$ac_ext >&5
68162
68163 has_weof=no
68164 fi
68165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68166     echo "$as_me:$LINENO: result: $has_weof" >&5
68167 echo "${ECHO_T}$has_weof" >&6
68168
68169     # Tests for wide character functions used in char_traits<wchar_t>.
68170     ac_wfuncs=yes
68171
68172
68173
68174
68175
68176
68177 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
68178 do
68179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68180 echo "$as_me:$LINENO: checking for $ac_func" >&5
68181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68182 if eval "test \"\${$as_ac_var+set}\" = set"; then
68183   echo $ECHO_N "(cached) $ECHO_C" >&6
68184 else
68185   if test x$gcc_no_link = xyes; then
68186   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68187 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68188    { (exit 1); exit 1; }; }
68189 fi
68190 cat >conftest.$ac_ext <<_ACEOF
68191 /* confdefs.h.  */
68192 _ACEOF
68193 cat confdefs.h >>conftest.$ac_ext
68194 cat >>conftest.$ac_ext <<_ACEOF
68195 /* end confdefs.h.  */
68196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68198 #define $ac_func innocuous_$ac_func
68199
68200 /* System header to define __stub macros and hopefully few prototypes,
68201     which can conflict with char $ac_func (); below.
68202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68203     <limits.h> exists even on freestanding compilers.  */
68204
68205 #ifdef __STDC__
68206 # include <limits.h>
68207 #else
68208 # include <assert.h>
68209 #endif
68210
68211 #undef $ac_func
68212
68213 /* Override any gcc2 internal prototype to avoid an error.  */
68214 #ifdef __cplusplus
68215 extern "C"
68216 {
68217 #endif
68218 /* We use char because int might match the return type of a gcc2
68219    builtin and then its argument prototype would still apply.  */
68220 char $ac_func ();
68221 /* The GNU C library defines this for functions which it implements
68222     to always fail with ENOSYS.  Some functions are actually named
68223     something starting with __ and the normal name is an alias.  */
68224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68225 choke me
68226 #else
68227 char (*f) () = $ac_func;
68228 #endif
68229 #ifdef __cplusplus
68230 }
68231 #endif
68232
68233 int
68234 main ()
68235 {
68236 return f != $ac_func;
68237   ;
68238   return 0;
68239 }
68240 _ACEOF
68241 rm -f conftest.$ac_objext conftest$ac_exeext
68242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68243   (eval $ac_link) 2>conftest.er1
68244   ac_status=$?
68245   grep -v '^ *+' conftest.er1 >conftest.err
68246   rm -f conftest.er1
68247   cat conftest.err >&5
68248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68249   (exit $ac_status); } &&
68250          { ac_try='test -z "$ac_c_werror_flag"
68251                          || test ! -s conftest.err'
68252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68253   (eval $ac_try) 2>&5
68254   ac_status=$?
68255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68256   (exit $ac_status); }; } &&
68257          { ac_try='test -s conftest$ac_exeext'
68258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68259   (eval $ac_try) 2>&5
68260   ac_status=$?
68261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68262   (exit $ac_status); }; }; then
68263   eval "$as_ac_var=yes"
68264 else
68265   echo "$as_me: failed program was:" >&5
68266 sed 's/^/| /' conftest.$ac_ext >&5
68267
68268 eval "$as_ac_var=no"
68269 fi
68270 rm -f conftest.err conftest.$ac_objext \
68271       conftest$ac_exeext conftest.$ac_ext
68272 fi
68273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68275 if test `eval echo '${'$as_ac_var'}'` = yes; then
68276   cat >>confdefs.h <<_ACEOF
68277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68278 _ACEOF
68279
68280 else
68281   ac_wfuncs=no
68282 fi
68283 done
68284
68285
68286     # Checks for names injected into std:: by the c_std headers.
68287
68288
68289
68290
68291
68292
68293
68294
68295
68296
68297
68298
68299
68300
68301
68302
68303
68304
68305
68306
68307
68308
68309
68310
68311
68312
68313
68314
68315
68316
68317
68318
68319
68320
68321
68322
68323
68324
68325
68326
68327
68328
68329
68330
68331
68332
68333 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
68334     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
68335     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
68336     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
68337     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
68338     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
68339 do
68340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68341 echo "$as_me:$LINENO: checking for $ac_func" >&5
68342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68343 if eval "test \"\${$as_ac_var+set}\" = set"; then
68344   echo $ECHO_N "(cached) $ECHO_C" >&6
68345 else
68346   if test x$gcc_no_link = xyes; then
68347   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68349    { (exit 1); exit 1; }; }
68350 fi
68351 cat >conftest.$ac_ext <<_ACEOF
68352 /* confdefs.h.  */
68353 _ACEOF
68354 cat confdefs.h >>conftest.$ac_ext
68355 cat >>conftest.$ac_ext <<_ACEOF
68356 /* end confdefs.h.  */
68357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68359 #define $ac_func innocuous_$ac_func
68360
68361 /* System header to define __stub macros and hopefully few prototypes,
68362     which can conflict with char $ac_func (); below.
68363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68364     <limits.h> exists even on freestanding compilers.  */
68365
68366 #ifdef __STDC__
68367 # include <limits.h>
68368 #else
68369 # include <assert.h>
68370 #endif
68371
68372 #undef $ac_func
68373
68374 /* Override any gcc2 internal prototype to avoid an error.  */
68375 #ifdef __cplusplus
68376 extern "C"
68377 {
68378 #endif
68379 /* We use char because int might match the return type of a gcc2
68380    builtin and then its argument prototype would still apply.  */
68381 char $ac_func ();
68382 /* The GNU C library defines this for functions which it implements
68383     to always fail with ENOSYS.  Some functions are actually named
68384     something starting with __ and the normal name is an alias.  */
68385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68386 choke me
68387 #else
68388 char (*f) () = $ac_func;
68389 #endif
68390 #ifdef __cplusplus
68391 }
68392 #endif
68393
68394 int
68395 main ()
68396 {
68397 return f != $ac_func;
68398   ;
68399   return 0;
68400 }
68401 _ACEOF
68402 rm -f conftest.$ac_objext conftest$ac_exeext
68403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68404   (eval $ac_link) 2>conftest.er1
68405   ac_status=$?
68406   grep -v '^ *+' conftest.er1 >conftest.err
68407   rm -f conftest.er1
68408   cat conftest.err >&5
68409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68410   (exit $ac_status); } &&
68411          { ac_try='test -z "$ac_c_werror_flag"
68412                          || test ! -s conftest.err'
68413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68414   (eval $ac_try) 2>&5
68415   ac_status=$?
68416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68417   (exit $ac_status); }; } &&
68418          { ac_try='test -s conftest$ac_exeext'
68419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68420   (eval $ac_try) 2>&5
68421   ac_status=$?
68422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68423   (exit $ac_status); }; }; then
68424   eval "$as_ac_var=yes"
68425 else
68426   echo "$as_me: failed program was:" >&5
68427 sed 's/^/| /' conftest.$ac_ext >&5
68428
68429 eval "$as_ac_var=no"
68430 fi
68431 rm -f conftest.err conftest.$ac_objext \
68432       conftest$ac_exeext conftest.$ac_ext
68433 fi
68434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68436 if test `eval echo '${'$as_ac_var'}'` = yes; then
68437   cat >>confdefs.h <<_ACEOF
68438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68439 _ACEOF
68440
68441 else
68442   ac_wfuncs=no
68443 fi
68444 done
68445
68446
68447     # Checks for wide character functions that are not required
68448     # for basic wchar_t support.  Don't disable support if they are missing.
68449     # Injection of these is wrapped with guard macros.
68450
68451
68452
68453
68454
68455 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
68456 do
68457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68458 echo "$as_me:$LINENO: checking for $ac_func" >&5
68459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68460 if eval "test \"\${$as_ac_var+set}\" = set"; then
68461   echo $ECHO_N "(cached) $ECHO_C" >&6
68462 else
68463   if test x$gcc_no_link = xyes; then
68464   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68466    { (exit 1); exit 1; }; }
68467 fi
68468 cat >conftest.$ac_ext <<_ACEOF
68469 /* confdefs.h.  */
68470 _ACEOF
68471 cat confdefs.h >>conftest.$ac_ext
68472 cat >>conftest.$ac_ext <<_ACEOF
68473 /* end confdefs.h.  */
68474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68476 #define $ac_func innocuous_$ac_func
68477
68478 /* System header to define __stub macros and hopefully few prototypes,
68479     which can conflict with char $ac_func (); below.
68480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68481     <limits.h> exists even on freestanding compilers.  */
68482
68483 #ifdef __STDC__
68484 # include <limits.h>
68485 #else
68486 # include <assert.h>
68487 #endif
68488
68489 #undef $ac_func
68490
68491 /* Override any gcc2 internal prototype to avoid an error.  */
68492 #ifdef __cplusplus
68493 extern "C"
68494 {
68495 #endif
68496 /* We use char because int might match the return type of a gcc2
68497    builtin and then its argument prototype would still apply.  */
68498 char $ac_func ();
68499 /* The GNU C library defines this for functions which it implements
68500     to always fail with ENOSYS.  Some functions are actually named
68501     something starting with __ and the normal name is an alias.  */
68502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68503 choke me
68504 #else
68505 char (*f) () = $ac_func;
68506 #endif
68507 #ifdef __cplusplus
68508 }
68509 #endif
68510
68511 int
68512 main ()
68513 {
68514 return f != $ac_func;
68515   ;
68516   return 0;
68517 }
68518 _ACEOF
68519 rm -f conftest.$ac_objext conftest$ac_exeext
68520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68521   (eval $ac_link) 2>conftest.er1
68522   ac_status=$?
68523   grep -v '^ *+' conftest.er1 >conftest.err
68524   rm -f conftest.er1
68525   cat conftest.err >&5
68526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68527   (exit $ac_status); } &&
68528          { ac_try='test -z "$ac_c_werror_flag"
68529                          || test ! -s conftest.err'
68530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68531   (eval $ac_try) 2>&5
68532   ac_status=$?
68533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68534   (exit $ac_status); }; } &&
68535          { ac_try='test -s conftest$ac_exeext'
68536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68537   (eval $ac_try) 2>&5
68538   ac_status=$?
68539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68540   (exit $ac_status); }; }; then
68541   eval "$as_ac_var=yes"
68542 else
68543   echo "$as_me: failed program was:" >&5
68544 sed 's/^/| /' conftest.$ac_ext >&5
68545
68546 eval "$as_ac_var=no"
68547 fi
68548 rm -f conftest.err conftest.$ac_objext \
68549       conftest$ac_exeext conftest.$ac_ext
68550 fi
68551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68553 if test `eval echo '${'$as_ac_var'}'` = yes; then
68554   cat >>confdefs.h <<_ACEOF
68555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68556 _ACEOF
68557
68558 fi
68559 done
68560
68561
68562     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
68563 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
68564     if test x"$has_weof" = xyes &&
68565        test x"$has_wchar_minmax" = xyes &&
68566        test x"$ac_wfuncs" = xyes;
68567     then
68568       ac_isoC99_wchar_t=yes
68569     else
68570       ac_isoC99_wchar_t=no
68571     fi
68572     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
68573 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
68574
68575     # Use iconv for wchar_t to char conversions. As such, check for
68576     # X/Open Portability Guide, version 2 features (XPG2).
68577     if test "${ac_cv_header_iconv_h+set}" = set; then
68578   echo "$as_me:$LINENO: checking for iconv.h" >&5
68579 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68580 if test "${ac_cv_header_iconv_h+set}" = set; then
68581   echo $ECHO_N "(cached) $ECHO_C" >&6
68582 fi
68583 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68584 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68585 else
68586   # Is the header compilable?
68587 echo "$as_me:$LINENO: checking iconv.h usability" >&5
68588 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
68589 cat >conftest.$ac_ext <<_ACEOF
68590 /* confdefs.h.  */
68591 _ACEOF
68592 cat confdefs.h >>conftest.$ac_ext
68593 cat >>conftest.$ac_ext <<_ACEOF
68594 /* end confdefs.h.  */
68595 $ac_includes_default
68596 #include <iconv.h>
68597 _ACEOF
68598 rm -f conftest.$ac_objext
68599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68600   (eval $ac_compile) 2>conftest.er1
68601   ac_status=$?
68602   grep -v '^ *+' conftest.er1 >conftest.err
68603   rm -f conftest.er1
68604   cat conftest.err >&5
68605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68606   (exit $ac_status); } &&
68607          { ac_try='test -z "$ac_c_werror_flag"
68608                          || test ! -s conftest.err'
68609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68610   (eval $ac_try) 2>&5
68611   ac_status=$?
68612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68613   (exit $ac_status); }; } &&
68614          { ac_try='test -s conftest.$ac_objext'
68615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68616   (eval $ac_try) 2>&5
68617   ac_status=$?
68618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68619   (exit $ac_status); }; }; then
68620   ac_header_compiler=yes
68621 else
68622   echo "$as_me: failed program was:" >&5
68623 sed 's/^/| /' conftest.$ac_ext >&5
68624
68625 ac_header_compiler=no
68626 fi
68627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68629 echo "${ECHO_T}$ac_header_compiler" >&6
68630
68631 # Is the header present?
68632 echo "$as_me:$LINENO: checking iconv.h presence" >&5
68633 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
68634 cat >conftest.$ac_ext <<_ACEOF
68635 /* confdefs.h.  */
68636 _ACEOF
68637 cat confdefs.h >>conftest.$ac_ext
68638 cat >>conftest.$ac_ext <<_ACEOF
68639 /* end confdefs.h.  */
68640 #include <iconv.h>
68641 _ACEOF
68642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68643   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68644   ac_status=$?
68645   grep -v '^ *+' conftest.er1 >conftest.err
68646   rm -f conftest.er1
68647   cat conftest.err >&5
68648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68649   (exit $ac_status); } >/dev/null; then
68650   if test -s conftest.err; then
68651     ac_cpp_err=$ac_c_preproc_warn_flag
68652     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68653   else
68654     ac_cpp_err=
68655   fi
68656 else
68657   ac_cpp_err=yes
68658 fi
68659 if test -z "$ac_cpp_err"; then
68660   ac_header_preproc=yes
68661 else
68662   echo "$as_me: failed program was:" >&5
68663 sed 's/^/| /' conftest.$ac_ext >&5
68664
68665   ac_header_preproc=no
68666 fi
68667 rm -f conftest.err conftest.$ac_ext
68668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68669 echo "${ECHO_T}$ac_header_preproc" >&6
68670
68671 # So?  What about this header?
68672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68673   yes:no: )
68674     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
68675 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68676     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
68677 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
68678     ac_header_preproc=yes
68679     ;;
68680   no:yes:* )
68681     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
68682 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
68683     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
68684 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
68685     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
68686 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
68687     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
68688 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
68689     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
68690 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
68691     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
68692 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
68693     (
68694       cat <<\_ASBOX
68695 ## ----------------------------------------- ##
68696 ## Report this to the package-unused lists.  ##
68697 ## ----------------------------------------- ##
68698 _ASBOX
68699     ) |
68700       sed "s/^/$as_me: WARNING:     /" >&2
68701     ;;
68702 esac
68703 echo "$as_me:$LINENO: checking for iconv.h" >&5
68704 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68705 if test "${ac_cv_header_iconv_h+set}" = set; then
68706   echo $ECHO_N "(cached) $ECHO_C" >&6
68707 else
68708   ac_cv_header_iconv_h=$ac_header_preproc
68709 fi
68710 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68711 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68712
68713 fi
68714 if test $ac_cv_header_iconv_h = yes; then
68715   ac_has_iconv_h=yes
68716 else
68717   ac_has_iconv_h=no
68718 fi
68719
68720
68721     if test "${ac_cv_header_langinfo_h+set}" = set; then
68722   echo "$as_me:$LINENO: checking for langinfo.h" >&5
68723 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68724 if test "${ac_cv_header_langinfo_h+set}" = set; then
68725   echo $ECHO_N "(cached) $ECHO_C" >&6
68726 fi
68727 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68728 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68729 else
68730   # Is the header compilable?
68731 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
68732 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
68733 cat >conftest.$ac_ext <<_ACEOF
68734 /* confdefs.h.  */
68735 _ACEOF
68736 cat confdefs.h >>conftest.$ac_ext
68737 cat >>conftest.$ac_ext <<_ACEOF
68738 /* end confdefs.h.  */
68739 $ac_includes_default
68740 #include <langinfo.h>
68741 _ACEOF
68742 rm -f conftest.$ac_objext
68743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68744   (eval $ac_compile) 2>conftest.er1
68745   ac_status=$?
68746   grep -v '^ *+' conftest.er1 >conftest.err
68747   rm -f conftest.er1
68748   cat conftest.err >&5
68749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68750   (exit $ac_status); } &&
68751          { ac_try='test -z "$ac_c_werror_flag"
68752                          || test ! -s conftest.err'
68753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68754   (eval $ac_try) 2>&5
68755   ac_status=$?
68756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68757   (exit $ac_status); }; } &&
68758          { ac_try='test -s conftest.$ac_objext'
68759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68760   (eval $ac_try) 2>&5
68761   ac_status=$?
68762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68763   (exit $ac_status); }; }; then
68764   ac_header_compiler=yes
68765 else
68766   echo "$as_me: failed program was:" >&5
68767 sed 's/^/| /' conftest.$ac_ext >&5
68768
68769 ac_header_compiler=no
68770 fi
68771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68773 echo "${ECHO_T}$ac_header_compiler" >&6
68774
68775 # Is the header present?
68776 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
68777 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
68778 cat >conftest.$ac_ext <<_ACEOF
68779 /* confdefs.h.  */
68780 _ACEOF
68781 cat confdefs.h >>conftest.$ac_ext
68782 cat >>conftest.$ac_ext <<_ACEOF
68783 /* end confdefs.h.  */
68784 #include <langinfo.h>
68785 _ACEOF
68786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68787   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68788   ac_status=$?
68789   grep -v '^ *+' conftest.er1 >conftest.err
68790   rm -f conftest.er1
68791   cat conftest.err >&5
68792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68793   (exit $ac_status); } >/dev/null; then
68794   if test -s conftest.err; then
68795     ac_cpp_err=$ac_c_preproc_warn_flag
68796     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68797   else
68798     ac_cpp_err=
68799   fi
68800 else
68801   ac_cpp_err=yes
68802 fi
68803 if test -z "$ac_cpp_err"; then
68804   ac_header_preproc=yes
68805 else
68806   echo "$as_me: failed program was:" >&5
68807 sed 's/^/| /' conftest.$ac_ext >&5
68808
68809   ac_header_preproc=no
68810 fi
68811 rm -f conftest.err conftest.$ac_ext
68812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68813 echo "${ECHO_T}$ac_header_preproc" >&6
68814
68815 # So?  What about this header?
68816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68817   yes:no: )
68818     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
68819 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68820     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
68821 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
68822     ac_header_preproc=yes
68823     ;;
68824   no:yes:* )
68825     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
68826 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
68827     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
68828 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
68829     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
68830 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
68831     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
68832 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
68833     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
68834 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
68835     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
68836 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
68837     (
68838       cat <<\_ASBOX
68839 ## ----------------------------------------- ##
68840 ## Report this to the package-unused lists.  ##
68841 ## ----------------------------------------- ##
68842 _ASBOX
68843     ) |
68844       sed "s/^/$as_me: WARNING:     /" >&2
68845     ;;
68846 esac
68847 echo "$as_me:$LINENO: checking for langinfo.h" >&5
68848 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68849 if test "${ac_cv_header_langinfo_h+set}" = set; then
68850   echo $ECHO_N "(cached) $ECHO_C" >&6
68851 else
68852   ac_cv_header_langinfo_h=$ac_header_preproc
68853 fi
68854 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68855 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68856
68857 fi
68858 if test $ac_cv_header_langinfo_h = yes; then
68859   ac_has_langinfo_h=yes
68860 else
68861   ac_has_langinfo_h=no
68862 fi
68863
68864
68865
68866     # Check for existence of libiconv.a providing XPG2 wchar_t support.
68867     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
68868 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
68869 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
68870   echo $ECHO_N "(cached) $ECHO_C" >&6
68871 else
68872   ac_check_lib_save_LIBS=$LIBS
68873 LIBS="-liconv  $LIBS"
68874 if test x$gcc_no_link = xyes; then
68875   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68877    { (exit 1); exit 1; }; }
68878 fi
68879 cat >conftest.$ac_ext <<_ACEOF
68880 /* confdefs.h.  */
68881 _ACEOF
68882 cat confdefs.h >>conftest.$ac_ext
68883 cat >>conftest.$ac_ext <<_ACEOF
68884 /* end confdefs.h.  */
68885
68886 /* Override any gcc2 internal prototype to avoid an error.  */
68887 #ifdef __cplusplus
68888 extern "C"
68889 #endif
68890 /* We use char because int might match the return type of a gcc2
68891    builtin and then its argument prototype would still apply.  */
68892 char iconv ();
68893 int
68894 main ()
68895 {
68896 iconv ();
68897   ;
68898   return 0;
68899 }
68900 _ACEOF
68901 rm -f conftest.$ac_objext conftest$ac_exeext
68902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68903   (eval $ac_link) 2>conftest.er1
68904   ac_status=$?
68905   grep -v '^ *+' conftest.er1 >conftest.err
68906   rm -f conftest.er1
68907   cat conftest.err >&5
68908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68909   (exit $ac_status); } &&
68910          { ac_try='test -z "$ac_c_werror_flag"
68911                          || test ! -s conftest.err'
68912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68913   (eval $ac_try) 2>&5
68914   ac_status=$?
68915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68916   (exit $ac_status); }; } &&
68917          { ac_try='test -s conftest$ac_exeext'
68918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68919   (eval $ac_try) 2>&5
68920   ac_status=$?
68921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68922   (exit $ac_status); }; }; then
68923   ac_cv_lib_iconv_iconv=yes
68924 else
68925   echo "$as_me: failed program was:" >&5
68926 sed 's/^/| /' conftest.$ac_ext >&5
68927
68928 ac_cv_lib_iconv_iconv=no
68929 fi
68930 rm -f conftest.err conftest.$ac_objext \
68931       conftest$ac_exeext conftest.$ac_ext
68932 LIBS=$ac_check_lib_save_LIBS
68933 fi
68934 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
68935 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
68936 if test $ac_cv_lib_iconv_iconv = yes; then
68937   libiconv="-liconv"
68938 fi
68939
68940     ac_save_LIBS="$LIBS"
68941     LIBS="$LIBS $libiconv"
68942
68943
68944
68945
68946
68947 for ac_func in iconv_open iconv_close iconv nl_langinfo
68948 do
68949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68950 echo "$as_me:$LINENO: checking for $ac_func" >&5
68951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68952 if eval "test \"\${$as_ac_var+set}\" = set"; then
68953   echo $ECHO_N "(cached) $ECHO_C" >&6
68954 else
68955   if test x$gcc_no_link = xyes; then
68956   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68957 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68958    { (exit 1); exit 1; }; }
68959 fi
68960 cat >conftest.$ac_ext <<_ACEOF
68961 /* confdefs.h.  */
68962 _ACEOF
68963 cat confdefs.h >>conftest.$ac_ext
68964 cat >>conftest.$ac_ext <<_ACEOF
68965 /* end confdefs.h.  */
68966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68968 #define $ac_func innocuous_$ac_func
68969
68970 /* System header to define __stub macros and hopefully few prototypes,
68971     which can conflict with char $ac_func (); below.
68972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68973     <limits.h> exists even on freestanding compilers.  */
68974
68975 #ifdef __STDC__
68976 # include <limits.h>
68977 #else
68978 # include <assert.h>
68979 #endif
68980
68981 #undef $ac_func
68982
68983 /* Override any gcc2 internal prototype to avoid an error.  */
68984 #ifdef __cplusplus
68985 extern "C"
68986 {
68987 #endif
68988 /* We use char because int might match the return type of a gcc2
68989    builtin and then its argument prototype would still apply.  */
68990 char $ac_func ();
68991 /* The GNU C library defines this for functions which it implements
68992     to always fail with ENOSYS.  Some functions are actually named
68993     something starting with __ and the normal name is an alias.  */
68994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68995 choke me
68996 #else
68997 char (*f) () = $ac_func;
68998 #endif
68999 #ifdef __cplusplus
69000 }
69001 #endif
69002
69003 int
69004 main ()
69005 {
69006 return f != $ac_func;
69007   ;
69008   return 0;
69009 }
69010 _ACEOF
69011 rm -f conftest.$ac_objext conftest$ac_exeext
69012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69013   (eval $ac_link) 2>conftest.er1
69014   ac_status=$?
69015   grep -v '^ *+' conftest.er1 >conftest.err
69016   rm -f conftest.er1
69017   cat conftest.err >&5
69018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69019   (exit $ac_status); } &&
69020          { ac_try='test -z "$ac_c_werror_flag"
69021                          || test ! -s conftest.err'
69022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69023   (eval $ac_try) 2>&5
69024   ac_status=$?
69025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69026   (exit $ac_status); }; } &&
69027          { ac_try='test -s conftest$ac_exeext'
69028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69029   (eval $ac_try) 2>&5
69030   ac_status=$?
69031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69032   (exit $ac_status); }; }; then
69033   eval "$as_ac_var=yes"
69034 else
69035   echo "$as_me: failed program was:" >&5
69036 sed 's/^/| /' conftest.$ac_ext >&5
69037
69038 eval "$as_ac_var=no"
69039 fi
69040 rm -f conftest.err conftest.$ac_objext \
69041       conftest$ac_exeext conftest.$ac_ext
69042 fi
69043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69045 if test `eval echo '${'$as_ac_var'}'` = yes; then
69046   cat >>confdefs.h <<_ACEOF
69047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69048 _ACEOF
69049  ac_XPG2funcs=yes
69050 else
69051   ac_XPG2funcs=no
69052 fi
69053 done
69054
69055
69056     LIBS="$ac_save_LIBS"
69057
69058     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
69059 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
69060     if test x"$ac_has_iconv_h" = xyes &&
69061        test x"$ac_has_langinfo_h" = xyes &&
69062        test x"$ac_XPG2funcs" = xyes;
69063     then
69064       ac_XPG2_wchar_t=yes
69065     else
69066       ac_XPG2_wchar_t=no
69067     fi
69068     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
69069 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
69070
69071     # At the moment, only enable wchar_t specializations if all the
69072     # above support is present.
69073     if test x"$ac_isoC99_wchar_t" = xyes &&
69074        test x"$ac_XPG2_wchar_t" = xyes;
69075     then
69076       cat >>confdefs.h <<\_ACEOF
69077 #define _GLIBCXX_USE_WCHAR_T 1
69078 _ACEOF
69079
69080       enable_wchar_t=yes
69081     fi
69082   fi
69083   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
69084 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
69085   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
69086 echo "${ECHO_T}$enable_wchar_t" >&6
69087
69088          # All of the dependencies for wide character support are here, so
69089          # turn it on.  This requires some syncronization with the
69090          # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
69091          cat >>confdefs.h <<\_ACEOF
69092 #define _GLIBCXX_USE_WCHAR_T 1
69093 _ACEOF
69094
69095          # Are these tested for even when cross?
69096          cat >>confdefs.h <<\_ACEOF
69097 #define HAVE_FLOAT_H 1
69098 _ACEOF
69099
69100          cat >>confdefs.h <<\_ACEOF
69101 #define HAVE_IEEEFP_H 1
69102 _ACEOF
69103
69104          cat >>confdefs.h <<\_ACEOF
69105 #define HAVE_INTTYPES_H 1
69106 _ACEOF
69107
69108          cat >>confdefs.h <<\_ACEOF
69109 #define HAVE_LOCALE_H 1
69110 _ACEOF
69111
69112          cat >>confdefs.h <<\_ACEOF
69113 #define HAVE_NAN_H 1
69114 _ACEOF
69115
69116          cat >>confdefs.h <<\_ACEOF
69117 #define HAVE_SYS_FILIO_H 1
69118 _ACEOF
69119
69120          cat >>confdefs.h <<\_ACEOF
69121 #define HAVE_SYS_IOCTL_H 1
69122 _ACEOF
69123
69124          cat >>confdefs.h <<\_ACEOF
69125 #define HAVE_SYS_ISA_DEFS_H 1
69126 _ACEOF
69127
69128          cat >>confdefs.h <<\_ACEOF
69129 #define HAVE_SYS_RESOURCE_H 1
69130 _ACEOF
69131
69132          cat >>confdefs.h <<\_ACEOF
69133 #define HAVE_SYS_TIME_H 1
69134 _ACEOF
69135
69136          cat >>confdefs.h <<\_ACEOF
69137 #define HAVE_SYS_TYPES_H 1
69138 _ACEOF
69139
69140          cat >>confdefs.h <<\_ACEOF
69141 #define HAVE_UNISTD_H 1
69142 _ACEOF
69143
69144          cat >>confdefs.h <<\_ACEOF
69145 #define HAVE_WCHAR_H 1
69146 _ACEOF
69147
69148          cat >>confdefs.h <<\_ACEOF
69149 #define HAVE_WCTYPE_H 1
69150 _ACEOF
69151
69152          cat >>confdefs.h <<\_ACEOF
69153 #define HAVE_LIBM 1
69154 _ACEOF
69155
69156         ;;
69157     esac
69158     case "$target" in
69159       sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
69160         # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
69161         cat >>confdefs.h <<\_ACEOF
69162 #define HAVE___BUILTIN_ABS 1
69163 _ACEOF
69164
69165         cat >>confdefs.h <<\_ACEOF
69166 #define HAVE___BUILTIN_LABS 1
69167 _ACEOF
69168
69169         cat >>confdefs.h <<\_ACEOF
69170 #define HAVE___BUILTIN_FABS 1
69171 _ACEOF
69172
69173         cat >>confdefs.h <<\_ACEOF
69174 #define HAVE___BUILTIN_FABSF 1
69175 _ACEOF
69176
69177         cat >>confdefs.h <<\_ACEOF
69178 #define HAVE___BUILTIN_FABSL 1
69179 _ACEOF
69180
69181         cat >>confdefs.h <<\_ACEOF
69182 #define HAVE___BUILTIN_COS 1
69183 _ACEOF
69184
69185         cat >>confdefs.h <<\_ACEOF
69186 #define HAVE___BUILTIN_COSF 1
69187 _ACEOF
69188
69189         cat >>confdefs.h <<\_ACEOF
69190 #define HAVE___BUILTIN_SIN 1
69191 _ACEOF
69192
69193         cat >>confdefs.h <<\_ACEOF
69194 #define HAVE___BUILTIN_SINF 1
69195 _ACEOF
69196
69197        ;;
69198     esac
69199     cat >>confdefs.h <<\_ACEOF
69200 #define HAVE_STRTOF 1
69201 _ACEOF
69202
69203     cat >>confdefs.h <<\_ACEOF
69204 #define HAVE_STRTOLD 1
69205 _ACEOF
69206
69207     cat >>confdefs.h <<\_ACEOF
69208 #define HAVE_MMAP 1
69209 _ACEOF
69210
69211     cat >>confdefs.h <<\_ACEOF
69212 #define HAVE_COPYSIGN 1
69213 _ACEOF
69214
69215     cat >>confdefs.h <<\_ACEOF
69216 #define HAVE_ISNAN 1
69217 _ACEOF
69218
69219     cat >>confdefs.h <<\_ACEOF
69220 #define HAVE_ISNANF 1
69221 _ACEOF
69222
69223     cat >>confdefs.h <<\_ACEOF
69224 #define HAVE_MODFF 1
69225 _ACEOF
69226
69227     cat >>confdefs.h <<\_ACEOF
69228 #define HAVE_HYPOT 1
69229 _ACEOF
69230
69231     ;;
69232   *-tpf)
69233
69234
69235
69236
69237
69238
69239
69240
69241 for ac_header in nan.h endian.h machine/endian.h  \
69242       sys/param.h sys/types.h locale.h float.h inttypes.h
69243 do
69244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
69245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69246   echo "$as_me:$LINENO: checking for $ac_header" >&5
69247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69249   echo $ECHO_N "(cached) $ECHO_C" >&6
69250 fi
69251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69253 else
69254   # Is the header compilable?
69255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
69256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
69257 cat >conftest.$ac_ext <<_ACEOF
69258 /* confdefs.h.  */
69259 _ACEOF
69260 cat confdefs.h >>conftest.$ac_ext
69261 cat >>conftest.$ac_ext <<_ACEOF
69262 /* end confdefs.h.  */
69263 $ac_includes_default
69264 #include <$ac_header>
69265 _ACEOF
69266 rm -f conftest.$ac_objext
69267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69268   (eval $ac_compile) 2>conftest.er1
69269   ac_status=$?
69270   grep -v '^ *+' conftest.er1 >conftest.err
69271   rm -f conftest.er1
69272   cat conftest.err >&5
69273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69274   (exit $ac_status); } &&
69275          { ac_try='test -z "$ac_c_werror_flag"
69276                          || test ! -s conftest.err'
69277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69278   (eval $ac_try) 2>&5
69279   ac_status=$?
69280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69281   (exit $ac_status); }; } &&
69282          { ac_try='test -s conftest.$ac_objext'
69283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69284   (eval $ac_try) 2>&5
69285   ac_status=$?
69286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69287   (exit $ac_status); }; }; then
69288   ac_header_compiler=yes
69289 else
69290   echo "$as_me: failed program was:" >&5
69291 sed 's/^/| /' conftest.$ac_ext >&5
69292
69293 ac_header_compiler=no
69294 fi
69295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
69296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69297 echo "${ECHO_T}$ac_header_compiler" >&6
69298
69299 # Is the header present?
69300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
69301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
69302 cat >conftest.$ac_ext <<_ACEOF
69303 /* confdefs.h.  */
69304 _ACEOF
69305 cat confdefs.h >>conftest.$ac_ext
69306 cat >>conftest.$ac_ext <<_ACEOF
69307 /* end confdefs.h.  */
69308 #include <$ac_header>
69309 _ACEOF
69310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
69311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
69312   ac_status=$?
69313   grep -v '^ *+' conftest.er1 >conftest.err
69314   rm -f conftest.er1
69315   cat conftest.err >&5
69316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69317   (exit $ac_status); } >/dev/null; then
69318   if test -s conftest.err; then
69319     ac_cpp_err=$ac_c_preproc_warn_flag
69320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
69321   else
69322     ac_cpp_err=
69323   fi
69324 else
69325   ac_cpp_err=yes
69326 fi
69327 if test -z "$ac_cpp_err"; then
69328   ac_header_preproc=yes
69329 else
69330   echo "$as_me: failed program was:" >&5
69331 sed 's/^/| /' conftest.$ac_ext >&5
69332
69333   ac_header_preproc=no
69334 fi
69335 rm -f conftest.err conftest.$ac_ext
69336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69337 echo "${ECHO_T}$ac_header_preproc" >&6
69338
69339 # So?  What about this header?
69340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69341   yes:no: )
69342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
69343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
69344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
69345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
69346     ac_header_preproc=yes
69347     ;;
69348   no:yes:* )
69349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
69350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
69351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
69352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
69353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
69354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
69355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
69356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
69357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
69358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
69359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
69360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
69361     (
69362       cat <<\_ASBOX
69363 ## ----------------------------------------- ##
69364 ## Report this to the package-unused lists.  ##
69365 ## ----------------------------------------- ##
69366 _ASBOX
69367     ) |
69368       sed "s/^/$as_me: WARNING:     /" >&2
69369     ;;
69370 esac
69371 echo "$as_me:$LINENO: checking for $ac_header" >&5
69372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69374   echo $ECHO_N "(cached) $ECHO_C" >&6
69375 else
69376   eval "$as_ac_Header=\$ac_header_preproc"
69377 fi
69378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69380
69381 fi
69382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
69383   cat >>confdefs.h <<_ACEOF
69384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
69385 _ACEOF
69386
69387 fi
69388
69389 done
69390
69391     SECTION_FLAGS='-ffunction-sections -fdata-sections'
69392
69393
69394   # If we're not using GNU ld, then there's no point in even trying these
69395   # tests.  Check for that first.  We should have already tested for gld
69396   # by now (in libtool), but require it now just to be safe...
69397   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
69398   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
69399
69400
69401
69402   # The name set by libtool depends on the version of libtool.  Shame on us
69403   # for depending on an impl detail, but c'est la vie.  Older versions used
69404   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
69405   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
69406   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
69407   # set (hence we're using an older libtool), then set it.
69408   if test x${with_gnu_ld+set} != xset; then
69409     if test x${ac_cv_prog_gnu_ld+set} != xset; then
69410       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
69411       with_gnu_ld=no
69412     else
69413       with_gnu_ld=$ac_cv_prog_gnu_ld
69414     fi
69415   fi
69416
69417   # Start by getting the version number.  I think the libtool test already
69418   # does some of this, but throws away the result.
69419
69420   ldver=`$LD --version 2>/dev/null | head -1 | \
69421          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
69422
69423   glibcxx_gnu_ld_version=`echo $ldver | \
69424          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
69425
69426   # Set --gc-sections.
69427   if test "$with_gnu_ld" = "notbroken"; then
69428     # GNU ld it is!  Joy and bunny rabbits!
69429
69430     # All these tests are for C++; save the language and the compiler flags.
69431     # Need to do this so that g++ won't try to link in libstdc++
69432     ac_test_CFLAGS="${CFLAGS+set}"
69433     ac_save_CFLAGS="$CFLAGS"
69434     CFLAGS='-x c++  -Wl,--gc-sections'
69435
69436     # Check for -Wl,--gc-sections
69437     # XXX This test is broken at the moment, as symbols required for linking
69438     # are now in libsupc++ (not built yet).  In addition, this test has
69439     # cored on solaris in the past.  In addition, --gc-sections doesn't
69440     # really work at the moment (keeps on discarding used sections, first
69441     # .eh_frame and now some of the glibc sections for iconv).
69442     # Bzzzzt.  Thanks for playing, maybe next time.
69443     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
69444 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
69445     if test "$cross_compiling" = yes; then
69446   ac_sectionLDflags=yes
69447 else
69448   cat >conftest.$ac_ext <<_ACEOF
69449 /* confdefs.h.  */
69450 _ACEOF
69451 cat confdefs.h >>conftest.$ac_ext
69452 cat >>conftest.$ac_ext <<_ACEOF
69453 /* end confdefs.h.  */
69454
69455      int main(void)
69456      {
69457        try { throw 1; }
69458        catch (...) { };
69459        return 0;
69460      }
69461
69462 _ACEOF
69463 rm -f conftest$ac_exeext
69464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69465   (eval $ac_link) 2>&5
69466   ac_status=$?
69467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
69469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69470   (eval $ac_try) 2>&5
69471   ac_status=$?
69472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69473   (exit $ac_status); }; }; then
69474   ac_sectionLDflags=yes
69475 else
69476   echo "$as_me: program exited with status $ac_status" >&5
69477 echo "$as_me: failed program was:" >&5
69478 sed 's/^/| /' conftest.$ac_ext >&5
69479
69480 ( exit $ac_status )
69481 ac_sectionLDflags=no
69482 fi
69483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
69484 fi
69485     if test "$ac_test_CFLAGS" = set; then
69486       CFLAGS="$ac_save_CFLAGS"
69487     else
69488       # this is the suspicious part
69489       CFLAGS=''
69490     fi
69491     if test "$ac_sectionLDflags" = "yes"; then
69492       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
69493     fi
69494     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
69495 echo "${ECHO_T}$ac_sectionLDflags" >&6
69496   fi
69497
69498   # Set linker optimization flags.
69499   if test x"$with_gnu_ld" = x"yes"; then
69500     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
69501   fi
69502
69503
69504
69505
69506
69507
69508 echo "$as_me:$LINENO: checking for main in -lm" >&5
69509 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
69510 if test "${ac_cv_lib_m_main+set}" = set; then
69511   echo $ECHO_N "(cached) $ECHO_C" >&6
69512 else
69513   ac_check_lib_save_LIBS=$LIBS
69514 LIBS="-lm  $LIBS"
69515 if test x$gcc_no_link = xyes; then
69516   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69518    { (exit 1); exit 1; }; }
69519 fi
69520 cat >conftest.$ac_ext <<_ACEOF
69521 /* confdefs.h.  */
69522 _ACEOF
69523 cat confdefs.h >>conftest.$ac_ext
69524 cat >>conftest.$ac_ext <<_ACEOF
69525 /* end confdefs.h.  */
69526
69527
69528 int
69529 main ()
69530 {
69531 main ();
69532   ;
69533   return 0;
69534 }
69535 _ACEOF
69536 rm -f conftest.$ac_objext conftest$ac_exeext
69537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69538   (eval $ac_link) 2>conftest.er1
69539   ac_status=$?
69540   grep -v '^ *+' conftest.er1 >conftest.err
69541   rm -f conftest.er1
69542   cat conftest.err >&5
69543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69544   (exit $ac_status); } &&
69545          { ac_try='test -z "$ac_c_werror_flag"
69546                          || test ! -s conftest.err'
69547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69548   (eval $ac_try) 2>&5
69549   ac_status=$?
69550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69551   (exit $ac_status); }; } &&
69552          { ac_try='test -s conftest$ac_exeext'
69553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69554   (eval $ac_try) 2>&5
69555   ac_status=$?
69556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69557   (exit $ac_status); }; }; then
69558   ac_cv_lib_m_main=yes
69559 else
69560   echo "$as_me: failed program was:" >&5
69561 sed 's/^/| /' conftest.$ac_ext >&5
69562
69563 ac_cv_lib_m_main=no
69564 fi
69565 rm -f conftest.err conftest.$ac_objext \
69566       conftest$ac_exeext conftest.$ac_ext
69567 LIBS=$ac_check_lib_save_LIBS
69568 fi
69569 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
69570 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
69571 if test $ac_cv_lib_m_main = yes; then
69572   cat >>confdefs.h <<_ACEOF
69573 #define HAVE_LIBM 1
69574 _ACEOF
69575
69576   LIBS="-lm $LIBS"
69577
69578 fi
69579
69580
69581 for ac_func in copysignf
69582 do
69583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69584 echo "$as_me:$LINENO: checking for $ac_func" >&5
69585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69586 if eval "test \"\${$as_ac_var+set}\" = set"; then
69587   echo $ECHO_N "(cached) $ECHO_C" >&6
69588 else
69589   if test x$gcc_no_link = xyes; then
69590   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69592    { (exit 1); exit 1; }; }
69593 fi
69594 cat >conftest.$ac_ext <<_ACEOF
69595 /* confdefs.h.  */
69596 _ACEOF
69597 cat confdefs.h >>conftest.$ac_ext
69598 cat >>conftest.$ac_ext <<_ACEOF
69599 /* end confdefs.h.  */
69600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69602 #define $ac_func innocuous_$ac_func
69603
69604 /* System header to define __stub macros and hopefully few prototypes,
69605     which can conflict with char $ac_func (); below.
69606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69607     <limits.h> exists even on freestanding compilers.  */
69608
69609 #ifdef __STDC__
69610 # include <limits.h>
69611 #else
69612 # include <assert.h>
69613 #endif
69614
69615 #undef $ac_func
69616
69617 /* Override any gcc2 internal prototype to avoid an error.  */
69618 #ifdef __cplusplus
69619 extern "C"
69620 {
69621 #endif
69622 /* We use char because int might match the return type of a gcc2
69623    builtin and then its argument prototype would still apply.  */
69624 char $ac_func ();
69625 /* The GNU C library defines this for functions which it implements
69626     to always fail with ENOSYS.  Some functions are actually named
69627     something starting with __ and the normal name is an alias.  */
69628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69629 choke me
69630 #else
69631 char (*f) () = $ac_func;
69632 #endif
69633 #ifdef __cplusplus
69634 }
69635 #endif
69636
69637 int
69638 main ()
69639 {
69640 return f != $ac_func;
69641   ;
69642   return 0;
69643 }
69644 _ACEOF
69645 rm -f conftest.$ac_objext conftest$ac_exeext
69646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69647   (eval $ac_link) 2>conftest.er1
69648   ac_status=$?
69649   grep -v '^ *+' conftest.er1 >conftest.err
69650   rm -f conftest.er1
69651   cat conftest.err >&5
69652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69653   (exit $ac_status); } &&
69654          { ac_try='test -z "$ac_c_werror_flag"
69655                          || test ! -s conftest.err'
69656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69657   (eval $ac_try) 2>&5
69658   ac_status=$?
69659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69660   (exit $ac_status); }; } &&
69661          { ac_try='test -s conftest$ac_exeext'
69662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69663   (eval $ac_try) 2>&5
69664   ac_status=$?
69665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69666   (exit $ac_status); }; }; then
69667   eval "$as_ac_var=yes"
69668 else
69669   echo "$as_me: failed program was:" >&5
69670 sed 's/^/| /' conftest.$ac_ext >&5
69671
69672 eval "$as_ac_var=no"
69673 fi
69674 rm -f conftest.err conftest.$ac_objext \
69675       conftest$ac_exeext conftest.$ac_ext
69676 fi
69677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69679 if test `eval echo '${'$as_ac_var'}'` = yes; then
69680   cat >>confdefs.h <<_ACEOF
69681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69682 _ACEOF
69683
69684 else
69685   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
69686 fi
69687 done
69688
69689
69690
69691 for ac_func in __signbit
69692 do
69693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69694 echo "$as_me:$LINENO: checking for $ac_func" >&5
69695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69696 if eval "test \"\${$as_ac_var+set}\" = set"; then
69697   echo $ECHO_N "(cached) $ECHO_C" >&6
69698 else
69699   if test x$gcc_no_link = xyes; then
69700   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69702    { (exit 1); exit 1; }; }
69703 fi
69704 cat >conftest.$ac_ext <<_ACEOF
69705 /* confdefs.h.  */
69706 _ACEOF
69707 cat confdefs.h >>conftest.$ac_ext
69708 cat >>conftest.$ac_ext <<_ACEOF
69709 /* end confdefs.h.  */
69710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69712 #define $ac_func innocuous_$ac_func
69713
69714 /* System header to define __stub macros and hopefully few prototypes,
69715     which can conflict with char $ac_func (); below.
69716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69717     <limits.h> exists even on freestanding compilers.  */
69718
69719 #ifdef __STDC__
69720 # include <limits.h>
69721 #else
69722 # include <assert.h>
69723 #endif
69724
69725 #undef $ac_func
69726
69727 /* Override any gcc2 internal prototype to avoid an error.  */
69728 #ifdef __cplusplus
69729 extern "C"
69730 {
69731 #endif
69732 /* We use char because int might match the return type of a gcc2
69733    builtin and then its argument prototype would still apply.  */
69734 char $ac_func ();
69735 /* The GNU C library defines this for functions which it implements
69736     to always fail with ENOSYS.  Some functions are actually named
69737     something starting with __ and the normal name is an alias.  */
69738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69739 choke me
69740 #else
69741 char (*f) () = $ac_func;
69742 #endif
69743 #ifdef __cplusplus
69744 }
69745 #endif
69746
69747 int
69748 main ()
69749 {
69750 return f != $ac_func;
69751   ;
69752   return 0;
69753 }
69754 _ACEOF
69755 rm -f conftest.$ac_objext conftest$ac_exeext
69756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69757   (eval $ac_link) 2>conftest.er1
69758   ac_status=$?
69759   grep -v '^ *+' conftest.er1 >conftest.err
69760   rm -f conftest.er1
69761   cat conftest.err >&5
69762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69763   (exit $ac_status); } &&
69764          { ac_try='test -z "$ac_c_werror_flag"
69765                          || test ! -s conftest.err'
69766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69767   (eval $ac_try) 2>&5
69768   ac_status=$?
69769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69770   (exit $ac_status); }; } &&
69771          { ac_try='test -s conftest$ac_exeext'
69772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69773   (eval $ac_try) 2>&5
69774   ac_status=$?
69775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69776   (exit $ac_status); }; }; then
69777   eval "$as_ac_var=yes"
69778 else
69779   echo "$as_me: failed program was:" >&5
69780 sed 's/^/| /' conftest.$ac_ext >&5
69781
69782 eval "$as_ac_var=no"
69783 fi
69784 rm -f conftest.err conftest.$ac_objext \
69785       conftest$ac_exeext conftest.$ac_ext
69786 fi
69787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69789 if test `eval echo '${'$as_ac_var'}'` = yes; then
69790   cat >>confdefs.h <<_ACEOF
69791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69792 _ACEOF
69793
69794 else
69795   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
69796 fi
69797 done
69798
69799
69800 for ac_func in __signbitf
69801 do
69802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69803 echo "$as_me:$LINENO: checking for $ac_func" >&5
69804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69805 if eval "test \"\${$as_ac_var+set}\" = set"; then
69806   echo $ECHO_N "(cached) $ECHO_C" >&6
69807 else
69808   if test x$gcc_no_link = xyes; then
69809   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69811    { (exit 1); exit 1; }; }
69812 fi
69813 cat >conftest.$ac_ext <<_ACEOF
69814 /* confdefs.h.  */
69815 _ACEOF
69816 cat confdefs.h >>conftest.$ac_ext
69817 cat >>conftest.$ac_ext <<_ACEOF
69818 /* end confdefs.h.  */
69819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69821 #define $ac_func innocuous_$ac_func
69822
69823 /* System header to define __stub macros and hopefully few prototypes,
69824     which can conflict with char $ac_func (); below.
69825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69826     <limits.h> exists even on freestanding compilers.  */
69827
69828 #ifdef __STDC__
69829 # include <limits.h>
69830 #else
69831 # include <assert.h>
69832 #endif
69833
69834 #undef $ac_func
69835
69836 /* Override any gcc2 internal prototype to avoid an error.  */
69837 #ifdef __cplusplus
69838 extern "C"
69839 {
69840 #endif
69841 /* We use char because int might match the return type of a gcc2
69842    builtin and then its argument prototype would still apply.  */
69843 char $ac_func ();
69844 /* The GNU C library defines this for functions which it implements
69845     to always fail with ENOSYS.  Some functions are actually named
69846     something starting with __ and the normal name is an alias.  */
69847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69848 choke me
69849 #else
69850 char (*f) () = $ac_func;
69851 #endif
69852 #ifdef __cplusplus
69853 }
69854 #endif
69855
69856 int
69857 main ()
69858 {
69859 return f != $ac_func;
69860   ;
69861   return 0;
69862 }
69863 _ACEOF
69864 rm -f conftest.$ac_objext conftest$ac_exeext
69865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69866   (eval $ac_link) 2>conftest.er1
69867   ac_status=$?
69868   grep -v '^ *+' conftest.er1 >conftest.err
69869   rm -f conftest.er1
69870   cat conftest.err >&5
69871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69872   (exit $ac_status); } &&
69873          { ac_try='test -z "$ac_c_werror_flag"
69874                          || test ! -s conftest.err'
69875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69876   (eval $ac_try) 2>&5
69877   ac_status=$?
69878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69879   (exit $ac_status); }; } &&
69880          { ac_try='test -s conftest$ac_exeext'
69881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69882   (eval $ac_try) 2>&5
69883   ac_status=$?
69884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69885   (exit $ac_status); }; }; then
69886   eval "$as_ac_var=yes"
69887 else
69888   echo "$as_me: failed program was:" >&5
69889 sed 's/^/| /' conftest.$ac_ext >&5
69890
69891 eval "$as_ac_var=no"
69892 fi
69893 rm -f conftest.err conftest.$ac_objext \
69894       conftest$ac_exeext conftest.$ac_ext
69895 fi
69896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69898 if test `eval echo '${'$as_ac_var'}'` = yes; then
69899   cat >>confdefs.h <<_ACEOF
69900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69901 _ACEOF
69902
69903 else
69904   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
69905 fi
69906 done
69907
69908
69909           if test x$ac_cv_func_copysignl = x"yes"; then
69910
69911 for ac_func in __signbitl
69912 do
69913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69914 echo "$as_me:$LINENO: checking for $ac_func" >&5
69915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69916 if eval "test \"\${$as_ac_var+set}\" = set"; then
69917   echo $ECHO_N "(cached) $ECHO_C" >&6
69918 else
69919   if test x$gcc_no_link = xyes; then
69920   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69921 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69922    { (exit 1); exit 1; }; }
69923 fi
69924 cat >conftest.$ac_ext <<_ACEOF
69925 /* confdefs.h.  */
69926 _ACEOF
69927 cat confdefs.h >>conftest.$ac_ext
69928 cat >>conftest.$ac_ext <<_ACEOF
69929 /* end confdefs.h.  */
69930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69932 #define $ac_func innocuous_$ac_func
69933
69934 /* System header to define __stub macros and hopefully few prototypes,
69935     which can conflict with char $ac_func (); below.
69936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69937     <limits.h> exists even on freestanding compilers.  */
69938
69939 #ifdef __STDC__
69940 # include <limits.h>
69941 #else
69942 # include <assert.h>
69943 #endif
69944
69945 #undef $ac_func
69946
69947 /* Override any gcc2 internal prototype to avoid an error.  */
69948 #ifdef __cplusplus
69949 extern "C"
69950 {
69951 #endif
69952 /* We use char because int might match the return type of a gcc2
69953    builtin and then its argument prototype would still apply.  */
69954 char $ac_func ();
69955 /* The GNU C library defines this for functions which it implements
69956     to always fail with ENOSYS.  Some functions are actually named
69957     something starting with __ and the normal name is an alias.  */
69958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69959 choke me
69960 #else
69961 char (*f) () = $ac_func;
69962 #endif
69963 #ifdef __cplusplus
69964 }
69965 #endif
69966
69967 int
69968 main ()
69969 {
69970 return f != $ac_func;
69971   ;
69972   return 0;
69973 }
69974 _ACEOF
69975 rm -f conftest.$ac_objext conftest$ac_exeext
69976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69977   (eval $ac_link) 2>conftest.er1
69978   ac_status=$?
69979   grep -v '^ *+' conftest.er1 >conftest.err
69980   rm -f conftest.er1
69981   cat conftest.err >&5
69982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69983   (exit $ac_status); } &&
69984          { ac_try='test -z "$ac_c_werror_flag"
69985                          || test ! -s conftest.err'
69986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69987   (eval $ac_try) 2>&5
69988   ac_status=$?
69989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69990   (exit $ac_status); }; } &&
69991          { ac_try='test -s conftest$ac_exeext'
69992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69993   (eval $ac_try) 2>&5
69994   ac_status=$?
69995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69996   (exit $ac_status); }; }; then
69997   eval "$as_ac_var=yes"
69998 else
69999   echo "$as_me: failed program was:" >&5
70000 sed 's/^/| /' conftest.$ac_ext >&5
70001
70002 eval "$as_ac_var=no"
70003 fi
70004 rm -f conftest.err conftest.$ac_objext \
70005       conftest$ac_exeext conftest.$ac_ext
70006 fi
70007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70009 if test `eval echo '${'$as_ac_var'}'` = yes; then
70010   cat >>confdefs.h <<_ACEOF
70011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70012 _ACEOF
70013
70014 else
70015   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
70016 fi
70017 done
70018
70019   fi
70020
70021   # XXX Review this.  Nothing uses it.
70022   if test -n "$LIBMATHOBJS"; then
70023     need_libmath=yes
70024   fi
70025
70026
70027
70028   # Test wchar.h for mbstate_t, which is needed for char_traits and
70029   # others even if wchar_t support is not on.
70030   echo "$as_me:$LINENO: checking for mbstate_t" >&5
70031 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
70032   cat >conftest.$ac_ext <<_ACEOF
70033 /* confdefs.h.  */
70034 _ACEOF
70035 cat confdefs.h >>conftest.$ac_ext
70036 cat >>conftest.$ac_ext <<_ACEOF
70037 /* end confdefs.h.  */
70038 #include <wchar.h>
70039 int
70040 main ()
70041 {
70042 mbstate_t teststate;
70043   ;
70044   return 0;
70045 }
70046 _ACEOF
70047 rm -f conftest.$ac_objext
70048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70049   (eval $ac_compile) 2>conftest.er1
70050   ac_status=$?
70051   grep -v '^ *+' conftest.er1 >conftest.err
70052   rm -f conftest.er1
70053   cat conftest.err >&5
70054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70055   (exit $ac_status); } &&
70056          { ac_try='test -z "$ac_c_werror_flag"
70057                          || test ! -s conftest.err'
70058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70059   (eval $ac_try) 2>&5
70060   ac_status=$?
70061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70062   (exit $ac_status); }; } &&
70063          { ac_try='test -s conftest.$ac_objext'
70064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70065   (eval $ac_try) 2>&5
70066   ac_status=$?
70067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70068   (exit $ac_status); }; }; then
70069   have_mbstate_t=yes
70070 else
70071   echo "$as_me: failed program was:" >&5
70072 sed 's/^/| /' conftest.$ac_ext >&5
70073
70074 have_mbstate_t=no
70075 fi
70076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70077   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
70078 echo "${ECHO_T}$have_mbstate_t" >&6
70079   if test x"$have_mbstate_t" = xyes; then
70080     cat >>confdefs.h <<\_ACEOF
70081 #define HAVE_MBSTATE_T 1
70082 _ACEOF
70083
70084   fi
70085
70086   # Sanity check for existence of ISO C99 headers for extended encoding.
70087
70088 for ac_header in wchar.h
70089 do
70090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70092   echo "$as_me:$LINENO: checking for $ac_header" >&5
70093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70095   echo $ECHO_N "(cached) $ECHO_C" >&6
70096 fi
70097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70099 else
70100   # Is the header compilable?
70101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70103 cat >conftest.$ac_ext <<_ACEOF
70104 /* confdefs.h.  */
70105 _ACEOF
70106 cat confdefs.h >>conftest.$ac_ext
70107 cat >>conftest.$ac_ext <<_ACEOF
70108 /* end confdefs.h.  */
70109 $ac_includes_default
70110 #include <$ac_header>
70111 _ACEOF
70112 rm -f conftest.$ac_objext
70113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70114   (eval $ac_compile) 2>conftest.er1
70115   ac_status=$?
70116   grep -v '^ *+' conftest.er1 >conftest.err
70117   rm -f conftest.er1
70118   cat conftest.err >&5
70119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70120   (exit $ac_status); } &&
70121          { ac_try='test -z "$ac_c_werror_flag"
70122                          || test ! -s conftest.err'
70123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70124   (eval $ac_try) 2>&5
70125   ac_status=$?
70126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70127   (exit $ac_status); }; } &&
70128          { ac_try='test -s conftest.$ac_objext'
70129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70130   (eval $ac_try) 2>&5
70131   ac_status=$?
70132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70133   (exit $ac_status); }; }; then
70134   ac_header_compiler=yes
70135 else
70136   echo "$as_me: failed program was:" >&5
70137 sed 's/^/| /' conftest.$ac_ext >&5
70138
70139 ac_header_compiler=no
70140 fi
70141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70143 echo "${ECHO_T}$ac_header_compiler" >&6
70144
70145 # Is the header present?
70146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70148 cat >conftest.$ac_ext <<_ACEOF
70149 /* confdefs.h.  */
70150 _ACEOF
70151 cat confdefs.h >>conftest.$ac_ext
70152 cat >>conftest.$ac_ext <<_ACEOF
70153 /* end confdefs.h.  */
70154 #include <$ac_header>
70155 _ACEOF
70156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70158   ac_status=$?
70159   grep -v '^ *+' conftest.er1 >conftest.err
70160   rm -f conftest.er1
70161   cat conftest.err >&5
70162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70163   (exit $ac_status); } >/dev/null; then
70164   if test -s conftest.err; then
70165     ac_cpp_err=$ac_c_preproc_warn_flag
70166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70167   else
70168     ac_cpp_err=
70169   fi
70170 else
70171   ac_cpp_err=yes
70172 fi
70173 if test -z "$ac_cpp_err"; then
70174   ac_header_preproc=yes
70175 else
70176   echo "$as_me: failed program was:" >&5
70177 sed 's/^/| /' conftest.$ac_ext >&5
70178
70179   ac_header_preproc=no
70180 fi
70181 rm -f conftest.err conftest.$ac_ext
70182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70183 echo "${ECHO_T}$ac_header_preproc" >&6
70184
70185 # So?  What about this header?
70186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70187   yes:no: )
70188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70192     ac_header_preproc=yes
70193     ;;
70194   no:yes:* )
70195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70197     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
70198 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
70199     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70201     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
70202 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
70203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70205     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70207     (
70208       cat <<\_ASBOX
70209 ## ----------------------------------------- ##
70210 ## Report this to the package-unused lists.  ##
70211 ## ----------------------------------------- ##
70212 _ASBOX
70213     ) |
70214       sed "s/^/$as_me: WARNING:     /" >&2
70215     ;;
70216 esac
70217 echo "$as_me:$LINENO: checking for $ac_header" >&5
70218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70220   echo $ECHO_N "(cached) $ECHO_C" >&6
70221 else
70222   eval "$as_ac_Header=\$ac_header_preproc"
70223 fi
70224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70226
70227 fi
70228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70229   cat >>confdefs.h <<_ACEOF
70230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70231 _ACEOF
70232  ac_has_wchar_h=yes
70233 else
70234   ac_has_wchar_h=no
70235 fi
70236
70237 done
70238
70239
70240 for ac_header in wctype.h
70241 do
70242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70244   echo "$as_me:$LINENO: checking for $ac_header" >&5
70245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70247   echo $ECHO_N "(cached) $ECHO_C" >&6
70248 fi
70249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70251 else
70252   # Is the header compilable?
70253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70255 cat >conftest.$ac_ext <<_ACEOF
70256 /* confdefs.h.  */
70257 _ACEOF
70258 cat confdefs.h >>conftest.$ac_ext
70259 cat >>conftest.$ac_ext <<_ACEOF
70260 /* end confdefs.h.  */
70261 $ac_includes_default
70262 #include <$ac_header>
70263 _ACEOF
70264 rm -f conftest.$ac_objext
70265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70266   (eval $ac_compile) 2>conftest.er1
70267   ac_status=$?
70268   grep -v '^ *+' conftest.er1 >conftest.err
70269   rm -f conftest.er1
70270   cat conftest.err >&5
70271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70272   (exit $ac_status); } &&
70273          { ac_try='test -z "$ac_c_werror_flag"
70274                          || test ! -s conftest.err'
70275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70276   (eval $ac_try) 2>&5
70277   ac_status=$?
70278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70279   (exit $ac_status); }; } &&
70280          { ac_try='test -s conftest.$ac_objext'
70281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70282   (eval $ac_try) 2>&5
70283   ac_status=$?
70284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70285   (exit $ac_status); }; }; then
70286   ac_header_compiler=yes
70287 else
70288   echo "$as_me: failed program was:" >&5
70289 sed 's/^/| /' conftest.$ac_ext >&5
70290
70291 ac_header_compiler=no
70292 fi
70293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70295 echo "${ECHO_T}$ac_header_compiler" >&6
70296
70297 # Is the header present?
70298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70300 cat >conftest.$ac_ext <<_ACEOF
70301 /* confdefs.h.  */
70302 _ACEOF
70303 cat confdefs.h >>conftest.$ac_ext
70304 cat >>conftest.$ac_ext <<_ACEOF
70305 /* end confdefs.h.  */
70306 #include <$ac_header>
70307 _ACEOF
70308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70310   ac_status=$?
70311   grep -v '^ *+' conftest.er1 >conftest.err
70312   rm -f conftest.er1
70313   cat conftest.err >&5
70314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70315   (exit $ac_status); } >/dev/null; then
70316   if test -s conftest.err; then
70317     ac_cpp_err=$ac_c_preproc_warn_flag
70318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70319   else
70320     ac_cpp_err=
70321   fi
70322 else
70323   ac_cpp_err=yes
70324 fi
70325 if test -z "$ac_cpp_err"; then
70326   ac_header_preproc=yes
70327 else
70328   echo "$as_me: failed program was:" >&5
70329 sed 's/^/| /' conftest.$ac_ext >&5
70330
70331   ac_header_preproc=no
70332 fi
70333 rm -f conftest.err conftest.$ac_ext
70334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70335 echo "${ECHO_T}$ac_header_preproc" >&6
70336
70337 # So?  What about this header?
70338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70339   yes:no: )
70340     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70344     ac_header_preproc=yes
70345     ;;
70346   no:yes:* )
70347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70349     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
70350 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
70351     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70353     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
70354 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
70355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70357     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70359     (
70360       cat <<\_ASBOX
70361 ## ----------------------------------------- ##
70362 ## Report this to the package-unused lists.  ##
70363 ## ----------------------------------------- ##
70364 _ASBOX
70365     ) |
70366       sed "s/^/$as_me: WARNING:     /" >&2
70367     ;;
70368 esac
70369 echo "$as_me:$LINENO: checking for $ac_header" >&5
70370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70372   echo $ECHO_N "(cached) $ECHO_C" >&6
70373 else
70374   eval "$as_ac_Header=\$ac_header_preproc"
70375 fi
70376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70378
70379 fi
70380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70381   cat >>confdefs.h <<_ACEOF
70382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70383 _ACEOF
70384  ac_has_wctype_h=yes
70385 else
70386   ac_has_wctype_h=no
70387 fi
70388
70389 done
70390
70391
70392   # Only continue checking if the ISO C99 headers exist and support is on.
70393   if test x"$ac_has_wchar_h" = xyes &&
70394      test x"$ac_has_wctype_h" = xyes &&
70395      test x"$enable_c_mbchar" != xno; then
70396
70397     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
70398     # numeric_limits can instantiate type_traits<wchar_t>
70399     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
70400 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
70401     cat >conftest.$ac_ext <<_ACEOF
70402 /* confdefs.h.  */
70403 _ACEOF
70404 cat confdefs.h >>conftest.$ac_ext
70405 cat >>conftest.$ac_ext <<_ACEOF
70406 /* end confdefs.h.  */
70407 #include <wchar.h>
70408 int
70409 main ()
70410 {
70411 int i = WCHAR_MIN; int j = WCHAR_MAX;
70412   ;
70413   return 0;
70414 }
70415 _ACEOF
70416 rm -f conftest.$ac_objext
70417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70418   (eval $ac_compile) 2>conftest.er1
70419   ac_status=$?
70420   grep -v '^ *+' conftest.er1 >conftest.err
70421   rm -f conftest.er1
70422   cat conftest.err >&5
70423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70424   (exit $ac_status); } &&
70425          { ac_try='test -z "$ac_c_werror_flag"
70426                          || test ! -s conftest.err'
70427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70428   (eval $ac_try) 2>&5
70429   ac_status=$?
70430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70431   (exit $ac_status); }; } &&
70432          { ac_try='test -s conftest.$ac_objext'
70433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70434   (eval $ac_try) 2>&5
70435   ac_status=$?
70436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70437   (exit $ac_status); }; }; then
70438   has_wchar_minmax=yes
70439 else
70440   echo "$as_me: failed program was:" >&5
70441 sed 's/^/| /' conftest.$ac_ext >&5
70442
70443 has_wchar_minmax=no
70444 fi
70445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70446     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
70447 echo "${ECHO_T}$has_wchar_minmax" >&6
70448
70449     # Test wchar.h for WEOF, which is what we use to determine whether
70450     # to specialize for char_traits<wchar_t> or not.
70451     echo "$as_me:$LINENO: checking for WEOF" >&5
70452 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
70453     cat >conftest.$ac_ext <<_ACEOF
70454 /* confdefs.h.  */
70455 _ACEOF
70456 cat confdefs.h >>conftest.$ac_ext
70457 cat >>conftest.$ac_ext <<_ACEOF
70458 /* end confdefs.h.  */
70459
70460       #include <wchar.h>
70461       #include <stddef.h>
70462 int
70463 main ()
70464 {
70465 wint_t i = WEOF;
70466   ;
70467   return 0;
70468 }
70469 _ACEOF
70470 rm -f conftest.$ac_objext
70471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70472   (eval $ac_compile) 2>conftest.er1
70473   ac_status=$?
70474   grep -v '^ *+' conftest.er1 >conftest.err
70475   rm -f conftest.er1
70476   cat conftest.err >&5
70477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70478   (exit $ac_status); } &&
70479          { ac_try='test -z "$ac_c_werror_flag"
70480                          || test ! -s conftest.err'
70481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70482   (eval $ac_try) 2>&5
70483   ac_status=$?
70484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70485   (exit $ac_status); }; } &&
70486          { ac_try='test -s conftest.$ac_objext'
70487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70488   (eval $ac_try) 2>&5
70489   ac_status=$?
70490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70491   (exit $ac_status); }; }; then
70492   has_weof=yes
70493 else
70494   echo "$as_me: failed program was:" >&5
70495 sed 's/^/| /' conftest.$ac_ext >&5
70496
70497 has_weof=no
70498 fi
70499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70500     echo "$as_me:$LINENO: result: $has_weof" >&5
70501 echo "${ECHO_T}$has_weof" >&6
70502
70503     # Tests for wide character functions used in char_traits<wchar_t>.
70504     ac_wfuncs=yes
70505
70506
70507
70508
70509
70510
70511 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
70512 do
70513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70514 echo "$as_me:$LINENO: checking for $ac_func" >&5
70515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70516 if eval "test \"\${$as_ac_var+set}\" = set"; then
70517   echo $ECHO_N "(cached) $ECHO_C" >&6
70518 else
70519   if test x$gcc_no_link = xyes; then
70520   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70522    { (exit 1); exit 1; }; }
70523 fi
70524 cat >conftest.$ac_ext <<_ACEOF
70525 /* confdefs.h.  */
70526 _ACEOF
70527 cat confdefs.h >>conftest.$ac_ext
70528 cat >>conftest.$ac_ext <<_ACEOF
70529 /* end confdefs.h.  */
70530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70532 #define $ac_func innocuous_$ac_func
70533
70534 /* System header to define __stub macros and hopefully few prototypes,
70535     which can conflict with char $ac_func (); below.
70536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70537     <limits.h> exists even on freestanding compilers.  */
70538
70539 #ifdef __STDC__
70540 # include <limits.h>
70541 #else
70542 # include <assert.h>
70543 #endif
70544
70545 #undef $ac_func
70546
70547 /* Override any gcc2 internal prototype to avoid an error.  */
70548 #ifdef __cplusplus
70549 extern "C"
70550 {
70551 #endif
70552 /* We use char because int might match the return type of a gcc2
70553    builtin and then its argument prototype would still apply.  */
70554 char $ac_func ();
70555 /* The GNU C library defines this for functions which it implements
70556     to always fail with ENOSYS.  Some functions are actually named
70557     something starting with __ and the normal name is an alias.  */
70558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70559 choke me
70560 #else
70561 char (*f) () = $ac_func;
70562 #endif
70563 #ifdef __cplusplus
70564 }
70565 #endif
70566
70567 int
70568 main ()
70569 {
70570 return f != $ac_func;
70571   ;
70572   return 0;
70573 }
70574 _ACEOF
70575 rm -f conftest.$ac_objext conftest$ac_exeext
70576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70577   (eval $ac_link) 2>conftest.er1
70578   ac_status=$?
70579   grep -v '^ *+' conftest.er1 >conftest.err
70580   rm -f conftest.er1
70581   cat conftest.err >&5
70582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70583   (exit $ac_status); } &&
70584          { ac_try='test -z "$ac_c_werror_flag"
70585                          || test ! -s conftest.err'
70586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70587   (eval $ac_try) 2>&5
70588   ac_status=$?
70589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70590   (exit $ac_status); }; } &&
70591          { ac_try='test -s conftest$ac_exeext'
70592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70593   (eval $ac_try) 2>&5
70594   ac_status=$?
70595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70596   (exit $ac_status); }; }; then
70597   eval "$as_ac_var=yes"
70598 else
70599   echo "$as_me: failed program was:" >&5
70600 sed 's/^/| /' conftest.$ac_ext >&5
70601
70602 eval "$as_ac_var=no"
70603 fi
70604 rm -f conftest.err conftest.$ac_objext \
70605       conftest$ac_exeext conftest.$ac_ext
70606 fi
70607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70609 if test `eval echo '${'$as_ac_var'}'` = yes; then
70610   cat >>confdefs.h <<_ACEOF
70611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70612 _ACEOF
70613
70614 else
70615   ac_wfuncs=no
70616 fi
70617 done
70618
70619
70620     # Checks for names injected into std:: by the c_std headers.
70621
70622
70623
70624
70625
70626
70627
70628
70629
70630
70631
70632
70633
70634
70635
70636
70637
70638
70639
70640
70641
70642
70643
70644
70645
70646
70647
70648
70649
70650
70651
70652
70653
70654
70655
70656
70657
70658
70659
70660
70661
70662
70663
70664
70665
70666
70667 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
70668     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
70669     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
70670     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
70671     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
70672     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
70673 do
70674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70675 echo "$as_me:$LINENO: checking for $ac_func" >&5
70676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70677 if eval "test \"\${$as_ac_var+set}\" = set"; then
70678   echo $ECHO_N "(cached) $ECHO_C" >&6
70679 else
70680   if test x$gcc_no_link = xyes; then
70681   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70682 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70683    { (exit 1); exit 1; }; }
70684 fi
70685 cat >conftest.$ac_ext <<_ACEOF
70686 /* confdefs.h.  */
70687 _ACEOF
70688 cat confdefs.h >>conftest.$ac_ext
70689 cat >>conftest.$ac_ext <<_ACEOF
70690 /* end confdefs.h.  */
70691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70693 #define $ac_func innocuous_$ac_func
70694
70695 /* System header to define __stub macros and hopefully few prototypes,
70696     which can conflict with char $ac_func (); below.
70697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70698     <limits.h> exists even on freestanding compilers.  */
70699
70700 #ifdef __STDC__
70701 # include <limits.h>
70702 #else
70703 # include <assert.h>
70704 #endif
70705
70706 #undef $ac_func
70707
70708 /* Override any gcc2 internal prototype to avoid an error.  */
70709 #ifdef __cplusplus
70710 extern "C"
70711 {
70712 #endif
70713 /* We use char because int might match the return type of a gcc2
70714    builtin and then its argument prototype would still apply.  */
70715 char $ac_func ();
70716 /* The GNU C library defines this for functions which it implements
70717     to always fail with ENOSYS.  Some functions are actually named
70718     something starting with __ and the normal name is an alias.  */
70719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70720 choke me
70721 #else
70722 char (*f) () = $ac_func;
70723 #endif
70724 #ifdef __cplusplus
70725 }
70726 #endif
70727
70728 int
70729 main ()
70730 {
70731 return f != $ac_func;
70732   ;
70733   return 0;
70734 }
70735 _ACEOF
70736 rm -f conftest.$ac_objext conftest$ac_exeext
70737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70738   (eval $ac_link) 2>conftest.er1
70739   ac_status=$?
70740   grep -v '^ *+' conftest.er1 >conftest.err
70741   rm -f conftest.er1
70742   cat conftest.err >&5
70743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70744   (exit $ac_status); } &&
70745          { ac_try='test -z "$ac_c_werror_flag"
70746                          || test ! -s conftest.err'
70747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70748   (eval $ac_try) 2>&5
70749   ac_status=$?
70750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70751   (exit $ac_status); }; } &&
70752          { ac_try='test -s conftest$ac_exeext'
70753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70754   (eval $ac_try) 2>&5
70755   ac_status=$?
70756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70757   (exit $ac_status); }; }; then
70758   eval "$as_ac_var=yes"
70759 else
70760   echo "$as_me: failed program was:" >&5
70761 sed 's/^/| /' conftest.$ac_ext >&5
70762
70763 eval "$as_ac_var=no"
70764 fi
70765 rm -f conftest.err conftest.$ac_objext \
70766       conftest$ac_exeext conftest.$ac_ext
70767 fi
70768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70770 if test `eval echo '${'$as_ac_var'}'` = yes; then
70771   cat >>confdefs.h <<_ACEOF
70772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70773 _ACEOF
70774
70775 else
70776   ac_wfuncs=no
70777 fi
70778 done
70779
70780
70781     # Checks for wide character functions that are not required
70782     # for basic wchar_t support.  Don't disable support if they are missing.
70783     # Injection of these is wrapped with guard macros.
70784
70785
70786
70787
70788
70789 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
70790 do
70791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70792 echo "$as_me:$LINENO: checking for $ac_func" >&5
70793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70794 if eval "test \"\${$as_ac_var+set}\" = set"; then
70795   echo $ECHO_N "(cached) $ECHO_C" >&6
70796 else
70797   if test x$gcc_no_link = xyes; then
70798   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70800    { (exit 1); exit 1; }; }
70801 fi
70802 cat >conftest.$ac_ext <<_ACEOF
70803 /* confdefs.h.  */
70804 _ACEOF
70805 cat confdefs.h >>conftest.$ac_ext
70806 cat >>conftest.$ac_ext <<_ACEOF
70807 /* end confdefs.h.  */
70808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70810 #define $ac_func innocuous_$ac_func
70811
70812 /* System header to define __stub macros and hopefully few prototypes,
70813     which can conflict with char $ac_func (); below.
70814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70815     <limits.h> exists even on freestanding compilers.  */
70816
70817 #ifdef __STDC__
70818 # include <limits.h>
70819 #else
70820 # include <assert.h>
70821 #endif
70822
70823 #undef $ac_func
70824
70825 /* Override any gcc2 internal prototype to avoid an error.  */
70826 #ifdef __cplusplus
70827 extern "C"
70828 {
70829 #endif
70830 /* We use char because int might match the return type of a gcc2
70831    builtin and then its argument prototype would still apply.  */
70832 char $ac_func ();
70833 /* The GNU C library defines this for functions which it implements
70834     to always fail with ENOSYS.  Some functions are actually named
70835     something starting with __ and the normal name is an alias.  */
70836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70837 choke me
70838 #else
70839 char (*f) () = $ac_func;
70840 #endif
70841 #ifdef __cplusplus
70842 }
70843 #endif
70844
70845 int
70846 main ()
70847 {
70848 return f != $ac_func;
70849   ;
70850   return 0;
70851 }
70852 _ACEOF
70853 rm -f conftest.$ac_objext conftest$ac_exeext
70854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70855   (eval $ac_link) 2>conftest.er1
70856   ac_status=$?
70857   grep -v '^ *+' conftest.er1 >conftest.err
70858   rm -f conftest.er1
70859   cat conftest.err >&5
70860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70861   (exit $ac_status); } &&
70862          { ac_try='test -z "$ac_c_werror_flag"
70863                          || test ! -s conftest.err'
70864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70865   (eval $ac_try) 2>&5
70866   ac_status=$?
70867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70868   (exit $ac_status); }; } &&
70869          { ac_try='test -s conftest$ac_exeext'
70870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70871   (eval $ac_try) 2>&5
70872   ac_status=$?
70873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70874   (exit $ac_status); }; }; then
70875   eval "$as_ac_var=yes"
70876 else
70877   echo "$as_me: failed program was:" >&5
70878 sed 's/^/| /' conftest.$ac_ext >&5
70879
70880 eval "$as_ac_var=no"
70881 fi
70882 rm -f conftest.err conftest.$ac_objext \
70883       conftest$ac_exeext conftest.$ac_ext
70884 fi
70885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70887 if test `eval echo '${'$as_ac_var'}'` = yes; then
70888   cat >>confdefs.h <<_ACEOF
70889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70890 _ACEOF
70891
70892 fi
70893 done
70894
70895
70896     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
70897 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
70898     if test x"$has_weof" = xyes &&
70899        test x"$has_wchar_minmax" = xyes &&
70900        test x"$ac_wfuncs" = xyes;
70901     then
70902       ac_isoC99_wchar_t=yes
70903     else
70904       ac_isoC99_wchar_t=no
70905     fi
70906     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
70907 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
70908
70909     # Use iconv for wchar_t to char conversions. As such, check for
70910     # X/Open Portability Guide, version 2 features (XPG2).
70911     if test "${ac_cv_header_iconv_h+set}" = set; then
70912   echo "$as_me:$LINENO: checking for iconv.h" >&5
70913 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
70914 if test "${ac_cv_header_iconv_h+set}" = set; then
70915   echo $ECHO_N "(cached) $ECHO_C" >&6
70916 fi
70917 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
70918 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
70919 else
70920   # Is the header compilable?
70921 echo "$as_me:$LINENO: checking iconv.h usability" >&5
70922 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
70923 cat >conftest.$ac_ext <<_ACEOF
70924 /* confdefs.h.  */
70925 _ACEOF
70926 cat confdefs.h >>conftest.$ac_ext
70927 cat >>conftest.$ac_ext <<_ACEOF
70928 /* end confdefs.h.  */
70929 $ac_includes_default
70930 #include <iconv.h>
70931 _ACEOF
70932 rm -f conftest.$ac_objext
70933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70934   (eval $ac_compile) 2>conftest.er1
70935   ac_status=$?
70936   grep -v '^ *+' conftest.er1 >conftest.err
70937   rm -f conftest.er1
70938   cat conftest.err >&5
70939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70940   (exit $ac_status); } &&
70941          { ac_try='test -z "$ac_c_werror_flag"
70942                          || test ! -s conftest.err'
70943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70944   (eval $ac_try) 2>&5
70945   ac_status=$?
70946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70947   (exit $ac_status); }; } &&
70948          { ac_try='test -s conftest.$ac_objext'
70949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70950   (eval $ac_try) 2>&5
70951   ac_status=$?
70952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70953   (exit $ac_status); }; }; then
70954   ac_header_compiler=yes
70955 else
70956   echo "$as_me: failed program was:" >&5
70957 sed 's/^/| /' conftest.$ac_ext >&5
70958
70959 ac_header_compiler=no
70960 fi
70961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70963 echo "${ECHO_T}$ac_header_compiler" >&6
70964
70965 # Is the header present?
70966 echo "$as_me:$LINENO: checking iconv.h presence" >&5
70967 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
70968 cat >conftest.$ac_ext <<_ACEOF
70969 /* confdefs.h.  */
70970 _ACEOF
70971 cat confdefs.h >>conftest.$ac_ext
70972 cat >>conftest.$ac_ext <<_ACEOF
70973 /* end confdefs.h.  */
70974 #include <iconv.h>
70975 _ACEOF
70976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70978   ac_status=$?
70979   grep -v '^ *+' conftest.er1 >conftest.err
70980   rm -f conftest.er1
70981   cat conftest.err >&5
70982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70983   (exit $ac_status); } >/dev/null; then
70984   if test -s conftest.err; then
70985     ac_cpp_err=$ac_c_preproc_warn_flag
70986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70987   else
70988     ac_cpp_err=
70989   fi
70990 else
70991   ac_cpp_err=yes
70992 fi
70993 if test -z "$ac_cpp_err"; then
70994   ac_header_preproc=yes
70995 else
70996   echo "$as_me: failed program was:" >&5
70997 sed 's/^/| /' conftest.$ac_ext >&5
70998
70999   ac_header_preproc=no
71000 fi
71001 rm -f conftest.err conftest.$ac_ext
71002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71003 echo "${ECHO_T}$ac_header_preproc" >&6
71004
71005 # So?  What about this header?
71006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71007   yes:no: )
71008     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
71009 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71010     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
71011 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
71012     ac_header_preproc=yes
71013     ;;
71014   no:yes:* )
71015     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
71016 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
71017     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
71018 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
71019     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
71020 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
71021     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
71022 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
71023     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
71024 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
71025     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
71026 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
71027     (
71028       cat <<\_ASBOX
71029 ## ----------------------------------------- ##
71030 ## Report this to the package-unused lists.  ##
71031 ## ----------------------------------------- ##
71032 _ASBOX
71033     ) |
71034       sed "s/^/$as_me: WARNING:     /" >&2
71035     ;;
71036 esac
71037 echo "$as_me:$LINENO: checking for iconv.h" >&5
71038 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
71039 if test "${ac_cv_header_iconv_h+set}" = set; then
71040   echo $ECHO_N "(cached) $ECHO_C" >&6
71041 else
71042   ac_cv_header_iconv_h=$ac_header_preproc
71043 fi
71044 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
71045 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
71046
71047 fi
71048 if test $ac_cv_header_iconv_h = yes; then
71049   ac_has_iconv_h=yes
71050 else
71051   ac_has_iconv_h=no
71052 fi
71053
71054
71055     if test "${ac_cv_header_langinfo_h+set}" = set; then
71056   echo "$as_me:$LINENO: checking for langinfo.h" >&5
71057 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71058 if test "${ac_cv_header_langinfo_h+set}" = set; then
71059   echo $ECHO_N "(cached) $ECHO_C" >&6
71060 fi
71061 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71062 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71063 else
71064   # Is the header compilable?
71065 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
71066 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
71067 cat >conftest.$ac_ext <<_ACEOF
71068 /* confdefs.h.  */
71069 _ACEOF
71070 cat confdefs.h >>conftest.$ac_ext
71071 cat >>conftest.$ac_ext <<_ACEOF
71072 /* end confdefs.h.  */
71073 $ac_includes_default
71074 #include <langinfo.h>
71075 _ACEOF
71076 rm -f conftest.$ac_objext
71077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
71078   (eval $ac_compile) 2>conftest.er1
71079   ac_status=$?
71080   grep -v '^ *+' conftest.er1 >conftest.err
71081   rm -f conftest.er1
71082   cat conftest.err >&5
71083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71084   (exit $ac_status); } &&
71085          { ac_try='test -z "$ac_c_werror_flag"
71086                          || test ! -s conftest.err'
71087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71088   (eval $ac_try) 2>&5
71089   ac_status=$?
71090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71091   (exit $ac_status); }; } &&
71092          { ac_try='test -s conftest.$ac_objext'
71093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71094   (eval $ac_try) 2>&5
71095   ac_status=$?
71096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71097   (exit $ac_status); }; }; then
71098   ac_header_compiler=yes
71099 else
71100   echo "$as_me: failed program was:" >&5
71101 sed 's/^/| /' conftest.$ac_ext >&5
71102
71103 ac_header_compiler=no
71104 fi
71105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
71106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
71107 echo "${ECHO_T}$ac_header_compiler" >&6
71108
71109 # Is the header present?
71110 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
71111 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
71112 cat >conftest.$ac_ext <<_ACEOF
71113 /* confdefs.h.  */
71114 _ACEOF
71115 cat confdefs.h >>conftest.$ac_ext
71116 cat >>conftest.$ac_ext <<_ACEOF
71117 /* end confdefs.h.  */
71118 #include <langinfo.h>
71119 _ACEOF
71120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
71121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
71122   ac_status=$?
71123   grep -v '^ *+' conftest.er1 >conftest.err
71124   rm -f conftest.er1
71125   cat conftest.err >&5
71126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71127   (exit $ac_status); } >/dev/null; then
71128   if test -s conftest.err; then
71129     ac_cpp_err=$ac_c_preproc_warn_flag
71130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
71131   else
71132     ac_cpp_err=
71133   fi
71134 else
71135   ac_cpp_err=yes
71136 fi
71137 if test -z "$ac_cpp_err"; then
71138   ac_header_preproc=yes
71139 else
71140   echo "$as_me: failed program was:" >&5
71141 sed 's/^/| /' conftest.$ac_ext >&5
71142
71143   ac_header_preproc=no
71144 fi
71145 rm -f conftest.err conftest.$ac_ext
71146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71147 echo "${ECHO_T}$ac_header_preproc" >&6
71148
71149 # So?  What about this header?
71150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71151   yes:no: )
71152     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
71153 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71154     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
71155 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
71156     ac_header_preproc=yes
71157     ;;
71158   no:yes:* )
71159     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
71160 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
71161     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
71162 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
71163     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
71164 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
71165     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
71166 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
71167     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
71168 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
71169     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
71170 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
71171     (
71172       cat <<\_ASBOX
71173 ## ----------------------------------------- ##
71174 ## Report this to the package-unused lists.  ##
71175 ## ----------------------------------------- ##
71176 _ASBOX
71177     ) |
71178       sed "s/^/$as_me: WARNING:     /" >&2
71179     ;;
71180 esac
71181 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71182 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71183 if test "${ac_cv_header_langinfo_h+set}" = set; then
71184   echo $ECHO_N "(cached) $ECHO_C" >&6
71185 else
71186   ac_cv_header_langinfo_h=$ac_header_preproc
71187 fi
71188 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71189 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71190
71191 fi
71192 if test $ac_cv_header_langinfo_h = yes; then
71193   ac_has_langinfo_h=yes
71194 else
71195   ac_has_langinfo_h=no
71196 fi
71197
71198
71199
71200     # Check for existence of libiconv.a providing XPG2 wchar_t support.
71201     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
71202 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
71203 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
71204   echo $ECHO_N "(cached) $ECHO_C" >&6
71205 else
71206   ac_check_lib_save_LIBS=$LIBS
71207 LIBS="-liconv  $LIBS"
71208 if test x$gcc_no_link = xyes; then
71209   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71211    { (exit 1); exit 1; }; }
71212 fi
71213 cat >conftest.$ac_ext <<_ACEOF
71214 /* confdefs.h.  */
71215 _ACEOF
71216 cat confdefs.h >>conftest.$ac_ext
71217 cat >>conftest.$ac_ext <<_ACEOF
71218 /* end confdefs.h.  */
71219
71220 /* Override any gcc2 internal prototype to avoid an error.  */
71221 #ifdef __cplusplus
71222 extern "C"
71223 #endif
71224 /* We use char because int might match the return type of a gcc2
71225    builtin and then its argument prototype would still apply.  */
71226 char iconv ();
71227 int
71228 main ()
71229 {
71230 iconv ();
71231   ;
71232   return 0;
71233 }
71234 _ACEOF
71235 rm -f conftest.$ac_objext conftest$ac_exeext
71236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71237   (eval $ac_link) 2>conftest.er1
71238   ac_status=$?
71239   grep -v '^ *+' conftest.er1 >conftest.err
71240   rm -f conftest.er1
71241   cat conftest.err >&5
71242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71243   (exit $ac_status); } &&
71244          { ac_try='test -z "$ac_c_werror_flag"
71245                          || test ! -s conftest.err'
71246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71247   (eval $ac_try) 2>&5
71248   ac_status=$?
71249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71250   (exit $ac_status); }; } &&
71251          { ac_try='test -s conftest$ac_exeext'
71252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71253   (eval $ac_try) 2>&5
71254   ac_status=$?
71255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71256   (exit $ac_status); }; }; then
71257   ac_cv_lib_iconv_iconv=yes
71258 else
71259   echo "$as_me: failed program was:" >&5
71260 sed 's/^/| /' conftest.$ac_ext >&5
71261
71262 ac_cv_lib_iconv_iconv=no
71263 fi
71264 rm -f conftest.err conftest.$ac_objext \
71265       conftest$ac_exeext conftest.$ac_ext
71266 LIBS=$ac_check_lib_save_LIBS
71267 fi
71268 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
71269 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
71270 if test $ac_cv_lib_iconv_iconv = yes; then
71271   libiconv="-liconv"
71272 fi
71273
71274     ac_save_LIBS="$LIBS"
71275     LIBS="$LIBS $libiconv"
71276
71277
71278
71279
71280
71281 for ac_func in iconv_open iconv_close iconv nl_langinfo
71282 do
71283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
71284 echo "$as_me:$LINENO: checking for $ac_func" >&5
71285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
71286 if eval "test \"\${$as_ac_var+set}\" = set"; then
71287   echo $ECHO_N "(cached) $ECHO_C" >&6
71288 else
71289   if test x$gcc_no_link = xyes; then
71290   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71292    { (exit 1); exit 1; }; }
71293 fi
71294 cat >conftest.$ac_ext <<_ACEOF
71295 /* confdefs.h.  */
71296 _ACEOF
71297 cat confdefs.h >>conftest.$ac_ext
71298 cat >>conftest.$ac_ext <<_ACEOF
71299 /* end confdefs.h.  */
71300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71302 #define $ac_func innocuous_$ac_func
71303
71304 /* System header to define __stub macros and hopefully few prototypes,
71305     which can conflict with char $ac_func (); below.
71306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71307     <limits.h> exists even on freestanding compilers.  */
71308
71309 #ifdef __STDC__
71310 # include <limits.h>
71311 #else
71312 # include <assert.h>
71313 #endif
71314
71315 #undef $ac_func
71316
71317 /* Override any gcc2 internal prototype to avoid an error.  */
71318 #ifdef __cplusplus
71319 extern "C"
71320 {
71321 #endif
71322 /* We use char because int might match the return type of a gcc2
71323    builtin and then its argument prototype would still apply.  */
71324 char $ac_func ();
71325 /* The GNU C library defines this for functions which it implements
71326     to always fail with ENOSYS.  Some functions are actually named
71327     something starting with __ and the normal name is an alias.  */
71328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
71329 choke me
71330 #else
71331 char (*f) () = $ac_func;
71332 #endif
71333 #ifdef __cplusplus
71334 }
71335 #endif
71336
71337 int
71338 main ()
71339 {
71340 return f != $ac_func;
71341   ;
71342   return 0;
71343 }
71344 _ACEOF
71345 rm -f conftest.$ac_objext conftest$ac_exeext
71346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71347   (eval $ac_link) 2>conftest.er1
71348   ac_status=$?
71349   grep -v '^ *+' conftest.er1 >conftest.err
71350   rm -f conftest.er1
71351   cat conftest.err >&5
71352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71353   (exit $ac_status); } &&
71354          { ac_try='test -z "$ac_c_werror_flag"
71355                          || test ! -s conftest.err'
71356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71357   (eval $ac_try) 2>&5
71358   ac_status=$?
71359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71360   (exit $ac_status); }; } &&
71361          { ac_try='test -s conftest$ac_exeext'
71362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71363   (eval $ac_try) 2>&5
71364   ac_status=$?
71365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71366   (exit $ac_status); }; }; then
71367   eval "$as_ac_var=yes"
71368 else
71369   echo "$as_me: failed program was:" >&5
71370 sed 's/^/| /' conftest.$ac_ext >&5
71371
71372 eval "$as_ac_var=no"
71373 fi
71374 rm -f conftest.err conftest.$ac_objext \
71375       conftest$ac_exeext conftest.$ac_ext
71376 fi
71377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71379 if test `eval echo '${'$as_ac_var'}'` = yes; then
71380   cat >>confdefs.h <<_ACEOF
71381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71382 _ACEOF
71383  ac_XPG2funcs=yes
71384 else
71385   ac_XPG2funcs=no
71386 fi
71387 done
71388
71389
71390     LIBS="$ac_save_LIBS"
71391
71392     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
71393 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
71394     if test x"$ac_has_iconv_h" = xyes &&
71395        test x"$ac_has_langinfo_h" = xyes &&
71396        test x"$ac_XPG2funcs" = xyes;
71397     then
71398       ac_XPG2_wchar_t=yes
71399     else
71400       ac_XPG2_wchar_t=no
71401     fi
71402     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
71403 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
71404
71405     # At the moment, only enable wchar_t specializations if all the
71406     # above support is present.
71407     if test x"$ac_isoC99_wchar_t" = xyes &&
71408        test x"$ac_XPG2_wchar_t" = xyes;
71409     then
71410       cat >>confdefs.h <<\_ACEOF
71411 #define _GLIBCXX_USE_WCHAR_T 1
71412 _ACEOF
71413
71414       enable_wchar_t=yes
71415     fi
71416   fi
71417   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
71418 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
71419   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
71420 echo "${ECHO_T}$enable_wchar_t" >&6
71421
71422     cat >>confdefs.h <<\_ACEOF
71423 #define HAVE_COPYSIGN 1
71424 _ACEOF
71425
71426     cat >>confdefs.h <<\_ACEOF
71427 #define HAVE_COPYSIGNF 1
71428 _ACEOF
71429
71430     cat >>confdefs.h <<\_ACEOF
71431 #define HAVE_FINITE 1
71432 _ACEOF
71433
71434     cat >>confdefs.h <<\_ACEOF
71435 #define HAVE_FINITEF 1
71436 _ACEOF
71437
71438     cat >>confdefs.h <<\_ACEOF
71439 #define HAVE_FREXPF 1
71440 _ACEOF
71441
71442     cat >>confdefs.h <<\_ACEOF
71443 #define HAVE_HYPOTF 1
71444 _ACEOF
71445
71446     cat >>confdefs.h <<\_ACEOF
71447 #define HAVE_ISINF 1
71448 _ACEOF
71449
71450     cat >>confdefs.h <<\_ACEOF
71451 #define HAVE_ISINFF 1
71452 _ACEOF
71453
71454     cat >>confdefs.h <<\_ACEOF
71455 #define HAVE_ISNAN 1
71456 _ACEOF
71457
71458     cat >>confdefs.h <<\_ACEOF
71459 #define HAVE_ISNANF 1
71460 _ACEOF
71461
71462     cat >>confdefs.h <<\_ACEOF
71463 #define HAVE_SINCOS 1
71464 _ACEOF
71465
71466     cat >>confdefs.h <<\_ACEOF
71467 #define HAVE_SINCOSF 1
71468 _ACEOF
71469
71470     if test x"long_double_math_on_this_cpu" = x"yes"; then
71471       cat >>confdefs.h <<\_ACEOF
71472 #define HAVE_FINITEL 1
71473 _ACEOF
71474
71475       cat >>confdefs.h <<\_ACEOF
71476 #define HAVE_HYPOTL 1
71477 _ACEOF
71478
71479       cat >>confdefs.h <<\_ACEOF
71480 #define HAVE_ISINFL 1
71481 _ACEOF
71482
71483       cat >>confdefs.h <<\_ACEOF
71484 #define HAVE_ISNANL 1
71485 _ACEOF
71486
71487     fi
71488     ;;
71489   *-vxworks)
71490     cat >>confdefs.h <<\_ACEOF
71491 #define HAVE_MMAP 1
71492 _ACEOF
71493
71494     cat >>confdefs.h <<\_ACEOF
71495 #define HAVE_ACOSF 1
71496 _ACEOF
71497
71498     cat >>confdefs.h <<\_ACEOF
71499 #define HAVE_ASINF 1
71500 _ACEOF
71501
71502     cat >>confdefs.h <<\_ACEOF
71503 #define HAVE_ATAN2F 1
71504 _ACEOF
71505
71506     cat >>confdefs.h <<\_ACEOF
71507 #define HAVE_ATANF 1
71508 _ACEOF
71509
71510     cat >>confdefs.h <<\_ACEOF
71511 #define HAVE_CEILF 1
71512 _ACEOF
71513
71514     cat >>confdefs.h <<\_ACEOF
71515 #define HAVE_COSF 1
71516 _ACEOF
71517
71518     cat >>confdefs.h <<\_ACEOF
71519 #define HAVE_COSHF 1
71520 _ACEOF
71521
71522     cat >>confdefs.h <<\_ACEOF
71523 #define HAVE_EXPF 1
71524 _ACEOF
71525
71526     cat >>confdefs.h <<\_ACEOF
71527 #define HAVE_FABSF 1
71528 _ACEOF
71529
71530     cat >>confdefs.h <<\_ACEOF
71531 #define HAVE_FLOORF 1
71532 _ACEOF
71533
71534     cat >>confdefs.h <<\_ACEOF
71535 #define HAVE_FMODF 1
71536 _ACEOF
71537
71538     cat >>confdefs.h <<\_ACEOF
71539 #define HAVE_HYPOT 1
71540 _ACEOF
71541
71542     cat >>confdefs.h <<\_ACEOF
71543 #define HAVE_LOG10F 1
71544 _ACEOF
71545
71546     cat >>confdefs.h <<\_ACEOF
71547 #define HAVE_LOGF 1
71548 _ACEOF
71549
71550     cat >>confdefs.h <<\_ACEOF
71551 #define HAVE_POWF 1
71552 _ACEOF
71553
71554     cat >>confdefs.h <<\_ACEOF
71555 #define HAVE_SINF 1
71556 _ACEOF
71557
71558     cat >>confdefs.h <<\_ACEOF
71559 #define HAVE_SINHF 1
71560 _ACEOF
71561
71562     cat >>confdefs.h <<\_ACEOF
71563 #define HAVE_SQRTF 1
71564 _ACEOF
71565
71566     cat >>confdefs.h <<\_ACEOF
71567 #define HAVE_TANF 1
71568 _ACEOF
71569
71570     cat >>confdefs.h <<\_ACEOF
71571 #define HAVE_TANHF 1
71572 _ACEOF
71573
71574     ;;
71575   *-windiss*)
71576     cat >>confdefs.h <<\_ACEOF
71577 #define HAVE_ACOSF 1
71578 _ACEOF
71579
71580     cat >>confdefs.h <<\_ACEOF
71581 #define HAVE_ACOSL 1
71582 _ACEOF
71583
71584     cat >>confdefs.h <<\_ACEOF
71585 #define HAVE_ASINF 1
71586 _ACEOF
71587
71588     cat >>confdefs.h <<\_ACEOF
71589 #define HAVE_ASINL 1
71590 _ACEOF
71591
71592     cat >>confdefs.h <<\_ACEOF
71593 #define HAVE_ATAN2F 1
71594 _ACEOF
71595
71596     cat >>confdefs.h <<\_ACEOF
71597 #define HAVE_ATAN2L 1
71598 _ACEOF
71599
71600     cat >>confdefs.h <<\_ACEOF
71601 #define HAVE_ATANF 1
71602 _ACEOF
71603
71604     cat >>confdefs.h <<\_ACEOF
71605 #define HAVE_ATANL 1
71606 _ACEOF
71607
71608     cat >>confdefs.h <<\_ACEOF
71609 #define HAVE_CEILF 1
71610 _ACEOF
71611
71612     cat >>confdefs.h <<\_ACEOF
71613 #define HAVE_CEILL 1
71614 _ACEOF
71615
71616     cat >>confdefs.h <<\_ACEOF
71617 #define HAVE_COPYSIGN 1
71618 _ACEOF
71619
71620     cat >>confdefs.h <<\_ACEOF
71621 #define HAVE_COPYSIGNF 1
71622 _ACEOF
71623
71624     cat >>confdefs.h <<\_ACEOF
71625 #define HAVE_COSF 1
71626 _ACEOF
71627
71628     cat >>confdefs.h <<\_ACEOF
71629 #define HAVE_COSL 1
71630 _ACEOF
71631
71632     cat >>confdefs.h <<\_ACEOF
71633 #define HAVE_COSHF 1
71634 _ACEOF
71635
71636     cat >>confdefs.h <<\_ACEOF
71637 #define HAVE_COSHL 1
71638 _ACEOF
71639
71640     cat >>confdefs.h <<\_ACEOF
71641 #define HAVE_EXPF 1
71642 _ACEOF
71643
71644     cat >>confdefs.h <<\_ACEOF
71645 #define HAVE_EXPL 1
71646 _ACEOF
71647
71648     cat >>confdefs.h <<\_ACEOF
71649 #define HAVE_FABSF 1
71650 _ACEOF
71651
71652     cat >>confdefs.h <<\_ACEOF
71653 #define HAVE_FABSL 1
71654 _ACEOF
71655
71656     cat >>confdefs.h <<\_ACEOF
71657 #define HAVE_FLOORF 1
71658 _ACEOF
71659
71660     cat >>confdefs.h <<\_ACEOF
71661 #define HAVE_FLOORL 1
71662 _ACEOF
71663
71664     cat >>confdefs.h <<\_ACEOF
71665 #define HAVE_FMODF 1
71666 _ACEOF
71667
71668     cat >>confdefs.h <<\_ACEOF
71669 #define HAVE_FMODL 1
71670 _ACEOF
71671
71672     cat >>confdefs.h <<\_ACEOF
71673 #define HAVE_FREXPF 1
71674 _ACEOF
71675
71676     cat >>confdefs.h <<\_ACEOF
71677 #define HAVE_FREXPL 1
71678 _ACEOF
71679
71680     cat >>confdefs.h <<\_ACEOF
71681 #define HAVE_LDEXPF 1
71682 _ACEOF
71683
71684     cat >>confdefs.h <<\_ACEOF
71685 #define HAVE_LDEXPL 1
71686 _ACEOF
71687
71688     cat >>confdefs.h <<\_ACEOF
71689 #define HAVE_LOG10F 1
71690 _ACEOF
71691
71692     cat >>confdefs.h <<\_ACEOF
71693 #define HAVE_LOG10L 1
71694 _ACEOF
71695
71696     cat >>confdefs.h <<\_ACEOF
71697 #define HAVE_LOGF 1
71698 _ACEOF
71699
71700     cat >>confdefs.h <<\_ACEOF
71701 #define HAVE_MODFF 1
71702 _ACEOF
71703
71704     cat >>confdefs.h <<\_ACEOF
71705 #define HAVE_MODFL 1
71706 _ACEOF
71707
71708     cat >>confdefs.h <<\_ACEOF
71709 #define HAVE_POWF 1
71710 _ACEOF
71711
71712     cat >>confdefs.h <<\_ACEOF
71713 #define HAVE_POWL 1
71714 _ACEOF
71715
71716     cat >>confdefs.h <<\_ACEOF
71717 #define HAVE_SINF 1
71718 _ACEOF
71719
71720     cat >>confdefs.h <<\_ACEOF
71721 #define HAVE_SINL 1
71722 _ACEOF
71723
71724     cat >>confdefs.h <<\_ACEOF
71725 #define HAVE_SINHF 1
71726 _ACEOF
71727
71728     cat >>confdefs.h <<\_ACEOF
71729 #define HAVE_SINHL 1
71730 _ACEOF
71731
71732     cat >>confdefs.h <<\_ACEOF
71733 #define HAVE_SQRTF 1
71734 _ACEOF
71735
71736     cat >>confdefs.h <<\_ACEOF
71737 #define HAVE_SQRTL 1
71738 _ACEOF
71739
71740     cat >>confdefs.h <<\_ACEOF
71741 #define HAVE_TANF 1
71742 _ACEOF
71743
71744     cat >>confdefs.h <<\_ACEOF
71745 #define HAVE_TANL 1
71746 _ACEOF
71747
71748     cat >>confdefs.h <<\_ACEOF
71749 #define HAVE_TANHF 1
71750 _ACEOF
71751
71752     cat >>confdefs.h <<\_ACEOF
71753 #define HAVE_TANHL 1
71754 _ACEOF
71755
71756     ;;
71757   *)
71758     { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
71759 echo "$as_me: error: No support for this host/target combination." >&2;}
71760    { (exit 1); exit 1; }; }
71761    ;;
71762 esac
71763
71764
71765   fi
71766
71767   # At some point, we should differentiate between architectures
71768   # like x86, which have long double versions, and alpha/powerpc/etc.,
71769   # which don't. For the time being, punt.
71770   if test x"long_double_math_on_this_cpu" = x"yes"; then
71771     cat >>confdefs.h <<\_ACEOF
71772 #define HAVE_ACOSL 1
71773 _ACEOF
71774
71775     cat >>confdefs.h <<\_ACEOF
71776 #define HAVE_ASINL 1
71777 _ACEOF
71778
71779     cat >>confdefs.h <<\_ACEOF
71780 #define HAVE_ATAN2L 1
71781 _ACEOF
71782
71783     cat >>confdefs.h <<\_ACEOF
71784 #define HAVE_ATANL 1
71785 _ACEOF
71786
71787     cat >>confdefs.h <<\_ACEOF
71788 #define HAVE_CEILL 1
71789 _ACEOF
71790
71791     cat >>confdefs.h <<\_ACEOF
71792 #define HAVE_COPYSIGNL 1
71793 _ACEOF
71794
71795     cat >>confdefs.h <<\_ACEOF
71796 #define HAVE_COSL 1
71797 _ACEOF
71798
71799     cat >>confdefs.h <<\_ACEOF
71800 #define HAVE_COSHL 1
71801 _ACEOF
71802
71803     cat >>confdefs.h <<\_ACEOF
71804 #define HAVE_EXPL 1
71805 _ACEOF
71806
71807     cat >>confdefs.h <<\_ACEOF
71808 #define HAVE_FABSL 1
71809 _ACEOF
71810
71811     cat >>confdefs.h <<\_ACEOF
71812 #define HAVE_FLOORL 1
71813 _ACEOF
71814
71815     cat >>confdefs.h <<\_ACEOF
71816 #define HAVE_FMODL 1
71817 _ACEOF
71818
71819     cat >>confdefs.h <<\_ACEOF
71820 #define HAVE_FREXPL 1
71821 _ACEOF
71822
71823     cat >>confdefs.h <<\_ACEOF
71824 #define HAVE_LDEXPL 1
71825 _ACEOF
71826
71827     cat >>confdefs.h <<\_ACEOF
71828 #define HAVE_LOG10L 1
71829 _ACEOF
71830
71831     cat >>confdefs.h <<\_ACEOF
71832 #define HAVE_LOGL 1
71833 _ACEOF
71834
71835     cat >>confdefs.h <<\_ACEOF
71836 #define HAVE_MODFL 1
71837 _ACEOF
71838
71839     cat >>confdefs.h <<\_ACEOF
71840 #define HAVE_POWL 1
71841 _ACEOF
71842
71843     cat >>confdefs.h <<\_ACEOF
71844 #define HAVE_SINCOSL 1
71845 _ACEOF
71846
71847     cat >>confdefs.h <<\_ACEOF
71848 #define HAVE_SINL 1
71849 _ACEOF
71850
71851     cat >>confdefs.h <<\_ACEOF
71852 #define HAVE_SINHL 1
71853 _ACEOF
71854
71855     cat >>confdefs.h <<\_ACEOF
71856 #define HAVE_SQRTL 1
71857 _ACEOF
71858
71859     cat >>confdefs.h <<\_ACEOF
71860 #define HAVE_TANL 1
71861 _ACEOF
71862
71863     cat >>confdefs.h <<\_ACEOF
71864 #define HAVE_TANHL 1
71865 _ACEOF
71866
71867   fi
71868
71869 fi
71870
71871 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
71872
71873
71874  # Check whether --enable-symvers or --disable-symvers was given.
71875 if test "${enable_symvers+set}" = set; then
71876   enableval="$enable_symvers"
71877
71878       case "$enableval" in
71879        yes|no|gnu) ;;
71880        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
71881 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
71882    { (exit 1); exit 1; }; } ;;
71883                           esac
71884
71885 else
71886   enable_symvers=yes
71887 fi;
71888
71889
71890 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
71891 # don't know enough about $LD to do tricks...
71892
71893 # FIXME  The following test is too strict, in theory.
71894 if test $enable_shared = no ||
71895         test "x$LD" = x ||
71896         test x$glibcxx_gnu_ld_version = x; then
71897   enable_symvers=no
71898 fi
71899
71900 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
71901 if test $enable_symvers != no; then
71902   echo "$as_me:$LINENO: checking for shared libgcc" >&5
71903 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
71904   ac_save_CFLAGS="$CFLAGS"
71905   CFLAGS=' -lgcc_s'
71906   if test x$gcc_no_link = xyes; then
71907   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71908 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71909    { (exit 1); exit 1; }; }
71910 fi
71911 cat >conftest.$ac_ext <<_ACEOF
71912 /* confdefs.h.  */
71913 _ACEOF
71914 cat confdefs.h >>conftest.$ac_ext
71915 cat >>conftest.$ac_ext <<_ACEOF
71916 /* end confdefs.h.  */
71917
71918 int
71919 main ()
71920 {
71921 return 0;
71922   ;
71923   return 0;
71924 }
71925 _ACEOF
71926 rm -f conftest.$ac_objext conftest$ac_exeext
71927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71928   (eval $ac_link) 2>conftest.er1
71929   ac_status=$?
71930   grep -v '^ *+' conftest.er1 >conftest.err
71931   rm -f conftest.er1
71932   cat conftest.err >&5
71933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71934   (exit $ac_status); } &&
71935          { ac_try='test -z "$ac_c_werror_flag"
71936                          || test ! -s conftest.err'
71937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71938   (eval $ac_try) 2>&5
71939   ac_status=$?
71940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71941   (exit $ac_status); }; } &&
71942          { ac_try='test -s conftest$ac_exeext'
71943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71944   (eval $ac_try) 2>&5
71945   ac_status=$?
71946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71947   (exit $ac_status); }; }; then
71948   glibcxx_shared_libgcc=yes
71949 else
71950   echo "$as_me: failed program was:" >&5
71951 sed 's/^/| /' conftest.$ac_ext >&5
71952
71953 glibcxx_shared_libgcc=no
71954 fi
71955 rm -f conftest.err conftest.$ac_objext \
71956       conftest$ac_exeext conftest.$ac_ext
71957   CFLAGS="$ac_save_CFLAGS"
71958   echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
71959 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
71960 fi
71961
71962 # For GNU ld, we need at least this version.  The format is described in
71963 # GLIBCXX_CHECK_LINKER_FEATURES above.
71964 glibcxx_min_gnu_ld_version=21400
71965 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
71966
71967 # Check to see if unspecified "yes" value can win, given results above.
71968 # Change "yes" into either "no" or a style name.
71969 if test $enable_symvers = yes; then
71970   if test $with_gnu_ld = yes &&
71971      test $glibcxx_shared_libgcc = yes;
71972   then
71973     if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
71974       enable_symvers=gnu
71975     else
71976       # The right tools, the right setup, but too old.  Fallbacks?
71977       { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
71978 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
71979       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
71980 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
71981       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
71982 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
71983       { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
71984 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
71985       if test $glibcxx_gnu_ld_version -ge 21200 ; then
71986         # Globbing fix is present, proper block support is not.
71987                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
71988 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
71989         enable_symvers=no
71990       else
71991         # 2.11 or older.
71992         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
71993 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
71994         enable_symvers=no
71995       fi
71996     fi
71997   else
71998     # just fail for now
71999     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
72000 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
72001     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
72002 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
72003     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
72004 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
72005     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72006 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72007     enable_symvers=no
72008   fi
72009 fi
72010
72011 # Everything parsed; figure out what file to use.
72012 case $enable_symvers in
72013   no)
72014     SYMVER_MAP=config/linker-map.dummy
72015     ;;
72016   gnu)
72017     SYMVER_MAP=config/linker-map.gnu
72018     cat >>confdefs.h <<\_ACEOF
72019 #define _GLIBCXX_SYMVER 1
72020 _ACEOF
72021
72022     ;;
72023 esac
72024
72025
72026
72027
72028 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
72029 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
72030
72031
72032 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
72033
72034   if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
72035     # Do checks for memory limit functions.
72036
72037   setrlimit_have_headers=yes
72038
72039
72040
72041 for ac_header in unistd.h sys/time.h sys/resource.h
72042 do
72043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
72044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72045   echo "$as_me:$LINENO: checking for $ac_header" >&5
72046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72048   echo $ECHO_N "(cached) $ECHO_C" >&6
72049 fi
72050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72052 else
72053   # Is the header compilable?
72054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
72055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
72056 cat >conftest.$ac_ext <<_ACEOF
72057 /* confdefs.h.  */
72058 _ACEOF
72059 cat confdefs.h >>conftest.$ac_ext
72060 cat >>conftest.$ac_ext <<_ACEOF
72061 /* end confdefs.h.  */
72062 $ac_includes_default
72063 #include <$ac_header>
72064 _ACEOF
72065 rm -f conftest.$ac_objext
72066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72067   (eval $ac_compile) 2>conftest.er1
72068   ac_status=$?
72069   grep -v '^ *+' conftest.er1 >conftest.err
72070   rm -f conftest.er1
72071   cat conftest.err >&5
72072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72073   (exit $ac_status); } &&
72074          { ac_try='test -z "$ac_c_werror_flag"
72075                          || test ! -s conftest.err'
72076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72077   (eval $ac_try) 2>&5
72078   ac_status=$?
72079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72080   (exit $ac_status); }; } &&
72081          { ac_try='test -s conftest.$ac_objext'
72082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72083   (eval $ac_try) 2>&5
72084   ac_status=$?
72085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72086   (exit $ac_status); }; }; then
72087   ac_header_compiler=yes
72088 else
72089   echo "$as_me: failed program was:" >&5
72090 sed 's/^/| /' conftest.$ac_ext >&5
72091
72092 ac_header_compiler=no
72093 fi
72094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
72096 echo "${ECHO_T}$ac_header_compiler" >&6
72097
72098 # Is the header present?
72099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
72100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
72101 cat >conftest.$ac_ext <<_ACEOF
72102 /* confdefs.h.  */
72103 _ACEOF
72104 cat confdefs.h >>conftest.$ac_ext
72105 cat >>conftest.$ac_ext <<_ACEOF
72106 /* end confdefs.h.  */
72107 #include <$ac_header>
72108 _ACEOF
72109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
72110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
72111   ac_status=$?
72112   grep -v '^ *+' conftest.er1 >conftest.err
72113   rm -f conftest.er1
72114   cat conftest.err >&5
72115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72116   (exit $ac_status); } >/dev/null; then
72117   if test -s conftest.err; then
72118     ac_cpp_err=$ac_c_preproc_warn_flag
72119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
72120   else
72121     ac_cpp_err=
72122   fi
72123 else
72124   ac_cpp_err=yes
72125 fi
72126 if test -z "$ac_cpp_err"; then
72127   ac_header_preproc=yes
72128 else
72129   echo "$as_me: failed program was:" >&5
72130 sed 's/^/| /' conftest.$ac_ext >&5
72131
72132   ac_header_preproc=no
72133 fi
72134 rm -f conftest.err conftest.$ac_ext
72135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
72136 echo "${ECHO_T}$ac_header_preproc" >&6
72137
72138 # So?  What about this header?
72139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
72140   yes:no: )
72141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
72142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
72143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
72144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
72145     ac_header_preproc=yes
72146     ;;
72147   no:yes:* )
72148     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
72149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
72150     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
72151 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
72152     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
72153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
72154     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
72155 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
72156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
72157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
72158     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
72159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
72160     (
72161       cat <<\_ASBOX
72162 ## ----------------------------------------- ##
72163 ## Report this to the package-unused lists.  ##
72164 ## ----------------------------------------- ##
72165 _ASBOX
72166     ) |
72167       sed "s/^/$as_me: WARNING:     /" >&2
72168     ;;
72169 esac
72170 echo "$as_me:$LINENO: checking for $ac_header" >&5
72171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72173   echo $ECHO_N "(cached) $ECHO_C" >&6
72174 else
72175   eval "$as_ac_Header=\$ac_header_preproc"
72176 fi
72177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72179
72180 fi
72181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
72182   cat >>confdefs.h <<_ACEOF
72183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
72184 _ACEOF
72185
72186 else
72187   setrlimit_have_headers=no
72188 fi
72189
72190 done
72191
72192   # If don't have the headers, then we can't run the tests now, and we
72193   # won't be seeing any of these during testsuite compilation.
72194   if test $setrlimit_have_headers = yes; then
72195     # Can't do these in a loop, else the resulting syntax is wrong.
72196
72197   cat >conftest.$ac_ext <<_ACEOF
72198 /* confdefs.h.  */
72199 _ACEOF
72200 cat confdefs.h >>conftest.$ac_ext
72201 cat >>conftest.$ac_ext <<_ACEOF
72202 /* end confdefs.h.  */
72203 #include <unistd.h>
72204      #include <sys/time.h>
72205      #include <sys/resource.h>
72206
72207 int
72208 main ()
72209 {
72210  int f = RLIMIT_DATA ;
72211   ;
72212   return 0;
72213 }
72214 _ACEOF
72215 rm -f conftest.$ac_objext
72216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72217   (eval $ac_compile) 2>conftest.er1
72218   ac_status=$?
72219   grep -v '^ *+' conftest.er1 >conftest.err
72220   rm -f conftest.er1
72221   cat conftest.err >&5
72222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72223   (exit $ac_status); } &&
72224          { ac_try='test -z "$ac_c_werror_flag"
72225                          || test ! -s conftest.err'
72226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72227   (eval $ac_try) 2>&5
72228   ac_status=$?
72229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72230   (exit $ac_status); }; } &&
72231          { ac_try='test -s conftest.$ac_objext'
72232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72233   (eval $ac_try) 2>&5
72234   ac_status=$?
72235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72236   (exit $ac_status); }; }; then
72237   glibcxx_mresult=1
72238 else
72239   echo "$as_me: failed program was:" >&5
72240 sed 's/^/| /' conftest.$ac_ext >&5
72241
72242 glibcxx_mresult=0
72243 fi
72244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72245
72246 cat >>confdefs.h <<_ACEOF
72247 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
72248 _ACEOF
72249
72250
72251
72252   cat >conftest.$ac_ext <<_ACEOF
72253 /* confdefs.h.  */
72254 _ACEOF
72255 cat confdefs.h >>conftest.$ac_ext
72256 cat >>conftest.$ac_ext <<_ACEOF
72257 /* end confdefs.h.  */
72258 #include <unistd.h>
72259      #include <sys/time.h>
72260      #include <sys/resource.h>
72261
72262 int
72263 main ()
72264 {
72265  int f = RLIMIT_RSS ;
72266   ;
72267   return 0;
72268 }
72269 _ACEOF
72270 rm -f conftest.$ac_objext
72271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72272   (eval $ac_compile) 2>conftest.er1
72273   ac_status=$?
72274   grep -v '^ *+' conftest.er1 >conftest.err
72275   rm -f conftest.er1
72276   cat conftest.err >&5
72277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72278   (exit $ac_status); } &&
72279          { ac_try='test -z "$ac_c_werror_flag"
72280                          || test ! -s conftest.err'
72281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72282   (eval $ac_try) 2>&5
72283   ac_status=$?
72284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72285   (exit $ac_status); }; } &&
72286          { ac_try='test -s conftest.$ac_objext'
72287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72288   (eval $ac_try) 2>&5
72289   ac_status=$?
72290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72291   (exit $ac_status); }; }; then
72292   glibcxx_mresult=1
72293 else
72294   echo "$as_me: failed program was:" >&5
72295 sed 's/^/| /' conftest.$ac_ext >&5
72296
72297 glibcxx_mresult=0
72298 fi
72299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72300
72301 cat >>confdefs.h <<_ACEOF
72302 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
72303 _ACEOF
72304
72305
72306
72307   cat >conftest.$ac_ext <<_ACEOF
72308 /* confdefs.h.  */
72309 _ACEOF
72310 cat confdefs.h >>conftest.$ac_ext
72311 cat >>conftest.$ac_ext <<_ACEOF
72312 /* end confdefs.h.  */
72313 #include <unistd.h>
72314      #include <sys/time.h>
72315      #include <sys/resource.h>
72316
72317 int
72318 main ()
72319 {
72320  int f = RLIMIT_VMEM ;
72321   ;
72322   return 0;
72323 }
72324 _ACEOF
72325 rm -f conftest.$ac_objext
72326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72327   (eval $ac_compile) 2>conftest.er1
72328   ac_status=$?
72329   grep -v '^ *+' conftest.er1 >conftest.err
72330   rm -f conftest.er1
72331   cat conftest.err >&5
72332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72333   (exit $ac_status); } &&
72334          { ac_try='test -z "$ac_c_werror_flag"
72335                          || test ! -s conftest.err'
72336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72337   (eval $ac_try) 2>&5
72338   ac_status=$?
72339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72340   (exit $ac_status); }; } &&
72341          { ac_try='test -s conftest.$ac_objext'
72342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72343   (eval $ac_try) 2>&5
72344   ac_status=$?
72345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72346   (exit $ac_status); }; }; then
72347   glibcxx_mresult=1
72348 else
72349   echo "$as_me: failed program was:" >&5
72350 sed 's/^/| /' conftest.$ac_ext >&5
72351
72352 glibcxx_mresult=0
72353 fi
72354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72355
72356 cat >>confdefs.h <<_ACEOF
72357 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
72358 _ACEOF
72359
72360
72361
72362   cat >conftest.$ac_ext <<_ACEOF
72363 /* confdefs.h.  */
72364 _ACEOF
72365 cat confdefs.h >>conftest.$ac_ext
72366 cat >>conftest.$ac_ext <<_ACEOF
72367 /* end confdefs.h.  */
72368 #include <unistd.h>
72369      #include <sys/time.h>
72370      #include <sys/resource.h>
72371
72372 int
72373 main ()
72374 {
72375  int f = RLIMIT_AS ;
72376   ;
72377   return 0;
72378 }
72379 _ACEOF
72380 rm -f conftest.$ac_objext
72381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72382   (eval $ac_compile) 2>conftest.er1
72383   ac_status=$?
72384   grep -v '^ *+' conftest.er1 >conftest.err
72385   rm -f conftest.er1
72386   cat conftest.err >&5
72387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72388   (exit $ac_status); } &&
72389          { ac_try='test -z "$ac_c_werror_flag"
72390                          || test ! -s conftest.err'
72391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72392   (eval $ac_try) 2>&5
72393   ac_status=$?
72394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72395   (exit $ac_status); }; } &&
72396          { ac_try='test -s conftest.$ac_objext'
72397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72398   (eval $ac_try) 2>&5
72399   ac_status=$?
72400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72401   (exit $ac_status); }; }; then
72402   glibcxx_mresult=1
72403 else
72404   echo "$as_me: failed program was:" >&5
72405 sed 's/^/| /' conftest.$ac_ext >&5
72406
72407 glibcxx_mresult=0
72408 fi
72409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72410
72411 cat >>confdefs.h <<_ACEOF
72412 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
72413 _ACEOF
72414
72415
72416
72417     # Check for rlimit, setrlimit.
72418     if test "${ac_setrlimit+set}" = set; then
72419   echo $ECHO_N "(cached) $ECHO_C" >&6
72420 else
72421
72422       cat >conftest.$ac_ext <<_ACEOF
72423 /* confdefs.h.  */
72424 _ACEOF
72425 cat confdefs.h >>conftest.$ac_ext
72426 cat >>conftest.$ac_ext <<_ACEOF
72427 /* end confdefs.h.  */
72428 #include <unistd.h>
72429          #include <sys/time.h>
72430          #include <sys/resource.h>
72431
72432 int
72433 main ()
72434 {
72435 struct rlimit r;
72436          setrlimit(0, &r);
72437   ;
72438   return 0;
72439 }
72440 _ACEOF
72441 rm -f conftest.$ac_objext
72442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72443   (eval $ac_compile) 2>conftest.er1
72444   ac_status=$?
72445   grep -v '^ *+' conftest.er1 >conftest.err
72446   rm -f conftest.er1
72447   cat conftest.err >&5
72448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72449   (exit $ac_status); } &&
72450          { ac_try='test -z "$ac_c_werror_flag"
72451                          || test ! -s conftest.err'
72452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72453   (eval $ac_try) 2>&5
72454   ac_status=$?
72455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72456   (exit $ac_status); }; } &&
72457          { ac_try='test -s conftest.$ac_objext'
72458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72459   (eval $ac_try) 2>&5
72460   ac_status=$?
72461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72462   (exit $ac_status); }; }; then
72463   ac_setrlimit=yes
72464 else
72465   echo "$as_me: failed program was:" >&5
72466 sed 's/^/| /' conftest.$ac_ext >&5
72467
72468 ac_setrlimit=no
72469 fi
72470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72471
72472 fi
72473
72474   fi
72475
72476   echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
72477 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
72478   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
72479     ac_mem_limits=yes
72480     cat >>confdefs.h <<\_ACEOF
72481 #define _GLIBCXX_MEM_LIMITS 1
72482 _ACEOF
72483
72484   else
72485     ac_mem_limits=no
72486   fi
72487   echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
72488 echo "${ECHO_T}$ac_mem_limits" >&6
72489
72490
72491     # Look for setenv, so that extended locale tests can be performed.
72492
72493   echo "$as_me:$LINENO: checking for setenv declaration" >&5
72494 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
72495   if test x${glibcxx_cv_func_setenv_use+set} != xset; then
72496     if test "${glibcxx_cv_func_setenv_use+set}" = set; then
72497   echo $ECHO_N "(cached) $ECHO_C" >&6
72498 else
72499
72500
72501
72502       ac_ext=cc
72503 ac_cpp='$CXXCPP $CPPFLAGS'
72504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72507
72508       cat >conftest.$ac_ext <<_ACEOF
72509 /* confdefs.h.  */
72510 _ACEOF
72511 cat confdefs.h >>conftest.$ac_ext
72512 cat >>conftest.$ac_ext <<_ACEOF
72513 /* end confdefs.h.  */
72514 #include <stdlib.h>
72515 int
72516 main ()
72517 {
72518  setenv(0, 0, 0);
72519   ;
72520   return 0;
72521 }
72522 _ACEOF
72523 rm -f conftest.$ac_objext
72524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72525   (eval $ac_compile) 2>conftest.er1
72526   ac_status=$?
72527   grep -v '^ *+' conftest.er1 >conftest.err
72528   rm -f conftest.er1
72529   cat conftest.err >&5
72530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72531   (exit $ac_status); } &&
72532          { ac_try='test -z "$ac_cxx_werror_flag"
72533                          || test ! -s conftest.err'
72534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72535   (eval $ac_try) 2>&5
72536   ac_status=$?
72537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72538   (exit $ac_status); }; } &&
72539          { ac_try='test -s conftest.$ac_objext'
72540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72541   (eval $ac_try) 2>&5
72542   ac_status=$?
72543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72544   (exit $ac_status); }; }; then
72545   glibcxx_cv_func_setenv_use=yes
72546 else
72547   echo "$as_me: failed program was:" >&5
72548 sed 's/^/| /' conftest.$ac_ext >&5
72549
72550 glibcxx_cv_func_setenv_use=no
72551 fi
72552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72553       ac_ext=c
72554 ac_cpp='$CPP $CPPFLAGS'
72555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
72558
72559
72560 fi
72561
72562   fi
72563   echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
72564 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
72565   if test x$glibcxx_cv_func_setenv_use = x"yes"; then
72566
72567 for ac_func in setenv
72568 do
72569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
72570 echo "$as_me:$LINENO: checking for $ac_func" >&5
72571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
72572 if eval "test \"\${$as_ac_var+set}\" = set"; then
72573   echo $ECHO_N "(cached) $ECHO_C" >&6
72574 else
72575   if test x$gcc_no_link = xyes; then
72576   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
72577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
72578    { (exit 1); exit 1; }; }
72579 fi
72580 cat >conftest.$ac_ext <<_ACEOF
72581 /* confdefs.h.  */
72582 _ACEOF
72583 cat confdefs.h >>conftest.$ac_ext
72584 cat >>conftest.$ac_ext <<_ACEOF
72585 /* end confdefs.h.  */
72586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72588 #define $ac_func innocuous_$ac_func
72589
72590 /* System header to define __stub macros and hopefully few prototypes,
72591     which can conflict with char $ac_func (); below.
72592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72593     <limits.h> exists even on freestanding compilers.  */
72594
72595 #ifdef __STDC__
72596 # include <limits.h>
72597 #else
72598 # include <assert.h>
72599 #endif
72600
72601 #undef $ac_func
72602
72603 /* Override any gcc2 internal prototype to avoid an error.  */
72604 #ifdef __cplusplus
72605 extern "C"
72606 {
72607 #endif
72608 /* We use char because int might match the return type of a gcc2
72609    builtin and then its argument prototype would still apply.  */
72610 char $ac_func ();
72611 /* The GNU C library defines this for functions which it implements
72612     to always fail with ENOSYS.  Some functions are actually named
72613     something starting with __ and the normal name is an alias.  */
72614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
72615 choke me
72616 #else
72617 char (*f) () = $ac_func;
72618 #endif
72619 #ifdef __cplusplus
72620 }
72621 #endif
72622
72623 int
72624 main ()
72625 {
72626 return f != $ac_func;
72627   ;
72628   return 0;
72629 }
72630 _ACEOF
72631 rm -f conftest.$ac_objext conftest$ac_exeext
72632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
72633   (eval $ac_link) 2>conftest.er1
72634   ac_status=$?
72635   grep -v '^ *+' conftest.er1 >conftest.err
72636   rm -f conftest.er1
72637   cat conftest.err >&5
72638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72639   (exit $ac_status); } &&
72640          { ac_try='test -z "$ac_c_werror_flag"
72641                          || test ! -s conftest.err'
72642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72643   (eval $ac_try) 2>&5
72644   ac_status=$?
72645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72646   (exit $ac_status); }; } &&
72647          { ac_try='test -s conftest$ac_exeext'
72648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72649   (eval $ac_try) 2>&5
72650   ac_status=$?
72651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72652   (exit $ac_status); }; }; then
72653   eval "$as_ac_var=yes"
72654 else
72655   echo "$as_me: failed program was:" >&5
72656 sed 's/^/| /' conftest.$ac_ext >&5
72657
72658 eval "$as_ac_var=no"
72659 fi
72660 rm -f conftest.err conftest.$ac_objext \
72661       conftest$ac_exeext conftest.$ac_ext
72662 fi
72663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
72664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
72665 if test `eval echo '${'$as_ac_var'}'` = yes; then
72666   cat >>confdefs.h <<_ACEOF
72667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72668 _ACEOF
72669
72670 fi
72671 done
72672
72673   fi
72674
72675
72676     if test $enable_symvers = no; then
72677       enable_abi_check=no
72678     else
72679       case "$host" in
72680         *-*-cygwin*)
72681           enable_abi_check=no ;;
72682         *)
72683           enable_abi_check=yes ;;
72684       esac
72685     fi
72686   else
72687     # Only build this as native, since automake does not understand
72688     # CXX_FOR_BUILD.
72689     enable_abi_check=no
72690   fi
72691
72692   # Export file names for ABI checking.
72693   baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
72694
72695
72696
72697
72698
72699
72700 # Propagate the target-specific source directories through the build chain.
72701 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
72702 # uses it, and it only gets used in this file.)
72703 ATOMICITY_SRCDIR=config/${atomicity_dir}
72704 ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
72705 OS_INC_SRCDIR=config/${os_include_dir}
72706
72707
72708
72709
72710 # Determine cross-compile flags and AM_CONDITIONALs.
72711 #AC_SUBST(GLIBCXX_IS_NATIVE)
72712 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
72713 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
72714 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH,  test $need_libmath = yes)
72715
72716
72717 if test $is_hosted = yes; then
72718   GLIBCXX_HOSTED_TRUE=
72719   GLIBCXX_HOSTED_FALSE='#'
72720 else
72721   GLIBCXX_HOSTED_TRUE='#'
72722   GLIBCXX_HOSTED_FALSE=
72723 fi
72724
72725
72726
72727
72728 if test $enable_libstdcxx_pch = yes; then
72729   GLIBCXX_BUILD_PCH_TRUE=
72730   GLIBCXX_BUILD_PCH_FALSE='#'
72731 else
72732   GLIBCXX_BUILD_PCH_TRUE='#'
72733   GLIBCXX_BUILD_PCH_FALSE=
72734 fi
72735
72736
72737
72738
72739 if test $enable_cheaders = c; then
72740   GLIBCXX_C_HEADERS_C_TRUE=
72741   GLIBCXX_C_HEADERS_C_FALSE='#'
72742 else
72743   GLIBCXX_C_HEADERS_C_TRUE='#'
72744   GLIBCXX_C_HEADERS_C_FALSE=
72745 fi
72746
72747
72748
72749
72750 if test $enable_cheaders = c_std; then
72751   GLIBCXX_C_HEADERS_C_STD_TRUE=
72752   GLIBCXX_C_HEADERS_C_STD_FALSE='#'
72753 else
72754   GLIBCXX_C_HEADERS_C_STD_TRUE='#'
72755   GLIBCXX_C_HEADERS_C_STD_FALSE=
72756 fi
72757
72758
72759
72760
72761 if test $c_compatibility = yes; then
72762   GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
72763   GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
72764 else
72765   GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
72766   GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
72767 fi
72768
72769
72770
72771
72772 if test $enable_libstdcxx_debug = yes; then
72773   GLIBCXX_BUILD_DEBUG_TRUE=
72774   GLIBCXX_BUILD_DEBUG_FALSE='#'
72775 else
72776   GLIBCXX_BUILD_DEBUG_TRUE='#'
72777   GLIBCXX_BUILD_DEBUG_FALSE=
72778 fi
72779
72780
72781
72782
72783 if test $enable_symvers != no; then
72784   GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
72785   GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
72786 else
72787   GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
72788   GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
72789 fi
72790
72791
72792
72793
72794 if test $enable_wchar_t = yes; then
72795   GLIBCXX_TEST_WCHAR_T_TRUE=
72796   GLIBCXX_TEST_WCHAR_T_FALSE='#'
72797 else
72798   GLIBCXX_TEST_WCHAR_T_TRUE='#'
72799   GLIBCXX_TEST_WCHAR_T_FALSE=
72800 fi
72801
72802
72803
72804
72805 if test $enable_abi_check = yes; then
72806   GLIBCXX_TEST_ABI_TRUE=
72807   GLIBCXX_TEST_ABI_FALSE='#'
72808 else
72809   GLIBCXX_TEST_ABI_TRUE='#'
72810   GLIBCXX_TEST_ABI_FALSE=
72811 fi
72812
72813
72814
72815
72816 cat >confcache <<\_ACEOF
72817 # This file is a shell script that caches the results of configure
72818 # tests run on this system so they can be shared between configure
72819 # scripts and configure runs, see configure's option --config-cache.
72820 # It is not useful on other systems.  If it contains results you don't
72821 # want to keep, you may remove or edit it.
72822 #
72823 # config.status only pays attention to the cache file if you give it
72824 # the --recheck option to rerun configure.
72825 #
72826 # `ac_cv_env_foo' variables (set or unset) will be overridden when
72827 # loading this file, other *unset* `ac_cv_foo' will be assigned the
72828 # following values.
72829
72830 _ACEOF
72831
72832 # The following way of writing the cache mishandles newlines in values,
72833 # but we know of no workaround that is simple, portable, and efficient.
72834 # So, don't put newlines in cache variables' values.
72835 # Ultrix sh set writes to stderr and can't be redirected directly,
72836 # and sets the high bit in the cache file unless we assign to the vars.
72837 {
72838   (set) 2>&1 |
72839     case `(ac_space=' '; set | grep ac_space) 2>&1` in
72840     *ac_space=\ *)
72841       # `set' does not quote correctly, so add quotes (double-quote
72842       # substitution turns \\\\ into \\, and sed turns \\ into \).
72843       sed -n \
72844         "s/'/'\\\\''/g;
72845           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
72846       ;;
72847     *)
72848       # `set' quotes correctly as required by POSIX, so do not add quotes.
72849       sed -n \
72850         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
72851       ;;
72852     esac;
72853 } |
72854   sed '
72855      t clear
72856      : clear
72857      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
72858      t end
72859      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
72860      : end' >>confcache
72861 if diff $cache_file confcache >/dev/null 2>&1; then :; else
72862   if test -w $cache_file; then
72863     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
72864     cat confcache >$cache_file
72865   else
72866     echo "not updating unwritable cache $cache_file"
72867   fi
72868 fi
72869 rm -f confcache
72870
72871 if test ${multilib} = yes; then
72872   multilib_arg="--enable-multilib"
72873 else
72874   multilib_arg=
72875 fi
72876
72877 # Export all the install information.
72878
72879   glibcxx_toolexecdir=no
72880   glibcxx_toolexeclibdir=no
72881   glibcxx_prefixdir=$prefix
72882
72883   echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
72884 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
72885
72886 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
72887 if test "${with_gxx_include_dir+set}" = set; then
72888   withval="$with_gxx_include_dir"
72889   case "$withval" in
72890       yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
72891 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
72892    { (exit 1); exit 1; }; } ;;
72893       no)  gxx_include_dir=no ;;
72894       *)   gxx_include_dir=$withval ;;
72895      esac
72896 else
72897   gxx_include_dir=no
72898 fi;
72899   echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
72900 echo "${ECHO_T}$gxx_include_dir" >&6
72901
72902   echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
72903 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
72904   # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
72905 if test "${enable_version_specific_runtime_libs+set}" = set; then
72906   enableval="$enable_version_specific_runtime_libs"
72907   case "$enableval" in
72908       yes) version_specific_libs=yes ;;
72909       no)  version_specific_libs=no ;;
72910       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
72911 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
72912    { (exit 1); exit 1; }; };;
72913      esac
72914 else
72915   version_specific_libs=no
72916 fi;
72917   echo "$as_me:$LINENO: result: $version_specific_libs" >&5
72918 echo "${ECHO_T}$version_specific_libs" >&6
72919
72920   # Default case for install directory for include files.
72921   if test $version_specific_libs = no && test $gxx_include_dir = no; then
72922     gxx_include_dir='${prefix}'/include/c++/${gcc_version}
72923   fi
72924
72925   # Version-specific runtime libs processing.
72926   if test $version_specific_libs = yes; then
72927     # Need the gcc compiler version to know where to install libraries
72928     # and header files if --enable-version-specific-runtime-libs option
72929     # is selected.  FIXME: these variables are misnamed, there are
72930     # no executables installed in _toolexecdir or _toolexeclibdir.
72931     if test x"$gxx_include_dir" = x"no"; then
72932       gxx_include_dir='${libdir}/gcc/${host_alias}/'$gcc_version/include/c++
72933     fi
72934     glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
72935     glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
72936   fi
72937
72938   # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
72939   # Install a library built with a cross compiler in tooldir, not libdir.
72940   if test x"$glibcxx_toolexecdir" = x"no"; then
72941     if test -n "$with_cross_host" &&
72942        test x"$with_cross_host" != x"no"; then
72943       glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
72944       glibcxx_toolexeclibdir='${toolexecdir}/lib'
72945     else
72946       glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
72947       glibcxx_toolexeclibdir='${libdir}'
72948     fi
72949     multi_os_directory=`$CXX -print-multi-os-directory`
72950     case $multi_os_directory in
72951       .) ;; # Avoid trailing /.
72952       *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
72953     esac
72954   fi
72955
72956   echo "$as_me:$LINENO: checking for install location" >&5
72957 echo $ECHO_N "checking for install location... $ECHO_C" >&6
72958   echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
72959 echo "${ECHO_T}$gxx_include_dir" >&6
72960
72961
72962
72963
72964
72965
72966
72967 # Export all the include and flag information to Makefiles.
72968
72969   # Used for every C++ compile we perform.
72970   GLIBCXX_INCLUDES="\
72971 -I$glibcxx_builddir/include/$host_alias \
72972 -I$glibcxx_builddir/include \
72973 -I$glibcxx_srcdir/libsupc++"
72974
72975   # For Canadian crosses, pick this up too.
72976   if test $CANADIAN = yes; then
72977     GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
72978   fi
72979
72980   # Stuff in the actual top level.  Currently only used by libsupc++ to
72981   # get unwind* headers from the gcc dir.
72982   #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
72983   TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
72984
72985   # Now, export this to all the little Makefiles....
72986
72987
72988
72989
72990   # Optimization flags that are probably a good idea for thrill-seekers. Just
72991   # uncomment the lines below and make, everything else is ready to go...
72992   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
72993   OPTIMIZE_CXXFLAGS=
72994
72995
72996   WARN_FLAGS='-Wall -W -Wwrite-strings -Wcast-qual'
72997
72998
72999
73000 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
73001    grep "enable shared" > /dev/null;
73002 then
73003   LIBSUPCXX_PICFLAGS=-prefer-pic
73004 else
73005   LIBSUPCXX_PICFLAGS=
73006 fi
73007
73008
73009                                                                       ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
73010
73011           ac_config_files="$ac_config_files scripts/check_survey"
73012
73013           ac_config_files="$ac_config_files scripts/testsuite_flags"
73014
73015
73016           ac_config_commands="$ac_config_commands default"
73017
73018
73019 cat >confcache <<\_ACEOF
73020 # This file is a shell script that caches the results of configure
73021 # tests run on this system so they can be shared between configure
73022 # scripts and configure runs, see configure's option --config-cache.
73023 # It is not useful on other systems.  If it contains results you don't
73024 # want to keep, you may remove or edit it.
73025 #
73026 # config.status only pays attention to the cache file if you give it
73027 # the --recheck option to rerun configure.
73028 #
73029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73031 # following values.
73032
73033 _ACEOF
73034
73035 # The following way of writing the cache mishandles newlines in values,
73036 # but we know of no workaround that is simple, portable, and efficient.
73037 # So, don't put newlines in cache variables' values.
73038 # Ultrix sh set writes to stderr and can't be redirected directly,
73039 # and sets the high bit in the cache file unless we assign to the vars.
73040 {
73041   (set) 2>&1 |
73042     case `(ac_space=' '; set | grep ac_space) 2>&1` in
73043     *ac_space=\ *)
73044       # `set' does not quote correctly, so add quotes (double-quote
73045       # substitution turns \\\\ into \\, and sed turns \\ into \).
73046       sed -n \
73047         "s/'/'\\\\''/g;
73048           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73049       ;;
73050     *)
73051       # `set' quotes correctly as required by POSIX, so do not add quotes.
73052       sed -n \
73053         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
73054       ;;
73055     esac;
73056 } |
73057   sed '
73058      t clear
73059      : clear
73060      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73061      t end
73062      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73063      : end' >>confcache
73064 if diff $cache_file confcache >/dev/null 2>&1; then :; else
73065   if test -w $cache_file; then
73066     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
73067     cat confcache >$cache_file
73068   else
73069     echo "not updating unwritable cache $cache_file"
73070   fi
73071 fi
73072 rm -f confcache
73073
73074 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73075 # Let make expand exec_prefix.
73076 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73077
73078 # VPATH may cause trouble with some makes, so we remove $(srcdir),
73079 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
73080 # trailing colons and then remove the whole line if VPATH becomes empty
73081 # (actually we leave an empty line to preserve line numbers).
73082 if test "x$srcdir" = x.; then
73083   ac_vpsub='/^[  ]*VPATH[        ]*=/{
73084 s/:*\$(srcdir):*/:/;
73085 s/:*\${srcdir}:*/:/;
73086 s/:*@srcdir@:*/:/;
73087 s/^\([^=]*=[     ]*\):*/\1/;
73088 s/:*$//;
73089 s/^[^=]*=[       ]*$//;
73090 }'
73091 fi
73092
73093 DEFS=-DHAVE_CONFIG_H
73094
73095 ac_libobjs=
73096 ac_ltlibobjs=
73097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73098   # 1. Remove the extension, and $U if already installed.
73099   ac_i=`echo "$ac_i" |
73100          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
73101   # 2. Add them.
73102   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
73103   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
73104 done
73105 LIBOBJS=$ac_libobjs
73106
73107 LTLIBOBJS=$ac_ltlibobjs
73108
73109
73110 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
73111   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
73112 Usually this means the macro was only invoked conditionally." >&5
73113 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
73114 Usually this means the macro was only invoked conditionally." >&2;}
73115    { (exit 1); exit 1; }; }
73116 fi
73117 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
73118   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73119 Usually this means the macro was only invoked conditionally." >&5
73120 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73121 Usually this means the macro was only invoked conditionally." >&2;}
73122    { (exit 1); exit 1; }; }
73123 fi
73124 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
73125   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73126 Usually this means the macro was only invoked conditionally." >&5
73127 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73128 Usually this means the macro was only invoked conditionally." >&2;}
73129    { (exit 1); exit 1; }; }
73130 fi
73131 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
73132   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73133 Usually this means the macro was only invoked conditionally." >&5
73134 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73135 Usually this means the macro was only invoked conditionally." >&2;}
73136    { (exit 1); exit 1; }; }
73137 fi
73138 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
73139   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73140 Usually this means the macro was only invoked conditionally." >&5
73141 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73142 Usually this means the macro was only invoked conditionally." >&2;}
73143    { (exit 1); exit 1; }; }
73144 fi
73145 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
73146   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73147 Usually this means the macro was only invoked conditionally." >&5
73148 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73149 Usually this means the macro was only invoked conditionally." >&2;}
73150    { (exit 1); exit 1; }; }
73151 fi
73152 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
73153   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73154 Usually this means the macro was only invoked conditionally." >&5
73155 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73156 Usually this means the macro was only invoked conditionally." >&2;}
73157    { (exit 1); exit 1; }; }
73158 fi
73159 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
73160   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73161 Usually this means the macro was only invoked conditionally." >&5
73162 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73163 Usually this means the macro was only invoked conditionally." >&2;}
73164    { (exit 1); exit 1; }; }
73165 fi
73166 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
73167   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73168 Usually this means the macro was only invoked conditionally." >&5
73169 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73170 Usually this means the macro was only invoked conditionally." >&2;}
73171    { (exit 1); exit 1; }; }
73172 fi
73173 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
73174   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73175 Usually this means the macro was only invoked conditionally." >&5
73176 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73177 Usually this means the macro was only invoked conditionally." >&2;}
73178    { (exit 1); exit 1; }; }
73179 fi
73180
73181 : ${CONFIG_STATUS=./config.status}
73182 ac_clean_files_save=$ac_clean_files
73183 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
73184 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
73185 echo "$as_me: creating $CONFIG_STATUS" >&6;}
73186 cat >$CONFIG_STATUS <<_ACEOF
73187 #! $SHELL
73188 # Generated by $as_me.
73189 # Run this file to recreate the current configuration.
73190 # Compiler output produced by configure, useful for debugging
73191 # configure, is in config.log if it exists.
73192
73193 debug=false
73194 ac_cs_recheck=false
73195 ac_cs_silent=false
73196 SHELL=\${CONFIG_SHELL-$SHELL}
73197 _ACEOF
73198
73199 cat >>$CONFIG_STATUS <<\_ACEOF
73200 ## --------------------- ##
73201 ## M4sh Initialization.  ##
73202 ## --------------------- ##
73203
73204 # Be Bourne compatible
73205 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
73206   emulate sh
73207   NULLCMD=:
73208   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
73209   # is contrary to our usage.  Disable this feature.
73210   alias -g '${1+"$@"}'='"$@"'
73211 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
73212   set -o posix
73213 fi
73214 DUALCASE=1; export DUALCASE # for MKS sh
73215
73216 # Support unset when possible.
73217 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
73218   as_unset=unset
73219 else
73220   as_unset=false
73221 fi
73222
73223
73224 # Work around bugs in pre-3.0 UWIN ksh.
73225 $as_unset ENV MAIL MAILPATH
73226 PS1='$ '
73227 PS2='> '
73228 PS4='+ '
73229
73230 # NLS nuisances.
73231 for as_var in \
73232   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
73233   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
73234   LC_TELEPHONE LC_TIME
73235 do
73236   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
73237     eval $as_var=C; export $as_var
73238   else
73239     $as_unset $as_var
73240   fi
73241 done
73242
73243 # Required to use basename.
73244 if expr a : '\(a\)' >/dev/null 2>&1; then
73245   as_expr=expr
73246 else
73247   as_expr=false
73248 fi
73249
73250 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
73251   as_basename=basename
73252 else
73253   as_basename=false
73254 fi
73255
73256
73257 # Name of the executable.
73258 as_me=`$as_basename "$0" ||
73259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
73260          X"$0" : 'X\(//\)$' \| \
73261          X"$0" : 'X\(/\)$' \| \
73262          .     : '\(.\)' 2>/dev/null ||
73263 echo X/"$0" |
73264     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73265           /^X\/\(\/\/\)$/{ s//\1/; q; }
73266           /^X\/\(\/\).*/{ s//\1/; q; }
73267           s/.*/./; q'`
73268
73269
73270 # PATH needs CR, and LINENO needs CR and PATH.
73271 # Avoid depending upon Character Ranges.
73272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
73273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
73274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
73275 as_cr_digits='0123456789'
73276 as_cr_alnum=$as_cr_Letters$as_cr_digits
73277
73278 # The user is always right.
73279 if test "${PATH_SEPARATOR+set}" != set; then
73280   echo "#! /bin/sh" >conf$$.sh
73281   echo  "exit 0"   >>conf$$.sh
73282   chmod +x conf$$.sh
73283   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
73284     PATH_SEPARATOR=';'
73285   else
73286     PATH_SEPARATOR=:
73287   fi
73288   rm -f conf$$.sh
73289 fi
73290
73291
73292   as_lineno_1=$LINENO
73293   as_lineno_2=$LINENO
73294   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73295   test "x$as_lineno_1" != "x$as_lineno_2" &&
73296   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
73297   # Find who we are.  Look in the path if we contain no path at all
73298   # relative or not.
73299   case $0 in
73300     *[\\/]* ) as_myself=$0 ;;
73301     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73302 for as_dir in $PATH
73303 do
73304   IFS=$as_save_IFS
73305   test -z "$as_dir" && as_dir=.
73306   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
73307 done
73308
73309        ;;
73310   esac
73311   # We did not find ourselves, most probably we were run as `sh COMMAND'
73312   # in which case we are not to be found in the path.
73313   if test "x$as_myself" = x; then
73314     as_myself=$0
73315   fi
73316   if test ! -f "$as_myself"; then
73317     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
73318 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
73319    { (exit 1); exit 1; }; }
73320   fi
73321   case $CONFIG_SHELL in
73322   '')
73323     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73324 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
73325 do
73326   IFS=$as_save_IFS
73327   test -z "$as_dir" && as_dir=.
73328   for as_base in sh bash ksh sh5; do
73329          case $as_dir in
73330          /*)
73331            if ("$as_dir/$as_base" -c '
73332   as_lineno_1=$LINENO
73333   as_lineno_2=$LINENO
73334   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73335   test "x$as_lineno_1" != "x$as_lineno_2" &&
73336   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
73337              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
73338              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
73339              CONFIG_SHELL=$as_dir/$as_base
73340              export CONFIG_SHELL
73341              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
73342            fi;;
73343          esac
73344        done
73345 done
73346 ;;
73347   esac
73348
73349   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
73350   # uniformly replaced by the line number.  The first 'sed' inserts a
73351   # line-number line before each line; the second 'sed' does the real
73352   # work.  The second script uses 'N' to pair each line-number line
73353   # with the numbered line, and appends trailing '-' during
73354   # substitution so that $LINENO is not a special case at line end.
73355   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
73356   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
73357   sed '=' <$as_myself |
73358     sed '
73359       N
73360       s,$,-,
73361       : loop
73362       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
73363       t loop
73364       s,-$,,
73365       s,^['$as_cr_digits']*\n,,
73366     ' >$as_me.lineno &&
73367   chmod +x $as_me.lineno ||
73368     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
73369 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
73370    { (exit 1); exit 1; }; }
73371
73372   # Don't try to exec as it changes $[0], causing all sort of problems
73373   # (the dirname of $[0] is not the place where we might find the
73374   # original and so on.  Autoconf is especially sensible to this).
73375   . ./$as_me.lineno
73376   # Exit status is that of the last command.
73377   exit
73378 }
73379
73380
73381 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
73382   *c*,-n*) ECHO_N= ECHO_C='
73383 ' ECHO_T='      ' ;;
73384   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
73385   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
73386 esac
73387
73388 if expr a : '\(a\)' >/dev/null 2>&1; then
73389   as_expr=expr
73390 else
73391   as_expr=false
73392 fi
73393
73394 rm -f conf$$ conf$$.exe conf$$.file
73395 echo >conf$$.file
73396 if ln -s conf$$.file conf$$ 2>/dev/null; then
73397   # We could just check for DJGPP; but this test a) works b) is more generic
73398   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
73399   if test -f conf$$.exe; then
73400     # Don't use ln at all; we don't have any links
73401     as_ln_s='cp -p'
73402   else
73403     as_ln_s='ln -s'
73404   fi
73405 elif ln conf$$.file conf$$ 2>/dev/null; then
73406   as_ln_s=ln
73407 else
73408   as_ln_s='cp -p'
73409 fi
73410 rm -f conf$$ conf$$.exe conf$$.file
73411
73412 if mkdir -p . 2>/dev/null; then
73413   as_mkdir_p=:
73414 else
73415   test -d ./-p && rmdir ./-p
73416   as_mkdir_p=false
73417 fi
73418
73419 as_executable_p="test -f"
73420
73421 # Sed expression to map a string onto a valid CPP name.
73422 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
73423
73424 # Sed expression to map a string onto a valid variable name.
73425 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
73426
73427
73428 # IFS
73429 # We need space, tab and new line, in precisely that order.
73430 as_nl='
73431 '
73432 IFS="   $as_nl"
73433
73434 # CDPATH.
73435 $as_unset CDPATH
73436
73437 exec 6>&1
73438
73439 # Open the log real soon, to keep \$[0] and so on meaningful, and to
73440 # report actual input values of CONFIG_FILES etc. instead of their
73441 # values after options handling.  Logging --version etc. is OK.
73442 exec 5>>config.log
73443 {
73444   echo
73445   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
73446 ## Running $as_me. ##
73447 _ASBOX
73448 } >&5
73449 cat >&5 <<_CSEOF
73450
73451 This file was extended by package-unused $as_me version-unused, which was
73452 generated by GNU Autoconf 2.59.  Invocation command line was
73453
73454   CONFIG_FILES    = $CONFIG_FILES
73455   CONFIG_HEADERS  = $CONFIG_HEADERS
73456   CONFIG_LINKS    = $CONFIG_LINKS
73457   CONFIG_COMMANDS = $CONFIG_COMMANDS
73458   $ $0 $@
73459
73460 _CSEOF
73461 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
73462 echo >&5
73463 _ACEOF
73464
73465 # Files that config.status was made for.
73466 if test -n "$ac_config_files"; then
73467   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
73468 fi
73469
73470 if test -n "$ac_config_headers"; then
73471   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
73472 fi
73473
73474 if test -n "$ac_config_links"; then
73475   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
73476 fi
73477
73478 if test -n "$ac_config_commands"; then
73479   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
73480 fi
73481
73482 cat >>$CONFIG_STATUS <<\_ACEOF
73483
73484 ac_cs_usage="\
73485 \`$as_me' instantiates files from templates according to the
73486 current configuration.
73487
73488 Usage: $0 [OPTIONS] [FILE]...
73489
73490   -h, --help       print this help, then exit
73491   -V, --version    print version number, then exit
73492   -q, --quiet      do not print progress messages
73493   -d, --debug      don't remove temporary files
73494       --recheck    update $as_me by reconfiguring in the same conditions
73495   --file=FILE[:TEMPLATE]
73496                    instantiate the configuration file FILE
73497   --header=FILE[:TEMPLATE]
73498                    instantiate the configuration header FILE
73499
73500 Configuration files:
73501 $config_files
73502
73503 Configuration headers:
73504 $config_headers
73505
73506 Configuration commands:
73507 $config_commands
73508
73509 Report bugs to <bug-autoconf@gnu.org>."
73510 _ACEOF
73511
73512 cat >>$CONFIG_STATUS <<_ACEOF
73513 ac_cs_version="\\
73514 package-unused config.status version-unused
73515 configured by $0, generated by GNU Autoconf 2.59,
73516   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
73517
73518 Copyright (C) 2003 Free Software Foundation, Inc.
73519 This config.status script is free software; the Free Software Foundation
73520 gives unlimited permission to copy, distribute and modify it."
73521 srcdir=$srcdir
73522 INSTALL="$INSTALL"
73523 _ACEOF
73524
73525 cat >>$CONFIG_STATUS <<\_ACEOF
73526 # If no file are specified by the user, then we need to provide default
73527 # value.  By we need to know if files were specified by the user.
73528 ac_need_defaults=:
73529 while test $# != 0
73530 do
73531   case $1 in
73532   --*=*)
73533     ac_option=`expr "x$1" : 'x\([^=]*\)='`
73534     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
73535     ac_shift=:
73536     ;;
73537   -*)
73538     ac_option=$1
73539     ac_optarg=$2
73540     ac_shift=shift
73541     ;;
73542   *) # This is not an option, so the user has probably given explicit
73543      # arguments.
73544      ac_option=$1
73545      ac_need_defaults=false;;
73546   esac
73547
73548   case $ac_option in
73549   # Handling of the options.
73550 _ACEOF
73551 cat >>$CONFIG_STATUS <<\_ACEOF
73552   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
73553     ac_cs_recheck=: ;;
73554   --version | --vers* | -V )
73555     echo "$ac_cs_version"; exit 0 ;;
73556   --he | --h)
73557     # Conflict between --help and --header
73558     { { echo "$as_me:$LINENO: error: ambiguous option: $1
73559 Try \`$0 --help' for more information." >&5
73560 echo "$as_me: error: ambiguous option: $1
73561 Try \`$0 --help' for more information." >&2;}
73562    { (exit 1); exit 1; }; };;
73563   --help | --hel | -h )
73564     echo "$ac_cs_usage"; exit 0 ;;
73565   --debug | --d* | -d )
73566     debug=: ;;
73567   --file | --fil | --fi | --f )
73568     $ac_shift
73569     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
73570     ac_need_defaults=false;;
73571   --header | --heade | --head | --hea )
73572     $ac_shift
73573     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
73574     ac_need_defaults=false;;
73575   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
73576   | -silent | --silent | --silen | --sile | --sil | --si | --s)
73577     ac_cs_silent=: ;;
73578
73579   # This is an error.
73580   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
73581 Try \`$0 --help' for more information." >&5
73582 echo "$as_me: error: unrecognized option: $1
73583 Try \`$0 --help' for more information." >&2;}
73584    { (exit 1); exit 1; }; } ;;
73585
73586   *) ac_config_targets="$ac_config_targets $1" ;;
73587
73588   esac
73589   shift
73590 done
73591
73592 ac_configure_extra_args=
73593
73594 if $ac_cs_silent; then
73595   exec 6>/dev/null
73596   ac_configure_extra_args="$ac_configure_extra_args --silent"
73597 fi
73598
73599 _ACEOF
73600 cat >>$CONFIG_STATUS <<_ACEOF
73601 if \$ac_cs_recheck; then
73602   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
73603   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
73604 fi
73605
73606 _ACEOF
73607
73608 cat >>$CONFIG_STATUS <<_ACEOF
73609 #
73610 # INIT-COMMANDS section.
73611 #
73612
73613
73614 srcdir="$srcdir"
73615 host="$host"
73616 target="$target"
73617 with_multisubdir="$with_multisubdir"
73618 with_multisrctop="$with_multisrctop"
73619 with_target_subdir="$with_target_subdir"
73620 ac_configure_args="${multilib_arg} ${ac_configure_args}"
73621 multi_basedir="$multi_basedir"
73622 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
73623 CC="$CC"
73624
73625 # Variables needed in config.status (file generation) which aren't already
73626 # passed by autoconf.
73627 SUBDIRS="$SUBDIRS"
73628
73629
73630 _ACEOF
73631
73632
73633
73634 cat >>$CONFIG_STATUS <<\_ACEOF
73635 for ac_config_target in $ac_config_targets
73636 do
73637   case "$ac_config_target" in
73638   # Handling of arguments.
73639   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
73640   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
73641   "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
73642   "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
73643   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
73644   "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
73645   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
73646   "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
73647   "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
73648   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
73649   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
73650   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
73651   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
73652 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
73653    { (exit 1); exit 1; }; };;
73654   esac
73655 done
73656
73657 # If the user did not use the arguments to specify the items to instantiate,
73658 # then the envvar interface is used.  Set only those that are not.
73659 # We use the long form for the default assignment because of an extremely
73660 # bizarre bug on SunOS 4.1.3.
73661 if $ac_need_defaults; then
73662   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
73663   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
73664   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
73665 fi
73666
73667 # Have a temporary directory for convenience.  Make it in the build tree
73668 # simply because there is no reason to put it here, and in addition,
73669 # creating and moving files from /tmp can sometimes cause problems.
73670 # Create a temporary directory, and hook for its removal unless debugging.
73671 $debug ||
73672 {
73673   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
73674   trap '{ (exit 1); exit 1; }' 1 2 13 15
73675 }
73676
73677 # Create a (secure) tmp directory for tmp files.
73678
73679 {
73680   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
73681   test -n "$tmp" && test -d "$tmp"
73682 }  ||
73683 {
73684   tmp=./confstat$$-$RANDOM
73685   (umask 077 && mkdir $tmp)
73686 } ||
73687 {
73688    echo "$me: cannot create a temporary directory in ." >&2
73689    { (exit 1); exit 1; }
73690 }
73691
73692 _ACEOF
73693
73694 cat >>$CONFIG_STATUS <<_ACEOF
73695
73696 #
73697 # CONFIG_FILES section.
73698 #
73699
73700 # No need to generate the scripts if there are no CONFIG_FILES.
73701 # This happens for instance when ./config.status config.h
73702 if test -n "\$CONFIG_FILES"; then
73703   # Protect against being on the right side of a sed subst in config.status.
73704   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
73705    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
73706 s,@SHELL@,$SHELL,;t t
73707 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
73708 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
73709 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
73710 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
73711 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
73712 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
73713 s,@exec_prefix@,$exec_prefix,;t t
73714 s,@prefix@,$prefix,;t t
73715 s,@program_transform_name@,$program_transform_name,;t t
73716 s,@bindir@,$bindir,;t t
73717 s,@sbindir@,$sbindir,;t t
73718 s,@libexecdir@,$libexecdir,;t t
73719 s,@datadir@,$datadir,;t t
73720 s,@sysconfdir@,$sysconfdir,;t t
73721 s,@sharedstatedir@,$sharedstatedir,;t t
73722 s,@localstatedir@,$localstatedir,;t t
73723 s,@libdir@,$libdir,;t t
73724 s,@includedir@,$includedir,;t t
73725 s,@oldincludedir@,$oldincludedir,;t t
73726 s,@infodir@,$infodir,;t t
73727 s,@mandir@,$mandir,;t t
73728 s,@build_alias@,$build_alias,;t t
73729 s,@host_alias@,$host_alias,;t t
73730 s,@target_alias@,$target_alias,;t t
73731 s,@DEFS@,$DEFS,;t t
73732 s,@ECHO_C@,$ECHO_C,;t t
73733 s,@ECHO_N@,$ECHO_N,;t t
73734 s,@ECHO_T@,$ECHO_T,;t t
73735 s,@LIBS@,$LIBS,;t t
73736 s,@libtool_VERSION@,$libtool_VERSION,;t t
73737 s,@multi_basedir@,$multi_basedir,;t t
73738 s,@build@,$build,;t t
73739 s,@build_cpu@,$build_cpu,;t t
73740 s,@build_vendor@,$build_vendor,;t t
73741 s,@build_os@,$build_os,;t t
73742 s,@host@,$host,;t t
73743 s,@host_cpu@,$host_cpu,;t t
73744 s,@host_vendor@,$host_vendor,;t t
73745 s,@host_os@,$host_os,;t t
73746 s,@target@,$target,;t t
73747 s,@target_cpu@,$target_cpu,;t t
73748 s,@target_vendor@,$target_vendor,;t t
73749 s,@target_os@,$target_os,;t t
73750 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
73751 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
73752 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
73753 s,@CYGPATH_W@,$CYGPATH_W,;t t
73754 s,@PACKAGE@,$PACKAGE,;t t
73755 s,@VERSION@,$VERSION,;t t
73756 s,@ACLOCAL@,$ACLOCAL,;t t
73757 s,@AUTOCONF@,$AUTOCONF,;t t
73758 s,@AUTOMAKE@,$AUTOMAKE,;t t
73759 s,@AUTOHEADER@,$AUTOHEADER,;t t
73760 s,@MAKEINFO@,$MAKEINFO,;t t
73761 s,@AMTAR@,$AMTAR,;t t
73762 s,@install_sh@,$install_sh,;t t
73763 s,@STRIP@,$STRIP,;t t
73764 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
73765 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
73766 s,@mkdir_p@,$mkdir_p,;t t
73767 s,@AWK@,$AWK,;t t
73768 s,@SET_MAKE@,$SET_MAKE,;t t
73769 s,@am__leading_dot@,$am__leading_dot,;t t
73770 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
73771 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
73772 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
73773 s,@CC@,$CC,;t t
73774 s,@ac_ct_CC@,$ac_ct_CC,;t t
73775 s,@EXEEXT@,$EXEEXT,;t t
73776 s,@OBJEXT@,$OBJEXT,;t t
73777 s,@CXX@,$CXX,;t t
73778 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
73779 s,@CFLAGS@,$CFLAGS,;t t
73780 s,@CXXFLAGS@,$CXXFLAGS,;t t
73781 s,@LN_S@,$LN_S,;t t
73782 s,@AS@,$AS,;t t
73783 s,@ac_ct_AS@,$ac_ct_AS,;t t
73784 s,@AR@,$AR,;t t
73785 s,@ac_ct_AR@,$ac_ct_AR,;t t
73786 s,@RANLIB@,$RANLIB,;t t
73787 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
73788 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
73789 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
73790 s,@MAINT@,$MAINT,;t t
73791 s,@LIBTOOL@,$LIBTOOL,;t t
73792 s,@CXXCPP@,$CXXCPP,;t t
73793 s,@CPPFLAGS@,$CPPFLAGS,;t t
73794 s,@enable_shared@,$enable_shared,;t t
73795 s,@enable_static@,$enable_static,;t t
73796 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
73797 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
73798 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
73799 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
73800 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
73801 s,@CSTDIO_H@,$CSTDIO_H,;t t
73802 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
73803 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
73804 s,@CPP@,$CPP,;t t
73805 s,@EGREP@,$EGREP,;t t
73806 s,@check_msgfmt@,$check_msgfmt,;t t
73807 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
73808 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
73809 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
73810 s,@USE_NLS@,$USE_NLS,;t t
73811 s,@CLOCALE_H@,$CLOCALE_H,;t t
73812 s,@CCODECVT_H@,$CCODECVT_H,;t t
73813 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
73814 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
73815 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
73816 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
73817 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
73818 s,@CMONEY_CC@,$CMONEY_CC,;t t
73819 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
73820 s,@CTIME_H@,$CTIME_H,;t t
73821 s,@CTIME_CC@,$CTIME_CC,;t t
73822 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
73823 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
73824 s,@ALLOCATOR_H@,$ALLOCATOR_H,;t t
73825 s,@ALLOCATOR_NAME@,$ALLOCATOR_NAME,;t t
73826 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
73827 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
73828 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
73829 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
73830 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
73831 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
73832 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
73833 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
73834 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
73835 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
73836 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
73837 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
73838 s,@WERROR@,$WERROR,;t t
73839 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
73840 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
73841 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
73842 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
73843 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
73844 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
73845 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
73846 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
73847 s,@baseline_dir@,$baseline_dir,;t t
73848 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
73849 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
73850 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
73851 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
73852 s,@ATOMICITY_SRCDIR@,$ATOMICITY_SRCDIR,;t t
73853 s,@ATOMIC_WORD_SRCDIR@,$ATOMIC_WORD_SRCDIR,;t t
73854 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
73855 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
73856 s,@gxx_include_dir@,$gxx_include_dir,;t t
73857 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
73858 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
73859 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
73860 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
73861 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
73862 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
73863 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
73864 s,@LIBOBJS@,$LIBOBJS,;t t
73865 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
73866 CEOF
73867
73868 _ACEOF
73869
73870   cat >>$CONFIG_STATUS <<\_ACEOF
73871   # Split the substitutions into bite-sized pieces for seds with
73872   # small command number limits, like on Digital OSF/1 and HP-UX.
73873   ac_max_sed_lines=48
73874   ac_sed_frag=1 # Number of current file.
73875   ac_beg=1 # First line for current file.
73876   ac_end=$ac_max_sed_lines # Line after last line for current file.
73877   ac_more_lines=:
73878   ac_sed_cmds=
73879   while $ac_more_lines; do
73880     if test $ac_beg -gt 1; then
73881       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
73882     else
73883       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
73884     fi
73885     if test ! -s $tmp/subs.frag; then
73886       ac_more_lines=false
73887     else
73888       # The purpose of the label and of the branching condition is to
73889       # speed up the sed processing (if there are no `@' at all, there
73890       # is no need to browse any of the substitutions).
73891       # These are the two extra sed commands mentioned above.
73892       (echo ':t
73893   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
73894       if test -z "$ac_sed_cmds"; then
73895         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
73896       else
73897         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
73898       fi
73899       ac_sed_frag=`expr $ac_sed_frag + 1`
73900       ac_beg=$ac_end
73901       ac_end=`expr $ac_end + $ac_max_sed_lines`
73902     fi
73903   done
73904   if test -z "$ac_sed_cmds"; then
73905     ac_sed_cmds=cat
73906   fi
73907 fi # test -n "$CONFIG_FILES"
73908
73909 _ACEOF
73910 cat >>$CONFIG_STATUS <<\_ACEOF
73911 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
73912   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
73913   case $ac_file in
73914   - | *:- | *:-:* ) # input from stdin
73915         cat >$tmp/stdin
73916         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
73917         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
73918   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
73919         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
73920   * )   ac_file_in=$ac_file.in ;;
73921   esac
73922
73923   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
73924   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
73925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73926          X"$ac_file" : 'X\(//\)[^/]' \| \
73927          X"$ac_file" : 'X\(//\)$' \| \
73928          X"$ac_file" : 'X\(/\)' \| \
73929          .     : '\(.\)' 2>/dev/null ||
73930 echo X"$ac_file" |
73931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
73932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
73933           /^X\(\/\/\)$/{ s//\1/; q; }
73934           /^X\(\/\).*/{ s//\1/; q; }
73935           s/.*/./; q'`
73936   { if $as_mkdir_p; then
73937     mkdir -p "$ac_dir"
73938   else
73939     as_dir="$ac_dir"
73940     as_dirs=
73941     while test ! -d "$as_dir"; do
73942       as_dirs="$as_dir $as_dirs"
73943       as_dir=`(dirname "$as_dir") 2>/dev/null ||
73944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73945          X"$as_dir" : 'X\(//\)[^/]' \| \
73946          X"$as_dir" : 'X\(//\)$' \| \
73947          X"$as_dir" : 'X\(/\)' \| \
73948          .     : '\(.\)' 2>/dev/null ||
73949 echo X"$as_dir" |
73950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
73951           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
73952           /^X\(\/\/\)$/{ s//\1/; q; }
73953           /^X\(\/\).*/{ s//\1/; q; }
73954           s/.*/./; q'`
73955     done
73956     test ! -n "$as_dirs" || mkdir $as_dirs
73957   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
73958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
73959    { (exit 1); exit 1; }; }; }
73960
73961   ac_builddir=.
73962
73963 if test "$ac_dir" != .; then
73964   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
73965   # A "../" for each directory in $ac_dir_suffix.
73966   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
73967 else
73968   ac_dir_suffix= ac_top_builddir=
73969 fi
73970
73971 case $srcdir in
73972   .)  # No --srcdir option.  We are building in place.
73973     ac_srcdir=.
73974     if test -z "$ac_top_builddir"; then
73975        ac_top_srcdir=.
73976     else
73977        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
73978     fi ;;
73979   [\\/]* | ?:[\\/]* )  # Absolute path.
73980     ac_srcdir=$srcdir$ac_dir_suffix;
73981     ac_top_srcdir=$srcdir ;;
73982   *) # Relative path.
73983     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
73984     ac_top_srcdir=$ac_top_builddir$srcdir ;;
73985 esac
73986
73987 # Do not use `cd foo && pwd` to compute absolute paths, because
73988 # the directories may not exist.
73989 case `pwd` in
73990 .) ac_abs_builddir="$ac_dir";;
73991 *)
73992   case "$ac_dir" in
73993   .) ac_abs_builddir=`pwd`;;
73994   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
73995   *) ac_abs_builddir=`pwd`/"$ac_dir";;
73996   esac;;
73997 esac
73998 case $ac_abs_builddir in
73999 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74000 *)
74001   case ${ac_top_builddir}. in
74002   .) ac_abs_top_builddir=$ac_abs_builddir;;
74003   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74004   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74005   esac;;
74006 esac
74007 case $ac_abs_builddir in
74008 .) ac_abs_srcdir=$ac_srcdir;;
74009 *)
74010   case $ac_srcdir in
74011   .) ac_abs_srcdir=$ac_abs_builddir;;
74012   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74013   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74014   esac;;
74015 esac
74016 case $ac_abs_builddir in
74017 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74018 *)
74019   case $ac_top_srcdir in
74020   .) ac_abs_top_srcdir=$ac_abs_builddir;;
74021   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74022   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74023   esac;;
74024 esac
74025
74026
74027   case $INSTALL in
74028   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
74029   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
74030   esac
74031
74032   if test x"$ac_file" != x-; then
74033     { echo "$as_me:$LINENO: creating $ac_file" >&5
74034 echo "$as_me: creating $ac_file" >&6;}
74035     rm -f "$ac_file"
74036   fi
74037   # Let's still pretend it is `configure' which instantiates (i.e., don't
74038   # use $as_me), people would be surprised to read:
74039   #    /* config.h.  Generated by config.status.  */
74040   if test x"$ac_file" = x-; then
74041     configure_input=
74042   else
74043     configure_input="$ac_file.  "
74044   fi
74045   configure_input=$configure_input"Generated from `echo $ac_file_in |
74046                                      sed 's,.*/,,'` by configure."
74047
74048   # First look for the input files in the build tree, otherwise in the
74049   # src tree.
74050   ac_file_inputs=`IFS=:
74051     for f in $ac_file_in; do
74052       case $f in
74053       -) echo $tmp/stdin ;;
74054       [\\/$]*)
74055          # Absolute (can't be DOS-style, as IFS=:)
74056          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74057 echo "$as_me: error: cannot find input file: $f" >&2;}
74058    { (exit 1); exit 1; }; }
74059          echo "$f";;
74060       *) # Relative
74061          if test -f "$f"; then
74062            # Build tree
74063            echo "$f"
74064          elif test -f "$srcdir/$f"; then
74065            # Source tree
74066            echo "$srcdir/$f"
74067          else
74068            # /dev/null tree
74069            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74070 echo "$as_me: error: cannot find input file: $f" >&2;}
74071    { (exit 1); exit 1; }; }
74072          fi;;
74073       esac
74074     done` || { (exit 1); exit 1; }
74075 _ACEOF
74076 cat >>$CONFIG_STATUS <<_ACEOF
74077   sed "$ac_vpsub
74078 $extrasub
74079 _ACEOF
74080 cat >>$CONFIG_STATUS <<\_ACEOF
74081 :t
74082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
74083 s,@configure_input@,$configure_input,;t t
74084 s,@srcdir@,$ac_srcdir,;t t
74085 s,@abs_srcdir@,$ac_abs_srcdir,;t t
74086 s,@top_srcdir@,$ac_top_srcdir,;t t
74087 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
74088 s,@builddir@,$ac_builddir,;t t
74089 s,@abs_builddir@,$ac_abs_builddir,;t t
74090 s,@top_builddir@,$ac_top_builddir,;t t
74091 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
74092 s,@INSTALL@,$ac_INSTALL,;t t
74093 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
74094   rm -f $tmp/stdin
74095   if test x"$ac_file" != x-; then
74096     mv $tmp/out $ac_file
74097   else
74098     cat $tmp/out
74099     rm -f $tmp/out
74100   fi
74101
74102   # Run the commands associated with the file.
74103   case $ac_file in
74104     scripts/check_survey ) chmod +x scripts/check_survey ;;
74105     scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
74106   esac
74107 done
74108 _ACEOF
74109 cat >>$CONFIG_STATUS <<\_ACEOF
74110
74111 #
74112 # CONFIG_HEADER section.
74113 #
74114
74115 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
74116 # NAME is the cpp macro being defined and VALUE is the value it is being given.
74117 #
74118 # ac_d sets the value in "#define NAME VALUE" lines.
74119 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
74120 ac_dB='[         ].*$,\1#\2'
74121 ac_dC=' '
74122 ac_dD=',;t'
74123 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
74124 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
74125 ac_uB='$,\1#\2define\3'
74126 ac_uC=' '
74127 ac_uD=',;t'
74128
74129 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
74130   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
74131   case $ac_file in
74132   - | *:- | *:-:* ) # input from stdin
74133         cat >$tmp/stdin
74134         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74135         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74136   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74137         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74138   * )   ac_file_in=$ac_file.in ;;
74139   esac
74140
74141   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
74142 echo "$as_me: creating $ac_file" >&6;}
74143
74144   # First look for the input files in the build tree, otherwise in the
74145   # src tree.
74146   ac_file_inputs=`IFS=:
74147     for f in $ac_file_in; do
74148       case $f in
74149       -) echo $tmp/stdin ;;
74150       [\\/$]*)
74151          # Absolute (can't be DOS-style, as IFS=:)
74152          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74153 echo "$as_me: error: cannot find input file: $f" >&2;}
74154    { (exit 1); exit 1; }; }
74155          # Do quote $f, to prevent DOS paths from being IFS'd.
74156          echo "$f";;
74157       *) # Relative
74158          if test -f "$f"; then
74159            # Build tree
74160            echo "$f"
74161          elif test -f "$srcdir/$f"; then
74162            # Source tree
74163            echo "$srcdir/$f"
74164          else
74165            # /dev/null tree
74166            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74167 echo "$as_me: error: cannot find input file: $f" >&2;}
74168    { (exit 1); exit 1; }; }
74169          fi;;
74170       esac
74171     done` || { (exit 1); exit 1; }
74172   # Remove the trailing spaces.
74173   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
74174
74175 _ACEOF
74176
74177 # Transform confdefs.h into two sed scripts, `conftest.defines' and
74178 # `conftest.undefs', that substitutes the proper values into
74179 # config.h.in to produce config.h.  The first handles `#define'
74180 # templates, and the second `#undef' templates.
74181 # And first: Protect against being on the right side of a sed subst in
74182 # config.status.  Protect against being in an unquoted here document
74183 # in config.status.
74184 rm -f conftest.defines conftest.undefs
74185 # Using a here document instead of a string reduces the quoting nightmare.
74186 # Putting comments in sed scripts is not portable.
74187 #
74188 # `end' is used to avoid that the second main sed command (meant for
74189 # 0-ary CPP macros) applies to n-ary macro definitions.
74190 # See the Autoconf documentation for `clear'.
74191 cat >confdef2sed.sed <<\_ACEOF
74192 s/[\\&,]/\\&/g
74193 s,[\\$`],\\&,g
74194 t clear
74195 : clear
74196 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
74197 t end
74198 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
74199 : end
74200 _ACEOF
74201 # If some macros were called several times there might be several times
74202 # the same #defines, which is useless.  Nevertheless, we may not want to
74203 # sort them, since we want the *last* AC-DEFINE to be honored.
74204 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
74205 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
74206 rm -f confdef2sed.sed
74207
74208 # This sed command replaces #undef with comments.  This is necessary, for
74209 # example, in the case of _POSIX_SOURCE, which is predefined and required
74210 # on some systems where configure will not decide to define it.
74211 cat >>conftest.undefs <<\_ACEOF
74212 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
74213 _ACEOF
74214
74215 # Break up conftest.defines because some shells have a limit on the size
74216 # of here documents, and old seds have small limits too (100 cmds).
74217 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
74218 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
74219 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
74220 echo '  :' >>$CONFIG_STATUS
74221 rm -f conftest.tail
74222 while grep . conftest.defines >/dev/null
74223 do
74224   # Write a limited-size here document to $tmp/defines.sed.
74225   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
74226   # Speed up: don't consider the non `#define' lines.
74227   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
74228   # Work around the forget-to-reset-the-flag bug.
74229   echo 't clr' >>$CONFIG_STATUS
74230   echo ': clr' >>$CONFIG_STATUS
74231   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
74232   echo 'CEOF
74233   sed -f $tmp/defines.sed $tmp/in >$tmp/out
74234   rm -f $tmp/in
74235   mv $tmp/out $tmp/in
74236 ' >>$CONFIG_STATUS
74237   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
74238   rm -f conftest.defines
74239   mv conftest.tail conftest.defines
74240 done
74241 rm -f conftest.defines
74242 echo '  fi # grep' >>$CONFIG_STATUS
74243 echo >>$CONFIG_STATUS
74244
74245 # Break up conftest.undefs because some shells have a limit on the size
74246 # of here documents, and old seds have small limits too (100 cmds).
74247 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
74248 rm -f conftest.tail
74249 while grep . conftest.undefs >/dev/null
74250 do
74251   # Write a limited-size here document to $tmp/undefs.sed.
74252   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
74253   # Speed up: don't consider the non `#undef'
74254   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
74255   # Work around the forget-to-reset-the-flag bug.
74256   echo 't clr' >>$CONFIG_STATUS
74257   echo ': clr' >>$CONFIG_STATUS
74258   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
74259   echo 'CEOF
74260   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
74261   rm -f $tmp/in
74262   mv $tmp/out $tmp/in
74263 ' >>$CONFIG_STATUS
74264   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
74265   rm -f conftest.undefs
74266   mv conftest.tail conftest.undefs
74267 done
74268 rm -f conftest.undefs
74269
74270 cat >>$CONFIG_STATUS <<\_ACEOF
74271   # Let's still pretend it is `configure' which instantiates (i.e., don't
74272   # use $as_me), people would be surprised to read:
74273   #    /* config.h.  Generated by config.status.  */
74274   if test x"$ac_file" = x-; then
74275     echo "/* Generated by configure.  */" >$tmp/config.h
74276   else
74277     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
74278   fi
74279   cat $tmp/in >>$tmp/config.h
74280   rm -f $tmp/in
74281   if test x"$ac_file" != x-; then
74282     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
74283       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
74284 echo "$as_me: $ac_file is unchanged" >&6;}
74285     else
74286       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
74287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74288          X"$ac_file" : 'X\(//\)[^/]' \| \
74289          X"$ac_file" : 'X\(//\)$' \| \
74290          X"$ac_file" : 'X\(/\)' \| \
74291          .     : '\(.\)' 2>/dev/null ||
74292 echo X"$ac_file" |
74293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74294           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74295           /^X\(\/\/\)$/{ s//\1/; q; }
74296           /^X\(\/\).*/{ s//\1/; q; }
74297           s/.*/./; q'`
74298       { if $as_mkdir_p; then
74299     mkdir -p "$ac_dir"
74300   else
74301     as_dir="$ac_dir"
74302     as_dirs=
74303     while test ! -d "$as_dir"; do
74304       as_dirs="$as_dir $as_dirs"
74305       as_dir=`(dirname "$as_dir") 2>/dev/null ||
74306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74307          X"$as_dir" : 'X\(//\)[^/]' \| \
74308          X"$as_dir" : 'X\(//\)$' \| \
74309          X"$as_dir" : 'X\(/\)' \| \
74310          .     : '\(.\)' 2>/dev/null ||
74311 echo X"$as_dir" |
74312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74313           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74314           /^X\(\/\/\)$/{ s//\1/; q; }
74315           /^X\(\/\).*/{ s//\1/; q; }
74316           s/.*/./; q'`
74317     done
74318     test ! -n "$as_dirs" || mkdir $as_dirs
74319   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74321    { (exit 1); exit 1; }; }; }
74322
74323       rm -f $ac_file
74324       mv $tmp/config.h $ac_file
74325     fi
74326   else
74327     cat $tmp/config.h
74328     rm -f $tmp/config.h
74329   fi
74330 # Compute $ac_file's index in $config_headers.
74331 _am_stamp_count=1
74332 for _am_header in $config_headers :; do
74333   case $_am_header in
74334     $ac_file | $ac_file:* )
74335       break ;;
74336     * )
74337       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
74338   esac
74339 done
74340 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
74341 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74342          X$ac_file : 'X\(//\)[^/]' \| \
74343          X$ac_file : 'X\(//\)$' \| \
74344          X$ac_file : 'X\(/\)' \| \
74345          .     : '\(.\)' 2>/dev/null ||
74346 echo X$ac_file |
74347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74348           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74349           /^X\(\/\/\)$/{ s//\1/; q; }
74350           /^X\(\/\).*/{ s//\1/; q; }
74351           s/.*/./; q'`/stamp-h$_am_stamp_count
74352 done
74353 _ACEOF
74354 cat >>$CONFIG_STATUS <<\_ACEOF
74355
74356 #
74357 # CONFIG_COMMANDS section.
74358 #
74359 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
74360   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
74361   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
74362   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
74363 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74364          X"$ac_dest" : 'X\(//\)[^/]' \| \
74365          X"$ac_dest" : 'X\(//\)$' \| \
74366          X"$ac_dest" : 'X\(/\)' \| \
74367          .     : '\(.\)' 2>/dev/null ||
74368 echo X"$ac_dest" |
74369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74370           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74371           /^X\(\/\/\)$/{ s//\1/; q; }
74372           /^X\(\/\).*/{ s//\1/; q; }
74373           s/.*/./; q'`
74374   { if $as_mkdir_p; then
74375     mkdir -p "$ac_dir"
74376   else
74377     as_dir="$ac_dir"
74378     as_dirs=
74379     while test ! -d "$as_dir"; do
74380       as_dirs="$as_dir $as_dirs"
74381       as_dir=`(dirname "$as_dir") 2>/dev/null ||
74382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74383          X"$as_dir" : 'X\(//\)[^/]' \| \
74384          X"$as_dir" : 'X\(//\)$' \| \
74385          X"$as_dir" : 'X\(/\)' \| \
74386          .     : '\(.\)' 2>/dev/null ||
74387 echo X"$as_dir" |
74388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74389           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74390           /^X\(\/\/\)$/{ s//\1/; q; }
74391           /^X\(\/\).*/{ s//\1/; q; }
74392           s/.*/./; q'`
74393     done
74394     test ! -n "$as_dirs" || mkdir $as_dirs
74395   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74397    { (exit 1); exit 1; }; }; }
74398
74399   ac_builddir=.
74400
74401 if test "$ac_dir" != .; then
74402   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
74403   # A "../" for each directory in $ac_dir_suffix.
74404   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
74405 else
74406   ac_dir_suffix= ac_top_builddir=
74407 fi
74408
74409 case $srcdir in
74410   .)  # No --srcdir option.  We are building in place.
74411     ac_srcdir=.
74412     if test -z "$ac_top_builddir"; then
74413        ac_top_srcdir=.
74414     else
74415        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
74416     fi ;;
74417   [\\/]* | ?:[\\/]* )  # Absolute path.
74418     ac_srcdir=$srcdir$ac_dir_suffix;
74419     ac_top_srcdir=$srcdir ;;
74420   *) # Relative path.
74421     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
74422     ac_top_srcdir=$ac_top_builddir$srcdir ;;
74423 esac
74424
74425 # Do not use `cd foo && pwd` to compute absolute paths, because
74426 # the directories may not exist.
74427 case `pwd` in
74428 .) ac_abs_builddir="$ac_dir";;
74429 *)
74430   case "$ac_dir" in
74431   .) ac_abs_builddir=`pwd`;;
74432   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74433   *) ac_abs_builddir=`pwd`/"$ac_dir";;
74434   esac;;
74435 esac
74436 case $ac_abs_builddir in
74437 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74438 *)
74439   case ${ac_top_builddir}. in
74440   .) ac_abs_top_builddir=$ac_abs_builddir;;
74441   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74442   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74443   esac;;
74444 esac
74445 case $ac_abs_builddir in
74446 .) ac_abs_srcdir=$ac_srcdir;;
74447 *)
74448   case $ac_srcdir in
74449   .) ac_abs_srcdir=$ac_abs_builddir;;
74450   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74451   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74452   esac;;
74453 esac
74454 case $ac_abs_builddir in
74455 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74456 *)
74457   case $ac_top_srcdir in
74458   .) ac_abs_top_srcdir=$ac_abs_builddir;;
74459   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74460   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74461   esac;;
74462 esac
74463
74464
74465   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
74466 echo "$as_me: executing $ac_dest commands" >&6;}
74467   case $ac_dest in
74468     default-1 )
74469 # Only add multilib support code if we just rebuilt the top-level
74470 # Makefile.
74471 case " $CONFIG_FILES " in
74472  *" Makefile "*)
74473    ac_file=Makefile . ${multi_basedir}/config-ml.in
74474    ;;
74475 esac ;;
74476     default ) if test -n "$CONFIG_FILES"; then
74477    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
74478    # that multilib installs will end up installed in the correct place.
74479    # The testsuite needs it for multilib-aware ABI baseline files.
74480    # To work around this not being passed down from config-ml.in ->
74481    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
74482    # append it here.  Only modify Makefiles that have just been created.
74483    #
74484    # Also, get rid of this simulated-VPATH thing that automake does.
74485    cat > vpsed << \_EOF
74486 s!`test -f '$<' || echo '$(srcdir)/'`!!
74487 _EOF
74488    for i in $SUBDIRS; do
74489     case $CONFIG_FILES in
74490      *${i}/Makefile*)
74491        #echo "Adding MULTISUBDIR to $i/Makefile"
74492        sed -f vpsed $i/Makefile > tmp
74493        grep '^MULTISUBDIR =' Makefile >> tmp
74494        mv tmp $i/Makefile
74495        ;;
74496     esac
74497    done
74498    rm vpsed
74499  fi
74500  (cd include && ${MAKE-make})
74501  ;;
74502   esac
74503 done
74504 _ACEOF
74505
74506 cat >>$CONFIG_STATUS <<\_ACEOF
74507
74508 { (exit 0); exit 0; }
74509 _ACEOF
74510 chmod +x $CONFIG_STATUS
74511 ac_clean_files=$ac_clean_files_save
74512
74513
74514 # configure is writing to config.log, and then calls config.status.
74515 # config.status does its own redirection, appending to config.log.
74516 # Unfortunately, on DOS this fails, as config.log is still kept open
74517 # by configure, so config.status won't be able to write to it; its
74518 # output is simply discarded.  So we exec the FD to /dev/null,
74519 # effectively closing config.log, so it can be properly (re)opened and
74520 # appended to by config.status.  When coming back to configure, we
74521 # need to make the FD available again.
74522 if test "$no_create" != yes; then
74523   ac_cs_success=:
74524   ac_config_status_args=
74525   test "$silent" = yes &&
74526     ac_config_status_args="$ac_config_status_args --quiet"
74527   exec 5>/dev/null
74528   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
74529   exec 5>>config.log
74530   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
74531   # would make configure fail if this is the last instruction.
74532   $ac_cs_success || { (exit 1); exit 1; }
74533 fi
74534