]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/contrib/gcc/configure
Clone Kip's Xen on stable/6 tree so that I can work on improving FreeBSD/amd64
[FreeBSD/FreeBSD.git] / 6 / contrib / 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 GNATBIND ac_ct_GNATBIND 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 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 gthread_flags 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 set_gcc_lib_path 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 no checking
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-initfini-array       use .init_array/.fini_array sections
879   --enable-sjlj-exceptions
880                           arrange to use setjmp/longjmp exception handling
881   --disable-win32-registry
882                           disable lookup of installation paths in the
883                           Registry on Windows hosts
884   --enable-win32-registry enable registry lookup (default)
885   --enable-win32-registry=KEY
886                           use KEY instead of GCC version as the last portion
887                           of the registry key
888   --enable-maintainer-mode
889                           enable make rules and dependencies not useful
890                           (and sometimes confusing) to the casual installer
891   --enable-version-specific-runtime-libs
892                           specify that runtime libraries should be
893                           installed in a compiler-specific directory
894
895 Optional Packages:
896   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
897   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
898   --with-local-prefix=DIR specifies directory to put local include
899   --with-gxx-include-dir=DIR
900                           specifies directory to put g++ header files
901   --with-cpp-install-dir=DIR
902                           install the user visible C preprocessor in DIR
903                           (relative to PREFIX) as well as PREFIX/bin
904   --with-gnu-ld           arrange to work with GNU ld.
905   --with-ld               arrange to use the specified ld (full pathname)
906   --with-gnu-as           arrange to work with GNU as
907   --with-as               arrange to use the specified as (full pathname)
908   --with-stabs            arrange to use stabs instead of host debug format
909   --with-dwarf2           force the default debug format to be DWARF 2
910   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
911   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
912   --with-system-libunwind use installed libunwind
913   --with-gc={simple,page,zone} choose the garbage collection mechanism to use
914                           with the compiler
915   --with-system-zlib      use installed libz
916   --with-slibdir=DIR      shared libraries in DIR LIBDIR
917
918 Some influential environment variables:
919   CC          C compiler command
920   CFLAGS      C compiler flags
921   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
922               nonstandard directory <lib dir>
923   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
924               headers in a nonstandard directory <include dir>
925   CPP         C preprocessor
926
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
929
930 _ACEOF
931 fi
932
933 if test "$ac_init_help" = "recursive"; then
934   # If there are subdirs, report their specific --help.
935   ac_popdir=`pwd`
936   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937     test -d $ac_dir || continue
938     ac_builddir=.
939
940 if test "$ac_dir" != .; then
941   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942   # A "../" for each directory in $ac_dir_suffix.
943   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 else
945   ac_dir_suffix= ac_top_builddir=
946 fi
947
948 case $srcdir in
949   .)  # No --srcdir option.  We are building in place.
950     ac_srcdir=.
951     if test -z "$ac_top_builddir"; then
952        ac_top_srcdir=.
953     else
954        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955     fi ;;
956   [\\/]* | ?:[\\/]* )  # Absolute path.
957     ac_srcdir=$srcdir$ac_dir_suffix;
958     ac_top_srcdir=$srcdir ;;
959   *) # Relative path.
960     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961     ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 esac
963
964 # Do not use `cd foo && pwd` to compute absolute paths, because
965 # the directories may not exist.
966 case `pwd` in
967 .) ac_abs_builddir="$ac_dir";;
968 *)
969   case "$ac_dir" in
970   .) ac_abs_builddir=`pwd`;;
971   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
972   *) ac_abs_builddir=`pwd`/"$ac_dir";;
973   esac;;
974 esac
975 case $ac_abs_builddir in
976 .) ac_abs_top_builddir=${ac_top_builddir}.;;
977 *)
978   case ${ac_top_builddir}. in
979   .) ac_abs_top_builddir=$ac_abs_builddir;;
980   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
981   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
982   esac;;
983 esac
984 case $ac_abs_builddir in
985 .) ac_abs_srcdir=$ac_srcdir;;
986 *)
987   case $ac_srcdir in
988   .) ac_abs_srcdir=$ac_abs_builddir;;
989   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
990   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
991   esac;;
992 esac
993 case $ac_abs_builddir in
994 .) ac_abs_top_srcdir=$ac_top_srcdir;;
995 *)
996   case $ac_top_srcdir in
997   .) ac_abs_top_srcdir=$ac_abs_builddir;;
998   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
999   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1000   esac;;
1001 esac
1002
1003     cd $ac_dir
1004     # Check for guested configure; otherwise get Cygnus style configure.
1005     if test -f $ac_srcdir/configure.gnu; then
1006       echo
1007       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1008     elif test -f $ac_srcdir/configure; then
1009       echo
1010       $SHELL $ac_srcdir/configure  --help=recursive
1011     elif test -f $ac_srcdir/configure.ac ||
1012            test -f $ac_srcdir/configure.in; then
1013       echo
1014       $ac_configure --help
1015     else
1016       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1017     fi
1018     cd $ac_popdir
1019   done
1020 fi
1021
1022 test -n "$ac_init_help" && exit 0
1023 if $ac_init_version; then
1024   cat <<\_ACEOF
1025
1026 Copyright (C) 2003 Free Software Foundation, Inc.
1027 This configure script is free software; the Free Software Foundation
1028 gives unlimited permission to copy, distribute and modify it.
1029 _ACEOF
1030   exit 0
1031 fi
1032 exec 5>config.log
1033 cat >&5 <<_ACEOF
1034 This file contains any messages produced by compilers while
1035 running configure, to aid debugging if configure makes a mistake.
1036
1037 It was created by $as_me, which was
1038 generated by GNU Autoconf 2.59.  Invocation command line was
1039
1040   $ $0 $@
1041
1042 _ACEOF
1043 {
1044 cat <<_ASUNAME
1045 ## --------- ##
1046 ## Platform. ##
1047 ## --------- ##
1048
1049 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1050 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1051 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1052 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1053 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1054
1055 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1056 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1057
1058 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1059 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1060 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1061 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1062 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1063 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1064 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1065
1066 _ASUNAME
1067
1068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1069 for as_dir in $PATH
1070 do
1071   IFS=$as_save_IFS
1072   test -z "$as_dir" && as_dir=.
1073   echo "PATH: $as_dir"
1074 done
1075
1076 } >&5
1077
1078 cat >&5 <<_ACEOF
1079
1080
1081 ## ----------- ##
1082 ## Core tests. ##
1083 ## ----------- ##
1084
1085 _ACEOF
1086
1087
1088 # Keep a trace of the command line.
1089 # Strip out --no-create and --no-recursion so they do not pile up.
1090 # Strip out --silent because we don't want to record it for future runs.
1091 # Also quote any args containing shell meta-characters.
1092 # Make two passes to allow for proper duplicate-argument suppression.
1093 ac_configure_args=
1094 ac_configure_args0=
1095 ac_configure_args1=
1096 ac_sep=
1097 ac_must_keep_next=false
1098 for ac_pass in 1 2
1099 do
1100   for ac_arg
1101   do
1102     case $ac_arg in
1103     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1104     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105     | -silent | --silent | --silen | --sile | --sil)
1106       continue ;;
1107     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1108       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1109     esac
1110     case $ac_pass in
1111     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1112     2)
1113       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1114       if test $ac_must_keep_next = true; then
1115         ac_must_keep_next=false # Got value, back to normal.
1116       else
1117         case $ac_arg in
1118           *=* | --config-cache | -C | -disable-* | --disable-* \
1119           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1120           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1121           | -with-* | --with-* | -without-* | --without-* | --x)
1122             case "$ac_configure_args0 " in
1123               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1124             esac
1125             ;;
1126           -* ) ac_must_keep_next=true ;;
1127         esac
1128       fi
1129       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1130       # Get rid of the leading space.
1131       ac_sep=" "
1132       ;;
1133     esac
1134   done
1135 done
1136 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1137 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1138
1139 # When interrupted or exit'd, cleanup temporary files, and complete
1140 # config.log.  We remove comments because anyway the quotes in there
1141 # would cause problems or look ugly.
1142 # WARNING: Be sure not to use single quotes in there, as some shells,
1143 # such as our DU 5.0 friend, will then `close' the trap.
1144 trap 'exit_status=$?
1145   # Save into config.log some information that might help in debugging.
1146   {
1147     echo
1148
1149     cat <<\_ASBOX
1150 ## ---------------- ##
1151 ## Cache variables. ##
1152 ## ---------------- ##
1153 _ASBOX
1154     echo
1155     # The following way of writing the cache mishandles newlines in values,
1156 {
1157   (set) 2>&1 |
1158     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1159     *ac_space=\ *)
1160       sed -n \
1161         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1162           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1163       ;;
1164     *)
1165       sed -n \
1166         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1167       ;;
1168     esac;
1169 }
1170     echo
1171
1172     cat <<\_ASBOX
1173 ## ----------------- ##
1174 ## Output variables. ##
1175 ## ----------------- ##
1176 _ASBOX
1177     echo
1178     for ac_var in $ac_subst_vars
1179     do
1180       eval ac_val=$`echo $ac_var`
1181       echo "$ac_var='"'"'$ac_val'"'"'"
1182     done | sort
1183     echo
1184
1185     if test -n "$ac_subst_files"; then
1186       cat <<\_ASBOX
1187 ## ------------- ##
1188 ## Output files. ##
1189 ## ------------- ##
1190 _ASBOX
1191       echo
1192       for ac_var in $ac_subst_files
1193       do
1194         eval ac_val=$`echo $ac_var`
1195         echo "$ac_var='"'"'$ac_val'"'"'"
1196       done | sort
1197       echo
1198     fi
1199
1200     if test -s confdefs.h; then
1201       cat <<\_ASBOX
1202 ## ----------- ##
1203 ## confdefs.h. ##
1204 ## ----------- ##
1205 _ASBOX
1206       echo
1207       sed "/^$/d" confdefs.h | sort
1208       echo
1209     fi
1210     test "$ac_signal" != 0 &&
1211       echo "$as_me: caught signal $ac_signal"
1212     echo "$as_me: exit $exit_status"
1213   } >&5
1214   rm -f core *.core &&
1215   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1216     exit $exit_status
1217      ' 0
1218 for ac_signal in 1 2 13 15; do
1219   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1220 done
1221 ac_signal=0
1222
1223 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1224 rm -rf conftest* confdefs.h
1225 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1226 echo >confdefs.h
1227
1228 # Predefined preprocessor variables.
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_NAME "$PACKAGE_NAME"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1242 _ACEOF
1243
1244
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_STRING "$PACKAGE_STRING"
1247 _ACEOF
1248
1249
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1252 _ACEOF
1253
1254
1255 # Let the site file select an alternate cache file if it wants to.
1256 # Prefer explicitly selected file to automatically selected ones.
1257 if test -z "$CONFIG_SITE"; then
1258   if test "x$prefix" != xNONE; then
1259     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1260   else
1261     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1262   fi
1263 fi
1264 for ac_site_file in $CONFIG_SITE; do
1265   if test -r "$ac_site_file"; then
1266     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1267 echo "$as_me: loading site script $ac_site_file" >&6;}
1268     sed 's/^/| /' "$ac_site_file" >&5
1269     . "$ac_site_file"
1270   fi
1271 done
1272
1273 if test -r "$cache_file"; then
1274   # Some versions of bash will fail to source /dev/null (special
1275   # files actually), so we avoid doing that.
1276   if test -f "$cache_file"; then
1277     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1278 echo "$as_me: loading cache $cache_file" >&6;}
1279     case $cache_file in
1280       [\\/]* | ?:[\\/]* ) . $cache_file;;
1281       *)                      . ./$cache_file;;
1282     esac
1283   fi
1284 else
1285   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1286 echo "$as_me: creating cache $cache_file" >&6;}
1287   >$cache_file
1288 fi
1289
1290 # Check that the precious variables saved in the cache have kept the same
1291 # value.
1292 ac_cache_corrupted=false
1293 for ac_var in `(set) 2>&1 |
1294                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1295   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1296   eval ac_new_set=\$ac_env_${ac_var}_set
1297   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1298   eval ac_new_val="\$ac_env_${ac_var}_value"
1299   case $ac_old_set,$ac_new_set in
1300     set,)
1301       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1302 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1303       ac_cache_corrupted=: ;;
1304     ,set)
1305       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1306 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1307       ac_cache_corrupted=: ;;
1308     ,);;
1309     *)
1310       if test "x$ac_old_val" != "x$ac_new_val"; then
1311         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1312 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1313         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1314 echo "$as_me:   former value:  $ac_old_val" >&2;}
1315         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1316 echo "$as_me:   current value: $ac_new_val" >&2;}
1317         ac_cache_corrupted=:
1318       fi;;
1319   esac
1320   # Pass precious variables to config.status.
1321   if test "$ac_new_set" = set; then
1322     case $ac_new_val in
1323     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1325     *) ac_arg=$ac_var=$ac_new_val ;;
1326     esac
1327     case " $ac_configure_args " in
1328       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1329       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1330     esac
1331   fi
1332 done
1333 if $ac_cache_corrupted; then
1334   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1335 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1336   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1337 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1338    { (exit 1); exit 1; }; }
1339 fi
1340
1341 ac_ext=c
1342 ac_cpp='$CPP $CPPFLAGS'
1343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1367
1368
1369 # Determine the host, build, and target systems
1370 ac_aux_dir=
1371 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1372   if test -f $ac_dir/install-sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install-sh -c"
1375     break
1376   elif test -f $ac_dir/install.sh; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/install.sh -c"
1379     break
1380   elif test -f $ac_dir/shtool; then
1381     ac_aux_dir=$ac_dir
1382     ac_install_sh="$ac_aux_dir/shtool install -c"
1383     break
1384   fi
1385 done
1386 if test -z "$ac_aux_dir"; then
1387   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1388 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1389    { (exit 1); exit 1; }; }
1390 fi
1391 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399    { (exit 1); exit 1; }; }
1400
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408   ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412    { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427 echo "$as_me:$LINENO: checking host system type" >&5
1428 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1429 if test "${ac_cv_host+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   ac_cv_host_alias=$host_alias
1433 test -z "$ac_cv_host_alias" &&
1434   ac_cv_host_alias=$ac_cv_build_alias
1435 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1436   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1437 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1438    { (exit 1); exit 1; }; }
1439
1440 fi
1441 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1442 echo "${ECHO_T}$ac_cv_host" >&6
1443 host=$ac_cv_host
1444 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447
1448
1449 echo "$as_me:$LINENO: checking target system type" >&5
1450 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1451 if test "${ac_cv_target+set}" = set; then
1452   echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454   ac_cv_target_alias=$target_alias
1455 test "x$ac_cv_target_alias" = "x" &&
1456   ac_cv_target_alias=$ac_cv_host_alias
1457 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1458   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1459 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1460    { (exit 1); exit 1; }; }
1461
1462 fi
1463 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1464 echo "${ECHO_T}$ac_cv_target" >&6
1465 target=$ac_cv_target
1466 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1467 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1468 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1469
1470
1471 # The aliases save the names the user supplied, while $host etc.
1472 # will get canonicalized.
1473 test -n "$target_alias" &&
1474   test "$program_prefix$program_suffix$program_transform_name" = \
1475     NONENONEs,x,x, &&
1476   program_prefix=${target_alias}-
1477
1478 # Determine the noncanonical target name, for directory use.
1479  case ${build_alias} in
1480   "") build_noncanonical=${build} ;;
1481   *) build_noncanonical=${build_alias} ;;
1482 esac
1483
1484  case ${host_alias} in
1485   "") host_noncanonical=${build_noncanonical} ;;
1486   *) host_noncanonical=${host_alias} ;;
1487 esac
1488
1489  case ${target_alias} in
1490   "") target_noncanonical=${host_noncanonical} ;;
1491   *) target_noncanonical=${target_alias} ;;
1492 esac
1493
1494
1495 # Determine the target- and build-specific subdirectories
1496   # Prefix 'build-' so this never conflicts with target_subdir.
1497 build_subdir="build-${build_noncanonical}"
1498 # Not really a subdirectory, but here for completeness.
1499 host_subdir=.
1500 # No prefix.
1501 target_subdir=${target_noncanonical}
1502
1503
1504 # Set program_transform_name
1505 test "$program_prefix" != NONE &&
1506   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1507 # Use a double $ so make ignores it.
1508 test "$program_suffix" != NONE &&
1509   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1510 # Double any \ or $.  echo might interpret backslashes.
1511 # By default was `s,x,x', remove it if useless.
1512 cat <<\_ACEOF >conftest.sed
1513 s/[\\$]/&&/g;s/;s,x,x,$//
1514 _ACEOF
1515 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1516 rm conftest.sed
1517
1518
1519 # Check for bogus environment variables.
1520 # Test if LIBRARY_PATH contains the notation for the current directory
1521 # since this would lead to problems installing/building glibc.
1522 # LIBRARY_PATH contains the current directory if one of the following
1523 # is true:
1524 # - one of the terminals (":" and ";") is the first or last sign
1525 # - two terminals occur directly after each other
1526 # - the path contains an element with a dot in it
1527 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1528 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1529 case ${LIBRARY_PATH} in
1530   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1531     library_path_setting="contains current directory"
1532     ;;
1533   *)
1534     library_path_setting="ok"
1535     ;;
1536 esac
1537 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1538 echo "${ECHO_T}$library_path_setting" >&6
1539 if test "$library_path_setting" != "ok"; then
1540 { { echo "$as_me:$LINENO: error:
1541 *** LIBRARY_PATH shouldn't contain the current directory when
1542 *** building gcc. Please change the environment variable
1543 *** and run configure again." >&5
1544 echo "$as_me: error:
1545 *** LIBRARY_PATH shouldn't contain the current directory when
1546 *** building gcc. Please change the environment variable
1547 *** and run configure again." >&2;}
1548    { (exit 1); exit 1; }; }
1549 fi
1550
1551 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1552 # since this would lead to problems installing/building glibc.
1553 # GCC_EXEC_PREFIX contains the current directory if one of the following
1554 # is true:
1555 # - one of the terminals (":" and ";") is the first or last sign
1556 # - two terminals occur directly after each other
1557 # - the path contains an element with a dot in it
1558 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1559 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1560 case ${GCC_EXEC_PREFIX} in
1561   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1562     gcc_exec_prefix_setting="contains current directory"
1563     ;;
1564   *)
1565     gcc_exec_prefix_setting="ok"
1566     ;;
1567 esac
1568 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1569 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1570 if test "$gcc_exec_prefix_setting" != "ok"; then
1571 { { echo "$as_me:$LINENO: error:
1572 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1573 *** building gcc. Please change the environment variable
1574 *** and run configure again." >&5
1575 echo "$as_me: error:
1576 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1577 *** building gcc. Please change the environment variable
1578 *** and run configure again." >&2;}
1579    { (exit 1); exit 1; }; }
1580 fi
1581
1582 # -----------
1583 # Directories
1584 # -----------
1585
1586 # Specify the local prefix
1587 local_prefix=
1588
1589 # Check whether --with-local-prefix or --without-local-prefix was given.
1590 if test "${with_local_prefix+set}" = set; then
1591   withval="$with_local_prefix"
1592   case "${withval}" in
1593 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1594 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1595    { (exit 1); exit 1; }; } ;;
1596 no)     ;;
1597 *)      local_prefix=$with_local_prefix ;;
1598 esac
1599 fi;
1600
1601 # Default local prefix if it is empty
1602 if test x$local_prefix = x; then
1603         local_prefix=/usr/local
1604 fi
1605
1606 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1607 # passed in by the toplevel make and thus we'd get different behavior
1608 # depending on where we built the sources.
1609 gcc_gxx_include_dir=
1610 # Specify the g++ header file directory
1611
1612 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1613 if test "${with_gxx_include_dir+set}" = set; then
1614   withval="$with_gxx_include_dir"
1615   case "${withval}" in
1616 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1617 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1618    { (exit 1); exit 1; }; } ;;
1619 no)     ;;
1620 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1621 esac
1622 fi;
1623
1624 if test x${gcc_gxx_include_dir} = x; then
1625   if test x${enable_version_specific_runtime_libs} = xyes; then
1626     gcc_gxx_include_dir='${libsubdir}/include/c++'
1627   else
1628     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1629     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1630   fi
1631 fi
1632
1633
1634 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1635 if test "${with_cpp_install_dir+set}" = set; then
1636   withval="$with_cpp_install_dir"
1637   if test x$withval = xyes; then
1638   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1639 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1640    { (exit 1); exit 1; }; }
1641 elif test x$withval != xno; then
1642   cpp_install_dir=$withval
1643 fi
1644 fi;
1645
1646 # We would like to our source tree to be readonly.  However when releases or
1647 # pre-releases are generated, the flex/bison generated files as well as the
1648 # various formats of manuals need to be included along with the rest of the
1649 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1650 # just that.
1651
1652 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1653 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1654     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1655 if test "${enable_generated_files_in_srcdir+set}" = set; then
1656   enableval="$enable_generated_files_in_srcdir"
1657   generated_files_in_srcdir=$enableval
1658 else
1659   generated_files_in_srcdir=no
1660 fi;
1661
1662 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1663 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1664
1665 if test "$generated_files_in_srcdir" = "yes"; then
1666   GENINSRC=''
1667 else
1668   GENINSRC='#'
1669 fi
1670
1671
1672 # -------------------
1673 # Find default linker
1674 # -------------------
1675
1676 # With GNU ld
1677
1678 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1679 if test "${with_gnu_ld+set}" = set; then
1680   withval="$with_gnu_ld"
1681   gnu_ld_flag="$with_gnu_ld"
1682 else
1683   gnu_ld_flag=no
1684 fi;
1685
1686 # With pre-defined ld
1687
1688 # Check whether --with-ld or --without-ld was given.
1689 if test "${with_ld+set}" = set; then
1690   withval="$with_ld"
1691   DEFAULT_LINKER="$with_ld"
1692 fi;
1693 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1694   if test ! -x "$DEFAULT_LINKER"; then
1695     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1696 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1697   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1698     gnu_ld_flag=yes
1699   fi
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1703 _ACEOF
1704
1705 fi
1706
1707 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1708 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1709 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1710   if test x"$gnu_ld_flag" = x"no"; then
1711     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1712 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1713   else
1714     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1715 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1716   fi
1717 else
1718   echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1720 fi
1721
1722 # ----------------------
1723 # Find default assembler
1724 # ----------------------
1725
1726 # With GNU as
1727
1728 # Check whether --with-gnu-as or --without-gnu-as was given.
1729 if test "${with_gnu_as+set}" = set; then
1730   withval="$with_gnu_as"
1731   gas_flag="$with_gnu_as"
1732 else
1733   gas_flag=no
1734 fi;
1735
1736
1737 # Check whether --with-as or --without-as was given.
1738 if test "${with_as+set}" = set; then
1739   withval="$with_as"
1740   DEFAULT_ASSEMBLER="$with_as"
1741 fi;
1742 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1743   if test ! -x "$DEFAULT_ASSEMBLER"; then
1744     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1745 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1746   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1747     gas_flag=yes
1748   fi
1749
1750 cat >>confdefs.h <<_ACEOF
1751 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1752 _ACEOF
1753
1754 fi
1755
1756 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1757 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1758 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1759   if test x"$gas_flag" = x"no"; then
1760     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1761 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1762   else
1763     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1764 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1765   fi
1766 else
1767   echo "$as_me:$LINENO: result: no" >&5
1768 echo "${ECHO_T}no" >&6
1769 fi
1770
1771 # ---------------
1772 # Find C compiler
1773 # ---------------
1774
1775 # If a non-executable a.out is present (e.g. created by GNU as above even if
1776 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1777 # file, even when creating an executable, so an execution test fails.
1778 # Remove possible default executable files to avoid this.
1779 #
1780 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1781 # Autoconf includes it.
1782 rm -f a.out a.exe b.out
1783
1784 # Find the native compiler
1785 ac_ext=c
1786 ac_cpp='$CPP $CPPFLAGS'
1787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1790 if test -n "$ac_tool_prefix"; then
1791   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_CC+set}" = set; then
1796   echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798   if test -n "$CC"; then
1799   ac_cv_prog_CC="$CC" # Let the user override the test.
1800 else
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 for as_dir in $PATH
1803 do
1804   IFS=$as_save_IFS
1805   test -z "$as_dir" && as_dir=.
1806   for ac_exec_ext in '' $ac_executable_extensions; do
1807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810     break 2
1811   fi
1812 done
1813 done
1814
1815 fi
1816 fi
1817 CC=$ac_cv_prog_CC
1818 if test -n "$CC"; then
1819   echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6
1821 else
1822   echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 fi
1825
1826 fi
1827 if test -z "$ac_cv_prog_CC"; then
1828   ac_ct_CC=$CC
1829   # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834   echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836   if test -n "$ac_ct_CC"; then
1837   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842   IFS=$as_save_IFS
1843   test -z "$as_dir" && as_dir=.
1844   for ac_exec_ext in '' $ac_executable_extensions; do
1845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846     ac_cv_prog_ac_ct_CC="gcc"
1847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848     break 2
1849   fi
1850 done
1851 done
1852
1853 fi
1854 fi
1855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1856 if test -n "$ac_ct_CC"; then
1857   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1858 echo "${ECHO_T}$ac_ct_CC" >&6
1859 else
1860   echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864   CC=$ac_ct_CC
1865 else
1866   CC="$ac_cv_prog_CC"
1867 fi
1868
1869 if test -z "$CC"; then
1870   if test -n "$ac_tool_prefix"; then
1871   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}cc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   if test -n "$CC"; then
1879   ac_cv_prog_CC="$CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   for ac_exec_ext in '' $ac_executable_extensions; do
1887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888     ac_cv_prog_CC="${ac_tool_prefix}cc"
1889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890     break 2
1891   fi
1892 done
1893 done
1894
1895 fi
1896 fi
1897 CC=$ac_cv_prog_CC
1898 if test -n "$CC"; then
1899   echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1901 else
1902   echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1904 fi
1905
1906 fi
1907 if test -z "$ac_cv_prog_CC"; then
1908   ac_ct_CC=$CC
1909   # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$ac_ct_CC"; then
1917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924   for ac_exec_ext in '' $ac_executable_extensions; do
1925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926     ac_cv_prog_ac_ct_CC="cc"
1927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928     break 2
1929   fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944   CC=$ac_ct_CC
1945 else
1946   CC="$ac_cv_prog_CC"
1947 fi
1948
1949 fi
1950 if test -z "$CC"; then
1951   # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$CC"; then
1959   ac_cv_prog_CC="$CC" # Let the user override the test.
1960 else
1961   ac_prog_rejected=no
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965   IFS=$as_save_IFS
1966   test -z "$as_dir" && as_dir=.
1967   for ac_exec_ext in '' $ac_executable_extensions; do
1968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1970        ac_prog_rejected=yes
1971        continue
1972      fi
1973     ac_cv_prog_CC="cc"
1974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975     break 2
1976   fi
1977 done
1978 done
1979
1980 if test $ac_prog_rejected = yes; then
1981   # We found a bogon in the path, so make sure we never use it.
1982   set dummy $ac_cv_prog_CC
1983   shift
1984   if test $# != 0; then
1985     # We chose a different compiler from the bogus one.
1986     # However, it has the same basename, so the bogon will be chosen
1987     # first if we set CC to just the basename; use the full file name.
1988     shift
1989     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1990   fi
1991 fi
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996   echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1998 else
1999   echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2001 fi
2002
2003 fi
2004 if test -z "$CC"; then
2005   if test -n "$ac_tool_prefix"; then
2006   for ac_prog in cl
2007   do
2008     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$CC"; then
2016   ac_cv_prog_CC="$CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 CC=$ac_cv_prog_CC
2035 if test -n "$CC"; then
2036   echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043     test -n "$CC" && break
2044   done
2045 fi
2046 if test -z "$CC"; then
2047   ac_ct_CC=$CC
2048   for ac_prog in cl
2049 do
2050   # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$ac_ct_CC"; then
2058   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067     ac_cv_prog_ac_ct_CC="$ac_prog"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6
2080 else
2081   echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085   test -n "$ac_ct_CC" && break
2086 done
2087
2088   CC=$ac_ct_CC
2089 fi
2090
2091 fi
2092
2093
2094 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2095 See \`config.log' for more details." >&5
2096 echo "$as_me: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&2;}
2098    { (exit 1); exit 1; }; }
2099
2100 # Provide some information about the compiler.
2101 echo "$as_me:$LINENO:" \
2102      "checking for C compiler version" >&5
2103 ac_compiler=`set X $ac_compile; echo $2`
2104 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2105   (eval $ac_compiler --version </dev/null >&5) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }
2109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2110   (eval $ac_compiler -v </dev/null >&5) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2115   (eval $ac_compiler -V </dev/null >&5) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119
2120 cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2139 # of exeext.
2140 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2144   (eval $ac_link_default) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }; then
2148   # Find the output, starting from the most likely.  This scheme is
2149 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2150 # resort.
2151
2152 # Be careful to initialize this variable, since it used to be cached.
2153 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2154 ac_cv_exeext=
2155 # b.out is created by i960 compilers.
2156 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2157 do
2158   test -f "$ac_file" || continue
2159   case $ac_file in
2160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2161         ;;
2162     conftest.$ac_ext )
2163         # This is the source file.
2164         ;;
2165     [ab].out )
2166         # We found the default executable, but exeext='' is most
2167         # certainly right.
2168         break;;
2169     *.* )
2170         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171         # FIXME: I believe we export ac_cv_exeext for Libtool,
2172         # but it would be cool to find out if it's true.  Does anybody
2173         # maintain Libtool? --akim.
2174         export ac_cv_exeext
2175         break;;
2176     * )
2177         break;;
2178   esac
2179 done
2180 else
2181   echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: C compiler cannot create executables
2187 See \`config.log' for more details." >&2;}
2188    { (exit 77); exit 77; }; }
2189 fi
2190
2191 ac_exeext=$ac_cv_exeext
2192 echo "$as_me:$LINENO: result: $ac_file" >&5
2193 echo "${ECHO_T}$ac_file" >&6
2194
2195 # Check the compiler produces executables we can run.  If not, either
2196 # the compiler is broken, or we cross compile.
2197 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2198 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2199 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2200 # If not cross compiling, check that we can run a simple program.
2201 if test "$cross_compiling" != yes; then
2202   if { ac_try='./$ac_file'
2203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204   (eval $ac_try) 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }; }; then
2208     cross_compiling=no
2209   else
2210     if test "$cross_compiling" = maybe; then
2211         cross_compiling=yes
2212     else
2213         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2214 If you meant to cross compile, use \`--host'.
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot run C compiled programs.
2217 If you meant to cross compile, use \`--host'.
2218 See \`config.log' for more details." >&2;}
2219    { (exit 1); exit 1; }; }
2220     fi
2221   fi
2222 fi
2223 echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6
2225
2226 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2227 ac_clean_files=$ac_clean_files_save
2228 # Check the compiler produces executables we can run.  If not, either
2229 # the compiler is broken, or we cross compile.
2230 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2231 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2232 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2233 echo "${ECHO_T}$cross_compiling" >&6
2234
2235 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2236 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2238   (eval $ac_link) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; then
2242   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2243 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2244 # work properly (i.e., refer to `conftest.exe'), while it won't with
2245 # `rm'.
2246 for ac_file in conftest.exe conftest conftest.*; do
2247   test -f "$ac_file" || continue
2248   case $ac_file in
2249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2250     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2251           export ac_cv_exeext
2252           break;;
2253     * ) break;;
2254   esac
2255 done
2256 else
2257   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2260 See \`config.log' for more details." >&2;}
2261    { (exit 1); exit 1; }; }
2262 fi
2263
2264 rm -f conftest$ac_cv_exeext
2265 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2266 echo "${ECHO_T}$ac_cv_exeext" >&6
2267
2268 rm -f conftest.$ac_ext
2269 EXEEXT=$ac_cv_exeext
2270 ac_exeext=$EXEEXT
2271 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2272 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2273 if test "${ac_cv_objext+set}" = set; then
2274   echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276   cat >conftest.$ac_ext <<_ACEOF
2277 /* confdefs.h.  */
2278 _ACEOF
2279 cat confdefs.h >>conftest.$ac_ext
2280 cat >>conftest.$ac_ext <<_ACEOF
2281 /* end confdefs.h.  */
2282
2283 int
2284 main ()
2285 {
2286
2287   ;
2288   return 0;
2289 }
2290 _ACEOF
2291 rm -f conftest.o conftest.obj
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293   (eval $ac_compile) 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; then
2297   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2298   case $ac_file in
2299     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2300     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2301        break;;
2302   esac
2303 done
2304 else
2305   echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." >&2;}
2312    { (exit 1); exit 1; }; }
2313 fi
2314
2315 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2316 fi
2317 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2318 echo "${ECHO_T}$ac_cv_objext" >&6
2319 OBJEXT=$ac_cv_objext
2320 ac_objext=$OBJEXT
2321 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2322 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2323 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2324   echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326   cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332
2333 int
2334 main ()
2335 {
2336 #ifndef __GNUC__
2337        choke me
2338 #endif
2339
2340   ;
2341   return 0;
2342 }
2343 _ACEOF
2344 rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346   (eval $ac_compile) 2>conftest.er1
2347   ac_status=$?
2348   grep -v '^ *+' conftest.er1 >conftest.err
2349   rm -f conftest.er1
2350   cat conftest.err >&5
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); } &&
2353          { ac_try='test -z "$ac_c_werror_flag"
2354                          || 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"
2413                          || test ! -s conftest.err'
2414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415   (eval $ac_try) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; } &&
2419          { ac_try='test -s conftest.$ac_objext'
2420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421   (eval $ac_try) 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; }; then
2425   ac_cv_prog_cc_g=yes
2426 else
2427   echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 ac_cv_prog_cc_g=no
2431 fi
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433 fi
2434 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2435 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2436 if test "$ac_test_CFLAGS" = set; then
2437   CFLAGS=$ac_save_CFLAGS
2438 elif test $ac_cv_prog_cc_g = yes; then
2439   if test "$GCC" = yes; then
2440     CFLAGS="-g -O2"
2441   else
2442     CFLAGS="-g"
2443   fi
2444 else
2445   if test "$GCC" = yes; then
2446     CFLAGS="-O2"
2447   else
2448     CFLAGS=
2449   fi
2450 fi
2451 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2452 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2453 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2454   echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456   ac_cv_prog_cc_stdc=no
2457 ac_save_CC=$CC
2458 cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h.  */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h.  */
2464 #include <stdarg.h>
2465 #include <stdio.h>
2466 #include <sys/types.h>
2467 #include <sys/stat.h>
2468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2469 struct buf { int x; };
2470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2471 static char *e (p, i)
2472      char **p;
2473      int i;
2474 {
2475   return p[i];
2476 }
2477 static char *f (char * (*g) (char **, int), char **p, ...)
2478 {
2479   char *s;
2480   va_list v;
2481   va_start (v,p);
2482   s = g (p, va_arg (v,int));
2483   va_end (v);
2484   return s;
2485 }
2486
2487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2488    function prototypes and stuff, but not '\xHH' hex character constants.
2489    These don't provoke an error unfortunately, instead are silently treated
2490    as 'x'.  The following induces an error, until -std1 is added to get
2491    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2492    array size at least.  It's necessary to write '\x00'==0 to get something
2493    that's true only with -std1.  */
2494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2495
2496 int test (int i, double x);
2497 struct s1 {int (*f) (int a);};
2498 struct s2 {int (*f) (double a);};
2499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2500 int argc;
2501 char **argv;
2502 int
2503 main ()
2504 {
2505 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 # Don't try gcc -ansi; that turns off useful extensions and
2511 # breaks some systems' header files.
2512 # AIX                   -qlanglvl=ansi
2513 # Ultrix and OSF/1      -std1
2514 # HP-UX 10.20 and later -Ae
2515 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2516 # SVR4                  -Xc -D__EXTENSIONS__
2517 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2518 do
2519   CC="$ac_save_CC $ac_arg"
2520   rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522   (eval $ac_compile) 2>conftest.er1
2523   ac_status=$?
2524   grep -v '^ *+' conftest.er1 >conftest.err
2525   rm -f conftest.er1
2526   cat conftest.err >&5
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -z "$ac_c_werror_flag"
2530                          || test ! -s conftest.err'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; }; then
2542   ac_cv_prog_cc_stdc=$ac_arg
2543 break
2544 else
2545   echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 fi
2549 rm -f conftest.err conftest.$ac_objext
2550 done
2551 rm -f conftest.$ac_ext conftest.$ac_objext
2552 CC=$ac_save_CC
2553
2554 fi
2555
2556 case "x$ac_cv_prog_cc_stdc" in
2557   x|xno)
2558     echo "$as_me:$LINENO: result: none needed" >&5
2559 echo "${ECHO_T}none needed" >&6 ;;
2560   *)
2561     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2562 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2563     CC="$CC $ac_cv_prog_cc_stdc" ;;
2564 esac
2565
2566 # Some people use a C++ compiler to compile C.  Since we use `exit',
2567 # in C++ we need to declare it.  In case someone uses the same compiler
2568 # for both compiling C and C++ we need to have the C++ compiler decide
2569 # the declaration of exit, since it's the most demanding environment.
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #ifndef __cplusplus
2572   choke me
2573 #endif
2574 _ACEOF
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577   (eval $ac_compile) 2>conftest.er1
2578   ac_status=$?
2579   grep -v '^ *+' conftest.er1 >conftest.err
2580   rm -f conftest.er1
2581   cat conftest.err >&5
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } &&
2584          { ac_try='test -z "$ac_c_werror_flag"
2585                          || test ! -s conftest.err'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; } &&
2591          { ac_try='test -s conftest.$ac_objext'
2592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593   (eval $ac_try) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; }; then
2597   for ac_declaration in \
2598    '' \
2599    'extern "C" void std::exit (int) throw (); using std::exit;' \
2600    'extern "C" void std::exit (int); using std::exit;' \
2601    'extern "C" void exit (int) throw ();' \
2602    'extern "C" void exit (int);' \
2603    'void exit (int);'
2604 do
2605   cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h.  */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h.  */
2611 $ac_declaration
2612 #include <stdlib.h>
2613 int
2614 main ()
2615 {
2616 exit (42);
2617   ;
2618   return 0;
2619 }
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623   (eval $ac_compile) 2>conftest.er1
2624   ac_status=$?
2625   grep -v '^ *+' conftest.er1 >conftest.err
2626   rm -f conftest.er1
2627   cat conftest.err >&5
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -z "$ac_c_werror_flag"
2631                          || test ! -s conftest.err'
2632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   :
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 continue
2649 fi
2650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651   cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657 $ac_declaration
2658 int
2659 main ()
2660 {
2661 exit (42);
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>conftest.er1
2669   ac_status=$?
2670   grep -v '^ *+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -z "$ac_c_werror_flag"
2676                          || test ! -s conftest.err'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; } &&
2682          { ac_try='test -s conftest.$ac_objext'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; }; then
2688   break
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 fi
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 done
2696 rm -f conftest*
2697 if test -n "$ac_declaration"; then
2698   echo '#ifdef __cplusplus' >>confdefs.h
2699   echo $ac_declaration      >>confdefs.h
2700   echo '#endif'             >>confdefs.h
2701 fi
2702
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 fi
2708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2709 ac_ext=c
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715 if test "x$CC" != xcc; then
2716   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2717 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2718 else
2719   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2720 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2721 fi
2722 set dummy $CC; ac_cc=`echo $2 |
2723                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2724 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2725   echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727   cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733
2734 int
2735 main ()
2736 {
2737
2738   ;
2739   return 0;
2740 }
2741 _ACEOF
2742 # Make sure it works both with $CC and with simple cc.
2743 # We do the test twice because some compilers refuse to overwrite an
2744 # existing .o file with -o, though they will create one.
2745 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2746 if { (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    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752   (eval $ac_try) 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); };
2756 then
2757   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2758   if test "x$CC" != xcc; then
2759     # Test first that cc exists at all.
2760     if { ac_try='cc -c conftest.$ac_ext >&5'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2767       if { (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          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); };
2777       then
2778         # cc works too.
2779         :
2780       else
2781         # cc exists but doesn't like -o.
2782         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2783       fi
2784     fi
2785   fi
2786 else
2787   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2788 fi
2789 rm -f conftest*
2790
2791 fi
2792 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2793   echo "$as_me:$LINENO: result: yes" >&5
2794 echo "${ECHO_T}yes" >&6
2795 else
2796   echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6
2798
2799 cat >>confdefs.h <<\_ACEOF
2800 #define NO_MINUS_C_MINUS_O 1
2801 _ACEOF
2802
2803 fi
2804
2805 # autoconf is lame and doesn't give us any substitution variable for this.
2806 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2807   NO_MINUS_C_MINUS_O=yes
2808 else
2809   OUTPUT_OPTION='-o $@'
2810 fi
2811
2812
2813
2814 # -------------------------
2815 # Check C compiler features
2816 # -------------------------
2817
2818
2819 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2820 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2821 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2822   echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824   save_CFLAGS="$CFLAGS"
2825 CFLAGS="-Wno-long-long"
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832
2833 int
2834 main ()
2835 {
2836
2837   ;
2838   return 0;
2839 }
2840 _ACEOF
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843   (eval $ac_compile) 2>conftest.er1
2844   ac_status=$?
2845   grep -v '^ *+' conftest.er1 >conftest.err
2846   rm -f conftest.er1
2847   cat conftest.err >&5
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); } &&
2850          { ac_try='test -z "$ac_c_werror_flag"
2851                          || test ! -s conftest.err'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; } &&
2857          { ac_try='test -s conftest.$ac_objext'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; }; then
2863   ac_cv_prog_cc_no_long_long=yes
2864 else
2865   echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868 ac_cv_prog_cc_no_long_long=no
2869 fi
2870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 CFLAGS="$save_CFLAGS"
2872 fi
2873 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2885   CPP=
2886 fi
2887 if test -z "$CPP"; then
2888   if test "${ac_cv_prog_CPP+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891       # Double quotes because CPP needs to be expanded
2892     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893     do
2894       ac_preproc_ok=false
2895 for ac_c_preproc_warn_flag in '' yes
2896 do
2897   # Use a header file that comes with gcc, so configuring glibc
2898   # with a fresh cross-compiler works.
2899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900   # <limits.h> exists even on freestanding compilers.
2901   # On the NeXT, cc -E runs the code through the compiler's parser,
2902   # not just through cpp. "Syntax error" is here to catch this case.
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 #ifdef __STDC__
2910 # include <limits.h>
2911 #else
2912 # include <assert.h>
2913 #endif
2914                      Syntax error
2915 _ACEOF
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918   ac_status=$?
2919   grep -v '^ *+' conftest.er1 >conftest.err
2920   rm -f conftest.er1
2921   cat conftest.err >&5
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } >/dev/null; then
2924   if test -s conftest.err; then
2925     ac_cpp_err=$ac_c_preproc_warn_flag
2926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2927   else
2928     ac_cpp_err=
2929   fi
2930 else
2931   ac_cpp_err=yes
2932 fi
2933 if test -z "$ac_cpp_err"; then
2934   :
2935 else
2936   echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939   # Broken: fails on valid input.
2940 continue
2941 fi
2942 rm -f conftest.err conftest.$ac_ext
2943
2944   # OK, works on sane cases.  Now check whether non-existent headers
2945   # can be detected and how.
2946   cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952 #include <ac_nonexistent.h>
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } >/dev/null; then
2962   if test -s conftest.err; then
2963     ac_cpp_err=$ac_c_preproc_warn_flag
2964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965   else
2966     ac_cpp_err=
2967   fi
2968 else
2969   ac_cpp_err=yes
2970 fi
2971 if test -z "$ac_cpp_err"; then
2972   # Broken: success on invalid input.
2973 continue
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978   # Passes both tests.
2979 ac_preproc_ok=:
2980 break
2981 fi
2982 rm -f conftest.err conftest.$ac_ext
2983
2984 done
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.$ac_ext
2987 if $ac_preproc_ok; then
2988   break
2989 fi
2990
2991     done
2992     ac_cv_prog_CPP=$CPP
2993
2994 fi
2995   CPP=$ac_cv_prog_CPP
2996 else
2997   ac_cv_prog_CPP=$CPP
2998 fi
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3001 ac_preproc_ok=false
3002 for ac_c_preproc_warn_flag in '' yes
3003 do
3004   # Use a header file that comes with gcc, so configuring glibc
3005   # with a fresh cross-compiler works.
3006   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007   # <limits.h> exists even on freestanding compilers.
3008   # On the NeXT, cc -E runs the code through the compiler's parser,
3009   # not just through cpp. "Syntax error" is here to catch this case.
3010   cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021                      Syntax error
3022 _ACEOF
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } >/dev/null; then
3031   if test -s conftest.err; then
3032     ac_cpp_err=$ac_c_preproc_warn_flag
3033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034   else
3035     ac_cpp_err=
3036   fi
3037 else
3038   ac_cpp_err=yes
3039 fi
3040 if test -z "$ac_cpp_err"; then
3041   :
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046   # Broken: fails on valid input.
3047 continue
3048 fi
3049 rm -f conftest.err conftest.$ac_ext
3050
3051   # OK, works on sane cases.  Now check whether non-existent headers
3052   # can be detected and how.
3053   cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059 #include <ac_nonexistent.h>
3060 _ACEOF
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063   ac_status=$?
3064   grep -v '^ *+' conftest.er1 >conftest.err
3065   rm -f conftest.er1
3066   cat conftest.err >&5
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } >/dev/null; then
3069   if test -s conftest.err; then
3070     ac_cpp_err=$ac_c_preproc_warn_flag
3071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072   else
3073     ac_cpp_err=
3074   fi
3075 else
3076   ac_cpp_err=yes
3077 fi
3078 if test -z "$ac_cpp_err"; then
3079   # Broken: success on invalid input.
3080 continue
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085   # Passes both tests.
3086 ac_preproc_ok=:
3087 break
3088 fi
3089 rm -f conftest.err conftest.$ac_ext
3090
3091 done
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3095   :
3096 else
3097   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101    { (exit 1); exit 1; }; }
3102 fi
3103
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109
3110 echo "$as_me:$LINENO: checking for inline" >&5
3111 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3112 if test "${ac_cv_c_inline+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   ac_cv_c_inline=no
3116 for ac_kw in inline __inline__ __inline; do
3117   cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123 #ifndef __cplusplus
3124 typedef int foo_t;
3125 static $ac_kw foo_t static_foo () {return 0; }
3126 $ac_kw foo_t foo () {return 0; }
3127 #endif
3128
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132   (eval $ac_compile) 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } &&
3139          { ac_try='test -z "$ac_c_werror_flag"
3140                          || test ! -s conftest.err'
3141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142   (eval $ac_try) 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }; } &&
3146          { ac_try='test -s conftest.$ac_objext'
3147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148   (eval $ac_try) 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }; }; then
3152   ac_cv_c_inline=$ac_kw; break
3153 else
3154   echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 fi
3158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3159 done
3160
3161 fi
3162 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3163 echo "${ECHO_T}$ac_cv_c_inline" >&6
3164
3165
3166 case $ac_cv_c_inline in
3167   inline | yes) ;;
3168   *)
3169     case $ac_cv_c_inline in
3170       no) ac_val=;;
3171       *) ac_val=$ac_cv_c_inline;;
3172     esac
3173     cat >>confdefs.h <<_ACEOF
3174 #ifndef __cplusplus
3175 #define inline $ac_val
3176 #endif
3177 _ACEOF
3178     ;;
3179 esac
3180
3181
3182 echo "$as_me:$LINENO: checking for long long int" >&5
3183 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3184 if test "${ac_cv_c_long_long+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h.  */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193
3194 int
3195 main ()
3196 {
3197 long long int i;
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.$ac_objext
3203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204   (eval $ac_compile) 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } &&
3211          { ac_try='test -z "$ac_c_werror_flag"
3212                          || test ! -s conftest.err'
3213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214   (eval $ac_try) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; } &&
3218          { ac_try='test -s conftest.$ac_objext'
3219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220   (eval $ac_try) 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; }; then
3224   ac_cv_c_long_long=yes
3225 else
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 ac_cv_c_long_long=no
3230 fi
3231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3232 fi
3233 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3234 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3235   if test $ac_cv_c_long_long = yes; then
3236
3237 cat >>confdefs.h <<\_ACEOF
3238 #define HAVE_LONG_LONG 1
3239 _ACEOF
3240
3241   fi
3242 echo "$as_me:$LINENO: checking for __int64" >&5
3243 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3244 if test "${ac_cv_c___int64+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h.  */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h.  */
3253
3254 int
3255 main ()
3256 {
3257 __int64 i;
3258   ;
3259   return 0;
3260 }
3261 _ACEOF
3262 rm -f conftest.$ac_objext
3263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264   (eval $ac_compile) 2>conftest.er1
3265   ac_status=$?
3266   grep -v '^ *+' conftest.er1 >conftest.err
3267   rm -f conftest.er1
3268   cat conftest.err >&5
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); } &&
3271          { ac_try='test -z "$ac_c_werror_flag"
3272                          || test ! -s conftest.err'
3273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274   (eval $ac_try) 2>&5
3275   ac_status=$?
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }; } &&
3278          { ac_try='test -s conftest.$ac_objext'
3279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280   (eval $ac_try) 2>&5
3281   ac_status=$?
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); }; }; then
3284   ac_cv_c___int64=yes
3285 else
3286   echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 ac_cv_c___int64=no
3290 fi
3291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292 fi
3293 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3294 echo "${ECHO_T}$ac_cv_c___int64" >&6
3295   if test $ac_cv_c___int64 = yes; then
3296
3297 cat >>confdefs.h <<\_ACEOF
3298 #define HAVE___INT64 1
3299 _ACEOF
3300
3301   fi
3302
3303 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3304 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3305 if test "${gcc_cv_c__bool+set}" = set; then
3306   echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308   cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314
3315 int
3316 main ()
3317 {
3318 _Bool foo;
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 rm -f conftest.$ac_objext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325   (eval $ac_compile) 2>conftest.er1
3326   ac_status=$?
3327   grep -v '^ *+' conftest.er1 >conftest.err
3328   rm -f conftest.er1
3329   cat conftest.err >&5
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); } &&
3332          { ac_try='test -z "$ac_c_werror_flag"
3333                          || test ! -s conftest.err'
3334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335   (eval $ac_try) 2>&5
3336   ac_status=$?
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); }; } &&
3339          { ac_try='test -s conftest.$ac_objext'
3340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341   (eval $ac_try) 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; }; then
3345   gcc_cv_c__bool=yes
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 gcc_cv_c__bool=no
3351 fi
3352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3353
3354 fi
3355 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3356 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3357 if test $gcc_cv_c__bool = yes; then
3358
3359 cat >>confdefs.h <<\_ACEOF
3360 #define HAVE__BOOL 1
3361 _ACEOF
3362
3363 fi
3364
3365
3366 # sizeof(char) is 1 by definition.
3367 echo "$as_me:$LINENO: checking size of void *" >&5
3368 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3369 if test "${ac_cv_sizeof_void_p+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3373   cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h.  */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h.  */
3379 #include "confdefs.h"
3380 #include <sys/types.h>
3381
3382
3383 int
3384 main ()
3385 {
3386 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3387   ;
3388   return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393   (eval $ac_compile) 2>conftest.er1
3394   ac_status=$?
3395   grep -v '^ *+' conftest.er1 >conftest.err
3396   rm -f conftest.er1
3397   cat conftest.err >&5
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); } &&
3400          { ac_try='test -z "$ac_c_werror_flag"
3401                          || test ! -s conftest.err'
3402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403   (eval $ac_try) 2>&5
3404   ac_status=$?
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); }; } &&
3407          { ac_try='test -s conftest.$ac_objext'
3408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409   (eval $ac_try) 2>&5
3410   ac_status=$?
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); }; }; then
3413   ac_cv_sizeof_void_p=$ac_size
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 fi
3419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3421 done
3422
3423 fi
3424
3425 if test x$ac_cv_sizeof_void_p = x ; then
3426   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3427 echo "$as_me: error: cannot determine a size for void *" >&2;}
3428    { (exit 1); exit 1; }; }
3429 fi
3430 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3431 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3432
3433 cat >>confdefs.h <<_ACEOF
3434 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3435 _ACEOF
3436
3437
3438 echo "$as_me:$LINENO: checking size of short" >&5
3439 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3440 if test "${ac_cv_sizeof_short+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3444   cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h.  */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h.  */
3450 #include "confdefs.h"
3451 #include <sys/types.h>
3452
3453
3454 int
3455 main ()
3456 {
3457 switch (0) case 0: case (sizeof (short) == $ac_size):;
3458   ;
3459   return 0;
3460 }
3461 _ACEOF
3462 rm -f conftest.$ac_objext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464   (eval $ac_compile) 2>conftest.er1
3465   ac_status=$?
3466   grep -v '^ *+' conftest.er1 >conftest.err
3467   rm -f conftest.er1
3468   cat conftest.err >&5
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); } &&
3471          { ac_try='test -z "$ac_c_werror_flag"
3472                          || test ! -s conftest.err'
3473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474   (eval $ac_try) 2>&5
3475   ac_status=$?
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); }; } &&
3478          { ac_try='test -s conftest.$ac_objext'
3479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480   (eval $ac_try) 2>&5
3481   ac_status=$?
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); }; }; then
3484   ac_cv_sizeof_short=$ac_size
3485 else
3486   echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 fi
3490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3491   if test x$ac_cv_sizeof_short != x ; then break; fi
3492 done
3493
3494 fi
3495
3496 if test x$ac_cv_sizeof_short = x ; then
3497   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3498 echo "$as_me: error: cannot determine a size for short" >&2;}
3499    { (exit 1); exit 1; }; }
3500 fi
3501 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3502 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3503
3504 cat >>confdefs.h <<_ACEOF
3505 #define SIZEOF_SHORT $ac_cv_sizeof_short
3506 _ACEOF
3507
3508
3509 echo "$as_me:$LINENO: checking size of int" >&5
3510 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3511 if test "${ac_cv_sizeof_int+set}" = set; then
3512   echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3515   cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h.  */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h.  */
3521 #include "confdefs.h"
3522 #include <sys/types.h>
3523
3524
3525 int
3526 main ()
3527 {
3528 switch (0) case 0: case (sizeof (int) == $ac_size):;
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535   (eval $ac_compile) 2>conftest.er1
3536   ac_status=$?
3537   grep -v '^ *+' conftest.er1 >conftest.err
3538   rm -f conftest.er1
3539   cat conftest.err >&5
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } &&
3542          { ac_try='test -z "$ac_c_werror_flag"
3543                          || test ! -s conftest.err'
3544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545   (eval $ac_try) 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; } &&
3549          { ac_try='test -s conftest.$ac_objext'
3550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551   (eval $ac_try) 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); }; }; then
3555   ac_cv_sizeof_int=$ac_size
3556 else
3557   echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560 fi
3561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3562   if test x$ac_cv_sizeof_int != x ; then break; fi
3563 done
3564
3565 fi
3566
3567 if test x$ac_cv_sizeof_int = x ; then
3568   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3569 echo "$as_me: error: cannot determine a size for int" >&2;}
3570    { (exit 1); exit 1; }; }
3571 fi
3572 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3573 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3574
3575 cat >>confdefs.h <<_ACEOF
3576 #define SIZEOF_INT $ac_cv_sizeof_int
3577 _ACEOF
3578
3579
3580 echo "$as_me:$LINENO: checking size of long" >&5
3581 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3582 if test "${ac_cv_sizeof_long+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3586   cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h.  */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h.  */
3592 #include "confdefs.h"
3593 #include <sys/types.h>
3594
3595
3596 int
3597 main ()
3598 {
3599 switch (0) case 0: case (sizeof (long) == $ac_size):;
3600   ;
3601   return 0;
3602 }
3603 _ACEOF
3604 rm -f conftest.$ac_objext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606   (eval $ac_compile) 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } &&
3613          { ac_try='test -z "$ac_c_werror_flag"
3614                          || test ! -s conftest.err'
3615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616   (eval $ac_try) 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; } &&
3620          { ac_try='test -s conftest.$ac_objext'
3621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622   (eval $ac_try) 2>&5
3623   ac_status=$?
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); }; }; then
3626   ac_cv_sizeof_long=$ac_size
3627 else
3628   echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 fi
3632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633   if test x$ac_cv_sizeof_long != x ; then break; fi
3634 done
3635
3636 fi
3637
3638 if test x$ac_cv_sizeof_long = x ; then
3639   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3640 echo "$as_me: error: cannot determine a size for long" >&2;}
3641    { (exit 1); exit 1; }; }
3642 fi
3643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3644 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3645
3646 cat >>confdefs.h <<_ACEOF
3647 #define SIZEOF_LONG $ac_cv_sizeof_long
3648 _ACEOF
3649
3650
3651 if test $ac_cv_c_long_long = yes; then
3652   echo "$as_me:$LINENO: checking size of long long" >&5
3653 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3654 if test "${ac_cv_sizeof_long_long+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3658   cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h.  */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h.  */
3664 #include "confdefs.h"
3665 #include <sys/types.h>
3666
3667
3668 int
3669 main ()
3670 {
3671 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3672   ;
3673   return 0;
3674 }
3675 _ACEOF
3676 rm -f conftest.$ac_objext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678   (eval $ac_compile) 2>conftest.er1
3679   ac_status=$?
3680   grep -v '^ *+' conftest.er1 >conftest.err
3681   rm -f conftest.er1
3682   cat conftest.err >&5
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); } &&
3685          { ac_try='test -z "$ac_c_werror_flag"
3686                          || test ! -s conftest.err'
3687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688   (eval $ac_try) 2>&5
3689   ac_status=$?
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); }; } &&
3692          { ac_try='test -s conftest.$ac_objext'
3693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694   (eval $ac_try) 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); }; }; then
3698   ac_cv_sizeof_long_long=$ac_size
3699 else
3700   echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703 fi
3704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3706 done
3707
3708 fi
3709
3710 if test x$ac_cv_sizeof_long_long = x ; then
3711   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3712 echo "$as_me: error: cannot determine a size for long long" >&2;}
3713    { (exit 1); exit 1; }; }
3714 fi
3715 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3716 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3717
3718 cat >>confdefs.h <<_ACEOF
3719 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3720 _ACEOF
3721
3722
3723 fi
3724 if test $ac_cv_c___int64 = yes; then
3725   echo "$as_me:$LINENO: checking size of __int64" >&5
3726 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3727 if test "${ac_cv_sizeof___int64+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3731   cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h.  */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h.  */
3737 #include "confdefs.h"
3738 #include <sys/types.h>
3739
3740
3741 int
3742 main ()
3743 {
3744 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751   (eval $ac_compile) 2>conftest.er1
3752   ac_status=$?
3753   grep -v '^ *+' conftest.er1 >conftest.err
3754   rm -f conftest.er1
3755   cat conftest.err >&5
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); } &&
3758          { ac_try='test -z "$ac_c_werror_flag"
3759                          || test ! -s conftest.err'
3760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761   (eval $ac_try) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }; } &&
3765          { ac_try='test -s conftest.$ac_objext'
3766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767   (eval $ac_try) 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); }; }; then
3771   ac_cv_sizeof___int64=$ac_size
3772 else
3773   echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 fi
3777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3778   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3779 done
3780
3781 fi
3782
3783 if test x$ac_cv_sizeof___int64 = x ; then
3784   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3785 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3786    { (exit 1); exit 1; }; }
3787 fi
3788 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3789 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3790
3791 cat >>confdefs.h <<_ACEOF
3792 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3793 _ACEOF
3794
3795
3796 fi
3797
3798 # -----------------
3799 # Find Ada compiler
3800 # -----------------
3801
3802 # See if GNAT has been installed
3803
3804
3805
3806 if test -n "$ac_tool_prefix"; then
3807   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   if test -n "$GNATBIND"; then
3815   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820   IFS=$as_save_IFS
3821   test -z "$as_dir" && as_dir=.
3822   for ac_exec_ext in '' $ac_executable_extensions; do
3823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826     break 2
3827   fi
3828 done
3829 done
3830
3831 fi
3832 fi
3833 GNATBIND=$ac_cv_prog_GNATBIND
3834 if test -n "$GNATBIND"; then
3835   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3836 echo "${ECHO_T}$GNATBIND" >&6
3837 else
3838   echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3840 fi
3841
3842 fi
3843 if test -z "$ac_cv_prog_GNATBIND"; then
3844   ac_ct_GNATBIND=$GNATBIND
3845   # Extract the first word of "gnatbind", so it can be a program name with args.
3846 set dummy gnatbind; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   if test -n "$ac_ct_GNATBIND"; then
3853   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868
3869   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3870 fi
3871 fi
3872 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3873 if test -n "$ac_ct_GNATBIND"; then
3874   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3875 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881   GNATBIND=$ac_ct_GNATBIND
3882 else
3883   GNATBIND="$ac_cv_prog_GNATBIND"
3884 fi
3885
3886 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3887 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3888 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   cat >conftest.adb <<EOF
3892 procedure conftest is begin null; end conftest;
3893 EOF
3894 gcc_cv_cc_supports_ada=no
3895 # There is a bug in old released versions of GCC which causes the
3896 # driver to exit successfully when the appropriate language module
3897 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3898 # Therefore we must check for the error message as well as an
3899 # unsuccessful exit.
3900 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3901 # given a .adb file, but produce no object file.  So we must check
3902 # if an object file was really produced to guard against this.
3903 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3904 if test x"$errors" = x && test -f conftest.$ac_objext; then
3905   gcc_cv_cc_supports_ada=yes
3906   break
3907 fi
3908 rm -f conftest.*
3909 fi
3910 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3911 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3912
3913 if test x$GNATBIND != xno && test x$gcc_cv_cc_supports_ada != xno; then
3914   have_gnat=yes
3915 else
3916   have_gnat=no
3917 fi
3918
3919
3920 # ---------------------
3921 # Warnings and checking
3922 # ---------------------
3923
3924 strict1_warn=
3925 if test $ac_cv_prog_cc_no_long_long = yes ; then
3926   strict1_warn="-pedantic -Wno-long-long"
3927 fi
3928
3929
3930 # If the native compiler is GCC, we can enable warnings even in stage1.
3931 # That's useful for people building cross-compilers, or just running a
3932 # quick `make'.
3933 warn_cflags=
3934 if test "x$GCC" = "xyes"; then
3935   warn_cflags='$(GCC_WARN_CFLAGS)'
3936 fi
3937
3938
3939 # Enable -Werror in bootstrap stage2 and later.
3940 # Change the default to "no" on release branches.
3941 # Check whether --enable-werror or --disable-werror was given.
3942 if test "${enable_werror+set}" = set; then
3943   enableval="$enable_werror"
3944
3945 else
3946   enable_werror=no
3947 fi;
3948 if test x$enable_werror = xyes ; then
3949   WERROR=-Werror
3950 fi
3951
3952
3953 # Enable expensive internal checks
3954 # Check whether --enable-checking or --disable-checking was given.
3955 if test "${enable_checking+set}" = set; then
3956   enableval="$enable_checking"
3957   ac_checking=
3958 ac_tree_checking=
3959 ac_rtl_checking=
3960 ac_rtlflag_checking=
3961 ac_gc_checking=
3962 ac_gc_always_collect=
3963 ac_fold_checking=
3964 case "${enableval}" in
3965 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3966         ac_rtlflag_checking=1 ;;
3967 no)     ;;
3968 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3969         set fnord $enableval; shift
3970         IFS="$ac_save_IFS"
3971         for check
3972         do
3973                 case $check in
3974                 misc)   ac_checking=1 ;;
3975                 tree)   ac_tree_checking=1 ;;
3976                 rtlflag)        ac_rtlflag_checking=1 ;;
3977                 rtl)    ac_rtl_checking=1 ;;
3978                 gc)     ac_gc_checking=1 ;;
3979                 gcac)   ac_gc_always_collect=1 ;;
3980                 fold)   ac_fold_checking=1 ;;
3981                 valgrind)       ac_checking_valgrind=1 ;;
3982                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3983 echo "$as_me: error: unknown check category $check" >&2;}
3984    { (exit 1); exit 1; }; } ;;
3985                 esac
3986         done
3987         ;;
3988 esac
3989
3990 else
3991   # By default, disable all checks for release versions of GCC.
3992 ac_checking=; ac_tree_checking=; ac_gc_checking=; ac_rtlflag_checking=;
3993 fi;
3994 nocommon_flag=""
3995 if test x$ac_checking != x ; then
3996
3997 cat >>confdefs.h <<\_ACEOF
3998 #define ENABLE_CHECKING 1
3999 _ACEOF
4000
4001   nocommon_flag=-fno-common
4002 fi
4003
4004 if test x$ac_tree_checking != x ; then
4005
4006 cat >>confdefs.h <<\_ACEOF
4007 #define ENABLE_TREE_CHECKING 1
4008 _ACEOF
4009
4010 fi
4011 if test x$ac_rtl_checking != x ; then
4012
4013 cat >>confdefs.h <<\_ACEOF
4014 #define ENABLE_RTL_CHECKING 1
4015 _ACEOF
4016
4017 fi
4018 if test x$ac_rtlflag_checking != x ; then
4019
4020 cat >>confdefs.h <<\_ACEOF
4021 #define ENABLE_RTL_FLAG_CHECKING 1
4022 _ACEOF
4023
4024 fi
4025 if test x$ac_gc_checking != x ; then
4026
4027 cat >>confdefs.h <<\_ACEOF
4028 #define ENABLE_GC_CHECKING 1
4029 _ACEOF
4030
4031 fi
4032 if test x$ac_gc_always_collect != x ; then
4033
4034 cat >>confdefs.h <<\_ACEOF
4035 #define ENABLE_GC_ALWAYS_COLLECT 1
4036 _ACEOF
4037
4038 fi
4039 if test x$ac_fold_checking != x ; then
4040
4041 cat >>confdefs.h <<\_ACEOF
4042 #define ENABLE_FOLD_CHECKING 1
4043 _ACEOF
4044
4045 fi
4046 valgrind_path_defines=
4047 valgrind_command=
4048
4049
4050 echo "$as_me:$LINENO: checking for egrep" >&5
4051 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4052 if test "${ac_cv_prog_egrep+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4056     then ac_cv_prog_egrep='grep -E'
4057     else ac_cv_prog_egrep='egrep'
4058     fi
4059 fi
4060 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4061 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4062  EGREP=$ac_cv_prog_egrep
4063
4064
4065 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4066 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4067 if test "${ac_cv_header_stdc+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h.  */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h.  */
4076 #include <stdlib.h>
4077 #include <stdarg.h>
4078 #include <string.h>
4079 #include <float.h>
4080
4081 int
4082 main ()
4083 {
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091   (eval $ac_compile) 2>conftest.er1
4092   ac_status=$?
4093   grep -v '^ *+' conftest.er1 >conftest.err
4094   rm -f conftest.er1
4095   cat conftest.err >&5
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } &&
4098          { ac_try='test -z "$ac_c_werror_flag"
4099                          || test ! -s conftest.err'
4100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101   (eval $ac_try) 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; } &&
4105          { ac_try='test -s conftest.$ac_objext'
4106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107   (eval $ac_try) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); }; }; then
4111   ac_cv_header_stdc=yes
4112 else
4113   echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4115
4116 ac_cv_header_stdc=no
4117 fi
4118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4119
4120 if test $ac_cv_header_stdc = yes; then
4121   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4122   cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h.  */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h.  */
4128 #include <string.h>
4129
4130 _ACEOF
4131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132   $EGREP "memchr" >/dev/null 2>&1; then
4133   :
4134 else
4135   ac_cv_header_stdc=no
4136 fi
4137 rm -f conftest*
4138
4139 fi
4140
4141 if test $ac_cv_header_stdc = yes; then
4142   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4143   cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #include <stdlib.h>
4150
4151 _ACEOF
4152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153   $EGREP "free" >/dev/null 2>&1; then
4154   :
4155 else
4156   ac_cv_header_stdc=no
4157 fi
4158 rm -f conftest*
4159
4160 fi
4161
4162 if test $ac_cv_header_stdc = yes; then
4163   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4164   if test "$cross_compiling" = yes; then
4165   :
4166 else
4167   cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <ctype.h>
4174 #if ((' ' & 0x0FF) == 0x020)
4175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4177 #else
4178 # define ISLOWER(c) \
4179                    (('a' <= (c) && (c) <= 'i') \
4180                      || ('j' <= (c) && (c) <= 'r') \
4181                      || ('s' <= (c) && (c) <= 'z'))
4182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4183 #endif
4184
4185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4186 int
4187 main ()
4188 {
4189   int i;
4190   for (i = 0; i < 256; i++)
4191     if (XOR (islower (i), ISLOWER (i))
4192         || toupper (i) != TOUPPER (i))
4193       exit(2);
4194   exit (0);
4195 }
4196 _ACEOF
4197 rm -f conftest$ac_exeext
4198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4199   (eval $ac_link) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204   (eval $ac_try) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }; }; then
4208   :
4209 else
4210   echo "$as_me: program exited with status $ac_status" >&5
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 ( exit $ac_status )
4215 ac_cv_header_stdc=no
4216 fi
4217 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4218 fi
4219 fi
4220 fi
4221 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4222 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4223 if test $ac_cv_header_stdc = yes; then
4224
4225 cat >>confdefs.h <<\_ACEOF
4226 #define STDC_HEADERS 1
4227 _ACEOF
4228
4229 fi
4230
4231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4242                   inttypes.h stdint.h unistd.h
4243 do
4244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4245 echo "$as_me:$LINENO: checking for $ac_header" >&5
4246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 $ac_includes_default
4257
4258 #include <$ac_header>
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262   (eval $ac_compile) 2>conftest.er1
4263   ac_status=$?
4264   grep -v '^ *+' conftest.er1 >conftest.err
4265   rm -f conftest.er1
4266   cat conftest.err >&5
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } &&
4269          { ac_try='test -z "$ac_c_werror_flag"
4270                          || test ! -s conftest.err'
4271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272   (eval $ac_try) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; } &&
4276          { ac_try='test -s conftest.$ac_objext'
4277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278   (eval $ac_try) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; }; then
4282   eval "$as_ac_Header=yes"
4283 else
4284   echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 eval "$as_ac_Header=no"
4288 fi
4289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4290 fi
4291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4294   cat >>confdefs.h <<_ACEOF
4295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4296 _ACEOF
4297
4298 fi
4299
4300 done
4301
4302
4303 if test "${ac_cv_header_valgrind_h+set}" = set; then
4304   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4305 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4306 if test "${ac_cv_header_valgrind_h+set}" = set; then
4307   echo $ECHO_N "(cached) $ECHO_C" >&6
4308 fi
4309 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4310 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4311 else
4312   # Is the header compilable?
4313 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4314 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h.  */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h.  */
4321 $ac_includes_default
4322 #include <valgrind.h>
4323 _ACEOF
4324 rm -f conftest.$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326   (eval $ac_compile) 2>conftest.er1
4327   ac_status=$?
4328   grep -v '^ *+' conftest.er1 >conftest.err
4329   rm -f conftest.er1
4330   cat conftest.err >&5
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } &&
4333          { ac_try='test -z "$ac_c_werror_flag"
4334                          || test ! -s conftest.err'
4335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336   (eval $ac_try) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; } &&
4340          { ac_try='test -s conftest.$ac_objext'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   ac_header_compiler=yes
4347 else
4348   echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 ac_header_compiler=no
4352 fi
4353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4355 echo "${ECHO_T}$ac_header_compiler" >&6
4356
4357 # Is the header present?
4358 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4359 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4360 cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h.  */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h.  */
4366 #include <valgrind.h>
4367 _ACEOF
4368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4369   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4370   ac_status=$?
4371   grep -v '^ *+' conftest.er1 >conftest.err
4372   rm -f conftest.er1
4373   cat conftest.err >&5
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); } >/dev/null; then
4376   if test -s conftest.err; then
4377     ac_cpp_err=$ac_c_preproc_warn_flag
4378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4379   else
4380     ac_cpp_err=
4381   fi
4382 else
4383   ac_cpp_err=yes
4384 fi
4385 if test -z "$ac_cpp_err"; then
4386   ac_header_preproc=yes
4387 else
4388   echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391   ac_header_preproc=no
4392 fi
4393 rm -f conftest.err conftest.$ac_ext
4394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4395 echo "${ECHO_T}$ac_header_preproc" >&6
4396
4397 # So?  What about this header?
4398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4399   yes:no: )
4400     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4401 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4402     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4403 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4404     ac_header_preproc=yes
4405     ;;
4406   no:yes:* )
4407     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4408 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4409     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
4410 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
4411     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4412 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4413     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
4414 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4415     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4416 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4417     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4418 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4419     (
4420       cat <<\_ASBOX
4421 ## ------------------------------------------ ##
4422 ## Report this to the AC_PACKAGE_NAME lists.  ##
4423 ## ------------------------------------------ ##
4424 _ASBOX
4425     ) |
4426       sed "s/^/$as_me: WARNING:     /" >&2
4427     ;;
4428 esac
4429 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4430 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4431 if test "${ac_cv_header_valgrind_h+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   ac_cv_header_valgrind_h=$ac_header_preproc
4435 fi
4436 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4437 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4438
4439 fi
4440 if test $ac_cv_header_valgrind_h = yes; then
4441   have_valgrind_h=yes
4442 else
4443   have_valgrind_h=no
4444 fi
4445
4446
4447
4448 if test x$ac_checking_valgrind != x ; then
4449   # It is certainly possible that there's valgrind but no valgrind.h.
4450   # GCC relies on making annotations so we must have both.
4451   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4452 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4453   cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h.  */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h.  */
4459 #include <valgrind/memcheck.h>
4460 #ifndef VALGRIND_DISCARD
4461 #error VALGRIND_DISCARD not defined
4462 #endif
4463 _ACEOF
4464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } >/dev/null; then
4472   if test -s conftest.err; then
4473     ac_cpp_err=$ac_c_preproc_warn_flag
4474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4475   else
4476     ac_cpp_err=
4477   fi
4478 else
4479   ac_cpp_err=yes
4480 fi
4481 if test -z "$ac_cpp_err"; then
4482   gcc_cv_header_valgrind_memcheck_h=yes
4483 else
4484   echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487   gcc_cv_header_valgrind_memcheck_h=no
4488 fi
4489 rm -f conftest.err conftest.$ac_ext
4490   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4491 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4492   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4493 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4494   cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h.  */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h.  */
4500 #include <memcheck.h>
4501 #ifndef VALGRIND_DISCARD
4502 #error VALGRIND_DISCARD not defined
4503 #endif
4504 _ACEOF
4505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } >/dev/null; then
4513   if test -s conftest.err; then
4514     ac_cpp_err=$ac_c_preproc_warn_flag
4515     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4516   else
4517     ac_cpp_err=
4518   fi
4519 else
4520   ac_cpp_err=yes
4521 fi
4522 if test -z "$ac_cpp_err"; then
4523   gcc_cv_header_memcheck_h=yes
4524 else
4525   echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528   gcc_cv_header_memcheck_h=no
4529 fi
4530 rm -f conftest.err conftest.$ac_ext
4531   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4532 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4533
4534 # Prepare PATH_SEPARATOR.
4535 # The user is always right.
4536 if test "${PATH_SEPARATOR+set}" != set; then
4537   echo "#! /bin/sh" >conf$$.sh
4538   echo  "exit 0"   >>conf$$.sh
4539   chmod +x conf$$.sh
4540   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4541     PATH_SEPARATOR=';'
4542   else
4543     PATH_SEPARATOR=:
4544   fi
4545   rm -f conf$$.sh
4546 fi
4547
4548 # Find out how to test for executable files. Don't use a zero-byte file,
4549 # as systems may use methods other than mode bits to determine executability.
4550 cat >conf$$.file <<_ASEOF
4551 #! /bin/sh
4552 exit 0
4553 _ASEOF
4554 chmod +x conf$$.file
4555 if test -x conf$$.file >/dev/null 2>&1; then
4556   ac_executable_p="test -x"
4557 else
4558   ac_executable_p="test -f"
4559 fi
4560 rm -f conf$$.file
4561
4562 # Extract the first word of "valgrind", so it can be a program name with args.
4563 set dummy valgrind; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_path_valgrind_path+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   case "$valgrind_path" in
4570   [\\/]* | ?:[\\/]*)
4571     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4572     ;;
4573   *)
4574     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4575     for ac_dir in $PATH; do
4576       IFS="$ac_save_IFS"
4577       test -z "$ac_dir" && ac_dir=.
4578       for ac_exec_ext in '' $ac_executable_extensions; do
4579         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4580           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4581             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4582             break 2
4583           fi
4584         fi
4585       done
4586     done
4587     IFS="$ac_save_IFS"
4588     ;;
4589 esac
4590 fi
4591 valgrind_path="$ac_cv_path_valgrind_path"
4592 if test -n "$valgrind_path"; then
4593   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4594 echo "${ECHO_T}$valgrind_path" >&6
4595 else
4596   echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4598 fi
4599
4600   if test "x$valgrind_path" = "x" \
4601     || (test $have_valgrind_h = no \
4602         && test $gcc_cv_header_memcheck_h = no \
4603         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4604         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4605 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4606    { (exit 1); exit 1; }; }
4607   fi
4608   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4609   valgrind_command="$valgrind_path -q"
4610
4611 cat >>confdefs.h <<\_ACEOF
4612 #define ENABLE_VALGRIND_CHECKING 1
4613 _ACEOF
4614
4615   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4616
4617 cat >>confdefs.h <<\_ACEOF
4618 #define HAVE_VALGRIND_MEMCHECK_H 1
4619 _ACEOF
4620
4621   fi
4622   if test $gcc_cv_header_memcheck_h = yes; then
4623
4624 cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_MEMCHECK_H 1
4626 _ACEOF
4627
4628   fi
4629 fi
4630
4631
4632
4633 # Enable code coverage collection
4634 # Check whether --enable-coverage or --disable-coverage was given.
4635 if test "${enable_coverage+set}" = set; then
4636   enableval="$enable_coverage"
4637   case "${enableval}" in
4638 yes|noopt)
4639         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4640         ;;
4641 opt)
4642         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4643         ;;
4644 *)
4645         { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4646 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4647    { (exit 1); exit 1; }; }
4648         ;;
4649 esac
4650 else
4651   coverage_flags=""
4652 fi;
4653
4654
4655 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4656 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4657   enableval="$enable_gather_detailed_mem_stats"
4658
4659 else
4660   enable_gather_detailed_mem_stats=no
4661 fi;
4662 if test x$enable_gather_detailed_mem_stats = xyes ; then
4663
4664 cat >>confdefs.h <<\_ACEOF
4665 #define GATHER_STATISTICS 1
4666 _ACEOF
4667
4668 fi
4669
4670 # -------------------------------
4671 # Miscenalleous configure options
4672 # -------------------------------
4673
4674 # With stabs
4675
4676 # Check whether --with-stabs or --without-stabs was given.
4677 if test "${with_stabs+set}" = set; then
4678   withval="$with_stabs"
4679   stabs="$with_stabs"
4680 else
4681   stabs=no
4682 fi;
4683
4684 # Determine whether or not multilibs are enabled.
4685 # Check whether --enable-multilib or --disable-multilib was given.
4686 if test "${enable_multilib+set}" = set; then
4687   enableval="$enable_multilib"
4688
4689 else
4690   enable_multilib=yes
4691 fi;
4692
4693
4694 # Enable __cxa_atexit for C++.
4695 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4696 if test "${enable___cxa_atexit+set}" = set; then
4697   enableval="$enable___cxa_atexit"
4698
4699 fi;
4700
4701 # Enable threads
4702 # Pass with no value to take the default
4703 # Pass with a value to specify a thread package
4704 # Check whether --enable-threads or --disable-threads was given.
4705 if test "${enable_threads+set}" = set; then
4706   enableval="$enable_threads"
4707
4708 else
4709   enable_threads=''
4710 fi;
4711 # Save in case it gets overwritten in config.gcc
4712 enable_threads_flag=$enable_threads
4713
4714 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4715 if test "${enable_objc_gc+set}" = set; then
4716   enableval="$enable_objc_gc"
4717   if test x$enable_objc_gc = xno; then
4718         objc_boehm_gc=''
4719 else
4720         objc_boehm_gc=1
4721 fi
4722 else
4723   objc_boehm_gc=''
4724 fi;
4725
4726
4727 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4728 if test "${with_dwarf2+set}" = set; then
4729   withval="$with_dwarf2"
4730   dwarf2="$with_dwarf2"
4731 else
4732   dwarf2=no
4733 fi;
4734
4735 # Check whether --enable-shared or --disable-shared was given.
4736 if test "${enable_shared+set}" = set; then
4737   enableval="$enable_shared"
4738
4739   case $enable_shared in
4740   yes | no) ;;
4741   *)
4742     enable_shared=no
4743     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4744     for pkg in $enableval; do
4745       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4746         enable_shared=yes
4747       fi
4748     done
4749     IFS="$ac_save_ifs"
4750     ;;
4751   esac
4752
4753 else
4754   enable_shared=yes
4755 fi;
4756
4757
4758
4759 # Check whether --with-sysroot or --without-sysroot was given.
4760 if test "${with_sysroot+set}" = set; then
4761   withval="$with_sysroot"
4762
4763  case ${with_sysroot} in
4764  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4765  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4766  esac
4767
4768  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4769  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4770
4771  if test "x$exec_prefix" = xNONE; then
4772   if test "x$prefix" = xNONE; then
4773    test_prefix=/usr/local
4774   else
4775    test_prefix=$prefix
4776   fi
4777  else
4778   test_prefix=$exec_prefix
4779  fi
4780  case ${TARGET_SYSTEM_ROOT} in
4781  "${test_prefix}"|"${test_prefix}/"*|\
4782  '${exec_prefix}'|'${exec_prefix}/'*)
4783    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4784    TARGET_SYSTEM_ROOT_DEFINE="$t"
4785    ;;
4786  esac
4787
4788 else
4789
4790  TARGET_SYSTEM_ROOT=
4791  TARGET_SYSTEM_ROOT_DEFINE=
4792  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4793
4794 fi;
4795
4796
4797
4798
4799 # Build with intermodule optimisations
4800 # Check whether --enable-intermodule or --disable-intermodule was given.
4801 if test "${enable_intermodule+set}" = set; then
4802   enableval="$enable_intermodule"
4803   case ${enable_intermodule} in
4804   yes) onestep="-onestep";;
4805   *) onestep="";;
4806 esac
4807 else
4808   onestep=""
4809 fi;
4810
4811
4812 # -------------------------
4813 # Checks for other programs
4814 # -------------------------
4815
4816 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4817 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4818 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4819 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   cat >conftest.make <<\_ACEOF
4823 all:
4824         @echo 'ac_maketemp="$(MAKE)"'
4825 _ACEOF
4826 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4827 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4828 if test -n "$ac_maketemp"; then
4829   eval ac_cv_prog_make_${ac_make}_set=yes
4830 else
4831   eval ac_cv_prog_make_${ac_make}_set=no
4832 fi
4833 rm -f conftest.make
4834 fi
4835 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4836   echo "$as_me:$LINENO: result: yes" >&5
4837 echo "${ECHO_T}yes" >&6
4838   SET_MAKE=
4839 else
4840   echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4842   SET_MAKE="MAKE=${MAKE-make}"
4843 fi
4844
4845
4846 # Find some useful tools
4847 for ac_prog in gawk mawk nawk awk
4848 do
4849   # Extract the first word of "$ac_prog", so it can be a program name with args.
4850 set dummy $ac_prog; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_AWK+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   if test -n "$AWK"; then
4857   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864   for ac_exec_ext in '' $ac_executable_extensions; do
4865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866     ac_cv_prog_AWK="$ac_prog"
4867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871 done
4872
4873 fi
4874 fi
4875 AWK=$ac_cv_prog_AWK
4876 if test -n "$AWK"; then
4877   echo "$as_me:$LINENO: result: $AWK" >&5
4878 echo "${ECHO_T}$AWK" >&6
4879 else
4880   echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6
4882 fi
4883
4884   test -n "$AWK" && break
4885 done
4886
4887 # We need awk to run opts.sh (to create options.c and options.h).
4888 # Bail out if it's missing.
4889 case ${AWK} in
4890   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4891 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4892    { (exit 1); exit 1; }; } ;;
4893 esac
4894
4895 echo "$as_me:$LINENO: checking whether ln works" >&5
4896 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4897 if test "${gcc_cv_prog_LN+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   rm -f conftestdata_t
4901 echo >conftestdata_f
4902 if ln conftestdata_f conftestdata_t 2>/dev/null
4903 then
4904   gcc_cv_prog_LN="ln"
4905 else
4906   if ln -s conftestdata_f conftestdata_t 2>/dev/null
4907   then
4908     gcc_cv_prog_LN="ln -s"
4909   else
4910     gcc_cv_prog_LN=cp
4911   fi
4912 fi
4913 rm -f conftestdata_f conftestdata_t
4914
4915 fi
4916 LN="$gcc_cv_prog_LN"
4917 if test "$gcc_cv_prog_LN" = "ln"; then
4918   echo "$as_me:$LINENO: result: yes" >&5
4919 echo "${ECHO_T}yes" >&6
4920 else
4921   if test "$gcc_cv_prog_LN" = "ln -s"; then
4922     echo "$as_me:$LINENO: result: no, using ln -s" >&5
4923 echo "${ECHO_T}no, using ln -s" >&6
4924   else
4925     echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4926 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4927   fi
4928 fi
4929
4930 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4931 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4932 if test "${gcc_cv_prog_LN_S+set}" = set; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935   rm -f conftestdata_t
4936 echo >conftestdata_f
4937 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4938 then
4939   gcc_cv_prog_LN_S="ln -s"
4940 else
4941   if ln conftestdata_f conftestdata_t 2>/dev/null
4942   then
4943     gcc_cv_prog_LN_S=ln
4944   else
4945     gcc_cv_prog_LN_S=cp
4946   fi
4947 fi
4948 rm -f conftestdata_f conftestdata_t
4949
4950 fi
4951 LN_S="$gcc_cv_prog_LN_S"
4952 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4953   echo "$as_me:$LINENO: result: yes" >&5
4954 echo "${ECHO_T}yes" >&6
4955 else
4956   if test "$gcc_cv_prog_LN_S" = "ln"; then
4957     echo "$as_me:$LINENO: result: no, using ln" >&5
4958 echo "${ECHO_T}no, using ln" >&6
4959   else
4960     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4961 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4962   fi
4963 fi
4964
4965 if test -n "$ac_tool_prefix"; then
4966   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4968 echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4970 if test "${ac_cv_prog_RANLIB+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973   if test -n "$RANLIB"; then
4974   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981   for ac_exec_ext in '' $ac_executable_extensions; do
4982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988 done
4989
4990 fi
4991 fi
4992 RANLIB=$ac_cv_prog_RANLIB
4993 if test -n "$RANLIB"; then
4994   echo "$as_me:$LINENO: result: $RANLIB" >&5
4995 echo "${ECHO_T}$RANLIB" >&6
4996 else
4997   echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6
4999 fi
5000
5001 fi
5002 if test -z "$ac_cv_prog_RANLIB"; then
5003   ac_ct_RANLIB=$RANLIB
5004   # Extract the first word of "ranlib", so it can be a program name with args.
5005 set dummy ranlib; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5009   echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011   if test -n "$ac_ct_RANLIB"; then
5012   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019   for ac_exec_ext in '' $ac_executable_extensions; do
5020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021     ac_cv_prog_ac_ct_RANLIB="ranlib"
5022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026 done
5027
5028   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5029 fi
5030 fi
5031 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5032 if test -n "$ac_ct_RANLIB"; then
5033   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5034 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5035 else
5036   echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6
5038 fi
5039
5040   RANLIB=$ac_ct_RANLIB
5041 else
5042   RANLIB="$ac_cv_prog_RANLIB"
5043 fi
5044
5045 # Find a good install program.  We prefer a C program (faster),
5046 # so one script is as good as another.  But avoid the broken or
5047 # incompatible versions:
5048 # SysV /etc/install, /usr/sbin/install
5049 # SunOS /usr/etc/install
5050 # IRIX /sbin/install
5051 # AIX /bin/install
5052 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5053 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5054 # ./install, which can be erroneously created by make from ./install.sh.
5055 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5056 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5057 if test -z "$INSTALL"; then
5058 if test "${ac_cv_path_install+set}" = set; then
5059   echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5062   for ac_dir in $PATH; do
5063     # Account for people who put trailing slashes in PATH elements.
5064     case "$ac_dir/" in
5065     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5066     *)
5067       # OSF1 and SCO ODT 3.0 have their own names for install.
5068       for ac_prog in ginstall scoinst install; do
5069         if test -f $ac_dir/$ac_prog; then
5070           if test $ac_prog = install &&
5071             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5072             # AIX install.  It has an incompatible calling convention.
5073             # OSF/1 installbsd also uses dspmsg, but is usable.
5074             :
5075           else
5076             ac_cv_path_install="$ac_dir/$ac_prog -c"
5077             break 2
5078           fi
5079         fi
5080       done
5081       ;;
5082     esac
5083   done
5084   IFS="$ac_save_IFS"
5085
5086 fi
5087   if test "${ac_cv_path_install+set}" = set; then
5088     INSTALL="$ac_cv_path_install"
5089   else
5090     # As a last resort, use the slow shell script.  We don't cache a
5091     # path for INSTALL within a source directory, because that will
5092     # break other packages using the cache if that directory is
5093     # removed, or if the path is relative.
5094     INSTALL="$ac_install_sh"
5095   fi
5096 fi
5097 echo "$as_me:$LINENO: result: $INSTALL" >&5
5098 echo "${ECHO_T}$INSTALL" >&6
5099
5100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5101 # It thinks the first close brace ends the variable substitution.
5102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5103
5104 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5105
5106
5107 # See if cmp has --ignore-initial.
5108 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5109 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5110 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5111   echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113    echo abfoo >t1
5114   echo cdfoo >t2
5115   gcc_cv_prog_cmp_skip=slowcompare
5116   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5117     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5118       :
5119     else
5120       gcc_cv_prog_cmp_skip=gnucompare
5121     fi
5122   fi
5123   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5124     if cmp t1 t2 2 2 > /dev/null 2>&1; then
5125       if cmp t1 t2 1 1 > /dev/null 2>&1; then
5126         :
5127       else
5128         gcc_cv_prog_cmp_skip=fastcompare
5129       fi
5130     fi
5131   fi
5132   rm t1 t2
5133
5134 fi
5135 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5136 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5137 make_compare_target=$gcc_cv_prog_cmp_skip
5138
5139
5140
5141 # See if we have the mktemp command.
5142 # Extract the first word of "mktemp", so it can be a program name with args.
5143 set dummy mktemp; ac_word=$2
5144 echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5146 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   if test -n "$have_mktemp_command"; then
5150   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155   IFS=$as_save_IFS
5156   test -z "$as_dir" && as_dir=.
5157   for ac_exec_ext in '' $ac_executable_extensions; do
5158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159     ac_cv_prog_have_mktemp_command="yes"
5160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161     break 2
5162   fi
5163 done
5164 done
5165
5166   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5167 fi
5168 fi
5169 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5170 if test -n "$have_mktemp_command"; then
5171   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5172 echo "${ECHO_T}$have_mktemp_command" >&6
5173 else
5174   echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5176 fi
5177
5178
5179 # Do we have a single-tree copy of texinfo?
5180 if test -f $srcdir/../texinfo/Makefile.in; then
5181   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5182   gcc_cv_prog_makeinfo_modern=yes
5183   echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5184 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5185 else
5186   # See if makeinfo has been installed and is modern enough
5187   # that we can use it.
5188   # Extract the first word of "makeinfo", so it can be a program name with args.
5189 set dummy makeinfo; ac_word=$2
5190 echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195   if test -n "$MAKEINFO"; then
5196   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203   for ac_exec_ext in '' $ac_executable_extensions; do
5204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205     ac_cv_prog_MAKEINFO="makeinfo"
5206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210 done
5211
5212 fi
5213 fi
5214 MAKEINFO=$ac_cv_prog_MAKEINFO
5215 if test -n "$MAKEINFO"; then
5216   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5217 echo "${ECHO_T}$MAKEINFO" >&6
5218 else
5219   echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5221 fi
5222
5223 if test -n "$MAKEINFO"; then
5224   # Found it, now check the version.
5225   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5226 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5227 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230     ac_prog_version=`$MAKEINFO --version 2>&1 |
5231                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5232   echo "configure:5232: version of makeinfo is $ac_prog_version" >&5
5233   case $ac_prog_version in
5234     '')     gcc_cv_prog_makeinfo_modern=no;;
5235     4.[2-9]*)
5236             gcc_cv_prog_makeinfo_modern=yes;;
5237     *)      gcc_cv_prog_makeinfo_modern=no;;
5238   esac
5239
5240 fi
5241 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5242 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5243 else
5244   gcc_cv_prog_makeinfo_modern=no
5245 fi
5246
5247 fi
5248
5249 if test $gcc_cv_prog_makeinfo_modern = no; then
5250   { echo "$as_me:$LINENO: WARNING:
5251 *** Makeinfo is missing or too old.
5252 *** Info documentation will not be built." >&5
5253 echo "$as_me: WARNING:
5254 *** Makeinfo is missing or too old.
5255 *** Info documentation will not be built." >&2;}
5256   BUILD_INFO=
5257 else
5258   BUILD_INFO=info
5259 fi
5260
5261 # Is pod2man recent enough to regenerate manpages?
5262 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5263 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5264 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5265   echo "$as_me:$LINENO: result: yes" >&5
5266 echo "${ECHO_T}yes" >&6
5267   GENERATED_MANPAGES=generated-manpages
5268 else
5269   echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5271   GENERATED_MANPAGES=
5272 fi
5273
5274 # How about lex?
5275 if test -f $srcdir/../flex/skel.c; then
5276   FLEX='$(objdir)/../flex/flex'
5277 else
5278   # Extract the first word of "flex", so it can be a program name with args.
5279 set dummy flex; ac_word=$2
5280 echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282 if test "${ac_cv_prog_FLEX+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   if test -n "$FLEX"; then
5286   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291   IFS=$as_save_IFS
5292   test -z "$as_dir" && as_dir=.
5293   for ac_exec_ext in '' $ac_executable_extensions; do
5294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295     ac_cv_prog_FLEX="flex"
5296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297     break 2
5298   fi
5299 done
5300 done
5301
5302   test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5303 fi
5304 fi
5305 FLEX=$ac_cv_prog_FLEX
5306 if test -n "$FLEX"; then
5307   echo "$as_me:$LINENO: result: $FLEX" >&5
5308 echo "${ECHO_T}$FLEX" >&6
5309 else
5310   echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6
5312 fi
5313
5314 fi
5315
5316 # Bison?
5317 # The -L switch is so bison can find its skeleton file.
5318 if test -f $srcdir/../bison/bison.simple; then
5319   BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5320 else
5321   # Extract the first word of "bison", so it can be a program name with args.
5322 set dummy bison; ac_word=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_BISON+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   if test -n "$BISON"; then
5329   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334   IFS=$as_save_IFS
5335   test -z "$as_dir" && as_dir=.
5336   for ac_exec_ext in '' $ac_executable_extensions; do
5337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338     ac_cv_prog_BISON="bison"
5339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340     break 2
5341   fi
5342 done
5343 done
5344
5345   test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5346 fi
5347 fi
5348 BISON=$ac_cv_prog_BISON
5349 if test -n "$BISON"; then
5350   echo "$as_me:$LINENO: result: $BISON" >&5
5351 echo "${ECHO_T}$BISON" >&6
5352 else
5353   echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5355 fi
5356
5357 fi
5358
5359 # --------------------
5360 # Checks for C headers
5361 # --------------------
5362
5363 echo "$as_me:$LINENO: checking for GNU C library" >&5
5364 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5365 if test "${gcc_cv_glibc+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374 #include <features.h>
5375 int
5376 main ()
5377 {
5378
5379 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5380 #error Not a GNU C library system
5381 #endif
5382   ;
5383   return 0;
5384 }
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388   (eval $ac_compile) 2>conftest.er1
5389   ac_status=$?
5390   grep -v '^ *+' conftest.er1 >conftest.err
5391   rm -f conftest.er1
5392   cat conftest.err >&5
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); } &&
5395          { ac_try='test -z "$ac_c_werror_flag"
5396                          || test ! -s conftest.err'
5397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398   (eval $ac_try) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); }; } &&
5402          { ac_try='test -s conftest.$ac_objext'
5403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404   (eval $ac_try) 2>&5
5405   ac_status=$?
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); }; }; then
5408   gcc_cv_glibc=yes
5409 else
5410   echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 gcc_cv_glibc=no
5414 fi
5415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5416 fi
5417
5418 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5419 echo "${ECHO_T}$gcc_cv_glibc" >&6
5420 if test $gcc_cv_glibc = yes; then
5421
5422 cat >>confdefs.h <<\_ACEOF
5423 #define _GNU_SOURCE 1
5424 _ACEOF
5425
5426 fi
5427
5428 # Need to reject headers which give warnings, so that the -Werror bootstrap
5429 # works later. *sigh*  This needs to come before all header checks.
5430
5431 ac_c_preproc_warn_flag=yes
5432
5433 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5434 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5435 if test "${ac_cv_header_stdc+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h.  */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h.  */
5444 #include <stdlib.h>
5445 #include <stdarg.h>
5446 #include <string.h>
5447 #include <float.h>
5448
5449 int
5450 main ()
5451 {
5452
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 rm -f conftest.$ac_objext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459   (eval $ac_compile) 2>conftest.er1
5460   ac_status=$?
5461   grep -v '^ *+' conftest.er1 >conftest.err
5462   rm -f conftest.er1
5463   cat conftest.err >&5
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); } &&
5466          { ac_try='test -z "$ac_c_werror_flag"
5467                          || test ! -s conftest.err'
5468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469   (eval $ac_try) 2>&5
5470   ac_status=$?
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); }; } &&
5473          { ac_try='test -s conftest.$ac_objext'
5474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475   (eval $ac_try) 2>&5
5476   ac_status=$?
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); }; }; then
5479   ac_cv_header_stdc=yes
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 ac_cv_header_stdc=no
5485 fi
5486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487
5488 if test $ac_cv_header_stdc = yes; then
5489   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5490   cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h.  */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h.  */
5496 #include <string.h>
5497
5498 _ACEOF
5499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5500   $EGREP "memchr" >/dev/null 2>&1; then
5501   :
5502 else
5503   ac_cv_header_stdc=no
5504 fi
5505 rm -f conftest*
5506
5507 fi
5508
5509 if test $ac_cv_header_stdc = yes; then
5510   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5511   cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h.  */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h.  */
5517 #include <stdlib.h>
5518
5519 _ACEOF
5520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5521   $EGREP "free" >/dev/null 2>&1; then
5522   :
5523 else
5524   ac_cv_header_stdc=no
5525 fi
5526 rm -f conftest*
5527
5528 fi
5529
5530 if test $ac_cv_header_stdc = yes; then
5531   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5532   if test "$cross_compiling" = yes; then
5533   :
5534 else
5535   cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h.  */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h.  */
5541 #include <ctype.h>
5542 #if ((' ' & 0x0FF) == 0x020)
5543 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5544 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5545 #else
5546 # define ISLOWER(c) \
5547                    (('a' <= (c) && (c) <= 'i') \
5548                      || ('j' <= (c) && (c) <= 'r') \
5549                      || ('s' <= (c) && (c) <= 'z'))
5550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5551 #endif
5552
5553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5554 int
5555 main ()
5556 {
5557   int i;
5558   for (i = 0; i < 256; i++)
5559     if (XOR (islower (i), ISLOWER (i))
5560         || toupper (i) != TOUPPER (i))
5561       exit(2);
5562   exit (0);
5563 }
5564 _ACEOF
5565 rm -f conftest$ac_exeext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567   (eval $ac_link) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572   (eval $ac_try) 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); }; }; then
5576   :
5577 else
5578   echo "$as_me: program exited with status $ac_status" >&5
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582 ( exit $ac_status )
5583 ac_cv_header_stdc=no
5584 fi
5585 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5586 fi
5587 fi
5588 fi
5589 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5590 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5591 if test $ac_cv_header_stdc = yes; then
5592
5593 cat >>confdefs.h <<\_ACEOF
5594 #define STDC_HEADERS 1
5595 _ACEOF
5596
5597 fi
5598
5599 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5600 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5601 if test "${ac_cv_header_time+set}" = set; then
5602   echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604   cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h.  */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h.  */
5610 #include <sys/types.h>
5611 #include <sys/time.h>
5612 #include <time.h>
5613
5614 int
5615 main ()
5616 {
5617 if ((struct tm *) 0)
5618 return 0;
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625   (eval $ac_compile) 2>conftest.er1
5626   ac_status=$?
5627   grep -v '^ *+' conftest.er1 >conftest.err
5628   rm -f conftest.er1
5629   cat conftest.err >&5
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); } &&
5632          { ac_try='test -z "$ac_c_werror_flag"
5633                          || test ! -s conftest.err'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; } &&
5639          { ac_try='test -s conftest.$ac_objext'
5640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641   (eval $ac_try) 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); }; }; then
5645   ac_cv_header_time=yes
5646 else
5647   echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650 ac_cv_header_time=no
5651 fi
5652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5655 echo "${ECHO_T}$ac_cv_header_time" >&6
5656 if test $ac_cv_header_time = yes; then
5657
5658 cat >>confdefs.h <<\_ACEOF
5659 #define TIME_WITH_SYS_TIME 1
5660 _ACEOF
5661
5662 fi
5663
5664 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5665 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5666 if test "${ac_cv_header_stdbool_h+set}" = set; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669   cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h.  */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h.  */
5675 #include <stdbool.h>
5676 int
5677 main ()
5678 {
5679 bool foo = false;
5680   ;
5681   return 0;
5682 }
5683 _ACEOF
5684 rm -f conftest.$ac_objext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686   (eval $ac_compile) 2>conftest.er1
5687   ac_status=$?
5688   grep -v '^ *+' conftest.er1 >conftest.err
5689   rm -f conftest.er1
5690   cat conftest.err >&5
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); } &&
5693          { ac_try='test -z "$ac_c_werror_flag"
5694                          || test ! -s conftest.err'
5695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696   (eval $ac_try) 2>&5
5697   ac_status=$?
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); }; } &&
5700          { ac_try='test -s conftest.$ac_objext'
5701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702   (eval $ac_try) 2>&5
5703   ac_status=$?
5704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705   (exit $ac_status); }; }; then
5706   ac_cv_header_stdbool_h=yes
5707 else
5708   echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711 ac_cv_header_stdbool_h=no
5712 fi
5713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5714 fi
5715 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5716 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5717 if test $ac_cv_header_stdbool_h = yes; then
5718
5719 cat >>confdefs.h <<\_ACEOF
5720 #define HAVE_STDBOOL_H 1
5721 _ACEOF
5722
5723 fi
5724
5725 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5726 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5727 if test "${gcc_cv_header_string+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736 #include <string.h>
5737 #include <strings.h>
5738 int
5739 main ()
5740 {
5741
5742   ;
5743   return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748   (eval $ac_compile) 2>conftest.er1
5749   ac_status=$?
5750   grep -v '^ *+' conftest.er1 >conftest.err
5751   rm -f conftest.er1
5752   cat conftest.err >&5
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); } &&
5755          { ac_try='test -z "$ac_c_werror_flag"
5756                          || test ! -s conftest.err'
5757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758   (eval $ac_try) 2>&5
5759   ac_status=$?
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); }; } &&
5762          { ac_try='test -s conftest.$ac_objext'
5763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764   (eval $ac_try) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; }; then
5768   gcc_cv_header_string=yes
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 gcc_cv_header_string=no
5774 fi
5775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5776 fi
5777 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5778 echo "${ECHO_T}$gcc_cv_header_string" >&6
5779 if test $gcc_cv_header_string = yes; then
5780
5781 cat >>confdefs.h <<\_ACEOF
5782 #define STRING_WITH_STRINGS 1
5783 _ACEOF
5784
5785 fi
5786
5787 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5788 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5789 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h.  */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h.  */
5798 #include <sys/types.h>
5799 #include <sys/wait.h>
5800 #ifndef WEXITSTATUS
5801 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5802 #endif
5803 #ifndef WIFEXITED
5804 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5805 #endif
5806
5807 int
5808 main ()
5809 {
5810   int s;
5811   wait (&s);
5812   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819   (eval $ac_compile) 2>conftest.er1
5820   ac_status=$?
5821   grep -v '^ *+' conftest.er1 >conftest.err
5822   rm -f conftest.er1
5823   cat conftest.err >&5
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } &&
5826          { ac_try='test -z "$ac_c_werror_flag"
5827                          || test ! -s conftest.err'
5828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; } &&
5833          { ac_try='test -s conftest.$ac_objext'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; }; then
5839   ac_cv_header_sys_wait_h=yes
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ac_cv_header_sys_wait_h=no
5845 fi
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 fi
5848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5849 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5850 if test $ac_cv_header_sys_wait_h = yes; then
5851
5852 cat >>confdefs.h <<\_ACEOF
5853 #define HAVE_SYS_WAIT_H 1
5854 _ACEOF
5855
5856 fi
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5880                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5881                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5882                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5883 do
5884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5885 echo "$as_me:$LINENO: checking for $ac_header" >&5
5886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 #include <$ac_header>
5897 _ACEOF
5898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5900   ac_status=$?
5901   grep -v '^ *+' conftest.er1 >conftest.err
5902   rm -f conftest.er1
5903   cat conftest.err >&5
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); } >/dev/null; then
5906   if test -s conftest.err; then
5907     ac_cpp_err=$ac_c_preproc_warn_flag
5908     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5909   else
5910     ac_cpp_err=
5911   fi
5912 else
5913   ac_cpp_err=yes
5914 fi
5915 if test -z "$ac_cpp_err"; then
5916   eval "$as_ac_Header=yes"
5917 else
5918   echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921   eval "$as_ac_Header=no"
5922 fi
5923 rm -f conftest.err conftest.$ac_ext
5924 fi
5925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5928   cat >>confdefs.h <<_ACEOF
5929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5930 _ACEOF
5931
5932 fi
5933 done
5934
5935
5936 # Check for thread headers.
5937 echo "$as_me:$LINENO: checking for thread.h" >&5
5938 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5939 if test "${ac_cv_header_thread_h+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   cat >conftest.$ac_ext <<_ACEOF
5943 /* confdefs.h.  */
5944 _ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h.  */
5948 #include <thread.h>
5949 _ACEOF
5950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5952   ac_status=$?
5953   grep -v '^ *+' conftest.er1 >conftest.err
5954   rm -f conftest.er1
5955   cat conftest.err >&5
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } >/dev/null; then
5958   if test -s conftest.err; then
5959     ac_cpp_err=$ac_c_preproc_warn_flag
5960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5961   else
5962     ac_cpp_err=
5963   fi
5964 else
5965   ac_cpp_err=yes
5966 fi
5967 if test -z "$ac_cpp_err"; then
5968   ac_cv_header_thread_h=yes
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973   ac_cv_header_thread_h=no
5974 fi
5975 rm -f conftest.err conftest.$ac_ext
5976 fi
5977 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5978 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5979 if test $ac_cv_header_thread_h = yes; then
5980   have_thread_h=yes
5981 else
5982   have_thread_h=
5983 fi
5984
5985 echo "$as_me:$LINENO: checking for pthread.h" >&5
5986 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5987 if test "${ac_cv_header_pthread_h+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h.  */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h.  */
5996 #include <pthread.h>
5997 _ACEOF
5998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } >/dev/null; then
6006   if test -s conftest.err; then
6007     ac_cpp_err=$ac_c_preproc_warn_flag
6008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6009   else
6010     ac_cpp_err=
6011   fi
6012 else
6013   ac_cpp_err=yes
6014 fi
6015 if test -z "$ac_cpp_err"; then
6016   ac_cv_header_pthread_h=yes
6017 else
6018   echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021   ac_cv_header_pthread_h=no
6022 fi
6023 rm -f conftest.err conftest.$ac_ext
6024 fi
6025 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6026 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6027 if test $ac_cv_header_pthread_h = yes; then
6028   have_pthread_h=yes
6029 else
6030   have_pthread_h=
6031 fi
6032
6033
6034 # These tests can't be done till we know if we have limits.h.
6035 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6036 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6037 if test "${gcc_cv_decl_char_bit+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h.  */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h.  */
6046 #ifdef HAVE_LIMITS_H
6047 #include <limits.h>
6048 #endif
6049 #ifdef CHAR_BIT
6050 found
6051 #endif
6052 _ACEOF
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054   $EGREP "found" >/dev/null 2>&1; then
6055   gcc_cv_decl_char_bit=yes
6056 else
6057   gcc_cv_decl_char_bit=no
6058 fi
6059 rm -f conftest*
6060
6061
6062 fi
6063 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6064 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6065 if test $gcc_cv_decl_char_bit = no; then
6066   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6067 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6068 if test "${gcc_cv_c_nbby+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   i=8
6072  gcc_cv_c_nbby=
6073  while test $i -lt 65; do
6074    cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h.  */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h.  */
6080
6081 int
6082 main ()
6083 {
6084 switch(0) {
6085   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6086   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6087   ; }
6088   ;
6089   return 0;
6090 }
6091 _ACEOF
6092 rm -f conftest.$ac_objext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094   (eval $ac_compile) 2>conftest.er1
6095   ac_status=$?
6096   grep -v '^ *+' conftest.er1 >conftest.err
6097   rm -f conftest.er1
6098   cat conftest.err >&5
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); } &&
6101          { ac_try='test -z "$ac_c_werror_flag"
6102                          || test ! -s conftest.err'
6103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104   (eval $ac_try) 2>&5
6105   ac_status=$?
6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107   (exit $ac_status); }; } &&
6108          { ac_try='test -s conftest.$ac_objext'
6109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110   (eval $ac_try) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; }; then
6114   gcc_cv_c_nbby=$i; break
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 fi
6120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121    i=`expr $i + 1`
6122  done
6123  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6124
6125 fi
6126 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6127 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6128 if test $gcc_cv_c_nbby = failed; then
6129   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6130 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6131    { (exit 1); exit 1; }; }
6132 else
6133
6134 cat >>confdefs.h <<_ACEOF
6135 #define CHAR_BIT $gcc_cv_c_nbby
6136 _ACEOF
6137
6138 fi
6139 fi
6140 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6141 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6142 if test "${ac_cv_c_bigendian+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   ac_cv_c_bigendian=unknown
6146 # See if sys/param.h defines the BYTE_ORDER macro.
6147 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153 #include <sys/types.h>
6154 #include <sys/param.h>
6155 int
6156 main ()
6157 {
6158
6159 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6160  bogus endian macros
6161 #endif
6162   ;
6163   return 0;
6164 }
6165 _ACEOF
6166 rm -f conftest.$ac_objext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168   (eval $ac_compile) 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } &&
6175          { ac_try='test -z "$ac_c_werror_flag"
6176                          || test ! -s conftest.err'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; } &&
6182          { ac_try='test -s conftest.$ac_objext'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; }; then
6188   # It does; now see whether it defined to BIG_ENDIAN or not.
6189 cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195 #include <sys/types.h>
6196 #include <sys/param.h>
6197 int
6198 main ()
6199 {
6200
6201 #if BYTE_ORDER != BIG_ENDIAN
6202  not big endian
6203 #endif
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210   (eval $ac_compile) 2>conftest.er1
6211   ac_status=$?
6212   grep -v '^ *+' conftest.er1 >conftest.err
6213   rm -f conftest.er1
6214   cat conftest.err >&5
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); } &&
6217          { ac_try='test -z "$ac_c_werror_flag"
6218                          || test ! -s conftest.err'
6219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220   (eval $ac_try) 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }; } &&
6224          { ac_try='test -s conftest.$ac_objext'
6225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226   (eval $ac_try) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; }; then
6230   ac_cv_c_bigendian=yes
6231 else
6232   echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235 ac_cv_c_bigendian=no
6236 fi
6237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6238 else
6239   echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242 fi
6243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244 if test $ac_cv_c_bigendian = unknown; then
6245 if test "$cross_compiling" = yes; then
6246    echo $ac_n "cross-compiling... " 2>&6
6247 else
6248   cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h.  */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h.  */
6254 main () {
6255   /* Are we little or big endian?  From Harbison&Steele.  */
6256   union
6257   {
6258     long l;
6259     char c[sizeof (long)];
6260   } u;
6261   u.l = 1;
6262   exit (u.c[sizeof (long) - 1] == 1);
6263 }
6264 _ACEOF
6265 rm -f conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267   (eval $ac_link) 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272   (eval $ac_try) 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   ac_cv_c_bigendian=no
6277 else
6278   echo "$as_me: program exited with status $ac_status" >&5
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 ( exit $ac_status )
6283 ac_cv_c_bigendian=yes
6284 fi
6285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6286 fi
6287 fi
6288 fi
6289 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6290 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6291 if test $ac_cv_c_bigendian = unknown; then
6292 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6293 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6294
6295 cat >conftest.c <<EOF
6296 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6297 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6298 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6299 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6300 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6301 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6302 int main() { _ascii (); _ebcdic (); return 0; }
6303 EOF
6304  if test -f conftest.c ; then
6305      if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6306         if test `grep -l BIGenDianSyS conftest.o` ; then
6307            echo $ac_n ' big endian probe OK, ' 1>&6
6308            ac_cv_c_bigendian=yes
6309         fi
6310         if test `grep -l LiTTleEnDian conftest.o` ; then
6311            echo $ac_n ' little endian probe OK, ' 1>&6
6312            if test $ac_cv_c_bigendian = yes ; then
6313             ac_cv_c_bigendian=unknown;
6314            else
6315             ac_cv_c_bigendian=no
6316            fi
6317         fi
6318         echo $ac_n 'guessing bigendian ...  ' >&6
6319      fi
6320   fi
6321 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6323 fi
6324 if test $ac_cv_c_bigendian = yes; then
6325
6326 cat >>confdefs.h <<\_ACEOF
6327 #define WORDS_BIGENDIAN 1
6328 _ACEOF
6329
6330
6331 cat >>confdefs.h <<\_ACEOF
6332 #define HOST_WORDS_BIG_ENDIAN 1
6333 _ACEOF
6334
6335   BYTEORDER=4321
6336 else
6337   BYTEORDER=1234
6338 fi
6339
6340 cat >>confdefs.h <<_ACEOF
6341 #define BYTEORDER $BYTEORDER
6342 _ACEOF
6343
6344 if test $ac_cv_c_bigendian = unknown; then
6345   { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6346 echo "$as_me: error: unknown endianess - sorry" >&2;}
6347    { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6348 fi
6349
6350
6351 # --------
6352 # UNSORTED
6353 # --------
6354
6355 # Stage specific cflags for build.
6356 stage1_cflags=
6357 case $build in
6358 vax-*-*)
6359   if test x$GCC = xyes
6360   then
6361     stage1_cflags="-Wa,-J"
6362   else
6363     stage1_cflags="-J"
6364   fi
6365   ;;
6366 powerpc-*-darwin*)
6367   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6368   # sources; use -no-cpp-precomp to get to GNU cpp.
6369   # Apple's GCC has bugs in designated initializer handling, so disable
6370   # that too.
6371   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6372   ;;
6373 esac
6374
6375
6376 # These libraries may be used by collect2.
6377 # We may need a special search path to get them linked.
6378 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6379 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6380 if test "${gcc_cv_collect2_libs+set}" = set; then
6381   echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383   save_LIBS="$LIBS"
6384 for libs in '' -lld -lmld \
6385                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6386                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6387 do
6388         LIBS="$libs"
6389         cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h.  */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h.  */
6395
6396 /* Override any gcc2 internal prototype to avoid an error.  */
6397 #ifdef __cplusplus
6398 extern "C"
6399 #endif
6400 /* We use char because int might match the return type of a gcc2
6401    builtin and then its argument prototype would still apply.  */
6402 char ldopen ();
6403 int
6404 main ()
6405 {
6406 ldopen ();
6407   ;
6408   return 0;
6409 }
6410 _ACEOF
6411 rm -f conftest.$ac_objext conftest$ac_exeext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6413   (eval $ac_link) 2>conftest.er1
6414   ac_status=$?
6415   grep -v '^ *+' conftest.er1 >conftest.err
6416   rm -f conftest.er1
6417   cat conftest.err >&5
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } &&
6420          { ac_try='test -z "$ac_c_werror_flag"
6421                          || test ! -s conftest.err'
6422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423   (eval $ac_try) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); }; } &&
6427          { ac_try='test -s conftest$ac_exeext'
6428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429   (eval $ac_try) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; }; then
6433   gcc_cv_collect2_libs="$libs"; break
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 fi
6439 rm -f conftest.err conftest.$ac_objext \
6440       conftest$ac_exeext conftest.$ac_ext
6441 done
6442 LIBS="$save_LIBS"
6443 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6444 fi
6445 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6446 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6447 case $gcc_cv_collect2_libs in
6448         "none required")        ;;
6449         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6450 esac
6451
6452
6453 # When building Ada code on Alpha, we need exc_resume which is usually in
6454 # -lexc.  So test for it.
6455 save_LIBS="$LIBS"
6456 LIBS=
6457 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6458 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6459 if test "${ac_cv_search_exc_resume+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   ac_func_search_save_LIBS=$LIBS
6463 ac_cv_search_exc_resume=no
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h.  */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h.  */
6470
6471 /* Override any gcc2 internal prototype to avoid an error.  */
6472 #ifdef __cplusplus
6473 extern "C"
6474 #endif
6475 /* We use char because int might match the return type of a gcc2
6476    builtin and then its argument prototype would still apply.  */
6477 char exc_resume ();
6478 int
6479 main ()
6480 {
6481 exc_resume ();
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 rm -f conftest.$ac_objext conftest$ac_exeext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488   (eval $ac_link) 2>conftest.er1
6489   ac_status=$?
6490   grep -v '^ *+' conftest.er1 >conftest.err
6491   rm -f conftest.er1
6492   cat conftest.err >&5
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -z "$ac_c_werror_flag"
6496                          || test ! -s conftest.err'
6497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498   (eval $ac_try) 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; } &&
6502          { ac_try='test -s conftest$ac_exeext'
6503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504   (eval $ac_try) 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; }; then
6508   ac_cv_search_exc_resume="none required"
6509 else
6510   echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 fi
6514 rm -f conftest.err conftest.$ac_objext \
6515       conftest$ac_exeext conftest.$ac_ext
6516 if test "$ac_cv_search_exc_resume" = no; then
6517   for ac_lib in exc; do
6518     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6519     cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h.  */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h.  */
6525
6526 /* Override any gcc2 internal prototype to avoid an error.  */
6527 #ifdef __cplusplus
6528 extern "C"
6529 #endif
6530 /* We use char because int might match the return type of a gcc2
6531    builtin and then its argument prototype would still apply.  */
6532 char exc_resume ();
6533 int
6534 main ()
6535 {
6536 exc_resume ();
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest.$ac_objext conftest$ac_exeext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543   (eval $ac_link) 2>conftest.er1
6544   ac_status=$?
6545   grep -v '^ *+' conftest.er1 >conftest.err
6546   rm -f conftest.er1
6547   cat conftest.err >&5
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } &&
6550          { ac_try='test -z "$ac_c_werror_flag"
6551                          || test ! -s conftest.err'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; } &&
6557          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6563   ac_cv_search_exc_resume="-l$ac_lib"
6564 break
6565 else
6566   echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6568
6569 fi
6570 rm -f conftest.err conftest.$ac_objext \
6571       conftest$ac_exeext conftest.$ac_ext
6572   done
6573 fi
6574 LIBS=$ac_func_search_save_LIBS
6575 fi
6576 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6577 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6578 if test "$ac_cv_search_exc_resume" != no; then
6579   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6580
6581 fi
6582
6583 GNAT_LIBEXC="$LIBS"
6584 LIBS="$save_LIBS"
6585
6586
6587 # Some systems put ldexp and frexp in libm instead of libc; assume
6588 # they're both in the same place.  jcf-dump needs them.
6589 save_LIBS="$LIBS"
6590 LIBS=
6591 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6592 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6593 if test "${ac_cv_search_ldexp+set}" = set; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596   ac_func_search_save_LIBS=$LIBS
6597 ac_cv_search_ldexp=no
6598 cat >conftest.$ac_ext <<_ACEOF
6599 /* confdefs.h.  */
6600 _ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h.  */
6604
6605 /* Override any gcc2 internal prototype to avoid an error.  */
6606 #ifdef __cplusplus
6607 extern "C"
6608 #endif
6609 /* We use char because int might match the return type of a gcc2
6610    builtin and then its argument prototype would still apply.  */
6611 char ldexp ();
6612 int
6613 main ()
6614 {
6615 ldexp ();
6616   ;
6617   return 0;
6618 }
6619 _ACEOF
6620 rm -f conftest.$ac_objext conftest$ac_exeext
6621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6622   (eval $ac_link) 2>conftest.er1
6623   ac_status=$?
6624   grep -v '^ *+' conftest.er1 >conftest.err
6625   rm -f conftest.er1
6626   cat conftest.err >&5
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); } &&
6629          { ac_try='test -z "$ac_c_werror_flag"
6630                          || test ! -s conftest.err'
6631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632   (eval $ac_try) 2>&5
6633   ac_status=$?
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); }; } &&
6636          { ac_try='test -s conftest$ac_exeext'
6637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638   (eval $ac_try) 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; }; then
6642   ac_cv_search_ldexp="none required"
6643 else
6644   echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647 fi
6648 rm -f conftest.err conftest.$ac_objext \
6649       conftest$ac_exeext conftest.$ac_ext
6650 if test "$ac_cv_search_ldexp" = no; then
6651   for ac_lib in m; do
6652     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6653     cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h.  */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h.  */
6659
6660 /* Override any gcc2 internal prototype to avoid an error.  */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 /* We use char because int might match the return type of a gcc2
6665    builtin and then its argument prototype would still apply.  */
6666 char ldexp ();
6667 int
6668 main ()
6669 {
6670 ldexp ();
6671   ;
6672   return 0;
6673 }
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677   (eval $ac_link) 2>conftest.er1
6678   ac_status=$?
6679   grep -v '^ *+' conftest.er1 >conftest.err
6680   rm -f conftest.er1
6681   cat conftest.err >&5
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); } &&
6684          { ac_try='test -z "$ac_c_werror_flag"
6685                          || test ! -s conftest.err'
6686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687   (eval $ac_try) 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); }; } &&
6691          { ac_try='test -s conftest$ac_exeext'
6692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693   (eval $ac_try) 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); }; }; then
6697   ac_cv_search_ldexp="-l$ac_lib"
6698 break
6699 else
6700   echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6702
6703 fi
6704 rm -f conftest.err conftest.$ac_objext \
6705       conftest$ac_exeext conftest.$ac_ext
6706   done
6707 fi
6708 LIBS=$ac_func_search_save_LIBS
6709 fi
6710 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6711 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6712 if test "$ac_cv_search_ldexp" != no; then
6713   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6714
6715 fi
6716
6717 LDEXP_LIB="$LIBS"
6718 LIBS="$save_LIBS"
6719
6720
6721 # Use <inttypes.h> only if it exists,
6722 # doesn't clash with <sys/types.h>, and declares intmax_t.
6723 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6724 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6725 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h.  */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h.  */
6734 #include <sys/types.h>
6735 #include <inttypes.h>
6736 int
6737 main ()
6738 {
6739 intmax_t i = -1;
6740   ;
6741   return 0;
6742 }
6743 _ACEOF
6744 rm -f conftest.$ac_objext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746   (eval $ac_compile) 2>conftest.er1
6747   ac_status=$?
6748   grep -v '^ *+' conftest.er1 >conftest.err
6749   rm -f conftest.er1
6750   cat conftest.err >&5
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); } &&
6753          { ac_try='test -z "$ac_c_werror_flag"
6754                          || test ! -s conftest.err'
6755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756   (eval $ac_try) 2>&5
6757   ac_status=$?
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); }; } &&
6760          { ac_try='test -s conftest.$ac_objext'
6761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762   (eval $ac_try) 2>&5
6763   ac_status=$?
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); }; }; then
6766   gcc_cv_header_inttypes_h=yes
6767 else
6768   echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6770
6771 gcc_cv_header_inttypes_h=no
6772 fi
6773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6774 fi
6775
6776 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6777 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6778 if test $gcc_cv_header_inttypes_h = yes; then
6779
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_INTTYPES_H 1
6782 _ACEOF
6783
6784 fi
6785
6786
6787
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 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6813         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6814         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6815         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6816         setlocale
6817 do
6818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6819 echo "$as_me:$LINENO: checking for $ac_func" >&5
6820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6821 if eval "test \"\${$as_ac_var+set}\" = set"; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h.  */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h.  */
6830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6832 #define $ac_func innocuous_$ac_func
6833
6834 /* System header to define __stub macros and hopefully few prototypes,
6835     which can conflict with char $ac_func (); below.
6836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837     <limits.h> exists even on freestanding compilers.  */
6838
6839 #ifdef __STDC__
6840 # include <limits.h>
6841 #else
6842 # include <assert.h>
6843 #endif
6844
6845 #undef $ac_func
6846
6847 /* Override any gcc2 internal prototype to avoid an error.  */
6848 #ifdef __cplusplus
6849 extern "C"
6850 {
6851 #endif
6852 /* We use char because int might match the return type of a gcc2
6853    builtin and then its argument prototype would still apply.  */
6854 char $ac_func ();
6855 /* The GNU C library defines this for functions which it implements
6856     to always fail with ENOSYS.  Some functions are actually named
6857     something starting with __ and the normal name is an alias.  */
6858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6859 choke me
6860 #else
6861 char (*f) () = $ac_func;
6862 #endif
6863 #ifdef __cplusplus
6864 }
6865 #endif
6866
6867 int
6868 main ()
6869 {
6870 return f != $ac_func;
6871   ;
6872   return 0;
6873 }
6874 _ACEOF
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877   (eval $ac_link) 2>conftest.er1
6878   ac_status=$?
6879   grep -v '^ *+' conftest.er1 >conftest.err
6880   rm -f conftest.er1
6881   cat conftest.err >&5
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); } &&
6884          { ac_try='test -z "$ac_c_werror_flag"
6885                          || test ! -s conftest.err'
6886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887   (eval $ac_try) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); }; } &&
6891          { ac_try='test -s conftest$ac_exeext'
6892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893   (eval $ac_try) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; }; then
6897   eval "$as_ac_var=yes"
6898 else
6899   echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 eval "$as_ac_var=no"
6903 fi
6904 rm -f conftest.err conftest.$ac_objext \
6905       conftest$ac_exeext conftest.$ac_ext
6906 fi
6907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6909 if test `eval echo '${'$as_ac_var'}'` = yes; then
6910   cat >>confdefs.h <<_ACEOF
6911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6912 _ACEOF
6913
6914 fi
6915 done
6916
6917
6918 if test x$ac_cv_func_mbstowcs = xyes; then
6919   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6920 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6921 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6922   echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924       if test "$cross_compiling" = yes; then
6925   gcc_cv_func_mbstowcs_works=yes
6926 else
6927   cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933 #include <stdlib.h>
6934 int main()
6935 {
6936   mbstowcs(0, "", 0);
6937   return 0;
6938 }
6939 _ACEOF
6940 rm -f conftest$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942   (eval $ac_link) 2>&5
6943   ac_status=$?
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947   (eval $ac_try) 2>&5
6948   ac_status=$?
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); }; }; then
6951   gcc_cv_func_mbstowcs_works=yes
6952 else
6953   echo "$as_me: program exited with status $ac_status" >&5
6954 echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957 ( exit $ac_status )
6958 gcc_cv_func_mbstowcs_works=no
6959 fi
6960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6961 fi
6962 fi
6963 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6964 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6965   if test x$gcc_cv_func_mbstowcs_works = xyes; then
6966
6967 cat >>confdefs.h <<\_ACEOF
6968 #define HAVE_WORKING_MBSTOWCS 1
6969 _ACEOF
6970
6971   fi
6972 fi
6973
6974 echo "$as_me:$LINENO: checking for ssize_t" >&5
6975 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6976 if test "${ac_cv_type_ssize_t+set}" = set; then
6977   echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979   cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h.  */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h.  */
6985 $ac_includes_default
6986 int
6987 main ()
6988 {
6989 if ((ssize_t *) 0)
6990   return 0;
6991 if (sizeof (ssize_t))
6992   return 0;
6993   ;
6994   return 0;
6995 }
6996 _ACEOF
6997 rm -f conftest.$ac_objext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6999   (eval $ac_compile) 2>conftest.er1
7000   ac_status=$?
7001   grep -v '^ *+' conftest.er1 >conftest.err
7002   rm -f conftest.er1
7003   cat conftest.err >&5
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } &&
7006          { ac_try='test -z "$ac_c_werror_flag"
7007                          || test ! -s conftest.err'
7008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009   (eval $ac_try) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); }; } &&
7013          { ac_try='test -s conftest.$ac_objext'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   ac_cv_type_ssize_t=yes
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 ac_cv_type_ssize_t=no
7025 fi
7026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7027 fi
7028 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7029 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7030 if test $ac_cv_type_ssize_t = yes; then
7031   :
7032 else
7033
7034 cat >>confdefs.h <<_ACEOF
7035 #define ssize_t int
7036 _ACEOF
7037
7038 fi
7039
7040
7041 # Try to determine the array type of the second argument of getgroups
7042 # for the target system (int or gid_t).
7043 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7044 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7045 if test "${ac_cv_type_uid_t+set}" = set; then
7046   echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048   cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h.  */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h.  */
7054 #include <sys/types.h>
7055
7056 _ACEOF
7057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7058   $EGREP "uid_t" >/dev/null 2>&1; then
7059   ac_cv_type_uid_t=yes
7060 else
7061   ac_cv_type_uid_t=no
7062 fi
7063 rm -f conftest*
7064
7065 fi
7066 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7067 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7068 if test $ac_cv_type_uid_t = no; then
7069
7070 cat >>confdefs.h <<\_ACEOF
7071 #define uid_t int
7072 _ACEOF
7073
7074
7075 cat >>confdefs.h <<\_ACEOF
7076 #define gid_t int
7077 _ACEOF
7078
7079 fi
7080
7081 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7082 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7083 if test "${ac_cv_type_getgroups+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   if test "$cross_compiling" = yes; then
7087   ac_cv_type_getgroups=cross
7088 else
7089   cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h.  */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h.  */
7095 /* Thanks to Mike Rendell for this test.  */
7096 #include <sys/types.h>
7097 #define NGID 256
7098 #undef MAX
7099 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7100
7101 int
7102 main ()
7103 {
7104   gid_t gidset[NGID];
7105   int i, n;
7106   union { gid_t gval; long lval; }  val;
7107
7108   val.lval = -1;
7109   for (i = 0; i < NGID; i++)
7110     gidset[i] = val.gval;
7111   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7112                  gidset);
7113   /* Exit non-zero if getgroups seems to require an array of ints.  This
7114      happens when gid_t is short but getgroups modifies an array of ints.  */
7115   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7116 }
7117 _ACEOF
7118 rm -f conftest$ac_exeext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7120   (eval $ac_link) 2>&5
7121   ac_status=$?
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125   (eval $ac_try) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); }; }; then
7129   ac_cv_type_getgroups=gid_t
7130 else
7131   echo "$as_me: program exited with status $ac_status" >&5
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135 ( exit $ac_status )
7136 ac_cv_type_getgroups=int
7137 fi
7138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7139 fi
7140 if test $ac_cv_type_getgroups = cross; then
7141         cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147 #include <unistd.h>
7148
7149 _ACEOF
7150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7151   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7152   ac_cv_type_getgroups=gid_t
7153 else
7154   ac_cv_type_getgroups=int
7155 fi
7156 rm -f conftest*
7157
7158 fi
7159 fi
7160 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7161 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7162
7163 cat >>confdefs.h <<_ACEOF
7164 #define GETGROUPS_T $ac_cv_type_getgroups
7165 _ACEOF
7166
7167
7168 if test "${target}" = "${build}"; then
7169   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7170 else
7171   case "${target}" in
7172         # This condition may need some tweaking.  It should include all
7173         # targets where the array type of the second argument of getgroups
7174         # is int and the type of gid_t is not equivalent to int.
7175         *-*-sunos* | *-*-ultrix*)
7176                 TARGET_GETGROUPS_T=int
7177                 ;;
7178         *)
7179                 TARGET_GETGROUPS_T=gid_t
7180                 ;;
7181   esac
7182 fi
7183
7184
7185 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7186 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7187 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   if test "$cross_compiling" = yes; then
7191   gcc_cv_func_printf_ptr=no
7192 else
7193   cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199 #include <stdio.h>
7200
7201 int main()
7202 {
7203   char buf[64];
7204   char *p = buf, *q = NULL;
7205   sprintf(buf, "%p", p);
7206   sscanf(buf, "%p", &q);
7207   return (p != q);
7208 }
7209 _ACEOF
7210 rm -f conftest$ac_exeext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212   (eval $ac_link) 2>&5
7213   ac_status=$?
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217   (eval $ac_try) 2>&5
7218   ac_status=$?
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); }; }; then
7221   gcc_cv_func_printf_ptr=yes
7222 else
7223   echo "$as_me: program exited with status $ac_status" >&5
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7226
7227 ( exit $ac_status )
7228 gcc_cv_func_printf_ptr=no
7229 fi
7230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7231 fi
7232 rm -f core core.* *.core
7233 fi
7234 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7235 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7236 if test $gcc_cv_func_printf_ptr = yes ; then
7237
7238 cat >>confdefs.h <<\_ACEOF
7239 #define HAVE_PRINTF_PTR 1
7240 _ACEOF
7241
7242 fi
7243
7244 if test $ac_cv_header_sys_mman_h != yes \
7245  || test $ac_cv_func_mmap != yes; then
7246    gcc_cv_func_mmap_file=no
7247    gcc_cv_func_mmap_dev_zero=no
7248    gcc_cv_func_mmap_anon=no
7249 else
7250    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7251 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7252 if test "${gcc_cv_func_mmap_file+set}" = set; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   # Add a system to this blacklist if
7256    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7257    # memory area containing the same data that you'd get if you applied
7258    # read() to the same fd.  The only system known to have a problem here
7259    # is VMS, where text files have record structure.
7260    case "$host_os" in
7261      vms* | ultrix*)
7262         gcc_cv_func_mmap_file=no ;;
7263      *)
7264         gcc_cv_func_mmap_file=yes;;
7265    esac
7266 fi
7267 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7268 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7269    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7270 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7271 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   # Add a system to this blacklist if it has mmap() but /dev/zero
7275    # does not exist, or if mmapping /dev/zero does not give anonymous
7276    # zeroed pages with both the following properties:
7277    # 1. If you map N consecutive pages in with one call, and then
7278    #    unmap any subset of those pages, the pages that were not
7279    #    explicitly unmapped remain accessible.
7280    # 2. If you map two adjacent blocks of memory and then unmap them
7281    #    both at once, they must both go away.
7282    # Systems known to be in this category are Windows (all variants),
7283    # VMS, and Darwin.
7284    case "$host_os" in
7285      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7286         gcc_cv_func_mmap_dev_zero=no ;;
7287      *)
7288         gcc_cv_func_mmap_dev_zero=yes;;
7289    esac
7290 fi
7291 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7292 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7293
7294    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7295    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7296 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7297 if test "${gcc_cv_decl_map_anon+set}" = set; then
7298   echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300   cat >conftest.$ac_ext <<_ACEOF
7301 /* confdefs.h.  */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h.  */
7306 #include <sys/types.h>
7307 #include <sys/mman.h>
7308 #include <unistd.h>
7309
7310 #ifndef MAP_ANONYMOUS
7311 #define MAP_ANONYMOUS MAP_ANON
7312 #endif
7313
7314 int
7315 main ()
7316 {
7317 int n = MAP_ANONYMOUS;
7318   ;
7319   return 0;
7320 }
7321 _ACEOF
7322 rm -f conftest.$ac_objext
7323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7324   (eval $ac_compile) 2>conftest.er1
7325   ac_status=$?
7326   grep -v '^ *+' conftest.er1 >conftest.err
7327   rm -f conftest.er1
7328   cat conftest.err >&5
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); } &&
7331          { ac_try='test -z "$ac_c_werror_flag"
7332                          || 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"
7445                          || test ! -s conftest.err'
7446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447   (eval $ac_try) 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); }; } &&
7451          { ac_try='test -s conftest.$ac_objext'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; }; then
7457   ac_cv_type_pid_t=yes
7458 else
7459   echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 ac_cv_type_pid_t=no
7463 fi
7464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7465 fi
7466 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7467 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7468 if test $ac_cv_type_pid_t = yes; then
7469   :
7470 else
7471
7472 cat >>confdefs.h <<_ACEOF
7473 #define pid_t int
7474 _ACEOF
7475
7476 fi
7477
7478
7479
7480 for ac_header in unistd.h vfork.h
7481 do
7482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7483 echo "$as_me:$LINENO: checking for $ac_header" >&5
7484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7486   echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488   cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h.  */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h.  */
7494 #include <$ac_header>
7495 _ACEOF
7496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7498   ac_status=$?
7499   grep -v '^ *+' conftest.er1 >conftest.err
7500   rm -f conftest.er1
7501   cat conftest.err >&5
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); } >/dev/null; then
7504   if test -s conftest.err; then
7505     ac_cpp_err=$ac_c_preproc_warn_flag
7506     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7507   else
7508     ac_cpp_err=
7509   fi
7510 else
7511   ac_cpp_err=yes
7512 fi
7513 if test -z "$ac_cpp_err"; then
7514   eval "$as_ac_Header=yes"
7515 else
7516   echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519   eval "$as_ac_Header=no"
7520 fi
7521 rm -f conftest.err conftest.$ac_ext
7522 fi
7523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7526   cat >>confdefs.h <<_ACEOF
7527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7528 _ACEOF
7529
7530 fi
7531 done
7532
7533
7534
7535 for ac_func in fork vfork
7536 do
7537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7538 echo "$as_me:$LINENO: checking for $ac_func" >&5
7539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7540 if eval "test \"\${$as_ac_var+set}\" = set"; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h.  */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h.  */
7549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7551 #define $ac_func innocuous_$ac_func
7552
7553 /* System header to define __stub macros and hopefully few prototypes,
7554     which can conflict with char $ac_func (); below.
7555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7556     <limits.h> exists even on freestanding compilers.  */
7557
7558 #ifdef __STDC__
7559 # include <limits.h>
7560 #else
7561 # include <assert.h>
7562 #endif
7563
7564 #undef $ac_func
7565
7566 /* Override any gcc2 internal prototype to avoid an error.  */
7567 #ifdef __cplusplus
7568 extern "C"
7569 {
7570 #endif
7571 /* We use char because int might match the return type of a gcc2
7572    builtin and then its argument prototype would still apply.  */
7573 char $ac_func ();
7574 /* The GNU C library defines this for functions which it implements
7575     to always fail with ENOSYS.  Some functions are actually named
7576     something starting with __ and the normal name is an alias.  */
7577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7578 choke me
7579 #else
7580 char (*f) () = $ac_func;
7581 #endif
7582 #ifdef __cplusplus
7583 }
7584 #endif
7585
7586 int
7587 main ()
7588 {
7589 return f != $ac_func;
7590   ;
7591   return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596   (eval $ac_link) 2>conftest.er1
7597   ac_status=$?
7598   grep -v '^ *+' conftest.er1 >conftest.err
7599   rm -f conftest.er1
7600   cat conftest.err >&5
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); } &&
7603          { ac_try='test -z "$ac_c_werror_flag"
7604                          || test ! -s conftest.err'
7605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606   (eval $ac_try) 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); }; } &&
7610          { ac_try='test -s conftest$ac_exeext'
7611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612   (eval $ac_try) 2>&5
7613   ac_status=$?
7614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615   (exit $ac_status); }; }; then
7616   eval "$as_ac_var=yes"
7617 else
7618   echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7620
7621 eval "$as_ac_var=no"
7622 fi
7623 rm -f conftest.err conftest.$ac_objext \
7624       conftest$ac_exeext conftest.$ac_ext
7625 fi
7626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7628 if test `eval echo '${'$as_ac_var'}'` = yes; then
7629   cat >>confdefs.h <<_ACEOF
7630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7631 _ACEOF
7632
7633 fi
7634 done
7635
7636 if test "x$ac_cv_func_fork" = xyes; then
7637   echo "$as_me:$LINENO: checking for working fork" >&5
7638 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7639 if test "${ac_cv_func_fork_works+set}" = set; then
7640   echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642   if test "$cross_compiling" = yes; then
7643   ac_cv_func_fork_works=cross
7644 else
7645   cat >conftest.$ac_ext <<_ACEOF
7646 /* By Ruediger Kuhlmann. */
7647       #include <sys/types.h>
7648       #if HAVE_UNISTD_H
7649       # include <unistd.h>
7650       #endif
7651       /* Some systems only have a dummy stub for fork() */
7652       int main ()
7653       {
7654         if (fork() < 0)
7655           exit (1);
7656         exit (0);
7657       }
7658 _ACEOF
7659 rm -f conftest$ac_exeext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661   (eval $ac_link) 2>&5
7662   ac_status=$?
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666   (eval $ac_try) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); }; }; then
7670   ac_cv_func_fork_works=yes
7671 else
7672   echo "$as_me: program exited with status $ac_status" >&5
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 ( exit $ac_status )
7677 ac_cv_func_fork_works=no
7678 fi
7679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7680 fi
7681 fi
7682 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7683 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7684
7685 else
7686   ac_cv_func_fork_works=$ac_cv_func_fork
7687 fi
7688 if test "x$ac_cv_func_fork_works" = xcross; then
7689   case $host in
7690     *-*-amigaos* | *-*-msdosdjgpp*)
7691       # Override, as these systems have only a dummy fork() stub
7692       ac_cv_func_fork_works=no
7693       ;;
7694     *)
7695       ac_cv_func_fork_works=yes
7696       ;;
7697   esac
7698   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7699 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7700 fi
7701 ac_cv_func_vfork_works=$ac_cv_func_vfork
7702 if test "x$ac_cv_func_vfork" = xyes; then
7703   echo "$as_me:$LINENO: checking for working vfork" >&5
7704 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7705 if test "${ac_cv_func_vfork_works+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   if test "$cross_compiling" = yes; then
7709   ac_cv_func_vfork_works=cross
7710 else
7711   cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717 /* Thanks to Paul Eggert for this test.  */
7718 #include <stdio.h>
7719 #include <stdlib.h>
7720 #include <sys/types.h>
7721 #include <sys/stat.h>
7722 #include <sys/wait.h>
7723 #if HAVE_UNISTD_H
7724 # include <unistd.h>
7725 #endif
7726 #if HAVE_VFORK_H
7727 # include <vfork.h>
7728 #endif
7729 /* On some sparc systems, changes by the child to local and incoming
7730    argument registers are propagated back to the parent.  The compiler
7731    is told about this with #include <vfork.h>, but some compilers
7732    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7733    static variable whose address is put into a register that is
7734    clobbered by the vfork.  */
7735 static void
7736 #ifdef __cplusplus
7737 sparc_address_test (int arg)
7738 # else
7739 sparc_address_test (arg) int arg;
7740 #endif
7741 {
7742   static pid_t child;
7743   if (!child) {
7744     child = vfork ();
7745     if (child < 0) {
7746       perror ("vfork");
7747       _exit(2);
7748     }
7749     if (!child) {
7750       arg = getpid();
7751       write(-1, "", 0);
7752       _exit (arg);
7753     }
7754   }
7755 }
7756
7757 int
7758 main ()
7759 {
7760   pid_t parent = getpid ();
7761   pid_t child;
7762
7763   sparc_address_test (0);
7764
7765   child = vfork ();
7766
7767   if (child == 0) {
7768     /* Here is another test for sparc vfork register problems.  This
7769        test uses lots of local variables, at least as many local
7770        variables as main has allocated so far including compiler
7771        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7772        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7773        reuse the register of parent for one of the local variables,
7774        since it will think that parent can't possibly be used any more
7775        in this routine.  Assigning to the local variable will thus
7776        munge parent in the parent process.  */
7777     pid_t
7778       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7779       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7780     /* Convince the compiler that p..p7 are live; otherwise, it might
7781        use the same hardware register for all 8 local variables.  */
7782     if (p != p1 || p != p2 || p != p3 || p != p4
7783         || p != p5 || p != p6 || p != p7)
7784       _exit(1);
7785
7786     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7787        from child file descriptors.  If the child closes a descriptor
7788        before it execs or exits, this munges the parent's descriptor
7789        as well.  Test for this by closing stdout in the child.  */
7790     _exit(close(fileno(stdout)) != 0);
7791   } else {
7792     int status;
7793     struct stat st;
7794
7795     while (wait(&status) != child)
7796       ;
7797     exit(
7798          /* Was there some problem with vforking?  */
7799          child < 0
7800
7801          /* Did the child fail?  (This shouldn't happen.)  */
7802          || status
7803
7804          /* Did the vfork/compiler bug occur?  */
7805          || parent != getpid()
7806
7807          /* Did the file descriptor bug occur?  */
7808          || fstat(fileno(stdout), &st) != 0
7809          );
7810   }
7811 }
7812 _ACEOF
7813 rm -f conftest$ac_exeext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815   (eval $ac_link) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820   (eval $ac_try) 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); }; }; then
7824   ac_cv_func_vfork_works=yes
7825 else
7826   echo "$as_me: program exited with status $ac_status" >&5
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7829
7830 ( exit $ac_status )
7831 ac_cv_func_vfork_works=no
7832 fi
7833 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7834 fi
7835 fi
7836 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7837 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7838
7839 fi;
7840 if test "x$ac_cv_func_fork_works" = xcross; then
7841   ac_cv_func_vfork_works=$ac_cv_func_vfork
7842   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7843 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7844 fi
7845
7846 if test "x$ac_cv_func_vfork_works" = xyes; then
7847
7848 cat >>confdefs.h <<\_ACEOF
7849 #define HAVE_WORKING_VFORK 1
7850 _ACEOF
7851
7852 else
7853
7854 cat >>confdefs.h <<\_ACEOF
7855 #define vfork fork
7856 _ACEOF
7857
7858 fi
7859 if test "x$ac_cv_func_fork_works" = xyes; then
7860
7861 cat >>confdefs.h <<\_ACEOF
7862 #define HAVE_WORKING_FORK 1
7863 _ACEOF
7864
7865 fi
7866
7867
7868
7869
7870   am_cv_lib_iconv_ldpath=
7871
7872 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7873 if test "${with_libiconv_prefix+set}" = set; then
7874   withval="$with_libiconv_prefix"
7875
7876     for dir in `echo "$withval" | tr : ' '`; do
7877       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7878       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7879     done
7880
7881 fi;
7882
7883
7884 for ac_header in iconv.h
7885 do
7886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7887 echo "$as_me:$LINENO: checking for $ac_header" >&5
7888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h.  */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h.  */
7898 #include <$ac_header>
7899 _ACEOF
7900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7902   ac_status=$?
7903   grep -v '^ *+' conftest.er1 >conftest.err
7904   rm -f conftest.er1
7905   cat conftest.err >&5
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } >/dev/null; then
7908   if test -s conftest.err; then
7909     ac_cpp_err=$ac_c_preproc_warn_flag
7910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7911   else
7912     ac_cpp_err=
7913   fi
7914 else
7915   ac_cpp_err=yes
7916 fi
7917 if test -z "$ac_cpp_err"; then
7918   eval "$as_ac_Header=yes"
7919 else
7920   echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923   eval "$as_ac_Header=no"
7924 fi
7925 rm -f conftest.err conftest.$ac_ext
7926 fi
7927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7930   cat >>confdefs.h <<_ACEOF
7931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932 _ACEOF
7933
7934 fi
7935 done
7936
7937
7938   echo "$as_me:$LINENO: checking for iconv" >&5
7939 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7940 if test "${am_cv_func_iconv+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943
7944     am_cv_func_iconv="no, consider installing GNU libiconv"
7945     am_cv_lib_iconv=no
7946     cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952 #include <stdlib.h>
7953 #include <iconv.h>
7954 int
7955 main ()
7956 {
7957 iconv_t cd = iconv_open("","");
7958        iconv(cd,NULL,NULL,NULL,NULL);
7959        iconv_close(cd);
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966   (eval $ac_link) 2>conftest.er1
7967   ac_status=$?
7968   grep -v '^ *+' conftest.er1 >conftest.err
7969   rm -f conftest.er1
7970   cat conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } &&
7973          { ac_try='test -z "$ac_c_werror_flag"
7974                          || test ! -s conftest.err'
7975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976   (eval $ac_try) 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; } &&
7980          { ac_try='test -s conftest$ac_exeext'
7981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982   (eval $ac_try) 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; }; then
7986   am_cv_func_iconv=yes
7987 else
7988   echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 fi
7992 rm -f conftest.err conftest.$ac_objext \
7993       conftest$ac_exeext conftest.$ac_ext
7994     if test "$am_cv_func_iconv" != yes; then
7995       am_save_LIBS="$LIBS"
7996       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7997       cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h.  */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h.  */
8003 #include <stdlib.h>
8004 #include <iconv.h>
8005 int
8006 main ()
8007 {
8008 iconv_t cd = iconv_open("","");
8009          iconv(cd,NULL,NULL,NULL,NULL);
8010          iconv_close(cd);
8011   ;
8012   return 0;
8013 }
8014 _ACEOF
8015 rm -f conftest.$ac_objext conftest$ac_exeext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8017   (eval $ac_link) 2>conftest.er1
8018   ac_status=$?
8019   grep -v '^ *+' conftest.er1 >conftest.err
8020   rm -f conftest.er1
8021   cat conftest.err >&5
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); } &&
8024          { ac_try='test -z "$ac_c_werror_flag"
8025                          || test ! -s conftest.err'
8026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027   (eval $ac_try) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); }; } &&
8031          { ac_try='test -s conftest$ac_exeext'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037   am_cv_lib_iconv=yes
8038         am_cv_func_iconv=yes
8039 else
8040   echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 fi
8044 rm -f conftest.err conftest.$ac_objext \
8045       conftest$ac_exeext conftest.$ac_ext
8046       LIBS="$am_save_LIBS"
8047     fi
8048
8049 fi
8050 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8051 echo "${ECHO_T}$am_cv_func_iconv" >&6
8052   if test "$am_cv_func_iconv" = yes; then
8053
8054 cat >>confdefs.h <<\_ACEOF
8055 #define HAVE_ICONV 1
8056 _ACEOF
8057
8058     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8059 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8060     if test "${am_cv_proto_iconv+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063
8064       cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h.  */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h.  */
8070
8071 #include <stdlib.h>
8072 #include <iconv.h>
8073 extern
8074 #ifdef __cplusplus
8075 "C"
8076 #endif
8077 #if defined(__STDC__) || defined(__cplusplus)
8078 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8079 #else
8080 size_t iconv();
8081 #endif
8082
8083 int
8084 main ()
8085 {
8086
8087   ;
8088   return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093   (eval $ac_compile) 2>conftest.er1
8094   ac_status=$?
8095   grep -v '^ *+' conftest.er1 >conftest.err
8096   rm -f conftest.er1
8097   cat conftest.err >&5
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); } &&
8100          { ac_try='test -z "$ac_c_werror_flag"
8101                          || test ! -s conftest.err'
8102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103   (eval $ac_try) 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); }; } &&
8107          { ac_try='test -s conftest.$ac_objext'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; }; then
8113   am_cv_proto_iconv_arg1=""
8114 else
8115   echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 am_cv_proto_iconv_arg1="const"
8119 fi
8120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8121       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);"
8122 fi
8123
8124     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8125     echo "$as_me:$LINENO: result: ${ac_t:-
8126          }$am_cv_proto_iconv" >&5
8127 echo "${ECHO_T}${ac_t:-
8128          }$am_cv_proto_iconv" >&6
8129
8130 cat >>confdefs.h <<_ACEOF
8131 #define ICONV_CONST $am_cv_proto_iconv_arg1
8132 _ACEOF
8133
8134   fi
8135   LIBICONV=
8136   if test "$am_cv_lib_iconv" = yes; then
8137     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8138   fi
8139
8140
8141 # Until we have in-tree GNU iconv:
8142 LIBICONV_DEP=
8143
8144
8145
8146   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8147 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8148 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   cat >conftest.$ac_ext <<_ACEOF
8152 /* confdefs.h.  */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h.  */
8157 #include <locale.h>
8158 int
8159 main ()
8160 {
8161 return LC_MESSAGES
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8168   (eval $ac_link) 2>conftest.er1
8169   ac_status=$?
8170   grep -v '^ *+' conftest.er1 >conftest.err
8171   rm -f conftest.er1
8172   cat conftest.err >&5
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); } &&
8175          { ac_try='test -z "$ac_c_werror_flag"
8176                          || test ! -s conftest.err'
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); }; } &&
8182          { ac_try='test -s conftest$ac_exeext'
8183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184   (eval $ac_try) 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; }; then
8188   am_cv_val_LC_MESSAGES=yes
8189 else
8190   echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193 am_cv_val_LC_MESSAGES=no
8194 fi
8195 rm -f conftest.err conftest.$ac_objext \
8196       conftest$ac_exeext conftest.$ac_ext
8197 fi
8198 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8199 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8200   if test $am_cv_val_LC_MESSAGES = yes; then
8201
8202 cat >>confdefs.h <<\_ACEOF
8203 #define HAVE_LC_MESSAGES 1
8204 _ACEOF
8205
8206   fi
8207
8208
8209 # We will need to find libiberty.h and ansidecl.h
8210 saved_CFLAGS="$CFLAGS"
8211 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8212 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8213         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8214         fprintf_unlocked strstr errno snprintf vasprintf \
8215         malloc realloc calloc free basename getopt clock
8216 do
8217   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8218 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8219 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8220 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h.  */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h.  */
8229 #undef $ac_tr_decl
8230 #define $ac_tr_decl 1
8231
8232 #include "ansidecl.h"
8233 #include "system.h"
8234
8235 int
8236 main ()
8237 {
8238 #ifndef $ac_func
8239 char *(*pfn) = (char *(*)) $ac_func ;
8240 #endif
8241   ;
8242   return 0;
8243 }
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8247   (eval $ac_compile) 2>conftest.er1
8248   ac_status=$?
8249   grep -v '^ *+' conftest.er1 >conftest.err
8250   rm -f conftest.er1
8251   cat conftest.err >&5
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } &&
8254          { ac_try='test -z "$ac_c_werror_flag"
8255                          || test ! -s conftest.err'
8256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257   (eval $ac_try) 2>&5
8258   ac_status=$?
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); }; } &&
8261          { ac_try='test -s conftest.$ac_objext'
8262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263   (eval $ac_try) 2>&5
8264   ac_status=$?
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); }; }; then
8267   eval "gcc_cv_have_decl_$ac_func=yes"
8268 else
8269   echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8271
8272 eval "gcc_cv_have_decl_$ac_func=no"
8273 fi
8274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8275 fi
8276
8277 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8278   echo "$as_me:$LINENO: result: yes" >&5
8279 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8280 #define $ac_tr_decl 1
8281 _ACEOF
8282
8283 else
8284   echo "$as_me:$LINENO: result: no" >&5
8285 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8286 #define $ac_tr_decl 0
8287 _ACEOF
8288
8289 fi
8290
8291 done
8292 if test x = y ; then
8293
8294 cat >>confdefs.h <<\_ACEOF
8295 #define HAVE_DECL_GETENV 1
8296 _ACEOF
8297
8298 cat >>confdefs.h <<\_ACEOF
8299 #define HAVE_DECL_ATOL 1
8300 _ACEOF
8301
8302 cat >>confdefs.h <<\_ACEOF
8303 #define HAVE_DECL_SBRK 1
8304 _ACEOF
8305
8306 cat >>confdefs.h <<\_ACEOF
8307 #define HAVE_DECL_ABORT 1
8308 _ACEOF
8309
8310 cat >>confdefs.h <<\_ACEOF
8311 #define HAVE_DECL_ATOF 1
8312 _ACEOF
8313
8314 cat >>confdefs.h <<\_ACEOF
8315 #define HAVE_DECL_GETCWD 1
8316 _ACEOF
8317
8318 cat >>confdefs.h <<\_ACEOF
8319 #define HAVE_DECL_GETWD 1
8320 _ACEOF
8321  \
8322
8323 cat >>confdefs.h <<\_ACEOF
8324 #define HAVE_DECL_STRSIGNAL 1
8325 _ACEOF
8326
8327 cat >>confdefs.h <<\_ACEOF
8328 #define HAVE_DECL_PUTC_UNLOCKED 1
8329 _ACEOF
8330
8331 cat >>confdefs.h <<\_ACEOF
8332 #define HAVE_DECL_FPUTS_UNLOCKED 1
8333 _ACEOF
8334
8335 cat >>confdefs.h <<\_ACEOF
8336 #define HAVE_DECL_FWRITE_UNLOCKED 1
8337 _ACEOF
8338  \
8339
8340 cat >>confdefs.h <<\_ACEOF
8341 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8342 _ACEOF
8343
8344 cat >>confdefs.h <<\_ACEOF
8345 #define HAVE_DECL_STRSTR 1
8346 _ACEOF
8347
8348 cat >>confdefs.h <<\_ACEOF
8349 #define HAVE_DECL_ERRNO 1
8350 _ACEOF
8351
8352 cat >>confdefs.h <<\_ACEOF
8353 #define HAVE_DECL_SNPRINTF 1
8354 _ACEOF
8355
8356 cat >>confdefs.h <<\_ACEOF
8357 #define HAVE_DECL_VASPRINTF 1
8358 _ACEOF
8359  \
8360
8361 cat >>confdefs.h <<\_ACEOF
8362 #define HAVE_DECL_MALLOC 1
8363 _ACEOF
8364
8365 cat >>confdefs.h <<\_ACEOF
8366 #define HAVE_DECL_REALLOC 1
8367 _ACEOF
8368
8369 cat >>confdefs.h <<\_ACEOF
8370 #define HAVE_DECL_CALLOC 1
8371 _ACEOF
8372
8373 cat >>confdefs.h <<\_ACEOF
8374 #define HAVE_DECL_FREE 1
8375 _ACEOF
8376
8377 cat >>confdefs.h <<\_ACEOF
8378 #define HAVE_DECL_BASENAME 1
8379 _ACEOF
8380
8381 cat >>confdefs.h <<\_ACEOF
8382 #define HAVE_DECL_GETOPT 1
8383 _ACEOF
8384
8385 cat >>confdefs.h <<\_ACEOF
8386 #define HAVE_DECL_CLOCK 1
8387 _ACEOF
8388 fi
8389
8390
8391 for ac_func in getrlimit setrlimit getrusage
8392 do
8393   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8394 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8395 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8396 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8397   echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399   cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h.  */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h.  */
8405 #undef $ac_tr_decl
8406 #define $ac_tr_decl 1
8407
8408 #include "ansidecl.h"
8409 #include "system.h"
8410 #ifdef HAVE_SYS_RESOURCE_H
8411 #include <sys/resource.h>
8412 #endif
8413
8414
8415 int
8416 main ()
8417 {
8418 #ifndef $ac_func
8419 char *(*pfn) = (char *(*)) $ac_func ;
8420 #endif
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8427   (eval $ac_compile) 2>conftest.er1
8428   ac_status=$?
8429   grep -v '^ *+' conftest.er1 >conftest.err
8430   rm -f conftest.er1
8431   cat conftest.err >&5
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); } &&
8434          { ac_try='test -z "$ac_c_werror_flag"
8435                          || test ! -s conftest.err'
8436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437   (eval $ac_try) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; } &&
8441          { ac_try='test -s conftest.$ac_objext'
8442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443   (eval $ac_try) 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); }; }; then
8447   eval "gcc_cv_have_decl_$ac_func=yes"
8448 else
8449   echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 eval "gcc_cv_have_decl_$ac_func=no"
8453 fi
8454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8455 fi
8456
8457 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8458   echo "$as_me:$LINENO: result: yes" >&5
8459 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8460 #define $ac_tr_decl 1
8461 _ACEOF
8462
8463 else
8464   echo "$as_me:$LINENO: result: no" >&5
8465 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8466 #define $ac_tr_decl 0
8467 _ACEOF
8468
8469 fi
8470
8471 done
8472 if test x = y ; then
8473
8474 cat >>confdefs.h <<\_ACEOF
8475 #define HAVE_DECL_GETRLIMIT 1
8476 _ACEOF
8477
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_DECL_SETRLIMIT 1
8480 _ACEOF
8481
8482 cat >>confdefs.h <<\_ACEOF
8483 #define HAVE_DECL_GETRUSAGE 1
8484 _ACEOF
8485 fi
8486
8487
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h.  */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h.  */
8494
8495 #include "ansidecl.h"
8496 #include "system.h"
8497 #ifdef HAVE_SYS_RESOURCE_H
8498 #include <sys/resource.h>
8499 #endif
8500
8501 int
8502 main ()
8503 {
8504 rlim_t l = 0;
8505   ;
8506   return 0;
8507 }
8508 _ACEOF
8509 rm -f conftest.$ac_objext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511   (eval $ac_compile) 2>conftest.er1
8512   ac_status=$?
8513   grep -v '^ *+' conftest.er1 >conftest.err
8514   rm -f conftest.er1
8515   cat conftest.err >&5
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); } &&
8518          { ac_try='test -z "$ac_c_werror_flag"
8519                          || test ! -s conftest.err'
8520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521   (eval $ac_try) 2>&5
8522   ac_status=$?
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); }; } &&
8525          { ac_try='test -s conftest.$ac_objext'
8526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527   (eval $ac_try) 2>&5
8528   ac_status=$?
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); }; }; then
8531   :
8532 else
8533   echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536
8537 cat >>confdefs.h <<\_ACEOF
8538 #define rlim_t long
8539 _ACEOF
8540
8541 fi
8542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8543
8544 for ac_func in ldgetname
8545 do
8546   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8547 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8548 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8549 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8550   echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552   cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h.  */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h.  */
8558 #undef $ac_tr_decl
8559 #define $ac_tr_decl 1
8560
8561 #include "ansidecl.h"
8562 #include "system.h"
8563 #ifdef HAVE_LDFCN_H
8564 #include <ldfcn.h>
8565 #endif
8566
8567
8568 int
8569 main ()
8570 {
8571 #ifndef $ac_func
8572 char *(*pfn) = (char *(*)) $ac_func ;
8573 #endif
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580   (eval $ac_compile) 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } &&
8587          { ac_try='test -z "$ac_c_werror_flag"
8588                          || test ! -s conftest.err'
8589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590   (eval $ac_try) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; } &&
8594          { ac_try='test -s conftest.$ac_objext'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; }; then
8600   eval "gcc_cv_have_decl_$ac_func=yes"
8601 else
8602   echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605 eval "gcc_cv_have_decl_$ac_func=no"
8606 fi
8607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8608 fi
8609
8610 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8611   echo "$as_me:$LINENO: result: yes" >&5
8612 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8613 #define $ac_tr_decl 1
8614 _ACEOF
8615
8616 else
8617   echo "$as_me:$LINENO: result: no" >&5
8618 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8619 #define $ac_tr_decl 0
8620 _ACEOF
8621
8622 fi
8623
8624 done
8625 if test x = y ; then
8626
8627 cat >>confdefs.h <<\_ACEOF
8628 #define HAVE_DECL_LDGETNAME 1
8629 _ACEOF
8630 fi
8631
8632
8633 for ac_func in times
8634 do
8635   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8636 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8637 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8638 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641   cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h.  */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h.  */
8647 #undef $ac_tr_decl
8648 #define $ac_tr_decl 1
8649
8650 #include "ansidecl.h"
8651 #include "system.h"
8652 #ifdef HAVE_SYS_TIMES_H
8653 #include <sys/times.h>
8654 #endif
8655
8656
8657 int
8658 main ()
8659 {
8660 #ifndef $ac_func
8661 char *(*pfn) = (char *(*)) $ac_func ;
8662 #endif
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8669   (eval $ac_compile) 2>conftest.er1
8670   ac_status=$?
8671   grep -v '^ *+' conftest.er1 >conftest.err
8672   rm -f conftest.er1
8673   cat conftest.err >&5
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } &&
8676          { ac_try='test -z "$ac_c_werror_flag"
8677                          || test ! -s conftest.err'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; } &&
8683          { ac_try='test -s conftest.$ac_objext'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; }; then
8689   eval "gcc_cv_have_decl_$ac_func=yes"
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 eval "gcc_cv_have_decl_$ac_func=no"
8695 fi
8696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8697 fi
8698
8699 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8700   echo "$as_me:$LINENO: result: yes" >&5
8701 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8702 #define $ac_tr_decl 1
8703 _ACEOF
8704
8705 else
8706   echo "$as_me:$LINENO: result: no" >&5
8707 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8708 #define $ac_tr_decl 0
8709 _ACEOF
8710
8711 fi
8712
8713 done
8714 if test x = y ; then
8715
8716 cat >>confdefs.h <<\_ACEOF
8717 #define HAVE_DECL_TIMES 1
8718 _ACEOF
8719 fi
8720
8721
8722 # More time-related stuff.
8723 echo "$as_me:$LINENO: checking for struct tms" >&5
8724 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8725 if test "${ac_cv_struct_tms+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735
8736 #include "ansidecl.h"
8737 #include "system.h"
8738 #ifdef HAVE_SYS_TIMES_H
8739 #include <sys/times.h>
8740 #endif
8741
8742 int
8743 main ()
8744 {
8745 struct tms tms;
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752   (eval $ac_compile) 2>conftest.er1
8753   ac_status=$?
8754   grep -v '^ *+' conftest.er1 >conftest.err
8755   rm -f conftest.er1
8756   cat conftest.err >&5
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); } &&
8759          { ac_try='test -z "$ac_c_werror_flag"
8760                          || test ! -s conftest.err'
8761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762   (eval $ac_try) 2>&5
8763   ac_status=$?
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); }; } &&
8766          { ac_try='test -s conftest.$ac_objext'
8767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768   (eval $ac_try) 2>&5
8769   ac_status=$?
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); }; }; then
8772   ac_cv_struct_tms=yes
8773 else
8774   echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777 ac_cv_struct_tms=no
8778 fi
8779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8780 fi
8781 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8782 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8783 if test $ac_cv_struct_tms = yes; then
8784
8785 cat >>confdefs.h <<\_ACEOF
8786 #define HAVE_STRUCT_TMS 1
8787 _ACEOF
8788
8789 fi
8790
8791 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8792 # revisit after autoconf 2.50.
8793 echo "$as_me:$LINENO: checking for clock_t" >&5
8794 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8795 if test "${gcc_cv_type_clock_t+set}" = set; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798
8799 cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805
8806 #include "ansidecl.h"
8807 #include "system.h"
8808
8809 int
8810 main ()
8811 {
8812 clock_t x;
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819   (eval $ac_compile) 2>conftest.er1
8820   ac_status=$?
8821   grep -v '^ *+' conftest.er1 >conftest.err
8822   rm -f conftest.er1
8823   cat conftest.err >&5
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); } &&
8826          { ac_try='test -z "$ac_c_werror_flag"
8827                          || test ! -s conftest.err'
8828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829   (eval $ac_try) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; } &&
8833          { ac_try='test -s conftest.$ac_objext'
8834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835   (eval $ac_try) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; }; then
8839   gcc_cv_type_clock_t=yes
8840 else
8841   echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844 gcc_cv_type_clock_t=no
8845 fi
8846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847 fi
8848 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8849 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8850 if test $gcc_cv_type_clock_t = yes; then
8851
8852 cat >>confdefs.h <<\_ACEOF
8853 #define HAVE_CLOCK_T 1
8854 _ACEOF
8855
8856 fi
8857
8858 echo "$as_me:$LINENO: checking for uchar" >&5
8859 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8860 if test "${gcc_cv_type_uchar+set}" = set; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863   cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h.  */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h.  */
8869
8870 #include "ansidecl.h"
8871 #include "system.h"
8872
8873 int
8874 main ()
8875 {
8876 if ((uchar *)0) return 0;
8877  if (sizeof(uchar)) return 0;
8878   ;
8879   return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8884   (eval $ac_compile) 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } &&
8891          { ac_try='test -z "$ac_c_werror_flag"
8892                          || test ! -s conftest.err'
8893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894   (eval $ac_try) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); }; } &&
8898          { ac_try='test -s conftest.$ac_objext'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; }; then
8904   ac_cv_type_uchar=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 ac_cv_type_uchar=no
8910 fi
8911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8912 fi
8913 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8914 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8915 if test $ac_cv_type_uchar = yes; then
8916
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_UCHAR 1
8919 _ACEOF
8920
8921 fi
8922
8923 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8924 CFLAGS="$saved_CFLAGS"
8925
8926 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8927 if test "${enable_initfini_array+set}" = set; then
8928   enableval="$enable_initfini_array"
8929
8930 else
8931
8932 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8933 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8934 if test "${gcc_cv_initfini_array+set}" = set; then
8935   echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937     if test "$cross_compiling" = yes; then
8938   gcc_cv_initfini_array=no
8939 else
8940   cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h.  */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h.  */
8946
8947 static int x = -1;
8948 int main (void) { return x; }
8949 int foo (void) { x = 0; }
8950 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8951 _ACEOF
8952 rm -f conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954   (eval $ac_link) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959   (eval $ac_try) 2>&5
8960   ac_status=$?
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); }; }; then
8963   gcc_cv_initfini_array=yes
8964 else
8965   echo "$as_me: program exited with status $ac_status" >&5
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969 ( exit $ac_status )
8970 gcc_cv_initfini_array=no
8971 fi
8972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8973 fi
8974 fi
8975 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8976 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8977   enable_initfini_array=$gcc_cv_initfini_array
8978
8979 fi;
8980 if test $enable_initfini_array = yes; then
8981
8982 cat >>confdefs.h <<\_ACEOF
8983 #define HAVE_INITFINI_ARRAY 1
8984 _ACEOF
8985
8986 fi
8987
8988 # mkdir takes a single argument on some systems.
8989 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8990 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8991 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994   cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h.  */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h.  */
9000
9001 #include <sys/types.h>
9002 #ifdef HAVE_SYS_STAT_H
9003 # include <sys/stat.h>
9004 #endif
9005 #ifdef HAVE_UNISTD_H
9006 # include <unistd.h>
9007 #endif
9008 #ifdef HAVE_DIRECT_H
9009 # include <direct.h>
9010 #endif
9011 int
9012 main ()
9013 {
9014 mkdir ("foo", 0);
9015   ;
9016   return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021   (eval $ac_compile) 2>conftest.er1
9022   ac_status=$?
9023   grep -v '^ *+' conftest.er1 >conftest.err
9024   rm -f conftest.er1
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } &&
9028          { ac_try='test -z "$ac_c_werror_flag"
9029                          || test ! -s conftest.err'
9030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031   (eval $ac_try) 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); }; } &&
9035          { ac_try='test -s conftest.$ac_objext'
9036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037   (eval $ac_try) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); }; }; then
9041   gcc_cv_mkdir_takes_one_arg=no
9042 else
9043   echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9045
9046 gcc_cv_mkdir_takes_one_arg=yes
9047 fi
9048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9049 fi
9050 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9051 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9052 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9053
9054 cat >>confdefs.h <<\_ACEOF
9055 #define MKDIR_TAKES_ONE_ARG 1
9056 _ACEOF
9057
9058 fi
9059
9060
9061 # File extensions
9062 manext='.1'
9063 objext='.o'
9064
9065
9066
9067 # With Setjmp/Longjmp based exception handling.
9068 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9069 if test "${enable_sjlj_exceptions+set}" = set; then
9070   enableval="$enable_sjlj_exceptions"
9071   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9072
9073 cat >>confdefs.h <<_ACEOF
9074 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9075 _ACEOF
9076
9077 fi;
9078
9079 # For platforms with the unwind ABI which includes an unwind library,
9080 # libunwind, we can choose to use the system libunwind.
9081
9082 # Check whether --with-system-libunwind or --without-system-libunwind was given.
9083 if test "${with_system_libunwind+set}" = set; then
9084   withval="$with_system_libunwind"
9085
9086 fi;
9087
9088 # --------------------------------------------------------
9089 # Build, host, and target specific configuration fragments
9090 # --------------------------------------------------------
9091
9092 # Collect build-machine-specific information.
9093 . ${srcdir}/config.build
9094
9095 # Collect host-machine-specific information.
9096 . ${srcdir}/config.host
9097
9098 target_gtfiles=
9099
9100 # Collect target-machine-specific information.
9101 . ${srcdir}/config.gcc
9102
9103 extra_objs="${host_extra_objs} ${extra_objs}"
9104 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9105
9106 # Default the target-machine variables that were not explicitly set.
9107 if test x"$tm_file" = x
9108 then tm_file=$cpu_type/$cpu_type.h; fi
9109
9110 if test x"$extra_headers" = x
9111 then extra_headers=; fi
9112
9113 if test x$md_file = x
9114 then md_file=$cpu_type/$cpu_type.md; fi
9115
9116 if test x$out_file = x
9117 then out_file=$cpu_type/$cpu_type.c; fi
9118
9119 if test x"$tmake_file" = x
9120 then tmake_file=$cpu_type/t-$cpu_type
9121 fi
9122
9123 if test x"$dwarf2" = xyes
9124 then tm_file="$tm_file tm-dwarf2.h"
9125 fi
9126
9127 # Say what files are being used for the output code and MD file.
9128 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9129 echo "Using \`$srcdir/config/$md_file' as machine description file."
9130
9131 # If any of the xm_file variables contain nonexistent files, warn
9132 # about them and drop them.
9133
9134 bx=
9135 for x in $build_xm_file; do
9136   if    test -f $srcdir/config/$x
9137   then      bx="$bx $x"
9138   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9139 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9140   fi
9141 done
9142 build_xm_file="$bx"
9143
9144 hx=
9145 for x in $host_xm_file; do
9146   if    test -f $srcdir/config/$x
9147   then      hx="$hx $x"
9148   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9149 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9150   fi
9151 done
9152 host_xm_file="$hx"
9153
9154 tx=
9155 for x in $xm_file; do
9156   if    test -f $srcdir/config/$x
9157   then      tx="$tx $x"
9158   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9159 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9160   fi
9161 done
9162 xm_file="$tx"
9163
9164 count=a
9165 for f in $tm_file; do
9166         count=${count}x
9167 done
9168 if test $count = ax; then
9169         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9170 else
9171         echo "Using the following target machine macro files:"
9172         for f in $tm_file; do
9173                 echo "  $srcdir/config/$f"
9174         done
9175 fi
9176
9177 if test x$need_64bit_hwint = xyes; then
9178
9179 cat >>confdefs.h <<\_ACEOF
9180 #define NEED_64BIT_HOST_WIDE_INT 1
9181 _ACEOF
9182
9183 fi
9184
9185 count=a
9186 for f in $host_xm_file; do
9187         count=${count}x
9188 done
9189 if test $count = a; then
9190         :
9191 elif test $count = ax; then
9192         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9193 else
9194         echo "Using the following host machine macro files:"
9195         for f in $host_xm_file; do
9196                 echo "  $srcdir/config/$f"
9197         done
9198 fi
9199 echo "Using ${out_host_hook_obj} for host machine hooks."
9200
9201 if test "$host_xm_file" != "$build_xm_file"; then
9202         count=a
9203         for f in $build_xm_file; do
9204                 count=${count}x
9205         done
9206         if test $count = a; then
9207                 :
9208         elif test $count = ax; then
9209                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9210         else
9211                 echo "Using the following build machine macro files:"
9212                 for f in $build_xm_file; do
9213                         echo "  $srcdir/config/$f"
9214                 done
9215         fi
9216 fi
9217
9218 # Check if a valid thread package
9219 case ${enable_threads_flag} in
9220   "" | no)
9221     # No threads
9222     target_thread_file='single'
9223     ;;
9224   yes)
9225     # default
9226     target_thread_file='single'
9227     ;;
9228   aix | dce | gnat | irix | posix | rtems | \
9229   single | solaris | vxworks | win32 )
9230     target_thread_file=${enable_threads_flag}
9231     ;;
9232   *)
9233     echo "${enable_threads_flag} is an unknown thread package" 1>&2
9234     exit 1
9235     ;;
9236 esac
9237
9238 if test x${thread_file} = x; then
9239   # No thread file set by target-specific clauses in config.gcc,
9240   # so use file chosen by default logic above
9241   thread_file=${target_thread_file}
9242 fi
9243
9244 if test x$enable___cxa_atexit = xyes || \
9245    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9246    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9247 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9248 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9249   echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251   cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h.  */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h.  */
9257 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9259 #define __cxa_atexit innocuous___cxa_atexit
9260
9261 /* System header to define __stub macros and hopefully few prototypes,
9262     which can conflict with char __cxa_atexit (); below.
9263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9264     <limits.h> exists even on freestanding compilers.  */
9265
9266 #ifdef __STDC__
9267 # include <limits.h>
9268 #else
9269 # include <assert.h>
9270 #endif
9271
9272 #undef __cxa_atexit
9273
9274 /* Override any gcc2 internal prototype to avoid an error.  */
9275 #ifdef __cplusplus
9276 extern "C"
9277 {
9278 #endif
9279 /* We use char because int might match the return type of a gcc2
9280    builtin and then its argument prototype would still apply.  */
9281 char __cxa_atexit ();
9282 /* The GNU C library defines this for functions which it implements
9283     to always fail with ENOSYS.  Some functions are actually named
9284     something starting with __ and the normal name is an alias.  */
9285 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9286 choke me
9287 #else
9288 char (*f) () = __cxa_atexit;
9289 #endif
9290 #ifdef __cplusplus
9291 }
9292 #endif
9293
9294 int
9295 main ()
9296 {
9297 return f != __cxa_atexit;
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304   (eval $ac_link) 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } &&
9311          { ac_try='test -z "$ac_c_werror_flag"
9312                          || test ! -s conftest.err'
9313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314   (eval $ac_try) 2>&5
9315   ac_status=$?
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); }; } &&
9318          { ac_try='test -s conftest$ac_exeext'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; }; then
9324   ac_cv_func___cxa_atexit=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ac_cv_func___cxa_atexit=no
9330 fi
9331 rm -f conftest.err conftest.$ac_objext \
9332       conftest$ac_exeext conftest.$ac_ext
9333 fi
9334 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9335 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9336 if test $ac_cv_func___cxa_atexit = yes; then
9337
9338 cat >>confdefs.h <<\_ACEOF
9339 #define DEFAULT_USE_CXA_ATEXIT 1
9340 _ACEOF
9341
9342 else
9343   echo "__cxa_atexit can't be enabled on this target"
9344 fi
9345
9346 fi
9347
9348 # Look for a file containing extra machine modes.
9349 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9350   extra_modes_file='$(srcdir)'/config/${extra_modes}
9351
9352
9353 cat >>confdefs.h <<_ACEOF
9354 #define EXTRA_MODES_FILE "config/$extra_modes"
9355 _ACEOF
9356
9357 fi
9358
9359 # auto-host.h is the file containing items generated by autoconf and is
9360 # the first file included by config.h.
9361 # If host=build, it is correct to have bconfig include auto-host.h
9362 # as well.  If host!=build, we are in error and need to do more
9363 # work to find out the build config parameters.
9364 if test x$host = x$build
9365 then
9366         build_auto=auto-host.h
9367         FORBUILD=..
9368 else
9369         # We create a subdir, then run autoconf in the subdir.
9370         # To prevent recursion we set host and build for the new
9371         # invocation of configure to the build for this invocation
9372         # of configure.
9373         tempdir=build.$$
9374         rm -rf $tempdir
9375         mkdir $tempdir
9376         cd $tempdir
9377         case ${srcdir} in
9378         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9379         *) realsrcdir=../${srcdir};;
9380         esac
9381         saved_CFLAGS="${CFLAGS}"
9382         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9383         ${realsrcdir}/configure \
9384                 --target=$target_alias --host=$build_alias --build=$build_alias
9385         CFLAGS="${saved_CFLAGS}"
9386
9387         # We just finished tests for the build machine, so rename
9388         # the file auto-build.h in the gcc directory.
9389         mv auto-host.h ../auto-build.h
9390         cd ..
9391         rm -rf $tempdir
9392         build_auto=auto-build.h
9393         FORBUILD=../${build_subdir}
9394 fi
9395
9396
9397 tm_file="${tm_file} defaults.h"
9398 tm_p_file="${tm_p_file} tm-preds.h"
9399 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9400 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9401 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9402 # put this back in temporarily.
9403 xm_file="ansidecl.h ${xm_file}"
9404
9405 # --------
9406 # UNSORTED
9407 # --------
9408
9409 # Get the version trigger filename from the toplevel
9410 if test "${with_gcc_version_trigger+set}" = set; then
9411         gcc_version_trigger=$with_gcc_version_trigger
9412 else
9413         gcc_version_trigger=${srcdir}/version.c
9414 fi
9415 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9416 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9417
9418 # Compile in configure arguments.
9419 if test -f configargs.h ; then
9420         # Being re-configured.
9421         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9422         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9423 else
9424         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9425 fi
9426
9427 # Double all backslashes and backslash all quotes to turn
9428 # gcc_config_arguments into a C string.
9429 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9430 $gcc_config_arguments
9431 EOF
9432 gcc_config_arguments_str=`cat conftest.out`
9433 rm -f conftest.out
9434
9435 cat > configargs.h <<EOF
9436 /* Generated automatically. */
9437 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9438 static const char thread_model[] = "$thread_file";
9439
9440 static const struct {
9441   const char *name, *value;
9442 } configure_default_options[] = $configure_default_options;
9443 EOF
9444
9445 # Internationalization
9446 PACKAGE=gcc
9447 VERSION="$gcc_version"
9448
9449
9450
9451 # If we haven't got the data from the intl directory,
9452 # assume NLS is disabled.
9453 USE_NLS=no
9454 LIBINTL=
9455 LIBINTL_DEP=
9456 INCINTL=
9457 XGETTEXT=
9458 GMSGFMT=
9459 POSUB=
9460 if test -f ../intl/config.intl; then
9461   . ../intl/config.intl
9462 fi
9463 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9464 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9465 if test x"$USE_NLS" != xyes; then
9466   echo "$as_me:$LINENO: result: no" >&5
9467 echo "${ECHO_T}no" >&6
9468 else
9469   echo "$as_me:$LINENO: result: yes" >&5
9470 echo "${ECHO_T}yes" >&6
9471
9472 cat >>confdefs.h <<\_ACEOF
9473 #define ENABLE_NLS 1
9474 _ACEOF
9475
9476
9477   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9478 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9479   # Look for .po and .gmo files in the source directory.
9480   CATALOGS=
9481   XLINGUAS=
9482   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9483     # If there aren't any .gmo files the shell will give us the
9484     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9485     # weeded out.
9486     case "$cat" in *\**)
9487       continue;;
9488     esac
9489     # The quadruple backslash is collapsed to a double backslash
9490     # by the backticks, then collapsed again by the double quotes,
9491     # leaving us with one backslash in the sed expression (right
9492     # before the dot that mustn't act as a wildcard).
9493     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9494     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9495     # The user is allowed to set LINGUAS to a list of languages to
9496     # install catalogs for.  If it's empty that means "all of them."
9497     if test "x$LINGUAS" = x; then
9498       CATALOGS="$CATALOGS $cat"
9499       XLINGUAS="$XLINGUAS $lang"
9500     else
9501       case "$LINGUAS" in *$lang*)
9502         CATALOGS="$CATALOGS $cat"
9503         XLINGUAS="$XLINGUAS $lang"
9504         ;;
9505       esac
9506     fi
9507   done
9508   LINGUAS="$XLINGUAS"
9509   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9510 echo "${ECHO_T}$LINGUAS" >&6
9511 fi
9512
9513 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9514 # -liconv on the link line twice.
9515 case "$LIBINTL" in *$LIBICONV*)
9516         LIBICONV= ;;
9517 esac
9518
9519 # Windows32 Registry support for specifying GCC installation paths.
9520 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9521 if test "${enable_win32_registry+set}" = set; then
9522   enableval="$enable_win32_registry"
9523
9524 fi;
9525 case $host_os in
9526         win32 | pe | cygwin* | mingw32* | uwin*)
9527 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9528 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9529 if test "x$enable_win32_registry" != xno; then
9530
9531 cat >>confdefs.h <<\_ACEOF
9532 #define ENABLE_WIN32_REGISTRY 1
9533 _ACEOF
9534
9535   echo "$as_me:$LINENO: result: yes" >&5
9536 echo "${ECHO_T}yes" >&6
9537   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9538 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9539 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   ac_func_search_save_LIBS=$LIBS
9543 ac_cv_search_RegOpenKeyExA=no
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h.  */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h.  */
9550
9551 /* Override any gcc2 internal prototype to avoid an error.  */
9552 #ifdef __cplusplus
9553 extern "C"
9554 #endif
9555 /* We use char because int might match the return type of a gcc2
9556    builtin and then its argument prototype would still apply.  */
9557 char RegOpenKeyExA ();
9558 int
9559 main ()
9560 {
9561 RegOpenKeyExA ();
9562   ;
9563   return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9568   (eval $ac_link) 2>conftest.er1
9569   ac_status=$?
9570   grep -v '^ *+' conftest.er1 >conftest.err
9571   rm -f conftest.er1
9572   cat conftest.err >&5
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); } &&
9575          { ac_try='test -z "$ac_c_werror_flag"
9576                          || test ! -s conftest.err'
9577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578   (eval $ac_try) 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }; } &&
9582          { ac_try='test -s conftest$ac_exeext'
9583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584   (eval $ac_try) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; }; then
9588   ac_cv_search_RegOpenKeyExA="none required"
9589 else
9590   echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593 fi
9594 rm -f conftest.err conftest.$ac_objext \
9595       conftest$ac_exeext conftest.$ac_ext
9596 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9597   for ac_lib in advapi32; do
9598     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9599     cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605
9606 /* Override any gcc2 internal prototype to avoid an error.  */
9607 #ifdef __cplusplus
9608 extern "C"
9609 #endif
9610 /* We use char because int might match the return type of a gcc2
9611    builtin and then its argument prototype would still apply.  */
9612 char RegOpenKeyExA ();
9613 int
9614 main ()
9615 {
9616 RegOpenKeyExA ();
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623   (eval $ac_link) 2>conftest.er1
9624   ac_status=$?
9625   grep -v '^ *+' conftest.er1 >conftest.err
9626   rm -f conftest.er1
9627   cat conftest.err >&5
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); } &&
9630          { ac_try='test -z "$ac_c_werror_flag"
9631                          || test ! -s conftest.err'
9632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633   (eval $ac_try) 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); }; } &&
9637          { ac_try='test -s conftest$ac_exeext'
9638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639   (eval $ac_try) 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; }; then
9643   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9644 break
9645 else
9646   echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 fi
9650 rm -f conftest.err conftest.$ac_objext \
9651       conftest$ac_exeext conftest.$ac_ext
9652   done
9653 fi
9654 LIBS=$ac_func_search_save_LIBS
9655 fi
9656 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9657 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9658 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9659   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9660
9661 fi
9662
9663 else
9664   echo "$as_me:$LINENO: result: no" >&5
9665 echo "${ECHO_T}no" >&6
9666 fi
9667
9668 # Check if user specified a different registry key.
9669 case "x${enable_win32_registry}" in
9670 x | xyes)
9671   # default.
9672   gcc_cv_win32_registry_key="$VERSION"
9673   ;;
9674 xno)
9675   # no registry lookup.
9676   gcc_cv_win32_registry_key=''
9677   ;;
9678 *)
9679   # user-specified key.
9680   gcc_cv_win32_registry_key="$enable_win32_registry"
9681   ;;
9682 esac
9683
9684 if test "x$enable_win32_registry" != xno; then
9685   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9686 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9687
9688 cat >>confdefs.h <<_ACEOF
9689 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9690 _ACEOF
9691
9692   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9693 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9694 fi
9695 ;;
9696 esac
9697
9698 # Get an absolute path to the GCC top-level source directory
9699 holddir=`${PWDCMD-pwd}`
9700 cd $srcdir
9701 topdir=`${PWDCMD-pwd}`
9702 cd $holddir
9703
9704 # Conditionalize the makefile for this host machine.
9705 xmake_file=
9706 for f in ${host_xmake_file}
9707 do
9708         if test -f ${srcdir}/config/$f
9709         then
9710                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9711         fi
9712 done
9713
9714 # Conditionalize the makefile for this target machine.
9715 tmake_file_=
9716 for f in ${tmake_file}
9717 do
9718         if test -f ${srcdir}/config/$f
9719         then
9720                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9721         fi
9722 done
9723 tmake_file="${tmake_file_}"
9724
9725 symbolic_link='ln -s'
9726
9727 # If the host doesn't support symlinks, modify CC in
9728 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9729 # Otherwise, we can use "CC=$(CC)".
9730 rm -f symtest.tem
9731 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9732 then
9733         cc_set_by_configure="\$(CC)"
9734         quoted_cc_set_by_configure="\$(CC)"
9735         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9736         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9737 else
9738         rm -f symtest.tem
9739         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9740         then
9741                 symbolic_link="cp -p"
9742         else
9743                 symbolic_link="cp"
9744         fi
9745         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9746         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9747         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9748         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9749 fi
9750 rm -f symtest.tem
9751
9752 out_object_file=`basename $out_file .c`.o
9753
9754 tm_file_list=
9755 tm_include_list=
9756 for f in $tm_file; do
9757   case $f in
9758     defaults.h )
9759        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9760        tm_include_list="${tm_include_list} $f"
9761        ;;
9762     * )
9763        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9764        tm_include_list="${tm_include_list} config/$f"
9765        ;;
9766   esac
9767 done
9768
9769 tm_p_file_list=
9770 tm_p_include_list=
9771 for f in $tm_p_file; do
9772   case $f in
9773     tm-preds.h )
9774        tm_p_file_list="${tm_p_file_list} $f"
9775        tm_p_include_list="${tm_p_include_list} $f"
9776        ;;
9777     * )
9778        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9779        tm_p_include_list="${tm_p_include_list} config/$f"
9780   esac
9781 done
9782
9783 xm_file_list=
9784 xm_include_list=
9785 for f in $xm_file; do
9786   case $f in
9787     ansidecl.h )
9788        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9789        xm_include_list="${xm_include_list} $f"
9790        ;;
9791     auto-host.h )
9792        xm_file_list="${xm_file_list} $f"
9793        xm_include_list="${xm_include_list} $f"
9794        ;;
9795     * )
9796        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9797        xm_include_list="${xm_include_list} config/$f"
9798        ;;
9799   esac
9800 done
9801
9802 host_xm_file_list=
9803 host_xm_include_list=
9804 for f in $host_xm_file; do
9805   case $f in
9806     ansidecl.h )
9807        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9808        host_xm_include_list="${host_xm_include_list} $f"
9809        ;;
9810     auto-host.h )
9811        host_xm_file_list="${host_xm_file_list} $f"
9812        host_xm_include_list="${host_xm_include_list} $f"
9813        ;;
9814     * )
9815        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9816        host_xm_include_list="${host_xm_include_list} config/$f"
9817        ;;
9818   esac
9819 done
9820
9821 build_xm_file_list=
9822 for f in $build_xm_file; do
9823   case $f in
9824     ansidecl.h )
9825        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9826        build_xm_include_list="${build_xm_include_list} $f"
9827        ;;
9828     auto-build.h | auto-host.h )
9829        build_xm_file_list="${build_xm_file_list} $f"
9830        build_xm_include_list="${build_xm_include_list} $f"
9831        ;;
9832     * )
9833        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9834        build_xm_include_list="${build_xm_include_list} config/$f"
9835        ;;
9836   esac
9837 done
9838
9839 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9840 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9841 CROSS=
9842 ALL=all.internal
9843 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9844 if test x$host != x$target
9845 then
9846         CROSS="-DCROSS_COMPILE"
9847         ALL=all.cross
9848         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9849         case "$host","$target" in
9850         # Darwin crosses can use the host system's libraries and headers,
9851         # because of the fat library support.  Of course, it must be the
9852         # same version of Darwin on both sides.  Allow the user to
9853         # just say --target=foo-darwin without a version number to mean
9854         # "the version on this system".
9855             *-*-darwin*,*-*-darwin*)
9856                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9857                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9858                 if test $hostos = $targetos -o $targetos = darwin ; then
9859                     CROSS=
9860                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9861                     with_headers=yes
9862                 fi
9863                 ;;
9864
9865             i?86-*-*,x86_64-*-* \
9866             | powerpc*-*-*,powerpc64*-*-*)
9867                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9868         esac
9869 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9870         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9871         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9872 fi
9873
9874 # If this is a cross-compiler that does not
9875 # have its own set of headers then define
9876 # inhibit_libc
9877
9878 # If this is using newlib, without having the headers available now,
9879 # then define inhibit_libc in LIBGCC2_CFLAGS.
9880 # This prevents libgcc2 from containing any code which requires libc
9881 # support.
9882 inhibit_libc=
9883 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9884        test x$with_newlib = xyes ; } &&
9885      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9886        inhibit_libc=-Dinhibit_libc
9887 fi
9888
9889
9890 # When building gcc with a cross-compiler, we need to adjust things so
9891 # that the generator programs are still built with the native compiler.
9892 # Also, we cannot run fixincludes or fix-header.
9893
9894 # These are the normal (build=host) settings:
9895 BUILD_PREFIX=
9896 BUILD_PREFIX_1=ignore-
9897 CC_FOR_BUILD='$(CC)'
9898 BUILD_CFLAGS='$(ALL_CFLAGS)'
9899
9900 STMP_FIXINC=stmp-fixinc
9901
9902 # Possibly disable fixproto, on a per-target basis.
9903 case ${use_fixproto} in
9904   no)
9905     STMP_FIXPROTO=
9906     ;;
9907   yes)
9908     STMP_FIXPROTO=stmp-fixproto
9909     ;;
9910 esac
9911
9912
9913 # And these apply if build != host, or we are generating coverage data
9914 if test x$build != x$host || test "x$coverage_flags" != x
9915 then
9916     BUILD_PREFIX=build-
9917     BUILD_PREFIX_1=build-
9918     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9919
9920     if test "x$TARGET_SYSTEM_ROOT" = x; then
9921         STMP_FIXINC=
9922         STMP_FIXPROTO=
9923     fi
9924 fi
9925
9926 # Expand extra_headers to include complete path.
9927 # This substitutes for lots of t-* files.
9928 extra_headers_list=
9929 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9930 for file in ${extra_headers} ; do
9931   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9932 done
9933
9934 # Add a definition of USE_COLLECT2 if system wants one.
9935 case $use_collect2 in
9936   no) use_collect2= ;;
9937   "") ;;
9938   *)
9939     host_xm_defines="${host_xm_defines} USE_COLLECT2"
9940     xm_defines="${xm_defines} USE_COLLECT2"
9941     ;;
9942 esac
9943
9944 # Identify the assembler which will work hand-in-glove with the newly
9945 # built GCC, so that we can examine its features.  This is the assembler
9946 # which will be driven by the driver program.
9947 #
9948 # If build != host, and we aren't building gas in-tree, we identify a
9949 # build->target assembler and hope that it will have the same features
9950 # as the host->target assembler we'll be using.
9951 echo "$as_me:$LINENO: checking what assembler to use" >&5
9952 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9953 in_tree_gas=no
9954 gcc_cv_as=
9955 gcc_cv_gas_major_version=
9956 gcc_cv_gas_minor_version=
9957 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9958 if test -x "$DEFAULT_ASSEMBLER"; then
9959         gcc_cv_as="$DEFAULT_ASSEMBLER"
9960 elif test -x "$AS"; then
9961         gcc_cv_as="$AS"
9962 elif test -x as$host_exeext; then
9963         # Build using assembler in the current directory.
9964         gcc_cv_as=./as$host_exeext
9965 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9966      && test -f ../gas/Makefile; then
9967   # Single tree build which includes gas.
9968   in_tree_gas=yes
9969   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9970 for f in $gcc_cv_as_bfd_srcdir/configure \
9971          $gcc_cv_as_gas_srcdir/configure \
9972          $gcc_cv_as_gas_srcdir/configure.in \
9973          $gcc_cv_as_gas_srcdir/Makefile.in ; do
9974   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9975   if test x$gcc_cv_gas_version != x; then
9976     break
9977   fi
9978 done
9979 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9980 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9981 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9982 case $gcc_cv_gas_patch_version in
9983   "") gcc_cv_gas_patch_version="0" ;;
9984 esac
9985 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9986                             + $gcc_cv_gas_minor_version \) \* 1000 \
9987                             + $gcc_cv_gas_patch_version`
9988
9989   rm -f as$host_exeext
9990   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9991   in_tree_gas_is_elf=no
9992   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9993      || (grep 'obj_format = multi' ../gas/Makefile \
9994          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9995   then
9996     in_tree_gas_is_elf=yes
9997   fi
9998 fi
9999
10000 if test "x$gcc_cv_as" = x; then
10001         # Search the same directories that the installed compiler will
10002         # search.  Else we may find the wrong assembler and lose.  If we
10003         # do not find a suitable assembler binary, then try the user's
10004         # path.
10005         #
10006         # Also note we have to check MD_EXEC_PREFIX before checking the
10007         # user's path.  Unfortunately, there is no good way to get at the
10008         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10009         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10010         # to be fixed as part of the make/configure rewrite too.
10011
10012         if test "x$exec_prefix" = xNONE; then
10013                 if test "x$prefix" = xNONE; then
10014                         test_prefix=/usr/local
10015                 else
10016                         test_prefix=$prefix
10017                 fi
10018         else
10019                 test_prefix=$exec_prefix
10020         fi
10021
10022         # If the loop below does not find an assembler, then use whatever
10023         # one we can find in the users's path.
10024         # user's path.
10025         if test "x$program_prefix" != xNONE; then
10026                 gcc_cv_as=${program_prefix}as$host_exeext
10027         else
10028                 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
10029         fi
10030
10031         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10032                    $test_prefix/libexec/gcc/$target_noncanonical \
10033                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10034                    /usr/lib/gcc/$target_noncanonical \
10035                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10036                    $test_prefix/$target_noncanonical/bin"
10037
10038         if test x$host = x$target; then
10039             test_dirs="$test_dirs \
10040                    /usr/libexec \
10041                    /usr/ccs/gcc \
10042                    /usr/ccs/bin \
10043                    /udk/usr/ccs/bin \
10044                    /bsd43/usr/lib/cmplrs/cc \
10045                    /usr/cross64/usr/bin \
10046                    /usr/lib/cmplrs/cc \
10047                    /sysv/usr/lib/cmplrs/cc \
10048                    /svr4/usr/lib/cmplrs/cc \
10049                    /usr/bin"
10050         fi
10051
10052         for dir in $test_dirs; do
10053                 if test -x $dir/as$host_exeext; then
10054                         gcc_cv_as=$dir/as$host_exeext
10055                         break;
10056                 fi
10057         done
10058 fi
10059 case $in_tree_gas in
10060   yes)
10061     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10062 echo "${ECHO_T}\"newly built gas\"" >&6
10063     ;;
10064   no)
10065     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10066 echo "${ECHO_T}$gcc_cv_as" >&6
10067     ;;
10068 esac
10069
10070 # Identify the linker which will work hand-in-glove with the newly
10071 # built GCC, so that we can examine its features.  This is the linker
10072 # which will be driven by the driver program.
10073 #
10074 # If build != host, and we aren't building gas in-tree, we identify a
10075 # build->target linker and hope that it will have the same features
10076 # as the host->target linker we'll be using.
10077 echo "$as_me:$LINENO: checking what linker to use" >&5
10078 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10079 in_tree_ld=no
10080 gcc_cv_ld=
10081 gcc_cv_gld_major_version=
10082 gcc_cv_gld_minor_version=
10083 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10084 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10085 if test -x "$DEFAULT_LINKER"; then
10086         gcc_cv_ld="$DEFAULT_LINKER"
10087 elif test -x "$LD"; then
10088         gcc_cv_ld="$LD"
10089 elif test -x collect-ld$host_exeext; then
10090         # Build using linker in the current directory.
10091         gcc_cv_ld=./collect-ld$host_exeext
10092 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10093      && test -f ../ld/Makefile; then
10094         # Single tree build which includes ld.
10095         in_tree_ld=yes
10096         in_tree_ld_is_elf=no
10097         if (grep 'EMUL = .*elf' ../ld/Makefile \
10098             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10099           in_tree_ld_is_elf=yes
10100         fi
10101         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
10102         do
10103                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10104                 if test x$gcc_cv_gld_version != x; then
10105                         break
10106                 fi
10107         done
10108         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10109         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10110         rm -f collect-ld$host_exeext
10111         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10112                 2>/dev/null
10113 fi
10114
10115 if test "x$gcc_cv_ld" = x; then
10116         # Search the same directories that the installed compiler will
10117         # search.  Else we may find the wrong linker and lose.  If we
10118         # do not find a suitable linker binary, then try the user's
10119         # path.
10120         #
10121         # Also note we have to check MD_EXEC_PREFIX before checking the
10122         # user's path.  Unfortunately, there is no good way to get at the
10123         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10124         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10125         # to be fixed as part of the make/configure rewrite too.
10126
10127         if test "x$exec_prefix" = xNONE; then
10128                 if test "x$prefix" = xNONE; then
10129                         test_prefix=/usr/local
10130                 else
10131                         test_prefix=$prefix
10132                 fi
10133         else
10134                 test_prefix=$exec_prefix
10135         fi
10136
10137         # If the loop below does not find an linker, then use whatever
10138         # one we can find in the users's path.
10139         # user's path.
10140         if test "x$program_prefix" != xNONE; then
10141                 gcc_cv_ld=${program_prefix}ld$host_exeext
10142         else
10143                 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
10144         fi
10145
10146         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10147                    $test_prefix/libexec/gcc/$target_noncanonical \
10148                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10149                    /usr/lib/gcc/$target_noncanonical \
10150                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10151                    $test_prefix/$target_noncanonical/bin"
10152
10153         if test x$host = x$target; then
10154             test_dirs="$test_dirs \
10155                    /usr/libexec \
10156                    /usr/ccs/gcc \
10157                    /usr/ccs/bin \
10158                    /udk/usr/ccs/bin \
10159                    /bsd43/usr/lib/cmplrs/cc \
10160                    /usr/cross64/usr/bin \
10161                    /usr/lib/cmplrs/cc \
10162                    /sysv/usr/lib/cmplrs/cc \
10163                    /svr4/usr/lib/cmplrs/cc \
10164                    /usr/bin"
10165         fi
10166
10167         for dir in $test_dirs; do
10168                 if test -x $dir/ld$host_exeext; then
10169                         gcc_cv_ld=$dir/ld$host_exeext
10170                         break;
10171                 fi
10172         done
10173 fi
10174 case $in_tree_ld in
10175   yes)
10176     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10177 echo "${ECHO_T}\"newly built ld\"" >&6
10178     ;;
10179   no)
10180     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10181 echo "${ECHO_T}$gcc_cv_ld" >&6
10182     ;;
10183 esac
10184
10185 # Figure out what nm we will be using.
10186 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10187 echo "$as_me:$LINENO: checking what nm to use" >&5
10188 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10189 in_tree_nm=no
10190 if test -x nm$host_exeext; then
10191         gcc_cv_nm=./nm$host_exeext
10192 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10193      && test -f ../binutils/Makefile; then
10194         # Single tree build which includes binutils.
10195         in_tree_nm=yes
10196         gcc_cv_nm=./nm$host_exeext
10197         rm -f nm$host_exeext
10198         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10199 elif test "x$program_prefix" != xNONE; then
10200         gcc_cv_nm=${program_prefix}nm$host_exeext
10201 else
10202         gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
10203 fi
10204 case $in_tree_nm in
10205   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10206 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10207   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10208 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10209 esac
10210
10211 # Figure out what objdump we will be using.
10212 echo "$as_me:$LINENO: checking what objdump to use" >&5
10213 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10214 in_tree_objdump=no
10215 if test -x objdump$host_exeext; then
10216         gcc_cv_objdump=./objdump$host_exeext
10217 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10218      && test -f ../binutils/Makefile; then
10219         # Single tree build which includes binutils.
10220         in_tree_objdump=yes
10221         gcc_cv_objdump=./objdump$host_exeext
10222         rm -f objdump$host_exeext
10223         $symbolic_link ../binutils/objdump$host_exeext \
10224                 objdump$host_exeext 2>/dev/null
10225 elif test "x$program_prefix" != xNONE; then
10226         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10227 else
10228         gcc_cv_objdump=`echo objdump | \
10229                 sed ${program_transform_name}`$host_exeext
10230 fi
10231 case $in_tree_objdump in
10232   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10233 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10234   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10235 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10236 esac
10237
10238 # Figure out what assembler alignment features are present.
10239 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10240 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10241 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   gcc_cv_as_balign_and_p2align=no
10245     if test $in_tree_gas = yes; then
10246     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10247   then gcc_cv_as_balign_and_p2align=yes
10248 fi
10249   elif test x$gcc_cv_as != x; then
10250     echo '.balign 4
10251 .p2align 2' > conftest.s
10252     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254   (eval $ac_try) 2>&5
10255   ac_status=$?
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); }; }
10258     then
10259         gcc_cv_as_balign_and_p2align=yes
10260     else
10261       echo "configure: failed program was" >&5
10262       cat conftest.s >&5
10263     fi
10264     rm -f conftest.o conftest.s
10265   fi
10266 fi
10267 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10268 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10269 if test $gcc_cv_as_balign_and_p2align = yes; then
10270
10271 cat >>confdefs.h <<\_ACEOF
10272 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10273 _ACEOF
10274
10275 fi
10276
10277 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10278 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10279 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   gcc_cv_as_max_skip_p2align=no
10283     if test $in_tree_gas = yes; then
10284     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10285   then gcc_cv_as_max_skip_p2align=yes
10286 fi
10287   elif test x$gcc_cv_as != x; then
10288     echo '.p2align 4,,7' > conftest.s
10289     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291   (eval $ac_try) 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; }
10295     then
10296         gcc_cv_as_max_skip_p2align=yes
10297     else
10298       echo "configure: failed program was" >&5
10299       cat conftest.s >&5
10300     fi
10301     rm -f conftest.o conftest.s
10302   fi
10303 fi
10304 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10305 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10306 if test $gcc_cv_as_max_skip_p2align = yes; then
10307
10308 cat >>confdefs.h <<\_ACEOF
10309 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10310 _ACEOF
10311
10312 fi
10313
10314 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10315 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10316 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   gcc_cv_as_subsection_m1=no
10320     if test $in_tree_gas = yes; then
10321     if test $in_tree_gas_is_elf = yes \
10322   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10323   then gcc_cv_as_subsection_m1=yes
10324 fi
10325   elif test x$gcc_cv_as != x; then
10326     echo 'conftest_label1: .word 0
10327 .subsection -1
10328 conftest_label2: .word 0
10329 .previous' > conftest.s
10330     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332   (eval $ac_try) 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; }
10336     then
10337         if test x$gcc_cv_nm != x; then
10338     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10339     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10340     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10341     then :
10342     else gcc_cv_as_subsection_m1=yes
10343     fi
10344     rm -f conftest.nm1 conftest.nm2
10345   fi
10346     else
10347       echo "configure: failed program was" >&5
10348       cat conftest.s >&5
10349     fi
10350     rm -f conftest.o conftest.s
10351   fi
10352 fi
10353 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10354 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10355 if test $gcc_cv_as_subsection_m1 = yes; then
10356
10357 cat >>confdefs.h <<\_ACEOF
10358 #define HAVE_GAS_SUBSECTION_ORDERING 1
10359 _ACEOF
10360
10361 fi
10362
10363 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10364 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10365 if test "${gcc_cv_as_weak+set}" = set; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   gcc_cv_as_weak=no
10369     if test $in_tree_gas = yes; then
10370     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10371   then gcc_cv_as_weak=yes
10372 fi
10373   elif test x$gcc_cv_as != x; then
10374     echo '      .weak foobar' > conftest.s
10375     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377   (eval $ac_try) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); }; }
10381     then
10382         gcc_cv_as_weak=yes
10383     else
10384       echo "configure: failed program was" >&5
10385       cat conftest.s >&5
10386     fi
10387     rm -f conftest.o conftest.s
10388   fi
10389 fi
10390 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10391 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10392 if test $gcc_cv_as_weak = yes; then
10393
10394 cat >>confdefs.h <<\_ACEOF
10395 #define HAVE_GAS_WEAK 1
10396 _ACEOF
10397
10398 fi
10399
10400 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
10401 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
10402 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
10403   echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405   gcc_cv_as_nsubspa_comdat=no
10406     if test $in_tree_gas = yes; then
10407     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
10408   then gcc_cv_as_nsubspa_comdat=yes
10409 fi
10410   elif test x$gcc_cv_as != x; then
10411     echo '      .SPACE $TEXT$
10412         .NSUBSPA $CODE$,COMDAT' > conftest.s
10413     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415   (eval $ac_try) 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); }; }
10419     then
10420         gcc_cv_as_nsubspa_comdat=yes
10421     else
10422       echo "configure: failed program was" >&5
10423       cat conftest.s >&5
10424     fi
10425     rm -f conftest.o conftest.s
10426   fi
10427 fi
10428 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
10429 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
10430 if test $gcc_cv_as_nsubspa_comdat = yes; then
10431
10432 cat >>confdefs.h <<\_ACEOF
10433 #define HAVE_GAS_NSUBSPA_COMDAT 1
10434 _ACEOF
10435
10436 fi
10437
10438 # .hidden needs to be supported in both the assembler and the linker,
10439 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10440 # This is irritatingly difficult to feature test for; we have to check the
10441 # date string after the version number.  If we've got an in-tree
10442 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10443 # to be safe.
10444 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10445 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10446 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10447 if test "${gcc_cv_as_hidden+set}" = set; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450   gcc_cv_as_hidden=no
10451     if test $in_tree_gas = yes; then
10452     if test $in_tree_gas_is_elf = yes \
10453   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10454   then gcc_cv_as_hidden=yes
10455 fi
10456   elif test x$gcc_cv_as != x; then
10457     echo '      .hidden foobar
10458 foobar:' > conftest.s
10459     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461   (eval $ac_try) 2>&5
10462   ac_status=$?
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); }; }
10465     then
10466         gcc_cv_as_hidden=yes
10467     else
10468       echo "configure: failed program was" >&5
10469       cat conftest.s >&5
10470     fi
10471     rm -f conftest.o conftest.s
10472   fi
10473 fi
10474 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10475 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10476
10477
10478 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10479 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10480 if test "${gcc_cv_ld_hidden+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   if test $in_tree_ld = yes ; then
10484   gcc_cv_ld_hidden=no
10485   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 \
10486      && test $in_tree_ld_is_elf = yes; then
10487      gcc_cv_ld_hidden=yes
10488   fi
10489 else
10490   gcc_cv_ld_hidden=yes
10491   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10492   if echo "$ld_ver" | grep GNU > /dev/null; then
10493     ld_vers=`echo $ld_ver | sed -n \
10494         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10495         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10496         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10497         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10498         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10499         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10500     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'`
10501     if test 0"$ld_date" -lt 20020404; then
10502       if test -n "$ld_date"; then
10503         # If there was date string, but was earlier than 2002-04-04, fail
10504         gcc_cv_ld_hidden=no
10505       elif test -z "$ld_vers"; then
10506         # If there was no date string nor ld version number, something is wrong
10507         gcc_cv_ld_hidden=no
10508       else
10509         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10510         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10511         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10512         test -z "$ld_vers_patch" && ld_vers_patch=0
10513         if test "$ld_vers_major" -lt 2; then
10514           gcc_cv_ld_hidden=no
10515         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10516           gcc_cv_ld_hidden="no"
10517         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10518           gcc_cv_ld_hidden=no
10519         fi
10520       fi
10521     fi
10522   else
10523     case "${target}" in
10524       hppa64*-*-hpux* | ia64*-*-hpux*)
10525         gcc_cv_ld_hidden=yes
10526         ;;
10527       *)
10528         gcc_cv_ld_hidden=no
10529         ;;
10530     esac
10531   fi
10532 fi
10533 fi
10534 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10535 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10536 libgcc_visibility=no
10537
10538 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10539   libgcc_visibility=yes
10540
10541 cat >>confdefs.h <<\_ACEOF
10542 #define HAVE_GAS_HIDDEN 1
10543 _ACEOF
10544
10545 fi
10546
10547 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10548 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10549 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10550 if test "${gcc_cv_as_leb128+set}" = set; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553   gcc_cv_as_leb128=no
10554     if test $in_tree_gas = yes; then
10555     if test $in_tree_gas_is_elf = yes \
10556   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10557   then gcc_cv_as_leb128=yes
10558 fi
10559   elif test x$gcc_cv_as != x; then
10560     echo '      .data
10561         .uleb128 L2 - L1
10562 L1:
10563         .uleb128 1280
10564         .sleb128 -1010
10565 L2:' > conftest.s
10566     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568   (eval $ac_try) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; }
10572     then
10573         # GAS versions before 2.11 do not support uleb128,
10574   # despite appearing to.
10575   # ??? There exists an elf-specific test that will crash
10576   # the assembler.  Perhaps it's better to figure out whether
10577   # arbitrary sections are supported and try the test.
10578   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10579   if echo "$as_ver" | grep GNU > /dev/null; then
10580     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10581     as_major=`echo $as_ver | sed 's/\..*//'`
10582     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10583     if test $as_major -eq 2 && test $as_minor -lt 11
10584     then :
10585     else gcc_cv_as_leb128=yes
10586     fi
10587   fi
10588     else
10589       echo "configure: failed program was" >&5
10590       cat conftest.s >&5
10591     fi
10592     rm -f conftest.o conftest.s
10593   fi
10594 fi
10595 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10596 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10597 if test $gcc_cv_as_leb128 = yes; then
10598
10599 cat >>confdefs.h <<\_ACEOF
10600 #define HAVE_AS_LEB128 1
10601 _ACEOF
10602
10603 fi
10604
10605 # GAS versions up to and including 2.11.0 may mis-optimize
10606 # .eh_frame data.
10607 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10608 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10609 if test "${gcc_cv_as_eh_frame+set}" = set; then
10610   echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612   gcc_cv_as_eh_frame=no
10613     if test $in_tree_gas = yes; then
10614     if test $in_tree_gas_is_elf = yes \
10615   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10616   then gcc_cv_as_eh_frame=yes
10617 fi
10618   elif test x$gcc_cv_as != x; then
10619     echo '      .text
10620 .LFB1:
10621         .4byte  0
10622 .L1:
10623         .4byte  0
10624 .LFE1:
10625         .section        .eh_frame,"aw",@progbits
10626 __FRAME_BEGIN__:
10627         .4byte  .LECIE1-.LSCIE1
10628 .LSCIE1:
10629         .4byte  0x0
10630         .byte   0x1
10631         .ascii "z\0"
10632         .byte   0x1
10633         .byte   0x78
10634         .byte   0x1a
10635         .byte   0x0
10636         .byte   0x4
10637         .4byte  1
10638         .p2align 1
10639 .LECIE1:
10640 .LSFDE1:
10641         .4byte  .LEFDE1-.LASFDE1
10642 .LASFDE1:
10643         .4byte  .LASFDE1-__FRAME_BEGIN__
10644         .4byte  .LFB1
10645         .4byte  .LFE1-.LFB1
10646         .byte   0x4
10647         .4byte  .LFE1-.LFB1
10648         .byte   0x4
10649         .4byte  .L1-.LFB1
10650 .LEFDE1:' > conftest.s
10651     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653   (eval $ac_try) 2>&5
10654   ac_status=$?
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); }; }
10657     then
10658           cat > conftest.lit <<EOF
10659  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10660  0010 01000000 12000000 18000000 00000000  ................
10661  0020 08000000 04080000 0044               .........D      
10662 EOF
10663 cat > conftest.big <<EOF
10664  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10665  0010 00000001 00000012 00000018 00000000  ................
10666  0020 00000008 04000000 0844               .........D      
10667 EOF
10668   # If the assembler didn't choke, and we can objdump,
10669   # and we got the correct data, then succeed.
10670   if test x$gcc_cv_objdump != x \
10671   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10672      | tail -3 > conftest.got \
10673   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10674     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10675   then
10676     gcc_cv_as_eh_frame=yes
10677   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679   (eval $ac_try) 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }; }; then
10683     gcc_cv_as_eh_frame=buggy
10684   else
10685     # Uh oh, what do we do now?
10686     gcc_cv_as_eh_frame=no
10687   fi
10688     else
10689       echo "configure: failed program was" >&5
10690       cat conftest.s >&5
10691     fi
10692     rm -f conftest.o conftest.s
10693   fi
10694 fi
10695 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10696 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10697
10698
10699 if test $gcc_cv_as_eh_frame = buggy; then
10700
10701 cat >>confdefs.h <<\_ACEOF
10702 #define USE_AS_TRADITIONAL_FORMAT 1
10703 _ACEOF
10704
10705 fi
10706
10707 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10708 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10709 if test "${gcc_cv_as_shf_merge+set}" = set; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   gcc_cv_as_shf_merge=no
10713     if test $in_tree_gas = yes; then
10714     if test $in_tree_gas_is_elf = yes \
10715   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10716   then gcc_cv_as_shf_merge=yes
10717 fi
10718   elif test x$gcc_cv_as != x; then
10719     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10720     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722   (eval $ac_try) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); }; }
10726     then
10727         gcc_cv_as_shf_merge=yes
10728     else
10729       echo "configure: failed program was" >&5
10730       cat conftest.s >&5
10731     fi
10732     rm -f conftest.o conftest.s
10733   fi
10734 fi
10735 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10736 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10737
10738
10739 cat >>confdefs.h <<_ACEOF
10740 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10741 _ACEOF
10742
10743
10744 # Thread-local storage - the check is heavily parametrized.
10745 conftest_s=
10746 tls_first_major=
10747 tls_first_minor=
10748 tls_as_opt=
10749 case "$target" in
10750   alpha*-*-*)
10751     conftest_s='
10752         .section ".tdata","awT",@progbits
10753 foo:    .long   25
10754         .text
10755         ldq     $27,__tls_get_addr($29)         !literal!1
10756         lda     $16,foo($29)                    !tlsgd!1
10757         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10758         ldq     $27,__tls_get_addr($29)         !literal!2
10759         lda     $16,foo($29)                    !tlsldm!2
10760         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10761         ldq     $1,foo($29)                     !gotdtprel
10762         ldah    $2,foo($29)                     !dtprelhi
10763         lda     $3,foo($2)                      !dtprello
10764         lda     $4,foo($29)                     !dtprel
10765         ldq     $1,foo($29)                     !gottprel
10766         ldah    $2,foo($29)                     !tprelhi
10767         lda     $3,foo($2)                      !tprello
10768         lda     $4,foo($29)                     !tprel'
10769         tls_first_major=2
10770         tls_first_minor=13
10771         tls_as_opt=--fatal-warnings
10772         ;;
10773   i[34567]86-*-*)
10774     conftest_s='
10775         .section ".tdata","awT",@progbits
10776 foo:    .long   25
10777         .text
10778         movl    %gs:0, %eax
10779         leal    foo@TLSGD(,%ebx,1), %eax
10780         leal    foo@TLSLDM(%ebx), %eax
10781         leal    foo@DTPOFF(%eax), %edx
10782         movl    foo@GOTTPOFF(%ebx), %eax
10783         subl    foo@GOTTPOFF(%ebx), %eax
10784         addl    foo@GOTNTPOFF(%ebx), %eax
10785         movl    foo@INDNTPOFF, %eax
10786         movl    $foo@TPOFF, %eax
10787         subl    $foo@TPOFF, %eax
10788         leal    foo@NTPOFF(%ecx), %eax'
10789         tls_first_major=2
10790         tls_first_minor=14
10791         tls_as_opt=--fatal-warnings
10792         ;;
10793   x86_64-*-*)
10794     conftest_s='
10795         .section ".tdata","awT",@progbits
10796 foo:    .long   25
10797         .text
10798         movq    %fs:0, %rax
10799         leaq    foo@TLSGD(%rip), %rdi
10800         leaq    foo@TLSLD(%rip), %rdi
10801         leaq    foo@DTPOFF(%rax), %rdx
10802         movq    foo@GOTTPOFF(%rip), %rax
10803         movq    $foo@TPOFF, %rax'
10804         tls_first_major=2
10805         tls_first_minor=14
10806         tls_as_opt=--fatal-warnings
10807         ;;
10808   ia64-*-*)
10809     conftest_s='
10810         .section ".tdata","awT",@progbits
10811 foo:    data8   25
10812         .text
10813         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10814         addl    r17 = @ltoff(@dtprel(foo#)), gp
10815         addl    r18 = @ltoff(@tprel(foo#)), gp
10816         addl    r19 = @dtprel(foo#), gp
10817         adds    r21 = @dtprel(foo#), r13
10818         movl    r23 = @dtprel(foo#)
10819         addl    r20 = @tprel(foo#), gp
10820         adds    r22 = @tprel(foo#), r13
10821         movl    r24 = @tprel(foo#)'
10822         tls_first_major=2
10823         tls_first_minor=13
10824         tls_as_opt=--fatal-warnings
10825         ;;
10826   powerpc-*-*)
10827     conftest_s='
10828         .section ".tdata","awT",@progbits
10829         .align 2
10830 ld0:    .space 4
10831 ld1:    .space 4
10832 x1:     .space 4
10833 x2:     .space 4
10834 x3:     .space 4
10835         .text
10836         addi 3,31,ld0@got@tlsgd
10837         bl __tls_get_addr
10838         addi 3,31,x1@got@tlsld
10839         bl __tls_get_addr
10840         addi 9,3,x1@dtprel
10841         addis 9,3,x2@dtprel@ha
10842         addi 9,9,x2@dtprel@l
10843         lwz 9,x3@got@tprel(31)
10844         add 9,9,x@tls
10845         addi 9,2,x1@tprel
10846         addis 9,2,x2@tprel@ha
10847         addi 9,9,x2@tprel@l'
10848         tls_first_major=2
10849         tls_first_minor=14
10850         tls_as_opt="-a32 --fatal-warnings"
10851         ;;
10852   powerpc64-*-*)
10853     conftest_s='
10854         .section ".tdata","awT",@progbits
10855         .align 3
10856 ld0:    .space 8
10857 ld1:    .space 8
10858 x1:     .space 8
10859 x2:     .space 8
10860 x3:     .space 8
10861         .text
10862         addi 3,2,ld0@got@tlsgd
10863         bl .__tls_get_addr
10864         nop
10865         addi 3,2,ld1@toc
10866         bl .__tls_get_addr
10867         nop
10868         addi 3,2,x1@got@tlsld
10869         bl .__tls_get_addr
10870         nop
10871         addi 9,3,x1@dtprel
10872         bl .__tls_get_addr
10873         nop
10874         addis 9,3,x2@dtprel@ha
10875         addi 9,9,x2@dtprel@l
10876         bl .__tls_get_addr
10877         nop
10878         ld 9,x3@got@dtprel(2)
10879         add 9,9,3
10880         bl .__tls_get_addr
10881         nop'
10882         tls_first_major=2
10883         tls_first_minor=14
10884         tls_as_opt="-a64 --fatal-warnings"
10885         ;;
10886   s390-*-*)
10887     conftest_s='
10888         .section ".tdata","awT",@progbits
10889 foo:    .long   25
10890         .text
10891         .long   foo@TLSGD
10892         .long   foo@TLSLDM
10893         .long   foo@DTPOFF
10894         .long   foo@NTPOFF
10895         .long   foo@GOTNTPOFF
10896         .long   foo@INDNTPOFF
10897         l       %r1,foo@GOTNTPOFF(%r12)
10898         l       %r1,0(%r1):tls_load:foo
10899         bas     %r14,0(%r1,%r13):tls_gdcall:foo
10900         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
10901         tls_first_major=2
10902         tls_first_minor=14
10903         tls_as_opt="-m31 --fatal-warnings"
10904         ;;
10905   s390x-*-*)
10906     conftest_s='
10907         .section ".tdata","awT",@progbits
10908 foo:    .long   25
10909         .text
10910         .quad   foo@TLSGD
10911         .quad   foo@TLSLDM
10912         .quad   foo@DTPOFF
10913         .quad   foo@NTPOFF
10914         .quad   foo@GOTNTPOFF
10915         lg      %r1,foo@GOTNTPOFF(%r12)
10916         larl    %r1,foo@INDNTPOFF
10917         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
10918         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10919         tls_first_major=2
10920         tls_first_minor=14
10921         tls_as_opt="-m64 -Aesame --fatal-warnings"
10922         ;;
10923   sh-*-* | sh[34]-*-*)
10924     conftest_s='
10925         .section ".tdata","awT",@progbits
10926 foo:    .long   25
10927         .text
10928         .long   foo@TLSGD
10929         .long   foo@TLSLDM
10930         .long   foo@DTPOFF
10931         .long   foo@GOTTPOFF
10932         .long   foo@TPOFF'
10933         tls_first_major=2
10934         tls_first_minor=13
10935         tls_as_opt=--fatal-warnings
10936         ;;
10937   sparc*-*-*)
10938     case "$target" in
10939       sparc*-sun-solaris2.*)
10940         on_solaris=yes
10941         ;;
10942       *)
10943         on_solaris=no
10944         ;;
10945     esac
10946     if test x$on_solaris = xyes && test x$gas_flag = xno; then
10947       conftest_s='
10948         .section ".tdata",#alloc,#write,#tls
10949 foo:    .long   25
10950         .text
10951         sethi   %tgd_hi22(foo), %o0
10952         add     %o0, %tgd_lo10(foo), %o1
10953         add     %l7, %o1, %o0, %tgd_add(foo)
10954         call    __tls_get_addr, %tgd_call(foo)
10955         sethi   %tldm_hi22(foo), %l1
10956         add     %l1, %tldm_lo10(foo), %l2
10957         add     %l7, %l2, %o0, %tldm_add(foo)
10958         call    __tls_get_addr, %tldm_call(foo)
10959         sethi   %tldo_hix22(foo), %l3
10960         xor     %l3, %tldo_lox10(foo), %l4
10961         add     %o0, %l4, %l5, %tldo_add(foo)
10962         sethi   %tie_hi22(foo), %o3
10963         add     %o3, %tie_lo10(foo), %o3
10964         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10965         add     %g7, %o2, %o4, %tie_add(foo)
10966         sethi   %tle_hix22(foo), %l1
10967         xor     %l1, %tle_lox10(foo), %o5
10968         ld      [%g7 + %o5], %o1'
10969         tls_first_major=0
10970         tls_first_minor=0
10971     else
10972       conftest_s='
10973         .section ".tdata","awT",@progbits
10974 foo:    .long   25
10975         .text
10976         sethi   %tgd_hi22(foo), %o0
10977         add     %o0, %tgd_lo10(foo), %o1
10978         add     %l7, %o1, %o0, %tgd_add(foo)
10979         call    __tls_get_addr, %tgd_call(foo)
10980         sethi   %tldm_hi22(foo), %l1
10981         add     %l1, %tldm_lo10(foo), %l2
10982         add     %l7, %l2, %o0, %tldm_add(foo)
10983         call    __tls_get_addr, %tldm_call(foo)
10984         sethi   %tldo_hix22(foo), %l3
10985         xor     %l3, %tldo_lox10(foo), %l4
10986         add     %o0, %l4, %l5, %tldo_add(foo)
10987         sethi   %tie_hi22(foo), %o3
10988         add     %o3, %tie_lo10(foo), %o3
10989         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10990         add     %g7, %o2, %o4, %tie_add(foo)
10991         sethi   %tle_hix22(foo), %l1
10992         xor     %l1, %tle_lox10(foo), %o5
10993         ld      [%g7 + %o5], %o1'
10994         tls_first_major=2
10995         tls_first_minor=14
10996         tls_as_opt="-32 --fatal-warnings"
10997       fi
10998         ;;
10999 esac
11000 if test -z "$tls_first_major"; then
11001   : # If we don't have a check, assume no support.
11002 else
11003   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11004 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11005 if test "${gcc_cv_as_tls+set}" = set; then
11006   echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008   gcc_cv_as_tls=no
11009     if test $in_tree_gas = yes; then
11010     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11011   then gcc_cv_as_tls=yes
11012 fi
11013   elif test x$gcc_cv_as != x; then
11014     echo "$conftest_s" > conftest.s
11015     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017   (eval $ac_try) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; }
11021     then
11022         gcc_cv_as_tls=yes
11023     else
11024       echo "configure: failed program was" >&5
11025       cat conftest.s >&5
11026     fi
11027     rm -f conftest.o conftest.s
11028   fi
11029 fi
11030 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11031 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11032 if test $gcc_cv_as_tls = yes; then
11033
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_AS_TLS 1
11036 _ACEOF
11037
11038 fi
11039 fi
11040
11041 # Target-specific assembler checks.
11042
11043 case "$target" in
11044   # All TARGET_ABI_OSF targets.
11045   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11046     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11047 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11048 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11049   echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051   gcc_cv_as_alpha_explicit_relocs=no
11052     if test $in_tree_gas = yes; then
11053     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11054   then gcc_cv_as_alpha_explicit_relocs=yes
11055 fi
11056   elif test x$gcc_cv_as != x; then
11057     echo '      .set nomacro
11058         .text
11059         extbl   $3, $2, $3      !lituse_bytoff!1
11060         ldq     $2, a($29)      !literal!1
11061         ldq     $4, b($29)      !literal!2
11062         ldq_u   $3, 0($2)       !lituse_base!1
11063         ldq     $27, f($29)     !literal!5
11064         jsr     $26, ($27), f   !lituse_jsr!5
11065         ldah    $29, 0($26)     !gpdisp!3
11066         lda     $0, c($29)      !gprel
11067         ldah    $1, d($29)      !gprelhigh
11068         lda     $1, d($1)       !gprellow
11069         lda     $29, 0($29)     !gpdisp!3' > conftest.s
11070     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072   (eval $ac_try) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; }
11076     then
11077         gcc_cv_as_alpha_explicit_relocs=yes
11078     else
11079       echo "configure: failed program was" >&5
11080       cat conftest.s >&5
11081     fi
11082     rm -f conftest.o conftest.s
11083   fi
11084 fi
11085 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11086 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11087 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11088
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_AS_EXPLICIT_RELOCS 1
11091 _ACEOF
11092
11093 fi
11094     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
11095 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
11096 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
11097   echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099   gcc_cv_as_alpha_jsrdirect_relocs=no
11100     if test $in_tree_gas = yes; then
11101     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
11102   then gcc_cv_as_alpha_jsrdirect_relocs=yes
11103 fi
11104   elif test x$gcc_cv_as != x; then
11105     echo '      .set nomacro
11106         .text
11107         ldq     $27, a($29)     !literal!1
11108         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
11109     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111   (eval $ac_try) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); }; }
11115     then
11116         gcc_cv_as_alpha_jsrdirect_relocs=yes
11117     else
11118       echo "configure: failed program was" >&5
11119       cat conftest.s >&5
11120     fi
11121     rm -f conftest.o conftest.s
11122   fi
11123 fi
11124 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
11125 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
11126 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
11127
11128 cat >>confdefs.h <<\_ACEOF
11129 #define HAVE_AS_JSRDIRECT_RELOCS 1
11130 _ACEOF
11131
11132 fi
11133     ;;
11134
11135   cris-*-*)
11136     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11137 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11138 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141   gcc_cv_as_cris_no_mul_bug=no
11142     if test $in_tree_gas = yes; then
11143     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11144   then gcc_cv_as_cris_no_mul_bug=yes
11145 fi
11146   elif test x$gcc_cv_as != x; then
11147     echo '.text' > conftest.s
11148     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150   (eval $ac_try) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; }
11154     then
11155         gcc_cv_as_cris_no_mul_bug=yes
11156     else
11157       echo "configure: failed program was" >&5
11158       cat conftest.s >&5
11159     fi
11160     rm -f conftest.o conftest.s
11161   fi
11162 fi
11163 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11164 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11165 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11166
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11169 _ACEOF
11170
11171 fi
11172     ;;
11173
11174   sparc*-*-*)
11175     echo "$as_me:$LINENO: checking assembler for .register" >&5
11176 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11177 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   gcc_cv_as_sparc_register_op=no
11181   if test x$gcc_cv_as != x; then
11182     echo '.register %g2, #scratch' > conftest.s
11183     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185   (eval $ac_try) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; }
11189     then
11190         gcc_cv_as_sparc_register_op=yes
11191     else
11192       echo "configure: failed program was" >&5
11193       cat conftest.s >&5
11194     fi
11195     rm -f conftest.o conftest.s
11196   fi
11197 fi
11198 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11199 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11200 if test $gcc_cv_as_sparc_register_op = yes; then
11201
11202 cat >>confdefs.h <<\_ACEOF
11203 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11204 _ACEOF
11205
11206 fi
11207
11208     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11209 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11210 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11211   echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213   gcc_cv_as_sparc_relax=no
11214   if test x$gcc_cv_as != x; then
11215     echo '.text' > conftest.s
11216     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218   (eval $ac_try) 2>&5
11219   ac_status=$?
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); }; }
11222     then
11223         gcc_cv_as_sparc_relax=yes
11224     else
11225       echo "configure: failed program was" >&5
11226       cat conftest.s >&5
11227     fi
11228     rm -f conftest.o conftest.s
11229   fi
11230 fi
11231 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11232 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11233 if test $gcc_cv_as_sparc_relax = yes; then
11234
11235 cat >>confdefs.h <<\_ACEOF
11236 #define HAVE_AS_RELAX_OPTION 1
11237 _ACEOF
11238
11239 fi
11240
11241     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11242 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11243 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11244   echo $ECHO_N "(cached) $ECHO_C" >&6
11245 else
11246   gcc_cv_as_sparc_ua_pcrel=no
11247   if test x$gcc_cv_as != x; then
11248     echo '.text
11249 foo:
11250         nop
11251 .data
11252 .align 4
11253 .byte 0
11254 .uaword %r_disp32(foo)' > conftest.s
11255     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257   (eval $ac_try) 2>&5
11258   ac_status=$?
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); }; }
11261     then
11262         if test x$gcc_cv_ld != x \
11263        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11264          gcc_cv_as_sparc_ua_pcrel=yes
11265        fi
11266        rm -f conftest
11267     else
11268       echo "configure: failed program was" >&5
11269       cat conftest.s >&5
11270     fi
11271     rm -f conftest.o conftest.s
11272   fi
11273 fi
11274 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11275 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11276 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11277
11278 cat >>confdefs.h <<\_ACEOF
11279 #define HAVE_AS_SPARC_UA_PCREL 1
11280 _ACEOF
11281
11282
11283       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11284 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11285 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11286   echo $ECHO_N "(cached) $ECHO_C" >&6
11287 else
11288   gcc_cv_as_sparc_ua_pcrel_hidden=no
11289   if test x$gcc_cv_as != x; then
11290     echo '.data
11291 .align 4
11292 .byte 0x31
11293 .uaword %r_disp32(foo)
11294 .byte 0x32, 0x33, 0x34
11295 .global foo
11296 .hidden foo
11297 foo:
11298 .skip 4' > conftest.s
11299     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; }
11305     then
11306         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11307          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11308          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11309             | grep ' 31000000 07323334' > /dev/null 2>&1; then
11310             if $gcc_cv_objdump -R conftest 2> /dev/null \
11311                | grep 'DISP32' > /dev/null 2>&1; then
11312                 :
11313             else
11314                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11315             fi
11316          fi
11317          rm -f conftest
11318     else
11319       echo "configure: failed program was" >&5
11320       cat conftest.s >&5
11321     fi
11322     rm -f conftest.o conftest.s
11323   fi
11324 fi
11325 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11326 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11327 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11328
11329 cat >>confdefs.h <<\_ACEOF
11330 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11331 _ACEOF
11332
11333 fi
11334
11335 fi # unaligned pcrel relocs
11336
11337     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11338 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11339 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11340   echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342   gcc_cv_as_sparc_offsetable_lo10=no
11343   if test x$gcc_cv_as != x; then
11344     echo '.text
11345         or %g1, %lo(ab) + 12, %g1
11346         or %g1, %lo(ab + 12), %g1' > conftest.s
11347     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349   (eval $ac_try) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; }
11353     then
11354         if test x$gcc_cv_objdump != x \
11355        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11356           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11357          gcc_cv_as_sparc_offsetable_lo10=yes
11358        fi
11359     else
11360       echo "configure: failed program was" >&5
11361       cat conftest.s >&5
11362     fi
11363     rm -f conftest.o conftest.s
11364   fi
11365 fi
11366 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11367 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11368 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11369
11370 cat >>confdefs.h <<\_ACEOF
11371 #define HAVE_AS_OFFSETABLE_LO10 1
11372 _ACEOF
11373
11374 fi
11375     ;;
11376
11377   i[34567]86-*-* | x86_64-*-*)
11378     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11379 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11380 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   gcc_cv_as_ix86_filds_fists=no
11384     if test $in_tree_gas = yes; then
11385     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11386   then gcc_cv_as_ix86_filds_fists=yes
11387 fi
11388   elif test x$gcc_cv_as != x; then
11389     echo 'filds mem; fists mem' > conftest.s
11390     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392   (eval $ac_try) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; }
11396     then
11397         gcc_cv_as_ix86_filds_fists=yes
11398     else
11399       echo "configure: failed program was" >&5
11400       cat conftest.s >&5
11401     fi
11402     rm -f conftest.o conftest.s
11403   fi
11404 fi
11405 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11406 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11407 if test $gcc_cv_as_ix86_filds_fists = yes; then
11408
11409 cat >>confdefs.h <<\_ACEOF
11410 #define HAVE_GAS_FILDS_FISTS 1
11411 _ACEOF
11412
11413 fi
11414
11415     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11416 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11417 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11418   echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420   gcc_cv_as_ix86_cmov_sun_syntax=no
11421   if test x$gcc_cv_as != x; then
11422     echo 'cmovl.l %edx, %eax' > conftest.s
11423     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425   (eval $ac_try) 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); }; }
11429     then
11430         gcc_cv_as_ix86_cmov_sun_syntax=yes
11431     else
11432       echo "configure: failed program was" >&5
11433       cat conftest.s >&5
11434     fi
11435     rm -f conftest.o conftest.s
11436   fi
11437 fi
11438 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11439 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11440 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11441
11442 cat >>confdefs.h <<\_ACEOF
11443 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11444 _ACEOF
11445
11446 fi
11447
11448     # This one is used unconditionally by i386.[ch]; it is to be defined
11449     # to 1 if the feature is present, 0 otherwise.
11450     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11451 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11452 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11453   echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455   gcc_cv_as_ix86_gotoff_in_data=no
11456     if test $in_tree_gas = yes; then
11457     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11458   then gcc_cv_as_ix86_gotoff_in_data=yes
11459 fi
11460   elif test x$gcc_cv_as != x; then
11461     echo '      .text
11462 .L0:
11463         nop
11464         .data
11465         .long .L0@GOTOFF' > conftest.s
11466     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468   (eval $ac_try) 2>&5
11469   ac_status=$?
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); }; }
11472     then
11473         gcc_cv_as_ix86_gotoff_in_data=yes
11474     else
11475       echo "configure: failed program was" >&5
11476       cat conftest.s >&5
11477     fi
11478     rm -f conftest.o conftest.s
11479   fi
11480 fi
11481 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11482 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11483
11484
11485 cat >>confdefs.h <<_ACEOF
11486 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11487 _ACEOF
11488
11489     ;;
11490
11491   ia64*-*-*)
11492     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11493 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11494 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11498     if test $in_tree_gas = yes; then
11499     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11500   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11501 fi
11502   elif test x$gcc_cv_as != x; then
11503     echo '      .text
11504         addl r15 = @ltoffx(x#), gp
11505         ;;
11506         ld8.mov r16 = [r15], x#' > conftest.s
11507     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509   (eval $ac_try) 2>&5
11510   ac_status=$?
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); }; }
11513     then
11514         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11515     else
11516       echo "configure: failed program was" >&5
11517       cat conftest.s >&5
11518     fi
11519     rm -f conftest.o conftest.s
11520   fi
11521 fi
11522 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11523 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11524 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11525
11526 cat >>confdefs.h <<\_ACEOF
11527 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11528 _ACEOF
11529
11530 fi
11531
11532     ;;
11533
11534   powerpc*-*-*)
11535     case $target in
11536       *-*-aix*) conftest_s='    .csect .text[PR]
11537         mfcr 3,128';;
11538       *-*-darwin*) conftest_s=' .text
11539         mfcr r3,128';;
11540       *)       conftest_s='     .text
11541         mfcr 3,128';;
11542     esac
11543
11544     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11545 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11546 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11547   echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549   gcc_cv_as_powerpc_mfcrf=no
11550     if test $in_tree_gas = yes; then
11551     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11552   then gcc_cv_as_powerpc_mfcrf=yes
11553 fi
11554   elif test x$gcc_cv_as != x; then
11555     echo "$conftest_s" > conftest.s
11556     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558   (eval $ac_try) 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); }; }
11562     then
11563         gcc_cv_as_powerpc_mfcrf=yes
11564     else
11565       echo "configure: failed program was" >&5
11566       cat conftest.s >&5
11567     fi
11568     rm -f conftest.o conftest.s
11569   fi
11570 fi
11571 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11572 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11573 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11574
11575 cat >>confdefs.h <<\_ACEOF
11576 #define HAVE_AS_MFCRF 1
11577 _ACEOF
11578
11579 fi
11580     ;;
11581
11582   mips*-*-*)
11583     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11584 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11585 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11586   echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588   gcc_cv_as_mips_explicit_relocs=no
11589     if test $in_tree_gas = yes; then
11590     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11591   then gcc_cv_as_mips_explicit_relocs=yes
11592 fi
11593   elif test x$gcc_cv_as != x; then
11594     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11595     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597   (eval $ac_try) 2>&5
11598   ac_status=$?
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); }; }
11601     then
11602         gcc_cv_as_mips_explicit_relocs=yes
11603     else
11604       echo "configure: failed program was" >&5
11605       cat conftest.s >&5
11606     fi
11607     rm -f conftest.o conftest.s
11608   fi
11609 fi
11610 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11611 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11612 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11613   if test x$target_cpu_default = x
11614        then target_cpu_default=MASK_EXPLICIT_RELOCS
11615        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11616        fi
11617 fi
11618
11619     ;;
11620 esac
11621 # ??? Not all targets support dwarf2 debug_line, even within a version
11622 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11623 # info to the output file.  So, as supported targets are added to gas 2.11,
11624 # add some instruction here to (also) show we expect this might work.
11625 # ??? Once 2.11 is released, probably need to add first known working
11626 # version to the per-target configury.
11627 case "$target" in
11628   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11629   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11630   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11631     insn="nop"
11632     ;;
11633   ia64*-*-* | s390*-*-*)
11634     insn="nop 0"
11635     ;;
11636   mmix-*-*)
11637     insn="swym 0"
11638     ;;
11639 esac
11640 if test x"$insn" != x; then
11641  conftest_s="\
11642         .file 1 \"conftest.s\"
11643         .loc 1 3 0
11644         $insn"
11645  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11646 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11647 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   gcc_cv_as_dwarf2_debug_line=no
11651     if test $in_tree_gas = yes; then
11652     if test $in_tree_gas_is_elf = yes \
11653   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11654   then gcc_cv_as_dwarf2_debug_line=yes
11655 fi
11656   elif test x$gcc_cv_as != x; then
11657     echo "$conftest_s" > conftest.s
11658     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660   (eval $ac_try) 2>&5
11661   ac_status=$?
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); }; }
11664     then
11665         # ??? This fails with non-gnu grep.  Maybe use objdump?
11666    if grep debug_line conftest.o > /dev/null 2>&1; then
11667      gcc_cv_as_dwarf2_debug_line=yes
11668    fi
11669     else
11670       echo "configure: failed program was" >&5
11671       cat conftest.s >&5
11672     fi
11673     rm -f conftest.o conftest.s
11674   fi
11675 fi
11676 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11677 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11678
11679
11680 # The .debug_line file table must be in the exact order that
11681 # we specified the files, since these indices are also used
11682 # by DW_AT_decl_file.  Approximate this test by testing if
11683 # the assembler bitches if the same index is assigned twice.
11684  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11685 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11686 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11687   echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11689   gcc_cv_as_dwarf2_file_buggy=no
11690   if test x$gcc_cv_as != x; then
11691     echo '      .file 1 "foo.s"
11692         .file 1 "bar.s"' > conftest.s
11693     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695   (eval $ac_try) 2>&5
11696   ac_status=$?
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); }; }
11699     then
11700         gcc_cv_as_dwarf2_file_buggy=yes
11701     else
11702       echo "configure: failed program was" >&5
11703       cat conftest.s >&5
11704     fi
11705     rm -f conftest.o conftest.s
11706   fi
11707 fi
11708 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11709 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11710
11711
11712  if test $gcc_cv_as_dwarf2_debug_line = yes \
11713  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11714
11715 cat >>confdefs.h <<\_ACEOF
11716 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11717 _ACEOF
11718
11719  fi
11720
11721  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11722 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11723 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11724   echo $ECHO_N "(cached) $ECHO_C" >&6
11725 else
11726   gcc_cv_as_gdwarf2_flag=no
11727     if test $in_tree_gas = yes; then
11728     if test $in_tree_gas_is_elf = yes \
11729   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11730   then gcc_cv_as_gdwarf2_flag=yes
11731 fi
11732   elif test x$gcc_cv_as != x; then
11733     echo "$insn" > conftest.s
11734     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736   (eval $ac_try) 2>&5
11737   ac_status=$?
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); }; }
11740     then
11741         gcc_cv_as_gdwarf2_flag=yes
11742     else
11743       echo "configure: failed program was" >&5
11744       cat conftest.s >&5
11745     fi
11746     rm -f conftest.o conftest.s
11747   fi
11748 fi
11749 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11750 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11751 if test $gcc_cv_as_gdwarf2_flag = yes; then
11752
11753 cat >>confdefs.h <<\_ACEOF
11754 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11755 _ACEOF
11756
11757 fi
11758
11759  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11760 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11761 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764   gcc_cv_as_gstabs_flag=no
11765     if test $in_tree_gas = yes; then
11766     if test $in_tree_gas_is_elf = yes \
11767   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11768   then gcc_cv_as_gstabs_flag=yes
11769 fi
11770   elif test x$gcc_cv_as != x; then
11771     echo "$insn" > conftest.s
11772     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; }
11778     then
11779         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11780    # and warns about it, but still exits successfully.  So check for
11781    # this.
11782    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784   (eval $ac_try) 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); }; }
11788    then :
11789    else gcc_cv_as_gstabs_flag=yes
11790    fi
11791     else
11792       echo "configure: failed program was" >&5
11793       cat conftest.s >&5
11794     fi
11795     rm -f conftest.o conftest.s
11796   fi
11797 fi
11798 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11799 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11800 if test $gcc_cv_as_gstabs_flag = yes; then
11801
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11804 _ACEOF
11805
11806 fi
11807 fi
11808
11809 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11810 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11811 gcc_cv_ld_ro_rw_mix=unknown
11812 if test $in_tree_ld = yes ; then
11813   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 \
11814      && test $in_tree_ld_is_elf = yes; then
11815     gcc_cv_ld_ro_rw_mix=read-write
11816   fi
11817 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11818   echo '.section myfoosect, "a"' > conftest1.s
11819   echo '.section myfoosect, "aw"' > conftest2.s
11820   echo '.byte 1' >> conftest2.s
11821   echo '.section myfoosect, "a"' > conftest3.s
11822   echo '.byte 0' >> conftest3.s
11823   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11824      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11825      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11826      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11827         conftest2.o conftest3.o > /dev/null 2>&1; then
11828     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11829                          | sed -e '/myfoosect/!d' -e N`
11830     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11831       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11832         gcc_cv_ld_ro_rw_mix=read-only
11833       else
11834         gcc_cv_ld_ro_rw_mix=read-write
11835       fi
11836     fi
11837   fi
11838   rm -f conftest.* conftest[123].*
11839 fi
11840 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11841
11842 cat >>confdefs.h <<\_ACEOF
11843 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11844 _ACEOF
11845
11846 fi
11847 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11848 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11849
11850 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11851 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11852 gcc_cv_ld_eh_frame_hdr=no
11853 if test $in_tree_ld = yes ; then
11854   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 \
11855      && test $in_tree_ld_is_elf = yes; then
11856     gcc_cv_ld_eh_frame_hdr=yes
11857   fi
11858 elif test x$gcc_cv_ld != x; then
11859         # Check if linker supports --eh-frame-hdr option
11860         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11861                 gcc_cv_ld_eh_frame_hdr=yes
11862         fi
11863 fi
11864 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11865
11866 cat >>confdefs.h <<\_ACEOF
11867 #define HAVE_LD_EH_FRAME_HDR 1
11868 _ACEOF
11869
11870 fi
11871 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11872 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11873
11874 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11875 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11876 gcc_cv_ld_pie=no
11877 if test $in_tree_ld = yes ; then
11878   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 \
11879      && test $in_tree_ld_is_elf = yes; then
11880     gcc_cv_ld_pie=yes
11881   fi
11882 elif test x$gcc_cv_ld != x; then
11883         # Check if linker supports -pie option
11884         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11885                 gcc_cv_ld_pie=yes
11886         fi
11887 fi
11888 if test x"$gcc_cv_ld_pie" = xyes; then
11889
11890 cat >>confdefs.h <<\_ACEOF
11891 #define HAVE_LD_PIE 1
11892 _ACEOF
11893
11894 fi
11895 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11896 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11897
11898 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
11899 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
11900 gcc_cv_ld_static_dynamic=no
11901 if test $in_tree_ld = yes ; then
11902   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
11903     gcc_cv_ld_static_dynamic=yes
11904   fi
11905 elif test x$gcc_cv_ld != x; then
11906         # Check if linker supports -Bstatic/-Bdynamic option
11907         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
11908           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
11909                 gcc_cv_ld_static_dynamic=yes
11910         fi
11911 fi
11912 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
11913
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_LD_STATIC_DYNAMIC 1
11916 _ACEOF
11917
11918 fi
11919 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
11920 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
11921
11922 case "$target" in
11923   *-*-linux*)
11924     echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11925 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11926 if test "${gcc_cv_ld_as_needed+set}" = set; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   gcc_cv_ld_as_needed=no
11930     if test $in_tree_ld = yes ; then
11931       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
11932          && test $in_tree_ld_is_elf = yes; then
11933         gcc_cv_ld_as_needed=yes
11934       fi
11935     elif test x$gcc_cv_ld != x; then
11936       # Check if linker supports --as-needed and --no-as-needed options
11937       if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11938         gcc_cv_ld_as_needed=yes
11939       fi
11940     fi
11941
11942 fi
11943 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11944 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11945     if test x"$gcc_cv_ld_as_needed" = xyes; then
11946
11947 cat >>confdefs.h <<\_ACEOF
11948 #define HAVE_LD_AS_NEEDED 1
11949 _ACEOF
11950
11951     fi
11952     ;;
11953 esac
11954
11955 if test x$with_sysroot = x && test x$host = x$target \
11956    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11957
11958 cat >>confdefs.h <<_ACEOF
11959 #define PREFIX_INCLUDE_DIR "$prefix/include"
11960 _ACEOF
11961
11962 fi
11963
11964 # Figure out what language subdirectories are present.
11965 # Look if the user specified --enable-languages="..."; if not, use
11966 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11967 # go away some day.
11968 # NB:  embedded tabs in this IF block -- do not untabify
11969 if test x"${enable_languages+set}" != xset; then
11970         if test x"${LANGUAGES+set}" = xset; then
11971                 enable_languages="${LANGUAGES}"
11972                 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11973 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11974
11975         else
11976                 enable_languages=all
11977         fi
11978 else
11979         if test x"${enable_languages}" = x \
11980         || test x"${enable_languages}" = xyes;
11981         then
11982                 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11983 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11984    { (exit 1); exit 1; }; }
11985         fi
11986 fi
11987 enable_languages=`echo "${enable_languages}" | sed -e 's/[      ,][     ,]*/,/g' -e 's/,$//'`
11988
11989 # First scan to see if an enabled language requires some other language.
11990 # We assume that a given config-lang.in will list all the language
11991 # front ends it requires, even if some are required indirectly.
11992 for lang in ${srcdir}/*/config-lang.in
11993 do
11994    case $lang in
11995     # The odd quoting in the next line works around
11996     # an apparent bug in bash 1.12 on linux.
11997     ${srcdir}/[*]/config-lang.in)
11998        ;;
11999     *)
12000        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^      ]*\).*$,\1,p' $lang`
12001        this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^    ]*\).*$,\1,p' $lang`
12002        for other in $this_lang_requires
12003        do
12004           case ,${enable_languages}, in
12005            *,$other,*)
12006               ;;
12007            *,all,*)
12008               ;;
12009            *,$lang_alias,*)
12010               enable_languages="$enable_languages,$other"
12011               ;;
12012           esac
12013        done
12014        ;;
12015    esac
12016 done
12017
12018 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's:  *: :g' -e 's:  *: :g' -e 's:^ ::' -e 's: $::'`
12019 found_languages=
12020 subdirs=
12021 for lang in ${srcdir}/*/config-lang.in
12022 do
12023         case $lang in
12024         # The odd quoting in the next line works around
12025         # an apparent bug in bash 1.12 on linux.
12026         ${srcdir}/[*]/config-lang.in) ;;
12027         *)
12028           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
12029           this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^         ]*\).*$,\1,p' $lang`
12030           build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^     ]*\).*$,\1,p' $lang`
12031           if test "x$lang_alias" = x
12032           then
12033                 echo "$lang doesn't set \$language." 1>&2
12034                 exit 1
12035           fi
12036           case ${build_by_default},${enable_languages}, in
12037           *,$lang_alias,*) add_this_lang=yes ;;
12038           no,*) add_this_lang=no ;;
12039           *,all,*) add_this_lang=yes ;;
12040           *) add_this_lang=no ;;
12041           esac
12042           found_languages="${found_languages} ${lang_alias}"
12043           if test x"${add_this_lang}" = xyes; then
12044                 case $lang in
12045                     ${srcdir}/ada/config-lang.in)
12046                         if test x$have_gnat = xyes ; then
12047                                 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12048                         fi
12049                         ;;
12050                     *)
12051                         subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12052                         ;;
12053                 esac
12054           fi
12055           ;;
12056         esac
12057 done
12058
12059 missing_languages=
12060 for expected_language in ${expected_languages} ..
12061 do
12062     if test "${expected_language}" != ..; then
12063         missing_language="${expected_language}"
12064         if test "${expected_language}" = "c" \
12065            || test "${expected_language}" = "all"; then
12066                 missing_language=
12067         fi
12068         for found_language in ${found_languages} ..
12069         do
12070             if test "${found_language}" != ..; then
12071                 if test "${expected_language}" = "${found_language}"; then
12072                     missing_language=
12073                 fi
12074             fi
12075         done
12076         if test "x${missing_language}" != x; then
12077            missing_languages="${missing_languages} ${missing_language}"
12078         fi
12079     fi
12080 done
12081
12082 if test "x$missing_languages" != x; then
12083   { { echo "$as_me:$LINENO: error:
12084 The following requested languages were not found:${missing_languages}
12085 The following languages were available: c${found_languages}" >&5
12086 echo "$as_me: error:
12087 The following requested languages were not found:${missing_languages}
12088 The following languages were available: c${found_languages}" >&2;}
12089    { (exit 1); exit 1; }; }
12090 fi
12091
12092 # Make gthr-default.h if we have a thread file.
12093 gthread_flags=
12094 if test $thread_file != single; then
12095     rm -f gthr-default.h
12096     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12097     gthread_flags=-DHAVE_GTHR_DEFAULT
12098 fi
12099
12100
12101 # Find out what GC implementation we want, or may, use.
12102
12103 # Check whether --with-gc or --without-gc was given.
12104 if test "${with_gc+set}" = set; then
12105   withval="$with_gc"
12106   case "$withval" in
12107   simple | page | zone)
12108     GGC=ggc-$withval
12109     ;;
12110   *)
12111     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12112 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12113    { (exit 1); exit 1; }; }
12114     ;;
12115 esac
12116 else
12117   GGC=ggc-page
12118 fi;
12119
12120 echo "Using $GGC for garbage collection."
12121
12122 # Use the system's zlib library.
12123 zlibdir=-L../zlib
12124 zlibinc="-I\$(srcdir)/../zlib"
12125
12126 # Check whether --with-system-zlib or --without-system-zlib was given.
12127 if test "${with_system_zlib+set}" = set; then
12128   withval="$with_system_zlib"
12129   zlibdir=
12130 zlibinc=
12131
12132 fi;
12133
12134
12135
12136
12137 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12138 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12139     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12140 if test "${enable_maintainer_mode+set}" = set; then
12141   enableval="$enable_maintainer_mode"
12142   maintainer_mode=$enableval
12143 else
12144   maintainer_mode=no
12145 fi;
12146
12147 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12148 echo "${ECHO_T}$maintainer_mode" >&6
12149
12150 if test "$maintainer_mode" = "yes"; then
12151   MAINT=''
12152 else
12153   MAINT='#'
12154 fi
12155
12156 # Make empty files to contain the specs and options for each language.
12157 # Then add #include lines to for a compiler that has specs and/or options.
12158
12159 lang_opt_files=
12160 lang_specs_files=
12161 lang_tree_files=
12162 for subdir in . $subdirs
12163 do
12164         if test -f $srcdir/$subdir/lang.opt; then
12165             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12166         fi
12167         if test -f $srcdir/$subdir/lang-specs.h; then
12168             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12169         fi
12170         if test -f $srcdir/$subdir/$subdir-tree.def; then
12171             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12172         fi
12173 done
12174
12175 # These (without "all_") are set in each config-lang.in.
12176 # `language' must be a single word so is spelled singularly.
12177 all_languages=
12178 all_boot_languages=
12179 all_compilers=
12180 all_stagestuff=
12181 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
12182 # List of language makefile fragments.
12183 all_lang_makefrags=
12184 # List of language subdirectory makefiles.  Deprecated.
12185 all_lang_makefiles=
12186 # Files for gengtype
12187 all_gtfiles="$target_gtfiles"
12188 # Files for gengtype with language
12189 all_gtfiles_files_langs=
12190 all_gtfiles_files_files=
12191
12192 # Add the language fragments.
12193 # Languages are added via two mechanisms.  Some information must be
12194 # recorded in makefile variables, these are defined in config-lang.in.
12195 # We accumulate them and plug them into the main Makefile.
12196 # The other mechanism is a set of hooks for each of the main targets
12197 # like `clean', `install', etc.
12198
12199 language_hooks="Make-hooks"
12200
12201 for s in $subdirs
12202 do
12203                 language=
12204                 boot_language=
12205                 compilers=
12206                 stagestuff=
12207                 outputs=
12208                 gtfiles=
12209                 . ${srcdir}/$s/config-lang.in
12210                 if test "x$language" = x
12211                 then
12212                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12213                         exit 1
12214                 fi
12215                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12216                 if test -f ${srcdir}/$s/Makefile.in
12217                 then all_lang_makefiles="$s/Makefile"
12218                 fi
12219                 all_languages="$all_languages $language"
12220                 if test "x$boot_language" = xyes
12221                 then
12222                         all_boot_languages="$all_boot_languages $language"
12223                 fi
12224                 all_compilers="$all_compilers $compilers"
12225                 all_stagestuff="$all_stagestuff $stagestuff"
12226                 all_outputs="$all_outputs $outputs"
12227                 all_gtfiles="$all_gtfiles $gtfiles"
12228                 for f in $gtfiles
12229                 do
12230                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12231                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12232                 done
12233 done
12234
12235 # Pick up gtfiles for c
12236 gtfiles=
12237 s="c"
12238 . ${srcdir}/c-config-lang.in
12239 all_gtfiles="$all_gtfiles $gtfiles"
12240 for f in $gtfiles
12241 do
12242         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12243         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12244 done
12245
12246 check_languages=
12247 for language in $all_languages
12248 do
12249                 check_languages="$check_languages check-$language"
12250 done
12251
12252 # We link each language in with a set of hooks, reached indirectly via
12253 # lang.${target}.
12254
12255 rm -f Make-hooks
12256 touch Make-hooks
12257 target_list="all.build all.cross start.encap rest.encap tags \
12258         install-normal install-common install-man \
12259         uninstall info man srcextra srcman srcinfo \
12260         mostlyclean clean distclean maintainer-clean \
12261         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12262 for t in $target_list
12263 do
12264         x=
12265         for lang in $all_languages
12266         do
12267                         x="$x $lang.$t"
12268         done
12269         echo "lang.$t: $x" >> Make-hooks
12270 done
12271
12272 # Create .gdbinit.
12273
12274 echo "dir ." > .gdbinit
12275 echo "dir ${srcdir}" >> .gdbinit
12276 if test x$gdb_needs_out_file_path = xyes
12277 then
12278         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12279 fi
12280 if test "x$subdirs" != x; then
12281         for s in $subdirs
12282         do
12283                 echo "dir ${srcdir}/$s" >> .gdbinit
12284         done
12285 fi
12286 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12287
12288 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12289 # absolute path for gcc_tooldir based on inserting the number of up-directory
12290 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12291 # $(libsubdir)/@(unlibsubdir) based path.
12292 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12293 # make and thus we'd get different behavior depending on where we built the
12294 # sources.
12295 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12296     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12297 else
12298 # An explanation of the sed strings:
12299 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
12300 #  -e 's|/$||'            match a trailing forward slash and eliminates it
12301 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
12302 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
12303 #
12304 # (*) Note this pattern overwrites the first character of the string
12305 # with a forward slash if one is not already present.  This is not a
12306 # problem because the exact names of the sub-directories concerned is
12307 # unimportant, just the number of them matters.
12308 #
12309 # The practical upshot of these patterns is like this:
12310 #
12311 #  prefix     exec_prefix        result
12312 #  ------     -----------        ------
12313 #   /foo        /foo/bar          ../
12314 #   /foo/       /foo/bar          ../
12315 #   /foo        /foo/bar/         ../
12316 #   /foo/       /foo/bar/         ../
12317 #   /foo        /foo/bar/ugg      ../../
12318 #
12319     dollar='$$'
12320     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12321 fi
12322
12323
12324
12325 # Find a directory in which to install a shared libgcc.
12326
12327 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12328 if test "${enable_version_specific_runtime_libs+set}" = set; then
12329   enableval="$enable_version_specific_runtime_libs"
12330
12331 fi;
12332
12333
12334 # Check whether --with-slibdir or --without-slibdir was given.
12335 if test "${with_slibdir+set}" = set; then
12336   withval="$with_slibdir"
12337   slibdir="$with_slibdir"
12338 else
12339   if test "${enable_version_specific_runtime_libs+set}" = set; then
12340   slibdir='$(libsubdir)'
12341 elif test "$host" != "$target"; then
12342   slibdir='$(build_tooldir)/lib'
12343 else
12344   slibdir='$(libdir)'
12345 fi
12346 fi;
12347
12348
12349 objdir=`${PWDCMD-pwd}`
12350
12351
12352 # Substitute configuration variables
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
12424   # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
12425   #
12426   #     eval "set_gcc_lib_path=XXX=path; export XXX;"
12427   #
12428   eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
12429   # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
12430   set_gcc_lib_path="export $set_gcc_lib_path"
12431 else
12432   set_gcc_lib_path=
12433 fi
12434
12435
12436
12437 # If it doesn't already exist, create document directory
12438 echo "checking for the document directory." 1>&2
12439 if test -d doc ; then
12440   true
12441 else
12442   mkdir doc
12443 fi
12444
12445 # Echo link setup.
12446 if test x${build} = x${host} ; then
12447   if test x${host} = x${target} ; then
12448     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12449   else
12450     echo "Links are now set up to build a cross-compiler" 1>&2
12451     echo " from ${host} to ${target}." 1>&2
12452   fi
12453 else
12454   if test x${host} = x${target} ; then
12455     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12456     echo " for ${target}." 1>&2
12457   else
12458     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12459     echo " from ${host} to ${target}." 1>&2
12460   fi
12461 fi
12462
12463 # Configure the subdirectories
12464 # AC_CONFIG_SUBDIRS($subdirs)
12465
12466 # Create the Makefile
12467 # and configure language subdirectories
12468           ac_config_files="$ac_config_files $all_outputs"
12469
12470
12471           ac_config_commands="$ac_config_commands default"
12472
12473 cat >confcache <<\_ACEOF
12474 # This file is a shell script that caches the results of configure
12475 # tests run on this system so they can be shared between configure
12476 # scripts and configure runs, see configure's option --config-cache.
12477 # It is not useful on other systems.  If it contains results you don't
12478 # want to keep, you may remove or edit it.
12479 #
12480 # config.status only pays attention to the cache file if you give it
12481 # the --recheck option to rerun configure.
12482 #
12483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12485 # following values.
12486
12487 _ACEOF
12488
12489 # The following way of writing the cache mishandles newlines in values,
12490 # but we know of no workaround that is simple, portable, and efficient.
12491 # So, don't put newlines in cache variables' values.
12492 # Ultrix sh set writes to stderr and can't be redirected directly,
12493 # and sets the high bit in the cache file unless we assign to the vars.
12494 {
12495   (set) 2>&1 |
12496     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12497     *ac_space=\ *)
12498       # `set' does not quote correctly, so add quotes (double-quote
12499       # substitution turns \\\\ into \\, and sed turns \\ into \).
12500       sed -n \
12501         "s/'/'\\\\''/g;
12502           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12503       ;;
12504     *)
12505       # `set' quotes correctly as required by POSIX, so do not add quotes.
12506       sed -n \
12507         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12508       ;;
12509     esac;
12510 } |
12511   sed '
12512      t clear
12513      : clear
12514      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12515      t end
12516      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12517      : end' >>confcache
12518 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12519   if test -w $cache_file; then
12520     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12521     cat confcache >$cache_file
12522   else
12523     echo "not updating unwritable cache $cache_file"
12524   fi
12525 fi
12526 rm -f confcache
12527
12528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12529 # Let make expand exec_prefix.
12530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12531
12532 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12533 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12534 # trailing colons and then remove the whole line if VPATH becomes empty
12535 # (actually we leave an empty line to preserve line numbers).
12536 if test "x$srcdir" = x.; then
12537   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12538 s/:*\$(srcdir):*/:/;
12539 s/:*\${srcdir}:*/:/;
12540 s/:*@srcdir@:*/:/;
12541 s/^\([^=]*=[     ]*\):*/\1/;
12542 s/:*$//;
12543 s/^[^=]*=[       ]*$//;
12544 }'
12545 fi
12546
12547 DEFS=-DHAVE_CONFIG_H
12548
12549 ac_libobjs=
12550 ac_ltlibobjs=
12551 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12552   # 1. Remove the extension, and $U if already installed.
12553   ac_i=`echo "$ac_i" |
12554          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12555   # 2. Add them.
12556   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12557   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12558 done
12559 LIBOBJS=$ac_libobjs
12560
12561 LTLIBOBJS=$ac_ltlibobjs
12562
12563
12564
12565 : ${CONFIG_STATUS=./config.status}
12566 ac_clean_files_save=$ac_clean_files
12567 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12568 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12569 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12570 cat >$CONFIG_STATUS <<_ACEOF
12571 #! $SHELL
12572 # Generated by $as_me.
12573 # Run this file to recreate the current configuration.
12574 # Compiler output produced by configure, useful for debugging
12575 # configure, is in config.log if it exists.
12576
12577 debug=false
12578 ac_cs_recheck=false
12579 ac_cs_silent=false
12580 SHELL=\${CONFIG_SHELL-$SHELL}
12581 _ACEOF
12582
12583 cat >>$CONFIG_STATUS <<\_ACEOF
12584 ## --------------------- ##
12585 ## M4sh Initialization.  ##
12586 ## --------------------- ##
12587
12588 # Be Bourne compatible
12589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12590   emulate sh
12591   NULLCMD=:
12592   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12593   # is contrary to our usage.  Disable this feature.
12594   alias -g '${1+"$@"}'='"$@"'
12595 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12596   set -o posix
12597 fi
12598 DUALCASE=1; export DUALCASE # for MKS sh
12599
12600 # Support unset when possible.
12601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12602   as_unset=unset
12603 else
12604   as_unset=false
12605 fi
12606
12607
12608 # Work around bugs in pre-3.0 UWIN ksh.
12609 $as_unset ENV MAIL MAILPATH
12610 PS1='$ '
12611 PS2='> '
12612 PS4='+ '
12613
12614 # NLS nuisances.
12615 for as_var in \
12616   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12617   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12618   LC_TELEPHONE LC_TIME
12619 do
12620   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12621     eval $as_var=C; export $as_var
12622   else
12623     $as_unset $as_var
12624   fi
12625 done
12626
12627 # Required to use basename.
12628 if expr a : '\(a\)' >/dev/null 2>&1; then
12629   as_expr=expr
12630 else
12631   as_expr=false
12632 fi
12633
12634 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12635   as_basename=basename
12636 else
12637   as_basename=false
12638 fi
12639
12640
12641 # Name of the executable.
12642 as_me=`$as_basename "$0" ||
12643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12644          X"$0" : 'X\(//\)$' \| \
12645          X"$0" : 'X\(/\)$' \| \
12646          .     : '\(.\)' 2>/dev/null ||
12647 echo X/"$0" |
12648     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12649           /^X\/\(\/\/\)$/{ s//\1/; q; }
12650           /^X\/\(\/\).*/{ s//\1/; q; }
12651           s/.*/./; q'`
12652
12653
12654 # PATH needs CR, and LINENO needs CR and PATH.
12655 # Avoid depending upon Character Ranges.
12656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12659 as_cr_digits='0123456789'
12660 as_cr_alnum=$as_cr_Letters$as_cr_digits
12661
12662 # The user is always right.
12663 if test "${PATH_SEPARATOR+set}" != set; then
12664   echo "#! /bin/sh" >conf$$.sh
12665   echo  "exit 0"   >>conf$$.sh
12666   chmod +x conf$$.sh
12667   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12668     PATH_SEPARATOR=';'
12669   else
12670     PATH_SEPARATOR=:
12671   fi
12672   rm -f conf$$.sh
12673 fi
12674
12675
12676   as_lineno_1=$LINENO
12677   as_lineno_2=$LINENO
12678   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12679   test "x$as_lineno_1" != "x$as_lineno_2" &&
12680   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12681   # Find who we are.  Look in the path if we contain no path at all
12682   # relative or not.
12683   case $0 in
12684     *[\\/]* ) as_myself=$0 ;;
12685     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12687 do
12688   IFS=$as_save_IFS
12689   test -z "$as_dir" && as_dir=.
12690   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12691 done
12692
12693        ;;
12694   esac
12695   # We did not find ourselves, most probably we were run as `sh COMMAND'
12696   # in which case we are not to be found in the path.
12697   if test "x$as_myself" = x; then
12698     as_myself=$0
12699   fi
12700   if test ! -f "$as_myself"; then
12701     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12702 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12703    { (exit 1); exit 1; }; }
12704   fi
12705   case $CONFIG_SHELL in
12706   '')
12707     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12709 do
12710   IFS=$as_save_IFS
12711   test -z "$as_dir" && as_dir=.
12712   for as_base in sh bash ksh sh5; do
12713          case $as_dir in
12714          /*)
12715            if ("$as_dir/$as_base" -c '
12716   as_lineno_1=$LINENO
12717   as_lineno_2=$LINENO
12718   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12719   test "x$as_lineno_1" != "x$as_lineno_2" &&
12720   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12721              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12722              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12723              CONFIG_SHELL=$as_dir/$as_base
12724              export CONFIG_SHELL
12725              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12726            fi;;
12727          esac
12728        done
12729 done
12730 ;;
12731   esac
12732
12733   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12734   # uniformly replaced by the line number.  The first 'sed' inserts a
12735   # line-number line before each line; the second 'sed' does the real
12736   # work.  The second script uses 'N' to pair each line-number line
12737   # with the numbered line, and appends trailing '-' during
12738   # substitution so that $LINENO is not a special case at line end.
12739   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12740   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12741   sed '=' <$as_myself |
12742     sed '
12743       N
12744       s,$,-,
12745       : loop
12746       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12747       t loop
12748       s,-$,,
12749       s,^['$as_cr_digits']*\n,,
12750     ' >$as_me.lineno &&
12751   chmod +x $as_me.lineno ||
12752     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12753 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12754    { (exit 1); exit 1; }; }
12755
12756   # Don't try to exec as it changes $[0], causing all sort of problems
12757   # (the dirname of $[0] is not the place where we might find the
12758   # original and so on.  Autoconf is especially sensible to this).
12759   . ./$as_me.lineno
12760   # Exit status is that of the last command.
12761   exit
12762 }
12763
12764
12765 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12766   *c*,-n*) ECHO_N= ECHO_C='
12767 ' ECHO_T='      ' ;;
12768   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12769   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12770 esac
12771
12772 if expr a : '\(a\)' >/dev/null 2>&1; then
12773   as_expr=expr
12774 else
12775   as_expr=false
12776 fi
12777
12778 rm -f conf$$ conf$$.exe conf$$.file
12779 echo >conf$$.file
12780 if ln -s conf$$.file conf$$ 2>/dev/null; then
12781   # We could just check for DJGPP; but this test a) works b) is more generic
12782   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12783   if test -f conf$$.exe; then
12784     # Don't use ln at all; we don't have any links
12785     as_ln_s='cp -p'
12786   else
12787     as_ln_s='ln -s'
12788   fi
12789 elif ln conf$$.file conf$$ 2>/dev/null; then
12790   as_ln_s=ln
12791 else
12792   as_ln_s='cp -p'
12793 fi
12794 rm -f conf$$ conf$$.exe conf$$.file
12795
12796 if mkdir -p . 2>/dev/null; then
12797   as_mkdir_p=:
12798 else
12799   test -d ./-p && rmdir ./-p
12800   as_mkdir_p=false
12801 fi
12802
12803 as_executable_p="test -f"
12804
12805 # Sed expression to map a string onto a valid CPP name.
12806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12807
12808 # Sed expression to map a string onto a valid variable name.
12809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12810
12811
12812 # IFS
12813 # We need space, tab and new line, in precisely that order.
12814 as_nl='
12815 '
12816 IFS="   $as_nl"
12817
12818 # CDPATH.
12819 $as_unset CDPATH
12820
12821 exec 6>&1
12822
12823 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12824 # report actual input values of CONFIG_FILES etc. instead of their
12825 # values after options handling.  Logging --version etc. is OK.
12826 exec 5>>config.log
12827 {
12828   echo
12829   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12830 ## Running $as_me. ##
12831 _ASBOX
12832 } >&5
12833 cat >&5 <<_CSEOF
12834
12835 This file was extended by $as_me, which was
12836 generated by GNU Autoconf 2.59.  Invocation command line was
12837
12838   CONFIG_FILES    = $CONFIG_FILES
12839   CONFIG_HEADERS  = $CONFIG_HEADERS
12840   CONFIG_LINKS    = $CONFIG_LINKS
12841   CONFIG_COMMANDS = $CONFIG_COMMANDS
12842   $ $0 $@
12843
12844 _CSEOF
12845 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12846 echo >&5
12847 _ACEOF
12848
12849 # Files that config.status was made for.
12850 if test -n "$ac_config_files"; then
12851   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12852 fi
12853
12854 if test -n "$ac_config_headers"; then
12855   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12856 fi
12857
12858 if test -n "$ac_config_links"; then
12859   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12860 fi
12861
12862 if test -n "$ac_config_commands"; then
12863   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12864 fi
12865
12866 cat >>$CONFIG_STATUS <<\_ACEOF
12867
12868 ac_cs_usage="\
12869 \`$as_me' instantiates files from templates according to the
12870 current configuration.
12871
12872 Usage: $0 [OPTIONS] [FILE]...
12873
12874   -h, --help       print this help, then exit
12875   -V, --version    print version number, then exit
12876   -q, --quiet      do not print progress messages
12877   -d, --debug      don't remove temporary files
12878       --recheck    update $as_me by reconfiguring in the same conditions
12879   --file=FILE[:TEMPLATE]
12880                    instantiate the configuration file FILE
12881   --header=FILE[:TEMPLATE]
12882                    instantiate the configuration header FILE
12883
12884 Configuration files:
12885 $config_files
12886
12887 Configuration headers:
12888 $config_headers
12889
12890 Configuration commands:
12891 $config_commands
12892
12893 Report bugs to <bug-autoconf@gnu.org>."
12894 _ACEOF
12895
12896 cat >>$CONFIG_STATUS <<_ACEOF
12897 ac_cs_version="\\
12898 config.status
12899 configured by $0, generated by GNU Autoconf 2.59,
12900   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12901
12902 Copyright (C) 2003 Free Software Foundation, Inc.
12903 This config.status script is free software; the Free Software Foundation
12904 gives unlimited permission to copy, distribute and modify it."
12905 srcdir=$srcdir
12906 _ACEOF
12907
12908 cat >>$CONFIG_STATUS <<\_ACEOF
12909 # If no file are specified by the user, then we need to provide default
12910 # value.  By we need to know if files were specified by the user.
12911 ac_need_defaults=:
12912 while test $# != 0
12913 do
12914   case $1 in
12915   --*=*)
12916     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12917     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12918     ac_shift=:
12919     ;;
12920   -*)
12921     ac_option=$1
12922     ac_optarg=$2
12923     ac_shift=shift
12924     ;;
12925   *) # This is not an option, so the user has probably given explicit
12926      # arguments.
12927      ac_option=$1
12928      ac_need_defaults=false;;
12929   esac
12930
12931   case $ac_option in
12932   # Handling of the options.
12933 _ACEOF
12934 cat >>$CONFIG_STATUS <<\_ACEOF
12935   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12936     ac_cs_recheck=: ;;
12937   --version | --vers* | -V )
12938     echo "$ac_cs_version"; exit 0 ;;
12939   --he | --h)
12940     # Conflict between --help and --header
12941     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12942 Try \`$0 --help' for more information." >&5
12943 echo "$as_me: error: ambiguous option: $1
12944 Try \`$0 --help' for more information." >&2;}
12945    { (exit 1); exit 1; }; };;
12946   --help | --hel | -h )
12947     echo "$ac_cs_usage"; exit 0 ;;
12948   --debug | --d* | -d )
12949     debug=: ;;
12950   --file | --fil | --fi | --f )
12951     $ac_shift
12952     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12953     ac_need_defaults=false;;
12954   --header | --heade | --head | --hea )
12955     $ac_shift
12956     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12957     ac_need_defaults=false;;
12958   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12959   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12960     ac_cs_silent=: ;;
12961
12962   # This is an error.
12963   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12964 Try \`$0 --help' for more information." >&5
12965 echo "$as_me: error: unrecognized option: $1
12966 Try \`$0 --help' for more information." >&2;}
12967    { (exit 1); exit 1; }; } ;;
12968
12969   *) ac_config_targets="$ac_config_targets $1" ;;
12970
12971   esac
12972   shift
12973 done
12974
12975 ac_configure_extra_args=
12976
12977 if $ac_cs_silent; then
12978   exec 6>/dev/null
12979   ac_configure_extra_args="$ac_configure_extra_args --silent"
12980 fi
12981
12982 _ACEOF
12983 cat >>$CONFIG_STATUS <<_ACEOF
12984 if \$ac_cs_recheck; then
12985   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12986   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12987 fi
12988
12989 _ACEOF
12990
12991 cat >>$CONFIG_STATUS <<_ACEOF
12992 #
12993 # INIT-COMMANDS section.
12994 #
12995
12996 subdirs='$subdirs'
12997 symbolic_link='$symbolic_link'
12998
12999
13000 _ACEOF
13001
13002
13003
13004 cat >>$CONFIG_STATUS <<\_ACEOF
13005 for ac_config_target in $ac_config_targets
13006 do
13007   case "$ac_config_target" in
13008   # Handling of arguments.
13009   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13010   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13011   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13012   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13013 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13014    { (exit 1); exit 1; }; };;
13015   esac
13016 done
13017
13018 # If the user did not use the arguments to specify the items to instantiate,
13019 # then the envvar interface is used.  Set only those that are not.
13020 # We use the long form for the default assignment because of an extremely
13021 # bizarre bug on SunOS 4.1.3.
13022 if $ac_need_defaults; then
13023   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13024   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13025   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13026 fi
13027
13028 # Have a temporary directory for convenience.  Make it in the build tree
13029 # simply because there is no reason to put it here, and in addition,
13030 # creating and moving files from /tmp can sometimes cause problems.
13031 # Create a temporary directory, and hook for its removal unless debugging.
13032 $debug ||
13033 {
13034   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13035   trap '{ (exit 1); exit 1; }' 1 2 13 15
13036 }
13037
13038 # Create a (secure) tmp directory for tmp files.
13039
13040 {
13041   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13042   test -n "$tmp" && test -d "$tmp"
13043 }  ||
13044 {
13045   tmp=./confstat$$-$RANDOM
13046   (umask 077 && mkdir $tmp)
13047 } ||
13048 {
13049    echo "$me: cannot create a temporary directory in ." >&2
13050    { (exit 1); exit 1; }
13051 }
13052
13053 _ACEOF
13054
13055 cat >>$CONFIG_STATUS <<_ACEOF
13056
13057 #
13058 # CONFIG_FILES section.
13059 #
13060
13061 # No need to generate the scripts if there are no CONFIG_FILES.
13062 # This happens for instance when ./config.status config.h
13063 if test -n "\$CONFIG_FILES"; then
13064   # Protect against being on the right side of a sed subst in config.status.
13065   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13066    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13067 s,@SHELL@,$SHELL,;t t
13068 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13069 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13070 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13071 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13072 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13073 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13074 s,@exec_prefix@,$exec_prefix,;t t
13075 s,@prefix@,$prefix,;t t
13076 s,@program_transform_name@,$program_transform_name,;t t
13077 s,@bindir@,$bindir,;t t
13078 s,@sbindir@,$sbindir,;t t
13079 s,@libexecdir@,$libexecdir,;t t
13080 s,@datadir@,$datadir,;t t
13081 s,@sysconfdir@,$sysconfdir,;t t
13082 s,@sharedstatedir@,$sharedstatedir,;t t
13083 s,@localstatedir@,$localstatedir,;t t
13084 s,@libdir@,$libdir,;t t
13085 s,@includedir@,$includedir,;t t
13086 s,@oldincludedir@,$oldincludedir,;t t
13087 s,@infodir@,$infodir,;t t
13088 s,@mandir@,$mandir,;t t
13089 s,@build_alias@,$build_alias,;t t
13090 s,@host_alias@,$host_alias,;t t
13091 s,@target_alias@,$target_alias,;t t
13092 s,@DEFS@,$DEFS,;t t
13093 s,@ECHO_C@,$ECHO_C,;t t
13094 s,@ECHO_N@,$ECHO_N,;t t
13095 s,@ECHO_T@,$ECHO_T,;t t
13096 s,@LIBS@,$LIBS,;t t
13097 s,@build@,$build,;t t
13098 s,@build_cpu@,$build_cpu,;t t
13099 s,@build_vendor@,$build_vendor,;t t
13100 s,@build_os@,$build_os,;t t
13101 s,@host@,$host,;t t
13102 s,@host_cpu@,$host_cpu,;t t
13103 s,@host_vendor@,$host_vendor,;t t
13104 s,@host_os@,$host_os,;t t
13105 s,@target@,$target,;t t
13106 s,@target_cpu@,$target_cpu,;t t
13107 s,@target_vendor@,$target_vendor,;t t
13108 s,@target_os@,$target_os,;t t
13109 s,@build_subdir@,$build_subdir,;t t
13110 s,@host_subdir@,$host_subdir,;t t
13111 s,@target_subdir@,$target_subdir,;t t
13112 s,@GENINSRC@,$GENINSRC,;t t
13113 s,@CC@,$CC,;t t
13114 s,@CFLAGS@,$CFLAGS,;t t
13115 s,@LDFLAGS@,$LDFLAGS,;t t
13116 s,@CPPFLAGS@,$CPPFLAGS,;t t
13117 s,@ac_ct_CC@,$ac_ct_CC,;t t
13118 s,@EXEEXT@,$EXEEXT,;t t
13119 s,@OBJEXT@,$OBJEXT,;t t
13120 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13121 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13122 s,@CPP@,$CPP,;t t
13123 s,@GNATBIND@,$GNATBIND,;t t
13124 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13125 s,@strict1_warn@,$strict1_warn,;t t
13126 s,@warn_cflags@,$warn_cflags,;t t
13127 s,@WERROR@,$WERROR,;t t
13128 s,@nocommon_flag@,$nocommon_flag,;t t
13129 s,@EGREP@,$EGREP,;t t
13130 s,@valgrind_path@,$valgrind_path,;t t
13131 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13132 s,@valgrind_command@,$valgrind_command,;t t
13133 s,@coverage_flags@,$coverage_flags,;t t
13134 s,@enable_multilib@,$enable_multilib,;t t
13135 s,@enable_shared@,$enable_shared,;t t
13136 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13137 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13138 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13139 s,@onestep@,$onestep,;t t
13140 s,@SET_MAKE@,$SET_MAKE,;t t
13141 s,@AWK@,$AWK,;t t
13142 s,@LN@,$LN,;t t
13143 s,@LN_S@,$LN_S,;t t
13144 s,@RANLIB@,$RANLIB,;t t
13145 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13146 s,@INSTALL@,$INSTALL,;t t
13147 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13148 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13149 s,@make_compare_target@,$make_compare_target,;t t
13150 s,@have_mktemp_command@,$have_mktemp_command,;t t
13151 s,@MAKEINFO@,$MAKEINFO,;t t
13152 s,@BUILD_INFO@,$BUILD_INFO,;t t
13153 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13154 s,@FLEX@,$FLEX,;t t
13155 s,@BISON@,$BISON,;t t
13156 s,@stage1_cflags@,$stage1_cflags,;t t
13157 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13158 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13159 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13160 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13161 s,@LIBICONV@,$LIBICONV,;t t
13162 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13163 s,@manext@,$manext,;t t
13164 s,@objext@,$objext,;t t
13165 s,@extra_modes_file@,$extra_modes_file,;t t
13166 s,@FORBUILD@,$FORBUILD,;t t
13167 s,@PACKAGE@,$PACKAGE,;t t
13168 s,@VERSION@,$VERSION,;t t
13169 s,@USE_NLS@,$USE_NLS,;t t
13170 s,@LIBINTL@,$LIBINTL,;t t
13171 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13172 s,@INCINTL@,$INCINTL,;t t
13173 s,@XGETTEXT@,$XGETTEXT,;t t
13174 s,@GMSGFMT@,$GMSGFMT,;t t
13175 s,@POSUB@,$POSUB,;t t
13176 s,@CATALOGS@,$CATALOGS,;t t
13177 s,@CROSS@,$CROSS,;t t
13178 s,@ALL@,$ALL,;t t
13179 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13180 s,@inhibit_libc@,$inhibit_libc,;t t
13181 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13182 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13183 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13184 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13185 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13186 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13187 s,@libgcc_visibility@,$libgcc_visibility,;t t
13188 s,@gthread_flags@,$gthread_flags,;t t
13189 s,@GGC@,$GGC,;t t
13190 s,@zlibdir@,$zlibdir,;t t
13191 s,@zlibinc@,$zlibinc,;t t
13192 s,@MAINT@,$MAINT,;t t
13193 s,@gcc_tooldir@,$gcc_tooldir,;t t
13194 s,@dollar@,$dollar,;t t
13195 s,@slibdir@,$slibdir,;t t
13196 s,@objdir@,$objdir,;t t
13197 s,@subdirs@,$subdirs,;t t
13198 s,@srcdir@,$srcdir,;t t
13199 s,@all_boot_languages@,$all_boot_languages,;t t
13200 s,@all_compilers@,$all_compilers,;t t
13201 s,@all_gtfiles@,$all_gtfiles,;t t
13202 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13203 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13204 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13205 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13206 s,@all_languages@,$all_languages,;t t
13207 s,@all_stagestuff@,$all_stagestuff,;t t
13208 s,@build_exeext@,$build_exeext,;t t
13209 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13210 s,@build_xm_file_list@,$build_xm_file_list,;t t
13211 s,@build_xm_include_list@,$build_xm_include_list,;t t
13212 s,@build_xm_defines@,$build_xm_defines,;t t
13213 s,@check_languages@,$check_languages,;t t
13214 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13215 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13216 s,@cpp_install_dir@,$cpp_install_dir,;t t
13217 s,@xmake_file@,$xmake_file,;t t
13218 s,@tmake_file@,$tmake_file,;t t
13219 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13220 s,@extra_headers_list@,$extra_headers_list,;t t
13221 s,@extra_objs@,$extra_objs,;t t
13222 s,@extra_parts@,$extra_parts,;t t
13223 s,@extra_passes@,$extra_passes,;t t
13224 s,@extra_programs@,$extra_programs,;t t
13225 s,@float_h_file@,$float_h_file,;t t
13226 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13227 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13228 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13229 s,@gcc_version@,$gcc_version,;t t
13230 s,@gcc_version_full@,$gcc_version_full,;t t
13231 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13232 s,@host_exeext@,$host_exeext,;t t
13233 s,@host_xm_file_list@,$host_xm_file_list,;t t
13234 s,@host_xm_include_list@,$host_xm_include_list,;t t
13235 s,@host_xm_defines@,$host_xm_defines,;t t
13236 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13237 s,@install@,$install,;t t
13238 s,@lang_opt_files@,$lang_opt_files,;t t
13239 s,@lang_specs_files@,$lang_specs_files,;t t
13240 s,@lang_tree_files@,$lang_tree_files,;t t
13241 s,@local_prefix@,$local_prefix,;t t
13242 s,@md_file@,$md_file,;t t
13243 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13244 s,@out_file@,$out_file,;t t
13245 s,@out_object_file@,$out_object_file,;t t
13246 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13247 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13248 s,@symbolic_link@,$symbolic_link,;t t
13249 s,@thread_file@,$thread_file,;t t
13250 s,@tm_file_list@,$tm_file_list,;t t
13251 s,@tm_include_list@,$tm_include_list,;t t
13252 s,@tm_defines@,$tm_defines,;t t
13253 s,@tm_p_file_list@,$tm_p_file_list,;t t
13254 s,@tm_p_include_list@,$tm_p_include_list,;t t
13255 s,@xm_file_list@,$xm_file_list,;t t
13256 s,@xm_include_list@,$xm_include_list,;t t
13257 s,@xm_defines@,$xm_defines,;t t
13258 s,@target_noncanonical@,$target_noncanonical,;t t
13259 s,@c_target_objs@,$c_target_objs,;t t
13260 s,@cxx_target_objs@,$cxx_target_objs,;t t
13261 s,@target_cpu_default@,$target_cpu_default,;t t
13262 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
13263 s,@LIBOBJS@,$LIBOBJS,;t t
13264 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13265 /@language_hooks@/r $language_hooks
13266 s,@language_hooks@,,;t t
13267 CEOF
13268
13269 _ACEOF
13270
13271   cat >>$CONFIG_STATUS <<\_ACEOF
13272   # Split the substitutions into bite-sized pieces for seds with
13273   # small command number limits, like on Digital OSF/1 and HP-UX.
13274   ac_max_sed_lines=48
13275   ac_sed_frag=1 # Number of current file.
13276   ac_beg=1 # First line for current file.
13277   ac_end=$ac_max_sed_lines # Line after last line for current file.
13278   ac_more_lines=:
13279   ac_sed_cmds=
13280   while $ac_more_lines; do
13281     if test $ac_beg -gt 1; then
13282       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13283     else
13284       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13285     fi
13286     if test ! -s $tmp/subs.frag; then
13287       ac_more_lines=false
13288     else
13289       # The purpose of the label and of the branching condition is to
13290       # speed up the sed processing (if there are no `@' at all, there
13291       # is no need to browse any of the substitutions).
13292       # These are the two extra sed commands mentioned above.
13293       (echo ':t
13294   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13295       if test -z "$ac_sed_cmds"; then
13296         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13297       else
13298         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13299       fi
13300       ac_sed_frag=`expr $ac_sed_frag + 1`
13301       ac_beg=$ac_end
13302       ac_end=`expr $ac_end + $ac_max_sed_lines`
13303     fi
13304   done
13305   if test -z "$ac_sed_cmds"; then
13306     ac_sed_cmds=cat
13307   fi
13308 fi # test -n "$CONFIG_FILES"
13309
13310 _ACEOF
13311 cat >>$CONFIG_STATUS <<\_ACEOF
13312 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13313   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13314   case $ac_file in
13315   - | *:- | *:-:* ) # input from stdin
13316         cat >$tmp/stdin
13317         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13318         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13319   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13320         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13321   * )   ac_file_in=$ac_file.in ;;
13322   esac
13323
13324   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13325   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13327          X"$ac_file" : 'X\(//\)[^/]' \| \
13328          X"$ac_file" : 'X\(//\)$' \| \
13329          X"$ac_file" : 'X\(/\)' \| \
13330          .     : '\(.\)' 2>/dev/null ||
13331 echo X"$ac_file" |
13332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13333           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13334           /^X\(\/\/\)$/{ s//\1/; q; }
13335           /^X\(\/\).*/{ s//\1/; q; }
13336           s/.*/./; q'`
13337   { if $as_mkdir_p; then
13338     mkdir -p "$ac_dir"
13339   else
13340     as_dir="$ac_dir"
13341     as_dirs=
13342     while test ! -d "$as_dir"; do
13343       as_dirs="$as_dir $as_dirs"
13344       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13346          X"$as_dir" : 'X\(//\)[^/]' \| \
13347          X"$as_dir" : 'X\(//\)$' \| \
13348          X"$as_dir" : 'X\(/\)' \| \
13349          .     : '\(.\)' 2>/dev/null ||
13350 echo X"$as_dir" |
13351     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13352           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13353           /^X\(\/\/\)$/{ s//\1/; q; }
13354           /^X\(\/\).*/{ s//\1/; q; }
13355           s/.*/./; q'`
13356     done
13357     test ! -n "$as_dirs" || mkdir $as_dirs
13358   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13359 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13360    { (exit 1); exit 1; }; }; }
13361
13362   ac_builddir=.
13363
13364 if test "$ac_dir" != .; then
13365   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13366   # A "../" for each directory in $ac_dir_suffix.
13367   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13368 else
13369   ac_dir_suffix= ac_top_builddir=
13370 fi
13371
13372 case $srcdir in
13373   .)  # No --srcdir option.  We are building in place.
13374     ac_srcdir=.
13375     if test -z "$ac_top_builddir"; then
13376        ac_top_srcdir=.
13377     else
13378        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13379     fi ;;
13380   [\\/]* | ?:[\\/]* )  # Absolute path.
13381     ac_srcdir=$srcdir$ac_dir_suffix;
13382     ac_top_srcdir=$srcdir ;;
13383   *) # Relative path.
13384     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13385     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13386 esac
13387
13388 # Do not use `cd foo && pwd` to compute absolute paths, because
13389 # the directories may not exist.
13390 case `pwd` in
13391 .) ac_abs_builddir="$ac_dir";;
13392 *)
13393   case "$ac_dir" in
13394   .) ac_abs_builddir=`pwd`;;
13395   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13396   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13397   esac;;
13398 esac
13399 case $ac_abs_builddir in
13400 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13401 *)
13402   case ${ac_top_builddir}. in
13403   .) ac_abs_top_builddir=$ac_abs_builddir;;
13404   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13405   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13406   esac;;
13407 esac
13408 case $ac_abs_builddir in
13409 .) ac_abs_srcdir=$ac_srcdir;;
13410 *)
13411   case $ac_srcdir in
13412   .) ac_abs_srcdir=$ac_abs_builddir;;
13413   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13414   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13415   esac;;
13416 esac
13417 case $ac_abs_builddir in
13418 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13419 *)
13420   case $ac_top_srcdir in
13421   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13422   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13423   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13424   esac;;
13425 esac
13426
13427
13428
13429   if test x"$ac_file" != x-; then
13430     { echo "$as_me:$LINENO: creating $ac_file" >&5
13431 echo "$as_me: creating $ac_file" >&6;}
13432     rm -f "$ac_file"
13433   fi
13434   # Let's still pretend it is `configure' which instantiates (i.e., don't
13435   # use $as_me), people would be surprised to read:
13436   #    /* config.h.  Generated by config.status.  */
13437   if test x"$ac_file" = x-; then
13438     configure_input=
13439   else
13440     configure_input="$ac_file.  "
13441   fi
13442   configure_input=$configure_input"Generated from `echo $ac_file_in |
13443                                      sed 's,.*/,,'` by configure."
13444
13445   # First look for the input files in the build tree, otherwise in the
13446   # src tree.
13447   ac_file_inputs=`IFS=:
13448     for f in $ac_file_in; do
13449       case $f in
13450       -) echo $tmp/stdin ;;
13451       [\\/$]*)
13452          # Absolute (can't be DOS-style, as IFS=:)
13453          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13454 echo "$as_me: error: cannot find input file: $f" >&2;}
13455    { (exit 1); exit 1; }; }
13456          echo "$f";;
13457       *) # Relative
13458          if test -f "$f"; then
13459            # Build tree
13460            echo "$f"
13461          elif test -f "$srcdir/$f"; then
13462            # Source tree
13463            echo "$srcdir/$f"
13464          else
13465            # /dev/null tree
13466            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13467 echo "$as_me: error: cannot find input file: $f" >&2;}
13468    { (exit 1); exit 1; }; }
13469          fi;;
13470       esac
13471     done` || { (exit 1); exit 1; }
13472 _ACEOF
13473 cat >>$CONFIG_STATUS <<_ACEOF
13474   sed "$ac_vpsub
13475 $extrasub
13476 _ACEOF
13477 cat >>$CONFIG_STATUS <<\_ACEOF
13478 :t
13479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13480 s,@configure_input@,$configure_input,;t t
13481 s,@srcdir@,$ac_srcdir,;t t
13482 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13483 s,@top_srcdir@,$ac_top_srcdir,;t t
13484 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13485 s,@builddir@,$ac_builddir,;t t
13486 s,@abs_builddir@,$ac_abs_builddir,;t t
13487 s,@top_builddir@,$ac_top_builddir,;t t
13488 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13489 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13490   rm -f $tmp/stdin
13491   if test x"$ac_file" != x-; then
13492     mv $tmp/out $ac_file
13493   else
13494     cat $tmp/out
13495     rm -f $tmp/out
13496   fi
13497
13498 done
13499 _ACEOF
13500 cat >>$CONFIG_STATUS <<\_ACEOF
13501
13502 #
13503 # CONFIG_HEADER section.
13504 #
13505
13506 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13507 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13508 #
13509 # ac_d sets the value in "#define NAME VALUE" lines.
13510 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13511 ac_dB='[         ].*$,\1#\2'
13512 ac_dC=' '
13513 ac_dD=',;t'
13514 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13515 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13516 ac_uB='$,\1#\2define\3'
13517 ac_uC=' '
13518 ac_uD=',;t'
13519
13520 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13521   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13522   case $ac_file in
13523   - | *:- | *:-:* ) # input from stdin
13524         cat >$tmp/stdin
13525         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13526         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13527   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13528         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13529   * )   ac_file_in=$ac_file.in ;;
13530   esac
13531
13532   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13533 echo "$as_me: creating $ac_file" >&6;}
13534
13535   # First look for the input files in the build tree, otherwise in the
13536   # src tree.
13537   ac_file_inputs=`IFS=:
13538     for f in $ac_file_in; do
13539       case $f in
13540       -) echo $tmp/stdin ;;
13541       [\\/$]*)
13542          # Absolute (can't be DOS-style, as IFS=:)
13543          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13544 echo "$as_me: error: cannot find input file: $f" >&2;}
13545    { (exit 1); exit 1; }; }
13546          # Do quote $f, to prevent DOS paths from being IFS'd.
13547          echo "$f";;
13548       *) # Relative
13549          if test -f "$f"; then
13550            # Build tree
13551            echo "$f"
13552          elif test -f "$srcdir/$f"; then
13553            # Source tree
13554            echo "$srcdir/$f"
13555          else
13556            # /dev/null tree
13557            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13558 echo "$as_me: error: cannot find input file: $f" >&2;}
13559    { (exit 1); exit 1; }; }
13560          fi;;
13561       esac
13562     done` || { (exit 1); exit 1; }
13563   # Remove the trailing spaces.
13564   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13565
13566 _ACEOF
13567
13568 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13569 # `conftest.undefs', that substitutes the proper values into
13570 # config.h.in to produce config.h.  The first handles `#define'
13571 # templates, and the second `#undef' templates.
13572 # And first: Protect against being on the right side of a sed subst in
13573 # config.status.  Protect against being in an unquoted here document
13574 # in config.status.
13575 rm -f conftest.defines conftest.undefs
13576 # Using a here document instead of a string reduces the quoting nightmare.
13577 # Putting comments in sed scripts is not portable.
13578 #
13579 # `end' is used to avoid that the second main sed command (meant for
13580 # 0-ary CPP macros) applies to n-ary macro definitions.
13581 # See the Autoconf documentation for `clear'.
13582 cat >confdef2sed.sed <<\_ACEOF
13583 s/[\\&,]/\\&/g
13584 s,[\\$`],\\&,g
13585 t clear
13586 : clear
13587 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13588 t end
13589 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13590 : end
13591 _ACEOF
13592 # If some macros were called several times there might be several times
13593 # the same #defines, which is useless.  Nevertheless, we may not want to
13594 # sort them, since we want the *last* AC-DEFINE to be honored.
13595 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13596 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13597 rm -f confdef2sed.sed
13598
13599 # This sed command replaces #undef with comments.  This is necessary, for
13600 # example, in the case of _POSIX_SOURCE, which is predefined and required
13601 # on some systems where configure will not decide to define it.
13602 cat >>conftest.undefs <<\_ACEOF
13603 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13604 _ACEOF
13605
13606 # Break up conftest.defines because some shells have a limit on the size
13607 # of here documents, and old seds have small limits too (100 cmds).
13608 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13609 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13610 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13611 echo '  :' >>$CONFIG_STATUS
13612 rm -f conftest.tail
13613 while grep . conftest.defines >/dev/null
13614 do
13615   # Write a limited-size here document to $tmp/defines.sed.
13616   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13617   # Speed up: don't consider the non `#define' lines.
13618   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13619   # Work around the forget-to-reset-the-flag bug.
13620   echo 't clr' >>$CONFIG_STATUS
13621   echo ': clr' >>$CONFIG_STATUS
13622   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13623   echo 'CEOF
13624   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13625   rm -f $tmp/in
13626   mv $tmp/out $tmp/in
13627 ' >>$CONFIG_STATUS
13628   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13629   rm -f conftest.defines
13630   mv conftest.tail conftest.defines
13631 done
13632 rm -f conftest.defines
13633 echo '  fi # grep' >>$CONFIG_STATUS
13634 echo >>$CONFIG_STATUS
13635
13636 # Break up conftest.undefs because some shells have a limit on the size
13637 # of here documents, and old seds have small limits too (100 cmds).
13638 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13639 rm -f conftest.tail
13640 while grep . conftest.undefs >/dev/null
13641 do
13642   # Write a limited-size here document to $tmp/undefs.sed.
13643   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13644   # Speed up: don't consider the non `#undef'
13645   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13646   # Work around the forget-to-reset-the-flag bug.
13647   echo 't clr' >>$CONFIG_STATUS
13648   echo ': clr' >>$CONFIG_STATUS
13649   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13650   echo 'CEOF
13651   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13652   rm -f $tmp/in
13653   mv $tmp/out $tmp/in
13654 ' >>$CONFIG_STATUS
13655   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13656   rm -f conftest.undefs
13657   mv conftest.tail conftest.undefs
13658 done
13659 rm -f conftest.undefs
13660
13661 cat >>$CONFIG_STATUS <<\_ACEOF
13662   # Let's still pretend it is `configure' which instantiates (i.e., don't
13663   # use $as_me), people would be surprised to read:
13664   #    /* config.h.  Generated by config.status.  */
13665   if test x"$ac_file" = x-; then
13666     echo "/* Generated by configure.  */" >$tmp/config.h
13667   else
13668     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13669   fi
13670   cat $tmp/in >>$tmp/config.h
13671   rm -f $tmp/in
13672   if test x"$ac_file" != x-; then
13673     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13674       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13675 echo "$as_me: $ac_file is unchanged" >&6;}
13676     else
13677       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13679          X"$ac_file" : 'X\(//\)[^/]' \| \
13680          X"$ac_file" : 'X\(//\)$' \| \
13681          X"$ac_file" : 'X\(/\)' \| \
13682          .     : '\(.\)' 2>/dev/null ||
13683 echo X"$ac_file" |
13684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13685           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13686           /^X\(\/\/\)$/{ s//\1/; q; }
13687           /^X\(\/\).*/{ s//\1/; q; }
13688           s/.*/./; q'`
13689       { if $as_mkdir_p; then
13690     mkdir -p "$ac_dir"
13691   else
13692     as_dir="$ac_dir"
13693     as_dirs=
13694     while test ! -d "$as_dir"; do
13695       as_dirs="$as_dir $as_dirs"
13696       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13697 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13698          X"$as_dir" : 'X\(//\)[^/]' \| \
13699          X"$as_dir" : 'X\(//\)$' \| \
13700          X"$as_dir" : 'X\(/\)' \| \
13701          .     : '\(.\)' 2>/dev/null ||
13702 echo X"$as_dir" |
13703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13704           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13705           /^X\(\/\/\)$/{ s//\1/; q; }
13706           /^X\(\/\).*/{ s//\1/; q; }
13707           s/.*/./; q'`
13708     done
13709     test ! -n "$as_dirs" || mkdir $as_dirs
13710   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13711 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13712    { (exit 1); exit 1; }; }; }
13713
13714       rm -f $ac_file
13715       mv $tmp/config.h $ac_file
13716     fi
13717   else
13718     cat $tmp/config.h
13719     rm -f $tmp/config.h
13720   fi
13721 done
13722 _ACEOF
13723 cat >>$CONFIG_STATUS <<\_ACEOF
13724
13725 #
13726 # CONFIG_COMMANDS section.
13727 #
13728 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13729   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13730   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13731   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13732 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13733          X"$ac_dest" : 'X\(//\)[^/]' \| \
13734          X"$ac_dest" : 'X\(//\)$' \| \
13735          X"$ac_dest" : 'X\(/\)' \| \
13736          .     : '\(.\)' 2>/dev/null ||
13737 echo X"$ac_dest" |
13738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13739           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13740           /^X\(\/\/\)$/{ s//\1/; q; }
13741           /^X\(\/\).*/{ s//\1/; q; }
13742           s/.*/./; q'`
13743   { if $as_mkdir_p; then
13744     mkdir -p "$ac_dir"
13745   else
13746     as_dir="$ac_dir"
13747     as_dirs=
13748     while test ! -d "$as_dir"; do
13749       as_dirs="$as_dir $as_dirs"
13750       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13752          X"$as_dir" : 'X\(//\)[^/]' \| \
13753          X"$as_dir" : 'X\(//\)$' \| \
13754          X"$as_dir" : 'X\(/\)' \| \
13755          .     : '\(.\)' 2>/dev/null ||
13756 echo X"$as_dir" |
13757     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13758           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13759           /^X\(\/\/\)$/{ s//\1/; q; }
13760           /^X\(\/\).*/{ s//\1/; q; }
13761           s/.*/./; q'`
13762     done
13763     test ! -n "$as_dirs" || mkdir $as_dirs
13764   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13765 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13766    { (exit 1); exit 1; }; }; }
13767
13768   ac_builddir=.
13769
13770 if test "$ac_dir" != .; then
13771   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13772   # A "../" for each directory in $ac_dir_suffix.
13773   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13774 else
13775   ac_dir_suffix= ac_top_builddir=
13776 fi
13777
13778 case $srcdir in
13779   .)  # No --srcdir option.  We are building in place.
13780     ac_srcdir=.
13781     if test -z "$ac_top_builddir"; then
13782        ac_top_srcdir=.
13783     else
13784        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13785     fi ;;
13786   [\\/]* | ?:[\\/]* )  # Absolute path.
13787     ac_srcdir=$srcdir$ac_dir_suffix;
13788     ac_top_srcdir=$srcdir ;;
13789   *) # Relative path.
13790     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13791     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13792 esac
13793
13794 # Do not use `cd foo && pwd` to compute absolute paths, because
13795 # the directories may not exist.
13796 case `pwd` in
13797 .) ac_abs_builddir="$ac_dir";;
13798 *)
13799   case "$ac_dir" in
13800   .) ac_abs_builddir=`pwd`;;
13801   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13802   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13803   esac;;
13804 esac
13805 case $ac_abs_builddir in
13806 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13807 *)
13808   case ${ac_top_builddir}. in
13809   .) ac_abs_top_builddir=$ac_abs_builddir;;
13810   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13811   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13812   esac;;
13813 esac
13814 case $ac_abs_builddir in
13815 .) ac_abs_srcdir=$ac_srcdir;;
13816 *)
13817   case $ac_srcdir in
13818   .) ac_abs_srcdir=$ac_abs_builddir;;
13819   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13820   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13821   esac;;
13822 esac
13823 case $ac_abs_builddir in
13824 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13825 *)
13826   case $ac_top_srcdir in
13827   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13828   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13829   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13830   esac;;
13831 esac
13832
13833
13834   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13835 echo "$as_me: executing $ac_dest commands" >&6;}
13836   case $ac_dest in
13837     default )
13838 case ${CONFIG_HEADERS} in
13839   *auto-host.h:config.in*)
13840   echo > cstamp-h ;;
13841 esac
13842 # Make sure all the subdirs exist.
13843 for d in $subdirs
13844 do
13845     test -d $d || mkdir $d
13846 done
13847 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13848 # bootstrapping and the installation procedure can still use
13849 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13850 # FLAGS_TO_PASS has been modified to solve the problem there.
13851 # This is virtually a duplicate of what happens in configure.lang; we do
13852 # an extra check to make sure this only happens if ln -s can be used.
13853 if test "$symbolic_link" = "ln -s"; then
13854  for d in ${subdirs} fixinc ; do
13855         STARTDIR=`${PWDCMD-pwd}`
13856         cd $d
13857         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13858         do
13859                 rm -f $t
13860                 $symbolic_link ../$t $t 2>/dev/null
13861         done
13862         cd $STARTDIR
13863  done
13864 else true ; fi
13865  ;;
13866   esac
13867 done
13868 _ACEOF
13869
13870 cat >>$CONFIG_STATUS <<\_ACEOF
13871
13872 { (exit 0); exit 0; }
13873 _ACEOF
13874 chmod +x $CONFIG_STATUS
13875 ac_clean_files=$ac_clean_files_save
13876
13877
13878 # configure is writing to config.log, and then calls config.status.
13879 # config.status does its own redirection, appending to config.log.
13880 # Unfortunately, on DOS this fails, as config.log is still kept open
13881 # by configure, so config.status won't be able to write to it; its
13882 # output is simply discarded.  So we exec the FD to /dev/null,
13883 # effectively closing config.log, so it can be properly (re)opened and
13884 # appended to by config.status.  When coming back to configure, we
13885 # need to make the FD available again.
13886 if test "$no_create" != yes; then
13887   ac_cs_success=:
13888   ac_config_status_args=
13889   test "$silent" = yes &&
13890     ac_config_status_args="$ac_config_status_args --quiet"
13891   exec 5>/dev/null
13892   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13893   exec 5>>config.log
13894   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13895   # would make configure fail if this is the last instruction.
13896   $ac_cs_success || { (exit 1); exit 1; }
13897 fi
13898