OSDN Git Service

* configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 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 docobjdir parsedir 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_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_extra_gcc_objs host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files='language_hooks'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841   --target=TARGET   configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-generated-files-in-srcdir  Put generated files in source dir
853   --enable-werror         enable -Werror in bootstrap stage2 and later
854   --enable-checking=LIST
855                           enable expensive run-time checks.  With LIST,
856                           enable only specific categories of checks.
857                           Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
858                           default is misc,tree,gc,rtlflag
859   --enable-coverage=LEVEL
860                           enable compiler\'s code coverage collection.
861                           Use to measure compiler performance and locate
862                           unused parts of the compiler. With LEVEL, specify
863                           optimization. Values are opt, noopt,
864                           default is noopt
865   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
866   --enable-multilib       enable library support for multiple ABIs
867   --enable-__cxa_atexit   enable __cxa_atexit for C++
868   --enable-threads        enable thread usage for target GCC
869   --enable-threads=LIB    use LIB thread package for target GCC
870   --enable-objc-gc        enable the use of Boehm's garbage collector with
871                           the GNU Objective-C runtime
872   --disable-shared        don't provide a shared libgcc
873   --enable-intermodule    build the compiler in one step
874   --enable-initfini-array       use .init_array/.fini_array sections
875   --enable-sjlj-exceptions
876                           arrange to use setjmp/longjmp exception handling
877   --enable-libunwind-exceptions  force use libunwind for exceptions
878   --disable-win32-registry
879                           disable lookup of installation paths in the
880                           Registry on Windows hosts
881   --enable-win32-registry enable registry lookup (default)
882   --enable-win32-registry=KEY
883                           use KEY instead of GCC version as the last portion
884                           of the registry key
885   --enable-maintainer-mode
886                           enable make rules and dependencies not useful
887                           (and sometimes confusing) to the casual installer
888   --enable-version-specific-runtime-libs
889                           specify that runtime libraries should be
890                           installed in a compiler-specific directory
891
892 Optional Packages:
893   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
894   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
895   --with-local-prefix=DIR specifies directory to put local include
896   --with-gxx-include-dir=DIR
897                           specifies directory to put g++ header files
898   --with-cpp-install-dir=DIR
899                           install the user visible C preprocessor in DIR
900                           (relative to PREFIX) as well as PREFIX/bin
901   --with-gnu-ld           arrange to work with GNU ld.
902   --with-ld               arrange to use the specified ld (full pathname)
903   --with-gnu-as           arrange to work with GNU as
904   --with-as               arrange to use the specified as (full pathname)
905   --with-stabs            arrange to use stabs instead of host debug format
906   --with-dwarf2           force the default debug format to be DWARF 2
907   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
908   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
909   --with-gc={simple,page,zone} choose the garbage collection mechanism to use
910                           with the compiler
911   --with-system-zlib      use installed libz
912   --with-slibdir=DIR      shared libraries in DIR LIBDIR
913
914 Some influential environment variables:
915   CC          C compiler command
916   CFLAGS      C compiler flags
917   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
918               nonstandard directory <lib dir>
919   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
920               headers in a nonstandard directory <include dir>
921   CPP         C preprocessor
922
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
925
926 _ACEOF
927 fi
928
929 if test "$ac_init_help" = "recursive"; then
930   # If there are subdirs, report their specific --help.
931   ac_popdir=`pwd`
932   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933     test -d $ac_dir || continue
934     ac_builddir=.
935
936 if test "$ac_dir" != .; then
937   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938   # A "../" for each directory in $ac_dir_suffix.
939   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
940 else
941   ac_dir_suffix= ac_top_builddir=
942 fi
943
944 case $srcdir in
945   .)  # No --srcdir option.  We are building in place.
946     ac_srcdir=.
947     if test -z "$ac_top_builddir"; then
948        ac_top_srcdir=.
949     else
950        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
951     fi ;;
952   [\\/]* | ?:[\\/]* )  # Absolute path.
953     ac_srcdir=$srcdir$ac_dir_suffix;
954     ac_top_srcdir=$srcdir ;;
955   *) # Relative path.
956     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957     ac_top_srcdir=$ac_top_builddir$srcdir ;;
958 esac
959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
960 # absolute.
961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
965
966     cd $ac_dir
967     # Check for guested configure; otherwise get Cygnus style configure.
968     if test -f $ac_srcdir/configure.gnu; then
969       echo
970       $SHELL $ac_srcdir/configure.gnu  --help=recursive
971     elif test -f $ac_srcdir/configure; then
972       echo
973       $SHELL $ac_srcdir/configure  --help=recursive
974     elif test -f $ac_srcdir/configure.ac ||
975            test -f $ac_srcdir/configure.in; then
976       echo
977       $ac_configure --help
978     else
979       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980     fi
981     cd "$ac_popdir"
982   done
983 fi
984
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987   cat <<\_ACEOF
988
989 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
990 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.57.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1331
1332
1333 # Determine the host, build, and target systems
1334 ac_aux_dir=
1335 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1336   if test -f $ac_dir/install-sh; then
1337     ac_aux_dir=$ac_dir
1338     ac_install_sh="$ac_aux_dir/install-sh -c"
1339     break
1340   elif test -f $ac_dir/install.sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install.sh -c"
1343     break
1344   elif test -f $ac_dir/shtool; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/shtool install -c"
1347     break
1348   fi
1349 done
1350 if test -z "$ac_aux_dir"; then
1351   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1353    { (exit 1); exit 1; }; }
1354 fi
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358
1359 # Make sure we can run config.sub.
1360 $ac_config_sub sun4 >/dev/null 2>&1 ||
1361   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1362 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1363    { (exit 1); exit 1; }; }
1364
1365 echo "$as_me:$LINENO: checking build system type" >&5
1366 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1367 if test "${ac_cv_build+set}" = set; then
1368   echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370   ac_cv_build_alias=$build_alias
1371 test -z "$ac_cv_build_alias" &&
1372   ac_cv_build_alias=`$ac_config_guess`
1373 test -z "$ac_cv_build_alias" &&
1374   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1375 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1376    { (exit 1); exit 1; }; }
1377 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1378   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1379 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1380    { (exit 1); exit 1; }; }
1381
1382 fi
1383 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1384 echo "${ECHO_T}$ac_cv_build" >&6
1385 build=$ac_cv_build
1386 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1389
1390
1391 echo "$as_me:$LINENO: checking host system type" >&5
1392 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1393 if test "${ac_cv_host+set}" = set; then
1394   echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396   ac_cv_host_alias=$host_alias
1397 test -z "$ac_cv_host_alias" &&
1398   ac_cv_host_alias=$ac_cv_build_alias
1399 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1400   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1402    { (exit 1); exit 1; }; }
1403
1404 fi
1405 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1406 echo "${ECHO_T}$ac_cv_host" >&6
1407 host=$ac_cv_host
1408 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1411
1412
1413 echo "$as_me:$LINENO: checking target system type" >&5
1414 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1415 if test "${ac_cv_target+set}" = set; then
1416   echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418   ac_cv_target_alias=$target_alias
1419 test "x$ac_cv_target_alias" = "x" &&
1420   ac_cv_target_alias=$ac_cv_host_alias
1421 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1422   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1424    { (exit 1); exit 1; }; }
1425
1426 fi
1427 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1428 echo "${ECHO_T}$ac_cv_target" >&6
1429 target=$ac_cv_target
1430 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
1434
1435 # The aliases save the names the user supplied, while $host etc.
1436 # will get canonicalized.
1437 test -n "$target_alias" &&
1438   test "$program_prefix$program_suffix$program_transform_name" = \
1439     NONENONEs,x,x, &&
1440   program_prefix=${target_alias}-
1441
1442 # Determine the noncanonical target name, for directory use.
1443  case ${build_alias} in
1444   "") build_noncanonical=${build} ;;
1445   *) build_noncanonical=${build_alias} ;;
1446 esac
1447
1448  case ${host_alias} in
1449   "") host_noncanonical=${build_noncanonical} ;;
1450   *) host_noncanonical=${host_alias} ;;
1451 esac
1452
1453  case ${target_alias} in
1454   "") target_noncanonical=${host_noncanonical} ;;
1455   *) target_noncanonical=${target_alias} ;;
1456 esac
1457
1458
1459 # Determine the target- and build-specific subdirectories
1460   # Prefix 'build-' so this never conflicts with target_subdir.
1461 build_subdir="build-${build_noncanonical}"
1462 # Not really a subdirectory, but here for completeness.
1463 host_subdir=.
1464 # No prefix.
1465 target_subdir=${target_noncanonical}
1466
1467
1468 # Set program_transform_name
1469 test "$program_prefix" != NONE &&
1470   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1471 # Use a double $ so make ignores it.
1472 test "$program_suffix" != NONE &&
1473   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474 # Double any \ or $.  echo might interpret backslashes.
1475 # By default was `s,x,x', remove it if useless.
1476 cat <<\_ACEOF >conftest.sed
1477 s/[\\$]/&&/g;s/;s,x,x,$//
1478 _ACEOF
1479 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1480 rm conftest.sed
1481
1482
1483 # Check for bogus environment variables.
1484 # Test if LIBRARY_PATH contains the notation for the current directory
1485 # since this would lead to problems installing/building glibc.
1486 # LIBRARY_PATH contains the current directory if one of the following
1487 # is true:
1488 # - one of the terminals (":" and ";") is the first or last sign
1489 # - two terminals occur directly after each other
1490 # - the path contains an element with a dot in it
1491 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1492 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1493 case ${LIBRARY_PATH} in
1494   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1495     library_path_setting="contains current directory"
1496     ;;
1497   *)
1498     library_path_setting="ok"
1499     ;;
1500 esac
1501 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1502 echo "${ECHO_T}$library_path_setting" >&6
1503 if test "$library_path_setting" != "ok"; then
1504 { { echo "$as_me:$LINENO: error:
1505 *** LIBRARY_PATH shouldn't contain the current directory when
1506 *** building gcc. Please change the environment variable
1507 *** and run configure again." >&5
1508 echo "$as_me: error:
1509 *** LIBRARY_PATH shouldn't contain the current directory when
1510 *** building gcc. Please change the environment variable
1511 *** and run configure again." >&2;}
1512    { (exit 1); exit 1; }; }
1513 fi
1514
1515 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1516 # since this would lead to problems installing/building glibc.
1517 # GCC_EXEC_PREFIX contains the current directory if one of the following
1518 # is true:
1519 # - one of the terminals (":" and ";") is the first or last sign
1520 # - two terminals occur directly after each other
1521 # - the path contains an element with a dot in it
1522 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1523 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1524 case ${GCC_EXEC_PREFIX} in
1525   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1526     gcc_exec_prefix_setting="contains current directory"
1527     ;;
1528   *)
1529     gcc_exec_prefix_setting="ok"
1530     ;;
1531 esac
1532 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1533 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1534 if test "$gcc_exec_prefix_setting" != "ok"; then
1535 { { echo "$as_me:$LINENO: error:
1536 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1537 *** building gcc. Please change the environment variable
1538 *** and run configure again." >&5
1539 echo "$as_me: error:
1540 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1541 *** building gcc. Please change the environment variable
1542 *** and run configure again." >&2;}
1543    { (exit 1); exit 1; }; }
1544 fi
1545
1546 # -----------
1547 # Directories
1548 # -----------
1549
1550 # Specify the local prefix
1551 local_prefix=
1552
1553 # Check whether --with-local-prefix or --without-local-prefix was given.
1554 if test "${with_local_prefix+set}" = set; then
1555   withval="$with_local_prefix"
1556   case "${withval}" in
1557 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1558 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1559    { (exit 1); exit 1; }; } ;;
1560 no)     ;;
1561 *)      local_prefix=$with_local_prefix ;;
1562 esac
1563 fi;
1564
1565 # Default local prefix if it is empty
1566 if test x$local_prefix = x; then
1567         local_prefix=/usr/local
1568 fi
1569
1570 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1571 # passed in by the toplevel make and thus we'd get different behavior
1572 # depending on where we built the sources.
1573 gcc_gxx_include_dir=
1574 # Specify the g++ header file directory
1575
1576 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1577 if test "${with_gxx_include_dir+set}" = set; then
1578   withval="$with_gxx_include_dir"
1579   case "${withval}" in
1580 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1581 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1582    { (exit 1); exit 1; }; } ;;
1583 no)     ;;
1584 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1585 esac
1586 fi;
1587
1588 if test x${gcc_gxx_include_dir} = x; then
1589   if test x${enable_version_specific_runtime_libs} = xyes; then
1590     gcc_gxx_include_dir='${libsubdir}/include/c++'
1591   else
1592     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1593     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1594   fi
1595 fi
1596
1597
1598 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1599 if test "${with_cpp_install_dir+set}" = set; then
1600   withval="$with_cpp_install_dir"
1601   if test x$withval = xyes; then
1602   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1603 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1604    { (exit 1); exit 1; }; }
1605 elif test x$withval != xno; then
1606   cpp_install_dir=$withval
1607 fi
1608 fi;
1609
1610 # We would like to our source tree to be readonly.  However when releases or
1611 # pre-releases are generated, the flex/bison generated files as well as the
1612 # various formats of manuals need to be included along with the rest of the
1613 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1614 # just that.
1615
1616 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1617 if test "${enable_generated_files_in_srcdir+set}" = set; then
1618   enableval="$enable_generated_files_in_srcdir"
1619   case ${enableval} in
1620   no)    parsedir='$(objdir)'; docobjdir='$(objdir)/doc';;
1621   *)     parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
1622 esac
1623 else
1624   parsedir='$(objdir)'; docobjdir='$(objdir)/doc';
1625 fi;
1626
1627 # -------------------
1628 # Find default linker
1629 # -------------------
1630
1631 # With GNU ld
1632
1633 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1634 if test "${with_gnu_ld+set}" = set; then
1635   withval="$with_gnu_ld"
1636   gnu_ld_flag="$with_gnu_ld"
1637 else
1638   gnu_ld_flag=no
1639 fi;
1640
1641 # With pre-defined ld
1642
1643 # Check whether --with-ld or --without-ld was given.
1644 if test "${with_ld+set}" = set; then
1645   withval="$with_ld"
1646   DEFAULT_LINKER="$with_ld"
1647 fi;
1648 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1649   if test ! -x "$DEFAULT_LINKER"; then
1650     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1651 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1652   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1653     gnu_ld_flag=yes
1654   fi
1655
1656 cat >>confdefs.h <<_ACEOF
1657 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1658 _ACEOF
1659
1660 fi
1661
1662 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1663 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1665   if test x"$gnu_ld_flag" = x"no"; then
1666     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1667 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1668   else
1669     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1670 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1671   fi
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677 # ----------------------
1678 # Find default assembler
1679 # ----------------------
1680
1681 # With GNU as
1682
1683 # Check whether --with-gnu-as or --without-gnu-as was given.
1684 if test "${with_gnu_as+set}" = set; then
1685   withval="$with_gnu_as"
1686   gas_flag="$with_gnu_as"
1687 else
1688   gas_flag=no
1689 fi;
1690
1691
1692 # Check whether --with-as or --without-as was given.
1693 if test "${with_as+set}" = set; then
1694   withval="$with_as"
1695   DEFAULT_ASSEMBLER="$with_as"
1696 fi;
1697 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1698   if test ! -x "$DEFAULT_ASSEMBLER"; then
1699     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1700 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1701   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1702     gas_flag=yes
1703   fi
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1707 _ACEOF
1708
1709 fi
1710
1711 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1712 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1713 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1714   if test x"$gas_flag" = x"no"; then
1715     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1716 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1717   else
1718     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1719 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1720   fi
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726 # ---------------
1727 # Find C compiler
1728 # ---------------
1729
1730 # Find the native compiler
1731 ac_ext=c
1732 ac_cpp='$CPP $CPPFLAGS'
1733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1736 if test -n "$ac_tool_prefix"; then
1737   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742   echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744   if test -n "$CC"; then
1745   ac_cv_prog_CC="$CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750   IFS=$as_save_IFS
1751   test -z "$as_dir" && as_dir=.
1752   for ac_exec_ext in '' $ac_executable_extensions; do
1753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756     break 2
1757   fi
1758 done
1759 done
1760
1761 fi
1762 fi
1763 CC=$ac_cv_prog_CC
1764 if test -n "$CC"; then
1765   echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772 fi
1773 if test -z "$ac_cv_prog_CC"; then
1774   ac_ct_CC=$CC
1775   # Extract the first word of "gcc", so it can be a program name with args.
1776 set dummy gcc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   if test -n "$ac_ct_CC"; then
1783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1787 do
1788   IFS=$as_save_IFS
1789   test -z "$as_dir" && as_dir=.
1790   for ac_exec_ext in '' $ac_executable_extensions; do
1791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792     ac_cv_prog_ac_ct_CC="gcc"
1793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794     break 2
1795   fi
1796 done
1797 done
1798
1799 fi
1800 fi
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806   echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1808 fi
1809
1810   CC=$ac_ct_CC
1811 else
1812   CC="$ac_cv_prog_CC"
1813 fi
1814
1815 if test -z "$CC"; then
1816   if test -n "$ac_tool_prefix"; then
1817   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}cc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822   echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824   if test -n "$CC"; then
1825   ac_cv_prog_CC="$CC" # Let the user override the test.
1826 else
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1829 do
1830   IFS=$as_save_IFS
1831   test -z "$as_dir" && as_dir=.
1832   for ac_exec_ext in '' $ac_executable_extensions; do
1833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834     ac_cv_prog_CC="${ac_tool_prefix}cc"
1835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836     break 2
1837   fi
1838 done
1839 done
1840
1841 fi
1842 fi
1843 CC=$ac_cv_prog_CC
1844 if test -n "$CC"; then
1845   echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1847 else
1848   echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1850 fi
1851
1852 fi
1853 if test -z "$ac_cv_prog_CC"; then
1854   ac_ct_CC=$CC
1855   # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860   echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862   if test -n "$ac_ct_CC"; then
1863   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868   IFS=$as_save_IFS
1869   test -z "$as_dir" && as_dir=.
1870   for ac_exec_ext in '' $ac_executable_extensions; do
1871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872     ac_cv_prog_ac_ct_CC="cc"
1873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874     break 2
1875   fi
1876 done
1877 done
1878
1879 fi
1880 fi
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1885 else
1886   echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1888 fi
1889
1890   CC=$ac_ct_CC
1891 else
1892   CC="$ac_cv_prog_CC"
1893 fi
1894
1895 fi
1896 if test -z "$CC"; then
1897   # Extract the first word of "cc", so it can be a program name with args.
1898 set dummy cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902   echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904   if test -n "$CC"; then
1905   ac_cv_prog_CC="$CC" # Let the user override the test.
1906 else
1907   ac_prog_rejected=no
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911   IFS=$as_save_IFS
1912   test -z "$as_dir" && as_dir=.
1913   for ac_exec_ext in '' $ac_executable_extensions; do
1914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1916        ac_prog_rejected=yes
1917        continue
1918      fi
1919     ac_cv_prog_CC="cc"
1920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921     break 2
1922   fi
1923 done
1924 done
1925
1926 if test $ac_prog_rejected = yes; then
1927   # We found a bogon in the path, so make sure we never use it.
1928   set dummy $ac_cv_prog_CC
1929   shift
1930   if test $# != 0; then
1931     # We chose a different compiler from the bogus one.
1932     # However, it has the same basename, so the bogon will be chosen
1933     # first if we set CC to just the basename; use the full file name.
1934     shift
1935     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1936   fi
1937 fi
1938 fi
1939 fi
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942   echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1944 else
1945   echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949 fi
1950 if test -z "$CC"; then
1951   if test -n "$ac_tool_prefix"; then
1952   for ac_prog in cl
1953   do
1954     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$CC"; then
1962   ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982   echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989     test -n "$CC" && break
1990   done
1991 fi
1992 if test -z "$CC"; then
1993   ac_ct_CC=$CC
1994   for ac_prog in cl
1995 do
1996   # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   if test -n "$ac_ct_CC"; then
2004   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009   IFS=$as_save_IFS
2010   test -z "$as_dir" && as_dir=.
2011   for ac_exec_ext in '' $ac_executable_extensions; do
2012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013     ac_cv_prog_ac_ct_CC="$ac_prog"
2014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015     break 2
2016   fi
2017 done
2018 done
2019
2020 fi
2021 fi
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6
2026 else
2027   echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2029 fi
2030
2031   test -n "$ac_ct_CC" && break
2032 done
2033
2034   CC=$ac_ct_CC
2035 fi
2036
2037 fi
2038
2039
2040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH
2043 See \`config.log' for more details." >&2;}
2044    { (exit 1); exit 1; }; }
2045
2046 # Provide some information about the compiler.
2047 echo "$as_me:$LINENO:" \
2048      "checking for C compiler version" >&5
2049 ac_compiler=`set X $ac_compile; echo $2`
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051   (eval $ac_compiler --version </dev/null >&5) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }
2055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056   (eval $ac_compiler -v </dev/null >&5) 2>&5
2057   ac_status=$?
2058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059   (exit $ac_status); }
2060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061   (eval $ac_compiler -V </dev/null >&5) 2>&5
2062   ac_status=$?
2063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064   (exit $ac_status); }
2065
2066 cat >conftest.$ac_ext <<_ACEOF
2067 #line $LINENO "configure"
2068 /* confdefs.h.  */
2069 _ACEOF
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h.  */
2073
2074 int
2075 main ()
2076 {
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 ac_clean_files_save=$ac_clean_files
2083 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2084 # Try to create an executable without -o first, disregard a.out.
2085 # It will help us diagnose broken compilers, and finding out an intuition
2086 # of exeext.
2087 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2088 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2089 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091   (eval $ac_link_default) 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); }; then
2095   # Find the output, starting from the most likely.  This scheme is
2096 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2097 # resort.
2098
2099 # Be careful to initialize this variable, since it used to be cached.
2100 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2101 ac_cv_exeext=
2102 # b.out is created by i960 compilers.
2103 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2104 do
2105   test -f "$ac_file" || continue
2106   case $ac_file in
2107     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2108         ;;
2109     conftest.$ac_ext )
2110         # This is the source file.
2111         ;;
2112     [ab].out )
2113         # We found the default executable, but exeext='' is most
2114         # certainly right.
2115         break;;
2116     *.* )
2117         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118         # FIXME: I believe we export ac_cv_exeext for Libtool,
2119         # but it would be cool to find out if it's true.  Does anybody
2120         # maintain Libtool? --akim.
2121         export ac_cv_exeext
2122         break;;
2123     * )
2124         break;;
2125   esac
2126 done
2127 else
2128   echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2130
2131 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: C compiler cannot create executables
2134 See \`config.log' for more details." >&2;}
2135    { (exit 77); exit 77; }; }
2136 fi
2137
2138 ac_exeext=$ac_cv_exeext
2139 echo "$as_me:$LINENO: result: $ac_file" >&5
2140 echo "${ECHO_T}$ac_file" >&6
2141
2142 # Check the compiler produces executables we can run.  If not, either
2143 # the compiler is broken, or we cross compile.
2144 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2145 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2146 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2147 # If not cross compiling, check that we can run a simple program.
2148 if test "$cross_compiling" != yes; then
2149   if { ac_try='./$ac_file'
2150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151   (eval $ac_try) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; }; then
2155     cross_compiling=no
2156   else
2157     if test "$cross_compiling" = maybe; then
2158         cross_compiling=yes
2159     else
2160         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2161 If you meant to cross compile, use \`--host'.
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&2;}
2166    { (exit 1); exit 1; }; }
2167     fi
2168   fi
2169 fi
2170 echo "$as_me:$LINENO: result: yes" >&5
2171 echo "${ECHO_T}yes" >&6
2172
2173 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2174 ac_clean_files=$ac_clean_files_save
2175 # Check the compiler produces executables we can run.  If not, either
2176 # the compiler is broken, or we cross compile.
2177 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2179 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180 echo "${ECHO_T}$cross_compiling" >&6
2181
2182 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2185   (eval $ac_link) 2>&5
2186   ac_status=$?
2187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188   (exit $ac_status); }; then
2189   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2190 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2191 # work properly (i.e., refer to `conftest.exe'), while it won't with
2192 # `rm'.
2193 for ac_file in conftest.exe conftest conftest.*; do
2194   test -f "$ac_file" || continue
2195   case $ac_file in
2196     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2197     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198           export ac_cv_exeext
2199           break;;
2200     * ) break;;
2201   esac
2202 done
2203 else
2204   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2207 See \`config.log' for more details." >&2;}
2208    { (exit 1); exit 1; }; }
2209 fi
2210
2211 rm -f conftest$ac_cv_exeext
2212 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213 echo "${ECHO_T}$ac_cv_exeext" >&6
2214
2215 rm -f conftest.$ac_ext
2216 EXEEXT=$ac_cv_exeext
2217 ac_exeext=$EXEEXT
2218 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220 if test "${ac_cv_objext+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   cat >conftest.$ac_ext <<_ACEOF
2224 #line $LINENO "configure"
2225 /* confdefs.h.  */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h.  */
2230
2231 int
2232 main ()
2233 {
2234
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 rm -f conftest.o conftest.obj
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241   (eval $ac_compile) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; then
2245   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2246   case $ac_file in
2247     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2248     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2249        break;;
2250   esac
2251 done
2252 else
2253   echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2259 See \`config.log' for more details." >&2;}
2260    { (exit 1); exit 1; }; }
2261 fi
2262
2263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2264 fi
2265 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2266 echo "${ECHO_T}$ac_cv_objext" >&6
2267 OBJEXT=$ac_cv_objext
2268 ac_objext=$OBJEXT
2269 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   cat >conftest.$ac_ext <<_ACEOF
2275 #line $LINENO "configure"
2276 /* confdefs.h.  */
2277 _ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h.  */
2281
2282 int
2283 main ()
2284 {
2285 #ifndef __GNUC__
2286        choke me
2287 #endif
2288
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295   (eval $ac_compile) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); } &&
2299          { ac_try='test -s conftest.$ac_objext'
2300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301   (eval $ac_try) 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }; }; then
2305   ac_compiler_gnu=yes
2306 else
2307   echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310 ac_compiler_gnu=no
2311 fi
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2314
2315 fi
2316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2318 GCC=`test $ac_compiler_gnu = yes && echo yes`
2319 ac_test_CFLAGS=${CFLAGS+set}
2320 ac_save_CFLAGS=$CFLAGS
2321 CFLAGS="-g"
2322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cc_g+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   cat >conftest.$ac_ext <<_ACEOF
2328 #line $LINENO "configure"
2329 /* confdefs.h.  */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h.  */
2334
2335 int
2336 main ()
2337 {
2338
2339   ;
2340   return 0;
2341 }
2342 _ACEOF
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345   (eval $ac_compile) 2>&5
2346   ac_status=$?
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); } &&
2349          { ac_try='test -s conftest.$ac_objext'
2350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351   (eval $ac_try) 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); }; }; then
2355   ac_cv_prog_cc_g=yes
2356 else
2357   echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2359
2360 ac_cv_prog_cc_g=no
2361 fi
2362 rm -f conftest.$ac_objext conftest.$ac_ext
2363 fi
2364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2365 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2366 if test "$ac_test_CFLAGS" = set; then
2367   CFLAGS=$ac_save_CFLAGS
2368 elif test $ac_cv_prog_cc_g = yes; then
2369   if test "$GCC" = yes; then
2370     CFLAGS="-g -O2"
2371   else
2372     CFLAGS="-g"
2373   fi
2374 else
2375   if test "$GCC" = yes; then
2376     CFLAGS="-O2"
2377   else
2378     CFLAGS=
2379   fi
2380 fi
2381 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2382 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2383 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2384   echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386   ac_cv_prog_cc_stdc=no
2387 ac_save_CC=$CC
2388 cat >conftest.$ac_ext <<_ACEOF
2389 #line $LINENO "configure"
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2395 #include <stdarg.h>
2396 #include <stdio.h>
2397 #include <sys/types.h>
2398 #include <sys/stat.h>
2399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2400 struct buf { int x; };
2401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2402 static char *e (p, i)
2403      char **p;
2404      int i;
2405 {
2406   return p[i];
2407 }
2408 static char *f (char * (*g) (char **, int), char **p, ...)
2409 {
2410   char *s;
2411   va_list v;
2412   va_start (v,p);
2413   s = g (p, va_arg (v,int));
2414   va_end (v);
2415   return s;
2416 }
2417 int test (int i, double x);
2418 struct s1 {int (*f) (int a);};
2419 struct s2 {int (*f) (double a);};
2420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2421 int argc;
2422 char **argv;
2423 int
2424 main ()
2425 {
2426 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2427   ;
2428   return 0;
2429 }
2430 _ACEOF
2431 # Don't try gcc -ansi; that turns off useful extensions and
2432 # breaks some systems' header files.
2433 # AIX                   -qlanglvl=ansi
2434 # Ultrix and OSF/1      -std1
2435 # HP-UX 10.20 and later -Ae
2436 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2437 # SVR4                  -Xc -D__EXTENSIONS__
2438 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2439 do
2440   CC="$ac_save_CC $ac_arg"
2441   rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443   (eval $ac_compile) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); } &&
2447          { ac_try='test -s conftest.$ac_objext'
2448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449   (eval $ac_try) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; }; then
2453   ac_cv_prog_cc_stdc=$ac_arg
2454 break
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 fi
2460 rm -f conftest.$ac_objext
2461 done
2462 rm -f conftest.$ac_ext conftest.$ac_objext
2463 CC=$ac_save_CC
2464
2465 fi
2466
2467 case "x$ac_cv_prog_cc_stdc" in
2468   x|xno)
2469     echo "$as_me:$LINENO: result: none needed" >&5
2470 echo "${ECHO_T}none needed" >&6 ;;
2471   *)
2472     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2474     CC="$CC $ac_cv_prog_cc_stdc" ;;
2475 esac
2476
2477 # Some people use a C++ compiler to compile C.  Since we use `exit',
2478 # in C++ we need to declare it.  In case someone uses the same compiler
2479 # for both compiling C and C++ we need to have the C++ compiler decide
2480 # the declaration of exit, since it's the most demanding environment.
2481 cat >conftest.$ac_ext <<_ACEOF
2482 #ifndef __cplusplus
2483   choke me
2484 #endif
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488   (eval $ac_compile) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); } &&
2492          { ac_try='test -s conftest.$ac_objext'
2493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494   (eval $ac_try) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }; }; then
2498   for ac_declaration in \
2499    '' \
2500    'extern "C" void std::exit (int) throw (); using std::exit;' \
2501    'extern "C" void std::exit (int); using std::exit;' \
2502    'extern "C" void exit (int) throw ();' \
2503    'extern "C" void exit (int);' \
2504    'void exit (int);'
2505 do
2506   cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513 $ac_declaration
2514 #include <stdlib.h>
2515 int
2516 main ()
2517 {
2518 exit (42);
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   :
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 continue
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543   cat >conftest.$ac_ext <<_ACEOF
2544 #line $LINENO "configure"
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550 $ac_declaration
2551 int
2552 main ()
2553 {
2554 exit (42);
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561   (eval $ac_compile) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } &&
2565          { ac_try='test -s conftest.$ac_objext'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   break
2572 else
2573   echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2575
2576 fi
2577 rm -f conftest.$ac_objext conftest.$ac_ext
2578 done
2579 rm -f conftest*
2580 if test -n "$ac_declaration"; then
2581   echo '#ifdef __cplusplus' >>confdefs.h
2582   echo $ac_declaration      >>confdefs.h
2583   echo '#endif'             >>confdefs.h
2584 fi
2585
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 fi
2591 rm -f conftest.$ac_objext conftest.$ac_ext
2592 ac_ext=c
2593 ac_cpp='$CPP $CPPFLAGS'
2594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597
2598 if test "x$CC" != xcc; then
2599   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2600 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2601 else
2602   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2603 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2604 fi
2605 set dummy $CC; ac_cc=`echo $2 |
2606                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2607 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610   cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h.  */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h.  */
2617
2618 int
2619 main ()
2620 {
2621
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 # Make sure it works both with $CC and with simple cc.
2627 # We do the test twice because some compilers refuse to overwrite an
2628 # existing .o file with -o, though they will create one.
2629 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2630 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } &&
2635    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636   (eval $ac_try) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); };
2640 then
2641   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2642   if test "x$CC" != xcc; then
2643     # Test first that cc exists at all.
2644     if { ac_try='cc -c conftest.$ac_ext >&5'
2645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646   (eval $ac_try) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); }; }; then
2650       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2651       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } &&
2656          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657   (eval $ac_try) 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); };
2661       then
2662         # cc works too.
2663         :
2664       else
2665         # cc exists but doesn't like -o.
2666         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2667       fi
2668     fi
2669   fi
2670 else
2671   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2672 fi
2673 rm -f conftest*
2674
2675 fi
2676 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2677   echo "$as_me:$LINENO: result: yes" >&5
2678 echo "${ECHO_T}yes" >&6
2679 else
2680   echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6
2682
2683 cat >>confdefs.h <<\_ACEOF
2684 #define NO_MINUS_C_MINUS_O 1
2685 _ACEOF
2686
2687 fi
2688
2689 # autoconf is lame and doesn't give us any substitution variable for this.
2690 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2691   NO_MINUS_C_MINUS_O=yes
2692 else
2693   OUTPUT_OPTION='-o $@'
2694 fi
2695
2696
2697
2698 # -------------------------
2699 # Check C compiler features
2700 # -------------------------
2701
2702
2703 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2704 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   save_CFLAGS="$CFLAGS"
2709 CFLAGS="-Wno-long-long"
2710 cat >conftest.$ac_ext <<_ACEOF
2711 #line $LINENO "configure"
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717
2718 int
2719 main ()
2720 {
2721
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728   (eval $ac_compile) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); } &&
2732          { ac_try='test -s conftest.$ac_objext'
2733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734   (eval $ac_try) 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   ac_cv_prog_cc_no_long_long=yes
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 ac_cv_prog_cc_no_long_long=no
2744 fi
2745 rm -f conftest.$ac_objext conftest.$ac_ext
2746 CFLAGS="$save_CFLAGS"
2747 fi
2748 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2749 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2750
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2760   CPP=
2761 fi
2762 if test -z "$CPP"; then
2763   if test "${ac_cv_prog_CPP+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766       # Double quotes because CPP needs to be expanded
2767     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2768     do
2769       ac_preproc_ok=false
2770 for ac_c_preproc_warn_flag in '' yes
2771 do
2772   # Use a header file that comes with gcc, so configuring glibc
2773   # with a fresh cross-compiler works.
2774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775   # <limits.h> exists even on freestanding compilers.
2776   # On the NeXT, cc -E runs the code through the compiler's parser,
2777   # not just through cpp. "Syntax error" is here to catch this case.
2778   cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2790                      Syntax error
2791 _ACEOF
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794   ac_status=$?
2795   grep -v '^ *+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
2797   cat conftest.err >&5
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } >/dev/null; then
2800   if test -s conftest.err; then
2801     ac_cpp_err=$ac_c_preproc_warn_flag
2802   else
2803     ac_cpp_err=
2804   fi
2805 else
2806   ac_cpp_err=yes
2807 fi
2808 if test -z "$ac_cpp_err"; then
2809   :
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814   # Broken: fails on valid input.
2815 continue
2816 fi
2817 rm -f conftest.err conftest.$ac_ext
2818
2819   # OK, works on sane cases.  Now check whether non-existent headers
2820   # can be detected and how.
2821   cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828 #include <ac_nonexistent.h>
2829 _ACEOF
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832   ac_status=$?
2833   grep -v '^ *+' conftest.er1 >conftest.err
2834   rm -f conftest.er1
2835   cat conftest.err >&5
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); } >/dev/null; then
2838   if test -s conftest.err; then
2839     ac_cpp_err=$ac_c_preproc_warn_flag
2840   else
2841     ac_cpp_err=
2842   fi
2843 else
2844   ac_cpp_err=yes
2845 fi
2846 if test -z "$ac_cpp_err"; then
2847   # Broken: success on invalid input.
2848 continue
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853   # Passes both tests.
2854 ac_preproc_ok=:
2855 break
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859 done
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2863   break
2864 fi
2865
2866     done
2867     ac_cv_prog_CPP=$CPP
2868
2869 fi
2870   CPP=$ac_cv_prog_CPP
2871 else
2872   ac_cv_prog_CPP=$CPP
2873 fi
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2876 ac_preproc_ok=false
2877 for ac_c_preproc_warn_flag in '' yes
2878 do
2879   # Use a header file that comes with gcc, so configuring glibc
2880   # with a fresh cross-compiler works.
2881   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882   # <limits.h> exists even on freestanding compilers.
2883   # On the NeXT, cc -E runs the code through the compiler's parser,
2884   # not just through cpp. "Syntax error" is here to catch this case.
2885   cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892 #ifdef __STDC__
2893 # include <limits.h>
2894 #else
2895 # include <assert.h>
2896 #endif
2897                      Syntax error
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } >/dev/null; then
2907   if test -s conftest.err; then
2908     ac_cpp_err=$ac_c_preproc_warn_flag
2909   else
2910     ac_cpp_err=
2911   fi
2912 else
2913   ac_cpp_err=yes
2914 fi
2915 if test -z "$ac_cpp_err"; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921   # Broken: fails on valid input.
2922 continue
2923 fi
2924 rm -f conftest.err conftest.$ac_ext
2925
2926   # OK, works on sane cases.  Now check whether non-existent headers
2927   # can be detected and how.
2928   cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935 #include <ac_nonexistent.h>
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } >/dev/null; then
2945   if test -s conftest.err; then
2946     ac_cpp_err=$ac_c_preproc_warn_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   # Broken: success on invalid input.
2955 continue
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960   # Passes both tests.
2961 ac_preproc_ok=:
2962 break
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966 done
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2970   :
2971 else
2972   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976    { (exit 1); exit 1; }; }
2977 fi
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984
2985 echo "$as_me:$LINENO: checking for inline" >&5
2986 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2987 if test "${ac_cv_c_inline+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   ac_cv_c_inline=no
2991 for ac_kw in inline __inline__ __inline; do
2992   cat >conftest.$ac_ext <<_ACEOF
2993 #line $LINENO "configure"
2994 /* confdefs.h.  */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h.  */
2999 #ifndef __cplusplus
3000 typedef int foo_t;
3001 static $ac_kw foo_t static_foo () {return 0; }
3002 $ac_kw foo_t foo () {return 0; }
3003 #endif
3004
3005 _ACEOF
3006 rm -f conftest.$ac_objext
3007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008   (eval $ac_compile) 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); } &&
3012          { ac_try='test -s conftest.$ac_objext'
3013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014   (eval $ac_try) 2>&5
3015   ac_status=$?
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); }; }; then
3018   ac_cv_c_inline=$ac_kw; break
3019 else
3020   echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023 fi
3024 rm -f conftest.$ac_objext conftest.$ac_ext
3025 done
3026
3027 fi
3028 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3029 echo "${ECHO_T}$ac_cv_c_inline" >&6
3030 case $ac_cv_c_inline in
3031   inline | yes) ;;
3032   no)
3033 cat >>confdefs.h <<\_ACEOF
3034 #define inline
3035 _ACEOF
3036  ;;
3037   *)  cat >>confdefs.h <<_ACEOF
3038 #define inline $ac_cv_c_inline
3039 _ACEOF
3040  ;;
3041 esac
3042
3043
3044 echo "$as_me:$LINENO: checking for long long int" >&5
3045 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3046 if test "${ac_cv_c_long_long+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   cat >conftest.$ac_ext <<_ACEOF
3050 #line $LINENO "configure"
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056
3057 int
3058 main ()
3059 {
3060 long long int i;
3061   ;
3062   return 0;
3063 }
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067   (eval $ac_compile) 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } &&
3071          { ac_try='test -s conftest.$ac_objext'
3072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073   (eval $ac_try) 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; }; then
3077   ac_cv_c_long_long=yes
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 ac_cv_c_long_long=no
3083 fi
3084 rm -f conftest.$ac_objext conftest.$ac_ext
3085 fi
3086 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3087 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3088   if test $ac_cv_c_long_long = yes; then
3089
3090 cat >>confdefs.h <<\_ACEOF
3091 #define HAVE_LONG_LONG 1
3092 _ACEOF
3093
3094   fi
3095 echo "$as_me:$LINENO: checking for __int64" >&5
3096 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3097 if test "${ac_cv_c___int64+set}" = set; then
3098   echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100   cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111 __int64 i;
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118   (eval $ac_compile) 2>&5
3119   ac_status=$?
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } &&
3122          { ac_try='test -s conftest.$ac_objext'
3123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124   (eval $ac_try) 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; }; then
3128   ac_cv_c___int64=yes
3129 else
3130   echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133 ac_cv_c___int64=no
3134 fi
3135 rm -f conftest.$ac_objext conftest.$ac_ext
3136 fi
3137 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3138 echo "${ECHO_T}$ac_cv_c___int64" >&6
3139   if test $ac_cv_c___int64 = yes; then
3140
3141 cat >>confdefs.h <<\_ACEOF
3142 #define HAVE___INT64 1
3143 _ACEOF
3144
3145   fi
3146
3147 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3148 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3149 if test "${gcc_cv_c__bool+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159
3160 int
3161 main ()
3162 {
3163 _Bool foo;
3164   ;
3165   return 0;
3166 }
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170   (eval $ac_compile) 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); } &&
3174          { ac_try='test -s conftest.$ac_objext'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; }; then
3180   gcc_cv_c__bool=yes
3181 else
3182   echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 gcc_cv_c__bool=no
3186 fi
3187 rm -f conftest.$ac_objext conftest.$ac_ext
3188
3189 fi
3190 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3191 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3192 if test $gcc_cv_c__bool = yes; then
3193
3194 cat >>confdefs.h <<\_ACEOF
3195 #define HAVE__BOOL 1
3196 _ACEOF
3197
3198 fi
3199
3200
3201 # sizeof(char) is 1 by definition.
3202 echo "$as_me:$LINENO: checking size of void *" >&5
3203 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3204 if test "${ac_cv_sizeof_void_p+set}" = set; then
3205   echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3208   cat >conftest.$ac_ext <<_ACEOF
3209 #line $LINENO "configure"
3210 /* confdefs.h.  */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h.  */
3215 #include "confdefs.h"
3216 #include <sys/types.h>
3217
3218
3219 int
3220 main ()
3221 {
3222 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229   (eval $ac_compile) 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } &&
3233          { ac_try='test -s conftest.$ac_objext'
3234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235   (eval $ac_try) 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; }; then
3239   ac_cv_sizeof_void_p=$ac_size
3240 else
3241   echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 fi
3245 rm -f conftest.$ac_objext conftest.$ac_ext
3246   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3247 done
3248
3249 fi
3250
3251 if test x$ac_cv_sizeof_void_p = x ; then
3252   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3253 echo "$as_me: error: cannot determine a size for void *" >&2;}
3254    { (exit 1); exit 1; }; }
3255 fi
3256 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3257 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3258
3259 cat >>confdefs.h <<_ACEOF
3260 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3261 _ACEOF
3262
3263
3264 echo "$as_me:$LINENO: checking size of short" >&5
3265 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3266 if test "${ac_cv_sizeof_short+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3270   cat >conftest.$ac_ext <<_ACEOF
3271 #line $LINENO "configure"
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277 #include "confdefs.h"
3278 #include <sys/types.h>
3279
3280
3281 int
3282 main ()
3283 {
3284 switch (0) case 0: case (sizeof (short) == $ac_size):;
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 rm -f conftest.$ac_objext
3290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291   (eval $ac_compile) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } &&
3295          { ac_try='test -s conftest.$ac_objext'
3296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297   (eval $ac_try) 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); }; }; then
3301   ac_cv_sizeof_short=$ac_size
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 fi
3307 rm -f conftest.$ac_objext conftest.$ac_ext
3308   if test x$ac_cv_sizeof_short != x ; then break; fi
3309 done
3310
3311 fi
3312
3313 if test x$ac_cv_sizeof_short = x ; then
3314   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3315 echo "$as_me: error: cannot determine a size for short" >&2;}
3316    { (exit 1); exit 1; }; }
3317 fi
3318 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3319 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3320
3321 cat >>confdefs.h <<_ACEOF
3322 #define SIZEOF_SHORT $ac_cv_sizeof_short
3323 _ACEOF
3324
3325
3326 echo "$as_me:$LINENO: checking size of int" >&5
3327 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3328 if test "${ac_cv_sizeof_int+set}" = set; then
3329   echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3332   cat >conftest.$ac_ext <<_ACEOF
3333 #line $LINENO "configure"
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3341
3342
3343 int
3344 main ()
3345 {
3346 switch (0) case 0: case (sizeof (int) == $ac_size):;
3347   ;
3348   return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353   (eval $ac_compile) 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } &&
3357          { ac_try='test -s conftest.$ac_objext'
3358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359   (eval $ac_try) 2>&5
3360   ac_status=$?
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); }; }; then
3363   ac_cv_sizeof_int=$ac_size
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 fi
3369 rm -f conftest.$ac_objext conftest.$ac_ext
3370   if test x$ac_cv_sizeof_int != x ; then break; fi
3371 done
3372
3373 fi
3374
3375 if test x$ac_cv_sizeof_int = x ; then
3376   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3377 echo "$as_me: error: cannot determine a size for int" >&2;}
3378    { (exit 1); exit 1; }; }
3379 fi
3380 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3381 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3382
3383 cat >>confdefs.h <<_ACEOF
3384 #define SIZEOF_INT $ac_cv_sizeof_int
3385 _ACEOF
3386
3387
3388 echo "$as_me:$LINENO: checking size of long" >&5
3389 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3390 if test "${ac_cv_sizeof_long+set}" = set; then
3391   echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3394   cat >conftest.$ac_ext <<_ACEOF
3395 #line $LINENO "configure"
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401 #include "confdefs.h"
3402 #include <sys/types.h>
3403
3404
3405 int
3406 main ()
3407 {
3408 switch (0) case 0: case (sizeof (long) == $ac_size):;
3409   ;
3410   return 0;
3411 }
3412 _ACEOF
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415   (eval $ac_compile) 2>&5
3416   ac_status=$?
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -s conftest.$ac_objext'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; }; then
3425   ac_cv_sizeof_long=$ac_size
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 fi
3431 rm -f conftest.$ac_objext conftest.$ac_ext
3432   if test x$ac_cv_sizeof_long != x ; then break; fi
3433 done
3434
3435 fi
3436
3437 if test x$ac_cv_sizeof_long = x ; then
3438   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3439 echo "$as_me: error: cannot determine a size for long" >&2;}
3440    { (exit 1); exit 1; }; }
3441 fi
3442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3443 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3444
3445 cat >>confdefs.h <<_ACEOF
3446 #define SIZEOF_LONG $ac_cv_sizeof_long
3447 _ACEOF
3448
3449
3450 if test $ac_cv_c_long_long = yes; then
3451   echo "$as_me:$LINENO: checking size of long long" >&5
3452 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3453 if test "${ac_cv_sizeof_long_long+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3457   cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #include "confdefs.h"
3465 #include <sys/types.h>
3466
3467
3468 int
3469 main ()
3470 {
3471 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478   (eval $ac_compile) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } &&
3482          { ac_try='test -s conftest.$ac_objext'
3483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484   (eval $ac_try) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; }; then
3488   ac_cv_sizeof_long_long=$ac_size
3489 else
3490   echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 fi
3494 rm -f conftest.$ac_objext conftest.$ac_ext
3495   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3496 done
3497
3498 fi
3499
3500 if test x$ac_cv_sizeof_long_long = x ; then
3501   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3502 echo "$as_me: error: cannot determine a size for long long" >&2;}
3503    { (exit 1); exit 1; }; }
3504 fi
3505 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3506 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3507
3508 cat >>confdefs.h <<_ACEOF
3509 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3510 _ACEOF
3511
3512
3513 fi
3514 if test $ac_cv_c___int64 = yes; then
3515   echo "$as_me:$LINENO: checking size of __int64" >&5
3516 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3517 if test "${ac_cv_sizeof___int64+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3521   cat >conftest.$ac_ext <<_ACEOF
3522 #line $LINENO "configure"
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528 #include "confdefs.h"
3529 #include <sys/types.h>
3530
3531
3532 int
3533 main ()
3534 {
3535 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 rm -f conftest.$ac_objext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542   (eval $ac_compile) 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -s conftest.$ac_objext'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; }; then
3552   ac_cv_sizeof___int64=$ac_size
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 fi
3558 rm -f conftest.$ac_objext conftest.$ac_ext
3559   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3560 done
3561
3562 fi
3563
3564 if test x$ac_cv_sizeof___int64 = x ; then
3565   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3566 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3567    { (exit 1); exit 1; }; }
3568 fi
3569 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3570 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3571
3572 cat >>confdefs.h <<_ACEOF
3573 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3574 _ACEOF
3575
3576
3577 fi
3578
3579 # -----------------
3580 # Find Ada compiler
3581 # -----------------
3582
3583 # See if GNAT has been installed
3584
3585
3586
3587 if test -n "$ac_tool_prefix"; then
3588   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   if test -n "$GNATBIND"; then
3596   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603   for ac_exec_ext in '' $ac_executable_extensions; do
3604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610 done
3611
3612 fi
3613 fi
3614 GNATBIND=$ac_cv_prog_GNATBIND
3615 if test -n "$GNATBIND"; then
3616   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3617 echo "${ECHO_T}$GNATBIND" >&6
3618 else
3619   echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3621 fi
3622
3623 fi
3624 if test -z "$ac_cv_prog_GNATBIND"; then
3625   ac_ct_GNATBIND=$GNATBIND
3626   # Extract the first word of "gnatbind", so it can be a program name with args.
3627 set dummy gnatbind; ac_word=$2
3628 echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3630 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   if test -n "$ac_ct_GNATBIND"; then
3634   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641   for ac_exec_ext in '' $ac_executable_extensions; do
3642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648 done
3649
3650   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3651 fi
3652 fi
3653 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3654 if test -n "$ac_ct_GNATBIND"; then
3655   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3656 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3657 else
3658   echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6
3660 fi
3661
3662   GNATBIND=$ac_ct_GNATBIND
3663 else
3664   GNATBIND="$ac_cv_prog_GNATBIND"
3665 fi
3666
3667 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3668 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3669 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   cat >conftest.adb <<EOF
3673 procedure conftest is begin null; end conftest;
3674 EOF
3675 gcc_cv_cc_supports_ada=no
3676 # There is a bug in old released versions of GCC which causes the
3677 # driver to exit successfully when the appropriate language module
3678 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3679 # Therefore we must check for the error message as well as an
3680 # unsuccessful exit.
3681 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3682 if test x"$errors" = x; then
3683   gcc_cv_cc_supports_ada=yes
3684   break
3685 fi
3686 rm -f conftest.*
3687 fi
3688 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3689 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3690
3691 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3692   have_gnat=yes
3693 else
3694   have_gnat=no
3695 fi
3696
3697
3698 # ---------------------
3699 # Warnings and checking
3700 # ---------------------
3701
3702 strict1_warn=
3703 if test $ac_cv_prog_cc_no_long_long = yes ; then
3704   strict1_warn="-pedantic -Wno-long-long"
3705 fi
3706
3707
3708 # If the native compiler is GCC, we can enable warnings even in stage1.
3709 # That's useful for people building cross-compilers, or just running a
3710 # quick `make'.
3711 warn_cflags=
3712 if test "x$GCC" = "xyes"; then
3713   warn_cflags='$(GCC_WARN_CFLAGS)'
3714 fi
3715
3716
3717 # Enable -Werror in bootstrap stage2 and later.
3718 # Change the default to "no" on release branches.
3719 # Check whether --enable-werror or --disable-werror was given.
3720 if test "${enable_werror+set}" = set; then
3721   enableval="$enable_werror"
3722
3723 else
3724   enable_werror=yes
3725 fi;
3726 if test x$enable_werror = xyes ; then
3727   WERROR=-Werror
3728 fi
3729
3730
3731 # Enable expensive internal checks
3732 # Check whether --enable-checking or --disable-checking was given.
3733 if test "${enable_checking+set}" = set; then
3734   enableval="$enable_checking"
3735   ac_checking=
3736 ac_tree_checking=
3737 ac_rtl_checking=
3738 ac_rtlflag_checking=
3739 ac_gc_checking=
3740 ac_gc_always_collect=
3741 ac_fold_checking=
3742 case "${enableval}" in
3743 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3744         ac_rtlflag_checking=1 ;;
3745 no)     ;;
3746 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3747         set fnord $enableval; shift
3748         IFS="$ac_save_IFS"
3749         for check
3750         do
3751                 case $check in
3752                 misc)   ac_checking=1 ;;
3753                 tree)   ac_tree_checking=1 ;;
3754                 rtlflag)        ac_rtlflag_checking=1 ;;
3755                 rtl)    ac_rtl_checking=1 ;;
3756                 gc)     ac_gc_checking=1 ;;
3757                 gcac)   ac_gc_always_collect=1 ;;
3758                 fold)   ac_fold_checking=1 ;;
3759                 valgrind)       ac_checking_valgrind=1 ;;
3760                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3761 echo "$as_me: error: unknown check category $check" >&2;}
3762    { (exit 1); exit 1; }; } ;;
3763                 esac
3764         done
3765         ;;
3766 esac
3767
3768 else
3769   # Enable some checks by default for development versions of GCC
3770 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3771 fi;
3772 nocommon_flag=""
3773 if test x$ac_checking != x ; then
3774
3775 cat >>confdefs.h <<\_ACEOF
3776 #define ENABLE_CHECKING 1
3777 _ACEOF
3778
3779   nocommon_flag=-fno-common
3780 fi
3781
3782 if test x$ac_tree_checking != x ; then
3783
3784 cat >>confdefs.h <<\_ACEOF
3785 #define ENABLE_TREE_CHECKING 1
3786 _ACEOF
3787
3788 fi
3789 if test x$ac_rtl_checking != x ; then
3790
3791 cat >>confdefs.h <<\_ACEOF
3792 #define ENABLE_RTL_CHECKING 1
3793 _ACEOF
3794
3795 fi
3796 if test x$ac_rtlflag_checking != x ; then
3797
3798 cat >>confdefs.h <<\_ACEOF
3799 #define ENABLE_RTL_FLAG_CHECKING 1
3800 _ACEOF
3801
3802 fi
3803 if test x$ac_gc_checking != x ; then
3804
3805 cat >>confdefs.h <<\_ACEOF
3806 #define ENABLE_GC_CHECKING 1
3807 _ACEOF
3808
3809 fi
3810 if test x$ac_gc_always_collect != x ; then
3811
3812 cat >>confdefs.h <<\_ACEOF
3813 #define ENABLE_GC_ALWAYS_COLLECT 1
3814 _ACEOF
3815
3816 fi
3817 if test x$ac_fold_checking != x ; then
3818
3819 cat >>confdefs.h <<\_ACEOF
3820 #define ENABLE_FOLD_CHECKING 1
3821 _ACEOF
3822
3823 fi
3824 valgrind_path_defines=
3825 valgrind_command=
3826
3827
3828 echo "$as_me:$LINENO: checking for egrep" >&5
3829 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3830 if test "${ac_cv_prog_egrep+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3834     then ac_cv_prog_egrep='grep -E'
3835     else ac_cv_prog_egrep='egrep'
3836     fi
3837 fi
3838 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3839 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3840  EGREP=$ac_cv_prog_egrep
3841
3842
3843 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3845 if test "${ac_cv_header_stdc+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   cat >conftest.$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 #include <stdlib.h>
3856 #include <stdarg.h>
3857 #include <string.h>
3858 #include <float.h>
3859
3860 int
3861 main ()
3862 {
3863
3864   ;
3865   return 0;
3866 }
3867 _ACEOF
3868 rm -f conftest.$ac_objext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870   (eval $ac_compile) 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); } &&
3874          { ac_try='test -s conftest.$ac_objext'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   ac_cv_header_stdc=yes
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 ac_cv_header_stdc=no
3886 fi
3887 rm -f conftest.$ac_objext conftest.$ac_ext
3888
3889 if test $ac_cv_header_stdc = yes; then
3890   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3891   cat >conftest.$ac_ext <<_ACEOF
3892 #line $LINENO "configure"
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898 #include <string.h>
3899
3900 _ACEOF
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902   $EGREP "memchr" >/dev/null 2>&1; then
3903   :
3904 else
3905   ac_cv_header_stdc=no
3906 fi
3907 rm -f conftest*
3908
3909 fi
3910
3911 if test $ac_cv_header_stdc = yes; then
3912   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3913   cat >conftest.$ac_ext <<_ACEOF
3914 #line $LINENO "configure"
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 #include <stdlib.h>
3921
3922 _ACEOF
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924   $EGREP "free" >/dev/null 2>&1; then
3925   :
3926 else
3927   ac_cv_header_stdc=no
3928 fi
3929 rm -f conftest*
3930
3931 fi
3932
3933 if test $ac_cv_header_stdc = yes; then
3934   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3935   if test "$cross_compiling" = yes; then
3936   :
3937 else
3938   cat >conftest.$ac_ext <<_ACEOF
3939 #line $LINENO "configure"
3940 /* confdefs.h.  */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h.  */
3945 #include <ctype.h>
3946 #if ((' ' & 0x0FF) == 0x020)
3947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3949 #else
3950 # define ISLOWER(c) \
3951                    (('a' <= (c) && (c) <= 'i') \
3952                      || ('j' <= (c) && (c) <= 'r') \
3953                      || ('s' <= (c) && (c) <= 'z'))
3954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3955 #endif
3956
3957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3958 int
3959 main ()
3960 {
3961   int i;
3962   for (i = 0; i < 256; i++)
3963     if (XOR (islower (i), ISLOWER (i))
3964         || toupper (i) != TOUPPER (i))
3965       exit(2);
3966   exit (0);
3967 }
3968 _ACEOF
3969 rm -f conftest$ac_exeext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3971   (eval $ac_link) 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976   (eval $ac_try) 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }; }; then
3980   :
3981 else
3982   echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 ( exit $ac_status )
3987 ac_cv_header_stdc=no
3988 fi
3989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990 fi
3991 fi
3992 fi
3993 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3994 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3995 if test $ac_cv_header_stdc = yes; then
3996
3997 cat >>confdefs.h <<\_ACEOF
3998 #define STDC_HEADERS 1
3999 _ACEOF
4000
4001 fi
4002
4003 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4014                   inttypes.h stdint.h unistd.h
4015 do
4016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4017 echo "$as_me:$LINENO: checking for $ac_header" >&5
4018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   cat >conftest.$ac_ext <<_ACEOF
4023 #line $LINENO "configure"
4024 /* confdefs.h.  */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h.  */
4029 $ac_includes_default
4030
4031 #include <$ac_header>
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035   (eval $ac_compile) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } &&
4039          { ac_try='test -s conftest.$ac_objext'
4040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041   (eval $ac_try) 2>&5
4042   ac_status=$?
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); }; }; then
4045   eval "$as_ac_Header=yes"
4046 else
4047   echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4049
4050 eval "$as_ac_Header=no"
4051 fi
4052 rm -f conftest.$ac_objext conftest.$ac_ext
4053 fi
4054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4057   cat >>confdefs.h <<_ACEOF
4058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4059 _ACEOF
4060
4061 fi
4062
4063 done
4064
4065
4066 if test "${ac_cv_header_valgrind_h+set}" = set; then
4067   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4068 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4069 if test "${ac_cv_header_valgrind_h+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 fi
4072 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4073 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4074 else
4075   # Is the header compilable?
4076 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4077 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4078 cat >conftest.$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4080 /* confdefs.h.  */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h.  */
4085 $ac_includes_default
4086 #include <valgrind.h>
4087 _ACEOF
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090   (eval $ac_compile) 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } &&
4094          { ac_try='test -s conftest.$ac_objext'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; }; then
4100   ac_header_compiler=yes
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105 ac_header_compiler=no
4106 fi
4107 rm -f conftest.$ac_objext conftest.$ac_ext
4108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4109 echo "${ECHO_T}$ac_header_compiler" >&6
4110
4111 # Is the header present?
4112 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4113 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4114 cat >conftest.$ac_ext <<_ACEOF
4115 #line $LINENO "configure"
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4121 #include <valgrind.h>
4122 _ACEOF
4123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4124   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4125   ac_status=$?
4126   grep -v '^ *+' conftest.er1 >conftest.err
4127   rm -f conftest.er1
4128   cat conftest.err >&5
4129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130   (exit $ac_status); } >/dev/null; then
4131   if test -s conftest.err; then
4132     ac_cpp_err=$ac_c_preproc_warn_flag
4133   else
4134     ac_cpp_err=
4135   fi
4136 else
4137   ac_cpp_err=yes
4138 fi
4139 if test -z "$ac_cpp_err"; then
4140   ac_header_preproc=yes
4141 else
4142   echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4144
4145   ac_header_preproc=no
4146 fi
4147 rm -f conftest.err conftest.$ac_ext
4148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4149 echo "${ECHO_T}$ac_header_preproc" >&6
4150
4151 # So?  What about this header?
4152 case $ac_header_compiler:$ac_header_preproc in
4153   yes:no )
4154     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4155 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4156     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4157 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4158     (
4159       cat <<\_ASBOX
4160 ## ------------------------------------ ##
4161 ## Report this to bug-autoconf@gnu.org. ##
4162 ## ------------------------------------ ##
4163 _ASBOX
4164     ) |
4165       sed "s/^/$as_me: WARNING:     /" >&2
4166     ;;
4167   no:yes )
4168     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4169 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4170     { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4171 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4172     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4173 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4174     (
4175       cat <<\_ASBOX
4176 ## ------------------------------------ ##
4177 ## Report this to bug-autoconf@gnu.org. ##
4178 ## ------------------------------------ ##
4179 _ASBOX
4180     ) |
4181       sed "s/^/$as_me: WARNING:     /" >&2
4182     ;;
4183 esac
4184 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4185 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4186 if test "${ac_cv_header_valgrind_h+set}" = set; then
4187   echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189   ac_cv_header_valgrind_h=$ac_header_preproc
4190 fi
4191 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4192 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4193
4194 fi
4195 if test $ac_cv_header_valgrind_h = yes; then
4196   have_valgrind_h=yes
4197 else
4198   have_valgrind_h=no
4199 fi
4200
4201
4202
4203 if test x$ac_checking_valgrind != x ; then
4204   # It is certainly possible that there's valgrind but no valgrind.h.
4205   # GCC relies on making annotations so we must have both.
4206   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4207 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4208   cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215 #include <valgrind/memcheck.h>
4216 #ifndef VALGRIND_DISCARD
4217 #error VALGRIND_DISCARD not defined
4218 #endif
4219 _ACEOF
4220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4222   ac_status=$?
4223   grep -v '^ *+' conftest.er1 >conftest.err
4224   rm -f conftest.er1
4225   cat conftest.err >&5
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } >/dev/null; then
4228   if test -s conftest.err; then
4229     ac_cpp_err=$ac_c_preproc_warn_flag
4230   else
4231     ac_cpp_err=
4232   fi
4233 else
4234   ac_cpp_err=yes
4235 fi
4236 if test -z "$ac_cpp_err"; then
4237   gcc_cv_header_valgrind_memcheck_h=yes
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242   gcc_cv_header_valgrind_memcheck_h=no
4243 fi
4244 rm -f conftest.err conftest.$ac_ext
4245   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4246 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4247   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4248 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4249   cat >conftest.$ac_ext <<_ACEOF
4250 #line $LINENO "configure"
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 #include <memcheck.h>
4257 #ifndef VALGRIND_DISCARD
4258 #error VALGRIND_DISCARD not defined
4259 #endif
4260 _ACEOF
4261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4262   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4269   if test -s conftest.err; then
4270     ac_cpp_err=$ac_c_preproc_warn_flag
4271   else
4272     ac_cpp_err=
4273   fi
4274 else
4275   ac_cpp_err=yes
4276 fi
4277 if test -z "$ac_cpp_err"; then
4278   gcc_cv_header_memcheck_h=yes
4279 else
4280   echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283   gcc_cv_header_memcheck_h=no
4284 fi
4285 rm -f conftest.err conftest.$ac_ext
4286   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4287 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4288
4289 # Prepare PATH_SEPARATOR.
4290 # The user is always right.
4291 if test "${PATH_SEPARATOR+set}" != set; then
4292   echo "#! /bin/sh" >conf$$.sh
4293   echo  "exit 0"   >>conf$$.sh
4294   chmod +x conf$$.sh
4295   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4296     PATH_SEPARATOR=';'
4297   else
4298     PATH_SEPARATOR=:
4299   fi
4300   rm -f conf$$.sh
4301 fi
4302
4303 # Find out how to test for executable files. Don't use a zero-byte file,
4304 # as systems may use methods other than mode bits to determine executability.
4305 cat >conf$$.file <<_ASEOF
4306 #! /bin/sh
4307 exit 0
4308 _ASEOF
4309 chmod +x conf$$.file
4310 if test -x conf$$.file >/dev/null 2>&1; then
4311   ac_executable_p="test -x"
4312 else
4313   ac_executable_p="test -f"
4314 fi
4315 rm -f conf$$.file
4316
4317 # Extract the first word of "valgrind", so it can be a program name with args.
4318 set dummy valgrind; ac_word=$2
4319 echo "$as_me:$LINENO: checking for $ac_word" >&5
4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4321 if test "${ac_cv_path_valgrind_path+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   case "$valgrind_path" in
4325   [\\/]* | ?:[\\/]*)
4326     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4327     ;;
4328   *)
4329     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4330     for ac_dir in $PATH; do
4331       IFS="$ac_save_IFS"
4332       test -z "$ac_dir" && ac_dir=.
4333       for ac_exec_ext in '' $ac_executable_extensions; do
4334         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4335           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4336             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4337             break 2
4338           fi
4339         fi
4340       done
4341     done
4342     IFS="$ac_save_IFS"
4343     ;;
4344 esac
4345 fi
4346 valgrind_path="$ac_cv_path_valgrind_path"
4347 if test -n "$valgrind_path"; then
4348   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4349 echo "${ECHO_T}$valgrind_path" >&6
4350 else
4351   echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4353 fi
4354
4355   if test "x$valgrind_path" = "x" \
4356     || (test $have_valgrind_h = no \
4357         && test $gcc_cv_header_memcheck_h = no \
4358         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4359         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4360 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4361    { (exit 1); exit 1; }; }
4362   fi
4363   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4364   valgrind_command="$valgrind_path -q"
4365
4366 cat >>confdefs.h <<\_ACEOF
4367 #define ENABLE_VALGRIND_CHECKING 1
4368 _ACEOF
4369
4370   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4371
4372 cat >>confdefs.h <<\_ACEOF
4373 #define HAVE_VALGRIND_MEMCHECK_H 1
4374 _ACEOF
4375
4376   fi
4377   if test $gcc_cv_header_memcheck_h = yes; then
4378
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_MEMCHECK_H 1
4381 _ACEOF
4382
4383   fi
4384 fi
4385
4386
4387
4388 # Enable code coverage collection
4389 # Check whether --enable-coverage or --disable-coverage was given.
4390 if test "${enable_coverage+set}" = set; then
4391   enableval="$enable_coverage"
4392   case "${enableval}" in
4393 yes|noopt)
4394         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4395         ;;
4396 opt)
4397         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4398         ;;
4399 *)
4400         { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4401 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4402    { (exit 1); exit 1; }; }
4403         ;;
4404 esac
4405 else
4406   coverage_flags=""
4407 fi;
4408
4409
4410 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4411 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4412   enableval="$enable_gather_detailed_mem_stats"
4413
4414 else
4415   enable_gather_detailed_mem_stats=no
4416 fi;
4417 if test x$enable_gather_detailed_mem_stats = xyes ; then
4418
4419 cat >>confdefs.h <<\_ACEOF
4420 #define GATHER_STATISTICS 1
4421 _ACEOF
4422
4423 fi
4424
4425 # -------------------------------
4426 # Miscenalleous configure options
4427 # -------------------------------
4428
4429 # With stabs
4430
4431 # Check whether --with-stabs or --without-stabs was given.
4432 if test "${with_stabs+set}" = set; then
4433   withval="$with_stabs"
4434   stabs="$with_stabs"
4435 else
4436   stabs=no
4437 fi;
4438
4439 # Determine whether or not multilibs are enabled.
4440 # Check whether --enable-multilib or --disable-multilib was given.
4441 if test "${enable_multilib+set}" = set; then
4442   enableval="$enable_multilib"
4443
4444 else
4445   enable_multilib=yes
4446 fi;
4447
4448
4449 # Enable __cxa_atexit for C++.
4450 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4451 if test "${enable___cxa_atexit+set}" = set; then
4452   enableval="$enable___cxa_atexit"
4453
4454 fi;
4455
4456 # Enable threads
4457 # Pass with no value to take the default
4458 # Pass with a value to specify a thread package
4459 # Check whether --enable-threads or --disable-threads was given.
4460 if test "${enable_threads+set}" = set; then
4461   enableval="$enable_threads"
4462
4463 else
4464   enable_threads=''
4465 fi;
4466 # Save in case it gets overwritten in config.gcc
4467 enable_threads_flag=$enable_threads
4468
4469 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4470 if test "${enable_objc_gc+set}" = set; then
4471   enableval="$enable_objc_gc"
4472   if test x$enable_objc_gc = xno; then
4473         objc_boehm_gc=''
4474 else
4475         objc_boehm_gc=1
4476 fi
4477 else
4478   objc_boehm_gc=''
4479 fi;
4480
4481
4482 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4483 if test "${with_dwarf2+set}" = set; then
4484   withval="$with_dwarf2"
4485   dwarf2="$with_dwarf2"
4486 else
4487   dwarf2=no
4488 fi;
4489
4490 # Check whether --enable-shared or --disable-shared was given.
4491 if test "${enable_shared+set}" = set; then
4492   enableval="$enable_shared"
4493
4494   case $enable_shared in
4495   yes | no) ;;
4496   *)
4497     enable_shared=no
4498     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4499     for pkg in $enableval; do
4500       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4501         enable_shared=yes
4502       fi
4503     done
4504     IFS="$ac_save_ifs"
4505     ;;
4506   esac
4507
4508 else
4509   enable_shared=yes
4510 fi;
4511
4512
4513
4514 # Check whether --with-sysroot or --without-sysroot was given.
4515 if test "${with_sysroot+set}" = set; then
4516   withval="$with_sysroot"
4517
4518  case ${with_sysroot} in
4519  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4520  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4521  esac
4522
4523  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4524  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4525
4526  if test "x$exec_prefix" = xNONE; then
4527   if test "x$prefix" = xNONE; then
4528    test_prefix=/usr/local
4529   else
4530    test_prefix=$prefix
4531   fi
4532  else
4533   test_prefix=$exec_prefix
4534  fi
4535  case ${TARGET_SYSTEM_ROOT} in
4536  "${test_prefix}"|"${test_prefix}/"*|\
4537  '${exec_prefix}'|'${exec_prefix}/'*)
4538    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4539    TARGET_SYSTEM_ROOT_DEFINE="$t"
4540    ;;
4541  esac
4542
4543 else
4544
4545  TARGET_SYSTEM_ROOT=
4546  TARGET_SYSTEM_ROOT_DEFINE=
4547  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4548
4549 fi;
4550
4551
4552
4553
4554 # Build with intermodule optimisations
4555 # Check whether --enable-intermodule or --disable-intermodule was given.
4556 if test "${enable_intermodule+set}" = set; then
4557   enableval="$enable_intermodule"
4558   case ${enable_intermodule} in
4559   yes) onestep="-onestep";;
4560   *) onestep="";;
4561 esac
4562 else
4563   onestep=""
4564 fi;
4565
4566
4567 # -------------------------
4568 # Checks for other programs
4569 # -------------------------
4570
4571 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4572 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4574 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   cat >conftest.make <<\_ACEOF
4578 all:
4579         @echo 'ac_maketemp="$(MAKE)"'
4580 _ACEOF
4581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4582 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4583 if test -n "$ac_maketemp"; then
4584   eval ac_cv_prog_make_${ac_make}_set=yes
4585 else
4586   eval ac_cv_prog_make_${ac_make}_set=no
4587 fi
4588 rm -f conftest.make
4589 fi
4590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4591   echo "$as_me:$LINENO: result: yes" >&5
4592 echo "${ECHO_T}yes" >&6
4593   SET_MAKE=
4594 else
4595   echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4597   SET_MAKE="MAKE=${MAKE-make}"
4598 fi
4599
4600
4601 # Find some useful tools
4602 for ac_prog in gawk mawk nawk awk
4603 do
4604   # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_AWK+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   if test -n "$AWK"; then
4612   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619   for ac_exec_ext in '' $ac_executable_extensions; do
4620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621     ac_cv_prog_AWK="$ac_prog"
4622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626 done
4627
4628 fi
4629 fi
4630 AWK=$ac_cv_prog_AWK
4631 if test -n "$AWK"; then
4632   echo "$as_me:$LINENO: result: $AWK" >&5
4633 echo "${ECHO_T}$AWK" >&6
4634 else
4635   echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4637 fi
4638
4639   test -n "$AWK" && break
4640 done
4641
4642 # We need awk to run opts.sh (to create options.c and options.h).
4643 # Bail out if it's missing.
4644 case ${AWK} in
4645   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4646 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4647    { (exit 1); exit 1; }; } ;;
4648 esac
4649
4650 echo "$as_me:$LINENO: checking whether ln works" >&5
4651 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4652 if test "${gcc_cv_prog_LN+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   rm -f conftestdata_t
4656 echo >conftestdata_f
4657 if ln conftestdata_f conftestdata_t 2>/dev/null
4658 then
4659   gcc_cv_prog_LN="ln"
4660 else
4661   if ln -s conftestdata_f conftestdata_t 2>/dev/null
4662   then
4663     gcc_cv_prog_LN="ln -s"
4664   else
4665     gcc_cv_prog_LN=cp
4666   fi
4667 fi
4668 rm -f conftestdata_f conftestdata_t
4669
4670 fi
4671 LN="$gcc_cv_prog_LN"
4672 if test "$gcc_cv_prog_LN" = "ln"; then
4673   echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6
4675 else
4676   if test "$gcc_cv_prog_LN" = "ln -s"; then
4677     echo "$as_me:$LINENO: result: no, using ln -s" >&5
4678 echo "${ECHO_T}no, using ln -s" >&6
4679   else
4680     echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4681 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4682   fi
4683 fi
4684
4685 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4686 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4687 if test "${gcc_cv_prog_LN_S+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   rm -f conftestdata_t
4691 echo >conftestdata_f
4692 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4693 then
4694   gcc_cv_prog_LN_S="ln -s"
4695 else
4696   if ln conftestdata_f conftestdata_t 2>/dev/null
4697   then
4698     gcc_cv_prog_LN_S=ln
4699   else
4700     gcc_cv_prog_LN_S=cp
4701   fi
4702 fi
4703 rm -f conftestdata_f conftestdata_t
4704
4705 fi
4706 LN_S="$gcc_cv_prog_LN_S"
4707 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4708   echo "$as_me:$LINENO: result: yes" >&5
4709 echo "${ECHO_T}yes" >&6
4710 else
4711   if test "$gcc_cv_prog_LN_S" = "ln"; then
4712     echo "$as_me:$LINENO: result: no, using ln" >&5
4713 echo "${ECHO_T}no, using ln" >&6
4714   else
4715     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4716 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4717   fi
4718 fi
4719
4720 if test -n "$ac_tool_prefix"; then
4721   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4723 echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4725 if test "${ac_cv_prog_RANLIB+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   if test -n "$RANLIB"; then
4729   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736   for ac_exec_ext in '' $ac_executable_extensions; do
4737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740     break 2
4741   fi
4742 done
4743 done
4744
4745 fi
4746 fi
4747 RANLIB=$ac_cv_prog_RANLIB
4748 if test -n "$RANLIB"; then
4749   echo "$as_me:$LINENO: result: $RANLIB" >&5
4750 echo "${ECHO_T}$RANLIB" >&6
4751 else
4752   echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6
4754 fi
4755
4756 fi
4757 if test -z "$ac_cv_prog_RANLIB"; then
4758   ac_ct_RANLIB=$RANLIB
4759   # Extract the first word of "ranlib", so it can be a program name with args.
4760 set dummy ranlib; ac_word=$2
4761 echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   if test -n "$ac_ct_RANLIB"; then
4767   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774   for ac_exec_ext in '' $ac_executable_extensions; do
4775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776     ac_cv_prog_ac_ct_RANLIB="ranlib"
4777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778     break 2
4779   fi
4780 done
4781 done
4782
4783   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4784 fi
4785 fi
4786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4787 if test -n "$ac_ct_RANLIB"; then
4788   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4789 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4790 else
4791   echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4793 fi
4794
4795   RANLIB=$ac_ct_RANLIB
4796 else
4797   RANLIB="$ac_cv_prog_RANLIB"
4798 fi
4799
4800 # Find a good install program.  We prefer a C program (faster),
4801 # so one script is as good as another.  But avoid the broken or
4802 # incompatible versions:
4803 # SysV /etc/install, /usr/sbin/install
4804 # SunOS /usr/etc/install
4805 # IRIX /sbin/install
4806 # AIX /bin/install
4807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4809 # ./install, which can be erroneously created by make from ./install.sh.
4810 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4811 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4812 if test -z "$INSTALL"; then
4813 if test "${ac_cv_path_install+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4817   for ac_dir in $PATH; do
4818     # Account for people who put trailing slashes in PATH elements.
4819     case "$ac_dir/" in
4820     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4821     *)
4822       # OSF1 and SCO ODT 3.0 have their own names for install.
4823       for ac_prog in ginstall scoinst install; do
4824         if test -f $ac_dir/$ac_prog; then
4825           if test $ac_prog = install &&
4826             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4827             # AIX install.  It has an incompatible calling convention.
4828             # OSF/1 installbsd also uses dspmsg, but is usable.
4829             :
4830           else
4831             ac_cv_path_install="$ac_dir/$ac_prog -c"
4832             break 2
4833           fi
4834         fi
4835       done
4836       ;;
4837     esac
4838   done
4839   IFS="$ac_save_IFS"
4840
4841 fi
4842   if test "${ac_cv_path_install+set}" = set; then
4843     INSTALL="$ac_cv_path_install"
4844   else
4845     # As a last resort, use the slow shell script.  We don't cache a
4846     # path for INSTALL within a source directory, because that will
4847     # break other packages using the cache if that directory is
4848     # removed, or if the path is relative.
4849     INSTALL="$ac_install_sh"
4850   fi
4851 fi
4852 echo "$as_me:$LINENO: result: $INSTALL" >&5
4853 echo "${ECHO_T}$INSTALL" >&6
4854
4855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4856 # It thinks the first close brace ends the variable substitution.
4857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4858
4859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4860
4861
4862 # See if cmp has --ignore-initial.
4863 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4864 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4865 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868    echo abfoo >t1
4869   echo cdfoo >t2
4870   gcc_cv_prog_cmp_skip=slowcompare
4871   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4872     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4873       :
4874     else
4875       gcc_cv_prog_cmp_skip=gnucompare
4876     fi
4877   fi
4878   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4879     if cmp t1 t2 2 2 > /dev/null 2>&1; then
4880       if cmp t1 t2 1 1 > /dev/null 2>&1; then
4881         :
4882       else
4883         gcc_cv_prog_cmp_skip=fastcompare
4884       fi
4885     fi
4886   fi
4887   rm t1 t2
4888
4889 fi
4890 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4891 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4892 make_compare_target=$gcc_cv_prog_cmp_skip
4893
4894
4895
4896 # See if we have the mktemp command.
4897 # Extract the first word of "mktemp", so it can be a program name with args.
4898 set dummy mktemp; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   if test -n "$have_mktemp_command"; then
4905   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912   for ac_exec_ext in '' $ac_executable_extensions; do
4913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914     ac_cv_prog_have_mktemp_command="yes"
4915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919 done
4920
4921   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4922 fi
4923 fi
4924 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4925 if test -n "$have_mktemp_command"; then
4926   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4927 echo "${ECHO_T}$have_mktemp_command" >&6
4928 else
4929   echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6
4931 fi
4932
4933
4934 # Do we have a single-tree copy of texinfo?
4935 if test -f $srcdir/../texinfo/Makefile.in; then
4936   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4937   gcc_cv_prog_makeinfo_modern=yes
4938   echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4939 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4940 else
4941   # See if makeinfo has been installed and is modern enough
4942   # that we can use it.
4943   # Extract the first word of "makeinfo", so it can be a program name with args.
4944 set dummy makeinfo; ac_word=$2
4945 echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4947 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   if test -n "$MAKEINFO"; then
4951   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958   for ac_exec_ext in '' $ac_executable_extensions; do
4959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960     ac_cv_prog_MAKEINFO="makeinfo"
4961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965 done
4966
4967 fi
4968 fi
4969 MAKEINFO=$ac_cv_prog_MAKEINFO
4970 if test -n "$MAKEINFO"; then
4971   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4972 echo "${ECHO_T}$MAKEINFO" >&6
4973 else
4974   echo "$as_me:$LINENO: result: no" >&5
4975 echo "${ECHO_T}no" >&6
4976 fi
4977
4978 if test -n "$MAKEINFO"; then
4979   # Found it, now check the version.
4980   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4981 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4982 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4983   echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985     ac_prog_version=`$MAKEINFO --version 2>&1 |
4986                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4987   echo "configure:4987: version of makeinfo is $ac_prog_version" >&5
4988   case $ac_prog_version in
4989     '')     gcc_cv_prog_makeinfo_modern=no;;
4990     4.[2-9]*)
4991             gcc_cv_prog_makeinfo_modern=yes;;
4992     *)      gcc_cv_prog_makeinfo_modern=no;;
4993   esac
4994
4995 fi
4996 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
4997 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
4998 else
4999   gcc_cv_prog_makeinfo_modern=no
5000 fi
5001
5002 fi
5003
5004 if test $gcc_cv_prog_makeinfo_modern = no; then
5005   { echo "$as_me:$LINENO: WARNING:
5006 *** Makeinfo is missing or too old.
5007 *** Info documentation will not be built." >&5
5008 echo "$as_me: WARNING:
5009 *** Makeinfo is missing or too old.
5010 *** Info documentation will not be built." >&2;}
5011   BUILD_INFO=
5012 else
5013   BUILD_INFO=info
5014 fi
5015
5016 # Is pod2man recent enough to regenerate manpages?
5017 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5018 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5019 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5020   echo "$as_me:$LINENO: result: yes" >&5
5021 echo "${ECHO_T}yes" >&6
5022   GENERATED_MANPAGES=generated-manpages
5023 else
5024   echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6
5026   GENERATED_MANPAGES=
5027 fi
5028
5029 # How about lex?
5030 if test -f $srcdir/../flex/skel.c; then
5031   FLEX='$(objdir)/../flex/flex'
5032 else
5033   # Extract the first word of "flex", so it can be a program name with args.
5034 set dummy flex; ac_word=$2
5035 echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5037 if test "${ac_cv_prog_FLEX+set}" = set; then
5038   echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040   if test -n "$FLEX"; then
5041   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046   IFS=$as_save_IFS
5047   test -z "$as_dir" && as_dir=.
5048   for ac_exec_ext in '' $ac_executable_extensions; do
5049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050     ac_cv_prog_FLEX="flex"
5051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052     break 2
5053   fi
5054 done
5055 done
5056
5057   test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5058 fi
5059 fi
5060 FLEX=$ac_cv_prog_FLEX
5061 if test -n "$FLEX"; then
5062   echo "$as_me:$LINENO: result: $FLEX" >&5
5063 echo "${ECHO_T}$FLEX" >&6
5064 else
5065   echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6
5067 fi
5068
5069 fi
5070
5071 # Bison?
5072 # The -L switch is so bison can find its skeleton file.
5073 if test -f $srcdir/../bison/bison.simple; then
5074   BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5075 else
5076   # Extract the first word of "bison", so it can be a program name with args.
5077 set dummy bison; ac_word=$2
5078 echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5080 if test "${ac_cv_prog_BISON+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   if test -n "$BISON"; then
5084   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089   IFS=$as_save_IFS
5090   test -z "$as_dir" && as_dir=.
5091   for ac_exec_ext in '' $ac_executable_extensions; do
5092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093     ac_cv_prog_BISON="bison"
5094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095     break 2
5096   fi
5097 done
5098 done
5099
5100   test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5101 fi
5102 fi
5103 BISON=$ac_cv_prog_BISON
5104 if test -n "$BISON"; then
5105   echo "$as_me:$LINENO: result: $BISON" >&5
5106 echo "${ECHO_T}$BISON" >&6
5107 else
5108   echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6
5110 fi
5111
5112 fi
5113
5114 # --------------------
5115 # Checks for C headers
5116 # --------------------
5117
5118 echo "$as_me:$LINENO: checking for GNU C library" >&5
5119 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5120 if test "${gcc_cv_glibc+set}" = set; then
5121   echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123   cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5125 /* confdefs.h.  */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h.  */
5130 #include <features.h>
5131 int
5132 main ()
5133 {
5134
5135 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5136 #error Not a GNU C library system
5137 #endif
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 rm -f conftest.$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144   (eval $ac_compile) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } &&
5148          { ac_try='test -s conftest.$ac_objext'
5149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150   (eval $ac_try) 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); }; }; then
5154   gcc_cv_glibc=yes
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 gcc_cv_glibc=no
5160 fi
5161 rm -f conftest.$ac_objext conftest.$ac_ext
5162 fi
5163
5164 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5165 echo "${ECHO_T}$gcc_cv_glibc" >&6
5166 if test $gcc_cv_glibc = yes; then
5167
5168 cat >>confdefs.h <<\_ACEOF
5169 #define _GNU_SOURCE 1
5170 _ACEOF
5171
5172 fi
5173
5174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5176 if test "${ac_cv_header_stdc+set}" = set; then
5177   echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179   cat >conftest.$ac_ext <<_ACEOF
5180 #line $LINENO "configure"
5181 /* confdefs.h.  */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h.  */
5186 #include <stdlib.h>
5187 #include <stdarg.h>
5188 #include <string.h>
5189 #include <float.h>
5190
5191 int
5192 main ()
5193 {
5194
5195   ;
5196   return 0;
5197 }
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201   (eval $ac_compile) 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); } &&
5205          { ac_try='test -s conftest.$ac_objext'
5206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207   (eval $ac_try) 2>&5
5208   ac_status=$?
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); }; }; then
5211   ac_cv_header_stdc=yes
5212 else
5213   echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5215
5216 ac_cv_header_stdc=no
5217 fi
5218 rm -f conftest.$ac_objext conftest.$ac_ext
5219
5220 if test $ac_cv_header_stdc = yes; then
5221   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5222   cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5224 /* confdefs.h.  */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h.  */
5229 #include <string.h>
5230
5231 _ACEOF
5232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233   $EGREP "memchr" >/dev/null 2>&1; then
5234   :
5235 else
5236   ac_cv_header_stdc=no
5237 fi
5238 rm -f conftest*
5239
5240 fi
5241
5242 if test $ac_cv_header_stdc = yes; then
5243   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5244   cat >conftest.$ac_ext <<_ACEOF
5245 #line $LINENO "configure"
5246 /* confdefs.h.  */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h.  */
5251 #include <stdlib.h>
5252
5253 _ACEOF
5254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5255   $EGREP "free" >/dev/null 2>&1; then
5256   :
5257 else
5258   ac_cv_header_stdc=no
5259 fi
5260 rm -f conftest*
5261
5262 fi
5263
5264 if test $ac_cv_header_stdc = yes; then
5265   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5266   if test "$cross_compiling" = yes; then
5267   :
5268 else
5269   cat >conftest.$ac_ext <<_ACEOF
5270 #line $LINENO "configure"
5271 /* confdefs.h.  */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h.  */
5276 #include <ctype.h>
5277 #if ((' ' & 0x0FF) == 0x020)
5278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5280 #else
5281 # define ISLOWER(c) \
5282                    (('a' <= (c) && (c) <= 'i') \
5283                      || ('j' <= (c) && (c) <= 'r') \
5284                      || ('s' <= (c) && (c) <= 'z'))
5285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5286 #endif
5287
5288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5289 int
5290 main ()
5291 {
5292   int i;
5293   for (i = 0; i < 256; i++)
5294     if (XOR (islower (i), ISLOWER (i))
5295         || toupper (i) != TOUPPER (i))
5296       exit(2);
5297   exit (0);
5298 }
5299 _ACEOF
5300 rm -f conftest$ac_exeext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5302   (eval $ac_link) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; }; then
5311   :
5312 else
5313   echo "$as_me: program exited with status $ac_status" >&5
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5316
5317 ( exit $ac_status )
5318 ac_cv_header_stdc=no
5319 fi
5320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5321 fi
5322 fi
5323 fi
5324 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5325 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5326 if test $ac_cv_header_stdc = yes; then
5327
5328 cat >>confdefs.h <<\_ACEOF
5329 #define STDC_HEADERS 1
5330 _ACEOF
5331
5332 fi
5333
5334 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5335 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5336 if test "${ac_cv_header_time+set}" = set; then
5337   echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339   cat >conftest.$ac_ext <<_ACEOF
5340 #line $LINENO "configure"
5341 /* confdefs.h.  */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h.  */
5346 #include <sys/types.h>
5347 #include <sys/time.h>
5348 #include <time.h>
5349
5350 int
5351 main ()
5352 {
5353 if ((struct tm *) 0)
5354 return 0;
5355   ;
5356   return 0;
5357 }
5358 _ACEOF
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361   (eval $ac_compile) 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); } &&
5365          { ac_try='test -s conftest.$ac_objext'
5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367   (eval $ac_try) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; }; then
5371   ac_cv_header_time=yes
5372 else
5373   echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_cv_header_time=no
5377 fi
5378 rm -f conftest.$ac_objext conftest.$ac_ext
5379 fi
5380 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5381 echo "${ECHO_T}$ac_cv_header_time" >&6
5382 if test $ac_cv_header_time = yes; then
5383
5384 cat >>confdefs.h <<\_ACEOF
5385 #define TIME_WITH_SYS_TIME 1
5386 _ACEOF
5387
5388 fi
5389
5390 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5391 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5392 if test "${ac_cv_header_stdbool_h+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   cat >conftest.$ac_ext <<_ACEOF
5396 #line $LINENO "configure"
5397 /* confdefs.h.  */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h.  */
5402 #include <stdbool.h>
5403 int
5404 main ()
5405 {
5406 bool foo = false;
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413   (eval $ac_compile) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } &&
5417          { ac_try='test -s conftest.$ac_objext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   ac_cv_header_stdbool_h=yes
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_cv_header_stdbool_h=no
5429 fi
5430 rm -f conftest.$ac_objext conftest.$ac_ext
5431 fi
5432 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5433 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5434 if test $ac_cv_header_stdbool_h = yes; then
5435
5436 cat >>confdefs.h <<\_ACEOF
5437 #define HAVE_STDBOOL_H 1
5438 _ACEOF
5439
5440 fi
5441
5442 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5443 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5444 if test "${gcc_cv_header_string+set}" = set; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447   cat >conftest.$ac_ext <<_ACEOF
5448 #line $LINENO "configure"
5449 /* confdefs.h.  */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h.  */
5454 #include <string.h>
5455 #include <strings.h>
5456 int
5457 main ()
5458 {
5459
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466   (eval $ac_compile) 2>&5
5467   ac_status=$?
5468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469   (exit $ac_status); } &&
5470          { ac_try='test -s conftest.$ac_objext'
5471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472   (eval $ac_try) 2>&5
5473   ac_status=$?
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); }; }; then
5476   gcc_cv_header_string=yes
5477 else
5478   echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 gcc_cv_header_string=no
5482 fi
5483 rm -f conftest.$ac_objext conftest.$ac_ext
5484 fi
5485 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5486 echo "${ECHO_T}$gcc_cv_header_string" >&6
5487 if test $gcc_cv_header_string = yes; then
5488
5489 cat >>confdefs.h <<\_ACEOF
5490 #define STRING_WITH_STRINGS 1
5491 _ACEOF
5492
5493 fi
5494
5495 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5496 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5497 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5502 /* confdefs.h.  */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h.  */
5507 #include <sys/types.h>
5508 #include <sys/wait.h>
5509 #ifndef WEXITSTATUS
5510 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5511 #endif
5512 #ifndef WIFEXITED
5513 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5514 #endif
5515
5516 int
5517 main ()
5518 {
5519   int s;
5520   wait (&s);
5521   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5522   ;
5523   return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528   (eval $ac_compile) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } &&
5532          { ac_try='test -s conftest.$ac_objext'
5533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; }; then
5538   ac_cv_header_sys_wait_h=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543 ac_cv_header_sys_wait_h=no
5544 fi
5545 rm -f conftest.$ac_objext conftest.$ac_ext
5546 fi
5547 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5548 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5549 if test $ac_cv_header_sys_wait_h = yes; then
5550
5551 cat >>confdefs.h <<\_ACEOF
5552 #define HAVE_SYS_WAIT_H 1
5553 _ACEOF
5554
5555 fi
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5579                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5580                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5581                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5582 do
5583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5585   echo "$as_me:$LINENO: checking for $ac_header" >&5
5586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 fi
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592 else
5593   # Is the header compilable?
5594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5596 cat >conftest.$ac_ext <<_ACEOF
5597 #line $LINENO "configure"
5598 /* confdefs.h.  */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h.  */
5603 $ac_includes_default
5604 #include <$ac_header>
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608   (eval $ac_compile) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } &&
5612          { ac_try='test -s conftest.$ac_objext'
5613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614   (eval $ac_try) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }; }; then
5618   ac_header_compiler=yes
5619 else
5620   echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ac_header_compiler=no
5624 fi
5625 rm -f conftest.$ac_objext conftest.$ac_ext
5626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5627 echo "${ECHO_T}$ac_header_compiler" >&6
5628
5629 # Is the header present?
5630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5632 cat >conftest.$ac_ext <<_ACEOF
5633 #line $LINENO "configure"
5634 /* confdefs.h.  */
5635 _ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h.  */
5639 #include <$ac_header>
5640 _ACEOF
5641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5643   ac_status=$?
5644   grep -v '^ *+' conftest.er1 >conftest.err
5645   rm -f conftest.er1
5646   cat conftest.err >&5
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); } >/dev/null; then
5649   if test -s conftest.err; then
5650     ac_cpp_err=$ac_c_preproc_warn_flag
5651   else
5652     ac_cpp_err=
5653   fi
5654 else
5655   ac_cpp_err=yes
5656 fi
5657 if test -z "$ac_cpp_err"; then
5658   ac_header_preproc=yes
5659 else
5660   echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663   ac_header_preproc=no
5664 fi
5665 rm -f conftest.err conftest.$ac_ext
5666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5667 echo "${ECHO_T}$ac_header_preproc" >&6
5668
5669 # So?  What about this header?
5670 case $ac_header_compiler:$ac_header_preproc in
5671   yes:no )
5672     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5676     (
5677       cat <<\_ASBOX
5678 ## ------------------------------------ ##
5679 ## Report this to bug-autoconf@gnu.org. ##
5680 ## ------------------------------------ ##
5681 _ASBOX
5682     ) |
5683       sed "s/^/$as_me: WARNING:     /" >&2
5684     ;;
5685   no:yes )
5686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5688     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5692     (
5693       cat <<\_ASBOX
5694 ## ------------------------------------ ##
5695 ## Report this to bug-autoconf@gnu.org. ##
5696 ## ------------------------------------ ##
5697 _ASBOX
5698     ) |
5699       sed "s/^/$as_me: WARNING:     /" >&2
5700     ;;
5701 esac
5702 echo "$as_me:$LINENO: checking for $ac_header" >&5
5703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   eval "$as_ac_Header=$ac_header_preproc"
5708 fi
5709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5711
5712 fi
5713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5714   cat >>confdefs.h <<_ACEOF
5715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5716 _ACEOF
5717
5718 fi
5719
5720 done
5721
5722
5723 # Check for thread headers.
5724 if test "${ac_cv_header_thread_h+set}" = set; then
5725   echo "$as_me:$LINENO: checking for thread.h" >&5
5726 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5727 if test "${ac_cv_header_thread_h+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 fi
5730 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5731 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5732 else
5733   # Is the header compilable?
5734 echo "$as_me:$LINENO: checking thread.h usability" >&5
5735 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
5736 cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5738 /* confdefs.h.  */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h.  */
5743 $ac_includes_default
5744 #include <thread.h>
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748   (eval $ac_compile) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); } &&
5752          { ac_try='test -s conftest.$ac_objext'
5753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754   (eval $ac_try) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; }; then
5758   ac_header_compiler=yes
5759 else
5760   echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 ac_header_compiler=no
5764 fi
5765 rm -f conftest.$ac_objext conftest.$ac_ext
5766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5767 echo "${ECHO_T}$ac_header_compiler" >&6
5768
5769 # Is the header present?
5770 echo "$as_me:$LINENO: checking thread.h presence" >&5
5771 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
5772 cat >conftest.$ac_ext <<_ACEOF
5773 #line $LINENO "configure"
5774 /* confdefs.h.  */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h.  */
5779 #include <thread.h>
5780 _ACEOF
5781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5782   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } >/dev/null; then
5789   if test -s conftest.err; then
5790     ac_cpp_err=$ac_c_preproc_warn_flag
5791   else
5792     ac_cpp_err=
5793   fi
5794 else
5795   ac_cpp_err=yes
5796 fi
5797 if test -z "$ac_cpp_err"; then
5798   ac_header_preproc=yes
5799 else
5800   echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5802
5803   ac_header_preproc=no
5804 fi
5805 rm -f conftest.err conftest.$ac_ext
5806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5807 echo "${ECHO_T}$ac_header_preproc" >&6
5808
5809 # So?  What about this header?
5810 case $ac_header_compiler:$ac_header_preproc in
5811   yes:no )
5812     { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5813 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5814     { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5815 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5816     (
5817       cat <<\_ASBOX
5818 ## ------------------------------------ ##
5819 ## Report this to bug-autoconf@gnu.org. ##
5820 ## ------------------------------------ ##
5821 _ASBOX
5822     ) |
5823       sed "s/^/$as_me: WARNING:     /" >&2
5824     ;;
5825   no:yes )
5826     { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
5827 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
5828     { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
5829 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
5830     { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5831 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5832     (
5833       cat <<\_ASBOX
5834 ## ------------------------------------ ##
5835 ## Report this to bug-autoconf@gnu.org. ##
5836 ## ------------------------------------ ##
5837 _ASBOX
5838     ) |
5839       sed "s/^/$as_me: WARNING:     /" >&2
5840     ;;
5841 esac
5842 echo "$as_me:$LINENO: checking for thread.h" >&5
5843 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5844 if test "${ac_cv_header_thread_h+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   ac_cv_header_thread_h=$ac_header_preproc
5848 fi
5849 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5850 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5851
5852 fi
5853 if test $ac_cv_header_thread_h = yes; then
5854   have_thread_h=yes
5855 else
5856   have_thread_h=
5857 fi
5858
5859
5860 if test "${ac_cv_header_pthread_h+set}" = set; then
5861   echo "$as_me:$LINENO: checking for pthread.h" >&5
5862 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5863 if test "${ac_cv_header_pthread_h+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 fi
5866 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5867 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5868 else
5869   # Is the header compilable?
5870 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5871 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5872 cat >conftest.$ac_ext <<_ACEOF
5873 #line $LINENO "configure"
5874 /* confdefs.h.  */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h.  */
5879 $ac_includes_default
5880 #include <pthread.h>
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884   (eval $ac_compile) 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } &&
5888          { ac_try='test -s conftest.$ac_objext'
5889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890   (eval $ac_try) 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }; }; then
5894   ac_header_compiler=yes
5895 else
5896   echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5898
5899 ac_header_compiler=no
5900 fi
5901 rm -f conftest.$ac_objext conftest.$ac_ext
5902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5903 echo "${ECHO_T}$ac_header_compiler" >&6
5904
5905 # Is the header present?
5906 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5907 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915 #include <pthread.h>
5916 _ACEOF
5917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5919   ac_status=$?
5920   grep -v '^ *+' conftest.er1 >conftest.err
5921   rm -f conftest.er1
5922   cat conftest.err >&5
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); } >/dev/null; then
5925   if test -s conftest.err; then
5926     ac_cpp_err=$ac_c_preproc_warn_flag
5927   else
5928     ac_cpp_err=
5929   fi
5930 else
5931   ac_cpp_err=yes
5932 fi
5933 if test -z "$ac_cpp_err"; then
5934   ac_header_preproc=yes
5935 else
5936   echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939   ac_header_preproc=no
5940 fi
5941 rm -f conftest.err conftest.$ac_ext
5942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5943 echo "${ECHO_T}$ac_header_preproc" >&6
5944
5945 # So?  What about this header?
5946 case $ac_header_compiler:$ac_header_preproc in
5947   yes:no )
5948     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5949 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5950     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5951 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5952     (
5953       cat <<\_ASBOX
5954 ## ------------------------------------ ##
5955 ## Report this to bug-autoconf@gnu.org. ##
5956 ## ------------------------------------ ##
5957 _ASBOX
5958     ) |
5959       sed "s/^/$as_me: WARNING:     /" >&2
5960     ;;
5961   no:yes )
5962     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5963 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5964     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5965 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5966     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5967 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5968     (
5969       cat <<\_ASBOX
5970 ## ------------------------------------ ##
5971 ## Report this to bug-autoconf@gnu.org. ##
5972 ## ------------------------------------ ##
5973 _ASBOX
5974     ) |
5975       sed "s/^/$as_me: WARNING:     /" >&2
5976     ;;
5977 esac
5978 echo "$as_me:$LINENO: checking for pthread.h" >&5
5979 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5980 if test "${ac_cv_header_pthread_h+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   ac_cv_header_pthread_h=$ac_header_preproc
5984 fi
5985 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5986 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5987
5988 fi
5989 if test $ac_cv_header_pthread_h = yes; then
5990   have_pthread_h=yes
5991 else
5992   have_pthread_h=
5993 fi
5994
5995
5996
5997 # These tests can't be done till we know if we have limits.h.
5998 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5999 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6000 if test "${gcc_cv_decl_char_bit+set}" = set; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003   cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6005 /* confdefs.h.  */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h.  */
6010 #ifdef HAVE_LIMITS_H
6011 #include <limits.h>
6012 #endif
6013 #ifdef CHAR_BIT
6014 found
6015 #endif
6016 _ACEOF
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018   $EGREP "found" >/dev/null 2>&1; then
6019   gcc_cv_decl_char_bit=yes
6020 else
6021   gcc_cv_decl_char_bit=no
6022 fi
6023 rm -f conftest*
6024
6025
6026 fi
6027 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6028 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6029 if test $gcc_cv_decl_char_bit = no; then
6030   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6031 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6032 if test "${gcc_cv_c_nbby+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   i=8
6036  gcc_cv_c_nbby=
6037  while test $i -lt 65; do
6038    cat >conftest.$ac_ext <<_ACEOF
6039 #line $LINENO "configure"
6040 /* confdefs.h.  */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h.  */
6045
6046 int
6047 main ()
6048 {
6049 switch(0) {
6050   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6051   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6052   ; }
6053   ;
6054   return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059   (eval $ac_compile) 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); } &&
6063          { ac_try='test -s conftest.$ac_objext'
6064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065   (eval $ac_try) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; }; then
6069   gcc_cv_c_nbby=$i; break
6070 else
6071   echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 fi
6075 rm -f conftest.$ac_objext conftest.$ac_ext
6076    i=`expr $i + 1`
6077  done
6078  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6079
6080 fi
6081 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6082 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6083 if test $gcc_cv_c_nbby = failed; then
6084   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6085 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6086    { (exit 1); exit 1; }; }
6087 else
6088
6089 cat >>confdefs.h <<_ACEOF
6090 #define CHAR_BIT $gcc_cv_c_nbby
6091 _ACEOF
6092
6093 fi
6094 fi
6095 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6096 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6097 if test "${ac_cv_c_bigendian+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   ac_cv_c_bigendian=unknown
6101 # See if sys/param.h defines the BYTE_ORDER macro.
6102 cat >conftest.$ac_ext <<_ACEOF
6103 #line $LINENO "configure"
6104 /* confdefs.h.  */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h.  */
6109 #include <sys/types.h>
6110 #include <sys/param.h>
6111 int
6112 main ()
6113 {
6114
6115 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6116  bogus endian macros
6117 #endif
6118   ;
6119   return 0;
6120 }
6121 _ACEOF
6122 rm -f conftest.$ac_objext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124   (eval $ac_compile) 2>&5
6125   ac_status=$?
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); } &&
6128          { ac_try='test -s conftest.$ac_objext'
6129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130   (eval $ac_try) 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; }; then
6134   # It does; now see whether it defined to BIG_ENDIAN or not.
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142 #include <sys/types.h>
6143 #include <sys/param.h>
6144 int
6145 main ()
6146 {
6147
6148 #if BYTE_ORDER != BIG_ENDIAN
6149  not big endian
6150 #endif
6151   ;
6152   return 0;
6153 }
6154 _ACEOF
6155 rm -f conftest.$ac_objext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6157   (eval $ac_compile) 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); } &&
6161          { ac_try='test -s conftest.$ac_objext'
6162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163   (eval $ac_try) 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); }; }; then
6167   ac_cv_c_bigendian=yes
6168 else
6169   echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 ac_cv_c_bigendian=no
6173 fi
6174 rm -f conftest.$ac_objext conftest.$ac_ext
6175 else
6176   echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6178
6179 fi
6180 rm -f conftest.$ac_objext conftest.$ac_ext
6181 if test $ac_cv_c_bigendian = unknown; then
6182 if test "$cross_compiling" = yes; then
6183    echo $ac_n "cross-compiling... " 2>&6
6184 else
6185   cat >conftest.$ac_ext <<_ACEOF
6186 #line $LINENO "configure"
6187 /* confdefs.h.  */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h.  */
6192 main () {
6193   /* Are we little or big endian?  From Harbison&Steele.  */
6194   union
6195   {
6196     long l;
6197     char c[sizeof (long)];
6198   } u;
6199   u.l = 1;
6200   exit (u.c[sizeof (long) - 1] == 1);
6201 }
6202 _ACEOF
6203 rm -f conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205   (eval $ac_link) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210   (eval $ac_try) 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); }; }; then
6214   ac_cv_c_bigendian=no
6215 else
6216   echo "$as_me: program exited with status $ac_status" >&5
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ( exit $ac_status )
6221 ac_cv_c_bigendian=yes
6222 fi
6223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6224 fi
6225 fi
6226 fi
6227 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6228 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6229 if test $ac_cv_c_bigendian = unknown; then
6230 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6231 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6232
6233 cat >conftest.c <<EOF
6234 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6235 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6236 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6237 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6238 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6239 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6240 int main() { _ascii (); _ebcdic (); return 0; }
6241 EOF
6242  if test -f conftest.c ; then
6243      if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6244         if test `grep -l BIGenDianSyS conftest.o` ; then
6245            echo $ac_n ' big endian probe OK, ' 1>&6
6246            ac_cv_c_bigendian=yes
6247         fi
6248         if test `grep -l LiTTleEnDian conftest.o` ; then
6249            echo $ac_n ' little endian probe OK, ' 1>&6
6250            if test $ac_cv_c_bigendian = yes ; then
6251             ac_cv_c_bigendian=unknown;
6252            else
6253             ac_cv_c_bigendian=no
6254            fi
6255         fi
6256         echo $ac_n 'guessing bigendian ...  ' >&6
6257      fi
6258   fi
6259 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6260 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6261 fi
6262 if test $ac_cv_c_bigendian = yes; then
6263
6264 cat >>confdefs.h <<\_ACEOF
6265 #define WORDS_BIGENDIAN 1
6266 _ACEOF
6267
6268
6269 cat >>confdefs.h <<\_ACEOF
6270 #define HOST_WORDS_BIG_ENDIAN 1
6271 _ACEOF
6272
6273   BYTEORDER=4321
6274 else
6275   BYTEORDER=1234
6276 fi
6277
6278 cat >>confdefs.h <<_ACEOF
6279 #define BYTEORDER $BYTEORDER
6280 _ACEOF
6281
6282 if test $ac_cv_c_bigendian = unknown; then
6283   { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6284 echo "$as_me: error: unknown endianess - sorry" >&2;}
6285    { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6286 fi
6287
6288
6289 # --------
6290 # UNSORTED
6291 # --------
6292
6293 # Stage specific cflags for build.
6294 stage1_cflags=
6295 case $build in
6296 vax-*-*)
6297   if test x$GCC = xyes
6298   then
6299     stage1_cflags="-Wa,-J"
6300   else
6301     stage1_cflags="-J"
6302   fi
6303   ;;
6304 powerpc-*-darwin*)
6305   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6306   # sources; use -no-cpp-precomp to get to GNU cpp.
6307   # Apple's GCC has bugs in designated initializer handling, so disable
6308   # that too.
6309   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6310   ;;
6311 esac
6312
6313
6314 # These libraries may be used by collect2.
6315 # We may need a special search path to get them linked.
6316 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6317 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6318 if test "${gcc_cv_collect2_libs+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   save_LIBS="$LIBS"
6322 for libs in '' -lld -lmld \
6323                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6324                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6325 do
6326         LIBS="$libs"
6327         cat >conftest.$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334
6335 /* Override any gcc2 internal prototype to avoid an error.  */
6336 #ifdef __cplusplus
6337 extern "C"
6338 #endif
6339 /* We use char because int might match the return type of a gcc2
6340    builtin and then its argument prototype would still apply.  */
6341 char ldopen ();
6342 int
6343 main ()
6344 {
6345 ldopen ();
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352   (eval $ac_link) 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } &&
6356          { ac_try='test -s conftest$ac_exeext'
6357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358   (eval $ac_try) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); }; }; then
6362   gcc_cv_collect2_libs="$libs"; break
6363 else
6364   echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367 fi
6368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6369 done
6370 LIBS="$save_LIBS"
6371 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6372 fi
6373 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6374 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6375 case $gcc_cv_collect2_libs in
6376         "none required")        ;;
6377         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6378 esac
6379
6380
6381 # When building Ada code on Alpha, we need exc_resume which is usually in
6382 # -lexc.  So test for it.
6383 save_LIBS="$LIBS"
6384 LIBS=
6385 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6386 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6387 if test "${ac_cv_search_exc_resume+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   ac_func_search_save_LIBS=$LIBS
6391 ac_cv_search_exc_resume=no
6392 cat >conftest.$ac_ext <<_ACEOF
6393 #line $LINENO "configure"
6394 /* confdefs.h.  */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h.  */
6399
6400 /* Override any gcc2 internal prototype to avoid an error.  */
6401 #ifdef __cplusplus
6402 extern "C"
6403 #endif
6404 /* We use char because int might match the return type of a gcc2
6405    builtin and then its argument prototype would still apply.  */
6406 char exc_resume ();
6407 int
6408 main ()
6409 {
6410 exc_resume ();
6411   ;
6412   return 0;
6413 }
6414 _ACEOF
6415 rm -f conftest.$ac_objext conftest$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417   (eval $ac_link) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } &&
6421          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6427   ac_cv_search_exc_resume="none required"
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 fi
6433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6434 if test "$ac_cv_search_exc_resume" = no; then
6435   for ac_lib in exc; do
6436     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6437     cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444
6445 /* Override any gcc2 internal prototype to avoid an error.  */
6446 #ifdef __cplusplus
6447 extern "C"
6448 #endif
6449 /* We use char because int might match the return type of a gcc2
6450    builtin and then its argument prototype would still apply.  */
6451 char exc_resume ();
6452 int
6453 main ()
6454 {
6455 exc_resume ();
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 rm -f conftest.$ac_objext conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462   (eval $ac_link) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } &&
6466          { ac_try='test -s conftest$ac_exeext'
6467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468   (eval $ac_try) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; }; then
6472   ac_cv_search_exc_resume="-l$ac_lib"
6473 break
6474 else
6475   echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478 fi
6479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6480   done
6481 fi
6482 LIBS=$ac_func_search_save_LIBS
6483 fi
6484 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6485 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6486 if test "$ac_cv_search_exc_resume" != no; then
6487   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6488
6489 fi
6490
6491 GNAT_LIBEXC="$LIBS"
6492 LIBS="$save_LIBS"
6493
6494
6495 # Some systems put ldexp and frexp in libm instead of libc; assume
6496 # they're both in the same place.  jcf-dump needs them.
6497 save_LIBS="$LIBS"
6498 LIBS=
6499 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6500 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6501 if test "${ac_cv_search_ldexp+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   ac_func_search_save_LIBS=$LIBS
6505 ac_cv_search_ldexp=no
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513
6514 /* Override any gcc2 internal prototype to avoid an error.  */
6515 #ifdef __cplusplus
6516 extern "C"
6517 #endif
6518 /* We use char because int might match the return type of a gcc2
6519    builtin and then its argument prototype would still apply.  */
6520 char ldexp ();
6521 int
6522 main ()
6523 {
6524 ldexp ();
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531   (eval $ac_link) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); } &&
6535          { ac_try='test -s conftest$ac_exeext'
6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537   (eval $ac_try) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; }; then
6541   ac_cv_search_ldexp="none required"
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 fi
6547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6548 if test "$ac_cv_search_ldexp" = no; then
6549   for ac_lib in m; do
6550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6551     cat >conftest.$ac_ext <<_ACEOF
6552 #line $LINENO "configure"
6553 /* confdefs.h.  */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h.  */
6558
6559 /* Override any gcc2 internal prototype to avoid an error.  */
6560 #ifdef __cplusplus
6561 extern "C"
6562 #endif
6563 /* We use char because int might match the return type of a gcc2
6564    builtin and then its argument prototype would still apply.  */
6565 char ldexp ();
6566 int
6567 main ()
6568 {
6569 ldexp ();
6570   ;
6571   return 0;
6572 }
6573 _ACEOF
6574 rm -f conftest.$ac_objext conftest$ac_exeext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6576   (eval $ac_link) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); } &&
6580          { ac_try='test -s conftest$ac_exeext'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; }; then
6586   ac_cv_search_ldexp="-l$ac_lib"
6587 break
6588 else
6589   echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 fi
6593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6594   done
6595 fi
6596 LIBS=$ac_func_search_save_LIBS
6597 fi
6598 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6599 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6600 if test "$ac_cv_search_ldexp" != no; then
6601   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6602
6603 fi
6604
6605 LDEXP_LIB="$LIBS"
6606 LIBS="$save_LIBS"
6607
6608
6609 # Use <inttypes.h> only if it exists,
6610 # doesn't clash with <sys/types.h>, and declares intmax_t.
6611 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6612 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6613 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6614   echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616   cat >conftest.$ac_ext <<_ACEOF
6617 #line $LINENO "configure"
6618 /* confdefs.h.  */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h.  */
6623 #include <sys/types.h>
6624 #include <inttypes.h>
6625 int
6626 main ()
6627 {
6628 intmax_t i = -1;
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 rm -f conftest.$ac_objext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6635   (eval $ac_compile) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); } &&
6639          { ac_try='test -s conftest.$ac_objext'
6640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641   (eval $ac_try) 2>&5
6642   ac_status=$?
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); }; }; then
6645   gcc_cv_header_inttypes_h=yes
6646 else
6647   echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6649
6650 gcc_cv_header_inttypes_h=no
6651 fi
6652 rm -f conftest.$ac_objext conftest.$ac_ext
6653 fi
6654
6655 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6656 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6657 if test $gcc_cv_header_inttypes_h = yes; then
6658
6659 cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_INTTYPES_H 1
6661 _ACEOF
6662
6663 fi
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6692         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6693         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6694         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6695         setlocale
6696 do
6697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6698 echo "$as_me:$LINENO: checking for $ac_func" >&5
6699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6700 if eval "test \"\${$as_ac_var+set}\" = set"; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   cat >conftest.$ac_ext <<_ACEOF
6704 #line $LINENO "configure"
6705 /* confdefs.h.  */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h.  */
6710 /* System header to define __stub macros and hopefully few prototypes,
6711     which can conflict with char $ac_func (); below.
6712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6713     <limits.h> exists even on freestanding compilers.  */
6714 #ifdef __STDC__
6715 # include <limits.h>
6716 #else
6717 # include <assert.h>
6718 #endif
6719 /* Override any gcc2 internal prototype to avoid an error.  */
6720 #ifdef __cplusplus
6721 extern "C"
6722 {
6723 #endif
6724 /* We use char because int might match the return type of a gcc2
6725    builtin and then its argument prototype would still apply.  */
6726 char $ac_func ();
6727 /* The GNU C library defines this for functions which it implements
6728     to always fail with ENOSYS.  Some functions are actually named
6729     something starting with __ and the normal name is an alias.  */
6730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6731 choke me
6732 #else
6733 char (*f) () = $ac_func;
6734 #endif
6735 #ifdef __cplusplus
6736 }
6737 #endif
6738
6739 int
6740 main ()
6741 {
6742 return f != $ac_func;
6743   ;
6744   return 0;
6745 }
6746 _ACEOF
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749   (eval $ac_link) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); } &&
6753          { ac_try='test -s conftest$ac_exeext'
6754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755   (eval $ac_try) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759   eval "$as_ac_var=yes"
6760 else
6761   echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6763
6764 eval "$as_ac_var=no"
6765 fi
6766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6767 fi
6768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6770 if test `eval echo '${'$as_ac_var'}'` = yes; then
6771   cat >>confdefs.h <<_ACEOF
6772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6773 _ACEOF
6774
6775 fi
6776 done
6777
6778
6779 if test x$ac_cv_func_mbstowcs = xyes; then
6780   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6781 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6782 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6783   echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785       if test "$cross_compiling" = yes; then
6786   gcc_cv_func_mbstowcs_works=yes
6787 else
6788   cat >conftest.$ac_ext <<_ACEOF
6789 #line $LINENO "configure"
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795 #include <stdlib.h>
6796 int main()
6797 {
6798   mbstowcs(0, "", 0);
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804   (eval $ac_link) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809   (eval $ac_try) 2>&5
6810   ac_status=$?
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); }; }; then
6813   gcc_cv_func_mbstowcs_works=yes
6814 else
6815   echo "$as_me: program exited with status $ac_status" >&5
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6818
6819 ( exit $ac_status )
6820 gcc_cv_func_mbstowcs_works=no
6821 fi
6822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6823 fi
6824 fi
6825 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6826 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6827   if test x$gcc_cv_func_mbstowcs_works = xyes; then
6828
6829 cat >>confdefs.h <<\_ACEOF
6830 #define HAVE_WORKING_MBSTOWCS 1
6831 _ACEOF
6832
6833   fi
6834 fi
6835
6836 echo "$as_me:$LINENO: checking for ssize_t" >&5
6837 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6838 if test "${ac_cv_type_ssize_t+set}" = set; then
6839   echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841   cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 /* confdefs.h.  */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h.  */
6848 $ac_includes_default
6849 int
6850 main ()
6851 {
6852 if ((ssize_t *) 0)
6853   return 0;
6854 if (sizeof (ssize_t))
6855   return 0;
6856   ;
6857   return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862   (eval $ac_compile) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); } &&
6866          { ac_try='test -s conftest.$ac_objext'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; }; then
6872   ac_cv_type_ssize_t=yes
6873 else
6874   echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 ac_cv_type_ssize_t=no
6878 fi
6879 rm -f conftest.$ac_objext conftest.$ac_ext
6880 fi
6881 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6882 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6883 if test $ac_cv_type_ssize_t = yes; then
6884   :
6885 else
6886
6887 cat >>confdefs.h <<_ACEOF
6888 #define ssize_t int
6889 _ACEOF
6890
6891 fi
6892
6893
6894 # Try to determine the array type of the second argument of getgroups
6895 # for the target system (int or gid_t).
6896 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6897 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6898 if test "${ac_cv_type_uid_t+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   cat >conftest.$ac_ext <<_ACEOF
6902 #line $LINENO "configure"
6903 /* confdefs.h.  */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h.  */
6908 #include <sys/types.h>
6909
6910 _ACEOF
6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912   $EGREP "uid_t" >/dev/null 2>&1; then
6913   ac_cv_type_uid_t=yes
6914 else
6915   ac_cv_type_uid_t=no
6916 fi
6917 rm -f conftest*
6918
6919 fi
6920 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6921 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6922 if test $ac_cv_type_uid_t = no; then
6923
6924 cat >>confdefs.h <<\_ACEOF
6925 #define uid_t int
6926 _ACEOF
6927
6928
6929 cat >>confdefs.h <<\_ACEOF
6930 #define gid_t int
6931 _ACEOF
6932
6933 fi
6934
6935 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6936 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6937 if test "${ac_cv_type_getgroups+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   if test "$cross_compiling" = yes; then
6941   ac_cv_type_getgroups=cross
6942 else
6943   cat >conftest.$ac_ext <<_ACEOF
6944 #line $LINENO "configure"
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6950 /* Thanks to Mike Rendell for this test.  */
6951 #include <sys/types.h>
6952 #define NGID 256
6953 #undef MAX
6954 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6955
6956 int
6957 main ()
6958 {
6959   gid_t gidset[NGID];
6960   int i, n;
6961   union { gid_t gval; long lval; }  val;
6962
6963   val.lval = -1;
6964   for (i = 0; i < NGID; i++)
6965     gidset[i] = val.gval;
6966   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6967                  gidset);
6968   /* Exit non-zero if getgroups seems to require an array of ints.  This
6969      happens when gid_t is short but getgroups modifies an array of ints.  */
6970   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6971 }
6972 _ACEOF
6973 rm -f conftest$ac_exeext
6974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6975   (eval $ac_link) 2>&5
6976   ac_status=$?
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; }; then
6984   ac_cv_type_getgroups=gid_t
6985 else
6986   echo "$as_me: program exited with status $ac_status" >&5
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6989
6990 ( exit $ac_status )
6991 ac_cv_type_getgroups=int
6992 fi
6993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6994 fi
6995 if test $ac_cv_type_getgroups = cross; then
6996         cat >conftest.$ac_ext <<_ACEOF
6997 #line $LINENO "configure"
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003 #include <unistd.h>
7004
7005 _ACEOF
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7008   ac_cv_type_getgroups=gid_t
7009 else
7010   ac_cv_type_getgroups=int
7011 fi
7012 rm -f conftest*
7013
7014 fi
7015 fi
7016 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7017 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7018
7019 cat >>confdefs.h <<_ACEOF
7020 #define GETGROUPS_T $ac_cv_type_getgroups
7021 _ACEOF
7022
7023
7024 if test "${target}" = "${build}"; then
7025   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7026 else
7027   case "${target}" in
7028         # This condition may need some tweaking.  It should include all
7029         # targets where the array type of the second argument of getgroups
7030         # is int and the type of gid_t is not equivalent to int.
7031         *-*-sunos* | *-*-ultrix*)
7032                 TARGET_GETGROUPS_T=int
7033                 ;;
7034         *)
7035                 TARGET_GETGROUPS_T=gid_t
7036                 ;;
7037   esac
7038 fi
7039
7040
7041 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7042 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7043 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   if test "$cross_compiling" = yes; then
7047   gcc_cv_func_printf_ptr=no
7048 else
7049   cat >conftest.$ac_ext <<_ACEOF
7050 #line $LINENO "configure"
7051 /* confdefs.h.  */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h.  */
7056 #include <stdio.h>
7057
7058 int main()
7059 {
7060   char buf[64];
7061   char *p = buf, *q = NULL;
7062   sprintf(buf, "%p", p);
7063   sscanf(buf, "%p", &q);
7064   return (p != q);
7065 }
7066 _ACEOF
7067 rm -f conftest$ac_exeext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069   (eval $ac_link) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074   (eval $ac_try) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); }; }; then
7078   gcc_cv_func_printf_ptr=yes
7079 else
7080   echo "$as_me: program exited with status $ac_status" >&5
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084 ( exit $ac_status )
7085 gcc_cv_func_printf_ptr=no
7086 fi
7087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7088 fi
7089 rm -f core core.* *.core
7090 fi
7091 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7092 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7093 if test $gcc_cv_func_printf_ptr = yes ; then
7094
7095 cat >>confdefs.h <<\_ACEOF
7096 #define HAVE_PRINTF_PTR 1
7097 _ACEOF
7098
7099 fi
7100
7101 if test $ac_cv_header_sys_mman_h != yes \
7102  || test $ac_cv_func_mmap != yes; then
7103    gcc_cv_func_mmap_file=no
7104    gcc_cv_func_mmap_dev_zero=no
7105    gcc_cv_func_mmap_anon=no
7106 else
7107    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7108 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7109 if test "${gcc_cv_func_mmap_file+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   # Add a system to this blacklist if
7113    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7114    # memory area containing the same data that you'd get if you applied
7115    # read() to the same fd.  The only system known to have a problem here
7116    # is VMS, where text files have record structure.
7117    case "$host_os" in
7118      vms* | ultrix*)
7119         gcc_cv_func_mmap_file=no ;;
7120      *)
7121         gcc_cv_func_mmap_file=yes;;
7122    esac
7123 fi
7124 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7125 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7126    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7127 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7128 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   # Add a system to this blacklist if it has mmap() but /dev/zero
7132    # does not exist, or if mmapping /dev/zero does not give anonymous
7133    # zeroed pages with both the following properties:
7134    # 1. If you map N consecutive pages in with one call, and then
7135    #    unmap any subset of those pages, the pages that were not
7136    #    explicitly unmapped remain accessible.
7137    # 2. If you map two adjacent blocks of memory and then unmap them
7138    #    both at once, they must both go away.
7139    # Systems known to be in this category are Windows (all variants),
7140    # VMS, and Darwin.
7141    case "$host_os" in
7142      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7143         gcc_cv_func_mmap_dev_zero=no ;;
7144      *)
7145         gcc_cv_func_mmap_dev_zero=yes;;
7146    esac
7147 fi
7148 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7149 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7150
7151    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7152    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7153 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7154 if test "${gcc_cv_decl_map_anon+set}" = set; then
7155   echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157   cat >conftest.$ac_ext <<_ACEOF
7158 #line $LINENO "configure"
7159 /* confdefs.h.  */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h.  */
7164 #include <sys/types.h>
7165 #include <sys/mman.h>
7166 #include <unistd.h>
7167
7168 #ifndef MAP_ANONYMOUS
7169 #define MAP_ANONYMOUS MAP_ANON
7170 #endif
7171
7172 int
7173 main ()
7174 {
7175 int n = MAP_ANONYMOUS;
7176   ;
7177   return 0;
7178 }
7179 _ACEOF
7180 rm -f conftest.$ac_objext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182   (eval $ac_compile) 2>&5
7183   ac_status=$?
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } &&
7186          { ac_try='test -s conftest.$ac_objext'
7187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188   (eval $ac_try) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); }; }; then
7192   gcc_cv_decl_map_anon=yes
7193 else
7194   echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197 gcc_cv_decl_map_anon=no
7198 fi
7199 rm -f conftest.$ac_objext conftest.$ac_ext
7200 fi
7201 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7202 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7203
7204    if test $gcc_cv_decl_map_anon = no; then
7205      gcc_cv_func_mmap_anon=no
7206    else
7207      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7208 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7209 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7213    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7214    # doesn't give anonymous zeroed pages with the same properties listed
7215    # above for use of /dev/zero.
7216    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7217    case "$host_os" in
7218      vms* | cygwin* | pe | mingw* | sco* | udk* )
7219         gcc_cv_func_mmap_anon=no ;;
7220      *)
7221         gcc_cv_func_mmap_anon=yes;;
7222    esac
7223 fi
7224 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7225 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7226    fi
7227 fi
7228
7229 if test $gcc_cv_func_mmap_file = yes; then
7230
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_MMAP_FILE 1
7233 _ACEOF
7234
7235 fi
7236 if test $gcc_cv_func_mmap_dev_zero = yes; then
7237
7238 cat >>confdefs.h <<\_ACEOF
7239 #define HAVE_MMAP_DEV_ZERO 1
7240 _ACEOF
7241
7242 fi
7243 if test $gcc_cv_func_mmap_anon = yes; then
7244
7245 cat >>confdefs.h <<\_ACEOF
7246 #define HAVE_MMAP_ANON 1
7247 _ACEOF
7248
7249 fi
7250
7251
7252 case "${host}" in
7253 *-*-*vms*)
7254   # Under VMS, vfork works very differently than on Unix. The standard test
7255   # won't work, and it isn't easily adaptable. It makes more sense to
7256   # just force it.
7257   ac_cv_func_vfork_works=yes
7258   ;;
7259 esac
7260 echo "$as_me:$LINENO: checking for pid_t" >&5
7261 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7262 if test "${ac_cv_type_pid_t+set}" = set; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265   cat >conftest.$ac_ext <<_ACEOF
7266 #line $LINENO "configure"
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272 $ac_includes_default
7273 int
7274 main ()
7275 {
7276 if ((pid_t *) 0)
7277   return 0;
7278 if (sizeof (pid_t))
7279   return 0;
7280   ;
7281   return 0;
7282 }
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286   (eval $ac_compile) 2>&5
7287   ac_status=$?
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); } &&
7290          { ac_try='test -s conftest.$ac_objext'
7291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292   (eval $ac_try) 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; }; then
7296   ac_cv_type_pid_t=yes
7297 else
7298   echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 ac_cv_type_pid_t=no
7302 fi
7303 rm -f conftest.$ac_objext conftest.$ac_ext
7304 fi
7305 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7306 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7307 if test $ac_cv_type_pid_t = yes; then
7308   :
7309 else
7310
7311 cat >>confdefs.h <<_ACEOF
7312 #define pid_t int
7313 _ACEOF
7314
7315 fi
7316
7317
7318
7319 for ac_header in unistd.h vfork.h
7320 do
7321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7323   echo "$as_me:$LINENO: checking for $ac_header" >&5
7324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7326   echo $ECHO_N "(cached) $ECHO_C" >&6
7327 fi
7328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7330 else
7331   # Is the header compilable?
7332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7336 /* confdefs.h.  */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h.  */
7341 $ac_includes_default
7342 #include <$ac_header>
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346   (eval $ac_compile) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); } &&
7350          { ac_try='test -s conftest.$ac_objext'
7351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352   (eval $ac_try) 2>&5
7353   ac_status=$?
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); }; }; then
7356   ac_header_compiler=yes
7357 else
7358   echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 ac_header_compiler=no
7362 fi
7363 rm -f conftest.$ac_objext conftest.$ac_ext
7364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7365 echo "${ECHO_T}$ac_header_compiler" >&6
7366
7367 # Is the header present?
7368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7370 cat >conftest.$ac_ext <<_ACEOF
7371 #line $LINENO "configure"
7372 /* confdefs.h.  */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h.  */
7377 #include <$ac_header>
7378 _ACEOF
7379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7381   ac_status=$?
7382   grep -v '^ *+' conftest.er1 >conftest.err
7383   rm -f conftest.er1
7384   cat conftest.err >&5
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); } >/dev/null; then
7387   if test -s conftest.err; then
7388     ac_cpp_err=$ac_c_preproc_warn_flag
7389   else
7390     ac_cpp_err=
7391   fi
7392 else
7393   ac_cpp_err=yes
7394 fi
7395 if test -z "$ac_cpp_err"; then
7396   ac_header_preproc=yes
7397 else
7398   echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7400
7401   ac_header_preproc=no
7402 fi
7403 rm -f conftest.err conftest.$ac_ext
7404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7405 echo "${ECHO_T}$ac_header_preproc" >&6
7406
7407 # So?  What about this header?
7408 case $ac_header_compiler:$ac_header_preproc in
7409   yes:no )
7410     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7414     (
7415       cat <<\_ASBOX
7416 ## ------------------------------------ ##
7417 ## Report this to bug-autoconf@gnu.org. ##
7418 ## ------------------------------------ ##
7419 _ASBOX
7420     ) |
7421       sed "s/^/$as_me: WARNING:     /" >&2
7422     ;;
7423   no:yes )
7424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7426     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7430     (
7431       cat <<\_ASBOX
7432 ## ------------------------------------ ##
7433 ## Report this to bug-autoconf@gnu.org. ##
7434 ## ------------------------------------ ##
7435 _ASBOX
7436     ) |
7437       sed "s/^/$as_me: WARNING:     /" >&2
7438     ;;
7439 esac
7440 echo "$as_me:$LINENO: checking for $ac_header" >&5
7441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445   eval "$as_ac_Header=$ac_header_preproc"
7446 fi
7447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7449
7450 fi
7451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7452   cat >>confdefs.h <<_ACEOF
7453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7454 _ACEOF
7455
7456 fi
7457
7458 done
7459
7460
7461
7462 for ac_func in fork vfork
7463 do
7464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7465 echo "$as_me:$LINENO: checking for $ac_func" >&5
7466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_var+set}\" = set"; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 /* confdefs.h.  */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h.  */
7477 /* System header to define __stub macros and hopefully few prototypes,
7478     which can conflict with char $ac_func (); below.
7479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7480     <limits.h> exists even on freestanding compilers.  */
7481 #ifdef __STDC__
7482 # include <limits.h>
7483 #else
7484 # include <assert.h>
7485 #endif
7486 /* Override any gcc2 internal prototype to avoid an error.  */
7487 #ifdef __cplusplus
7488 extern "C"
7489 {
7490 #endif
7491 /* We use char because int might match the return type of a gcc2
7492    builtin and then its argument prototype would still apply.  */
7493 char $ac_func ();
7494 /* The GNU C library defines this for functions which it implements
7495     to always fail with ENOSYS.  Some functions are actually named
7496     something starting with __ and the normal name is an alias.  */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7498 choke me
7499 #else
7500 char (*f) () = $ac_func;
7501 #endif
7502 #ifdef __cplusplus
7503 }
7504 #endif
7505
7506 int
7507 main ()
7508 {
7509 return f != $ac_func;
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516   (eval $ac_link) 2>&5
7517   ac_status=$?
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } &&
7520          { ac_try='test -s conftest$ac_exeext'
7521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522   (eval $ac_try) 2>&5
7523   ac_status=$?
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); }; }; then
7526   eval "$as_ac_var=yes"
7527 else
7528   echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 eval "$as_ac_var=no"
7532 fi
7533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7534 fi
7535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7537 if test `eval echo '${'$as_ac_var'}'` = yes; then
7538   cat >>confdefs.h <<_ACEOF
7539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7540 _ACEOF
7541
7542 fi
7543 done
7544
7545 if test "x$ac_cv_func_fork" = xyes; then
7546   echo "$as_me:$LINENO: checking for working fork" >&5
7547 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7548 if test "${ac_cv_func_fork_works+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   if test "$cross_compiling" = yes; then
7552   ac_cv_func_fork_works=cross
7553 else
7554   cat >conftest.$ac_ext <<_ACEOF
7555 /* By Ruediger Kuhlmann. */
7556       #include <sys/types.h>
7557       #if HAVE_UNISTD_H
7558       # include <unistd.h>
7559       #endif
7560       /* Some systems only have a dummy stub for fork() */
7561       int main ()
7562       {
7563         if (fork() < 0)
7564           exit (1);
7565         exit (0);
7566       }
7567 _ACEOF
7568 rm -f conftest$ac_exeext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570   (eval $ac_link) 2>&5
7571   ac_status=$?
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575   (eval $ac_try) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); }; }; then
7579   ac_cv_func_fork_works=yes
7580 else
7581   echo "$as_me: program exited with status $ac_status" >&5
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7584
7585 ( exit $ac_status )
7586 ac_cv_func_fork_works=no
7587 fi
7588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7589 fi
7590 fi
7591 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7592 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7593
7594 else
7595   ac_cv_func_fork_works=$ac_cv_func_fork
7596 fi
7597 if test "x$ac_cv_func_fork_works" = xcross; then
7598   case $host in
7599     *-*-amigaos* | *-*-msdosdjgpp*)
7600       # Override, as these systems have only a dummy fork() stub
7601       ac_cv_func_fork_works=no
7602       ;;
7603     *)
7604       ac_cv_func_fork_works=yes
7605       ;;
7606   esac
7607   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7608 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7609 fi
7610 ac_cv_func_vfork_works=$ac_cv_func_vfork
7611 if test "x$ac_cv_func_vfork" = xyes; then
7612   echo "$as_me:$LINENO: checking for working vfork" >&5
7613 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7614 if test "${ac_cv_func_vfork_works+set}" = set; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617   if test "$cross_compiling" = yes; then
7618   ac_cv_func_vfork_works=cross
7619 else
7620   cat >conftest.$ac_ext <<_ACEOF
7621 #line $LINENO "configure"
7622 /* confdefs.h.  */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h.  */
7627 /* Thanks to Paul Eggert for this test.  */
7628 #include <stdio.h>
7629 #include <stdlib.h>
7630 #include <sys/types.h>
7631 #include <sys/stat.h>
7632 #include <sys/wait.h>
7633 #if HAVE_UNISTD_H
7634 # include <unistd.h>
7635 #endif
7636 #if HAVE_VFORK_H
7637 # include <vfork.h>
7638 #endif
7639 /* On some sparc systems, changes by the child to local and incoming
7640    argument registers are propagated back to the parent.  The compiler
7641    is told about this with #include <vfork.h>, but some compilers
7642    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7643    static variable whose address is put into a register that is
7644    clobbered by the vfork.  */
7645 static void
7646 #ifdef __cplusplus
7647 sparc_address_test (int arg)
7648 # else
7649 sparc_address_test (arg) int arg;
7650 #endif
7651 {
7652   static pid_t child;
7653   if (!child) {
7654     child = vfork ();
7655     if (child < 0) {
7656       perror ("vfork");
7657       _exit(2);
7658     }
7659     if (!child) {
7660       arg = getpid();
7661       write(-1, "", 0);
7662       _exit (arg);
7663     }
7664   }
7665 }
7666
7667 int
7668 main ()
7669 {
7670   pid_t parent = getpid ();
7671   pid_t child;
7672
7673   sparc_address_test (0);
7674
7675   child = vfork ();
7676
7677   if (child == 0) {
7678     /* Here is another test for sparc vfork register problems.  This
7679        test uses lots of local variables, at least as many local
7680        variables as main has allocated so far including compiler
7681        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7682        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7683        reuse the register of parent for one of the local variables,
7684        since it will think that parent can't possibly be used any more
7685        in this routine.  Assigning to the local variable will thus
7686        munge parent in the parent process.  */
7687     pid_t
7688       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7689       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7690     /* Convince the compiler that p..p7 are live; otherwise, it might
7691        use the same hardware register for all 8 local variables.  */
7692     if (p != p1 || p != p2 || p != p3 || p != p4
7693         || p != p5 || p != p6 || p != p7)
7694       _exit(1);
7695
7696     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7697        from child file descriptors.  If the child closes a descriptor
7698        before it execs or exits, this munges the parent's descriptor
7699        as well.  Test for this by closing stdout in the child.  */
7700     _exit(close(fileno(stdout)) != 0);
7701   } else {
7702     int status;
7703     struct stat st;
7704
7705     while (wait(&status) != child)
7706       ;
7707     exit(
7708          /* Was there some problem with vforking?  */
7709          child < 0
7710
7711          /* Did the child fail?  (This shouldn't happen.)  */
7712          || status
7713
7714          /* Did the vfork/compiler bug occur?  */
7715          || parent != getpid()
7716
7717          /* Did the file descriptor bug occur?  */
7718          || fstat(fileno(stdout), &st) != 0
7719          );
7720   }
7721 }
7722 _ACEOF
7723 rm -f conftest$ac_exeext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7725   (eval $ac_link) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730   (eval $ac_try) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); }; }; then
7734   ac_cv_func_vfork_works=yes
7735 else
7736   echo "$as_me: program exited with status $ac_status" >&5
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7739
7740 ( exit $ac_status )
7741 ac_cv_func_vfork_works=no
7742 fi
7743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7744 fi
7745 fi
7746 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7747 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7748
7749 fi;
7750 if test "x$ac_cv_func_fork_works" = xcross; then
7751   ac_cv_func_vfork_works=ac_cv_func_vfork
7752   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7753 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7754 fi
7755
7756 if test "x$ac_cv_func_vfork_works" = xyes; then
7757
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_WORKING_VFORK 1
7760 _ACEOF
7761
7762 else
7763
7764 cat >>confdefs.h <<\_ACEOF
7765 #define vfork fork
7766 _ACEOF
7767
7768 fi
7769 if test "x$ac_cv_func_fork_works" = xyes; then
7770
7771 cat >>confdefs.h <<\_ACEOF
7772 #define HAVE_WORKING_FORK 1
7773 _ACEOF
7774
7775 fi
7776
7777
7778
7779
7780   am_cv_lib_iconv_ldpath=
7781
7782 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7783 if test "${with_libiconv_prefix+set}" = set; then
7784   withval="$with_libiconv_prefix"
7785
7786     for dir in `echo "$withval" | tr : ' '`; do
7787       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7788       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7789     done
7790
7791 fi;
7792
7793
7794 for ac_header in iconv.h
7795 do
7796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7798   echo "$as_me:$LINENO: checking for $ac_header" >&5
7799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 fi
7803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7805 else
7806   # Is the header compilable?
7807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7809 cat >conftest.$ac_ext <<_ACEOF
7810 #line $LINENO "configure"
7811 /* confdefs.h.  */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h.  */
7816 $ac_includes_default
7817 #include <$ac_header>
7818 _ACEOF
7819 rm -f conftest.$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821   (eval $ac_compile) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); } &&
7825          { ac_try='test -s conftest.$ac_objext'
7826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827   (eval $ac_try) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }; }; then
7831   ac_header_compiler=yes
7832 else
7833   echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7835
7836 ac_header_compiler=no
7837 fi
7838 rm -f conftest.$ac_objext conftest.$ac_ext
7839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7840 echo "${ECHO_T}$ac_header_compiler" >&6
7841
7842 # Is the header present?
7843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7845 cat >conftest.$ac_ext <<_ACEOF
7846 #line $LINENO "configure"
7847 /* confdefs.h.  */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h.  */
7852 #include <$ac_header>
7853 _ACEOF
7854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } >/dev/null; then
7862   if test -s conftest.err; then
7863     ac_cpp_err=$ac_c_preproc_warn_flag
7864   else
7865     ac_cpp_err=
7866   fi
7867 else
7868   ac_cpp_err=yes
7869 fi
7870 if test -z "$ac_cpp_err"; then
7871   ac_header_preproc=yes
7872 else
7873   echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876   ac_header_preproc=no
7877 fi
7878 rm -f conftest.err conftest.$ac_ext
7879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7880 echo "${ECHO_T}$ac_header_preproc" >&6
7881
7882 # So?  What about this header?
7883 case $ac_header_compiler:$ac_header_preproc in
7884   yes:no )
7885     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7889     (
7890       cat <<\_ASBOX
7891 ## ------------------------------------ ##
7892 ## Report this to bug-autoconf@gnu.org. ##
7893 ## ------------------------------------ ##
7894 _ASBOX
7895     ) |
7896       sed "s/^/$as_me: WARNING:     /" >&2
7897     ;;
7898   no:yes )
7899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7901     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7905     (
7906       cat <<\_ASBOX
7907 ## ------------------------------------ ##
7908 ## Report this to bug-autoconf@gnu.org. ##
7909 ## ------------------------------------ ##
7910 _ASBOX
7911     ) |
7912       sed "s/^/$as_me: WARNING:     /" >&2
7913     ;;
7914 esac
7915 echo "$as_me:$LINENO: checking for $ac_header" >&5
7916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   eval "$as_ac_Header=$ac_header_preproc"
7921 fi
7922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7924
7925 fi
7926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7927   cat >>confdefs.h <<_ACEOF
7928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7929 _ACEOF
7930
7931 fi
7932
7933 done
7934
7935
7936   echo "$as_me:$LINENO: checking for iconv" >&5
7937 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7938 if test "${am_cv_func_iconv+set}" = set; then
7939   echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941
7942     am_cv_func_iconv="no, consider installing GNU libiconv"
7943     am_cv_lib_iconv=no
7944     cat >conftest.$ac_ext <<_ACEOF
7945 #line $LINENO "configure"
7946 /* confdefs.h.  */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h.  */
7951 #include <stdlib.h>
7952 #include <iconv.h>
7953 int
7954 main ()
7955 {
7956 iconv_t cd = iconv_open("","");
7957        iconv(cd,NULL,NULL,NULL,NULL);
7958        iconv_close(cd);
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965   (eval $ac_link) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -s conftest$ac_exeext'
7970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971   (eval $ac_try) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; }; then
7975   am_cv_func_iconv=yes
7976 else
7977   echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 fi
7981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7982     if test "$am_cv_func_iconv" != yes; then
7983       am_save_LIBS="$LIBS"
7984       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7985       cat >conftest.$ac_ext <<_ACEOF
7986 #line $LINENO "configure"
7987 /* confdefs.h.  */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h.  */
7992 #include <stdlib.h>
7993 #include <iconv.h>
7994 int
7995 main ()
7996 {
7997 iconv_t cd = iconv_open("","");
7998          iconv(cd,NULL,NULL,NULL,NULL);
7999          iconv_close(cd);
8000   ;
8001   return 0;
8002 }
8003 _ACEOF
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006   (eval $ac_link) 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } &&
8010          { ac_try='test -s conftest$ac_exeext'
8011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012   (eval $ac_try) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; }; then
8016   am_cv_lib_iconv=yes
8017         am_cv_func_iconv=yes
8018 else
8019   echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 fi
8023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8024       LIBS="$am_save_LIBS"
8025     fi
8026
8027 fi
8028 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8029 echo "${ECHO_T}$am_cv_func_iconv" >&6
8030   if test "$am_cv_func_iconv" = yes; then
8031
8032 cat >>confdefs.h <<\_ACEOF
8033 #define HAVE_ICONV 1
8034 _ACEOF
8035
8036     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8037 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8038     if test "${am_cv_proto_iconv+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041
8042       cat >conftest.$ac_ext <<_ACEOF
8043 #line $LINENO "configure"
8044 /* confdefs.h.  */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h.  */
8049
8050 #include <stdlib.h>
8051 #include <iconv.h>
8052 extern
8053 #ifdef __cplusplus
8054 "C"
8055 #endif
8056 #if defined(__STDC__) || defined(__cplusplus)
8057 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8058 #else
8059 size_t iconv();
8060 #endif
8061
8062 int
8063 main ()
8064 {
8065
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072   (eval $ac_compile) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } &&
8076          { ac_try='test -s conftest.$ac_objext'
8077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078   (eval $ac_try) 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; }; then
8082   am_cv_proto_iconv_arg1=""
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 am_cv_proto_iconv_arg1="const"
8088 fi
8089 rm -f conftest.$ac_objext conftest.$ac_ext
8090       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);"
8091 fi
8092
8093     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8094     echo "$as_me:$LINENO: result: ${ac_t:-
8095          }$am_cv_proto_iconv" >&5
8096 echo "${ECHO_T}${ac_t:-
8097          }$am_cv_proto_iconv" >&6
8098
8099 cat >>confdefs.h <<_ACEOF
8100 #define ICONV_CONST $am_cv_proto_iconv_arg1
8101 _ACEOF
8102
8103   fi
8104   LIBICONV=
8105   if test "$am_cv_lib_iconv" = yes; then
8106     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8107   fi
8108
8109
8110 # Until we have in-tree GNU iconv:
8111 LIBICONV_DEP=
8112
8113
8114
8115   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8116 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8117 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8118   echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120   cat >conftest.$ac_ext <<_ACEOF
8121 #line $LINENO "configure"
8122 /* confdefs.h.  */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h.  */
8127 #include <locale.h>
8128 int
8129 main ()
8130 {
8131 return LC_MESSAGES
8132   ;
8133   return 0;
8134 }
8135 _ACEOF
8136 rm -f conftest.$ac_objext conftest$ac_exeext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8138   (eval $ac_link) 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); } &&
8142          { ac_try='test -s conftest$ac_exeext'
8143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144   (eval $ac_try) 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); }; }; then
8148   am_cv_val_LC_MESSAGES=yes
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153 am_cv_val_LC_MESSAGES=no
8154 fi
8155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8156 fi
8157 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8158 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8159   if test $am_cv_val_LC_MESSAGES = yes; then
8160
8161 cat >>confdefs.h <<\_ACEOF
8162 #define HAVE_LC_MESSAGES 1
8163 _ACEOF
8164
8165   fi
8166
8167
8168 # We will need to find libiberty.h and ansidecl.h
8169 saved_CFLAGS="$CFLAGS"
8170 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8171 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8172         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8173         fprintf_unlocked strstr errno snprintf vasprintf \
8174         malloc realloc calloc free basename getopt clock
8175 do
8176   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8177 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8178 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8179 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   cat >conftest.$ac_ext <<_ACEOF
8183 #line $LINENO "configure"
8184 /* confdefs.h.  */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h.  */
8189 #undef $ac_tr_decl
8190 #define $ac_tr_decl 1
8191
8192 #include "ansidecl.h"
8193 #include "system.h"
8194
8195 int
8196 main ()
8197 {
8198 #ifndef $ac_func
8199 char *(*pfn) = (char *(*)) $ac_func ;
8200 #endif
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207   (eval $ac_compile) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } &&
8211          { ac_try='test -s conftest.$ac_objext'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; }; then
8217   eval "gcc_cv_have_decl_$ac_func=yes"
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 eval "gcc_cv_have_decl_$ac_func=no"
8223 fi
8224 rm -f conftest.$ac_objext conftest.$ac_ext
8225 fi
8226
8227 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8228   echo "$as_me:$LINENO: result: yes" >&5
8229 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8230 #define $ac_tr_decl 1
8231 _ACEOF
8232
8233 else
8234   echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8236 #define $ac_tr_decl 0
8237 _ACEOF
8238
8239 fi
8240
8241 done
8242 if test x = y ; then
8243
8244 cat >>confdefs.h <<\_ACEOF
8245 #define HAVE_DECL_GETENV 1
8246 _ACEOF
8247
8248 cat >>confdefs.h <<\_ACEOF
8249 #define HAVE_DECL_ATOL 1
8250 _ACEOF
8251
8252 cat >>confdefs.h <<\_ACEOF
8253 #define HAVE_DECL_SBRK 1
8254 _ACEOF
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_DECL_ABORT 1
8258 _ACEOF
8259
8260 cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_DECL_ATOF 1
8262 _ACEOF
8263
8264 cat >>confdefs.h <<\_ACEOF
8265 #define HAVE_DECL_GETCWD 1
8266 _ACEOF
8267
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_DECL_GETWD 1
8270 _ACEOF
8271  \
8272
8273 cat >>confdefs.h <<\_ACEOF
8274 #define HAVE_DECL_STRSIGNAL 1
8275 _ACEOF
8276
8277 cat >>confdefs.h <<\_ACEOF
8278 #define HAVE_DECL_PUTC_UNLOCKED 1
8279 _ACEOF
8280
8281 cat >>confdefs.h <<\_ACEOF
8282 #define HAVE_DECL_FPUTS_UNLOCKED 1
8283 _ACEOF
8284
8285 cat >>confdefs.h <<\_ACEOF
8286 #define HAVE_DECL_FWRITE_UNLOCKED 1
8287 _ACEOF
8288  \
8289
8290 cat >>confdefs.h <<\_ACEOF
8291 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8292 _ACEOF
8293
8294 cat >>confdefs.h <<\_ACEOF
8295 #define HAVE_DECL_STRSTR 1
8296 _ACEOF
8297
8298 cat >>confdefs.h <<\_ACEOF
8299 #define HAVE_DECL_ERRNO 1
8300 _ACEOF
8301
8302 cat >>confdefs.h <<\_ACEOF
8303 #define HAVE_DECL_SNPRINTF 1
8304 _ACEOF
8305
8306 cat >>confdefs.h <<\_ACEOF
8307 #define HAVE_DECL_VASPRINTF 1
8308 _ACEOF
8309  \
8310
8311 cat >>confdefs.h <<\_ACEOF
8312 #define HAVE_DECL_MALLOC 1
8313 _ACEOF
8314
8315 cat >>confdefs.h <<\_ACEOF
8316 #define HAVE_DECL_REALLOC 1
8317 _ACEOF
8318
8319 cat >>confdefs.h <<\_ACEOF
8320 #define HAVE_DECL_CALLOC 1
8321 _ACEOF
8322
8323 cat >>confdefs.h <<\_ACEOF
8324 #define HAVE_DECL_FREE 1
8325 _ACEOF
8326
8327 cat >>confdefs.h <<\_ACEOF
8328 #define HAVE_DECL_BASENAME 1
8329 _ACEOF
8330
8331 cat >>confdefs.h <<\_ACEOF
8332 #define HAVE_DECL_GETOPT 1
8333 _ACEOF
8334
8335 cat >>confdefs.h <<\_ACEOF
8336 #define HAVE_DECL_CLOCK 1
8337 _ACEOF
8338 fi
8339
8340
8341 for ac_func in getrlimit setrlimit getrusage
8342 do
8343   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8344 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8345 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8346 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   cat >conftest.$ac_ext <<_ACEOF
8350 #line $LINENO "configure"
8351 /* confdefs.h.  */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h.  */
8356 #undef $ac_tr_decl
8357 #define $ac_tr_decl 1
8358
8359 #include "ansidecl.h"
8360 #include "system.h"
8361 #ifdef HAVE_SYS_RESOURCE_H
8362 #include <sys/resource.h>
8363 #endif
8364
8365
8366 int
8367 main ()
8368 {
8369 #ifndef $ac_func
8370 char *(*pfn) = (char *(*)) $ac_func ;
8371 #endif
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8378   (eval $ac_compile) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); } &&
8382          { ac_try='test -s conftest.$ac_objext'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; }; then
8388   eval "gcc_cv_have_decl_$ac_func=yes"
8389 else
8390   echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 eval "gcc_cv_have_decl_$ac_func=no"
8394 fi
8395 rm -f conftest.$ac_objext conftest.$ac_ext
8396 fi
8397
8398 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8399   echo "$as_me:$LINENO: result: yes" >&5
8400 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8401 #define $ac_tr_decl 1
8402 _ACEOF
8403
8404 else
8405   echo "$as_me:$LINENO: result: no" >&5
8406 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8407 #define $ac_tr_decl 0
8408 _ACEOF
8409
8410 fi
8411
8412 done
8413 if test x = y ; then
8414
8415 cat >>confdefs.h <<\_ACEOF
8416 #define HAVE_DECL_GETRLIMIT 1
8417 _ACEOF
8418
8419 cat >>confdefs.h <<\_ACEOF
8420 #define HAVE_DECL_SETRLIMIT 1
8421 _ACEOF
8422
8423 cat >>confdefs.h <<\_ACEOF
8424 #define HAVE_DECL_GETRUSAGE 1
8425 _ACEOF
8426 fi
8427
8428
8429 cat >conftest.$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8431 /* confdefs.h.  */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h.  */
8436
8437 #include "ansidecl.h"
8438 #include "system.h"
8439 #ifdef HAVE_SYS_RESOURCE_H
8440 #include <sys/resource.h>
8441 #endif
8442
8443 int
8444 main ()
8445 {
8446 rlim_t l = 0;
8447   ;
8448   return 0;
8449 }
8450 _ACEOF
8451 rm -f conftest.$ac_objext
8452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8453   (eval $ac_compile) 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); } &&
8457          { ac_try='test -s conftest.$ac_objext'
8458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459   (eval $ac_try) 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); }; }; then
8463   :
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468
8469 cat >>confdefs.h <<\_ACEOF
8470 #define rlim_t long
8471 _ACEOF
8472
8473 fi
8474 rm -f conftest.$ac_objext conftest.$ac_ext
8475
8476 for ac_func in ldgetname
8477 do
8478   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8479 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8480 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8481 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8482   echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484   cat >conftest.$ac_ext <<_ACEOF
8485 #line $LINENO "configure"
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491 #undef $ac_tr_decl
8492 #define $ac_tr_decl 1
8493
8494 #include "ansidecl.h"
8495 #include "system.h"
8496 #ifdef HAVE_LDFCN_H
8497 #include <ldfcn.h>
8498 #endif
8499
8500
8501 int
8502 main ()
8503 {
8504 #ifndef $ac_func
8505 char *(*pfn) = (char *(*)) $ac_func ;
8506 #endif
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513   (eval $ac_compile) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } &&
8517          { ac_try='test -s conftest.$ac_objext'
8518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519   (eval $ac_try) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); }; }; then
8523   eval "gcc_cv_have_decl_$ac_func=yes"
8524 else
8525   echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8527
8528 eval "gcc_cv_have_decl_$ac_func=no"
8529 fi
8530 rm -f conftest.$ac_objext conftest.$ac_ext
8531 fi
8532
8533 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8534   echo "$as_me:$LINENO: result: yes" >&5
8535 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8536 #define $ac_tr_decl 1
8537 _ACEOF
8538
8539 else
8540   echo "$as_me:$LINENO: result: no" >&5
8541 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8542 #define $ac_tr_decl 0
8543 _ACEOF
8544
8545 fi
8546
8547 done
8548 if test x = y ; then
8549
8550 cat >>confdefs.h <<\_ACEOF
8551 #define HAVE_DECL_LDGETNAME 1
8552 _ACEOF
8553 fi
8554
8555
8556 for ac_func in times
8557 do
8558   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8559 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8560 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8561 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8562   echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564   cat >conftest.$ac_ext <<_ACEOF
8565 #line $LINENO "configure"
8566 /* confdefs.h.  */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h.  */
8571 #undef $ac_tr_decl
8572 #define $ac_tr_decl 1
8573
8574 #include "ansidecl.h"
8575 #include "system.h"
8576 #ifdef HAVE_SYS_TIMES_H
8577 #include <sys/times.h>
8578 #endif
8579
8580
8581 int
8582 main ()
8583 {
8584 #ifndef $ac_func
8585 char *(*pfn) = (char *(*)) $ac_func ;
8586 #endif
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593   (eval $ac_compile) 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); } &&
8597          { ac_try='test -s conftest.$ac_objext'
8598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599   (eval $ac_try) 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); }; }; then
8603   eval "gcc_cv_have_decl_$ac_func=yes"
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 eval "gcc_cv_have_decl_$ac_func=no"
8609 fi
8610 rm -f conftest.$ac_objext conftest.$ac_ext
8611 fi
8612
8613 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8614   echo "$as_me:$LINENO: result: yes" >&5
8615 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8616 #define $ac_tr_decl 1
8617 _ACEOF
8618
8619 else
8620   echo "$as_me:$LINENO: result: no" >&5
8621 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8622 #define $ac_tr_decl 0
8623 _ACEOF
8624
8625 fi
8626
8627 done
8628 if test x = y ; then
8629
8630 cat >>confdefs.h <<\_ACEOF
8631 #define HAVE_DECL_TIMES 1
8632 _ACEOF
8633 fi
8634
8635
8636 # More time-related stuff.
8637 echo "$as_me:$LINENO: checking for struct tms" >&5
8638 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8639 if test "${ac_cv_struct_tms+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8645 /* confdefs.h.  */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h.  */
8650
8651 #include "ansidecl.h"
8652 #include "system.h"
8653 #ifdef HAVE_SYS_TIMES_H
8654 #include <sys/times.h>
8655 #endif
8656
8657 int
8658 main ()
8659 {
8660 struct tms tms;
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667   (eval $ac_compile) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -s conftest.$ac_objext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   ac_cv_struct_tms=yes
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 ac_cv_struct_tms=no
8683 fi
8684 rm -f conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8687 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8688 if test $ac_cv_struct_tms = yes; then
8689
8690 cat >>confdefs.h <<\_ACEOF
8691 #define HAVE_STRUCT_TMS 1
8692 _ACEOF
8693
8694 fi
8695
8696 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8697 # revisit after autoconf 2.50.
8698 echo "$as_me:$LINENO: checking for clock_t" >&5
8699 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8700 if test "${gcc_cv_type_clock_t+set}" = set; then
8701   echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703
8704 cat >conftest.$ac_ext <<_ACEOF
8705 #line $LINENO "configure"
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711
8712 #include "ansidecl.h"
8713 #include "system.h"
8714
8715 int
8716 main ()
8717 {
8718 clock_t x;
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 rm -f conftest.$ac_objext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725   (eval $ac_compile) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); } &&
8729          { ac_try='test -s conftest.$ac_objext'
8730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731   (eval $ac_try) 2>&5
8732   ac_status=$?
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); }; }; then
8735   gcc_cv_type_clock_t=yes
8736 else
8737   echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8739
8740 gcc_cv_type_clock_t=no
8741 fi
8742 rm -f conftest.$ac_objext conftest.$ac_ext
8743 fi
8744 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8745 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8746 if test $gcc_cv_type_clock_t = yes; then
8747
8748 cat >>confdefs.h <<\_ACEOF
8749 #define HAVE_CLOCK_T 1
8750 _ACEOF
8751
8752 fi
8753
8754 echo "$as_me:$LINENO: checking for uchar" >&5
8755 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8756 if test "${gcc_cv_type_uchar+set}" = set; then
8757   echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759   cat >conftest.$ac_ext <<_ACEOF
8760 #line $LINENO "configure"
8761 /* confdefs.h.  */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h.  */
8766
8767 #include "ansidecl.h"
8768 #include "system.h"
8769
8770 int
8771 main ()
8772 {
8773 if ((uchar *)0) return 0;
8774  if (sizeof(uchar)) return 0;
8775   ;
8776   return 0;
8777 }
8778 _ACEOF
8779 rm -f conftest.$ac_objext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8781   (eval $ac_compile) 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } &&
8785          { ac_try='test -s conftest.$ac_objext'
8786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787   (eval $ac_try) 2>&5
8788   ac_status=$?
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); }; }; then
8791   ac_cv_type_uchar=yes
8792 else
8793   echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796 ac_cv_type_uchar=no
8797 fi
8798 rm -f conftest.$ac_objext conftest.$ac_ext
8799 fi
8800 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8801 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8802 if test $ac_cv_type_uchar = yes; then
8803
8804 cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_UCHAR 1
8806 _ACEOF
8807
8808 fi
8809
8810 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8811 CFLAGS="$saved_CFLAGS"
8812
8813 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8814 if test "${enable_initfini_array+set}" = set; then
8815   enableval="$enable_initfini_array"
8816
8817 else
8818
8819 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8820 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8821 if test "${gcc_cv_initfini_array+set}" = set; then
8822   echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824     if test "$cross_compiling" = yes; then
8825   gcc_cv_initfini_array=no
8826 else
8827   cat >conftest.$ac_ext <<_ACEOF
8828 #line $LINENO "configure"
8829 /* confdefs.h.  */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h.  */
8834
8835 static int x = -1;
8836 int main (void) { return x; }
8837 int foo (void) { x = 0; }
8838 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8839 _ACEOF
8840 rm -f conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842   (eval $ac_link) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847   (eval $ac_try) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); }; }; then
8851   gcc_cv_initfini_array=yes
8852 else
8853   echo "$as_me: program exited with status $ac_status" >&5
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8856
8857 ( exit $ac_status )
8858 gcc_cv_initfini_array=no
8859 fi
8860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8861 fi
8862 fi
8863 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8864 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8865   enable_initfini_array=$gcc_cv_initfini_array
8866
8867 fi;
8868 if test $enable_initfini_array = yes; then
8869
8870 cat >>confdefs.h <<\_ACEOF
8871 #define HAVE_INITFINI_ARRAY 1
8872 _ACEOF
8873
8874 fi
8875
8876 # mkdir takes a single argument on some systems.
8877 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8878 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8879 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8880   echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882   cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889
8890 #include <sys/types.h>
8891 #ifdef HAVE_SYS_STAT_H
8892 # include <sys/stat.h>
8893 #endif
8894 #ifdef HAVE_UNISTD_H
8895 # include <unistd.h>
8896 #endif
8897 #ifdef HAVE_DIRECT_H
8898 # include <direct.h>
8899 #endif
8900 int
8901 main ()
8902 {
8903 mkdir ("foo", 0);
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910   (eval $ac_compile) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); } &&
8914          { ac_try='test -s conftest.$ac_objext'
8915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916   (eval $ac_try) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); }; }; then
8920   gcc_cv_mkdir_takes_one_arg=no
8921 else
8922   echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8924
8925 gcc_cv_mkdir_takes_one_arg=yes
8926 fi
8927 rm -f conftest.$ac_objext conftest.$ac_ext
8928 fi
8929 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8930 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8931 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8932
8933 cat >>confdefs.h <<\_ACEOF
8934 #define MKDIR_TAKES_ONE_ARG 1
8935 _ACEOF
8936
8937 fi
8938
8939
8940 # File extensions
8941 manext='.1'
8942 objext='.o'
8943
8944
8945
8946 # With Setjmp/Longjmp based exception handling.
8947 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8948 if test "${enable_sjlj_exceptions+set}" = set; then
8949   enableval="$enable_sjlj_exceptions"
8950   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8951
8952 cat >>confdefs.h <<_ACEOF
8953 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8954 _ACEOF
8955
8956 fi;
8957
8958 if test x$host = x$target; then
8959    echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8960 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8961 if test "${ac_cv_lib_unwind_main+set}" = set; then
8962   echo $ECHO_N "(cached) $ECHO_C" >&6
8963 else
8964   ac_check_lib_save_LIBS=$LIBS
8965 LIBS="-lunwind  $LIBS"
8966 cat >conftest.$ac_ext <<_ACEOF
8967 #line $LINENO "configure"
8968 /* confdefs.h.  */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h.  */
8973
8974
8975 int
8976 main ()
8977 {
8978 main ();
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985   (eval $ac_link) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); } &&
8989          { ac_try='test -s conftest$ac_exeext'
8990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991   (eval $ac_try) 2>&5
8992   ac_status=$?
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); }; }; then
8995   ac_cv_lib_unwind_main=yes
8996 else
8997   echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000 ac_cv_lib_unwind_main=no
9001 fi
9002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9004 fi
9005 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9006 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9007 if test $ac_cv_lib_unwind_main = yes; then
9008   use_libunwind_default=yes
9009 else
9010   use_libunwind_default=no
9011 fi
9012
9013 else
9014    use_libunwind_default=no
9015 fi
9016 # Use libunwind based exception handling.
9017 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9018 if test "${enable_libunwind_exceptions+set}" = set; then
9019   enableval="$enable_libunwind_exceptions"
9020   use_libunwind_exceptions=$enableval
9021 else
9022   use_libunwind_exceptions=$use_libunwind_default
9023 fi;
9024 if test x"$use_libunwind_exceptions" = xyes; then
9025
9026 cat >>confdefs.h <<\_ACEOF
9027 #define USE_LIBUNWIND_EXCEPTIONS 1
9028 _ACEOF
9029
9030 fi
9031
9032 # --------------------------------------------------------
9033 # Build, host, and target specific configuration fragments
9034 # --------------------------------------------------------
9035
9036 # Collect build-machine-specific information.
9037 . ${srcdir}/config.build
9038
9039 # Collect host-machine-specific information.
9040 . ${srcdir}/config.host
9041
9042 target_gtfiles=
9043
9044 # Collect target-machine-specific information.
9045 . ${srcdir}/config.gcc
9046
9047 extra_objs="${host_extra_objs} ${extra_objs}"
9048
9049 # Default the target-machine variables that were not explicitly set.
9050 if test x"$tm_file" = x
9051 then tm_file=$cpu_type/$cpu_type.h; fi
9052
9053 if test x"$extra_headers" = x
9054 then extra_headers=; fi
9055
9056 if test x$md_file = x
9057 then md_file=$cpu_type/$cpu_type.md; fi
9058
9059 if test x$out_file = x
9060 then out_file=$cpu_type/$cpu_type.c; fi
9061
9062 if test x"$tmake_file" = x
9063 then tmake_file=$cpu_type/t-$cpu_type
9064 fi
9065
9066 if test x"$dwarf2" = xyes
9067 then tm_file="$tm_file tm-dwarf2.h"
9068 fi
9069
9070 # Say what files are being used for the output code and MD file.
9071 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9072 echo "Using \`$srcdir/config/$md_file' as machine description file."
9073
9074 # If any of the xm_file variables contain nonexistent files, warn
9075 # about them and drop them.
9076
9077 bx=
9078 for x in $build_xm_file; do
9079   if    test -f $srcdir/config/$x
9080   then      bx="$bx $x"
9081   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9082 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9083   fi
9084 done
9085 build_xm_file="$bx"
9086
9087 hx=
9088 for x in $host_xm_file; do
9089   if    test -f $srcdir/config/$x
9090   then      hx="$hx $x"
9091   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9092 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9093   fi
9094 done
9095 host_xm_file="$hx"
9096
9097 tx=
9098 for x in $xm_file; do
9099   if    test -f $srcdir/config/$x
9100   then      tx="$tx $x"
9101   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9102 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9103   fi
9104 done
9105 xm_file="$tx"
9106
9107 count=a
9108 for f in $tm_file; do
9109         count=${count}x
9110 done
9111 if test $count = ax; then
9112         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9113 else
9114         echo "Using the following target machine macro files:"
9115         for f in $tm_file; do
9116                 echo "  $srcdir/config/$f"
9117         done
9118 fi
9119
9120 if test x$need_64bit_hwint = xyes; then
9121
9122 cat >>confdefs.h <<\_ACEOF
9123 #define NEED_64BIT_HOST_WIDE_INT 1
9124 _ACEOF
9125
9126 fi
9127
9128 count=a
9129 for f in $host_xm_file; do
9130         count=${count}x
9131 done
9132 if test $count = a; then
9133         :
9134 elif test $count = ax; then
9135         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9136 else
9137         echo "Using the following host machine macro files:"
9138         for f in $host_xm_file; do
9139                 echo "  $srcdir/config/$f"
9140         done
9141 fi
9142 echo "Using ${out_host_hook_obj} for host machine hooks."
9143
9144 if test "$host_xm_file" != "$build_xm_file"; then
9145         count=a
9146         for f in $build_xm_file; do
9147                 count=${count}x
9148         done
9149         if test $count = a; then
9150                 :
9151         elif test $count = ax; then
9152                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9153         else
9154                 echo "Using the following build machine macro files:"
9155                 for f in $build_xm_file; do
9156                         echo "  $srcdir/config/$f"
9157                 done
9158         fi
9159 fi
9160
9161 # Check if a valid thread package
9162 case ${enable_threads_flag} in
9163   "" | no)
9164     # No threads
9165     target_thread_file='single'
9166     ;;
9167   yes)
9168     # default
9169     target_thread_file='single'
9170     ;;
9171   aix | dce | gnat | irix | posix | rtems | \
9172   single | solaris | vxworks | win32 )
9173     target_thread_file=${enable_threads_flag}
9174     ;;
9175   *)
9176     echo "${enable_threads_flag} is an unknown thread package" 1>&2
9177     exit 1
9178     ;;
9179 esac
9180
9181 if test x${thread_file} = x; then
9182   # No thread file set by target-specific clauses in config.gcc,
9183   # so use file chosen by default logic above
9184   thread_file=${target_thread_file}
9185 fi
9186
9187 if test x$enable___cxa_atexit = xyes || \
9188    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9189
9190 cat >>confdefs.h <<\_ACEOF
9191 #define DEFAULT_USE_CXA_ATEXIT 1
9192 _ACEOF
9193
9194 fi
9195
9196 # Look for a file containing extra machine modes.
9197 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9198   extra_modes_file='$(srcdir)'/config/${extra_modes}
9199
9200
9201 cat >>confdefs.h <<_ACEOF
9202 #define EXTRA_MODES_FILE "config/$extra_modes"
9203 _ACEOF
9204
9205 fi
9206
9207 # auto-host.h is the file containing items generated by autoconf and is
9208 # the first file included by config.h.
9209 # If host=build, it is correct to have bconfig include auto-host.h
9210 # as well.  If host!=build, we are in error and need to do more
9211 # work to find out the build config parameters.
9212 if test x$host = x$build
9213 then
9214         build_auto=auto-host.h
9215         FORBUILD=..
9216 else
9217         # We create a subdir, then run autoconf in the subdir.
9218         # To prevent recursion we set host and build for the new
9219         # invocation of configure to the build for this invocation
9220         # of configure.
9221         tempdir=build.$$
9222         rm -rf $tempdir
9223         mkdir $tempdir
9224         cd $tempdir
9225         case ${srcdir} in
9226         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9227         *) realsrcdir=../${srcdir};;
9228         esac
9229         saved_CFLAGS="${CFLAGS}"
9230         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9231         ${realsrcdir}/configure \
9232                 --target=$target_alias --host=$build_alias --build=$build_alias
9233         CFLAGS="${saved_CFLAGS}"
9234
9235         # We just finished tests for the build machine, so rename
9236         # the file auto-build.h in the gcc directory.
9237         mv auto-host.h ../auto-build.h
9238         cd ..
9239         rm -rf $tempdir
9240         build_auto=auto-build.h
9241         FORBUILD=../${build_subdir}
9242 fi
9243
9244
9245 tm_file="${tm_file} defaults.h"
9246 tm_p_file="${tm_p_file} tm-preds.h"
9247 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9248 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9249 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9250 # put this back in temporarily.
9251 xm_file="ansidecl.h ${xm_file}"
9252
9253 # --------
9254 # UNSORTED
9255 # --------
9256
9257 # Get the version trigger filename from the toplevel
9258 if test "${with_gcc_version_trigger+set}" = set; then
9259         gcc_version_trigger=$with_gcc_version_trigger
9260 else
9261         gcc_version_trigger=${srcdir}/version.c
9262 fi
9263 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9264 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9265
9266 # Compile in configure arguments.
9267 if test -f configargs.h ; then
9268         # Being re-configured.
9269         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9270         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9271 else
9272         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9273 fi
9274
9275 # Double all backslashes and backslash all quotes to turn
9276 # gcc_config_arguments into a C string.
9277 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9278 $gcc_config_arguments
9279 EOF
9280 gcc_config_arguments_str=`cat conftest.out`
9281 rm -f conftest.out
9282
9283 cat > configargs.h <<EOF
9284 /* Generated automatically. */
9285 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9286 static const char thread_model[] = "$thread_file";
9287
9288 static const struct {
9289   const char *name, *value;
9290 } configure_default_options[] = $configure_default_options;
9291 EOF
9292
9293 # Internationalization
9294 PACKAGE=gcc
9295 VERSION="$gcc_version"
9296
9297
9298
9299 # If we haven't got the data from the intl directory,
9300 # assume NLS is disabled.
9301 USE_NLS=no
9302 LIBINTL=
9303 LIBINTL_DEP=
9304 INCINTL=
9305 XGETTEXT=
9306 GMSGFMT=
9307 POSUB=
9308 if test -f ../intl/config.intl; then
9309   . ../intl/config.intl
9310 fi
9311 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9312 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9313 if test x"$USE_NLS" != xyes; then
9314   echo "$as_me:$LINENO: result: no" >&5
9315 echo "${ECHO_T}no" >&6
9316 else
9317   echo "$as_me:$LINENO: result: yes" >&5
9318 echo "${ECHO_T}yes" >&6
9319
9320 cat >>confdefs.h <<\_ACEOF
9321 #define ENABLE_NLS 1
9322 _ACEOF
9323
9324
9325   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9326 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9327   # Look for .po and .gmo files in the source directory.
9328   CATALOGS=
9329   XLINGUAS=
9330   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9331     # If there aren't any .gmo files the shell will give us the
9332     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9333     # weeded out.
9334     case "$cat" in *\**)
9335       continue;;
9336     esac
9337     # The quadruple backslash is collapsed to a double backslash
9338     # by the backticks, then collapsed again by the double quotes,
9339     # leaving us with one backslash in the sed expression (right
9340     # before the dot that mustn't act as a wildcard).
9341     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9342     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9343     # The user is allowed to set LINGUAS to a list of languages to
9344     # install catalogs for.  If it's empty that means "all of them."
9345     if test "x$LINGUAS" = x; then
9346       CATALOGS="$CATALOGS $cat"
9347       XLINGUAS="$XLINGUAS $lang"
9348     else
9349       case "$LINGUAS" in *$lang*)
9350         CATALOGS="$CATALOGS $cat"
9351         XLINGUAS="$XLINGUAS $lang"
9352         ;;
9353       esac
9354     fi
9355   done
9356   LINGUAS="$XLINGUAS"
9357   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9358 echo "${ECHO_T}$LINGUAS" >&6
9359 fi
9360
9361 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9362 # -liconv on the link line twice.
9363 case "$LIBINTL" in *$LIBICONV*)
9364         LIBICONV= ;;
9365 esac
9366
9367 # Windows32 Registry support for specifying GCC installation paths.
9368 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9369 if test "${enable_win32_registry+set}" = set; then
9370   enableval="$enable_win32_registry"
9371
9372 fi;
9373 case $host_os in
9374         win32 | pe | cygwin* | mingw32* | uwin*)
9375 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9376 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9377 if test "x$enable_win32_registry" != xno; then
9378
9379 cat >>confdefs.h <<\_ACEOF
9380 #define ENABLE_WIN32_REGISTRY 1
9381 _ACEOF
9382
9383   echo "$as_me:$LINENO: result: yes" >&5
9384 echo "${ECHO_T}yes" >&6
9385   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9386 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9387 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   ac_func_search_save_LIBS=$LIBS
9391 ac_cv_search_RegOpenKeyExA=no
9392 cat >conftest.$ac_ext <<_ACEOF
9393 #line $LINENO "configure"
9394 /* confdefs.h.  */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h.  */
9399
9400 /* Override any gcc2 internal prototype to avoid an error.  */
9401 #ifdef __cplusplus
9402 extern "C"
9403 #endif
9404 /* We use char because int might match the return type of a gcc2
9405    builtin and then its argument prototype would still apply.  */
9406 char RegOpenKeyExA ();
9407 int
9408 main ()
9409 {
9410 RegOpenKeyExA ();
9411   ;
9412   return 0;
9413 }
9414 _ACEOF
9415 rm -f conftest.$ac_objext conftest$ac_exeext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417   (eval $ac_link) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } &&
9421          { ac_try='test -s conftest$ac_exeext'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; }; then
9427   ac_cv_search_RegOpenKeyExA="none required"
9428 else
9429   echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 fi
9433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9434 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9435   for ac_lib in advapi32; do
9436     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9437     cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9439 /* confdefs.h.  */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h.  */
9444
9445 /* Override any gcc2 internal prototype to avoid an error.  */
9446 #ifdef __cplusplus
9447 extern "C"
9448 #endif
9449 /* We use char because int might match the return type of a gcc2
9450    builtin and then its argument prototype would still apply.  */
9451 char RegOpenKeyExA ();
9452 int
9453 main ()
9454 {
9455 RegOpenKeyExA ();
9456   ;
9457   return 0;
9458 }
9459 _ACEOF
9460 rm -f conftest.$ac_objext conftest$ac_exeext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462   (eval $ac_link) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } &&
9466          { ac_try='test -s conftest$ac_exeext'
9467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468   (eval $ac_try) 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; }; then
9472   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9473 break
9474 else
9475   echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478 fi
9479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9480   done
9481 fi
9482 LIBS=$ac_func_search_save_LIBS
9483 fi
9484 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9485 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9486 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9487   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9488
9489 fi
9490
9491 else
9492   echo "$as_me:$LINENO: result: no" >&5
9493 echo "${ECHO_T}no" >&6
9494 fi
9495
9496 # Check if user specified a different registry key.
9497 case "x${enable_win32_registry}" in
9498 x | xyes)
9499   # default.
9500   gcc_cv_win32_registry_key="$VERSION"
9501   ;;
9502 xno)
9503   # no registry lookup.
9504   gcc_cv_win32_registry_key=''
9505   ;;
9506 *)
9507   # user-specified key.
9508   gcc_cv_win32_registry_key="$enable_win32_registry"
9509   ;;
9510 esac
9511
9512 if test "x$enable_win32_registry" != xno; then
9513   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9514 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9515
9516 cat >>confdefs.h <<_ACEOF
9517 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9518 _ACEOF
9519
9520   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9521 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9522 fi
9523 ;;
9524 esac
9525
9526 # Get an absolute path to the GCC top-level source directory
9527 holddir=`${PWDCMD-pwd}`
9528 cd $srcdir
9529 topdir=`${PWDCMD-pwd}`
9530 cd $holddir
9531
9532 # Conditionalize the makefile for this host machine.
9533 xmake_file=
9534 for f in ${host_xmake_file}
9535 do
9536         if test -f ${srcdir}/config/$f
9537         then
9538                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9539         fi
9540 done
9541
9542 # Conditionalize the makefile for this target machine.
9543 tmake_file_=
9544 for f in ${tmake_file}
9545 do
9546         if test -f ${srcdir}/config/$f
9547         then
9548                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9549         fi
9550 done
9551 tmake_file="${tmake_file_}"
9552
9553 symbolic_link='ln -s'
9554
9555 # If the host doesn't support symlinks, modify CC in
9556 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9557 # Otherwise, we can use "CC=$(CC)".
9558 rm -f symtest.tem
9559 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9560 then
9561         cc_set_by_configure="\$(CC)"
9562         quoted_cc_set_by_configure="\$(CC)"
9563         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9564         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9565 else
9566         rm -f symtest.tem
9567         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9568         then
9569                 symbolic_link="cp -p"
9570         else
9571                 symbolic_link="cp"
9572         fi
9573         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9574         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9575         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9576         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9577 fi
9578 rm -f symtest.tem
9579
9580 out_object_file=`basename $out_file .c`.o
9581
9582 tm_file_list=
9583 tm_include_list=
9584 for f in $tm_file; do
9585   case $f in
9586     defaults.h )
9587        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9588        tm_include_list="${tm_include_list} $f"
9589        ;;
9590     * )
9591        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9592        tm_include_list="${tm_include_list} config/$f"
9593        ;;
9594   esac
9595 done
9596
9597 tm_p_file_list=
9598 tm_p_include_list=
9599 for f in $tm_p_file; do
9600   case $f in
9601     tm-preds.h )
9602        tm_p_file_list="${tm_p_file_list} $f"
9603        tm_p_include_list="${tm_p_include_list} $f"
9604        ;;
9605     * )
9606        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9607        tm_p_include_list="${tm_p_include_list} config/$f"
9608   esac
9609 done
9610
9611 xm_file_list=
9612 xm_include_list=
9613 for f in $xm_file; do
9614   case $f in
9615     ansidecl.h )
9616        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9617        xm_include_list="${xm_include_list} $f"
9618        ;;
9619     auto-host.h )
9620        xm_file_list="${xm_file_list} $f"
9621        xm_include_list="${xm_include_list} $f"
9622        ;;
9623     * )
9624        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9625        xm_include_list="${xm_include_list} config/$f"
9626        ;;
9627   esac
9628 done
9629
9630 host_xm_file_list=
9631 host_xm_include_list=
9632 for f in $host_xm_file; do
9633   case $f in
9634     ansidecl.h )
9635        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9636        host_xm_include_list="${host_xm_include_list} $f"
9637        ;;
9638     auto-host.h )
9639        host_xm_file_list="${host_xm_file_list} $f"
9640        host_xm_include_list="${host_xm_include_list} $f"
9641        ;;
9642     * )
9643        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9644        host_xm_include_list="${host_xm_include_list} config/$f"
9645        ;;
9646   esac
9647 done
9648
9649 build_xm_file_list=
9650 for f in $build_xm_file; do
9651   case $f in
9652     ansidecl.h )
9653        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9654        build_xm_include_list="${build_xm_include_list} $f"
9655        ;;
9656     auto-build.h | auto-host.h )
9657        build_xm_file_list="${build_xm_file_list} $f"
9658        build_xm_include_list="${build_xm_include_list} $f"
9659        ;;
9660     * )
9661        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9662        build_xm_include_list="${build_xm_include_list} config/$f"
9663        ;;
9664   esac
9665 done
9666
9667 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9668 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9669 CROSS=
9670 ALL=all.internal
9671 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9672 if test x$host != x$target
9673 then
9674         CROSS="-DCROSS_COMPILE"
9675         ALL=all.cross
9676         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9677         case "$host","$target" in
9678         # Darwin crosses can use the host system's libraries and headers,
9679         # because of the fat library support.  Of course, it must be the
9680         # same version of Darwin on both sides.  Allow the user to
9681         # just say --target=foo-darwin without a version number to mean
9682         # "the version on this system".
9683             *-*-darwin*,*-*-darwin*)
9684                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9685                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9686                 if test $hostos = $targetos -o $targetos = darwin ; then
9687                     CROSS=
9688                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9689                     with_headers=yes
9690                 fi
9691                 ;;
9692
9693             i?86-*-*,x86_64-*-* \
9694             | powerpc*-*-*,powerpc64*-*-*)
9695                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9696         esac
9697 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9698         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9699         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9700 fi
9701
9702 # If this is a cross-compiler that does not
9703 # have its own set of headers then define
9704 # inhibit_libc
9705
9706 # If this is using newlib, without having the headers available now,
9707 # then define inhibit_libc in LIBGCC2_CFLAGS.
9708 # This prevents libgcc2 from containing any code which requires libc
9709 # support.
9710 inhibit_libc=
9711 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9712        test x$with_newlib = xyes ; } &&
9713      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9714        inhibit_libc=-Dinhibit_libc
9715 fi
9716
9717
9718 # When building gcc with a cross-compiler, we need to adjust things so
9719 # that the generator programs are still built with the native compiler.
9720 # Also, we cannot run fixincludes or fix-header.
9721
9722 # These are the normal (build=host) settings:
9723 BUILD_PREFIX=
9724 BUILD_PREFIX_1=ignore-
9725 CC_FOR_BUILD='$(CC)'
9726 BUILD_CFLAGS='$(ALL_CFLAGS)'
9727
9728 STMP_FIXINC=stmp-fixinc
9729
9730 # Possibly disable fixproto, on a per-target basis.
9731 case ${use_fixproto} in
9732   no)
9733     STMP_FIXPROTO=
9734     ;;
9735   yes)
9736     STMP_FIXPROTO=stmp-fixproto
9737     ;;
9738 esac
9739
9740
9741 # And these apply if build != host, or we are generating coverage data
9742 if test x$build != x$host || test "x$coverage_flags" != x
9743 then
9744     BUILD_PREFIX=build-
9745     BUILD_PREFIX_1=build-
9746     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9747
9748     if test "x$TARGET_SYSTEM_ROOT" = x; then
9749         STMP_FIXINC=
9750         STMP_FIXPROTO=
9751     fi
9752 fi
9753
9754 # Expand extra_headers to include complete path.
9755 # This substitutes for lots of t-* files.
9756 extra_headers_list=
9757 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9758 for file in ${extra_headers} ; do
9759   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9760 done
9761
9762 # Add a definition of USE_COLLECT2 if system wants one.
9763 case $use_collect2 in
9764   no) use_collect2= ;;
9765   "") ;;
9766   *)
9767     host_xm_defines="${host_xm_defines} USE_COLLECT2"
9768     xm_defines="${xm_defines} USE_COLLECT2"
9769     ;;
9770 esac
9771
9772 # Identify the assembler which will work hand-in-glove with the newly
9773 # built GCC, so that we can examine its features.  This is the assembler
9774 # which will be driven by the driver program.
9775 #
9776 # If build != host, and we aren't building gas in-tree, we identify a
9777 # build->target assembler and hope that it will have the same features
9778 # as the host->target assembler we'll be using.
9779 echo "$as_me:$LINENO: checking what assembler to use" >&5
9780 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9781 in_tree_gas=no
9782 gcc_cv_as=
9783 gcc_cv_gas_major_version=
9784 gcc_cv_gas_minor_version=
9785 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9786 if test -x "$DEFAULT_ASSEMBLER"; then
9787         gcc_cv_as="$DEFAULT_ASSEMBLER"
9788 elif test -x "$AS"; then
9789         gcc_cv_as="$AS"
9790 elif test -x as$host_exeext; then
9791         # Build using assembler in the current directory.
9792         gcc_cv_as=./as$host_exeext
9793 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9794      && test -f ../gas/Makefile; then
9795   # Single tree build which includes gas.
9796   in_tree_gas=yes
9797   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9798 for f in $gcc_cv_as_bfd_srcdir/configure \
9799          $gcc_cv_as_gas_srcdir/configure \
9800          $gcc_cv_as_gas_srcdir/configure.in \
9801          $gcc_cv_as_gas_srcdir/Makefile.in ; do
9802   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9803   if test x$gcc_cv_gas_version != x; then
9804     break
9805   fi
9806 done
9807 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9808 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9809 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9810 case $gcc_cv_gas_patch_version in
9811   "") gcc_cv_gas_patch_version="0" ;;
9812 esac
9813 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9814                             + $gcc_cv_gas_minor_version \) \* 1000 \
9815                             + $gcc_cv_gas_patch_version`
9816
9817   rm -f as$host_exeext
9818   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9819   in_tree_gas_is_elf=no
9820   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9821      || (grep 'obj_format = multi' ../gas/Makefile \
9822          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9823   then
9824     in_tree_gas_is_elf=yes
9825   fi
9826 fi
9827
9828 if test "x$gcc_cv_as" = x; then
9829         # Search the same directories that the installed compiler will
9830         # search.  Else we may find the wrong assembler and lose.  If we
9831         # do not find a suitable assembler binary, then try the user's
9832         # path.
9833         #
9834         # Also note we have to check MD_EXEC_PREFIX before checking the
9835         # user's path.  Unfortunately, there is no good way to get at the
9836         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9837         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9838         # to be fixed as part of the make/configure rewrite too.
9839
9840         if test "x$exec_prefix" = xNONE; then
9841                 if test "x$prefix" = xNONE; then
9842                         test_prefix=/usr/local
9843                 else
9844                         test_prefix=$prefix
9845                 fi
9846         else
9847                 test_prefix=$exec_prefix
9848         fi
9849
9850         # If the loop below does not find an assembler, then use whatever
9851         # one we can find in the users's path.
9852         # user's path.
9853         if test "x$program_prefix" != xNONE; then
9854                 gcc_cv_as=${program_prefix}as$host_exeext
9855         else
9856                 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
9857         fi
9858
9859         test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9860                    $test_prefix/lib/gcc-lib/$target_noncanonical \
9861                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
9862                    /usr/lib/gcc/$target_noncanonical \
9863                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9864                    $test_prefix/$target_noncanonical/bin"
9865
9866         if test x$host = x$target; then
9867             test_dirs="$test_dirs \
9868                    /usr/libexec \
9869                    /usr/ccs/gcc \
9870                    /usr/ccs/bin \
9871                    /udk/usr/ccs/bin \
9872                    /bsd43/usr/lib/cmplrs/cc \
9873                    /usr/cross64/usr/bin \
9874                    /usr/lib/cmplrs/cc \
9875                    /sysv/usr/lib/cmplrs/cc \
9876                    /svr4/usr/lib/cmplrs/cc \
9877                    /usr/bin"
9878         fi
9879
9880         for dir in $test_dirs; do
9881                 if test -x $dir/as$host_exeext; then
9882                         gcc_cv_as=$dir/as$host_exeext
9883                         break;
9884                 fi
9885         done
9886 fi
9887 case $in_tree_gas in
9888   yes)
9889     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9890 echo "${ECHO_T}\"newly built gas\"" >&6
9891     ;;
9892   no)
9893     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9894 echo "${ECHO_T}$gcc_cv_as" >&6
9895     ;;
9896 esac
9897
9898 # Identify the linker which will work hand-in-glove with the newly
9899 # built GCC, so that we can examine its features.  This is the linker
9900 # which will be driven by the driver program.
9901 #
9902 # If build != host, and we aren't building gas in-tree, we identify a
9903 # build->target linker and hope that it will have the same features
9904 # as the host->target linker we'll be using.
9905 echo "$as_me:$LINENO: checking what linker to use" >&5
9906 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9907 in_tree_ld=no
9908 gcc_cv_ld=
9909 gcc_cv_gld_major_version=
9910 gcc_cv_gld_minor_version=
9911 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9912 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9913 if test -x "$DEFAULT_LINKER"; then
9914         gcc_cv_ld="$DEFAULT_LINKER"
9915 elif test -x "$LD"; then
9916         gcc_cv_ld="$LD"
9917 elif test -x collect-ld$host_exeext; then
9918         # Build using linker in the current directory.
9919         gcc_cv_ld=./collect-ld$host_exeext
9920 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9921      && test -f ../ld/Makefile; then
9922         # Single tree build which includes ld.
9923         in_tree_ld=yes
9924         in_tree_ld_is_elf=no
9925         if (grep 'EMUL = .*elf' ../ld/Makefile \
9926             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9927           in_tree_ld_is_elf=yes
9928         fi
9929         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
9930         do
9931                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9932                 if test x$gcc_cv_gld_version != x; then
9933                         break
9934                 fi
9935         done
9936         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9937         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9938         rm -f collect-ld$host_exeext
9939         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9940                 2>/dev/null
9941 fi
9942
9943 if test "x$gcc_cv_ld" = x; then
9944         # Search the same directories that the installed compiler will
9945         # search.  Else we may find the wrong linker and lose.  If we
9946         # do not find a suitable linker binary, then try the user's
9947         # path.
9948         #
9949         # Also note we have to check MD_EXEC_PREFIX before checking the
9950         # user's path.  Unfortunately, there is no good way to get at the
9951         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9952         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9953         # to be fixed as part of the make/configure rewrite too.
9954
9955         if test "x$exec_prefix" = xNONE; then
9956                 if test "x$prefix" = xNONE; then
9957                         test_prefix=/usr/local
9958                 else
9959                         test_prefix=$prefix
9960                 fi
9961         else
9962                 test_prefix=$exec_prefix
9963         fi
9964
9965         # If the loop below does not find an linker, then use whatever
9966         # one we can find in the users's path.
9967         # user's path.
9968         if test "x$program_prefix" != xNONE; then
9969                 gcc_cv_ld=${program_prefix}ld$host_exeext
9970         else
9971                 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
9972         fi
9973
9974         test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9975                    $test_prefix/lib/gcc-lib/$target_noncanonical \
9976                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
9977                    /usr/lib/gcc/$target_noncanonical \
9978                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9979                    $test_prefix/$target_noncanonical/bin"
9980
9981         if test x$host = x$target; then
9982             test_dirs="$test_dirs \
9983                    /usr/libexec \
9984                    /usr/ccs/gcc \
9985                    /usr/ccs/bin \
9986                    /udk/usr/ccs/bin \
9987                    /bsd43/usr/lib/cmplrs/cc \
9988                    /usr/cross64/usr/bin \
9989                    /usr/lib/cmplrs/cc \
9990                    /sysv/usr/lib/cmplrs/cc \
9991                    /svr4/usr/lib/cmplrs/cc \
9992                    /usr/bin"
9993         fi
9994
9995         for dir in $test_dirs; do
9996                 if test -x $dir/ld$host_exeext; then
9997                         gcc_cv_ld=$dir/ld$host_exeext
9998                         break;
9999                 fi
10000         done
10001 fi
10002 case $in_tree_ld in
10003   yes)
10004     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10005 echo "${ECHO_T}\"newly built ld\"" >&6
10006     ;;
10007   no)
10008     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10009 echo "${ECHO_T}$gcc_cv_ld" >&6
10010     ;;
10011 esac
10012
10013 # Figure out what nm we will be using.
10014 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10015 echo "$as_me:$LINENO: checking what nm to use" >&5
10016 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10017 in_tree_nm=no
10018 if test -x nm$host_exeext; then
10019         gcc_cv_nm=./nm$host_exeext
10020 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10021      && test -f ../binutils/Makefile; then
10022         # Single tree build which includes binutils.
10023         in_tree_nm=yes
10024         gcc_cv_nm=./nm$host_exeext
10025         rm -f nm$host_exeext
10026         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10027 elif test "x$program_prefix" != xNONE; then
10028         gcc_cv_nm=${program_prefix}nm$host_exeext
10029 else
10030         gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
10031 fi
10032 case $in_tree_nm in
10033   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10034 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10035   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10036 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10037 esac
10038
10039 # Figure out what objdump we will be using.
10040 echo "$as_me:$LINENO: checking what objdump to use" >&5
10041 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10042 in_tree_objdump=no
10043 if test -x objdump$host_exeext; then
10044         gcc_cv_objdump=./objdump$host_exeext
10045 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10046      && test -f ../binutils/Makefile; then
10047         # Single tree build which includes binutils.
10048         in_tree_objdump=yes
10049         gcc_cv_objdump=./objdump$host_exeext
10050         rm -f objdump$host_exeext
10051         $symbolic_link ../binutils/objdump$host_exeext \
10052                 objdump$host_exeext 2>/dev/null
10053 elif test "x$program_prefix" != xNONE; then
10054         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10055 else
10056         gcc_cv_objdump=`echo objdump | \
10057                 sed ${program_transform_name}`$host_exeext
10058 fi
10059 case $in_tree_objdump in
10060   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10061 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10062   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10063 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10064 esac
10065
10066 # Figure out what assembler alignment features are present.
10067 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10068 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10069 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   gcc_cv_as_balign_and_p2align=no
10073     if test $in_tree_gas = yes; then
10074     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10075   then gcc_cv_as_balign_and_p2align=yes
10076 fi
10077   elif test x$gcc_cv_as != x; then
10078     echo '.balign 4
10079 .p2align 2' > conftest.s
10080     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082   (eval $ac_try) 2>&5
10083   ac_status=$?
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); }; }
10086     then
10087         gcc_cv_as_balign_and_p2align=yes
10088     else
10089       echo "configure: failed program was" >&5
10090       cat conftest.s >&5
10091     fi
10092     rm -f conftest.o conftest.s
10093   fi
10094 fi
10095 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10096 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10097 if test $gcc_cv_as_balign_and_p2align = yes; then
10098
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10101 _ACEOF
10102
10103 fi
10104
10105 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10106 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10107 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10108   echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110   gcc_cv_as_max_skip_p2align=no
10111     if test $in_tree_gas = yes; then
10112     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10113   then gcc_cv_as_max_skip_p2align=yes
10114 fi
10115   elif test x$gcc_cv_as != x; then
10116     echo '.p2align 4,,7' > conftest.s
10117     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119   (eval $ac_try) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; }
10123     then
10124         gcc_cv_as_max_skip_p2align=yes
10125     else
10126       echo "configure: failed program was" >&5
10127       cat conftest.s >&5
10128     fi
10129     rm -f conftest.o conftest.s
10130   fi
10131 fi
10132 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10133 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10134 if test $gcc_cv_as_max_skip_p2align = yes; then
10135
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10138 _ACEOF
10139
10140 fi
10141
10142 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10143 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10144 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   gcc_cv_as_subsection_m1=no
10148     if test $in_tree_gas = yes; then
10149     if test $in_tree_gas_is_elf = yes \
10150   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10151   then gcc_cv_as_subsection_m1=yes
10152 fi
10153   elif test x$gcc_cv_as != x; then
10154     echo 'conftest_label1: .word 0
10155 .subsection -1
10156 conftest_label2: .word 0
10157 .previous' > conftest.s
10158     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; }
10164     then
10165         if test x$gcc_cv_nm != x; then
10166     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10167     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10168     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10169     then :
10170     else gcc_cv_as_subsection_m1=yes
10171     fi
10172     rm -f conftest.nm1 conftest.nm2
10173   fi
10174     else
10175       echo "configure: failed program was" >&5
10176       cat conftest.s >&5
10177     fi
10178     rm -f conftest.o conftest.s
10179   fi
10180 fi
10181 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10182 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10183 if test $gcc_cv_as_subsection_m1 = yes; then
10184
10185 cat >>confdefs.h <<\_ACEOF
10186 #define HAVE_GAS_SUBSECTION_ORDERING 1
10187 _ACEOF
10188
10189 fi
10190
10191 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10192 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10193 if test "${gcc_cv_as_weak+set}" = set; then
10194   echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196   gcc_cv_as_weak=no
10197     if test $in_tree_gas = yes; then
10198     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10199   then gcc_cv_as_weak=yes
10200 fi
10201   elif test x$gcc_cv_as != x; then
10202     echo '      .weak foobar' > conftest.s
10203     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205   (eval $ac_try) 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); }; }
10209     then
10210         gcc_cv_as_weak=yes
10211     else
10212       echo "configure: failed program was" >&5
10213       cat conftest.s >&5
10214     fi
10215     rm -f conftest.o conftest.s
10216   fi
10217 fi
10218 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10219 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10220 if test $gcc_cv_as_weak = yes; then
10221
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_GAS_WEAK 1
10224 _ACEOF
10225
10226 fi
10227
10228 # .hidden needs to be supported in both the assembler and the linker,
10229 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10230 # This is irritatingly difficult to feature test for; we have to check the
10231 # date string after the version number.  If we've got an in-tree
10232 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10233 # to be safe.
10234 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10235 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10236 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10237 if test "${gcc_cv_as_hidden+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240   gcc_cv_as_hidden=no
10241     if test $in_tree_gas = yes; then
10242     if test $in_tree_gas_is_elf = yes \
10243   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10244   then gcc_cv_as_hidden=yes
10245 fi
10246   elif test x$gcc_cv_as != x; then
10247     echo '      .hidden foobar
10248 foobar:' > conftest.s
10249     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }
10255     then
10256         gcc_cv_as_hidden=yes
10257     else
10258       echo "configure: failed program was" >&5
10259       cat conftest.s >&5
10260     fi
10261     rm -f conftest.o conftest.s
10262   fi
10263 fi
10264 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10265 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10266
10267
10268 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10269 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10270 if test "${gcc_cv_ld_hidden+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   if test $in_tree_ld = yes ; then
10274   gcc_cv_ld_hidden=no
10275   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 \
10276      && test $in_tree_ld_is_elf = yes; then
10277      gcc_cv_ld_hidden=yes
10278   fi
10279 else
10280   gcc_cv_ld_hidden=yes
10281   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10282   if echo "$ld_ver" | grep GNU > /dev/null; then
10283     ld_vers=`echo $ld_ver | sed -n \
10284         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10285         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10286         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10287         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10288         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10289         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10290     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'`
10291     if test 0"$ld_date" -lt 20020404; then
10292       if test -n "$ld_date"; then
10293         # If there was date string, but was earlier than 2002-04-04, fail
10294         gcc_cv_ld_hidden=no
10295       elif test -z "$ld_vers"; then
10296         # If there was no date string nor ld version number, something is wrong
10297         gcc_cv_ld_hidden=no
10298       else
10299         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10300         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10301         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10302         test -z "$ld_vers_patch" && ld_vers_patch=0
10303         if test "$ld_vers_major" -lt 2; then
10304           gcc_cv_ld_hidden=no
10305         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10306           gcc_cv_ld_hidden="no"
10307         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10308           gcc_cv_ld_hidden=no
10309         fi
10310       fi
10311     fi
10312   else
10313     case "${target}" in
10314       hppa64*-*-hpux*)
10315         gcc_cv_ld_hidden=yes
10316         ;;
10317       *)
10318         gcc_cv_ld_hidden=no
10319         ;;
10320     esac
10321   fi
10322 fi
10323 fi
10324 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10325 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10326 libgcc_visibility=no
10327
10328 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10329   libgcc_visibility=yes
10330
10331 cat >>confdefs.h <<\_ACEOF
10332 #define HAVE_GAS_HIDDEN 1
10333 _ACEOF
10334
10335 fi
10336
10337 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10338 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10339 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10340 if test "${gcc_cv_as_leb128+set}" = set; then
10341   echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343   gcc_cv_as_leb128=no
10344     if test $in_tree_gas = yes; then
10345     if test $in_tree_gas_is_elf = yes \
10346   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10347   then gcc_cv_as_leb128=yes
10348 fi
10349   elif test x$gcc_cv_as != x; then
10350     echo '      .data
10351         .uleb128 L2 - L1
10352 L1:
10353         .uleb128 1280
10354         .sleb128 -1010
10355 L2:' > conftest.s
10356     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358   (eval $ac_try) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); }; }
10362     then
10363         # GAS versions before 2.11 do not support uleb128,
10364   # despite appearing to.
10365   # ??? There exists an elf-specific test that will crash
10366   # the assembler.  Perhaps it's better to figure out whether
10367   # arbitrary sections are supported and try the test.
10368   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10369   if echo "$as_ver" | grep GNU > /dev/null; then
10370     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10371     as_major=`echo $as_ver | sed 's/\..*//'`
10372     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10373     if test $as_major -eq 2 && test $as_minor -lt 11
10374     then :
10375     else gcc_cv_as_leb128=yes
10376     fi
10377   fi
10378     else
10379       echo "configure: failed program was" >&5
10380       cat conftest.s >&5
10381     fi
10382     rm -f conftest.o conftest.s
10383   fi
10384 fi
10385 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10386 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10387 if test $gcc_cv_as_leb128 = yes; then
10388
10389 cat >>confdefs.h <<\_ACEOF
10390 #define HAVE_AS_LEB128 1
10391 _ACEOF
10392
10393 fi
10394
10395 # GAS versions up to and including 2.11.0 may mis-optimize
10396 # .eh_frame data.
10397 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10398 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10399 if test "${gcc_cv_as_eh_frame+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402   gcc_cv_as_eh_frame=no
10403     if test $in_tree_gas = yes; then
10404     if test $in_tree_gas_is_elf = yes \
10405   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10406   then gcc_cv_as_eh_frame=yes
10407 fi
10408   elif test x$gcc_cv_as != x; then
10409     echo '      .text
10410 .LFB1:
10411         .4byte  0
10412 .L1:
10413         .4byte  0
10414 .LFE1:
10415         .section        .eh_frame,"aw",@progbits
10416 __FRAME_BEGIN__:
10417         .4byte  .LECIE1-.LSCIE1
10418 .LSCIE1:
10419         .4byte  0x0
10420         .byte   0x1
10421         .ascii "z\0"
10422         .byte   0x1
10423         .byte   0x78
10424         .byte   0x1a
10425         .byte   0x0
10426         .byte   0x4
10427         .4byte  1
10428         .p2align 1
10429 .LECIE1:
10430 .LSFDE1:
10431         .4byte  .LEFDE1-.LASFDE1
10432 .LASFDE1:
10433         .4byte  .LASFDE1-__FRAME_BEGIN__
10434         .4byte  .LFB1
10435         .4byte  .LFE1-.LFB1
10436         .byte   0x4
10437         .4byte  .LFE1-.LFB1
10438         .byte   0x4
10439         .4byte  .L1-.LFB1
10440 .LEFDE1:' > conftest.s
10441     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443   (eval $ac_try) 2>&5
10444   ac_status=$?
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); }; }
10447     then
10448           cat > conftest.lit <<EOF
10449  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10450  0010 01000000 12000000 18000000 00000000  ................
10451  0020 08000000 04080000 0044               .........D      
10452 EOF
10453 cat > conftest.big <<EOF
10454  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10455  0010 00000001 00000012 00000018 00000000  ................
10456  0020 00000008 04000000 0844               .........D      
10457 EOF
10458   # If the assembler didn't choke, and we can objdump,
10459   # and we got the correct data, then succeed.
10460   if test x$gcc_cv_objdump != x \
10461   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10462      | tail -3 > conftest.got \
10463   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10464     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10465   then
10466     gcc_cv_as_eh_frame=yes
10467   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469   (eval $ac_try) 2>&5
10470   ac_status=$?
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); }; }; then
10473     gcc_cv_as_eh_frame=buggy
10474   else
10475     # Uh oh, what do we do now?
10476     gcc_cv_as_eh_frame=no
10477   fi
10478     else
10479       echo "configure: failed program was" >&5
10480       cat conftest.s >&5
10481     fi
10482     rm -f conftest.o conftest.s
10483   fi
10484 fi
10485 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10486 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10487
10488
10489 if test $gcc_cv_as_eh_frame = buggy; then
10490
10491 cat >>confdefs.h <<\_ACEOF
10492 #define USE_AS_TRADITIONAL_FORMAT 1
10493 _ACEOF
10494
10495 fi
10496
10497 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10498 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10499 if test "${gcc_cv_as_shf_merge+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   gcc_cv_as_shf_merge=no
10503     if test $in_tree_gas = yes; then
10504     if test $in_tree_gas_is_elf = yes \
10505   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10506   then gcc_cv_as_shf_merge=yes
10507 fi
10508   elif test x$gcc_cv_as != x; then
10509     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10510     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; }
10516     then
10517         gcc_cv_as_shf_merge=yes
10518     else
10519       echo "configure: failed program was" >&5
10520       cat conftest.s >&5
10521     fi
10522     rm -f conftest.o conftest.s
10523   fi
10524 fi
10525 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10526 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10527
10528
10529 cat >>confdefs.h <<_ACEOF
10530 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10531 _ACEOF
10532
10533
10534 # Thread-local storage - the check is heavily parametrized.
10535 conftest_s=
10536 tls_first_major=
10537 tls_first_minor=
10538 tls_as_opt=
10539 case "$target" in
10540   alpha*-*-*)
10541     conftest_s='
10542         .section ".tdata","awT",@progbits
10543 foo:    .long   25
10544         .text
10545         ldq     $27,__tls_get_addr($29)         !literal!1
10546         lda     $16,foo($29)                    !tlsgd!1
10547         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10548         ldq     $27,__tls_get_addr($29)         !literal!2
10549         lda     $16,foo($29)                    !tlsldm!2
10550         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10551         ldq     $1,foo($29)                     !gotdtprel
10552         ldah    $2,foo($29)                     !dtprelhi
10553         lda     $3,foo($2)                      !dtprello
10554         lda     $4,foo($29)                     !dtprel
10555         ldq     $1,foo($29)                     !gottprel
10556         ldah    $2,foo($29)                     !tprelhi
10557         lda     $3,foo($2)                      !tprello
10558         lda     $4,foo($29)                     !tprel'
10559         tls_first_major=2
10560         tls_first_minor=13
10561         ;;
10562   i[34567]86-*-*)
10563     conftest_s='
10564         .section ".tdata","awT",@progbits
10565 foo:    .long   25
10566         .text
10567         movl    %gs:0, %eax
10568         leal    foo@TLSGD(,%ebx,1), %eax
10569         leal    foo@TLSLDM(%ebx), %eax
10570         leal    foo@DTPOFF(%eax), %edx
10571         movl    foo@GOTTPOFF(%ebx), %eax
10572         subl    foo@GOTTPOFF(%ebx), %eax
10573         addl    foo@GOTNTPOFF(%ebx), %eax
10574         movl    foo@INDNTPOFF, %eax
10575         movl    $foo@TPOFF, %eax
10576         subl    $foo@TPOFF, %eax
10577         leal    foo@NTPOFF(%ecx), %eax'
10578         tls_first_major=2
10579         tls_first_minor=14
10580         ;;
10581   x86_64-*-*)
10582     conftest_s='
10583         .section ".tdata","awT",@progbits
10584 foo:    .long   25
10585         .text
10586         movq    %fs:0, %rax
10587         leaq    foo@TLSGD(%rip), %rdi
10588         leaq    foo@TLSLD(%rip), %rdi
10589         leaq    foo@DTPOFF(%rax), %rdx
10590         movq    foo@GOTTPOFF(%rip), %rax
10591         movq    $foo@TPOFF, %rax'
10592         tls_first_major=2
10593         tls_first_minor=14
10594         ;;
10595   ia64-*-*)
10596     conftest_s='
10597         .section ".tdata","awT",@progbits
10598 foo:    data8   25
10599         .text
10600         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10601         addl    r17 = @ltoff(@dtprel(foo#)), gp
10602         addl    r18 = @ltoff(@tprel(foo#)), gp
10603         addl    r19 = @dtprel(foo#), gp
10604         adds    r21 = @dtprel(foo#), r13
10605         movl    r23 = @dtprel(foo#)
10606         addl    r20 = @tprel(foo#), gp
10607         adds    r22 = @tprel(foo#), r13
10608         movl    r24 = @tprel(foo#)'
10609         tls_first_major=2
10610         tls_first_minor=13
10611         ;;
10612   powerpc-*-*)
10613     conftest_s='
10614         .section ".tdata","awT",@progbits
10615         .align 2
10616 ld0:    .space 4
10617 ld1:    .space 4
10618 x1:     .space 4
10619 x2:     .space 4
10620 x3:     .space 4
10621         .text
10622         addi 3,31,ld0@got@tlsgd
10623         bl __tls_get_addr
10624         addi 3,31,x1@got@tlsld
10625         bl __tls_get_addr
10626         addi 9,3,x1@dtprel
10627         addis 9,3,x2@dtprel@ha
10628         addi 9,9,x2@dtprel@l
10629         lwz 9,x3@got@tprel(31)
10630         add 9,9,x@tls
10631         addi 9,2,x1@tprel
10632         addis 9,2,x2@tprel@ha
10633         addi 9,9,x2@tprel@l'
10634         tls_first_major=2
10635         tls_first_minor=14
10636         tls_as_opt=-a32
10637         ;;
10638   powerpc64-*-*)
10639     conftest_s='
10640         .section ".tdata","awT",@progbits
10641         .align 3
10642 ld0:    .space 8
10643 ld1:    .space 8
10644 x1:     .space 8
10645 x2:     .space 8
10646 x3:     .space 8
10647         .text
10648         addi 3,2,ld0@got@tlsgd
10649         bl .__tls_get_addr
10650         nop
10651         addi 3,2,ld1@toc
10652         bl .__tls_get_addr
10653         nop
10654         addi 3,2,x1@got@tlsld
10655         bl .__tls_get_addr
10656         nop
10657         addi 9,3,x1@dtprel
10658         bl .__tls_get_addr
10659         nop
10660         addis 9,3,x2@dtprel@ha
10661         addi 9,9,x2@dtprel@l
10662         bl .__tls_get_addr
10663         nop
10664         ld 9,x3@got@dtprel(2)
10665         add 9,9,3
10666         bl .__tls_get_addr
10667         nop'
10668         tls_first_major=2
10669         tls_first_minor=14
10670         tls_as_opt=-a64
10671         ;;
10672   s390-*-*)
10673     conftest_s='
10674         .section ".tdata","awT",@progbits
10675 foo:    .long   25
10676         .text
10677         .long   foo@TLSGD
10678         .long   foo@TLSLDM
10679         .long   foo@DTPOFF
10680         .long   foo@NTPOFF
10681         .long   foo@GOTNTPOFF
10682         .long   foo@INDNTPOFF
10683         l       %r1,foo@GOTNTPOFF(%r12)
10684         l       %r1,0(%r1):tls_load:foo
10685         bas     %r14,0(%r1,%r13):tls_gdcall:foo
10686         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
10687         tls_first_major=2
10688         tls_first_minor=14
10689         tls_as_opt=-m31
10690         ;;
10691   s390x-*-*)
10692     conftest_s='
10693         .section ".tdata","awT",@progbits
10694 foo:    .long   25
10695         .text
10696         .quad   foo@TLSGD
10697         .quad   foo@TLSLDM
10698         .quad   foo@DTPOFF
10699         .quad   foo@NTPOFF
10700         .quad   foo@GOTNTPOFF
10701         lg      %r1,foo@GOTNTPOFF(%r12)
10702         larl    %r1,foo@INDNTPOFF
10703         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
10704         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10705         tls_first_major=2
10706         tls_first_minor=14
10707         tls_as_opt="-m64 -Aesame"
10708         ;;
10709   sh-*-* | sh[34]-*-*)
10710     conftest_s='
10711         .section ".tdata","awT",@progbits
10712 foo:    .long   25
10713         .text
10714         .long   foo@TLSGD
10715         .long   foo@TLSLDM
10716         .long   foo@DTPOFF
10717         .long   foo@GOTTPOFF
10718         .long   foo@TPOFF'
10719         tls_first_major=2
10720         tls_first_minor=13
10721         ;;
10722   sparc*-*-*)
10723     conftest_s='
10724         .section ".tdata","awT",@progbits
10725 foo:    .long   25
10726         .text
10727         sethi   %tgd_hi22(foo), %o0
10728         add     %o0, %tgd_lo10(foo), %o1
10729         add     %l7, %o1, %o0, %tgd_add(foo)
10730         call    __tls_get_addr, %tgd_call(foo)
10731         sethi   %tldm_hi22(foo), %l1
10732         add     %l1, %tldm_lo10(foo), %l2
10733         add     %l7, %l2, %o0, %tldm_add(foo)
10734         call    __tls_get_addr, %tldm_call(foo)
10735         sethi   %tldo_hix22(foo), %l3
10736         xor     %l3, %tldo_lox10(foo), %l4
10737         add     %o0, %l4, %l5, %tldo_add(foo)
10738         sethi   %tie_hi22(foo), %o3
10739         add     %o3, %tie_lo10(foo), %o3
10740         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10741         add     %g7, %o2, %o4, %tie_add(foo)
10742         sethi   %tle_hix22(foo), %l1
10743         xor     %l1, %tle_lox10(foo), %o5
10744         ld      [%g7 + %o5], %o1'
10745         tls_first_major=2
10746         tls_first_minor=14
10747         tls_as_opt=-32
10748         ;;
10749 esac
10750 if test -z "$tls_first_major"; then
10751   : # If we don't have a check, assume no support.
10752 else
10753   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10754 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10755 if test "${gcc_cv_as_tls+set}" = set; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758   gcc_cv_as_tls=no
10759     if test $in_tree_gas = yes; then
10760     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10761   then gcc_cv_as_tls=yes
10762 fi
10763   elif test x$gcc_cv_as != x; then
10764     echo "$conftest_s" > conftest.s
10765     if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
10766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767   (eval $ac_try) 2>&5
10768   ac_status=$?
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); }; }
10771     then
10772         gcc_cv_as_tls=yes
10773     else
10774       echo "configure: failed program was" >&5
10775       cat conftest.s >&5
10776     fi
10777     rm -f conftest.o conftest.s
10778   fi
10779 fi
10780 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10781 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10782 if test $gcc_cv_as_tls = yes; then
10783
10784 cat >>confdefs.h <<\_ACEOF
10785 #define HAVE_AS_TLS 1
10786 _ACEOF
10787
10788 fi
10789 fi
10790
10791 # Target-specific assembler checks.
10792
10793 case "$target" in
10794   # All TARGET_ABI_OSF targets.
10795   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10796     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10797 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10798 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10799   echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801   gcc_cv_as_alpha_explicit_relocs=no
10802     if test $in_tree_gas = yes; then
10803     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10804   then gcc_cv_as_alpha_explicit_relocs=yes
10805 fi
10806   elif test x$gcc_cv_as != x; then
10807     echo '      .set nomacro
10808         .text
10809         extbl   $3, $2, $3      !lituse_bytoff!1
10810         ldq     $2, a($29)      !literal!1
10811         ldq     $4, b($29)      !literal!2
10812         ldq_u   $3, 0($2)       !lituse_base!1
10813         ldq     $27, f($29)     !literal!5
10814         jsr     $26, ($27), f   !lituse_jsr!5
10815         ldah    $29, 0($26)     !gpdisp!3
10816         lda     $0, c($29)      !gprel
10817         ldah    $1, d($29)      !gprelhigh
10818         lda     $1, d($1)       !gprellow
10819         lda     $29, 0($29)     !gpdisp!3' > conftest.s
10820     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822   (eval $ac_try) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; }
10826     then
10827         gcc_cv_as_alpha_explicit_relocs=yes
10828     else
10829       echo "configure: failed program was" >&5
10830       cat conftest.s >&5
10831     fi
10832     rm -f conftest.o conftest.s
10833   fi
10834 fi
10835 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10836 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10837 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10838
10839 cat >>confdefs.h <<\_ACEOF
10840 #define HAVE_AS_EXPLICIT_RELOCS 1
10841 _ACEOF
10842
10843 fi
10844     ;;
10845
10846   sparc*-*-*)
10847     echo "$as_me:$LINENO: checking assembler for .register" >&5
10848 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10849 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   gcc_cv_as_sparc_register_op=no
10853   if test x$gcc_cv_as != x; then
10854     echo '.register %g2, #scratch' > conftest.s
10855     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857   (eval $ac_try) 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; }
10861     then
10862         gcc_cv_as_sparc_register_op=yes
10863     else
10864       echo "configure: failed program was" >&5
10865       cat conftest.s >&5
10866     fi
10867     rm -f conftest.o conftest.s
10868   fi
10869 fi
10870 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10871 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10872 if test $gcc_cv_as_sparc_register_op = yes; then
10873
10874 cat >>confdefs.h <<\_ACEOF
10875 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10876 _ACEOF
10877
10878 fi
10879
10880     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10881 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10882 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885   gcc_cv_as_sparc_relax=no
10886   if test x$gcc_cv_as != x; then
10887     echo '.text' > conftest.s
10888     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890   (eval $ac_try) 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; }
10894     then
10895         gcc_cv_as_sparc_relax=yes
10896     else
10897       echo "configure: failed program was" >&5
10898       cat conftest.s >&5
10899     fi
10900     rm -f conftest.o conftest.s
10901   fi
10902 fi
10903 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10904 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10905 if test $gcc_cv_as_sparc_relax = yes; then
10906
10907 cat >>confdefs.h <<\_ACEOF
10908 #define HAVE_AS_RELAX_OPTION 1
10909 _ACEOF
10910
10911 fi
10912
10913     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10914 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10915 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10916   echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918   gcc_cv_as_sparc_ua_pcrel=no
10919   if test x$gcc_cv_as != x; then
10920     echo '.text
10921 foo:
10922         nop
10923 .data
10924 .align 4
10925 .byte 0
10926 .uaword %r_disp32(foo)' > conftest.s
10927     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929   (eval $ac_try) 2>&5
10930   ac_status=$?
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); }; }
10933     then
10934         if test x$gcc_cv_ld != x \
10935        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10936          gcc_cv_as_sparc_ua_pcrel=yes
10937        fi
10938        rm -f conftest
10939     else
10940       echo "configure: failed program was" >&5
10941       cat conftest.s >&5
10942     fi
10943     rm -f conftest.o conftest.s
10944   fi
10945 fi
10946 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10947 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10948 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10949
10950 cat >>confdefs.h <<\_ACEOF
10951 #define HAVE_AS_SPARC_UA_PCREL 1
10952 _ACEOF
10953
10954
10955       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10956 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10957 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10958   echo $ECHO_N "(cached) $ECHO_C" >&6
10959 else
10960   gcc_cv_as_sparc_ua_pcrel_hidden=no
10961   if test x$gcc_cv_as != x; then
10962     echo '.data
10963 .align 4
10964 .byte 0x31
10965 .uaword %r_disp32(foo)
10966 .byte 0x32, 0x33, 0x34
10967 .global foo
10968 .hidden foo
10969 foo:
10970 .skip 4' > conftest.s
10971     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973   (eval $ac_try) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); }; }
10977     then
10978         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10979          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10980          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10981             | grep ' 31000000 07323334' > /dev/null 2>&1; then
10982             if $gcc_cv_objdump -R conftest 2> /dev/null \
10983                | grep 'DISP32' > /dev/null 2>&1; then
10984                 :
10985             else
10986                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
10987             fi
10988          fi
10989          rm -f conftest
10990     else
10991       echo "configure: failed program was" >&5
10992       cat conftest.s >&5
10993     fi
10994     rm -f conftest.o conftest.s
10995   fi
10996 fi
10997 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10998 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10999 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11000
11001 cat >>confdefs.h <<\_ACEOF
11002 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11003 _ACEOF
11004
11005 fi
11006
11007 fi # unaligned pcrel relocs
11008
11009     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11010 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11011 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11012   echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014   gcc_cv_as_sparc_offsetable_lo10=no
11015   if test x$gcc_cv_as != x; then
11016     echo '.text
11017         or %g1, %lo(ab) + 12, %g1
11018         or %g1, %lo(ab + 12), %g1' > conftest.s
11019     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021   (eval $ac_try) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; }
11025     then
11026         if test x$gcc_cv_objdump != x \
11027        && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11028           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11029          gcc_cv_as_offsetable_lo10=yes
11030        fi
11031     else
11032       echo "configure: failed program was" >&5
11033       cat conftest.s >&5
11034     fi
11035     rm -f conftest.o conftest.s
11036   fi
11037 fi
11038 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11039 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11040 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11041
11042 cat >>confdefs.h <<\_ACEOF
11043 #define HAVE_AS_OFFSETABLE_LO10 1
11044 _ACEOF
11045
11046 fi
11047     ;;
11048
11049   i[34567]86-*-* | x86_64-*-*)
11050     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11051 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11052 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11053   echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055   gcc_cv_as_ix86_filds_fists=no
11056     if test $in_tree_gas = yes; then
11057     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11058   then gcc_cv_as_ix86_filds_fists=yes
11059 fi
11060   elif test x$gcc_cv_as != x; then
11061     echo 'filds mem; fists mem' > conftest.s
11062     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064   (eval $ac_try) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); }; }
11068     then
11069         gcc_cv_as_ix86_filds_fists=yes
11070     else
11071       echo "configure: failed program was" >&5
11072       cat conftest.s >&5
11073     fi
11074     rm -f conftest.o conftest.s
11075   fi
11076 fi
11077 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11078 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11079 if test $gcc_cv_as_ix86_filds_fists = yes; then
11080
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_GAS_FILDS_FISTS 1
11083 _ACEOF
11084
11085 fi
11086
11087     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11088 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11089 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11090   echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092   gcc_cv_as_ix86_cmov_sun_syntax=no
11093   if test x$gcc_cv_as != x; then
11094     echo 'cmovl.l %edx, %eax' > conftest.s
11095     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097   (eval $ac_try) 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); }; }
11101     then
11102         gcc_cv_as_ix86_cmov_sun_syntax=yes
11103     else
11104       echo "configure: failed program was" >&5
11105       cat conftest.s >&5
11106     fi
11107     rm -f conftest.o conftest.s
11108   fi
11109 fi
11110 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11111 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11112 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11113
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11116 _ACEOF
11117
11118 fi
11119
11120     # This one is used unconditionally by i386.[ch]; it is to be defined
11121     # to 1 if the feature is present, 0 otherwise.
11122     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11123 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11124 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   gcc_cv_as_ix86_gotoff_in_data=no
11128     if test $in_tree_gas = yes; then
11129     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11130   then gcc_cv_as_ix86_gotoff_in_data=yes
11131 fi
11132   elif test x$gcc_cv_as != x; then
11133     echo '      .text
11134 .L0:
11135         nop
11136         .data
11137         .long .L0@GOTOFF' > conftest.s
11138     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140   (eval $ac_try) 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; }
11144     then
11145         gcc_cv_as_ix86_gotoff_in_data=yes
11146     else
11147       echo "configure: failed program was" >&5
11148       cat conftest.s >&5
11149     fi
11150     rm -f conftest.o conftest.s
11151   fi
11152 fi
11153 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11154 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11155
11156
11157 cat >>confdefs.h <<_ACEOF
11158 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11159 _ACEOF
11160
11161     ;;
11162
11163   ia64*-*-*)
11164     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11165 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11166 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11167   echo $ECHO_N "(cached) $ECHO_C" >&6
11168 else
11169   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11170     if test $in_tree_gas = yes; then
11171     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11172   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11173 fi
11174   elif test x$gcc_cv_as != x; then
11175     echo '      .text
11176         addl r15 = @ltoffx(x#), gp
11177         ;;
11178         ld8.mov r16 = [r15], x#' > conftest.s
11179     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181   (eval $ac_try) 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }
11185     then
11186         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11187     else
11188       echo "configure: failed program was" >&5
11189       cat conftest.s >&5
11190     fi
11191     rm -f conftest.o conftest.s
11192   fi
11193 fi
11194 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11195 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11196 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11197
11198 cat >>confdefs.h <<\_ACEOF
11199 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11200 _ACEOF
11201
11202 fi
11203
11204     ;;
11205
11206   powerpc*-*-*)
11207     case $target in
11208       *-*-aix) conftest_s='     .csect .textPR';;
11209       *)       conftest_s='     .text';;
11210     esac
11211     conftest_s="$conftest_s
11212         mfcr 3,128"
11213
11214     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11215 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11216 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11217   echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219   gcc_cv_as_powerpc_mfcrf=no
11220     if test $in_tree_gas = yes; then
11221     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11222   then gcc_cv_as_powerpc_mfcrf=yes
11223 fi
11224   elif test x$gcc_cv_as != x; then
11225     echo "$conftest_s" > conftest.s
11226     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228   (eval $ac_try) 2>&5
11229   ac_status=$?
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); }; }
11232     then
11233         gcc_cv_as_powerpc_mfcrf=yes
11234     else
11235       echo "configure: failed program was" >&5
11236       cat conftest.s >&5
11237     fi
11238     rm -f conftest.o conftest.s
11239   fi
11240 fi
11241 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11242 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11243 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11244
11245 cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_AS_MFCRF 1
11247 _ACEOF
11248
11249 fi
11250     ;;
11251
11252   mips*-*-*)
11253     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11254 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11255 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258   gcc_cv_as_mips_explicit_relocs=no
11259     if test $in_tree_gas = yes; then
11260     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11261   then gcc_cv_as_mips_explicit_relocs=yes
11262 fi
11263   elif test x$gcc_cv_as != x; then
11264     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11265     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }
11271     then
11272         gcc_cv_as_mips_explicit_relocs=yes
11273     else
11274       echo "configure: failed program was" >&5
11275       cat conftest.s >&5
11276     fi
11277     rm -f conftest.o conftest.s
11278   fi
11279 fi
11280 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11281 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11282 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11283   if test x$target_cpu_default = x
11284        then target_cpu_default=MASK_EXPLICIT_RELOCS
11285        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11286        fi
11287 fi
11288
11289     ;;
11290 esac
11291 # ??? Not all targets support dwarf2 debug_line, even within a version
11292 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11293 # info to the output file.  So, as supported targets are added to gas 2.11,
11294 # add some instruction here to (also) show we expect this might work.
11295 # ??? Once 2.11 is released, probably need to add first known working
11296 # version to the per-target configury.
11297 case "$target" in
11298   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11299   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11300   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11301     insn="nop"
11302     ;;
11303   ia64*-*-*)
11304     insn="nop 0"
11305     ;;
11306   mmix-*-*)
11307     insn="swym 0"
11308     ;;
11309 esac
11310 if test x"$insn" != x; then
11311  conftest_s="\
11312         .file 1 \"conftest.s\"
11313         .loc 1 3 0
11314         $insn"
11315  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11316 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11317 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320   gcc_cv_as_dwarf2_debug_line=no
11321     if test $in_tree_gas = yes; then
11322     if test $in_tree_gas_is_elf = yes \
11323   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11324   then gcc_cv_as_dwarf2_debug_line=yes
11325 fi
11326   elif test x$gcc_cv_as != x; then
11327     echo "$conftest_s" > conftest.s
11328     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330   (eval $ac_try) 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; }
11334     then
11335         # ??? This fails with non-gnu grep.  Maybe use objdump?
11336    if grep debug_line conftest.o > /dev/null 2>&1; then
11337      gcc_cv_as_dwarf2_debug_line=yes
11338    fi
11339     else
11340       echo "configure: failed program was" >&5
11341       cat conftest.s >&5
11342     fi
11343     rm -f conftest.o conftest.s
11344   fi
11345 fi
11346 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11347 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11348
11349
11350 # The .debug_line file table must be in the exact order that
11351 # we specified the files, since these indices are also used
11352 # by DW_AT_decl_file.  Approximate this test by testing if
11353 # the assembler bitches if the same index is assigned twice.
11354  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11355 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11356 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359   gcc_cv_as_dwarf2_file_buggy=no
11360   if test x$gcc_cv_as != x; then
11361     echo '      .file 1 "foo.s"
11362         .file 1 "bar.s"' > conftest.s
11363     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365   (eval $ac_try) 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; }
11369     then
11370         gcc_cv_as_dwarf2_file_buggy=yes
11371     else
11372       echo "configure: failed program was" >&5
11373       cat conftest.s >&5
11374     fi
11375     rm -f conftest.o conftest.s
11376   fi
11377 fi
11378 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11379 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11380
11381
11382  if test $gcc_cv_as_dwarf2_debug_line = yes \
11383  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11384
11385 cat >>confdefs.h <<\_ACEOF
11386 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11387 _ACEOF
11388
11389  fi
11390
11391  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11392 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11393 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11394   echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396   gcc_cv_as_gdwarf2_flag=no
11397     if test $in_tree_gas = yes; then
11398     if test $in_tree_gas_is_elf = yes \
11399   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11400   then gcc_cv_as_gdwarf2_flag=yes
11401 fi
11402   elif test x$gcc_cv_as != x; then
11403     echo "$insn" > conftest.s
11404     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406   (eval $ac_try) 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); }; }
11410     then
11411         gcc_cv_as_gdwarf2_flag=yes
11412     else
11413       echo "configure: failed program was" >&5
11414       cat conftest.s >&5
11415     fi
11416     rm -f conftest.o conftest.s
11417   fi
11418 fi
11419 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11420 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11421 if test $gcc_cv_as_gdwarf2_flag = yes; then
11422
11423 cat >>confdefs.h <<\_ACEOF
11424 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11425 _ACEOF
11426
11427 fi
11428
11429  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11430 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11431 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434   gcc_cv_as_gstabs_flag=no
11435     if test $in_tree_gas = yes; then
11436     if test $in_tree_gas_is_elf = yes \
11437   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11438   then gcc_cv_as_gstabs_flag=yes
11439 fi
11440   elif test x$gcc_cv_as != x; then
11441     echo "$insn" > conftest.s
11442     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444   (eval $ac_try) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; }
11448     then
11449         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11450    # and warns about it, but still exits successfully.  So check for
11451    # this.
11452    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454   (eval $ac_try) 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }
11458    then :
11459    else gcc_cv_as_gstabs_flag=yes
11460    fi
11461     else
11462       echo "configure: failed program was" >&5
11463       cat conftest.s >&5
11464     fi
11465     rm -f conftest.o conftest.s
11466   fi
11467 fi
11468 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11469 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11470 if test $gcc_cv_as_gstabs_flag = yes; then
11471
11472 cat >>confdefs.h <<\_ACEOF
11473 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11474 _ACEOF
11475
11476 fi
11477 fi
11478
11479 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11480 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11481 gcc_cv_ld_ro_rw_mix=unknown
11482 if test $in_tree_ld = yes ; then
11483   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 \
11484      && test $in_tree_ld_is_elf = yes; then
11485     gcc_cv_ld_ro_rw_mix=read-write
11486   fi
11487 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11488   echo '.section myfoosect, "a"' > conftest1.s
11489   echo '.section myfoosect, "aw"' > conftest2.s
11490   echo '.byte 1' >> conftest2.s
11491   echo '.section myfoosect, "a"' > conftest3.s
11492   echo '.byte 0' >> conftest3.s
11493   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11494      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11495      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11496      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11497         conftest2.o conftest3.o > /dev/null 2>&1; then
11498     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11499                          | sed -e '/myfoosect/!d' -e N`
11500     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11501       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11502         gcc_cv_ld_ro_rw_mix=read-only
11503       else
11504         gcc_cv_ld_ro_rw_mix=read-write
11505       fi
11506     fi
11507   fi
11508   rm -f conftest.* conftest[123].*
11509 fi
11510 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11511
11512 cat >>confdefs.h <<\_ACEOF
11513 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11514 _ACEOF
11515
11516 fi
11517 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11518 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11519
11520 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11521 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11522 gcc_cv_ld_eh_frame_hdr=no
11523 if test $in_tree_ld = yes ; then
11524   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 \
11525      && test $in_tree_ld_is_elf = yes; then
11526     gcc_cv_ld_eh_frame_hdr=yes
11527   fi
11528 elif test x$gcc_cv_ld != x; then
11529         # Check if linker supports --eh-frame-hdr option
11530         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11531                 gcc_cv_ld_eh_frame_hdr=yes
11532         fi
11533 fi
11534 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11535
11536 cat >>confdefs.h <<\_ACEOF
11537 #define HAVE_LD_EH_FRAME_HDR 1
11538 _ACEOF
11539
11540 fi
11541 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11542 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11543
11544 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11545 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11546 gcc_cv_ld_pie=no
11547 if test $in_tree_ld = yes ; then
11548   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 \
11549      && test $in_tree_ld_is_elf = yes; then
11550     gcc_cv_ld_pie=yes
11551   fi
11552 elif test x$gcc_cv_ld != x; then
11553         # Check if linker supports -pie option
11554         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11555                 gcc_cv_ld_pie=yes
11556         fi
11557 fi
11558 if test x"$gcc_cv_ld_pie" = xyes; then
11559
11560 cat >>confdefs.h <<\_ACEOF
11561 #define HAVE_LD_PIE 1
11562 _ACEOF
11563
11564 fi
11565 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11566 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11567
11568 if test x$with_sysroot = x && test x$host = x$target \
11569    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11570
11571 cat >>confdefs.h <<_ACEOF
11572 #define PREFIX_INCLUDE_DIR "$prefix/include"
11573 _ACEOF
11574
11575 fi
11576
11577 # Figure out what language subdirectories are present.
11578 # Look if the user specified --enable-languages="..."; if not, use
11579 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11580 # go away some day.
11581 # NB:  embedded tabs in this IF block -- do not untabify
11582 if test x"${enable_languages+set}" != xset; then
11583         if test x"${LANGUAGES+set}" = xset; then
11584                 enable_languages="${LANGUAGES}"
11585                 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11586 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11587
11588         else
11589                 enable_languages=all
11590         fi
11591 else
11592         if test x"${enable_languages}" = x \
11593         || test x"${enable_languages}" = xyes;
11594         then
11595                 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11596 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11597    { (exit 1); exit 1; }; }
11598         fi
11599 fi
11600 enable_languages=`echo "${enable_languages}" | sed -e 's/[      ,][     ,]*/,/g' -e 's/,$//'`
11601
11602 # First scan to see if an enabled language requires some other language.
11603 # We assume that a given config-lang.in will list all the language
11604 # front ends it requires, even if some are required indirectly.
11605 for lang in ${srcdir}/*/config-lang.in
11606 do
11607    case $lang in
11608     # The odd quoting in the next line works around
11609     # an apparent bug in bash 1.12 on linux.
11610     ${srcdir}/[*]/config-lang.in)
11611        ;;
11612     *)
11613        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^      ]*\).*$,\1,p' $lang`
11614        this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^    ]*\).*$,\1,p' $lang`
11615        for other in $this_lang_requires
11616        do
11617           case ,${enable_languages}, in
11618            *,$other,*)
11619               ;;
11620            *,all,*)
11621               ;;
11622            *,$lang_alias,*)
11623               enable_languages="$enable_languages,$other"
11624               ;;
11625           esac
11626        done
11627        ;;
11628    esac
11629 done
11630
11631 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's:  *: :g' -e 's:  *: :g' -e 's:^ ::' -e 's: $::'`
11632 found_languages=
11633 subdirs=
11634 for lang in ${srcdir}/*/config-lang.in
11635 do
11636         case $lang in
11637         # The odd quoting in the next line works around
11638         # an apparent bug in bash 1.12 on linux.
11639         ${srcdir}/[*]/config-lang.in) ;;
11640         *)
11641           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
11642           this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^         ]*\).*$,\1,p' $lang`
11643           build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^     ]*\).*$,\1,p' $lang`
11644           if test "x$lang_alias" = x
11645           then
11646                 echo "$lang doesn't set \$language." 1>&2
11647                 exit 1
11648           fi
11649           case ${build_by_default},${enable_languages}, in
11650           *,$lang_alias,*) add_this_lang=yes ;;
11651           no,*) add_this_lang=no ;;
11652           *,all,*) add_this_lang=yes ;;
11653           *) add_this_lang=no ;;
11654           esac
11655           found_languages="${found_languages} ${lang_alias}"
11656           if test x"${add_this_lang}" = xyes; then
11657                 case $lang in
11658                     ${srcdir}/ada/config-lang.in)
11659                         if test x$have_gnat = xyes ; then
11660                                 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11661                         fi
11662                         ;;
11663                     *)
11664                         subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11665                         ;;
11666                 esac
11667           fi
11668           ;;
11669         esac
11670 done
11671
11672 missing_languages=
11673 for expected_language in ${expected_languages} ..
11674 do
11675     if test "${expected_language}" != ..; then
11676         missing_language="${expected_language}"
11677         if test "${expected_language}" = "c" \
11678            || test "${expected_language}" = "all"; then
11679                 missing_language=
11680         fi
11681         for found_language in ${found_languages} ..
11682         do
11683             if test "${found_language}" != ..; then
11684                 if test "${expected_language}" = "${found_language}"; then
11685                     missing_language=
11686                 fi
11687             fi
11688         done
11689         if test "x${missing_language}" != x; then
11690            missing_languages="${missing_languages} ${missing_language}"
11691         fi
11692     fi
11693 done
11694
11695 if test "x$missing_languages" != x; then
11696   { { echo "$as_me:$LINENO: error:
11697 The following requested languages were not found:${missing_languages}
11698 The following languages were available: c${found_languages}" >&5
11699 echo "$as_me: error:
11700 The following requested languages were not found:${missing_languages}
11701 The following languages were available: c${found_languages}" >&2;}
11702    { (exit 1); exit 1; }; }
11703 fi
11704
11705 # Make gthr-default.h if we have a thread file.
11706 gthread_flags=
11707 if test $thread_file != single; then
11708     rm -f gthr-default.h
11709     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11710     gthread_flags=-DHAVE_GTHR_DEFAULT
11711 fi
11712
11713
11714 # Find out what GC implementation we want, or may, use.
11715
11716 # Check whether --with-gc or --without-gc was given.
11717 if test "${with_gc+set}" = set; then
11718   withval="$with_gc"
11719   case "$withval" in
11720   simple | page | zone)
11721     GGC=ggc-$withval
11722     ;;
11723   *)
11724     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11725 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11726    { (exit 1); exit 1; }; }
11727     ;;
11728 esac
11729 else
11730   GGC=ggc-page
11731 fi;
11732
11733 echo "Using $GGC for garbage collection."
11734
11735 # Use the system's zlib library.
11736 zlibdir=-L../zlib
11737 zlibinc="-I\$(srcdir)/../zlib"
11738
11739 # Check whether --with-system-zlib or --without-system-zlib was given.
11740 if test "${with_system_zlib+set}" = set; then
11741   withval="$with_system_zlib"
11742   zlibdir=
11743 zlibinc=
11744
11745 fi;
11746
11747
11748
11749
11750 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11751 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11752     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11753 if test "${enable_maintainer_mode+set}" = set; then
11754   enableval="$enable_maintainer_mode"
11755   maintainer_mode=$enableval
11756 else
11757   maintainer_mode=no
11758 fi;
11759
11760 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11761 echo "${ECHO_T}$maintainer_mode" >&6
11762
11763 if test "$maintainer_mode" = "yes"; then
11764   MAINT=''
11765 else
11766   MAINT='#'
11767 fi
11768
11769 # Make empty files to contain the specs and options for each language.
11770 # Then add #include lines to for a compiler that has specs and/or options.
11771
11772 lang_opt_files=
11773 lang_specs_files=
11774 lang_tree_files=
11775 for subdir in . $subdirs
11776 do
11777         if test -f $srcdir/$subdir/lang.opt; then
11778             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11779         fi
11780         if test -f $srcdir/$subdir/lang-specs.h; then
11781             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11782         fi
11783         if test -f $srcdir/$subdir/$subdir-tree.def; then
11784             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11785         fi
11786 done
11787
11788 # These (without "all_") are set in each config-lang.in.
11789 # `language' must be a single word so is spelled singularly.
11790 all_languages=
11791 all_boot_languages=
11792 all_compilers=
11793 all_stagestuff=
11794 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11795 # List of language makefile fragments.
11796 all_lang_makefrags=
11797 # List of language subdirectory makefiles.  Deprecated.
11798 all_lang_makefiles=
11799 # Files for gengtype
11800 all_gtfiles="$target_gtfiles"
11801 # Files for gengtype with language
11802 all_gtfiles_files_langs=
11803 all_gtfiles_files_files=
11804
11805 # Add the language fragments.
11806 # Languages are added via two mechanisms.  Some information must be
11807 # recorded in makefile variables, these are defined in config-lang.in.
11808 # We accumulate them and plug them into the main Makefile.
11809 # The other mechanism is a set of hooks for each of the main targets
11810 # like `clean', `install', etc.
11811
11812 language_hooks="Make-hooks"
11813
11814 for s in $subdirs
11815 do
11816                 language=
11817                 boot_language=
11818                 compilers=
11819                 stagestuff=
11820                 outputs=
11821                 gtfiles=
11822                 . ${srcdir}/$s/config-lang.in
11823                 if test "x$language" = x
11824                 then
11825                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11826                         exit 1
11827                 fi
11828                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11829                 if test -f ${srcdir}/$s/Makefile.in
11830                 then all_lang_makefiles="$s/Makefile"
11831                 fi
11832                 all_languages="$all_languages $language"
11833                 if test "x$boot_language" = xyes
11834                 then
11835                         all_boot_languages="$all_boot_languages $language"
11836                 fi
11837                 all_compilers="$all_compilers $compilers"
11838                 all_stagestuff="$all_stagestuff $stagestuff"
11839                 all_outputs="$all_outputs $outputs"
11840                 all_gtfiles="$all_gtfiles $gtfiles"
11841                 for f in $gtfiles
11842                 do
11843                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11844                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11845                 done
11846 done
11847
11848 # Pick up gtfiles for c
11849 gtfiles=
11850 s="c"
11851 . ${srcdir}/c-config-lang.in
11852 all_gtfiles="$all_gtfiles $gtfiles"
11853 for f in $gtfiles
11854 do
11855         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11856         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11857 done
11858
11859 check_languages=
11860 for language in $all_languages
11861 do
11862                 check_languages="$check_languages check-$language"
11863 done
11864
11865 # We link each language in with a set of hooks, reached indirectly via
11866 # lang.${target}.
11867
11868 rm -f Make-hooks
11869 touch Make-hooks
11870 target_list="all.build all.cross start.encap rest.encap tags \
11871         install-normal install-common install-man \
11872         uninstall \
11873         mostlyclean clean distclean maintainer-clean \
11874         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11875 for t in $target_list
11876 do
11877         x=
11878         for lang in $all_languages
11879         do
11880                         x="$x $lang.$t"
11881         done
11882         echo "lang.$t: $x" >> Make-hooks
11883 done
11884
11885 # Create .gdbinit.
11886
11887 echo "dir ." > .gdbinit
11888 echo "dir ${srcdir}" >> .gdbinit
11889 if test x$gdb_needs_out_file_path = xyes
11890 then
11891         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11892 fi
11893 if test "x$subdirs" != x; then
11894         for s in $subdirs
11895         do
11896                 echo "dir ${srcdir}/$s" >> .gdbinit
11897         done
11898 fi
11899 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11900
11901 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11902 # absolute path for gcc_tooldir based on inserting the number of up-directory
11903 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11904 # $(libsubdir)/@(unlibsubdir) based path.
11905 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11906 # make and thus we'd get different behavior depending on where we built the
11907 # sources.
11908 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11909     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11910 else
11911 # An explanation of the sed strings:
11912 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
11913 #  -e 's|/$||'            match a trailing forward slash and eliminates it
11914 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
11915 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
11916 #
11917 # (*) Note this pattern overwrites the first character of the string
11918 # with a forward slash if one is not already present.  This is not a
11919 # problem because the exact names of the sub-directories concerned is
11920 # unimportant, just the number of them matters.
11921 #
11922 # The practical upshot of these patterns is like this:
11923 #
11924 #  prefix     exec_prefix        result
11925 #  ------     -----------        ------
11926 #   /foo        /foo/bar          ../
11927 #   /foo/       /foo/bar          ../
11928 #   /foo        /foo/bar/         ../
11929 #   /foo/       /foo/bar/         ../
11930 #   /foo        /foo/bar/ugg      ../../
11931 #
11932     dollar='$$'
11933     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11934 fi
11935
11936
11937
11938 # Find a directory in which to install a shared libgcc.
11939
11940 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11941 if test "${enable_version_specific_runtime_libs+set}" = set; then
11942   enableval="$enable_version_specific_runtime_libs"
11943
11944 fi;
11945
11946
11947 # Check whether --with-slibdir or --without-slibdir was given.
11948 if test "${with_slibdir+set}" = set; then
11949   withval="$with_slibdir"
11950   slibdir="$with_slibdir"
11951 else
11952   if test "${enable_version_specific_runtime_libs+set}" = set; then
11953   slibdir='$(libsubdir)'
11954 elif test "$host" != "$target"; then
11955   slibdir='$(build_tooldir)/lib'
11956 else
11957   slibdir='$(libdir)'
11958 fi
11959 fi;
11960
11961
11962 objdir=`${PWDCMD-pwd}`
11963
11964
11965 # Substitute configuration variables
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036 # Echo link setup.
12037 if test x${build} = x${host} ; then
12038   if test x${host} = x${target} ; then
12039     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12040   else
12041     echo "Links are now set up to build a cross-compiler" 1>&2
12042     echo " from ${host} to ${target}." 1>&2
12043   fi
12044 else
12045   if test x${host} = x${target} ; then
12046     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12047     echo " for ${target}." 1>&2
12048   else
12049     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12050     echo " from ${host} to ${target}." 1>&2
12051   fi
12052 fi
12053
12054 # Configure the subdirectories
12055 # AC_CONFIG_SUBDIRS($subdirs)
12056
12057 # Create the Makefile
12058 # and configure language subdirectories
12059           ac_config_files="$ac_config_files $all_outputs"
12060
12061
12062           ac_config_commands="$ac_config_commands default"
12063
12064 cat >confcache <<\_ACEOF
12065 # This file is a shell script that caches the results of configure
12066 # tests run on this system so they can be shared between configure
12067 # scripts and configure runs, see configure's option --config-cache.
12068 # It is not useful on other systems.  If it contains results you don't
12069 # want to keep, you may remove or edit it.
12070 #
12071 # config.status only pays attention to the cache file if you give it
12072 # the --recheck option to rerun configure.
12073 #
12074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12076 # following values.
12077
12078 _ACEOF
12079
12080 # The following way of writing the cache mishandles newlines in values,
12081 # but we know of no workaround that is simple, portable, and efficient.
12082 # So, don't put newlines in cache variables' values.
12083 # Ultrix sh set writes to stderr and can't be redirected directly,
12084 # and sets the high bit in the cache file unless we assign to the vars.
12085 {
12086   (set) 2>&1 |
12087     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12088     *ac_space=\ *)
12089       # `set' does not quote correctly, so add quotes (double-quote
12090       # substitution turns \\\\ into \\, and sed turns \\ into \).
12091       sed -n \
12092         "s/'/'\\\\''/g;
12093           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12094       ;;
12095     *)
12096       # `set' quotes correctly as required by POSIX, so do not add quotes.
12097       sed -n \
12098         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12099       ;;
12100     esac;
12101 } |
12102   sed '
12103      t clear
12104      : clear
12105      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12106      t end
12107      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12108      : end' >>confcache
12109 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12110   if test -w $cache_file; then
12111     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12112     cat confcache >$cache_file
12113   else
12114     echo "not updating unwritable cache $cache_file"
12115   fi
12116 fi
12117 rm -f confcache
12118
12119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12120 # Let make expand exec_prefix.
12121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12122
12123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12125 # trailing colons and then remove the whole line if VPATH becomes empty
12126 # (actually we leave an empty line to preserve line numbers).
12127 if test "x$srcdir" = x.; then
12128   ac_vpsub='/^[         ]*VPATH[        ]*=/{
12129 s/:*\$(srcdir):*/:/;
12130 s/:*\${srcdir}:*/:/;
12131 s/:*@srcdir@:*/:/;
12132 s/^\([^=]*=[    ]*\):*/\1/;
12133 s/:*$//;
12134 s/^[^=]*=[      ]*$//;
12135 }'
12136 fi
12137
12138 DEFS=-DHAVE_CONFIG_H
12139
12140 ac_libobjs=
12141 ac_ltlibobjs=
12142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12143   # 1. Remove the extension, and $U if already installed.
12144   ac_i=`echo "$ac_i" |
12145          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12146   # 2. Add them.
12147   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12148   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12149 done
12150 LIBOBJS=$ac_libobjs
12151
12152 LTLIBOBJS=$ac_ltlibobjs
12153
12154
12155
12156 : ${CONFIG_STATUS=./config.status}
12157 ac_clean_files_save=$ac_clean_files
12158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12161 cat >$CONFIG_STATUS <<_ACEOF
12162 #! $SHELL
12163 # Generated by $as_me.
12164 # Run this file to recreate the current configuration.
12165 # Compiler output produced by configure, useful for debugging
12166 # configure, is in config.log if it exists.
12167
12168 debug=false
12169 ac_cs_recheck=false
12170 ac_cs_silent=false
12171 SHELL=\${CONFIG_SHELL-$SHELL}
12172 _ACEOF
12173
12174 cat >>$CONFIG_STATUS <<\_ACEOF
12175 ## --------------------- ##
12176 ## M4sh Initialization.  ##
12177 ## --------------------- ##
12178
12179 # Be Bourne compatible
12180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12181   emulate sh
12182   NULLCMD=:
12183   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12184   # is contrary to our usage.  Disable this feature.
12185   alias -g '${1+"$@"}'='"$@"'
12186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12187   set -o posix
12188 fi
12189
12190 # Support unset when possible.
12191 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12192   as_unset=unset
12193 else
12194   as_unset=false
12195 fi
12196
12197
12198 # Work around bugs in pre-3.0 UWIN ksh.
12199 $as_unset ENV MAIL MAILPATH
12200 PS1='$ '
12201 PS2='> '
12202 PS4='+ '
12203
12204 # NLS nuisances.
12205 for as_var in \
12206   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12207   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12208   LC_TELEPHONE LC_TIME
12209 do
12210   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12211     eval $as_var=C; export $as_var
12212   else
12213     $as_unset $as_var
12214   fi
12215 done
12216
12217 # Required to use basename.
12218 if expr a : '\(a\)' >/dev/null 2>&1; then
12219   as_expr=expr
12220 else
12221   as_expr=false
12222 fi
12223
12224 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12225   as_basename=basename
12226 else
12227   as_basename=false
12228 fi
12229
12230
12231 # Name of the executable.
12232 as_me=`$as_basename "$0" ||
12233 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12234          X"$0" : 'X\(//\)$' \| \
12235          X"$0" : 'X\(/\)$' \| \
12236          .     : '\(.\)' 2>/dev/null ||
12237 echo X/"$0" |
12238     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12239           /^X\/\(\/\/\)$/{ s//\1/; q; }
12240           /^X\/\(\/\).*/{ s//\1/; q; }
12241           s/.*/./; q'`
12242
12243
12244 # PATH needs CR, and LINENO needs CR and PATH.
12245 # Avoid depending upon Character Ranges.
12246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12249 as_cr_digits='0123456789'
12250 as_cr_alnum=$as_cr_Letters$as_cr_digits
12251
12252 # The user is always right.
12253 if test "${PATH_SEPARATOR+set}" != set; then
12254   echo "#! /bin/sh" >conf$$.sh
12255   echo  "exit 0"   >>conf$$.sh
12256   chmod +x conf$$.sh
12257   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12258     PATH_SEPARATOR=';'
12259   else
12260     PATH_SEPARATOR=:
12261   fi
12262   rm -f conf$$.sh
12263 fi
12264
12265
12266   as_lineno_1=$LINENO
12267   as_lineno_2=$LINENO
12268   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12269   test "x$as_lineno_1" != "x$as_lineno_2" &&
12270   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12271   # Find who we are.  Look in the path if we contain no path at all
12272   # relative or not.
12273   case $0 in
12274     *[\\/]* ) as_myself=$0 ;;
12275     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $PATH
12277 do
12278   IFS=$as_save_IFS
12279   test -z "$as_dir" && as_dir=.
12280   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12281 done
12282
12283        ;;
12284   esac
12285   # We did not find ourselves, most probably we were run as `sh COMMAND'
12286   # in which case we are not to be found in the path.
12287   if test "x$as_myself" = x; then
12288     as_myself=$0
12289   fi
12290   if test ! -f "$as_myself"; then
12291     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12292 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12293    { (exit 1); exit 1; }; }
12294   fi
12295   case $CONFIG_SHELL in
12296   '')
12297     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12299 do
12300   IFS=$as_save_IFS
12301   test -z "$as_dir" && as_dir=.
12302   for as_base in sh bash ksh sh5; do
12303          case $as_dir in
12304          /*)
12305            if ("$as_dir/$as_base" -c '
12306   as_lineno_1=$LINENO
12307   as_lineno_2=$LINENO
12308   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12309   test "x$as_lineno_1" != "x$as_lineno_2" &&
12310   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12311              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12312              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12313              CONFIG_SHELL=$as_dir/$as_base
12314              export CONFIG_SHELL
12315              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12316            fi;;
12317          esac
12318        done
12319 done
12320 ;;
12321   esac
12322
12323   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12324   # uniformly replaced by the line number.  The first 'sed' inserts a
12325   # line-number line before each line; the second 'sed' does the real
12326   # work.  The second script uses 'N' to pair each line-number line
12327   # with the numbered line, and appends trailing '-' during
12328   # substitution so that $LINENO is not a special case at line end.
12329   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12330   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12331   sed '=' <$as_myself |
12332     sed '
12333       N
12334       s,$,-,
12335       : loop
12336       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12337       t loop
12338       s,-$,,
12339       s,^['$as_cr_digits']*\n,,
12340     ' >$as_me.lineno &&
12341   chmod +x $as_me.lineno ||
12342     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12343 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12344    { (exit 1); exit 1; }; }
12345
12346   # Don't try to exec as it changes $[0], causing all sort of problems
12347   # (the dirname of $[0] is not the place where we might find the
12348   # original and so on.  Autoconf is especially sensible to this).
12349   . ./$as_me.lineno
12350   # Exit status is that of the last command.
12351   exit
12352 }
12353
12354
12355 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12356   *c*,-n*) ECHO_N= ECHO_C='
12357 ' ECHO_T='      ' ;;
12358   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12359   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12360 esac
12361
12362 if expr a : '\(a\)' >/dev/null 2>&1; then
12363   as_expr=expr
12364 else
12365   as_expr=false
12366 fi
12367
12368 rm -f conf$$ conf$$.exe conf$$.file
12369 echo >conf$$.file
12370 if ln -s conf$$.file conf$$ 2>/dev/null; then
12371   # We could just check for DJGPP; but this test a) works b) is more generic
12372   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12373   if test -f conf$$.exe; then
12374     # Don't use ln at all; we don't have any links
12375     as_ln_s='cp -p'
12376   else
12377     as_ln_s='ln -s'
12378   fi
12379 elif ln conf$$.file conf$$ 2>/dev/null; then
12380   as_ln_s=ln
12381 else
12382   as_ln_s='cp -p'
12383 fi
12384 rm -f conf$$ conf$$.exe conf$$.file
12385
12386 if mkdir -p . 2>/dev/null; then
12387   as_mkdir_p=:
12388 else
12389   as_mkdir_p=false
12390 fi
12391
12392 as_executable_p="test -f"
12393
12394 # Sed expression to map a string onto a valid CPP name.
12395 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12396
12397 # Sed expression to map a string onto a valid variable name.
12398 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12399
12400
12401 # IFS
12402 # We need space, tab and new line, in precisely that order.
12403 as_nl='
12404 '
12405 IFS="   $as_nl"
12406
12407 # CDPATH.
12408 $as_unset CDPATH
12409
12410 exec 6>&1
12411
12412 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12413 # report actual input values of CONFIG_FILES etc. instead of their
12414 # values after options handling.  Logging --version etc. is OK.
12415 exec 5>>config.log
12416 {
12417   echo
12418   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12419 ## Running $as_me. ##
12420 _ASBOX
12421 } >&5
12422 cat >&5 <<_CSEOF
12423
12424 This file was extended by $as_me, which was
12425 generated by GNU Autoconf 2.57.  Invocation command line was
12426
12427   CONFIG_FILES    = $CONFIG_FILES
12428   CONFIG_HEADERS  = $CONFIG_HEADERS
12429   CONFIG_LINKS    = $CONFIG_LINKS
12430   CONFIG_COMMANDS = $CONFIG_COMMANDS
12431   $ $0 $@
12432
12433 _CSEOF
12434 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12435 echo >&5
12436 _ACEOF
12437
12438 # Files that config.status was made for.
12439 if test -n "$ac_config_files"; then
12440   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12441 fi
12442
12443 if test -n "$ac_config_headers"; then
12444   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12445 fi
12446
12447 if test -n "$ac_config_links"; then
12448   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12449 fi
12450
12451 if test -n "$ac_config_commands"; then
12452   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12453 fi
12454
12455 cat >>$CONFIG_STATUS <<\_ACEOF
12456
12457 ac_cs_usage="\
12458 \`$as_me' instantiates files from templates according to the
12459 current configuration.
12460
12461 Usage: $0 [OPTIONS] [FILE]...
12462
12463   -h, --help       print this help, then exit
12464   -V, --version    print version number, then exit
12465   -q, --quiet      do not print progress messages
12466   -d, --debug      don't remove temporary files
12467       --recheck    update $as_me by reconfiguring in the same conditions
12468   --file=FILE[:TEMPLATE]
12469                    instantiate the configuration file FILE
12470   --header=FILE[:TEMPLATE]
12471                    instantiate the configuration header FILE
12472
12473 Configuration files:
12474 $config_files
12475
12476 Configuration headers:
12477 $config_headers
12478
12479 Configuration commands:
12480 $config_commands
12481
12482 Report bugs to <bug-autoconf@gnu.org>."
12483 _ACEOF
12484
12485 cat >>$CONFIG_STATUS <<_ACEOF
12486 ac_cs_version="\\
12487 config.status
12488 configured by $0, generated by GNU Autoconf 2.57,
12489   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12490
12491 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12492 Free Software Foundation, Inc.
12493 This config.status script is free software; the Free Software Foundation
12494 gives unlimited permission to copy, distribute and modify it."
12495 srcdir=$srcdir
12496 _ACEOF
12497
12498 cat >>$CONFIG_STATUS <<\_ACEOF
12499 # If no file are specified by the user, then we need to provide default
12500 # value.  By we need to know if files were specified by the user.
12501 ac_need_defaults=:
12502 while test $# != 0
12503 do
12504   case $1 in
12505   --*=*)
12506     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12507     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12508     ac_shift=:
12509     ;;
12510   -*)
12511     ac_option=$1
12512     ac_optarg=$2
12513     ac_shift=shift
12514     ;;
12515   *) # This is not an option, so the user has probably given explicit
12516      # arguments.
12517      ac_option=$1
12518      ac_need_defaults=false;;
12519   esac
12520
12521   case $ac_option in
12522   # Handling of the options.
12523 _ACEOF
12524 cat >>$CONFIG_STATUS <<\_ACEOF
12525   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12526     ac_cs_recheck=: ;;
12527   --version | --vers* | -V )
12528     echo "$ac_cs_version"; exit 0 ;;
12529   --he | --h)
12530     # Conflict between --help and --header
12531     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12532 Try \`$0 --help' for more information." >&5
12533 echo "$as_me: error: ambiguous option: $1
12534 Try \`$0 --help' for more information." >&2;}
12535    { (exit 1); exit 1; }; };;
12536   --help | --hel | -h )
12537     echo "$ac_cs_usage"; exit 0 ;;
12538   --debug | --d* | -d )
12539     debug=: ;;
12540   --file | --fil | --fi | --f )
12541     $ac_shift
12542     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12543     ac_need_defaults=false;;
12544   --header | --heade | --head | --hea )
12545     $ac_shift
12546     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12547     ac_need_defaults=false;;
12548   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12549   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12550     ac_cs_silent=: ;;
12551
12552   # This is an error.
12553   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12554 Try \`$0 --help' for more information." >&5
12555 echo "$as_me: error: unrecognized option: $1
12556 Try \`$0 --help' for more information." >&2;}
12557    { (exit 1); exit 1; }; } ;;
12558
12559   *) ac_config_targets="$ac_config_targets $1" ;;
12560
12561   esac
12562   shift
12563 done
12564
12565 ac_configure_extra_args=
12566
12567 if $ac_cs_silent; then
12568   exec 6>/dev/null
12569   ac_configure_extra_args="$ac_configure_extra_args --silent"
12570 fi
12571
12572 _ACEOF
12573 cat >>$CONFIG_STATUS <<_ACEOF
12574 if \$ac_cs_recheck; then
12575   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12576   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12577 fi
12578
12579 _ACEOF
12580
12581 cat >>$CONFIG_STATUS <<_ACEOF
12582 #
12583 # INIT-COMMANDS section.
12584 #
12585
12586 subdirs='$subdirs'
12587 symbolic_link='$symbolic_link'
12588
12589
12590 _ACEOF
12591
12592
12593
12594 cat >>$CONFIG_STATUS <<\_ACEOF
12595 for ac_config_target in $ac_config_targets
12596 do
12597   case "$ac_config_target" in
12598   # Handling of arguments.
12599   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12600   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12601   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12602   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12603 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12604    { (exit 1); exit 1; }; };;
12605   esac
12606 done
12607
12608 # If the user did not use the arguments to specify the items to instantiate,
12609 # then the envvar interface is used.  Set only those that are not.
12610 # We use the long form for the default assignment because of an extremely
12611 # bizarre bug on SunOS 4.1.3.
12612 if $ac_need_defaults; then
12613   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12614   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12615   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12616 fi
12617
12618 # Have a temporary directory for convenience.  Make it in the build tree
12619 # simply because there is no reason to put it here, and in addition,
12620 # creating and moving files from /tmp can sometimes cause problems.
12621 # Create a temporary directory, and hook for its removal unless debugging.
12622 $debug ||
12623 {
12624   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12625   trap '{ (exit 1); exit 1; }' 1 2 13 15
12626 }
12627
12628 # Create a (secure) tmp directory for tmp files.
12629
12630 {
12631   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12632   test -n "$tmp" && test -d "$tmp"
12633 }  ||
12634 {
12635   tmp=./confstat$$-$RANDOM
12636   (umask 077 && mkdir $tmp)
12637 } ||
12638 {
12639    echo "$me: cannot create a temporary directory in ." >&2
12640    { (exit 1); exit 1; }
12641 }
12642
12643 _ACEOF
12644
12645 cat >>$CONFIG_STATUS <<_ACEOF
12646
12647 #
12648 # CONFIG_FILES section.
12649 #
12650
12651 # No need to generate the scripts if there are no CONFIG_FILES.
12652 # This happens for instance when ./config.status config.h
12653 if test -n "\$CONFIG_FILES"; then
12654   # Protect against being on the right side of a sed subst in config.status.
12655   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12656    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12657 s,@SHELL@,$SHELL,;t t
12658 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12659 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12660 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12661 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12662 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12663 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12664 s,@exec_prefix@,$exec_prefix,;t t
12665 s,@prefix@,$prefix,;t t
12666 s,@program_transform_name@,$program_transform_name,;t t
12667 s,@bindir@,$bindir,;t t
12668 s,@sbindir@,$sbindir,;t t
12669 s,@libexecdir@,$libexecdir,;t t
12670 s,@datadir@,$datadir,;t t
12671 s,@sysconfdir@,$sysconfdir,;t t
12672 s,@sharedstatedir@,$sharedstatedir,;t t
12673 s,@localstatedir@,$localstatedir,;t t
12674 s,@libdir@,$libdir,;t t
12675 s,@includedir@,$includedir,;t t
12676 s,@oldincludedir@,$oldincludedir,;t t
12677 s,@infodir@,$infodir,;t t
12678 s,@mandir@,$mandir,;t t
12679 s,@build_alias@,$build_alias,;t t
12680 s,@host_alias@,$host_alias,;t t
12681 s,@target_alias@,$target_alias,;t t
12682 s,@DEFS@,$DEFS,;t t
12683 s,@ECHO_C@,$ECHO_C,;t t
12684 s,@ECHO_N@,$ECHO_N,;t t
12685 s,@ECHO_T@,$ECHO_T,;t t
12686 s,@LIBS@,$LIBS,;t t
12687 s,@build@,$build,;t t
12688 s,@build_cpu@,$build_cpu,;t t
12689 s,@build_vendor@,$build_vendor,;t t
12690 s,@build_os@,$build_os,;t t
12691 s,@host@,$host,;t t
12692 s,@host_cpu@,$host_cpu,;t t
12693 s,@host_vendor@,$host_vendor,;t t
12694 s,@host_os@,$host_os,;t t
12695 s,@target@,$target,;t t
12696 s,@target_cpu@,$target_cpu,;t t
12697 s,@target_vendor@,$target_vendor,;t t
12698 s,@target_os@,$target_os,;t t
12699 s,@build_subdir@,$build_subdir,;t t
12700 s,@host_subdir@,$host_subdir,;t t
12701 s,@target_subdir@,$target_subdir,;t t
12702 s,@CC@,$CC,;t t
12703 s,@CFLAGS@,$CFLAGS,;t t
12704 s,@LDFLAGS@,$LDFLAGS,;t t
12705 s,@CPPFLAGS@,$CPPFLAGS,;t t
12706 s,@ac_ct_CC@,$ac_ct_CC,;t t
12707 s,@EXEEXT@,$EXEEXT,;t t
12708 s,@OBJEXT@,$OBJEXT,;t t
12709 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12710 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12711 s,@CPP@,$CPP,;t t
12712 s,@GNATBIND@,$GNATBIND,;t t
12713 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12714 s,@strict1_warn@,$strict1_warn,;t t
12715 s,@warn_cflags@,$warn_cflags,;t t
12716 s,@WERROR@,$WERROR,;t t
12717 s,@nocommon_flag@,$nocommon_flag,;t t
12718 s,@EGREP@,$EGREP,;t t
12719 s,@valgrind_path@,$valgrind_path,;t t
12720 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12721 s,@valgrind_command@,$valgrind_command,;t t
12722 s,@coverage_flags@,$coverage_flags,;t t
12723 s,@enable_multilib@,$enable_multilib,;t t
12724 s,@enable_shared@,$enable_shared,;t t
12725 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12726 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12727 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12728 s,@onestep@,$onestep,;t t
12729 s,@SET_MAKE@,$SET_MAKE,;t t
12730 s,@AWK@,$AWK,;t t
12731 s,@LN@,$LN,;t t
12732 s,@LN_S@,$LN_S,;t t
12733 s,@RANLIB@,$RANLIB,;t t
12734 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12735 s,@INSTALL@,$INSTALL,;t t
12736 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12737 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12738 s,@make_compare_target@,$make_compare_target,;t t
12739 s,@have_mktemp_command@,$have_mktemp_command,;t t
12740 s,@MAKEINFO@,$MAKEINFO,;t t
12741 s,@BUILD_INFO@,$BUILD_INFO,;t t
12742 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12743 s,@FLEX@,$FLEX,;t t
12744 s,@BISON@,$BISON,;t t
12745 s,@stage1_cflags@,$stage1_cflags,;t t
12746 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12747 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12748 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12749 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12750 s,@LIBICONV@,$LIBICONV,;t t
12751 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12752 s,@manext@,$manext,;t t
12753 s,@objext@,$objext,;t t
12754 s,@extra_modes_file@,$extra_modes_file,;t t
12755 s,@FORBUILD@,$FORBUILD,;t t
12756 s,@PACKAGE@,$PACKAGE,;t t
12757 s,@VERSION@,$VERSION,;t t
12758 s,@USE_NLS@,$USE_NLS,;t t
12759 s,@LIBINTL@,$LIBINTL,;t t
12760 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12761 s,@INCINTL@,$INCINTL,;t t
12762 s,@XGETTEXT@,$XGETTEXT,;t t
12763 s,@GMSGFMT@,$GMSGFMT,;t t
12764 s,@POSUB@,$POSUB,;t t
12765 s,@CATALOGS@,$CATALOGS,;t t
12766 s,@CROSS@,$CROSS,;t t
12767 s,@ALL@,$ALL,;t t
12768 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12769 s,@inhibit_libc@,$inhibit_libc,;t t
12770 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12771 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12772 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12773 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12774 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12775 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12776 s,@libgcc_visibility@,$libgcc_visibility,;t t
12777 s,@gthread_flags@,$gthread_flags,;t t
12778 s,@GGC@,$GGC,;t t
12779 s,@zlibdir@,$zlibdir,;t t
12780 s,@zlibinc@,$zlibinc,;t t
12781 s,@MAINT@,$MAINT,;t t
12782 s,@gcc_tooldir@,$gcc_tooldir,;t t
12783 s,@dollar@,$dollar,;t t
12784 s,@slibdir@,$slibdir,;t t
12785 s,@objdir@,$objdir,;t t
12786 s,@subdirs@,$subdirs,;t t
12787 s,@srcdir@,$srcdir,;t t
12788 s,@docobjdir@,$docobjdir,;t t
12789 s,@parsedir@,$parsedir,;t t
12790 s,@all_boot_languages@,$all_boot_languages,;t t
12791 s,@all_compilers@,$all_compilers,;t t
12792 s,@all_gtfiles@,$all_gtfiles,;t t
12793 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12794 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12795 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12796 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12797 s,@all_languages@,$all_languages,;t t
12798 s,@all_stagestuff@,$all_stagestuff,;t t
12799 s,@build_exeext@,$build_exeext,;t t
12800 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12801 s,@build_xm_file_list@,$build_xm_file_list,;t t
12802 s,@build_xm_include_list@,$build_xm_include_list,;t t
12803 s,@build_xm_defines@,$build_xm_defines,;t t
12804 s,@check_languages@,$check_languages,;t t
12805 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12806 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12807 s,@cpp_install_dir@,$cpp_install_dir,;t t
12808 s,@xmake_file@,$xmake_file,;t t
12809 s,@tmake_file@,$tmake_file,;t t
12810 s,@extra_headers_list@,$extra_headers_list,;t t
12811 s,@extra_objs@,$extra_objs,;t t
12812 s,@extra_parts@,$extra_parts,;t t
12813 s,@extra_passes@,$extra_passes,;t t
12814 s,@extra_programs@,$extra_programs,;t t
12815 s,@float_h_file@,$float_h_file,;t t
12816 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12817 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12818 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12819 s,@gcc_version@,$gcc_version,;t t
12820 s,@gcc_version_full@,$gcc_version_full,;t t
12821 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12822 s,@host_exeext@,$host_exeext,;t t
12823 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12824 s,@host_xm_file_list@,$host_xm_file_list,;t t
12825 s,@host_xm_include_list@,$host_xm_include_list,;t t
12826 s,@host_xm_defines@,$host_xm_defines,;t t
12827 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12828 s,@install@,$install,;t t
12829 s,@lang_opt_files@,$lang_opt_files,;t t
12830 s,@lang_specs_files@,$lang_specs_files,;t t
12831 s,@lang_tree_files@,$lang_tree_files,;t t
12832 s,@local_prefix@,$local_prefix,;t t
12833 s,@md_file@,$md_file,;t t
12834 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12835 s,@out_file@,$out_file,;t t
12836 s,@out_object_file@,$out_object_file,;t t
12837 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12838 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12839 s,@symbolic_link@,$symbolic_link,;t t
12840 s,@thread_file@,$thread_file,;t t
12841 s,@tm_file_list@,$tm_file_list,;t t
12842 s,@tm_include_list@,$tm_include_list,;t t
12843 s,@tm_defines@,$tm_defines,;t t
12844 s,@tm_p_file_list@,$tm_p_file_list,;t t
12845 s,@tm_p_include_list@,$tm_p_include_list,;t t
12846 s,@xm_file_list@,$xm_file_list,;t t
12847 s,@xm_include_list@,$xm_include_list,;t t
12848 s,@xm_defines@,$xm_defines,;t t
12849 s,@target_noncanonical@,$target_noncanonical,;t t
12850 s,@c_target_objs@,$c_target_objs,;t t
12851 s,@cxx_target_objs@,$cxx_target_objs,;t t
12852 s,@target_cpu_default@,$target_cpu_default,;t t
12853 s,@LIBOBJS@,$LIBOBJS,;t t
12854 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12855 /@language_hooks@/r $language_hooks
12856 s,@language_hooks@,,;t t
12857 CEOF
12858
12859 _ACEOF
12860
12861   cat >>$CONFIG_STATUS <<\_ACEOF
12862   # Split the substitutions into bite-sized pieces for seds with
12863   # small command number limits, like on Digital OSF/1 and HP-UX.
12864   ac_max_sed_lines=48
12865   ac_sed_frag=1 # Number of current file.
12866   ac_beg=1 # First line for current file.
12867   ac_end=$ac_max_sed_lines # Line after last line for current file.
12868   ac_more_lines=:
12869   ac_sed_cmds=
12870   while $ac_more_lines; do
12871     if test $ac_beg -gt 1; then
12872       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12873     else
12874       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12875     fi
12876     if test ! -s $tmp/subs.frag; then
12877       ac_more_lines=false
12878     else
12879       # The purpose of the label and of the branching condition is to
12880       # speed up the sed processing (if there are no `@' at all, there
12881       # is no need to browse any of the substitutions).
12882       # These are the two extra sed commands mentioned above.
12883       (echo ':t
12884   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12885       if test -z "$ac_sed_cmds"; then
12886         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12887       else
12888         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12889       fi
12890       ac_sed_frag=`expr $ac_sed_frag + 1`
12891       ac_beg=$ac_end
12892       ac_end=`expr $ac_end + $ac_max_sed_lines`
12893     fi
12894   done
12895   if test -z "$ac_sed_cmds"; then
12896     ac_sed_cmds=cat
12897   fi
12898 fi # test -n "$CONFIG_FILES"
12899
12900 _ACEOF
12901 cat >>$CONFIG_STATUS <<\_ACEOF
12902 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12903   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12904   case $ac_file in
12905   - | *:- | *:-:* ) # input from stdin
12906         cat >$tmp/stdin
12907         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12908         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12909   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12910         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12911   * )   ac_file_in=$ac_file.in ;;
12912   esac
12913
12914   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12915   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12917          X"$ac_file" : 'X\(//\)[^/]' \| \
12918          X"$ac_file" : 'X\(//\)$' \| \
12919          X"$ac_file" : 'X\(/\)' \| \
12920          .     : '\(.\)' 2>/dev/null ||
12921 echo X"$ac_file" |
12922     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12923           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12924           /^X\(\/\/\)$/{ s//\1/; q; }
12925           /^X\(\/\).*/{ s//\1/; q; }
12926           s/.*/./; q'`
12927   { if $as_mkdir_p; then
12928     mkdir -p "$ac_dir"
12929   else
12930     as_dir="$ac_dir"
12931     as_dirs=
12932     while test ! -d "$as_dir"; do
12933       as_dirs="$as_dir $as_dirs"
12934       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12936          X"$as_dir" : 'X\(//\)[^/]' \| \
12937          X"$as_dir" : 'X\(//\)$' \| \
12938          X"$as_dir" : 'X\(/\)' \| \
12939          .     : '\(.\)' 2>/dev/null ||
12940 echo X"$as_dir" |
12941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12942           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12943           /^X\(\/\/\)$/{ s//\1/; q; }
12944           /^X\(\/\).*/{ s//\1/; q; }
12945           s/.*/./; q'`
12946     done
12947     test ! -n "$as_dirs" || mkdir $as_dirs
12948   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12949 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12950    { (exit 1); exit 1; }; }; }
12951
12952   ac_builddir=.
12953
12954 if test "$ac_dir" != .; then
12955   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12956   # A "../" for each directory in $ac_dir_suffix.
12957   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12958 else
12959   ac_dir_suffix= ac_top_builddir=
12960 fi
12961
12962 case $srcdir in
12963   .)  # No --srcdir option.  We are building in place.
12964     ac_srcdir=.
12965     if test -z "$ac_top_builddir"; then
12966        ac_top_srcdir=.
12967     else
12968        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12969     fi ;;
12970   [\\/]* | ?:[\\/]* )  # Absolute path.
12971     ac_srcdir=$srcdir$ac_dir_suffix;
12972     ac_top_srcdir=$srcdir ;;
12973   *) # Relative path.
12974     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12975     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12976 esac
12977 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12978 # absolute.
12979 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12980 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12981 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12982 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12983
12984
12985
12986   if test x"$ac_file" != x-; then
12987     { echo "$as_me:$LINENO: creating $ac_file" >&5
12988 echo "$as_me: creating $ac_file" >&6;}
12989     rm -f "$ac_file"
12990   fi
12991   # Let's still pretend it is `configure' which instantiates (i.e., don't
12992   # use $as_me), people would be surprised to read:
12993   #    /* config.h.  Generated by config.status.  */
12994   if test x"$ac_file" = x-; then
12995     configure_input=
12996   else
12997     configure_input="$ac_file.  "
12998   fi
12999   configure_input=$configure_input"Generated from `echo $ac_file_in |
13000                                      sed 's,.*/,,'` by configure."
13001
13002   # First look for the input files in the build tree, otherwise in the
13003   # src tree.
13004   ac_file_inputs=`IFS=:
13005     for f in $ac_file_in; do
13006       case $f in
13007       -) echo $tmp/stdin ;;
13008       [\\/$]*)
13009          # Absolute (can't be DOS-style, as IFS=:)
13010          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13011 echo "$as_me: error: cannot find input file: $f" >&2;}
13012    { (exit 1); exit 1; }; }
13013          echo $f;;
13014       *) # Relative
13015          if test -f "$f"; then
13016            # Build tree
13017            echo $f
13018          elif test -f "$srcdir/$f"; then
13019            # Source tree
13020            echo $srcdir/$f
13021          else
13022            # /dev/null tree
13023            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13024 echo "$as_me: error: cannot find input file: $f" >&2;}
13025    { (exit 1); exit 1; }; }
13026          fi;;
13027       esac
13028     done` || { (exit 1); exit 1; }
13029 _ACEOF
13030 cat >>$CONFIG_STATUS <<_ACEOF
13031   sed "$ac_vpsub
13032 $extrasub
13033 _ACEOF
13034 cat >>$CONFIG_STATUS <<\_ACEOF
13035 :t
13036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13037 s,@configure_input@,$configure_input,;t t
13038 s,@srcdir@,$ac_srcdir,;t t
13039 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13040 s,@top_srcdir@,$ac_top_srcdir,;t t
13041 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13042 s,@builddir@,$ac_builddir,;t t
13043 s,@abs_builddir@,$ac_abs_builddir,;t t
13044 s,@top_builddir@,$ac_top_builddir,;t t
13045 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13046 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13047   rm -f $tmp/stdin
13048   if test x"$ac_file" != x-; then
13049     mv $tmp/out $ac_file
13050   else
13051     cat $tmp/out
13052     rm -f $tmp/out
13053   fi
13054
13055 done
13056 _ACEOF
13057 cat >>$CONFIG_STATUS <<\_ACEOF
13058
13059 #
13060 # CONFIG_HEADER section.
13061 #
13062
13063 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13064 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13065 #
13066 # ac_d sets the value in "#define NAME VALUE" lines.
13067 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
13068 ac_dB='[        ].*$,\1#\2'
13069 ac_dC=' '
13070 ac_dD=',;t'
13071 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13072 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13073 ac_uB='$,\1#\2define\3'
13074 ac_uC=' '
13075 ac_uD=',;t'
13076
13077 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13078   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13079   case $ac_file in
13080   - | *:- | *:-:* ) # input from stdin
13081         cat >$tmp/stdin
13082         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13083         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13084   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13085         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13086   * )   ac_file_in=$ac_file.in ;;
13087   esac
13088
13089   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13090 echo "$as_me: creating $ac_file" >&6;}
13091
13092   # First look for the input files in the build tree, otherwise in the
13093   # src tree.
13094   ac_file_inputs=`IFS=:
13095     for f in $ac_file_in; do
13096       case $f in
13097       -) echo $tmp/stdin ;;
13098       [\\/$]*)
13099          # Absolute (can't be DOS-style, as IFS=:)
13100          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13101 echo "$as_me: error: cannot find input file: $f" >&2;}
13102    { (exit 1); exit 1; }; }
13103          echo $f;;
13104       *) # Relative
13105          if test -f "$f"; then
13106            # Build tree
13107            echo $f
13108          elif test -f "$srcdir/$f"; then
13109            # Source tree
13110            echo $srcdir/$f
13111          else
13112            # /dev/null tree
13113            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13114 echo "$as_me: error: cannot find input file: $f" >&2;}
13115    { (exit 1); exit 1; }; }
13116          fi;;
13117       esac
13118     done` || { (exit 1); exit 1; }
13119   # Remove the trailing spaces.
13120   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
13121
13122 _ACEOF
13123
13124 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13125 # `conftest.undefs', that substitutes the proper values into
13126 # config.h.in to produce config.h.  The first handles `#define'
13127 # templates, and the second `#undef' templates.
13128 # And first: Protect against being on the right side of a sed subst in
13129 # config.status.  Protect against being in an unquoted here document
13130 # in config.status.
13131 rm -f conftest.defines conftest.undefs
13132 # Using a here document instead of a string reduces the quoting nightmare.
13133 # Putting comments in sed scripts is not portable.
13134 #
13135 # `end' is used to avoid that the second main sed command (meant for
13136 # 0-ary CPP macros) applies to n-ary macro definitions.
13137 # See the Autoconf documentation for `clear'.
13138 cat >confdef2sed.sed <<\_ACEOF
13139 s/[\\&,]/\\&/g
13140 s,[\\$`],\\&,g
13141 t clear
13142 : clear
13143 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13144 t end
13145 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13146 : end
13147 _ACEOF
13148 # If some macros were called several times there might be several times
13149 # the same #defines, which is useless.  Nevertheless, we may not want to
13150 # sort them, since we want the *last* AC-DEFINE to be honored.
13151 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13152 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13153 rm -f confdef2sed.sed
13154
13155 # This sed command replaces #undef with comments.  This is necessary, for
13156 # example, in the case of _POSIX_SOURCE, which is predefined and required
13157 # on some systems where configure will not decide to define it.
13158 cat >>conftest.undefs <<\_ACEOF
13159 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13160 _ACEOF
13161
13162 # Break up conftest.defines because some shells have a limit on the size
13163 # of here documents, and old seds have small limits too (100 cmds).
13164 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13165 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13166 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13167 echo '  :' >>$CONFIG_STATUS
13168 rm -f conftest.tail
13169 while grep . conftest.defines >/dev/null
13170 do
13171   # Write a limited-size here document to $tmp/defines.sed.
13172   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13173   # Speed up: don't consider the non `#define' lines.
13174   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
13175   # Work around the forget-to-reset-the-flag bug.
13176   echo 't clr' >>$CONFIG_STATUS
13177   echo ': clr' >>$CONFIG_STATUS
13178   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13179   echo 'CEOF
13180   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13181   rm -f $tmp/in
13182   mv $tmp/out $tmp/in
13183 ' >>$CONFIG_STATUS
13184   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13185   rm -f conftest.defines
13186   mv conftest.tail conftest.defines
13187 done
13188 rm -f conftest.defines
13189 echo '  fi # grep' >>$CONFIG_STATUS
13190 echo >>$CONFIG_STATUS
13191
13192 # Break up conftest.undefs because some shells have a limit on the size
13193 # of here documents, and old seds have small limits too (100 cmds).
13194 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13195 rm -f conftest.tail
13196 while grep . conftest.undefs >/dev/null
13197 do
13198   # Write a limited-size here document to $tmp/undefs.sed.
13199   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13200   # Speed up: don't consider the non `#undef'
13201   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13202   # Work around the forget-to-reset-the-flag bug.
13203   echo 't clr' >>$CONFIG_STATUS
13204   echo ': clr' >>$CONFIG_STATUS
13205   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13206   echo 'CEOF
13207   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13208   rm -f $tmp/in
13209   mv $tmp/out $tmp/in
13210 ' >>$CONFIG_STATUS
13211   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13212   rm -f conftest.undefs
13213   mv conftest.tail conftest.undefs
13214 done
13215 rm -f conftest.undefs
13216
13217 cat >>$CONFIG_STATUS <<\_ACEOF
13218   # Let's still pretend it is `configure' which instantiates (i.e., don't
13219   # use $as_me), people would be surprised to read:
13220   #    /* config.h.  Generated by config.status.  */
13221   if test x"$ac_file" = x-; then
13222     echo "/* Generated by configure.  */" >$tmp/config.h
13223   else
13224     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13225   fi
13226   cat $tmp/in >>$tmp/config.h
13227   rm -f $tmp/in
13228   if test x"$ac_file" != x-; then
13229     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13230       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13231 echo "$as_me: $ac_file is unchanged" >&6;}
13232     else
13233       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13235          X"$ac_file" : 'X\(//\)[^/]' \| \
13236          X"$ac_file" : 'X\(//\)$' \| \
13237          X"$ac_file" : 'X\(/\)' \| \
13238          .     : '\(.\)' 2>/dev/null ||
13239 echo X"$ac_file" |
13240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13241           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13242           /^X\(\/\/\)$/{ s//\1/; q; }
13243           /^X\(\/\).*/{ s//\1/; q; }
13244           s/.*/./; q'`
13245       { if $as_mkdir_p; then
13246     mkdir -p "$ac_dir"
13247   else
13248     as_dir="$ac_dir"
13249     as_dirs=
13250     while test ! -d "$as_dir"; do
13251       as_dirs="$as_dir $as_dirs"
13252       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13254          X"$as_dir" : 'X\(//\)[^/]' \| \
13255          X"$as_dir" : 'X\(//\)$' \| \
13256          X"$as_dir" : 'X\(/\)' \| \
13257          .     : '\(.\)' 2>/dev/null ||
13258 echo X"$as_dir" |
13259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13260           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13261           /^X\(\/\/\)$/{ s//\1/; q; }
13262           /^X\(\/\).*/{ s//\1/; q; }
13263           s/.*/./; q'`
13264     done
13265     test ! -n "$as_dirs" || mkdir $as_dirs
13266   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13267 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13268    { (exit 1); exit 1; }; }; }
13269
13270       rm -f $ac_file
13271       mv $tmp/config.h $ac_file
13272     fi
13273   else
13274     cat $tmp/config.h
13275     rm -f $tmp/config.h
13276   fi
13277 done
13278 _ACEOF
13279 cat >>$CONFIG_STATUS <<\_ACEOF
13280
13281 #
13282 # CONFIG_COMMANDS section.
13283 #
13284 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13285   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13286   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13287   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13288 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13289          X"$ac_dest" : 'X\(//\)[^/]' \| \
13290          X"$ac_dest" : 'X\(//\)$' \| \
13291          X"$ac_dest" : 'X\(/\)' \| \
13292          .     : '\(.\)' 2>/dev/null ||
13293 echo X"$ac_dest" |
13294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13295           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13296           /^X\(\/\/\)$/{ s//\1/; q; }
13297           /^X\(\/\).*/{ s//\1/; q; }
13298           s/.*/./; q'`
13299   ac_builddir=.
13300
13301 if test "$ac_dir" != .; then
13302   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13303   # A "../" for each directory in $ac_dir_suffix.
13304   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13305 else
13306   ac_dir_suffix= ac_top_builddir=
13307 fi
13308
13309 case $srcdir in
13310   .)  # No --srcdir option.  We are building in place.
13311     ac_srcdir=.
13312     if test -z "$ac_top_builddir"; then
13313        ac_top_srcdir=.
13314     else
13315        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13316     fi ;;
13317   [\\/]* | ?:[\\/]* )  # Absolute path.
13318     ac_srcdir=$srcdir$ac_dir_suffix;
13319     ac_top_srcdir=$srcdir ;;
13320   *) # Relative path.
13321     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13322     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13323 esac
13324 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13325 # absolute.
13326 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13327 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13328 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13329 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13330
13331
13332   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13333 echo "$as_me: executing $ac_dest commands" >&6;}
13334   case $ac_dest in
13335     default )
13336 case ${CONFIG_HEADERS} in
13337   *auto-host.h:config.in*)
13338   echo > cstamp-h ;;
13339 esac
13340 # Make sure all the subdirs exist.
13341 for d in $subdirs
13342 do
13343     test -d $d || mkdir $d
13344 done
13345 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13346 # bootstrapping and the installation procedure can still use
13347 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13348 # FLAGS_TO_PASS has been modified to solve the problem there.
13349 # This is virtually a duplicate of what happens in configure.lang; we do
13350 # an extra check to make sure this only happens if ln -s can be used.
13351 if test "$symbolic_link" = "ln -s"; then
13352  for d in ${subdirs} fixinc ; do
13353         STARTDIR=`${PWDCMD-pwd}`
13354         cd $d
13355         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13356         do
13357                 rm -f $t
13358                 $symbolic_link ../$t $t 2>/dev/null
13359         done
13360         cd $STARTDIR
13361  done
13362 else true ; fi
13363  ;;
13364   esac
13365 done
13366 _ACEOF
13367
13368 cat >>$CONFIG_STATUS <<\_ACEOF
13369
13370 { (exit 0); exit 0; }
13371 _ACEOF
13372 chmod +x $CONFIG_STATUS
13373 ac_clean_files=$ac_clean_files_save
13374
13375
13376 # configure is writing to config.log, and then calls config.status.
13377 # config.status does its own redirection, appending to config.log.
13378 # Unfortunately, on DOS this fails, as config.log is still kept open
13379 # by configure, so config.status won't be able to write to it; its
13380 # output is simply discarded.  So we exec the FD to /dev/null,
13381 # effectively closing config.log, so it can be properly (re)opened and
13382 # appended to by config.status.  When coming back to configure, we
13383 # need to make the FD available again.
13384 if test "$no_create" != yes; then
13385   ac_cs_success=:
13386   ac_config_status_args=
13387   test "$silent" = yes &&
13388     ac_config_status_args="$ac_config_status_args --quiet"
13389   exec 5>/dev/null
13390   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13391   exec 5>>config.log
13392   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13393   # would make configure fail if this is the last instruction.
13394   $ac_cs_success || { (exit 1); exit 1; }
13395 fi
13396