OSDN Git Service

2006-06-15 Paolo Bonzini <bonzini@gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
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_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: yes,no,all,none,release.
871                           Flags are: assert,fold,gc,gcac,misc,
872                           rtlflag,rtl,runtime,tree,valgrind.
873   --enable-mapped-location   location_t is fileline integer cookie
874   --enable-coverage=LEVEL
875                           enable compiler's code coverage collection.
876                           Use to measure compiler performance and locate
877                           unused parts of the compiler. With LEVEL, specify
878                           optimization. Values are opt, noopt,
879                           default is noopt
880   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
881   --enable-multilib       enable library support for multiple ABIs
882   --enable-__cxa_atexit   enable __cxa_atexit for C++
883   --enable-decimal-float  enable decimal float extension to C
884   --enable-threads        enable thread usage for target GCC
885   --enable-threads=LIB    use LIB thread package for target GCC
886   --enable-tls            enable or disable generation of tls code
887                           overriding the assembler check for tls support
888   --enable-objc-gc        enable the use of Boehm's garbage collector with
889                           the GNU Objective-C runtime
890   --disable-shared        don't provide a shared libgcc
891   --enable-intermodule    build the compiler in one step
892   --enable-languages=LIST specify which front-ends to build
893   --disable-rpath         do not hardcode runtime library paths
894   --enable-initfini-array       use .init_array/.fini_array sections
895   --enable-sjlj-exceptions
896                           arrange to use setjmp/longjmp exception handling
897   --enable-secureplt      enable -msecure-plt by default for PowerPC
898   --disable-win32-registry
899                           disable lookup of installation paths in the
900                           Registry on Windows hosts
901   --enable-win32-registry enable registry lookup (default)
902   --enable-win32-registry=KEY
903                           use KEY instead of GCC version as the last portion
904                           of the registry key
905   --enable-maintainer-mode
906                           enable make rules and dependencies not useful
907                           (and sometimes confusing) to the casual installer
908   --enable-version-specific-runtime-libs
909                           specify that runtime libraries should be
910                           installed in a compiler-specific directory
911
912 Optional Packages:
913   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
914   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
915   --with-local-prefix=DIR specifies directory to put local include
916   --with-gxx-include-dir=DIR
917                           specifies directory to put g++ header files
918   --with-cpp-install-dir=DIR
919                           install the user visible C preprocessor in DIR
920                           (relative to PREFIX) as well as PREFIX/bin
921   --with-gnu-ld           arrange to work with GNU ld.
922   --with-ld               arrange to use the specified ld (full pathname)
923   --with-demangler-in-ld  try to use demangler in GNU ld.
924   --with-gnu-as           arrange to work with GNU as
925   --with-as               arrange to use the specified as (full pathname)
926   --with-stabs            arrange to use stabs instead of host debug format
927   --with-dwarf2           force the default debug format to be DWARF 2
928   --with-build-sysroot=sysroot
929                           use sysroot as the system root during the build
930   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931   --with-gnu-ld           assume the C compiler uses GNU ld default=no
932   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
933   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
934   --with-system-libunwind use installed libunwind
935   --with-long-double-128  Use 128-bit long double by default.
936   --with-gc={page,zone}   choose the garbage collection mechanism to use
937                           with the compiler
938   --with-system-zlib      use installed libz
939   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
940   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
941   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
942   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
943
944 Some influential environment variables:
945   CC          C compiler command
946   CFLAGS      C compiler flags
947   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
948               nonstandard directory <lib dir>
949   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
950               headers in a nonstandard directory <include dir>
951   CPP         C preprocessor
952   GMPLIBS     How to link GMP
953   GMPINC      How to find GMP include files
954
955 Use these variables to override the choices made by `configure' or to help
956 it to find libraries and programs with nonstandard names/locations.
957
958 _ACEOF
959 fi
960
961 if test "$ac_init_help" = "recursive"; then
962   # If there are subdirs, report their specific --help.
963   ac_popdir=`pwd`
964   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965     test -d $ac_dir || continue
966     ac_builddir=.
967
968 if test "$ac_dir" != .; then
969   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
970   # A "../" for each directory in $ac_dir_suffix.
971   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
972 else
973   ac_dir_suffix= ac_top_builddir=
974 fi
975
976 case $srcdir in
977   .)  # No --srcdir option.  We are building in place.
978     ac_srcdir=.
979     if test -z "$ac_top_builddir"; then
980        ac_top_srcdir=.
981     else
982        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
983     fi ;;
984   [\\/]* | ?:[\\/]* )  # Absolute path.
985     ac_srcdir=$srcdir$ac_dir_suffix;
986     ac_top_srcdir=$srcdir ;;
987   *) # Relative path.
988     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989     ac_top_srcdir=$ac_top_builddir$srcdir ;;
990 esac
991
992 # Do not use `cd foo && pwd` to compute absolute paths, because
993 # the directories may not exist.
994 case `pwd` in
995 .) ac_abs_builddir="$ac_dir";;
996 *)
997   case "$ac_dir" in
998   .) ac_abs_builddir=`pwd`;;
999   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1000   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1001   esac;;
1002 esac
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1005 *)
1006   case ${ac_top_builddir}. in
1007   .) ac_abs_top_builddir=$ac_abs_builddir;;
1008   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1009   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1010   esac;;
1011 esac
1012 case $ac_abs_builddir in
1013 .) ac_abs_srcdir=$ac_srcdir;;
1014 *)
1015   case $ac_srcdir in
1016   .) ac_abs_srcdir=$ac_abs_builddir;;
1017   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1018   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1019   esac;;
1020 esac
1021 case $ac_abs_builddir in
1022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1023 *)
1024   case $ac_top_srcdir in
1025   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1026   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1027   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1028   esac;;
1029 esac
1030
1031     cd $ac_dir
1032     # Check for guested configure; otherwise get Cygnus style configure.
1033     if test -f $ac_srcdir/configure.gnu; then
1034       echo
1035       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1036     elif test -f $ac_srcdir/configure; then
1037       echo
1038       $SHELL $ac_srcdir/configure  --help=recursive
1039     elif test -f $ac_srcdir/configure.ac ||
1040            test -f $ac_srcdir/configure.in; then
1041       echo
1042       $ac_configure --help
1043     else
1044       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1045     fi
1046     cd $ac_popdir
1047   done
1048 fi
1049
1050 test -n "$ac_init_help" && exit 0
1051 if $ac_init_version; then
1052   cat <<\_ACEOF
1053
1054 Copyright (C) 2003 Free Software Foundation, Inc.
1055 This configure script is free software; the Free Software Foundation
1056 gives unlimited permission to copy, distribute and modify it.
1057 _ACEOF
1058   exit 0
1059 fi
1060 exec 5>config.log
1061 cat >&5 <<_ACEOF
1062 This file contains any messages produced by compilers while
1063 running configure, to aid debugging if configure makes a mistake.
1064
1065 It was created by $as_me, which was
1066 generated by GNU Autoconf 2.59.  Invocation command line was
1067
1068   $ $0 $@
1069
1070 _ACEOF
1071 {
1072 cat <<_ASUNAME
1073 ## --------- ##
1074 ## Platform. ##
1075 ## --------- ##
1076
1077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1082
1083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1084 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1085
1086 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1087 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1089 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1090 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1091 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1092 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1093
1094 _ASUNAME
1095
1096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1097 for as_dir in $PATH
1098 do
1099   IFS=$as_save_IFS
1100   test -z "$as_dir" && as_dir=.
1101   echo "PATH: $as_dir"
1102 done
1103
1104 } >&5
1105
1106 cat >&5 <<_ACEOF
1107
1108
1109 ## ----------- ##
1110 ## Core tests. ##
1111 ## ----------- ##
1112
1113 _ACEOF
1114
1115
1116 # Keep a trace of the command line.
1117 # Strip out --no-create and --no-recursion so they do not pile up.
1118 # Strip out --silent because we don't want to record it for future runs.
1119 # Also quote any args containing shell meta-characters.
1120 # Make two passes to allow for proper duplicate-argument suppression.
1121 ac_configure_args=
1122 ac_configure_args0=
1123 ac_configure_args1=
1124 ac_sep=
1125 ac_must_keep_next=false
1126 for ac_pass in 1 2
1127 do
1128   for ac_arg
1129   do
1130     case $ac_arg in
1131     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133     | -silent | --silent | --silen | --sile | --sil)
1134       continue ;;
1135     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1137     esac
1138     case $ac_pass in
1139     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1140     2)
1141       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142       if test $ac_must_keep_next = true; then
1143         ac_must_keep_next=false # Got value, back to normal.
1144       else
1145         case $ac_arg in
1146           *=* | --config-cache | -C | -disable-* | --disable-* \
1147           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149           | -with-* | --with-* | -without-* | --without-* | --x)
1150             case "$ac_configure_args0 " in
1151               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1152             esac
1153             ;;
1154           -* ) ac_must_keep_next=true ;;
1155         esac
1156       fi
1157       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158       # Get rid of the leading space.
1159       ac_sep=" "
1160       ;;
1161     esac
1162   done
1163 done
1164 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1166
1167 # When interrupted or exit'd, cleanup temporary files, and complete
1168 # config.log.  We remove comments because anyway the quotes in there
1169 # would cause problems or look ugly.
1170 # WARNING: Be sure not to use single quotes in there, as some shells,
1171 # such as our DU 5.0 friend, will then `close' the trap.
1172 trap 'exit_status=$?
1173   # Save into config.log some information that might help in debugging.
1174   {
1175     echo
1176
1177     cat <<\_ASBOX
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1181 _ASBOX
1182     echo
1183     # The following way of writing the cache mishandles newlines in values,
1184 {
1185   (set) 2>&1 |
1186     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1187     *ac_space=\ *)
1188       sed -n \
1189         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1191       ;;
1192     *)
1193       sed -n \
1194         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1195       ;;
1196     esac;
1197 }
1198     echo
1199
1200     cat <<\_ASBOX
1201 ## ----------------- ##
1202 ## Output variables. ##
1203 ## ----------------- ##
1204 _ASBOX
1205     echo
1206     for ac_var in $ac_subst_vars
1207     do
1208       eval ac_val=$`echo $ac_var`
1209       echo "$ac_var='"'"'$ac_val'"'"'"
1210     done | sort
1211     echo
1212
1213     if test -n "$ac_subst_files"; then
1214       cat <<\_ASBOX
1215 ## ------------- ##
1216 ## Output files. ##
1217 ## ------------- ##
1218 _ASBOX
1219       echo
1220       for ac_var in $ac_subst_files
1221       do
1222         eval ac_val=$`echo $ac_var`
1223         echo "$ac_var='"'"'$ac_val'"'"'"
1224       done | sort
1225       echo
1226     fi
1227
1228     if test -s confdefs.h; then
1229       cat <<\_ASBOX
1230 ## ----------- ##
1231 ## confdefs.h. ##
1232 ## ----------- ##
1233 _ASBOX
1234       echo
1235       sed "/^$/d" confdefs.h | sort
1236       echo
1237     fi
1238     test "$ac_signal" != 0 &&
1239       echo "$as_me: caught signal $ac_signal"
1240     echo "$as_me: exit $exit_status"
1241   } >&5
1242   rm -f core *.core &&
1243   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1244     exit $exit_status
1245      ' 0
1246 for ac_signal in 1 2 13 15; do
1247   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1248 done
1249 ac_signal=0
1250
1251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252 rm -rf conftest* confdefs.h
1253 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1254 echo >confdefs.h
1255
1256 # Predefined preprocessor variables.
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_NAME "$PACKAGE_NAME"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1270 _ACEOF
1271
1272
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_STRING "$PACKAGE_STRING"
1275 _ACEOF
1276
1277
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1280 _ACEOF
1281
1282
1283 # Let the site file select an alternate cache file if it wants to.
1284 # Prefer explicitly selected file to automatically selected ones.
1285 if test -z "$CONFIG_SITE"; then
1286   if test "x$prefix" != xNONE; then
1287     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1288   else
1289     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1290   fi
1291 fi
1292 for ac_site_file in $CONFIG_SITE; do
1293   if test -r "$ac_site_file"; then
1294     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295 echo "$as_me: loading site script $ac_site_file" >&6;}
1296     sed 's/^/| /' "$ac_site_file" >&5
1297     . "$ac_site_file"
1298   fi
1299 done
1300
1301 if test -r "$cache_file"; then
1302   # Some versions of bash will fail to source /dev/null (special
1303   # files actually), so we avoid doing that.
1304   if test -f "$cache_file"; then
1305     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306 echo "$as_me: loading cache $cache_file" >&6;}
1307     case $cache_file in
1308       [\\/]* | ?:[\\/]* ) . $cache_file;;
1309       *)                      . ./$cache_file;;
1310     esac
1311   fi
1312 else
1313   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314 echo "$as_me: creating cache $cache_file" >&6;}
1315   >$cache_file
1316 fi
1317
1318 # Check that the precious variables saved in the cache have kept the same
1319 # value.
1320 ac_cache_corrupted=false
1321 for ac_var in `(set) 2>&1 |
1322                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1323   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324   eval ac_new_set=\$ac_env_${ac_var}_set
1325   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326   eval ac_new_val="\$ac_env_${ac_var}_value"
1327   case $ac_old_set,$ac_new_set in
1328     set,)
1329       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1331       ac_cache_corrupted=: ;;
1332     ,set)
1333       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335       ac_cache_corrupted=: ;;
1336     ,);;
1337     *)
1338       if test "x$ac_old_val" != "x$ac_new_val"; then
1339         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1340 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1341         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1342 echo "$as_me:   former value:  $ac_old_val" >&2;}
1343         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1344 echo "$as_me:   current value: $ac_new_val" >&2;}
1345         ac_cache_corrupted=:
1346       fi;;
1347   esac
1348   # Pass precious variables to config.status.
1349   if test "$ac_new_set" = set; then
1350     case $ac_new_val in
1351     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1353     *) ac_arg=$ac_var=$ac_new_val ;;
1354     esac
1355     case " $ac_configure_args " in
1356       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1357       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1358     esac
1359   fi
1360 done
1361 if $ac_cache_corrupted; then
1362   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1365 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366    { (exit 1); exit 1; }; }
1367 fi
1368
1369 ac_ext=c
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1395
1396
1397 gcc_version=`cat $srcdir/BASE-VER`
1398
1399 # Determine the host, build, and target systems
1400 ac_aux_dir=
1401 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1402   if test -f $ac_dir/install-sh; then
1403     ac_aux_dir=$ac_dir
1404     ac_install_sh="$ac_aux_dir/install-sh -c"
1405     break
1406   elif test -f $ac_dir/install.sh; then
1407     ac_aux_dir=$ac_dir
1408     ac_install_sh="$ac_aux_dir/install.sh -c"
1409     break
1410   elif test -f $ac_dir/shtool; then
1411     ac_aux_dir=$ac_dir
1412     ac_install_sh="$ac_aux_dir/shtool install -c"
1413     break
1414   fi
1415 done
1416 if test -z "$ac_aux_dir"; then
1417   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1418 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1419    { (exit 1); exit 1; }; }
1420 fi
1421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1423 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1424
1425 # Make sure we can run config.sub.
1426 $ac_config_sub sun4 >/dev/null 2>&1 ||
1427   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1429    { (exit 1); exit 1; }; }
1430
1431 echo "$as_me:$LINENO: checking build system type" >&5
1432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1433 if test "${ac_cv_build+set}" = set; then
1434   echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436   ac_cv_build_alias=$build_alias
1437 test -z "$ac_cv_build_alias" &&
1438   ac_cv_build_alias=`$ac_config_guess`
1439 test -z "$ac_cv_build_alias" &&
1440   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1442    { (exit 1); exit 1; }; }
1443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1444   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1446    { (exit 1); exit 1; }; }
1447
1448 fi
1449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1450 echo "${ECHO_T}$ac_cv_build" >&6
1451 build=$ac_cv_build
1452 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455
1456
1457 echo "$as_me:$LINENO: checking host system type" >&5
1458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1459 if test "${ac_cv_host+set}" = set; then
1460   echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462   ac_cv_host_alias=$host_alias
1463 test -z "$ac_cv_host_alias" &&
1464   ac_cv_host_alias=$ac_cv_build_alias
1465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1466   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1468    { (exit 1); exit 1; }; }
1469
1470 fi
1471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1472 echo "${ECHO_T}$ac_cv_host" >&6
1473 host=$ac_cv_host
1474 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1475 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1476 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1477
1478
1479 echo "$as_me:$LINENO: checking target system type" >&5
1480 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1481 if test "${ac_cv_target+set}" = set; then
1482   echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484   ac_cv_target_alias=$target_alias
1485 test "x$ac_cv_target_alias" = "x" &&
1486   ac_cv_target_alias=$ac_cv_host_alias
1487 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1488   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1490    { (exit 1); exit 1; }; }
1491
1492 fi
1493 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1494 echo "${ECHO_T}$ac_cv_target" >&6
1495 target=$ac_cv_target
1496 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1497 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1498 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1499
1500
1501 # The aliases save the names the user supplied, while $host etc.
1502 # will get canonicalized.
1503 test -n "$target_alias" &&
1504   test "$program_prefix$program_suffix$program_transform_name" = \
1505     NONENONEs,x,x, &&
1506   program_prefix=${target_alias}-
1507
1508 # Determine the noncanonical target name, for directory use.
1509  case ${build_alias} in
1510   "") build_noncanonical=${build} ;;
1511   *) build_noncanonical=${build_alias} ;;
1512 esac
1513
1514  case ${host_alias} in
1515   "") host_noncanonical=${build_noncanonical} ;;
1516   *) host_noncanonical=${host_alias} ;;
1517 esac
1518
1519  case ${target_alias} in
1520   "") target_noncanonical=${host_noncanonical} ;;
1521   *) target_noncanonical=${target_alias} ;;
1522 esac
1523
1524
1525
1526
1527 # Determine the target- and build-specific subdirectories
1528   # Prefix 'build-' so this never conflicts with target_subdir.
1529 build_subdir="build-${build_noncanonical}"
1530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1531 if ( test $srcdir = . && test -d gcc ) \
1532    || test -d $srcdir/../host-${host_noncanonical}; then
1533   host_subdir="host-${host_noncanonical}"
1534 else
1535   host_subdir=.
1536 fi
1537 # No prefix.
1538 target_subdir=${target_noncanonical}
1539
1540
1541 # Set program_transform_name
1542 test "$program_prefix" != NONE &&
1543   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1544 # Use a double $ so make ignores it.
1545 test "$program_suffix" != NONE &&
1546   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1547 # Double any \ or $.  echo might interpret backslashes.
1548 # By default was `s,x,x', remove it if useless.
1549 cat <<\_ACEOF >conftest.sed
1550 s/[\\$]/&&/g;s/;s,x,x,$//
1551 _ACEOF
1552 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1553 rm conftest.sed
1554
1555
1556 # Check for bogus environment variables.
1557 # Test if LIBRARY_PATH contains the notation for the current directory
1558 # since this would lead to problems installing/building glibc.
1559 # LIBRARY_PATH contains the current directory if one of the following
1560 # is true:
1561 # - one of the terminals (":" and ";") is the first or last sign
1562 # - two terminals occur directly after each other
1563 # - the path contains an element with a dot in it
1564 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1565 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1566 case ${LIBRARY_PATH} in
1567   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1568     library_path_setting="contains current directory"
1569     ;;
1570   *)
1571     library_path_setting="ok"
1572     ;;
1573 esac
1574 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1575 echo "${ECHO_T}$library_path_setting" >&6
1576 if test "$library_path_setting" != "ok"; then
1577 { { echo "$as_me:$LINENO: error:
1578 *** LIBRARY_PATH shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&5
1581 echo "$as_me: error:
1582 *** LIBRARY_PATH shouldn't contain the current directory when
1583 *** building gcc. Please change the environment variable
1584 *** and run configure again." >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587
1588 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1589 # since this would lead to problems installing/building glibc.
1590 # GCC_EXEC_PREFIX contains the current directory if one of the following
1591 # is true:
1592 # - one of the terminals (":" and ";") is the first or last sign
1593 # - two terminals occur directly after each other
1594 # - the path contains an element with a dot in it
1595 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1596 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1597 case ${GCC_EXEC_PREFIX} in
1598   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1599     gcc_exec_prefix_setting="contains current directory"
1600     ;;
1601   *)
1602     gcc_exec_prefix_setting="ok"
1603     ;;
1604 esac
1605 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1606 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1607 if test "$gcc_exec_prefix_setting" != "ok"; then
1608 { { echo "$as_me:$LINENO: error:
1609 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1610 *** building gcc. Please change the environment variable
1611 *** and run configure again." >&5
1612 echo "$as_me: error:
1613 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1614 *** building gcc. Please change the environment variable
1615 *** and run configure again." >&2;}
1616    { (exit 1); exit 1; }; }
1617 fi
1618
1619 # -----------
1620 # Directories
1621 # -----------
1622
1623 # Specify the local prefix
1624 local_prefix=
1625
1626 # Check whether --with-local-prefix or --without-local-prefix was given.
1627 if test "${with_local_prefix+set}" = set; then
1628   withval="$with_local_prefix"
1629   case "${withval}" in
1630 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1631 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1632    { (exit 1); exit 1; }; } ;;
1633 no)     ;;
1634 *)      local_prefix=$with_local_prefix ;;
1635 esac
1636 fi;
1637
1638 # Default local prefix if it is empty
1639 if test x$local_prefix = x; then
1640         local_prefix=/usr/local
1641 fi
1642
1643 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1644 # passed in by the toplevel make and thus we'd get different behavior
1645 # depending on where we built the sources.
1646 gcc_gxx_include_dir=
1647 # Specify the g++ header file directory
1648
1649 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1650 if test "${with_gxx_include_dir+set}" = set; then
1651   withval="$with_gxx_include_dir"
1652   case "${withval}" in
1653 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1654 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1655    { (exit 1); exit 1; }; } ;;
1656 no)     ;;
1657 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1658 esac
1659 fi;
1660
1661 if test x${gcc_gxx_include_dir} = x; then
1662   if test x${enable_version_specific_runtime_libs} = xyes; then
1663     gcc_gxx_include_dir='${libsubdir}/include/c++'
1664   else
1665     libstdcxx_incdir='c++/$(version)'
1666     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1667   fi
1668 fi
1669
1670
1671 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1672 if test "${with_cpp_install_dir+set}" = set; then
1673   withval="$with_cpp_install_dir"
1674   if test x$withval = xyes; then
1675   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1676 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1677    { (exit 1); exit 1; }; }
1678 elif test x$withval != xno; then
1679   cpp_install_dir=$withval
1680 fi
1681 fi;
1682
1683 # We would like to our source tree to be readonly.  However when releases or
1684 # pre-releases are generated, the flex/bison generated files as well as the
1685 # various formats of manuals need to be included along with the rest of the
1686 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1687 # just that.
1688
1689 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1690 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1691     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1692 if test "${enable_generated_files_in_srcdir+set}" = set; then
1693   enableval="$enable_generated_files_in_srcdir"
1694   generated_files_in_srcdir=$enableval
1695 else
1696   generated_files_in_srcdir=no
1697 fi;
1698
1699 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1700 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1701
1702 if test "$generated_files_in_srcdir" = "yes"; then
1703   GENINSRC=''
1704 else
1705   GENINSRC='#'
1706 fi
1707
1708
1709 # -------------------
1710 # Find default linker
1711 # -------------------
1712
1713 # With GNU ld
1714
1715 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1716 if test "${with_gnu_ld+set}" = set; then
1717   withval="$with_gnu_ld"
1718   gnu_ld_flag="$with_gnu_ld"
1719 else
1720   gnu_ld_flag=no
1721 fi;
1722
1723 # With pre-defined ld
1724
1725 # Check whether --with-ld or --without-ld was given.
1726 if test "${with_ld+set}" = set; then
1727   withval="$with_ld"
1728   DEFAULT_LINKER="$with_ld"
1729 fi;
1730 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1731   if test ! -x "$DEFAULT_LINKER"; then
1732     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1733 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1734    { (exit 1); exit 1; }; }
1735   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1736     gnu_ld_flag=yes
1737   fi
1738
1739 cat >>confdefs.h <<_ACEOF
1740 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1741 _ACEOF
1742
1743 fi
1744
1745 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1746 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1747 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1748   if test x"$gnu_ld_flag" = x"no"; then
1749     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1750 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1751   else
1752     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1753 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1754   fi
1755 else
1756   echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760 # With demangler in GNU ld
1761
1762 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1763 if test "${with_demangler_in_ld+set}" = set; then
1764   withval="$with_demangler_in_ld"
1765   demangler_in_ld="$with_demangler_in_ld"
1766 else
1767   demangler_in_ld=no
1768 fi;
1769
1770 # ----------------------
1771 # Find default assembler
1772 # ----------------------
1773
1774 # With GNU as
1775
1776 # Check whether --with-gnu-as or --without-gnu-as was given.
1777 if test "${with_gnu_as+set}" = set; then
1778   withval="$with_gnu_as"
1779   gas_flag="$with_gnu_as"
1780 else
1781   gas_flag=no
1782 fi;
1783
1784
1785 # Check whether --with-as or --without-as was given.
1786 if test "${with_as+set}" = set; then
1787   withval="$with_as"
1788   DEFAULT_ASSEMBLER="$with_as"
1789 fi;
1790 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1791   if test ! -x "$DEFAULT_ASSEMBLER"; then
1792     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1793 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1794    { (exit 1); exit 1; }; }
1795   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1796     gas_flag=yes
1797   fi
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1801 _ACEOF
1802
1803 fi
1804
1805 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1806 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1807 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1808   if test x"$gas_flag" = x"no"; then
1809     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1810 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1811   else
1812     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1813 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1814   fi
1815 else
1816   echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820 # ---------------
1821 # Find C compiler
1822 # ---------------
1823
1824 # If a non-executable a.out is present (e.g. created by GNU as above even if
1825 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1826 # file, even when creating an executable, so an execution test fails.
1827 # Remove possible default executable files to avoid this.
1828 #
1829 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1830 # Autoconf includes it.
1831 rm -f a.out a.exe b.out
1832
1833 # Find the native compiler
1834 ac_ext=c
1835 ac_cpp='$CPP $CPPFLAGS'
1836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839 if test -n "$ac_tool_prefix"; then
1840   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1841 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_CC+set}" = set; then
1845   echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847   if test -n "$CC"; then
1848   ac_cv_prog_CC="$CC" # Let the user override the test.
1849 else
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853   IFS=$as_save_IFS
1854   test -z "$as_dir" && as_dir=.
1855   for ac_exec_ext in '' $ac_executable_extensions; do
1856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859     break 2
1860   fi
1861 done
1862 done
1863
1864 fi
1865 fi
1866 CC=$ac_cv_prog_CC
1867 if test -n "$CC"; then
1868   echo "$as_me:$LINENO: result: $CC" >&5
1869 echo "${ECHO_T}$CC" >&6
1870 else
1871   echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1873 fi
1874
1875 fi
1876 if test -z "$ac_cv_prog_CC"; then
1877   ac_ct_CC=$CC
1878   # Extract the first word of "gcc", so it can be a program name with args.
1879 set dummy gcc; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$ac_ct_CC"; then
1886   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_ac_ct_CC="gcc"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1905 if test -n "$ac_ct_CC"; then
1906   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907 echo "${ECHO_T}$ac_ct_CC" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913   CC=$ac_ct_CC
1914 else
1915   CC="$ac_cv_prog_CC"
1916 fi
1917
1918 if test -z "$CC"; then
1919   if test -n "$ac_tool_prefix"; then
1920   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1921 set dummy ${ac_tool_prefix}cc; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_CC+set}" = set; then
1925   echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927   if test -n "$CC"; then
1928   ac_cv_prog_CC="$CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933   IFS=$as_save_IFS
1934   test -z "$as_dir" && as_dir=.
1935   for ac_exec_ext in '' $ac_executable_extensions; do
1936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937     ac_cv_prog_CC="${ac_tool_prefix}cc"
1938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939     break 2
1940   fi
1941 done
1942 done
1943
1944 fi
1945 fi
1946 CC=$ac_cv_prog_CC
1947 if test -n "$CC"; then
1948   echo "$as_me:$LINENO: result: $CC" >&5
1949 echo "${ECHO_T}$CC" >&6
1950 else
1951   echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1953 fi
1954
1955 fi
1956 if test -z "$ac_cv_prog_CC"; then
1957   ac_ct_CC=$CC
1958   # Extract the first word of "cc", so it can be a program name with args.
1959 set dummy cc; ac_word=$2
1960 echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1963   echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965   if test -n "$ac_ct_CC"; then
1966   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1967 else
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971   IFS=$as_save_IFS
1972   test -z "$as_dir" && as_dir=.
1973   for ac_exec_ext in '' $ac_executable_extensions; do
1974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975     ac_cv_prog_ac_ct_CC="cc"
1976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977     break 2
1978   fi
1979 done
1980 done
1981
1982 fi
1983 fi
1984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1985 if test -n "$ac_ct_CC"; then
1986   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1987 echo "${ECHO_T}$ac_ct_CC" >&6
1988 else
1989   echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6
1991 fi
1992
1993   CC=$ac_ct_CC
1994 else
1995   CC="$ac_cv_prog_CC"
1996 fi
1997
1998 fi
1999 if test -z "$CC"; then
2000   # Extract the first word of "cc", so it can be a program name with args.
2001 set dummy cc; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_CC+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   if test -n "$CC"; then
2008   ac_cv_prog_CC="$CC" # Let the user override the test.
2009 else
2010   ac_prog_rejected=no
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2019        ac_prog_rejected=yes
2020        continue
2021      fi
2022     ac_cv_prog_CC="cc"
2023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024     break 2
2025   fi
2026 done
2027 done
2028
2029 if test $ac_prog_rejected = yes; then
2030   # We found a bogon in the path, so make sure we never use it.
2031   set dummy $ac_cv_prog_CC
2032   shift
2033   if test $# != 0; then
2034     # We chose a different compiler from the bogus one.
2035     # However, it has the same basename, so the bogon will be chosen
2036     # first if we set CC to just the basename; use the full file name.
2037     shift
2038     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2039   fi
2040 fi
2041 fi
2042 fi
2043 CC=$ac_cv_prog_CC
2044 if test -n "$CC"; then
2045   echo "$as_me:$LINENO: result: $CC" >&5
2046 echo "${ECHO_T}$CC" >&6
2047 else
2048   echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2050 fi
2051
2052 fi
2053 if test -z "$CC"; then
2054   if test -n "$ac_tool_prefix"; then
2055   for ac_prog in cl
2056   do
2057     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2059 echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061 if test "${ac_cv_prog_CC+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   if test -n "$CC"; then
2065   ac_cv_prog_CC="$CC" # Let the user override the test.
2066 else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070   IFS=$as_save_IFS
2071   test -z "$as_dir" && as_dir=.
2072   for ac_exec_ext in '' $ac_executable_extensions; do
2073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076     break 2
2077   fi
2078 done
2079 done
2080
2081 fi
2082 fi
2083 CC=$ac_cv_prog_CC
2084 if test -n "$CC"; then
2085   echo "$as_me:$LINENO: result: $CC" >&5
2086 echo "${ECHO_T}$CC" >&6
2087 else
2088   echo "$as_me:$LINENO: result: no" >&5
2089 echo "${ECHO_T}no" >&6
2090 fi
2091
2092     test -n "$CC" && break
2093   done
2094 fi
2095 if test -z "$CC"; then
2096   ac_ct_CC=$CC
2097   for ac_prog in cl
2098 do
2099   # Extract the first word of "$ac_prog", so it can be a program name with args.
2100 set dummy $ac_prog; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104   echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106   if test -n "$ac_ct_CC"; then
2107   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112   IFS=$as_save_IFS
2113   test -z "$as_dir" && as_dir=.
2114   for ac_exec_ext in '' $ac_executable_extensions; do
2115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116     ac_cv_prog_ac_ct_CC="$ac_prog"
2117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118     break 2
2119   fi
2120 done
2121 done
2122
2123 fi
2124 fi
2125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2126 if test -n "$ac_ct_CC"; then
2127   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2128 echo "${ECHO_T}$ac_ct_CC" >&6
2129 else
2130   echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2132 fi
2133
2134   test -n "$ac_ct_CC" && break
2135 done
2136
2137   CC=$ac_ct_CC
2138 fi
2139
2140 fi
2141
2142
2143 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2144 See \`config.log' for more details." >&5
2145 echo "$as_me: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 # Provide some information about the compiler.
2150 echo "$as_me:$LINENO:" \
2151      "checking for C compiler version" >&5
2152 ac_compiler=`set X $ac_compile; echo $2`
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2154   (eval $ac_compiler --version </dev/null >&5) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }
2158 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2159   (eval $ac_compiler -v </dev/null >&5) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }
2163 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2164   (eval $ac_compiler -V </dev/null >&5) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }
2168
2169 cat >conftest.$ac_ext <<_ACEOF
2170 /* confdefs.h.  */
2171 _ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h.  */
2175
2176 int
2177 main ()
2178 {
2179
2180   ;
2181   return 0;
2182 }
2183 _ACEOF
2184 ac_clean_files_save=$ac_clean_files
2185 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2186 # Try to create an executable without -o first, disregard a.out.
2187 # It will help us diagnose broken compilers, and finding out an intuition
2188 # of exeext.
2189 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2190 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2191 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2192 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2193   (eval $ac_link_default) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; then
2197   # Find the output, starting from the most likely.  This scheme is
2198 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2199 # resort.
2200
2201 # Be careful to initialize this variable, since it used to be cached.
2202 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2203 ac_cv_exeext=
2204 # b.out is created by i960 compilers.
2205 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2206 do
2207   test -f "$ac_file" || continue
2208   case $ac_file in
2209     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2210         ;;
2211     conftest.$ac_ext )
2212         # This is the source file.
2213         ;;
2214     [ab].out )
2215         # We found the default executable, but exeext='' is most
2216         # certainly right.
2217         break;;
2218     *.* )
2219         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220         # FIXME: I believe we export ac_cv_exeext for Libtool,
2221         # but it would be cool to find out if it's true.  Does anybody
2222         # maintain Libtool? --akim.
2223         export ac_cv_exeext
2224         break;;
2225     * )
2226         break;;
2227   esac
2228 done
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237    { (exit 77); exit 77; }; }
2238 fi
2239
2240 ac_exeext=$ac_cv_exeext
2241 echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6
2243
2244 # Check the compiler produces executables we can run.  If not, either
2245 # the compiler is broken, or we cross compile.
2246 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251   if { ac_try='./$ac_file'
2252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253   (eval $ac_try) 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }; }; then
2257     cross_compiling=no
2258   else
2259     if test "$cross_compiling" = maybe; then
2260         cross_compiling=yes
2261     else
2262         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2263 If you meant to cross compile, use \`--host'.
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&2;}
2268    { (exit 1); exit 1; }; }
2269     fi
2270   fi
2271 fi
2272 echo "$as_me:$LINENO: result: yes" >&5
2273 echo "${ECHO_T}yes" >&6
2274
2275 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2276 ac_clean_files=$ac_clean_files_save
2277 # Check the compiler produces executables we can run.  If not, either
2278 # the compiler is broken, or we cross compile.
2279 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2280 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2281 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2282 echo "${ECHO_T}$cross_compiling" >&6
2283
2284 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2285 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2287   (eval $ac_link) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; then
2291   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2292 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2293 # work properly (i.e., refer to `conftest.exe'), while it won't with
2294 # `rm'.
2295 for ac_file in conftest.exe conftest conftest.*; do
2296   test -f "$ac_file" || continue
2297   case $ac_file in
2298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2299     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300           export ac_cv_exeext
2301           break;;
2302     * ) break;;
2303   esac
2304 done
2305 else
2306   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&2;}
2310    { (exit 1); exit 1; }; }
2311 fi
2312
2313 rm -f conftest$ac_cv_exeext
2314 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2315 echo "${ECHO_T}$ac_cv_exeext" >&6
2316
2317 rm -f conftest.$ac_ext
2318 EXEEXT=$ac_cv_exeext
2319 ac_exeext=$EXEEXT
2320 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2321 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2322 if test "${ac_cv_objext+set}" = set; then
2323   echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325   cat >conftest.$ac_ext <<_ACEOF
2326 /* confdefs.h.  */
2327 _ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h.  */
2331
2332 int
2333 main ()
2334 {
2335
2336   ;
2337   return 0;
2338 }
2339 _ACEOF
2340 rm -f conftest.o conftest.obj
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342   (eval $ac_compile) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; then
2346   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2347   case $ac_file in
2348     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2349     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2350        break;;
2351   esac
2352 done
2353 else
2354   echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2356
2357 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2358 See \`config.log' for more details." >&5
2359 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&2;}
2361    { (exit 1); exit 1; }; }
2362 fi
2363
2364 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2365 fi
2366 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2367 echo "${ECHO_T}$ac_cv_objext" >&6
2368 OBJEXT=$ac_cv_objext
2369 ac_objext=$OBJEXT
2370 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2371 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373   echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375   cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h.  */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h.  */
2381
2382 int
2383 main ()
2384 {
2385 #ifndef __GNUC__
2386        choke me
2387 #endif
2388
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 rm -f conftest.$ac_objext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395   (eval $ac_compile) 2>conftest.er1
2396   ac_status=$?
2397   grep -v '^ *+' conftest.er1 >conftest.err
2398   rm -f conftest.er1
2399   cat conftest.err >&5
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); } &&
2402          { ac_try='test -z "$ac_c_werror_flag"
2403                          || test ! -s conftest.err'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; } &&
2409          { ac_try='test -s conftest.$ac_objext'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   ac_compiler_gnu=yes
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 ac_compiler_gnu=no
2421 fi
2422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2424
2425 fi
2426 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2427 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2428 GCC=`test $ac_compiler_gnu = yes && echo yes`
2429 ac_test_CFLAGS=${CFLAGS+set}
2430 ac_save_CFLAGS=$CFLAGS
2431 CFLAGS="-g"
2432 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h.  */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h.  */
2443
2444 int
2445 main ()
2446 {
2447
2448   ;
2449   return 0;
2450 }
2451 _ACEOF
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454   (eval $ac_compile) 2>conftest.er1
2455   ac_status=$?
2456   grep -v '^ *+' conftest.er1 >conftest.err
2457   rm -f conftest.er1
2458   cat conftest.err >&5
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); } &&
2461          { ac_try='test -z "$ac_c_werror_flag"
2462                          || test ! -s conftest.err'
2463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464   (eval $ac_try) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; } &&
2468          { ac_try='test -s conftest.$ac_objext'
2469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470   (eval $ac_try) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; }; then
2474   ac_cv_prog_cc_g=yes
2475 else
2476   echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 ac_cv_prog_cc_g=no
2480 fi
2481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482 fi
2483 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2485 if test "$ac_test_CFLAGS" = set; then
2486   CFLAGS=$ac_save_CFLAGS
2487 elif test $ac_cv_prog_cc_g = yes; then
2488   if test "$GCC" = yes; then
2489     CFLAGS="-g -O2"
2490   else
2491     CFLAGS="-g"
2492   fi
2493 else
2494   if test "$GCC" = yes; then
2495     CFLAGS="-O2"
2496   else
2497     CFLAGS=
2498   fi
2499 fi
2500 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2501 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2502 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   ac_cv_prog_cc_stdc=no
2506 ac_save_CC=$CC
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513 #include <stdarg.h>
2514 #include <stdio.h>
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2518 struct buf { int x; };
2519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (p, i)
2521      char **p;
2522      int i;
2523 {
2524   return p[i];
2525 }
2526 static char *f (char * (*g) (char **, int), char **p, ...)
2527 {
2528   char *s;
2529   va_list v;
2530   va_start (v,p);
2531   s = g (p, va_arg (v,int));
2532   va_end (v);
2533   return s;
2534 }
2535
2536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2537    function prototypes and stuff, but not '\xHH' hex character constants.
2538    These don't provoke an error unfortunately, instead are silently treated
2539    as 'x'.  The following induces an error, until -std1 is added to get
2540    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2541    array size at least.  It's necessary to write '\x00'==0 to get something
2542    that's true only with -std1.  */
2543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2544
2545 int test (int i, double x);
2546 struct s1 {int (*f) (int a);};
2547 struct s2 {int (*f) (double a);};
2548 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2549 int argc;
2550 char **argv;
2551 int
2552 main ()
2553 {
2554 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 # Don't try gcc -ansi; that turns off useful extensions and
2560 # breaks some systems' header files.
2561 # AIX                   -qlanglvl=ansi
2562 # Ultrix and OSF/1      -std1
2563 # HP-UX 10.20 and later -Ae
2564 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2565 # SVR4                  -Xc -D__EXTENSIONS__
2566 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2567 do
2568   CC="$ac_save_CC $ac_arg"
2569   rm -f conftest.$ac_objext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571   (eval $ac_compile) 2>conftest.er1
2572   ac_status=$?
2573   grep -v '^ *+' conftest.er1 >conftest.err
2574   rm -f conftest.er1
2575   cat conftest.err >&5
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); } &&
2578          { ac_try='test -z "$ac_c_werror_flag"
2579                          || test ! -s conftest.err'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_cv_prog_cc_stdc=$ac_arg
2592 break
2593 else
2594   echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2596
2597 fi
2598 rm -f conftest.err conftest.$ac_objext
2599 done
2600 rm -f conftest.$ac_ext conftest.$ac_objext
2601 CC=$ac_save_CC
2602
2603 fi
2604
2605 case "x$ac_cv_prog_cc_stdc" in
2606   x|xno)
2607     echo "$as_me:$LINENO: result: none needed" >&5
2608 echo "${ECHO_T}none needed" >&6 ;;
2609   *)
2610     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2612     CC="$CC $ac_cv_prog_cc_stdc" ;;
2613 esac
2614
2615 # Some people use a C++ compiler to compile C.  Since we use `exit',
2616 # in C++ we need to declare it.  In case someone uses the same compiler
2617 # for both compiling C and C++ we need to have the C++ compiler decide
2618 # the declaration of exit, since it's the most demanding environment.
2619 cat >conftest.$ac_ext <<_ACEOF
2620 #ifndef __cplusplus
2621   choke me
2622 #endif
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -z "$ac_c_werror_flag"
2634                          || test ! -s conftest.err'
2635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636   (eval $ac_try) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; } &&
2640          { ac_try='test -s conftest.$ac_objext'
2641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642   (eval $ac_try) 2>&5
2643   ac_status=$?
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); }; }; then
2646   for ac_declaration in \
2647    '' \
2648    'extern "C" void std::exit (int) throw (); using std::exit;' \
2649    'extern "C" void std::exit (int); using std::exit;' \
2650    'extern "C" void exit (int) throw ();' \
2651    'extern "C" void exit (int);' \
2652    'void exit (int);'
2653 do
2654   cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h.  */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h.  */
2660 $ac_declaration
2661 #include <stdlib.h>
2662 int
2663 main ()
2664 {
2665 exit (42);
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672   (eval $ac_compile) 2>conftest.er1
2673   ac_status=$?
2674   grep -v '^ *+' conftest.er1 >conftest.err
2675   rm -f conftest.er1
2676   cat conftest.err >&5
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -z "$ac_c_werror_flag"
2680                          || test ! -s conftest.err'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; } &&
2686          { ac_try='test -s conftest.$ac_objext'
2687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }; }; then
2692   :
2693 else
2694   echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697 continue
2698 fi
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2700   cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 $ac_declaration
2707 int
2708 main ()
2709 {
2710 exit (42);
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 rm -f conftest.$ac_objext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717   (eval $ac_compile) 2>conftest.er1
2718   ac_status=$?
2719   grep -v '^ *+' conftest.er1 >conftest.err
2720   rm -f conftest.er1
2721   cat conftest.err >&5
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); } &&
2724          { ac_try='test -z "$ac_c_werror_flag"
2725                          || test ! -s conftest.err'
2726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727   (eval $ac_try) 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; } &&
2731          { ac_try='test -s conftest.$ac_objext'
2732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733   (eval $ac_try) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; }; then
2737   break
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 fi
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744 done
2745 rm -f conftest*
2746 if test -n "$ac_declaration"; then
2747   echo '#ifdef __cplusplus' >>confdefs.h
2748   echo $ac_declaration      >>confdefs.h
2749   echo '#endif'             >>confdefs.h
2750 fi
2751
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 fi
2757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2758 ac_ext=c
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764 if test "x$CC" != xcc; then
2765   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2766 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2767 else
2768   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2769 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2770 fi
2771 set dummy $CC; ac_cc=`echo $2 |
2772                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2773 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2774   echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776   cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782
2783 int
2784 main ()
2785 {
2786
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 # Make sure it works both with $CC and with simple cc.
2792 # We do the test twice because some compilers refuse to overwrite an
2793 # existing .o file with -o, though they will create one.
2794 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2795 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } &&
2800    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); };
2805 then
2806   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2807   if test "x$CC" != xcc; then
2808     # Test first that cc exists at all.
2809     if { ac_try='cc -c conftest.$ac_ext >&5'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2816       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817   (eval $ac_try) 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); } &&
2821          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); };
2826       then
2827         # cc works too.
2828         :
2829       else
2830         # cc exists but doesn't like -o.
2831         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2832       fi
2833     fi
2834   fi
2835 else
2836   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2837 fi
2838 rm -f conftest*
2839
2840 fi
2841 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2842   echo "$as_me:$LINENO: result: yes" >&5
2843 echo "${ECHO_T}yes" >&6
2844 else
2845   echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2847
2848 cat >>confdefs.h <<\_ACEOF
2849 #define NO_MINUS_C_MINUS_O 1
2850 _ACEOF
2851
2852 fi
2853
2854 # expand $ac_aux_dir to an absolute path
2855 am_aux_dir=`cd $ac_aux_dir && pwd`
2856
2857 # FIXME: we rely on the cache variable name because
2858 # there is no other way.
2859 set dummy $CC
2860 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2862    # Losing compiler, so override with the script.
2863    # FIXME: It is wrong to rewrite CC.
2864    # But if we don't then we get into trouble of one sort or another.
2865    # A longer-term fix would be to have automake use am__CC in this case,
2866    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2867    CC="$am_aux_dir/compile $CC"
2868 fi
2869
2870 # autoconf is lame and doesn't give us any substitution variable for this.
2871 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2872   NO_MINUS_C_MINUS_O=yes
2873 else
2874   OUTPUT_OPTION='-o $@'
2875 fi
2876
2877
2878
2879 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2880 # optimizations to be activated explicitly by the toplevel.
2881 case "$CC" in
2882   */prev-gcc/xgcc*) ;;
2883   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2884 esac
2885
2886
2887 # -------------------------
2888 # Check C compiler features
2889 # -------------------------
2890
2891 ac_ext=c
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2897 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2898 # On Suns, sometimes $CPP names a directory.
2899 if test -n "$CPP" && test -d "$CPP"; then
2900   CPP=
2901 fi
2902 if test -z "$CPP"; then
2903   if test "${ac_cv_prog_CPP+set}" = set; then
2904   echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906       # Double quotes because CPP needs to be expanded
2907     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2908     do
2909       ac_preproc_ok=false
2910 for ac_c_preproc_warn_flag in '' yes
2911 do
2912   # Use a header file that comes with gcc, so configuring glibc
2913   # with a fresh cross-compiler works.
2914   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2915   # <limits.h> exists even on freestanding compilers.
2916   # On the NeXT, cc -E runs the code through the compiler's parser,
2917   # not just through cpp. "Syntax error" is here to catch this case.
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924 #ifdef __STDC__
2925 # include <limits.h>
2926 #else
2927 # include <assert.h>
2928 #endif
2929                      Syntax error
2930 _ACEOF
2931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2932   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
2939   if test -s conftest.err; then
2940     ac_cpp_err=$ac_c_preproc_warn_flag
2941     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2942   else
2943     ac_cpp_err=
2944   fi
2945 else
2946   ac_cpp_err=yes
2947 fi
2948 if test -z "$ac_cpp_err"; then
2949   :
2950 else
2951   echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954   # Broken: fails on valid input.
2955 continue
2956 fi
2957 rm -f conftest.err conftest.$ac_ext
2958
2959   # OK, works on sane cases.  Now check whether non-existent headers
2960   # can be detected and how.
2961   cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h.  */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h.  */
2967 #include <ac_nonexistent.h>
2968 _ACEOF
2969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2971   ac_status=$?
2972   grep -v '^ *+' conftest.er1 >conftest.err
2973   rm -f conftest.er1
2974   cat conftest.err >&5
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } >/dev/null; then
2977   if test -s conftest.err; then
2978     ac_cpp_err=$ac_c_preproc_warn_flag
2979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2980   else
2981     ac_cpp_err=
2982   fi
2983 else
2984   ac_cpp_err=yes
2985 fi
2986 if test -z "$ac_cpp_err"; then
2987   # Broken: success on invalid input.
2988 continue
2989 else
2990   echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993   # Passes both tests.
2994 ac_preproc_ok=:
2995 break
2996 fi
2997 rm -f conftest.err conftest.$ac_ext
2998
2999 done
3000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3001 rm -f conftest.err conftest.$ac_ext
3002 if $ac_preproc_ok; then
3003   break
3004 fi
3005
3006     done
3007     ac_cv_prog_CPP=$CPP
3008
3009 fi
3010   CPP=$ac_cv_prog_CPP
3011 else
3012   ac_cv_prog_CPP=$CPP
3013 fi
3014 echo "$as_me:$LINENO: result: $CPP" >&5
3015 echo "${ECHO_T}$CPP" >&6
3016 ac_preproc_ok=false
3017 for ac_c_preproc_warn_flag in '' yes
3018 do
3019   # Use a header file that comes with gcc, so configuring glibc
3020   # with a fresh cross-compiler works.
3021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3022   # <limits.h> exists even on freestanding compilers.
3023   # On the NeXT, cc -E runs the code through the compiler's parser,
3024   # not just through cpp. "Syntax error" is here to catch this case.
3025   cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #ifdef __STDC__
3032 # include <limits.h>
3033 #else
3034 # include <assert.h>
3035 #endif
3036                      Syntax error
3037 _ACEOF
3038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3040   ac_status=$?
3041   grep -v '^ *+' conftest.er1 >conftest.err
3042   rm -f conftest.er1
3043   cat conftest.err >&5
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); } >/dev/null; then
3046   if test -s conftest.err; then
3047     ac_cpp_err=$ac_c_preproc_warn_flag
3048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3049   else
3050     ac_cpp_err=
3051   fi
3052 else
3053   ac_cpp_err=yes
3054 fi
3055 if test -z "$ac_cpp_err"; then
3056   :
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061   # Broken: fails on valid input.
3062 continue
3063 fi
3064 rm -f conftest.err conftest.$ac_ext
3065
3066   # OK, works on sane cases.  Now check whether non-existent headers
3067   # can be detected and how.
3068   cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074 #include <ac_nonexistent.h>
3075 _ACEOF
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } >/dev/null; then
3084   if test -s conftest.err; then
3085     ac_cpp_err=$ac_c_preproc_warn_flag
3086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3087   else
3088     ac_cpp_err=
3089   fi
3090 else
3091   ac_cpp_err=yes
3092 fi
3093 if test -z "$ac_cpp_err"; then
3094   # Broken: success on invalid input.
3095 continue
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100   # Passes both tests.
3101 ac_preproc_ok=:
3102 break
3103 fi
3104 rm -f conftest.err conftest.$ac_ext
3105
3106 done
3107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3108 rm -f conftest.err conftest.$ac_ext
3109 if $ac_preproc_ok; then
3110   :
3111 else
3112   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3115 See \`config.log' for more details." >&2;}
3116    { (exit 1); exit 1; }; }
3117 fi
3118
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125
3126 echo "$as_me:$LINENO: checking for inline" >&5
3127 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3128 if test "${ac_cv_c_inline+set}" = set; then
3129   echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131   ac_cv_c_inline=no
3132 for ac_kw in inline __inline__ __inline; do
3133   cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h.  */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h.  */
3139 #ifndef __cplusplus
3140 typedef int foo_t;
3141 static $ac_kw foo_t static_foo () {return 0; }
3142 $ac_kw foo_t foo () {return 0; }
3143 #endif
3144
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148   (eval $ac_compile) 2>conftest.er1
3149   ac_status=$?
3150   grep -v '^ *+' conftest.er1 >conftest.err
3151   rm -f conftest.er1
3152   cat conftest.err >&5
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); } &&
3155          { ac_try='test -z "$ac_c_werror_flag"
3156                          || test ! -s conftest.err'
3157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158   (eval $ac_try) 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; } &&
3162          { ac_try='test -s conftest.$ac_objext'
3163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164   (eval $ac_try) 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }; }; then
3168   ac_cv_c_inline=$ac_kw; break
3169 else
3170   echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 fi
3174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3175 done
3176
3177 fi
3178 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3179 echo "${ECHO_T}$ac_cv_c_inline" >&6
3180
3181
3182 case $ac_cv_c_inline in
3183   inline | yes) ;;
3184   *)
3185     case $ac_cv_c_inline in
3186       no) ac_val=;;
3187       *) ac_val=$ac_cv_c_inline;;
3188     esac
3189     cat >>confdefs.h <<_ACEOF
3190 #ifndef __cplusplus
3191 #define inline $ac_val
3192 #endif
3193 _ACEOF
3194     ;;
3195 esac
3196
3197
3198 # sizeof(char) is 1 by definition.
3199
3200 echo "$as_me:$LINENO: checking for egrep" >&5
3201 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3202 if test "${ac_cv_prog_egrep+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3206     then ac_cv_prog_egrep='grep -E'
3207     else ac_cv_prog_egrep='egrep'
3208     fi
3209 fi
3210 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3211 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3212  EGREP=$ac_cv_prog_egrep
3213
3214
3215 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3216 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3217 if test "${ac_cv_header_stdc+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h.  */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h.  */
3226 #include <stdlib.h>
3227 #include <stdarg.h>
3228 #include <string.h>
3229 #include <float.h>
3230
3231 int
3232 main ()
3233 {
3234
3235   ;
3236   return 0;
3237 }
3238 _ACEOF
3239 rm -f conftest.$ac_objext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241   (eval $ac_compile) 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } &&
3248          { ac_try='test -z "$ac_c_werror_flag"
3249                          || test ! -s conftest.err'
3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251   (eval $ac_try) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; } &&
3255          { ac_try='test -s conftest.$ac_objext'
3256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257   (eval $ac_try) 2>&5
3258   ac_status=$?
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }; }; then
3261   ac_cv_header_stdc=yes
3262 else
3263   echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 ac_cv_header_stdc=no
3267 fi
3268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3269
3270 if test $ac_cv_header_stdc = yes; then
3271   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3272   cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278 #include <string.h>
3279
3280 _ACEOF
3281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3282   $EGREP "memchr" >/dev/null 2>&1; then
3283   :
3284 else
3285   ac_cv_header_stdc=no
3286 fi
3287 rm -f conftest*
3288
3289 fi
3290
3291 if test $ac_cv_header_stdc = yes; then
3292   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3293   cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h.  */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h.  */
3299 #include <stdlib.h>
3300
3301 _ACEOF
3302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3303   $EGREP "free" >/dev/null 2>&1; then
3304   :
3305 else
3306   ac_cv_header_stdc=no
3307 fi
3308 rm -f conftest*
3309
3310 fi
3311
3312 if test $ac_cv_header_stdc = yes; then
3313   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3314   if test "$cross_compiling" = yes; then
3315   :
3316 else
3317   cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h.  */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h.  */
3323 #include <ctype.h>
3324 #if ((' ' & 0x0FF) == 0x020)
3325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3327 #else
3328 # define ISLOWER(c) \
3329                    (('a' <= (c) && (c) <= 'i') \
3330                      || ('j' <= (c) && (c) <= 'r') \
3331                      || ('s' <= (c) && (c) <= 'z'))
3332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3333 #endif
3334
3335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3336 int
3337 main ()
3338 {
3339   int i;
3340   for (i = 0; i < 256; i++)
3341     if (XOR (islower (i), ISLOWER (i))
3342         || toupper (i) != TOUPPER (i))
3343       exit(2);
3344   exit (0);
3345 }
3346 _ACEOF
3347 rm -f conftest$ac_exeext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3349   (eval $ac_link) 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   :
3359 else
3360   echo "$as_me: program exited with status $ac_status" >&5
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 ( exit $ac_status )
3365 ac_cv_header_stdc=no
3366 fi
3367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3368 fi
3369 fi
3370 fi
3371 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3372 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3373 if test $ac_cv_header_stdc = yes; then
3374
3375 cat >>confdefs.h <<\_ACEOF
3376 #define STDC_HEADERS 1
3377 _ACEOF
3378
3379 fi
3380
3381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3392                   inttypes.h stdint.h unistd.h
3393 do
3394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3395 echo "$as_me:$LINENO: checking for $ac_header" >&5
3396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3398   echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400   cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h.  */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h.  */
3406 $ac_includes_default
3407
3408 #include <$ac_header>
3409 _ACEOF
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412   (eval $ac_compile) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag"
3420                          || test ! -s conftest.err'
3421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422   (eval $ac_try) 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; } &&
3426          { ac_try='test -s conftest.$ac_objext'
3427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428   (eval $ac_try) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; }; then
3432   eval "$as_ac_Header=yes"
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 eval "$as_ac_Header=no"
3438 fi
3439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3440 fi
3441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3444   cat >>confdefs.h <<_ACEOF
3445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3446 _ACEOF
3447
3448 fi
3449
3450 done
3451
3452
3453 echo "$as_me:$LINENO: checking for void *" >&5
3454 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3455 if test "${ac_cv_type_void_p+set}" = set; then
3456   echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458   cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 $ac_includes_default
3465 int
3466 main ()
3467 {
3468 if ((void * *) 0)
3469   return 0;
3470 if (sizeof (void *))
3471   return 0;
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478   (eval $ac_compile) 2>conftest.er1
3479   ac_status=$?
3480   grep -v '^ *+' conftest.er1 >conftest.err
3481   rm -f conftest.er1
3482   cat conftest.err >&5
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); } &&
3485          { ac_try='test -z "$ac_c_werror_flag"
3486                          || test ! -s conftest.err'
3487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488   (eval $ac_try) 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }; } &&
3492          { ac_try='test -s conftest.$ac_objext'
3493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494   (eval $ac_try) 2>&5
3495   ac_status=$?
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); }; }; then
3498   ac_cv_type_void_p=yes
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 ac_cv_type_void_p=no
3504 fi
3505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506 fi
3507 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3508 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3509
3510 echo "$as_me:$LINENO: checking size of void *" >&5
3511 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3512 if test "${ac_cv_sizeof_void_p+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   if test "$ac_cv_type_void_p" = yes; then
3516   # The cast to unsigned long works around a bug in the HP C Compiler
3517   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3518   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3519   # This bug is HP SR number 8606223364.
3520   if test "$cross_compiling" = yes; then
3521   # Depending upon the size, compute the lo and hi bounds.
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528 $ac_includes_default
3529 int
3530 main ()
3531 {
3532 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3533 test_array [0] = 0
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541   (eval $ac_compile) 2>conftest.er1
3542   ac_status=$?
3543   grep -v '^ *+' conftest.er1 >conftest.err
3544   rm -f conftest.er1
3545   cat conftest.err >&5
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } &&
3548          { ac_try='test -z "$ac_c_werror_flag"
3549                          || test ! -s conftest.err'
3550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551   (eval $ac_try) 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); }; } &&
3555          { ac_try='test -s conftest.$ac_objext'
3556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557   (eval $ac_try) 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }; }; then
3561   ac_lo=0 ac_mid=0
3562   while :; do
3563     cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h.  */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h.  */
3569 $ac_includes_default
3570 int
3571 main ()
3572 {
3573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3574 test_array [0] = 0
3575
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 rm -f conftest.$ac_objext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582   (eval $ac_compile) 2>conftest.er1
3583   ac_status=$?
3584   grep -v '^ *+' conftest.er1 >conftest.err
3585   rm -f conftest.er1
3586   cat conftest.err >&5
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); } &&
3589          { ac_try='test -z "$ac_c_werror_flag"
3590                          || test ! -s conftest.err'
3591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592   (eval $ac_try) 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }; } &&
3596          { ac_try='test -s conftest.$ac_objext'
3597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598   (eval $ac_try) 2>&5
3599   ac_status=$?
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); }; }; then
3602   ac_hi=$ac_mid; break
3603 else
3604   echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 ac_lo=`expr $ac_mid + 1`
3608                     if test $ac_lo -le $ac_mid; then
3609                       ac_lo= ac_hi=
3610                       break
3611                     fi
3612                     ac_mid=`expr 2 '*' $ac_mid + 1`
3613 fi
3614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3615   done
3616 else
3617   echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h.  */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h.  */
3626 $ac_includes_default
3627 int
3628 main ()
3629 {
3630 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3631 test_array [0] = 0
3632
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.$ac_objext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639   (eval $ac_compile) 2>conftest.er1
3640   ac_status=$?
3641   grep -v '^ *+' conftest.er1 >conftest.err
3642   rm -f conftest.er1
3643   cat conftest.err >&5
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); } &&
3646          { ac_try='test -z "$ac_c_werror_flag"
3647                          || test ! -s conftest.err'
3648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649   (eval $ac_try) 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); }; } &&
3653          { ac_try='test -s conftest.$ac_objext'
3654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655   (eval $ac_try) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); }; }; then
3659   ac_hi=-1 ac_mid=-1
3660   while :; do
3661     cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 $ac_includes_default
3668 int
3669 main ()
3670 {
3671 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3672 test_array [0] = 0
3673
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680   (eval $ac_compile) 2>conftest.er1
3681   ac_status=$?
3682   grep -v '^ *+' conftest.er1 >conftest.err
3683   rm -f conftest.er1
3684   cat conftest.err >&5
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); } &&
3687          { ac_try='test -z "$ac_c_werror_flag"
3688                          || test ! -s conftest.err'
3689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690   (eval $ac_try) 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; } &&
3694          { ac_try='test -s conftest.$ac_objext'
3695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696   (eval $ac_try) 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700   ac_lo=$ac_mid; break
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 ac_hi=`expr '(' $ac_mid ')' - 1`
3706                        if test $ac_mid -le $ac_hi; then
3707                          ac_lo= ac_hi=
3708                          break
3709                        fi
3710                        ac_mid=`expr 2 '*' $ac_mid`
3711 fi
3712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3713   done
3714 else
3715   echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 ac_lo= ac_hi=
3719 fi
3720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721 fi
3722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3723 # Binary search between lo and hi bounds.
3724 while test "x$ac_lo" != "x$ac_hi"; do
3725   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3726   cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732 $ac_includes_default
3733 int
3734 main ()
3735 {
3736 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3737 test_array [0] = 0
3738
3739   ;
3740   return 0;
3741 }
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745   (eval $ac_compile) 2>conftest.er1
3746   ac_status=$?
3747   grep -v '^ *+' conftest.er1 >conftest.err
3748   rm -f conftest.er1
3749   cat conftest.err >&5
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } &&
3752          { ac_try='test -z "$ac_c_werror_flag"
3753                          || test ! -s conftest.err'
3754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755   (eval $ac_try) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }; } &&
3759          { ac_try='test -s conftest.$ac_objext'
3760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761   (eval $ac_try) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }; }; then
3765   ac_hi=$ac_mid
3766 else
3767   echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 ac_lo=`expr '(' $ac_mid ')' + 1`
3771 fi
3772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3773 done
3774 case $ac_lo in
3775 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3776 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3777 See \`config.log' for more details." >&5
3778 echo "$as_me: error: cannot compute sizeof (void *), 77
3779 See \`config.log' for more details." >&2;}
3780    { (exit 1); exit 1; }; } ;;
3781 esac
3782 else
3783   if test "$cross_compiling" = yes; then
3784   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3785 See \`config.log' for more details." >&5
3786 echo "$as_me: error: cannot run test program while cross compiling
3787 See \`config.log' for more details." >&2;}
3788    { (exit 1); exit 1; }; }
3789 else
3790   cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h.  */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h.  */
3796 $ac_includes_default
3797 long longval () { return (long) (sizeof (void *)); }
3798 unsigned long ulongval () { return (long) (sizeof (void *)); }
3799 #include <stdio.h>
3800 #include <stdlib.h>
3801 int
3802 main ()
3803 {
3804
3805   FILE *f = fopen ("conftest.val", "w");
3806   if (! f)
3807     exit (1);
3808   if (((long) (sizeof (void *))) < 0)
3809     {
3810       long i = longval ();
3811       if (i != ((long) (sizeof (void *))))
3812         exit (1);
3813       fprintf (f, "%ld\n", i);
3814     }
3815   else
3816     {
3817       unsigned long i = ulongval ();
3818       if (i != ((long) (sizeof (void *))))
3819         exit (1);
3820       fprintf (f, "%lu\n", i);
3821     }
3822   exit (ferror (f) || fclose (f) != 0);
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest$ac_exeext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830   (eval $ac_link) 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835   (eval $ac_try) 2>&5
3836   ac_status=$?
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); }; }; then
3839   ac_cv_sizeof_void_p=`cat conftest.val`
3840 else
3841   echo "$as_me: program exited with status $ac_status" >&5
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 ( exit $ac_status )
3846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3847 See \`config.log' for more details." >&5
3848 echo "$as_me: error: cannot compute sizeof (void *), 77
3849 See \`config.log' for more details." >&2;}
3850    { (exit 1); exit 1; }; }
3851 fi
3852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3853 fi
3854 fi
3855 rm -f conftest.val
3856 else
3857   ac_cv_sizeof_void_p=0
3858 fi
3859 fi
3860 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3861 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3862 cat >>confdefs.h <<_ACEOF
3863 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3864 _ACEOF
3865
3866
3867 echo "$as_me:$LINENO: checking for short" >&5
3868 echo $ECHO_N "checking for short... $ECHO_C" >&6
3869 if test "${ac_cv_type_short+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878 $ac_includes_default
3879 int
3880 main ()
3881 {
3882 if ((short *) 0)
3883   return 0;
3884 if (sizeof (short))
3885   return 0;
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 rm -f conftest.$ac_objext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892   (eval $ac_compile) 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } &&
3899          { ac_try='test -z "$ac_c_werror_flag"
3900                          || test ! -s conftest.err'
3901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902   (eval $ac_try) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; } &&
3906          { ac_try='test -s conftest.$ac_objext'
3907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908   (eval $ac_try) 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; }; then
3912   ac_cv_type_short=yes
3913 else
3914   echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917 ac_cv_type_short=no
3918 fi
3919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920 fi
3921 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3922 echo "${ECHO_T}$ac_cv_type_short" >&6
3923
3924 echo "$as_me:$LINENO: checking size of short" >&5
3925 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3926 if test "${ac_cv_sizeof_short+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   if test "$ac_cv_type_short" = yes; then
3930   # The cast to unsigned long works around a bug in the HP C Compiler
3931   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3932   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3933   # This bug is HP SR number 8606223364.
3934   if test "$cross_compiling" = yes; then
3935   # Depending upon the size, compute the lo and hi bounds.
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h.  */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h.  */
3942 $ac_includes_default
3943 int
3944 main ()
3945 {
3946 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3947 test_array [0] = 0
3948
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.$ac_objext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955   (eval $ac_compile) 2>conftest.er1
3956   ac_status=$?
3957   grep -v '^ *+' conftest.er1 >conftest.err
3958   rm -f conftest.er1
3959   cat conftest.err >&5
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); } &&
3962          { ac_try='test -z "$ac_c_werror_flag"
3963                          || test ! -s conftest.err'
3964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965   (eval $ac_try) 2>&5
3966   ac_status=$?
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); }; } &&
3969          { ac_try='test -s conftest.$ac_objext'
3970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971   (eval $ac_try) 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); }; }; then
3975   ac_lo=0 ac_mid=0
3976   while :; do
3977     cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h.  */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h.  */
3983 $ac_includes_default
3984 int
3985 main ()
3986 {
3987 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3988 test_array [0] = 0
3989
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996   (eval $ac_compile) 2>conftest.er1
3997   ac_status=$?
3998   grep -v '^ *+' conftest.er1 >conftest.err
3999   rm -f conftest.er1
4000   cat conftest.err >&5
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); } &&
4003          { ac_try='test -z "$ac_c_werror_flag"
4004                          || test ! -s conftest.err'
4005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006   (eval $ac_try) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); }; } &&
4010          { ac_try='test -s conftest.$ac_objext'
4011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012   (eval $ac_try) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); }; }; then
4016   ac_hi=$ac_mid; break
4017 else
4018   echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021 ac_lo=`expr $ac_mid + 1`
4022                     if test $ac_lo -le $ac_mid; then
4023                       ac_lo= ac_hi=
4024                       break
4025                     fi
4026                     ac_mid=`expr 2 '*' $ac_mid + 1`
4027 fi
4028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4029   done
4030 else
4031   echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 $ac_includes_default
4041 int
4042 main ()
4043 {
4044 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4045 test_array [0] = 0
4046
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053   (eval $ac_compile) 2>conftest.er1
4054   ac_status=$?
4055   grep -v '^ *+' conftest.er1 >conftest.err
4056   rm -f conftest.er1
4057   cat conftest.err >&5
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); } &&
4060          { ac_try='test -z "$ac_c_werror_flag"
4061                          || test ! -s conftest.err'
4062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063   (eval $ac_try) 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }; } &&
4067          { ac_try='test -s conftest.$ac_objext'
4068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069   (eval $ac_try) 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); }; }; then
4073   ac_hi=-1 ac_mid=-1
4074   while :; do
4075     cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081 $ac_includes_default
4082 int
4083 main ()
4084 {
4085 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4086 test_array [0] = 0
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094   (eval $ac_compile) 2>conftest.er1
4095   ac_status=$?
4096   grep -v '^ *+' conftest.er1 >conftest.err
4097   rm -f conftest.er1
4098   cat conftest.err >&5
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } &&
4101          { ac_try='test -z "$ac_c_werror_flag"
4102                          || test ! -s conftest.err'
4103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104   (eval $ac_try) 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); }; } &&
4108          { ac_try='test -s conftest.$ac_objext'
4109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110   (eval $ac_try) 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; }; then
4114   ac_lo=$ac_mid; break
4115 else
4116   echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 ac_hi=`expr '(' $ac_mid ')' - 1`
4120                        if test $ac_mid -le $ac_hi; then
4121                          ac_lo= ac_hi=
4122                          break
4123                        fi
4124                        ac_mid=`expr 2 '*' $ac_mid`
4125 fi
4126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4127   done
4128 else
4129   echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4131
4132 ac_lo= ac_hi=
4133 fi
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4137 # Binary search between lo and hi bounds.
4138 while test "x$ac_lo" != "x$ac_hi"; do
4139   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 $ac_includes_default
4147 int
4148 main ()
4149 {
4150 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4151 test_array [0] = 0
4152
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159   (eval $ac_compile) 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } &&
4166          { ac_try='test -z "$ac_c_werror_flag"
4167                          || test ! -s conftest.err'
4168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169   (eval $ac_try) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; } &&
4173          { ac_try='test -s conftest.$ac_objext'
4174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175   (eval $ac_try) 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   ac_hi=$ac_mid
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 ac_lo=`expr '(' $ac_mid ')' + 1`
4185 fi
4186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4187 done
4188 case $ac_lo in
4189 ?*) ac_cv_sizeof_short=$ac_lo;;
4190 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4191 See \`config.log' for more details." >&5
4192 echo "$as_me: error: cannot compute sizeof (short), 77
4193 See \`config.log' for more details." >&2;}
4194    { (exit 1); exit 1; }; } ;;
4195 esac
4196 else
4197   if test "$cross_compiling" = yes; then
4198   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4199 See \`config.log' for more details." >&5
4200 echo "$as_me: error: cannot run test program while cross compiling
4201 See \`config.log' for more details." >&2;}
4202    { (exit 1); exit 1; }; }
4203 else
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 $ac_includes_default
4211 long longval () { return (long) (sizeof (short)); }
4212 unsigned long ulongval () { return (long) (sizeof (short)); }
4213 #include <stdio.h>
4214 #include <stdlib.h>
4215 int
4216 main ()
4217 {
4218
4219   FILE *f = fopen ("conftest.val", "w");
4220   if (! f)
4221     exit (1);
4222   if (((long) (sizeof (short))) < 0)
4223     {
4224       long i = longval ();
4225       if (i != ((long) (sizeof (short))))
4226         exit (1);
4227       fprintf (f, "%ld\n", i);
4228     }
4229   else
4230     {
4231       unsigned long i = ulongval ();
4232       if (i != ((long) (sizeof (short))))
4233         exit (1);
4234       fprintf (f, "%lu\n", i);
4235     }
4236   exit (ferror (f) || fclose (f) != 0);
4237
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244   (eval $ac_link) 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249   (eval $ac_try) 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; }; then
4253   ac_cv_sizeof_short=`cat conftest.val`
4254 else
4255   echo "$as_me: program exited with status $ac_status" >&5
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 ( exit $ac_status )
4260 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4261 See \`config.log' for more details." >&5
4262 echo "$as_me: error: cannot compute sizeof (short), 77
4263 See \`config.log' for more details." >&2;}
4264    { (exit 1); exit 1; }; }
4265 fi
4266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4267 fi
4268 fi
4269 rm -f conftest.val
4270 else
4271   ac_cv_sizeof_short=0
4272 fi
4273 fi
4274 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4275 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4276 cat >>confdefs.h <<_ACEOF
4277 #define SIZEOF_SHORT $ac_cv_sizeof_short
4278 _ACEOF
4279
4280
4281 echo "$as_me:$LINENO: checking for int" >&5
4282 echo $ECHO_N "checking for int... $ECHO_C" >&6
4283 if test "${ac_cv_type_int+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h.  */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h.  */
4292 $ac_includes_default
4293 int
4294 main ()
4295 {
4296 if ((int *) 0)
4297   return 0;
4298 if (sizeof (int))
4299   return 0;
4300   ;
4301   return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306   (eval $ac_compile) 2>conftest.er1
4307   ac_status=$?
4308   grep -v '^ *+' conftest.er1 >conftest.err
4309   rm -f conftest.er1
4310   cat conftest.err >&5
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); } &&
4313          { ac_try='test -z "$ac_c_werror_flag"
4314                          || test ! -s conftest.err'
4315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316   (eval $ac_try) 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); }; } &&
4320          { ac_try='test -s conftest.$ac_objext'
4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   ac_cv_type_int=yes
4327 else
4328   echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 ac_cv_type_int=no
4332 fi
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 fi
4335 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4336 echo "${ECHO_T}$ac_cv_type_int" >&6
4337
4338 echo "$as_me:$LINENO: checking size of int" >&5
4339 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4340 if test "${ac_cv_sizeof_int+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   if test "$ac_cv_type_int" = yes; then
4344   # The cast to unsigned long works around a bug in the HP C Compiler
4345   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4346   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4347   # This bug is HP SR number 8606223364.
4348   if test "$cross_compiling" = yes; then
4349   # Depending upon the size, compute the lo and hi bounds.
4350 cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h.  */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h.  */
4356 $ac_includes_default
4357 int
4358 main ()
4359 {
4360 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4361 test_array [0] = 0
4362
4363   ;
4364   return 0;
4365 }
4366 _ACEOF
4367 rm -f conftest.$ac_objext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369   (eval $ac_compile) 2>conftest.er1
4370   ac_status=$?
4371   grep -v '^ *+' conftest.er1 >conftest.err
4372   rm -f conftest.er1
4373   cat conftest.err >&5
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); } &&
4376          { ac_try='test -z "$ac_c_werror_flag"
4377                          || test ! -s conftest.err'
4378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; } &&
4383          { ac_try='test -s conftest.$ac_objext'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; }; then
4389   ac_lo=0 ac_mid=0
4390   while :; do
4391     cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397 $ac_includes_default
4398 int
4399 main ()
4400 {
4401 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4402 test_array [0] = 0
4403
4404   ;
4405   return 0;
4406 }
4407 _ACEOF
4408 rm -f conftest.$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410   (eval $ac_compile) 2>conftest.er1
4411   ac_status=$?
4412   grep -v '^ *+' conftest.er1 >conftest.err
4413   rm -f conftest.er1
4414   cat conftest.err >&5
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); } &&
4417          { ac_try='test -z "$ac_c_werror_flag"
4418                          || test ! -s conftest.err'
4419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420   (eval $ac_try) 2>&5
4421   ac_status=$?
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); }; } &&
4424          { ac_try='test -s conftest.$ac_objext'
4425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426   (eval $ac_try) 2>&5
4427   ac_status=$?
4428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); }; }; then
4430   ac_hi=$ac_mid; break
4431 else
4432   echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 ac_lo=`expr $ac_mid + 1`
4436                     if test $ac_lo -le $ac_mid; then
4437                       ac_lo= ac_hi=
4438                       break
4439                     fi
4440                     ac_mid=`expr 2 '*' $ac_mid + 1`
4441 fi
4442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4443   done
4444 else
4445   echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 $ac_includes_default
4455 int
4456 main ()
4457 {
4458 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4459 test_array [0] = 0
4460
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467   (eval $ac_compile) 2>conftest.er1
4468   ac_status=$?
4469   grep -v '^ *+' conftest.er1 >conftest.err
4470   rm -f conftest.er1
4471   cat conftest.err >&5
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } &&
4474          { ac_try='test -z "$ac_c_werror_flag"
4475                          || test ! -s conftest.err'
4476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477   (eval $ac_try) 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; } &&
4481          { ac_try='test -s conftest.$ac_objext'
4482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483   (eval $ac_try) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); }; }; then
4487   ac_hi=-1 ac_mid=-1
4488   while :; do
4489     cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h.  */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h.  */
4495 $ac_includes_default
4496 int
4497 main ()
4498 {
4499 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4500 test_array [0] = 0
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508   (eval $ac_compile) 2>conftest.er1
4509   ac_status=$?
4510   grep -v '^ *+' conftest.er1 >conftest.err
4511   rm -f conftest.er1
4512   cat conftest.err >&5
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } &&
4515          { ac_try='test -z "$ac_c_werror_flag"
4516                          || test ! -s conftest.err'
4517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518   (eval $ac_try) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; } &&
4522          { ac_try='test -s conftest.$ac_objext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   ac_lo=$ac_mid; break
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 ac_hi=`expr '(' $ac_mid ')' - 1`
4534                        if test $ac_mid -le $ac_hi; then
4535                          ac_lo= ac_hi=
4536                          break
4537                        fi
4538                        ac_mid=`expr 2 '*' $ac_mid`
4539 fi
4540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4541   done
4542 else
4543   echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 ac_lo= ac_hi=
4547 fi
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549 fi
4550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4551 # Binary search between lo and hi bounds.
4552 while test "x$ac_lo" != "x$ac_hi"; do
4553   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4554   cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h.  */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h.  */
4560 $ac_includes_default
4561 int
4562 main ()
4563 {
4564 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4565 test_array [0] = 0
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 rm -f conftest.$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573   (eval $ac_compile) 2>conftest.er1
4574   ac_status=$?
4575   grep -v '^ *+' conftest.er1 >conftest.err
4576   rm -f conftest.er1
4577   cat conftest.err >&5
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); } &&
4580          { ac_try='test -z "$ac_c_werror_flag"
4581                          || test ! -s conftest.err'
4582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583   (eval $ac_try) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; } &&
4587          { ac_try='test -s conftest.$ac_objext'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593   ac_hi=$ac_mid
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598 ac_lo=`expr '(' $ac_mid ')' + 1`
4599 fi
4600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4601 done
4602 case $ac_lo in
4603 ?*) ac_cv_sizeof_int=$ac_lo;;
4604 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4605 See \`config.log' for more details." >&5
4606 echo "$as_me: error: cannot compute sizeof (int), 77
4607 See \`config.log' for more details." >&2;}
4608    { (exit 1); exit 1; }; } ;;
4609 esac
4610 else
4611   if test "$cross_compiling" = yes; then
4612   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4613 See \`config.log' for more details." >&5
4614 echo "$as_me: error: cannot run test program while cross compiling
4615 See \`config.log' for more details." >&2;}
4616    { (exit 1); exit 1; }; }
4617 else
4618   cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h.  */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h.  */
4624 $ac_includes_default
4625 long longval () { return (long) (sizeof (int)); }
4626 unsigned long ulongval () { return (long) (sizeof (int)); }
4627 #include <stdio.h>
4628 #include <stdlib.h>
4629 int
4630 main ()
4631 {
4632
4633   FILE *f = fopen ("conftest.val", "w");
4634   if (! f)
4635     exit (1);
4636   if (((long) (sizeof (int))) < 0)
4637     {
4638       long i = longval ();
4639       if (i != ((long) (sizeof (int))))
4640         exit (1);
4641       fprintf (f, "%ld\n", i);
4642     }
4643   else
4644     {
4645       unsigned long i = ulongval ();
4646       if (i != ((long) (sizeof (int))))
4647         exit (1);
4648       fprintf (f, "%lu\n", i);
4649     }
4650   exit (ferror (f) || fclose (f) != 0);
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 rm -f conftest$ac_exeext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658   (eval $ac_link) 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663   (eval $ac_try) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); }; }; then
4667   ac_cv_sizeof_int=`cat conftest.val`
4668 else
4669   echo "$as_me: program exited with status $ac_status" >&5
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673 ( exit $ac_status )
4674 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4675 See \`config.log' for more details." >&5
4676 echo "$as_me: error: cannot compute sizeof (int), 77
4677 See \`config.log' for more details." >&2;}
4678    { (exit 1); exit 1; }; }
4679 fi
4680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4681 fi
4682 fi
4683 rm -f conftest.val
4684 else
4685   ac_cv_sizeof_int=0
4686 fi
4687 fi
4688 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4689 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4690 cat >>confdefs.h <<_ACEOF
4691 #define SIZEOF_INT $ac_cv_sizeof_int
4692 _ACEOF
4693
4694
4695 echo "$as_me:$LINENO: checking for long" >&5
4696 echo $ECHO_N "checking for long... $ECHO_C" >&6
4697 if test "${ac_cv_type_long+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706 $ac_includes_default
4707 int
4708 main ()
4709 {
4710 if ((long *) 0)
4711   return 0;
4712 if (sizeof (long))
4713   return 0;
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 rm -f conftest.$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720   (eval $ac_compile) 2>conftest.er1
4721   ac_status=$?
4722   grep -v '^ *+' conftest.er1 >conftest.err
4723   rm -f conftest.er1
4724   cat conftest.err >&5
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); } &&
4727          { ac_try='test -z "$ac_c_werror_flag"
4728                          || test ! -s conftest.err'
4729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730   (eval $ac_try) 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; } &&
4734          { ac_try='test -s conftest.$ac_objext'
4735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736   (eval $ac_try) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; }; then
4740   ac_cv_type_long=yes
4741 else
4742   echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4744
4745 ac_cv_type_long=no
4746 fi
4747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4748 fi
4749 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4750 echo "${ECHO_T}$ac_cv_type_long" >&6
4751
4752 echo "$as_me:$LINENO: checking size of long" >&5
4753 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4754 if test "${ac_cv_sizeof_long+set}" = set; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   if test "$ac_cv_type_long" = yes; then
4758   # The cast to unsigned long works around a bug in the HP C Compiler
4759   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4760   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4761   # This bug is HP SR number 8606223364.
4762   if test "$cross_compiling" = yes; then
4763   # Depending upon the size, compute the lo and hi bounds.
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h.  */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h.  */
4770 $ac_includes_default
4771 int
4772 main ()
4773 {
4774 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4775 test_array [0] = 0
4776
4777   ;
4778   return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783   (eval $ac_compile) 2>conftest.er1
4784   ac_status=$?
4785   grep -v '^ *+' conftest.er1 >conftest.err
4786   rm -f conftest.er1
4787   cat conftest.err >&5
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } &&
4790          { ac_try='test -z "$ac_c_werror_flag"
4791                          || test ! -s conftest.err'
4792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793   (eval $ac_try) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; } &&
4797          { ac_try='test -s conftest.$ac_objext'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; }; then
4803   ac_lo=0 ac_mid=0
4804   while :; do
4805     cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811 $ac_includes_default
4812 int
4813 main ()
4814 {
4815 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4816 test_array [0] = 0
4817
4818   ;
4819   return 0;
4820 }
4821 _ACEOF
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824   (eval $ac_compile) 2>conftest.er1
4825   ac_status=$?
4826   grep -v '^ *+' conftest.er1 >conftest.err
4827   rm -f conftest.er1
4828   cat conftest.err >&5
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); } &&
4831          { ac_try='test -z "$ac_c_werror_flag"
4832                          || test ! -s conftest.err'
4833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834   (eval $ac_try) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }; } &&
4838          { ac_try='test -s conftest.$ac_objext'
4839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840   (eval $ac_try) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; }; then
4844   ac_hi=$ac_mid; break
4845 else
4846   echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4848
4849 ac_lo=`expr $ac_mid + 1`
4850                     if test $ac_lo -le $ac_mid; then
4851                       ac_lo= ac_hi=
4852                       break
4853                     fi
4854                     ac_mid=`expr 2 '*' $ac_mid + 1`
4855 fi
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857   done
4858 else
4859   echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868 $ac_includes_default
4869 int
4870 main ()
4871 {
4872 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4873 test_array [0] = 0
4874
4875   ;
4876   return 0;
4877 }
4878 _ACEOF
4879 rm -f conftest.$ac_objext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881   (eval $ac_compile) 2>conftest.er1
4882   ac_status=$?
4883   grep -v '^ *+' conftest.er1 >conftest.err
4884   rm -f conftest.er1
4885   cat conftest.err >&5
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); } &&
4888          { ac_try='test -z "$ac_c_werror_flag"
4889                          || test ! -s conftest.err'
4890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891   (eval $ac_try) 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; } &&
4895          { ac_try='test -s conftest.$ac_objext'
4896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897   (eval $ac_try) 2>&5
4898   ac_status=$?
4899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900   (exit $ac_status); }; }; then
4901   ac_hi=-1 ac_mid=-1
4902   while :; do
4903     cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 $ac_includes_default
4910 int
4911 main ()
4912 {
4913 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4914 test_array [0] = 0
4915
4916   ;
4917   return 0;
4918 }
4919 _ACEOF
4920 rm -f conftest.$ac_objext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922   (eval $ac_compile) 2>conftest.er1
4923   ac_status=$?
4924   grep -v '^ *+' conftest.er1 >conftest.err
4925   rm -f conftest.er1
4926   cat conftest.err >&5
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); } &&
4929          { ac_try='test -z "$ac_c_werror_flag"
4930                          || test ! -s conftest.err'
4931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932   (eval $ac_try) 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); }; } &&
4936          { ac_try='test -s conftest.$ac_objext'
4937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938   (eval $ac_try) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; }; then
4942   ac_lo=$ac_mid; break
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4946
4947 ac_hi=`expr '(' $ac_mid ')' - 1`
4948                        if test $ac_mid -le $ac_hi; then
4949                          ac_lo= ac_hi=
4950                          break
4951                        fi
4952                        ac_mid=`expr 2 '*' $ac_mid`
4953 fi
4954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4955   done
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 ac_lo= ac_hi=
4961 fi
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 fi
4964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4965 # Binary search between lo and hi bounds.
4966 while test "x$ac_lo" != "x$ac_hi"; do
4967   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4968   cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h.  */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h.  */
4974 $ac_includes_default
4975 int
4976 main ()
4977 {
4978 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4979 test_array [0] = 0
4980
4981   ;
4982   return 0;
4983 }
4984 _ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987   (eval $ac_compile) 2>conftest.er1
4988   ac_status=$?
4989   grep -v '^ *+' conftest.er1 >conftest.err
4990   rm -f conftest.er1
4991   cat conftest.err >&5
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } &&
4994          { ac_try='test -z "$ac_c_werror_flag"
4995                          || test ! -s conftest.err'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; } &&
5001          { ac_try='test -s conftest.$ac_objext'
5002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003   (eval $ac_try) 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); }; }; then
5007   ac_hi=$ac_mid
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 ac_lo=`expr '(' $ac_mid ')' + 1`
5013 fi
5014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5015 done
5016 case $ac_lo in
5017 ?*) ac_cv_sizeof_long=$ac_lo;;
5018 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5019 See \`config.log' for more details." >&5
5020 echo "$as_me: error: cannot compute sizeof (long), 77
5021 See \`config.log' for more details." >&2;}
5022    { (exit 1); exit 1; }; } ;;
5023 esac
5024 else
5025   if test "$cross_compiling" = yes; then
5026   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5027 See \`config.log' for more details." >&5
5028 echo "$as_me: error: cannot run test program while cross compiling
5029 See \`config.log' for more details." >&2;}
5030    { (exit 1); exit 1; }; }
5031 else
5032   cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038 $ac_includes_default
5039 long longval () { return (long) (sizeof (long)); }
5040 unsigned long ulongval () { return (long) (sizeof (long)); }
5041 #include <stdio.h>
5042 #include <stdlib.h>
5043 int
5044 main ()
5045 {
5046
5047   FILE *f = fopen ("conftest.val", "w");
5048   if (! f)
5049     exit (1);
5050   if (((long) (sizeof (long))) < 0)
5051     {
5052       long i = longval ();
5053       if (i != ((long) (sizeof (long))))
5054         exit (1);
5055       fprintf (f, "%ld\n", i);
5056     }
5057   else
5058     {
5059       unsigned long i = ulongval ();
5060       if (i != ((long) (sizeof (long))))
5061         exit (1);
5062       fprintf (f, "%lu\n", i);
5063     }
5064   exit (ferror (f) || fclose (f) != 0);
5065
5066   ;
5067   return 0;
5068 }
5069 _ACEOF
5070 rm -f conftest$ac_exeext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072   (eval $ac_link) 2>&5
5073   ac_status=$?
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077   (eval $ac_try) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; }; then
5081   ac_cv_sizeof_long=`cat conftest.val`
5082 else
5083   echo "$as_me: program exited with status $ac_status" >&5
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087 ( exit $ac_status )
5088 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5089 See \`config.log' for more details." >&5
5090 echo "$as_me: error: cannot compute sizeof (long), 77
5091 See \`config.log' for more details." >&2;}
5092    { (exit 1); exit 1; }; }
5093 fi
5094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5095 fi
5096 fi
5097 rm -f conftest.val
5098 else
5099   ac_cv_sizeof_long=0
5100 fi
5101 fi
5102 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5103 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5104 cat >>confdefs.h <<_ACEOF
5105 #define SIZEOF_LONG $ac_cv_sizeof_long
5106 _ACEOF
5107
5108
5109 echo "$as_me:$LINENO: checking for long long" >&5
5110 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5111 if test "${ac_cv_type_long_long+set}" = set; then
5112   echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114   cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h.  */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h.  */
5120 $ac_includes_default
5121 int
5122 main ()
5123 {
5124 if ((long long *) 0)
5125   return 0;
5126 if (sizeof (long long))
5127   return 0;
5128   ;
5129   return 0;
5130 }
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134   (eval $ac_compile) 2>conftest.er1
5135   ac_status=$?
5136   grep -v '^ *+' conftest.er1 >conftest.err
5137   rm -f conftest.er1
5138   cat conftest.err >&5
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); } &&
5141          { ac_try='test -z "$ac_c_werror_flag"
5142                          || test ! -s conftest.err'
5143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144   (eval $ac_try) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); }; } &&
5148          { ac_try='test -s conftest.$ac_objext'
5149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150   (eval $ac_try) 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); }; }; then
5154   ac_cv_type_long_long=yes
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 ac_cv_type_long_long=no
5160 fi
5161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5162 fi
5163 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5164 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5165 if test $ac_cv_type_long_long = yes; then
5166
5167 cat >>confdefs.h <<_ACEOF
5168 #define HAVE_LONG_LONG 1
5169 _ACEOF
5170
5171 echo "$as_me:$LINENO: checking for long long" >&5
5172 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5173 if test "${ac_cv_type_long_long+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182 $ac_includes_default
5183 int
5184 main ()
5185 {
5186 if ((long long *) 0)
5187   return 0;
5188 if (sizeof (long long))
5189   return 0;
5190   ;
5191   return 0;
5192 }
5193 _ACEOF
5194 rm -f conftest.$ac_objext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196   (eval $ac_compile) 2>conftest.er1
5197   ac_status=$?
5198   grep -v '^ *+' conftest.er1 >conftest.err
5199   rm -f conftest.er1
5200   cat conftest.err >&5
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); } &&
5203          { ac_try='test -z "$ac_c_werror_flag"
5204                          || test ! -s conftest.err'
5205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206   (eval $ac_try) 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; } &&
5210          { ac_try='test -s conftest.$ac_objext'
5211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212   (eval $ac_try) 2>&5
5213   ac_status=$?
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); }; }; then
5216   ac_cv_type_long_long=yes
5217 else
5218   echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221 ac_cv_type_long_long=no
5222 fi
5223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5224 fi
5225 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5226 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5227
5228 echo "$as_me:$LINENO: checking size of long long" >&5
5229 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5230 if test "${ac_cv_sizeof_long_long+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   if test "$ac_cv_type_long_long" = yes; then
5234   # The cast to unsigned long works around a bug in the HP C Compiler
5235   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5236   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5237   # This bug is HP SR number 8606223364.
5238   if test "$cross_compiling" = yes; then
5239   # Depending upon the size, compute the lo and hi bounds.
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h.  */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h.  */
5246 $ac_includes_default
5247 int
5248 main ()
5249 {
5250 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5251 test_array [0] = 0
5252
5253   ;
5254   return 0;
5255 }
5256 _ACEOF
5257 rm -f conftest.$ac_objext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259   (eval $ac_compile) 2>conftest.er1
5260   ac_status=$?
5261   grep -v '^ *+' conftest.er1 >conftest.err
5262   rm -f conftest.er1
5263   cat conftest.err >&5
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } &&
5266          { ac_try='test -z "$ac_c_werror_flag"
5267                          || test ! -s conftest.err'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; } &&
5273          { ac_try='test -s conftest.$ac_objext'
5274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275   (eval $ac_try) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); }; }; then
5279   ac_lo=0 ac_mid=0
5280   while :; do
5281     cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h.  */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h.  */
5287 $ac_includes_default
5288 int
5289 main ()
5290 {
5291 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5292 test_array [0] = 0
5293
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300   (eval $ac_compile) 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } &&
5307          { ac_try='test -z "$ac_c_werror_flag"
5308                          || test ! -s conftest.err'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; } &&
5314          { ac_try='test -s conftest.$ac_objext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_hi=$ac_mid; break
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 ac_lo=`expr $ac_mid + 1`
5326                     if test $ac_lo -le $ac_mid; then
5327                       ac_lo= ac_hi=
5328                       break
5329                     fi
5330                     ac_mid=`expr 2 '*' $ac_mid + 1`
5331 fi
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5333   done
5334 else
5335   echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5337
5338 cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h.  */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h.  */
5344 $ac_includes_default
5345 int
5346 main ()
5347 {
5348 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5349 test_array [0] = 0
5350
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357   (eval $ac_compile) 2>conftest.er1
5358   ac_status=$?
5359   grep -v '^ *+' conftest.er1 >conftest.err
5360   rm -f conftest.er1
5361   cat conftest.err >&5
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } &&
5364          { ac_try='test -z "$ac_c_werror_flag"
5365                          || test ! -s conftest.err'
5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367   (eval $ac_try) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; } &&
5371          { ac_try='test -s conftest.$ac_objext'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   ac_hi=-1 ac_mid=-1
5378   while :; do
5379     cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 $ac_includes_default
5386 int
5387 main ()
5388 {
5389 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5390 test_array [0] = 0
5391
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398   (eval $ac_compile) 2>conftest.er1
5399   ac_status=$?
5400   grep -v '^ *+' conftest.er1 >conftest.err
5401   rm -f conftest.er1
5402   cat conftest.err >&5
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } &&
5405          { ac_try='test -z "$ac_c_werror_flag"
5406                          || test ! -s conftest.err'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; } &&
5412          { ac_try='test -s conftest.$ac_objext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_lo=$ac_mid; break
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_hi=`expr '(' $ac_mid ')' - 1`
5424                        if test $ac_mid -le $ac_hi; then
5425                          ac_lo= ac_hi=
5426                          break
5427                        fi
5428                        ac_mid=`expr 2 '*' $ac_mid`
5429 fi
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431   done
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 ac_lo= ac_hi=
5437 fi
5438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5439 fi
5440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441 # Binary search between lo and hi bounds.
5442 while test "x$ac_lo" != "x$ac_hi"; do
5443   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5444   cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h.  */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h.  */
5450 $ac_includes_default
5451 int
5452 main ()
5453 {
5454 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5455 test_array [0] = 0
5456
5457   ;
5458   return 0;
5459 }
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463   (eval $ac_compile) 2>conftest.er1
5464   ac_status=$?
5465   grep -v '^ *+' conftest.er1 >conftest.err
5466   rm -f conftest.er1
5467   cat conftest.err >&5
5468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469   (exit $ac_status); } &&
5470          { ac_try='test -z "$ac_c_werror_flag"
5471                          || test ! -s conftest.err'
5472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473   (eval $ac_try) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }; } &&
5477          { ac_try='test -s conftest.$ac_objext'
5478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479   (eval $ac_try) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; }; then
5483   ac_hi=$ac_mid
5484 else
5485   echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5487
5488 ac_lo=`expr '(' $ac_mid ')' + 1`
5489 fi
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491 done
5492 case $ac_lo in
5493 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot compute sizeof (long long), 77
5497 See \`config.log' for more details." >&2;}
5498    { (exit 1); exit 1; }; } ;;
5499 esac
5500 else
5501   if test "$cross_compiling" = yes; then
5502   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5503 See \`config.log' for more details." >&5
5504 echo "$as_me: error: cannot run test program while cross compiling
5505 See \`config.log' for more details." >&2;}
5506    { (exit 1); exit 1; }; }
5507 else
5508   cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h.  */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h.  */
5514 $ac_includes_default
5515 long longval () { return (long) (sizeof (long long)); }
5516 unsigned long ulongval () { return (long) (sizeof (long long)); }
5517 #include <stdio.h>
5518 #include <stdlib.h>
5519 int
5520 main ()
5521 {
5522
5523   FILE *f = fopen ("conftest.val", "w");
5524   if (! f)
5525     exit (1);
5526   if (((long) (sizeof (long long))) < 0)
5527     {
5528       long i = longval ();
5529       if (i != ((long) (sizeof (long long))))
5530         exit (1);
5531       fprintf (f, "%ld\n", i);
5532     }
5533   else
5534     {
5535       unsigned long i = ulongval ();
5536       if (i != ((long) (sizeof (long long))))
5537         exit (1);
5538       fprintf (f, "%lu\n", i);
5539     }
5540   exit (ferror (f) || fclose (f) != 0);
5541
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546 rm -f conftest$ac_exeext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5548   (eval $ac_link) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553   (eval $ac_try) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; }; then
5557   ac_cv_sizeof_long_long=`cat conftest.val`
5558 else
5559   echo "$as_me: program exited with status $ac_status" >&5
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 ( exit $ac_status )
5564 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5565 See \`config.log' for more details." >&5
5566 echo "$as_me: error: cannot compute sizeof (long long), 77
5567 See \`config.log' for more details." >&2;}
5568    { (exit 1); exit 1; }; }
5569 fi
5570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5571 fi
5572 fi
5573 rm -f conftest.val
5574 else
5575   ac_cv_sizeof_long_long=0
5576 fi
5577 fi
5578 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5579 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5580 cat >>confdefs.h <<_ACEOF
5581 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5582 _ACEOF
5583
5584
5585 fi
5586
5587 echo "$as_me:$LINENO: checking for __int64" >&5
5588 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5589 if test "${ac_cv_type___int64+set}" = set; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592   cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h.  */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h.  */
5598 $ac_includes_default
5599 int
5600 main ()
5601 {
5602 if ((__int64 *) 0)
5603   return 0;
5604 if (sizeof (__int64))
5605   return 0;
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612   (eval $ac_compile) 2>conftest.er1
5613   ac_status=$?
5614   grep -v '^ *+' conftest.er1 >conftest.err
5615   rm -f conftest.er1
5616   cat conftest.err >&5
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); } &&
5619          { ac_try='test -z "$ac_c_werror_flag"
5620                          || test ! -s conftest.err'
5621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622   (eval $ac_try) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; } &&
5626          { ac_try='test -s conftest.$ac_objext'
5627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628   (eval $ac_try) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; }; then
5632   ac_cv_type___int64=yes
5633 else
5634   echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5636
5637 ac_cv_type___int64=no
5638 fi
5639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5640 fi
5641 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5642 echo "${ECHO_T}$ac_cv_type___int64" >&6
5643 if test $ac_cv_type___int64 = yes; then
5644
5645 cat >>confdefs.h <<_ACEOF
5646 #define HAVE___INT64 1
5647 _ACEOF
5648
5649 echo "$as_me:$LINENO: checking for __int64" >&5
5650 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5651 if test "${ac_cv_type___int64+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660 $ac_includes_default
5661 int
5662 main ()
5663 {
5664 if ((__int64 *) 0)
5665   return 0;
5666 if (sizeof (__int64))
5667   return 0;
5668   ;
5669   return 0;
5670 }
5671 _ACEOF
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674   (eval $ac_compile) 2>conftest.er1
5675   ac_status=$?
5676   grep -v '^ *+' conftest.er1 >conftest.err
5677   rm -f conftest.er1
5678   cat conftest.err >&5
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); } &&
5681          { ac_try='test -z "$ac_c_werror_flag"
5682                          || test ! -s conftest.err'
5683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684   (eval $ac_try) 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; } &&
5688          { ac_try='test -s conftest.$ac_objext'
5689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690   (eval $ac_try) 2>&5
5691   ac_status=$?
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); }; }; then
5694   ac_cv_type___int64=yes
5695 else
5696   echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 ac_cv_type___int64=no
5700 fi
5701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5702 fi
5703 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5704 echo "${ECHO_T}$ac_cv_type___int64" >&6
5705
5706 echo "$as_me:$LINENO: checking size of __int64" >&5
5707 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5708 if test "${ac_cv_sizeof___int64+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   if test "$ac_cv_type___int64" = yes; then
5712   # The cast to unsigned long works around a bug in the HP C Compiler
5713   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5714   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5715   # This bug is HP SR number 8606223364.
5716   if test "$cross_compiling" = yes; then
5717   # Depending upon the size, compute the lo and hi bounds.
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h.  */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h.  */
5724 $ac_includes_default
5725 int
5726 main ()
5727 {
5728 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5729 test_array [0] = 0
5730
5731   ;
5732   return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737   (eval $ac_compile) 2>conftest.er1
5738   ac_status=$?
5739   grep -v '^ *+' conftest.er1 >conftest.err
5740   rm -f conftest.er1
5741   cat conftest.err >&5
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } &&
5744          { ac_try='test -z "$ac_c_werror_flag"
5745                          || test ! -s conftest.err'
5746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747   (eval $ac_try) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; } &&
5751          { ac_try='test -s conftest.$ac_objext'
5752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753   (eval $ac_try) 2>&5
5754   ac_status=$?
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); }; }; then
5757   ac_lo=0 ac_mid=0
5758   while :; do
5759     cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h.  */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h.  */
5765 $ac_includes_default
5766 int
5767 main ()
5768 {
5769 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5770 test_array [0] = 0
5771
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778   (eval $ac_compile) 2>conftest.er1
5779   ac_status=$?
5780   grep -v '^ *+' conftest.er1 >conftest.err
5781   rm -f conftest.er1
5782   cat conftest.err >&5
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -z "$ac_c_werror_flag"
5786                          || test ! -s conftest.err'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; } &&
5792          { ac_try='test -s conftest.$ac_objext'
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   ac_hi=$ac_mid; break
5799 else
5800   echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5802
5803 ac_lo=`expr $ac_mid + 1`
5804                     if test $ac_lo -le $ac_mid; then
5805                       ac_lo= ac_hi=
5806                       break
5807                     fi
5808                     ac_mid=`expr 2 '*' $ac_mid + 1`
5809 fi
5810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811   done
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h.  */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h.  */
5822 $ac_includes_default
5823 int
5824 main ()
5825 {
5826 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5827 test_array [0] = 0
5828
5829   ;
5830   return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835   (eval $ac_compile) 2>conftest.er1
5836   ac_status=$?
5837   grep -v '^ *+' conftest.er1 >conftest.err
5838   rm -f conftest.er1
5839   cat conftest.err >&5
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); } &&
5842          { ac_try='test -z "$ac_c_werror_flag"
5843                          || test ! -s conftest.err'
5844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845   (eval $ac_try) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; } &&
5849          { ac_try='test -s conftest.$ac_objext'
5850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851   (eval $ac_try) 2>&5
5852   ac_status=$?
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); }; }; then
5855   ac_hi=-1 ac_mid=-1
5856   while :; do
5857     cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h.  */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h.  */
5863 $ac_includes_default
5864 int
5865 main ()
5866 {
5867 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5868 test_array [0] = 0
5869
5870   ;
5871   return 0;
5872 }
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876   (eval $ac_compile) 2>conftest.er1
5877   ac_status=$?
5878   grep -v '^ *+' conftest.er1 >conftest.err
5879   rm -f conftest.er1
5880   cat conftest.err >&5
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); } &&
5883          { ac_try='test -z "$ac_c_werror_flag"
5884                          || test ! -s conftest.err'
5885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886   (eval $ac_try) 2>&5
5887   ac_status=$?
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); }; } &&
5890          { ac_try='test -s conftest.$ac_objext'
5891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892   (eval $ac_try) 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; }; then
5896   ac_lo=$ac_mid; break
5897 else
5898   echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 ac_hi=`expr '(' $ac_mid ')' - 1`
5902                        if test $ac_mid -le $ac_hi; then
5903                          ac_lo= ac_hi=
5904                          break
5905                        fi
5906                        ac_mid=`expr 2 '*' $ac_mid`
5907 fi
5908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5909   done
5910 else
5911   echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5913
5914 ac_lo= ac_hi=
5915 fi
5916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5917 fi
5918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5919 # Binary search between lo and hi bounds.
5920 while test "x$ac_lo" != "x$ac_hi"; do
5921   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5922   cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h.  */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h.  */
5928 $ac_includes_default
5929 int
5930 main ()
5931 {
5932 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5933 test_array [0] = 0
5934
5935   ;
5936   return 0;
5937 }
5938 _ACEOF
5939 rm -f conftest.$ac_objext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941   (eval $ac_compile) 2>conftest.er1
5942   ac_status=$?
5943   grep -v '^ *+' conftest.er1 >conftest.err
5944   rm -f conftest.er1
5945   cat conftest.err >&5
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); } &&
5948          { ac_try='test -z "$ac_c_werror_flag"
5949                          || test ! -s conftest.err'
5950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951   (eval $ac_try) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); }; } &&
5955          { ac_try='test -s conftest.$ac_objext'
5956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957   (eval $ac_try) 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); }; }; then
5961   ac_hi=$ac_mid
5962 else
5963   echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 ac_lo=`expr '(' $ac_mid ')' + 1`
5967 fi
5968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5969 done
5970 case $ac_lo in
5971 ?*) ac_cv_sizeof___int64=$ac_lo;;
5972 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5973 See \`config.log' for more details." >&5
5974 echo "$as_me: error: cannot compute sizeof (__int64), 77
5975 See \`config.log' for more details." >&2;}
5976    { (exit 1); exit 1; }; } ;;
5977 esac
5978 else
5979   if test "$cross_compiling" = yes; then
5980   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5981 See \`config.log' for more details." >&5
5982 echo "$as_me: error: cannot run test program while cross compiling
5983 See \`config.log' for more details." >&2;}
5984    { (exit 1); exit 1; }; }
5985 else
5986   cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 $ac_includes_default
5993 long longval () { return (long) (sizeof (__int64)); }
5994 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5995 #include <stdio.h>
5996 #include <stdlib.h>
5997 int
5998 main ()
5999 {
6000
6001   FILE *f = fopen ("conftest.val", "w");
6002   if (! f)
6003     exit (1);
6004   if (((long) (sizeof (__int64))) < 0)
6005     {
6006       long i = longval ();
6007       if (i != ((long) (sizeof (__int64))))
6008         exit (1);
6009       fprintf (f, "%ld\n", i);
6010     }
6011   else
6012     {
6013       unsigned long i = ulongval ();
6014       if (i != ((long) (sizeof (__int64))))
6015         exit (1);
6016       fprintf (f, "%lu\n", i);
6017     }
6018   exit (ferror (f) || fclose (f) != 0);
6019
6020   ;
6021   return 0;
6022 }
6023 _ACEOF
6024 rm -f conftest$ac_exeext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026   (eval $ac_link) 2>&5
6027   ac_status=$?
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031   (eval $ac_try) 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }; }; then
6035   ac_cv_sizeof___int64=`cat conftest.val`
6036 else
6037   echo "$as_me: program exited with status $ac_status" >&5
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 ( exit $ac_status )
6042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6043 See \`config.log' for more details." >&5
6044 echo "$as_me: error: cannot compute sizeof (__int64), 77
6045 See \`config.log' for more details." >&2;}
6046    { (exit 1); exit 1; }; }
6047 fi
6048 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6049 fi
6050 fi
6051 rm -f conftest.val
6052 else
6053   ac_cv_sizeof___int64=0
6054 fi
6055 fi
6056 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6057 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6058 cat >>confdefs.h <<_ACEOF
6059 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6060 _ACEOF
6061
6062
6063 fi
6064
6065
6066 # ---------------------
6067 # Warnings and checking
6068 # ---------------------
6069
6070 # Check $CC warning features (if it's GCC).
6071 # We want to use -pedantic, but we don't want warnings about
6072 # * 'long long'
6073 # * variadic macros
6074 # * overlong strings
6075 # So, we only use -pedantic if we can disable those warnings.
6076
6077 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6078 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6079 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   save_CFLAGS="$CFLAGS"
6083   CFLAGS="-Wno-long-long"
6084   cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h.  */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h.  */
6090
6091 _ACEOF
6092 rm -f conftest.$ac_objext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094   (eval $ac_compile) 2>conftest.er1
6095   ac_status=$?
6096   grep -v '^ *+' conftest.er1 >conftest.err
6097   rm -f conftest.er1
6098   cat conftest.err >&5
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); } &&
6101          { ac_try='test -z "$ac_c_werror_flag"
6102                          || test ! -s conftest.err'
6103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104   (eval $ac_try) 2>&5
6105   ac_status=$?
6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107   (exit $ac_status); }; } &&
6108          { ac_try='test -s conftest.$ac_objext'
6109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110   (eval $ac_try) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; }; then
6114   ac_cv_prog_cc_w_no_long_long=yes
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 ac_cv_prog_cc_w_no_long_long=no
6120 fi
6121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6122   CFLAGS="$save_CFLAGS"
6123
6124 fi
6125 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6126 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6127
6128 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6129 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6130 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   save_CFLAGS="$CFLAGS"
6134   CFLAGS="-Wno-variadic-macros"
6135   cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145   (eval $ac_compile) 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } &&
6152          { ac_try='test -z "$ac_c_werror_flag"
6153                          || test ! -s conftest.err'
6154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155   (eval $ac_try) 2>&5
6156   ac_status=$?
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); }; } &&
6159          { ac_try='test -s conftest.$ac_objext'
6160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161   (eval $ac_try) 2>&5
6162   ac_status=$?
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); }; }; then
6165   ac_cv_prog_cc_w_no_variadic_macros=yes
6166 else
6167   echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 ac_cv_prog_cc_w_no_variadic_macros=no
6171 fi
6172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173   CFLAGS="$save_CFLAGS"
6174
6175 fi
6176 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6177 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6178
6179 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6180 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6181 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   save_CFLAGS="$CFLAGS"
6185   CFLAGS="-Wno-overlength-strings"
6186   cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h.  */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h.  */
6192
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196   (eval $ac_compile) 2>conftest.er1
6197   ac_status=$?
6198   grep -v '^ *+' conftest.er1 >conftest.err
6199   rm -f conftest.er1
6200   cat conftest.err >&5
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); } &&
6203          { ac_try='test -z "$ac_c_werror_flag"
6204                          || test ! -s conftest.err'
6205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206   (eval $ac_try) 2>&5
6207   ac_status=$?
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); }; } &&
6210          { ac_try='test -s conftest.$ac_objext'
6211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212   (eval $ac_try) 2>&5
6213   ac_status=$?
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); }; }; then
6216   ac_cv_prog_cc_w_no_overlength_strings=yes
6217 else
6218   echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6220
6221 ac_cv_prog_cc_w_no_overlength_strings=no
6222 fi
6223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6224   CFLAGS="$save_CFLAGS"
6225
6226 fi
6227 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6228 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6229
6230 strict1_warn=
6231 if test $ac_cv_prog_cc_w_no_long_long = yes \
6232    && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6233    && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6234   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6235 fi
6236
6237 # Add -Wold-style-definition if it's accepted
6238 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6239 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6240 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243   save_CFLAGS="$CFLAGS"
6244   CFLAGS="-Wold-style-definition"
6245   cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h.  */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h.  */
6251
6252 _ACEOF
6253 rm -f conftest.$ac_objext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6255   (eval $ac_compile) 2>conftest.er1
6256   ac_status=$?
6257   grep -v '^ *+' conftest.er1 >conftest.err
6258   rm -f conftest.er1
6259   cat conftest.err >&5
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } &&
6262          { ac_try='test -z "$ac_c_werror_flag"
6263                          || test ! -s conftest.err'
6264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265   (eval $ac_try) 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); }; } &&
6269          { ac_try='test -s conftest.$ac_objext'
6270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271   (eval $ac_try) 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; }; then
6275   ac_cv_prog_cc_w_old_style_definition=yes
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280 ac_cv_prog_cc_w_old_style_definition=no
6281 fi
6282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283   CFLAGS="$save_CFLAGS"
6284
6285 fi
6286 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6287 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6288 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6289   strict1_warn="${strict1_warn} -Wold-style-definition"
6290 fi
6291
6292 # Add -Wmissing-format-attribute if it's accepted
6293 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6294 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6295 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   save_CFLAGS="$CFLAGS"
6299   CFLAGS="-Wmissing-format-attribute"
6300   cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h.  */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h.  */
6306
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310   (eval $ac_compile) 2>conftest.er1
6311   ac_status=$?
6312   grep -v '^ *+' conftest.er1 >conftest.err
6313   rm -f conftest.er1
6314   cat conftest.err >&5
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); } &&
6317          { ac_try='test -z "$ac_c_werror_flag"
6318                          || test ! -s conftest.err'
6319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320   (eval $ac_try) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); }; } &&
6324          { ac_try='test -s conftest.$ac_objext'
6325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326   (eval $ac_try) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }; }; then
6330   ac_cv_prog_cc_w_missing_format_attribute=yes
6331 else
6332   echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 ac_cv_prog_cc_w_missing_format_attribute=no
6336 fi
6337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6338   CFLAGS="$save_CFLAGS"
6339
6340 fi
6341 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6342 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6343 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6344   strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6345 fi
6346
6347 # Enable -Werror, period.
6348 # Check whether --enable-werror_always or --disable-werror_always was given.
6349 if test "${enable_werror_always+set}" = set; then
6350   enableval="$enable_werror_always"
6351
6352 else
6353   enable_werror_always=no
6354 fi;
6355 if test x${enable_werror_always} = xyes ; then
6356   strict1_warn="${strict1_warn} -Werror"
6357   WERROR=-Werror
6358 fi
6359
6360
6361
6362 # Get C++ compatibility warning flag, if supported.
6363 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6364 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6365 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368   save_CFLAGS="$CFLAGS"
6369   CFLAGS="-Wc++-compat"
6370   cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h.  */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h.  */
6376
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380   (eval $ac_compile) 2>conftest.er1
6381   ac_status=$?
6382   grep -v '^ *+' conftest.er1 >conftest.err
6383   rm -f conftest.er1
6384   cat conftest.err >&5
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); } &&
6387          { ac_try='test -z "$ac_c_werror_flag"
6388                          || test ! -s conftest.err'
6389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390   (eval $ac_try) 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); }; } &&
6394          { ac_try='test -s conftest.$ac_objext'
6395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396   (eval $ac_try) 2>&5
6397   ac_status=$?
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); }; }; then
6400   ac_cv_prog_cc_w_cxx_compat=yes
6401 else
6402   echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405 ac_cv_prog_cc_w_cxx_compat=no
6406 fi
6407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6408   CFLAGS="$save_CFLAGS"
6409
6410 fi
6411 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6412 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6413 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6414   cxx_compat_warn="-Wc++-compat"
6415 fi
6416
6417
6418
6419 # If the native compiler is GCC, we can enable warnings even in stage1.
6420 # That's useful for people building cross-compilers, or just running a
6421 # quick `make'.
6422 warn_cflags=
6423 if test "x$GCC" = "xyes"; then
6424   warn_cflags='$(GCC_WARN_CFLAGS)'
6425 fi
6426
6427
6428 # Enable -Werror in bootstrap stage2 and later.
6429 is_release=
6430 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6431   is_release=yes
6432 fi
6433 # Check whether --enable-werror or --disable-werror was given.
6434 if test "${enable_werror+set}" = set; then
6435   enableval="$enable_werror"
6436
6437 else
6438   if test x$is_release = x ; then
6439   # Default to "yes" on development branches.
6440   enable_werror=yes
6441 else
6442   # Default to "no" on release branches.
6443   enable_werror=no
6444 fi
6445 fi;
6446 if test x$enable_werror = xyes ; then
6447   WERROR=-Werror
6448 fi
6449
6450
6451 # Enable expensive internal checks
6452 # Check whether --enable-checking or --disable-checking was given.
6453 if test "${enable_checking+set}" = set; then
6454   enableval="$enable_checking"
6455   ac_checking_flags="${enableval}"
6456 else
6457
6458 # Determine the default checks.
6459 if test x$is_release = x ; then
6460   ac_checking_flags=yes
6461 else
6462   ac_checking_flags=release
6463 fi
6464 fi;
6465 ac_assert_checking=1
6466 ac_checking=
6467 ac_fold_checking=
6468 ac_gc_checking=
6469 ac_gc_always_collect=
6470 ac_rtl_checking=
6471 ac_rtlflag_checking=
6472 ac_runtime_checking=1
6473 ac_tree_checking=
6474 ac_valgrind_checking=
6475 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6476 for check in $ac_checking_flags
6477 do
6478         case $check in
6479         # these set all the flags to specific states
6480         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6481                         ac_fold_checking= ; ac_gc_checking=1 ;
6482                         ac_gc_always_collect= ; ac_rtl_checking= ;
6483                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6484                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6485         no|none)        ac_assert_checking= ; ac_checking= ;
6486                         ac_fold_checking= ; ac_gc_checking= ;
6487                         ac_gc_always_collect= ; ac_rtl_checking= ;
6488                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6489                         ac_tree_checking= ; ac_valgrind_checking= ;;
6490         all)            ac_assert_checking=1 ; ac_checking=1 ;
6491                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6492                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6493                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6494                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6495         release)        ac_assert_checking=1 ; ac_checking= ;
6496                         ac_fold_checking= ; ac_gc_checking= ;
6497                         ac_gc_always_collect= ; ac_rtl_checking= ;
6498                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6499                         ac_tree_checking= ; ac_valgrind_checking= ;;
6500         # these enable particular checks
6501         assert)         ac_assert_checking=1 ;;
6502         fold)           ac_fold_checking=1 ;;
6503         gc)             ac_gc_checking=1 ;;
6504         gcac)           ac_gc_always_collect=1 ;;
6505         misc)           ac_checking=1 ;;
6506         rtl)            ac_rtl_checking=1 ;;
6507         rtlflag)        ac_rtlflag_checking=1 ;;
6508         runtime)        ac_runtime_checking=1 ;;
6509         tree)           ac_tree_checking=1 ;;
6510         valgrind)       ac_valgrind_checking=1 ;;
6511         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6512 echo "$as_me: error: unknown check category $check" >&2;}
6513    { (exit 1); exit 1; }; } ;;
6514         esac
6515 done
6516 IFS="$ac_save_IFS"
6517
6518 nocommon_flag=""
6519 if test x$ac_checking != x ; then
6520
6521 cat >>confdefs.h <<\_ACEOF
6522 #define ENABLE_CHECKING 1
6523 _ACEOF
6524
6525   nocommon_flag=-fno-common
6526 fi
6527
6528 if test x$ac_assert_checking != x ; then
6529
6530 cat >>confdefs.h <<\_ACEOF
6531 #define ENABLE_ASSERT_CHECKING 1
6532 _ACEOF
6533
6534 fi
6535
6536 if test x$ac_runtime_checking != x ; then
6537
6538 cat >>confdefs.h <<\_ACEOF
6539 #define ENABLE_RUNTIME_CHECKING 1
6540 _ACEOF
6541
6542 fi
6543 if test x$ac_tree_checking != x ; then
6544
6545 cat >>confdefs.h <<\_ACEOF
6546 #define ENABLE_TREE_CHECKING 1
6547 _ACEOF
6548
6549   TREEBROWSER=tree-browser.o
6550 fi
6551
6552 if test x$ac_rtl_checking != x ; then
6553
6554 cat >>confdefs.h <<\_ACEOF
6555 #define ENABLE_RTL_CHECKING 1
6556 _ACEOF
6557
6558 fi
6559 if test x$ac_rtlflag_checking != x ; then
6560
6561 cat >>confdefs.h <<\_ACEOF
6562 #define ENABLE_RTL_FLAG_CHECKING 1
6563 _ACEOF
6564
6565 fi
6566 if test x$ac_gc_checking != x ; then
6567
6568 cat >>confdefs.h <<\_ACEOF
6569 #define ENABLE_GC_CHECKING 1
6570 _ACEOF
6571
6572 fi
6573 if test x$ac_gc_always_collect != x ; then
6574
6575 cat >>confdefs.h <<\_ACEOF
6576 #define ENABLE_GC_ALWAYS_COLLECT 1
6577 _ACEOF
6578
6579 fi
6580 if test x$ac_fold_checking != x ; then
6581
6582 cat >>confdefs.h <<\_ACEOF
6583 #define ENABLE_FOLD_CHECKING 1
6584 _ACEOF
6585
6586 fi
6587 valgrind_path_defines=
6588 valgrind_command=
6589
6590 if test "${ac_cv_header_valgrind_h+set}" = set; then
6591   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6592 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6593 if test "${ac_cv_header_valgrind_h+set}" = set; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 fi
6596 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6597 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6598 else
6599   # Is the header compilable?
6600 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6601 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h.  */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h.  */
6608 $ac_includes_default
6609 #include <valgrind.h>
6610 _ACEOF
6611 rm -f conftest.$ac_objext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613   (eval $ac_compile) 2>conftest.er1
6614   ac_status=$?
6615   grep -v '^ *+' conftest.er1 >conftest.err
6616   rm -f conftest.er1
6617   cat conftest.err >&5
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); } &&
6620          { ac_try='test -z "$ac_c_werror_flag"
6621                          || test ! -s conftest.err'
6622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623   (eval $ac_try) 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); }; } &&
6627          { ac_try='test -s conftest.$ac_objext'
6628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629   (eval $ac_try) 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); }; }; then
6633   ac_header_compiler=yes
6634 else
6635   echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6637
6638 ac_header_compiler=no
6639 fi
6640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6642 echo "${ECHO_T}$ac_header_compiler" >&6
6643
6644 # Is the header present?
6645 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6646 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6647 cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h.  */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h.  */
6653 #include <valgrind.h>
6654 _ACEOF
6655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6657   ac_status=$?
6658   grep -v '^ *+' conftest.er1 >conftest.err
6659   rm -f conftest.er1
6660   cat conftest.err >&5
6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); } >/dev/null; then
6663   if test -s conftest.err; then
6664     ac_cpp_err=$ac_c_preproc_warn_flag
6665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6666   else
6667     ac_cpp_err=
6668   fi
6669 else
6670   ac_cpp_err=yes
6671 fi
6672 if test -z "$ac_cpp_err"; then
6673   ac_header_preproc=yes
6674 else
6675   echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6677
6678   ac_header_preproc=no
6679 fi
6680 rm -f conftest.err conftest.$ac_ext
6681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6682 echo "${ECHO_T}$ac_header_preproc" >&6
6683
6684 # So?  What about this header?
6685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6686   yes:no: )
6687     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6688 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6689     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6690 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6691     ac_header_preproc=yes
6692     ;;
6693   no:yes:* )
6694     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6695 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6696     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6697 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6698     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6699 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6700     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6701 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6702     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6703 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6704     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6705 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6706     (
6707       cat <<\_ASBOX
6708 ## ------------------------------------------ ##
6709 ## Report this to the AC_PACKAGE_NAME lists.  ##
6710 ## ------------------------------------------ ##
6711 _ASBOX
6712     ) |
6713       sed "s/^/$as_me: WARNING:     /" >&2
6714     ;;
6715 esac
6716 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6717 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6718 if test "${ac_cv_header_valgrind_h+set}" = set; then
6719   echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721   ac_cv_header_valgrind_h=$ac_header_preproc
6722 fi
6723 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6724 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6725
6726 fi
6727 if test $ac_cv_header_valgrind_h = yes; then
6728   have_valgrind_h=yes
6729 else
6730   have_valgrind_h=no
6731 fi
6732
6733
6734
6735 if test x$ac_valgrind_checking != x ; then
6736   # It is certainly possible that there's valgrind but no valgrind.h.
6737   # GCC relies on making annotations so we must have both.
6738   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6739 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6740   cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746 #include <valgrind/memcheck.h>
6747 #ifndef VALGRIND_DISCARD
6748 #error VALGRIND_DISCARD not defined
6749 #endif
6750 _ACEOF
6751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6753   ac_status=$?
6754   grep -v '^ *+' conftest.er1 >conftest.err
6755   rm -f conftest.er1
6756   cat conftest.err >&5
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); } >/dev/null; then
6759   if test -s conftest.err; then
6760     ac_cpp_err=$ac_c_preproc_warn_flag
6761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6762   else
6763     ac_cpp_err=
6764   fi
6765 else
6766   ac_cpp_err=yes
6767 fi
6768 if test -z "$ac_cpp_err"; then
6769   gcc_cv_header_valgrind_memcheck_h=yes
6770 else
6771   echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774   gcc_cv_header_valgrind_memcheck_h=no
6775 fi
6776 rm -f conftest.err conftest.$ac_ext
6777   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6778 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6779   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6780 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6781   cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787 #include <memcheck.h>
6788 #ifndef VALGRIND_DISCARD
6789 #error VALGRIND_DISCARD not defined
6790 #endif
6791 _ACEOF
6792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6794   ac_status=$?
6795   grep -v '^ *+' conftest.er1 >conftest.err
6796   rm -f conftest.er1
6797   cat conftest.err >&5
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); } >/dev/null; then
6800   if test -s conftest.err; then
6801     ac_cpp_err=$ac_c_preproc_warn_flag
6802     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6803   else
6804     ac_cpp_err=
6805   fi
6806 else
6807   ac_cpp_err=yes
6808 fi
6809 if test -z "$ac_cpp_err"; then
6810   gcc_cv_header_memcheck_h=yes
6811 else
6812   echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815   gcc_cv_header_memcheck_h=no
6816 fi
6817 rm -f conftest.err conftest.$ac_ext
6818   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6819 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6820
6821 # Prepare PATH_SEPARATOR.
6822 # The user is always right.
6823 if test "${PATH_SEPARATOR+set}" != set; then
6824   echo "#! /bin/sh" >conf$$.sh
6825   echo  "exit 0"   >>conf$$.sh
6826   chmod +x conf$$.sh
6827   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6828     PATH_SEPARATOR=';'
6829   else
6830     PATH_SEPARATOR=:
6831   fi
6832   rm -f conf$$.sh
6833 fi
6834
6835 # Find out how to test for executable files. Don't use a zero-byte file,
6836 # as systems may use methods other than mode bits to determine executability.
6837 cat >conf$$.file <<_ASEOF
6838 #! /bin/sh
6839 exit 0
6840 _ASEOF
6841 chmod +x conf$$.file
6842 if test -x conf$$.file >/dev/null 2>&1; then
6843   ac_executable_p="test -x"
6844 else
6845   ac_executable_p="test -f"
6846 fi
6847 rm -f conf$$.file
6848
6849 # Extract the first word of "valgrind", so it can be a program name with args.
6850 set dummy valgrind; ac_word=$2
6851 echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6853 if test "${ac_cv_path_valgrind_path+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   case "$valgrind_path" in
6857   [\\/]* | ?:[\\/]*)
6858     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6859     ;;
6860   *)
6861     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6862     for ac_dir in $PATH; do
6863       IFS="$ac_save_IFS"
6864       test -z "$ac_dir" && ac_dir=.
6865       for ac_exec_ext in '' $ac_executable_extensions; do
6866         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6867           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6868             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6869             break 2
6870           fi
6871         fi
6872       done
6873     done
6874     IFS="$ac_save_IFS"
6875     ;;
6876 esac
6877 fi
6878 valgrind_path="$ac_cv_path_valgrind_path"
6879 if test -n "$valgrind_path"; then
6880   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6881 echo "${ECHO_T}$valgrind_path" >&6
6882 else
6883   echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6885 fi
6886
6887   if test "x$valgrind_path" = "x" \
6888     || (test $have_valgrind_h = no \
6889         && test $gcc_cv_header_memcheck_h = no \
6890         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6891         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6892 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6893    { (exit 1); exit 1; }; }
6894   fi
6895   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6896   valgrind_command="$valgrind_path -q"
6897
6898 cat >>confdefs.h <<\_ACEOF
6899 #define ENABLE_VALGRIND_CHECKING 1
6900 _ACEOF
6901
6902   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6903
6904 cat >>confdefs.h <<\_ACEOF
6905 #define HAVE_VALGRIND_MEMCHECK_H 1
6906 _ACEOF
6907
6908   fi
6909   if test $gcc_cv_header_memcheck_h = yes; then
6910
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_MEMCHECK_H 1
6913 _ACEOF
6914
6915   fi
6916 fi
6917
6918
6919
6920 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6921 if test "${enable_mapped_location+set}" = set; then
6922   enableval="$enable_mapped_location"
6923
6924 else
6925   enable_mapped_location=no
6926 fi;
6927
6928 if test "$enable_mapped_location" = yes ; then
6929
6930 cat >>confdefs.h <<\_ACEOF
6931 #define USE_MAPPED_LOCATION 1
6932 _ACEOF
6933
6934 fi
6935
6936 # Enable code coverage collection
6937 # Check whether --enable-coverage or --disable-coverage was given.
6938 if test "${enable_coverage+set}" = set; then
6939   enableval="$enable_coverage"
6940   case "${enableval}" in
6941   yes|noopt)
6942     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6943     ;;
6944   opt)
6945     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6946     ;;
6947   no)
6948     # a.k.a. --disable-coverage
6949     coverage_flags=""
6950     ;;
6951   *)
6952     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6953 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6954    { (exit 1); exit 1; }; }
6955     ;;
6956 esac
6957 else
6958   coverage_flags=""
6959 fi;
6960
6961
6962 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6963 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6964   enableval="$enable_gather_detailed_mem_stats"
6965
6966 else
6967   enable_gather_detailed_mem_stats=no
6968 fi;
6969 if test x$enable_gather_detailed_mem_stats = xyes ; then
6970
6971 cat >>confdefs.h <<\_ACEOF
6972 #define GATHER_STATISTICS 1
6973 _ACEOF
6974
6975 fi
6976
6977 # -------------------------------
6978 # Miscenalleous configure options
6979 # -------------------------------
6980
6981 # With stabs
6982
6983 # Check whether --with-stabs or --without-stabs was given.
6984 if test "${with_stabs+set}" = set; then
6985   withval="$with_stabs"
6986   stabs="$with_stabs"
6987 else
6988   stabs=no
6989 fi;
6990
6991 # Determine whether or not multilibs are enabled.
6992 # Check whether --enable-multilib or --disable-multilib was given.
6993 if test "${enable_multilib+set}" = set; then
6994   enableval="$enable_multilib"
6995
6996 else
6997   enable_multilib=yes
6998 fi;
6999
7000
7001 # Enable __cxa_atexit for C++.
7002 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7003 if test "${enable___cxa_atexit+set}" = set; then
7004   enableval="$enable___cxa_atexit"
7005
7006 fi;
7007
7008 # Enable C extension for decimal float if target supports it.
7009 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7010 if test "${enable_decimal_float+set}" = set; then
7011   enableval="$enable_decimal_float"
7012
7013   if test x$enablevar = xyes ; then
7014     case $target in
7015     powerpc*-*-linux* | i?86*-*-linux*)
7016       enable_decimal_float=yes
7017       ;;
7018     *)
7019       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7020 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7021       enable_decimal_float=no
7022       ;;
7023     esac
7024   fi
7025
7026 else
7027   enable_decimal_float=no
7028 fi;
7029
7030
7031
7032 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7033
7034 cat >>confdefs.h <<_ACEOF
7035 #define ENABLE_DECIMAL_FLOAT $dfp
7036 _ACEOF
7037
7038
7039 # Enable threads
7040 # Pass with no value to take the default
7041 # Pass with a value to specify a thread package
7042 # Check whether --enable-threads or --disable-threads was given.
7043 if test "${enable_threads+set}" = set; then
7044   enableval="$enable_threads"
7045
7046 else
7047   enable_threads=''
7048 fi;
7049
7050 # Check whether --enable-tls or --disable-tls was given.
7051 if test "${enable_tls+set}" = set; then
7052   enableval="$enable_tls"
7053
7054   case $enable_tls in
7055     yes | no) ;;
7056     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7057 Valid choices are 'yes' and 'no'." >&5
7058 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7059 Valid choices are 'yes' and 'no'." >&2;}
7060    { (exit 1); exit 1; }; } ;;
7061   esac
7062
7063 else
7064   enable_tls=''
7065 fi;
7066
7067 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7068 if test "${enable_objc_gc+set}" = set; then
7069   enableval="$enable_objc_gc"
7070   if test x$enable_objc_gc = xno; then
7071         objc_boehm_gc=''
7072 else
7073         objc_boehm_gc=1
7074 fi
7075 else
7076   objc_boehm_gc=''
7077 fi;
7078
7079
7080 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7081 if test "${with_dwarf2+set}" = set; then
7082   withval="$with_dwarf2"
7083   dwarf2="$with_dwarf2"
7084 else
7085   dwarf2=no
7086 fi;
7087
7088 # Check whether --enable-shared or --disable-shared was given.
7089 if test "${enable_shared+set}" = set; then
7090   enableval="$enable_shared"
7091
7092   case $enable_shared in
7093   yes | no) ;;
7094   *)
7095     enable_shared=no
7096     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7097     for pkg in $enableval; do
7098       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7099         enable_shared=yes
7100       fi
7101     done
7102     IFS="$ac_save_ifs"
7103     ;;
7104   esac
7105
7106 else
7107   enable_shared=yes
7108 fi;
7109
7110
7111
7112 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7113 if test "${with_build_sysroot+set}" = set; then
7114   withval="$with_build_sysroot"
7115
7116 fi;
7117
7118
7119 # Check whether --with-sysroot or --without-sysroot was given.
7120 if test "${with_sysroot+set}" = set; then
7121   withval="$with_sysroot"
7122
7123  case ${with_sysroot} in
7124  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7125  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7126  esac
7127
7128  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7129  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7130
7131  if test "x$exec_prefix" = xNONE; then
7132   if test "x$prefix" = xNONE; then
7133    test_prefix=/usr/local
7134   else
7135    test_prefix=$prefix
7136   fi
7137  else
7138   test_prefix=$exec_prefix
7139  fi
7140  case ${TARGET_SYSTEM_ROOT} in
7141  "${test_prefix}"|"${test_prefix}/"*|\
7142  '${exec_prefix}'|'${exec_prefix}/'*)
7143    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7144    TARGET_SYSTEM_ROOT_DEFINE="$t"
7145    ;;
7146  esac
7147
7148 else
7149
7150  TARGET_SYSTEM_ROOT=
7151  TARGET_SYSTEM_ROOT_DEFINE=
7152  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7153
7154 fi;
7155
7156
7157
7158
7159 # Build with intermodule optimisations
7160 # Check whether --enable-intermodule or --disable-intermodule was given.
7161 if test "${enable_intermodule+set}" = set; then
7162   enableval="$enable_intermodule"
7163   case ${enable_intermodule} in
7164   yes) onestep="-onestep";;
7165   *) onestep="";;
7166 esac
7167 else
7168   onestep=""
7169 fi;
7170
7171
7172 # Sanity check enable_languages in case someone does not run the toplevel
7173 # configure # script.
7174 # Check whether --enable-languages or --disable-languages was given.
7175 if test "${enable_languages+set}" = set; then
7176   enableval="$enable_languages"
7177   case ,${enable_languages}, in
7178        ,,|,yes,)
7179                 # go safe -- we cannot be much sure without the toplevel
7180                 # configure's
7181                 # analysis of which target libs are present and usable
7182                 enable_languages=c
7183                 ;;
7184          *,all,*)
7185                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7186 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7187    { (exit 1); exit 1; }; }
7188                 ;;
7189         *,c,*)
7190                 ;;
7191         *)
7192                 enable_languages=c,${enable_languages}
7193                 ;;
7194 esac
7195 else
7196   enable_languages=c
7197 fi;
7198
7199 # Used by documentation targets
7200
7201
7202
7203
7204 # -------------------------
7205 # Checks for other programs
7206 # -------------------------
7207
7208 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7209 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7210 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7211 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   cat >conftest.make <<\_ACEOF
7215 all:
7216         @echo 'ac_maketemp="$(MAKE)"'
7217 _ACEOF
7218 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7219 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7220 if test -n "$ac_maketemp"; then
7221   eval ac_cv_prog_make_${ac_make}_set=yes
7222 else
7223   eval ac_cv_prog_make_${ac_make}_set=no
7224 fi
7225 rm -f conftest.make
7226 fi
7227 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7228   echo "$as_me:$LINENO: result: yes" >&5
7229 echo "${ECHO_T}yes" >&6
7230   SET_MAKE=
7231 else
7232   echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6
7234   SET_MAKE="MAKE=${MAKE-make}"
7235 fi
7236
7237
7238 # Find some useful tools
7239 for ac_prog in gawk mawk nawk awk
7240 do
7241   # Extract the first word of "$ac_prog", so it can be a program name with args.
7242 set dummy $ac_prog; ac_word=$2
7243 echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7245 if test "${ac_cv_prog_AWK+set}" = set; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   if test -n "$AWK"; then
7249   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256   for ac_exec_ext in '' $ac_executable_extensions; do
7257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258     ac_cv_prog_AWK="$ac_prog"
7259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263 done
7264
7265 fi
7266 fi
7267 AWK=$ac_cv_prog_AWK
7268 if test -n "$AWK"; then
7269   echo "$as_me:$LINENO: result: $AWK" >&5
7270 echo "${ECHO_T}$AWK" >&6
7271 else
7272   echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6
7274 fi
7275
7276   test -n "$AWK" && break
7277 done
7278
7279 # We need awk to create options.c and options.h.
7280 # Bail out if it's missing.
7281 case ${AWK} in
7282   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7283 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7284    { (exit 1); exit 1; }; } ;;
7285 esac
7286
7287 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7288 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7289 if test "${gcc_cv_prog_LN_S+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   rm -f conftestdata_t
7293 echo >conftestdata_f
7294 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7295 then
7296   gcc_cv_prog_LN_S="ln -s"
7297 else
7298   if ln conftestdata_f conftestdata_t 2>/dev/null
7299   then
7300     gcc_cv_prog_LN_S=ln
7301   else
7302     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7303     then
7304       gcc_cv_prog_LN_S="cp -p"
7305     else
7306       gcc_cv_prog_LN_S=cp
7307     fi
7308   fi
7309 fi
7310 rm -f conftestdata_f conftestdata_t
7311
7312 fi
7313 LN_S="$gcc_cv_prog_LN_S"
7314 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7315   echo "$as_me:$LINENO: result: yes" >&5
7316 echo "${ECHO_T}yes" >&6
7317 else
7318   if test "$gcc_cv_prog_LN_S" = "ln"; then
7319     echo "$as_me:$LINENO: result: no, using ln" >&5
7320 echo "${ECHO_T}no, using ln" >&6
7321   else
7322     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7323 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7324   fi
7325 fi
7326
7327 echo "$as_me:$LINENO: checking whether ln works" >&5
7328 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7329 if test "${acx_cv_prog_LN+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   rm -f conftestdata_t
7333 echo >conftestdata_f
7334 if ln conftestdata_f conftestdata_t 2>/dev/null
7335 then
7336   acx_cv_prog_LN=ln
7337 else
7338   acx_cv_prog_LN=no
7339 fi
7340 rm -f conftestdata_f conftestdata_t
7341
7342 fi
7343 if test $acx_cv_prog_LN = no; then
7344   LN="$LN_S"
7345   echo "$as_me:$LINENO: result: no, using $LN" >&5
7346 echo "${ECHO_T}no, using $LN" >&6
7347 else
7348   LN="$acx_cv_prog_LN"
7349   echo "$as_me:$LINENO: result: yes" >&5
7350 echo "${ECHO_T}yes" >&6
7351 fi
7352
7353 if test -n "$ac_tool_prefix"; then
7354   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7356 echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7358 if test "${ac_cv_prog_RANLIB+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   if test -n "$RANLIB"; then
7362   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369   for ac_exec_ext in '' $ac_executable_extensions; do
7370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376 done
7377
7378 fi
7379 fi
7380 RANLIB=$ac_cv_prog_RANLIB
7381 if test -n "$RANLIB"; then
7382   echo "$as_me:$LINENO: result: $RANLIB" >&5
7383 echo "${ECHO_T}$RANLIB" >&6
7384 else
7385   echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6
7387 fi
7388
7389 fi
7390 if test -z "$ac_cv_prog_RANLIB"; then
7391   ac_ct_RANLIB=$RANLIB
7392   # Extract the first word of "ranlib", so it can be a program name with args.
7393 set dummy ranlib; ac_word=$2
7394 echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7396 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   if test -n "$ac_ct_RANLIB"; then
7400   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407   for ac_exec_ext in '' $ac_executable_extensions; do
7408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409     ac_cv_prog_ac_ct_RANLIB="ranlib"
7410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414 done
7415
7416   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7417 fi
7418 fi
7419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7420 if test -n "$ac_ct_RANLIB"; then
7421   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7422 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7423 else
7424   echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6
7426 fi
7427
7428   RANLIB=$ac_ct_RANLIB
7429 else
7430   RANLIB="$ac_cv_prog_RANLIB"
7431 fi
7432
7433 case "${host}" in
7434 *-*-darwin*)
7435   # By default, the Darwin ranlib will not treat common symbols as
7436   # definitions when  building the archive table of contents.  Other
7437   # ranlibs do that; pass an option to the Darwin ranlib that makes
7438   # it behave similarly.
7439   ranlib_flags="-c"
7440   ;;
7441 *)
7442   ranlib_flags=""
7443 esac
7444
7445
7446 # Find a good install program.  We prefer a C program (faster),
7447 # so one script is as good as another.  But avoid the broken or
7448 # incompatible versions:
7449 # SysV /etc/install, /usr/sbin/install
7450 # SunOS /usr/etc/install
7451 # IRIX /sbin/install
7452 # AIX /bin/install
7453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7455 # ./install, which can be erroneously created by make from ./install.sh.
7456 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7457 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7458 if test -z "$INSTALL"; then
7459 if test "${ac_cv_path_install+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7463   for ac_dir in $PATH; do
7464     # Account for people who put trailing slashes in PATH elements.
7465     case "$ac_dir/" in
7466     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7467     *)
7468       # OSF1 and SCO ODT 3.0 have their own names for install.
7469       for ac_prog in ginstall scoinst install; do
7470         if test -f $ac_dir/$ac_prog; then
7471           if test $ac_prog = install &&
7472             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7473             # AIX install.  It has an incompatible calling convention.
7474             # OSF/1 installbsd also uses dspmsg, but is usable.
7475             :
7476           else
7477             ac_cv_path_install="$ac_dir/$ac_prog -c"
7478             break 2
7479           fi
7480         fi
7481       done
7482       ;;
7483     esac
7484   done
7485   IFS="$ac_save_IFS"
7486
7487 fi
7488   if test "${ac_cv_path_install+set}" = set; then
7489     INSTALL="$ac_cv_path_install"
7490   else
7491     # As a last resort, use the slow shell script.  We don't cache a
7492     # path for INSTALL within a source directory, because that will
7493     # break other packages using the cache if that directory is
7494     # removed, or if the path is relative.
7495     INSTALL="$ac_install_sh"
7496   fi
7497 fi
7498 echo "$as_me:$LINENO: result: $INSTALL" >&5
7499 echo "${ECHO_T}$INSTALL" >&6
7500
7501 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7502 # It thinks the first close brace ends the variable substitution.
7503 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7504
7505 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7506
7507
7508 # See if cmp has --ignore-initial.
7509 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7510 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7511 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514    echo abfoo >t1
7515   echo cdfoo >t2
7516   gcc_cv_prog_cmp_skip=slowcompare
7517   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7518     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7519       :
7520     else
7521       gcc_cv_prog_cmp_skip=gnucompare
7522     fi
7523   fi
7524   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7525     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7526       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7527         :
7528       else
7529         gcc_cv_prog_cmp_skip=fastcompare
7530       fi
7531     fi
7532   fi
7533   rm t1 t2
7534
7535 fi
7536 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7537 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7538 make_compare_target=$gcc_cv_prog_cmp_skip
7539
7540
7541
7542 # See if we have the mktemp command.
7543 # Extract the first word of "mktemp", so it can be a program name with args.
7544 set dummy mktemp; ac_word=$2
7545 echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   if test -n "$have_mktemp_command"; then
7551   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560     ac_cv_prog_have_mktemp_command="yes"
7561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565 done
7566
7567   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7568 fi
7569 fi
7570 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7571 if test -n "$have_mktemp_command"; then
7572   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7573 echo "${ECHO_T}$have_mktemp_command" >&6
7574 else
7575   echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7577 fi
7578
7579
7580 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7581
7582 # See if makeinfo has been installed and is modern enough
7583 # that we can use it.
7584
7585 ac_executable_extensions="$build_exeext"
7586
7587 # Extract the first word of "makeinfo", so it can be a program name with args.
7588 set dummy makeinfo; ac_word=$2
7589 echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7591 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7592   echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594   if test -n "$MAKEINFO"; then
7595   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604     ac_cv_prog_MAKEINFO="makeinfo"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610
7611 fi
7612 fi
7613 MAKEINFO=$ac_cv_prog_MAKEINFO
7614 if test -n "$MAKEINFO"; then
7615   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7616 echo "${ECHO_T}$MAKEINFO" >&6
7617 else
7618   echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6
7620 fi
7621
7622 if test -n "$MAKEINFO"; then
7623   # Found it, now check the version.
7624   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7625 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7626 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629     ac_prog_version=`$MAKEINFO --version 2>&1 |
7630                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7631   echo "configure:7631: version of makeinfo is $ac_prog_version" >&5
7632   case $ac_prog_version in
7633     '')     gcc_cv_prog_makeinfo_modern=no;;
7634     4.[4-9]*)
7635             gcc_cv_prog_makeinfo_modern=yes;;
7636     *)      gcc_cv_prog_makeinfo_modern=no;;
7637   esac
7638
7639 fi
7640 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7641 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7642 else
7643   gcc_cv_prog_makeinfo_modern=no
7644 fi
7645
7646 if test $gcc_cv_prog_makeinfo_modern = no; then
7647   MAKEINFO="$MISSING makeinfo"
7648   { echo "$as_me:$LINENO: WARNING:
7649 *** Makeinfo is missing or too old.
7650 *** Info documentation will not be built." >&5
7651 echo "$as_me: WARNING:
7652 *** Makeinfo is missing or too old.
7653 *** Info documentation will not be built." >&2;}
7654   BUILD_INFO=
7655 else
7656   BUILD_INFO=info
7657 fi
7658
7659
7660 # Is pod2man recent enough to regenerate manpages?
7661 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7662 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7663 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7664   echo "$as_me:$LINENO: result: yes" >&5
7665 echo "${ECHO_T}yes" >&6
7666   GENERATED_MANPAGES=generated-manpages
7667 else
7668   echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7670   GENERATED_MANPAGES=
7671 fi
7672
7673
7674 # How about lex?
7675 for ac_prog in flex
7676 do
7677   # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy $ac_prog; ac_word=$2
7679 echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7681 if test "${ac_cv_prog_FLEX+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   if test -n "$FLEX"; then
7685   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692   for ac_exec_ext in '' $ac_executable_extensions; do
7693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694     ac_cv_prog_FLEX="$ac_prog"
7695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699 done
7700
7701 fi
7702 fi
7703 FLEX=$ac_cv_prog_FLEX
7704 if test -n "$FLEX"; then
7705   echo "$as_me:$LINENO: result: $FLEX" >&5
7706 echo "${ECHO_T}$FLEX" >&6
7707 else
7708   echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7710 fi
7711
7712   test -n "$FLEX" && break
7713 done
7714 test -n "$FLEX" || FLEX="$MISSING flex"
7715
7716
7717 # Bison?
7718 for ac_prog in bison
7719 do
7720   # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7724 if test "${ac_cv_prog_BISON+set}" = set; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   if test -n "$BISON"; then
7728   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735   for ac_exec_ext in '' $ac_executable_extensions; do
7736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737     ac_cv_prog_BISON="$ac_prog"
7738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739     break 2
7740   fi
7741 done
7742 done
7743
7744 fi
7745 fi
7746 BISON=$ac_cv_prog_BISON
7747 if test -n "$BISON"; then
7748   echo "$as_me:$LINENO: result: $BISON" >&5
7749 echo "${ECHO_T}$BISON" >&6
7750 else
7751   echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6
7753 fi
7754
7755   test -n "$BISON" && break
7756 done
7757 test -n "$BISON" || BISON="$MISSING bison"
7758
7759
7760 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7761 # check for build == host before using them.
7762
7763 # NM
7764 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7765   && test -d ../binutils ; then
7766   NM='$(objdir)/../binutils/nm-new'
7767 else
7768   # Extract the first word of "nm", so it can be a program name with args.
7769 set dummy nm; ac_word=$2
7770 echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7772 if test "${ac_cv_prog_NM+set}" = set; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775   if test -n "$NM"; then
7776   ac_cv_prog_NM="$NM" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781   IFS=$as_save_IFS
7782   test -z "$as_dir" && as_dir=.
7783   for ac_exec_ext in '' $ac_executable_extensions; do
7784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785     ac_cv_prog_NM="nm"
7786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787     break 2
7788   fi
7789 done
7790 done
7791
7792   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7793 fi
7794 fi
7795 NM=$ac_cv_prog_NM
7796 if test -n "$NM"; then
7797   echo "$as_me:$LINENO: result: $NM" >&5
7798 echo "${ECHO_T}$NM" >&6
7799 else
7800   echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6
7802 fi
7803
7804 fi
7805
7806 # AR
7807 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7808   && test -d ../binutils ; then
7809   AR='$(objdir)/../binutils/ar'
7810 else
7811   # Extract the first word of "ar", so it can be a program name with args.
7812 set dummy ar; ac_word=$2
7813 echo "$as_me:$LINENO: checking for $ac_word" >&5
7814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7815 if test "${ac_cv_prog_AR+set}" = set; then
7816   echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818   if test -n "$AR"; then
7819   ac_cv_prog_AR="$AR" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824   IFS=$as_save_IFS
7825   test -z "$as_dir" && as_dir=.
7826   for ac_exec_ext in '' $ac_executable_extensions; do
7827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828     ac_cv_prog_AR="ar"
7829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830     break 2
7831   fi
7832 done
7833 done
7834
7835   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7836 fi
7837 fi
7838 AR=$ac_cv_prog_AR
7839 if test -n "$AR"; then
7840   echo "$as_me:$LINENO: result: $AR" >&5
7841 echo "${ECHO_T}$AR" >&6
7842 else
7843   echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6
7845 fi
7846
7847 fi
7848
7849
7850 # --------------------
7851 # Checks for C headers
7852 # --------------------
7853
7854 echo "$as_me:$LINENO: checking for GNU C library" >&5
7855 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7856 if test "${gcc_cv_glibc+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h.  */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h.  */
7865 #include <features.h>
7866 int
7867 main ()
7868 {
7869
7870 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7871 #error Not a GNU C library system
7872 #endif
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879   (eval $ac_compile) 2>conftest.er1
7880   ac_status=$?
7881   grep -v '^ *+' conftest.er1 >conftest.err
7882   rm -f conftest.er1
7883   cat conftest.err >&5
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } &&
7886          { ac_try='test -z "$ac_c_werror_flag"
7887                          || test ! -s conftest.err'
7888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889   (eval $ac_try) 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; } &&
7893          { ac_try='test -s conftest.$ac_objext'
7894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895   (eval $ac_try) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; }; then
7899   gcc_cv_glibc=yes
7900 else
7901   echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904 gcc_cv_glibc=no
7905 fi
7906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7907 fi
7908
7909 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7910 echo "${ECHO_T}$gcc_cv_glibc" >&6
7911 if test $gcc_cv_glibc = yes; then
7912
7913 cat >>confdefs.h <<\_ACEOF
7914 #define _GNU_SOURCE 1
7915 _ACEOF
7916
7917 fi
7918
7919 # Need to reject headers which give warnings, so that the -Werror bootstrap
7920 # works later. *sigh*  This needs to come before all header checks.
7921
7922 ac_c_preproc_warn_flag=yes
7923
7924 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7926 if test "${ac_cv_header_stdc+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h.  */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h.  */
7935 #include <stdlib.h>
7936 #include <stdarg.h>
7937 #include <string.h>
7938 #include <float.h>
7939
7940 int
7941 main ()
7942 {
7943
7944   ;
7945   return 0;
7946 }
7947 _ACEOF
7948 rm -f conftest.$ac_objext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7950   (eval $ac_compile) 2>conftest.er1
7951   ac_status=$?
7952   grep -v '^ *+' conftest.er1 >conftest.err
7953   rm -f conftest.er1
7954   cat conftest.err >&5
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); } &&
7957          { ac_try='test -z "$ac_c_werror_flag"
7958                          || test ! -s conftest.err'
7959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960   (eval $ac_try) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); }; } &&
7964          { ac_try='test -s conftest.$ac_objext'
7965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966   (eval $ac_try) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   ac_cv_header_stdc=yes
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 ac_cv_header_stdc=no
7976 fi
7977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7978
7979 if test $ac_cv_header_stdc = yes; then
7980   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7981   cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h.  */
7987 #include <string.h>
7988
7989 _ACEOF
7990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991   $EGREP "memchr" >/dev/null 2>&1; then
7992   :
7993 else
7994   ac_cv_header_stdc=no
7995 fi
7996 rm -f conftest*
7997
7998 fi
7999
8000 if test $ac_cv_header_stdc = yes; then
8001   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8002   cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h.  */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h.  */
8008 #include <stdlib.h>
8009
8010 _ACEOF
8011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8012   $EGREP "free" >/dev/null 2>&1; then
8013   :
8014 else
8015   ac_cv_header_stdc=no
8016 fi
8017 rm -f conftest*
8018
8019 fi
8020
8021 if test $ac_cv_header_stdc = yes; then
8022   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8023   if test "$cross_compiling" = yes; then
8024   :
8025 else
8026   cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032 #include <ctype.h>
8033 #if ((' ' & 0x0FF) == 0x020)
8034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8036 #else
8037 # define ISLOWER(c) \
8038                    (('a' <= (c) && (c) <= 'i') \
8039                      || ('j' <= (c) && (c) <= 'r') \
8040                      || ('s' <= (c) && (c) <= 'z'))
8041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8042 #endif
8043
8044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8045 int
8046 main ()
8047 {
8048   int i;
8049   for (i = 0; i < 256; i++)
8050     if (XOR (islower (i), ISLOWER (i))
8051         || toupper (i) != TOUPPER (i))
8052       exit(2);
8053   exit (0);
8054 }
8055 _ACEOF
8056 rm -f conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058   (eval $ac_link) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; }; then
8067   :
8068 else
8069   echo "$as_me: program exited with status $ac_status" >&5
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073 ( exit $ac_status )
8074 ac_cv_header_stdc=no
8075 fi
8076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8077 fi
8078 fi
8079 fi
8080 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8081 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8082 if test $ac_cv_header_stdc = yes; then
8083
8084 cat >>confdefs.h <<\_ACEOF
8085 #define STDC_HEADERS 1
8086 _ACEOF
8087
8088 fi
8089
8090 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8091 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8092 if test "${ac_cv_header_time+set}" = set; then
8093   echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095   cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h.  */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h.  */
8101 #include <sys/types.h>
8102 #include <sys/time.h>
8103 #include <time.h>
8104
8105 int
8106 main ()
8107 {
8108 if ((struct tm *) 0)
8109 return 0;
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116   (eval $ac_compile) 2>conftest.er1
8117   ac_status=$?
8118   grep -v '^ *+' conftest.er1 >conftest.err
8119   rm -f conftest.er1
8120   cat conftest.err >&5
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); } &&
8123          { ac_try='test -z "$ac_c_werror_flag"
8124                          || test ! -s conftest.err'
8125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126   (eval $ac_try) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; } &&
8130          { ac_try='test -s conftest.$ac_objext'
8131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132   (eval $ac_try) 2>&5
8133   ac_status=$?
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); }; }; then
8136   ac_cv_header_time=yes
8137 else
8138   echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8140
8141 ac_cv_header_time=no
8142 fi
8143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 fi
8145 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8146 echo "${ECHO_T}$ac_cv_header_time" >&6
8147 if test $ac_cv_header_time = yes; then
8148
8149 cat >>confdefs.h <<\_ACEOF
8150 #define TIME_WITH_SYS_TIME 1
8151 _ACEOF
8152
8153 fi
8154
8155 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8156 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8157 if test "${gcc_cv_header_string+set}" = set; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166 #include <string.h>
8167 #include <strings.h>
8168 int
8169 main ()
8170 {
8171
8172   ;
8173   return 0;
8174 }
8175 _ACEOF
8176 rm -f conftest.$ac_objext
8177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8178   (eval $ac_compile) 2>conftest.er1
8179   ac_status=$?
8180   grep -v '^ *+' conftest.er1 >conftest.err
8181   rm -f conftest.er1
8182   cat conftest.err >&5
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } &&
8185          { ac_try='test -z "$ac_c_werror_flag"
8186                          || test ! -s conftest.err'
8187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188   (eval $ac_try) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; } &&
8192          { ac_try='test -s conftest.$ac_objext'
8193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194   (eval $ac_try) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; }; then
8198   gcc_cv_header_string=yes
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 gcc_cv_header_string=no
8204 fi
8205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8206 fi
8207 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8208 echo "${ECHO_T}$gcc_cv_header_string" >&6
8209 if test $gcc_cv_header_string = yes; then
8210
8211 cat >>confdefs.h <<\_ACEOF
8212 #define STRING_WITH_STRINGS 1
8213 _ACEOF
8214
8215 fi
8216
8217 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8218 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8219 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h.  */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h.  */
8228 #include <sys/types.h>
8229 #include <sys/wait.h>
8230 #ifndef WEXITSTATUS
8231 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8232 #endif
8233 #ifndef WIFEXITED
8234 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8235 #endif
8236
8237 int
8238 main ()
8239 {
8240   int s;
8241   wait (&s);
8242   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8243   ;
8244   return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249   (eval $ac_compile) 2>conftest.er1
8250   ac_status=$?
8251   grep -v '^ *+' conftest.er1 >conftest.err
8252   rm -f conftest.er1
8253   cat conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } &&
8256          { ac_try='test -z "$ac_c_werror_flag"
8257                          || test ! -s conftest.err'
8258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259   (eval $ac_try) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); }; } &&
8263          { ac_try='test -s conftest.$ac_objext'
8264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265   (eval $ac_try) 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; }; then
8269   ac_cv_header_sys_wait_h=yes
8270 else
8271   echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 ac_cv_header_sys_wait_h=no
8275 fi
8276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8277 fi
8278 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8279 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8280 if test $ac_cv_header_sys_wait_h = yes; then
8281
8282 cat >>confdefs.h <<\_ACEOF
8283 #define HAVE_SYS_WAIT_H 1
8284 _ACEOF
8285
8286 fi
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8311                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8312                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8313                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8314 do
8315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8316 echo "$as_me:$LINENO: checking for $ac_header" >&5
8317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321   cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327 #include <$ac_header>
8328 _ACEOF
8329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8331   ac_status=$?
8332   grep -v '^ *+' conftest.er1 >conftest.err
8333   rm -f conftest.er1
8334   cat conftest.err >&5
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } >/dev/null; then
8337   if test -s conftest.err; then
8338     ac_cpp_err=$ac_c_preproc_warn_flag
8339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8340   else
8341     ac_cpp_err=
8342   fi
8343 else
8344   ac_cpp_err=yes
8345 fi
8346 if test -z "$ac_cpp_err"; then
8347   eval "$as_ac_Header=yes"
8348 else
8349   echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8351
8352   eval "$as_ac_Header=no"
8353 fi
8354 rm -f conftest.err conftest.$ac_ext
8355 fi
8356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8359   cat >>confdefs.h <<_ACEOF
8360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8361 _ACEOF
8362
8363 fi
8364 done
8365
8366
8367 # Check for thread headers.
8368 echo "$as_me:$LINENO: checking for thread.h" >&5
8369 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8370 if test "${ac_cv_header_thread_h+set}" = set; then
8371   echo $ECHO_N "(cached) $ECHO_C" >&6
8372 else
8373   cat >conftest.$ac_ext <<_ACEOF
8374 /* confdefs.h.  */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h.  */
8379 #include <thread.h>
8380 _ACEOF
8381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8383   ac_status=$?
8384   grep -v '^ *+' conftest.er1 >conftest.err
8385   rm -f conftest.er1
8386   cat conftest.err >&5
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); } >/dev/null; then
8389   if test -s conftest.err; then
8390     ac_cpp_err=$ac_c_preproc_warn_flag
8391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8392   else
8393     ac_cpp_err=
8394   fi
8395 else
8396   ac_cpp_err=yes
8397 fi
8398 if test -z "$ac_cpp_err"; then
8399   ac_cv_header_thread_h=yes
8400 else
8401   echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8403
8404   ac_cv_header_thread_h=no
8405 fi
8406 rm -f conftest.err conftest.$ac_ext
8407 fi
8408 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8409 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8410 if test $ac_cv_header_thread_h = yes; then
8411   have_thread_h=yes
8412 else
8413   have_thread_h=
8414 fi
8415
8416 echo "$as_me:$LINENO: checking for pthread.h" >&5
8417 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8418 if test "${ac_cv_header_pthread_h+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427 #include <pthread.h>
8428 _ACEOF
8429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8431   ac_status=$?
8432   grep -v '^ *+' conftest.er1 >conftest.err
8433   rm -f conftest.er1
8434   cat conftest.err >&5
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } >/dev/null; then
8437   if test -s conftest.err; then
8438     ac_cpp_err=$ac_c_preproc_warn_flag
8439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8440   else
8441     ac_cpp_err=
8442   fi
8443 else
8444   ac_cpp_err=yes
8445 fi
8446 if test -z "$ac_cpp_err"; then
8447   ac_cv_header_pthread_h=yes
8448 else
8449   echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452   ac_cv_header_pthread_h=no
8453 fi
8454 rm -f conftest.err conftest.$ac_ext
8455 fi
8456 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8457 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8458 if test $ac_cv_header_pthread_h = yes; then
8459   have_pthread_h=yes
8460 else
8461   have_pthread_h=
8462 fi
8463
8464
8465 # These tests can't be done till we know if we have limits.h.
8466 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8467 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8468 if test "${gcc_cv_decl_char_bit+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   cat >conftest.$ac_ext <<_ACEOF
8472 /* confdefs.h.  */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h.  */
8477 #ifdef HAVE_LIMITS_H
8478 #include <limits.h>
8479 #endif
8480 #ifdef CHAR_BIT
8481 found
8482 #endif
8483 _ACEOF
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485   $EGREP "found" >/dev/null 2>&1; then
8486   gcc_cv_decl_char_bit=yes
8487 else
8488   gcc_cv_decl_char_bit=no
8489 fi
8490 rm -f conftest*
8491
8492
8493 fi
8494 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8495 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8496 if test $gcc_cv_decl_char_bit = no; then
8497   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8498 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8499 if test "${gcc_cv_c_nbby+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   i=8
8503  gcc_cv_c_nbby=
8504  while test $i -lt 65; do
8505    cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h.  */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h.  */
8511
8512 int
8513 main ()
8514 {
8515 switch(0) {
8516   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8517   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8518   ; }
8519   ;
8520   return 0;
8521 }
8522 _ACEOF
8523 rm -f conftest.$ac_objext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8525   (eval $ac_compile) 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } &&
8532          { ac_try='test -z "$ac_c_werror_flag"
8533                          || test ! -s conftest.err'
8534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535   (eval $ac_try) 2>&5
8536   ac_status=$?
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); }; } &&
8539          { ac_try='test -s conftest.$ac_objext'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; }; then
8545   gcc_cv_c_nbby=$i; break
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550 fi
8551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8552    i=`expr $i + 1`
8553  done
8554  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8555
8556 fi
8557 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8558 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8559 if test $gcc_cv_c_nbby = failed; then
8560   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8561 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8562    { (exit 1); exit 1; }; }
8563 else
8564
8565 cat >>confdefs.h <<_ACEOF
8566 #define CHAR_BIT $gcc_cv_c_nbby
8567 _ACEOF
8568
8569 fi
8570 fi
8571 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8572 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8573 if test "${ac_cv_c_bigendian+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   # See if sys/param.h defines the BYTE_ORDER macro.
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583 #include <sys/types.h>
8584 #include <sys/param.h>
8585
8586 int
8587 main ()
8588 {
8589 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8590  bogus endian macros
8591 #endif
8592
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 rm -f conftest.$ac_objext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599   (eval $ac_compile) 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } &&
8606          { ac_try='test -z "$ac_c_werror_flag"
8607                          || test ! -s conftest.err'
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); }; } &&
8613          { ac_try='test -s conftest.$ac_objext'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; }; then
8619   # It does; now see whether it defined to BIG_ENDIAN or not.
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h.  */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h.  */
8626 #include <sys/types.h>
8627 #include <sys/param.h>
8628
8629 int
8630 main ()
8631 {
8632 #if BYTE_ORDER != BIG_ENDIAN
8633  not big endian
8634 #endif
8635
8636   ;
8637   return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8642   (eval $ac_compile) 2>conftest.er1
8643   ac_status=$?
8644   grep -v '^ *+' conftest.er1 >conftest.err
8645   rm -f conftest.er1
8646   cat conftest.err >&5
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); } &&
8649          { ac_try='test -z "$ac_c_werror_flag"
8650                          || test ! -s conftest.err'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; } &&
8656          { ac_try='test -s conftest.$ac_objext'
8657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658   (eval $ac_try) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); }; }; then
8662   ac_cv_c_bigendian=yes
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667 ac_cv_c_bigendian=no
8668 fi
8669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 # It does not; compile a test program.
8675 if test "$cross_compiling" = yes; then
8676   # try to guess the endianness by grepping values into an object file
8677   ac_cv_c_bigendian=unknown
8678   cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8685 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8686 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8687 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8688 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8689 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8690 int
8691 main ()
8692 {
8693  _ascii (); _ebcdic ();
8694   ;
8695   return 0;
8696 }
8697 _ACEOF
8698 rm -f conftest.$ac_objext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700   (eval $ac_compile) 2>conftest.er1
8701   ac_status=$?
8702   grep -v '^ *+' conftest.er1 >conftest.err
8703   rm -f conftest.er1
8704   cat conftest.err >&5
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } &&
8707          { ac_try='test -z "$ac_c_werror_flag"
8708                          || test ! -s conftest.err'
8709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710   (eval $ac_try) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; } &&
8714          { ac_try='test -s conftest.$ac_objext'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; }; then
8720   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8721   ac_cv_c_bigendian=yes
8722 fi
8723 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8724   if test "$ac_cv_c_bigendian" = unknown; then
8725     ac_cv_c_bigendian=no
8726   else
8727     # finding both strings is unlikely to happen, but who knows?
8728     ac_cv_c_bigendian=unknown
8729   fi
8730 fi
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 fi
8736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8737 else
8738   cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h.  */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h.  */
8744 int
8745 main ()
8746 {
8747   /* Are we little or big endian?  From Harbison&Steele.  */
8748   union
8749   {
8750     long l;
8751     char c[sizeof (long)];
8752   } u;
8753   u.l = 1;
8754   exit (u.c[sizeof (long) - 1] == 1);
8755 }
8756 _ACEOF
8757 rm -f conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759   (eval $ac_link) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; }; then
8768   ac_cv_c_bigendian=no
8769 else
8770   echo "$as_me: program exited with status $ac_status" >&5
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 ( exit $ac_status )
8775 ac_cv_c_bigendian=yes
8776 fi
8777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8778 fi
8779 fi
8780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8781 fi
8782 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8783 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8784 case $ac_cv_c_bigendian in
8785   yes)
8786
8787 cat >>confdefs.h <<\_ACEOF
8788 #define WORDS_BIGENDIAN 1
8789 _ACEOF
8790  ;;
8791   no)
8792      ;;
8793   *)
8794     { { echo "$as_me:$LINENO: error: unknown endianness
8795 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8796 echo "$as_me: error: unknown endianness
8797 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8798    { (exit 1); exit 1; }; } ;;
8799 esac
8800
8801
8802 # --------
8803 # UNSORTED
8804 # --------
8805
8806 # Stage specific cflags for build.
8807 stage1_cflags=
8808 case $build in
8809 vax-*-*)
8810   if test x$GCC = xyes
8811   then
8812     stage1_cflags="-Wa,-J"
8813   else
8814     stage1_cflags="-J"
8815   fi
8816   ;;
8817 powerpc-*-darwin*)
8818   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8819   # sources; use -no-cpp-precomp to get to GNU cpp.
8820   # Apple's GCC has bugs in designated initializer handling, so disable
8821   # that too.
8822   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8823   ;;
8824 esac
8825
8826
8827 # These libraries may be used by collect2.
8828 # We may need a special search path to get them linked.
8829 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8830 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8831 if test "${gcc_cv_collect2_libs+set}" = set; then
8832   echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834   save_LIBS="$LIBS"
8835 for libs in '' -lld -lmld \
8836                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8837                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8838 do
8839         LIBS="$libs"
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
8847 /* Override any gcc2 internal prototype to avoid an error.  */
8848 #ifdef __cplusplus
8849 extern "C"
8850 #endif
8851 /* We use char because int might match the return type of a gcc2
8852    builtin and then its argument prototype would still apply.  */
8853 char ldopen ();
8854 int
8855 main ()
8856 {
8857 ldopen ();
8858   ;
8859   return 0;
8860 }
8861 _ACEOF
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864   (eval $ac_link) 2>conftest.er1
8865   ac_status=$?
8866   grep -v '^ *+' conftest.er1 >conftest.err
8867   rm -f conftest.er1
8868   cat conftest.err >&5
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); } &&
8871          { ac_try='test -z "$ac_c_werror_flag"
8872                          || test ! -s conftest.err'
8873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874   (eval $ac_try) 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); }; } &&
8878          { ac_try='test -s conftest$ac_exeext'
8879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880   (eval $ac_try) 2>&5
8881   ac_status=$?
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); }; }; then
8884   gcc_cv_collect2_libs="$libs"; break
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889 fi
8890 rm -f conftest.err conftest.$ac_objext \
8891       conftest$ac_exeext conftest.$ac_ext
8892 done
8893 LIBS="$save_LIBS"
8894 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8895 fi
8896 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8897 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8898 case $gcc_cv_collect2_libs in
8899         "none required")        ;;
8900         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8901 esac
8902
8903
8904 # When building Ada code on Alpha, we need exc_resume which is usually in
8905 # -lexc.  So test for it.
8906 save_LIBS="$LIBS"
8907 LIBS=
8908 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8909 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8910 if test "${ac_cv_search_exc_resume+set}" = set; then
8911   echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913   ac_func_search_save_LIBS=$LIBS
8914 ac_cv_search_exc_resume=no
8915 cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h.  */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h.  */
8921
8922 /* Override any gcc2 internal prototype to avoid an error.  */
8923 #ifdef __cplusplus
8924 extern "C"
8925 #endif
8926 /* We use char because int might match the return type of a gcc2
8927    builtin and then its argument prototype would still apply.  */
8928 char exc_resume ();
8929 int
8930 main ()
8931 {
8932 exc_resume ();
8933   ;
8934   return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939   (eval $ac_link) 2>conftest.er1
8940   ac_status=$?
8941   grep -v '^ *+' conftest.er1 >conftest.err
8942   rm -f conftest.er1
8943   cat conftest.err >&5
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } &&
8946          { ac_try='test -z "$ac_c_werror_flag"
8947                          || test ! -s conftest.err'
8948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949   (eval $ac_try) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }; } &&
8953          { ac_try='test -s conftest$ac_exeext'
8954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955   (eval $ac_try) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); }; }; then
8959   ac_cv_search_exc_resume="none required"
8960 else
8961   echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8963
8964 fi
8965 rm -f conftest.err conftest.$ac_objext \
8966       conftest$ac_exeext conftest.$ac_ext
8967 if test "$ac_cv_search_exc_resume" = no; then
8968   for ac_lib in exc; do
8969     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8970     cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h.  */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h.  */
8976
8977 /* Override any gcc2 internal prototype to avoid an error.  */
8978 #ifdef __cplusplus
8979 extern "C"
8980 #endif
8981 /* We use char because int might match the return type of a gcc2
8982    builtin and then its argument prototype would still apply.  */
8983 char exc_resume ();
8984 int
8985 main ()
8986 {
8987 exc_resume ();
8988   ;
8989   return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994   (eval $ac_link) 2>conftest.er1
8995   ac_status=$?
8996   grep -v '^ *+' conftest.er1 >conftest.err
8997   rm -f conftest.er1
8998   cat conftest.err >&5
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); } &&
9001          { ac_try='test -z "$ac_c_werror_flag"
9002                          || test ! -s conftest.err'
9003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004   (eval $ac_try) 2>&5
9005   ac_status=$?
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); }; } &&
9008          { ac_try='test -s conftest$ac_exeext'
9009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010   (eval $ac_try) 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); }; }; then
9014   ac_cv_search_exc_resume="-l$ac_lib"
9015 break
9016 else
9017   echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9019
9020 fi
9021 rm -f conftest.err conftest.$ac_objext \
9022       conftest$ac_exeext conftest.$ac_ext
9023   done
9024 fi
9025 LIBS=$ac_func_search_save_LIBS
9026 fi
9027 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9028 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9029 if test "$ac_cv_search_exc_resume" != no; then
9030   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9031
9032 fi
9033
9034 GNAT_LIBEXC="$LIBS"
9035 LIBS="$save_LIBS"
9036
9037
9038 # Some systems put ldexp and frexp in libm instead of libc; assume
9039 # they're both in the same place.  jcf-dump needs them.
9040 save_LIBS="$LIBS"
9041 LIBS=
9042 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9043 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9044 if test "${ac_cv_search_ldexp+set}" = set; then
9045   echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047   ac_func_search_save_LIBS=$LIBS
9048 ac_cv_search_ldexp=no
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h.  */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h.  */
9055
9056 /* Override any gcc2 internal prototype to avoid an error.  */
9057 #ifdef __cplusplus
9058 extern "C"
9059 #endif
9060 /* We use char because int might match the return type of a gcc2
9061    builtin and then its argument prototype would still apply.  */
9062 char ldexp ();
9063 int
9064 main ()
9065 {
9066 ldexp ();
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9073   (eval $ac_link) 2>conftest.er1
9074   ac_status=$?
9075   grep -v '^ *+' conftest.er1 >conftest.err
9076   rm -f conftest.er1
9077   cat conftest.err >&5
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } &&
9080          { ac_try='test -z "$ac_c_werror_flag"
9081                          || test ! -s conftest.err'
9082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083   (eval $ac_try) 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); }; } &&
9087          { ac_try='test -s conftest$ac_exeext'
9088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089   (eval $ac_try) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; }; then
9093   ac_cv_search_ldexp="none required"
9094 else
9095   echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098 fi
9099 rm -f conftest.err conftest.$ac_objext \
9100       conftest$ac_exeext conftest.$ac_ext
9101 if test "$ac_cv_search_ldexp" = no; then
9102   for ac_lib in m; do
9103     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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
9111 /* Override any gcc2 internal prototype to avoid an error.  */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 /* We use char because int might match the return type of a gcc2
9116    builtin and then its argument prototype would still apply.  */
9117 char ldexp ();
9118 int
9119 main ()
9120 {
9121 ldexp ();
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128   (eval $ac_link) 2>conftest.er1
9129   ac_status=$?
9130   grep -v '^ *+' conftest.er1 >conftest.err
9131   rm -f conftest.er1
9132   cat conftest.err >&5
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } &&
9135          { ac_try='test -z "$ac_c_werror_flag"
9136                          || test ! -s conftest.err'
9137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138   (eval $ac_try) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); }; } &&
9142          { ac_try='test -s conftest$ac_exeext'
9143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144   (eval $ac_try) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); }; }; then
9148   ac_cv_search_ldexp="-l$ac_lib"
9149 break
9150 else
9151   echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 fi
9155 rm -f conftest.err conftest.$ac_objext \
9156       conftest$ac_exeext conftest.$ac_ext
9157   done
9158 fi
9159 LIBS=$ac_func_search_save_LIBS
9160 fi
9161 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9162 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9163 if test "$ac_cv_search_ldexp" != no; then
9164   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9165
9166 fi
9167
9168 LDEXP_LIB="$LIBS"
9169 LIBS="$save_LIBS"
9170
9171
9172 # Use <inttypes.h> only if it exists,
9173 # doesn't clash with <sys/types.h>, and declares intmax_t.
9174 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9175 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9176 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9177   echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179   cat >conftest.$ac_ext <<_ACEOF
9180 /* confdefs.h.  */
9181 _ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h.  */
9185 #include <sys/types.h>
9186 #include <inttypes.h>
9187 int
9188 main ()
9189 {
9190 intmax_t i = -1;
9191   ;
9192   return 0;
9193 }
9194 _ACEOF
9195 rm -f conftest.$ac_objext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9197   (eval $ac_compile) 2>conftest.er1
9198   ac_status=$?
9199   grep -v '^ *+' conftest.er1 >conftest.err
9200   rm -f conftest.er1
9201   cat conftest.err >&5
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); } &&
9204          { ac_try='test -z "$ac_c_werror_flag"
9205                          || test ! -s conftest.err'
9206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207   (eval $ac_try) 2>&5
9208   ac_status=$?
9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210   (exit $ac_status); }; } &&
9211          { ac_try='test -s conftest.$ac_objext'
9212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213   (eval $ac_try) 2>&5
9214   ac_status=$?
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); }; }; then
9217   gcc_cv_header_inttypes_h=yes
9218 else
9219   echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 gcc_cv_header_inttypes_h=no
9223 fi
9224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9225 fi
9226
9227 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9228 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9229 if test $gcc_cv_header_inttypes_h = yes; then
9230
9231 cat >>confdefs.h <<\_ACEOF
9232 #define HAVE_INTTYPES_H 1
9233 _ACEOF
9234
9235 fi
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9275         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9276         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9277         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
9278 do
9279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9280 echo "$as_me:$LINENO: checking for $ac_func" >&5
9281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9282 if eval "test \"\${$as_ac_var+set}\" = set"; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285   cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9293 #define $ac_func innocuous_$ac_func
9294
9295 /* System header to define __stub macros and hopefully few prototypes,
9296     which can conflict with char $ac_func (); below.
9297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9298     <limits.h> exists even on freestanding compilers.  */
9299
9300 #ifdef __STDC__
9301 # include <limits.h>
9302 #else
9303 # include <assert.h>
9304 #endif
9305
9306 #undef $ac_func
9307
9308 /* Override any gcc2 internal prototype to avoid an error.  */
9309 #ifdef __cplusplus
9310 extern "C"
9311 {
9312 #endif
9313 /* We use char because int might match the return type of a gcc2
9314    builtin and then its argument prototype would still apply.  */
9315 char $ac_func ();
9316 /* The GNU C library defines this for functions which it implements
9317     to always fail with ENOSYS.  Some functions are actually named
9318     something starting with __ and the normal name is an alias.  */
9319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9320 choke me
9321 #else
9322 char (*f) () = $ac_func;
9323 #endif
9324 #ifdef __cplusplus
9325 }
9326 #endif
9327
9328 int
9329 main ()
9330 {
9331 return f != $ac_func;
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338   (eval $ac_link) 2>conftest.er1
9339   ac_status=$?
9340   grep -v '^ *+' conftest.er1 >conftest.err
9341   rm -f conftest.er1
9342   cat conftest.err >&5
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } &&
9345          { ac_try='test -z "$ac_c_werror_flag"
9346                          || test ! -s conftest.err'
9347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348   (eval $ac_try) 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); }; } &&
9352          { ac_try='test -s conftest$ac_exeext'
9353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354   (eval $ac_try) 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); }; }; then
9358   eval "$as_ac_var=yes"
9359 else
9360   echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363 eval "$as_ac_var=no"
9364 fi
9365 rm -f conftest.err conftest.$ac_objext \
9366       conftest$ac_exeext conftest.$ac_ext
9367 fi
9368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9370 if test `eval echo '${'$as_ac_var'}'` = yes; then
9371   cat >>confdefs.h <<_ACEOF
9372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9373 _ACEOF
9374
9375 fi
9376 done
9377
9378
9379 if test x$ac_cv_func_mbstowcs = xyes; then
9380   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9381 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9382 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385       if test "$cross_compiling" = yes; then
9386   gcc_cv_func_mbstowcs_works=yes
9387 else
9388   cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h.  */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h.  */
9394 #include <stdlib.h>
9395 int main()
9396 {
9397   mbstowcs(0, "", 0);
9398   return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403   (eval $ac_link) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408   (eval $ac_try) 2>&5
9409   ac_status=$?
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); }; }; then
9412   gcc_cv_func_mbstowcs_works=yes
9413 else
9414   echo "$as_me: program exited with status $ac_status" >&5
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418 ( exit $ac_status )
9419 gcc_cv_func_mbstowcs_works=no
9420 fi
9421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9422 fi
9423 fi
9424 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9425 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9426   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9427
9428 cat >>confdefs.h <<\_ACEOF
9429 #define HAVE_WORKING_MBSTOWCS 1
9430 _ACEOF
9431
9432   fi
9433 fi
9434
9435 echo "$as_me:$LINENO: checking for ssize_t" >&5
9436 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9437 if test "${ac_cv_type_ssize_t+set}" = set; then
9438   echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440   cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h.  */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h.  */
9446 $ac_includes_default
9447 int
9448 main ()
9449 {
9450 if ((ssize_t *) 0)
9451   return 0;
9452 if (sizeof (ssize_t))
9453   return 0;
9454   ;
9455   return 0;
9456 }
9457 _ACEOF
9458 rm -f conftest.$ac_objext
9459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9460   (eval $ac_compile) 2>conftest.er1
9461   ac_status=$?
9462   grep -v '^ *+' conftest.er1 >conftest.err
9463   rm -f conftest.er1
9464   cat conftest.err >&5
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } &&
9467          { ac_try='test -z "$ac_c_werror_flag"
9468                          || test ! -s conftest.err'
9469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470   (eval $ac_try) 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); }; } &&
9474          { ac_try='test -s conftest.$ac_objext'
9475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476   (eval $ac_try) 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; }; then
9480   ac_cv_type_ssize_t=yes
9481 else
9482   echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485 ac_cv_type_ssize_t=no
9486 fi
9487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9488 fi
9489 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9490 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9491 if test $ac_cv_type_ssize_t = yes; then
9492   :
9493 else
9494
9495 cat >>confdefs.h <<_ACEOF
9496 #define ssize_t int
9497 _ACEOF
9498
9499 fi
9500
9501
9502 # Try to determine the array type of the second argument of getgroups
9503 # for the target system (int or gid_t).
9504 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9505 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9506 if test "${ac_cv_type_uid_t+set}" = set; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509   cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h.  */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h.  */
9515 #include <sys/types.h>
9516
9517 _ACEOF
9518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9519   $EGREP "uid_t" >/dev/null 2>&1; then
9520   ac_cv_type_uid_t=yes
9521 else
9522   ac_cv_type_uid_t=no
9523 fi
9524 rm -f conftest*
9525
9526 fi
9527 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9528 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9529 if test $ac_cv_type_uid_t = no; then
9530
9531 cat >>confdefs.h <<\_ACEOF
9532 #define uid_t int
9533 _ACEOF
9534
9535
9536 cat >>confdefs.h <<\_ACEOF
9537 #define gid_t int
9538 _ACEOF
9539
9540 fi
9541
9542 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9543 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9544 if test "${ac_cv_type_getgroups+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   if test "$cross_compiling" = yes; then
9548   ac_cv_type_getgroups=cross
9549 else
9550   cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9556 /* Thanks to Mike Rendell for this test.  */
9557 #include <sys/types.h>
9558 #define NGID 256
9559 #undef MAX
9560 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9561
9562 int
9563 main ()
9564 {
9565   gid_t gidset[NGID];
9566   int i, n;
9567   union { gid_t gval; long lval; }  val;
9568
9569   val.lval = -1;
9570   for (i = 0; i < NGID; i++)
9571     gidset[i] = val.gval;
9572   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9573                  gidset);
9574   /* Exit non-zero if getgroups seems to require an array of ints.  This
9575      happens when gid_t is short but getgroups modifies an array of ints.  */
9576   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9577 }
9578 _ACEOF
9579 rm -f conftest$ac_exeext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581   (eval $ac_link) 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586   (eval $ac_try) 2>&5
9587   ac_status=$?
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); }; }; then
9590   ac_cv_type_getgroups=gid_t
9591 else
9592   echo "$as_me: program exited with status $ac_status" >&5
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9595
9596 ( exit $ac_status )
9597 ac_cv_type_getgroups=int
9598 fi
9599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9600 fi
9601 if test $ac_cv_type_getgroups = cross; then
9602         cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h.  */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h.  */
9608 #include <unistd.h>
9609
9610 _ACEOF
9611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9612   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9613   ac_cv_type_getgroups=gid_t
9614 else
9615   ac_cv_type_getgroups=int
9616 fi
9617 rm -f conftest*
9618
9619 fi
9620 fi
9621 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9622 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9623
9624 cat >>confdefs.h <<_ACEOF
9625 #define GETGROUPS_T $ac_cv_type_getgroups
9626 _ACEOF
9627
9628
9629 if test "${target}" = "${build}"; then
9630   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9631 else
9632   case "${target}" in
9633         # This condition may need some tweaking.  It should include all
9634         # targets where the array type of the second argument of getgroups
9635         # is int and the type of gid_t is not equivalent to int.
9636         *-*-sunos* | *-*-ultrix*)
9637                 TARGET_GETGROUPS_T=int
9638                 ;;
9639         *)
9640                 TARGET_GETGROUPS_T=gid_t
9641                 ;;
9642   esac
9643 fi
9644
9645
9646
9647 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9648 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9649 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h.  */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h.  */
9658 #include <sys/mman.h>
9659 _ACEOF
9660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } >/dev/null; then
9668   if test -s conftest.err; then
9669     ac_cpp_err=$ac_c_preproc_warn_flag
9670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9671   else
9672     ac_cpp_err=
9673   fi
9674 else
9675   ac_cpp_err=yes
9676 fi
9677 if test -z "$ac_cpp_err"; then
9678   ac_cv_header_sys_mman_h=yes
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683   ac_cv_header_sys_mman_h=no
9684 fi
9685 rm -f conftest.err conftest.$ac_ext
9686 fi
9687 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9688 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9689 if test $ac_cv_header_sys_mman_h = yes; then
9690   gcc_header_sys_mman_h=yes
9691 else
9692   gcc_header_sys_mman_h=no
9693 fi
9694
9695 echo "$as_me:$LINENO: checking for mmap" >&5
9696 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9697 if test "${ac_cv_func_mmap+set}" = set; then
9698   echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700   cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h.  */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h.  */
9706 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9708 #define mmap innocuous_mmap
9709
9710 /* System header to define __stub macros and hopefully few prototypes,
9711     which can conflict with char mmap (); below.
9712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9713     <limits.h> exists even on freestanding compilers.  */
9714
9715 #ifdef __STDC__
9716 # include <limits.h>
9717 #else
9718 # include <assert.h>
9719 #endif
9720
9721 #undef mmap
9722
9723 /* Override any gcc2 internal prototype to avoid an error.  */
9724 #ifdef __cplusplus
9725 extern "C"
9726 {
9727 #endif
9728 /* We use char because int might match the return type of a gcc2
9729    builtin and then its argument prototype would still apply.  */
9730 char mmap ();
9731 /* The GNU C library defines this for functions which it implements
9732     to always fail with ENOSYS.  Some functions are actually named
9733     something starting with __ and the normal name is an alias.  */
9734 #if defined (__stub_mmap) || defined (__stub___mmap)
9735 choke me
9736 #else
9737 char (*f) () = mmap;
9738 #endif
9739 #ifdef __cplusplus
9740 }
9741 #endif
9742
9743 int
9744 main ()
9745 {
9746 return f != mmap;
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753   (eval $ac_link) 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -z "$ac_c_werror_flag"
9761                          || test ! -s conftest.err'
9762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763   (eval $ac_try) 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; } &&
9767          { ac_try='test -s conftest$ac_exeext'
9768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769   (eval $ac_try) 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); }; }; then
9773   ac_cv_func_mmap=yes
9774 else
9775   echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 ac_cv_func_mmap=no
9779 fi
9780 rm -f conftest.err conftest.$ac_objext \
9781       conftest$ac_exeext conftest.$ac_ext
9782 fi
9783 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9784 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9785 if test $ac_cv_func_mmap = yes; then
9786   gcc_func_mmap=yes
9787 else
9788   gcc_func_mmap=no
9789 fi
9790
9791 if test "$gcc_header_sys_mman_h" != yes \
9792  || test "$gcc_func_mmap" != yes; then
9793    gcc_cv_func_mmap_file=no
9794    gcc_cv_func_mmap_dev_zero=no
9795    gcc_cv_func_mmap_anon=no
9796 else
9797    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9798 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9799 if test "${gcc_cv_func_mmap_file+set}" = set; then
9800   echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802   # Add a system to this blacklist if
9803    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9804    # memory area containing the same data that you'd get if you applied
9805    # read() to the same fd.  The only system known to have a problem here
9806    # is VMS, where text files have record structure.
9807    case "$host_os" in
9808      vms* | ultrix*)
9809         gcc_cv_func_mmap_file=no ;;
9810      *)
9811         gcc_cv_func_mmap_file=yes;;
9812    esac
9813 fi
9814 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9815 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9816    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9817 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9818 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   # Add a system to this blacklist if it has mmap() but /dev/zero
9822    # does not exist, or if mmapping /dev/zero does not give anonymous
9823    # zeroed pages with both the following properties:
9824    # 1. If you map N consecutive pages in with one call, and then
9825    #    unmap any subset of those pages, the pages that were not
9826    #    explicitly unmapped remain accessible.
9827    # 2. If you map two adjacent blocks of memory and then unmap them
9828    #    both at once, they must both go away.
9829    # Systems known to be in this category are Windows (all variants),
9830    # VMS, and Darwin.
9831    case "$host_os" in
9832      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9833         gcc_cv_func_mmap_dev_zero=no ;;
9834      *)
9835         gcc_cv_func_mmap_dev_zero=yes;;
9836    esac
9837 fi
9838 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9839 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9840
9841    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9842    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9843 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9844 if test "${gcc_cv_decl_map_anon+set}" = set; then
9845   echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847   cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h.  */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h.  */
9853 #include <sys/types.h>
9854 #include <sys/mman.h>
9855 #include <unistd.h>
9856
9857 #ifndef MAP_ANONYMOUS
9858 #define MAP_ANONYMOUS MAP_ANON
9859 #endif
9860
9861 int
9862 main ()
9863 {
9864 int n = MAP_ANONYMOUS;
9865   ;
9866   return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871   (eval $ac_compile) 2>conftest.er1
9872   ac_status=$?
9873   grep -v '^ *+' conftest.er1 >conftest.err
9874   rm -f conftest.er1
9875   cat conftest.err >&5
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); } &&
9878          { ac_try='test -z "$ac_c_werror_flag"
9879                          || test ! -s conftest.err'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; } &&
9885          { ac_try='test -s conftest.$ac_objext'
9886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887   (eval $ac_try) 2>&5
9888   ac_status=$?
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); }; }; then
9891   gcc_cv_decl_map_anon=yes
9892 else
9893   echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9895
9896 gcc_cv_decl_map_anon=no
9897 fi
9898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9899 fi
9900 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9901 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9902
9903    if test $gcc_cv_decl_map_anon = no; then
9904      gcc_cv_func_mmap_anon=no
9905    else
9906      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9907 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9908 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9912    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9913    # doesn't give anonymous zeroed pages with the same properties listed
9914    # above for use of /dev/zero.
9915    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9916    case "$host_os" in
9917      vms* | cygwin* | pe | mingw* | sco* | udk* )
9918         gcc_cv_func_mmap_anon=no ;;
9919      *)
9920         gcc_cv_func_mmap_anon=yes;;
9921    esac
9922 fi
9923 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9924 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9925    fi
9926 fi
9927
9928 if test $gcc_cv_func_mmap_file = yes; then
9929
9930 cat >>confdefs.h <<\_ACEOF
9931 #define HAVE_MMAP_FILE 1
9932 _ACEOF
9933
9934 fi
9935 if test $gcc_cv_func_mmap_dev_zero = yes; then
9936
9937 cat >>confdefs.h <<\_ACEOF
9938 #define HAVE_MMAP_DEV_ZERO 1
9939 _ACEOF
9940
9941 fi
9942 if test $gcc_cv_func_mmap_anon = yes; then
9943
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_MMAP_ANON 1
9946 _ACEOF
9947
9948 fi
9949
9950
9951 case "${host}" in
9952 *-*-*vms*)
9953   # Under VMS, vfork works very differently than on Unix. The standard test
9954   # won't work, and it isn't easily adaptable. It makes more sense to
9955   # just force it.
9956   ac_cv_func_vfork_works=yes
9957   ;;
9958 esac
9959 echo "$as_me:$LINENO: checking for pid_t" >&5
9960 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9961 if test "${ac_cv_type_pid_t+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 $ac_includes_default
9971 int
9972 main ()
9973 {
9974 if ((pid_t *) 0)
9975   return 0;
9976 if (sizeof (pid_t))
9977   return 0;
9978   ;
9979   return 0;
9980 }
9981 _ACEOF
9982 rm -f conftest.$ac_objext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984   (eval $ac_compile) 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } &&
9991          { ac_try='test -z "$ac_c_werror_flag"
9992                          || test ! -s conftest.err'
9993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994   (eval $ac_try) 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; } &&
9998          { ac_try='test -s conftest.$ac_objext'
9999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000   (eval $ac_try) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; }; then
10004   ac_cv_type_pid_t=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 ac_cv_type_pid_t=no
10010 fi
10011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10012 fi
10013 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10014 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10015 if test $ac_cv_type_pid_t = yes; then
10016   :
10017 else
10018
10019 cat >>confdefs.h <<_ACEOF
10020 #define pid_t int
10021 _ACEOF
10022
10023 fi
10024
10025
10026
10027 for ac_header in unistd.h vfork.h
10028 do
10029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 echo "$as_me:$LINENO: checking for $ac_header" >&5
10031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035   cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041 #include <$ac_header>
10042 _ACEOF
10043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10045   ac_status=$?
10046   grep -v '^ *+' conftest.er1 >conftest.err
10047   rm -f conftest.er1
10048   cat conftest.err >&5
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } >/dev/null; then
10051   if test -s conftest.err; then
10052     ac_cpp_err=$ac_c_preproc_warn_flag
10053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10054   else
10055     ac_cpp_err=
10056   fi
10057 else
10058   ac_cpp_err=yes
10059 fi
10060 if test -z "$ac_cpp_err"; then
10061   eval "$as_ac_Header=yes"
10062 else
10063   echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066   eval "$as_ac_Header=no"
10067 fi
10068 rm -f conftest.err conftest.$ac_ext
10069 fi
10070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10073   cat >>confdefs.h <<_ACEOF
10074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10075 _ACEOF
10076
10077 fi
10078 done
10079
10080
10081
10082 for ac_func in fork vfork
10083 do
10084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10085 echo "$as_me:$LINENO: checking for $ac_func" >&5
10086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10087 if eval "test \"\${$as_ac_var+set}\" = set"; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h.  */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h.  */
10096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10098 #define $ac_func innocuous_$ac_func
10099
10100 /* System header to define __stub macros and hopefully few prototypes,
10101     which can conflict with char $ac_func (); below.
10102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10103     <limits.h> exists even on freestanding compilers.  */
10104
10105 #ifdef __STDC__
10106 # include <limits.h>
10107 #else
10108 # include <assert.h>
10109 #endif
10110
10111 #undef $ac_func
10112
10113 /* Override any gcc2 internal prototype to avoid an error.  */
10114 #ifdef __cplusplus
10115 extern "C"
10116 {
10117 #endif
10118 /* We use char because int might match the return type of a gcc2
10119    builtin and then its argument prototype would still apply.  */
10120 char $ac_func ();
10121 /* The GNU C library defines this for functions which it implements
10122     to always fail with ENOSYS.  Some functions are actually named
10123     something starting with __ and the normal name is an alias.  */
10124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10125 choke me
10126 #else
10127 char (*f) () = $ac_func;
10128 #endif
10129 #ifdef __cplusplus
10130 }
10131 #endif
10132
10133 int
10134 main ()
10135 {
10136 return f != $ac_func;
10137   ;
10138   return 0;
10139 }
10140 _ACEOF
10141 rm -f conftest.$ac_objext conftest$ac_exeext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10143   (eval $ac_link) 2>conftest.er1
10144   ac_status=$?
10145   grep -v '^ *+' conftest.er1 >conftest.err
10146   rm -f conftest.er1
10147   cat conftest.err >&5
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); } &&
10150          { ac_try='test -z "$ac_c_werror_flag"
10151                          || test ! -s conftest.err'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; } &&
10157          { ac_try='test -s conftest$ac_exeext'
10158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159   (eval $ac_try) 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; }; then
10163   eval "$as_ac_var=yes"
10164 else
10165   echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10167
10168 eval "$as_ac_var=no"
10169 fi
10170 rm -f conftest.err conftest.$ac_objext \
10171       conftest$ac_exeext conftest.$ac_ext
10172 fi
10173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10175 if test `eval echo '${'$as_ac_var'}'` = yes; then
10176   cat >>confdefs.h <<_ACEOF
10177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10178 _ACEOF
10179
10180 fi
10181 done
10182
10183 if test "x$ac_cv_func_fork" = xyes; then
10184   echo "$as_me:$LINENO: checking for working fork" >&5
10185 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10186 if test "${ac_cv_func_fork_works+set}" = set; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   if test "$cross_compiling" = yes; then
10190   ac_cv_func_fork_works=cross
10191 else
10192   cat >conftest.$ac_ext <<_ACEOF
10193 /* By Ruediger Kuhlmann. */
10194       #include <sys/types.h>
10195       #if HAVE_UNISTD_H
10196       # include <unistd.h>
10197       #endif
10198       /* Some systems only have a dummy stub for fork() */
10199       int main ()
10200       {
10201         if (fork() < 0)
10202           exit (1);
10203         exit (0);
10204       }
10205 _ACEOF
10206 rm -f conftest$ac_exeext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10208   (eval $ac_link) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213   (eval $ac_try) 2>&5
10214   ac_status=$?
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); }; }; then
10217   ac_cv_func_fork_works=yes
10218 else
10219   echo "$as_me: program exited with status $ac_status" >&5
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223 ( exit $ac_status )
10224 ac_cv_func_fork_works=no
10225 fi
10226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10227 fi
10228 fi
10229 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10230 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10231
10232 else
10233   ac_cv_func_fork_works=$ac_cv_func_fork
10234 fi
10235 if test "x$ac_cv_func_fork_works" = xcross; then
10236   case $host in
10237     *-*-amigaos* | *-*-msdosdjgpp*)
10238       # Override, as these systems have only a dummy fork() stub
10239       ac_cv_func_fork_works=no
10240       ;;
10241     *)
10242       ac_cv_func_fork_works=yes
10243       ;;
10244   esac
10245   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10246 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10247 fi
10248 ac_cv_func_vfork_works=$ac_cv_func_vfork
10249 if test "x$ac_cv_func_vfork" = xyes; then
10250   echo "$as_me:$LINENO: checking for working vfork" >&5
10251 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10252 if test "${ac_cv_func_vfork_works+set}" = set; then
10253   echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255   if test "$cross_compiling" = yes; then
10256   ac_cv_func_vfork_works=cross
10257 else
10258   cat >conftest.$ac_ext <<_ACEOF
10259 /* confdefs.h.  */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h.  */
10264 /* Thanks to Paul Eggert for this test.  */
10265 #include <stdio.h>
10266 #include <stdlib.h>
10267 #include <sys/types.h>
10268 #include <sys/stat.h>
10269 #include <sys/wait.h>
10270 #if HAVE_UNISTD_H
10271 # include <unistd.h>
10272 #endif
10273 #if HAVE_VFORK_H
10274 # include <vfork.h>
10275 #endif
10276 /* On some sparc systems, changes by the child to local and incoming
10277    argument registers are propagated back to the parent.  The compiler
10278    is told about this with #include <vfork.h>, but some compilers
10279    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10280    static variable whose address is put into a register that is
10281    clobbered by the vfork.  */
10282 static void
10283 #ifdef __cplusplus
10284 sparc_address_test (int arg)
10285 # else
10286 sparc_address_test (arg) int arg;
10287 #endif
10288 {
10289   static pid_t child;
10290   if (!child) {
10291     child = vfork ();
10292     if (child < 0) {
10293       perror ("vfork");
10294       _exit(2);
10295     }
10296     if (!child) {
10297       arg = getpid();
10298       write(-1, "", 0);
10299       _exit (arg);
10300     }
10301   }
10302 }
10303
10304 int
10305 main ()
10306 {
10307   pid_t parent = getpid ();
10308   pid_t child;
10309
10310   sparc_address_test (0);
10311
10312   child = vfork ();
10313
10314   if (child == 0) {
10315     /* Here is another test for sparc vfork register problems.  This
10316        test uses lots of local variables, at least as many local
10317        variables as main has allocated so far including compiler
10318        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10319        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10320        reuse the register of parent for one of the local variables,
10321        since it will think that parent can't possibly be used any more
10322        in this routine.  Assigning to the local variable will thus
10323        munge parent in the parent process.  */
10324     pid_t
10325       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10326       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10327     /* Convince the compiler that p..p7 are live; otherwise, it might
10328        use the same hardware register for all 8 local variables.  */
10329     if (p != p1 || p != p2 || p != p3 || p != p4
10330         || p != p5 || p != p6 || p != p7)
10331       _exit(1);
10332
10333     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10334        from child file descriptors.  If the child closes a descriptor
10335        before it execs or exits, this munges the parent's descriptor
10336        as well.  Test for this by closing stdout in the child.  */
10337     _exit(close(fileno(stdout)) != 0);
10338   } else {
10339     int status;
10340     struct stat st;
10341
10342     while (wait(&status) != child)
10343       ;
10344     exit(
10345          /* Was there some problem with vforking?  */
10346          child < 0
10347
10348          /* Did the child fail?  (This shouldn't happen.)  */
10349          || status
10350
10351          /* Did the vfork/compiler bug occur?  */
10352          || parent != getpid()
10353
10354          /* Did the file descriptor bug occur?  */
10355          || fstat(fileno(stdout), &st) != 0
10356          );
10357   }
10358 }
10359 _ACEOF
10360 rm -f conftest$ac_exeext
10361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362   (eval $ac_link) 2>&5
10363   ac_status=$?
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367   (eval $ac_try) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; }; then
10371   ac_cv_func_vfork_works=yes
10372 else
10373   echo "$as_me: program exited with status $ac_status" >&5
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 ( exit $ac_status )
10378 ac_cv_func_vfork_works=no
10379 fi
10380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10381 fi
10382 fi
10383 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10384 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10385
10386 fi;
10387 if test "x$ac_cv_func_fork_works" = xcross; then
10388   ac_cv_func_vfork_works=$ac_cv_func_vfork
10389   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10390 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10391 fi
10392
10393 if test "x$ac_cv_func_vfork_works" = xyes; then
10394
10395 cat >>confdefs.h <<\_ACEOF
10396 #define HAVE_WORKING_VFORK 1
10397 _ACEOF
10398
10399 else
10400
10401 cat >>confdefs.h <<\_ACEOF
10402 #define vfork fork
10403 _ACEOF
10404
10405 fi
10406 if test "x$ac_cv_func_fork_works" = xyes; then
10407
10408 cat >>confdefs.h <<\_ACEOF
10409 #define HAVE_WORKING_FORK 1
10410 _ACEOF
10411
10412 fi
10413
10414
10415
10416       if test "X$prefix" = "XNONE"; then
10417     acl_final_prefix="$ac_default_prefix"
10418   else
10419     acl_final_prefix="$prefix"
10420   fi
10421   if test "X$exec_prefix" = "XNONE"; then
10422     acl_final_exec_prefix='${prefix}'
10423   else
10424     acl_final_exec_prefix="$exec_prefix"
10425   fi
10426   acl_save_prefix="$prefix"
10427   prefix="$acl_final_prefix"
10428   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10429   prefix="$acl_save_prefix"
10430
10431
10432 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10433 if test "${with_gnu_ld+set}" = set; then
10434   withval="$with_gnu_ld"
10435   test "$withval" = no || with_gnu_ld=yes
10436 else
10437   with_gnu_ld=no
10438 fi;
10439 # Prepare PATH_SEPARATOR.
10440 # The user is always right.
10441 if test "${PATH_SEPARATOR+set}" != set; then
10442   echo "#! /bin/sh" >conf$$.sh
10443   echo  "exit 0"   >>conf$$.sh
10444   chmod +x conf$$.sh
10445   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10446     PATH_SEPARATOR=';'
10447   else
10448     PATH_SEPARATOR=:
10449   fi
10450   rm -f conf$$.sh
10451 fi
10452 ac_prog=ld
10453 if test "$GCC" = yes; then
10454   # Check if gcc -print-prog-name=ld gives a path.
10455   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10456 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10457   case $host in
10458   *-*-mingw*)
10459     # gcc leaves a trailing carriage return which upsets mingw
10460     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10461   *)
10462     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10463   esac
10464   case $ac_prog in
10465     # Accept absolute paths.
10466     [\\/]* | [A-Za-z]:[\\/]*)
10467       re_direlt='/[^/][^/]*/\.\./'
10468       # Canonicalize the path of ld
10469       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10470       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10471         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10472       done
10473       test -z "$LD" && LD="$ac_prog"
10474       ;;
10475   "")
10476     # If it fails, then pretend we aren't using GCC.
10477     ac_prog=ld
10478     ;;
10479   *)
10480     # If it is relative, then search for the first ld in PATH.
10481     with_gnu_ld=unknown
10482     ;;
10483   esac
10484 elif test "$with_gnu_ld" = yes; then
10485   echo "$as_me:$LINENO: checking for GNU ld" >&5
10486 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10487 else
10488   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10489 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10490 fi
10491 if test "${acl_cv_path_LD+set}" = set; then
10492   echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494   if test -z "$LD"; then
10495   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10496   for ac_dir in $PATH; do
10497     test -z "$ac_dir" && ac_dir=.
10498     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10499       acl_cv_path_LD="$ac_dir/$ac_prog"
10500       # Check to see if the program is GNU ld.  I'd rather use --version,
10501       # but apparently some GNU ld's only accept -v.
10502       # Break only if it was the GNU/non-GNU ld that we prefer.
10503       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10504         test "$with_gnu_ld" != no && break
10505       else
10506         test "$with_gnu_ld" != yes && break
10507       fi
10508     fi
10509   done
10510   IFS="$ac_save_ifs"
10511 else
10512   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10513 fi
10514 fi
10515
10516 LD="$acl_cv_path_LD"
10517 if test -n "$LD"; then
10518   echo "$as_me:$LINENO: result: $LD" >&5
10519 echo "${ECHO_T}$LD" >&6
10520 else
10521   echo "$as_me:$LINENO: result: no" >&5
10522 echo "${ECHO_T}no" >&6
10523 fi
10524 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10525 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10526    { (exit 1); exit 1; }; }
10527 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10528 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10529 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10530   echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10533 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10534   acl_cv_prog_gnu_ld=yes
10535 else
10536   acl_cv_prog_gnu_ld=no
10537 fi
10538 fi
10539 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10540 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10541 with_gnu_ld=$acl_cv_prog_gnu_ld
10542
10543
10544
10545                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10546 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10547 if test "${acl_cv_rpath+set}" = set; then
10548   echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550
10551     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10552     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10553     . ./conftest.sh
10554     rm -f ./conftest.sh
10555     acl_cv_rpath=done
10556
10557 fi
10558 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10559 echo "${ECHO_T}$acl_cv_rpath" >&6
10560   wl="$acl_cv_wl"
10561   libext="$acl_cv_libext"
10562   shlibext="$acl_cv_shlibext"
10563   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10564   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10565   hardcode_direct="$acl_cv_hardcode_direct"
10566   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10567     # Check whether --enable-rpath or --disable-rpath was given.
10568 if test "${enable_rpath+set}" = set; then
10569   enableval="$enable_rpath"
10570   :
10571 else
10572   enable_rpath=yes
10573 fi;
10574
10575
10576
10577
10578
10579
10580
10581     use_additional=yes
10582
10583   acl_save_prefix="$prefix"
10584   prefix="$acl_final_prefix"
10585   acl_save_exec_prefix="$exec_prefix"
10586   exec_prefix="$acl_final_exec_prefix"
10587
10588     eval additional_includedir=\"$includedir\"
10589     eval additional_libdir=\"$libdir\"
10590
10591   exec_prefix="$acl_save_exec_prefix"
10592   prefix="$acl_save_prefix"
10593
10594
10595 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10596 if test "${with_libiconv_prefix+set}" = set; then
10597   withval="$with_libiconv_prefix"
10598
10599     if test "X$withval" = "Xno"; then
10600       use_additional=no
10601     else
10602       if test "X$withval" = "X"; then
10603
10604   acl_save_prefix="$prefix"
10605   prefix="$acl_final_prefix"
10606   acl_save_exec_prefix="$exec_prefix"
10607   exec_prefix="$acl_final_exec_prefix"
10608
10609           eval additional_includedir=\"$includedir\"
10610           eval additional_libdir=\"$libdir\"
10611
10612   exec_prefix="$acl_save_exec_prefix"
10613   prefix="$acl_save_prefix"
10614
10615       else
10616         additional_includedir="$withval/include"
10617         additional_libdir="$withval/lib"
10618       fi
10619     fi
10620
10621 fi;
10622       LIBICONV=
10623   LTLIBICONV=
10624   INCICONV=
10625   rpathdirs=
10626   ltrpathdirs=
10627   names_already_handled=
10628   names_next_round='iconv '
10629   while test -n "$names_next_round"; do
10630     names_this_round="$names_next_round"
10631     names_next_round=
10632     for name in $names_this_round; do
10633       already_handled=
10634       for n in $names_already_handled; do
10635         if test "$n" = "$name"; then
10636           already_handled=yes
10637           break
10638         fi
10639       done
10640       if test -z "$already_handled"; then
10641         names_already_handled="$names_already_handled $name"
10642                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10643         eval value=\"\$HAVE_LIB$uppername\"
10644         if test -n "$value"; then
10645           if test "$value" = yes; then
10646             eval value=\"\$LIB$uppername\"
10647             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10648             eval value=\"\$LTLIB$uppername\"
10649             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10650           else
10651                                     :
10652           fi
10653         else
10654                               found_dir=
10655           found_la=
10656           found_so=
10657           found_a=
10658           if test $use_additional = yes; then
10659             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10660               found_dir="$additional_libdir"
10661               found_so="$additional_libdir/lib$name.$shlibext"
10662               if test -f "$additional_libdir/lib$name.la"; then
10663                 found_la="$additional_libdir/lib$name.la"
10664               fi
10665             else
10666               if test -f "$additional_libdir/lib$name.$libext"; then
10667                 found_dir="$additional_libdir"
10668                 found_a="$additional_libdir/lib$name.$libext"
10669                 if test -f "$additional_libdir/lib$name.la"; then
10670                   found_la="$additional_libdir/lib$name.la"
10671                 fi
10672               fi
10673             fi
10674           fi
10675           if test "X$found_dir" = "X"; then
10676             for x in $LDFLAGS $LTLIBICONV; do
10677
10678   acl_save_prefix="$prefix"
10679   prefix="$acl_final_prefix"
10680   acl_save_exec_prefix="$exec_prefix"
10681   exec_prefix="$acl_final_exec_prefix"
10682   eval x=\"$x\"
10683   exec_prefix="$acl_save_exec_prefix"
10684   prefix="$acl_save_prefix"
10685
10686               case "$x" in
10687                 -L*)
10688                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10689                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10690                     found_dir="$dir"
10691                     found_so="$dir/lib$name.$shlibext"
10692                     if test -f "$dir/lib$name.la"; then
10693                       found_la="$dir/lib$name.la"
10694                     fi
10695                   else
10696                     if test -f "$dir/lib$name.$libext"; then
10697                       found_dir="$dir"
10698                       found_a="$dir/lib$name.$libext"
10699                       if test -f "$dir/lib$name.la"; then
10700                         found_la="$dir/lib$name.la"
10701                       fi
10702                     fi
10703                   fi
10704                   ;;
10705               esac
10706               if test "X$found_dir" != "X"; then
10707                 break
10708               fi
10709             done
10710           fi
10711           if test "X$found_dir" != "X"; then
10712                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10713             if test "X$found_so" != "X"; then
10714                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10715                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10716               else
10717                                                                                 haveit=
10718                 for x in $ltrpathdirs; do
10719                   if test "X$x" = "X$found_dir"; then
10720                     haveit=yes
10721                     break
10722                   fi
10723                 done
10724                 if test -z "$haveit"; then
10725                   ltrpathdirs="$ltrpathdirs $found_dir"
10726                 fi
10727                                 if test "$hardcode_direct" = yes; then
10728                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10729                 else
10730                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10731                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10732                                                             haveit=
10733                     for x in $rpathdirs; do
10734                       if test "X$x" = "X$found_dir"; then
10735                         haveit=yes
10736                         break
10737                       fi
10738                     done
10739                     if test -z "$haveit"; then
10740                       rpathdirs="$rpathdirs $found_dir"
10741                     fi
10742                   else
10743                                                                                 haveit=
10744                     for x in $LDFLAGS $LIBICONV; do
10745
10746   acl_save_prefix="$prefix"
10747   prefix="$acl_final_prefix"
10748   acl_save_exec_prefix="$exec_prefix"
10749   exec_prefix="$acl_final_exec_prefix"
10750   eval x=\"$x\"
10751   exec_prefix="$acl_save_exec_prefix"
10752   prefix="$acl_save_prefix"
10753
10754                       if test "X$x" = "X-L$found_dir"; then
10755                         haveit=yes
10756                         break
10757                       fi
10758                     done
10759                     if test -z "$haveit"; then
10760                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10761                     fi
10762                     if test "$hardcode_minus_L" != no; then
10763                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10764                     else
10765                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10766                     fi
10767                   fi
10768                 fi
10769               fi
10770             else
10771               if test "X$found_a" != "X"; then
10772                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10773               else
10774                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10775               fi
10776             fi
10777                         additional_includedir=
10778             case "$found_dir" in
10779               */lib | */lib/)
10780                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10781                 additional_includedir="$basedir/include"
10782                 ;;
10783             esac
10784             if test "X$additional_includedir" != "X"; then
10785                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10786                 haveit=
10787                 if test "X$additional_includedir" = "X/usr/local/include"; then
10788                   if test -n "$GCC"; then
10789                     case $host_os in
10790                       linux*) haveit=yes;;
10791                     esac
10792                   fi
10793                 fi
10794                 if test -z "$haveit"; then
10795                   for x in $CPPFLAGS $INCICONV; do
10796
10797   acl_save_prefix="$prefix"
10798   prefix="$acl_final_prefix"
10799   acl_save_exec_prefix="$exec_prefix"
10800   exec_prefix="$acl_final_exec_prefix"
10801   eval x=\"$x\"
10802   exec_prefix="$acl_save_exec_prefix"
10803   prefix="$acl_save_prefix"
10804
10805                     if test "X$x" = "X-I$additional_includedir"; then
10806                       haveit=yes
10807                       break
10808                     fi
10809                   done
10810                   if test -z "$haveit"; then
10811                     if test -d "$additional_includedir"; then
10812                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10813                     fi
10814                   fi
10815                 fi
10816               fi
10817             fi
10818                         if test -n "$found_la"; then
10819                                                         save_libdir="$libdir"
10820               case "$found_la" in
10821                 */* | *\\*) . "$found_la" ;;
10822                 *) . "./$found_la" ;;
10823               esac
10824               libdir="$save_libdir"
10825                             for dep in $dependency_libs; do
10826                 case "$dep" in
10827                   -L*)
10828                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10829                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10830                       haveit=
10831                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10832                         if test -n "$GCC"; then
10833                           case $host_os in
10834                             linux*) haveit=yes;;
10835                           esac
10836                         fi
10837                       fi
10838                       if test -z "$haveit"; then
10839                         haveit=
10840                         for x in $LDFLAGS $LIBICONV; do
10841
10842   acl_save_prefix="$prefix"
10843   prefix="$acl_final_prefix"
10844   acl_save_exec_prefix="$exec_prefix"
10845   exec_prefix="$acl_final_exec_prefix"
10846   eval x=\"$x\"
10847   exec_prefix="$acl_save_exec_prefix"
10848   prefix="$acl_save_prefix"
10849
10850                           if test "X$x" = "X-L$additional_libdir"; then
10851                             haveit=yes
10852                             break
10853                           fi
10854                         done
10855                         if test -z "$haveit"; then
10856                           if test -d "$additional_libdir"; then
10857                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10858                           fi
10859                         fi
10860                         haveit=
10861                         for x in $LDFLAGS $LTLIBICONV; do
10862
10863   acl_save_prefix="$prefix"
10864   prefix="$acl_final_prefix"
10865   acl_save_exec_prefix="$exec_prefix"
10866   exec_prefix="$acl_final_exec_prefix"
10867   eval x=\"$x\"
10868   exec_prefix="$acl_save_exec_prefix"
10869   prefix="$acl_save_prefix"
10870
10871                           if test "X$x" = "X-L$additional_libdir"; then
10872                             haveit=yes
10873                             break
10874                           fi
10875                         done
10876                         if test -z "$haveit"; then
10877                           if test -d "$additional_libdir"; then
10878                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10879                           fi
10880                         fi
10881                       fi
10882                     fi
10883                     ;;
10884                   -R*)
10885                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10886                     if test "$enable_rpath" != no; then
10887                                                                   haveit=
10888                       for x in $rpathdirs; do
10889                         if test "X$x" = "X$dir"; then
10890                           haveit=yes
10891                           break
10892                         fi
10893                       done
10894                       if test -z "$haveit"; then
10895                         rpathdirs="$rpathdirs $dir"
10896                       fi
10897                                                                   haveit=
10898                       for x in $ltrpathdirs; do
10899                         if test "X$x" = "X$dir"; then
10900                           haveit=yes
10901                           break
10902                         fi
10903                       done
10904                       if test -z "$haveit"; then
10905                         ltrpathdirs="$ltrpathdirs $dir"
10906                       fi
10907                     fi
10908                     ;;
10909                   -l*)
10910                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10911                     ;;
10912                   *.la)
10913                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10914                     ;;
10915                   *)
10916                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10917                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10918                     ;;
10919                 esac
10920               done
10921             fi
10922           else
10923                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10924             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10925           fi
10926         fi
10927       fi
10928     done
10929   done
10930   if test "X$rpathdirs" != "X"; then
10931     if test -n "$hardcode_libdir_separator"; then
10932                         alldirs=
10933       for found_dir in $rpathdirs; do
10934         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10935       done
10936             acl_save_libdir="$libdir"
10937       libdir="$alldirs"
10938       eval flag=\"$hardcode_libdir_flag_spec\"
10939       libdir="$acl_save_libdir"
10940       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10941     else
10942             for found_dir in $rpathdirs; do
10943         acl_save_libdir="$libdir"
10944         libdir="$found_dir"
10945         eval flag=\"$hardcode_libdir_flag_spec\"
10946         libdir="$acl_save_libdir"
10947         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10948       done
10949     fi
10950   fi
10951   if test "X$ltrpathdirs" != "X"; then
10952             for found_dir in $ltrpathdirs; do
10953       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10954     done
10955   fi
10956
10957
10958
10959
10960
10961
10962
10963           am_save_CPPFLAGS="$CPPFLAGS"
10964
10965   for element in $INCICONV; do
10966     haveit=
10967     for x in $CPPFLAGS; do
10968
10969   acl_save_prefix="$prefix"
10970   prefix="$acl_final_prefix"
10971   acl_save_exec_prefix="$exec_prefix"
10972   exec_prefix="$acl_final_exec_prefix"
10973   eval x=\"$x\"
10974   exec_prefix="$acl_save_exec_prefix"
10975   prefix="$acl_save_prefix"
10976
10977       if test "X$x" = "X$element"; then
10978         haveit=yes
10979         break
10980       fi
10981     done
10982     if test -z "$haveit"; then
10983       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10984     fi
10985   done
10986
10987
10988   echo "$as_me:$LINENO: checking for iconv" >&5
10989 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10990 if test "${am_cv_func_iconv+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993
10994     am_cv_func_iconv="no, consider installing GNU libiconv"
10995     am_cv_lib_iconv=no
10996     cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002 #include <stdlib.h>
11003 #include <iconv.h>
11004 int
11005 main ()
11006 {
11007 iconv_t cd = iconv_open("","");
11008        iconv(cd,NULL,NULL,NULL,NULL);
11009        iconv_close(cd);
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11016   (eval $ac_link) 2>conftest.er1
11017   ac_status=$?
11018   grep -v '^ *+' conftest.er1 >conftest.err
11019   rm -f conftest.er1
11020   cat conftest.err >&5
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); } &&
11023          { ac_try='test -z "$ac_c_werror_flag"
11024                          || test ! -s conftest.err'
11025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026   (eval $ac_try) 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; } &&
11030          { ac_try='test -s conftest$ac_exeext'
11031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032   (eval $ac_try) 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; }; then
11036   am_cv_func_iconv=yes
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 fi
11042 rm -f conftest.err conftest.$ac_objext \
11043       conftest$ac_exeext conftest.$ac_ext
11044     if test "$am_cv_func_iconv" != yes; then
11045       am_save_LIBS="$LIBS"
11046       LIBS="$LIBS $LIBICONV"
11047       cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h.  */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h.  */
11053 #include <stdlib.h>
11054 #include <iconv.h>
11055 int
11056 main ()
11057 {
11058 iconv_t cd = iconv_open("","");
11059          iconv(cd,NULL,NULL,NULL,NULL);
11060          iconv_close(cd);
11061   ;
11062   return 0;
11063 }
11064 _ACEOF
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067   (eval $ac_link) 2>conftest.er1
11068   ac_status=$?
11069   grep -v '^ *+' conftest.er1 >conftest.err
11070   rm -f conftest.er1
11071   cat conftest.err >&5
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); } &&
11074          { ac_try='test -z "$ac_c_werror_flag"
11075                          || test ! -s conftest.err'
11076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077   (eval $ac_try) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; } &&
11081          { ac_try='test -s conftest$ac_exeext'
11082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083   (eval $ac_try) 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); }; }; then
11087   am_cv_lib_iconv=yes
11088         am_cv_func_iconv=yes
11089 else
11090   echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093 fi
11094 rm -f conftest.err conftest.$ac_objext \
11095       conftest$ac_exeext conftest.$ac_ext
11096       LIBS="$am_save_LIBS"
11097     fi
11098
11099 fi
11100 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11101 echo "${ECHO_T}$am_cv_func_iconv" >&6
11102   if test "$am_cv_func_iconv" = yes; then
11103
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_ICONV 1
11106 _ACEOF
11107
11108   fi
11109   if test "$am_cv_lib_iconv" = yes; then
11110     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11111 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11112     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11113 echo "${ECHO_T}$LIBICONV" >&6
11114   else
11115             CPPFLAGS="$am_save_CPPFLAGS"
11116     LIBICONV=
11117     LTLIBICONV=
11118   fi
11119
11120
11121
11122   if test "$am_cv_func_iconv" = yes; then
11123     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11124 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11125     if test "${am_cv_proto_iconv+set}" = set; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128
11129       cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135
11136 #include <stdlib.h>
11137 #include <iconv.h>
11138 extern
11139 #ifdef __cplusplus
11140 "C"
11141 #endif
11142 #if defined(__STDC__) || defined(__cplusplus)
11143 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11144 #else
11145 size_t iconv();
11146 #endif
11147
11148 int
11149 main ()
11150 {
11151
11152   ;
11153   return 0;
11154 }
11155 _ACEOF
11156 rm -f conftest.$ac_objext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11158   (eval $ac_compile) 2>conftest.er1
11159   ac_status=$?
11160   grep -v '^ *+' conftest.er1 >conftest.err
11161   rm -f conftest.er1
11162   cat conftest.err >&5
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } &&
11165          { ac_try='test -z "$ac_c_werror_flag"
11166                          || test ! -s conftest.err'
11167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168   (eval $ac_try) 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; } &&
11172          { ac_try='test -s conftest.$ac_objext'
11173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174   (eval $ac_try) 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); }; }; then
11178   am_cv_proto_iconv_arg1=""
11179 else
11180   echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 am_cv_proto_iconv_arg1="const"
11184 fi
11185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11186       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11187 fi
11188
11189     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11190     echo "$as_me:$LINENO: result: ${ac_t:-
11191          }$am_cv_proto_iconv" >&5
11192 echo "${ECHO_T}${ac_t:-
11193          }$am_cv_proto_iconv" >&6
11194
11195 cat >>confdefs.h <<_ACEOF
11196 #define ICONV_CONST $am_cv_proto_iconv_arg1
11197 _ACEOF
11198
11199   fi
11200
11201 # Until we have in-tree GNU iconv:
11202 LIBICONV_DEP=
11203
11204
11205
11206   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11207 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11208 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11209   echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211   cat >conftest.$ac_ext <<_ACEOF
11212 /* confdefs.h.  */
11213 _ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h.  */
11217 #include <locale.h>
11218 int
11219 main ()
11220 {
11221 return LC_MESSAGES
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 rm -f conftest.$ac_objext conftest$ac_exeext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11228   (eval $ac_link) 2>conftest.er1
11229   ac_status=$?
11230   grep -v '^ *+' conftest.er1 >conftest.err
11231   rm -f conftest.er1
11232   cat conftest.err >&5
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } &&
11235          { ac_try='test -z "$ac_c_werror_flag"
11236                          || test ! -s conftest.err'
11237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238   (eval $ac_try) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); }; } &&
11242          { ac_try='test -s conftest$ac_exeext'
11243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244   (eval $ac_try) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; }; then
11248   am_cv_val_LC_MESSAGES=yes
11249 else
11250   echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11252
11253 am_cv_val_LC_MESSAGES=no
11254 fi
11255 rm -f conftest.err conftest.$ac_objext \
11256       conftest$ac_exeext conftest.$ac_ext
11257 fi
11258 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11259 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11260   if test $am_cv_val_LC_MESSAGES = yes; then
11261
11262 cat >>confdefs.h <<\_ACEOF
11263 #define HAVE_LC_MESSAGES 1
11264 _ACEOF
11265
11266   fi
11267
11268
11269
11270   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11271 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11272 if test "${am_cv_langinfo_codeset+set}" = set; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275   cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281 #include <langinfo.h>
11282 int
11283 main ()
11284 {
11285 char* cs = nl_langinfo(CODESET);
11286   ;
11287   return 0;
11288 }
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292   (eval $ac_link) 2>conftest.er1
11293   ac_status=$?
11294   grep -v '^ *+' conftest.er1 >conftest.err
11295   rm -f conftest.er1
11296   cat conftest.err >&5
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); } &&
11299          { ac_try='test -z "$ac_c_werror_flag"
11300                          || test ! -s conftest.err'
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); }; } &&
11306          { ac_try='test -s conftest$ac_exeext'
11307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308   (eval $ac_try) 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; }; then
11312   am_cv_langinfo_codeset=yes
11313 else
11314   echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 am_cv_langinfo_codeset=no
11318 fi
11319 rm -f conftest.err conftest.$ac_objext \
11320       conftest$ac_exeext conftest.$ac_ext
11321
11322 fi
11323 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11324 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11325   if test $am_cv_langinfo_codeset = yes; then
11326
11327 cat >>confdefs.h <<\_ACEOF
11328 #define HAVE_LANGINFO_CODESET 1
11329 _ACEOF
11330
11331   fi
11332
11333
11334 # We will need to find libiberty.h and ansidecl.h
11335 saved_CFLAGS="$CFLAGS"
11336 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11377         strsignal strstr strverscmp \
11378         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11379         free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
11380 do
11381   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11382 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11383 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11384 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h.  */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h.  */
11393 #undef $ac_tr_decl
11394 #define $ac_tr_decl 1
11395
11396 #include "ansidecl.h"
11397 #include "system.h"
11398
11399 int
11400 main ()
11401 {
11402 #ifndef $ac_func
11403 char *(*pfn) = (char *(*)) $ac_func ;
11404 #endif
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411   (eval $ac_compile) 2>conftest.er1
11412   ac_status=$?
11413   grep -v '^ *+' conftest.er1 >conftest.err
11414   rm -f conftest.er1
11415   cat conftest.err >&5
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); } &&
11418          { ac_try='test -z "$ac_c_werror_flag"
11419                          || test ! -s conftest.err'
11420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421   (eval $ac_try) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; } &&
11425          { ac_try='test -s conftest.$ac_objext'
11426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427   (eval $ac_try) 2>&5
11428   ac_status=$?
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); }; }; then
11431   eval "gcc_cv_have_decl_$ac_func=yes"
11432 else
11433   echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436 eval "gcc_cv_have_decl_$ac_func=no"
11437 fi
11438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11439 fi
11440
11441 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11442   echo "$as_me:$LINENO: result: yes" >&5
11443 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11444 #define $ac_tr_decl 1
11445 _ACEOF
11446
11447 else
11448   echo "$as_me:$LINENO: result: no" >&5
11449 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11450 #define $ac_tr_decl 0
11451 _ACEOF
11452
11453 fi
11454
11455 done
11456
11457
11458
11459
11460
11461 for ac_func in getrlimit setrlimit getrusage
11462 do
11463   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11464 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11465 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11466 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h.  */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h.  */
11475 #undef $ac_tr_decl
11476 #define $ac_tr_decl 1
11477
11478 #include "ansidecl.h"
11479 #include "system.h"
11480 #ifdef HAVE_SYS_RESOURCE_H
11481 #include <sys/resource.h>
11482 #endif
11483
11484
11485 int
11486 main ()
11487 {
11488 #ifndef $ac_func
11489 char *(*pfn) = (char *(*)) $ac_func ;
11490 #endif
11491   ;
11492   return 0;
11493 }
11494 _ACEOF
11495 rm -f conftest.$ac_objext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497   (eval $ac_compile) 2>conftest.er1
11498   ac_status=$?
11499   grep -v '^ *+' conftest.er1 >conftest.err
11500   rm -f conftest.er1
11501   cat conftest.err >&5
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } &&
11504          { ac_try='test -z "$ac_c_werror_flag"
11505                          || test ! -s conftest.err'
11506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507   (eval $ac_try) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; } &&
11511          { ac_try='test -s conftest.$ac_objext'
11512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513   (eval $ac_try) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; }; then
11517   eval "gcc_cv_have_decl_$ac_func=yes"
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 eval "gcc_cv_have_decl_$ac_func=no"
11523 fi
11524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11525 fi
11526
11527 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11528   echo "$as_me:$LINENO: result: yes" >&5
11529 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11530 #define $ac_tr_decl 1
11531 _ACEOF
11532
11533 else
11534   echo "$as_me:$LINENO: result: no" >&5
11535 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11536 #define $ac_tr_decl 0
11537 _ACEOF
11538
11539 fi
11540
11541 done
11542
11543
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h.  */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h.  */
11550
11551 #include "ansidecl.h"
11552 #include "system.h"
11553 #ifdef HAVE_SYS_RESOURCE_H
11554 #include <sys/resource.h>
11555 #endif
11556
11557 int
11558 main ()
11559 {
11560 rlim_t l = 0;
11561   ;
11562   return 0;
11563 }
11564 _ACEOF
11565 rm -f conftest.$ac_objext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11567   (eval $ac_compile) 2>conftest.er1
11568   ac_status=$?
11569   grep -v '^ *+' conftest.er1 >conftest.err
11570   rm -f conftest.er1
11571   cat conftest.err >&5
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); } &&
11574          { ac_try='test -z "$ac_c_werror_flag"
11575                          || test ! -s conftest.err'
11576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577   (eval $ac_try) 2>&5
11578   ac_status=$?
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); }; } &&
11581          { ac_try='test -s conftest.$ac_objext'
11582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583   (eval $ac_try) 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); }; }; then
11587   :
11588 else
11589   echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11591
11592
11593 cat >>confdefs.h <<\_ACEOF
11594 #define rlim_t long
11595 _ACEOF
11596
11597 fi
11598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11599
11600 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11601 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11602 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11603 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11604
11605 for ac_func in ldgetname
11606 do
11607   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11608 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11609 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11610 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11611   echo $ECHO_N "(cached) $ECHO_C" >&6
11612 else
11613   cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h.  */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h.  */
11619 #undef $ac_tr_decl
11620 #define $ac_tr_decl 1
11621
11622 #include "ansidecl.h"
11623 #include "system.h"
11624 #ifdef HAVE_LDFCN_H
11625 #undef FREAD
11626 #undef FWRITE
11627 #include <ldfcn.h>
11628 #endif
11629
11630
11631 int
11632 main ()
11633 {
11634 #ifndef $ac_func
11635 char *(*pfn) = (char *(*)) $ac_func ;
11636 #endif
11637   ;
11638   return 0;
11639 }
11640 _ACEOF
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643   (eval $ac_compile) 2>conftest.er1
11644   ac_status=$?
11645   grep -v '^ *+' conftest.er1 >conftest.err
11646   rm -f conftest.er1
11647   cat conftest.err >&5
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); } &&
11650          { ac_try='test -z "$ac_c_werror_flag"
11651                          || test ! -s conftest.err'
11652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653   (eval $ac_try) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; } &&
11657          { ac_try='test -s conftest.$ac_objext'
11658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659   (eval $ac_try) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; }; then
11663   eval "gcc_cv_have_decl_$ac_func=yes"
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 eval "gcc_cv_have_decl_$ac_func=no"
11669 fi
11670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11671 fi
11672
11673 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11674   echo "$as_me:$LINENO: result: yes" >&5
11675 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11676 #define $ac_tr_decl 1
11677 _ACEOF
11678
11679 else
11680   echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11682 #define $ac_tr_decl 0
11683 _ACEOF
11684
11685 fi
11686
11687 done
11688
11689
11690
11691 for ac_func in times
11692 do
11693   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11694 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11695 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11696 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 #undef $ac_tr_decl
11706 #define $ac_tr_decl 1
11707
11708 #include "ansidecl.h"
11709 #include "system.h"
11710 #ifdef HAVE_SYS_TIMES_H
11711 #include <sys/times.h>
11712 #endif
11713
11714
11715 int
11716 main ()
11717 {
11718 #ifndef $ac_func
11719 char *(*pfn) = (char *(*)) $ac_func ;
11720 #endif
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 rm -f conftest.$ac_objext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11727   (eval $ac_compile) 2>conftest.er1
11728   ac_status=$?
11729   grep -v '^ *+' conftest.er1 >conftest.err
11730   rm -f conftest.er1
11731   cat conftest.err >&5
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } &&
11734          { ac_try='test -z "$ac_c_werror_flag"
11735                          || test ! -s conftest.err'
11736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737   (eval $ac_try) 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); }; } &&
11741          { ac_try='test -s conftest.$ac_objext'
11742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743   (eval $ac_try) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); }; }; then
11747   eval "gcc_cv_have_decl_$ac_func=yes"
11748 else
11749   echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752 eval "gcc_cv_have_decl_$ac_func=no"
11753 fi
11754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11755 fi
11756
11757 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11758   echo "$as_me:$LINENO: result: yes" >&5
11759 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11760 #define $ac_tr_decl 1
11761 _ACEOF
11762
11763 else
11764   echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11766 #define $ac_tr_decl 0
11767 _ACEOF
11768
11769 fi
11770
11771 done
11772
11773
11774
11775 for ac_func in sigaltstack
11776 do
11777   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11778 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11779 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11780 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11781   echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783   cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h.  */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h.  */
11789 #undef $ac_tr_decl
11790 #define $ac_tr_decl 1
11791
11792 #include "ansidecl.h"
11793 #include "system.h"
11794 #include <signal.h>
11795
11796
11797 int
11798 main ()
11799 {
11800 #ifndef $ac_func
11801 char *(*pfn) = (char *(*)) $ac_func ;
11802 #endif
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 rm -f conftest.$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809   (eval $ac_compile) 2>conftest.er1
11810   ac_status=$?
11811   grep -v '^ *+' conftest.er1 >conftest.err
11812   rm -f conftest.er1
11813   cat conftest.err >&5
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); } &&
11816          { ac_try='test -z "$ac_c_werror_flag"
11817                          || test ! -s conftest.err'
11818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819   (eval $ac_try) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; } &&
11823          { ac_try='test -s conftest.$ac_objext'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; }; then
11829   eval "gcc_cv_have_decl_$ac_func=yes"
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834 eval "gcc_cv_have_decl_$ac_func=no"
11835 fi
11836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11837 fi
11838
11839 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11840   echo "$as_me:$LINENO: result: yes" >&5
11841 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11842 #define $ac_tr_decl 1
11843 _ACEOF
11844
11845 else
11846   echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11848 #define $ac_tr_decl 0
11849 _ACEOF
11850
11851 fi
11852
11853 done
11854
11855
11856 # More time-related stuff.
11857 echo "$as_me:$LINENO: checking for struct tms" >&5
11858 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11859 if test "${ac_cv_struct_tms+set}" = set; then
11860   echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h.  */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h.  */
11869
11870 #include "ansidecl.h"
11871 #include "system.h"
11872 #ifdef HAVE_SYS_TIMES_H
11873 #include <sys/times.h>
11874 #endif
11875
11876 int
11877 main ()
11878 {
11879 struct tms tms;
11880   ;
11881   return 0;
11882 }
11883 _ACEOF
11884 rm -f conftest.$ac_objext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11886   (eval $ac_compile) 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } &&
11893          { ac_try='test -z "$ac_c_werror_flag"
11894                          || test ! -s conftest.err'
11895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896   (eval $ac_try) 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); }; } &&
11900          { ac_try='test -s conftest.$ac_objext'
11901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902   (eval $ac_try) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; }; then
11906   ac_cv_struct_tms=yes
11907 else
11908   echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11910
11911 ac_cv_struct_tms=no
11912 fi
11913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11914 fi
11915 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11916 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11917 if test $ac_cv_struct_tms = yes; then
11918
11919 cat >>confdefs.h <<\_ACEOF
11920 #define HAVE_STRUCT_TMS 1
11921 _ACEOF
11922
11923 fi
11924
11925 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11926 # revisit after autoconf 2.50.
11927 echo "$as_me:$LINENO: checking for clock_t" >&5
11928 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11929 if test "${gcc_cv_type_clock_t+set}" = set; then
11930   echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h.  */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h.  */
11939
11940 #include "ansidecl.h"
11941 #include "system.h"
11942
11943 int
11944 main ()
11945 {
11946 clock_t x;
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953   (eval $ac_compile) 2>conftest.er1
11954   ac_status=$?
11955   grep -v '^ *+' conftest.er1 >conftest.err
11956   rm -f conftest.er1
11957   cat conftest.err >&5
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } &&
11960          { ac_try='test -z "$ac_c_werror_flag"
11961                          || test ! -s conftest.err'
11962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963   (eval $ac_try) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); }; } &&
11967          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11973   gcc_cv_type_clock_t=yes
11974 else
11975   echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 gcc_cv_type_clock_t=no
11979 fi
11980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11981 fi
11982 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11983 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11984 if test $gcc_cv_type_clock_t = yes; then
11985
11986 cat >>confdefs.h <<\_ACEOF
11987 #define HAVE_CLOCK_T 1
11988 _ACEOF
11989
11990 fi
11991
11992 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11993 CFLAGS="$saved_CFLAGS"
11994
11995 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11996 if test "${enable_initfini_array+set}" = set; then
11997   enableval="$enable_initfini_array"
11998
11999 else
12000
12001 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12002 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12003 if test "${gcc_cv_initfini_array+set}" = set; then
12004   echo $ECHO_N "(cached) $ECHO_C" >&6
12005 else
12006     if test "$cross_compiling" = yes; then
12007   gcc_cv_initfini_array=no
12008 else
12009   cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h.  */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h.  */
12015
12016 static int x = -1;
12017 int main (void) { return x; }
12018 int foo (void) { x = 0; }
12019 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12020 _ACEOF
12021 rm -f conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023   (eval $ac_link) 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028   (eval $ac_try) 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); }; }; then
12032   gcc_cv_initfini_array=yes
12033 else
12034   echo "$as_me: program exited with status $ac_status" >&5
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 ( exit $ac_status )
12039 gcc_cv_initfini_array=no
12040 fi
12041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12042 fi
12043 fi
12044 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12045 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12046   enable_initfini_array=$gcc_cv_initfini_array
12047
12048 fi;
12049 if test $enable_initfini_array = yes; then
12050
12051 cat >>confdefs.h <<\_ACEOF
12052 #define HAVE_INITFINI_ARRAY 1
12053 _ACEOF
12054
12055 fi
12056
12057 # mkdir takes a single argument on some systems.
12058 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12059 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12060 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12061   echo $ECHO_N "(cached) $ECHO_C" >&6
12062 else
12063   cat >conftest.$ac_ext <<_ACEOF
12064 /* confdefs.h.  */
12065 _ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h.  */
12069
12070 #include <sys/types.h>
12071 #ifdef HAVE_SYS_STAT_H
12072 # include <sys/stat.h>
12073 #endif
12074 #ifdef HAVE_UNISTD_H
12075 # include <unistd.h>
12076 #endif
12077 #ifdef HAVE_DIRECT_H
12078 # include <direct.h>
12079 #endif
12080 int
12081 main ()
12082 {
12083 mkdir ("foo", 0);
12084   ;
12085   return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12090   (eval $ac_compile) 2>conftest.er1
12091   ac_status=$?
12092   grep -v '^ *+' conftest.er1 >conftest.err
12093   rm -f conftest.er1
12094   cat conftest.err >&5
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); } &&
12097          { ac_try='test -z "$ac_c_werror_flag"
12098                          || test ! -s conftest.err'
12099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100   (eval $ac_try) 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; } &&
12104          { ac_try='test -s conftest.$ac_objext'
12105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106   (eval $ac_try) 2>&5
12107   ac_status=$?
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); }; }; then
12110   gcc_cv_mkdir_takes_one_arg=no
12111 else
12112   echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115 gcc_cv_mkdir_takes_one_arg=yes
12116 fi
12117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12118 fi
12119 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12120 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12121 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12122
12123 cat >>confdefs.h <<\_ACEOF
12124 #define MKDIR_TAKES_ONE_ARG 1
12125 _ACEOF
12126
12127 fi
12128
12129
12130 # File extensions
12131 manext='.1'
12132 objext='.o'
12133
12134
12135
12136 # With Setjmp/Longjmp based exception handling.
12137 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12138 if test "${enable_sjlj_exceptions+set}" = set; then
12139   enableval="$enable_sjlj_exceptions"
12140   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12141
12142 cat >>confdefs.h <<_ACEOF
12143 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12144 _ACEOF
12145
12146 fi;
12147
12148 # For platforms with the unwind ABI which includes an unwind library,
12149 # libunwind, we can choose to use the system libunwind.
12150
12151 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12152 if test "${with_system_libunwind+set}" = set; then
12153   withval="$with_system_libunwind"
12154
12155 fi;
12156
12157 # --------------------------------------------------------
12158 # Build, host, and target specific configuration fragments
12159 # --------------------------------------------------------
12160
12161 # Collect build-machine-specific information.
12162 . ${srcdir}/config.build
12163
12164 # Collect host-machine-specific information.
12165 . ${srcdir}/config.host
12166
12167 target_gtfiles=
12168
12169 # Collect target-machine-specific information.
12170 . ${srcdir}/config.gcc
12171
12172 extra_objs="${host_extra_objs} ${extra_objs}"
12173 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12174
12175 # Default the target-machine variables that were not explicitly set.
12176 if test x"$tm_file" = x
12177 then tm_file=$cpu_type/$cpu_type.h; fi
12178
12179 if test x"$extra_headers" = x
12180 then extra_headers=; fi
12181
12182 if test x$md_file = x
12183 then md_file=$cpu_type/$cpu_type.md; fi
12184
12185 if test x$out_file = x
12186 then out_file=$cpu_type/$cpu_type.c; fi
12187
12188 if test x"$tmake_file" = x
12189 then tmake_file=$cpu_type/t-$cpu_type
12190 fi
12191
12192 if test x"$dwarf2" = xyes
12193 then tm_file="$tm_file tm-dwarf2.h"
12194 fi
12195
12196 # Say what files are being used for the output code and MD file.
12197 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12198 echo "Using \`$srcdir/config/$md_file' as machine description file."
12199
12200 # If any of the xm_file variables contain nonexistent files, warn
12201 # about them and drop them.
12202
12203 bx=
12204 for x in $build_xm_file; do
12205   if    test -f $srcdir/config/$x
12206   then      bx="$bx $x"
12207   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12208 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12209   fi
12210 done
12211 build_xm_file="$bx"
12212
12213 hx=
12214 for x in $host_xm_file; do
12215   if    test -f $srcdir/config/$x
12216   then      hx="$hx $x"
12217   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12218 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12219   fi
12220 done
12221 host_xm_file="$hx"
12222
12223 tx=
12224 for x in $xm_file; do
12225   if    test -f $srcdir/config/$x
12226   then      tx="$tx $x"
12227   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12228 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12229   fi
12230 done
12231 xm_file="$tx"
12232
12233 count=a
12234 for f in $tm_file; do
12235         count=${count}x
12236 done
12237 if test $count = ax; then
12238         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12239 else
12240         echo "Using the following target machine macro files:"
12241         for f in $tm_file; do
12242                 echo "  $srcdir/config/$f"
12243         done
12244 fi
12245
12246 if test x$need_64bit_hwint = xyes; then
12247
12248 cat >>confdefs.h <<\_ACEOF
12249 #define NEED_64BIT_HOST_WIDE_INT 1
12250 _ACEOF
12251
12252 fi
12253
12254 if test x$use_long_long_for_widest_fast_int = xyes; then
12255
12256 cat >>confdefs.h <<\_ACEOF
12257 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12258 _ACEOF
12259
12260 fi
12261
12262 count=a
12263 for f in $host_xm_file; do
12264         count=${count}x
12265 done
12266 if test $count = a; then
12267         :
12268 elif test $count = ax; then
12269         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12270 else
12271         echo "Using the following host machine macro files:"
12272         for f in $host_xm_file; do
12273                 echo "  $srcdir/config/$f"
12274         done
12275 fi
12276 echo "Using ${out_host_hook_obj} for host machine hooks."
12277
12278 if test "$host_xm_file" != "$build_xm_file"; then
12279         count=a
12280         for f in $build_xm_file; do
12281                 count=${count}x
12282         done
12283         if test $count = a; then
12284                 :
12285         elif test $count = ax; then
12286                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12287         else
12288                 echo "Using the following build machine macro files:"
12289                 for f in $build_xm_file; do
12290                         echo "  $srcdir/config/$f"
12291                 done
12292         fi
12293 fi
12294
12295 case ${host} in
12296   powerpc-*-darwin*)
12297     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12298 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12299 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12300   echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302   cat >conftest.$ac_ext <<_ACEOF
12303
12304 #include <sys/signal.h>
12305 #include <ucontext.h>
12306 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12307
12308 _ACEOF
12309 rm -f conftest.$ac_objext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311   (eval $ac_compile) 2>conftest.er1
12312   ac_status=$?
12313   grep -v '^ *+' conftest.er1 >conftest.err
12314   rm -f conftest.er1
12315   cat conftest.err >&5
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); } &&
12318          { ac_try='test -z "$ac_c_werror_flag"
12319                          || test ! -s conftest.err'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; } &&
12325          { ac_try='test -s conftest.$ac_objext'
12326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327   (eval $ac_try) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; }; then
12331   gcc_cv_mcontext_underscores=no
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 gcc_cv_mcontext_underscores=yes
12337 fi
12338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12339 fi
12340 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12341 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12342       if test $gcc_cv_mcontext_underscores = yes; then
12343
12344 cat >>confdefs.h <<\_ACEOF
12345 #define HAS_MCONTEXT_T_UNDERSCORES
12346 _ACEOF
12347
12348       fi
12349     ;;
12350 esac
12351
12352 # ---------
12353 # Threading
12354 # ---------
12355
12356 # Check if a valid thread package
12357 case ${enable_threads} in
12358   "" | no)
12359     # No threads
12360     target_thread_file='single'
12361     ;;
12362   yes)
12363     # default
12364     target_thread_file='single'
12365     ;;
12366   aix | dce | gnat | irix | posix | posix95 | rtems | \
12367   single | solaris | vxworks | win32 )
12368     target_thread_file=${enable_threads}
12369     ;;
12370   *)
12371     echo "${enable_threads} is an unknown thread package" 1>&2
12372     exit 1
12373     ;;
12374 esac
12375
12376 if test x${thread_file} = x; then
12377   # No thread file set by target-specific clauses in config.gcc,
12378   # so use file chosen by default logic above
12379   thread_file=${target_thread_file}
12380 fi
12381
12382 # Make gthr-default.h if we have a thread file.
12383 gthread_flags=
12384 if test $thread_file != single; then
12385   rm -f gthr-default.h
12386   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12387   gthread_flags=-DHAVE_GTHR_DEFAULT
12388 fi
12389
12390
12391 # --------
12392 # UNSORTED
12393 # --------
12394
12395 use_cxa_atexit=no
12396 if test x$enable___cxa_atexit = xyes || \
12397    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12398   if test x$host = x$target; then
12399     echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12400 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12401 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12402   echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404   cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12412 #define __cxa_atexit innocuous___cxa_atexit
12413
12414 /* System header to define __stub macros and hopefully few prototypes,
12415     which can conflict with char __cxa_atexit (); below.
12416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12417     <limits.h> exists even on freestanding compilers.  */
12418
12419 #ifdef __STDC__
12420 # include <limits.h>
12421 #else
12422 # include <assert.h>
12423 #endif
12424
12425 #undef __cxa_atexit
12426
12427 /* Override any gcc2 internal prototype to avoid an error.  */
12428 #ifdef __cplusplus
12429 extern "C"
12430 {
12431 #endif
12432 /* We use char because int might match the return type of a gcc2
12433    builtin and then its argument prototype would still apply.  */
12434 char __cxa_atexit ();
12435 /* The GNU C library defines this for functions which it implements
12436     to always fail with ENOSYS.  Some functions are actually named
12437     something starting with __ and the normal name is an alias.  */
12438 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12439 choke me
12440 #else
12441 char (*f) () = __cxa_atexit;
12442 #endif
12443 #ifdef __cplusplus
12444 }
12445 #endif
12446
12447 int
12448 main ()
12449 {
12450 return f != __cxa_atexit;
12451   ;
12452   return 0;
12453 }
12454 _ACEOF
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457   (eval $ac_link) 2>conftest.er1
12458   ac_status=$?
12459   grep -v '^ *+' conftest.er1 >conftest.err
12460   rm -f conftest.er1
12461   cat conftest.err >&5
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); } &&
12464          { ac_try='test -z "$ac_c_werror_flag"
12465                          || test ! -s conftest.err'
12466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467   (eval $ac_try) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; } &&
12471          { ac_try='test -s conftest$ac_exeext'
12472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473   (eval $ac_try) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; }; then
12477   ac_cv_func___cxa_atexit=yes
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 ac_cv_func___cxa_atexit=no
12483 fi
12484 rm -f conftest.err conftest.$ac_objext \
12485       conftest$ac_exeext conftest.$ac_ext
12486 fi
12487 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12488 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12489 if test $ac_cv_func___cxa_atexit = yes; then
12490   use_cxa_atexit=yes
12491 else
12492   echo "__cxa_atexit can't be enabled on this target"
12493 fi
12494
12495   else
12496     # We can't check for __cxa_atexit when building a cross, so assume
12497     # it is available
12498     use_cxa_atexit=yes
12499   fi
12500   if test x$use_cxa_atexit = xyes; then
12501
12502 cat >>confdefs.h <<\_ACEOF
12503 #define DEFAULT_USE_CXA_ATEXIT 2
12504 _ACEOF
12505
12506   fi
12507 fi
12508
12509 # Look for a file containing extra machine modes.
12510 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12511   extra_modes_file='$(srcdir)'/config/${extra_modes}
12512
12513
12514 cat >>confdefs.h <<_ACEOF
12515 #define EXTRA_MODES_FILE "config/$extra_modes"
12516 _ACEOF
12517
12518 fi
12519
12520 # Convert extra_options into a form suitable for Makefile use.
12521 extra_opt_files=
12522 for f in $extra_options; do
12523   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12524 done
12525
12526
12527 # auto-host.h is the file containing items generated by autoconf and is
12528 # the first file included by config.h.
12529 # If host=build, it is correct to have bconfig include auto-host.h
12530 # as well.  If host!=build, we are in error and need to do more
12531 # work to find out the build config parameters.
12532 if test x$host = x$build
12533 then
12534         build_auto=auto-host.h
12535 else
12536         # We create a subdir, then run autoconf in the subdir.
12537         # To prevent recursion we set host and build for the new
12538         # invocation of configure to the build for this invocation
12539         # of configure.
12540         tempdir=build.$$
12541         rm -rf $tempdir
12542         mkdir $tempdir
12543         cd $tempdir
12544         case ${srcdir} in
12545         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12546         *) realsrcdir=../${srcdir};;
12547         esac
12548         saved_CFLAGS="${CFLAGS}"
12549         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12550         ${realsrcdir}/configure \
12551                 --enable-languages=${enable_languages-all} \
12552                 --target=$target_alias --host=$build_alias --build=$build_alias
12553         CFLAGS="${saved_CFLAGS}"
12554
12555         # We just finished tests for the build machine, so rename
12556         # the file auto-build.h in the gcc directory.
12557         mv auto-host.h ../auto-build.h
12558         cd ..
12559         rm -rf $tempdir
12560         build_auto=auto-build.h
12561 fi
12562
12563
12564 tm_file="${tm_file} defaults.h"
12565 tm_p_file="${tm_p_file} tm-preds.h"
12566 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12567 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12568 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12569 # put this back in temporarily.
12570 xm_file="auto-host.h ansidecl.h ${xm_file}"
12571
12572 # --------
12573 # UNSORTED
12574 # --------
12575
12576 # Compile in configure arguments.
12577 if test -f configargs.h ; then
12578         # Being re-configured.
12579         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12580         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12581 else
12582         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12583 fi
12584
12585 # Double all backslashes and backslash all quotes to turn
12586 # gcc_config_arguments into a C string.
12587 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12588 $gcc_config_arguments
12589 EOF
12590 gcc_config_arguments_str=`cat conftest.out`
12591 rm -f conftest.out
12592
12593 cat > configargs.h <<EOF
12594 /* Generated automatically. */
12595 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12596 static const char thread_model[] = "$thread_file";
12597
12598 static const struct {
12599   const char *name, *value;
12600 } configure_default_options[] = $configure_default_options;
12601 EOF
12602
12603 # Internationalization
12604 # If we haven't got the data from the intl directory,
12605 # assume NLS is disabled.
12606 USE_NLS=no
12607 LIBINTL=
12608 LIBINTL_DEP=
12609 INCINTL=
12610 XGETTEXT=
12611 GMSGFMT=
12612 POSUB=
12613
12614 if test -f  ../intl/config.intl; then
12615   .  ../intl/config.intl
12616 fi
12617 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12618 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12619 if test x"$USE_NLS" != xyes; then
12620   echo "$as_me:$LINENO: result: no" >&5
12621 echo "${ECHO_T}no" >&6
12622 else
12623   echo "$as_me:$LINENO: result: yes" >&5
12624 echo "${ECHO_T}yes" >&6
12625
12626 cat >>confdefs.h <<\_ACEOF
12627 #define ENABLE_NLS 1
12628 _ACEOF
12629
12630
12631   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12632 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12633   # Look for .po and .gmo files in the source directory.
12634   CATALOGS=
12635   XLINGUAS=
12636   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12637     # If there aren't any .gmo files the shell will give us the
12638     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12639     # weeded out.
12640     case "$cat" in *\**)
12641       continue;;
12642     esac
12643     # The quadruple backslash is collapsed to a double backslash
12644     # by the backticks, then collapsed again by the double quotes,
12645     # leaving us with one backslash in the sed expression (right
12646     # before the dot that mustn't act as a wildcard).
12647     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12648     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12649     # The user is allowed to set LINGUAS to a list of languages to
12650     # install catalogs for.  If it's empty that means "all of them."
12651     if test "x$LINGUAS" = x; then
12652       CATALOGS="$CATALOGS $cat"
12653       XLINGUAS="$XLINGUAS $lang"
12654     else
12655       case "$LINGUAS" in *$lang*)
12656         CATALOGS="$CATALOGS $cat"
12657         XLINGUAS="$XLINGUAS $lang"
12658         ;;
12659       esac
12660     fi
12661   done
12662   LINGUAS="$XLINGUAS"
12663   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12664 echo "${ECHO_T}$LINGUAS" >&6
12665
12666
12667     DATADIRNAME=share
12668
12669   INSTOBJEXT=.mo
12670
12671   GENCAT=gencat
12672
12673   CATOBJEXT=.gmo
12674
12675 fi
12676
12677 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12678 # -liconv on the link line twice.
12679 case "$LIBINTL" in *$LIBICONV*)
12680         LIBICONV= ;;
12681 esac
12682
12683 # Check whether --enable-secureplt or --disable-secureplt was given.
12684 if test "${enable_secureplt+set}" = set; then
12685   enableval="$enable_secureplt"
12686
12687 fi;
12688
12689 # Windows32 Registry support for specifying GCC installation paths.
12690 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12691 if test "${enable_win32_registry+set}" = set; then
12692   enableval="$enable_win32_registry"
12693
12694 fi;
12695
12696 case $host_os in
12697   win32 | pe | cygwin* | mingw32* | uwin*)
12698     if test "x$enable_win32_registry" != xno; then
12699       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12700 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12701 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12702   echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704   ac_func_search_save_LIBS=$LIBS
12705 ac_cv_search_RegOpenKeyExA=no
12706 cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h.  */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h.  */
12712
12713 /* Override any gcc2 internal prototype to avoid an error.  */
12714 #ifdef __cplusplus
12715 extern "C"
12716 #endif
12717 /* We use char because int might match the return type of a gcc2
12718    builtin and then its argument prototype would still apply.  */
12719 char RegOpenKeyExA ();
12720 int
12721 main ()
12722 {
12723 RegOpenKeyExA ();
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12730   (eval $ac_link) 2>conftest.er1
12731   ac_status=$?
12732   grep -v '^ *+' conftest.er1 >conftest.err
12733   rm -f conftest.er1
12734   cat conftest.err >&5
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } &&
12737          { ac_try='test -z "$ac_c_werror_flag"
12738                          || test ! -s conftest.err'
12739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740   (eval $ac_try) 2>&5
12741   ac_status=$?
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); }; } &&
12744          { ac_try='test -s conftest$ac_exeext'
12745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746   (eval $ac_try) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; }; then
12750   ac_cv_search_RegOpenKeyExA="none required"
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755 fi
12756 rm -f conftest.err conftest.$ac_objext \
12757       conftest$ac_exeext conftest.$ac_ext
12758 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12759   for ac_lib in advapi32; do
12760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12761     cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h.  */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h.  */
12767
12768 /* Override any gcc2 internal prototype to avoid an error.  */
12769 #ifdef __cplusplus
12770 extern "C"
12771 #endif
12772 /* We use char because int might match the return type of a gcc2
12773    builtin and then its argument prototype would still apply.  */
12774 char RegOpenKeyExA ();
12775 int
12776 main ()
12777 {
12778 RegOpenKeyExA ();
12779   ;
12780   return 0;
12781 }
12782 _ACEOF
12783 rm -f conftest.$ac_objext conftest$ac_exeext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785   (eval $ac_link) 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } &&
12792          { ac_try='test -z "$ac_c_werror_flag"
12793                          || test ! -s conftest.err'
12794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795   (eval $ac_try) 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; } &&
12799          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12805   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12806 break
12807 else
12808   echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811 fi
12812 rm -f conftest.err conftest.$ac_objext \
12813       conftest$ac_exeext conftest.$ac_ext
12814   done
12815 fi
12816 LIBS=$ac_func_search_save_LIBS
12817 fi
12818 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12819 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12820 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12821   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12822
12823 else
12824   enable_win32_registry=no
12825 fi
12826
12827     fi
12828
12829     if test "x$enable_win32_registry" != xno; then
12830
12831 cat >>confdefs.h <<\_ACEOF
12832 #define ENABLE_WIN32_REGISTRY 1
12833 _ACEOF
12834
12835
12836       if test "x$enable_win32_registry" != xyes \
12837          && test "x$enable_win32_registry" != x; then
12838
12839 cat >>confdefs.h <<_ACEOF
12840 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12841 _ACEOF
12842
12843       fi
12844     fi
12845   ;;
12846 esac
12847
12848 # Get an absolute path to the GCC top-level source directory
12849 holddir=`${PWDCMD-pwd}`
12850 cd $srcdir
12851 topdir=`${PWDCMD-pwd}`
12852 cd $holddir
12853
12854 # Conditionalize the makefile for this host machine.
12855 xmake_file=
12856 for f in ${host_xmake_file}
12857 do
12858         if test -f ${srcdir}/config/$f
12859         then
12860                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12861         fi
12862 done
12863
12864 # Conditionalize the makefile for this target machine.
12865 tmake_file_=
12866 for f in ${tmake_file}
12867 do
12868         if test -f ${srcdir}/config/$f
12869         then
12870                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12871         fi
12872 done
12873 tmake_file="${tmake_file_}"
12874
12875 # If the host doesn't support symlinks, modify CC in
12876 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12877 # Otherwise, we can use "CC=$(CC)".
12878 rm -f symtest.tem
12879 case "$LN_S" in
12880         *-s*)
12881                 cc_set_by_configure="\$(CC)"
12882                 quoted_cc_set_by_configure="\$(CC)"
12883                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12884                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12885                 ;;
12886         *)
12887                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12888                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12889                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12890                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12891                 ;;
12892 esac
12893
12894 # This is a terrible hack which will go away some day.
12895 host_cc_for_libada=${CC}
12896
12897
12898 out_object_file=`basename $out_file .c`.o
12899
12900 tm_file_list="options.h"
12901 tm_include_list="options.h"
12902 for f in $tm_file; do
12903   case $f in
12904     defaults.h )
12905        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12906        tm_include_list="${tm_include_list} $f"
12907        ;;
12908     * )
12909        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12910        tm_include_list="${tm_include_list} config/$f"
12911        ;;
12912   esac
12913 done
12914
12915 tm_p_file_list=
12916 tm_p_include_list=
12917 for f in $tm_p_file; do
12918   case $f in
12919     tm-preds.h )
12920        tm_p_file_list="${tm_p_file_list} $f"
12921        tm_p_include_list="${tm_p_include_list} $f"
12922        ;;
12923     * )
12924        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12925        tm_p_include_list="${tm_p_include_list} config/$f"
12926   esac
12927 done
12928
12929 xm_file_list=
12930 xm_include_list=
12931 for f in $xm_file; do
12932   case $f in
12933     ansidecl.h )
12934        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12935        xm_include_list="${xm_include_list} $f"
12936        ;;
12937     auto-host.h )
12938        xm_file_list="${xm_file_list} $f"
12939        xm_include_list="${xm_include_list} $f"
12940        ;;
12941     * )
12942        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12943        xm_include_list="${xm_include_list} config/$f"
12944        ;;
12945   esac
12946 done
12947
12948 host_xm_file_list=
12949 host_xm_include_list=
12950 for f in $host_xm_file; do
12951   case $f in
12952     ansidecl.h )
12953        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12954        host_xm_include_list="${host_xm_include_list} $f"
12955        ;;
12956     auto-host.h )
12957        host_xm_file_list="${host_xm_file_list} $f"
12958        host_xm_include_list="${host_xm_include_list} $f"
12959        ;;
12960     * )
12961        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12962        host_xm_include_list="${host_xm_include_list} config/$f"
12963        ;;
12964   esac
12965 done
12966
12967 build_xm_file_list=
12968 for f in $build_xm_file; do
12969   case $f in
12970     ansidecl.h )
12971        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12972        build_xm_include_list="${build_xm_include_list} $f"
12973        ;;
12974     auto-build.h | auto-host.h )
12975        build_xm_file_list="${build_xm_file_list} $f"
12976        build_xm_include_list="${build_xm_include_list} $f"
12977        ;;
12978     * )
12979        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12980        build_xm_include_list="${build_xm_include_list} config/$f"
12981        ;;
12982   esac
12983 done
12984
12985 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12986 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12987 CROSS=
12988 ALL=all.internal
12989 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12990
12991 if test "x$with_build_sysroot" != x; then
12992   build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12993 else
12994   # This value is used, even on a native system, because
12995   # CROSS_SYSTEM_HEADER_DIR is just
12996   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12997   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12998 fi
12999
13000 if test x$host != x$target
13001 then
13002         CROSS="-DCROSS_COMPILE"
13003         ALL=all.cross
13004         SYSTEM_HEADER_DIR=$build_system_header_dir
13005         case "$host","$target" in
13006         # Darwin crosses can use the host system's libraries and headers,
13007         # because of the fat library support.  Of course, it must be the
13008         # same version of Darwin on both sides.  Allow the user to
13009         # just say --target=foo-darwin without a version number to mean
13010         # "the version on this system".
13011             *-*-darwin*,*-*-darwin*)
13012                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13013                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13014                 if test $hostos = $targetos -o $targetos = darwin ; then
13015                     CROSS=
13016                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13017                     with_headers=yes
13018                 fi
13019                 ;;
13020
13021             i?86-*-*,x86_64-*-* \
13022             | powerpc*-*-*,powerpc64*-*-*)
13023                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13024         esac
13025 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13026         SYSTEM_HEADER_DIR=$build_system_header_dir
13027 fi
13028
13029 # If this is a cross-compiler that does not
13030 # have its own set of headers then define
13031 # inhibit_libc
13032
13033 # If this is using newlib, without having the headers available now,
13034 # then define inhibit_libc in LIBGCC2_CFLAGS.
13035 # This prevents libgcc2 from containing any code which requires libc
13036 # support.
13037 inhibit_libc=false
13038 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13039        test x$with_newlib = xyes ; } &&
13040      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13041        inhibit_libc=true
13042 fi
13043
13044
13045 # When building gcc with a cross-compiler, we need to adjust things so
13046 # that the generator programs are still built with the native compiler.
13047 # Also, we cannot run fixincludes or fix-header.
13048
13049 # These are the normal (build=host) settings:
13050 CC_FOR_BUILD='$(CC)'
13051 BUILD_CFLAGS='$(ALL_CFLAGS)'
13052 STMP_FIXINC=stmp-fixinc
13053
13054 # Possibly disable fixproto, on a per-target basis.
13055 case ${use_fixproto} in
13056   no)
13057     STMP_FIXPROTO=
13058     ;;
13059   yes)
13060     STMP_FIXPROTO=stmp-fixproto
13061     ;;
13062 esac
13063
13064
13065 # And these apply if build != host, or we are generating coverage data
13066 if test x$build != x$host || test "x$coverage_flags" != x
13067 then
13068     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13069
13070     if test "x$TARGET_SYSTEM_ROOT" = x; then
13071         if test "x$STMP_FIXPROTO" != x; then
13072           STMP_FIXPROTO=stmp-install-fixproto
13073         fi
13074     fi
13075 fi
13076
13077 # Expand extra_headers to include complete path.
13078 # This substitutes for lots of t-* files.
13079 extra_headers_list=
13080 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13081 for file in ${extra_headers} ; do
13082   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13083 done
13084
13085 # Define collect2 in Makefile.
13086 case $host_can_use_collect2 in
13087   no) collect2= ;;
13088   *) collect2='collect2$(exeext)' ;;
13089 esac
13090
13091
13092 # Add a definition of USE_COLLECT2 if system wants one.
13093 case $use_collect2 in
13094   no) use_collect2= ;;
13095   "") ;;
13096   *)
13097     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13098     xm_defines="${xm_defines} USE_COLLECT2"
13099     case $host_can_use_collect2 in
13100       no)
13101         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13102 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13103    { (exit 1); exit 1; }; }
13104         ;;
13105     esac
13106     ;;
13107 esac
13108
13109 # ---------------------------
13110 # Assembler & linker features
13111 # ---------------------------
13112
13113 # Identify the assembler which will work hand-in-glove with the newly
13114 # built GCC, so that we can examine its features.  This is the assembler
13115 # which will be driven by the driver program.
13116 #
13117 # If build != host, and we aren't building gas in-tree, we identify a
13118 # build->target assembler and hope that it will have the same features
13119 # as the host->target assembler we'll be using.
13120 gcc_cv_gas_major_version=
13121 gcc_cv_gas_minor_version=
13122 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13123
13124 if test "${gcc_cv_as+set}" = set; then
13125   :
13126 else
13127
13128 if test -x "$DEFAULT_ASSEMBLER"; then
13129         gcc_cv_as="$DEFAULT_ASSEMBLER"
13130 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13131      && test -f ../gas/Makefile \
13132      && test x$build = x$host; then
13133         gcc_cv_as=../gas/as-new$build_exeext
13134 elif test -x as$build_exeext; then
13135         # Build using assembler in the current directory.
13136         gcc_cv_as=./as$build_exeext
13137 elif test -x $AS_FOR_TARGET; then
13138         gcc_cv_as="$AS_FOR_TARGET"
13139 else
13140         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13141 set dummy $AS_FOR_TARGET; ac_word=$2
13142 echo "$as_me:$LINENO: checking for $ac_word" >&5
13143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13144 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13145   echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147   case $gcc_cv_as in
13148   [\\/]* | ?:[\\/]*)
13149   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13150   ;;
13151   *)
13152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13154 do
13155   IFS=$as_save_IFS
13156   test -z "$as_dir" && as_dir=.
13157   for ac_exec_ext in '' $ac_executable_extensions; do
13158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13159     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13161     break 2
13162   fi
13163 done
13164 done
13165
13166   ;;
13167 esac
13168 fi
13169 gcc_cv_as=$ac_cv_path_gcc_cv_as
13170
13171 if test -n "$gcc_cv_as"; then
13172   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13173 echo "${ECHO_T}$gcc_cv_as" >&6
13174 else
13175   echo "$as_me:$LINENO: result: no" >&5
13176 echo "${ECHO_T}no" >&6
13177 fi
13178
13179 fi
13180 fi
13181
13182
13183 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13184
13185
13186 echo "$as_me:$LINENO: checking what assembler to use" >&5
13187 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13188 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13189   # Single tree build which includes gas.  We want to prefer it
13190   # over whatever linker top-level may have detected, since
13191   # we'll use what we're building after installation anyway.
13192   echo "$as_me:$LINENO: result: newly built gas" >&5
13193 echo "${ECHO_T}newly built gas" >&6
13194   in_tree_gas=yes
13195   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13196 for f in $gcc_cv_as_bfd_srcdir/configure \
13197          $gcc_cv_as_gas_srcdir/configure \
13198          $gcc_cv_as_gas_srcdir/configure.in \
13199          $gcc_cv_as_gas_srcdir/Makefile.in ; do
13200   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13201   if test x$gcc_cv_gas_version != x; then
13202     break
13203   fi
13204 done
13205 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13206 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13207 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13208 case $gcc_cv_gas_patch_version in
13209   "") gcc_cv_gas_patch_version="0" ;;
13210 esac
13211 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13212                             + $gcc_cv_gas_minor_version \) \* 1000 \
13213                             + $gcc_cv_gas_patch_version`
13214
13215   in_tree_gas_is_elf=no
13216   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13217      || (grep 'obj_format = multi' ../gas/Makefile \
13218          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13219   then
13220     in_tree_gas_is_elf=yes
13221   fi
13222 else
13223   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13224 echo "${ECHO_T}$gcc_cv_as" >&6
13225   in_tree_gas=no
13226 fi
13227
13228 # Identify the linker which will work hand-in-glove with the newly
13229 # built GCC, so that we can examine its features.  This is the linker
13230 # which will be driven by the driver program.
13231 #
13232 # If build != host, and we aren't building gas in-tree, we identify a
13233 # build->target linker and hope that it will have the same features
13234 # as the host->target linker we'll be using.
13235 gcc_cv_gld_major_version=
13236 gcc_cv_gld_minor_version=
13237 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13238 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13239
13240 if test "${gcc_cv_ld+set}" = set; then
13241   :
13242 else
13243
13244 if test -x "$DEFAULT_LINKER"; then
13245         gcc_cv_ld="$DEFAULT_LINKER"
13246 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13247      && test -f ../ld/Makefile \
13248      && test x$build = x$host; then
13249         gcc_cv_ld=../ld/ld-new$build_exeext
13250 elif test -x collect-ld$build_exeext; then
13251         # Build using linker in the current directory.
13252         gcc_cv_ld=./collect-ld$build_exeext
13253 elif test -x $LD_FOR_TARGET; then
13254         gcc_cv_ld="$LD_FOR_TARGET"
13255 else
13256         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13257 set dummy $LD_FOR_TARGET; ac_word=$2
13258 echo "$as_me:$LINENO: checking for $ac_word" >&5
13259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13260 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13261   echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263   case $gcc_cv_ld in
13264   [\\/]* | ?:[\\/]*)
13265   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13266   ;;
13267   *)
13268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13270 do
13271   IFS=$as_save_IFS
13272   test -z "$as_dir" && as_dir=.
13273   for ac_exec_ext in '' $ac_executable_extensions; do
13274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13275     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13277     break 2
13278   fi
13279 done
13280 done
13281
13282   ;;
13283 esac
13284 fi
13285 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13286
13287 if test -n "$gcc_cv_ld"; then
13288   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13289 echo "${ECHO_T}$gcc_cv_ld" >&6
13290 else
13291   echo "$as_me:$LINENO: result: no" >&5
13292 echo "${ECHO_T}no" >&6
13293 fi
13294
13295 fi
13296 fi
13297
13298
13299 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13300
13301
13302 echo "$as_me:$LINENO: checking what linker to use" >&5
13303 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13304 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13305         # Single tree build which includes ld.  We want to prefer it
13306         # over whatever linker top-level may have detected, since
13307         # we'll use what we're building after installation anyway.
13308         echo "$as_me:$LINENO: result: newly built ld" >&5
13309 echo "${ECHO_T}newly built ld" >&6
13310         in_tree_ld=yes
13311         in_tree_ld_is_elf=no
13312         if (grep 'EMUL = .*elf' ../ld/Makefile \
13313             || grep 'EMUL = .*linux' ../ld/Makefile \
13314             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13315           in_tree_ld_is_elf=yes
13316         fi
13317         for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
13318         do
13319                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13320                 if test x$gcc_cv_gld_version != x; then
13321                         break
13322                 fi
13323         done
13324         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13325         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13326 else
13327         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13328 echo "${ECHO_T}$gcc_cv_ld" >&6
13329         in_tree_ld=no
13330 fi
13331
13332 # Figure out what nm we will be using.
13333 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13334 if test "${gcc_cv_nm+set}" = set; then
13335   :
13336 else
13337
13338 if test -f $gcc_cv_binutils_srcdir/configure.in \
13339      && test -f ../binutils/Makefile \
13340      && test x$build = x$host; then
13341         gcc_cv_nm=../binutils/nm-new$build_exeext
13342 elif test -x nm$build_exeext; then
13343         gcc_cv_nm=./nm$build_exeext
13344 elif test -x $NM_FOR_TARGET; then
13345         gcc_cv_nm="$NM_FOR_TARGET"
13346 else
13347         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13348 set dummy $NM_FOR_TARGET; ac_word=$2
13349 echo "$as_me:$LINENO: checking for $ac_word" >&5
13350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13351 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13352   echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354   case $gcc_cv_nm in
13355   [\\/]* | ?:[\\/]*)
13356   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13357   ;;
13358   *)
13359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $PATH
13361 do
13362   IFS=$as_save_IFS
13363   test -z "$as_dir" && as_dir=.
13364   for ac_exec_ext in '' $ac_executable_extensions; do
13365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13366     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13368     break 2
13369   fi
13370 done
13371 done
13372
13373   ;;
13374 esac
13375 fi
13376 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13377
13378 if test -n "$gcc_cv_nm"; then
13379   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13380 echo "${ECHO_T}$gcc_cv_nm" >&6
13381 else
13382   echo "$as_me:$LINENO: result: no" >&5
13383 echo "${ECHO_T}no" >&6
13384 fi
13385
13386 fi
13387 fi
13388
13389
13390 echo "$as_me:$LINENO: checking what nm to use" >&5
13391 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13392 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13393         # Single tree build which includes binutils.
13394         echo "$as_me:$LINENO: result: newly built nm" >&5
13395 echo "${ECHO_T}newly built nm" >&6
13396         in_tree_nm=yes
13397 else
13398         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13399 echo "${ECHO_T}$gcc_cv_nm" >&6
13400         in_tree_nm=no
13401 fi
13402
13403 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13404
13405
13406 # Figure out what objdump we will be using.
13407 if test "${gcc_cv_objdump+set}" = set; then
13408   :
13409 else
13410
13411 if test -f $gcc_cv_binutils_srcdir/configure.in \
13412      && test -f ../binutils/Makefile \
13413      && test x$build = x$host; then
13414         # Single tree build which includes binutils.
13415         gcc_cv_objdump=../binutils/objdump$build_exeext
13416 elif test -x objdump$build_exeext; then
13417         gcc_cv_objdump=./objdump$build_exeext
13418 elif test -x $OBJDUMP_FOR_TARGET; then
13419         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13420 else
13421         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13422 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13423 echo "$as_me:$LINENO: checking for $ac_word" >&5
13424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13425 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428   case $gcc_cv_objdump in
13429   [\\/]* | ?:[\\/]*)
13430   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13431   ;;
13432   *)
13433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13435 do
13436   IFS=$as_save_IFS
13437   test -z "$as_dir" && as_dir=.
13438   for ac_exec_ext in '' $ac_executable_extensions; do
13439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13440     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13442     break 2
13443   fi
13444 done
13445 done
13446
13447   ;;
13448 esac
13449 fi
13450 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13451
13452 if test -n "$gcc_cv_objdump"; then
13453   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13454 echo "${ECHO_T}$gcc_cv_objdump" >&6
13455 else
13456   echo "$as_me:$LINENO: result: no" >&5
13457 echo "${ECHO_T}no" >&6
13458 fi
13459
13460 fi
13461 fi
13462
13463
13464 echo "$as_me:$LINENO: checking what objdump to use" >&5
13465 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13466 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13467         # Single tree build which includes binutils.
13468         echo "$as_me:$LINENO: result: newly built objdump" >&5
13469 echo "${ECHO_T}newly built objdump" >&6
13470 elif test x$gcc_cv_objdump = x; then
13471         echo "$as_me:$LINENO: result: not found" >&5
13472 echo "${ECHO_T}not found" >&6
13473 else
13474         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13475 echo "${ECHO_T}$gcc_cv_objdump" >&6
13476 fi
13477
13478 # Figure out what assembler alignment features are present.
13479 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13480 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13481 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13482   echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484   gcc_cv_as_balign_and_p2align=no
13485     if test $in_tree_gas = yes; then
13486     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13487   then gcc_cv_as_balign_and_p2align=yes
13488 fi
13489   elif test x$gcc_cv_as != x; then
13490     echo '.balign 4
13491 .p2align 2' > conftest.s
13492     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }
13498     then
13499         gcc_cv_as_balign_and_p2align=yes
13500     else
13501       echo "configure: failed program was" >&5
13502       cat conftest.s >&5
13503     fi
13504     rm -f conftest.o conftest.s
13505   fi
13506 fi
13507 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13508 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13509 if test $gcc_cv_as_balign_and_p2align = yes; then
13510
13511 cat >>confdefs.h <<\_ACEOF
13512 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13513 _ACEOF
13514
13515 fi
13516
13517 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13518 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13519 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13520   echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522   gcc_cv_as_max_skip_p2align=no
13523     if test $in_tree_gas = yes; then
13524     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13525   then gcc_cv_as_max_skip_p2align=yes
13526 fi
13527   elif test x$gcc_cv_as != x; then
13528     echo '.p2align 4,,7' > conftest.s
13529     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531   (eval $ac_try) 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }
13535     then
13536         gcc_cv_as_max_skip_p2align=yes
13537     else
13538       echo "configure: failed program was" >&5
13539       cat conftest.s >&5
13540     fi
13541     rm -f conftest.o conftest.s
13542   fi
13543 fi
13544 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13545 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13546 if test $gcc_cv_as_max_skip_p2align = yes; then
13547
13548 cat >>confdefs.h <<\_ACEOF
13549 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13550 _ACEOF
13551
13552 fi
13553
13554 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13555 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13556 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13557   echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559   gcc_cv_as_subsection_m1=no
13560     if test $in_tree_gas = yes; then
13561     if test $in_tree_gas_is_elf = yes \
13562   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13563   then gcc_cv_as_subsection_m1=yes
13564 fi
13565   elif test x$gcc_cv_as != x; then
13566     echo 'conftest_label1: .word 0
13567 .subsection -1
13568 conftest_label2: .word 0
13569 .previous' > conftest.s
13570     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572   (eval $ac_try) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; }
13576     then
13577         if test x$gcc_cv_nm != x; then
13578     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13579     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13580     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13581     then :
13582     else gcc_cv_as_subsection_m1=yes
13583     fi
13584     rm -f conftest.nm1 conftest.nm2
13585   fi
13586     else
13587       echo "configure: failed program was" >&5
13588       cat conftest.s >&5
13589     fi
13590     rm -f conftest.o conftest.s
13591   fi
13592 fi
13593 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13594 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13595 if test $gcc_cv_as_subsection_m1 = yes; then
13596
13597 cat >>confdefs.h <<\_ACEOF
13598 #define HAVE_GAS_SUBSECTION_ORDERING 1
13599 _ACEOF
13600
13601 fi
13602
13603 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13604 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13605 if test "${gcc_cv_as_weak+set}" = set; then
13606   echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608   gcc_cv_as_weak=no
13609     if test $in_tree_gas = yes; then
13610     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13611   then gcc_cv_as_weak=yes
13612 fi
13613   elif test x$gcc_cv_as != x; then
13614     echo '      .weak foobar' > conftest.s
13615     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617   (eval $ac_try) 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; }
13621     then
13622         gcc_cv_as_weak=yes
13623     else
13624       echo "configure: failed program was" >&5
13625       cat conftest.s >&5
13626     fi
13627     rm -f conftest.o conftest.s
13628   fi
13629 fi
13630 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13631 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13632 if test $gcc_cv_as_weak = yes; then
13633
13634 cat >>confdefs.h <<\_ACEOF
13635 #define HAVE_GAS_WEAK 1
13636 _ACEOF
13637
13638 fi
13639
13640 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13641 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13642 if test "${gcc_cv_as_weakref+set}" = set; then
13643   echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645   gcc_cv_as_weakref=no
13646     if test $in_tree_gas = yes; then
13647     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13648   then gcc_cv_as_weakref=yes
13649 fi
13650   elif test x$gcc_cv_as != x; then
13651     echo '      .weakref foobar, barfnot' > conftest.s
13652     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654   (eval $ac_try) 2>&5
13655   ac_status=$?
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); }; }
13658     then
13659         gcc_cv_as_weakref=yes
13660     else
13661       echo "configure: failed program was" >&5
13662       cat conftest.s >&5
13663     fi
13664     rm -f conftest.o conftest.s
13665   fi
13666 fi
13667 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13668 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13669 if test $gcc_cv_as_weakref = yes; then
13670
13671 cat >>confdefs.h <<\_ACEOF
13672 #define HAVE_GAS_WEAKREF 1
13673 _ACEOF
13674
13675 fi
13676
13677 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13678 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13679 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13680   echo $ECHO_N "(cached) $ECHO_C" >&6
13681 else
13682   gcc_cv_as_nsubspa_comdat=no
13683     if test $in_tree_gas = yes; then
13684     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13685   then gcc_cv_as_nsubspa_comdat=yes
13686 fi
13687   elif test x$gcc_cv_as != x; then
13688     echo '      .SPACE $TEXT$
13689         .NSUBSPA $CODE$,COMDAT' > conftest.s
13690     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692   (eval $ac_try) 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; }
13696     then
13697         gcc_cv_as_nsubspa_comdat=yes
13698     else
13699       echo "configure: failed program was" >&5
13700       cat conftest.s >&5
13701     fi
13702     rm -f conftest.o conftest.s
13703   fi
13704 fi
13705 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13706 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13707 if test $gcc_cv_as_nsubspa_comdat = yes; then
13708
13709 cat >>confdefs.h <<\_ACEOF
13710 #define HAVE_GAS_NSUBSPA_COMDAT 1
13711 _ACEOF
13712
13713 fi
13714
13715 # .hidden needs to be supported in both the assembler and the linker,
13716 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13717 # This is irritatingly difficult to feature test for; we have to check the
13718 # date string after the version number.  If we've got an in-tree
13719 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13720 # to be safe.
13721 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13722 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13723 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13724 if test "${gcc_cv_as_hidden+set}" = set; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   gcc_cv_as_hidden=no
13728     if test $in_tree_gas = yes; then
13729     if test $in_tree_gas_is_elf = yes \
13730   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13731   then gcc_cv_as_hidden=yes
13732 fi
13733   elif test x$gcc_cv_as != x; then
13734     echo '      .hidden foobar
13735 foobar:' > conftest.s
13736     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738   (eval $ac_try) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; }
13742     then
13743         gcc_cv_as_hidden=yes
13744     else
13745       echo "configure: failed program was" >&5
13746       cat conftest.s >&5
13747     fi
13748     rm -f conftest.o conftest.s
13749   fi
13750 fi
13751 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13752 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13753
13754
13755 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13756 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13757 if test "${gcc_cv_ld_hidden+set}" = set; then
13758   echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760   if test $in_tree_ld = yes ; then
13761   gcc_cv_ld_hidden=no
13762   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
13763      && test $in_tree_ld_is_elf = yes; then
13764      gcc_cv_ld_hidden=yes
13765   fi
13766 else
13767   gcc_cv_ld_hidden=yes
13768   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13769   if echo "$ld_ver" | grep GNU > /dev/null; then
13770     ld_vers=`echo $ld_ver | sed -n \
13771         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13772         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13773         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13774         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13775         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13776         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
13777         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   ].*$,\1,p'`
13778     ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
13779     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13780     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13781     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13782     if test 0"$ld_date" -lt 20020404; then
13783       if test -n "$ld_date"; then
13784         # If there was date string, but was earlier than 2002-04-04, fail
13785         gcc_cv_ld_hidden=no
13786       elif test -z "$ld_vers"; then
13787         # If there was no date string nor ld version number, something is wrong
13788         gcc_cv_ld_hidden=no
13789       else
13790         test -z "$ld_vers_patch" && ld_vers_patch=0
13791         if test "$ld_vers_major" -lt 2; then
13792           gcc_cv_ld_hidden=no
13793         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13794           gcc_cv_ld_hidden="no"
13795         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13796           gcc_cv_ld_hidden=no
13797         fi
13798       fi
13799     fi
13800   else
13801     case "${target}" in
13802       hppa64*-*-hpux* | ia64*-*-hpux*)
13803         gcc_cv_ld_hidden=yes
13804         ;;
13805       *)
13806         gcc_cv_ld_hidden=no
13807         ;;
13808     esac
13809   fi
13810 fi
13811 fi
13812 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13813 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13814 libgcc_visibility=no
13815
13816
13817 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13818   libgcc_visibility=yes
13819
13820 cat >>confdefs.h <<\_ACEOF
13821 #define HAVE_GAS_HIDDEN 1
13822 _ACEOF
13823
13824 fi
13825
13826 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13827 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13828 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13829 if test "${gcc_cv_as_leb128+set}" = set; then
13830   echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832   gcc_cv_as_leb128=no
13833     if test $in_tree_gas = yes; then
13834     if test $in_tree_gas_is_elf = yes \
13835   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13836   then gcc_cv_as_leb128=yes
13837 fi
13838   elif test x$gcc_cv_as != x; then
13839     echo '      .data
13840         .uleb128 L2 - L1
13841 L1:
13842         .uleb128 1280
13843         .sleb128 -1010
13844 L2:' > conftest.s
13845     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847   (eval $ac_try) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; }
13851     then
13852         # GAS versions before 2.11 do not support uleb128,
13853   # despite appearing to.
13854   # ??? There exists an elf-specific test that will crash
13855   # the assembler.  Perhaps it's better to figure out whether
13856   # arbitrary sections are supported and try the test.
13857   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13858   if echo "$as_ver" | grep GNU > /dev/null; then
13859     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13860     as_major=`echo $as_ver | sed 's/\..*//'`
13861     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13862     if test $as_major -eq 2 && test $as_minor -lt 11
13863     then :
13864     else gcc_cv_as_leb128=yes
13865     fi
13866   fi
13867     else
13868       echo "configure: failed program was" >&5
13869       cat conftest.s >&5
13870     fi
13871     rm -f conftest.o conftest.s
13872   fi
13873 fi
13874 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13875 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13876 if test $gcc_cv_as_leb128 = yes; then
13877
13878 cat >>confdefs.h <<\_ACEOF
13879 #define HAVE_AS_LEB128 1
13880 _ACEOF
13881
13882 fi
13883
13884 # GAS versions up to and including 2.11.0 may mis-optimize
13885 # .eh_frame data.
13886 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13887 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13888 if test "${gcc_cv_as_eh_frame+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891   gcc_cv_as_eh_frame=no
13892     if test $in_tree_gas = yes; then
13893     if test $in_tree_gas_is_elf = yes \
13894   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13895   then gcc_cv_as_eh_frame=yes
13896 fi
13897   elif test x$gcc_cv_as != x; then
13898     echo '      .text
13899 .LFB1:
13900         .4byte  0
13901 .L1:
13902         .4byte  0
13903 .LFE1:
13904         .section        .eh_frame,"aw",@progbits
13905 __FRAME_BEGIN__:
13906         .4byte  .LECIE1-.LSCIE1
13907 .LSCIE1:
13908         .4byte  0x0
13909         .byte   0x1
13910         .ascii "z\0"
13911         .byte   0x1
13912         .byte   0x78
13913         .byte   0x1a
13914         .byte   0x0
13915         .byte   0x4
13916         .4byte  1
13917         .p2align 1
13918 .LECIE1:
13919 .LSFDE1:
13920         .4byte  .LEFDE1-.LASFDE1
13921 .LASFDE1:
13922         .4byte  .LASFDE1-__FRAME_BEGIN__
13923         .4byte  .LFB1
13924         .4byte  .LFE1-.LFB1
13925         .byte   0x4
13926         .4byte  .LFE1-.LFB1
13927         .byte   0x4
13928         .4byte  .L1-.LFB1
13929 .LEFDE1:' > conftest.s
13930     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932   (eval $ac_try) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); }; }
13936     then
13937           cat > conftest.lit <<EOF
13938  0000 10000000 00000000 017a0001 781a0004  .........z..x...
13939  0010 01000000 12000000 18000000 00000000  ................
13940  0020 08000000 04080000 0044               .........D      
13941 EOF
13942 cat > conftest.big <<EOF
13943  0000 00000010 00000000 017a0001 781a0004  .........z..x...
13944  0010 00000001 00000012 00000018 00000000  ................
13945  0020 00000008 04000000 0844               .........D      
13946 EOF
13947   # If the assembler didn't choke, and we can objdump,
13948   # and we got the correct data, then succeed.
13949   if test x$gcc_cv_objdump != x \
13950   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13951      | tail -3 > conftest.got \
13952   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13953     || cmp conftest.big conftest.got > /dev/null 2>&1; }
13954   then
13955     gcc_cv_as_eh_frame=yes
13956   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958   (eval $ac_try) 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; }; then
13962     gcc_cv_as_eh_frame=buggy
13963   else
13964     # Uh oh, what do we do now?
13965     gcc_cv_as_eh_frame=no
13966   fi
13967     else
13968       echo "configure: failed program was" >&5
13969       cat conftest.s >&5
13970     fi
13971     rm -f conftest.o conftest.s
13972   fi
13973 fi
13974 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13975 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13976
13977
13978 if test $gcc_cv_as_eh_frame = buggy; then
13979
13980 cat >>confdefs.h <<\_ACEOF
13981 #define USE_AS_TRADITIONAL_FORMAT 1
13982 _ACEOF
13983
13984 fi
13985
13986 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13987 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13988 if test "${gcc_cv_as_shf_merge+set}" = set; then
13989   echo $ECHO_N "(cached) $ECHO_C" >&6
13990 else
13991   gcc_cv_as_shf_merge=no
13992     if test $in_tree_gas = yes; then
13993     if test $in_tree_gas_is_elf = yes \
13994   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13995   then gcc_cv_as_shf_merge=yes
13996 fi
13997   elif test x$gcc_cv_as != x; then
13998     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13999     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001   (eval $ac_try) 2>&5
14002   ac_status=$?
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); }; }
14005     then
14006         gcc_cv_as_shf_merge=yes
14007     else
14008       echo "configure: failed program was" >&5
14009       cat conftest.s >&5
14010     fi
14011     rm -f conftest.o conftest.s
14012   fi
14013 fi
14014 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14015 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14016
14017 if test $gcc_cv_as_shf_merge = no; then
14018   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14019 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14020 if test "${gcc_cv_as_shf_merge+set}" = set; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   gcc_cv_as_shf_merge=no
14024     if test $in_tree_gas = yes; then
14025     if test $in_tree_gas_is_elf = yes \
14026   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14027   then gcc_cv_as_shf_merge=yes
14028 fi
14029   elif test x$gcc_cv_as != x; then
14030     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14031     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033   (eval $ac_try) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; }
14037     then
14038         gcc_cv_as_shf_merge=yes
14039     else
14040       echo "configure: failed program was" >&5
14041       cat conftest.s >&5
14042     fi
14043     rm -f conftest.o conftest.s
14044   fi
14045 fi
14046 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14047 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14048
14049 fi
14050
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14053 _ACEOF
14054
14055
14056 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14057 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14058 if test "${gcc_cv_as_comdat_group+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   gcc_cv_as_comdat_group=no
14062     if test $in_tree_gas = yes; then
14063     if test $in_tree_gas_is_elf = yes \
14064   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14065   then gcc_cv_as_comdat_group=yes
14066 fi
14067   elif test x$gcc_cv_as != x; then
14068     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14069     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071   (eval $ac_try) 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); }; }
14075     then
14076         gcc_cv_as_comdat_group=yes
14077     else
14078       echo "configure: failed program was" >&5
14079       cat conftest.s >&5
14080     fi
14081     rm -f conftest.o conftest.s
14082   fi
14083 fi
14084 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14085 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14086
14087 if test $gcc_cv_as_comdat_group = yes; then
14088   gcc_cv_as_comdat_group_percent=no
14089 else
14090  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14091 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14092 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14093   echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095   gcc_cv_as_comdat_group_percent=no
14096     if test $in_tree_gas = yes; then
14097     if test $in_tree_gas_is_elf = yes \
14098   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14099   then gcc_cv_as_comdat_group_percent=yes
14100 fi
14101   elif test x$gcc_cv_as != x; then
14102     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14103     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105   (eval $ac_try) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; }
14109     then
14110         gcc_cv_as_comdat_group_percent=yes
14111     else
14112       echo "configure: failed program was" >&5
14113       cat conftest.s >&5
14114     fi
14115     rm -f conftest.o conftest.s
14116   fi
14117 fi
14118 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14119 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14120
14121 fi
14122 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14123   comdat_group=yes
14124   if test 0"$ld_date" -lt 20050308; then
14125     if test -n "$ld_date"; then
14126       # If there was date string, but was earlier than 2005-03-08, fail
14127       comdat_group=no
14128     elif test "$ld_vers_major" -lt 2; then
14129       comdat_group=no
14130     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14131       comdat_group=no
14132     fi
14133   fi
14134 else
14135   # assume linkers other than GNU ld don't support COMDAT group
14136   comdat_group=no
14137 fi
14138 if test $comdat_group = no; then
14139   gcc_cv_as_comdat_group=no
14140   gcc_cv_as_comdat_group_percent=no
14141 fi
14142
14143 cat >>confdefs.h <<_ACEOF
14144 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14145 _ACEOF
14146
14147
14148 # Thread-local storage - the check is heavily parametrized.
14149 conftest_s=
14150 tls_first_major=
14151 tls_first_minor=
14152 tls_as_opt=
14153 case "$target" in
14154   alpha*-*-*)
14155     conftest_s='
14156         .section ".tdata","awT",@progbits
14157 foo:    .long   25
14158         .text
14159         ldq     $27,__tls_get_addr($29)         !literal!1
14160         lda     $16,foo($29)                    !tlsgd!1
14161         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14162         ldq     $27,__tls_get_addr($29)         !literal!2
14163         lda     $16,foo($29)                    !tlsldm!2
14164         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14165         ldq     $1,foo($29)                     !gotdtprel
14166         ldah    $2,foo($29)                     !dtprelhi
14167         lda     $3,foo($2)                      !dtprello
14168         lda     $4,foo($29)                     !dtprel
14169         ldq     $1,foo($29)                     !gottprel
14170         ldah    $2,foo($29)                     !tprelhi
14171         lda     $3,foo($2)                      !tprello
14172         lda     $4,foo($29)                     !tprel'
14173         tls_first_major=2
14174         tls_first_minor=13
14175         tls_as_opt=--fatal-warnings
14176         ;;
14177   frv*-*-*)
14178     conftest_s='
14179         .section ".tdata","awT",@progbits
14180 x:      .long   25
14181         .text
14182         call    #gettlsoff(x)'
14183         tls_first_major=2
14184         tls_first_minor=14
14185         ;;
14186   hppa*-*-linux*)
14187     conftest_s='
14188 t1:     .reg    %r20
14189 t2:     .reg    %r21
14190 gp:     .reg    %r19
14191         .section ".tdata","awT",@progbits
14192 foo:    .long   25
14193         .text
14194         .align  4
14195         addil LT%foo-$tls_gdidx$,gp
14196         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14197         b __tls_get_addr
14198         nop
14199         addil LT%foo-$tls_ldidx$,gp
14200         b __tls_get_addr
14201         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14202         addil LR%foo-$tls_dtpoff$,%ret0
14203         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14204         mfctl %cr27,%t1
14205         addil LT%foo-$tls_ieoff$,gp
14206         ldw RT%foo-$tls_ieoff$(%r1),%t2
14207         add %t1,%t2,%t3
14208         mfctl %cr27,%t1
14209         addil LR%foo-$tls_leoff$,%t1
14210         ldo RR%foo-$tls_leoff$(%r1),%t2'
14211         tls_first_major=2
14212         tls_first_minor=15
14213         tls_as_opt=--fatal-warnings
14214         ;;
14215   arm*-*-*)
14216     conftest_s='
14217         .section ".tdata","awT",%progbits
14218 foo:    .long   25
14219         .text
14220 .word foo(gottpoff)
14221 .word foo(tpoff)
14222 .word foo(tlsgd)
14223 .word foo(tlsldm)
14224 .word foo(tlsldo)'
14225         tls_first_major=2
14226         tls_first_minor=17
14227         ;;
14228   i[34567]86-*-*)
14229     conftest_s='
14230         .section ".tdata","awT",@progbits
14231 foo:    .long   25
14232         .text
14233         movl    %gs:0, %eax
14234         leal    foo@TLSGD(,%ebx,1), %eax
14235         leal    foo@TLSLDM(%ebx), %eax
14236         leal    foo@DTPOFF(%eax), %edx
14237         movl    foo@GOTTPOFF(%ebx), %eax
14238         subl    foo@GOTTPOFF(%ebx), %eax
14239         addl    foo@GOTNTPOFF(%ebx), %eax
14240         movl    foo@INDNTPOFF, %eax
14241         movl    $foo@TPOFF, %eax
14242         subl    $foo@TPOFF, %eax
14243         leal    foo@NTPOFF(%ecx), %eax'
14244         tls_first_major=2
14245         tls_first_minor=14
14246         tls_as_opt=--fatal-warnings
14247         ;;
14248   x86_64-*-*)
14249     conftest_s='
14250         .section ".tdata","awT",@progbits
14251 foo:    .long   25
14252         .text
14253         movq    %fs:0, %rax
14254         leaq    foo@TLSGD(%rip), %rdi
14255         leaq    foo@TLSLD(%rip), %rdi
14256         leaq    foo@DTPOFF(%rax), %rdx
14257         movq    foo@GOTTPOFF(%rip), %rax
14258         movq    $foo@TPOFF, %rax'
14259         tls_first_major=2
14260         tls_first_minor=14
14261         tls_as_opt=--fatal-warnings
14262         ;;
14263   ia64-*-*)
14264     conftest_s='
14265         .section ".tdata","awT",@progbits
14266 foo:    data8   25
14267         .text
14268         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14269         addl    r17 = @ltoff(@dtprel(foo#)), gp
14270         addl    r18 = @ltoff(@tprel(foo#)), gp
14271         addl    r19 = @dtprel(foo#), gp
14272         adds    r21 = @dtprel(foo#), r13
14273         movl    r23 = @dtprel(foo#)
14274         addl    r20 = @tprel(foo#), gp
14275         adds    r22 = @tprel(foo#), r13
14276         movl    r24 = @tprel(foo#)'
14277         tls_first_major=2
14278         tls_first_minor=13
14279         tls_as_opt=--fatal-warnings
14280         ;;
14281   mips*-*-*)
14282     conftest_s='
14283         .section .tdata,"awT",@progbits
14284 x:
14285         .word 2
14286         .text
14287         addiu $4, $28, %tlsgd(x)
14288         addiu $4, $28, %tlsldm(x)
14289         lui $4, %dtprel_hi(x)
14290         addiu $4, $4, %dtprel_lo(x)
14291         lw $4, %gottprel(x)($28)
14292         lui $4, %tprel_hi(x)
14293         addiu $4, $4, %tprel_lo(x)'
14294         tls_first_major=2
14295         tls_first_minor=16
14296         tls_as_opt='-32 --fatal-warnings'
14297         ;;
14298   powerpc-*-*)
14299     conftest_s='
14300         .section ".tdata","awT",@progbits
14301         .align 2
14302 ld0:    .space 4
14303 ld1:    .space 4
14304 x1:     .space 4
14305 x2:     .space 4
14306 x3:     .space 4
14307         .text
14308         addi 3,31,ld0@got@tlsgd
14309         bl __tls_get_addr
14310         addi 3,31,x1@got@tlsld
14311         bl __tls_get_addr
14312         addi 9,3,x1@dtprel
14313         addis 9,3,x2@dtprel@ha
14314         addi 9,9,x2@dtprel@l
14315         lwz 9,x3@got@tprel(31)
14316         add 9,9,x@tls
14317         addi 9,2,x1@tprel
14318         addis 9,2,x2@tprel@ha
14319         addi 9,9,x2@tprel@l'
14320         tls_first_major=2
14321         tls_first_minor=14
14322         tls_as_opt="-a32 --fatal-warnings"
14323         ;;
14324   powerpc64-*-*)
14325     conftest_s='
14326         .section ".tdata","awT",@progbits
14327         .align 3
14328 ld0:    .space 8
14329 ld1:    .space 8
14330 x1:     .space 8
14331 x2:     .space 8
14332 x3:     .space 8
14333         .text
14334         addi 3,2,ld0@got@tlsgd
14335         bl .__tls_get_addr
14336         nop
14337         addi 3,2,ld1@toc
14338         bl .__tls_get_addr
14339         nop
14340         addi 3,2,x1@got@tlsld
14341         bl .__tls_get_addr
14342         nop
14343         addi 9,3,x1@dtprel
14344         bl .__tls_get_addr
14345         nop
14346         addis 9,3,x2@dtprel@ha
14347         addi 9,9,x2@dtprel@l
14348         bl .__tls_get_addr
14349         nop
14350         ld 9,x3@got@dtprel(2)
14351         add 9,9,3
14352         bl .__tls_get_addr
14353         nop'
14354         tls_first_major=2
14355         tls_first_minor=14
14356         tls_as_opt="-a64 --fatal-warnings"
14357         ;;
14358   s390-*-*)
14359     conftest_s='
14360         .section ".tdata","awT",@progbits
14361 foo:    .long   25
14362         .text
14363         .long   foo@TLSGD
14364         .long   foo@TLSLDM
14365         .long   foo@DTPOFF
14366         .long   foo@NTPOFF
14367         .long   foo@GOTNTPOFF
14368         .long   foo@INDNTPOFF
14369         l       %r1,foo@GOTNTPOFF(%r12)
14370         l       %r1,0(%r1):tls_load:foo
14371         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14372         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14373         tls_first_major=2
14374         tls_first_minor=14
14375         tls_as_opt="-m31 --fatal-warnings"
14376         ;;
14377   s390x-*-*)
14378     conftest_s='
14379         .section ".tdata","awT",@progbits
14380 foo:    .long   25
14381         .text
14382         .quad   foo@TLSGD
14383         .quad   foo@TLSLDM
14384         .quad   foo@DTPOFF
14385         .quad   foo@NTPOFF
14386         .quad   foo@GOTNTPOFF
14387         lg      %r1,foo@GOTNTPOFF(%r12)
14388         larl    %r1,foo@INDNTPOFF
14389         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14390         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14391         tls_first_major=2
14392         tls_first_minor=14
14393         tls_as_opt="-m64 -Aesame --fatal-warnings"
14394         ;;
14395   sh-*-* | sh[34]-*-*)
14396     conftest_s='
14397         .section ".tdata","awT",@progbits
14398 foo:    .long   25
14399         .text
14400         .long   foo@TLSGD
14401         .long   foo@TLSLDM
14402         .long   foo@DTPOFF
14403         .long   foo@GOTTPOFF
14404         .long   foo@TPOFF'
14405         tls_first_major=2
14406         tls_first_minor=13
14407         tls_as_opt=--fatal-warnings
14408         ;;
14409   sparc*-*-*)
14410     case "$target" in
14411       sparc*-sun-solaris2.[56789]*)
14412         # TLS was introduced in the Solaris 9 4/04 release but
14413         # we do not enable it by default on Solaris 9 either.
14414         if test "x$enable_tls" = xyes ; then
14415           on_solaris=yes
14416         else
14417           enable_tls=no;
14418         fi
14419         ;;
14420       sparc*-sun-solaris2.*)
14421         on_solaris=yes
14422         ;;
14423       *)
14424         on_solaris=no
14425         ;;
14426     esac
14427     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14428       conftest_s='
14429         .section ".tdata",#alloc,#write,#tls
14430 foo:    .long   25
14431         .text
14432         sethi   %tgd_hi22(foo), %o0
14433         add     %o0, %tgd_lo10(foo), %o1
14434         add     %l7, %o1, %o0, %tgd_add(foo)
14435         call    __tls_get_addr, %tgd_call(foo)
14436         sethi   %tldm_hi22(foo), %l1
14437         add     %l1, %tldm_lo10(foo), %l2
14438         add     %l7, %l2, %o0, %tldm_add(foo)
14439         call    __tls_get_addr, %tldm_call(foo)
14440         sethi   %tldo_hix22(foo), %l3
14441         xor     %l3, %tldo_lox10(foo), %l4
14442         add     %o0, %l4, %l5, %tldo_add(foo)
14443         sethi   %tie_hi22(foo), %o3
14444         add     %o3, %tie_lo10(foo), %o3
14445         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14446         add     %g7, %o2, %o4, %tie_add(foo)
14447         sethi   %tle_hix22(foo), %l1
14448         xor     %l1, %tle_lox10(foo), %o5
14449         ld      [%g7 + %o5], %o1'
14450         tls_first_major=0
14451         tls_first_minor=0
14452     else
14453       conftest_s='
14454         .section ".tdata","awT",@progbits
14455 foo:    .long   25
14456         .text
14457         sethi   %tgd_hi22(foo), %o0
14458         add     %o0, %tgd_lo10(foo), %o1
14459         add     %l7, %o1, %o0, %tgd_add(foo)
14460         call    __tls_get_addr, %tgd_call(foo)
14461         sethi   %tldm_hi22(foo), %l1
14462         add     %l1, %tldm_lo10(foo), %l2
14463         add     %l7, %l2, %o0, %tldm_add(foo)
14464         call    __tls_get_addr, %tldm_call(foo)
14465         sethi   %tldo_hix22(foo), %l3
14466         xor     %l3, %tldo_lox10(foo), %l4
14467         add     %o0, %l4, %l5, %tldo_add(foo)
14468         sethi   %tie_hi22(foo), %o3
14469         add     %o3, %tie_lo10(foo), %o3
14470         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14471         add     %g7, %o2, %o4, %tie_add(foo)
14472         sethi   %tle_hix22(foo), %l1
14473         xor     %l1, %tle_lox10(foo), %o5
14474         ld      [%g7 + %o5], %o1'
14475         tls_first_major=2
14476         tls_first_minor=14
14477         tls_as_opt="-32 --fatal-warnings"
14478       fi
14479         ;;
14480 esac
14481 set_have_as_tls=no
14482 if test "x$enable_tls" = xno ; then
14483   : # TLS explicitly disabled.
14484 elif test "x$enable_tls" = xyes ; then
14485   set_have_as_tls=yes # TLS explicitly enabled.
14486 elif test -z "$tls_first_major"; then
14487   : # If we don't have a check, assume no support.
14488 else
14489   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14490 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14491 if test "${gcc_cv_as_tls+set}" = set; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494   gcc_cv_as_tls=no
14495     if test $in_tree_gas = yes; then
14496     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14497   then gcc_cv_as_tls=yes
14498 fi
14499   elif test x$gcc_cv_as != x; then
14500     echo "$conftest_s" > conftest.s
14501     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503   (eval $ac_try) 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; }
14507     then
14508         gcc_cv_as_tls=yes
14509     else
14510       echo "configure: failed program was" >&5
14511       cat conftest.s >&5
14512     fi
14513     rm -f conftest.o conftest.s
14514   fi
14515 fi
14516 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14517 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14518 if test $gcc_cv_as_tls = yes; then
14519   set_have_as_tls=yes
14520 fi
14521 fi
14522 if test $set_have_as_tls = yes ; then
14523
14524 cat >>confdefs.h <<\_ACEOF
14525 #define HAVE_AS_TLS 1
14526 _ACEOF
14527
14528 fi
14529
14530 # Target-specific assembler checks.
14531
14532 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14533 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14534 gcc_cv_ld_static_dynamic=no
14535 if test $in_tree_ld = yes ; then
14536   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14537     gcc_cv_ld_static_dynamic=yes
14538   fi
14539 elif test x$gcc_cv_ld != x; then
14540         # Check if linker supports -Bstatic/-Bdynamic option
14541         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14542           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14543                 gcc_cv_ld_static_dynamic=yes
14544         fi
14545 fi
14546 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14547
14548 cat >>confdefs.h <<\_ACEOF
14549 #define HAVE_LD_STATIC_DYNAMIC 1
14550 _ACEOF
14551
14552 fi
14553 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14554 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14555
14556 if test x"$demangler_in_ld" = xyes; then
14557   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14558 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14559   gcc_cv_ld_demangle=no
14560   if test $in_tree_ld = yes; then
14561     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
14562       gcc_cv_ld_demangle=yes
14563     fi
14564   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14565     # Check if the GNU linker supports --demangle option
14566     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14567       gcc_cv_ld_demangle=yes
14568     fi
14569   fi
14570   if test x"$gcc_cv_ld_demangle" = xyes; then
14571
14572 cat >>confdefs.h <<\_ACEOF
14573 #define HAVE_LD_DEMANGLE 1
14574 _ACEOF
14575
14576   fi
14577   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14578 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14579 fi
14580
14581 case "$target" in
14582   # All TARGET_ABI_OSF targets.
14583   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14584     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14585 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14586 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14587   echo $ECHO_N "(cached) $ECHO_C" >&6
14588 else
14589   gcc_cv_as_alpha_explicit_relocs=no
14590     if test $in_tree_gas = yes; then
14591     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14592   then gcc_cv_as_alpha_explicit_relocs=yes
14593 fi
14594   elif test x$gcc_cv_as != x; then
14595     echo '      .set nomacro
14596         .text
14597         extbl   $3, $2, $3      !lituse_bytoff!1
14598         ldq     $2, a($29)      !literal!1
14599         ldq     $4, b($29)      !literal!2
14600         ldq_u   $3, 0($2)       !lituse_base!1
14601         ldq     $27, f($29)     !literal!5
14602         jsr     $26, ($27), f   !lituse_jsr!5
14603         ldah    $29, 0($26)     !gpdisp!3
14604         lda     $0, c($29)      !gprel
14605         ldah    $1, d($29)      !gprelhigh
14606         lda     $1, d($1)       !gprellow
14607         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14608     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610   (eval $ac_try) 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); }; }
14614     then
14615         gcc_cv_as_alpha_explicit_relocs=yes
14616     else
14617       echo "configure: failed program was" >&5
14618       cat conftest.s >&5
14619     fi
14620     rm -f conftest.o conftest.s
14621   fi
14622 fi
14623 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14624 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14625 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14626
14627 cat >>confdefs.h <<\_ACEOF
14628 #define HAVE_AS_EXPLICIT_RELOCS 1
14629 _ACEOF
14630
14631 fi
14632     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14633 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14634 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14635   echo $ECHO_N "(cached) $ECHO_C" >&6
14636 else
14637   gcc_cv_as_alpha_jsrdirect_relocs=no
14638     if test $in_tree_gas = yes; then
14639     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14640   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14641 fi
14642   elif test x$gcc_cv_as != x; then
14643     echo '      .set nomacro
14644         .text
14645         ldq     $27, a($29)     !literal!1
14646         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14647     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649   (eval $ac_try) 2>&5
14650   ac_status=$?
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); }; }
14653     then
14654         gcc_cv_as_alpha_jsrdirect_relocs=yes
14655     else
14656       echo "configure: failed program was" >&5
14657       cat conftest.s >&5
14658     fi
14659     rm -f conftest.o conftest.s
14660   fi
14661 fi
14662 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14663 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14664 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14665
14666 cat >>confdefs.h <<\_ACEOF
14667 #define HAVE_AS_JSRDIRECT_RELOCS 1
14668 _ACEOF
14669
14670 fi
14671     ;;
14672
14673   cris-*-*)
14674     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14675 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14676 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14677   echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679   gcc_cv_as_cris_no_mul_bug=no
14680     if test $in_tree_gas = yes; then
14681     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14682   then gcc_cv_as_cris_no_mul_bug=yes
14683 fi
14684   elif test x$gcc_cv_as != x; then
14685     echo '.text' > conftest.s
14686     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688   (eval $ac_try) 2>&5
14689   ac_status=$?
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); }; }
14692     then
14693         gcc_cv_as_cris_no_mul_bug=yes
14694     else
14695       echo "configure: failed program was" >&5
14696       cat conftest.s >&5
14697     fi
14698     rm -f conftest.o conftest.s
14699   fi
14700 fi
14701 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14702 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14703 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14704
14705 cat >>confdefs.h <<\_ACEOF
14706 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14707 _ACEOF
14708
14709 fi
14710     ;;
14711
14712   sparc*-*-*)
14713     echo "$as_me:$LINENO: checking assembler for .register" >&5
14714 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14715 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   gcc_cv_as_sparc_register_op=no
14719   if test x$gcc_cv_as != x; then
14720     echo '.register %g2, #scratch' > conftest.s
14721     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723   (eval $ac_try) 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); }; }
14727     then
14728         gcc_cv_as_sparc_register_op=yes
14729     else
14730       echo "configure: failed program was" >&5
14731       cat conftest.s >&5
14732     fi
14733     rm -f conftest.o conftest.s
14734   fi
14735 fi
14736 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14737 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14738 if test $gcc_cv_as_sparc_register_op = yes; then
14739
14740 cat >>confdefs.h <<\_ACEOF
14741 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14742 _ACEOF
14743
14744 fi
14745
14746     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14747 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14748 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14749   echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751   gcc_cv_as_sparc_relax=no
14752   if test x$gcc_cv_as != x; then
14753     echo '.text' > conftest.s
14754     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; }
14760     then
14761         gcc_cv_as_sparc_relax=yes
14762     else
14763       echo "configure: failed program was" >&5
14764       cat conftest.s >&5
14765     fi
14766     rm -f conftest.o conftest.s
14767   fi
14768 fi
14769 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14770 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14771 if test $gcc_cv_as_sparc_relax = yes; then
14772
14773 cat >>confdefs.h <<\_ACEOF
14774 #define HAVE_AS_RELAX_OPTION 1
14775 _ACEOF
14776
14777 fi
14778
14779     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14780 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14781 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14782   echo $ECHO_N "(cached) $ECHO_C" >&6
14783 else
14784   gcc_cv_as_sparc_ua_pcrel=no
14785   if test x$gcc_cv_as != x; then
14786     echo '.text
14787 foo:
14788         nop
14789 .data
14790 .align 4
14791 .byte 0
14792 .uaword %r_disp32(foo)' > conftest.s
14793     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795   (eval $ac_try) 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); }; }
14799     then
14800         if test x$gcc_cv_ld != x \
14801        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14802          gcc_cv_as_sparc_ua_pcrel=yes
14803        fi
14804        rm -f conftest
14805     else
14806       echo "configure: failed program was" >&5
14807       cat conftest.s >&5
14808     fi
14809     rm -f conftest.o conftest.s
14810   fi
14811 fi
14812 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14813 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14814 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14815
14816 cat >>confdefs.h <<\_ACEOF
14817 #define HAVE_AS_SPARC_UA_PCREL 1
14818 _ACEOF
14819
14820
14821       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14822 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14823 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   gcc_cv_as_sparc_ua_pcrel_hidden=no
14827   if test x$gcc_cv_as != x; then
14828     echo '.data
14829 .align 4
14830 .byte 0x31
14831 .uaword %r_disp32(foo)
14832 .byte 0x32, 0x33, 0x34
14833 .global foo
14834 .hidden foo
14835 foo:
14836 .skip 4' > conftest.s
14837     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839   (eval $ac_try) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; }
14843     then
14844         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14845          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14846          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14847             | grep ' 31000000 07323334' > /dev/null 2>&1; then
14848             if $gcc_cv_objdump -R conftest 2> /dev/null \
14849                | grep 'DISP32' > /dev/null 2>&1; then
14850                 :
14851             else
14852                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14853             fi
14854          fi
14855          rm -f conftest
14856     else
14857       echo "configure: failed program was" >&5
14858       cat conftest.s >&5
14859     fi
14860     rm -f conftest.o conftest.s
14861   fi
14862 fi
14863 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14864 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14865 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14866
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14869 _ACEOF
14870
14871 fi
14872
14873 fi # unaligned pcrel relocs
14874
14875     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14876 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14877 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14878   echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880   gcc_cv_as_sparc_offsetable_lo10=no
14881   if test x$gcc_cv_as != x; then
14882     echo '.text
14883         or %g1, %lo(ab) + 12, %g1
14884         or %g1, %lo(ab + 12), %g1' > conftest.s
14885     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887   (eval $ac_try) 2>&5
14888   ac_status=$?
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); }; }
14891     then
14892         if test x$gcc_cv_objdump != x \
14893        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14894           | grep ' 82106000 82106000' > /dev/null 2>&1; then
14895          gcc_cv_as_sparc_offsetable_lo10=yes
14896        fi
14897     else
14898       echo "configure: failed program was" >&5
14899       cat conftest.s >&5
14900     fi
14901     rm -f conftest.o conftest.s
14902   fi
14903 fi
14904 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14905 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14906 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14907
14908 cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_AS_OFFSETABLE_LO10 1
14910 _ACEOF
14911
14912 fi
14913     ;;
14914
14915   i[34567]86-*-* | x86_64-*-*)
14916     case $target_os in
14917       cygwin* | pe | mingw32*)
14918         # Used for DWARF 2 in PE
14919         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14920 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14921 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924   gcc_cv_as_ix86_pe_secrel32=no
14925     if test $in_tree_gas = yes; then
14926     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14927   then gcc_cv_as_ix86_pe_secrel32=yes
14928 fi
14929   elif test x$gcc_cv_as != x; then
14930     echo '.text
14931 foo:    nop
14932 .data
14933         .secrel32 foo' > conftest.s
14934     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936   (eval $ac_try) 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; }
14940     then
14941         if test x$gcc_cv_ld != x \
14942            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14943              gcc_cv_as_ix86_pe_secrel32=yes
14944            fi
14945            rm -f conftest
14946     else
14947       echo "configure: failed program was" >&5
14948       cat conftest.s >&5
14949     fi
14950     rm -f conftest.o conftest.s
14951   fi
14952 fi
14953 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14954 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14955 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14956
14957 cat >>confdefs.h <<\_ACEOF
14958 #define HAVE_GAS_PE_SECREL32_RELOC 1
14959 _ACEOF
14960
14961 fi
14962         ;;
14963     esac
14964
14965     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14966 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14967 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970   gcc_cv_as_ix86_filds_fists=no
14971     if test $in_tree_gas = yes; then
14972     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14973   then gcc_cv_as_ix86_filds_fists=yes
14974 fi
14975   elif test x$gcc_cv_as != x; then
14976     echo 'filds mem; fists mem' > conftest.s
14977     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979   (eval $ac_try) 2>&5
14980   ac_status=$?
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); }; }
14983     then
14984         gcc_cv_as_ix86_filds_fists=yes
14985     else
14986       echo "configure: failed program was" >&5
14987       cat conftest.s >&5
14988     fi
14989     rm -f conftest.o conftest.s
14990   fi
14991 fi
14992 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14993 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14994 if test $gcc_cv_as_ix86_filds_fists = yes; then
14995
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_GAS_FILDS_FISTS 1
14998 _ACEOF
14999
15000 fi
15001
15002     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15003 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15004 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15005   echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007   gcc_cv_as_ix86_cmov_sun_syntax=no
15008   if test x$gcc_cv_as != x; then
15009     echo 'cmovl.l %edx, %eax' > conftest.s
15010     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012   (eval $ac_try) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; }
15016     then
15017         gcc_cv_as_ix86_cmov_sun_syntax=yes
15018     else
15019       echo "configure: failed program was" >&5
15020       cat conftest.s >&5
15021     fi
15022     rm -f conftest.o conftest.s
15023   fi
15024 fi
15025 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15026 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15027 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15028
15029 cat >>confdefs.h <<\_ACEOF
15030 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15031 _ACEOF
15032
15033 fi
15034
15035     # This one is used unconditionally by i386.[ch]; it is to be defined
15036     # to 1 if the feature is present, 0 otherwise.
15037     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15038 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15039 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15040   echo $ECHO_N "(cached) $ECHO_C" >&6
15041 else
15042   gcc_cv_as_ix86_gotoff_in_data=no
15043     if test $in_tree_gas = yes; then
15044     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15045   then gcc_cv_as_ix86_gotoff_in_data=yes
15046 fi
15047   elif test x$gcc_cv_as != x; then
15048     echo '      .text
15049 .L0:
15050         nop
15051         .data
15052         .long .L0@GOTOFF' > conftest.s
15053     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055   (eval $ac_try) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; }
15059     then
15060         gcc_cv_as_ix86_gotoff_in_data=yes
15061     else
15062       echo "configure: failed program was" >&5
15063       cat conftest.s >&5
15064     fi
15065     rm -f conftest.o conftest.s
15066   fi
15067 fi
15068 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15069 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15070
15071
15072 cat >>confdefs.h <<_ACEOF
15073 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15074 _ACEOF
15075
15076     ;;
15077
15078   ia64*-*-*)
15079     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15080 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15081 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15085     if test $in_tree_gas = yes; then
15086     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15087   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15088 fi
15089   elif test x$gcc_cv_as != x; then
15090     echo '      .text
15091         addl r15 = @ltoffx(x#), gp
15092         ;;
15093         ld8.mov r16 = [r15], x#' > conftest.s
15094     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096   (eval $ac_try) 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; }
15100     then
15101         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15102     else
15103       echo "configure: failed program was" >&5
15104       cat conftest.s >&5
15105     fi
15106     rm -f conftest.o conftest.s
15107   fi
15108 fi
15109 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15110 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15111 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15112
15113 cat >>confdefs.h <<\_ACEOF
15114 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15115 _ACEOF
15116
15117 fi
15118
15119     ;;
15120
15121   powerpc*-*-*)
15122     case $target in
15123       *-*-aix*) conftest_s='    .machine "pwr5"
15124         .csect .text[PR]
15125         mfcr 3,128';;
15126       *-*-darwin*)
15127         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15128 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15129 if test "${gcc_cv_as_machine_directive+set}" = set; then
15130   echo $ECHO_N "(cached) $ECHO_C" >&6
15131 else
15132   gcc_cv_as_machine_directive=no
15133   if test x$gcc_cv_as != x; then
15134     echo '      .machine ppc7400' > conftest.s
15135     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137   (eval $ac_try) 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); }; }
15141     then
15142         gcc_cv_as_machine_directive=yes
15143     else
15144       echo "configure: failed program was" >&5
15145       cat conftest.s >&5
15146     fi
15147     rm -f conftest.o conftest.s
15148   fi
15149 fi
15150 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15151 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15152
15153         if test x$gcc_cv_as_machine_directive != xyes; then
15154           echo "*** This target requires an assembler supporting \".machine\"" >&2
15155           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15156           test x$build = x$target && exit 1
15157         fi
15158         conftest_s='    .text
15159         mfcr r3,128';;
15160       *) conftest_s='   .machine power4
15161         .text
15162         mfcr 3,128';;
15163     esac
15164
15165     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15166 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15167 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15168   echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170   gcc_cv_as_powerpc_mfcrf=no
15171     if test $in_tree_gas = yes; then
15172     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15173   then gcc_cv_as_powerpc_mfcrf=yes
15174 fi
15175   elif test x$gcc_cv_as != x; then
15176     echo "$conftest_s" > conftest.s
15177     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; }
15183     then
15184         gcc_cv_as_powerpc_mfcrf=yes
15185     else
15186       echo "configure: failed program was" >&5
15187       cat conftest.s >&5
15188     fi
15189     rm -f conftest.o conftest.s
15190   fi
15191 fi
15192 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15193 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15194 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15195
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_AS_MFCRF 1
15198 _ACEOF
15199
15200 fi
15201
15202     case $target in
15203       *-*-aix*) conftest_s='    .machine "pwr5"
15204         .csect .text[PR]
15205         popcntb 3,3';;
15206       *) conftest_s='   .machine power5
15207         .text
15208         popcntb 3,3';;
15209     esac
15210
15211     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15212 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15213 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15214   echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216   gcc_cv_as_powerpc_popcntb=no
15217     if test $in_tree_gas = yes; then
15218     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15219   then gcc_cv_as_powerpc_popcntb=yes
15220 fi
15221   elif test x$gcc_cv_as != x; then
15222     echo "$conftest_s" > conftest.s
15223     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225   (eval $ac_try) 2>&5
15226   ac_status=$?
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); }; }
15229     then
15230         gcc_cv_as_powerpc_popcntb=yes
15231     else
15232       echo "configure: failed program was" >&5
15233       cat conftest.s >&5
15234     fi
15235     rm -f conftest.o conftest.s
15236   fi
15237 fi
15238 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15239 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15240 if test $gcc_cv_as_powerpc_popcntb = yes; then
15241
15242 cat >>confdefs.h <<\_ACEOF
15243 #define HAVE_AS_POPCNTB 1
15244 _ACEOF
15245
15246 fi
15247
15248     case $target in
15249       *-*-aix*) conftest_s='    .machine "pwr5x"
15250         .csect .text[PR]
15251         frin 1,1';;
15252       *) conftest_s='   .machine power5
15253         .text
15254         frin 1,1';;
15255     esac
15256
15257     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15258 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15259 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15260   echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262   gcc_cv_as_powerpc_fprnd=no
15263     if test $in_tree_gas = yes; then
15264     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15265   then gcc_cv_as_powerpc_fprnd=yes
15266 fi
15267   elif test x$gcc_cv_as != x; then
15268     echo "$conftest_s" > conftest.s
15269     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271   (eval $ac_try) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; }
15275     then
15276         gcc_cv_as_powerpc_fprnd=yes
15277     else
15278       echo "configure: failed program was" >&5
15279       cat conftest.s >&5
15280     fi
15281     rm -f conftest.o conftest.s
15282   fi
15283 fi
15284 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15285 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15286 if test $gcc_cv_as_powerpc_fprnd = yes; then
15287
15288 cat >>confdefs.h <<\_ACEOF
15289 #define HAVE_AS_FPRND 1
15290 _ACEOF
15291
15292 fi
15293
15294     case $target in
15295       *-*-aix*) conftest_s='    .csect .text[PR]
15296 LCF..0:
15297         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15298       *-*-darwin*)
15299         conftest_s='    .text
15300 LCF0:
15301         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15302       *) conftest_s='   .text
15303 .LCF0:
15304         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15305     esac
15306
15307     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15308 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15309 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15310   echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312   gcc_cv_as_powerpc_rel16=no
15313     if test $in_tree_gas = yes; then
15314     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15315   then gcc_cv_as_powerpc_rel16=yes
15316 fi
15317   elif test x$gcc_cv_as != x; then
15318     echo "$conftest_s" > conftest.s
15319     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321   (eval $ac_try) 2>&5
15322   ac_status=$?
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); }; }
15325     then
15326         gcc_cv_as_powerpc_rel16=yes
15327     else
15328       echo "configure: failed program was" >&5
15329       cat conftest.s >&5
15330     fi
15331     rm -f conftest.o conftest.s
15332   fi
15333 fi
15334 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15335 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15336 if test $gcc_cv_as_powerpc_rel16 = yes; then
15337
15338 cat >>confdefs.h <<\_ACEOF
15339 #define HAVE_AS_REL16 1
15340 _ACEOF
15341
15342 fi
15343     ;;
15344
15345   mips*-*-*)
15346     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15347 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15348 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15349   echo $ECHO_N "(cached) $ECHO_C" >&6
15350 else
15351   gcc_cv_as_mips_explicit_relocs=no
15352     if test $in_tree_gas = yes; then
15353     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15354   then gcc_cv_as_mips_explicit_relocs=yes
15355 fi
15356   elif test x$gcc_cv_as != x; then
15357     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15358     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360   (eval $ac_try) 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); }; }
15364     then
15365         gcc_cv_as_mips_explicit_relocs=yes
15366     else
15367       echo "configure: failed program was" >&5
15368       cat conftest.s >&5
15369     fi
15370     rm -f conftest.o conftest.s
15371   fi
15372 fi
15373 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15374 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15375 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15376   if test x$target_cpu_default = x
15377        then target_cpu_default=MASK_EXPLICIT_RELOCS
15378        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15379        fi
15380 fi
15381     ;;
15382 esac
15383
15384 # Mips and HP-UX need the GNU assembler.
15385 # Linux on IA64 might be able to use the Intel assembler.
15386
15387 case "$target" in
15388   mips*-*-* | *-*-hpux* )
15389     if test x$gas_flag = xyes \
15390        || test x"$host" != x"$build" \
15391        || test ! -x "$gcc_cv_as" \
15392        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15393       :
15394     else
15395       echo "*** This configuration requires the GNU assembler" >&2
15396       exit 1
15397     fi
15398     ;;
15399 esac
15400
15401 # ??? Not all targets support dwarf2 debug_line, even within a version
15402 # of gas.  Moreover, we need to emit a valid instruction to trigger any
15403 # info to the output file.  So, as supported targets are added to gas 2.11,
15404 # add some instruction here to (also) show we expect this might work.
15405 # ??? Once 2.11 is released, probably need to add first known working
15406 # version to the per-target configury.
15407 case "$target" in
15408   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15409   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15410   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15411     insn="nop"
15412     ;;
15413   ia64*-*-* | s390*-*-*)
15414     insn="nop 0"
15415     ;;
15416   mmix-*-*)
15417     insn="swym 0"
15418     ;;
15419 esac
15420 if test x"$insn" != x; then
15421  conftest_s="\
15422         .file 1 \"conftest.s\"
15423         .loc 1 3 0
15424         $insn"
15425  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15426 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15427 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15428   echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430   gcc_cv_as_dwarf2_debug_line=no
15431     if test $in_tree_gas = yes; then
15432     if test $in_tree_gas_is_elf = yes \
15433   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15434   then gcc_cv_as_dwarf2_debug_line=yes
15435 fi
15436   elif test x$gcc_cv_as != x; then
15437     echo "$conftest_s" > conftest.s
15438     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440   (eval $ac_try) 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; }
15444     then
15445         if test x$gcc_cv_objdump != x \
15446    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15447       | grep debug_line > /dev/null 2>&1; then
15448      gcc_cv_as_dwarf2_debug_line=yes
15449    fi
15450     else
15451       echo "configure: failed program was" >&5
15452       cat conftest.s >&5
15453     fi
15454     rm -f conftest.o conftest.s
15455   fi
15456 fi
15457 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15458 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15459
15460
15461 # The .debug_line file table must be in the exact order that
15462 # we specified the files, since these indices are also used
15463 # by DW_AT_decl_file.  Approximate this test by testing if
15464 # the assembler bitches if the same index is assigned twice.
15465  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15466 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15467 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15468   echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470   gcc_cv_as_dwarf2_file_buggy=no
15471   if test x$gcc_cv_as != x; then
15472     echo '      .file 1 "foo.s"
15473         .file 1 "bar.s"' > conftest.s
15474     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476   (eval $ac_try) 2>&5
15477   ac_status=$?
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); }; }
15480     then
15481         gcc_cv_as_dwarf2_file_buggy=yes
15482     else
15483       echo "configure: failed program was" >&5
15484       cat conftest.s >&5
15485     fi
15486     rm -f conftest.o conftest.s
15487   fi
15488 fi
15489 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15490 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15491
15492
15493  if test $gcc_cv_as_dwarf2_debug_line = yes \
15494  && test $gcc_cv_as_dwarf2_file_buggy = no; then
15495
15496 cat >>confdefs.h <<\_ACEOF
15497 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15498 _ACEOF
15499
15500  fi
15501
15502  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15503 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15504 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15505   echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507   gcc_cv_as_gdwarf2_flag=no
15508     if test $in_tree_gas = yes; then
15509     if test $in_tree_gas_is_elf = yes \
15510   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15511   then gcc_cv_as_gdwarf2_flag=yes
15512 fi
15513   elif test x$gcc_cv_as != x; then
15514     echo "$insn" > conftest.s
15515     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517   (eval $ac_try) 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; }
15521     then
15522         gcc_cv_as_gdwarf2_flag=yes
15523     else
15524       echo "configure: failed program was" >&5
15525       cat conftest.s >&5
15526     fi
15527     rm -f conftest.o conftest.s
15528   fi
15529 fi
15530 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15531 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15532 if test $gcc_cv_as_gdwarf2_flag = yes; then
15533
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15536 _ACEOF
15537
15538 fi
15539
15540  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15541 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15542 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15543   echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545   gcc_cv_as_gstabs_flag=no
15546     if test $in_tree_gas = yes; then
15547     if test $in_tree_gas_is_elf = yes \
15548   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15549   then gcc_cv_as_gstabs_flag=yes
15550 fi
15551   elif test x$gcc_cv_as != x; then
15552     echo "$insn" > conftest.s
15553     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555   (eval $ac_try) 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; }
15559     then
15560         # The native Solaris 9/Intel assembler doesn't understand --gstabs
15561    # and warns about it, but still exits successfully.  So check for
15562    # this.
15563    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565   (eval $ac_try) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); }; }
15569    then :
15570    else gcc_cv_as_gstabs_flag=yes
15571    fi
15572     else
15573       echo "configure: failed program was" >&5
15574       cat conftest.s >&5
15575     fi
15576     rm -f conftest.o conftest.s
15577   fi
15578 fi
15579 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15580 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15581 if test $gcc_cv_as_gstabs_flag = yes; then
15582
15583 cat >>confdefs.h <<\_ACEOF
15584 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15585 _ACEOF
15586
15587 fi
15588 fi
15589
15590 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15591 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15592 gcc_cv_ld_ro_rw_mix=unknown
15593 if test $in_tree_ld = yes ; then
15594   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
15595      && test $in_tree_ld_is_elf = yes; then
15596     gcc_cv_ld_ro_rw_mix=read-write
15597   fi
15598 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15599   echo '.section myfoosect, "a"' > conftest1.s
15600   echo '.section myfoosect, "aw"' > conftest2.s
15601   echo '.byte 1' >> conftest2.s
15602   echo '.section myfoosect, "a"' > conftest3.s
15603   echo '.byte 0' >> conftest3.s
15604   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15605      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15606      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15607      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15608         conftest2.o conftest3.o > /dev/null 2>&1; then
15609     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15610                          | sed -e '/myfoosect/!d' -e N`
15611     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15612       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15613         gcc_cv_ld_ro_rw_mix=read-only
15614       else
15615         gcc_cv_ld_ro_rw_mix=read-write
15616       fi
15617     fi
15618   fi
15619   rm -f conftest.* conftest[123].*
15620 fi
15621 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15622
15623 cat >>confdefs.h <<\_ACEOF
15624 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15625 _ACEOF
15626
15627 fi
15628 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15629 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15630
15631 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15632 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15633 gcc_cv_ld_eh_frame_hdr=no
15634 if test $in_tree_ld = yes ; then
15635   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
15636      && test $in_tree_ld_is_elf = yes; then
15637     gcc_cv_ld_eh_frame_hdr=yes
15638   fi
15639 elif test x$gcc_cv_ld != x; then
15640         # Check if linker supports --eh-frame-hdr option
15641         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15642                 gcc_cv_ld_eh_frame_hdr=yes
15643         fi
15644 fi
15645
15646 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15647
15648 cat >>confdefs.h <<\_ACEOF
15649 #define HAVE_LD_EH_FRAME_HDR 1
15650 _ACEOF
15651
15652 fi
15653 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15654 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15655
15656 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15657 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15658 gcc_cv_ld_pie=no
15659 if test $in_tree_ld = yes ; then
15660   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
15661      && test $in_tree_ld_is_elf = yes; then
15662     gcc_cv_ld_pie=yes
15663   fi
15664 elif test x$gcc_cv_ld != x; then
15665         # Check if linker supports -pie option
15666         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15667                 gcc_cv_ld_pie=yes
15668         fi
15669 fi
15670 if test x"$gcc_cv_ld_pie" = xyes; then
15671
15672 cat >>confdefs.h <<\_ACEOF
15673 #define HAVE_LD_PIE 1
15674 _ACEOF
15675
15676 fi
15677 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15678 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15679
15680 # --------
15681 # UNSORTED
15682 # --------
15683
15684 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15685 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15686 if test "${gcc_cv_ld_as_needed+set}" = set; then
15687   echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689   gcc_cv_ld_as_needed=no
15690 if test $in_tree_ld = yes ; then
15691   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
15692      && test $in_tree_ld_is_elf = yes; then
15693     gcc_cv_ld_as_needed=yes
15694   fi
15695 elif test x$gcc_cv_ld != x; then
15696         # Check if linker supports --as-needed and --no-as-needed options
15697         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15698                 gcc_cv_ld_as_needed=yes
15699         fi
15700 fi
15701
15702 fi
15703 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15704 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15705 if test x"$gcc_cv_ld_as_needed" = xyes; then
15706
15707 cat >>confdefs.h <<\_ACEOF
15708 #define HAVE_LD_AS_NEEDED 1
15709 _ACEOF
15710
15711 fi
15712
15713 case "$target:$tm_file" in
15714   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15715     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15716 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15717 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15718   echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720   gcc_cv_ld_no_dot_syms=no
15721     if test $in_tree_ld = yes ; then
15722       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
15723         gcc_cv_ld_no_dot_syms=yes
15724       fi
15725     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15726       cat > conftest1.s <<EOF
15727         .text
15728         bl .foo
15729 EOF
15730       cat > conftest2.s <<EOF
15731         .section ".opd","aw"
15732         .align 3
15733         .globl foo
15734         .type foo,@function
15735 foo:
15736         .quad .LEfoo,.TOC.@tocbase,0
15737         .text
15738 .LEfoo:
15739         blr
15740         .size foo,.-.LEfoo
15741 EOF
15742       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15743          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15744          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15745         gcc_cv_ld_no_dot_syms=yes
15746       fi
15747       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15748     fi
15749
15750 fi
15751 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15752 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15753     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15754
15755 cat >>confdefs.h <<\_ACEOF
15756 #define HAVE_LD_NO_DOT_SYMS 1
15757 _ACEOF
15758
15759     fi
15760     ;;
15761 esac
15762
15763 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15764 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15765 if test "${gcc_cv_ld_sysroot+set}" = set; then
15766   echo $ECHO_N "(cached) $ECHO_C" >&6
15767 else
15768   gcc_cv_ld_sysroot=no
15769   if test $in_tree_ld = yes ; then
15770       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
15771         gcc_cv_ld_sysroot=yes
15772       fi
15773   elif test x$gcc_cv_ld != x; then
15774     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15775       gcc_cv_ld_sysroot=yes
15776     fi
15777   fi
15778 fi
15779 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15780 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15781 if test x"$gcc_cv_ld_sysroot" = xyes; then
15782
15783 cat >>confdefs.h <<\_ACEOF
15784 #define HAVE_LD_SYSROOT 1
15785 _ACEOF
15786
15787 fi
15788
15789 if test x$with_sysroot = x && test x$host = x$target \
15790    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15791
15792 cat >>confdefs.h <<_ACEOF
15793 #define PREFIX_INCLUDE_DIR "$prefix/include"
15794 _ACEOF
15795
15796 fi
15797
15798 # Test for stack protector support in target C library.
15799 case "$target" in
15800   *-*-linux*)
15801     echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15802 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15803 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15804   echo $ECHO_N "(cached) $ECHO_C" >&6
15805 else
15806   gcc_cv_libc_provides_ssp=no
15807       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15808         if test "x$with_sysroot" = x; then
15809           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15810         elif test "x$with_sysroot" = xyes; then
15811           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15812         else
15813           glibc_header_dir="${with_sysroot}/usr/include"
15814         fi
15815       else
15816         glibc_header_dir=/usr/include
15817       fi
15818       # glibc 2.4 and later provides __stack_chk_fail and
15819       # either __stack_chk_guard, or TLS access to stack guard canary.
15820       if test -f $glibc_header_dir/features.h \
15821          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
15822             $glibc_header_dir/features.h > /dev/null; then
15823         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
15824            $glibc_header_dir/features.h > /dev/null; then
15825           gcc_cv_libc_provides_ssp=yes
15826         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
15827              $glibc_header_dir/features.h > /dev/null \
15828              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
15829              $glibc_header_dir/features.h > /dev/null; then
15830           gcc_cv_libc_provides_ssp=yes
15831         fi
15832       fi
15833 fi
15834 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15835 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15836   *) gcc_cv_libc_provides_ssp=no ;;
15837 esac
15838 if test x$gcc_cv_libc_provides_ssp = xyes; then
15839
15840 cat >>confdefs.h <<\_ACEOF
15841 #define TARGET_LIBC_PROVIDES_SSP 1
15842 _ACEOF
15843
15844 fi
15845
15846 # Check if TFmode long double should be used by default or not.
15847 # Some glibc targets used DFmode long double, but with glibc 2.4
15848 # and later they can use TFmode.
15849 case "$target" in
15850   powerpc*-*-*gnu* | \
15851   sparc*-*-linux* | \
15852   s390*-*-linux* | \
15853   alpha*-*-linux*)
15854
15855 # Check whether --with-long-double-128 or --without-long-double-128 was given.
15856 if test "${with_long_double_128+set}" = set; then
15857   withval="$with_long_double_128"
15858   gcc_cv_target_ldbl128="$with_long_double_128"
15859 else
15860   gcc_cv_target_ldbl128=no
15861       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15862         if test "x$with_sysroot" = x; then
15863           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15864         elif test "x$with_sysroot" = xyes; then
15865           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15866         else
15867           glibc_header_dir="${with_sysroot}/usr/include"
15868         fi
15869       else
15870         glibc_header_dir=/usr/include
15871       fi
15872       grep '^   *#[     ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
15873         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
15874       && gcc_cv_target_ldbl128=yes
15875 fi;
15876     ;;
15877 esac
15878 if test x$gcc_cv_target_ldbl128 = xyes; then
15879
15880 cat >>confdefs.h <<\_ACEOF
15881 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
15882 _ACEOF
15883
15884 fi
15885
15886 # Find out what GC implementation we want, or may, use.
15887
15888 # Check whether --with-gc or --without-gc was given.
15889 if test "${with_gc+set}" = set; then
15890   withval="$with_gc"
15891   case "$withval" in
15892   page)
15893     GGC=ggc-$withval
15894     ;;
15895   zone)
15896     GGC=ggc-$withval
15897
15898 cat >>confdefs.h <<\_ACEOF
15899 #define GGC_ZONE 1
15900 _ACEOF
15901
15902     ;;
15903   *)
15904     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15905 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15906    { (exit 1); exit 1; }; }
15907     ;;
15908 esac
15909 else
15910   GGC=ggc-page
15911 fi;
15912
15913 echo "Using $GGC for garbage collection."
15914
15915 # Use the system's zlib library.
15916 zlibdir=-L../zlib
15917 zlibinc="-I\$(srcdir)/../zlib"
15918
15919 # Check whether --with-system-zlib or --without-system-zlib was given.
15920 if test "${with_system_zlib+set}" = set; then
15921   withval="$with_system_zlib"
15922   zlibdir=
15923 zlibinc=
15924
15925 fi;
15926
15927
15928
15929
15930 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15931 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15932     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15933 if test "${enable_maintainer_mode+set}" = set; then
15934   enableval="$enable_maintainer_mode"
15935   maintainer_mode=$enableval
15936 else
15937   maintainer_mode=no
15938 fi;
15939
15940 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15941 echo "${ECHO_T}$maintainer_mode" >&6
15942
15943 if test "$maintainer_mode" = "yes"; then
15944   MAINT=''
15945 else
15946   MAINT='#'
15947 fi
15948
15949 # --------------
15950 # Language hooks
15951 # --------------
15952
15953 # Make empty files to contain the specs and options for each language.
15954 # Then add #include lines to for a compiler that has specs and/or options.
15955
15956 subdirs=
15957 lang_opt_files=
15958 lang_specs_files=
15959 lang_tree_files=
15960 # These (without "all_") are set in each config-lang.in.
15961 # `language' must be a single word so is spelled singularly.
15962 all_languages=
15963 all_boot_languages=
15964 all_compilers=
15965 all_stagestuff=
15966 all_outputs='Makefile gccbug mklibgcc libada-mk'
15967 # List of language makefile fragments.
15968 all_lang_makefrags=
15969 # List of language subdirectory makefiles.  Deprecated.
15970 all_lang_makefiles=
15971 # Files for gengtype
15972 all_gtfiles="$target_gtfiles"
15973 # Files for gengtype with language
15974 all_gtfiles_files_langs=
15975 all_gtfiles_files_files=
15976
15977 # These are the languages that are set in --enable-languages,
15978 # and are available in the GCC tree.
15979 all_selected_languages=
15980
15981 # Add the language fragments.
15982 # Languages are added via two mechanisms.  Some information must be
15983 # recorded in makefile variables, these are defined in config-lang.in.
15984 # We accumulate them and plug them into the main Makefile.
15985 # The other mechanism is a set of hooks for each of the main targets
15986 # like `clean', `install', etc.
15987
15988 language_hooks="Make-hooks"
15989
15990 for lang in ${srcdir}/*/config-lang.in
15991 do
15992     case $lang in
15993     # The odd quoting in the next line works around
15994     # an apparent bug in bash 1.12 on linux.
15995     ${srcdir}/[*]/config-lang.in)
15996         continue ;;
15997     *)
15998         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
15999         if test "x$lang_alias" = x
16000         then
16001               echo "$lang doesn't set \$language." 1>&2
16002               exit 1
16003         fi
16004         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16005         subdirs="$subdirs $subdir"
16006         case ",$enable_languages," in
16007         *,$lang_alias,*)
16008             all_selected_languages="$all_selected_languages $lang_alias"
16009             if test -f $srcdir/$subdir/lang-specs.h; then
16010                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16011             fi
16012             ;;
16013         esac
16014
16015         if test -f $srcdir/$subdir/lang.opt; then
16016             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16017         fi
16018         if test -f $srcdir/$subdir/$subdir-tree.def; then
16019             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16020         fi
16021
16022         language=
16023         boot_language=
16024         compilers=
16025         stagestuff=
16026         outputs=
16027         gtfiles=
16028         . ${srcdir}/$subdir/config-lang.in
16029         if test "x$language" = x
16030         then
16031                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16032                 exit 1
16033         fi
16034         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16035         if test -f ${srcdir}/$subdir/Makefile.in
16036                 then all_lang_makefiles="$subdir/Makefile"
16037         fi
16038         all_languages="$all_languages $language"
16039         if test "x$boot_language" = xyes
16040         then
16041                 all_boot_languages="$all_boot_languages $language"
16042         fi
16043         all_compilers="$all_compilers $compilers"
16044         all_stagestuff="$all_stagestuff $stagestuff"
16045         all_outputs="$all_outputs $outputs"
16046         all_gtfiles="$all_gtfiles $gtfiles"
16047         for f in $gtfiles
16048         do
16049                  all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16050                  all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16051         done
16052         ;;
16053     esac
16054 done
16055
16056 # Pick up gtfiles for c
16057 gtfiles=
16058 subdir="c"
16059 . ${srcdir}/c-config-lang.in
16060 all_gtfiles="$all_gtfiles $gtfiles"
16061 for f in $gtfiles
16062 do
16063         all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16064         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16065 done
16066
16067 check_languages=
16068 for language in $all_selected_languages
16069 do
16070         check_languages="$check_languages check-$language"
16071 done
16072
16073 # We link each language in with a set of hooks, reached indirectly via
16074 # lang.${target}.  Only do so for selected languages.
16075
16076 rm -f Make-hooks
16077 touch Make-hooks
16078 target_list="all.cross start.encap rest.encap tags \
16079         install-common install-man install-info dvi html \
16080         uninstall info man srcextra srcman srcinfo \
16081         mostlyclean clean distclean maintainer-clean \
16082         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16083
16084 for t in $target_list
16085 do
16086         x=
16087         for lang in $all_selected_languages
16088         do
16089                 x="$x $lang.$t"
16090         done
16091         echo "lang.$t: $x" >> Make-hooks
16092 done
16093
16094 # --------
16095 # UNSORTED
16096 # --------
16097
16098 # Create .gdbinit.
16099
16100 echo "dir ." > .gdbinit
16101 echo "dir ${srcdir}" >> .gdbinit
16102 if test x$gdb_needs_out_file_path = xyes
16103 then
16104         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16105 fi
16106 if test "x$subdirs" != x; then
16107         for s in $subdirs
16108         do
16109                 echo "dir ${srcdir}/$s" >> .gdbinit
16110         done
16111 fi
16112 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16113
16114 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16115 # absolute path for gcc_tooldir based on inserting the number of up-directory
16116 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16117 # $(libsubdir)/@(unlibsubdir) based path.
16118 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16119 # make and thus we'd get different behavior depending on where we built the
16120 # sources.
16121 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16122     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16123 else
16124 # An explanation of the sed strings:
16125 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
16126 #  -e 's|/$||'            match a trailing forward slash and eliminates it
16127 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
16128 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
16129 #
16130 # (*) Note this pattern overwrites the first character of the string
16131 # with a forward slash if one is not already present.  This is not a
16132 # problem because the exact names of the sub-directories concerned is
16133 # unimportant, just the number of them matters.
16134 #
16135 # The practical upshot of these patterns is like this:
16136 #
16137 #  prefix     exec_prefix        result
16138 #  ------     -----------        ------
16139 #   /foo        /foo/bar          ../
16140 #   /foo/       /foo/bar          ../
16141 #   /foo        /foo/bar/         ../
16142 #   /foo/       /foo/bar/         ../
16143 #   /foo        /foo/bar/ugg      ../../
16144 #
16145     dollar='$$'
16146     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16147 fi
16148
16149
16150
16151 # Find a directory in which to install a shared libgcc.
16152
16153 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16154 if test "${enable_version_specific_runtime_libs+set}" = set; then
16155   enableval="$enable_version_specific_runtime_libs"
16156
16157 fi;
16158
16159
16160 # Check whether --with-slibdir or --without-slibdir was given.
16161 if test "${with_slibdir+set}" = set; then
16162   withval="$with_slibdir"
16163   slibdir="$with_slibdir"
16164 else
16165   if test "${enable_version_specific_runtime_libs+set}" = set; then
16166   slibdir='$(libsubdir)'
16167 elif test "$host" != "$target"; then
16168   slibdir='$(build_tooldir)/lib'
16169 else
16170   slibdir='$(libdir)'
16171 fi
16172 fi;
16173
16174
16175 objdir=`${PWDCMD-pwd}`
16176
16177
16178
16179 # Check whether --with-datarootdir or --without-datarootdir was given.
16180 if test "${with_datarootdir+set}" = set; then
16181   withval="$with_datarootdir"
16182   datarootdir="\${prefix}/$with_datarootdir"
16183 else
16184   datarootdir='$(prefix)/share'
16185 fi;
16186
16187
16188
16189 # Check whether --with-docdir or --without-docdir was given.
16190 if test "${with_docdir+set}" = set; then
16191   withval="$with_docdir"
16192   docdir="\${prefix}/$with_docdir"
16193 else
16194   docdir='$(datarootdir)'
16195 fi;
16196
16197
16198
16199 # Check whether --with-htmldir or --without-htmldir was given.
16200 if test "${with_htmldir+set}" = set; then
16201   withval="$with_htmldir"
16202   htmldir="\${prefix}/$with_htmldir"
16203 else
16204   htmldir='$(docdir)'
16205 fi;
16206
16207
16208 # Substitute configuration variables
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273 # Echo link setup.
16274 if test x${build} = x${host} ; then
16275   if test x${host} = x${target} ; then
16276     echo "Links are now set up to build a native compiler for ${target}." 1>&2
16277   else
16278     echo "Links are now set up to build a cross-compiler" 1>&2
16279     echo " from ${host} to ${target}." 1>&2
16280   fi
16281 else
16282   if test x${host} = x${target} ; then
16283     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16284     echo " for ${target}." 1>&2
16285   else
16286     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16287     echo " from ${host} to ${target}." 1>&2
16288   fi
16289 fi
16290
16291
16292
16293
16294 # Configure the subdirectories
16295 # AC_CONFIG_SUBDIRS($subdirs)
16296
16297 # Create the Makefile
16298 # and configure language subdirectories
16299           ac_config_files="$ac_config_files $all_outputs"
16300
16301
16302           ac_config_commands="$ac_config_commands default"
16303
16304 cat >confcache <<\_ACEOF
16305 # This file is a shell script that caches the results of configure
16306 # tests run on this system so they can be shared between configure
16307 # scripts and configure runs, see configure's option --config-cache.
16308 # It is not useful on other systems.  If it contains results you don't
16309 # want to keep, you may remove or edit it.
16310 #
16311 # config.status only pays attention to the cache file if you give it
16312 # the --recheck option to rerun configure.
16313 #
16314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16316 # following values.
16317
16318 _ACEOF
16319
16320 # The following way of writing the cache mishandles newlines in values,
16321 # but we know of no workaround that is simple, portable, and efficient.
16322 # So, don't put newlines in cache variables' values.
16323 # Ultrix sh set writes to stderr and can't be redirected directly,
16324 # and sets the high bit in the cache file unless we assign to the vars.
16325 {
16326   (set) 2>&1 |
16327     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16328     *ac_space=\ *)
16329       # `set' does not quote correctly, so add quotes (double-quote
16330       # substitution turns \\\\ into \\, and sed turns \\ into \).
16331       sed -n \
16332         "s/'/'\\\\''/g;
16333           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16334       ;;
16335     *)
16336       # `set' quotes correctly as required by POSIX, so do not add quotes.
16337       sed -n \
16338         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16339       ;;
16340     esac;
16341 } |
16342   sed '
16343      t clear
16344      : clear
16345      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16346      t end
16347      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16348      : end' >>confcache
16349 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16350   if test -w $cache_file; then
16351     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16352     cat confcache >$cache_file
16353   else
16354     echo "not updating unwritable cache $cache_file"
16355   fi
16356 fi
16357 rm -f confcache
16358
16359 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16360 # Let make expand exec_prefix.
16361 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16362
16363 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16364 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16365 # trailing colons and then remove the whole line if VPATH becomes empty
16366 # (actually we leave an empty line to preserve line numbers).
16367 if test "x$srcdir" = x.; then
16368   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16369 s/:*\$(srcdir):*/:/;
16370 s/:*\${srcdir}:*/:/;
16371 s/:*@srcdir@:*/:/;
16372 s/^\([^=]*=[     ]*\):*/\1/;
16373 s/:*$//;
16374 s/^[^=]*=[       ]*$//;
16375 }'
16376 fi
16377
16378 DEFS=-DHAVE_CONFIG_H
16379
16380 ac_libobjs=
16381 ac_ltlibobjs=
16382 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16383   # 1. Remove the extension, and $U if already installed.
16384   ac_i=`echo "$ac_i" |
16385          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16386   # 2. Add them.
16387   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16388   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16389 done
16390 LIBOBJS=$ac_libobjs
16391
16392 LTLIBOBJS=$ac_ltlibobjs
16393
16394
16395
16396 : ${CONFIG_STATUS=./config.status}
16397 ac_clean_files_save=$ac_clean_files
16398 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16399 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16400 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16401 cat >$CONFIG_STATUS <<_ACEOF
16402 #! $SHELL
16403 # Generated by $as_me.
16404 # Run this file to recreate the current configuration.
16405 # Compiler output produced by configure, useful for debugging
16406 # configure, is in config.log if it exists.
16407
16408 debug=false
16409 ac_cs_recheck=false
16410 ac_cs_silent=false
16411 SHELL=\${CONFIG_SHELL-$SHELL}
16412 _ACEOF
16413
16414 cat >>$CONFIG_STATUS <<\_ACEOF
16415 ## --------------------- ##
16416 ## M4sh Initialization.  ##
16417 ## --------------------- ##
16418
16419 # Be Bourne compatible
16420 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16421   emulate sh
16422   NULLCMD=:
16423   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16424   # is contrary to our usage.  Disable this feature.
16425   alias -g '${1+"$@"}'='"$@"'
16426 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16427   set -o posix
16428 fi
16429 DUALCASE=1; export DUALCASE # for MKS sh
16430
16431 # Support unset when possible.
16432 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16433   as_unset=unset
16434 else
16435   as_unset=false
16436 fi
16437
16438
16439 # Work around bugs in pre-3.0 UWIN ksh.
16440 $as_unset ENV MAIL MAILPATH
16441 PS1='$ '
16442 PS2='> '
16443 PS4='+ '
16444
16445 # NLS nuisances.
16446 for as_var in \
16447   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16448   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16449   LC_TELEPHONE LC_TIME
16450 do
16451   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16452     eval $as_var=C; export $as_var
16453   else
16454     $as_unset $as_var
16455   fi
16456 done
16457
16458 # Required to use basename.
16459 if expr a : '\(a\)' >/dev/null 2>&1; then
16460   as_expr=expr
16461 else
16462   as_expr=false
16463 fi
16464
16465 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16466   as_basename=basename
16467 else
16468   as_basename=false
16469 fi
16470
16471
16472 # Name of the executable.
16473 as_me=`$as_basename "$0" ||
16474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16475          X"$0" : 'X\(//\)$' \| \
16476          X"$0" : 'X\(/\)$' \| \
16477          .     : '\(.\)' 2>/dev/null ||
16478 echo X/"$0" |
16479     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16480           /^X\/\(\/\/\)$/{ s//\1/; q; }
16481           /^X\/\(\/\).*/{ s//\1/; q; }
16482           s/.*/./; q'`
16483
16484
16485 # PATH needs CR, and LINENO needs CR and PATH.
16486 # Avoid depending upon Character Ranges.
16487 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16488 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16489 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16490 as_cr_digits='0123456789'
16491 as_cr_alnum=$as_cr_Letters$as_cr_digits
16492
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495   echo "#! /bin/sh" >conf$$.sh
16496   echo  "exit 0"   >>conf$$.sh
16497   chmod +x conf$$.sh
16498   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16499     PATH_SEPARATOR=';'
16500   else
16501     PATH_SEPARATOR=:
16502   fi
16503   rm -f conf$$.sh
16504 fi
16505
16506
16507   as_lineno_1=$LINENO
16508   as_lineno_2=$LINENO
16509   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16510   test "x$as_lineno_1" != "x$as_lineno_2" &&
16511   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16512   # Find who we are.  Look in the path if we contain no path at all
16513   # relative or not.
16514   case $0 in
16515     *[\\/]* ) as_myself=$0 ;;
16516     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16517 for as_dir in $PATH
16518 do
16519   IFS=$as_save_IFS
16520   test -z "$as_dir" && as_dir=.
16521   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16522 done
16523
16524        ;;
16525   esac
16526   # We did not find ourselves, most probably we were run as `sh COMMAND'
16527   # in which case we are not to be found in the path.
16528   if test "x$as_myself" = x; then
16529     as_myself=$0
16530   fi
16531   if test ! -f "$as_myself"; then
16532     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16533 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16534    { (exit 1); exit 1; }; }
16535   fi
16536   case $CONFIG_SHELL in
16537   '')
16538     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16539 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16540 do
16541   IFS=$as_save_IFS
16542   test -z "$as_dir" && as_dir=.
16543   for as_base in sh bash ksh sh5; do
16544          case $as_dir in
16545          /*)
16546            if ("$as_dir/$as_base" -c '
16547   as_lineno_1=$LINENO
16548   as_lineno_2=$LINENO
16549   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16550   test "x$as_lineno_1" != "x$as_lineno_2" &&
16551   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16552              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16553              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16554              CONFIG_SHELL=$as_dir/$as_base
16555              export CONFIG_SHELL
16556              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16557            fi;;
16558          esac
16559        done
16560 done
16561 ;;
16562   esac
16563
16564   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16565   # uniformly replaced by the line number.  The first 'sed' inserts a
16566   # line-number line before each line; the second 'sed' does the real
16567   # work.  The second script uses 'N' to pair each line-number line
16568   # with the numbered line, and appends trailing '-' during
16569   # substitution so that $LINENO is not a special case at line end.
16570   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16571   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16572   sed '=' <$as_myself |
16573     sed '
16574       N
16575       s,$,-,
16576       : loop
16577       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16578       t loop
16579       s,-$,,
16580       s,^['$as_cr_digits']*\n,,
16581     ' >$as_me.lineno &&
16582   chmod +x $as_me.lineno ||
16583     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16584 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16585    { (exit 1); exit 1; }; }
16586
16587   # Don't try to exec as it changes $[0], causing all sort of problems
16588   # (the dirname of $[0] is not the place where we might find the
16589   # original and so on.  Autoconf is especially sensible to this).
16590   . ./$as_me.lineno
16591   # Exit status is that of the last command.
16592   exit
16593 }
16594
16595
16596 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16597   *c*,-n*) ECHO_N= ECHO_C='
16598 ' ECHO_T='      ' ;;
16599   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16600   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16601 esac
16602
16603 if expr a : '\(a\)' >/dev/null 2>&1; then
16604   as_expr=expr
16605 else
16606   as_expr=false
16607 fi
16608
16609 rm -f conf$$ conf$$.exe conf$$.file
16610 echo >conf$$.file
16611 if ln -s conf$$.file conf$$ 2>/dev/null; then
16612   # We could just check for DJGPP; but this test a) works b) is more generic
16613   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16614   if test -f conf$$.exe; then
16615     # Don't use ln at all; we don't have any links
16616     as_ln_s='cp -p'
16617   else
16618     as_ln_s='ln -s'
16619   fi
16620 elif ln conf$$.file conf$$ 2>/dev/null; then
16621   as_ln_s=ln
16622 else
16623   as_ln_s='cp -p'
16624 fi
16625 rm -f conf$$ conf$$.exe conf$$.file
16626
16627 if mkdir -p . 2>/dev/null; then
16628   as_mkdir_p=:
16629 else
16630   test -d ./-p && rmdir ./-p
16631   as_mkdir_p=false
16632 fi
16633
16634 as_executable_p="test -f"
16635
16636 # Sed expression to map a string onto a valid CPP name.
16637 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16638
16639 # Sed expression to map a string onto a valid variable name.
16640 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16641
16642
16643 # IFS
16644 # We need space, tab and new line, in precisely that order.
16645 as_nl='
16646 '
16647 IFS="   $as_nl"
16648
16649 # CDPATH.
16650 $as_unset CDPATH
16651
16652 exec 6>&1
16653
16654 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16655 # report actual input values of CONFIG_FILES etc. instead of their
16656 # values after options handling.  Logging --version etc. is OK.
16657 exec 5>>config.log
16658 {
16659   echo
16660   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16661 ## Running $as_me. ##
16662 _ASBOX
16663 } >&5
16664 cat >&5 <<_CSEOF
16665
16666 This file was extended by $as_me, which was
16667 generated by GNU Autoconf 2.59.  Invocation command line was
16668
16669   CONFIG_FILES    = $CONFIG_FILES
16670   CONFIG_HEADERS  = $CONFIG_HEADERS
16671   CONFIG_LINKS    = $CONFIG_LINKS
16672   CONFIG_COMMANDS = $CONFIG_COMMANDS
16673   $ $0 $@
16674
16675 _CSEOF
16676 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16677 echo >&5
16678 _ACEOF
16679
16680 # Files that config.status was made for.
16681 if test -n "$ac_config_files"; then
16682   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16683 fi
16684
16685 if test -n "$ac_config_headers"; then
16686   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16687 fi
16688
16689 if test -n "$ac_config_links"; then
16690   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16691 fi
16692
16693 if test -n "$ac_config_commands"; then
16694   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16695 fi
16696
16697 cat >>$CONFIG_STATUS <<\_ACEOF
16698
16699 ac_cs_usage="\
16700 \`$as_me' instantiates files from templates according to the
16701 current configuration.
16702
16703 Usage: $0 [OPTIONS] [FILE]...
16704
16705   -h, --help       print this help, then exit
16706   -V, --version    print version number, then exit
16707   -q, --quiet      do not print progress messages
16708   -d, --debug      don't remove temporary files
16709       --recheck    update $as_me by reconfiguring in the same conditions
16710   --file=FILE[:TEMPLATE]
16711                    instantiate the configuration file FILE
16712   --header=FILE[:TEMPLATE]
16713                    instantiate the configuration header FILE
16714
16715 Configuration files:
16716 $config_files
16717
16718 Configuration headers:
16719 $config_headers
16720
16721 Configuration commands:
16722 $config_commands
16723
16724 Report bugs to <bug-autoconf@gnu.org>."
16725 _ACEOF
16726
16727 cat >>$CONFIG_STATUS <<_ACEOF
16728 ac_cs_version="\\
16729 config.status
16730 configured by $0, generated by GNU Autoconf 2.59,
16731   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16732
16733 Copyright (C) 2003 Free Software Foundation, Inc.
16734 This config.status script is free software; the Free Software Foundation
16735 gives unlimited permission to copy, distribute and modify it."
16736 srcdir=$srcdir
16737 _ACEOF
16738
16739 cat >>$CONFIG_STATUS <<\_ACEOF
16740 # If no file are specified by the user, then we need to provide default
16741 # value.  By we need to know if files were specified by the user.
16742 ac_need_defaults=:
16743 while test $# != 0
16744 do
16745   case $1 in
16746   --*=*)
16747     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16748     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16749     ac_shift=:
16750     ;;
16751   -*)
16752     ac_option=$1
16753     ac_optarg=$2
16754     ac_shift=shift
16755     ;;
16756   *) # This is not an option, so the user has probably given explicit
16757      # arguments.
16758      ac_option=$1
16759      ac_need_defaults=false;;
16760   esac
16761
16762   case $ac_option in
16763   # Handling of the options.
16764 _ACEOF
16765 cat >>$CONFIG_STATUS <<\_ACEOF
16766   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16767     ac_cs_recheck=: ;;
16768   --version | --vers* | -V )
16769     echo "$ac_cs_version"; exit 0 ;;
16770   --he | --h)
16771     # Conflict between --help and --header
16772     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16773 Try \`$0 --help' for more information." >&5
16774 echo "$as_me: error: ambiguous option: $1
16775 Try \`$0 --help' for more information." >&2;}
16776    { (exit 1); exit 1; }; };;
16777   --help | --hel | -h )
16778     echo "$ac_cs_usage"; exit 0 ;;
16779   --debug | --d* | -d )
16780     debug=: ;;
16781   --file | --fil | --fi | --f )
16782     $ac_shift
16783     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16784     ac_need_defaults=false;;
16785   --header | --heade | --head | --hea )
16786     $ac_shift
16787     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16788     ac_need_defaults=false;;
16789   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16790   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16791     ac_cs_silent=: ;;
16792
16793   # This is an error.
16794   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16795 Try \`$0 --help' for more information." >&5
16796 echo "$as_me: error: unrecognized option: $1
16797 Try \`$0 --help' for more information." >&2;}
16798    { (exit 1); exit 1; }; } ;;
16799
16800   *) ac_config_targets="$ac_config_targets $1" ;;
16801
16802   esac
16803   shift
16804 done
16805
16806 ac_configure_extra_args=
16807
16808 if $ac_cs_silent; then
16809   exec 6>/dev/null
16810   ac_configure_extra_args="$ac_configure_extra_args --silent"
16811 fi
16812
16813 _ACEOF
16814 cat >>$CONFIG_STATUS <<_ACEOF
16815 if \$ac_cs_recheck; then
16816   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16817   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16818 fi
16819
16820 _ACEOF
16821
16822 cat >>$CONFIG_STATUS <<_ACEOF
16823 #
16824 # INIT-COMMANDS section.
16825 #
16826
16827 subdirs='$subdirs'
16828
16829 _ACEOF
16830
16831
16832
16833 cat >>$CONFIG_STATUS <<\_ACEOF
16834 for ac_config_target in $ac_config_targets
16835 do
16836   case "$ac_config_target" in
16837   # Handling of arguments.
16838   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16839   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16840   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16841   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16842 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16843    { (exit 1); exit 1; }; };;
16844   esac
16845 done
16846
16847 # If the user did not use the arguments to specify the items to instantiate,
16848 # then the envvar interface is used.  Set only those that are not.
16849 # We use the long form for the default assignment because of an extremely
16850 # bizarre bug on SunOS 4.1.3.
16851 if $ac_need_defaults; then
16852   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16853   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16854   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16855 fi
16856
16857 # Have a temporary directory for convenience.  Make it in the build tree
16858 # simply because there is no reason to put it here, and in addition,
16859 # creating and moving files from /tmp can sometimes cause problems.
16860 # Create a temporary directory, and hook for its removal unless debugging.
16861 $debug ||
16862 {
16863   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16864   trap '{ (exit 1); exit 1; }' 1 2 13 15
16865 }
16866
16867 # Create a (secure) tmp directory for tmp files.
16868
16869 {
16870   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16871   test -n "$tmp" && test -d "$tmp"
16872 }  ||
16873 {
16874   tmp=./confstat$$-$RANDOM
16875   (umask 077 && mkdir $tmp)
16876 } ||
16877 {
16878    echo "$me: cannot create a temporary directory in ." >&2
16879    { (exit 1); exit 1; }
16880 }
16881
16882 _ACEOF
16883
16884 cat >>$CONFIG_STATUS <<_ACEOF
16885
16886 #
16887 # CONFIG_FILES section.
16888 #
16889
16890 # No need to generate the scripts if there are no CONFIG_FILES.
16891 # This happens for instance when ./config.status config.h
16892 if test -n "\$CONFIG_FILES"; then
16893   # Protect against being on the right side of a sed subst in config.status.
16894   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16895    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16896 s,@SHELL@,$SHELL,;t t
16897 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16898 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16899 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16900 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16901 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16902 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16903 s,@exec_prefix@,$exec_prefix,;t t
16904 s,@prefix@,$prefix,;t t
16905 s,@program_transform_name@,$program_transform_name,;t t
16906 s,@bindir@,$bindir,;t t
16907 s,@sbindir@,$sbindir,;t t
16908 s,@libexecdir@,$libexecdir,;t t
16909 s,@datadir@,$datadir,;t t
16910 s,@sysconfdir@,$sysconfdir,;t t
16911 s,@sharedstatedir@,$sharedstatedir,;t t
16912 s,@localstatedir@,$localstatedir,;t t
16913 s,@libdir@,$libdir,;t t
16914 s,@includedir@,$includedir,;t t
16915 s,@oldincludedir@,$oldincludedir,;t t
16916 s,@infodir@,$infodir,;t t
16917 s,@mandir@,$mandir,;t t
16918 s,@build_alias@,$build_alias,;t t
16919 s,@host_alias@,$host_alias,;t t
16920 s,@target_alias@,$target_alias,;t t
16921 s,@DEFS@,$DEFS,;t t
16922 s,@ECHO_C@,$ECHO_C,;t t
16923 s,@ECHO_N@,$ECHO_N,;t t
16924 s,@ECHO_T@,$ECHO_T,;t t
16925 s,@LIBS@,$LIBS,;t t
16926 s,@build@,$build,;t t
16927 s,@build_cpu@,$build_cpu,;t t
16928 s,@build_vendor@,$build_vendor,;t t
16929 s,@build_os@,$build_os,;t t
16930 s,@host@,$host,;t t
16931 s,@host_cpu@,$host_cpu,;t t
16932 s,@host_vendor@,$host_vendor,;t t
16933 s,@host_os@,$host_os,;t t
16934 s,@target@,$target,;t t
16935 s,@target_cpu@,$target_cpu,;t t
16936 s,@target_vendor@,$target_vendor,;t t
16937 s,@target_os@,$target_os,;t t
16938 s,@target_noncanonical@,$target_noncanonical,;t t
16939 s,@build_subdir@,$build_subdir,;t t
16940 s,@host_subdir@,$host_subdir,;t t
16941 s,@target_subdir@,$target_subdir,;t t
16942 s,@GENINSRC@,$GENINSRC,;t t
16943 s,@CC@,$CC,;t t
16944 s,@CFLAGS@,$CFLAGS,;t t
16945 s,@LDFLAGS@,$LDFLAGS,;t t
16946 s,@CPPFLAGS@,$CPPFLAGS,;t t
16947 s,@ac_ct_CC@,$ac_ct_CC,;t t
16948 s,@EXEEXT@,$EXEEXT,;t t
16949 s,@OBJEXT@,$OBJEXT,;t t
16950 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16951 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16952 s,@CPP@,$CPP,;t t
16953 s,@EGREP@,$EGREP,;t t
16954 s,@strict1_warn@,$strict1_warn,;t t
16955 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16956 s,@warn_cflags@,$warn_cflags,;t t
16957 s,@WERROR@,$WERROR,;t t
16958 s,@nocommon_flag@,$nocommon_flag,;t t
16959 s,@TREEBROWSER@,$TREEBROWSER,;t t
16960 s,@valgrind_path@,$valgrind_path,;t t
16961 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16962 s,@valgrind_command@,$valgrind_command,;t t
16963 s,@coverage_flags@,$coverage_flags,;t t
16964 s,@enable_multilib@,$enable_multilib,;t t
16965 s,@enable_decimal_float@,$enable_decimal_float,;t t
16966 s,@enable_shared@,$enable_shared,;t t
16967 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16968 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16969 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16970 s,@onestep@,$onestep,;t t
16971 s,@datarootdir@,$datarootdir,;t t
16972 s,@docdir@,$docdir,;t t
16973 s,@htmldir@,$htmldir,;t t
16974 s,@SET_MAKE@,$SET_MAKE,;t t
16975 s,@AWK@,$AWK,;t t
16976 s,@LN_S@,$LN_S,;t t
16977 s,@LN@,$LN,;t t
16978 s,@RANLIB@,$RANLIB,;t t
16979 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16980 s,@ranlib_flags@,$ranlib_flags,;t t
16981 s,@INSTALL@,$INSTALL,;t t
16982 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16983 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16984 s,@make_compare_target@,$make_compare_target,;t t
16985 s,@have_mktemp_command@,$have_mktemp_command,;t t
16986 s,@MAKEINFO@,$MAKEINFO,;t t
16987 s,@BUILD_INFO@,$BUILD_INFO,;t t
16988 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16989 s,@FLEX@,$FLEX,;t t
16990 s,@BISON@,$BISON,;t t
16991 s,@NM@,$NM,;t t
16992 s,@AR@,$AR,;t t
16993 s,@stage1_cflags@,$stage1_cflags,;t t
16994 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16995 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16996 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16997 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16998 s,@LIBICONV@,$LIBICONV,;t t
16999 s,@LTLIBICONV@,$LTLIBICONV,;t t
17000 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17001 s,@manext@,$manext,;t t
17002 s,@objext@,$objext,;t t
17003 s,@gthread_flags@,$gthread_flags,;t t
17004 s,@extra_modes_file@,$extra_modes_file,;t t
17005 s,@extra_opt_files@,$extra_opt_files,;t t
17006 s,@USE_NLS@,$USE_NLS,;t t
17007 s,@LIBINTL@,$LIBINTL,;t t
17008 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17009 s,@INCINTL@,$INCINTL,;t t
17010 s,@XGETTEXT@,$XGETTEXT,;t t
17011 s,@GMSGFMT@,$GMSGFMT,;t t
17012 s,@POSUB@,$POSUB,;t t
17013 s,@CATALOGS@,$CATALOGS,;t t
17014 s,@DATADIRNAME@,$DATADIRNAME,;t t
17015 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17016 s,@GENCAT@,$GENCAT,;t t
17017 s,@CATOBJEXT@,$CATOBJEXT,;t t
17018 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17019 s,@CROSS@,$CROSS,;t t
17020 s,@ALL@,$ALL,;t t
17021 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17022 s,@inhibit_libc@,$inhibit_libc,;t t
17023 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17024 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17025 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17026 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17027 s,@collect2@,$collect2,;t t
17028 s,@gcc_cv_as@,$gcc_cv_as,;t t
17029 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17030 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17031 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17032 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17033 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17034 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17035 s,@libgcc_visibility@,$libgcc_visibility,;t t
17036 s,@GGC@,$GGC,;t t
17037 s,@zlibdir@,$zlibdir,;t t
17038 s,@zlibinc@,$zlibinc,;t t
17039 s,@MAINT@,$MAINT,;t t
17040 s,@gcc_tooldir@,$gcc_tooldir,;t t
17041 s,@dollar@,$dollar,;t t
17042 s,@slibdir@,$slibdir,;t t
17043 s,@objdir@,$objdir,;t t
17044 s,@subdirs@,$subdirs,;t t
17045 s,@srcdir@,$srcdir,;t t
17046 s,@all_boot_languages@,$all_boot_languages,;t t
17047 s,@all_compilers@,$all_compilers,;t t
17048 s,@all_gtfiles@,$all_gtfiles,;t t
17049 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17050 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17051 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17052 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17053 s,@all_languages@,$all_languages,;t t
17054 s,@all_selected_languages@,$all_selected_languages,;t t
17055 s,@all_stagestuff@,$all_stagestuff,;t t
17056 s,@build_exeext@,$build_exeext,;t t
17057 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17058 s,@build_xm_file_list@,$build_xm_file_list,;t t
17059 s,@build_xm_include_list@,$build_xm_include_list,;t t
17060 s,@build_xm_defines@,$build_xm_defines,;t t
17061 s,@check_languages@,$check_languages,;t t
17062 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17063 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17064 s,@cpp_install_dir@,$cpp_install_dir,;t t
17065 s,@xmake_file@,$xmake_file,;t t
17066 s,@tmake_file@,$tmake_file,;t t
17067 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17068 s,@extra_headers_list@,$extra_headers_list,;t t
17069 s,@extra_objs@,$extra_objs,;t t
17070 s,@extra_parts@,$extra_parts,;t t
17071 s,@extra_passes@,$extra_passes,;t t
17072 s,@extra_programs@,$extra_programs,;t t
17073 s,@float_h_file@,$float_h_file,;t t
17074 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17075 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17076 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17077 s,@host_exeext@,$host_exeext,;t t
17078 s,@host_xm_file_list@,$host_xm_file_list,;t t
17079 s,@host_xm_include_list@,$host_xm_include_list,;t t
17080 s,@host_xm_defines@,$host_xm_defines,;t t
17081 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17082 s,@install@,$install,;t t
17083 s,@lang_opt_files@,$lang_opt_files,;t t
17084 s,@lang_specs_files@,$lang_specs_files,;t t
17085 s,@lang_tree_files@,$lang_tree_files,;t t
17086 s,@local_prefix@,$local_prefix,;t t
17087 s,@md_file@,$md_file,;t t
17088 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17089 s,@out_file@,$out_file,;t t
17090 s,@out_object_file@,$out_object_file,;t t
17091 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17092 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17093 s,@thread_file@,$thread_file,;t t
17094 s,@tm_file_list@,$tm_file_list,;t t
17095 s,@tm_include_list@,$tm_include_list,;t t
17096 s,@tm_defines@,$tm_defines,;t t
17097 s,@tm_p_file_list@,$tm_p_file_list,;t t
17098 s,@tm_p_include_list@,$tm_p_include_list,;t t
17099 s,@xm_file_list@,$xm_file_list,;t t
17100 s,@xm_include_list@,$xm_include_list,;t t
17101 s,@xm_defines@,$xm_defines,;t t
17102 s,@c_target_objs@,$c_target_objs,;t t
17103 s,@cxx_target_objs@,$cxx_target_objs,;t t
17104 s,@target_cpu_default@,$target_cpu_default,;t t
17105 s,@GMPLIBS@,$GMPLIBS,;t t
17106 s,@GMPINC@,$GMPINC,;t t
17107 s,@LIBOBJS@,$LIBOBJS,;t t
17108 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17109 /@language_hooks@/r $language_hooks
17110 s,@language_hooks@,,;t t
17111 CEOF
17112
17113 _ACEOF
17114
17115   cat >>$CONFIG_STATUS <<\_ACEOF
17116   # Split the substitutions into bite-sized pieces for seds with
17117   # small command number limits, like on Digital OSF/1 and HP-UX.
17118   ac_max_sed_lines=48
17119   ac_sed_frag=1 # Number of current file.
17120   ac_beg=1 # First line for current file.
17121   ac_end=$ac_max_sed_lines # Line after last line for current file.
17122   ac_more_lines=:
17123   ac_sed_cmds=
17124   while $ac_more_lines; do
17125     if test $ac_beg -gt 1; then
17126       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17127     else
17128       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17129     fi
17130     if test ! -s $tmp/subs.frag; then
17131       ac_more_lines=false
17132     else
17133       # The purpose of the label and of the branching condition is to
17134       # speed up the sed processing (if there are no `@' at all, there
17135       # is no need to browse any of the substitutions).
17136       # These are the two extra sed commands mentioned above.
17137       (echo ':t
17138   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17139       if test -z "$ac_sed_cmds"; then
17140         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17141       else
17142         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17143       fi
17144       ac_sed_frag=`expr $ac_sed_frag + 1`
17145       ac_beg=$ac_end
17146       ac_end=`expr $ac_end + $ac_max_sed_lines`
17147     fi
17148   done
17149   if test -z "$ac_sed_cmds"; then
17150     ac_sed_cmds=cat
17151   fi
17152 fi # test -n "$CONFIG_FILES"
17153
17154 _ACEOF
17155 cat >>$CONFIG_STATUS <<\_ACEOF
17156 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17157   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17158   case $ac_file in
17159   - | *:- | *:-:* ) # input from stdin
17160         cat >$tmp/stdin
17161         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17162         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17163   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17164         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17165   * )   ac_file_in=$ac_file.in ;;
17166   esac
17167
17168   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17169   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17171          X"$ac_file" : 'X\(//\)[^/]' \| \
17172          X"$ac_file" : 'X\(//\)$' \| \
17173          X"$ac_file" : 'X\(/\)' \| \
17174          .     : '\(.\)' 2>/dev/null ||
17175 echo X"$ac_file" |
17176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17177           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17178           /^X\(\/\/\)$/{ s//\1/; q; }
17179           /^X\(\/\).*/{ s//\1/; q; }
17180           s/.*/./; q'`
17181   { if $as_mkdir_p; then
17182     mkdir -p "$ac_dir"
17183   else
17184     as_dir="$ac_dir"
17185     as_dirs=
17186     while test ! -d "$as_dir"; do
17187       as_dirs="$as_dir $as_dirs"
17188       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17190          X"$as_dir" : 'X\(//\)[^/]' \| \
17191          X"$as_dir" : 'X\(//\)$' \| \
17192          X"$as_dir" : 'X\(/\)' \| \
17193          .     : '\(.\)' 2>/dev/null ||
17194 echo X"$as_dir" |
17195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17196           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17197           /^X\(\/\/\)$/{ s//\1/; q; }
17198           /^X\(\/\).*/{ s//\1/; q; }
17199           s/.*/./; q'`
17200     done
17201     test ! -n "$as_dirs" || mkdir $as_dirs
17202   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17203 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17204    { (exit 1); exit 1; }; }; }
17205
17206   ac_builddir=.
17207
17208 if test "$ac_dir" != .; then
17209   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17210   # A "../" for each directory in $ac_dir_suffix.
17211   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17212 else
17213   ac_dir_suffix= ac_top_builddir=
17214 fi
17215
17216 case $srcdir in
17217   .)  # No --srcdir option.  We are building in place.
17218     ac_srcdir=.
17219     if test -z "$ac_top_builddir"; then
17220        ac_top_srcdir=.
17221     else
17222        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17223     fi ;;
17224   [\\/]* | ?:[\\/]* )  # Absolute path.
17225     ac_srcdir=$srcdir$ac_dir_suffix;
17226     ac_top_srcdir=$srcdir ;;
17227   *) # Relative path.
17228     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17229     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17230 esac
17231
17232 # Do not use `cd foo && pwd` to compute absolute paths, because
17233 # the directories may not exist.
17234 case `pwd` in
17235 .) ac_abs_builddir="$ac_dir";;
17236 *)
17237   case "$ac_dir" in
17238   .) ac_abs_builddir=`pwd`;;
17239   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17240   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17241   esac;;
17242 esac
17243 case $ac_abs_builddir in
17244 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17245 *)
17246   case ${ac_top_builddir}. in
17247   .) ac_abs_top_builddir=$ac_abs_builddir;;
17248   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17249   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17250   esac;;
17251 esac
17252 case $ac_abs_builddir in
17253 .) ac_abs_srcdir=$ac_srcdir;;
17254 *)
17255   case $ac_srcdir in
17256   .) ac_abs_srcdir=$ac_abs_builddir;;
17257   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17258   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17259   esac;;
17260 esac
17261 case $ac_abs_builddir in
17262 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17263 *)
17264   case $ac_top_srcdir in
17265   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17266   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17267   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17268   esac;;
17269 esac
17270
17271
17272
17273   if test x"$ac_file" != x-; then
17274     { echo "$as_me:$LINENO: creating $ac_file" >&5
17275 echo "$as_me: creating $ac_file" >&6;}
17276     rm -f "$ac_file"
17277   fi
17278   # Let's still pretend it is `configure' which instantiates (i.e., don't
17279   # use $as_me), people would be surprised to read:
17280   #    /* config.h.  Generated by config.status.  */
17281   if test x"$ac_file" = x-; then
17282     configure_input=
17283   else
17284     configure_input="$ac_file.  "
17285   fi
17286   configure_input=$configure_input"Generated from `echo $ac_file_in |
17287                                      sed 's,.*/,,'` by configure."
17288
17289   # First look for the input files in the build tree, otherwise in the
17290   # src tree.
17291   ac_file_inputs=`IFS=:
17292     for f in $ac_file_in; do
17293       case $f in
17294       -) echo $tmp/stdin ;;
17295       [\\/$]*)
17296          # Absolute (can't be DOS-style, as IFS=:)
17297          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17298 echo "$as_me: error: cannot find input file: $f" >&2;}
17299    { (exit 1); exit 1; }; }
17300          echo "$f";;
17301       *) # Relative
17302          if test -f "$f"; then
17303            # Build tree
17304            echo "$f"
17305          elif test -f "$srcdir/$f"; then
17306            # Source tree
17307            echo "$srcdir/$f"
17308          else
17309            # /dev/null tree
17310            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17311 echo "$as_me: error: cannot find input file: $f" >&2;}
17312    { (exit 1); exit 1; }; }
17313          fi;;
17314       esac
17315     done` || { (exit 1); exit 1; }
17316 _ACEOF
17317 cat >>$CONFIG_STATUS <<_ACEOF
17318   sed "$ac_vpsub
17319 $extrasub
17320 _ACEOF
17321 cat >>$CONFIG_STATUS <<\_ACEOF
17322 :t
17323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17324 s,@configure_input@,$configure_input,;t t
17325 s,@srcdir@,$ac_srcdir,;t t
17326 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17327 s,@top_srcdir@,$ac_top_srcdir,;t t
17328 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17329 s,@builddir@,$ac_builddir,;t t
17330 s,@abs_builddir@,$ac_abs_builddir,;t t
17331 s,@top_builddir@,$ac_top_builddir,;t t
17332 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17333 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17334   rm -f $tmp/stdin
17335   if test x"$ac_file" != x-; then
17336     mv $tmp/out $ac_file
17337   else
17338     cat $tmp/out
17339     rm -f $tmp/out
17340   fi
17341
17342 done
17343 _ACEOF
17344 cat >>$CONFIG_STATUS <<\_ACEOF
17345
17346 #
17347 # CONFIG_HEADER section.
17348 #
17349
17350 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17351 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17352 #
17353 # ac_d sets the value in "#define NAME VALUE" lines.
17354 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17355 ac_dB='[         ].*$,\1#\2'
17356 ac_dC=' '
17357 ac_dD=',;t'
17358 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17359 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17360 ac_uB='$,\1#\2define\3'
17361 ac_uC=' '
17362 ac_uD=',;t'
17363
17364 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17365   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17366   case $ac_file in
17367   - | *:- | *:-:* ) # input from stdin
17368         cat >$tmp/stdin
17369         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17370         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17371   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17372         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17373   * )   ac_file_in=$ac_file.in ;;
17374   esac
17375
17376   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17377 echo "$as_me: creating $ac_file" >&6;}
17378
17379   # First look for the input files in the build tree, otherwise in the
17380   # src tree.
17381   ac_file_inputs=`IFS=:
17382     for f in $ac_file_in; do
17383       case $f in
17384       -) echo $tmp/stdin ;;
17385       [\\/$]*)
17386          # Absolute (can't be DOS-style, as IFS=:)
17387          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17388 echo "$as_me: error: cannot find input file: $f" >&2;}
17389    { (exit 1); exit 1; }; }
17390          # Do quote $f, to prevent DOS paths from being IFS'd.
17391          echo "$f";;
17392       *) # Relative
17393          if test -f "$f"; then
17394            # Build tree
17395            echo "$f"
17396          elif test -f "$srcdir/$f"; then
17397            # Source tree
17398            echo "$srcdir/$f"
17399          else
17400            # /dev/null tree
17401            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17402 echo "$as_me: error: cannot find input file: $f" >&2;}
17403    { (exit 1); exit 1; }; }
17404          fi;;
17405       esac
17406     done` || { (exit 1); exit 1; }
17407   # Remove the trailing spaces.
17408   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17409
17410 _ACEOF
17411
17412 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17413 # `conftest.undefs', that substitutes the proper values into
17414 # config.h.in to produce config.h.  The first handles `#define'
17415 # templates, and the second `#undef' templates.
17416 # And first: Protect against being on the right side of a sed subst in
17417 # config.status.  Protect against being in an unquoted here document
17418 # in config.status.
17419 rm -f conftest.defines conftest.undefs
17420 # Using a here document instead of a string reduces the quoting nightmare.
17421 # Putting comments in sed scripts is not portable.
17422 #
17423 # `end' is used to avoid that the second main sed command (meant for
17424 # 0-ary CPP macros) applies to n-ary macro definitions.
17425 # See the Autoconf documentation for `clear'.
17426 cat >confdef2sed.sed <<\_ACEOF
17427 s/[\\&,]/\\&/g
17428 s,[\\$`],\\&,g
17429 t clear
17430 : clear
17431 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17432 t end
17433 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17434 : end
17435 _ACEOF
17436 # If some macros were called several times there might be several times
17437 # the same #defines, which is useless.  Nevertheless, we may not want to
17438 # sort them, since we want the *last* AC-DEFINE to be honored.
17439 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17440 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17441 rm -f confdef2sed.sed
17442
17443 # This sed command replaces #undef with comments.  This is necessary, for
17444 # example, in the case of _POSIX_SOURCE, which is predefined and required
17445 # on some systems where configure will not decide to define it.
17446 cat >>conftest.undefs <<\_ACEOF
17447 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17448 _ACEOF
17449
17450 # Break up conftest.defines because some shells have a limit on the size
17451 # of here documents, and old seds have small limits too (100 cmds).
17452 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17453 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17454 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17455 echo '  :' >>$CONFIG_STATUS
17456 rm -f conftest.tail
17457 while grep . conftest.defines >/dev/null
17458 do
17459   # Write a limited-size here document to $tmp/defines.sed.
17460   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17461   # Speed up: don't consider the non `#define' lines.
17462   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17463   # Work around the forget-to-reset-the-flag bug.
17464   echo 't clr' >>$CONFIG_STATUS
17465   echo ': clr' >>$CONFIG_STATUS
17466   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17467   echo 'CEOF
17468   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17469   rm -f $tmp/in
17470   mv $tmp/out $tmp/in
17471 ' >>$CONFIG_STATUS
17472   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17473   rm -f conftest.defines
17474   mv conftest.tail conftest.defines
17475 done
17476 rm -f conftest.defines
17477 echo '  fi # grep' >>$CONFIG_STATUS
17478 echo >>$CONFIG_STATUS
17479
17480 # Break up conftest.undefs because some shells have a limit on the size
17481 # of here documents, and old seds have small limits too (100 cmds).
17482 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17483 rm -f conftest.tail
17484 while grep . conftest.undefs >/dev/null
17485 do
17486   # Write a limited-size here document to $tmp/undefs.sed.
17487   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17488   # Speed up: don't consider the non `#undef'
17489   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17490   # Work around the forget-to-reset-the-flag bug.
17491   echo 't clr' >>$CONFIG_STATUS
17492   echo ': clr' >>$CONFIG_STATUS
17493   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17494   echo 'CEOF
17495   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17496   rm -f $tmp/in
17497   mv $tmp/out $tmp/in
17498 ' >>$CONFIG_STATUS
17499   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17500   rm -f conftest.undefs
17501   mv conftest.tail conftest.undefs
17502 done
17503 rm -f conftest.undefs
17504
17505 cat >>$CONFIG_STATUS <<\_ACEOF
17506   # Let's still pretend it is `configure' which instantiates (i.e., don't
17507   # use $as_me), people would be surprised to read:
17508   #    /* config.h.  Generated by config.status.  */
17509   if test x"$ac_file" = x-; then
17510     echo "/* Generated by configure.  */" >$tmp/config.h
17511   else
17512     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17513   fi
17514   cat $tmp/in >>$tmp/config.h
17515   rm -f $tmp/in
17516   if test x"$ac_file" != x-; then
17517     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17518       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17519 echo "$as_me: $ac_file is unchanged" >&6;}
17520     else
17521       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17523          X"$ac_file" : 'X\(//\)[^/]' \| \
17524          X"$ac_file" : 'X\(//\)$' \| \
17525          X"$ac_file" : 'X\(/\)' \| \
17526          .     : '\(.\)' 2>/dev/null ||
17527 echo X"$ac_file" |
17528     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17529           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17530           /^X\(\/\/\)$/{ s//\1/; q; }
17531           /^X\(\/\).*/{ s//\1/; q; }
17532           s/.*/./; q'`
17533       { if $as_mkdir_p; then
17534     mkdir -p "$ac_dir"
17535   else
17536     as_dir="$ac_dir"
17537     as_dirs=
17538     while test ! -d "$as_dir"; do
17539       as_dirs="$as_dir $as_dirs"
17540       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17542          X"$as_dir" : 'X\(//\)[^/]' \| \
17543          X"$as_dir" : 'X\(//\)$' \| \
17544          X"$as_dir" : 'X\(/\)' \| \
17545          .     : '\(.\)' 2>/dev/null ||
17546 echo X"$as_dir" |
17547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17548           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17549           /^X\(\/\/\)$/{ s//\1/; q; }
17550           /^X\(\/\).*/{ s//\1/; q; }
17551           s/.*/./; q'`
17552     done
17553     test ! -n "$as_dirs" || mkdir $as_dirs
17554   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17555 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17556    { (exit 1); exit 1; }; }; }
17557
17558       rm -f $ac_file
17559       mv $tmp/config.h $ac_file
17560     fi
17561   else
17562     cat $tmp/config.h
17563     rm -f $tmp/config.h
17564   fi
17565 done
17566 _ACEOF
17567 cat >>$CONFIG_STATUS <<\_ACEOF
17568
17569 #
17570 # CONFIG_COMMANDS section.
17571 #
17572 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17573   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17574   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17575   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17576 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17577          X"$ac_dest" : 'X\(//\)[^/]' \| \
17578          X"$ac_dest" : 'X\(//\)$' \| \
17579          X"$ac_dest" : 'X\(/\)' \| \
17580          .     : '\(.\)' 2>/dev/null ||
17581 echo X"$ac_dest" |
17582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17583           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17584           /^X\(\/\/\)$/{ s//\1/; q; }
17585           /^X\(\/\).*/{ s//\1/; q; }
17586           s/.*/./; q'`
17587   { if $as_mkdir_p; then
17588     mkdir -p "$ac_dir"
17589   else
17590     as_dir="$ac_dir"
17591     as_dirs=
17592     while test ! -d "$as_dir"; do
17593       as_dirs="$as_dir $as_dirs"
17594       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17596          X"$as_dir" : 'X\(//\)[^/]' \| \
17597          X"$as_dir" : 'X\(//\)$' \| \
17598          X"$as_dir" : 'X\(/\)' \| \
17599          .     : '\(.\)' 2>/dev/null ||
17600 echo X"$as_dir" |
17601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17602           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17603           /^X\(\/\/\)$/{ s//\1/; q; }
17604           /^X\(\/\).*/{ s//\1/; q; }
17605           s/.*/./; q'`
17606     done
17607     test ! -n "$as_dirs" || mkdir $as_dirs
17608   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17610    { (exit 1); exit 1; }; }; }
17611
17612   ac_builddir=.
17613
17614 if test "$ac_dir" != .; then
17615   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17616   # A "../" for each directory in $ac_dir_suffix.
17617   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17618 else
17619   ac_dir_suffix= ac_top_builddir=
17620 fi
17621
17622 case $srcdir in
17623   .)  # No --srcdir option.  We are building in place.
17624     ac_srcdir=.
17625     if test -z "$ac_top_builddir"; then
17626        ac_top_srcdir=.
17627     else
17628        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17629     fi ;;
17630   [\\/]* | ?:[\\/]* )  # Absolute path.
17631     ac_srcdir=$srcdir$ac_dir_suffix;
17632     ac_top_srcdir=$srcdir ;;
17633   *) # Relative path.
17634     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17635     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17636 esac
17637
17638 # Do not use `cd foo && pwd` to compute absolute paths, because
17639 # the directories may not exist.
17640 case `pwd` in
17641 .) ac_abs_builddir="$ac_dir";;
17642 *)
17643   case "$ac_dir" in
17644   .) ac_abs_builddir=`pwd`;;
17645   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17646   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17647   esac;;
17648 esac
17649 case $ac_abs_builddir in
17650 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17651 *)
17652   case ${ac_top_builddir}. in
17653   .) ac_abs_top_builddir=$ac_abs_builddir;;
17654   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17655   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17656   esac;;
17657 esac
17658 case $ac_abs_builddir in
17659 .) ac_abs_srcdir=$ac_srcdir;;
17660 *)
17661   case $ac_srcdir in
17662   .) ac_abs_srcdir=$ac_abs_builddir;;
17663   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17664   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17665   esac;;
17666 esac
17667 case $ac_abs_builddir in
17668 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17669 *)
17670   case $ac_top_srcdir in
17671   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17672   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17673   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17674   esac;;
17675 esac
17676
17677
17678   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17679 echo "$as_me: executing $ac_dest commands" >&6;}
17680   case $ac_dest in
17681     default )
17682 case ${CONFIG_HEADERS} in
17683   *auto-host.h:config.in*)
17684   echo > cstamp-h ;;
17685 esac
17686 # Make sure all the subdirs exist.
17687 for d in $subdirs doc build
17688 do
17689     test -d $d || mkdir $d
17690 done
17691 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17692 # bootstrapping and the installation procedure can still use
17693 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
17694 # FLAGS_TO_PASS has been modified to solve the problem there.
17695 # This is virtually a duplicate of what happens in configure.lang; we do
17696 # an extra check to make sure this only happens if ln -s can be used.
17697 case "$LN_S" in
17698   *-s*)
17699     for d in ${subdirs} ; do
17700         STARTDIR=`${PWDCMD-pwd}`
17701         cd $d
17702         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17703         do
17704                 rm -f $t
17705                 $LN_S ../$t $t 2>/dev/null
17706         done
17707         cd $STARTDIR
17708     done
17709   ;;
17710 esac
17711  ;;
17712   esac
17713 done
17714 _ACEOF
17715
17716 cat >>$CONFIG_STATUS <<\_ACEOF
17717
17718 { (exit 0); exit 0; }
17719 _ACEOF
17720 chmod +x $CONFIG_STATUS
17721 ac_clean_files=$ac_clean_files_save
17722
17723
17724 # configure is writing to config.log, and then calls config.status.
17725 # config.status does its own redirection, appending to config.log.
17726 # Unfortunately, on DOS this fails, as config.log is still kept open
17727 # by configure, so config.status won't be able to write to it; its
17728 # output is simply discarded.  So we exec the FD to /dev/null,
17729 # effectively closing config.log, so it can be properly (re)opened and
17730 # appended to by config.status.  When coming back to configure, we
17731 # need to make the FD available again.
17732 if test "$no_create" != yes; then
17733   ac_cs_success=:
17734   ac_config_status_args=
17735   test "$silent" = yes &&
17736     ac_config_status_args="$ac_config_status_args --quiet"
17737   exec 5>/dev/null
17738   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17739   exec 5>>config.log
17740   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17741   # would make configure fail if this is the last instruction.
17742   $ac_cs_success || { (exit 1); exit 1; }
17743 fi
17744