OSDN Git Service

54fac9706c9f0d94171547fab1d8b1a7339fa62e
[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 build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO 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_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 gcc_version gcc_version_full gcc_version_trigger 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 symbolic_link 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 target_noncanonical c_target_objs cxx_target_objs target_cpu_default 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
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842   --target=TARGET   configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848   cat <<\_ACEOF
849
850 Optional Features:
851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853   --enable-generated-files-in-srcdir
854                           put copies of generated files in source dir
855                           intended for creating source tarballs for users
856                           without texinfo bison or flex.
857   --enable-werror         enable -Werror in bootstrap stage2 and later
858   --enable-checking=LIST
859                           enable expensive run-time checks.  With LIST,
860                           enable only specific categories of checks.
861                           Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
862                           default is misc,tree,gc,rtlflag
863   --enable-coverage=LEVEL
864                           enable compiler\'s code coverage collection.
865                           Use to measure compiler performance and locate
866                           unused parts of the compiler. With LEVEL, specify
867                           optimization. Values are opt, noopt,
868                           default is noopt
869   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
870   --enable-multilib       enable library support for multiple ABIs
871   --enable-__cxa_atexit   enable __cxa_atexit for C++
872   --enable-threads        enable thread usage for target GCC
873   --enable-threads=LIB    use LIB thread package for target GCC
874   --enable-objc-gc        enable the use of Boehm's garbage collector with
875                           the GNU Objective-C runtime
876   --disable-shared        don't provide a shared libgcc
877   --enable-intermodule    build the compiler in one step
878   --enable-languages=LIST specify which front-ends to build
879   --enable-initfini-array       use .init_array/.fini_array sections
880   --enable-sjlj-exceptions
881                           arrange to use setjmp/longjmp exception handling
882   --enable-libunwind-exceptions  force use libunwind for exceptions
883   --disable-win32-registry
884                           disable lookup of installation paths in the
885                           Registry on Windows hosts
886   --enable-win32-registry enable registry lookup (default)
887   --enable-win32-registry=KEY
888                           use KEY instead of GCC version as the last portion
889                           of the registry key
890   --enable-maintainer-mode
891                           enable make rules and dependencies not useful
892                           (and sometimes confusing) to the casual installer
893   --enable-version-specific-runtime-libs
894                           specify that runtime libraries should be
895                           installed in a compiler-specific directory
896
897 Optional Packages:
898   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
899   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
900   --with-local-prefix=DIR specifies directory to put local include
901   --with-gxx-include-dir=DIR
902                           specifies directory to put g++ header files
903   --with-cpp-install-dir=DIR
904                           install the user visible C preprocessor in DIR
905                           (relative to PREFIX) as well as PREFIX/bin
906   --with-gnu-ld           arrange to work with GNU ld.
907   --with-ld               arrange to use the specified ld (full pathname)
908   --with-gnu-as           arrange to work with GNU as
909   --with-as               arrange to use the specified as (full pathname)
910   --with-stabs            arrange to use stabs instead of host debug format
911   --with-dwarf2           force the default debug format to be DWARF 2
912   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
913   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
914   --with-gc={page,zone}   choose the garbage collection mechanism to use
915                           with the compiler
916   --with-system-zlib      use installed libz
917   --with-slibdir=DIR      shared libraries in DIR LIBDIR
918
919 Some influential environment variables:
920   CC          C compiler command
921   CFLAGS      C compiler flags
922   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
923               nonstandard directory <lib dir>
924   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
925               headers in a nonstandard directory <include dir>
926   CPP         C preprocessor
927
928 Use these variables to override the choices made by `configure' or to help
929 it to find libraries and programs with nonstandard names/locations.
930
931 _ACEOF
932 fi
933
934 if test "$ac_init_help" = "recursive"; then
935   # If there are subdirs, report their specific --help.
936   ac_popdir=`pwd`
937   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
938     test -d $ac_dir || continue
939     ac_builddir=.
940
941 if test "$ac_dir" != .; then
942   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
943   # A "../" for each directory in $ac_dir_suffix.
944   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 else
946   ac_dir_suffix= ac_top_builddir=
947 fi
948
949 case $srcdir in
950   .)  # No --srcdir option.  We are building in place.
951     ac_srcdir=.
952     if test -z "$ac_top_builddir"; then
953        ac_top_srcdir=.
954     else
955        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956     fi ;;
957   [\\/]* | ?:[\\/]* )  # Absolute path.
958     ac_srcdir=$srcdir$ac_dir_suffix;
959     ac_top_srcdir=$srcdir ;;
960   *) # Relative path.
961     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
962     ac_top_srcdir=$ac_top_builddir$srcdir ;;
963 esac
964
965 # Do not use `cd foo && pwd` to compute absolute paths, because
966 # the directories may not exist.
967 case `pwd` in
968 .) ac_abs_builddir="$ac_dir";;
969 *)
970   case "$ac_dir" in
971   .) ac_abs_builddir=`pwd`;;
972   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
973   *) ac_abs_builddir=`pwd`/"$ac_dir";;
974   esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
978 *)
979   case ${ac_top_builddir}. in
980   .) ac_abs_top_builddir=$ac_abs_builddir;;
981   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
982   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
983   esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_srcdir=$ac_srcdir;;
987 *)
988   case $ac_srcdir in
989   .) ac_abs_srcdir=$ac_abs_builddir;;
990   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
991   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
992   esac;;
993 esac
994 case $ac_abs_builddir in
995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
996 *)
997   case $ac_top_srcdir in
998   .) ac_abs_top_srcdir=$ac_abs_builddir;;
999   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1000   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1001   esac;;
1002 esac
1003
1004     cd $ac_dir
1005     # Check for guested configure; otherwise get Cygnus style configure.
1006     if test -f $ac_srcdir/configure.gnu; then
1007       echo
1008       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1009     elif test -f $ac_srcdir/configure; then
1010       echo
1011       $SHELL $ac_srcdir/configure  --help=recursive
1012     elif test -f $ac_srcdir/configure.ac ||
1013            test -f $ac_srcdir/configure.in; then
1014       echo
1015       $ac_configure --help
1016     else
1017       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1018     fi
1019     cd "$ac_popdir"
1020   done
1021 fi
1022
1023 test -n "$ac_init_help" && exit 0
1024 if $ac_init_version; then
1025   cat <<\_ACEOF
1026
1027 Copyright (C) 2003 Free Software Foundation, Inc.
1028 This configure script is free software; the Free Software Foundation
1029 gives unlimited permission to copy, distribute and modify it.
1030 _ACEOF
1031   exit 0
1032 fi
1033 exec 5>config.log
1034 cat >&5 <<_ACEOF
1035 This file contains any messages produced by compilers while
1036 running configure, to aid debugging if configure makes a mistake.
1037
1038 It was created by $as_me, which was
1039 generated by GNU Autoconf 2.59.  Invocation command line was
1040
1041   $ $0 $@
1042
1043 _ACEOF
1044 {
1045 cat <<_ASUNAME
1046 ## --------- ##
1047 ## Platform. ##
1048 ## --------- ##
1049
1050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1055
1056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1057 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1058
1059 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1060 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1062 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1063 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1064 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1065 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1066
1067 _ASUNAME
1068
1069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1070 for as_dir in $PATH
1071 do
1072   IFS=$as_save_IFS
1073   test -z "$as_dir" && as_dir=.
1074   echo "PATH: $as_dir"
1075 done
1076
1077 } >&5
1078
1079 cat >&5 <<_ACEOF
1080
1081
1082 ## ----------- ##
1083 ## Core tests. ##
1084 ## ----------- ##
1085
1086 _ACEOF
1087
1088
1089 # Keep a trace of the command line.
1090 # Strip out --no-create and --no-recursion so they do not pile up.
1091 # Strip out --silent because we don't want to record it for future runs.
1092 # Also quote any args containing shell meta-characters.
1093 # Make two passes to allow for proper duplicate-argument suppression.
1094 ac_configure_args=
1095 ac_configure_args0=
1096 ac_configure_args1=
1097 ac_sep=
1098 ac_must_keep_next=false
1099 for ac_pass in 1 2
1100 do
1101   for ac_arg
1102   do
1103     case $ac_arg in
1104     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1105     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106     | -silent | --silent | --silen | --sile | --sil)
1107       continue ;;
1108     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1109       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1110     esac
1111     case $ac_pass in
1112     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1113     2)
1114       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1115       if test $ac_must_keep_next = true; then
1116         ac_must_keep_next=false # Got value, back to normal.
1117       else
1118         case $ac_arg in
1119           *=* | --config-cache | -C | -disable-* | --disable-* \
1120           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1121           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1122           | -with-* | --with-* | -without-* | --without-* | --x)
1123             case "$ac_configure_args0 " in
1124               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1125             esac
1126             ;;
1127           -* ) ac_must_keep_next=true ;;
1128         esac
1129       fi
1130       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1131       # Get rid of the leading space.
1132       ac_sep=" "
1133       ;;
1134     esac
1135   done
1136 done
1137 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1138 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1139
1140 # When interrupted or exit'd, cleanup temporary files, and complete
1141 # config.log.  We remove comments because anyway the quotes in there
1142 # would cause problems or look ugly.
1143 # WARNING: Be sure not to use single quotes in there, as some shells,
1144 # such as our DU 5.0 friend, will then `close' the trap.
1145 trap 'exit_status=$?
1146   # Save into config.log some information that might help in debugging.
1147   {
1148     echo
1149
1150     cat <<\_ASBOX
1151 ## ---------------- ##
1152 ## Cache variables. ##
1153 ## ---------------- ##
1154 _ASBOX
1155     echo
1156     # The following way of writing the cache mishandles newlines in values,
1157 {
1158   (set) 2>&1 |
1159     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1160     *ac_space=\ *)
1161       sed -n \
1162         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1164       ;;
1165     *)
1166       sed -n \
1167         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1168       ;;
1169     esac;
1170 }
1171     echo
1172
1173     cat <<\_ASBOX
1174 ## ----------------- ##
1175 ## Output variables. ##
1176 ## ----------------- ##
1177 _ASBOX
1178     echo
1179     for ac_var in $ac_subst_vars
1180     do
1181       eval ac_val=$`echo $ac_var`
1182       echo "$ac_var='"'"'$ac_val'"'"'"
1183     done | sort
1184     echo
1185
1186     if test -n "$ac_subst_files"; then
1187       cat <<\_ASBOX
1188 ## ------------- ##
1189 ## Output files. ##
1190 ## ------------- ##
1191 _ASBOX
1192       echo
1193       for ac_var in $ac_subst_files
1194       do
1195         eval ac_val=$`echo $ac_var`
1196         echo "$ac_var='"'"'$ac_val'"'"'"
1197       done | sort
1198       echo
1199     fi
1200
1201     if test -s confdefs.h; then
1202       cat <<\_ASBOX
1203 ## ----------- ##
1204 ## confdefs.h. ##
1205 ## ----------- ##
1206 _ASBOX
1207       echo
1208       sed "/^$/d" confdefs.h | sort
1209       echo
1210     fi
1211     test "$ac_signal" != 0 &&
1212       echo "$as_me: caught signal $ac_signal"
1213     echo "$as_me: exit $exit_status"
1214   } >&5
1215   rm -f core *.core &&
1216   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1217     exit $exit_status
1218      ' 0
1219 for ac_signal in 1 2 13 15; do
1220   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1221 done
1222 ac_signal=0
1223
1224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1225 rm -rf conftest* confdefs.h
1226 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1227 echo >confdefs.h
1228
1229 # Predefined preprocessor variables.
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_NAME "$PACKAGE_NAME"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1238 _ACEOF
1239
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1243 _ACEOF
1244
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_STRING "$PACKAGE_STRING"
1248 _ACEOF
1249
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1253 _ACEOF
1254
1255
1256 # Let the site file select an alternate cache file if it wants to.
1257 # Prefer explicitly selected file to automatically selected ones.
1258 if test -z "$CONFIG_SITE"; then
1259   if test "x$prefix" != xNONE; then
1260     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1261   else
1262     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1263   fi
1264 fi
1265 for ac_site_file in $CONFIG_SITE; do
1266   if test -r "$ac_site_file"; then
1267     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1268 echo "$as_me: loading site script $ac_site_file" >&6;}
1269     sed 's/^/| /' "$ac_site_file" >&5
1270     . "$ac_site_file"
1271   fi
1272 done
1273
1274 if test -r "$cache_file"; then
1275   # Some versions of bash will fail to source /dev/null (special
1276   # files actually), so we avoid doing that.
1277   if test -f "$cache_file"; then
1278     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1279 echo "$as_me: loading cache $cache_file" >&6;}
1280     case $cache_file in
1281       [\\/]* | ?:[\\/]* ) . $cache_file;;
1282       *)                      . ./$cache_file;;
1283     esac
1284   fi
1285 else
1286   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1287 echo "$as_me: creating cache $cache_file" >&6;}
1288   >$cache_file
1289 fi
1290
1291 # Check that the precious variables saved in the cache have kept the same
1292 # value.
1293 ac_cache_corrupted=false
1294 for ac_var in `(set) 2>&1 |
1295                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1296   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1297   eval ac_new_set=\$ac_env_${ac_var}_set
1298   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1299   eval ac_new_val="\$ac_env_${ac_var}_value"
1300   case $ac_old_set,$ac_new_set in
1301     set,)
1302       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1303 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1304       ac_cache_corrupted=: ;;
1305     ,set)
1306       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1307 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1308       ac_cache_corrupted=: ;;
1309     ,);;
1310     *)
1311       if test "x$ac_old_val" != "x$ac_new_val"; then
1312         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1313 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1314         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1315 echo "$as_me:   former value:  $ac_old_val" >&2;}
1316         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1317 echo "$as_me:   current value: $ac_new_val" >&2;}
1318         ac_cache_corrupted=:
1319       fi;;
1320   esac
1321   # Pass precious variables to config.status.
1322   if test "$ac_new_set" = set; then
1323     case $ac_new_val in
1324     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1326     *) ac_arg=$ac_var=$ac_new_val ;;
1327     esac
1328     case " $ac_configure_args " in
1329       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1330       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1331     esac
1332   fi
1333 done
1334 if $ac_cache_corrupted; then
1335   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1336 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1337   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1338 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1339    { (exit 1); exit 1; }; }
1340 fi
1341
1342 ac_ext=c
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1368
1369
1370 # Determine the host, build, and target systems
1371 ac_aux_dir=
1372 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373   if test -f $ac_dir/install-sh; then
1374     ac_aux_dir=$ac_dir
1375     ac_install_sh="$ac_aux_dir/install-sh -c"
1376     break
1377   elif test -f $ac_dir/install.sh; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/install.sh -c"
1380     break
1381   elif test -f $ac_dir/shtool; then
1382     ac_aux_dir=$ac_dir
1383     ac_install_sh="$ac_aux_dir/shtool install -c"
1384     break
1385   fi
1386 done
1387 if test -z "$ac_aux_dir"; then
1388   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390    { (exit 1); exit 1; }; }
1391 fi
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400    { (exit 1); exit 1; }; }
1401
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405   echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407   ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409   ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413    { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417    { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1422 build=$ac_cv_build
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431   echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433   ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435   ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1444 host=$ac_cv_host
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453   echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455   ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457   ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461    { (exit 1); exit 1; }; }
1462
1463 fi
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475   test "$program_prefix$program_suffix$program_transform_name" = \
1476     NONENONEs,x,x, &&
1477   program_prefix=${target_alias}-
1478
1479 # Determine the noncanonical target name, for directory use.
1480  case ${build_alias} in
1481   "") build_noncanonical=${build} ;;
1482   *) build_noncanonical=${build_alias} ;;
1483 esac
1484
1485  case ${host_alias} in
1486   "") host_noncanonical=${build_noncanonical} ;;
1487   *) host_noncanonical=${host_alias} ;;
1488 esac
1489
1490  case ${target_alias} in
1491   "") target_noncanonical=${host_noncanonical} ;;
1492   *) target_noncanonical=${target_alias} ;;
1493 esac
1494
1495
1496 # Determine the target- and build-specific subdirectories
1497   # Prefix 'build-' so this never conflicts with target_subdir.
1498 build_subdir="build-${build_noncanonical}"
1499 # Not really a subdirectory, but here for completeness.
1500 host_subdir=.
1501 # No prefix.
1502 target_subdir=${target_noncanonical}
1503
1504
1505 # Set program_transform_name
1506 test "$program_prefix" != NONE &&
1507   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1508 # Use a double $ so make ignores it.
1509 test "$program_suffix" != NONE &&
1510   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1511 # Double any \ or $.  echo might interpret backslashes.
1512 # By default was `s,x,x', remove it if useless.
1513 cat <<\_ACEOF >conftest.sed
1514 s/[\\$]/&&/g;s/;s,x,x,$//
1515 _ACEOF
1516 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1517 rm conftest.sed
1518
1519
1520 # Check for bogus environment variables.
1521 # Test if LIBRARY_PATH contains the notation for the current directory
1522 # since this would lead to problems installing/building glibc.
1523 # LIBRARY_PATH contains the current directory if one of the following
1524 # is true:
1525 # - one of the terminals (":" and ";") is the first or last sign
1526 # - two terminals occur directly after each other
1527 # - the path contains an element with a dot in it
1528 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1529 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1530 case ${LIBRARY_PATH} in
1531   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1532     library_path_setting="contains current directory"
1533     ;;
1534   *)
1535     library_path_setting="ok"
1536     ;;
1537 esac
1538 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1539 echo "${ECHO_T}$library_path_setting" >&6
1540 if test "$library_path_setting" != "ok"; then
1541 { { echo "$as_me:$LINENO: error:
1542 *** LIBRARY_PATH shouldn't contain the current directory when
1543 *** building gcc. Please change the environment variable
1544 *** and run configure again." >&5
1545 echo "$as_me: error:
1546 *** LIBRARY_PATH shouldn't contain the current directory when
1547 *** building gcc. Please change the environment variable
1548 *** and run configure again." >&2;}
1549    { (exit 1); exit 1; }; }
1550 fi
1551
1552 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1553 # since this would lead to problems installing/building glibc.
1554 # GCC_EXEC_PREFIX contains the current directory if one of the following
1555 # is true:
1556 # - one of the terminals (":" and ";") is the first or last sign
1557 # - two terminals occur directly after each other
1558 # - the path contains an element with a dot in it
1559 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1560 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1561 case ${GCC_EXEC_PREFIX} in
1562   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1563     gcc_exec_prefix_setting="contains current directory"
1564     ;;
1565   *)
1566     gcc_exec_prefix_setting="ok"
1567     ;;
1568 esac
1569 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1570 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1571 if test "$gcc_exec_prefix_setting" != "ok"; then
1572 { { echo "$as_me:$LINENO: error:
1573 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1574 *** building gcc. Please change the environment variable
1575 *** and run configure again." >&5
1576 echo "$as_me: error:
1577 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1578 *** building gcc. Please change the environment variable
1579 *** and run configure again." >&2;}
1580    { (exit 1); exit 1; }; }
1581 fi
1582
1583 # -----------
1584 # Directories
1585 # -----------
1586
1587 # Specify the local prefix
1588 local_prefix=
1589
1590 # Check whether --with-local-prefix or --without-local-prefix was given.
1591 if test "${with_local_prefix+set}" = set; then
1592   withval="$with_local_prefix"
1593   case "${withval}" in
1594 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1595 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1596    { (exit 1); exit 1; }; } ;;
1597 no)     ;;
1598 *)      local_prefix=$with_local_prefix ;;
1599 esac
1600 fi;
1601
1602 # Default local prefix if it is empty
1603 if test x$local_prefix = x; then
1604         local_prefix=/usr/local
1605 fi
1606
1607 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1608 # passed in by the toplevel make and thus we'd get different behavior
1609 # depending on where we built the sources.
1610 gcc_gxx_include_dir=
1611 # Specify the g++ header file directory
1612
1613 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1614 if test "${with_gxx_include_dir+set}" = set; then
1615   withval="$with_gxx_include_dir"
1616   case "${withval}" in
1617 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1618 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1619    { (exit 1); exit 1; }; } ;;
1620 no)     ;;
1621 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1622 esac
1623 fi;
1624
1625 if test x${gcc_gxx_include_dir} = x; then
1626   if test x${enable_version_specific_runtime_libs} = xyes; then
1627     gcc_gxx_include_dir='${libsubdir}/include/c++'
1628   else
1629     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1630     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1631   fi
1632 fi
1633
1634
1635 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1636 if test "${with_cpp_install_dir+set}" = set; then
1637   withval="$with_cpp_install_dir"
1638   if test x$withval = xyes; then
1639   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1640 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1641    { (exit 1); exit 1; }; }
1642 elif test x$withval != xno; then
1643   cpp_install_dir=$withval
1644 fi
1645 fi;
1646
1647 # We would like to our source tree to be readonly.  However when releases or
1648 # pre-releases are generated, the flex/bison generated files as well as the
1649 # various formats of manuals need to be included along with the rest of the
1650 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1651 # just that.
1652
1653 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1654 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1655     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1656 if test "${enable_generated_files_in_srcdir+set}" = set; then
1657   enableval="$enable_generated_files_in_srcdir"
1658   generated_files_in_srcdir=$enableval
1659 else
1660   generated_files_in_srcdir=no
1661 fi;
1662
1663 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1664 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1665
1666 if test "$generated_files_in_srcdir" = "yes"; then
1667   GENINSRC=''
1668 else
1669   GENINSRC='#'
1670 fi
1671
1672
1673 # -------------------
1674 # Find default linker
1675 # -------------------
1676
1677 # With GNU ld
1678
1679 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1680 if test "${with_gnu_ld+set}" = set; then
1681   withval="$with_gnu_ld"
1682   gnu_ld_flag="$with_gnu_ld"
1683 else
1684   gnu_ld_flag=no
1685 fi;
1686
1687 # With pre-defined ld
1688
1689 # Check whether --with-ld or --without-ld was given.
1690 if test "${with_ld+set}" = set; then
1691   withval="$with_ld"
1692   DEFAULT_LINKER="$with_ld"
1693 fi;
1694 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1695   if test ! -x "$DEFAULT_LINKER"; then
1696     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1697 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1698   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1699     gnu_ld_flag=yes
1700   fi
1701
1702 cat >>confdefs.h <<_ACEOF
1703 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1704 _ACEOF
1705
1706 fi
1707
1708 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1709 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1710 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1711   if test x"$gnu_ld_flag" = x"no"; then
1712     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1713 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1714   else
1715     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1716 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1717   fi
1718 else
1719   echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 # ----------------------
1724 # Find default assembler
1725 # ----------------------
1726
1727 # With GNU as
1728
1729 # Check whether --with-gnu-as or --without-gnu-as was given.
1730 if test "${with_gnu_as+set}" = set; then
1731   withval="$with_gnu_as"
1732   gas_flag="$with_gnu_as"
1733 else
1734   gas_flag=no
1735 fi;
1736
1737
1738 # Check whether --with-as or --without-as was given.
1739 if test "${with_as+set}" = set; then
1740   withval="$with_as"
1741   DEFAULT_ASSEMBLER="$with_as"
1742 fi;
1743 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1744   if test ! -x "$DEFAULT_ASSEMBLER"; then
1745     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1746 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1747   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1748     gas_flag=yes
1749   fi
1750
1751 cat >>confdefs.h <<_ACEOF
1752 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1753 _ACEOF
1754
1755 fi
1756
1757 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1758 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1759 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1760   if test x"$gas_flag" = x"no"; then
1761     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1762 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1763   else
1764     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1765 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1766   fi
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772 # ---------------
1773 # Find C compiler
1774 # ---------------
1775
1776 # If a non-executable a.out is present (e.g. created by GNU as above even if
1777 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1778 # file, even when creating an executable, so an execution test fails.
1779 # Remove possible default executable files to avoid this.
1780 #
1781 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1782 # Autoconf includes it.
1783 rm -f a.out a.exe b.out
1784
1785 # Find the native compiler
1786 ac_ext=c
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791 if test -n "$ac_tool_prefix"; then
1792   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_CC+set}" = set; then
1797   echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799   if test -n "$CC"; then
1800   ac_cv_prog_CC="$CC" # Let the user override the test.
1801 else
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1804 do
1805   IFS=$as_save_IFS
1806   test -z "$as_dir" && as_dir=.
1807   for ac_exec_ext in '' $ac_executable_extensions; do
1808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811     break 2
1812   fi
1813 done
1814 done
1815
1816 fi
1817 fi
1818 CC=$ac_cv_prog_CC
1819 if test -n "$CC"; then
1820   echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1822 else
1823   echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 fi
1828 if test -z "$ac_cv_prog_CC"; then
1829   ac_ct_CC=$CC
1830   # Extract the first word of "gcc", so it can be a program name with args.
1831 set dummy gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1835   echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837   if test -n "$ac_ct_CC"; then
1838   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845   for ac_exec_ext in '' $ac_executable_extensions; do
1846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847     ac_cv_prog_ac_ct_CC="gcc"
1848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849     break 2
1850   fi
1851 done
1852 done
1853
1854 fi
1855 fi
1856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6
1860 else
1861   echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1863 fi
1864
1865   CC=$ac_ct_CC
1866 else
1867   CC="$ac_cv_prog_CC"
1868 fi
1869
1870 if test -z "$CC"; then
1871   if test -n "$ac_tool_prefix"; then
1872   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}cc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877   echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879   if test -n "$CC"; then
1880   ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   for ac_exec_ext in '' $ac_executable_extensions; do
1888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889     ac_cv_prog_CC="${ac_tool_prefix}cc"
1890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891     break 2
1892   fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900   echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1902 else
1903   echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907 fi
1908 if test -z "$ac_cv_prog_CC"; then
1909   ac_ct_CC=$CC
1910   # Extract the first word of "cc", so it can be a program name with args.
1911 set dummy cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   if test -n "$ac_ct_CC"; then
1918   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923   IFS=$as_save_IFS
1924   test -z "$as_dir" && as_dir=.
1925   for ac_exec_ext in '' $ac_executable_extensions; do
1926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927     ac_cv_prog_ac_ct_CC="cc"
1928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929     break 2
1930   fi
1931 done
1932 done
1933
1934 fi
1935 fi
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1940 else
1941   echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 fi
1944
1945   CC=$ac_ct_CC
1946 else
1947   CC="$ac_cv_prog_CC"
1948 fi
1949
1950 fi
1951 if test -z "$CC"; then
1952   # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   if test -n "$CC"; then
1960   ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962   ac_prog_rejected=no
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966   IFS=$as_save_IFS
1967   test -z "$as_dir" && as_dir=.
1968   for ac_exec_ext in '' $ac_executable_extensions; do
1969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1971        ac_prog_rejected=yes
1972        continue
1973      fi
1974     ac_cv_prog_CC="cc"
1975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980
1981 if test $ac_prog_rejected = yes; then
1982   # We found a bogon in the path, so make sure we never use it.
1983   set dummy $ac_cv_prog_CC
1984   shift
1985   if test $# != 0; then
1986     # We chose a different compiler from the bogus one.
1987     # However, it has the same basename, so the bogon will be chosen
1988     # first if we set CC to just the basename; use the full file name.
1989     shift
1990     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1991   fi
1992 fi
1993 fi
1994 fi
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997   echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
1999 else
2000   echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004 fi
2005 if test -z "$CC"; then
2006   if test -n "$ac_tool_prefix"; then
2007   for ac_prog in cl
2008   do
2009     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   if test -n "$CC"; then
2017   ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037   echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040   echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044     test -n "$CC" && break
2045   done
2046 fi
2047 if test -z "$CC"; then
2048   ac_ct_CC=$CC
2049   for ac_prog in cl
2050 do
2051   # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy $ac_prog; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$ac_ct_CC"; then
2059   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068     ac_cv_prog_ac_ct_CC="$ac_prog"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074
2075 fi
2076 fi
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2081 else
2082   echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086   test -n "$ac_ct_CC" && break
2087 done
2088
2089   CC=$ac_ct_CC
2090 fi
2091
2092 fi
2093
2094
2095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: no acceptable C compiler found in \$PATH
2098 See \`config.log' for more details." >&2;}
2099    { (exit 1); exit 1; }; }
2100
2101 # Provide some information about the compiler.
2102 echo "$as_me:$LINENO:" \
2103      "checking for C compiler version" >&5
2104 ac_compiler=`set X $ac_compile; echo $2`
2105 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2106   (eval $ac_compiler --version </dev/null >&5) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2111   (eval $ac_compiler -v </dev/null >&5) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2116   (eval $ac_compiler -V </dev/null >&5) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }
2120
2121 cat >conftest.$ac_ext <<_ACEOF
2122 /* confdefs.h.  */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h.  */
2127
2128 int
2129 main ()
2130 {
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2140 # of exeext.
2141 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2145   (eval $ac_link_default) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   # Find the output, starting from the most likely.  This scheme is
2150 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2151 # resort.
2152
2153 # Be careful to initialize this variable, since it used to be cached.
2154 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2155 ac_cv_exeext=
2156 # b.out is created by i960 compilers.
2157 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2158 do
2159   test -f "$ac_file" || continue
2160   case $ac_file in
2161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2162         ;;
2163     conftest.$ac_ext )
2164         # This is the source file.
2165         ;;
2166     [ab].out )
2167         # We found the default executable, but exeext='' is most
2168         # certainly right.
2169         break;;
2170     *.* )
2171         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172         # FIXME: I believe we export ac_cv_exeext for Libtool,
2173         # but it would be cool to find out if it's true.  Does anybody
2174         # maintain Libtool? --akim.
2175         export ac_cv_exeext
2176         break;;
2177     * )
2178         break;;
2179   esac
2180 done
2181 else
2182   echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&2;}
2189    { (exit 77); exit 77; }; }
2190 fi
2191
2192 ac_exeext=$ac_cv_exeext
2193 echo "$as_me:$LINENO: result: $ac_file" >&5
2194 echo "${ECHO_T}$ac_file" >&6
2195
2196 # Check the compiler produces executables we can run.  If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2199 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2200 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2201 # If not cross compiling, check that we can run a simple program.
2202 if test "$cross_compiling" != yes; then
2203   if { ac_try='./$ac_file'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; }; then
2209     cross_compiling=no
2210   else
2211     if test "$cross_compiling" = maybe; then
2212         cross_compiling=yes
2213     else
2214         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot run C compiled programs.
2218 If you meant to cross compile, use \`--host'.
2219 See \`config.log' for more details." >&2;}
2220    { (exit 1); exit 1; }; }
2221     fi
2222   fi
2223 fi
2224 echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6
2226
2227 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2228 ac_clean_files=$ac_clean_files_save
2229 # Check the compiler produces executables we can run.  If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2232 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2233 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2234 echo "${ECHO_T}$cross_compiling" >&6
2235
2236 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2237 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239   (eval $ac_link) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; then
2243   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2244 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2245 # work properly (i.e., refer to `conftest.exe'), while it won't with
2246 # `rm'.
2247 for ac_file in conftest.exe conftest conftest.*; do
2248   test -f "$ac_file" || continue
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2251     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252           export ac_cv_exeext
2253           break;;
2254     * ) break;;
2255   esac
2256 done
2257 else
2258   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2261 See \`config.log' for more details." >&2;}
2262    { (exit 1); exit 1; }; }
2263 fi
2264
2265 rm -f conftest$ac_cv_exeext
2266 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2267 echo "${ECHO_T}$ac_cv_exeext" >&6
2268
2269 rm -f conftest.$ac_ext
2270 EXEEXT=$ac_cv_exeext
2271 ac_exeext=$EXEEXT
2272 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2273 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2274 if test "${ac_cv_objext+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h.  */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h.  */
2283
2284 int
2285 main ()
2286 {
2287
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 rm -f conftest.o conftest.obj
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294   (eval $ac_compile) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2299   case $ac_file in
2300     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2301     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2302        break;;
2303   esac
2304 done
2305 else
2306   echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2312 See \`config.log' for more details." >&2;}
2313    { (exit 1); exit 1; }; }
2314 fi
2315
2316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2317 fi
2318 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2319 echo "${ECHO_T}$ac_cv_objext" >&6
2320 OBJEXT=$ac_cv_objext
2321 ac_objext=$OBJEXT
2322 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h.  */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h.  */
2333
2334 int
2335 main ()
2336 {
2337 #ifndef __GNUC__
2338        choke me
2339 #endif
2340
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347   (eval $ac_compile) 2>conftest.er1
2348   ac_status=$?
2349   grep -v '^ *+' conftest.er1 >conftest.err
2350   rm -f conftest.er1
2351   cat conftest.err >&5
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); } &&
2354          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; } &&
2360          { ac_try='test -s conftest.$ac_objext'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; }; then
2366   ac_compiler_gnu=yes
2367 else
2368   echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 ac_compiler_gnu=no
2372 fi
2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2375
2376 fi
2377 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2378 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2379 GCC=`test $ac_compiler_gnu = yes && echo yes`
2380 ac_test_CFLAGS=${CFLAGS+set}
2381 ac_save_CFLAGS=$CFLAGS
2382 CFLAGS="-g"
2383 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2384 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2385 if test "${ac_cv_prog_cc_g+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h.  */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h.  */
2394
2395 int
2396 main ()
2397 {
2398
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 rm -f conftest.$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405   (eval $ac_compile) 2>conftest.er1
2406   ac_status=$?
2407   grep -v '^ *+' conftest.er1 >conftest.err
2408   rm -f conftest.er1
2409   cat conftest.err >&5
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); } &&
2412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; } &&
2418          { ac_try='test -s conftest.$ac_objext'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424   ac_cv_prog_cc_g=yes
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 ac_cv_prog_cc_g=no
2430 fi
2431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2432 fi
2433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2434 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2435 if test "$ac_test_CFLAGS" = set; then
2436   CFLAGS=$ac_save_CFLAGS
2437 elif test $ac_cv_prog_cc_g = yes; then
2438   if test "$GCC" = yes; then
2439     CFLAGS="-g -O2"
2440   else
2441     CFLAGS="-g"
2442   fi
2443 else
2444   if test "$GCC" = yes; then
2445     CFLAGS="-O2"
2446   else
2447     CFLAGS=
2448   fi
2449 fi
2450 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2451 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2452 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2453   echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455   ac_cv_prog_cc_stdc=no
2456 ac_save_CC=$CC
2457 cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463 #include <stdarg.h>
2464 #include <stdio.h>
2465 #include <sys/types.h>
2466 #include <sys/stat.h>
2467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2468 struct buf { int x; };
2469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2470 static char *e (p, i)
2471      char **p;
2472      int i;
2473 {
2474   return p[i];
2475 }
2476 static char *f (char * (*g) (char **, int), char **p, ...)
2477 {
2478   char *s;
2479   va_list v;
2480   va_start (v,p);
2481   s = g (p, va_arg (v,int));
2482   va_end (v);
2483   return s;
2484 }
2485
2486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2487    function prototypes and stuff, but not '\xHH' hex character constants.
2488    These don't provoke an error unfortunately, instead are silently treated
2489    as 'x'.  The following induces an error, until -std1 is added to get
2490    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2491    array size at least.  It's necessary to write '\x00'==0 to get something
2492    that's true only with -std1.  */
2493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2494
2495 int test (int i, double x);
2496 struct s1 {int (*f) (int a);};
2497 struct s2 {int (*f) (double a);};
2498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2499 int argc;
2500 char **argv;
2501 int
2502 main ()
2503 {
2504 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 # Don't try gcc -ansi; that turns off useful extensions and
2510 # breaks some systems' header files.
2511 # AIX                   -qlanglvl=ansi
2512 # Ultrix and OSF/1      -std1
2513 # HP-UX 10.20 and later -Ae
2514 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2515 # SVR4                  -Xc -D__EXTENSIONS__
2516 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2517 do
2518   CC="$ac_save_CC $ac_arg"
2519   rm -f conftest.$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521   (eval $ac_compile) 2>conftest.er1
2522   ac_status=$?
2523   grep -v '^ *+' conftest.er1 >conftest.err
2524   rm -f conftest.er1
2525   cat conftest.err >&5
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); } &&
2528          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; } &&
2534          { ac_try='test -s conftest.$ac_objext'
2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540   ac_cv_prog_cc_stdc=$ac_arg
2541 break
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 fi
2547 rm -f conftest.err conftest.$ac_objext
2548 done
2549 rm -f conftest.$ac_ext conftest.$ac_objext
2550 CC=$ac_save_CC
2551
2552 fi
2553
2554 case "x$ac_cv_prog_cc_stdc" in
2555   x|xno)
2556     echo "$as_me:$LINENO: result: none needed" >&5
2557 echo "${ECHO_T}none needed" >&6 ;;
2558   *)
2559     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2560 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2561     CC="$CC $ac_cv_prog_cc_stdc" ;;
2562 esac
2563
2564 # Some people use a C++ compiler to compile C.  Since we use `exit',
2565 # in C++ we need to declare it.  In case someone uses the same compiler
2566 # for both compiling C and C++ we need to have the C++ compiler decide
2567 # the declaration of exit, since it's the most demanding environment.
2568 cat >conftest.$ac_ext <<_ACEOF
2569 #ifndef __cplusplus
2570   choke me
2571 #endif
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575   (eval $ac_compile) 2>conftest.er1
2576   ac_status=$?
2577   grep -v '^ *+' conftest.er1 >conftest.err
2578   rm -f conftest.er1
2579   cat conftest.err >&5
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   for ac_declaration in \
2595    '' \
2596    'extern "C" void std::exit (int) throw (); using std::exit;' \
2597    'extern "C" void std::exit (int); using std::exit;' \
2598    'extern "C" void exit (int) throw ();' \
2599    'extern "C" void exit (int);' \
2600    'void exit (int);'
2601 do
2602   cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h.  */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h.  */
2608 $ac_declaration
2609 #include <stdlib.h>
2610 int
2611 main ()
2612 {
2613 exit (42);
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620   (eval $ac_compile) 2>conftest.er1
2621   ac_status=$?
2622   grep -v '^ *+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } &&
2627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   :
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 continue
2645 fi
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647   cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653 $ac_declaration
2654 int
2655 main ()
2656 {
2657 exit (42);
2658   ;
2659   return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664   (eval $ac_compile) 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; } &&
2677          { ac_try='test -s conftest.$ac_objext'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; }; then
2683   break
2684 else
2685   echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688 fi
2689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 done
2691 rm -f conftest*
2692 if test -n "$ac_declaration"; then
2693   echo '#ifdef __cplusplus' >>confdefs.h
2694   echo $ac_declaration      >>confdefs.h
2695   echo '#endif'             >>confdefs.h
2696 fi
2697
2698 else
2699   echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2701
2702 fi
2703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710 if test "x$CC" != xcc; then
2711   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2712 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2713 else
2714   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2715 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2716 fi
2717 set dummy $CC; ac_cc=`echo $2 |
2718                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728
2729 int
2730 main ()
2731 {
2732
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 # Make sure it works both with $CC and with simple cc.
2738 # We do the test twice because some compilers refuse to overwrite an
2739 # existing .o file with -o, though they will create one.
2740 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2741 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); };
2751 then
2752   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2753   if test "x$CC" != xcc; then
2754     # Test first that cc exists at all.
2755     if { ac_try='cc -c conftest.$ac_ext >&5'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2762       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); } &&
2767          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); };
2772       then
2773         # cc works too.
2774         :
2775       else
2776         # cc exists but doesn't like -o.
2777         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2778       fi
2779     fi
2780   fi
2781 else
2782   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2783 fi
2784 rm -f conftest*
2785
2786 fi
2787 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2788   echo "$as_me:$LINENO: result: yes" >&5
2789 echo "${ECHO_T}yes" >&6
2790 else
2791   echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2793
2794 cat >>confdefs.h <<\_ACEOF
2795 #define NO_MINUS_C_MINUS_O 1
2796 _ACEOF
2797
2798 fi
2799
2800 # autoconf is lame and doesn't give us any substitution variable for this.
2801 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2802   NO_MINUS_C_MINUS_O=yes
2803 else
2804   OUTPUT_OPTION='-o $@'
2805 fi
2806
2807
2808
2809 # -------------------------
2810 # Check C compiler features
2811 # -------------------------
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2819 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2820 # On Suns, sometimes $CPP names a directory.
2821 if test -n "$CPP" && test -d "$CPP"; then
2822   CPP=
2823 fi
2824 if test -z "$CPP"; then
2825   if test "${ac_cv_prog_CPP+set}" = set; then
2826   echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828       # Double quotes because CPP needs to be expanded
2829     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2830     do
2831       ac_preproc_ok=false
2832 for ac_c_preproc_warn_flag in '' yes
2833 do
2834   # Use a header file that comes with gcc, so configuring glibc
2835   # with a fresh cross-compiler works.
2836   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2837   # <limits.h> exists even on freestanding compilers.
2838   # On the NeXT, cc -E runs the code through the compiler's parser,
2839   # not just through cpp. "Syntax error" is here to catch this case.
2840   cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h.  */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h.  */
2846 #ifdef __STDC__
2847 # include <limits.h>
2848 #else
2849 # include <assert.h>
2850 #endif
2851                      Syntax error
2852 _ACEOF
2853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2855   ac_status=$?
2856   grep -v '^ *+' conftest.er1 >conftest.err
2857   rm -f conftest.er1
2858   cat conftest.err >&5
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } >/dev/null; then
2861   if test -s conftest.err; then
2862     ac_cpp_err=$ac_c_preproc_warn_flag
2863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2864   else
2865     ac_cpp_err=
2866   fi
2867 else
2868   ac_cpp_err=yes
2869 fi
2870 if test -z "$ac_cpp_err"; then
2871   :
2872 else
2873   echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876   # Broken: fails on valid input.
2877 continue
2878 fi
2879 rm -f conftest.err conftest.$ac_ext
2880
2881   # OK, works on sane cases.  Now check whether non-existent headers
2882   # can be detected and how.
2883   cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h.  */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h.  */
2889 #include <ac_nonexistent.h>
2890 _ACEOF
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893   ac_status=$?
2894   grep -v '^ *+' conftest.er1 >conftest.err
2895   rm -f conftest.er1
2896   cat conftest.err >&5
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); } >/dev/null; then
2899   if test -s conftest.err; then
2900     ac_cpp_err=$ac_c_preproc_warn_flag
2901     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902   else
2903     ac_cpp_err=
2904   fi
2905 else
2906   ac_cpp_err=yes
2907 fi
2908 if test -z "$ac_cpp_err"; then
2909   # Broken: success on invalid input.
2910 continue
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915   # Passes both tests.
2916 ac_preproc_ok=:
2917 break
2918 fi
2919 rm -f conftest.err conftest.$ac_ext
2920
2921 done
2922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2923 rm -f conftest.err conftest.$ac_ext
2924 if $ac_preproc_ok; then
2925   break
2926 fi
2927
2928     done
2929     ac_cv_prog_CPP=$CPP
2930
2931 fi
2932   CPP=$ac_cv_prog_CPP
2933 else
2934   ac_cv_prog_CPP=$CPP
2935 fi
2936 echo "$as_me:$LINENO: result: $CPP" >&5
2937 echo "${ECHO_T}$CPP" >&6
2938 ac_preproc_ok=false
2939 for ac_c_preproc_warn_flag in '' yes
2940 do
2941   # Use a header file that comes with gcc, so configuring glibc
2942   # with a fresh cross-compiler works.
2943   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2944   # <limits.h> exists even on freestanding compilers.
2945   # On the NeXT, cc -E runs the code through the compiler's parser,
2946   # not just through cpp. "Syntax error" is here to catch this case.
2947   cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h.  */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h.  */
2953 #ifdef __STDC__
2954 # include <limits.h>
2955 #else
2956 # include <assert.h>
2957 #endif
2958                      Syntax error
2959 _ACEOF
2960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2962   ac_status=$?
2963   grep -v '^ *+' conftest.er1 >conftest.err
2964   rm -f conftest.er1
2965   cat conftest.err >&5
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); } >/dev/null; then
2968   if test -s conftest.err; then
2969     ac_cpp_err=$ac_c_preproc_warn_flag
2970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2971   else
2972     ac_cpp_err=
2973   fi
2974 else
2975   ac_cpp_err=yes
2976 fi
2977 if test -z "$ac_cpp_err"; then
2978   :
2979 else
2980   echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2982
2983   # Broken: fails on valid input.
2984 continue
2985 fi
2986 rm -f conftest.err conftest.$ac_ext
2987
2988   # OK, works on sane cases.  Now check whether non-existent headers
2989   # can be detected and how.
2990   cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996 #include <ac_nonexistent.h>
2997 _ACEOF
2998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3000   ac_status=$?
3001   grep -v '^ *+' conftest.er1 >conftest.err
3002   rm -f conftest.er1
3003   cat conftest.err >&5
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); } >/dev/null; then
3006   if test -s conftest.err; then
3007     ac_cpp_err=$ac_c_preproc_warn_flag
3008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3009   else
3010     ac_cpp_err=
3011   fi
3012 else
3013   ac_cpp_err=yes
3014 fi
3015 if test -z "$ac_cpp_err"; then
3016   # Broken: success on invalid input.
3017 continue
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022   # Passes both tests.
3023 ac_preproc_ok=:
3024 break
3025 fi
3026 rm -f conftest.err conftest.$ac_ext
3027
3028 done
3029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3030 rm -f conftest.err conftest.$ac_ext
3031 if $ac_preproc_ok; then
3032   :
3033 else
3034   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3035 See \`config.log' for more details." >&5
3036 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3037 See \`config.log' for more details." >&2;}
3038    { (exit 1); exit 1; }; }
3039 fi
3040
3041 ac_ext=c
3042 ac_cpp='$CPP $CPPFLAGS'
3043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3046
3047
3048 echo "$as_me:$LINENO: checking for inline" >&5
3049 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3050 if test "${ac_cv_c_inline+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   ac_cv_c_inline=no
3054 for ac_kw in inline __inline__ __inline; do
3055   cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061 #ifndef __cplusplus
3062 typedef int foo_t;
3063 static $ac_kw foo_t static_foo () {return 0; }
3064 $ac_kw foo_t foo () {return 0; }
3065 #endif
3066
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070   (eval $ac_compile) 2>conftest.er1
3071   ac_status=$?
3072   grep -v '^ *+' conftest.er1 >conftest.err
3073   rm -f conftest.er1
3074   cat conftest.err >&5
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); } &&
3077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079   (eval $ac_try) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); }; } &&
3083          { ac_try='test -s conftest.$ac_objext'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; }; then
3089   ac_cv_c_inline=$ac_kw; break
3090 else
3091   echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 fi
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096 done
3097
3098 fi
3099 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3100 echo "${ECHO_T}$ac_cv_c_inline" >&6
3101
3102
3103 case $ac_cv_c_inline in
3104   inline | yes) ;;
3105   *)
3106     case $ac_cv_c_inline in
3107       no) ac_val=;;
3108       *) ac_val=$ac_cv_c_inline;;
3109     esac
3110     cat >>confdefs.h <<_ACEOF
3111 #ifndef __cplusplus
3112 #define inline $ac_val
3113 #endif
3114 _ACEOF
3115     ;;
3116 esac
3117
3118
3119 echo "$as_me:$LINENO: checking for long long int" >&5
3120 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3121 if test "${ac_cv_c_long_long+set}" = set; then
3122   echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124   cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130
3131 int
3132 main ()
3133 {
3134 long long int i;
3135   ;
3136   return 0;
3137 }
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141   (eval $ac_compile) 2>conftest.er1
3142   ac_status=$?
3143   grep -v '^ *+' conftest.er1 >conftest.err
3144   rm -f conftest.er1
3145   cat conftest.err >&5
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); } &&
3148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150   (eval $ac_try) 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }; } &&
3154          { ac_try='test -s conftest.$ac_objext'
3155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156   (eval $ac_try) 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; }; then
3160   ac_cv_c_long_long=yes
3161 else
3162   echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165 ac_cv_c_long_long=no
3166 fi
3167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3168 fi
3169 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3170 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3171   if test $ac_cv_c_long_long = yes; then
3172
3173 cat >>confdefs.h <<\_ACEOF
3174 #define HAVE_LONG_LONG 1
3175 _ACEOF
3176
3177   fi
3178 echo "$as_me:$LINENO: checking for __int64" >&5
3179 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3180 if test "${ac_cv_c___int64+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189
3190 int
3191 main ()
3192 {
3193 __int64 i;
3194   ;
3195   return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200   (eval $ac_compile) 2>conftest.er1
3201   ac_status=$?
3202   grep -v '^ *+' conftest.er1 >conftest.err
3203   rm -f conftest.er1
3204   cat conftest.err >&5
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } &&
3207          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209   (eval $ac_try) 2>&5
3210   ac_status=$?
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); }; } &&
3213          { ac_try='test -s conftest.$ac_objext'
3214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215   (eval $ac_try) 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; }; then
3219   ac_cv_c___int64=yes
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 ac_cv_c___int64=no
3225 fi
3226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3227 fi
3228 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3229 echo "${ECHO_T}$ac_cv_c___int64" >&6
3230   if test $ac_cv_c___int64 = yes; then
3231
3232 cat >>confdefs.h <<\_ACEOF
3233 #define HAVE___INT64 1
3234 _ACEOF
3235
3236   fi
3237
3238 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3239 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3240 if test "${gcc_cv_c__bool+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243   cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h.  */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h.  */
3249
3250 int
3251 main ()
3252 {
3253 _Bool foo;
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260   (eval $ac_compile) 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
3264   cat conftest.err >&5
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); } &&
3267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269   (eval $ac_try) 2>&5
3270   ac_status=$?
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); }; } &&
3273          { ac_try='test -s conftest.$ac_objext'
3274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275   (eval $ac_try) 2>&5
3276   ac_status=$?
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; }; then
3279   gcc_cv_c__bool=yes
3280 else
3281   echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 gcc_cv_c__bool=no
3285 fi
3286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3287
3288 fi
3289 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3290 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3291 if test $gcc_cv_c__bool = yes; then
3292
3293 cat >>confdefs.h <<\_ACEOF
3294 #define HAVE__BOOL 1
3295 _ACEOF
3296
3297 fi
3298
3299
3300 # sizeof(char) is 1 by definition.
3301 echo "$as_me:$LINENO: checking size of void *" >&5
3302 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3303 if test "${ac_cv_sizeof_void_p+set}" = set; then
3304   echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3307   cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #include "confdefs.h"
3314 #include <sys/types.h>
3315
3316
3317 int
3318 main ()
3319 {
3320 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327   (eval $ac_compile) 2>conftest.er1
3328   ac_status=$?
3329   grep -v '^ *+' conftest.er1 >conftest.err
3330   rm -f conftest.er1
3331   cat conftest.err >&5
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } &&
3334          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336   (eval $ac_try) 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }; } &&
3340          { ac_try='test -s conftest.$ac_objext'
3341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342   (eval $ac_try) 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); }; }; then
3346   ac_cv_sizeof_void_p=$ac_size
3347 else
3348   echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3350
3351 fi
3352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3353   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3354 done
3355
3356 fi
3357
3358 if test x$ac_cv_sizeof_void_p = x ; then
3359   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3360 echo "$as_me: error: cannot determine a size for void *" >&2;}
3361    { (exit 1); exit 1; }; }
3362 fi
3363 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3364 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3365
3366 cat >>confdefs.h <<_ACEOF
3367 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3368 _ACEOF
3369
3370
3371 echo "$as_me:$LINENO: checking size of short" >&5
3372 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3373 if test "${ac_cv_sizeof_short+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3377   cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383 #include "confdefs.h"
3384 #include <sys/types.h>
3385
3386
3387 int
3388 main ()
3389 {
3390 switch (0) case 0: case (sizeof (short) == $ac_size):;
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397   (eval $ac_compile) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } &&
3404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406   (eval $ac_try) 2>&5
3407   ac_status=$?
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); }; } &&
3410          { ac_try='test -s conftest.$ac_objext'
3411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412   (eval $ac_try) 2>&5
3413   ac_status=$?
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); }; }; then
3416   ac_cv_sizeof_short=$ac_size
3417 else
3418   echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 fi
3422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3423   if test x$ac_cv_sizeof_short != x ; then break; fi
3424 done
3425
3426 fi
3427
3428 if test x$ac_cv_sizeof_short = x ; then
3429   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3430 echo "$as_me: error: cannot determine a size for short" >&2;}
3431    { (exit 1); exit 1; }; }
3432 fi
3433 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3434 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3435
3436 cat >>confdefs.h <<_ACEOF
3437 #define SIZEOF_SHORT $ac_cv_sizeof_short
3438 _ACEOF
3439
3440
3441 echo "$as_me:$LINENO: checking size of int" >&5
3442 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3443 if test "${ac_cv_sizeof_int+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3447   cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h.  */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h.  */
3453 #include "confdefs.h"
3454 #include <sys/types.h>
3455
3456
3457 int
3458 main ()
3459 {
3460 switch (0) case 0: case (sizeof (int) == $ac_size):;
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467   (eval $ac_compile) 2>conftest.er1
3468   ac_status=$?
3469   grep -v '^ *+' conftest.er1 >conftest.err
3470   rm -f conftest.er1
3471   cat conftest.err >&5
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); } &&
3474          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; } &&
3480          { ac_try='test -s conftest.$ac_objext'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; }; then
3486   ac_cv_sizeof_int=$ac_size
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 fi
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493   if test x$ac_cv_sizeof_int != x ; then break; fi
3494 done
3495
3496 fi
3497
3498 if test x$ac_cv_sizeof_int = x ; then
3499   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3500 echo "$as_me: error: cannot determine a size for int" >&2;}
3501    { (exit 1); exit 1; }; }
3502 fi
3503 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3504 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3505
3506 cat >>confdefs.h <<_ACEOF
3507 #define SIZEOF_INT $ac_cv_sizeof_int
3508 _ACEOF
3509
3510
3511 echo "$as_me:$LINENO: checking size of long" >&5
3512 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3513 if test "${ac_cv_sizeof_long+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3517   cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523 #include "confdefs.h"
3524 #include <sys/types.h>
3525
3526
3527 int
3528 main ()
3529 {
3530 switch (0) case 0: case (sizeof (long) == $ac_size):;
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537   (eval $ac_compile) 2>conftest.er1
3538   ac_status=$?
3539   grep -v '^ *+' conftest.er1 >conftest.err
3540   rm -f conftest.er1
3541   cat conftest.err >&5
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } &&
3544          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546   (eval $ac_try) 2>&5
3547   ac_status=$?
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); }; } &&
3550          { ac_try='test -s conftest.$ac_objext'
3551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552   (eval $ac_try) 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; }; then
3556   ac_cv_sizeof_long=$ac_size
3557 else
3558   echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 fi
3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563   if test x$ac_cv_sizeof_long != x ; then break; fi
3564 done
3565
3566 fi
3567
3568 if test x$ac_cv_sizeof_long = x ; then
3569   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3570 echo "$as_me: error: cannot determine a size for long" >&2;}
3571    { (exit 1); exit 1; }; }
3572 fi
3573 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3574 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3575
3576 cat >>confdefs.h <<_ACEOF
3577 #define SIZEOF_LONG $ac_cv_sizeof_long
3578 _ACEOF
3579
3580
3581 if test $ac_cv_c_long_long = yes; then
3582   echo "$as_me:$LINENO: checking size of long long" >&5
3583 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3584 if test "${ac_cv_sizeof_long_long+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3588   cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h.  */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h.  */
3594 #include "confdefs.h"
3595 #include <sys/types.h>
3596
3597
3598 int
3599 main ()
3600 {
3601 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 rm -f conftest.$ac_objext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3608   (eval $ac_compile) 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } &&
3615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617   (eval $ac_try) 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); }; } &&
3621          { ac_try='test -s conftest.$ac_objext'
3622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623   (eval $ac_try) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); }; }; then
3627   ac_cv_sizeof_long_long=$ac_size
3628 else
3629   echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 fi
3633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3634   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3635 done
3636
3637 fi
3638
3639 if test x$ac_cv_sizeof_long_long = x ; then
3640   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3641 echo "$as_me: error: cannot determine a size for long long" >&2;}
3642    { (exit 1); exit 1; }; }
3643 fi
3644 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3645 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3646
3647 cat >>confdefs.h <<_ACEOF
3648 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3649 _ACEOF
3650
3651
3652 fi
3653 if test $ac_cv_c___int64 = yes; then
3654   echo "$as_me:$LINENO: checking size of __int64" >&5
3655 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3656 if test "${ac_cv_sizeof___int64+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3660   cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h.  */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h.  */
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3668
3669
3670 int
3671 main ()
3672 {
3673 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
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"                   || test ! -s conftest.err'
3688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689   (eval $ac_try) 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; } &&
3693          { ac_try='test -s conftest.$ac_objext'
3694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695   (eval $ac_try) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); }; }; then
3699   ac_cv_sizeof___int64=$ac_size
3700 else
3701   echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3703
3704 fi
3705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3707 done
3708
3709 fi
3710
3711 if test x$ac_cv_sizeof___int64 = x ; then
3712   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3713 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3714    { (exit 1); exit 1; }; }
3715 fi
3716 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3717 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3718
3719 cat >>confdefs.h <<_ACEOF
3720 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3721 _ACEOF
3722
3723
3724 fi
3725
3726 # ---------------------
3727 # Warnings and checking
3728 # ---------------------
3729
3730 # Check $CC warning features (if it's GCC).
3731 # We want to use -pedantic, but we don't want warnings about
3732 # * 'long long'
3733 # * variadic macros
3734 # So, we only use -pedantic if we can disable those warnings.
3735
3736 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3737 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3738 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   save_CFLAGS="$CFLAGS"
3742   CFLAGS="-Wno-long-long"
3743   cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h.  */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h.  */
3749
3750 _ACEOF
3751 rm -f conftest.$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753   (eval $ac_compile) 2>conftest.er1
3754   ac_status=$?
3755   grep -v '^ *+' conftest.er1 >conftest.err
3756   rm -f conftest.er1
3757   cat conftest.err >&5
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); } &&
3760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762   (eval $ac_try) 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); }; } &&
3766          { ac_try='test -s conftest.$ac_objext'
3767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768   (eval $ac_try) 2>&5
3769   ac_status=$?
3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); }; }; then
3772   ac_cv_prog_cc_w_no_long_long=yes
3773 else
3774   echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 ac_cv_prog_cc_w_no_long_long=no
3778 fi
3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3780   CFLAGS="$save_CFLAGS"
3781
3782 fi
3783 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3784 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3785
3786 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3787 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3788 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   save_CFLAGS="$CFLAGS"
3792   CFLAGS="-Wno-variadic-macros"
3793   cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h.  */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h.  */
3799
3800 _ACEOF
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803   (eval $ac_compile) 2>conftest.er1
3804   ac_status=$?
3805   grep -v '^ *+' conftest.er1 >conftest.err
3806   rm -f conftest.er1
3807   cat conftest.err >&5
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); } &&
3810          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; } &&
3816          { ac_try='test -s conftest.$ac_objext'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   ac_cv_prog_cc_w_no_variadic_macros=yes
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 ac_cv_prog_cc_w_no_variadic_macros=no
3828 fi
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830   CFLAGS="$save_CFLAGS"
3831
3832 fi
3833 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3834 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3835
3836 strict1_warn=
3837 if test $ac_cv_prog_cc_w_no_long_long = yes \
3838    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3839   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3840 fi
3841
3842
3843 # Add -Wold-style-definition if it's accepted
3844 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3845 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3846 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   save_CFLAGS="$CFLAGS"
3850   CFLAGS="-Wold-style-definition"
3851   cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h.  */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h.  */
3857
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861   (eval $ac_compile) 2>conftest.er1
3862   ac_status=$?
3863   grep -v '^ *+' conftest.er1 >conftest.err
3864   rm -f conftest.er1
3865   cat conftest.err >&5
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); } &&
3868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870   (eval $ac_try) 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); }; } &&
3874          { ac_try='test -s conftest.$ac_objext'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   ac_cv_prog_cc_w_old_style_definition=yes
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 ac_cv_prog_cc_w_old_style_definition=no
3886 fi
3887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888   CFLAGS="$save_CFLAGS"
3889
3890 fi
3891 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3892 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3893 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3894   strict1_warn="${strict1_warn} -Wold-style-definition"
3895 fi
3896
3897 # If the native compiler is GCC, we can enable warnings even in stage1.
3898 # That's useful for people building cross-compilers, or just running a
3899 # quick `make'.
3900 warn_cflags=
3901 if test "x$GCC" = "xyes"; then
3902   warn_cflags='$(GCC_WARN_CFLAGS)'
3903 fi
3904
3905
3906 # Enable -Werror in bootstrap stage2 and later.
3907 # Change the default to "no" on release branches.
3908 # Check whether --enable-werror or --disable-werror was given.
3909 if test "${enable_werror+set}" = set; then
3910   enableval="$enable_werror"
3911
3912 else
3913   enable_werror=yes
3914 fi;
3915 if test x$enable_werror = xyes ; then
3916   WERROR=-Werror
3917 fi
3918
3919
3920 # Enable expensive internal checks
3921 # Check whether --enable-checking or --disable-checking was given.
3922 if test "${enable_checking+set}" = set; then
3923   enableval="$enable_checking"
3924   ac_checking=
3925 ac_tree_checking=
3926 ac_rtl_checking=
3927 ac_rtlflag_checking=
3928 ac_gc_checking=
3929 ac_gc_always_collect=
3930 ac_fold_checking=
3931 case "${enableval}" in
3932 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3933         ac_rtlflag_checking=1 ;;
3934 no)     ;;
3935 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3936         set fnord $enableval; shift
3937         IFS="$ac_save_IFS"
3938         for check
3939         do
3940                 case $check in
3941                 misc)   ac_checking=1 ;;
3942                 tree)   ac_tree_checking=1 ;;
3943                 rtlflag)        ac_rtlflag_checking=1 ;;
3944                 rtl)    ac_rtl_checking=1 ;;
3945                 gc)     ac_gc_checking=1 ;;
3946                 gcac)   ac_gc_always_collect=1 ;;
3947                 fold)   ac_fold_checking=1 ;;
3948                 valgrind)       ac_checking_valgrind=1 ;;
3949                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3950 echo "$as_me: error: unknown check category $check" >&2;}
3951    { (exit 1); exit 1; }; } ;;
3952                 esac
3953         done
3954         ;;
3955 esac
3956
3957 else
3958   # Enable some checks by default for development versions of GCC
3959 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3960 fi;
3961 nocommon_flag=""
3962 if test x$ac_checking != x ; then
3963
3964 cat >>confdefs.h <<\_ACEOF
3965 #define ENABLE_CHECKING 1
3966 _ACEOF
3967
3968   nocommon_flag=-fno-common
3969 fi
3970
3971 if test x$ac_tree_checking != x ; then
3972
3973 cat >>confdefs.h <<\_ACEOF
3974 #define ENABLE_TREE_CHECKING 1
3975 _ACEOF
3976
3977 fi
3978 if test x$ac_rtl_checking != x ; then
3979
3980 cat >>confdefs.h <<\_ACEOF
3981 #define ENABLE_RTL_CHECKING 1
3982 _ACEOF
3983
3984 fi
3985 if test x$ac_rtlflag_checking != x ; then
3986
3987 cat >>confdefs.h <<\_ACEOF
3988 #define ENABLE_RTL_FLAG_CHECKING 1
3989 _ACEOF
3990
3991 fi
3992 if test x$ac_gc_checking != x ; then
3993
3994 cat >>confdefs.h <<\_ACEOF
3995 #define ENABLE_GC_CHECKING 1
3996 _ACEOF
3997
3998 fi
3999 if test x$ac_gc_always_collect != x ; then
4000
4001 cat >>confdefs.h <<\_ACEOF
4002 #define ENABLE_GC_ALWAYS_COLLECT 1
4003 _ACEOF
4004
4005 fi
4006 if test x$ac_fold_checking != x ; then
4007
4008 cat >>confdefs.h <<\_ACEOF
4009 #define ENABLE_FOLD_CHECKING 1
4010 _ACEOF
4011
4012 fi
4013 valgrind_path_defines=
4014 valgrind_command=
4015
4016
4017 echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4019 if test "${ac_cv_prog_egrep+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4023     then ac_cv_prog_egrep='grep -E'
4024     else ac_cv_prog_egrep='egrep'
4025     fi
4026 fi
4027 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4028 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4029  EGREP=$ac_cv_prog_egrep
4030
4031
4032 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4033 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4034 if test "${ac_cv_header_stdc+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 #include <stdlib.h>
4044 #include <stdarg.h>
4045 #include <string.h>
4046 #include <float.h>
4047
4048 int
4049 main ()
4050 {
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058   (eval $ac_compile) 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } &&
4065          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067   (eval $ac_try) 2>&5
4068   ac_status=$?
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); }; } &&
4071          { ac_try='test -s conftest.$ac_objext'
4072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073   (eval $ac_try) 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }; }; then
4077   ac_cv_header_stdc=yes
4078 else
4079   echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 ac_cv_header_stdc=no
4083 fi
4084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4085
4086 if test $ac_cv_header_stdc = yes; then
4087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4088   cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h.  */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h.  */
4094 #include <string.h>
4095
4096 _ACEOF
4097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4098   $EGREP "memchr" >/dev/null 2>&1; then
4099   :
4100 else
4101   ac_cv_header_stdc=no
4102 fi
4103 rm -f conftest*
4104
4105 fi
4106
4107 if test $ac_cv_header_stdc = yes; then
4108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4109   cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h.  */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h.  */
4115 #include <stdlib.h>
4116
4117 _ACEOF
4118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119   $EGREP "free" >/dev/null 2>&1; then
4120   :
4121 else
4122   ac_cv_header_stdc=no
4123 fi
4124 rm -f conftest*
4125
4126 fi
4127
4128 if test $ac_cv_header_stdc = yes; then
4129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4130   if test "$cross_compiling" = yes; then
4131   :
4132 else
4133   cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h.  */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h.  */
4139 #include <ctype.h>
4140 #if ((' ' & 0x0FF) == 0x020)
4141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4143 #else
4144 # define ISLOWER(c) \
4145                    (('a' <= (c) && (c) <= 'i') \
4146                      || ('j' <= (c) && (c) <= 'r') \
4147                      || ('s' <= (c) && (c) <= 'z'))
4148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4149 #endif
4150
4151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4152 int
4153 main ()
4154 {
4155   int i;
4156   for (i = 0; i < 256; i++)
4157     if (XOR (islower (i), ISLOWER (i))
4158         || toupper (i) != TOUPPER (i))
4159       exit(2);
4160   exit (0);
4161 }
4162 _ACEOF
4163 rm -f conftest$ac_exeext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4165   (eval $ac_link) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170   (eval $ac_try) 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }; }; then
4174   :
4175 else
4176   echo "$as_me: program exited with status $ac_status" >&5
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4179
4180 ( exit $ac_status )
4181 ac_cv_header_stdc=no
4182 fi
4183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4184 fi
4185 fi
4186 fi
4187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4189 if test $ac_cv_header_stdc = yes; then
4190
4191 cat >>confdefs.h <<\_ACEOF
4192 #define STDC_HEADERS 1
4193 _ACEOF
4194
4195 fi
4196
4197 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4208                   inttypes.h stdint.h unistd.h
4209 do
4210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4211 echo "$as_me:$LINENO: checking for $ac_header" >&5
4212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4214   echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216   cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h.  */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h.  */
4222 $ac_includes_default
4223
4224 #include <$ac_header>
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228   (eval $ac_compile) 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } &&
4235          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; } &&
4241          { ac_try='test -s conftest.$ac_objext'
4242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243   (eval $ac_try) 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); }; }; then
4247   eval "$as_ac_Header=yes"
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 eval "$as_ac_Header=no"
4253 fi
4254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 fi
4256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4259   cat >>confdefs.h <<_ACEOF
4260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4261 _ACEOF
4262
4263 fi
4264
4265 done
4266
4267
4268 if test "${ac_cv_header_valgrind_h+set}" = set; then
4269   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4270 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4271 if test "${ac_cv_header_valgrind_h+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 fi
4274 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4275 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4276 else
4277   # Is the header compilable?
4278 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4279 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286 $ac_includes_default
4287 #include <valgrind.h>
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291   (eval $ac_compile) 2>conftest.er1
4292   ac_status=$?
4293   grep -v '^ *+' conftest.er1 >conftest.err
4294   rm -f conftest.er1
4295   cat conftest.err >&5
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); } &&
4298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300   (eval $ac_try) 2>&5
4301   ac_status=$?
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); }; } &&
4304          { ac_try='test -s conftest.$ac_objext'
4305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306   (eval $ac_try) 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); }; }; then
4310   ac_header_compiler=yes
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 ac_header_compiler=no
4316 fi
4317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4319 echo "${ECHO_T}$ac_header_compiler" >&6
4320
4321 # Is the header present?
4322 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4323 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 #include <valgrind.h>
4331 _ACEOF
4332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4334   ac_status=$?
4335   grep -v '^ *+' conftest.er1 >conftest.err
4336   rm -f conftest.er1
4337   cat conftest.err >&5
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } >/dev/null; then
4340   if test -s conftest.err; then
4341     ac_cpp_err=$ac_c_preproc_warn_flag
4342     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4343   else
4344     ac_cpp_err=
4345   fi
4346 else
4347   ac_cpp_err=yes
4348 fi
4349 if test -z "$ac_cpp_err"; then
4350   ac_header_preproc=yes
4351 else
4352   echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4354
4355   ac_header_preproc=no
4356 fi
4357 rm -f conftest.err conftest.$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4359 echo "${ECHO_T}$ac_header_preproc" >&6
4360
4361 # So?  What about this header?
4362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4363   yes:no: )
4364     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4365 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4366     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4367 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4368     ac_header_preproc=yes
4369     ;;
4370   no:yes:* )
4371     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4372 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4373     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
4374 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
4375     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4376 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4377     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
4378 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4379     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4380 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4381     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4382 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4383     (
4384       cat <<\_ASBOX
4385 ## ------------------------------------------ ##
4386 ## Report this to the AC_PACKAGE_NAME lists.  ##
4387 ## ------------------------------------------ ##
4388 _ASBOX
4389     ) |
4390       sed "s/^/$as_me: WARNING:     /" >&2
4391     ;;
4392 esac
4393 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4394 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4395 if test "${ac_cv_header_valgrind_h+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   ac_cv_header_valgrind_h=$ac_header_preproc
4399 fi
4400 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4401 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4402
4403 fi
4404 if test $ac_cv_header_valgrind_h = yes; then
4405   have_valgrind_h=yes
4406 else
4407   have_valgrind_h=no
4408 fi
4409
4410
4411
4412 if test x$ac_checking_valgrind != x ; then
4413   # It is certainly possible that there's valgrind but no valgrind.h.
4414   # GCC relies on making annotations so we must have both.
4415   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4416 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4417   cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h.  */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h.  */
4423 #include <valgrind/memcheck.h>
4424 #ifndef VALGRIND_DISCARD
4425 #error VALGRIND_DISCARD not defined
4426 #endif
4427 _ACEOF
4428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4430   ac_status=$?
4431   grep -v '^ *+' conftest.er1 >conftest.err
4432   rm -f conftest.er1
4433   cat conftest.err >&5
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } >/dev/null; then
4436   if test -s conftest.err; then
4437     ac_cpp_err=$ac_c_preproc_warn_flag
4438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4439   else
4440     ac_cpp_err=
4441   fi
4442 else
4443   ac_cpp_err=yes
4444 fi
4445 if test -z "$ac_cpp_err"; then
4446   gcc_cv_header_valgrind_memcheck_h=yes
4447 else
4448   echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451   gcc_cv_header_valgrind_memcheck_h=no
4452 fi
4453 rm -f conftest.err conftest.$ac_ext
4454   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4455 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4456   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4457 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4458   cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h.  */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h.  */
4464 #include <memcheck.h>
4465 #ifndef VALGRIND_DISCARD
4466 #error VALGRIND_DISCARD not defined
4467 #endif
4468 _ACEOF
4469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4470   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4471   ac_status=$?
4472   grep -v '^ *+' conftest.er1 >conftest.err
4473   rm -f conftest.er1
4474   cat conftest.err >&5
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } >/dev/null; then
4477   if test -s conftest.err; then
4478     ac_cpp_err=$ac_c_preproc_warn_flag
4479     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4480   else
4481     ac_cpp_err=
4482   fi
4483 else
4484   ac_cpp_err=yes
4485 fi
4486 if test -z "$ac_cpp_err"; then
4487   gcc_cv_header_memcheck_h=yes
4488 else
4489   echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492   gcc_cv_header_memcheck_h=no
4493 fi
4494 rm -f conftest.err conftest.$ac_ext
4495   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4496 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4497
4498 # Prepare PATH_SEPARATOR.
4499 # The user is always right.
4500 if test "${PATH_SEPARATOR+set}" != set; then
4501   echo "#! /bin/sh" >conf$$.sh
4502   echo  "exit 0"   >>conf$$.sh
4503   chmod +x conf$$.sh
4504   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4505     PATH_SEPARATOR=';'
4506   else
4507     PATH_SEPARATOR=:
4508   fi
4509   rm -f conf$$.sh
4510 fi
4511
4512 # Find out how to test for executable files. Don't use a zero-byte file,
4513 # as systems may use methods other than mode bits to determine executability.
4514 cat >conf$$.file <<_ASEOF
4515 #! /bin/sh
4516 exit 0
4517 _ASEOF
4518 chmod +x conf$$.file
4519 if test -x conf$$.file >/dev/null 2>&1; then
4520   ac_executable_p="test -x"
4521 else
4522   ac_executable_p="test -f"
4523 fi
4524 rm -f conf$$.file
4525
4526 # Extract the first word of "valgrind", so it can be a program name with args.
4527 set dummy valgrind; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_path_valgrind_path+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   case "$valgrind_path" in
4534   [\\/]* | ?:[\\/]*)
4535     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4536     ;;
4537   *)
4538     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4539     for ac_dir in $PATH; do
4540       IFS="$ac_save_IFS"
4541       test -z "$ac_dir" && ac_dir=.
4542       for ac_exec_ext in '' $ac_executable_extensions; do
4543         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4544           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4545             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4546             break 2
4547           fi
4548         fi
4549       done
4550     done
4551     IFS="$ac_save_IFS"
4552     ;;
4553 esac
4554 fi
4555 valgrind_path="$ac_cv_path_valgrind_path"
4556 if test -n "$valgrind_path"; then
4557   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4558 echo "${ECHO_T}$valgrind_path" >&6
4559 else
4560   echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4562 fi
4563
4564   if test "x$valgrind_path" = "x" \
4565     || (test $have_valgrind_h = no \
4566         && test $gcc_cv_header_memcheck_h = no \
4567         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4568         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4569 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4570    { (exit 1); exit 1; }; }
4571   fi
4572   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4573   valgrind_command="$valgrind_path -q"
4574
4575 cat >>confdefs.h <<\_ACEOF
4576 #define ENABLE_VALGRIND_CHECKING 1
4577 _ACEOF
4578
4579   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4580
4581 cat >>confdefs.h <<\_ACEOF
4582 #define HAVE_VALGRIND_MEMCHECK_H 1
4583 _ACEOF
4584
4585   fi
4586   if test $gcc_cv_header_memcheck_h = yes; then
4587
4588 cat >>confdefs.h <<\_ACEOF
4589 #define HAVE_MEMCHECK_H 1
4590 _ACEOF
4591
4592   fi
4593 fi
4594
4595
4596
4597 # Enable code coverage collection
4598 # Check whether --enable-coverage or --disable-coverage was given.
4599 if test "${enable_coverage+set}" = set; then
4600   enableval="$enable_coverage"
4601   case "${enableval}" in
4602   yes|noopt)
4603     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4604     ;;
4605   opt)
4606     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4607     ;;
4608   no)
4609     # a.k.a. --disable-coverage
4610     coverage_flags=""
4611     ;;
4612   *)
4613     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4614 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4615    { (exit 1); exit 1; }; }
4616     ;;
4617 esac
4618 else
4619   coverage_flags=""
4620 fi;
4621
4622
4623 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4624 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4625   enableval="$enable_gather_detailed_mem_stats"
4626
4627 else
4628   enable_gather_detailed_mem_stats=no
4629 fi;
4630 if test x$enable_gather_detailed_mem_stats = xyes ; then
4631
4632 cat >>confdefs.h <<\_ACEOF
4633 #define GATHER_STATISTICS 1
4634 _ACEOF
4635
4636 fi
4637
4638 # -------------------------------
4639 # Miscenalleous configure options
4640 # -------------------------------
4641
4642 # With stabs
4643
4644 # Check whether --with-stabs or --without-stabs was given.
4645 if test "${with_stabs+set}" = set; then
4646   withval="$with_stabs"
4647   stabs="$with_stabs"
4648 else
4649   stabs=no
4650 fi;
4651
4652 # Determine whether or not multilibs are enabled.
4653 # Check whether --enable-multilib or --disable-multilib was given.
4654 if test "${enable_multilib+set}" = set; then
4655   enableval="$enable_multilib"
4656
4657 else
4658   enable_multilib=yes
4659 fi;
4660
4661
4662 # Enable __cxa_atexit for C++.
4663 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4664 if test "${enable___cxa_atexit+set}" = set; then
4665   enableval="$enable___cxa_atexit"
4666
4667 fi;
4668
4669 # Enable threads
4670 # Pass with no value to take the default
4671 # Pass with a value to specify a thread package
4672 # Check whether --enable-threads or --disable-threads was given.
4673 if test "${enable_threads+set}" = set; then
4674   enableval="$enable_threads"
4675
4676 else
4677   enable_threads=''
4678 fi;
4679 # Save in case it gets overwritten in config.gcc
4680 enable_threads_flag=$enable_threads
4681
4682 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4683 if test "${enable_objc_gc+set}" = set; then
4684   enableval="$enable_objc_gc"
4685   if test x$enable_objc_gc = xno; then
4686         objc_boehm_gc=''
4687 else
4688         objc_boehm_gc=1
4689 fi
4690 else
4691   objc_boehm_gc=''
4692 fi;
4693
4694
4695 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4696 if test "${with_dwarf2+set}" = set; then
4697   withval="$with_dwarf2"
4698   dwarf2="$with_dwarf2"
4699 else
4700   dwarf2=no
4701 fi;
4702
4703 # Check whether --enable-shared or --disable-shared was given.
4704 if test "${enable_shared+set}" = set; then
4705   enableval="$enable_shared"
4706
4707   case $enable_shared in
4708   yes | no) ;;
4709   *)
4710     enable_shared=no
4711     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4712     for pkg in $enableval; do
4713       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4714         enable_shared=yes
4715       fi
4716     done
4717     IFS="$ac_save_ifs"
4718     ;;
4719   esac
4720
4721 else
4722   enable_shared=yes
4723 fi;
4724
4725
4726
4727 # Check whether --with-sysroot or --without-sysroot was given.
4728 if test "${with_sysroot+set}" = set; then
4729   withval="$with_sysroot"
4730
4731  case ${with_sysroot} in
4732  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4733  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4734  esac
4735
4736  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4737  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4738
4739  if test "x$exec_prefix" = xNONE; then
4740   if test "x$prefix" = xNONE; then
4741    test_prefix=/usr/local
4742   else
4743    test_prefix=$prefix
4744   fi
4745  else
4746   test_prefix=$exec_prefix
4747  fi
4748  case ${TARGET_SYSTEM_ROOT} in
4749  "${test_prefix}"|"${test_prefix}/"*|\
4750  '${exec_prefix}'|'${exec_prefix}/'*)
4751    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4752    TARGET_SYSTEM_ROOT_DEFINE="$t"
4753    ;;
4754  esac
4755
4756 else
4757
4758  TARGET_SYSTEM_ROOT=
4759  TARGET_SYSTEM_ROOT_DEFINE=
4760  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4761
4762 fi;
4763
4764
4765
4766
4767 # Build with intermodule optimisations
4768 # Check whether --enable-intermodule or --disable-intermodule was given.
4769 if test "${enable_intermodule+set}" = set; then
4770   enableval="$enable_intermodule"
4771   case ${enable_intermodule} in
4772   yes) onestep="-onestep";;
4773   *) onestep="";;
4774 esac
4775 else
4776   onestep=""
4777 fi;
4778
4779
4780 # Sanity check enable_languages in case someone does not run the toplevel
4781 # configure # script.
4782 # Check whether --enable-languages or --disable-languages was given.
4783 if test "${enable_languages+set}" = set; then
4784   enableval="$enable_languages"
4785   case ,${enable_languages}, in
4786        ,,|,yes,)
4787                 # go safe -- we cannot be much sure without the toplevel
4788                 # configure's
4789                 # analysis of which target libs are present and usable
4790                 enable_languages=c
4791                 ;;
4792          *,all,*)
4793                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4794 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4795    { (exit 1); exit 1; }; }
4796                 ;;
4797         *,c,*)
4798                 ;;
4799         *)
4800                 enable_languages=c,${enable_languages}
4801                 ;;
4802 esac
4803 else
4804   enable_languages=c
4805 fi;
4806
4807 subdirs=
4808 for lang in ${srcdir}/*/config-lang.in
4809 do
4810         case $lang in
4811         # The odd quoting in the next line works around
4812         # an apparent bug in bash 1.12 on linux.
4813         ${srcdir}/[*]/config-lang.in) ;;
4814         *)
4815           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
4816           if test "x$lang_alias" = x
4817           then
4818                 echo "$lang doesn't set \$language." 1>&2
4819                 exit 1
4820           fi
4821           case ",$enable_languages," in
4822           *,$lang_alias,*)
4823             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4824           esac
4825           ;;
4826         esac
4827 done
4828
4829
4830 # -------------------------
4831 # Checks for other programs
4832 # -------------------------
4833
4834 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4835 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4836 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4837 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   cat >conftest.make <<\_ACEOF
4841 all:
4842         @echo 'ac_maketemp="$(MAKE)"'
4843 _ACEOF
4844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4845 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4846 if test -n "$ac_maketemp"; then
4847   eval ac_cv_prog_make_${ac_make}_set=yes
4848 else
4849   eval ac_cv_prog_make_${ac_make}_set=no
4850 fi
4851 rm -f conftest.make
4852 fi
4853 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4854   echo "$as_me:$LINENO: result: yes" >&5
4855 echo "${ECHO_T}yes" >&6
4856   SET_MAKE=
4857 else
4858   echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6
4860   SET_MAKE="MAKE=${MAKE-make}"
4861 fi
4862
4863
4864 # Find some useful tools
4865 for ac_prog in gawk mawk nawk awk
4866 do
4867   # Extract the first word of "$ac_prog", so it can be a program name with args.
4868 set dummy $ac_prog; ac_word=$2
4869 echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871 if test "${ac_cv_prog_AWK+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   if test -n "$AWK"; then
4875   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882   for ac_exec_ext in '' $ac_executable_extensions; do
4883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884     ac_cv_prog_AWK="$ac_prog"
4885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886     break 2
4887   fi
4888 done
4889 done
4890
4891 fi
4892 fi
4893 AWK=$ac_cv_prog_AWK
4894 if test -n "$AWK"; then
4895   echo "$as_me:$LINENO: result: $AWK" >&5
4896 echo "${ECHO_T}$AWK" >&6
4897 else
4898   echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6
4900 fi
4901
4902   test -n "$AWK" && break
4903 done
4904
4905 # We need awk to run opts.sh (to create options.c and options.h).
4906 # Bail out if it's missing.
4907 case ${AWK} in
4908   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4909 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4910    { (exit 1); exit 1; }; } ;;
4911 esac
4912
4913 echo "$as_me:$LINENO: checking whether ln works" >&5
4914 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4915 if test "${gcc_cv_prog_LN+set}" = set; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918   rm -f conftestdata_t
4919 echo >conftestdata_f
4920 if ln conftestdata_f conftestdata_t 2>/dev/null
4921 then
4922   gcc_cv_prog_LN="ln"
4923 else
4924   if ln -s conftestdata_f conftestdata_t 2>/dev/null
4925   then
4926     gcc_cv_prog_LN="ln -s"
4927   else
4928     gcc_cv_prog_LN=cp
4929   fi
4930 fi
4931 rm -f conftestdata_f conftestdata_t
4932
4933 fi
4934 LN="$gcc_cv_prog_LN"
4935 if test "$gcc_cv_prog_LN" = "ln"; then
4936   echo "$as_me:$LINENO: result: yes" >&5
4937 echo "${ECHO_T}yes" >&6
4938 else
4939   if test "$gcc_cv_prog_LN" = "ln -s"; then
4940     echo "$as_me:$LINENO: result: no, using ln -s" >&5
4941 echo "${ECHO_T}no, using ln -s" >&6
4942   else
4943     echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4944 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4945   fi
4946 fi
4947
4948 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4949 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4950 if test "${gcc_cv_prog_LN_S+set}" = set; then
4951   echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953   rm -f conftestdata_t
4954 echo >conftestdata_f
4955 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4956 then
4957   gcc_cv_prog_LN_S="ln -s"
4958 else
4959   if ln conftestdata_f conftestdata_t 2>/dev/null
4960   then
4961     gcc_cv_prog_LN_S=ln
4962   else
4963     gcc_cv_prog_LN_S=cp
4964   fi
4965 fi
4966 rm -f conftestdata_f conftestdata_t
4967
4968 fi
4969 LN_S="$gcc_cv_prog_LN_S"
4970 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4971   echo "$as_me:$LINENO: result: yes" >&5
4972 echo "${ECHO_T}yes" >&6
4973 else
4974   if test "$gcc_cv_prog_LN_S" = "ln"; then
4975     echo "$as_me:$LINENO: result: no, using ln" >&5
4976 echo "${ECHO_T}no, using ln" >&6
4977   else
4978     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4979 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4980   fi
4981 fi
4982
4983 if test -n "$ac_tool_prefix"; then
4984   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4985 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4986 echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4988 if test "${ac_cv_prog_RANLIB+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   if test -n "$RANLIB"; then
4992   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999   for ac_exec_ext in '' $ac_executable_extensions; do
5000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003     break 2
5004   fi
5005 done
5006 done
5007
5008 fi
5009 fi
5010 RANLIB=$ac_cv_prog_RANLIB
5011 if test -n "$RANLIB"; then
5012   echo "$as_me:$LINENO: result: $RANLIB" >&5
5013 echo "${ECHO_T}$RANLIB" >&6
5014 else
5015   echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6
5017 fi
5018
5019 fi
5020 if test -z "$ac_cv_prog_RANLIB"; then
5021   ac_ct_RANLIB=$RANLIB
5022   # Extract the first word of "ranlib", so it can be a program name with args.
5023 set dummy ranlib; ac_word=$2
5024 echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029   if test -n "$ac_ct_RANLIB"; then
5030   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037   for ac_exec_ext in '' $ac_executable_extensions; do
5038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039     ac_cv_prog_ac_ct_RANLIB="ranlib"
5040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044 done
5045
5046   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5047 fi
5048 fi
5049 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5050 if test -n "$ac_ct_RANLIB"; then
5051   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5052 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5053 else
5054   echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5056 fi
5057
5058   RANLIB=$ac_ct_RANLIB
5059 else
5060   RANLIB="$ac_cv_prog_RANLIB"
5061 fi
5062
5063 # Find a good install program.  We prefer a C program (faster),
5064 # so one script is as good as another.  But avoid the broken or
5065 # incompatible versions:
5066 # SysV /etc/install, /usr/sbin/install
5067 # SunOS /usr/etc/install
5068 # IRIX /sbin/install
5069 # AIX /bin/install
5070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5072 # ./install, which can be erroneously created by make from ./install.sh.
5073 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5074 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5075 if test -z "$INSTALL"; then
5076 if test "${ac_cv_path_install+set}" = set; then
5077   echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5080   for ac_dir in $PATH; do
5081     # Account for people who put trailing slashes in PATH elements.
5082     case "$ac_dir/" in
5083     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5084     *)
5085       # OSF1 and SCO ODT 3.0 have their own names for install.
5086       for ac_prog in ginstall scoinst install; do
5087         if test -f $ac_dir/$ac_prog; then
5088           if test $ac_prog = install &&
5089             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5090             # AIX install.  It has an incompatible calling convention.
5091             # OSF/1 installbsd also uses dspmsg, but is usable.
5092             :
5093           else
5094             ac_cv_path_install="$ac_dir/$ac_prog -c"
5095             break 2
5096           fi
5097         fi
5098       done
5099       ;;
5100     esac
5101   done
5102   IFS="$ac_save_IFS"
5103
5104 fi
5105   if test "${ac_cv_path_install+set}" = set; then
5106     INSTALL="$ac_cv_path_install"
5107   else
5108     # As a last resort, use the slow shell script.  We don't cache a
5109     # path for INSTALL within a source directory, because that will
5110     # break other packages using the cache if that directory is
5111     # removed, or if the path is relative.
5112     INSTALL="$ac_install_sh"
5113   fi
5114 fi
5115 echo "$as_me:$LINENO: result: $INSTALL" >&5
5116 echo "${ECHO_T}$INSTALL" >&6
5117
5118 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5119 # It thinks the first close brace ends the variable substitution.
5120 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5121
5122 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5123
5124
5125 # See if cmp has --ignore-initial.
5126 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5127 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5128 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5129   echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131    echo abfoo >t1
5132   echo cdfoo >t2
5133   gcc_cv_prog_cmp_skip=slowcompare
5134   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5135     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5136       :
5137     else
5138       gcc_cv_prog_cmp_skip=gnucompare
5139     fi
5140   fi
5141   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5142     if cmp t1 t2 2 2 > /dev/null 2>&1; then
5143       if cmp t1 t2 1 1 > /dev/null 2>&1; then
5144         :
5145       else
5146         gcc_cv_prog_cmp_skip=fastcompare
5147       fi
5148     fi
5149   fi
5150   rm t1 t2
5151
5152 fi
5153 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5154 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5155 make_compare_target=$gcc_cv_prog_cmp_skip
5156
5157
5158
5159 # See if we have the mktemp command.
5160 # Extract the first word of "mktemp", so it can be a program name with args.
5161 set dummy mktemp; ac_word=$2
5162 echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5165   echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167   if test -n "$have_mktemp_command"; then
5168   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173   IFS=$as_save_IFS
5174   test -z "$as_dir" && as_dir=.
5175   for ac_exec_ext in '' $ac_executable_extensions; do
5176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177     ac_cv_prog_have_mktemp_command="yes"
5178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179     break 2
5180   fi
5181 done
5182 done
5183
5184   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5185 fi
5186 fi
5187 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5188 if test -n "$have_mktemp_command"; then
5189   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5190 echo "${ECHO_T}$have_mktemp_command" >&6
5191 else
5192   echo "$as_me:$LINENO: result: no" >&5
5193 echo "${ECHO_T}no" >&6
5194 fi
5195
5196
5197 # Do we have a single-tree copy of texinfo?
5198 if test -f $srcdir/../texinfo/Makefile.in; then
5199   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5200   gcc_cv_prog_makeinfo_modern=yes
5201   echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5202 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5203 else
5204   # See if makeinfo has been installed and is modern enough
5205   # that we can use it.
5206   # Extract the first word of "makeinfo", so it can be a program name with args.
5207 set dummy makeinfo; ac_word=$2
5208 echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   if test -n "$MAKEINFO"; then
5214   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221   for ac_exec_ext in '' $ac_executable_extensions; do
5222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5223     ac_cv_prog_MAKEINFO="makeinfo"
5224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225     break 2
5226   fi
5227 done
5228 done
5229
5230 fi
5231 fi
5232 MAKEINFO=$ac_cv_prog_MAKEINFO
5233 if test -n "$MAKEINFO"; then
5234   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5235 echo "${ECHO_T}$MAKEINFO" >&6
5236 else
5237   echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6
5239 fi
5240
5241 if test -n "$MAKEINFO"; then
5242   # Found it, now check the version.
5243   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5244 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5245 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248     ac_prog_version=`$MAKEINFO --version 2>&1 |
5249                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5250   echo "configure:5250: version of makeinfo is $ac_prog_version" >&5
5251   case $ac_prog_version in
5252     '')     gcc_cv_prog_makeinfo_modern=no;;
5253     4.[2-9]*)
5254             gcc_cv_prog_makeinfo_modern=yes;;
5255     *)      gcc_cv_prog_makeinfo_modern=no;;
5256   esac
5257
5258 fi
5259 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5260 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5261 else
5262   gcc_cv_prog_makeinfo_modern=no
5263 fi
5264
5265 fi
5266
5267 if test $gcc_cv_prog_makeinfo_modern = no; then
5268   { echo "$as_me:$LINENO: WARNING:
5269 *** Makeinfo is missing or too old.
5270 *** Info documentation will not be built." >&5
5271 echo "$as_me: WARNING:
5272 *** Makeinfo is missing or too old.
5273 *** Info documentation will not be built." >&2;}
5274   BUILD_INFO=
5275 else
5276   BUILD_INFO=info
5277 fi
5278
5279 # Is pod2man recent enough to regenerate manpages?
5280 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5281 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5282 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5283   echo "$as_me:$LINENO: result: yes" >&5
5284 echo "${ECHO_T}yes" >&6
5285   GENERATED_MANPAGES=generated-manpages
5286 else
5287   echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6
5289   GENERATED_MANPAGES=
5290 fi
5291
5292 # How about lex?
5293 if test -f $srcdir/../flex/skel.c; then
5294   FLEX='$(objdir)/../flex/flex'
5295 else
5296   # Extract the first word of "flex", so it can be a program name with args.
5297 set dummy flex; ac_word=$2
5298 echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300 if test "${ac_cv_prog_FLEX+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303   if test -n "$FLEX"; then
5304   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309   IFS=$as_save_IFS
5310   test -z "$as_dir" && as_dir=.
5311   for ac_exec_ext in '' $ac_executable_extensions; do
5312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313     ac_cv_prog_FLEX="flex"
5314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315     break 2
5316   fi
5317 done
5318 done
5319
5320   test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5321 fi
5322 fi
5323 FLEX=$ac_cv_prog_FLEX
5324 if test -n "$FLEX"; then
5325   echo "$as_me:$LINENO: result: $FLEX" >&5
5326 echo "${ECHO_T}$FLEX" >&6
5327 else
5328   echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5330 fi
5331
5332 fi
5333
5334 # Bison?
5335 # The -L switch is so bison can find its skeleton file.
5336 if test -f $srcdir/../bison/bison.simple; then
5337   BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5338 else
5339   # Extract the first word of "bison", so it can be a program name with args.
5340 set dummy bison; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_prog_BISON+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   if test -n "$BISON"; then
5347   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354   for ac_exec_ext in '' $ac_executable_extensions; do
5355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356     ac_cv_prog_BISON="bison"
5357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361 done
5362
5363   test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5364 fi
5365 fi
5366 BISON=$ac_cv_prog_BISON
5367 if test -n "$BISON"; then
5368   echo "$as_me:$LINENO: result: $BISON" >&5
5369 echo "${ECHO_T}$BISON" >&6
5370 else
5371   echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6
5373 fi
5374
5375 fi
5376
5377 # --------------------
5378 # Checks for C headers
5379 # --------------------
5380
5381 echo "$as_me:$LINENO: checking for GNU C library" >&5
5382 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5383 if test "${gcc_cv_glibc+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h.  */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h.  */
5392 #include <features.h>
5393 int
5394 main ()
5395 {
5396
5397 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5398 #error Not a GNU C library system
5399 #endif
5400   ;
5401   return 0;
5402 }
5403 _ACEOF
5404 rm -f conftest.$ac_objext
5405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406   (eval $ac_compile) 2>conftest.er1
5407   ac_status=$?
5408   grep -v '^ *+' conftest.er1 >conftest.err
5409   rm -f conftest.er1
5410   cat conftest.err >&5
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); } &&
5413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415   (eval $ac_try) 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); }; } &&
5419          { ac_try='test -s conftest.$ac_objext'
5420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421   (eval $ac_try) 2>&5
5422   ac_status=$?
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); }; }; then
5425   gcc_cv_glibc=yes
5426 else
5427   echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5429
5430 gcc_cv_glibc=no
5431 fi
5432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433 fi
5434
5435 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5436 echo "${ECHO_T}$gcc_cv_glibc" >&6
5437 if test $gcc_cv_glibc = yes; then
5438
5439 cat >>confdefs.h <<\_ACEOF
5440 #define _GNU_SOURCE 1
5441 _ACEOF
5442
5443 fi
5444
5445 # Need to reject headers which give warnings, so that the -Werror bootstrap
5446 # works later. *sigh*  This needs to come before all header checks.
5447
5448 ac_c_preproc_warn_flag=yes
5449
5450 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5451 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5452 if test "${ac_cv_header_stdc+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455   cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461 #include <stdlib.h>
5462 #include <stdarg.h>
5463 #include <string.h>
5464 #include <float.h>
5465
5466 int
5467 main ()
5468 {
5469
5470   ;
5471   return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476   (eval $ac_compile) 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } &&
5483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485   (eval $ac_try) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); }; } &&
5489          { ac_try='test -s conftest.$ac_objext'
5490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491   (eval $ac_try) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; }; then
5495   ac_cv_header_stdc=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_cv_header_stdc=no
5501 fi
5502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5503
5504 if test $ac_cv_header_stdc = yes; then
5505   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5506   cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5512 #include <string.h>
5513
5514 _ACEOF
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516   $EGREP "memchr" >/dev/null 2>&1; then
5517   :
5518 else
5519   ac_cv_header_stdc=no
5520 fi
5521 rm -f conftest*
5522
5523 fi
5524
5525 if test $ac_cv_header_stdc = yes; then
5526   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5527   cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h.  */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h.  */
5533 #include <stdlib.h>
5534
5535 _ACEOF
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537   $EGREP "free" >/dev/null 2>&1; then
5538   :
5539 else
5540   ac_cv_header_stdc=no
5541 fi
5542 rm -f conftest*
5543
5544 fi
5545
5546 if test $ac_cv_header_stdc = yes; then
5547   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5548   if test "$cross_compiling" = yes; then
5549   :
5550 else
5551   cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h.  */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h.  */
5557 #include <ctype.h>
5558 #if ((' ' & 0x0FF) == 0x020)
5559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5561 #else
5562 # define ISLOWER(c) \
5563                    (('a' <= (c) && (c) <= 'i') \
5564                      || ('j' <= (c) && (c) <= 'r') \
5565                      || ('s' <= (c) && (c) <= 'z'))
5566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5567 #endif
5568
5569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5570 int
5571 main ()
5572 {
5573   int i;
5574   for (i = 0; i < 256; i++)
5575     if (XOR (islower (i), ISLOWER (i))
5576         || toupper (i) != TOUPPER (i))
5577       exit(2);
5578   exit (0);
5579 }
5580 _ACEOF
5581 rm -f conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583   (eval $ac_link) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588   (eval $ac_try) 2>&5
5589   ac_status=$?
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); }; }; then
5592   :
5593 else
5594   echo "$as_me: program exited with status $ac_status" >&5
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5597
5598 ( exit $ac_status )
5599 ac_cv_header_stdc=no
5600 fi
5601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5602 fi
5603 fi
5604 fi
5605 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5606 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5607 if test $ac_cv_header_stdc = yes; then
5608
5609 cat >>confdefs.h <<\_ACEOF
5610 #define STDC_HEADERS 1
5611 _ACEOF
5612
5613 fi
5614
5615 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5616 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5617 if test "${ac_cv_header_time+set}" = set; then
5618   echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620   cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h.  */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h.  */
5626 #include <sys/types.h>
5627 #include <sys/time.h>
5628 #include <time.h>
5629
5630 int
5631 main ()
5632 {
5633 if ((struct tm *) 0)
5634 return 0;
5635   ;
5636   return 0;
5637 }
5638 _ACEOF
5639 rm -f conftest.$ac_objext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5641   (eval $ac_compile) 2>conftest.er1
5642   ac_status=$?
5643   grep -v '^ *+' conftest.er1 >conftest.err
5644   rm -f conftest.er1
5645   cat conftest.err >&5
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); } &&
5648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650   (eval $ac_try) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }; } &&
5654          { ac_try='test -s conftest.$ac_objext'
5655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656   (eval $ac_try) 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); }; }; then
5660   ac_cv_header_time=yes
5661 else
5662   echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665 ac_cv_header_time=no
5666 fi
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668 fi
5669 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5670 echo "${ECHO_T}$ac_cv_header_time" >&6
5671 if test $ac_cv_header_time = yes; then
5672
5673 cat >>confdefs.h <<\_ACEOF
5674 #define TIME_WITH_SYS_TIME 1
5675 _ACEOF
5676
5677 fi
5678
5679 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5680 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5681 if test "${ac_cv_header_stdbool_h+set}" = set; then
5682   echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684   cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 #include <stdbool.h>
5691 int
5692 main ()
5693 {
5694 bool foo = false;
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701   (eval $ac_compile) 2>conftest.er1
5702   ac_status=$?
5703   grep -v '^ *+' conftest.er1 >conftest.err
5704   rm -f conftest.er1
5705   cat conftest.err >&5
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); } &&
5708          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710   (eval $ac_try) 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; } &&
5714          { ac_try='test -s conftest.$ac_objext'
5715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716   (eval $ac_try) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); }; }; then
5720   ac_cv_header_stdbool_h=yes
5721 else
5722   echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725 ac_cv_header_stdbool_h=no
5726 fi
5727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5728 fi
5729 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5730 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5731 if test $ac_cv_header_stdbool_h = yes; then
5732
5733 cat >>confdefs.h <<\_ACEOF
5734 #define HAVE_STDBOOL_H 1
5735 _ACEOF
5736
5737 fi
5738
5739 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5740 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5741 if test "${gcc_cv_header_string+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h.  */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h.  */
5750 #include <string.h>
5751 #include <strings.h>
5752 int
5753 main ()
5754 {
5755
5756   ;
5757   return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762   (eval $ac_compile) 2>conftest.er1
5763   ac_status=$?
5764   grep -v '^ *+' conftest.er1 >conftest.err
5765   rm -f conftest.er1
5766   cat conftest.err >&5
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } &&
5769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771   (eval $ac_try) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; } &&
5775          { ac_try='test -s conftest.$ac_objext'
5776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777   (eval $ac_try) 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); }; }; then
5781   gcc_cv_header_string=yes
5782 else
5783   echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 gcc_cv_header_string=no
5787 fi
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789 fi
5790 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5791 echo "${ECHO_T}$gcc_cv_header_string" >&6
5792 if test $gcc_cv_header_string = yes; then
5793
5794 cat >>confdefs.h <<\_ACEOF
5795 #define STRING_WITH_STRINGS 1
5796 _ACEOF
5797
5798 fi
5799
5800 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5801 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5802 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811 #include <sys/types.h>
5812 #include <sys/wait.h>
5813 #ifndef WEXITSTATUS
5814 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5815 #endif
5816 #ifndef WIFEXITED
5817 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5818 #endif
5819
5820 int
5821 main ()
5822 {
5823   int s;
5824   wait (&s);
5825   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5826   ;
5827   return 0;
5828 }
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832   (eval $ac_compile) 2>conftest.er1
5833   ac_status=$?
5834   grep -v '^ *+' conftest.er1 >conftest.err
5835   rm -f conftest.er1
5836   cat conftest.err >&5
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); } &&
5839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841   (eval $ac_try) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); }; } &&
5845          { ac_try='test -s conftest.$ac_objext'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; }; then
5851   ac_cv_header_sys_wait_h=yes
5852 else
5853   echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 ac_cv_header_sys_wait_h=no
5857 fi
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859 fi
5860 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5861 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5862 if test $ac_cv_header_sys_wait_h = yes; then
5863
5864 cat >>confdefs.h <<\_ACEOF
5865 #define HAVE_SYS_WAIT_H 1
5866 _ACEOF
5867
5868 fi
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5892                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5893                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5894                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5895 do
5896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5897 echo "$as_me:$LINENO: checking for $ac_header" >&5
5898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h.  */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h.  */
5908 #include <$ac_header>
5909 _ACEOF
5910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5912   ac_status=$?
5913   grep -v '^ *+' conftest.er1 >conftest.err
5914   rm -f conftest.er1
5915   cat conftest.err >&5
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); } >/dev/null; then
5918   if test -s conftest.err; then
5919     ac_cpp_err=$ac_c_preproc_warn_flag
5920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5921   else
5922     ac_cpp_err=
5923   fi
5924 else
5925   ac_cpp_err=yes
5926 fi
5927 if test -z "$ac_cpp_err"; then
5928   eval "$as_ac_Header=yes"
5929 else
5930   echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933   eval "$as_ac_Header=no"
5934 fi
5935 rm -f conftest.err conftest.$ac_ext
5936 fi
5937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5940   cat >>confdefs.h <<_ACEOF
5941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5942 _ACEOF
5943
5944 fi
5945 done
5946
5947
5948 # Check for thread headers.
5949 echo "$as_me:$LINENO: checking for thread.h" >&5
5950 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5951 if test "${ac_cv_header_thread_h+set}" = set; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960 #include <thread.h>
5961 _ACEOF
5962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5964   ac_status=$?
5965   grep -v '^ *+' conftest.er1 >conftest.err
5966   rm -f conftest.er1
5967   cat conftest.err >&5
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); } >/dev/null; then
5970   if test -s conftest.err; then
5971     ac_cpp_err=$ac_c_preproc_warn_flag
5972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5973   else
5974     ac_cpp_err=
5975   fi
5976 else
5977   ac_cpp_err=yes
5978 fi
5979 if test -z "$ac_cpp_err"; then
5980   ac_cv_header_thread_h=yes
5981 else
5982   echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5984
5985   ac_cv_header_thread_h=no
5986 fi
5987 rm -f conftest.err conftest.$ac_ext
5988 fi
5989 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5990 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5991 if test $ac_cv_header_thread_h = yes; then
5992   have_thread_h=yes
5993 else
5994   have_thread_h=
5995 fi
5996
5997 echo "$as_me:$LINENO: checking for pthread.h" >&5
5998 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5999 if test "${ac_cv_header_pthread_h+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h.  */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h.  */
6008 #include <pthread.h>
6009 _ACEOF
6010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } >/dev/null; then
6018   if test -s conftest.err; then
6019     ac_cpp_err=$ac_c_preproc_warn_flag
6020     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6021   else
6022     ac_cpp_err=
6023   fi
6024 else
6025   ac_cpp_err=yes
6026 fi
6027 if test -z "$ac_cpp_err"; then
6028   ac_cv_header_pthread_h=yes
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033   ac_cv_header_pthread_h=no
6034 fi
6035 rm -f conftest.err conftest.$ac_ext
6036 fi
6037 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6038 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6039 if test $ac_cv_header_pthread_h = yes; then
6040   have_pthread_h=yes
6041 else
6042   have_pthread_h=
6043 fi
6044
6045
6046 # These tests can't be done till we know if we have limits.h.
6047 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6048 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6049 if test "${gcc_cv_decl_char_bit+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058 #ifdef HAVE_LIMITS_H
6059 #include <limits.h>
6060 #endif
6061 #ifdef CHAR_BIT
6062 found
6063 #endif
6064 _ACEOF
6065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6066   $EGREP "found" >/dev/null 2>&1; then
6067   gcc_cv_decl_char_bit=yes
6068 else
6069   gcc_cv_decl_char_bit=no
6070 fi
6071 rm -f conftest*
6072
6073
6074 fi
6075 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6076 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6077 if test $gcc_cv_decl_char_bit = no; then
6078   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6079 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6080 if test "${gcc_cv_c_nbby+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   i=8
6084  gcc_cv_c_nbby=
6085  while test $i -lt 65; do
6086    cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092
6093 int
6094 main ()
6095 {
6096 switch(0) {
6097   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6098   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6099   ; }
6100   ;
6101   return 0;
6102 }
6103 _ACEOF
6104 rm -f conftest.$ac_objext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106   (eval $ac_compile) 2>conftest.er1
6107   ac_status=$?
6108   grep -v '^ *+' conftest.er1 >conftest.err
6109   rm -f conftest.er1
6110   cat conftest.err >&5
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } &&
6113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115   (eval $ac_try) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }; } &&
6119          { ac_try='test -s conftest.$ac_objext'
6120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121   (eval $ac_try) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; }; then
6125   gcc_cv_c_nbby=$i; break
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130 fi
6131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6132    i=`expr $i + 1`
6133  done
6134  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6135
6136 fi
6137 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6138 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6139 if test $gcc_cv_c_nbby = failed; then
6140   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6141 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6142    { (exit 1); exit 1; }; }
6143 else
6144
6145 cat >>confdefs.h <<_ACEOF
6146 #define CHAR_BIT $gcc_cv_c_nbby
6147 _ACEOF
6148
6149 fi
6150 fi
6151 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6152 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6153 if test "${ac_cv_c_bigendian+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   ac_cv_c_bigendian=unknown
6157 # See if sys/param.h defines the BYTE_ORDER macro.
6158 cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h.  */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h.  */
6164 #include <sys/types.h>
6165 #include <sys/param.h>
6166 int
6167 main ()
6168 {
6169
6170 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6171  bogus endian macros
6172 #endif
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179   (eval $ac_compile) 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } &&
6186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; } &&
6192          { ac_try='test -s conftest.$ac_objext'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; }; then
6198   # It does; now see whether it defined to BIG_ENDIAN or not.
6199 cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h.  */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h.  */
6205 #include <sys/types.h>
6206 #include <sys/param.h>
6207 int
6208 main ()
6209 {
6210
6211 #if BYTE_ORDER != BIG_ENDIAN
6212  not big endian
6213 #endif
6214   ;
6215   return 0;
6216 }
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220   (eval $ac_compile) 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } &&
6227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229   (eval $ac_try) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); }; } &&
6233          { ac_try='test -s conftest.$ac_objext'
6234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235   (eval $ac_try) 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }; }; then
6239   ac_cv_c_bigendian=yes
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244 ac_cv_c_bigendian=no
6245 fi
6246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6247 else
6248   echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251 fi
6252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6253 if test $ac_cv_c_bigendian = unknown; then
6254 if test "$cross_compiling" = yes; then
6255    echo $ac_n "cross-compiling... " 2>&6
6256 else
6257   cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h.  */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h.  */
6263 main () {
6264   /* Are we little or big endian?  From Harbison&Steele.  */
6265   union
6266   {
6267     long l;
6268     char c[sizeof (long)];
6269   } u;
6270   u.l = 1;
6271   exit (u.c[sizeof (long) - 1] == 1);
6272 }
6273 _ACEOF
6274 rm -f conftest$ac_exeext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276   (eval $ac_link) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281   (eval $ac_try) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); }; }; then
6285   ac_cv_c_bigendian=no
6286 else
6287   echo "$as_me: program exited with status $ac_status" >&5
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 ( exit $ac_status )
6292 ac_cv_c_bigendian=yes
6293 fi
6294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 fi
6297 fi
6298 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6299 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6300 if test $ac_cv_c_bigendian = unknown; then
6301 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6302 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6303
6304 cat >conftest.c <<EOF
6305 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6306 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6307 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6308 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6309 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6310 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6311 int main() { _ascii (); _ebcdic (); return 0; }
6312 EOF
6313  if test -f conftest.c ; then
6314      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6315         if test `grep -l BIGenDianSyS conftest.o` ; then
6316            echo $ac_n ' big endian probe OK, ' 1>&6
6317            ac_cv_c_bigendian=yes
6318         fi
6319         if test `grep -l LiTTleEnDian conftest.o` ; then
6320            echo $ac_n ' little endian probe OK, ' 1>&6
6321            if test $ac_cv_c_bigendian = yes ; then
6322             ac_cv_c_bigendian=unknown;
6323            else
6324             ac_cv_c_bigendian=no
6325            fi
6326         fi
6327         echo $ac_n 'guessing bigendian ...  ' >&6
6328      fi
6329   fi
6330 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6331 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6332 fi
6333 if test $ac_cv_c_bigendian = yes; then
6334
6335 cat >>confdefs.h <<\_ACEOF
6336 #define WORDS_BIGENDIAN 1
6337 _ACEOF
6338
6339
6340 cat >>confdefs.h <<\_ACEOF
6341 #define HOST_WORDS_BIG_ENDIAN 1
6342 _ACEOF
6343
6344   BYTEORDER=4321
6345 else
6346   BYTEORDER=1234
6347 fi
6348
6349 cat >>confdefs.h <<_ACEOF
6350 #define BYTEORDER $BYTEORDER
6351 _ACEOF
6352
6353 if test $ac_cv_c_bigendian = unknown; then
6354   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6355 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6356    { (exit 1); exit 1; }; }
6357 fi
6358
6359
6360 # --------
6361 # UNSORTED
6362 # --------
6363
6364 # Stage specific cflags for build.
6365 stage1_cflags=
6366 case $build in
6367 vax-*-*)
6368   if test x$GCC = xyes
6369   then
6370     stage1_cflags="-Wa,-J"
6371   else
6372     stage1_cflags="-J"
6373   fi
6374   ;;
6375 powerpc-*-darwin*)
6376   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6377   # sources; use -no-cpp-precomp to get to GNU cpp.
6378   # Apple's GCC has bugs in designated initializer handling, so disable
6379   # that too.
6380   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6381   ;;
6382 esac
6383
6384
6385 # These libraries may be used by collect2.
6386 # We may need a special search path to get them linked.
6387 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6388 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6389 if test "${gcc_cv_collect2_libs+set}" = set; then
6390   echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392   save_LIBS="$LIBS"
6393 for libs in '' -lld -lmld \
6394                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6395                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6396 do
6397         LIBS="$libs"
6398         cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h.  */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h.  */
6404
6405 /* Override any gcc2 internal prototype to avoid an error.  */
6406 #ifdef __cplusplus
6407 extern "C"
6408 #endif
6409 /* We use char because int might match the return type of a gcc2
6410    builtin and then its argument prototype would still apply.  */
6411 char ldopen ();
6412 int
6413 main ()
6414 {
6415 ldopen ();
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 rm -f conftest.$ac_objext conftest$ac_exeext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422   (eval $ac_link) 2>conftest.er1
6423   ac_status=$?
6424   grep -v '^ *+' conftest.er1 >conftest.err
6425   rm -f conftest.er1
6426   cat conftest.err >&5
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; } &&
6435          { ac_try='test -s conftest$ac_exeext'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441   gcc_cv_collect2_libs="$libs"; break
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6445
6446 fi
6447 rm -f conftest.err conftest.$ac_objext \
6448       conftest$ac_exeext conftest.$ac_ext
6449 done
6450 LIBS="$save_LIBS"
6451 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6452 fi
6453 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6454 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6455 case $gcc_cv_collect2_libs in
6456         "none required")        ;;
6457         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6458 esac
6459
6460
6461 # When building Ada code on Alpha, we need exc_resume which is usually in
6462 # -lexc.  So test for it.
6463 save_LIBS="$LIBS"
6464 LIBS=
6465 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6466 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6467 if test "${ac_cv_search_exc_resume+set}" = set; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470   ac_func_search_save_LIBS=$LIBS
6471 ac_cv_search_exc_resume=no
6472 cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h.  */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h.  */
6478
6479 /* Override any gcc2 internal prototype to avoid an error.  */
6480 #ifdef __cplusplus
6481 extern "C"
6482 #endif
6483 /* We use char because int might match the return type of a gcc2
6484    builtin and then its argument prototype would still apply.  */
6485 char exc_resume ();
6486 int
6487 main ()
6488 {
6489 exc_resume ();
6490   ;
6491   return 0;
6492 }
6493 _ACEOF
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496   (eval $ac_link) 2>conftest.er1
6497   ac_status=$?
6498   grep -v '^ *+' conftest.er1 >conftest.err
6499   rm -f conftest.er1
6500   cat conftest.err >&5
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); } &&
6503          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505   (eval $ac_try) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }; } &&
6509          { ac_try='test -s conftest$ac_exeext'
6510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511   (eval $ac_try) 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); }; }; then
6515   ac_cv_search_exc_resume="none required"
6516 else
6517   echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520 fi
6521 rm -f conftest.err conftest.$ac_objext \
6522       conftest$ac_exeext conftest.$ac_ext
6523 if test "$ac_cv_search_exc_resume" = no; then
6524   for ac_lib in exc; do
6525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6526     cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h.  */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h.  */
6532
6533 /* Override any gcc2 internal prototype to avoid an error.  */
6534 #ifdef __cplusplus
6535 extern "C"
6536 #endif
6537 /* We use char because int might match the return type of a gcc2
6538    builtin and then its argument prototype would still apply.  */
6539 char exc_resume ();
6540 int
6541 main ()
6542 {
6543 exc_resume ();
6544   ;
6545   return 0;
6546 }
6547 _ACEOF
6548 rm -f conftest.$ac_objext conftest$ac_exeext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550   (eval $ac_link) 2>conftest.er1
6551   ac_status=$?
6552   grep -v '^ *+' conftest.er1 >conftest.err
6553   rm -f conftest.er1
6554   cat conftest.err >&5
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); } &&
6557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559   (eval $ac_try) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; } &&
6563          { ac_try='test -s conftest$ac_exeext'
6564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565   (eval $ac_try) 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); }; }; then
6569   ac_cv_search_exc_resume="-l$ac_lib"
6570 break
6571 else
6572   echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6574
6575 fi
6576 rm -f conftest.err conftest.$ac_objext \
6577       conftest$ac_exeext conftest.$ac_ext
6578   done
6579 fi
6580 LIBS=$ac_func_search_save_LIBS
6581 fi
6582 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6583 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6584 if test "$ac_cv_search_exc_resume" != no; then
6585   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6586
6587 fi
6588
6589 GNAT_LIBEXC="$LIBS"
6590 LIBS="$save_LIBS"
6591
6592
6593 # Some systems put ldexp and frexp in libm instead of libc; assume
6594 # they're both in the same place.  jcf-dump needs them.
6595 save_LIBS="$LIBS"
6596 LIBS=
6597 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6598 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6599 if test "${ac_cv_search_ldexp+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602   ac_func_search_save_LIBS=$LIBS
6603 ac_cv_search_ldexp=no
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h.  */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h.  */
6610
6611 /* Override any gcc2 internal prototype to avoid an error.  */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 /* We use char because int might match the return type of a gcc2
6616    builtin and then its argument prototype would still apply.  */
6617 char ldexp ();
6618 int
6619 main ()
6620 {
6621 ldexp ();
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628   (eval $ac_link) 2>conftest.er1
6629   ac_status=$?
6630   grep -v '^ *+' conftest.er1 >conftest.err
6631   rm -f conftest.er1
6632   cat conftest.err >&5
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } &&
6635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637   (eval $ac_try) 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }; } &&
6641          { ac_try='test -s conftest$ac_exeext'
6642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643   (eval $ac_try) 2>&5
6644   ac_status=$?
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); }; }; then
6647   ac_cv_search_ldexp="none required"
6648 else
6649   echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652 fi
6653 rm -f conftest.err conftest.$ac_objext \
6654       conftest$ac_exeext conftest.$ac_ext
6655 if test "$ac_cv_search_ldexp" = no; then
6656   for ac_lib in m; do
6657     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6658     cat >conftest.$ac_ext <<_ACEOF
6659 /* confdefs.h.  */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h.  */
6664
6665 /* Override any gcc2 internal prototype to avoid an error.  */
6666 #ifdef __cplusplus
6667 extern "C"
6668 #endif
6669 /* We use char because int might match the return type of a gcc2
6670    builtin and then its argument prototype would still apply.  */
6671 char ldexp ();
6672 int
6673 main ()
6674 {
6675 ldexp ();
6676   ;
6677   return 0;
6678 }
6679 _ACEOF
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6682   (eval $ac_link) 2>conftest.er1
6683   ac_status=$?
6684   grep -v '^ *+' conftest.er1 >conftest.err
6685   rm -f conftest.er1
6686   cat conftest.err >&5
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } &&
6689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691   (eval $ac_try) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; } &&
6695          { ac_try='test -s conftest$ac_exeext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   ac_cv_search_ldexp="-l$ac_lib"
6702 break
6703 else
6704   echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6706
6707 fi
6708 rm -f conftest.err conftest.$ac_objext \
6709       conftest$ac_exeext conftest.$ac_ext
6710   done
6711 fi
6712 LIBS=$ac_func_search_save_LIBS
6713 fi
6714 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6715 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6716 if test "$ac_cv_search_ldexp" != no; then
6717   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6718
6719 fi
6720
6721 LDEXP_LIB="$LIBS"
6722 LIBS="$save_LIBS"
6723
6724
6725 # Use <inttypes.h> only if it exists,
6726 # doesn't clash with <sys/types.h>, and declares intmax_t.
6727 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6728 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6729 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6730   echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732   cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h.  */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h.  */
6738 #include <sys/types.h>
6739 #include <inttypes.h>
6740 int
6741 main ()
6742 {
6743 intmax_t i = -1;
6744   ;
6745   return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750   (eval $ac_compile) 2>conftest.er1
6751   ac_status=$?
6752   grep -v '^ *+' conftest.er1 >conftest.err
6753   rm -f conftest.er1
6754   cat conftest.err >&5
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } &&
6757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; } &&
6763          { ac_try='test -s conftest.$ac_objext'
6764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765   (eval $ac_try) 2>&5
6766   ac_status=$?
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); }; }; then
6769   gcc_cv_header_inttypes_h=yes
6770 else
6771   echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 gcc_cv_header_inttypes_h=no
6775 fi
6776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6777 fi
6778
6779 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6780 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6781 if test $gcc_cv_header_inttypes_h = yes; then
6782
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_INTTYPES_H 1
6785 _ACEOF
6786
6787 fi
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6816         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6817         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6818         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6819         setlocale
6820 do
6821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6822 echo "$as_me:$LINENO: checking for $ac_func" >&5
6823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6824 if eval "test \"\${$as_ac_var+set}\" = set"; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h.  */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h.  */
6833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6835 #define $ac_func innocuous_$ac_func
6836
6837 /* System header to define __stub macros and hopefully few prototypes,
6838     which can conflict with char $ac_func (); below.
6839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6840     <limits.h> exists even on freestanding compilers.  */
6841
6842 #ifdef __STDC__
6843 # include <limits.h>
6844 #else
6845 # include <assert.h>
6846 #endif
6847
6848 #undef $ac_func
6849
6850 /* Override any gcc2 internal prototype to avoid an error.  */
6851 #ifdef __cplusplus
6852 extern "C"
6853 {
6854 #endif
6855 /* We use char because int might match the return type of a gcc2
6856    builtin and then its argument prototype would still apply.  */
6857 char $ac_func ();
6858 /* The GNU C library defines this for functions which it implements
6859     to always fail with ENOSYS.  Some functions are actually named
6860     something starting with __ and the normal name is an alias.  */
6861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6862 choke me
6863 #else
6864 char (*f) () = $ac_func;
6865 #endif
6866 #ifdef __cplusplus
6867 }
6868 #endif
6869
6870 int
6871 main ()
6872 {
6873 return f != $ac_func;
6874   ;
6875   return 0;
6876 }
6877 _ACEOF
6878 rm -f conftest.$ac_objext conftest$ac_exeext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880   (eval $ac_link) 2>conftest.er1
6881   ac_status=$?
6882   grep -v '^ *+' conftest.er1 >conftest.err
6883   rm -f conftest.er1
6884   cat conftest.err >&5
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); } &&
6887          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889   (eval $ac_try) 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; } &&
6893          { ac_try='test -s conftest$ac_exeext'
6894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895   (eval $ac_try) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }; }; then
6899   eval "$as_ac_var=yes"
6900 else
6901   echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904 eval "$as_ac_var=no"
6905 fi
6906 rm -f conftest.err conftest.$ac_objext \
6907       conftest$ac_exeext conftest.$ac_ext
6908 fi
6909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6911 if test `eval echo '${'$as_ac_var'}'` = yes; then
6912   cat >>confdefs.h <<_ACEOF
6913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6914 _ACEOF
6915
6916 fi
6917 done
6918
6919
6920 if test x$ac_cv_func_mbstowcs = xyes; then
6921   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6922 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6923 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6924   echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926       if test "$cross_compiling" = yes; then
6927   gcc_cv_func_mbstowcs_works=yes
6928 else
6929   cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h.  */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h.  */
6935 #include <stdlib.h>
6936 int main()
6937 {
6938   mbstowcs(0, "", 0);
6939   return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest$ac_exeext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944   (eval $ac_link) 2>&5
6945   ac_status=$?
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949   (eval $ac_try) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); }; }; then
6953   gcc_cv_func_mbstowcs_works=yes
6954 else
6955   echo "$as_me: program exited with status $ac_status" >&5
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6958
6959 ( exit $ac_status )
6960 gcc_cv_func_mbstowcs_works=no
6961 fi
6962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6963 fi
6964 fi
6965 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6966 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6967   if test x$gcc_cv_func_mbstowcs_works = xyes; then
6968
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_WORKING_MBSTOWCS 1
6971 _ACEOF
6972
6973   fi
6974 fi
6975
6976 echo "$as_me:$LINENO: checking for ssize_t" >&5
6977 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6978 if test "${ac_cv_type_ssize_t+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987 $ac_includes_default
6988 int
6989 main ()
6990 {
6991 if ((ssize_t *) 0)
6992   return 0;
6993 if (sizeof (ssize_t))
6994   return 0;
6995   ;
6996   return 0;
6997 }
6998 _ACEOF
6999 rm -f conftest.$ac_objext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001   (eval $ac_compile) 2>conftest.er1
7002   ac_status=$?
7003   grep -v '^ *+' conftest.er1 >conftest.err
7004   rm -f conftest.er1
7005   cat conftest.err >&5
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); } &&
7008          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010   (eval $ac_try) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); }; } &&
7014          { ac_try='test -s conftest.$ac_objext'
7015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016   (eval $ac_try) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; }; then
7020   ac_cv_type_ssize_t=yes
7021 else
7022   echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7024
7025 ac_cv_type_ssize_t=no
7026 fi
7027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7028 fi
7029 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7030 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7031 if test $ac_cv_type_ssize_t = yes; then
7032   :
7033 else
7034
7035 cat >>confdefs.h <<_ACEOF
7036 #define ssize_t int
7037 _ACEOF
7038
7039 fi
7040
7041
7042 # Try to determine the array type of the second argument of getgroups
7043 # for the target system (int or gid_t).
7044 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7045 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7046 if test "${ac_cv_type_uid_t+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049   cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h.  */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h.  */
7055 #include <sys/types.h>
7056
7057 _ACEOF
7058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059   $EGREP "uid_t" >/dev/null 2>&1; then
7060   ac_cv_type_uid_t=yes
7061 else
7062   ac_cv_type_uid_t=no
7063 fi
7064 rm -f conftest*
7065
7066 fi
7067 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7068 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7069 if test $ac_cv_type_uid_t = no; then
7070
7071 cat >>confdefs.h <<\_ACEOF
7072 #define uid_t int
7073 _ACEOF
7074
7075
7076 cat >>confdefs.h <<\_ACEOF
7077 #define gid_t int
7078 _ACEOF
7079
7080 fi
7081
7082 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7083 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7084 if test "${ac_cv_type_getgroups+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087   if test "$cross_compiling" = yes; then
7088   ac_cv_type_getgroups=cross
7089 else
7090   cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h.  */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h.  */
7096 /* Thanks to Mike Rendell for this test.  */
7097 #include <sys/types.h>
7098 #define NGID 256
7099 #undef MAX
7100 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7101
7102 int
7103 main ()
7104 {
7105   gid_t gidset[NGID];
7106   int i, n;
7107   union { gid_t gval; long lval; }  val;
7108
7109   val.lval = -1;
7110   for (i = 0; i < NGID; i++)
7111     gidset[i] = val.gval;
7112   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7113                  gidset);
7114   /* Exit non-zero if getgroups seems to require an array of ints.  This
7115      happens when gid_t is short but getgroups modifies an array of ints.  */
7116   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7117 }
7118 _ACEOF
7119 rm -f conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121   (eval $ac_link) 2>&5
7122   ac_status=$?
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126   (eval $ac_try) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); }; }; then
7130   ac_cv_type_getgroups=gid_t
7131 else
7132   echo "$as_me: program exited with status $ac_status" >&5
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136 ( exit $ac_status )
7137 ac_cv_type_getgroups=int
7138 fi
7139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7140 fi
7141 if test $ac_cv_type_getgroups = cross; then
7142         cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 #include <unistd.h>
7149
7150 _ACEOF
7151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7153   ac_cv_type_getgroups=gid_t
7154 else
7155   ac_cv_type_getgroups=int
7156 fi
7157 rm -f conftest*
7158
7159 fi
7160 fi
7161 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7162 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7163
7164 cat >>confdefs.h <<_ACEOF
7165 #define GETGROUPS_T $ac_cv_type_getgroups
7166 _ACEOF
7167
7168
7169 if test "${target}" = "${build}"; then
7170   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7171 else
7172   case "${target}" in
7173         # This condition may need some tweaking.  It should include all
7174         # targets where the array type of the second argument of getgroups
7175         # is int and the type of gid_t is not equivalent to int.
7176         *-*-sunos* | *-*-ultrix*)
7177                 TARGET_GETGROUPS_T=int
7178                 ;;
7179         *)
7180                 TARGET_GETGROUPS_T=gid_t
7181                 ;;
7182   esac
7183 fi
7184
7185
7186 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7187 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7188 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   if test "$cross_compiling" = yes; then
7192   gcc_cv_func_printf_ptr=no
7193 else
7194   cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h.  */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h.  */
7200 #include <stdio.h>
7201
7202 int main()
7203 {
7204   char buf[64];
7205   char *p = buf, *q = NULL;
7206   sprintf(buf, "%p", p);
7207   sscanf(buf, "%p", &q);
7208   return (p != q);
7209 }
7210 _ACEOF
7211 rm -f conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213   (eval $ac_link) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218   (eval $ac_try) 2>&5
7219   ac_status=$?
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); }; }; then
7222   gcc_cv_func_printf_ptr=yes
7223 else
7224   echo "$as_me: program exited with status $ac_status" >&5
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228 ( exit $ac_status )
7229 gcc_cv_func_printf_ptr=no
7230 fi
7231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7232 fi
7233 rm -f core core.* *.core
7234 fi
7235 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7236 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7237 if test $gcc_cv_func_printf_ptr = yes ; then
7238
7239 cat >>confdefs.h <<\_ACEOF
7240 #define HAVE_PRINTF_PTR 1
7241 _ACEOF
7242
7243 fi
7244
7245 if test $ac_cv_header_sys_mman_h != yes \
7246  || test $ac_cv_func_mmap != yes; then
7247    gcc_cv_func_mmap_file=no
7248    gcc_cv_func_mmap_dev_zero=no
7249    gcc_cv_func_mmap_anon=no
7250 else
7251    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7252 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7253 if test "${gcc_cv_func_mmap_file+set}" = set; then
7254   echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256   # Add a system to this blacklist if
7257    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7258    # memory area containing the same data that you'd get if you applied
7259    # read() to the same fd.  The only system known to have a problem here
7260    # is VMS, where text files have record structure.
7261    case "$host_os" in
7262      vms* | ultrix*)
7263         gcc_cv_func_mmap_file=no ;;
7264      *)
7265         gcc_cv_func_mmap_file=yes;;
7266    esac
7267 fi
7268 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7269 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7270    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7271 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7272 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   # Add a system to this blacklist if it has mmap() but /dev/zero
7276    # does not exist, or if mmapping /dev/zero does not give anonymous
7277    # zeroed pages with both the following properties:
7278    # 1. If you map N consecutive pages in with one call, and then
7279    #    unmap any subset of those pages, the pages that were not
7280    #    explicitly unmapped remain accessible.
7281    # 2. If you map two adjacent blocks of memory and then unmap them
7282    #    both at once, they must both go away.
7283    # Systems known to be in this category are Windows (all variants),
7284    # VMS, and Darwin.
7285    case "$host_os" in
7286      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7287         gcc_cv_func_mmap_dev_zero=no ;;
7288      *)
7289         gcc_cv_func_mmap_dev_zero=yes;;
7290    esac
7291 fi
7292 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7293 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7294
7295    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7296    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7297 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7298 if test "${gcc_cv_decl_map_anon+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307 #include <sys/types.h>
7308 #include <sys/mman.h>
7309 #include <unistd.h>
7310
7311 #ifndef MAP_ANONYMOUS
7312 #define MAP_ANONYMOUS MAP_ANON
7313 #endif
7314
7315 int
7316 main ()
7317 {
7318 int n = MAP_ANONYMOUS;
7319   ;
7320   return 0;
7321 }
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325   (eval $ac_compile) 2>conftest.er1
7326   ac_status=$?
7327   grep -v '^ *+' conftest.er1 >conftest.err
7328   rm -f conftest.er1
7329   cat conftest.err >&5
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } &&
7332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334   (eval $ac_try) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); }; } &&
7338          { ac_try='test -s conftest.$ac_objext'
7339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340   (eval $ac_try) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); }; }; then
7344   gcc_cv_decl_map_anon=yes
7345 else
7346   echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7348
7349 gcc_cv_decl_map_anon=no
7350 fi
7351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7352 fi
7353 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7354 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7355
7356    if test $gcc_cv_decl_map_anon = no; then
7357      gcc_cv_func_mmap_anon=no
7358    else
7359      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7360 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7361 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7365    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7366    # doesn't give anonymous zeroed pages with the same properties listed
7367    # above for use of /dev/zero.
7368    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7369    case "$host_os" in
7370      vms* | cygwin* | pe | mingw* | sco* | udk* )
7371         gcc_cv_func_mmap_anon=no ;;
7372      *)
7373         gcc_cv_func_mmap_anon=yes;;
7374    esac
7375 fi
7376 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7377 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7378    fi
7379 fi
7380
7381 if test $gcc_cv_func_mmap_file = yes; then
7382
7383 cat >>confdefs.h <<\_ACEOF
7384 #define HAVE_MMAP_FILE 1
7385 _ACEOF
7386
7387 fi
7388 if test $gcc_cv_func_mmap_dev_zero = yes; then
7389
7390 cat >>confdefs.h <<\_ACEOF
7391 #define HAVE_MMAP_DEV_ZERO 1
7392 _ACEOF
7393
7394 fi
7395 if test $gcc_cv_func_mmap_anon = yes; then
7396
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_MMAP_ANON 1
7399 _ACEOF
7400
7401 fi
7402
7403
7404 case "${host}" in
7405 *-*-*vms*)
7406   # Under VMS, vfork works very differently than on Unix. The standard test
7407   # won't work, and it isn't easily adaptable. It makes more sense to
7408   # just force it.
7409   ac_cv_func_vfork_works=yes
7410   ;;
7411 esac
7412 echo "$as_me:$LINENO: checking for pid_t" >&5
7413 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7414 if test "${ac_cv_type_pid_t+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h.  */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h.  */
7423 $ac_includes_default
7424 int
7425 main ()
7426 {
7427 if ((pid_t *) 0)
7428   return 0;
7429 if (sizeof (pid_t))
7430   return 0;
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437   (eval $ac_compile) 2>conftest.er1
7438   ac_status=$?
7439   grep -v '^ *+' conftest.er1 >conftest.err
7440   rm -f conftest.er1
7441   cat conftest.err >&5
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); } &&
7444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446   (eval $ac_try) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }; } &&
7450          { ac_try='test -s conftest.$ac_objext'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   ac_cv_type_pid_t=yes
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 ac_cv_type_pid_t=no
7462 fi
7463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7464 fi
7465 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7466 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7467 if test $ac_cv_type_pid_t = yes; then
7468   :
7469 else
7470
7471 cat >>confdefs.h <<_ACEOF
7472 #define pid_t int
7473 _ACEOF
7474
7475 fi
7476
7477
7478
7479 for ac_header in unistd.h vfork.h
7480 do
7481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7482 echo "$as_me:$LINENO: checking for $ac_header" >&5
7483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h.  */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h.  */
7493 #include <$ac_header>
7494 _ACEOF
7495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7497   ac_status=$?
7498   grep -v '^ *+' conftest.er1 >conftest.err
7499   rm -f conftest.er1
7500   cat conftest.err >&5
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); } >/dev/null; then
7503   if test -s conftest.err; then
7504     ac_cpp_err=$ac_c_preproc_warn_flag
7505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7506   else
7507     ac_cpp_err=
7508   fi
7509 else
7510   ac_cpp_err=yes
7511 fi
7512 if test -z "$ac_cpp_err"; then
7513   eval "$as_ac_Header=yes"
7514 else
7515   echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7517
7518   eval "$as_ac_Header=no"
7519 fi
7520 rm -f conftest.err conftest.$ac_ext
7521 fi
7522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525   cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527 _ACEOF
7528
7529 fi
7530 done
7531
7532
7533
7534 for ac_func in fork vfork
7535 do
7536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7537 echo "$as_me:$LINENO: checking for $ac_func" >&5
7538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7539 if eval "test \"\${$as_ac_var+set}\" = set"; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h.  */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h.  */
7548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7550 #define $ac_func innocuous_$ac_func
7551
7552 /* System header to define __stub macros and hopefully few prototypes,
7553     which can conflict with char $ac_func (); below.
7554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7555     <limits.h> exists even on freestanding compilers.  */
7556
7557 #ifdef __STDC__
7558 # include <limits.h>
7559 #else
7560 # include <assert.h>
7561 #endif
7562
7563 #undef $ac_func
7564
7565 /* Override any gcc2 internal prototype to avoid an error.  */
7566 #ifdef __cplusplus
7567 extern "C"
7568 {
7569 #endif
7570 /* We use char because int might match the return type of a gcc2
7571    builtin and then its argument prototype would still apply.  */
7572 char $ac_func ();
7573 /* The GNU C library defines this for functions which it implements
7574     to always fail with ENOSYS.  Some functions are actually named
7575     something starting with __ and the normal name is an alias.  */
7576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7577 choke me
7578 #else
7579 char (*f) () = $ac_func;
7580 #endif
7581 #ifdef __cplusplus
7582 }
7583 #endif
7584
7585 int
7586 main ()
7587 {
7588 return f != $ac_func;
7589   ;
7590   return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest.$ac_objext conftest$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595   (eval $ac_link) 2>conftest.er1
7596   ac_status=$?
7597   grep -v '^ *+' conftest.er1 >conftest.err
7598   rm -f conftest.er1
7599   cat conftest.err >&5
7600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); } &&
7602          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604   (eval $ac_try) 2>&5
7605   ac_status=$?
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); }; } &&
7608          { ac_try='test -s conftest$ac_exeext'
7609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610   (eval $ac_try) 2>&5
7611   ac_status=$?
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); }; }; then
7614   eval "$as_ac_var=yes"
7615 else
7616   echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7618
7619 eval "$as_ac_var=no"
7620 fi
7621 rm -f conftest.err conftest.$ac_objext \
7622       conftest$ac_exeext conftest.$ac_ext
7623 fi
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7626 if test `eval echo '${'$as_ac_var'}'` = yes; then
7627   cat >>confdefs.h <<_ACEOF
7628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7629 _ACEOF
7630
7631 fi
7632 done
7633
7634 if test "x$ac_cv_func_fork" = xyes; then
7635   echo "$as_me:$LINENO: checking for working fork" >&5
7636 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7637 if test "${ac_cv_func_fork_works+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   if test "$cross_compiling" = yes; then
7641   ac_cv_func_fork_works=cross
7642 else
7643   cat >conftest.$ac_ext <<_ACEOF
7644 /* By Ruediger Kuhlmann. */
7645       #include <sys/types.h>
7646       #if HAVE_UNISTD_H
7647       # include <unistd.h>
7648       #endif
7649       /* Some systems only have a dummy stub for fork() */
7650       int main ()
7651       {
7652         if (fork() < 0)
7653           exit (1);
7654         exit (0);
7655       }
7656 _ACEOF
7657 rm -f conftest$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659   (eval $ac_link) 2>&5
7660   ac_status=$?
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664   (eval $ac_try) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }; }; then
7668   ac_cv_func_fork_works=yes
7669 else
7670   echo "$as_me: program exited with status $ac_status" >&5
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 ( exit $ac_status )
7675 ac_cv_func_fork_works=no
7676 fi
7677 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7678 fi
7679 fi
7680 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7681 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7682
7683 else
7684   ac_cv_func_fork_works=$ac_cv_func_fork
7685 fi
7686 if test "x$ac_cv_func_fork_works" = xcross; then
7687   case $host in
7688     *-*-amigaos* | *-*-msdosdjgpp*)
7689       # Override, as these systems have only a dummy fork() stub
7690       ac_cv_func_fork_works=no
7691       ;;
7692     *)
7693       ac_cv_func_fork_works=yes
7694       ;;
7695   esac
7696   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7697 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7698 fi
7699 ac_cv_func_vfork_works=$ac_cv_func_vfork
7700 if test "x$ac_cv_func_vfork" = xyes; then
7701   echo "$as_me:$LINENO: checking for working vfork" >&5
7702 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7703 if test "${ac_cv_func_vfork_works+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   if test "$cross_compiling" = yes; then
7707   ac_cv_func_vfork_works=cross
7708 else
7709   cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h.  */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h.  */
7715 /* Thanks to Paul Eggert for this test.  */
7716 #include <stdio.h>
7717 #include <stdlib.h>
7718 #include <sys/types.h>
7719 #include <sys/stat.h>
7720 #include <sys/wait.h>
7721 #if HAVE_UNISTD_H
7722 # include <unistd.h>
7723 #endif
7724 #if HAVE_VFORK_H
7725 # include <vfork.h>
7726 #endif
7727 /* On some sparc systems, changes by the child to local and incoming
7728    argument registers are propagated back to the parent.  The compiler
7729    is told about this with #include <vfork.h>, but some compilers
7730    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7731    static variable whose address is put into a register that is
7732    clobbered by the vfork.  */
7733 static void
7734 #ifdef __cplusplus
7735 sparc_address_test (int arg)
7736 # else
7737 sparc_address_test (arg) int arg;
7738 #endif
7739 {
7740   static pid_t child;
7741   if (!child) {
7742     child = vfork ();
7743     if (child < 0) {
7744       perror ("vfork");
7745       _exit(2);
7746     }
7747     if (!child) {
7748       arg = getpid();
7749       write(-1, "", 0);
7750       _exit (arg);
7751     }
7752   }
7753 }
7754
7755 int
7756 main ()
7757 {
7758   pid_t parent = getpid ();
7759   pid_t child;
7760
7761   sparc_address_test (0);
7762
7763   child = vfork ();
7764
7765   if (child == 0) {
7766     /* Here is another test for sparc vfork register problems.  This
7767        test uses lots of local variables, at least as many local
7768        variables as main has allocated so far including compiler
7769        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7770        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7771        reuse the register of parent for one of the local variables,
7772        since it will think that parent can't possibly be used any more
7773        in this routine.  Assigning to the local variable will thus
7774        munge parent in the parent process.  */
7775     pid_t
7776       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7777       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7778     /* Convince the compiler that p..p7 are live; otherwise, it might
7779        use the same hardware register for all 8 local variables.  */
7780     if (p != p1 || p != p2 || p != p3 || p != p4
7781         || p != p5 || p != p6 || p != p7)
7782       _exit(1);
7783
7784     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7785        from child file descriptors.  If the child closes a descriptor
7786        before it execs or exits, this munges the parent's descriptor
7787        as well.  Test for this by closing stdout in the child.  */
7788     _exit(close(fileno(stdout)) != 0);
7789   } else {
7790     int status;
7791     struct stat st;
7792
7793     while (wait(&status) != child)
7794       ;
7795     exit(
7796          /* Was there some problem with vforking?  */
7797          child < 0
7798
7799          /* Did the child fail?  (This shouldn't happen.)  */
7800          || status
7801
7802          /* Did the vfork/compiler bug occur?  */
7803          || parent != getpid()
7804
7805          /* Did the file descriptor bug occur?  */
7806          || fstat(fileno(stdout), &st) != 0
7807          );
7808   }
7809 }
7810 _ACEOF
7811 rm -f conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813   (eval $ac_link) 2>&5
7814   ac_status=$?
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818   (eval $ac_try) 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; }; then
7822   ac_cv_func_vfork_works=yes
7823 else
7824   echo "$as_me: program exited with status $ac_status" >&5
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7827
7828 ( exit $ac_status )
7829 ac_cv_func_vfork_works=no
7830 fi
7831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7832 fi
7833 fi
7834 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7835 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7836
7837 fi;
7838 if test "x$ac_cv_func_fork_works" = xcross; then
7839   ac_cv_func_vfork_works=$ac_cv_func_vfork
7840   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7841 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7842 fi
7843
7844 if test "x$ac_cv_func_vfork_works" = xyes; then
7845
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_WORKING_VFORK 1
7848 _ACEOF
7849
7850 else
7851
7852 cat >>confdefs.h <<\_ACEOF
7853 #define vfork fork
7854 _ACEOF
7855
7856 fi
7857 if test "x$ac_cv_func_fork_works" = xyes; then
7858
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_WORKING_FORK 1
7861 _ACEOF
7862
7863 fi
7864
7865
7866
7867
7868   am_cv_lib_iconv_ldpath=
7869
7870 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7871 if test "${with_libiconv_prefix+set}" = set; then
7872   withval="$with_libiconv_prefix"
7873
7874     for dir in `echo "$withval" | tr : ' '`; do
7875       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7876       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7877     done
7878
7879 fi;
7880
7881
7882 for ac_header in iconv.h
7883 do
7884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7885 echo "$as_me:$LINENO: checking for $ac_header" >&5
7886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890   cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896 #include <$ac_header>
7897 _ACEOF
7898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7900   ac_status=$?
7901   grep -v '^ *+' conftest.er1 >conftest.err
7902   rm -f conftest.er1
7903   cat conftest.err >&5
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); } >/dev/null; then
7906   if test -s conftest.err; then
7907     ac_cpp_err=$ac_c_preproc_warn_flag
7908     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7909   else
7910     ac_cpp_err=
7911   fi
7912 else
7913   ac_cpp_err=yes
7914 fi
7915 if test -z "$ac_cpp_err"; then
7916   eval "$as_ac_Header=yes"
7917 else
7918   echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921   eval "$as_ac_Header=no"
7922 fi
7923 rm -f conftest.err conftest.$ac_ext
7924 fi
7925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7928   cat >>confdefs.h <<_ACEOF
7929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7930 _ACEOF
7931
7932 fi
7933 done
7934
7935
7936   echo "$as_me:$LINENO: checking for iconv" >&5
7937 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7938 if test "${am_cv_func_iconv+set}" = set; then
7939   echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941
7942     am_cv_func_iconv="no, consider installing GNU libiconv"
7943     am_cv_lib_iconv=no
7944     cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h.  */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h.  */
7950 #include <stdlib.h>
7951 #include <iconv.h>
7952 int
7953 main ()
7954 {
7955 iconv_t cd = iconv_open("","");
7956        iconv(cd,NULL,NULL,NULL,NULL);
7957        iconv_close(cd);
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964   (eval $ac_link) 2>conftest.er1
7965   ac_status=$?
7966   grep -v '^ *+' conftest.er1 >conftest.err
7967   rm -f conftest.er1
7968   cat conftest.err >&5
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); } &&
7971          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973   (eval $ac_try) 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); }; } &&
7977          { ac_try='test -s conftest$ac_exeext'
7978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979   (eval $ac_try) 2>&5
7980   ac_status=$?
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); }; }; then
7983   am_cv_func_iconv=yes
7984 else
7985   echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 fi
7989 rm -f conftest.err conftest.$ac_objext \
7990       conftest$ac_exeext conftest.$ac_ext
7991     if test "$am_cv_func_iconv" != yes; then
7992       am_save_LIBS="$LIBS"
7993       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7994       cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000 #include <stdlib.h>
8001 #include <iconv.h>
8002 int
8003 main ()
8004 {
8005 iconv_t cd = iconv_open("","");
8006          iconv(cd,NULL,NULL,NULL,NULL);
8007          iconv_close(cd);
8008   ;
8009   return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext conftest$ac_exeext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014   (eval $ac_link) 2>conftest.er1
8015   ac_status=$?
8016   grep -v '^ *+' conftest.er1 >conftest.err
8017   rm -f conftest.er1
8018   cat conftest.err >&5
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); } &&
8021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023   (eval $ac_try) 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); }; } &&
8027          { ac_try='test -s conftest$ac_exeext'
8028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029   (eval $ac_try) 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); }; }; then
8033   am_cv_lib_iconv=yes
8034         am_cv_func_iconv=yes
8035 else
8036   echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039 fi
8040 rm -f conftest.err conftest.$ac_objext \
8041       conftest$ac_exeext conftest.$ac_ext
8042       LIBS="$am_save_LIBS"
8043     fi
8044
8045 fi
8046 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8047 echo "${ECHO_T}$am_cv_func_iconv" >&6
8048   if test "$am_cv_func_iconv" = yes; then
8049
8050 cat >>confdefs.h <<\_ACEOF
8051 #define HAVE_ICONV 1
8052 _ACEOF
8053
8054     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8055 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8056     if test "${am_cv_proto_iconv+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059
8060       cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h.  */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h.  */
8066
8067 #include <stdlib.h>
8068 #include <iconv.h>
8069 extern
8070 #ifdef __cplusplus
8071 "C"
8072 #endif
8073 #if defined(__STDC__) || defined(__cplusplus)
8074 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8075 #else
8076 size_t iconv();
8077 #endif
8078
8079 int
8080 main ()
8081 {
8082
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8089   (eval $ac_compile) 2>conftest.er1
8090   ac_status=$?
8091   grep -v '^ *+' conftest.er1 >conftest.err
8092   rm -f conftest.er1
8093   cat conftest.err >&5
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); } &&
8096          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098   (eval $ac_try) 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); }; } &&
8102          { ac_try='test -s conftest.$ac_objext'
8103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104   (eval $ac_try) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); }; }; then
8108   am_cv_proto_iconv_arg1=""
8109 else
8110   echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 am_cv_proto_iconv_arg1="const"
8114 fi
8115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8116       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);"
8117 fi
8118
8119     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8120     echo "$as_me:$LINENO: result: ${ac_t:-
8121          }$am_cv_proto_iconv" >&5
8122 echo "${ECHO_T}${ac_t:-
8123          }$am_cv_proto_iconv" >&6
8124
8125 cat >>confdefs.h <<_ACEOF
8126 #define ICONV_CONST $am_cv_proto_iconv_arg1
8127 _ACEOF
8128
8129   fi
8130   LIBICONV=
8131   if test "$am_cv_lib_iconv" = yes; then
8132     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8133   fi
8134
8135
8136 # Until we have in-tree GNU iconv:
8137 LIBICONV_DEP=
8138
8139
8140
8141   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8142 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8143 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8144   echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146   cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h.  */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h.  */
8152 #include <locale.h>
8153 int
8154 main ()
8155 {
8156 return LC_MESSAGES
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest.$ac_objext conftest$ac_exeext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8163   (eval $ac_link) 2>conftest.er1
8164   ac_status=$?
8165   grep -v '^ *+' conftest.er1 >conftest.err
8166   rm -f conftest.er1
8167   cat conftest.err >&5
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } &&
8170          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172   (eval $ac_try) 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest$ac_exeext'
8177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178   (eval $ac_try) 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); }; }; then
8182   am_cv_val_LC_MESSAGES=yes
8183 else
8184   echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 am_cv_val_LC_MESSAGES=no
8188 fi
8189 rm -f conftest.err conftest.$ac_objext \
8190       conftest$ac_exeext conftest.$ac_ext
8191 fi
8192 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8193 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8194   if test $am_cv_val_LC_MESSAGES = yes; then
8195
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_LC_MESSAGES 1
8198 _ACEOF
8199
8200   fi
8201
8202
8203 # We will need to find libiberty.h and ansidecl.h
8204 saved_CFLAGS="$CFLAGS"
8205 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8206 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8207         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8208         fprintf_unlocked strstr errno snprintf vasprintf \
8209         malloc realloc calloc free basename getopt clock
8210 do
8211   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8212 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8213 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8214 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h.  */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h.  */
8223 #undef $ac_tr_decl
8224 #define $ac_tr_decl 1
8225
8226 #include "ansidecl.h"
8227 #include "system.h"
8228
8229 int
8230 main ()
8231 {
8232 #ifndef $ac_func
8233 char *(*pfn) = (char *(*)) $ac_func ;
8234 #endif
8235   ;
8236   return 0;
8237 }
8238 _ACEOF
8239 rm -f conftest.$ac_objext
8240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8241   (eval $ac_compile) 2>conftest.er1
8242   ac_status=$?
8243   grep -v '^ *+' conftest.er1 >conftest.err
8244   rm -f conftest.er1
8245   cat conftest.err >&5
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); } &&
8248          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250   (eval $ac_try) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); }; } &&
8254          { ac_try='test -s conftest.$ac_objext'
8255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256   (eval $ac_try) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; }; then
8260   eval "gcc_cv_have_decl_$ac_func=yes"
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265 eval "gcc_cv_have_decl_$ac_func=no"
8266 fi
8267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8268 fi
8269
8270 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8271   echo "$as_me:$LINENO: result: yes" >&5
8272 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8273 #define $ac_tr_decl 1
8274 _ACEOF
8275
8276 else
8277   echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8279 #define $ac_tr_decl 0
8280 _ACEOF
8281
8282 fi
8283
8284 done
8285 if test x = y ; then
8286
8287 cat >>confdefs.h <<\_ACEOF
8288 #define HAVE_DECL_GETENV 1
8289 _ACEOF
8290
8291 cat >>confdefs.h <<\_ACEOF
8292 #define HAVE_DECL_ATOL 1
8293 _ACEOF
8294
8295 cat >>confdefs.h <<\_ACEOF
8296 #define HAVE_DECL_SBRK 1
8297 _ACEOF
8298
8299 cat >>confdefs.h <<\_ACEOF
8300 #define HAVE_DECL_ABORT 1
8301 _ACEOF
8302
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_DECL_ATOF 1
8305 _ACEOF
8306
8307 cat >>confdefs.h <<\_ACEOF
8308 #define HAVE_DECL_GETCWD 1
8309 _ACEOF
8310
8311 cat >>confdefs.h <<\_ACEOF
8312 #define HAVE_DECL_GETWD 1
8313 _ACEOF
8314  \
8315
8316 cat >>confdefs.h <<\_ACEOF
8317 #define HAVE_DECL_STRSIGNAL 1
8318 _ACEOF
8319
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_DECL_PUTC_UNLOCKED 1
8322 _ACEOF
8323
8324 cat >>confdefs.h <<\_ACEOF
8325 #define HAVE_DECL_FPUTS_UNLOCKED 1
8326 _ACEOF
8327
8328 cat >>confdefs.h <<\_ACEOF
8329 #define HAVE_DECL_FWRITE_UNLOCKED 1
8330 _ACEOF
8331  \
8332
8333 cat >>confdefs.h <<\_ACEOF
8334 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8335 _ACEOF
8336
8337 cat >>confdefs.h <<\_ACEOF
8338 #define HAVE_DECL_STRSTR 1
8339 _ACEOF
8340
8341 cat >>confdefs.h <<\_ACEOF
8342 #define HAVE_DECL_ERRNO 1
8343 _ACEOF
8344
8345 cat >>confdefs.h <<\_ACEOF
8346 #define HAVE_DECL_SNPRINTF 1
8347 _ACEOF
8348
8349 cat >>confdefs.h <<\_ACEOF
8350 #define HAVE_DECL_VASPRINTF 1
8351 _ACEOF
8352  \
8353
8354 cat >>confdefs.h <<\_ACEOF
8355 #define HAVE_DECL_MALLOC 1
8356 _ACEOF
8357
8358 cat >>confdefs.h <<\_ACEOF
8359 #define HAVE_DECL_REALLOC 1
8360 _ACEOF
8361
8362 cat >>confdefs.h <<\_ACEOF
8363 #define HAVE_DECL_CALLOC 1
8364 _ACEOF
8365
8366 cat >>confdefs.h <<\_ACEOF
8367 #define HAVE_DECL_FREE 1
8368 _ACEOF
8369
8370 cat >>confdefs.h <<\_ACEOF
8371 #define HAVE_DECL_BASENAME 1
8372 _ACEOF
8373
8374 cat >>confdefs.h <<\_ACEOF
8375 #define HAVE_DECL_GETOPT 1
8376 _ACEOF
8377
8378 cat >>confdefs.h <<\_ACEOF
8379 #define HAVE_DECL_CLOCK 1
8380 _ACEOF
8381 fi
8382
8383
8384 for ac_func in getrlimit setrlimit getrusage
8385 do
8386   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8387 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8388 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8389 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8390   echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392   cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398 #undef $ac_tr_decl
8399 #define $ac_tr_decl 1
8400
8401 #include "ansidecl.h"
8402 #include "system.h"
8403 #ifdef HAVE_SYS_RESOURCE_H
8404 #include <sys/resource.h>
8405 #endif
8406
8407
8408 int
8409 main ()
8410 {
8411 #ifndef $ac_func
8412 char *(*pfn) = (char *(*)) $ac_func ;
8413 #endif
8414   ;
8415   return 0;
8416 }
8417 _ACEOF
8418 rm -f conftest.$ac_objext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8420   (eval $ac_compile) 2>conftest.er1
8421   ac_status=$?
8422   grep -v '^ *+' conftest.er1 >conftest.err
8423   rm -f conftest.er1
8424   cat conftest.err >&5
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); } &&
8427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429   (eval $ac_try) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; } &&
8433          { ac_try='test -s conftest.$ac_objext'
8434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435   (eval $ac_try) 2>&5
8436   ac_status=$?
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); }; }; then
8439   eval "gcc_cv_have_decl_$ac_func=yes"
8440 else
8441   echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 eval "gcc_cv_have_decl_$ac_func=no"
8445 fi
8446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448
8449 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8450   echo "$as_me:$LINENO: result: yes" >&5
8451 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8452 #define $ac_tr_decl 1
8453 _ACEOF
8454
8455 else
8456   echo "$as_me:$LINENO: result: no" >&5
8457 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8458 #define $ac_tr_decl 0
8459 _ACEOF
8460
8461 fi
8462
8463 done
8464 if test x = y ; then
8465
8466 cat >>confdefs.h <<\_ACEOF
8467 #define HAVE_DECL_GETRLIMIT 1
8468 _ACEOF
8469
8470 cat >>confdefs.h <<\_ACEOF
8471 #define HAVE_DECL_SETRLIMIT 1
8472 _ACEOF
8473
8474 cat >>confdefs.h <<\_ACEOF
8475 #define HAVE_DECL_GETRUSAGE 1
8476 _ACEOF
8477 fi
8478
8479
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486
8487 #include "ansidecl.h"
8488 #include "system.h"
8489 #ifdef HAVE_SYS_RESOURCE_H
8490 #include <sys/resource.h>
8491 #endif
8492
8493 int
8494 main ()
8495 {
8496 rlim_t l = 0;
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503   (eval $ac_compile) 2>conftest.er1
8504   ac_status=$?
8505   grep -v '^ *+' conftest.er1 >conftest.err
8506   rm -f conftest.er1
8507   cat conftest.err >&5
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } &&
8510          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; } &&
8516          { ac_try='test -s conftest.$ac_objext'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; }; then
8522   :
8523 else
8524   echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527
8528 cat >>confdefs.h <<\_ACEOF
8529 #define rlim_t long
8530 _ACEOF
8531
8532 fi
8533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8534
8535 for ac_func in ldgetname
8536 do
8537   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8538 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8539 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8540 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h.  */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h.  */
8549 #undef $ac_tr_decl
8550 #define $ac_tr_decl 1
8551
8552 #include "ansidecl.h"
8553 #include "system.h"
8554 #ifdef HAVE_LDFCN_H
8555 #include <ldfcn.h>
8556 #endif
8557
8558
8559 int
8560 main ()
8561 {
8562 #ifndef $ac_func
8563 char *(*pfn) = (char *(*)) $ac_func ;
8564 #endif
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 rm -f conftest.$ac_objext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8571   (eval $ac_compile) 2>conftest.er1
8572   ac_status=$?
8573   grep -v '^ *+' conftest.er1 >conftest.err
8574   rm -f conftest.er1
8575   cat conftest.err >&5
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } &&
8578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580   (eval $ac_try) 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); }; } &&
8584          { ac_try='test -s conftest.$ac_objext'
8585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586   (eval $ac_try) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; }; then
8590   eval "gcc_cv_have_decl_$ac_func=yes"
8591 else
8592   echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 eval "gcc_cv_have_decl_$ac_func=no"
8596 fi
8597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8598 fi
8599
8600 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8601   echo "$as_me:$LINENO: result: yes" >&5
8602 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8603 #define $ac_tr_decl 1
8604 _ACEOF
8605
8606 else
8607   echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8609 #define $ac_tr_decl 0
8610 _ACEOF
8611
8612 fi
8613
8614 done
8615 if test x = y ; then
8616
8617 cat >>confdefs.h <<\_ACEOF
8618 #define HAVE_DECL_LDGETNAME 1
8619 _ACEOF
8620 fi
8621
8622
8623 for ac_func in times
8624 do
8625   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8626 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8627 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8628 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8629   echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631   cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h.  */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h.  */
8637 #undef $ac_tr_decl
8638 #define $ac_tr_decl 1
8639
8640 #include "ansidecl.h"
8641 #include "system.h"
8642 #ifdef HAVE_SYS_TIMES_H
8643 #include <sys/times.h>
8644 #endif
8645
8646
8647 int
8648 main ()
8649 {
8650 #ifndef $ac_func
8651 char *(*pfn) = (char *(*)) $ac_func ;
8652 #endif
8653   ;
8654   return 0;
8655 }
8656 _ACEOF
8657 rm -f conftest.$ac_objext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8659   (eval $ac_compile) 2>conftest.er1
8660   ac_status=$?
8661   grep -v '^ *+' conftest.er1 >conftest.err
8662   rm -f conftest.er1
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } &&
8666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668   (eval $ac_try) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); }; } &&
8672          { ac_try='test -s conftest.$ac_objext'
8673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674   (eval $ac_try) 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; }; then
8678   eval "gcc_cv_have_decl_$ac_func=yes"
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 eval "gcc_cv_have_decl_$ac_func=no"
8684 fi
8685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8686 fi
8687
8688 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8689   echo "$as_me:$LINENO: result: yes" >&5
8690 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8691 #define $ac_tr_decl 1
8692 _ACEOF
8693
8694 else
8695   echo "$as_me:$LINENO: result: no" >&5
8696 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8697 #define $ac_tr_decl 0
8698 _ACEOF
8699
8700 fi
8701
8702 done
8703 if test x = y ; then
8704
8705 cat >>confdefs.h <<\_ACEOF
8706 #define HAVE_DECL_TIMES 1
8707 _ACEOF
8708 fi
8709
8710
8711 # More time-related stuff.
8712 echo "$as_me:$LINENO: checking for struct tms" >&5
8713 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8714 if test "${ac_cv_struct_tms+set}" = set; then
8715   echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717
8718 cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h.  */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h.  */
8724
8725 #include "ansidecl.h"
8726 #include "system.h"
8727 #ifdef HAVE_SYS_TIMES_H
8728 #include <sys/times.h>
8729 #endif
8730
8731 int
8732 main ()
8733 {
8734 struct tms tms;
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741   (eval $ac_compile) 2>conftest.er1
8742   ac_status=$?
8743   grep -v '^ *+' conftest.er1 >conftest.err
8744   rm -f conftest.er1
8745   cat conftest.err >&5
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); } &&
8748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750   (eval $ac_try) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }; } &&
8754          { ac_try='test -s conftest.$ac_objext'
8755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756   (eval $ac_try) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); }; }; then
8760   ac_cv_struct_tms=yes
8761 else
8762   echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8764
8765 ac_cv_struct_tms=no
8766 fi
8767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8768 fi
8769 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8770 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8771 if test $ac_cv_struct_tms = yes; then
8772
8773 cat >>confdefs.h <<\_ACEOF
8774 #define HAVE_STRUCT_TMS 1
8775 _ACEOF
8776
8777 fi
8778
8779 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8780 # revisit after autoconf 2.50.
8781 echo "$as_me:$LINENO: checking for clock_t" >&5
8782 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8783 if test "${gcc_cv_type_clock_t+set}" = set; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786
8787 cat >conftest.$ac_ext <<_ACEOF
8788 /* confdefs.h.  */
8789 _ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h.  */
8793
8794 #include "ansidecl.h"
8795 #include "system.h"
8796
8797 int
8798 main ()
8799 {
8800 clock_t x;
8801   ;
8802   return 0;
8803 }
8804 _ACEOF
8805 rm -f conftest.$ac_objext
8806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8807   (eval $ac_compile) 2>conftest.er1
8808   ac_status=$?
8809   grep -v '^ *+' conftest.er1 >conftest.err
8810   rm -f conftest.er1
8811   cat conftest.err >&5
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); } &&
8814          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816   (eval $ac_try) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); }; } &&
8820          { ac_try='test -s conftest.$ac_objext'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; }; then
8826   gcc_cv_type_clock_t=yes
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 gcc_cv_type_clock_t=no
8832 fi
8833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8836 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8837 if test $gcc_cv_type_clock_t = yes; then
8838
8839 cat >>confdefs.h <<\_ACEOF
8840 #define HAVE_CLOCK_T 1
8841 _ACEOF
8842
8843 fi
8844
8845 echo "$as_me:$LINENO: checking for uchar" >&5
8846 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8847 if test "${gcc_cv_type_uchar+set}" = set; then
8848   echo $ECHO_N "(cached) $ECHO_C" >&6
8849 else
8850   cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h.  */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h.  */
8856
8857 #include "ansidecl.h"
8858 #include "system.h"
8859
8860 int
8861 main ()
8862 {
8863 if ((uchar *)0) return 0;
8864  if (sizeof(uchar)) return 0;
8865   ;
8866   return 0;
8867 }
8868 _ACEOF
8869 rm -f conftest.$ac_objext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871   (eval $ac_compile) 2>conftest.er1
8872   ac_status=$?
8873   grep -v '^ *+' conftest.er1 >conftest.err
8874   rm -f conftest.er1
8875   cat conftest.err >&5
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); } &&
8878          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
8884          { ac_try='test -s conftest.$ac_objext'
8885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886   (eval $ac_try) 2>&5
8887   ac_status=$?
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); }; }; then
8890   ac_cv_type_uchar=yes
8891 else
8892   echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 ac_cv_type_uchar=no
8896 fi
8897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8898 fi
8899 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8900 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8901 if test $ac_cv_type_uchar = yes; then
8902
8903 cat >>confdefs.h <<\_ACEOF
8904 #define HAVE_UCHAR 1
8905 _ACEOF
8906
8907 fi
8908
8909 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8910 CFLAGS="$saved_CFLAGS"
8911
8912 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8913 if test "${enable_initfini_array+set}" = set; then
8914   enableval="$enable_initfini_array"
8915
8916 else
8917
8918 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8919 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8920 if test "${gcc_cv_initfini_array+set}" = set; then
8921   echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923     if test "$cross_compiling" = yes; then
8924   gcc_cv_initfini_array=no
8925 else
8926   cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h.  */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h.  */
8932
8933 static int x = -1;
8934 int main (void) { return x; }
8935 int foo (void) { x = 0; }
8936 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8937 _ACEOF
8938 rm -f conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940   (eval $ac_link) 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945   (eval $ac_try) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; }; then
8949   gcc_cv_initfini_array=yes
8950 else
8951   echo "$as_me: program exited with status $ac_status" >&5
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955 ( exit $ac_status )
8956 gcc_cv_initfini_array=no
8957 fi
8958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8959 fi
8960 fi
8961 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8962 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8963   enable_initfini_array=$gcc_cv_initfini_array
8964
8965 fi;
8966 if test $enable_initfini_array = yes; then
8967
8968 cat >>confdefs.h <<\_ACEOF
8969 #define HAVE_INITFINI_ARRAY 1
8970 _ACEOF
8971
8972 fi
8973
8974 # mkdir takes a single argument on some systems.
8975 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8976 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8977 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8978   echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980   cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h.  */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h.  */
8986
8987 #include <sys/types.h>
8988 #ifdef HAVE_SYS_STAT_H
8989 # include <sys/stat.h>
8990 #endif
8991 #ifdef HAVE_UNISTD_H
8992 # include <unistd.h>
8993 #endif
8994 #ifdef HAVE_DIRECT_H
8995 # include <direct.h>
8996 #endif
8997 int
8998 main ()
8999 {
9000 mkdir ("foo", 0);
9001   ;
9002   return 0;
9003 }
9004 _ACEOF
9005 rm -f conftest.$ac_objext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007   (eval $ac_compile) 2>conftest.er1
9008   ac_status=$?
9009   grep -v '^ *+' conftest.er1 >conftest.err
9010   rm -f conftest.er1
9011   cat conftest.err >&5
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); } &&
9014          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; } &&
9020          { ac_try='test -s conftest.$ac_objext'
9021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022   (eval $ac_try) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); }; }; then
9026   gcc_cv_mkdir_takes_one_arg=no
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 gcc_cv_mkdir_takes_one_arg=yes
9032 fi
9033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9034 fi
9035 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9036 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9037 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9038
9039 cat >>confdefs.h <<\_ACEOF
9040 #define MKDIR_TAKES_ONE_ARG 1
9041 _ACEOF
9042
9043 fi
9044
9045
9046 # File extensions
9047 manext='.1'
9048 objext='.o'
9049
9050
9051
9052 # With Setjmp/Longjmp based exception handling.
9053 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9054 if test "${enable_sjlj_exceptions+set}" = set; then
9055   enableval="$enable_sjlj_exceptions"
9056   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9057
9058 cat >>confdefs.h <<_ACEOF
9059 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9060 _ACEOF
9061
9062 fi;
9063
9064 if test x$host = x$target; then
9065    echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9066 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9067 if test "${ac_cv_lib_unwind_main+set}" = set; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070   ac_check_lib_save_LIBS=$LIBS
9071 LIBS="-lunwind  $LIBS"
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h.  */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h.  */
9078
9079
9080 int
9081 main ()
9082 {
9083 main ();
9084   ;
9085   return 0;
9086 }
9087 _ACEOF
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090   (eval $ac_link) 2>conftest.er1
9091   ac_status=$?
9092   grep -v '^ *+' conftest.er1 >conftest.err
9093   rm -f conftest.er1
9094   cat conftest.err >&5
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); } &&
9097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099   (eval $ac_try) 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); }; } &&
9103          { ac_try='test -s conftest$ac_exeext'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; }; then
9109   ac_cv_lib_unwind_main=yes
9110 else
9111   echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 ac_cv_lib_unwind_main=no
9115 fi
9116 rm -f conftest.err conftest.$ac_objext \
9117       conftest$ac_exeext conftest.$ac_ext
9118 LIBS=$ac_check_lib_save_LIBS
9119 fi
9120 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9121 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9122 if test $ac_cv_lib_unwind_main = yes; then
9123   use_libunwind_default=yes
9124 else
9125   use_libunwind_default=no
9126 fi
9127
9128 else
9129    use_libunwind_default=no
9130 fi
9131 # Use libunwind based exception handling.
9132 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9133 if test "${enable_libunwind_exceptions+set}" = set; then
9134   enableval="$enable_libunwind_exceptions"
9135   use_libunwind_exceptions=$enableval
9136 else
9137   use_libunwind_exceptions=$use_libunwind_default
9138 fi;
9139 if test x"$use_libunwind_exceptions" = xyes; then
9140
9141 cat >>confdefs.h <<\_ACEOF
9142 #define USE_LIBUNWIND_EXCEPTIONS 1
9143 _ACEOF
9144
9145 fi
9146
9147 # --------------------------------------------------------
9148 # Build, host, and target specific configuration fragments
9149 # --------------------------------------------------------
9150
9151 # Collect build-machine-specific information.
9152 . ${srcdir}/config.build
9153
9154 # Collect host-machine-specific information.
9155 . ${srcdir}/config.host
9156
9157 target_gtfiles=
9158
9159 # Collect target-machine-specific information.
9160 . ${srcdir}/config.gcc
9161
9162 extra_objs="${host_extra_objs} ${extra_objs}"
9163 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9164
9165 # Default the target-machine variables that were not explicitly set.
9166 if test x"$tm_file" = x
9167 then tm_file=$cpu_type/$cpu_type.h; fi
9168
9169 if test x"$extra_headers" = x
9170 then extra_headers=; fi
9171
9172 if test x$md_file = x
9173 then md_file=$cpu_type/$cpu_type.md; fi
9174
9175 if test x$out_file = x
9176 then out_file=$cpu_type/$cpu_type.c; fi
9177
9178 if test x"$tmake_file" = x
9179 then tmake_file=$cpu_type/t-$cpu_type
9180 fi
9181
9182 if test x"$dwarf2" = xyes
9183 then tm_file="$tm_file tm-dwarf2.h"
9184 fi
9185
9186 # Say what files are being used for the output code and MD file.
9187 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9188 echo "Using \`$srcdir/config/$md_file' as machine description file."
9189
9190 # If any of the xm_file variables contain nonexistent files, warn
9191 # about them and drop them.
9192
9193 bx=
9194 for x in $build_xm_file; do
9195   if    test -f $srcdir/config/$x
9196   then      bx="$bx $x"
9197   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9198 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9199   fi
9200 done
9201 build_xm_file="$bx"
9202
9203 hx=
9204 for x in $host_xm_file; do
9205   if    test -f $srcdir/config/$x
9206   then      hx="$hx $x"
9207   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9208 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9209   fi
9210 done
9211 host_xm_file="$hx"
9212
9213 tx=
9214 for x in $xm_file; do
9215   if    test -f $srcdir/config/$x
9216   then      tx="$tx $x"
9217   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9218 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9219   fi
9220 done
9221 xm_file="$tx"
9222
9223 count=a
9224 for f in $tm_file; do
9225         count=${count}x
9226 done
9227 if test $count = ax; then
9228         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9229 else
9230         echo "Using the following target machine macro files:"
9231         for f in $tm_file; do
9232                 echo "  $srcdir/config/$f"
9233         done
9234 fi
9235
9236 if test x$need_64bit_hwint = xyes; then
9237
9238 cat >>confdefs.h <<\_ACEOF
9239 #define NEED_64BIT_HOST_WIDE_INT 1
9240 _ACEOF
9241
9242 fi
9243
9244 count=a
9245 for f in $host_xm_file; do
9246         count=${count}x
9247 done
9248 if test $count = a; then
9249         :
9250 elif test $count = ax; then
9251         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9252 else
9253         echo "Using the following host machine macro files:"
9254         for f in $host_xm_file; do
9255                 echo "  $srcdir/config/$f"
9256         done
9257 fi
9258 echo "Using ${out_host_hook_obj} for host machine hooks."
9259
9260 if test "$host_xm_file" != "$build_xm_file"; then
9261         count=a
9262         for f in $build_xm_file; do
9263                 count=${count}x
9264         done
9265         if test $count = a; then
9266                 :
9267         elif test $count = ax; then
9268                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9269         else
9270                 echo "Using the following build machine macro files:"
9271                 for f in $build_xm_file; do
9272                         echo "  $srcdir/config/$f"
9273                 done
9274         fi
9275 fi
9276
9277 # ---------
9278 # Threading
9279 # ---------
9280
9281 # Check if a valid thread package
9282 case ${enable_threads_flag} in
9283   "" | no)
9284     # No threads
9285     target_thread_file='single'
9286     ;;
9287   yes)
9288     # default
9289     target_thread_file='single'
9290     ;;
9291   aix | dce | gnat | irix | posix | rtems | \
9292   single | solaris | vxworks | win32 )
9293     target_thread_file=${enable_threads_flag}
9294     ;;
9295   *)
9296     echo "${enable_threads_flag} is an unknown thread package" 1>&2
9297     exit 1
9298     ;;
9299 esac
9300
9301 if test x${thread_file} = x; then
9302   # No thread file set by target-specific clauses in config.gcc,
9303   # so use file chosen by default logic above
9304   thread_file=${target_thread_file}
9305 fi
9306
9307 # Make gthr-default.h if we have a thread file.
9308 gthread_flags=
9309 if test $thread_file != single; then
9310   rm -f gthr-default.h
9311   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9312   gthread_flags=-DHAVE_GTHR_DEFAULT
9313 fi
9314
9315
9316 # --------
9317 # UNSORTED
9318 # --------
9319
9320 if test x$enable___cxa_atexit = xyes || \
9321    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9322    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9323 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9324 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h.  */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h.  */
9333 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9335 #define __cxa_atexit innocuous___cxa_atexit
9336
9337 /* System header to define __stub macros and hopefully few prototypes,
9338     which can conflict with char __cxa_atexit (); below.
9339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9340     <limits.h> exists even on freestanding compilers.  */
9341
9342 #ifdef __STDC__
9343 # include <limits.h>
9344 #else
9345 # include <assert.h>
9346 #endif
9347
9348 #undef __cxa_atexit
9349
9350 /* Override any gcc2 internal prototype to avoid an error.  */
9351 #ifdef __cplusplus
9352 extern "C"
9353 {
9354 #endif
9355 /* We use char because int might match the return type of a gcc2
9356    builtin and then its argument prototype would still apply.  */
9357 char __cxa_atexit ();
9358 /* The GNU C library defines this for functions which it implements
9359     to always fail with ENOSYS.  Some functions are actually named
9360     something starting with __ and the normal name is an alias.  */
9361 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9362 choke me
9363 #else
9364 char (*f) () = __cxa_atexit;
9365 #endif
9366 #ifdef __cplusplus
9367 }
9368 #endif
9369
9370 int
9371 main ()
9372 {
9373 return f != __cxa_atexit;
9374   ;
9375   return 0;
9376 }
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380   (eval $ac_link) 2>conftest.er1
9381   ac_status=$?
9382   grep -v '^ *+' conftest.er1 >conftest.err
9383   rm -f conftest.er1
9384   cat conftest.err >&5
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } &&
9387          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389   (eval $ac_try) 2>&5
9390   ac_status=$?
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); }; } &&
9393          { ac_try='test -s conftest$ac_exeext'
9394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395   (eval $ac_try) 2>&5
9396   ac_status=$?
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); }; }; then
9399   ac_cv_func___cxa_atexit=yes
9400 else
9401   echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9403
9404 ac_cv_func___cxa_atexit=no
9405 fi
9406 rm -f conftest.err conftest.$ac_objext \
9407       conftest$ac_exeext conftest.$ac_ext
9408 fi
9409 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9410 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9411 if test $ac_cv_func___cxa_atexit = yes; then
9412
9413 cat >>confdefs.h <<\_ACEOF
9414 #define DEFAULT_USE_CXA_ATEXIT 1
9415 _ACEOF
9416
9417 else
9418   echo "__cxa_atexit can't be enabled on this target"
9419 fi
9420
9421 fi
9422
9423 # Look for a file containing extra machine modes.
9424 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9425   extra_modes_file='$(srcdir)'/config/${extra_modes}
9426
9427
9428 cat >>confdefs.h <<_ACEOF
9429 #define EXTRA_MODES_FILE "config/$extra_modes"
9430 _ACEOF
9431
9432 fi
9433
9434 # auto-host.h is the file containing items generated by autoconf and is
9435 # the first file included by config.h.
9436 # If host=build, it is correct to have bconfig include auto-host.h
9437 # as well.  If host!=build, we are in error and need to do more
9438 # work to find out the build config parameters.
9439 if test x$host = x$build
9440 then
9441         build_auto=auto-host.h
9442         FORBUILD=..
9443 else
9444         # We create a subdir, then run autoconf in the subdir.
9445         # To prevent recursion we set host and build for the new
9446         # invocation of configure to the build for this invocation
9447         # of configure.
9448         tempdir=build.$$
9449         rm -rf $tempdir
9450         mkdir $tempdir
9451         cd $tempdir
9452         case ${srcdir} in
9453         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9454         *) realsrcdir=../${srcdir};;
9455         esac
9456         saved_CFLAGS="${CFLAGS}"
9457         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9458         ${realsrcdir}/configure \
9459                 --enable-languages=${enable_languages-all} \
9460                 --target=$target_alias --host=$build_alias --build=$build_alias
9461         CFLAGS="${saved_CFLAGS}"
9462
9463         # We just finished tests for the build machine, so rename
9464         # the file auto-build.h in the gcc directory.
9465         mv auto-host.h ../auto-build.h
9466         cd ..
9467         rm -rf $tempdir
9468         build_auto=auto-build.h
9469         FORBUILD=../${build_subdir}
9470 fi
9471
9472
9473 tm_file="${tm_file} defaults.h"
9474 tm_p_file="${tm_p_file} tm-preds.h"
9475 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9476 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9477 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9478 # put this back in temporarily.
9479 xm_file="ansidecl.h ${xm_file}"
9480
9481 # --------
9482 # UNSORTED
9483 # --------
9484
9485 # Get the version trigger filename from the toplevel
9486 if test "${with_gcc_version_trigger+set}" = set; then
9487         gcc_version_trigger=$with_gcc_version_trigger
9488 else
9489         gcc_version_trigger=${srcdir}/version.c
9490 fi
9491 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9492 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9493
9494 # Compile in configure arguments.
9495 if test -f configargs.h ; then
9496         # Being re-configured.
9497         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9498         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9499 else
9500         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9501 fi
9502
9503 # Double all backslashes and backslash all quotes to turn
9504 # gcc_config_arguments into a C string.
9505 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9506 $gcc_config_arguments
9507 EOF
9508 gcc_config_arguments_str=`cat conftest.out`
9509 rm -f conftest.out
9510
9511 cat > configargs.h <<EOF
9512 /* Generated automatically. */
9513 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9514 static const char thread_model[] = "$thread_file";
9515
9516 static const struct {
9517   const char *name, *value;
9518 } configure_default_options[] = $configure_default_options;
9519 EOF
9520
9521 # Internationalization
9522 PACKAGE=gcc
9523 VERSION="$gcc_version"
9524
9525
9526
9527 # If we haven't got the data from the intl directory,
9528 # assume NLS is disabled.
9529 USE_NLS=no
9530 LIBINTL=
9531 LIBINTL_DEP=
9532 INCINTL=
9533 XGETTEXT=
9534 GMSGFMT=
9535 POSUB=
9536 if test -f ../intl/config.intl; then
9537   . ../intl/config.intl
9538 fi
9539 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9540 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9541 if test x"$USE_NLS" != xyes; then
9542   echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6
9544 else
9545   echo "$as_me:$LINENO: result: yes" >&5
9546 echo "${ECHO_T}yes" >&6
9547
9548 cat >>confdefs.h <<\_ACEOF
9549 #define ENABLE_NLS 1
9550 _ACEOF
9551
9552
9553   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9554 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9555   # Look for .po and .gmo files in the source directory.
9556   CATALOGS=
9557   XLINGUAS=
9558   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9559     # If there aren't any .gmo files the shell will give us the
9560     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9561     # weeded out.
9562     case "$cat" in *\**)
9563       continue;;
9564     esac
9565     # The quadruple backslash is collapsed to a double backslash
9566     # by the backticks, then collapsed again by the double quotes,
9567     # leaving us with one backslash in the sed expression (right
9568     # before the dot that mustn't act as a wildcard).
9569     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9570     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9571     # The user is allowed to set LINGUAS to a list of languages to
9572     # install catalogs for.  If it's empty that means "all of them."
9573     if test "x$LINGUAS" = x; then
9574       CATALOGS="$CATALOGS $cat"
9575       XLINGUAS="$XLINGUAS $lang"
9576     else
9577       case "$LINGUAS" in *$lang*)
9578         CATALOGS="$CATALOGS $cat"
9579         XLINGUAS="$XLINGUAS $lang"
9580         ;;
9581       esac
9582     fi
9583   done
9584   LINGUAS="$XLINGUAS"
9585   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9586 echo "${ECHO_T}$LINGUAS" >&6
9587 fi
9588
9589 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9590 # -liconv on the link line twice.
9591 case "$LIBINTL" in *$LIBICONV*)
9592         LIBICONV= ;;
9593 esac
9594
9595 # Windows32 Registry support for specifying GCC installation paths.
9596 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9597 if test "${enable_win32_registry+set}" = set; then
9598   enableval="$enable_win32_registry"
9599
9600 fi;
9601 case $host_os in
9602         win32 | pe | cygwin* | mingw32* | uwin*)
9603 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9604 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9605 if test "x$enable_win32_registry" != xno; then
9606
9607 cat >>confdefs.h <<\_ACEOF
9608 #define ENABLE_WIN32_REGISTRY 1
9609 _ACEOF
9610
9611   echo "$as_me:$LINENO: result: yes" >&5
9612 echo "${ECHO_T}yes" >&6
9613   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9614 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9615 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9616   echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618   ac_func_search_save_LIBS=$LIBS
9619 ac_cv_search_RegOpenKeyExA=no
9620 cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h.  */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h.  */
9626
9627 /* Override any gcc2 internal prototype to avoid an error.  */
9628 #ifdef __cplusplus
9629 extern "C"
9630 #endif
9631 /* We use char because int might match the return type of a gcc2
9632    builtin and then its argument prototype would still apply.  */
9633 char RegOpenKeyExA ();
9634 int
9635 main ()
9636 {
9637 RegOpenKeyExA ();
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644   (eval $ac_link) 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653   (eval $ac_try) 2>&5
9654   ac_status=$?
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); }; } &&
9657          { ac_try='test -s conftest$ac_exeext'
9658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659   (eval $ac_try) 2>&5
9660   ac_status=$?
9661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); }; }; then
9663   ac_cv_search_RegOpenKeyExA="none required"
9664 else
9665   echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9667
9668 fi
9669 rm -f conftest.err conftest.$ac_objext \
9670       conftest$ac_exeext conftest.$ac_ext
9671 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9672   for ac_lib in advapi32; do
9673     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9674     cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h.  */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h.  */
9680
9681 /* Override any gcc2 internal prototype to avoid an error.  */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 /* We use char because int might match the return type of a gcc2
9686    builtin and then its argument prototype would still apply.  */
9687 char RegOpenKeyExA ();
9688 int
9689 main ()
9690 {
9691 RegOpenKeyExA ();
9692   ;
9693   return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698   (eval $ac_link) 2>conftest.er1
9699   ac_status=$?
9700   grep -v '^ *+' conftest.er1 >conftest.err
9701   rm -f conftest.er1
9702   cat conftest.err >&5
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); } &&
9705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707   (eval $ac_try) 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; } &&
9711          { ac_try='test -s conftest$ac_exeext'
9712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713   (eval $ac_try) 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; }; then
9717   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9718 break
9719 else
9720   echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9722
9723 fi
9724 rm -f conftest.err conftest.$ac_objext \
9725       conftest$ac_exeext conftest.$ac_ext
9726   done
9727 fi
9728 LIBS=$ac_func_search_save_LIBS
9729 fi
9730 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9731 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9732 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9733   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9734
9735 fi
9736
9737 else
9738   echo "$as_me:$LINENO: result: no" >&5
9739 echo "${ECHO_T}no" >&6
9740 fi
9741
9742 # Check if user specified a different registry key.
9743 case "x${enable_win32_registry}" in
9744 x | xyes)
9745   # default.
9746   gcc_cv_win32_registry_key="$VERSION"
9747   ;;
9748 xno)
9749   # no registry lookup.
9750   gcc_cv_win32_registry_key=''
9751   ;;
9752 *)
9753   # user-specified key.
9754   gcc_cv_win32_registry_key="$enable_win32_registry"
9755   ;;
9756 esac
9757
9758 if test "x$enable_win32_registry" != xno; then
9759   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9760 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9761
9762 cat >>confdefs.h <<_ACEOF
9763 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9764 _ACEOF
9765
9766   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9767 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9768 fi
9769 ;;
9770 esac
9771
9772 # Get an absolute path to the GCC top-level source directory
9773 holddir=`${PWDCMD-pwd}`
9774 cd $srcdir
9775 topdir=`${PWDCMD-pwd}`
9776 cd $holddir
9777
9778 # Conditionalize the makefile for this host machine.
9779 xmake_file=
9780 for f in ${host_xmake_file}
9781 do
9782         if test -f ${srcdir}/config/$f
9783         then
9784                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9785         fi
9786 done
9787
9788 # Conditionalize the makefile for this target machine.
9789 tmake_file_=
9790 for f in ${tmake_file}
9791 do
9792         if test -f ${srcdir}/config/$f
9793         then
9794                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9795         fi
9796 done
9797 tmake_file="${tmake_file_}"
9798
9799 symbolic_link='ln -s'
9800
9801 # If the host doesn't support symlinks, modify CC in
9802 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9803 # Otherwise, we can use "CC=$(CC)".
9804 rm -f symtest.tem
9805 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9806 then
9807         cc_set_by_configure="\$(CC)"
9808         quoted_cc_set_by_configure="\$(CC)"
9809         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9810         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9811 else
9812         rm -f symtest.tem
9813         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9814         then
9815                 symbolic_link="cp -p"
9816         else
9817                 symbolic_link="cp"
9818         fi
9819         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9820         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9821         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9822         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9823 fi
9824 rm -f symtest.tem
9825
9826 out_object_file=`basename $out_file .c`.o
9827
9828 tm_file_list=
9829 tm_include_list=
9830 for f in $tm_file; do
9831   case $f in
9832     defaults.h )
9833        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9834        tm_include_list="${tm_include_list} $f"
9835        ;;
9836     * )
9837        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9838        tm_include_list="${tm_include_list} config/$f"
9839        ;;
9840   esac
9841 done
9842
9843 tm_p_file_list=
9844 tm_p_include_list=
9845 for f in $tm_p_file; do
9846   case $f in
9847     tm-preds.h )
9848        tm_p_file_list="${tm_p_file_list} $f"
9849        tm_p_include_list="${tm_p_include_list} $f"
9850        ;;
9851     * )
9852        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9853        tm_p_include_list="${tm_p_include_list} config/$f"
9854   esac
9855 done
9856
9857 xm_file_list=
9858 xm_include_list=
9859 for f in $xm_file; do
9860   case $f in
9861     ansidecl.h )
9862        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9863        xm_include_list="${xm_include_list} $f"
9864        ;;
9865     auto-host.h )
9866        xm_file_list="${xm_file_list} $f"
9867        xm_include_list="${xm_include_list} $f"
9868        ;;
9869     * )
9870        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9871        xm_include_list="${xm_include_list} config/$f"
9872        ;;
9873   esac
9874 done
9875
9876 host_xm_file_list=
9877 host_xm_include_list=
9878 for f in $host_xm_file; do
9879   case $f in
9880     ansidecl.h )
9881        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9882        host_xm_include_list="${host_xm_include_list} $f"
9883        ;;
9884     auto-host.h )
9885        host_xm_file_list="${host_xm_file_list} $f"
9886        host_xm_include_list="${host_xm_include_list} $f"
9887        ;;
9888     * )
9889        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9890        host_xm_include_list="${host_xm_include_list} config/$f"
9891        ;;
9892   esac
9893 done
9894
9895 build_xm_file_list=
9896 for f in $build_xm_file; do
9897   case $f in
9898     ansidecl.h )
9899        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9900        build_xm_include_list="${build_xm_include_list} $f"
9901        ;;
9902     auto-build.h | auto-host.h )
9903        build_xm_file_list="${build_xm_file_list} $f"
9904        build_xm_include_list="${build_xm_include_list} $f"
9905        ;;
9906     * )
9907        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9908        build_xm_include_list="${build_xm_include_list} config/$f"
9909        ;;
9910   esac
9911 done
9912
9913 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9914 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9915 CROSS=
9916 ALL=all.internal
9917 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9918 if test x$host != x$target
9919 then
9920         CROSS="-DCROSS_COMPILE"
9921         ALL=all.cross
9922         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9923         case "$host","$target" in
9924         # Darwin crosses can use the host system's libraries and headers,
9925         # because of the fat library support.  Of course, it must be the
9926         # same version of Darwin on both sides.  Allow the user to
9927         # just say --target=foo-darwin without a version number to mean
9928         # "the version on this system".
9929             *-*-darwin*,*-*-darwin*)
9930                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9931                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9932                 if test $hostos = $targetos -o $targetos = darwin ; then
9933                     CROSS=
9934                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9935                     with_headers=yes
9936                 fi
9937                 ;;
9938
9939             i?86-*-*,x86_64-*-* \
9940             | powerpc*-*-*,powerpc64*-*-*)
9941                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9942         esac
9943 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9944         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9945         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9946 fi
9947
9948 # If this is a cross-compiler that does not
9949 # have its own set of headers then define
9950 # inhibit_libc
9951
9952 # If this is using newlib, without having the headers available now,
9953 # then define inhibit_libc in LIBGCC2_CFLAGS.
9954 # This prevents libgcc2 from containing any code which requires libc
9955 # support.
9956 inhibit_libc=
9957 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9958        test x$with_newlib = xyes ; } &&
9959      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9960        inhibit_libc=-Dinhibit_libc
9961 fi
9962
9963
9964 # When building gcc with a cross-compiler, we need to adjust things so
9965 # that the generator programs are still built with the native compiler.
9966 # Also, we cannot run fixincludes or fix-header.
9967
9968 # These are the normal (build=host) settings:
9969 BUILD_PREFIX=
9970 BUILD_PREFIX_1=ignore-
9971 CC_FOR_BUILD='$(CC)'
9972 BUILD_CFLAGS='$(ALL_CFLAGS)'
9973
9974 STMP_FIXINC=stmp-fixinc
9975
9976 # Possibly disable fixproto, on a per-target basis.
9977 case ${use_fixproto} in
9978   no)
9979     STMP_FIXPROTO=
9980     ;;
9981   yes)
9982     STMP_FIXPROTO=stmp-fixproto
9983     ;;
9984 esac
9985
9986
9987 # And these apply if build != host, or we are generating coverage data
9988 if test x$build != x$host || test "x$coverage_flags" != x
9989 then
9990     BUILD_PREFIX=build-
9991     BUILD_PREFIX_1=build-
9992     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9993
9994     if test "x$TARGET_SYSTEM_ROOT" = x; then
9995         STMP_FIXINC=
9996         STMP_FIXPROTO=
9997     fi
9998 fi
9999
10000 # Expand extra_headers to include complete path.
10001 # This substitutes for lots of t-* files.
10002 extra_headers_list=
10003 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10004 for file in ${extra_headers} ; do
10005   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10006 done
10007
10008 # Add a definition of USE_COLLECT2 if system wants one.
10009 case $use_collect2 in
10010   no) use_collect2= ;;
10011   "") ;;
10012   *)
10013     host_xm_defines="${host_xm_defines} USE_COLLECT2"
10014     xm_defines="${xm_defines} USE_COLLECT2"
10015     ;;
10016 esac
10017
10018 # ---------------------------
10019 # Assembler & linker features
10020 # ---------------------------
10021
10022 # Identify the assembler which will work hand-in-glove with the newly
10023 # built GCC, so that we can examine its features.  This is the assembler
10024 # which will be driven by the driver program.
10025 #
10026 # If build != host, and we aren't building gas in-tree, we identify a
10027 # build->target assembler and hope that it will have the same features
10028 # as the host->target assembler we'll be using.
10029 echo "$as_me:$LINENO: checking what assembler to use" >&5
10030 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10031 in_tree_gas=no
10032 gcc_cv_as=
10033 gcc_cv_gas_major_version=
10034 gcc_cv_gas_minor_version=
10035 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10036 if test -x "$DEFAULT_ASSEMBLER"; then
10037         gcc_cv_as="$DEFAULT_ASSEMBLER"
10038 elif test -x "$AS"; then
10039         gcc_cv_as="$AS"
10040 elif test -x as$host_exeext; then
10041         # Build using assembler in the current directory.
10042         gcc_cv_as=./as$host_exeext
10043 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10044      && test -f ../gas/Makefile; then
10045   # Single tree build which includes gas.
10046   in_tree_gas=yes
10047   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10048 for f in $gcc_cv_as_bfd_srcdir/configure \
10049          $gcc_cv_as_gas_srcdir/configure \
10050          $gcc_cv_as_gas_srcdir/configure.in \
10051          $gcc_cv_as_gas_srcdir/Makefile.in ; do
10052   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10053   if test x$gcc_cv_gas_version != x; then
10054     break
10055   fi
10056 done
10057 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10058 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10059 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10060 case $gcc_cv_gas_patch_version in
10061   "") gcc_cv_gas_patch_version="0" ;;
10062 esac
10063 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10064                             + $gcc_cv_gas_minor_version \) \* 1000 \
10065                             + $gcc_cv_gas_patch_version`
10066
10067   rm -f as$host_exeext
10068   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10069   in_tree_gas_is_elf=no
10070   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10071      || (grep 'obj_format = multi' ../gas/Makefile \
10072          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10073   then
10074     in_tree_gas_is_elf=yes
10075   fi
10076 fi
10077
10078 if test "x$gcc_cv_as" = x; then
10079         # Search the same directories that the installed compiler will
10080         # search.  Else we may find the wrong assembler and lose.  If we
10081         # do not find a suitable assembler binary, then try the user's
10082         # path.
10083         #
10084         # Also note we have to check MD_EXEC_PREFIX before checking the
10085         # user's path.  Unfortunately, there is no good way to get at the
10086         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10087         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10088         # to be fixed as part of the make/configure rewrite too.
10089
10090         if test "x$exec_prefix" = xNONE; then
10091                 if test "x$prefix" = xNONE; then
10092                         test_prefix=/usr/local
10093                 else
10094                         test_prefix=$prefix
10095                 fi
10096         else
10097                 test_prefix=$exec_prefix
10098         fi
10099
10100         # If the loop below does not find an assembler, then use whatever
10101         # one we can find in the users's path.
10102         # user's path.
10103         if test "x$program_prefix" != xNONE; then
10104                 gcc_cv_as=${program_prefix}as$host_exeext
10105         else
10106                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10107         fi
10108
10109         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10110                    $test_prefix/libexec/gcc/$target_noncanonical \
10111                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10112                    /usr/lib/gcc/$target_noncanonical \
10113                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10114                    $test_prefix/$target_noncanonical/bin"
10115
10116         if test x$host = x$target; then
10117             test_dirs="$test_dirs \
10118                    /usr/libexec \
10119                    /usr/ccs/gcc \
10120                    /usr/ccs/bin \
10121                    /udk/usr/ccs/bin \
10122                    /bsd43/usr/lib/cmplrs/cc \
10123                    /usr/cross64/usr/bin \
10124                    /usr/lib/cmplrs/cc \
10125                    /sysv/usr/lib/cmplrs/cc \
10126                    /svr4/usr/lib/cmplrs/cc \
10127                    /usr/bin"
10128         fi
10129
10130         for dir in $test_dirs; do
10131                 if test -x $dir/as$host_exeext; then
10132                         gcc_cv_as=$dir/as$host_exeext
10133                         break;
10134                 fi
10135         done
10136 fi
10137 case $in_tree_gas in
10138   yes)
10139     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10140 echo "${ECHO_T}\"newly built gas\"" >&6
10141     ;;
10142   no)
10143     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10144 echo "${ECHO_T}$gcc_cv_as" >&6
10145     ;;
10146 esac
10147
10148 # Identify the linker which will work hand-in-glove with the newly
10149 # built GCC, so that we can examine its features.  This is the linker
10150 # which will be driven by the driver program.
10151 #
10152 # If build != host, and we aren't building gas in-tree, we identify a
10153 # build->target linker and hope that it will have the same features
10154 # as the host->target linker we'll be using.
10155 echo "$as_me:$LINENO: checking what linker to use" >&5
10156 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10157 in_tree_ld=no
10158 gcc_cv_ld=
10159 gcc_cv_gld_major_version=
10160 gcc_cv_gld_minor_version=
10161 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10162 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10163 if test -x "$DEFAULT_LINKER"; then
10164         gcc_cv_ld="$DEFAULT_LINKER"
10165 elif test -x "$LD_FOR_TARGET"; then
10166         gcc_cv_ld="$LD_FOR_TARGET"
10167 elif test -x "$LD" && test x$host = x$target; then
10168         gcc_cv_ld="$LD"
10169 elif test -x collect-ld$host_exeext; then
10170         # Build using linker in the current directory.
10171         gcc_cv_ld=./collect-ld$host_exeext
10172 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10173      && test -f ../ld/Makefile; then
10174         # Single tree build which includes ld.
10175         in_tree_ld=yes
10176         in_tree_ld_is_elf=no
10177         if (grep 'EMUL = .*elf' ../ld/Makefile \
10178             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10179           in_tree_ld_is_elf=yes
10180         fi
10181         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
10182         do
10183                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10184                 if test x$gcc_cv_gld_version != x; then
10185                         break
10186                 fi
10187         done
10188         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10189         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10190         rm -f collect-ld$host_exeext
10191         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10192                 2>/dev/null
10193 fi
10194
10195 if test "x$gcc_cv_ld" = x; then
10196         # Search the same directories that the installed compiler will
10197         # search.  Else we may find the wrong linker and lose.  If we
10198         # do not find a suitable linker binary, then try the user's
10199         # path.
10200         #
10201         # Also note we have to check MD_EXEC_PREFIX before checking the
10202         # user's path.  Unfortunately, there is no good way to get at the
10203         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10204         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10205         # to be fixed as part of the make/configure rewrite too.
10206
10207         if test "x$exec_prefix" = xNONE; then
10208                 if test "x$prefix" = xNONE; then
10209                         test_prefix=/usr/local
10210                 else
10211                         test_prefix=$prefix
10212                 fi
10213         else
10214                 test_prefix=$exec_prefix
10215         fi
10216
10217         # If the loop below does not find an linker, then use whatever
10218         # one we can find in the users's path.
10219         # user's path.
10220         if test "x$program_prefix" != xNONE; then
10221                 gcc_cv_ld=${program_prefix}ld$host_exeext
10222         else
10223                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10224         fi
10225
10226         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10227                    $test_prefix/libexec/gcc/$target_noncanonical \
10228                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10229                    /usr/lib/gcc/$target_noncanonical \
10230                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10231                    $test_prefix/$target_noncanonical/bin"
10232
10233         if test x$host = x$target; then
10234             test_dirs="$test_dirs \
10235                    /usr/libexec \
10236                    /usr/ccs/gcc \
10237                    /usr/ccs/bin \
10238                    /udk/usr/ccs/bin \
10239                    /bsd43/usr/lib/cmplrs/cc \
10240                    /usr/cross64/usr/bin \
10241                    /usr/lib/cmplrs/cc \
10242                    /sysv/usr/lib/cmplrs/cc \
10243                    /svr4/usr/lib/cmplrs/cc \
10244                    /usr/bin"
10245         fi
10246
10247         for dir in $test_dirs; do
10248                 if test -x $dir/ld$host_exeext; then
10249                         gcc_cv_ld=$dir/ld$host_exeext
10250                         break;
10251                 fi
10252         done
10253 fi
10254 case $in_tree_ld in
10255   yes)
10256     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10257 echo "${ECHO_T}\"newly built ld\"" >&6
10258     ;;
10259   no)
10260     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10261 echo "${ECHO_T}$gcc_cv_ld" >&6
10262     ;;
10263 esac
10264
10265 # Figure out what nm we will be using.
10266 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10267 echo "$as_me:$LINENO: checking what nm to use" >&5
10268 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10269 in_tree_nm=no
10270 if test -x nm$host_exeext; then
10271         gcc_cv_nm=./nm$host_exeext
10272 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10273      && test -f ../binutils/Makefile; then
10274         # Single tree build which includes binutils.
10275         in_tree_nm=yes
10276         gcc_cv_nm=./nm$host_exeext
10277         rm -f nm$host_exeext
10278         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10279 elif test "x$program_prefix" != xNONE; then
10280         gcc_cv_nm=${program_prefix}nm$host_exeext
10281 else
10282         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10283 fi
10284 case $in_tree_nm in
10285   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10286 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10287   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10288 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10289 esac
10290
10291 # Figure out what objdump we will be using.
10292 echo "$as_me:$LINENO: checking what objdump to use" >&5
10293 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10294 in_tree_objdump=no
10295 if test -x objdump$host_exeext; then
10296         gcc_cv_objdump=./objdump$host_exeext
10297 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10298      && test -f ../binutils/Makefile; then
10299         # Single tree build which includes binutils.
10300         in_tree_objdump=yes
10301         gcc_cv_objdump=./objdump$host_exeext
10302         rm -f objdump$host_exeext
10303         $symbolic_link ../binutils/objdump$host_exeext \
10304                 objdump$host_exeext 2>/dev/null
10305 elif test "x$program_prefix" != xNONE; then
10306         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10307 else
10308         gcc_cv_objdump=`echo objdump | \
10309                 sed "${program_transform_name}"`$host_exeext
10310 fi
10311 case $in_tree_objdump in
10312   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10313 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10314   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10315 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10316 esac
10317
10318 # Figure out what assembler alignment features are present.
10319 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10320 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10321 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10322   echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324   gcc_cv_as_balign_and_p2align=no
10325     if test $in_tree_gas = yes; then
10326     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10327   then gcc_cv_as_balign_and_p2align=yes
10328 fi
10329   elif test x$gcc_cv_as != x; then
10330     echo '.balign 4
10331 .p2align 2' > conftest.s
10332     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334   (eval $ac_try) 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); }; }
10338     then
10339         gcc_cv_as_balign_and_p2align=yes
10340     else
10341       echo "configure: failed program was" >&5
10342       cat conftest.s >&5
10343     fi
10344     rm -f conftest.o conftest.s
10345   fi
10346 fi
10347 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10348 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10349 if test $gcc_cv_as_balign_and_p2align = yes; then
10350
10351 cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10353 _ACEOF
10354
10355 fi
10356
10357 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10358 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10359 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   gcc_cv_as_max_skip_p2align=no
10363     if test $in_tree_gas = yes; then
10364     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10365   then gcc_cv_as_max_skip_p2align=yes
10366 fi
10367   elif test x$gcc_cv_as != x; then
10368     echo '.p2align 4,,7' > conftest.s
10369     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371   (eval $ac_try) 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; }
10375     then
10376         gcc_cv_as_max_skip_p2align=yes
10377     else
10378       echo "configure: failed program was" >&5
10379       cat conftest.s >&5
10380     fi
10381     rm -f conftest.o conftest.s
10382   fi
10383 fi
10384 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10385 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10386 if test $gcc_cv_as_max_skip_p2align = yes; then
10387
10388 cat >>confdefs.h <<\_ACEOF
10389 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10390 _ACEOF
10391
10392 fi
10393
10394 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10395 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10396 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   gcc_cv_as_subsection_m1=no
10400     if test $in_tree_gas = yes; then
10401     if test $in_tree_gas_is_elf = yes \
10402   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10403   then gcc_cv_as_subsection_m1=yes
10404 fi
10405   elif test x$gcc_cv_as != x; then
10406     echo 'conftest_label1: .word 0
10407 .subsection -1
10408 conftest_label2: .word 0
10409 .previous' > conftest.s
10410     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412   (eval $ac_try) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; }
10416     then
10417         if test x$gcc_cv_nm != x; then
10418     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10419     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10420     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10421     then :
10422     else gcc_cv_as_subsection_m1=yes
10423     fi
10424     rm -f conftest.nm1 conftest.nm2
10425   fi
10426     else
10427       echo "configure: failed program was" >&5
10428       cat conftest.s >&5
10429     fi
10430     rm -f conftest.o conftest.s
10431   fi
10432 fi
10433 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10434 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10435 if test $gcc_cv_as_subsection_m1 = yes; then
10436
10437 cat >>confdefs.h <<\_ACEOF
10438 #define HAVE_GAS_SUBSECTION_ORDERING 1
10439 _ACEOF
10440
10441 fi
10442
10443 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10444 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10445 if test "${gcc_cv_as_weak+set}" = set; then
10446   echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448   gcc_cv_as_weak=no
10449     if test $in_tree_gas = yes; then
10450     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10451   then gcc_cv_as_weak=yes
10452 fi
10453   elif test x$gcc_cv_as != x; then
10454     echo '      .weak foobar' > conftest.s
10455     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457   (eval $ac_try) 2>&5
10458   ac_status=$?
10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); }; }
10461     then
10462         gcc_cv_as_weak=yes
10463     else
10464       echo "configure: failed program was" >&5
10465       cat conftest.s >&5
10466     fi
10467     rm -f conftest.o conftest.s
10468   fi
10469 fi
10470 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10471 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10472 if test $gcc_cv_as_weak = yes; then
10473
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_GAS_WEAK 1
10476 _ACEOF
10477
10478 fi
10479
10480 # .hidden needs to be supported in both the assembler and the linker,
10481 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10482 # This is irritatingly difficult to feature test for; we have to check the
10483 # date string after the version number.  If we've got an in-tree
10484 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10485 # to be safe.
10486 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10487 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10488 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10489 if test "${gcc_cv_as_hidden+set}" = set; then
10490   echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492   gcc_cv_as_hidden=no
10493     if test $in_tree_gas = yes; then
10494     if test $in_tree_gas_is_elf = yes \
10495   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10496   then gcc_cv_as_hidden=yes
10497 fi
10498   elif test x$gcc_cv_as != x; then
10499     echo '      .hidden foobar
10500 foobar:' > conftest.s
10501     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503   (eval $ac_try) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; }
10507     then
10508         gcc_cv_as_hidden=yes
10509     else
10510       echo "configure: failed program was" >&5
10511       cat conftest.s >&5
10512     fi
10513     rm -f conftest.o conftest.s
10514   fi
10515 fi
10516 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10517 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10518
10519
10520 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10521 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10522 if test "${gcc_cv_ld_hidden+set}" = set; then
10523   echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525   if test $in_tree_ld = yes ; then
10526   gcc_cv_ld_hidden=no
10527   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 \
10528      && test $in_tree_ld_is_elf = yes; then
10529      gcc_cv_ld_hidden=yes
10530   fi
10531 else
10532   gcc_cv_ld_hidden=yes
10533   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10534   if echo "$ld_ver" | grep GNU > /dev/null; then
10535     ld_vers=`echo $ld_ver | sed -n \
10536         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10537         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10538         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10539         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10540         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10541         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10542     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'`
10543     if test 0"$ld_date" -lt 20020404; then
10544       if test -n "$ld_date"; then
10545         # If there was date string, but was earlier than 2002-04-04, fail
10546         gcc_cv_ld_hidden=no
10547       elif test -z "$ld_vers"; then
10548         # If there was no date string nor ld version number, something is wrong
10549         gcc_cv_ld_hidden=no
10550       else
10551         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10552         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10553         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10554         test -z "$ld_vers_patch" && ld_vers_patch=0
10555         if test "$ld_vers_major" -lt 2; then
10556           gcc_cv_ld_hidden=no
10557         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10558           gcc_cv_ld_hidden="no"
10559         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10560           gcc_cv_ld_hidden=no
10561         fi
10562       fi
10563     fi
10564   else
10565     case "${target}" in
10566       hppa64*-*-hpux* | ia64*-*-hpux*)
10567         gcc_cv_ld_hidden=yes
10568         ;;
10569       *)
10570         gcc_cv_ld_hidden=no
10571         ;;
10572     esac
10573   fi
10574 fi
10575 fi
10576 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10577 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10578 libgcc_visibility=no
10579
10580 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10581   libgcc_visibility=yes
10582
10583 cat >>confdefs.h <<\_ACEOF
10584 #define HAVE_GAS_HIDDEN 1
10585 _ACEOF
10586
10587 fi
10588
10589 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10590 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10591 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10592 if test "${gcc_cv_as_leb128+set}" = set; then
10593   echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595   gcc_cv_as_leb128=no
10596     if test $in_tree_gas = yes; then
10597     if test $in_tree_gas_is_elf = yes \
10598   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10599   then gcc_cv_as_leb128=yes
10600 fi
10601   elif test x$gcc_cv_as != x; then
10602     echo '      .data
10603         .uleb128 L2 - L1
10604 L1:
10605         .uleb128 1280
10606         .sleb128 -1010
10607 L2:' > conftest.s
10608     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }
10614     then
10615         # GAS versions before 2.11 do not support uleb128,
10616   # despite appearing to.
10617   # ??? There exists an elf-specific test that will crash
10618   # the assembler.  Perhaps it's better to figure out whether
10619   # arbitrary sections are supported and try the test.
10620   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10621   if echo "$as_ver" | grep GNU > /dev/null; then
10622     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10623     as_major=`echo $as_ver | sed 's/\..*//'`
10624     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10625     if test $as_major -eq 2 && test $as_minor -lt 11
10626     then :
10627     else gcc_cv_as_leb128=yes
10628     fi
10629   fi
10630     else
10631       echo "configure: failed program was" >&5
10632       cat conftest.s >&5
10633     fi
10634     rm -f conftest.o conftest.s
10635   fi
10636 fi
10637 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10638 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10639 if test $gcc_cv_as_leb128 = yes; then
10640
10641 cat >>confdefs.h <<\_ACEOF
10642 #define HAVE_AS_LEB128 1
10643 _ACEOF
10644
10645 fi
10646
10647 # GAS versions up to and including 2.11.0 may mis-optimize
10648 # .eh_frame data.
10649 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10650 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10651 if test "${gcc_cv_as_eh_frame+set}" = set; then
10652   echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654   gcc_cv_as_eh_frame=no
10655     if test $in_tree_gas = yes; then
10656     if test $in_tree_gas_is_elf = yes \
10657   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10658   then gcc_cv_as_eh_frame=yes
10659 fi
10660   elif test x$gcc_cv_as != x; then
10661     echo '      .text
10662 .LFB1:
10663         .4byte  0
10664 .L1:
10665         .4byte  0
10666 .LFE1:
10667         .section        .eh_frame,"aw",@progbits
10668 __FRAME_BEGIN__:
10669         .4byte  .LECIE1-.LSCIE1
10670 .LSCIE1:
10671         .4byte  0x0
10672         .byte   0x1
10673         .ascii "z\0"
10674         .byte   0x1
10675         .byte   0x78
10676         .byte   0x1a
10677         .byte   0x0
10678         .byte   0x4
10679         .4byte  1
10680         .p2align 1
10681 .LECIE1:
10682 .LSFDE1:
10683         .4byte  .LEFDE1-.LASFDE1
10684 .LASFDE1:
10685         .4byte  .LASFDE1-__FRAME_BEGIN__
10686         .4byte  .LFB1
10687         .4byte  .LFE1-.LFB1
10688         .byte   0x4
10689         .4byte  .LFE1-.LFB1
10690         .byte   0x4
10691         .4byte  .L1-.LFB1
10692 .LEFDE1:' > conftest.s
10693     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695   (eval $ac_try) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; }
10699     then
10700           cat > conftest.lit <<EOF
10701  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10702  0010 01000000 12000000 18000000 00000000  ................
10703  0020 08000000 04080000 0044               .........D      
10704 EOF
10705 cat > conftest.big <<EOF
10706  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10707  0010 00000001 00000012 00000018 00000000  ................
10708  0020 00000008 04000000 0844               .........D      
10709 EOF
10710   # If the assembler didn't choke, and we can objdump,
10711   # and we got the correct data, then succeed.
10712   if test x$gcc_cv_objdump != x \
10713   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10714      | tail -3 > conftest.got \
10715   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10716     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10717   then
10718     gcc_cv_as_eh_frame=yes
10719   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721   (eval $ac_try) 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725     gcc_cv_as_eh_frame=buggy
10726   else
10727     # Uh oh, what do we do now?
10728     gcc_cv_as_eh_frame=no
10729   fi
10730     else
10731       echo "configure: failed program was" >&5
10732       cat conftest.s >&5
10733     fi
10734     rm -f conftest.o conftest.s
10735   fi
10736 fi
10737 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10738 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10739
10740
10741 if test $gcc_cv_as_eh_frame = buggy; then
10742
10743 cat >>confdefs.h <<\_ACEOF
10744 #define USE_AS_TRADITIONAL_FORMAT 1
10745 _ACEOF
10746
10747 fi
10748
10749 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10750 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10751 if test "${gcc_cv_as_shf_merge+set}" = set; then
10752   echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754   gcc_cv_as_shf_merge=no
10755     if test $in_tree_gas = yes; then
10756     if test $in_tree_gas_is_elf = yes \
10757   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10758   then gcc_cv_as_shf_merge=yes
10759 fi
10760   elif test x$gcc_cv_as != x; then
10761     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10762     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }
10768     then
10769         gcc_cv_as_shf_merge=yes
10770     else
10771       echo "configure: failed program was" >&5
10772       cat conftest.s >&5
10773     fi
10774     rm -f conftest.o conftest.s
10775   fi
10776 fi
10777 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10778 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10779
10780
10781 cat >>confdefs.h <<_ACEOF
10782 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10783 _ACEOF
10784
10785
10786 # Thread-local storage - the check is heavily parametrized.
10787 conftest_s=
10788 tls_first_major=
10789 tls_first_minor=
10790 tls_as_opt=
10791 case "$target" in
10792   alpha*-*-*)
10793     conftest_s='
10794         .section ".tdata","awT",@progbits
10795 foo:    .long   25
10796         .text
10797         ldq     $27,__tls_get_addr($29)         !literal!1
10798         lda     $16,foo($29)                    !tlsgd!1
10799         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10800         ldq     $27,__tls_get_addr($29)         !literal!2
10801         lda     $16,foo($29)                    !tlsldm!2
10802         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10803         ldq     $1,foo($29)                     !gotdtprel
10804         ldah    $2,foo($29)                     !dtprelhi
10805         lda     $3,foo($2)                      !dtprello
10806         lda     $4,foo($29)                     !dtprel
10807         ldq     $1,foo($29)                     !gottprel
10808         ldah    $2,foo($29)                     !tprelhi
10809         lda     $3,foo($2)                      !tprello
10810         lda     $4,foo($29)                     !tprel'
10811         tls_first_major=2
10812         tls_first_minor=13
10813         tls_as_opt=--fatal-warnings
10814         ;;
10815   i[34567]86-*-*)
10816     conftest_s='
10817         .section ".tdata","awT",@progbits
10818 foo:    .long   25
10819         .text
10820         movl    %gs:0, %eax
10821         leal    foo@TLSGD(,%ebx,1), %eax
10822         leal    foo@TLSLDM(%ebx), %eax
10823         leal    foo@DTPOFF(%eax), %edx
10824         movl    foo@GOTTPOFF(%ebx), %eax
10825         subl    foo@GOTTPOFF(%ebx), %eax
10826         addl    foo@GOTNTPOFF(%ebx), %eax
10827         movl    foo@INDNTPOFF, %eax
10828         movl    $foo@TPOFF, %eax
10829         subl    $foo@TPOFF, %eax
10830         leal    foo@NTPOFF(%ecx), %eax'
10831         tls_first_major=2
10832         tls_first_minor=14
10833         tls_as_opt=--fatal-warnings
10834         ;;
10835   x86_64-*-*)
10836     conftest_s='
10837         .section ".tdata","awT",@progbits
10838 foo:    .long   25
10839         .text
10840         movq    %fs:0, %rax
10841         leaq    foo@TLSGD(%rip), %rdi
10842         leaq    foo@TLSLD(%rip), %rdi
10843         leaq    foo@DTPOFF(%rax), %rdx
10844         movq    foo@GOTTPOFF(%rip), %rax
10845         movq    $foo@TPOFF, %rax'
10846         tls_first_major=2
10847         tls_first_minor=14
10848         tls_as_opt=--fatal-warnings
10849         ;;
10850   ia64-*-*)
10851     conftest_s='
10852         .section ".tdata","awT",@progbits
10853 foo:    data8   25
10854         .text
10855         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10856         addl    r17 = @ltoff(@dtprel(foo#)), gp
10857         addl    r18 = @ltoff(@tprel(foo#)), gp
10858         addl    r19 = @dtprel(foo#), gp
10859         adds    r21 = @dtprel(foo#), r13
10860         movl    r23 = @dtprel(foo#)
10861         addl    r20 = @tprel(foo#), gp
10862         adds    r22 = @tprel(foo#), r13
10863         movl    r24 = @tprel(foo#)'
10864         tls_first_major=2
10865         tls_first_minor=13
10866         tls_as_opt=--fatal-warnings
10867         ;;
10868   powerpc-*-*)
10869     conftest_s='
10870         .section ".tdata","awT",@progbits
10871         .align 2
10872 ld0:    .space 4
10873 ld1:    .space 4
10874 x1:     .space 4
10875 x2:     .space 4
10876 x3:     .space 4
10877         .text
10878         addi 3,31,ld0@got@tlsgd
10879         bl __tls_get_addr
10880         addi 3,31,x1@got@tlsld
10881         bl __tls_get_addr
10882         addi 9,3,x1@dtprel
10883         addis 9,3,x2@dtprel@ha
10884         addi 9,9,x2@dtprel@l
10885         lwz 9,x3@got@tprel(31)
10886         add 9,9,x@tls
10887         addi 9,2,x1@tprel
10888         addis 9,2,x2@tprel@ha
10889         addi 9,9,x2@tprel@l'
10890         tls_first_major=2
10891         tls_first_minor=14
10892         tls_as_opt="-a32 --fatal-warnings"
10893         ;;
10894   powerpc64-*-*)
10895     conftest_s='
10896         .section ".tdata","awT",@progbits
10897         .align 3
10898 ld0:    .space 8
10899 ld1:    .space 8
10900 x1:     .space 8
10901 x2:     .space 8
10902 x3:     .space 8
10903         .text
10904         addi 3,2,ld0@got@tlsgd
10905         bl .__tls_get_addr
10906         nop
10907         addi 3,2,ld1@toc
10908         bl .__tls_get_addr
10909         nop
10910         addi 3,2,x1@got@tlsld
10911         bl .__tls_get_addr
10912         nop
10913         addi 9,3,x1@dtprel
10914         bl .__tls_get_addr
10915         nop
10916         addis 9,3,x2@dtprel@ha
10917         addi 9,9,x2@dtprel@l
10918         bl .__tls_get_addr
10919         nop
10920         ld 9,x3@got@dtprel(2)
10921         add 9,9,3
10922         bl .__tls_get_addr
10923         nop'
10924         tls_first_major=2
10925         tls_first_minor=14
10926         tls_as_opt="-a64 --fatal-warnings"
10927         ;;
10928   s390-*-*)
10929     conftest_s='
10930         .section ".tdata","awT",@progbits
10931 foo:    .long   25
10932         .text
10933         .long   foo@TLSGD
10934         .long   foo@TLSLDM
10935         .long   foo@DTPOFF
10936         .long   foo@NTPOFF
10937         .long   foo@GOTNTPOFF
10938         .long   foo@INDNTPOFF
10939         l       %r1,foo@GOTNTPOFF(%r12)
10940         l       %r1,0(%r1):tls_load:foo
10941         bas     %r14,0(%r1,%r13):tls_gdcall:foo
10942         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
10943         tls_first_major=2
10944         tls_first_minor=14
10945         tls_as_opt="-m31 --fatal-warnings"
10946         ;;
10947   s390x-*-*)
10948     conftest_s='
10949         .section ".tdata","awT",@progbits
10950 foo:    .long   25
10951         .text
10952         .quad   foo@TLSGD
10953         .quad   foo@TLSLDM
10954         .quad   foo@DTPOFF
10955         .quad   foo@NTPOFF
10956         .quad   foo@GOTNTPOFF
10957         lg      %r1,foo@GOTNTPOFF(%r12)
10958         larl    %r1,foo@INDNTPOFF
10959         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
10960         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10961         tls_first_major=2
10962         tls_first_minor=14
10963         tls_as_opt="-m64 -Aesame --fatal-warnings"
10964         ;;
10965   sh-*-* | sh[34]-*-*)
10966     conftest_s='
10967         .section ".tdata","awT",@progbits
10968 foo:    .long   25
10969         .text
10970         .long   foo@TLSGD
10971         .long   foo@TLSLDM
10972         .long   foo@DTPOFF
10973         .long   foo@GOTTPOFF
10974         .long   foo@TPOFF'
10975         tls_first_major=2
10976         tls_first_minor=13
10977         tls_as_opt=--fatal-warnings
10978         ;;
10979   sparc*-*-*)
10980     case "$target" in
10981       sparc*-sun-solaris2.*)
10982         on_solaris=yes
10983         ;;
10984       *)
10985         on_solaris=no
10986         ;;
10987     esac
10988     if test x$on_solaris = xyes && test x$gas_flag = xno; then
10989       conftest_s='
10990         .section ".tdata",#alloc,#write,#tls
10991 foo:    .long   25
10992         .text
10993         sethi   %tgd_hi22(foo), %o0
10994         add     %o0, %tgd_lo10(foo), %o1
10995         add     %l7, %o1, %o0, %tgd_add(foo)
10996         call    __tls_get_addr, %tgd_call(foo)
10997         sethi   %tldm_hi22(foo), %l1
10998         add     %l1, %tldm_lo10(foo), %l2
10999         add     %l7, %l2, %o0, %tldm_add(foo)
11000         call    __tls_get_addr, %tldm_call(foo)
11001         sethi   %tldo_hix22(foo), %l3
11002         xor     %l3, %tldo_lox10(foo), %l4
11003         add     %o0, %l4, %l5, %tldo_add(foo)
11004         sethi   %tie_hi22(foo), %o3
11005         add     %o3, %tie_lo10(foo), %o3
11006         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11007         add     %g7, %o2, %o4, %tie_add(foo)
11008         sethi   %tle_hix22(foo), %l1
11009         xor     %l1, %tle_lox10(foo), %o5
11010         ld      [%g7 + %o5], %o1'
11011         tls_first_major=0
11012         tls_first_minor=0
11013     else
11014       conftest_s='
11015         .section ".tdata","awT",@progbits
11016 foo:    .long   25
11017         .text
11018         sethi   %tgd_hi22(foo), %o0
11019         add     %o0, %tgd_lo10(foo), %o1
11020         add     %l7, %o1, %o0, %tgd_add(foo)
11021         call    __tls_get_addr, %tgd_call(foo)
11022         sethi   %tldm_hi22(foo), %l1
11023         add     %l1, %tldm_lo10(foo), %l2
11024         add     %l7, %l2, %o0, %tldm_add(foo)
11025         call    __tls_get_addr, %tldm_call(foo)
11026         sethi   %tldo_hix22(foo), %l3
11027         xor     %l3, %tldo_lox10(foo), %l4
11028         add     %o0, %l4, %l5, %tldo_add(foo)
11029         sethi   %tie_hi22(foo), %o3
11030         add     %o3, %tie_lo10(foo), %o3
11031         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11032         add     %g7, %o2, %o4, %tie_add(foo)
11033         sethi   %tle_hix22(foo), %l1
11034         xor     %l1, %tle_lox10(foo), %o5
11035         ld      [%g7 + %o5], %o1'
11036         tls_first_major=2
11037         tls_first_minor=14
11038         tls_as_opt="-32 --fatal-warnings"
11039       fi
11040         ;;
11041 esac
11042 if test -z "$tls_first_major"; then
11043   : # If we don't have a check, assume no support.
11044 else
11045   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11046 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11047 if test "${gcc_cv_as_tls+set}" = set; then
11048   echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050   gcc_cv_as_tls=no
11051     if test $in_tree_gas = yes; then
11052     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11053   then gcc_cv_as_tls=yes
11054 fi
11055   elif test x$gcc_cv_as != x; then
11056     echo "$conftest_s" > conftest.s
11057     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059   (eval $ac_try) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }; }
11063     then
11064         gcc_cv_as_tls=yes
11065     else
11066       echo "configure: failed program was" >&5
11067       cat conftest.s >&5
11068     fi
11069     rm -f conftest.o conftest.s
11070   fi
11071 fi
11072 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11073 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11074 if test $gcc_cv_as_tls = yes; then
11075
11076 cat >>confdefs.h <<\_ACEOF
11077 #define HAVE_AS_TLS 1
11078 _ACEOF
11079
11080 fi
11081 fi
11082
11083 # Target-specific assembler checks.
11084
11085 case "$target" in
11086   # All TARGET_ABI_OSF targets.
11087   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11088     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11089 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11090 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093   gcc_cv_as_alpha_explicit_relocs=no
11094     if test $in_tree_gas = yes; then
11095     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11096   then gcc_cv_as_alpha_explicit_relocs=yes
11097 fi
11098   elif test x$gcc_cv_as != x; then
11099     echo '      .set nomacro
11100         .text
11101         extbl   $3, $2, $3      !lituse_bytoff!1
11102         ldq     $2, a($29)      !literal!1
11103         ldq     $4, b($29)      !literal!2
11104         ldq_u   $3, 0($2)       !lituse_base!1
11105         ldq     $27, f($29)     !literal!5
11106         jsr     $26, ($27), f   !lituse_jsr!5
11107         ldah    $29, 0($26)     !gpdisp!3
11108         lda     $0, c($29)      !gprel
11109         ldah    $1, d($29)      !gprelhigh
11110         lda     $1, d($1)       !gprellow
11111         lda     $29, 0($29)     !gpdisp!3' > conftest.s
11112     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114   (eval $ac_try) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }; }
11118     then
11119         gcc_cv_as_alpha_explicit_relocs=yes
11120     else
11121       echo "configure: failed program was" >&5
11122       cat conftest.s >&5
11123     fi
11124     rm -f conftest.o conftest.s
11125   fi
11126 fi
11127 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11128 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11129 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11130
11131 cat >>confdefs.h <<\_ACEOF
11132 #define HAVE_AS_EXPLICIT_RELOCS 1
11133 _ACEOF
11134
11135 fi
11136     ;;
11137
11138   cris-*-*)
11139     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11140 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11141 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11142   echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11144   gcc_cv_as_cris_no_mul_bug=no
11145     if test $in_tree_gas = yes; then
11146     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11147   then gcc_cv_as_cris_no_mul_bug=yes
11148 fi
11149   elif test x$gcc_cv_as != x; then
11150     echo '.text' > conftest.s
11151     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153   (eval $ac_try) 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); }; }
11157     then
11158         gcc_cv_as_cris_no_mul_bug=yes
11159     else
11160       echo "configure: failed program was" >&5
11161       cat conftest.s >&5
11162     fi
11163     rm -f conftest.o conftest.s
11164   fi
11165 fi
11166 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11167 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11168 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11169
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11172 _ACEOF
11173
11174 fi
11175     ;;
11176
11177   sparc*-*-*)
11178     echo "$as_me:$LINENO: checking assembler for .register" >&5
11179 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11180 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   gcc_cv_as_sparc_register_op=no
11184   if test x$gcc_cv_as != x; then
11185     echo '.register %g2, #scratch' > conftest.s
11186     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188   (eval $ac_try) 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); }; }
11192     then
11193         gcc_cv_as_sparc_register_op=yes
11194     else
11195       echo "configure: failed program was" >&5
11196       cat conftest.s >&5
11197     fi
11198     rm -f conftest.o conftest.s
11199   fi
11200 fi
11201 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11202 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11203 if test $gcc_cv_as_sparc_register_op = yes; then
11204
11205 cat >>confdefs.h <<\_ACEOF
11206 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11207 _ACEOF
11208
11209 fi
11210
11211     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11212 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11213 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11214   echo $ECHO_N "(cached) $ECHO_C" >&6
11215 else
11216   gcc_cv_as_sparc_relax=no
11217   if test x$gcc_cv_as != x; then
11218     echo '.text' > conftest.s
11219     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221   (eval $ac_try) 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); }; }
11225     then
11226         gcc_cv_as_sparc_relax=yes
11227     else
11228       echo "configure: failed program was" >&5
11229       cat conftest.s >&5
11230     fi
11231     rm -f conftest.o conftest.s
11232   fi
11233 fi
11234 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11235 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11236 if test $gcc_cv_as_sparc_relax = yes; then
11237
11238 cat >>confdefs.h <<\_ACEOF
11239 #define HAVE_AS_RELAX_OPTION 1
11240 _ACEOF
11241
11242 fi
11243
11244     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11245 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11246 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11247   echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249   gcc_cv_as_sparc_ua_pcrel=no
11250   if test x$gcc_cv_as != x; then
11251     echo '.text
11252 foo:
11253         nop
11254 .data
11255 .align 4
11256 .byte 0
11257 .uaword %r_disp32(foo)' > conftest.s
11258     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }
11264     then
11265         if test x$gcc_cv_ld != x \
11266        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11267          gcc_cv_as_sparc_ua_pcrel=yes
11268        fi
11269        rm -f conftest
11270     else
11271       echo "configure: failed program was" >&5
11272       cat conftest.s >&5
11273     fi
11274     rm -f conftest.o conftest.s
11275   fi
11276 fi
11277 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11278 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11279 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11280
11281 cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_AS_SPARC_UA_PCREL 1
11283 _ACEOF
11284
11285
11286       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11287 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11288 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291   gcc_cv_as_sparc_ua_pcrel_hidden=no
11292   if test x$gcc_cv_as != x; then
11293     echo '.data
11294 .align 4
11295 .byte 0x31
11296 .uaword %r_disp32(foo)
11297 .byte 0x32, 0x33, 0x34
11298 .global foo
11299 .hidden foo
11300 foo:
11301 .skip 4' > conftest.s
11302     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304   (eval $ac_try) 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); }; }
11308     then
11309         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11310          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11311          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11312             | grep ' 31000000 07323334' > /dev/null 2>&1; then
11313             if $gcc_cv_objdump -R conftest 2> /dev/null \
11314                | grep 'DISP32' > /dev/null 2>&1; then
11315                 :
11316             else
11317                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11318             fi
11319          fi
11320          rm -f conftest
11321     else
11322       echo "configure: failed program was" >&5
11323       cat conftest.s >&5
11324     fi
11325     rm -f conftest.o conftest.s
11326   fi
11327 fi
11328 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11329 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11330 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11331
11332 cat >>confdefs.h <<\_ACEOF
11333 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11334 _ACEOF
11335
11336 fi
11337
11338 fi # unaligned pcrel relocs
11339
11340     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11341 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11342 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11343   echo $ECHO_N "(cached) $ECHO_C" >&6
11344 else
11345   gcc_cv_as_sparc_offsetable_lo10=no
11346   if test x$gcc_cv_as != x; then
11347     echo '.text
11348         or %g1, %lo(ab) + 12, %g1
11349         or %g1, %lo(ab + 12), %g1' > conftest.s
11350     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352   (eval $ac_try) 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); }; }
11356     then
11357         if test x$gcc_cv_objdump != x \
11358        && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11359           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11360          gcc_cv_as_offsetable_lo10=yes
11361        fi
11362     else
11363       echo "configure: failed program was" >&5
11364       cat conftest.s >&5
11365     fi
11366     rm -f conftest.o conftest.s
11367   fi
11368 fi
11369 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11370 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11371 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11372
11373 cat >>confdefs.h <<\_ACEOF
11374 #define HAVE_AS_OFFSETABLE_LO10 1
11375 _ACEOF
11376
11377 fi
11378     ;;
11379
11380   i[34567]86-*-* | x86_64-*-*)
11381     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11382 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11383 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11384   echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386   gcc_cv_as_ix86_filds_fists=no
11387     if test $in_tree_gas = yes; then
11388     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11389   then gcc_cv_as_ix86_filds_fists=yes
11390 fi
11391   elif test x$gcc_cv_as != x; then
11392     echo 'filds mem; fists mem' > conftest.s
11393     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395   (eval $ac_try) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; }
11399     then
11400         gcc_cv_as_ix86_filds_fists=yes
11401     else
11402       echo "configure: failed program was" >&5
11403       cat conftest.s >&5
11404     fi
11405     rm -f conftest.o conftest.s
11406   fi
11407 fi
11408 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11409 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11410 if test $gcc_cv_as_ix86_filds_fists = yes; then
11411
11412 cat >>confdefs.h <<\_ACEOF
11413 #define HAVE_GAS_FILDS_FISTS 1
11414 _ACEOF
11415
11416 fi
11417
11418     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11419 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11420 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11421   echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423   gcc_cv_as_ix86_cmov_sun_syntax=no
11424   if test x$gcc_cv_as != x; then
11425     echo 'cmovl.l %edx, %eax' > conftest.s
11426     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; }
11432     then
11433         gcc_cv_as_ix86_cmov_sun_syntax=yes
11434     else
11435       echo "configure: failed program was" >&5
11436       cat conftest.s >&5
11437     fi
11438     rm -f conftest.o conftest.s
11439   fi
11440 fi
11441 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11442 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11443 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11444
11445 cat >>confdefs.h <<\_ACEOF
11446 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11447 _ACEOF
11448
11449 fi
11450
11451     # This one is used unconditionally by i386.[ch]; it is to be defined
11452     # to 1 if the feature is present, 0 otherwise.
11453     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11454 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11455 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   gcc_cv_as_ix86_gotoff_in_data=no
11459     if test $in_tree_gas = yes; then
11460     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11461   then gcc_cv_as_ix86_gotoff_in_data=yes
11462 fi
11463   elif test x$gcc_cv_as != x; then
11464     echo '      .text
11465 .L0:
11466         nop
11467         .data
11468         .long .L0@GOTOFF' > conftest.s
11469     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471   (eval $ac_try) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; }
11475     then
11476         gcc_cv_as_ix86_gotoff_in_data=yes
11477     else
11478       echo "configure: failed program was" >&5
11479       cat conftest.s >&5
11480     fi
11481     rm -f conftest.o conftest.s
11482   fi
11483 fi
11484 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11485 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11486
11487
11488 cat >>confdefs.h <<_ACEOF
11489 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11490 _ACEOF
11491
11492     ;;
11493
11494   ia64*-*-*)
11495     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11496 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11497 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11501     if test $in_tree_gas = yes; then
11502     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11503   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11504 fi
11505   elif test x$gcc_cv_as != x; then
11506     echo '      .text
11507         addl r15 = @ltoffx(x#), gp
11508         ;;
11509         ld8.mov r16 = [r15], x#' > conftest.s
11510     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512   (eval $ac_try) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }
11516     then
11517         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11518     else
11519       echo "configure: failed program was" >&5
11520       cat conftest.s >&5
11521     fi
11522     rm -f conftest.o conftest.s
11523   fi
11524 fi
11525 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11526 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11527 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11528
11529 cat >>confdefs.h <<\_ACEOF
11530 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11531 _ACEOF
11532
11533 fi
11534
11535     ;;
11536
11537   powerpc*-*-*)
11538     case $target in
11539       *-*-aix*) conftest_s='    .csect .text[PR]
11540         mfcr 3,128';;
11541       *-*-darwin*) conftest_s=' .text
11542         mfcr r3,128';;
11543       *)       conftest_s='     .text
11544         mfcr 3,128';;
11545     esac
11546
11547     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11548 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11549 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11550   echo $ECHO_N "(cached) $ECHO_C" >&6
11551 else
11552   gcc_cv_as_powerpc_mfcrf=no
11553     if test $in_tree_gas = yes; then
11554     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11555   then gcc_cv_as_powerpc_mfcrf=yes
11556 fi
11557   elif test x$gcc_cv_as != x; then
11558     echo "$conftest_s" > conftest.s
11559     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561   (eval $ac_try) 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; }
11565     then
11566         gcc_cv_as_powerpc_mfcrf=yes
11567     else
11568       echo "configure: failed program was" >&5
11569       cat conftest.s >&5
11570     fi
11571     rm -f conftest.o conftest.s
11572   fi
11573 fi
11574 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11575 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11576 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11577
11578 cat >>confdefs.h <<\_ACEOF
11579 #define HAVE_AS_MFCRF 1
11580 _ACEOF
11581
11582 fi
11583     ;;
11584
11585   mips*-*-*)
11586     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11587 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11588 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11589   echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591   gcc_cv_as_mips_explicit_relocs=no
11592     if test $in_tree_gas = yes; then
11593     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11594   then gcc_cv_as_mips_explicit_relocs=yes
11595 fi
11596   elif test x$gcc_cv_as != x; then
11597     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11598     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600   (eval $ac_try) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }
11604     then
11605         gcc_cv_as_mips_explicit_relocs=yes
11606     else
11607       echo "configure: failed program was" >&5
11608       cat conftest.s >&5
11609     fi
11610     rm -f conftest.o conftest.s
11611   fi
11612 fi
11613 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11614 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11615 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11616   if test x$target_cpu_default = x
11617        then target_cpu_default=MASK_EXPLICIT_RELOCS
11618        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11619        fi
11620 fi
11621
11622     ;;
11623 esac
11624 # ??? Not all targets support dwarf2 debug_line, even within a version
11625 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11626 # info to the output file.  So, as supported targets are added to gas 2.11,
11627 # add some instruction here to (also) show we expect this might work.
11628 # ??? Once 2.11 is released, probably need to add first known working
11629 # version to the per-target configury.
11630 case "$target" in
11631   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11632   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11633   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11634     insn="nop"
11635     ;;
11636   ia64*-*-* | s390*-*-*)
11637     insn="nop 0"
11638     ;;
11639   mmix-*-*)
11640     insn="swym 0"
11641     ;;
11642 esac
11643 if test x"$insn" != x; then
11644  conftest_s="\
11645         .file 1 \"conftest.s\"
11646         .loc 1 3 0
11647         $insn"
11648  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11649 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11650 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653   gcc_cv_as_dwarf2_debug_line=no
11654     if test $in_tree_gas = yes; then
11655     if test $in_tree_gas_is_elf = yes \
11656   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11657   then gcc_cv_as_dwarf2_debug_line=yes
11658 fi
11659   elif test x$gcc_cv_as != x; then
11660     echo "$conftest_s" > conftest.s
11661     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; }
11667     then
11668         # ??? This fails with non-gnu grep.  Maybe use objdump?
11669    if grep debug_line conftest.o > /dev/null 2>&1; then
11670      gcc_cv_as_dwarf2_debug_line=yes
11671    fi
11672     else
11673       echo "configure: failed program was" >&5
11674       cat conftest.s >&5
11675     fi
11676     rm -f conftest.o conftest.s
11677   fi
11678 fi
11679 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11680 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11681
11682
11683 # The .debug_line file table must be in the exact order that
11684 # we specified the files, since these indices are also used
11685 # by DW_AT_decl_file.  Approximate this test by testing if
11686 # the assembler bitches if the same index is assigned twice.
11687  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11688 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11689 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692   gcc_cv_as_dwarf2_file_buggy=no
11693   if test x$gcc_cv_as != x; then
11694     echo '      .file 1 "foo.s"
11695         .file 1 "bar.s"' > conftest.s
11696     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698   (eval $ac_try) 2>&5
11699   ac_status=$?
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); }; }
11702     then
11703         gcc_cv_as_dwarf2_file_buggy=yes
11704     else
11705       echo "configure: failed program was" >&5
11706       cat conftest.s >&5
11707     fi
11708     rm -f conftest.o conftest.s
11709   fi
11710 fi
11711 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11712 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11713
11714
11715  if test $gcc_cv_as_dwarf2_debug_line = yes \
11716  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11717
11718 cat >>confdefs.h <<\_ACEOF
11719 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11720 _ACEOF
11721
11722  fi
11723
11724  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11725 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11726 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729   gcc_cv_as_gdwarf2_flag=no
11730     if test $in_tree_gas = yes; then
11731     if test $in_tree_gas_is_elf = yes \
11732   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11733   then gcc_cv_as_gdwarf2_flag=yes
11734 fi
11735   elif test x$gcc_cv_as != x; then
11736     echo "$insn" > conftest.s
11737     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739   (eval $ac_try) 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; }
11743     then
11744         gcc_cv_as_gdwarf2_flag=yes
11745     else
11746       echo "configure: failed program was" >&5
11747       cat conftest.s >&5
11748     fi
11749     rm -f conftest.o conftest.s
11750   fi
11751 fi
11752 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11753 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11754 if test $gcc_cv_as_gdwarf2_flag = yes; then
11755
11756 cat >>confdefs.h <<\_ACEOF
11757 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11758 _ACEOF
11759
11760 fi
11761
11762  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11763 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11764 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11765   echo $ECHO_N "(cached) $ECHO_C" >&6
11766 else
11767   gcc_cv_as_gstabs_flag=no
11768     if test $in_tree_gas = yes; then
11769     if test $in_tree_gas_is_elf = yes \
11770   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11771   then gcc_cv_as_gstabs_flag=yes
11772 fi
11773   elif test x$gcc_cv_as != x; then
11774     echo "$insn" > conftest.s
11775     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }
11781     then
11782         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11783    # and warns about it, but still exits successfully.  So check for
11784    # this.
11785    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787   (eval $ac_try) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }; }
11791    then :
11792    else gcc_cv_as_gstabs_flag=yes
11793    fi
11794     else
11795       echo "configure: failed program was" >&5
11796       cat conftest.s >&5
11797     fi
11798     rm -f conftest.o conftest.s
11799   fi
11800 fi
11801 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11802 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11803 if test $gcc_cv_as_gstabs_flag = yes; then
11804
11805 cat >>confdefs.h <<\_ACEOF
11806 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11807 _ACEOF
11808
11809 fi
11810 fi
11811
11812 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11813 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11814 gcc_cv_ld_ro_rw_mix=unknown
11815 if test $in_tree_ld = yes ; then
11816   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 \
11817      && test $in_tree_ld_is_elf = yes; then
11818     gcc_cv_ld_ro_rw_mix=read-write
11819   fi
11820 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11821   echo '.section myfoosect, "a"' > conftest1.s
11822   echo '.section myfoosect, "aw"' > conftest2.s
11823   echo '.byte 1' >> conftest2.s
11824   echo '.section myfoosect, "a"' > conftest3.s
11825   echo '.byte 0' >> conftest3.s
11826   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11827      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11828      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11829      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11830         conftest2.o conftest3.o > /dev/null 2>&1; then
11831     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11832                          | sed -e '/myfoosect/!d' -e N`
11833     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11834       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11835         gcc_cv_ld_ro_rw_mix=read-only
11836       else
11837         gcc_cv_ld_ro_rw_mix=read-write
11838       fi
11839     fi
11840   fi
11841   rm -f conftest.* conftest[123].*
11842 fi
11843 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11844
11845 cat >>confdefs.h <<\_ACEOF
11846 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11847 _ACEOF
11848
11849 fi
11850 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11851 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11852
11853 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11854 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11855 gcc_cv_ld_eh_frame_hdr=no
11856 if test $in_tree_ld = yes ; then
11857   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 \
11858      && test $in_tree_ld_is_elf = yes; then
11859     gcc_cv_ld_eh_frame_hdr=yes
11860   fi
11861 elif test x$gcc_cv_ld != x; then
11862         # Check if linker supports --eh-frame-hdr option
11863         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11864                 gcc_cv_ld_eh_frame_hdr=yes
11865         fi
11866 fi
11867 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11868
11869 cat >>confdefs.h <<\_ACEOF
11870 #define HAVE_LD_EH_FRAME_HDR 1
11871 _ACEOF
11872
11873 fi
11874 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11875 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11876
11877 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11878 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11879 gcc_cv_ld_pie=no
11880 if test $in_tree_ld = yes ; then
11881   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 \
11882      && test $in_tree_ld_is_elf = yes; then
11883     gcc_cv_ld_pie=yes
11884   fi
11885 elif test x$gcc_cv_ld != x; then
11886         # Check if linker supports -pie option
11887         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11888                 gcc_cv_ld_pie=yes
11889         fi
11890 fi
11891 if test x"$gcc_cv_ld_pie" = xyes; then
11892
11893 cat >>confdefs.h <<\_ACEOF
11894 #define HAVE_LD_PIE 1
11895 _ACEOF
11896
11897 fi
11898 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11899 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11900
11901 # --------
11902 # UNSORTED
11903 # --------
11904
11905 if test x$with_sysroot = x && test x$host = x$target \
11906    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11907
11908 cat >>confdefs.h <<_ACEOF
11909 #define PREFIX_INCLUDE_DIR "$prefix/include"
11910 _ACEOF
11911
11912 fi
11913
11914 # Find out what GC implementation we want, or may, use.
11915
11916 # Check whether --with-gc or --without-gc was given.
11917 if test "${with_gc+set}" = set; then
11918   withval="$with_gc"
11919   case "$withval" in
11920   page | zone)
11921     GGC=ggc-$withval
11922     ;;
11923   *)
11924     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11925 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11926    { (exit 1); exit 1; }; }
11927     ;;
11928 esac
11929 else
11930   GGC=ggc-page
11931 fi;
11932
11933 echo "Using $GGC for garbage collection."
11934
11935 # Use the system's zlib library.
11936 zlibdir=-L../zlib
11937 zlibinc="-I\$(srcdir)/../zlib"
11938
11939 # Check whether --with-system-zlib or --without-system-zlib was given.
11940 if test "${with_system_zlib+set}" = set; then
11941   withval="$with_system_zlib"
11942   zlibdir=
11943 zlibinc=
11944
11945 fi;
11946
11947
11948
11949
11950 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11951 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11952     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11953 if test "${enable_maintainer_mode+set}" = set; then
11954   enableval="$enable_maintainer_mode"
11955   maintainer_mode=$enableval
11956 else
11957   maintainer_mode=no
11958 fi;
11959
11960 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11961 echo "${ECHO_T}$maintainer_mode" >&6
11962
11963 if test "$maintainer_mode" = "yes"; then
11964   MAINT=''
11965 else
11966   MAINT='#'
11967 fi
11968
11969 # --------------
11970 # Language hooks
11971 # --------------
11972
11973 # Make empty files to contain the specs and options for each language.
11974 # Then add #include lines to for a compiler that has specs and/or options.
11975
11976 lang_opt_files=
11977 lang_specs_files=
11978 lang_tree_files=
11979 for subdir in . $subdirs
11980 do
11981         if test -f $srcdir/$subdir/lang.opt; then
11982             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11983         fi
11984         if test -f $srcdir/$subdir/lang-specs.h; then
11985             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11986         fi
11987         if test -f $srcdir/$subdir/$subdir-tree.def; then
11988             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11989         fi
11990 done
11991
11992 # These (without "all_") are set in each config-lang.in.
11993 # `language' must be a single word so is spelled singularly.
11994 all_languages=
11995 all_boot_languages=
11996 all_compilers=
11997 all_stagestuff=
11998 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11999 # List of language makefile fragments.
12000 all_lang_makefrags=
12001 # List of language subdirectory makefiles.  Deprecated.
12002 all_lang_makefiles=
12003 # Files for gengtype
12004 all_gtfiles="$target_gtfiles"
12005 # Files for gengtype with language
12006 all_gtfiles_files_langs=
12007 all_gtfiles_files_files=
12008
12009 # Add the language fragments.
12010 # Languages are added via two mechanisms.  Some information must be
12011 # recorded in makefile variables, these are defined in config-lang.in.
12012 # We accumulate them and plug them into the main Makefile.
12013 # The other mechanism is a set of hooks for each of the main targets
12014 # like `clean', `install', etc.
12015
12016 language_hooks="Make-hooks"
12017
12018 for s in $subdirs
12019 do
12020                 language=
12021                 boot_language=
12022                 compilers=
12023                 stagestuff=
12024                 outputs=
12025                 gtfiles=
12026                 . ${srcdir}/$s/config-lang.in
12027                 if test "x$language" = x
12028                 then
12029                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12030                         exit 1
12031                 fi
12032                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12033                 if test -f ${srcdir}/$s/Makefile.in
12034                 then all_lang_makefiles="$s/Makefile"
12035                 fi
12036                 all_languages="$all_languages $language"
12037                 if test "x$boot_language" = xyes
12038                 then
12039                         all_boot_languages="$all_boot_languages $language"
12040                 fi
12041                 all_compilers="$all_compilers $compilers"
12042                 all_stagestuff="$all_stagestuff $stagestuff"
12043                 all_outputs="$all_outputs $outputs"
12044                 all_gtfiles="$all_gtfiles $gtfiles"
12045                 for f in $gtfiles
12046                 do
12047                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12048                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12049                 done
12050 done
12051
12052 # Pick up gtfiles for c
12053 gtfiles=
12054 s="c"
12055 . ${srcdir}/c-config-lang.in
12056 all_gtfiles="$all_gtfiles $gtfiles"
12057 for f in $gtfiles
12058 do
12059         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12060         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12061 done
12062
12063 check_languages=
12064 for language in $all_languages
12065 do
12066                 check_languages="$check_languages check-$language"
12067 done
12068
12069 # We link each language in with a set of hooks, reached indirectly via
12070 # lang.${target}.
12071
12072 rm -f Make-hooks
12073 touch Make-hooks
12074 target_list="all.build all.cross start.encap rest.encap tags \
12075         install-normal install-common install-man \
12076         uninstall info man srcextra srcman srcinfo \
12077         mostlyclean clean distclean maintainer-clean \
12078         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12079 for t in $target_list
12080 do
12081         x=
12082         for lang in $all_languages
12083         do
12084                         x="$x $lang.$t"
12085         done
12086         echo "lang.$t: $x" >> Make-hooks
12087 done
12088
12089 # --------
12090 # UNSORTED
12091 # --------
12092
12093 # Create .gdbinit.
12094
12095 echo "dir ." > .gdbinit
12096 echo "dir ${srcdir}" >> .gdbinit
12097 if test x$gdb_needs_out_file_path = xyes
12098 then
12099         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12100 fi
12101 if test "x$subdirs" != x; then
12102         for s in $subdirs
12103         do
12104                 echo "dir ${srcdir}/$s" >> .gdbinit
12105         done
12106 fi
12107 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12108
12109 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12110 # absolute path for gcc_tooldir based on inserting the number of up-directory
12111 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12112 # $(libsubdir)/@(unlibsubdir) based path.
12113 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12114 # make and thus we'd get different behavior depending on where we built the
12115 # sources.
12116 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12117     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12118 else
12119 # An explanation of the sed strings:
12120 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
12121 #  -e 's|/$||'            match a trailing forward slash and eliminates it
12122 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
12123 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
12124 #
12125 # (*) Note this pattern overwrites the first character of the string
12126 # with a forward slash if one is not already present.  This is not a
12127 # problem because the exact names of the sub-directories concerned is
12128 # unimportant, just the number of them matters.
12129 #
12130 # The practical upshot of these patterns is like this:
12131 #
12132 #  prefix     exec_prefix        result
12133 #  ------     -----------        ------
12134 #   /foo        /foo/bar          ../
12135 #   /foo/       /foo/bar          ../
12136 #   /foo        /foo/bar/         ../
12137 #   /foo/       /foo/bar/         ../
12138 #   /foo        /foo/bar/ugg      ../../
12139 #
12140     dollar='$$'
12141     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12142 fi
12143
12144
12145
12146 # Find a directory in which to install a shared libgcc.
12147
12148 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12149 if test "${enable_version_specific_runtime_libs+set}" = set; then
12150   enableval="$enable_version_specific_runtime_libs"
12151
12152 fi;
12153
12154
12155 # Check whether --with-slibdir or --without-slibdir was given.
12156 if test "${with_slibdir+set}" = set; then
12157   withval="$with_slibdir"
12158   slibdir="$with_slibdir"
12159 else
12160   if test "${enable_version_specific_runtime_libs+set}" = set; then
12161   slibdir='$(libsubdir)'
12162 elif test "$host" != "$target"; then
12163   slibdir='$(build_tooldir)/lib'
12164 else
12165   slibdir='$(libdir)'
12166 fi
12167 fi;
12168
12169
12170 objdir=`${PWDCMD-pwd}`
12171
12172
12173 # Substitute configuration variables
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242 # If it doesn't already exist, create document directory
12243 echo "checking for the document directory." 1>&2
12244 if test -d doc ; then
12245   true
12246 else
12247   mkdir doc
12248 fi
12249
12250 # Echo link setup.
12251 if test x${build} = x${host} ; then
12252   if test x${host} = x${target} ; then
12253     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12254   else
12255     echo "Links are now set up to build a cross-compiler" 1>&2
12256     echo " from ${host} to ${target}." 1>&2
12257   fi
12258 else
12259   if test x${host} = x${target} ; then
12260     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12261     echo " for ${target}." 1>&2
12262   else
12263     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12264     echo " from ${host} to ${target}." 1>&2
12265   fi
12266 fi
12267
12268 # Configure the subdirectories
12269 # AC_CONFIG_SUBDIRS($subdirs)
12270
12271 # Create the Makefile
12272 # and configure language subdirectories
12273           ac_config_files="$ac_config_files $all_outputs"
12274
12275
12276           ac_config_commands="$ac_config_commands default"
12277
12278 cat >confcache <<\_ACEOF
12279 # This file is a shell script that caches the results of configure
12280 # tests run on this system so they can be shared between configure
12281 # scripts and configure runs, see configure's option --config-cache.
12282 # It is not useful on other systems.  If it contains results you don't
12283 # want to keep, you may remove or edit it.
12284 #
12285 # config.status only pays attention to the cache file if you give it
12286 # the --recheck option to rerun configure.
12287 #
12288 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12289 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12290 # following values.
12291
12292 _ACEOF
12293
12294 # The following way of writing the cache mishandles newlines in values,
12295 # but we know of no workaround that is simple, portable, and efficient.
12296 # So, don't put newlines in cache variables' values.
12297 # Ultrix sh set writes to stderr and can't be redirected directly,
12298 # and sets the high bit in the cache file unless we assign to the vars.
12299 {
12300   (set) 2>&1 |
12301     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12302     *ac_space=\ *)
12303       # `set' does not quote correctly, so add quotes (double-quote
12304       # substitution turns \\\\ into \\, and sed turns \\ into \).
12305       sed -n \
12306         "s/'/'\\\\''/g;
12307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12308       ;;
12309     *)
12310       # `set' quotes correctly as required by POSIX, so do not add quotes.
12311       sed -n \
12312         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12313       ;;
12314     esac;
12315 } |
12316   sed '
12317      t clear
12318      : clear
12319      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12320      t end
12321      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12322      : end' >>confcache
12323 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12324   if test -w $cache_file; then
12325     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12326     cat confcache >$cache_file
12327   else
12328     echo "not updating unwritable cache $cache_file"
12329   fi
12330 fi
12331 rm -f confcache
12332
12333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12334 # Let make expand exec_prefix.
12335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12336
12337 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12338 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12339 # trailing colons and then remove the whole line if VPATH becomes empty
12340 # (actually we leave an empty line to preserve line numbers).
12341 if test "x$srcdir" = x.; then
12342   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12343 s/:*\$(srcdir):*/:/;
12344 s/:*\${srcdir}:*/:/;
12345 s/:*@srcdir@:*/:/;
12346 s/^\([^=]*=[     ]*\):*/\1/;
12347 s/:*$//;
12348 s/^[^=]*=[       ]*$//;
12349 }'
12350 fi
12351
12352 DEFS=-DHAVE_CONFIG_H
12353
12354 ac_libobjs=
12355 ac_ltlibobjs=
12356 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12357   # 1. Remove the extension, and $U if already installed.
12358   ac_i=`echo "$ac_i" |
12359          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12360   # 2. Add them.
12361   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12362   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12363 done
12364 LIBOBJS=$ac_libobjs
12365
12366 LTLIBOBJS=$ac_ltlibobjs
12367
12368
12369
12370 : ${CONFIG_STATUS=./config.status}
12371 ac_clean_files_save=$ac_clean_files
12372 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12373 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12374 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12375 cat >$CONFIG_STATUS <<_ACEOF
12376 #! $SHELL
12377 # Generated by $as_me.
12378 # Run this file to recreate the current configuration.
12379 # Compiler output produced by configure, useful for debugging
12380 # configure, is in config.log if it exists.
12381
12382 debug=false
12383 ac_cs_recheck=false
12384 ac_cs_silent=false
12385 SHELL=\${CONFIG_SHELL-$SHELL}
12386 _ACEOF
12387
12388 cat >>$CONFIG_STATUS <<\_ACEOF
12389 ## --------------------- ##
12390 ## M4sh Initialization.  ##
12391 ## --------------------- ##
12392
12393 # Be Bourne compatible
12394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12395   emulate sh
12396   NULLCMD=:
12397   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12398   # is contrary to our usage.  Disable this feature.
12399   alias -g '${1+"$@"}'='"$@"'
12400 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12401   set -o posix
12402 fi
12403 DUALCASE=1; export DUALCASE # for MKS sh
12404
12405 # Support unset when possible.
12406 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12407   as_unset=unset
12408 else
12409   as_unset=false
12410 fi
12411
12412
12413 # Work around bugs in pre-3.0 UWIN ksh.
12414 $as_unset ENV MAIL MAILPATH
12415 PS1='$ '
12416 PS2='> '
12417 PS4='+ '
12418
12419 # NLS nuisances.
12420 for as_var in \
12421   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12422   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12423   LC_TELEPHONE LC_TIME
12424 do
12425   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12426     eval $as_var=C; export $as_var
12427   else
12428     $as_unset $as_var
12429   fi
12430 done
12431
12432 # Required to use basename.
12433 if expr a : '\(a\)' >/dev/null 2>&1; then
12434   as_expr=expr
12435 else
12436   as_expr=false
12437 fi
12438
12439 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12440   as_basename=basename
12441 else
12442   as_basename=false
12443 fi
12444
12445
12446 # Name of the executable.
12447 as_me=`$as_basename "$0" ||
12448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12449          X"$0" : 'X\(//\)$' \| \
12450          X"$0" : 'X\(/\)$' \| \
12451          .     : '\(.\)' 2>/dev/null ||
12452 echo X/"$0" |
12453     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12454           /^X\/\(\/\/\)$/{ s//\1/; q; }
12455           /^X\/\(\/\).*/{ s//\1/; q; }
12456           s/.*/./; q'`
12457
12458
12459 # PATH needs CR, and LINENO needs CR and PATH.
12460 # Avoid depending upon Character Ranges.
12461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12464 as_cr_digits='0123456789'
12465 as_cr_alnum=$as_cr_Letters$as_cr_digits
12466
12467 # The user is always right.
12468 if test "${PATH_SEPARATOR+set}" != set; then
12469   echo "#! /bin/sh" >conf$$.sh
12470   echo  "exit 0"   >>conf$$.sh
12471   chmod +x conf$$.sh
12472   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12473     PATH_SEPARATOR=';'
12474   else
12475     PATH_SEPARATOR=:
12476   fi
12477   rm -f conf$$.sh
12478 fi
12479
12480
12481   as_lineno_1=$LINENO
12482   as_lineno_2=$LINENO
12483   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12484   test "x$as_lineno_1" != "x$as_lineno_2" &&
12485   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12486   # Find who we are.  Look in the path if we contain no path at all
12487   # relative or not.
12488   case $0 in
12489     *[\\/]* ) as_myself=$0 ;;
12490     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12492 do
12493   IFS=$as_save_IFS
12494   test -z "$as_dir" && as_dir=.
12495   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12496 done
12497
12498        ;;
12499   esac
12500   # We did not find ourselves, most probably we were run as `sh COMMAND'
12501   # in which case we are not to be found in the path.
12502   if test "x$as_myself" = x; then
12503     as_myself=$0
12504   fi
12505   if test ! -f "$as_myself"; then
12506     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12507 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12508    { (exit 1); exit 1; }; }
12509   fi
12510   case $CONFIG_SHELL in
12511   '')
12512     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12514 do
12515   IFS=$as_save_IFS
12516   test -z "$as_dir" && as_dir=.
12517   for as_base in sh bash ksh sh5; do
12518          case $as_dir in
12519          /*)
12520            if ("$as_dir/$as_base" -c '
12521   as_lineno_1=$LINENO
12522   as_lineno_2=$LINENO
12523   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12524   test "x$as_lineno_1" != "x$as_lineno_2" &&
12525   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12526              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12527              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12528              CONFIG_SHELL=$as_dir/$as_base
12529              export CONFIG_SHELL
12530              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12531            fi;;
12532          esac
12533        done
12534 done
12535 ;;
12536   esac
12537
12538   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12539   # uniformly replaced by the line number.  The first 'sed' inserts a
12540   # line-number line before each line; the second 'sed' does the real
12541   # work.  The second script uses 'N' to pair each line-number line
12542   # with the numbered line, and appends trailing '-' during
12543   # substitution so that $LINENO is not a special case at line end.
12544   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12545   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12546   sed '=' <$as_myself |
12547     sed '
12548       N
12549       s,$,-,
12550       : loop
12551       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12552       t loop
12553       s,-$,,
12554       s,^['$as_cr_digits']*\n,,
12555     ' >$as_me.lineno &&
12556   chmod +x $as_me.lineno ||
12557     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12558 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12559    { (exit 1); exit 1; }; }
12560
12561   # Don't try to exec as it changes $[0], causing all sort of problems
12562   # (the dirname of $[0] is not the place where we might find the
12563   # original and so on.  Autoconf is especially sensible to this).
12564   . ./$as_me.lineno
12565   # Exit status is that of the last command.
12566   exit
12567 }
12568
12569
12570 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12571   *c*,-n*) ECHO_N= ECHO_C='
12572 ' ECHO_T='      ' ;;
12573   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12574   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12575 esac
12576
12577 if expr a : '\(a\)' >/dev/null 2>&1; then
12578   as_expr=expr
12579 else
12580   as_expr=false
12581 fi
12582
12583 rm -f conf$$ conf$$.exe conf$$.file
12584 echo >conf$$.file
12585 if ln -s conf$$.file conf$$ 2>/dev/null; then
12586   # We could just check for DJGPP; but this test a) works b) is more generic
12587   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12588   if test -f conf$$.exe; then
12589     # Don't use ln at all; we don't have any links
12590     as_ln_s='cp -p'
12591   else
12592     as_ln_s='ln -s'
12593   fi
12594 elif ln conf$$.file conf$$ 2>/dev/null; then
12595   as_ln_s=ln
12596 else
12597   as_ln_s='cp -p'
12598 fi
12599 rm -f conf$$ conf$$.exe conf$$.file
12600
12601 if mkdir -p . 2>/dev/null; then
12602   as_mkdir_p=:
12603 else
12604   test -d ./-p && rmdir ./-p
12605   as_mkdir_p=false
12606 fi
12607
12608 as_executable_p="test -f"
12609
12610 # Sed expression to map a string onto a valid CPP name.
12611 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12612
12613 # Sed expression to map a string onto a valid variable name.
12614 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12615
12616
12617 # IFS
12618 # We need space, tab and new line, in precisely that order.
12619 as_nl='
12620 '
12621 IFS="   $as_nl"
12622
12623 # CDPATH.
12624 $as_unset CDPATH
12625
12626 exec 6>&1
12627
12628 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12629 # report actual input values of CONFIG_FILES etc. instead of their
12630 # values after options handling.  Logging --version etc. is OK.
12631 exec 5>>config.log
12632 {
12633   echo
12634   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12635 ## Running $as_me. ##
12636 _ASBOX
12637 } >&5
12638 cat >&5 <<_CSEOF
12639
12640 This file was extended by $as_me, which was
12641 generated by GNU Autoconf 2.59.  Invocation command line was
12642
12643   CONFIG_FILES    = $CONFIG_FILES
12644   CONFIG_HEADERS  = $CONFIG_HEADERS
12645   CONFIG_LINKS    = $CONFIG_LINKS
12646   CONFIG_COMMANDS = $CONFIG_COMMANDS
12647   $ $0 $@
12648
12649 _CSEOF
12650 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12651 echo >&5
12652 _ACEOF
12653
12654 # Files that config.status was made for.
12655 if test -n "$ac_config_files"; then
12656   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12657 fi
12658
12659 if test -n "$ac_config_headers"; then
12660   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12661 fi
12662
12663 if test -n "$ac_config_links"; then
12664   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12665 fi
12666
12667 if test -n "$ac_config_commands"; then
12668   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12669 fi
12670
12671 cat >>$CONFIG_STATUS <<\_ACEOF
12672
12673 ac_cs_usage="\
12674 \`$as_me' instantiates files from templates according to the
12675 current configuration.
12676
12677 Usage: $0 [OPTIONS] [FILE]...
12678
12679   -h, --help       print this help, then exit
12680   -V, --version    print version number, then exit
12681   -q, --quiet      do not print progress messages
12682   -d, --debug      don't remove temporary files
12683       --recheck    update $as_me by reconfiguring in the same conditions
12684   --file=FILE[:TEMPLATE]
12685                    instantiate the configuration file FILE
12686   --header=FILE[:TEMPLATE]
12687                    instantiate the configuration header FILE
12688
12689 Configuration files:
12690 $config_files
12691
12692 Configuration headers:
12693 $config_headers
12694
12695 Configuration commands:
12696 $config_commands
12697
12698 Report bugs to <bug-autoconf@gnu.org>."
12699 _ACEOF
12700
12701 cat >>$CONFIG_STATUS <<_ACEOF
12702 ac_cs_version="\\
12703 config.status
12704 configured by $0, generated by GNU Autoconf 2.59,
12705   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12706
12707 Copyright (C) 2003 Free Software Foundation, Inc.
12708 This config.status script is free software; the Free Software Foundation
12709 gives unlimited permission to copy, distribute and modify it."
12710 srcdir=$srcdir
12711 _ACEOF
12712
12713 cat >>$CONFIG_STATUS <<\_ACEOF
12714 # If no file are specified by the user, then we need to provide default
12715 # value.  By we need to know if files were specified by the user.
12716 ac_need_defaults=:
12717 while test $# != 0
12718 do
12719   case $1 in
12720   --*=*)
12721     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12722     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12723     ac_shift=:
12724     ;;
12725   -*)
12726     ac_option=$1
12727     ac_optarg=$2
12728     ac_shift=shift
12729     ;;
12730   *) # This is not an option, so the user has probably given explicit
12731      # arguments.
12732      ac_option=$1
12733      ac_need_defaults=false;;
12734   esac
12735
12736   case $ac_option in
12737   # Handling of the options.
12738 _ACEOF
12739 cat >>$CONFIG_STATUS <<\_ACEOF
12740   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12741     ac_cs_recheck=: ;;
12742   --version | --vers* | -V )
12743     echo "$ac_cs_version"; exit 0 ;;
12744   --he | --h)
12745     # Conflict between --help and --header
12746     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12747 Try \`$0 --help' for more information." >&5
12748 echo "$as_me: error: ambiguous option: $1
12749 Try \`$0 --help' for more information." >&2;}
12750    { (exit 1); exit 1; }; };;
12751   --help | --hel | -h )
12752     echo "$ac_cs_usage"; exit 0 ;;
12753   --debug | --d* | -d )
12754     debug=: ;;
12755   --file | --fil | --fi | --f )
12756     $ac_shift
12757     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12758     ac_need_defaults=false;;
12759   --header | --heade | --head | --hea )
12760     $ac_shift
12761     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12762     ac_need_defaults=false;;
12763   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12764   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12765     ac_cs_silent=: ;;
12766
12767   # This is an error.
12768   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12769 Try \`$0 --help' for more information." >&5
12770 echo "$as_me: error: unrecognized option: $1
12771 Try \`$0 --help' for more information." >&2;}
12772    { (exit 1); exit 1; }; } ;;
12773
12774   *) ac_config_targets="$ac_config_targets $1" ;;
12775
12776   esac
12777   shift
12778 done
12779
12780 ac_configure_extra_args=
12781
12782 if $ac_cs_silent; then
12783   exec 6>/dev/null
12784   ac_configure_extra_args="$ac_configure_extra_args --silent"
12785 fi
12786
12787 _ACEOF
12788 cat >>$CONFIG_STATUS <<_ACEOF
12789 if \$ac_cs_recheck; then
12790   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12791   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12792 fi
12793
12794 _ACEOF
12795
12796 cat >>$CONFIG_STATUS <<_ACEOF
12797 #
12798 # INIT-COMMANDS section.
12799 #
12800
12801 subdirs='$subdirs'
12802 symbolic_link='$symbolic_link'
12803
12804
12805 _ACEOF
12806
12807
12808
12809 cat >>$CONFIG_STATUS <<\_ACEOF
12810 for ac_config_target in $ac_config_targets
12811 do
12812   case "$ac_config_target" in
12813   # Handling of arguments.
12814   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12815   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12816   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12817   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12818 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12819    { (exit 1); exit 1; }; };;
12820   esac
12821 done
12822
12823 # If the user did not use the arguments to specify the items to instantiate,
12824 # then the envvar interface is used.  Set only those that are not.
12825 # We use the long form for the default assignment because of an extremely
12826 # bizarre bug on SunOS 4.1.3.
12827 if $ac_need_defaults; then
12828   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12829   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12830   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12831 fi
12832
12833 # Have a temporary directory for convenience.  Make it in the build tree
12834 # simply because there is no reason to put it here, and in addition,
12835 # creating and moving files from /tmp can sometimes cause problems.
12836 # Create a temporary directory, and hook for its removal unless debugging.
12837 $debug ||
12838 {
12839   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12840   trap '{ (exit 1); exit 1; }' 1 2 13 15
12841 }
12842
12843 # Create a (secure) tmp directory for tmp files.
12844
12845 {
12846   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12847   test -n "$tmp" && test -d "$tmp"
12848 }  ||
12849 {
12850   tmp=./confstat$$-$RANDOM
12851   (umask 077 && mkdir $tmp)
12852 } ||
12853 {
12854    echo "$me: cannot create a temporary directory in ." >&2
12855    { (exit 1); exit 1; }
12856 }
12857
12858 _ACEOF
12859
12860 cat >>$CONFIG_STATUS <<_ACEOF
12861
12862 #
12863 # CONFIG_FILES section.
12864 #
12865
12866 # No need to generate the scripts if there are no CONFIG_FILES.
12867 # This happens for instance when ./config.status config.h
12868 if test -n "\$CONFIG_FILES"; then
12869   # Protect against being on the right side of a sed subst in config.status.
12870   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12871    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12872 s,@SHELL@,$SHELL,;t t
12873 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12874 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12875 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12876 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12877 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12878 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12879 s,@exec_prefix@,$exec_prefix,;t t
12880 s,@prefix@,$prefix,;t t
12881 s,@program_transform_name@,$program_transform_name,;t t
12882 s,@bindir@,$bindir,;t t
12883 s,@sbindir@,$sbindir,;t t
12884 s,@libexecdir@,$libexecdir,;t t
12885 s,@datadir@,$datadir,;t t
12886 s,@sysconfdir@,$sysconfdir,;t t
12887 s,@sharedstatedir@,$sharedstatedir,;t t
12888 s,@localstatedir@,$localstatedir,;t t
12889 s,@libdir@,$libdir,;t t
12890 s,@includedir@,$includedir,;t t
12891 s,@oldincludedir@,$oldincludedir,;t t
12892 s,@infodir@,$infodir,;t t
12893 s,@mandir@,$mandir,;t t
12894 s,@build_alias@,$build_alias,;t t
12895 s,@host_alias@,$host_alias,;t t
12896 s,@target_alias@,$target_alias,;t t
12897 s,@DEFS@,$DEFS,;t t
12898 s,@ECHO_C@,$ECHO_C,;t t
12899 s,@ECHO_N@,$ECHO_N,;t t
12900 s,@ECHO_T@,$ECHO_T,;t t
12901 s,@LIBS@,$LIBS,;t t
12902 s,@build@,$build,;t t
12903 s,@build_cpu@,$build_cpu,;t t
12904 s,@build_vendor@,$build_vendor,;t t
12905 s,@build_os@,$build_os,;t t
12906 s,@host@,$host,;t t
12907 s,@host_cpu@,$host_cpu,;t t
12908 s,@host_vendor@,$host_vendor,;t t
12909 s,@host_os@,$host_os,;t t
12910 s,@target@,$target,;t t
12911 s,@target_cpu@,$target_cpu,;t t
12912 s,@target_vendor@,$target_vendor,;t t
12913 s,@target_os@,$target_os,;t t
12914 s,@build_subdir@,$build_subdir,;t t
12915 s,@host_subdir@,$host_subdir,;t t
12916 s,@target_subdir@,$target_subdir,;t t
12917 s,@GENINSRC@,$GENINSRC,;t t
12918 s,@CC@,$CC,;t t
12919 s,@CFLAGS@,$CFLAGS,;t t
12920 s,@LDFLAGS@,$LDFLAGS,;t t
12921 s,@CPPFLAGS@,$CPPFLAGS,;t t
12922 s,@ac_ct_CC@,$ac_ct_CC,;t t
12923 s,@EXEEXT@,$EXEEXT,;t t
12924 s,@OBJEXT@,$OBJEXT,;t t
12925 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12926 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12927 s,@CPP@,$CPP,;t t
12928 s,@strict1_warn@,$strict1_warn,;t t
12929 s,@warn_cflags@,$warn_cflags,;t t
12930 s,@WERROR@,$WERROR,;t t
12931 s,@nocommon_flag@,$nocommon_flag,;t t
12932 s,@EGREP@,$EGREP,;t t
12933 s,@valgrind_path@,$valgrind_path,;t t
12934 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12935 s,@valgrind_command@,$valgrind_command,;t t
12936 s,@coverage_flags@,$coverage_flags,;t t
12937 s,@enable_multilib@,$enable_multilib,;t t
12938 s,@enable_shared@,$enable_shared,;t t
12939 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12940 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12941 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12942 s,@onestep@,$onestep,;t t
12943 s,@SET_MAKE@,$SET_MAKE,;t t
12944 s,@AWK@,$AWK,;t t
12945 s,@LN@,$LN,;t t
12946 s,@LN_S@,$LN_S,;t t
12947 s,@RANLIB@,$RANLIB,;t t
12948 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12949 s,@INSTALL@,$INSTALL,;t t
12950 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12951 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12952 s,@make_compare_target@,$make_compare_target,;t t
12953 s,@have_mktemp_command@,$have_mktemp_command,;t t
12954 s,@MAKEINFO@,$MAKEINFO,;t t
12955 s,@BUILD_INFO@,$BUILD_INFO,;t t
12956 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12957 s,@FLEX@,$FLEX,;t t
12958 s,@BISON@,$BISON,;t t
12959 s,@stage1_cflags@,$stage1_cflags,;t t
12960 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12961 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12962 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12963 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12964 s,@LIBICONV@,$LIBICONV,;t t
12965 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12966 s,@manext@,$manext,;t t
12967 s,@objext@,$objext,;t t
12968 s,@gthread_flags@,$gthread_flags,;t t
12969 s,@extra_modes_file@,$extra_modes_file,;t t
12970 s,@FORBUILD@,$FORBUILD,;t t
12971 s,@PACKAGE@,$PACKAGE,;t t
12972 s,@VERSION@,$VERSION,;t t
12973 s,@USE_NLS@,$USE_NLS,;t t
12974 s,@LIBINTL@,$LIBINTL,;t t
12975 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12976 s,@INCINTL@,$INCINTL,;t t
12977 s,@XGETTEXT@,$XGETTEXT,;t t
12978 s,@GMSGFMT@,$GMSGFMT,;t t
12979 s,@POSUB@,$POSUB,;t t
12980 s,@CATALOGS@,$CATALOGS,;t t
12981 s,@CROSS@,$CROSS,;t t
12982 s,@ALL@,$ALL,;t t
12983 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12984 s,@inhibit_libc@,$inhibit_libc,;t t
12985 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12986 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12987 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12988 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12989 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12990 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12991 s,@libgcc_visibility@,$libgcc_visibility,;t t
12992 s,@GGC@,$GGC,;t t
12993 s,@zlibdir@,$zlibdir,;t t
12994 s,@zlibinc@,$zlibinc,;t t
12995 s,@MAINT@,$MAINT,;t t
12996 s,@gcc_tooldir@,$gcc_tooldir,;t t
12997 s,@dollar@,$dollar,;t t
12998 s,@slibdir@,$slibdir,;t t
12999 s,@objdir@,$objdir,;t t
13000 s,@subdirs@,$subdirs,;t t
13001 s,@srcdir@,$srcdir,;t t
13002 s,@all_boot_languages@,$all_boot_languages,;t t
13003 s,@all_compilers@,$all_compilers,;t t
13004 s,@all_gtfiles@,$all_gtfiles,;t t
13005 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13006 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13007 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13008 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13009 s,@all_languages@,$all_languages,;t t
13010 s,@all_stagestuff@,$all_stagestuff,;t t
13011 s,@build_exeext@,$build_exeext,;t t
13012 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13013 s,@build_xm_file_list@,$build_xm_file_list,;t t
13014 s,@build_xm_include_list@,$build_xm_include_list,;t t
13015 s,@build_xm_defines@,$build_xm_defines,;t t
13016 s,@check_languages@,$check_languages,;t t
13017 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13018 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13019 s,@cpp_install_dir@,$cpp_install_dir,;t t
13020 s,@xmake_file@,$xmake_file,;t t
13021 s,@tmake_file@,$tmake_file,;t t
13022 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13023 s,@extra_headers_list@,$extra_headers_list,;t t
13024 s,@extra_objs@,$extra_objs,;t t
13025 s,@extra_parts@,$extra_parts,;t t
13026 s,@extra_passes@,$extra_passes,;t t
13027 s,@extra_programs@,$extra_programs,;t t
13028 s,@float_h_file@,$float_h_file,;t t
13029 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13030 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13031 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13032 s,@gcc_version@,$gcc_version,;t t
13033 s,@gcc_version_full@,$gcc_version_full,;t t
13034 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13035 s,@host_exeext@,$host_exeext,;t t
13036 s,@host_xm_file_list@,$host_xm_file_list,;t t
13037 s,@host_xm_include_list@,$host_xm_include_list,;t t
13038 s,@host_xm_defines@,$host_xm_defines,;t t
13039 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13040 s,@install@,$install,;t t
13041 s,@lang_opt_files@,$lang_opt_files,;t t
13042 s,@lang_specs_files@,$lang_specs_files,;t t
13043 s,@lang_tree_files@,$lang_tree_files,;t t
13044 s,@local_prefix@,$local_prefix,;t t
13045 s,@md_file@,$md_file,;t t
13046 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13047 s,@out_file@,$out_file,;t t
13048 s,@out_object_file@,$out_object_file,;t t
13049 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13050 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13051 s,@symbolic_link@,$symbolic_link,;t t
13052 s,@thread_file@,$thread_file,;t t
13053 s,@tm_file_list@,$tm_file_list,;t t
13054 s,@tm_include_list@,$tm_include_list,;t t
13055 s,@tm_defines@,$tm_defines,;t t
13056 s,@tm_p_file_list@,$tm_p_file_list,;t t
13057 s,@tm_p_include_list@,$tm_p_include_list,;t t
13058 s,@xm_file_list@,$xm_file_list,;t t
13059 s,@xm_include_list@,$xm_include_list,;t t
13060 s,@xm_defines@,$xm_defines,;t t
13061 s,@target_noncanonical@,$target_noncanonical,;t t
13062 s,@c_target_objs@,$c_target_objs,;t t
13063 s,@cxx_target_objs@,$cxx_target_objs,;t t
13064 s,@target_cpu_default@,$target_cpu_default,;t t
13065 s,@LIBOBJS@,$LIBOBJS,;t t
13066 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13067 /@language_hooks@/r $language_hooks
13068 s,@language_hooks@,,;t t
13069 CEOF
13070
13071 _ACEOF
13072
13073   cat >>$CONFIG_STATUS <<\_ACEOF
13074   # Split the substitutions into bite-sized pieces for seds with
13075   # small command number limits, like on Digital OSF/1 and HP-UX.
13076   ac_max_sed_lines=48
13077   ac_sed_frag=1 # Number of current file.
13078   ac_beg=1 # First line for current file.
13079   ac_end=$ac_max_sed_lines # Line after last line for current file.
13080   ac_more_lines=:
13081   ac_sed_cmds=
13082   while $ac_more_lines; do
13083     if test $ac_beg -gt 1; then
13084       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13085     else
13086       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13087     fi
13088     if test ! -s $tmp/subs.frag; then
13089       ac_more_lines=false
13090     else
13091       # The purpose of the label and of the branching condition is to
13092       # speed up the sed processing (if there are no `@' at all, there
13093       # is no need to browse any of the substitutions).
13094       # These are the two extra sed commands mentioned above.
13095       (echo ':t
13096   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13097       if test -z "$ac_sed_cmds"; then
13098         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13099       else
13100         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13101       fi
13102       ac_sed_frag=`expr $ac_sed_frag + 1`
13103       ac_beg=$ac_end
13104       ac_end=`expr $ac_end + $ac_max_sed_lines`
13105     fi
13106   done
13107   if test -z "$ac_sed_cmds"; then
13108     ac_sed_cmds=cat
13109   fi
13110 fi # test -n "$CONFIG_FILES"
13111
13112 _ACEOF
13113 cat >>$CONFIG_STATUS <<\_ACEOF
13114 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13115   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13116   case $ac_file in
13117   - | *:- | *:-:* ) # input from stdin
13118         cat >$tmp/stdin
13119         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13120         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13121   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13122         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13123   * )   ac_file_in=$ac_file.in ;;
13124   esac
13125
13126   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13127   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13128 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13129          X"$ac_file" : 'X\(//\)[^/]' \| \
13130          X"$ac_file" : 'X\(//\)$' \| \
13131          X"$ac_file" : 'X\(/\)' \| \
13132          .     : '\(.\)' 2>/dev/null ||
13133 echo X"$ac_file" |
13134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13135           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13136           /^X\(\/\/\)$/{ s//\1/; q; }
13137           /^X\(\/\).*/{ s//\1/; q; }
13138           s/.*/./; q'`
13139   { if $as_mkdir_p; then
13140     mkdir -p "$ac_dir"
13141   else
13142     as_dir="$ac_dir"
13143     as_dirs=
13144     while test ! -d "$as_dir"; do
13145       as_dirs="$as_dir $as_dirs"
13146       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13147 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13148          X"$as_dir" : 'X\(//\)[^/]' \| \
13149          X"$as_dir" : 'X\(//\)$' \| \
13150          X"$as_dir" : 'X\(/\)' \| \
13151          .     : '\(.\)' 2>/dev/null ||
13152 echo X"$as_dir" |
13153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13154           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13155           /^X\(\/\/\)$/{ s//\1/; q; }
13156           /^X\(\/\).*/{ s//\1/; q; }
13157           s/.*/./; q'`
13158     done
13159     test ! -n "$as_dirs" || mkdir $as_dirs
13160   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13161 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13162    { (exit 1); exit 1; }; }; }
13163
13164   ac_builddir=.
13165
13166 if test "$ac_dir" != .; then
13167   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13168   # A "../" for each directory in $ac_dir_suffix.
13169   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13170 else
13171   ac_dir_suffix= ac_top_builddir=
13172 fi
13173
13174 case $srcdir in
13175   .)  # No --srcdir option.  We are building in place.
13176     ac_srcdir=.
13177     if test -z "$ac_top_builddir"; then
13178        ac_top_srcdir=.
13179     else
13180        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13181     fi ;;
13182   [\\/]* | ?:[\\/]* )  # Absolute path.
13183     ac_srcdir=$srcdir$ac_dir_suffix;
13184     ac_top_srcdir=$srcdir ;;
13185   *) # Relative path.
13186     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13187     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13188 esac
13189
13190 # Do not use `cd foo && pwd` to compute absolute paths, because
13191 # the directories may not exist.
13192 case `pwd` in
13193 .) ac_abs_builddir="$ac_dir";;
13194 *)
13195   case "$ac_dir" in
13196   .) ac_abs_builddir=`pwd`;;
13197   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13198   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13199   esac;;
13200 esac
13201 case $ac_abs_builddir in
13202 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13203 *)
13204   case ${ac_top_builddir}. in
13205   .) ac_abs_top_builddir=$ac_abs_builddir;;
13206   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13207   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13208   esac;;
13209 esac
13210 case $ac_abs_builddir in
13211 .) ac_abs_srcdir=$ac_srcdir;;
13212 *)
13213   case $ac_srcdir in
13214   .) ac_abs_srcdir=$ac_abs_builddir;;
13215   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13216   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13217   esac;;
13218 esac
13219 case $ac_abs_builddir in
13220 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13221 *)
13222   case $ac_top_srcdir in
13223   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13224   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13225   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13226   esac;;
13227 esac
13228
13229
13230
13231   # Let's still pretend it is `configure' which instantiates (i.e., don't
13232   # use $as_me), people would be surprised to read:
13233   #    /* config.h.  Generated by config.status.  */
13234   if test x"$ac_file" = x-; then
13235     configure_input=
13236   else
13237     configure_input="$ac_file.  "
13238   fi
13239   configure_input=$configure_input"Generated from `echo $ac_file_in |
13240                                      sed 's,.*/,,'` by configure."
13241
13242   # First look for the input files in the build tree, otherwise in the
13243   # src tree.
13244   ac_file_inputs=`IFS=:
13245     for f in $ac_file_in; do
13246       case $f in
13247       -) echo $tmp/stdin ;;
13248       [\\/$]*)
13249          # Absolute (can't be DOS-style, as IFS=:)
13250          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13251 echo "$as_me: error: cannot find input file: $f" >&2;}
13252    { (exit 1); exit 1; }; }
13253          echo "$f";;
13254       *) # Relative
13255          if test -f "$f"; then
13256            # Build tree
13257            echo "$f"
13258          elif test -f "$srcdir/$f"; then
13259            # Source tree
13260            echo "$srcdir/$f"
13261          else
13262            # /dev/null tree
13263            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13264 echo "$as_me: error: cannot find input file: $f" >&2;}
13265    { (exit 1); exit 1; }; }
13266          fi;;
13267       esac
13268     done` || { (exit 1); exit 1; }
13269
13270   if test x"$ac_file" != x-; then
13271     { echo "$as_me:$LINENO: creating $ac_file" >&5
13272 echo "$as_me: creating $ac_file" >&6;}
13273     rm -f "$ac_file"
13274   fi
13275 _ACEOF
13276 cat >>$CONFIG_STATUS <<_ACEOF
13277   sed "$ac_vpsub
13278 $extrasub
13279 _ACEOF
13280 cat >>$CONFIG_STATUS <<\_ACEOF
13281 :t
13282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13283 s,@configure_input@,$configure_input,;t t
13284 s,@srcdir@,$ac_srcdir,;t t
13285 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13286 s,@top_srcdir@,$ac_top_srcdir,;t t
13287 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13288 s,@builddir@,$ac_builddir,;t t
13289 s,@abs_builddir@,$ac_abs_builddir,;t t
13290 s,@top_builddir@,$ac_top_builddir,;t t
13291 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13292 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13293   rm -f $tmp/stdin
13294   if test x"$ac_file" != x-; then
13295     mv $tmp/out $ac_file
13296   else
13297     cat $tmp/out
13298     rm -f $tmp/out
13299   fi
13300
13301 done
13302 _ACEOF
13303 cat >>$CONFIG_STATUS <<\_ACEOF
13304
13305 #
13306 # CONFIG_HEADER section.
13307 #
13308
13309 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13310 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13311 #
13312 # ac_d sets the value in "#define NAME VALUE" lines.
13313 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13314 ac_dB='[         ].*$,\1#\2'
13315 ac_dC=' '
13316 ac_dD=',;t'
13317 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13318 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13319 ac_uB='$,\1#\2define\3'
13320 ac_uC=' '
13321 ac_uD=',;t'
13322
13323 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13324   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13325   case $ac_file in
13326   - | *:- | *:-:* ) # input from stdin
13327         cat >$tmp/stdin
13328         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13329         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13330   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13331         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13332   * )   ac_file_in=$ac_file.in ;;
13333   esac
13334
13335   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13336 echo "$as_me: creating $ac_file" >&6;}
13337
13338   # First look for the input files in the build tree, otherwise in the
13339   # src tree.
13340   ac_file_inputs=`IFS=:
13341     for f in $ac_file_in; do
13342       case $f in
13343       -) echo $tmp/stdin ;;
13344       [\\/$]*)
13345          # Absolute (can't be DOS-style, as IFS=:)
13346          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13347 echo "$as_me: error: cannot find input file: $f" >&2;}
13348    { (exit 1); exit 1; }; }
13349          # Do quote $f, to prevent DOS paths from being IFS'd.
13350          echo "$f";;
13351       *) # Relative
13352          if test -f "$f"; then
13353            # Build tree
13354            echo "$f"
13355          elif test -f "$srcdir/$f"; then
13356            # Source tree
13357            echo "$srcdir/$f"
13358          else
13359            # /dev/null tree
13360            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13361 echo "$as_me: error: cannot find input file: $f" >&2;}
13362    { (exit 1); exit 1; }; }
13363          fi;;
13364       esac
13365     done` || { (exit 1); exit 1; }
13366   # Remove the trailing spaces.
13367   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13368
13369 _ACEOF
13370
13371 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13372 # `conftest.undefs', that substitutes the proper values into
13373 # config.h.in to produce config.h.  The first handles `#define'
13374 # templates, and the second `#undef' templates.
13375 # And first: Protect against being on the right side of a sed subst in
13376 # config.status.  Protect against being in an unquoted here document
13377 # in config.status.
13378 rm -f conftest.defines conftest.undefs
13379 # Using a here document instead of a string reduces the quoting nightmare.
13380 # Putting comments in sed scripts is not portable.
13381 #
13382 # `end' is used to avoid that the second main sed command (meant for
13383 # 0-ary CPP macros) applies to n-ary macro definitions.
13384 # See the Autoconf documentation for `clear'.
13385 cat >confdef2sed.sed <<\_ACEOF
13386 s/[\\&,]/\\&/g
13387 s,[\\$`],\\&,g
13388 t clear
13389 : clear
13390 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13391 t end
13392 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13393 : end
13394 _ACEOF
13395 # If some macros were called several times there might be several times
13396 # the same #defines, which is useless.  Nevertheless, we may not want to
13397 # sort them, since we want the *last* AC-DEFINE to be honored.
13398 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13399 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13400 rm -f confdef2sed.sed
13401
13402 # This sed command replaces #undef with comments.  This is necessary, for
13403 # example, in the case of _POSIX_SOURCE, which is predefined and required
13404 # on some systems where configure will not decide to define it.
13405 cat >>conftest.undefs <<\_ACEOF
13406 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13407 _ACEOF
13408
13409 # Break up conftest.defines because some shells have a limit on the size
13410 # of here documents, and old seds have small limits too (100 cmds).
13411 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13412 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13413 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13414 echo '  :' >>$CONFIG_STATUS
13415 rm -f conftest.tail
13416 while grep . conftest.defines >/dev/null
13417 do
13418   # Write a limited-size here document to $tmp/defines.sed.
13419   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13420   # Speed up: don't consider the non `#define' lines.
13421   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13422   # Work around the forget-to-reset-the-flag bug.
13423   echo 't clr' >>$CONFIG_STATUS
13424   echo ': clr' >>$CONFIG_STATUS
13425   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13426   echo 'CEOF
13427   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13428   rm -f $tmp/in
13429   mv $tmp/out $tmp/in
13430 ' >>$CONFIG_STATUS
13431   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13432   rm -f conftest.defines
13433   mv conftest.tail conftest.defines
13434 done
13435 rm -f conftest.defines
13436 echo '  fi # grep' >>$CONFIG_STATUS
13437 echo >>$CONFIG_STATUS
13438
13439 # Break up conftest.undefs because some shells have a limit on the size
13440 # of here documents, and old seds have small limits too (100 cmds).
13441 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13442 rm -f conftest.tail
13443 while grep . conftest.undefs >/dev/null
13444 do
13445   # Write a limited-size here document to $tmp/undefs.sed.
13446   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13447   # Speed up: don't consider the non `#undef'
13448   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13449   # Work around the forget-to-reset-the-flag bug.
13450   echo 't clr' >>$CONFIG_STATUS
13451   echo ': clr' >>$CONFIG_STATUS
13452   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13453   echo 'CEOF
13454   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13455   rm -f $tmp/in
13456   mv $tmp/out $tmp/in
13457 ' >>$CONFIG_STATUS
13458   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13459   rm -f conftest.undefs
13460   mv conftest.tail conftest.undefs
13461 done
13462 rm -f conftest.undefs
13463
13464 cat >>$CONFIG_STATUS <<\_ACEOF
13465   # Let's still pretend it is `configure' which instantiates (i.e., don't
13466   # use $as_me), people would be surprised to read:
13467   #    /* config.h.  Generated by config.status.  */
13468   if test x"$ac_file" = x-; then
13469     echo "/* Generated by configure.  */" >$tmp/config.h
13470   else
13471     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13472   fi
13473   cat $tmp/in >>$tmp/config.h
13474   rm -f $tmp/in
13475   if test x"$ac_file" != x-; then
13476     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13477       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13478 echo "$as_me: $ac_file is unchanged" >&6;}
13479     else
13480       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13482          X"$ac_file" : 'X\(//\)[^/]' \| \
13483          X"$ac_file" : 'X\(//\)$' \| \
13484          X"$ac_file" : 'X\(/\)' \| \
13485          .     : '\(.\)' 2>/dev/null ||
13486 echo X"$ac_file" |
13487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13488           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13489           /^X\(\/\/\)$/{ s//\1/; q; }
13490           /^X\(\/\).*/{ s//\1/; q; }
13491           s/.*/./; q'`
13492       { if $as_mkdir_p; then
13493     mkdir -p "$ac_dir"
13494   else
13495     as_dir="$ac_dir"
13496     as_dirs=
13497     while test ! -d "$as_dir"; do
13498       as_dirs="$as_dir $as_dirs"
13499       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13501          X"$as_dir" : 'X\(//\)[^/]' \| \
13502          X"$as_dir" : 'X\(//\)$' \| \
13503          X"$as_dir" : 'X\(/\)' \| \
13504          .     : '\(.\)' 2>/dev/null ||
13505 echo X"$as_dir" |
13506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13508           /^X\(\/\/\)$/{ s//\1/; q; }
13509           /^X\(\/\).*/{ s//\1/; q; }
13510           s/.*/./; q'`
13511     done
13512     test ! -n "$as_dirs" || mkdir $as_dirs
13513   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13515    { (exit 1); exit 1; }; }; }
13516
13517       rm -f $ac_file
13518       mv $tmp/config.h $ac_file
13519     fi
13520   else
13521     cat $tmp/config.h
13522     rm -f $tmp/config.h
13523   fi
13524 done
13525 _ACEOF
13526 cat >>$CONFIG_STATUS <<\_ACEOF
13527
13528 #
13529 # CONFIG_COMMANDS section.
13530 #
13531 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13532   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13533   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13534   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13535 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13536          X"$ac_dest" : 'X\(//\)[^/]' \| \
13537          X"$ac_dest" : 'X\(//\)$' \| \
13538          X"$ac_dest" : 'X\(/\)' \| \
13539          .     : '\(.\)' 2>/dev/null ||
13540 echo X"$ac_dest" |
13541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13542           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13543           /^X\(\/\/\)$/{ s//\1/; q; }
13544           /^X\(\/\).*/{ s//\1/; q; }
13545           s/.*/./; q'`
13546   { if $as_mkdir_p; then
13547     mkdir -p "$ac_dir"
13548   else
13549     as_dir="$ac_dir"
13550     as_dirs=
13551     while test ! -d "$as_dir"; do
13552       as_dirs="$as_dir $as_dirs"
13553       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13554 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13555          X"$as_dir" : 'X\(//\)[^/]' \| \
13556          X"$as_dir" : 'X\(//\)$' \| \
13557          X"$as_dir" : 'X\(/\)' \| \
13558          .     : '\(.\)' 2>/dev/null ||
13559 echo X"$as_dir" |
13560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13561           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13562           /^X\(\/\/\)$/{ s//\1/; q; }
13563           /^X\(\/\).*/{ s//\1/; q; }
13564           s/.*/./; q'`
13565     done
13566     test ! -n "$as_dirs" || mkdir $as_dirs
13567   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13568 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13569    { (exit 1); exit 1; }; }; }
13570
13571   ac_builddir=.
13572
13573 if test "$ac_dir" != .; then
13574   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13575   # A "../" for each directory in $ac_dir_suffix.
13576   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13577 else
13578   ac_dir_suffix= ac_top_builddir=
13579 fi
13580
13581 case $srcdir in
13582   .)  # No --srcdir option.  We are building in place.
13583     ac_srcdir=.
13584     if test -z "$ac_top_builddir"; then
13585        ac_top_srcdir=.
13586     else
13587        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13588     fi ;;
13589   [\\/]* | ?:[\\/]* )  # Absolute path.
13590     ac_srcdir=$srcdir$ac_dir_suffix;
13591     ac_top_srcdir=$srcdir ;;
13592   *) # Relative path.
13593     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13594     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13595 esac
13596
13597 # Do not use `cd foo && pwd` to compute absolute paths, because
13598 # the directories may not exist.
13599 case `pwd` in
13600 .) ac_abs_builddir="$ac_dir";;
13601 *)
13602   case "$ac_dir" in
13603   .) ac_abs_builddir=`pwd`;;
13604   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13605   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13606   esac;;
13607 esac
13608 case $ac_abs_builddir in
13609 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13610 *)
13611   case ${ac_top_builddir}. in
13612   .) ac_abs_top_builddir=$ac_abs_builddir;;
13613   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13614   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13615   esac;;
13616 esac
13617 case $ac_abs_builddir in
13618 .) ac_abs_srcdir=$ac_srcdir;;
13619 *)
13620   case $ac_srcdir in
13621   .) ac_abs_srcdir=$ac_abs_builddir;;
13622   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13623   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13624   esac;;
13625 esac
13626 case $ac_abs_builddir in
13627 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13628 *)
13629   case $ac_top_srcdir in
13630   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13631   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13632   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13633   esac;;
13634 esac
13635
13636
13637   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13638 echo "$as_me: executing $ac_dest commands" >&6;}
13639   case $ac_dest in
13640     default )
13641 case ${CONFIG_HEADERS} in
13642   *auto-host.h:config.in*)
13643   echo > cstamp-h ;;
13644 esac
13645 # Make sure all the subdirs exist.
13646 for d in $subdirs
13647 do
13648     test -d $d || mkdir $d
13649 done
13650 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13651 # bootstrapping and the installation procedure can still use
13652 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13653 # FLAGS_TO_PASS has been modified to solve the problem there.
13654 # This is virtually a duplicate of what happens in configure.lang; we do
13655 # an extra check to make sure this only happens if ln -s can be used.
13656 if test "$symbolic_link" = "ln -s"; then
13657  for d in ${subdirs} fixinc ; do
13658         STARTDIR=`${PWDCMD-pwd}`
13659         cd $d
13660         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13661         do
13662                 rm -f $t
13663                 $symbolic_link ../$t $t 2>/dev/null
13664         done
13665         cd $STARTDIR
13666  done
13667 else true ; fi
13668  ;;
13669   esac
13670 done
13671 _ACEOF
13672
13673 cat >>$CONFIG_STATUS <<\_ACEOF
13674
13675 { (exit 0); exit 0; }
13676 _ACEOF
13677 chmod +x $CONFIG_STATUS
13678 ac_clean_files=$ac_clean_files_save
13679
13680
13681 # configure is writing to config.log, and then calls config.status.
13682 # config.status does its own redirection, appending to config.log.
13683 # Unfortunately, on DOS this fails, as config.log is still kept open
13684 # by configure, so config.status won't be able to write to it; its
13685 # output is simply discarded.  So we exec the FD to /dev/null,
13686 # effectively closing config.log, so it can be properly (re)opened and
13687 # appended to by config.status.  When coming back to configure, we
13688 # need to make the FD available again.
13689 if test "$no_create" != yes; then
13690   ac_cs_success=:
13691   ac_config_status_args=
13692   test "$silent" = yes &&
13693     ac_config_status_args="$ac_config_status_args --quiet"
13694   exec 5>/dev/null
13695   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13696   exec 5>>config.log
13697   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13698   # would make configure fail if this is the last instruction.
13699   $ac_cs_success || { (exit 1); exit 1; }
13700 fi
13701