OSDN Git Service

* configure.in: Make minimum necessary changes for autoconf 2.5x.
[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.58.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir 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'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842   --target=TARGET   configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848   cat <<\_ACEOF
849
850 Optional Features:
851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853   --enable-generated-files-in-srcdir  Put generated files in source dir
854   --enable-werror         enable -Werror in bootstrap stage2 and later
855   --enable-checking=LIST
856                           enable expensive run-time checks.  With LIST,
857                           enable only specific categories of checks.
858                           Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
859                           default is misc,tree,gc,rtlflag
860   --enable-coverage=LEVEL
861                           enable compiler\'s code coverage collection.
862                           Use to measure compiler performance and locate
863                           unused parts of the compiler. With LEVEL, specify
864                           optimization. Values are opt, noopt,
865                           default is noopt
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
960 # Do not use `cd foo && pwd` to compute absolute paths, because
961 # the directories may not exist.
962 case `pwd` in
963 .) ac_abs_builddir="$ac_dir";;
964 *)
965   case "$ac_dir" in
966   .) ac_abs_builddir=`pwd`;;
967   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
968   *) ac_abs_builddir=`pwd`/"$ac_dir";;
969   esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_top_builddir=${ac_top_builddir}.;;
973 *)
974   case ${ac_top_builddir}. in
975   .) ac_abs_top_builddir=$ac_abs_builddir;;
976   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
977   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
978   esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_srcdir=$ac_srcdir;;
982 *)
983   case $ac_srcdir in
984   .) ac_abs_srcdir=$ac_abs_builddir;;
985   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
986   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
987   esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_srcdir=$ac_top_srcdir;;
991 *)
992   case $ac_top_srcdir in
993   .) ac_abs_top_srcdir=$ac_abs_builddir;;
994   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
995   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
996   esac;;
997 esac
998
999     cd $ac_dir
1000     # Check for guested configure; otherwise get Cygnus style configure.
1001     if test -f $ac_srcdir/configure.gnu; then
1002       echo
1003       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1004     elif test -f $ac_srcdir/configure; then
1005       echo
1006       $SHELL $ac_srcdir/configure  --help=recursive
1007     elif test -f $ac_srcdir/configure.ac ||
1008            test -f $ac_srcdir/configure.in; then
1009       echo
1010       $ac_configure --help
1011     else
1012       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1013     fi
1014     cd "$ac_popdir"
1015   done
1016 fi
1017
1018 test -n "$ac_init_help" && exit 0
1019 if $ac_init_version; then
1020   cat <<\_ACEOF
1021
1022 Copyright (C) 2003 Free Software Foundation, Inc.
1023 This configure script is free software; the Free Software Foundation
1024 gives unlimited permission to copy, distribute and modify it.
1025 _ACEOF
1026   exit 0
1027 fi
1028 exec 5>config.log
1029 cat >&5 <<_ACEOF
1030 This file contains any messages produced by compilers while
1031 running configure, to aid debugging if configure makes a mistake.
1032
1033 It was created by $as_me, which was
1034 generated by GNU Autoconf 2.58.  Invocation command line was
1035
1036   $ $0 $@
1037
1038 _ACEOF
1039 {
1040 cat <<_ASUNAME
1041 ## --------- ##
1042 ## Platform. ##
1043 ## --------- ##
1044
1045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1050
1051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1052 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1053
1054 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1055 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1057 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1058 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1059 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1060 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1061
1062 _ASUNAME
1063
1064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1065 for as_dir in $PATH
1066 do
1067   IFS=$as_save_IFS
1068   test -z "$as_dir" && as_dir=.
1069   echo "PATH: $as_dir"
1070 done
1071
1072 } >&5
1073
1074 cat >&5 <<_ACEOF
1075
1076
1077 ## ----------- ##
1078 ## Core tests. ##
1079 ## ----------- ##
1080
1081 _ACEOF
1082
1083
1084 # Keep a trace of the command line.
1085 # Strip out --no-create and --no-recursion so they do not pile up.
1086 # Strip out --silent because we don't want to record it for future runs.
1087 # Also quote any args containing shell meta-characters.
1088 # Make two passes to allow for proper duplicate-argument suppression.
1089 ac_configure_args=
1090 ac_configure_args0=
1091 ac_configure_args1=
1092 ac_sep=
1093 ac_must_keep_next=false
1094 for ac_pass in 1 2
1095 do
1096   for ac_arg
1097   do
1098     case $ac_arg in
1099     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1100     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101     | -silent | --silent | --silen | --sile | --sil)
1102       continue ;;
1103     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1104       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1105     esac
1106     case $ac_pass in
1107     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1108     2)
1109       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1110       if test $ac_must_keep_next = true; then
1111         ac_must_keep_next=false # Got value, back to normal.
1112       else
1113         case $ac_arg in
1114           *=* | --config-cache | -C | -disable-* | --disable-* \
1115           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1116           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1117           | -with-* | --with-* | -without-* | --without-* | --x)
1118             case "$ac_configure_args0 " in
1119               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1120             esac
1121             ;;
1122           -* ) ac_must_keep_next=true ;;
1123         esac
1124       fi
1125       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1126       # Get rid of the leading space.
1127       ac_sep=" "
1128       ;;
1129     esac
1130   done
1131 done
1132 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1133 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1134
1135 # When interrupted or exit'd, cleanup temporary files, and complete
1136 # config.log.  We remove comments because anyway the quotes in there
1137 # would cause problems or look ugly.
1138 # WARNING: Be sure not to use single quotes in there, as some shells,
1139 # such as our DU 5.0 friend, will then `close' the trap.
1140 trap 'exit_status=$?
1141   # Save into config.log some information that might help in debugging.
1142   {
1143     echo
1144
1145     cat <<\_ASBOX
1146 ## ---------------- ##
1147 ## Cache variables. ##
1148 ## ---------------- ##
1149 _ASBOX
1150     echo
1151     # The following way of writing the cache mishandles newlines in values,
1152 {
1153   (set) 2>&1 |
1154     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1155     *ac_space=\ *)
1156       sed -n \
1157         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1158           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1159       ;;
1160     *)
1161       sed -n \
1162         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163       ;;
1164     esac;
1165 }
1166     echo
1167
1168     cat <<\_ASBOX
1169 ## ----------------- ##
1170 ## Output variables. ##
1171 ## ----------------- ##
1172 _ASBOX
1173     echo
1174     for ac_var in $ac_subst_vars
1175     do
1176       eval ac_val=$`echo $ac_var`
1177       echo "$ac_var='"'"'$ac_val'"'"'"
1178     done | sort
1179     echo
1180
1181     if test -n "$ac_subst_files"; then
1182       cat <<\_ASBOX
1183 ## ------------- ##
1184 ## Output files. ##
1185 ## ------------- ##
1186 _ASBOX
1187       echo
1188       for ac_var in $ac_subst_files
1189       do
1190         eval ac_val=$`echo $ac_var`
1191         echo "$ac_var='"'"'$ac_val'"'"'"
1192       done | sort
1193       echo
1194     fi
1195
1196     if test -s confdefs.h; then
1197       cat <<\_ASBOX
1198 ## ----------- ##
1199 ## confdefs.h. ##
1200 ## ----------- ##
1201 _ASBOX
1202       echo
1203       sed "/^$/d" confdefs.h | sort
1204       echo
1205     fi
1206     test "$ac_signal" != 0 &&
1207       echo "$as_me: caught signal $ac_signal"
1208     echo "$as_me: exit $exit_status"
1209   } >&5
1210   rm -f core *.core &&
1211   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1212     exit $exit_status
1213      ' 0
1214 for ac_signal in 1 2 13 15; do
1215   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1216 done
1217 ac_signal=0
1218
1219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1220 rm -rf conftest* confdefs.h
1221 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1222 echo >confdefs.h
1223
1224 # Predefined preprocessor variables.
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_NAME "$PACKAGE_NAME"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1238 _ACEOF
1239
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_STRING "$PACKAGE_STRING"
1243 _ACEOF
1244
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1248 _ACEOF
1249
1250
1251 # Let the site file select an alternate cache file if it wants to.
1252 # Prefer explicitly selected file to automatically selected ones.
1253 if test -z "$CONFIG_SITE"; then
1254   if test "x$prefix" != xNONE; then
1255     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1256   else
1257     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1258   fi
1259 fi
1260 for ac_site_file in $CONFIG_SITE; do
1261   if test -r "$ac_site_file"; then
1262     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1263 echo "$as_me: loading site script $ac_site_file" >&6;}
1264     sed 's/^/| /' "$ac_site_file" >&5
1265     . "$ac_site_file"
1266   fi
1267 done
1268
1269 if test -r "$cache_file"; then
1270   # Some versions of bash will fail to source /dev/null (special
1271   # files actually), so we avoid doing that.
1272   if test -f "$cache_file"; then
1273     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1274 echo "$as_me: loading cache $cache_file" >&6;}
1275     case $cache_file in
1276       [\\/]* | ?:[\\/]* ) . $cache_file;;
1277       *)                      . ./$cache_file;;
1278     esac
1279   fi
1280 else
1281   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1282 echo "$as_me: creating cache $cache_file" >&6;}
1283   >$cache_file
1284 fi
1285
1286 # Check that the precious variables saved in the cache have kept the same
1287 # value.
1288 ac_cache_corrupted=false
1289 for ac_var in `(set) 2>&1 |
1290                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1291   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1292   eval ac_new_set=\$ac_env_${ac_var}_set
1293   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1294   eval ac_new_val="\$ac_env_${ac_var}_value"
1295   case $ac_old_set,$ac_new_set in
1296     set,)
1297       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1299       ac_cache_corrupted=: ;;
1300     ,set)
1301       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1302 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1303       ac_cache_corrupted=: ;;
1304     ,);;
1305     *)
1306       if test "x$ac_old_val" != "x$ac_new_val"; then
1307         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1308 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1309         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1310 echo "$as_me:   former value:  $ac_old_val" >&2;}
1311         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1312 echo "$as_me:   current value: $ac_new_val" >&2;}
1313         ac_cache_corrupted=:
1314       fi;;
1315   esac
1316   # Pass precious variables to config.status.
1317   if test "$ac_new_set" = set; then
1318     case $ac_new_val in
1319     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1321     *) ac_arg=$ac_var=$ac_new_val ;;
1322     esac
1323     case " $ac_configure_args " in
1324       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1325       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1326     esac
1327   fi
1328 done
1329 if $ac_cache_corrupted; then
1330   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334    { (exit 1); exit 1; }; }
1335 fi
1336
1337 ac_ext=c
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1362
1363
1364 # Determine the host, build, and target systems
1365 ac_aux_dir=
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367   if test -f $ac_dir/install-sh; then
1368     ac_aux_dir=$ac_dir
1369     ac_install_sh="$ac_aux_dir/install-sh -c"
1370     break
1371   elif test -f $ac_dir/install.sh; then
1372     ac_aux_dir=$ac_dir
1373     ac_install_sh="$ac_aux_dir/install.sh -c"
1374     break
1375   elif test -f $ac_dir/shtool; then
1376     ac_aux_dir=$ac_dir
1377     ac_install_sh="$ac_aux_dir/shtool install -c"
1378     break
1379   fi
1380 done
1381 if test -z "$ac_aux_dir"; then
1382   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384    { (exit 1); exit 1; }; }
1385 fi
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1389
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394    { (exit 1); exit 1; }; }
1395
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399   echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401   ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403   ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407    { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411    { (exit 1); exit 1; }; }
1412
1413 fi
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1416 build=$ac_cv_build
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
1421
1422 echo "$as_me:$LINENO: checking host system type" >&5
1423 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1424 if test "${ac_cv_host+set}" = set; then
1425   echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427   ac_cv_host_alias=$host_alias
1428 test -z "$ac_cv_host_alias" &&
1429   ac_cv_host_alias=$ac_cv_build_alias
1430 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1431   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1433    { (exit 1); exit 1; }; }
1434
1435 fi
1436 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1437 echo "${ECHO_T}$ac_cv_host" >&6
1438 host=$ac_cv_host
1439 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442
1443
1444 echo "$as_me:$LINENO: checking target system type" >&5
1445 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1446 if test "${ac_cv_target+set}" = set; then
1447   echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449   ac_cv_target_alias=$target_alias
1450 test "x$ac_cv_target_alias" = "x" &&
1451   ac_cv_target_alias=$ac_cv_host_alias
1452 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1453   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1455    { (exit 1); exit 1; }; }
1456
1457 fi
1458 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1459 echo "${ECHO_T}$ac_cv_target" >&6
1460 target=$ac_cv_target
1461 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464
1465
1466 # The aliases save the names the user supplied, while $host etc.
1467 # will get canonicalized.
1468 test -n "$target_alias" &&
1469   test "$program_prefix$program_suffix$program_transform_name" = \
1470     NONENONEs,x,x, &&
1471   program_prefix=${target_alias}-
1472
1473 # Determine the noncanonical target name, for directory use.
1474  case ${build_alias} in
1475   "") build_noncanonical=${build} ;;
1476   *) build_noncanonical=${build_alias} ;;
1477 esac
1478
1479  case ${host_alias} in
1480   "") host_noncanonical=${build_noncanonical} ;;
1481   *) host_noncanonical=${host_alias} ;;
1482 esac
1483
1484  case ${target_alias} in
1485   "") target_noncanonical=${host_noncanonical} ;;
1486   *) target_noncanonical=${target_alias} ;;
1487 esac
1488
1489
1490 # Determine the target- and build-specific subdirectories
1491   # Prefix 'build-' so this never conflicts with target_subdir.
1492 build_subdir="build-${build_noncanonical}"
1493 # Not really a subdirectory, but here for completeness.
1494 host_subdir=.
1495 # No prefix.
1496 target_subdir=${target_noncanonical}
1497
1498
1499 # Set program_transform_name
1500 test "$program_prefix" != NONE &&
1501   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1502 # Use a double $ so make ignores it.
1503 test "$program_suffix" != NONE &&
1504   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1505 # Double any \ or $.  echo might interpret backslashes.
1506 # By default was `s,x,x', remove it if useless.
1507 cat <<\_ACEOF >conftest.sed
1508 s/[\\$]/&&/g;s/;s,x,x,$//
1509 _ACEOF
1510 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1511 rm conftest.sed
1512
1513
1514 # Check for bogus environment variables.
1515 # Test if LIBRARY_PATH contains the notation for the current directory
1516 # since this would lead to problems installing/building glibc.
1517 # LIBRARY_PATH 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 LIBRARY_PATH variable" >&5
1523 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1524 case ${LIBRARY_PATH} in
1525   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1526     library_path_setting="contains current directory"
1527     ;;
1528   *)
1529     library_path_setting="ok"
1530     ;;
1531 esac
1532 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1533 echo "${ECHO_T}$library_path_setting" >&6
1534 if test "$library_path_setting" != "ok"; then
1535 { { echo "$as_me:$LINENO: error:
1536 *** LIBRARY_PATH 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 *** LIBRARY_PATH 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 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1547 # since this would lead to problems installing/building glibc.
1548 # GCC_EXEC_PREFIX contains the current directory if one of the following
1549 # is true:
1550 # - one of the terminals (":" and ";") is the first or last sign
1551 # - two terminals occur directly after each other
1552 # - the path contains an element with a dot in it
1553 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1554 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1555 case ${GCC_EXEC_PREFIX} in
1556   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1557     gcc_exec_prefix_setting="contains current directory"
1558     ;;
1559   *)
1560     gcc_exec_prefix_setting="ok"
1561     ;;
1562 esac
1563 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1564 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1565 if test "$gcc_exec_prefix_setting" != "ok"; then
1566 { { echo "$as_me:$LINENO: error:
1567 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&5
1570 echo "$as_me: error:
1571 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1572 *** building gcc. Please change the environment variable
1573 *** and run configure again." >&2;}
1574    { (exit 1); exit 1; }; }
1575 fi
1576
1577 # -----------
1578 # Directories
1579 # -----------
1580
1581 # Specify the local prefix
1582 local_prefix=
1583
1584 # Check whether --with-local-prefix or --without-local-prefix was given.
1585 if test "${with_local_prefix+set}" = set; then
1586   withval="$with_local_prefix"
1587   case "${withval}" in
1588 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1589 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1590    { (exit 1); exit 1; }; } ;;
1591 no)     ;;
1592 *)      local_prefix=$with_local_prefix ;;
1593 esac
1594 fi;
1595
1596 # Default local prefix if it is empty
1597 if test x$local_prefix = x; then
1598         local_prefix=/usr/local
1599 fi
1600
1601 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1602 # passed in by the toplevel make and thus we'd get different behavior
1603 # depending on where we built the sources.
1604 gcc_gxx_include_dir=
1605 # Specify the g++ header file directory
1606
1607 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1608 if test "${with_gxx_include_dir+set}" = set; then
1609   withval="$with_gxx_include_dir"
1610   case "${withval}" in
1611 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1612 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1613    { (exit 1); exit 1; }; } ;;
1614 no)     ;;
1615 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1616 esac
1617 fi;
1618
1619 if test x${gcc_gxx_include_dir} = x; then
1620   if test x${enable_version_specific_runtime_libs} = xyes; then
1621     gcc_gxx_include_dir='${libsubdir}/include/c++'
1622   else
1623     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1624     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1625   fi
1626 fi
1627
1628
1629 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1630 if test "${with_cpp_install_dir+set}" = set; then
1631   withval="$with_cpp_install_dir"
1632   if test x$withval = xyes; then
1633   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1634 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1635    { (exit 1); exit 1; }; }
1636 elif test x$withval != xno; then
1637   cpp_install_dir=$withval
1638 fi
1639 fi;
1640
1641 # We would like to our source tree to be readonly.  However when releases or
1642 # pre-releases are generated, the flex/bison generated files as well as the
1643 # various formats of manuals need to be included along with the rest of the
1644 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1645 # just that.
1646
1647 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1648 if test "${enable_generated_files_in_srcdir+set}" = set; then
1649   enableval="$enable_generated_files_in_srcdir"
1650   case ${enableval} in
1651   no)    parsedir='$(objdir)'; docobjdir='$(objdir)/doc';;
1652   *)     parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
1653 esac
1654 else
1655   parsedir='$(objdir)'; docobjdir='$(objdir)/doc';
1656 fi;
1657
1658 # -------------------
1659 # Find default linker
1660 # -------------------
1661
1662 # With GNU ld
1663
1664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1665 if test "${with_gnu_ld+set}" = set; then
1666   withval="$with_gnu_ld"
1667   gnu_ld_flag="$with_gnu_ld"
1668 else
1669   gnu_ld_flag=no
1670 fi;
1671
1672 # With pre-defined ld
1673
1674 # Check whether --with-ld or --without-ld was given.
1675 if test "${with_ld+set}" = set; then
1676   withval="$with_ld"
1677   DEFAULT_LINKER="$with_ld"
1678 fi;
1679 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1680   if test ! -x "$DEFAULT_LINKER"; then
1681     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1682 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1683   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1684     gnu_ld_flag=yes
1685   fi
1686
1687 cat >>confdefs.h <<_ACEOF
1688 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1689 _ACEOF
1690
1691 fi
1692
1693 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1694 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1695 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1696   if test x"$gnu_ld_flag" = x"no"; then
1697     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1698 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1699   else
1700     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1701 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1702   fi
1703 else
1704   echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 fi
1707
1708 # ----------------------
1709 # Find default assembler
1710 # ----------------------
1711
1712 # With GNU as
1713
1714 # Check whether --with-gnu-as or --without-gnu-as was given.
1715 if test "${with_gnu_as+set}" = set; then
1716   withval="$with_gnu_as"
1717   gas_flag="$with_gnu_as"
1718 else
1719   gas_flag=no
1720 fi;
1721
1722
1723 # Check whether --with-as or --without-as was given.
1724 if test "${with_as+set}" = set; then
1725   withval="$with_as"
1726   DEFAULT_ASSEMBLER="$with_as"
1727 fi;
1728 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1729   if test ! -x "$DEFAULT_ASSEMBLER"; then
1730     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1731 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1732   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1733     gas_flag=yes
1734   fi
1735
1736 cat >>confdefs.h <<_ACEOF
1737 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1738 _ACEOF
1739
1740 fi
1741
1742 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1743 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1744 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1745   if test x"$gas_flag" = x"no"; then
1746     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1747 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1748   else
1749     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1750 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1751   fi
1752 else
1753   echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757 # ---------------
1758 # Find C compiler
1759 # ---------------
1760
1761 # Find the native compiler
1762 ac_ext=c
1763 ac_cpp='$CPP $CPPFLAGS'
1764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767 if test -n "$ac_tool_prefix"; then
1768   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773   echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775   if test -n "$CC"; then
1776   ac_cv_prog_CC="$CC" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1780 do
1781   IFS=$as_save_IFS
1782   test -z "$as_dir" && as_dir=.
1783   for ac_exec_ext in '' $ac_executable_extensions; do
1784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787     break 2
1788   fi
1789 done
1790 done
1791
1792 fi
1793 fi
1794 CC=$ac_cv_prog_CC
1795 if test -n "$CC"; then
1796   echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6
1798 else
1799   echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1801 fi
1802
1803 fi
1804 if test -z "$ac_cv_prog_CC"; then
1805   ac_ct_CC=$CC
1806   # Extract the first word of "gcc", so it can be a program name with args.
1807 set dummy gcc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813   if test -n "$ac_ct_CC"; then
1814   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819   IFS=$as_save_IFS
1820   test -z "$as_dir" && as_dir=.
1821   for ac_exec_ext in '' $ac_executable_extensions; do
1822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823     ac_cv_prog_ac_ct_CC="gcc"
1824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825     break 2
1826   fi
1827 done
1828 done
1829
1830 fi
1831 fi
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1836 else
1837   echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841   CC=$ac_ct_CC
1842 else
1843   CC="$ac_cv_prog_CC"
1844 fi
1845
1846 if test -z "$CC"; then
1847   if test -n "$ac_tool_prefix"; then
1848   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849 set dummy ${ac_tool_prefix}cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_CC+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   if test -n "$CC"; then
1856   ac_cv_prog_CC="$CC" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861   IFS=$as_save_IFS
1862   test -z "$as_dir" && as_dir=.
1863   for ac_exec_ext in '' $ac_executable_extensions; do
1864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865     ac_cv_prog_CC="${ac_tool_prefix}cc"
1866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867     break 2
1868   fi
1869 done
1870 done
1871
1872 fi
1873 fi
1874 CC=$ac_cv_prog_CC
1875 if test -n "$CC"; then
1876   echo "$as_me:$LINENO: result: $CC" >&5
1877 echo "${ECHO_T}$CC" >&6
1878 else
1879   echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1881 fi
1882
1883 fi
1884 if test -z "$ac_cv_prog_CC"; then
1885   ac_ct_CC=$CC
1886   # Extract the first word of "cc", so it can be a program name with args.
1887 set dummy cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1891   echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893   if test -n "$ac_ct_CC"; then
1894   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899   IFS=$as_save_IFS
1900   test -z "$as_dir" && as_dir=.
1901   for ac_exec_ext in '' $ac_executable_extensions; do
1902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903     ac_cv_prog_ac_ct_CC="cc"
1904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905     break 2
1906   fi
1907 done
1908 done
1909
1910 fi
1911 fi
1912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1913 if test -n "$ac_ct_CC"; then
1914   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1915 echo "${ECHO_T}$ac_ct_CC" >&6
1916 else
1917   echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1919 fi
1920
1921   CC=$ac_ct_CC
1922 else
1923   CC="$ac_cv_prog_CC"
1924 fi
1925
1926 fi
1927 if test -z "$CC"; then
1928   # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CC+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   if test -n "$CC"; then
1936   ac_cv_prog_CC="$CC" # Let the user override the test.
1937 else
1938   ac_prog_rejected=no
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
1943   test -z "$as_dir" && as_dir=.
1944   for ac_exec_ext in '' $ac_executable_extensions; do
1945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1947        ac_prog_rejected=yes
1948        continue
1949      fi
1950     ac_cv_prog_CC="cc"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957 if test $ac_prog_rejected = yes; then
1958   # We found a bogon in the path, so make sure we never use it.
1959   set dummy $ac_cv_prog_CC
1960   shift
1961   if test $# != 0; then
1962     # We chose a different compiler from the bogus one.
1963     # However, it has the same basename, so the bogon will be chosen
1964     # first if we set CC to just the basename; use the full file name.
1965     shift
1966     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1967   fi
1968 fi
1969 fi
1970 fi
1971 CC=$ac_cv_prog_CC
1972 if test -n "$CC"; then
1973   echo "$as_me:$LINENO: result: $CC" >&5
1974 echo "${ECHO_T}$CC" >&6
1975 else
1976   echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978 fi
1979
1980 fi
1981 if test -z "$CC"; then
1982   if test -n "$ac_tool_prefix"; then
1983   for ac_prog in cl
1984   do
1985     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990   echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992   if test -n "$CC"; then
1993   ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998   IFS=$as_save_IFS
1999   test -z "$as_dir" && as_dir=.
2000   for ac_exec_ext in '' $ac_executable_extensions; do
2001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004     break 2
2005   fi
2006 done
2007 done
2008
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013   echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2015 else
2016   echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2018 fi
2019
2020     test -n "$CC" && break
2021   done
2022 fi
2023 if test -z "$CC"; then
2024   ac_ct_CC=$CC
2025   for ac_prog in cl
2026 do
2027   # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   if test -n "$ac_ct_CC"; then
2035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040   IFS=$as_save_IFS
2041   test -z "$as_dir" && as_dir=.
2042   for ac_exec_ext in '' $ac_executable_extensions; do
2043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044     ac_cv_prog_ac_ct_CC="$ac_prog"
2045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046     break 2
2047   fi
2048 done
2049 done
2050
2051 fi
2052 fi
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6
2057 else
2058   echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2060 fi
2061
2062   test -n "$ac_ct_CC" && break
2063 done
2064
2065   CC=$ac_ct_CC
2066 fi
2067
2068 fi
2069
2070
2071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&2;}
2075    { (exit 1); exit 1; }; }
2076
2077 # Provide some information about the compiler.
2078 echo "$as_me:$LINENO:" \
2079      "checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2082   (eval $ac_compiler --version </dev/null >&5) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }
2086 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2087   (eval $ac_compiler -v </dev/null >&5) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }
2091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2092   (eval $ac_compiler -V </dev/null >&5) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }
2096
2097 cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h.  */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h.  */
2103
2104 int
2105 main ()
2106 {
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 ac_clean_files_save=$ac_clean_files
2113 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2114 # Try to create an executable without -o first, disregard a.out.
2115 # It will help us diagnose broken compilers, and finding out an intuition
2116 # of exeext.
2117 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2118 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2119 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2120 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2121   (eval $ac_link_default) 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }; then
2125   # Find the output, starting from the most likely.  This scheme is
2126 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2127 # resort.
2128
2129 # Be careful to initialize this variable, since it used to be cached.
2130 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2131 ac_cv_exeext=
2132 # b.out is created by i960 compilers.
2133 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2134 do
2135   test -f "$ac_file" || continue
2136   case $ac_file in
2137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2138         ;;
2139     conftest.$ac_ext )
2140         # This is the source file.
2141         ;;
2142     [ab].out )
2143         # We found the default executable, but exeext='' is most
2144         # certainly right.
2145         break;;
2146     *.* )
2147         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148         # FIXME: I believe we export ac_cv_exeext for Libtool,
2149         # but it would be cool to find out if it's true.  Does anybody
2150         # maintain Libtool? --akim.
2151         export ac_cv_exeext
2152         break;;
2153     * )
2154         break;;
2155   esac
2156 done
2157 else
2158   echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&2;}
2165    { (exit 77); exit 77; }; }
2166 fi
2167
2168 ac_exeext=$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_file" >&5
2170 echo "${ECHO_T}$ac_file" >&6
2171
2172 # Check the compiler produces executables we can run.  If not, either
2173 # the compiler is broken, or we cross compile.
2174 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2175 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2176 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2177 # If not cross compiling, check that we can run a simple program.
2178 if test "$cross_compiling" != yes; then
2179   if { ac_try='./$ac_file'
2180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181   (eval $ac_try) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; }; then
2185     cross_compiling=no
2186   else
2187     if test "$cross_compiling" = maybe; then
2188         cross_compiling=yes
2189     else
2190         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: cannot run C compiled programs.
2194 If you meant to cross compile, use \`--host'.
2195 See \`config.log' for more details." >&2;}
2196    { (exit 1); exit 1; }; }
2197     fi
2198   fi
2199 fi
2200 echo "$as_me:$LINENO: result: yes" >&5
2201 echo "${ECHO_T}yes" >&6
2202
2203 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2204 ac_clean_files=$ac_clean_files_save
2205 # Check the compiler produces executables we can run.  If not, either
2206 # the compiler is broken, or we cross compile.
2207 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2208 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2209 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2210 echo "${ECHO_T}$cross_compiling" >&6
2211
2212 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2213 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2215   (eval $ac_link) 2>&5
2216   ac_status=$?
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); }; then
2219   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2220 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2221 # work properly (i.e., refer to `conftest.exe'), while it won't with
2222 # `rm'.
2223 for ac_file in conftest.exe conftest conftest.*; do
2224   test -f "$ac_file" || continue
2225   case $ac_file in
2226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2227     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2228           export ac_cv_exeext
2229           break;;
2230     * ) break;;
2231   esac
2232 done
2233 else
2234   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&2;}
2238    { (exit 1); exit 1; }; }
2239 fi
2240
2241 rm -f conftest$ac_cv_exeext
2242 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243 echo "${ECHO_T}$ac_cv_exeext" >&6
2244
2245 rm -f conftest.$ac_ext
2246 EXEEXT=$ac_cv_exeext
2247 ac_exeext=$EXEEXT
2248 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250 if test "${ac_cv_objext+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h.  */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h.  */
2259
2260 int
2261 main ()
2262 {
2263
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 rm -f conftest.o conftest.obj
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270   (eval $ac_compile) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2275   case $ac_file in
2276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2277     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2278        break;;
2279   esac
2280 done
2281 else
2282   echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2288 See \`config.log' for more details." >&2;}
2289    { (exit 1); exit 1; }; }
2290 fi
2291
2292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2293 fi
2294 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2295 echo "${ECHO_T}$ac_cv_objext" >&6
2296 OBJEXT=$ac_cv_objext
2297 ac_objext=$OBJEXT
2298 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   cat >conftest.$ac_ext <<_ACEOF
2304 /* confdefs.h.  */
2305 _ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h.  */
2309
2310 int
2311 main ()
2312 {
2313 #ifndef __GNUC__
2314        choke me
2315 #endif
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323   (eval $ac_compile) 2>conftest.er1
2324   ac_status=$?
2325   grep -v '^ *+' conftest.er1 >conftest.err
2326   rm -f conftest.er1
2327   cat conftest.err >&5
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); } &&
2330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332   (eval $ac_try) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }; } &&
2336          { ac_try='test -s conftest.$ac_objext'
2337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338   (eval $ac_try) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; }; then
2342   ac_compiler_gnu=yes
2343 else
2344   echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 ac_compiler_gnu=no
2348 fi
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2351
2352 fi
2353 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2354 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2355 GCC=`test $ac_compiler_gnu = yes && echo yes`
2356 ac_test_CFLAGS=${CFLAGS+set}
2357 ac_save_CFLAGS=$CFLAGS
2358 CFLAGS="-g"
2359 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2361 if test "${ac_cv_prog_cc_g+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h.  */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h.  */
2370
2371 int
2372 main ()
2373 {
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381   (eval $ac_compile) 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } &&
2388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390   (eval $ac_try) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }; } &&
2394          { ac_try='test -s conftest.$ac_objext'
2395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396   (eval $ac_try) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; }; then
2400   ac_cv_prog_cc_g=yes
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_cv_prog_cc_g=no
2406 fi
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 fi
2409 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2410 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2411 if test "$ac_test_CFLAGS" = set; then
2412   CFLAGS=$ac_save_CFLAGS
2413 elif test $ac_cv_prog_cc_g = yes; then
2414   if test "$GCC" = yes; then
2415     CFLAGS="-g -O2"
2416   else
2417     CFLAGS="-g"
2418   fi
2419 else
2420   if test "$GCC" = yes; then
2421     CFLAGS="-O2"
2422   else
2423     CFLAGS=
2424   fi
2425 fi
2426 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2427 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2428 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   ac_cv_prog_cc_stdc=no
2432 ac_save_CC=$CC
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439 #include <stdarg.h>
2440 #include <stdio.h>
2441 #include <sys/types.h>
2442 #include <sys/stat.h>
2443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2444 struct buf { int x; };
2445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2446 static char *e (p, i)
2447      char **p;
2448      int i;
2449 {
2450   return p[i];
2451 }
2452 static char *f (char * (*g) (char **, int), char **p, ...)
2453 {
2454   char *s;
2455   va_list v;
2456   va_start (v,p);
2457   s = g (p, va_arg (v,int));
2458   va_end (v);
2459   return s;
2460 }
2461
2462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2463    function prototypes and stuff, but not '\xHH' hex character constants.
2464    These don't provoke an error unfortunately, instead are silently treated
2465    as 'x'.  The following induces an error, until -std1 is added to get
2466    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2467    array size at least.  It's necessary to write '\x00'==0 to get something
2468    that's true only with -std1.  */
2469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2470
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2475 int argc;
2476 char **argv;
2477 int
2478 main ()
2479 {
2480 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 # Don't try gcc -ansi; that turns off useful extensions and
2486 # breaks some systems' header files.
2487 # AIX                   -qlanglvl=ansi
2488 # Ultrix and OSF/1      -std1
2489 # HP-UX 10.20 and later -Ae
2490 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2491 # SVR4                  -Xc -D__EXTENSIONS__
2492 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493 do
2494   CC="$ac_save_CC $ac_arg"
2495   rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497   (eval $ac_compile) 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } &&
2504          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506   (eval $ac_try) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; } &&
2510          { ac_try='test -s conftest.$ac_objext'
2511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512   (eval $ac_try) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; }; then
2516   ac_cv_prog_cc_stdc=$ac_arg
2517 break
2518 else
2519   echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 fi
2523 rm -f conftest.err conftest.$ac_objext
2524 done
2525 rm -f conftest.$ac_ext conftest.$ac_objext
2526 CC=$ac_save_CC
2527
2528 fi
2529
2530 case "x$ac_cv_prog_cc_stdc" in
2531   x|xno)
2532     echo "$as_me:$LINENO: result: none needed" >&5
2533 echo "${ECHO_T}none needed" >&6 ;;
2534   *)
2535     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2536 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2537     CC="$CC $ac_cv_prog_cc_stdc" ;;
2538 esac
2539
2540 # Some people use a C++ compiler to compile C.  Since we use `exit',
2541 # in C++ we need to declare it.  In case someone uses the same compiler
2542 # for both compiling C and C++ we need to have the C++ compiler decide
2543 # the declaration of exit, since it's the most demanding environment.
2544 cat >conftest.$ac_ext <<_ACEOF
2545 #ifndef __cplusplus
2546   choke me
2547 #endif
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; } &&
2564          { ac_try='test -s conftest.$ac_objext'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; }; then
2570   for ac_declaration in \
2571    '' \
2572    'extern "C" void std::exit (int) throw (); using std::exit;' \
2573    'extern "C" void std::exit (int); using std::exit;' \
2574    'extern "C" void exit (int) throw ();' \
2575    'extern "C" void exit (int);' \
2576    'void exit (int);'
2577 do
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584 $ac_declaration
2585 #include <stdlib.h>
2586 int
2587 main ()
2588 {
2589 exit (42);
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596   (eval $ac_compile) 2>conftest.er1
2597   ac_status=$?
2598   grep -v '^ *+' conftest.er1 >conftest.err
2599   rm -f conftest.er1
2600   cat conftest.err >&5
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } &&
2603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; } &&
2609          { ac_try='test -s conftest.$ac_objext'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; }; then
2615   :
2616 else
2617   echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2619
2620 continue
2621 fi
2622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623   cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629 $ac_declaration
2630 int
2631 main ()
2632 {
2633 exit (42);
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640   (eval $ac_compile) 2>conftest.er1
2641   ac_status=$?
2642   grep -v '^ *+' conftest.er1 >conftest.err
2643   rm -f conftest.er1
2644   cat conftest.err >&5
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); } &&
2647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649   (eval $ac_try) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; } &&
2653          { ac_try='test -s conftest.$ac_objext'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; }; then
2659   break
2660 else
2661   echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 fi
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 done
2667 rm -f conftest*
2668 if test -n "$ac_declaration"; then
2669   echo '#ifdef __cplusplus' >>confdefs.h
2670   echo $ac_declaration      >>confdefs.h
2671   echo '#endif'             >>confdefs.h
2672 fi
2673
2674 else
2675   echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678 fi
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685
2686 if test "x$CC" != xcc; then
2687   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2688 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2689 else
2690   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2691 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2692 fi
2693 set dummy $CC; ac_cc=`echo $2 |
2694                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2695 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h.  */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h.  */
2704
2705 int
2706 main ()
2707 {
2708
2709   ;
2710   return 0;
2711 }
2712 _ACEOF
2713 # Make sure it works both with $CC and with simple cc.
2714 # We do the test twice because some compilers refuse to overwrite an
2715 # existing .o file with -o, though they will create one.
2716 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2717 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); } &&
2722    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); };
2727 then
2728   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2729   if test "x$CC" != xcc; then
2730     # Test first that cc exists at all.
2731     if { ac_try='cc -c conftest.$ac_ext >&5'
2732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733   (eval $ac_try) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; }; then
2737       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2738       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744   (eval $ac_try) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); };
2748       then
2749         # cc works too.
2750         :
2751       else
2752         # cc exists but doesn't like -o.
2753         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2754       fi
2755     fi
2756   fi
2757 else
2758   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2759 fi
2760 rm -f conftest*
2761
2762 fi
2763 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2764   echo "$as_me:$LINENO: result: yes" >&5
2765 echo "${ECHO_T}yes" >&6
2766 else
2767   echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6
2769
2770 cat >>confdefs.h <<\_ACEOF
2771 #define NO_MINUS_C_MINUS_O 1
2772 _ACEOF
2773
2774 fi
2775
2776 # autoconf is lame and doesn't give us any substitution variable for this.
2777 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2778   NO_MINUS_C_MINUS_O=yes
2779 else
2780   OUTPUT_OPTION='-o $@'
2781 fi
2782
2783
2784
2785 # -------------------------
2786 # Check C compiler features
2787 # -------------------------
2788
2789
2790 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2791 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2792 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   save_CFLAGS="$CFLAGS"
2796 CFLAGS="-Wno-long-long"
2797 cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h.  */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h.  */
2803
2804 int
2805 main ()
2806 {
2807
2808   ;
2809   return 0;
2810 }
2811 _ACEOF
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814   (eval $ac_compile) 2>conftest.er1
2815   ac_status=$?
2816   grep -v '^ *+' conftest.er1 >conftest.err
2817   rm -f conftest.er1
2818   cat conftest.err >&5
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); } &&
2821          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823   (eval $ac_try) 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; } &&
2827          { ac_try='test -s conftest.$ac_objext'
2828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); }; }; then
2833   ac_cv_prog_cc_no_long_long=yes
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2837
2838 ac_cv_prog_cc_no_long_long=no
2839 fi
2840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 CFLAGS="$save_CFLAGS"
2842 fi
2843 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2844 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2845
2846 ac_ext=c
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2852 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2853 # On Suns, sometimes $CPP names a directory.
2854 if test -n "$CPP" && test -d "$CPP"; then
2855   CPP=
2856 fi
2857 if test -z "$CPP"; then
2858   if test "${ac_cv_prog_CPP+set}" = set; then
2859   echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861       # Double quotes because CPP needs to be expanded
2862     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2863     do
2864       ac_preproc_ok=false
2865 for ac_c_preproc_warn_flag in '' yes
2866 do
2867   # Use a header file that comes with gcc, so configuring glibc
2868   # with a fresh cross-compiler works.
2869   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2870   # <limits.h> exists even on freestanding compilers.
2871   # On the NeXT, cc -E runs the code through the compiler's parser,
2872   # not just through cpp. "Syntax error" is here to catch this case.
2873   cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h.  */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h.  */
2879 #ifdef __STDC__
2880 # include <limits.h>
2881 #else
2882 # include <assert.h>
2883 #endif
2884                      Syntax error
2885 _ACEOF
2886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888   ac_status=$?
2889   grep -v '^ *+' conftest.er1 >conftest.err
2890   rm -f conftest.er1
2891   cat conftest.err >&5
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); } >/dev/null; then
2894   if test -s conftest.err; then
2895     ac_cpp_err=$ac_c_preproc_warn_flag
2896     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2897   else
2898     ac_cpp_err=
2899   fi
2900 else
2901   ac_cpp_err=yes
2902 fi
2903 if test -z "$ac_cpp_err"; then
2904   :
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909   # Broken: fails on valid input.
2910 continue
2911 fi
2912 rm -f conftest.err conftest.$ac_ext
2913
2914   # OK, works on sane cases.  Now check whether non-existent headers
2915   # can be detected and how.
2916   cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h.  */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h.  */
2922 #include <ac_nonexistent.h>
2923 _ACEOF
2924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2925   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2926   ac_status=$?
2927   grep -v '^ *+' conftest.er1 >conftest.err
2928   rm -f conftest.er1
2929   cat conftest.err >&5
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); } >/dev/null; then
2932   if test -s conftest.err; then
2933     ac_cpp_err=$ac_c_preproc_warn_flag
2934     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2935   else
2936     ac_cpp_err=
2937   fi
2938 else
2939   ac_cpp_err=yes
2940 fi
2941 if test -z "$ac_cpp_err"; then
2942   # Broken: success on invalid input.
2943 continue
2944 else
2945   echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948   # Passes both tests.
2949 ac_preproc_ok=:
2950 break
2951 fi
2952 rm -f conftest.err conftest.$ac_ext
2953
2954 done
2955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2956 rm -f conftest.err conftest.$ac_ext
2957 if $ac_preproc_ok; then
2958   break
2959 fi
2960
2961     done
2962     ac_cv_prog_CPP=$CPP
2963
2964 fi
2965   CPP=$ac_cv_prog_CPP
2966 else
2967   ac_cv_prog_CPP=$CPP
2968 fi
2969 echo "$as_me:$LINENO: result: $CPP" >&5
2970 echo "${ECHO_T}$CPP" >&6
2971 ac_preproc_ok=false
2972 for ac_c_preproc_warn_flag in '' yes
2973 do
2974   # Use a header file that comes with gcc, so configuring glibc
2975   # with a fresh cross-compiler works.
2976   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2977   # <limits.h> exists even on freestanding compilers.
2978   # On the NeXT, cc -E runs the code through the compiler's parser,
2979   # not just through cpp. "Syntax error" is here to catch this case.
2980   cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h.  */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h.  */
2986 #ifdef __STDC__
2987 # include <limits.h>
2988 #else
2989 # include <assert.h>
2990 #endif
2991                      Syntax error
2992 _ACEOF
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } >/dev/null; then
3001   if test -s conftest.err; then
3002     ac_cpp_err=$ac_c_preproc_warn_flag
3003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3004   else
3005     ac_cpp_err=
3006   fi
3007 else
3008   ac_cpp_err=yes
3009 fi
3010 if test -z "$ac_cpp_err"; then
3011   :
3012 else
3013   echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016   # Broken: fails on valid input.
3017 continue
3018 fi
3019 rm -f conftest.err conftest.$ac_ext
3020
3021   # OK, works on sane cases.  Now check whether non-existent headers
3022   # can be detected and how.
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029 #include <ac_nonexistent.h>
3030 _ACEOF
3031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3033   ac_status=$?
3034   grep -v '^ *+' conftest.er1 >conftest.err
3035   rm -f conftest.er1
3036   cat conftest.err >&5
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } >/dev/null; then
3039   if test -s conftest.err; then
3040     ac_cpp_err=$ac_c_preproc_warn_flag
3041     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3042   else
3043     ac_cpp_err=
3044   fi
3045 else
3046   ac_cpp_err=yes
3047 fi
3048 if test -z "$ac_cpp_err"; then
3049   # Broken: success on invalid input.
3050 continue
3051 else
3052   echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055   # Passes both tests.
3056 ac_preproc_ok=:
3057 break
3058 fi
3059 rm -f conftest.err conftest.$ac_ext
3060
3061 done
3062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3063 rm -f conftest.err conftest.$ac_ext
3064 if $ac_preproc_ok; then
3065   :
3066 else
3067   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3068 See \`config.log' for more details." >&5
3069 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3070 See \`config.log' for more details." >&2;}
3071    { (exit 1); exit 1; }; }
3072 fi
3073
3074 ac_ext=c
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079
3080 echo "$as_me:$LINENO: checking for inline" >&5
3081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3082 if test "${ac_cv_c_inline+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   ac_cv_c_inline=no
3086 for ac_kw in inline __inline__ __inline; do
3087   cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h.  */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h.  */
3093 #ifndef __cplusplus
3094 typedef int foo_t;
3095 static $ac_kw foo_t static_foo () {return 0; }
3096 $ac_kw foo_t foo () {return 0; }
3097 #endif
3098
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102   (eval $ac_compile) 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } &&
3109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111   (eval $ac_try) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; } &&
3115          { ac_try='test -s conftest.$ac_objext'
3116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117   (eval $ac_try) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; }; then
3121   ac_cv_c_inline=$ac_kw; break
3122 else
3123   echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 fi
3127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3128 done
3129
3130 fi
3131 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3132 echo "${ECHO_T}$ac_cv_c_inline" >&6
3133
3134
3135 case $ac_cv_c_inline in
3136   inline | yes) ;;
3137   *)
3138     case $ac_cv_c_inline in
3139       no) ac_val=;;
3140       *) ac_val=$ac_cv_c_inline;;
3141     esac
3142     cat >>confdefs.h <<_ACEOF
3143 #ifndef __cplusplus
3144 #define inline $ac_val
3145 #endif
3146 _ACEOF
3147     ;;
3148 esac
3149
3150
3151 echo "$as_me:$LINENO: checking for long long int" >&5
3152 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3153 if test "${ac_cv_c_long_long+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162
3163 int
3164 main ()
3165 {
3166 long long int i;
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173   (eval $ac_compile) 2>conftest.er1
3174   ac_status=$?
3175   grep -v '^ *+' conftest.er1 >conftest.err
3176   rm -f conftest.er1
3177   cat conftest.err >&5
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); } &&
3180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182   (eval $ac_try) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; } &&
3186          { ac_try='test -s conftest.$ac_objext'
3187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188   (eval $ac_try) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; }; then
3192   ac_cv_c_long_long=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 ac_cv_c_long_long=no
3198 fi
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3202 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3203   if test $ac_cv_c_long_long = yes; then
3204
3205 cat >>confdefs.h <<\_ACEOF
3206 #define HAVE_LONG_LONG 1
3207 _ACEOF
3208
3209   fi
3210 echo "$as_me:$LINENO: checking for __int64" >&5
3211 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3212 if test "${ac_cv_c___int64+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225 __int64 i;
3226   ;
3227   return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3232   (eval $ac_compile) 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } &&
3239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241   (eval $ac_try) 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; } &&
3245          { ac_try='test -s conftest.$ac_objext'
3246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247   (eval $ac_try) 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }; }; then
3251   ac_cv_c___int64=yes
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 ac_cv_c___int64=no
3257 fi
3258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3259 fi
3260 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3261 echo "${ECHO_T}$ac_cv_c___int64" >&6
3262   if test $ac_cv_c___int64 = yes; then
3263
3264 cat >>confdefs.h <<\_ACEOF
3265 #define HAVE___INT64 1
3266 _ACEOF
3267
3268   fi
3269
3270 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3271 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3272 if test "${gcc_cv_c__bool+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281
3282 int
3283 main ()
3284 {
3285 _Bool foo;
3286   ;
3287   return 0;
3288 }
3289 _ACEOF
3290 rm -f conftest.$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292   (eval $ac_compile) 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } &&
3299          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301   (eval $ac_try) 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; } &&
3305          { ac_try='test -s conftest.$ac_objext'
3306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307   (eval $ac_try) 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }; }; then
3311   gcc_cv_c__bool=yes
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 gcc_cv_c__bool=no
3317 fi
3318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319
3320 fi
3321 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3322 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3323 if test $gcc_cv_c__bool = yes; then
3324
3325 cat >>confdefs.h <<\_ACEOF
3326 #define HAVE__BOOL 1
3327 _ACEOF
3328
3329 fi
3330
3331
3332 # sizeof(char) is 1 by definition.
3333 echo "$as_me:$LINENO: checking size of void *" >&5
3334 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3335 if test "${ac_cv_sizeof_void_p+set}" = set; then
3336   echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3339   cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345 #include "confdefs.h"
3346 #include <sys/types.h>
3347
3348
3349 int
3350 main ()
3351 {
3352 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3353   ;
3354   return 0;
3355 }
3356 _ACEOF
3357 rm -f conftest.$ac_objext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359   (eval $ac_compile) 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } &&
3366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368   (eval $ac_try) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; } &&
3372          { ac_try='test -s conftest.$ac_objext'
3373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374   (eval $ac_try) 2>&5
3375   ac_status=$?
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); }; }; then
3378   ac_cv_sizeof_void_p=$ac_size
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 fi
3384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3386 done
3387
3388 fi
3389
3390 if test x$ac_cv_sizeof_void_p = x ; then
3391   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3392 echo "$as_me: error: cannot determine a size for void *" >&2;}
3393    { (exit 1); exit 1; }; }
3394 fi
3395 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3396 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3397
3398 cat >>confdefs.h <<_ACEOF
3399 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3400 _ACEOF
3401
3402
3403 echo "$as_me:$LINENO: checking size of short" >&5
3404 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3405 if test "${ac_cv_sizeof_short+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3409   cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415 #include "confdefs.h"
3416 #include <sys/types.h>
3417
3418
3419 int
3420 main ()
3421 {
3422 switch (0) case 0: case (sizeof (short) == $ac_size):;
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.$ac_objext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3429   (eval $ac_compile) 2>conftest.er1
3430   ac_status=$?
3431   grep -v '^ *+' conftest.er1 >conftest.err
3432   rm -f conftest.er1
3433   cat conftest.err >&5
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); } &&
3436          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438   (eval $ac_try) 2>&5
3439   ac_status=$?
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); }; } &&
3442          { ac_try='test -s conftest.$ac_objext'
3443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444   (eval $ac_try) 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); }; }; then
3448   ac_cv_sizeof_short=$ac_size
3449 else
3450   echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 fi
3454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455   if test x$ac_cv_sizeof_short != x ; then break; fi
3456 done
3457
3458 fi
3459
3460 if test x$ac_cv_sizeof_short = x ; then
3461   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3462 echo "$as_me: error: cannot determine a size for short" >&2;}
3463    { (exit 1); exit 1; }; }
3464 fi
3465 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3466 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3467
3468 cat >>confdefs.h <<_ACEOF
3469 #define SIZEOF_SHORT $ac_cv_sizeof_short
3470 _ACEOF
3471
3472
3473 echo "$as_me:$LINENO: checking size of int" >&5
3474 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3475 if test "${ac_cv_sizeof_int+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3479   cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485 #include "confdefs.h"
3486 #include <sys/types.h>
3487
3488
3489 int
3490 main ()
3491 {
3492 switch (0) case 0: case (sizeof (int) == $ac_size):;
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499   (eval $ac_compile) 2>conftest.er1
3500   ac_status=$?
3501   grep -v '^ *+' conftest.er1 >conftest.err
3502   rm -f conftest.er1
3503   cat conftest.err >&5
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); } &&
3506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508   (eval $ac_try) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }; } &&
3512          { ac_try='test -s conftest.$ac_objext'
3513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514   (eval $ac_try) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); }; }; then
3518   ac_cv_sizeof_int=$ac_size
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 fi
3524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3525   if test x$ac_cv_sizeof_int != x ; then break; fi
3526 done
3527
3528 fi
3529
3530 if test x$ac_cv_sizeof_int = x ; then
3531   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3532 echo "$as_me: error: cannot determine a size for int" >&2;}
3533    { (exit 1); exit 1; }; }
3534 fi
3535 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3536 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3537
3538 cat >>confdefs.h <<_ACEOF
3539 #define SIZEOF_INT $ac_cv_sizeof_int
3540 _ACEOF
3541
3542
3543 echo "$as_me:$LINENO: checking size of long" >&5
3544 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3545 if test "${ac_cv_sizeof_long+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3549   cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h.  */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h.  */
3555 #include "confdefs.h"
3556 #include <sys/types.h>
3557
3558
3559 int
3560 main ()
3561 {
3562 switch (0) case 0: case (sizeof (long) == $ac_size):;
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569   (eval $ac_compile) 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } &&
3576          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; } &&
3582          { ac_try='test -s conftest.$ac_objext'
3583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584   (eval $ac_try) 2>&5
3585   ac_status=$?
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); }; }; then
3588   ac_cv_sizeof_long=$ac_size
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 fi
3594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595   if test x$ac_cv_sizeof_long != x ; then break; fi
3596 done
3597
3598 fi
3599
3600 if test x$ac_cv_sizeof_long = x ; then
3601   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3602 echo "$as_me: error: cannot determine a size for long" >&2;}
3603    { (exit 1); exit 1; }; }
3604 fi
3605 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3606 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3607
3608 cat >>confdefs.h <<_ACEOF
3609 #define SIZEOF_LONG $ac_cv_sizeof_long
3610 _ACEOF
3611
3612
3613 if test $ac_cv_c_long_long = yes; then
3614   echo "$as_me:$LINENO: checking size of long long" >&5
3615 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3616 if test "${ac_cv_sizeof_long_long+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3620   cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h.  */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h.  */
3626 #include "confdefs.h"
3627 #include <sys/types.h>
3628
3629
3630 int
3631 main ()
3632 {
3633 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640   (eval $ac_compile) 2>conftest.er1
3641   ac_status=$?
3642   grep -v '^ *+' conftest.er1 >conftest.err
3643   rm -f conftest.er1
3644   cat conftest.err >&5
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } &&
3647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649   (eval $ac_try) 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); }; } &&
3653          { ac_try='test -s conftest.$ac_objext'
3654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655   (eval $ac_try) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); }; }; then
3659   ac_cv_sizeof_long_long=$ac_size
3660 else
3661   echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 fi
3665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3666   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3667 done
3668
3669 fi
3670
3671 if test x$ac_cv_sizeof_long_long = x ; then
3672   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3673 echo "$as_me: error: cannot determine a size for long long" >&2;}
3674    { (exit 1); exit 1; }; }
3675 fi
3676 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3677 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3678
3679 cat >>confdefs.h <<_ACEOF
3680 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3681 _ACEOF
3682
3683
3684 fi
3685 if test $ac_cv_c___int64 = yes; then
3686   echo "$as_me:$LINENO: checking size of __int64" >&5
3687 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3688 if test "${ac_cv_sizeof___int64+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3692   cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h.  */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h.  */
3698 #include "confdefs.h"
3699 #include <sys/types.h>
3700
3701
3702 int
3703 main ()
3704 {
3705 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712   (eval $ac_compile) 2>conftest.er1
3713   ac_status=$?
3714   grep -v '^ *+' conftest.er1 >conftest.err
3715   rm -f conftest.er1
3716   cat conftest.err >&5
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); } &&
3719          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721   (eval $ac_try) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; } &&
3725          { ac_try='test -s conftest.$ac_objext'
3726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727   (eval $ac_try) 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); }; }; then
3731   ac_cv_sizeof___int64=$ac_size
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 fi
3737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3739 done
3740
3741 fi
3742
3743 if test x$ac_cv_sizeof___int64 = x ; then
3744   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3745 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3746    { (exit 1); exit 1; }; }
3747 fi
3748 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3749 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3750
3751 cat >>confdefs.h <<_ACEOF
3752 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3753 _ACEOF
3754
3755
3756 fi
3757
3758 # -----------------
3759 # Find Ada compiler
3760 # -----------------
3761
3762 # See if GNAT has been installed
3763
3764
3765
3766 if test -n "$ac_tool_prefix"; then
3767   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3768 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3769 echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   if test -n "$GNATBIND"; then
3775   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3779 do
3780   IFS=$as_save_IFS
3781   test -z "$as_dir" && as_dir=.
3782   for ac_exec_ext in '' $ac_executable_extensions; do
3783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3786     break 2
3787   fi
3788 done
3789 done
3790
3791 fi
3792 fi
3793 GNATBIND=$ac_cv_prog_GNATBIND
3794 if test -n "$GNATBIND"; then
3795   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3796 echo "${ECHO_T}$GNATBIND" >&6
3797 else
3798   echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3800 fi
3801
3802 fi
3803 if test -z "$ac_cv_prog_GNATBIND"; then
3804   ac_ct_GNATBIND=$GNATBIND
3805   # Extract the first word of "gnatbind", so it can be a program name with args.
3806 set dummy gnatbind; ac_word=$2
3807 echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3809 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   if test -n "$ac_ct_GNATBIND"; then
3813   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818   IFS=$as_save_IFS
3819   test -z "$as_dir" && as_dir=.
3820   for ac_exec_ext in '' $ac_executable_extensions; do
3821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824     break 2
3825   fi
3826 done
3827 done
3828
3829   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3830 fi
3831 fi
3832 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3833 if test -n "$ac_ct_GNATBIND"; then
3834   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3835 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3836 else
3837   echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839 fi
3840
3841   GNATBIND=$ac_ct_GNATBIND
3842 else
3843   GNATBIND="$ac_cv_prog_GNATBIND"
3844 fi
3845
3846 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3847 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3848 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   cat >conftest.adb <<EOF
3852 procedure conftest is begin null; end conftest;
3853 EOF
3854 gcc_cv_cc_supports_ada=no
3855 # There is a bug in old released versions of GCC which causes the
3856 # driver to exit successfully when the appropriate language module
3857 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3858 # Therefore we must check for the error message as well as an
3859 # unsuccessful exit.
3860 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3861 if test x"$errors" = x; then
3862   gcc_cv_cc_supports_ada=yes
3863   break
3864 fi
3865 rm -f conftest.*
3866 fi
3867 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3868 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3869
3870 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3871   have_gnat=yes
3872 else
3873   have_gnat=no
3874 fi
3875
3876
3877 # ---------------------
3878 # Warnings and checking
3879 # ---------------------
3880
3881 strict1_warn=
3882 if test $ac_cv_prog_cc_no_long_long = yes ; then
3883   strict1_warn="-pedantic -Wno-long-long"
3884 fi
3885
3886
3887 # If the native compiler is GCC, we can enable warnings even in stage1.
3888 # That's useful for people building cross-compilers, or just running a
3889 # quick `make'.
3890 warn_cflags=
3891 if test "x$GCC" = "xyes"; then
3892   warn_cflags='$(GCC_WARN_CFLAGS)'
3893 fi
3894
3895
3896 # Enable -Werror in bootstrap stage2 and later.
3897 # Change the default to "no" on release branches.
3898 # Check whether --enable-werror or --disable-werror was given.
3899 if test "${enable_werror+set}" = set; then
3900   enableval="$enable_werror"
3901
3902 else
3903   enable_werror=yes
3904 fi;
3905 if test x$enable_werror = xyes ; then
3906   WERROR=-Werror
3907 fi
3908
3909
3910 # Enable expensive internal checks
3911 # Check whether --enable-checking or --disable-checking was given.
3912 if test "${enable_checking+set}" = set; then
3913   enableval="$enable_checking"
3914   ac_checking=
3915 ac_tree_checking=
3916 ac_rtl_checking=
3917 ac_rtlflag_checking=
3918 ac_gc_checking=
3919 ac_gc_always_collect=
3920 ac_fold_checking=
3921 case "${enableval}" in
3922 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3923         ac_rtlflag_checking=1 ;;
3924 no)     ;;
3925 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3926         set fnord $enableval; shift
3927         IFS="$ac_save_IFS"
3928         for check
3929         do
3930                 case $check in
3931                 misc)   ac_checking=1 ;;
3932                 tree)   ac_tree_checking=1 ;;
3933                 rtlflag)        ac_rtlflag_checking=1 ;;
3934                 rtl)    ac_rtl_checking=1 ;;
3935                 gc)     ac_gc_checking=1 ;;
3936                 gcac)   ac_gc_always_collect=1 ;;
3937                 fold)   ac_fold_checking=1 ;;
3938                 valgrind)       ac_checking_valgrind=1 ;;
3939                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3940 echo "$as_me: error: unknown check category $check" >&2;}
3941    { (exit 1); exit 1; }; } ;;
3942                 esac
3943         done
3944         ;;
3945 esac
3946
3947 else
3948   # Enable some checks by default for development versions of GCC
3949 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3950 fi;
3951 nocommon_flag=""
3952 if test x$ac_checking != x ; then
3953
3954 cat >>confdefs.h <<\_ACEOF
3955 #define ENABLE_CHECKING 1
3956 _ACEOF
3957
3958   nocommon_flag=-fno-common
3959 fi
3960
3961 if test x$ac_tree_checking != x ; then
3962
3963 cat >>confdefs.h <<\_ACEOF
3964 #define ENABLE_TREE_CHECKING 1
3965 _ACEOF
3966
3967 fi
3968 if test x$ac_rtl_checking != x ; then
3969
3970 cat >>confdefs.h <<\_ACEOF
3971 #define ENABLE_RTL_CHECKING 1
3972 _ACEOF
3973
3974 fi
3975 if test x$ac_rtlflag_checking != x ; then
3976
3977 cat >>confdefs.h <<\_ACEOF
3978 #define ENABLE_RTL_FLAG_CHECKING 1
3979 _ACEOF
3980
3981 fi
3982 if test x$ac_gc_checking != x ; then
3983
3984 cat >>confdefs.h <<\_ACEOF
3985 #define ENABLE_GC_CHECKING 1
3986 _ACEOF
3987
3988 fi
3989 if test x$ac_gc_always_collect != x ; then
3990
3991 cat >>confdefs.h <<\_ACEOF
3992 #define ENABLE_GC_ALWAYS_COLLECT 1
3993 _ACEOF
3994
3995 fi
3996 if test x$ac_fold_checking != x ; then
3997
3998 cat >>confdefs.h <<\_ACEOF
3999 #define ENABLE_FOLD_CHECKING 1
4000 _ACEOF
4001
4002 fi
4003 valgrind_path_defines=
4004 valgrind_command=
4005
4006
4007 echo "$as_me:$LINENO: checking for egrep" >&5
4008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4009 if test "${ac_cv_prog_egrep+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4013     then ac_cv_prog_egrep='grep -E'
4014     else ac_cv_prog_egrep='egrep'
4015     fi
4016 fi
4017 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4018 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4019  EGREP=$ac_cv_prog_egrep
4020
4021
4022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4024 if test "${ac_cv_header_stdc+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   cat >conftest.$ac_ext <<_ACEOF
4028 /* confdefs.h.  */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h.  */
4033 #include <stdlib.h>
4034 #include <stdarg.h>
4035 #include <string.h>
4036 #include <float.h>
4037
4038 int
4039 main ()
4040 {
4041
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 rm -f conftest.$ac_objext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4048   (eval $ac_compile) 2>conftest.er1
4049   ac_status=$?
4050   grep -v '^ *+' conftest.er1 >conftest.err
4051   rm -f conftest.er1
4052   cat conftest.err >&5
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); } &&
4055          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057   (eval $ac_try) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; } &&
4061          { ac_try='test -s conftest.$ac_objext'
4062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063   (eval $ac_try) 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }; }; then
4067   ac_cv_header_stdc=yes
4068 else
4069   echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 ac_cv_header_stdc=no
4073 fi
4074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4075
4076 if test $ac_cv_header_stdc = yes; then
4077   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4078   cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084 #include <string.h>
4085
4086 _ACEOF
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088   $EGREP "memchr" >/dev/null 2>&1; then
4089   :
4090 else
4091   ac_cv_header_stdc=no
4092 fi
4093 rm -f conftest*
4094
4095 fi
4096
4097 if test $ac_cv_header_stdc = yes; then
4098   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4099   cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h.  */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h.  */
4105 #include <stdlib.h>
4106
4107 _ACEOF
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109   $EGREP "free" >/dev/null 2>&1; then
4110   :
4111 else
4112   ac_cv_header_stdc=no
4113 fi
4114 rm -f conftest*
4115
4116 fi
4117
4118 if test $ac_cv_header_stdc = yes; then
4119   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4120   if test "$cross_compiling" = yes; then
4121   :
4122 else
4123   cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h.  */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h.  */
4129 #include <ctype.h>
4130 #if ((' ' & 0x0FF) == 0x020)
4131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4133 #else
4134 # define ISLOWER(c) \
4135                    (('a' <= (c) && (c) <= 'i') \
4136                      || ('j' <= (c) && (c) <= 'r') \
4137                      || ('s' <= (c) && (c) <= 'z'))
4138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4139 #endif
4140
4141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4142 int
4143 main ()
4144 {
4145   int i;
4146   for (i = 0; i < 256; i++)
4147     if (XOR (islower (i), ISLOWER (i))
4148         || toupper (i) != TOUPPER (i))
4149       exit(2);
4150   exit (0);
4151 }
4152 _ACEOF
4153 rm -f conftest$ac_exeext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4155   (eval $ac_link) 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160   (eval $ac_try) 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; }; then
4164   :
4165 else
4166   echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 ( exit $ac_status )
4171 ac_cv_header_stdc=no
4172 fi
4173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4174 fi
4175 fi
4176 fi
4177 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4178 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4179 if test $ac_cv_header_stdc = yes; then
4180
4181 cat >>confdefs.h <<\_ACEOF
4182 #define STDC_HEADERS 1
4183 _ACEOF
4184
4185 fi
4186
4187 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4198                   inttypes.h stdint.h unistd.h
4199 do
4200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4201 echo "$as_me:$LINENO: checking for $ac_header" >&5
4202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 $ac_includes_default
4213
4214 #include <$ac_header>
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218   (eval $ac_compile) 2>conftest.er1
4219   ac_status=$?
4220   grep -v '^ *+' conftest.er1 >conftest.err
4221   rm -f conftest.er1
4222   cat conftest.err >&5
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } &&
4225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227   (eval $ac_try) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; } &&
4231          { ac_try='test -s conftest.$ac_objext'
4232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233   (eval $ac_try) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; }; then
4237   eval "$as_ac_Header=yes"
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 eval "$as_ac_Header=no"
4243 fi
4244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4245 fi
4246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4249   cat >>confdefs.h <<_ACEOF
4250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4251 _ACEOF
4252
4253 fi
4254
4255 done
4256
4257
4258 if test "${ac_cv_header_valgrind_h+set}" = set; then
4259   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4260 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4261 if test "${ac_cv_header_valgrind_h+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 fi
4264 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4265 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4266 else
4267   # Is the header compilable?
4268 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4269 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h.  */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h.  */
4276 $ac_includes_default
4277 #include <valgrind.h>
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281   (eval $ac_compile) 2>conftest.er1
4282   ac_status=$?
4283   grep -v '^ *+' conftest.er1 >conftest.err
4284   rm -f conftest.er1
4285   cat conftest.err >&5
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } &&
4288          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290   (eval $ac_try) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; } &&
4294          { ac_try='test -s conftest.$ac_objext'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; }; then
4300   ac_header_compiler=yes
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 ac_header_compiler=no
4306 fi
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4309 echo "${ECHO_T}$ac_header_compiler" >&6
4310
4311 # Is the header present?
4312 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4313 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 #include <valgrind.h>
4321 _ACEOF
4322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4324   ac_status=$?
4325   grep -v '^ *+' conftest.er1 >conftest.err
4326   rm -f conftest.er1
4327   cat conftest.err >&5
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } >/dev/null; then
4330   if test -s conftest.err; then
4331     ac_cpp_err=$ac_c_preproc_warn_flag
4332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4333   else
4334     ac_cpp_err=
4335   fi
4336 else
4337   ac_cpp_err=yes
4338 fi
4339 if test -z "$ac_cpp_err"; then
4340   ac_header_preproc=yes
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345   ac_header_preproc=no
4346 fi
4347 rm -f conftest.err conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4349 echo "${ECHO_T}$ac_header_preproc" >&6
4350
4351 # So?  What about this header?
4352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4353   yes:no: )
4354     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4355 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4356     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4357 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4358     ac_header_preproc=yes
4359     ;;
4360   no:yes:* )
4361     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4362 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4363     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
4364 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
4365     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4366 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4367     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
4368 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4369     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4370 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4371     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4372 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4373     (
4374       cat <<\_ASBOX
4375 ## ------------------------------------------ ##
4376 ## Report this to the AC_PACKAGE_NAME lists.  ##
4377 ## ------------------------------------------ ##
4378 _ASBOX
4379     ) |
4380       sed "s/^/$as_me: WARNING:     /" >&2
4381     ;;
4382 esac
4383 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4384 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4385 if test "${ac_cv_header_valgrind_h+set}" = set; then
4386   echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388   ac_cv_header_valgrind_h=$ac_header_preproc
4389 fi
4390 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4391 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4392
4393 fi
4394 if test $ac_cv_header_valgrind_h = yes; then
4395   have_valgrind_h=yes
4396 else
4397   have_valgrind_h=no
4398 fi
4399
4400
4401
4402 if test x$ac_checking_valgrind != x ; then
4403   # It is certainly possible that there's valgrind but no valgrind.h.
4404   # GCC relies on making annotations so we must have both.
4405   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4406 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4407   cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h.  */
4413 #include <valgrind/memcheck.h>
4414 #ifndef VALGRIND_DISCARD
4415 #error VALGRIND_DISCARD not defined
4416 #endif
4417 _ACEOF
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } >/dev/null; then
4426   if test -s conftest.err; then
4427     ac_cpp_err=$ac_c_preproc_warn_flag
4428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4429   else
4430     ac_cpp_err=
4431   fi
4432 else
4433   ac_cpp_err=yes
4434 fi
4435 if test -z "$ac_cpp_err"; then
4436   gcc_cv_header_valgrind_memcheck_h=yes
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441   gcc_cv_header_valgrind_memcheck_h=no
4442 fi
4443 rm -f conftest.err conftest.$ac_ext
4444   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4445 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4446   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4447 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4448   cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 #include <memcheck.h>
4455 #ifndef VALGRIND_DISCARD
4456 #error VALGRIND_DISCARD not defined
4457 #endif
4458 _ACEOF
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461   ac_status=$?
4462   grep -v '^ *+' conftest.er1 >conftest.err
4463   rm -f conftest.er1
4464   cat conftest.err >&5
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); } >/dev/null; then
4467   if test -s conftest.err; then
4468     ac_cpp_err=$ac_c_preproc_warn_flag
4469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4470   else
4471     ac_cpp_err=
4472   fi
4473 else
4474   ac_cpp_err=yes
4475 fi
4476 if test -z "$ac_cpp_err"; then
4477   gcc_cv_header_memcheck_h=yes
4478 else
4479   echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482   gcc_cv_header_memcheck_h=no
4483 fi
4484 rm -f conftest.err conftest.$ac_ext
4485   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4486 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4487
4488 # Prepare PATH_SEPARATOR.
4489 # The user is always right.
4490 if test "${PATH_SEPARATOR+set}" != set; then
4491   echo "#! /bin/sh" >conf$$.sh
4492   echo  "exit 0"   >>conf$$.sh
4493   chmod +x conf$$.sh
4494   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4495     PATH_SEPARATOR=';'
4496   else
4497     PATH_SEPARATOR=:
4498   fi
4499   rm -f conf$$.sh
4500 fi
4501
4502 # Find out how to test for executable files. Don't use a zero-byte file,
4503 # as systems may use methods other than mode bits to determine executability.
4504 cat >conf$$.file <<_ASEOF
4505 #! /bin/sh
4506 exit 0
4507 _ASEOF
4508 chmod +x conf$$.file
4509 if test -x conf$$.file >/dev/null 2>&1; then
4510   ac_executable_p="test -x"
4511 else
4512   ac_executable_p="test -f"
4513 fi
4514 rm -f conf$$.file
4515
4516 # Extract the first word of "valgrind", so it can be a program name with args.
4517 set dummy valgrind; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_path_valgrind_path+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   case "$valgrind_path" in
4524   [\\/]* | ?:[\\/]*)
4525     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4526     ;;
4527   *)
4528     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4529     for ac_dir in $PATH; do
4530       IFS="$ac_save_IFS"
4531       test -z "$ac_dir" && ac_dir=.
4532       for ac_exec_ext in '' $ac_executable_extensions; do
4533         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4534           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4535             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4536             break 2
4537           fi
4538         fi
4539       done
4540     done
4541     IFS="$ac_save_IFS"
4542     ;;
4543 esac
4544 fi
4545 valgrind_path="$ac_cv_path_valgrind_path"
4546 if test -n "$valgrind_path"; then
4547   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4548 echo "${ECHO_T}$valgrind_path" >&6
4549 else
4550   echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4552 fi
4553
4554   if test "x$valgrind_path" = "x" \
4555     || (test $have_valgrind_h = no \
4556         && test $gcc_cv_header_memcheck_h = no \
4557         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4558         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4559 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4560    { (exit 1); exit 1; }; }
4561   fi
4562   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4563   valgrind_command="$valgrind_path -q"
4564
4565 cat >>confdefs.h <<\_ACEOF
4566 #define ENABLE_VALGRIND_CHECKING 1
4567 _ACEOF
4568
4569   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4570
4571 cat >>confdefs.h <<\_ACEOF
4572 #define HAVE_VALGRIND_MEMCHECK_H 1
4573 _ACEOF
4574
4575   fi
4576   if test $gcc_cv_header_memcheck_h = yes; then
4577
4578 cat >>confdefs.h <<\_ACEOF
4579 #define HAVE_MEMCHECK_H 1
4580 _ACEOF
4581
4582   fi
4583 fi
4584
4585
4586
4587 # Enable code coverage collection
4588 # Check whether --enable-coverage or --disable-coverage was given.
4589 if test "${enable_coverage+set}" = set; then
4590   enableval="$enable_coverage"
4591   case "${enableval}" in
4592 yes|noopt)
4593         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4594         ;;
4595 opt)
4596         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4597         ;;
4598 *)
4599         { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4600 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4601    { (exit 1); exit 1; }; }
4602         ;;
4603 esac
4604 else
4605   coverage_flags=""
4606 fi;
4607
4608
4609 # -------------------------------
4610 # Miscenalleous configure options
4611 # -------------------------------
4612
4613 # With stabs
4614
4615 # Check whether --with-stabs or --without-stabs was given.
4616 if test "${with_stabs+set}" = set; then
4617   withval="$with_stabs"
4618   stabs="$with_stabs"
4619 else
4620   stabs=no
4621 fi;
4622
4623 # Determine whether or not multilibs are enabled.
4624 # Check whether --enable-multilib or --disable-multilib was given.
4625 if test "${enable_multilib+set}" = set; then
4626   enableval="$enable_multilib"
4627
4628 else
4629   enable_multilib=yes
4630 fi;
4631
4632
4633 # Enable __cxa_atexit for C++.
4634 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4635 if test "${enable___cxa_atexit+set}" = set; then
4636   enableval="$enable___cxa_atexit"
4637
4638 fi;
4639
4640 # Enable threads
4641 # Pass with no value to take the default
4642 # Pass with a value to specify a thread package
4643 # Check whether --enable-threads or --disable-threads was given.
4644 if test "${enable_threads+set}" = set; then
4645   enableval="$enable_threads"
4646
4647 else
4648   enable_threads=''
4649 fi;
4650 # Save in case it gets overwritten in config.gcc
4651 enable_threads_flag=$enable_threads
4652
4653 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4654 if test "${enable_objc_gc+set}" = set; then
4655   enableval="$enable_objc_gc"
4656   if test x$enable_objc_gc = xno; then
4657         objc_boehm_gc=''
4658 else
4659         objc_boehm_gc=1
4660 fi
4661 else
4662   objc_boehm_gc=''
4663 fi;
4664
4665
4666 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4667 if test "${with_dwarf2+set}" = set; then
4668   withval="$with_dwarf2"
4669   dwarf2="$with_dwarf2"
4670 else
4671   dwarf2=no
4672 fi;
4673
4674 # Check whether --enable-shared or --disable-shared was given.
4675 if test "${enable_shared+set}" = set; then
4676   enableval="$enable_shared"
4677
4678   case $enable_shared in
4679   yes | no) ;;
4680   *)
4681     enable_shared=no
4682     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4683     for pkg in $enableval; do
4684       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4685         enable_shared=yes
4686       fi
4687     done
4688     IFS="$ac_save_ifs"
4689     ;;
4690   esac
4691
4692 else
4693   enable_shared=yes
4694 fi;
4695
4696
4697
4698 # Check whether --with-sysroot or --without-sysroot was given.
4699 if test "${with_sysroot+set}" = set; then
4700   withval="$with_sysroot"
4701
4702  case ${with_sysroot} in
4703  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4704  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4705  esac
4706
4707  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4708  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4709
4710  if test "x$exec_prefix" = xNONE; then
4711   if test "x$prefix" = xNONE; then
4712    test_prefix=/usr/local
4713   else
4714    test_prefix=$prefix
4715   fi
4716  else
4717   test_prefix=$exec_prefix
4718  fi
4719  case ${TARGET_SYSTEM_ROOT} in
4720  "${test_prefix}"|"${test_prefix}/"*|\
4721  '${exec_prefix}'|'${exec_prefix}/'*)
4722    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4723    TARGET_SYSTEM_ROOT_DEFINE="$t"
4724    ;;
4725  esac
4726
4727 else
4728
4729  TARGET_SYSTEM_ROOT=
4730  TARGET_SYSTEM_ROOT_DEFINE=
4731  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4732
4733 fi;
4734
4735
4736
4737
4738 # Build with intermodule optimisations
4739 # Check whether --enable-intermodule or --disable-intermodule was given.
4740 if test "${enable_intermodule+set}" = set; then
4741   enableval="$enable_intermodule"
4742   case ${enable_intermodule} in
4743   yes) onestep="-onestep";;
4744   *) onestep="";;
4745 esac
4746 else
4747   onestep=""
4748 fi;
4749
4750
4751 # -------------------------
4752 # Checks for other programs
4753 # -------------------------
4754
4755 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4756 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4758 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   cat >conftest.make <<\_ACEOF
4762 all:
4763         @echo 'ac_maketemp="$(MAKE)"'
4764 _ACEOF
4765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4766 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4767 if test -n "$ac_maketemp"; then
4768   eval ac_cv_prog_make_${ac_make}_set=yes
4769 else
4770   eval ac_cv_prog_make_${ac_make}_set=no
4771 fi
4772 rm -f conftest.make
4773 fi
4774 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4775   echo "$as_me:$LINENO: result: yes" >&5
4776 echo "${ECHO_T}yes" >&6
4777   SET_MAKE=
4778 else
4779   echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4781   SET_MAKE="MAKE=${MAKE-make}"
4782 fi
4783
4784
4785 # Find some useful tools
4786 for ac_prog in gawk mawk nawk awk
4787 do
4788   # Extract the first word of "$ac_prog", so it can be a program name with args.
4789 set dummy $ac_prog; ac_word=$2
4790 echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4792 if test "${ac_cv_prog_AWK+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795   if test -n "$AWK"; then
4796   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803   for ac_exec_ext in '' $ac_executable_extensions; do
4804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805     ac_cv_prog_AWK="$ac_prog"
4806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810 done
4811
4812 fi
4813 fi
4814 AWK=$ac_cv_prog_AWK
4815 if test -n "$AWK"; then
4816   echo "$as_me:$LINENO: result: $AWK" >&5
4817 echo "${ECHO_T}$AWK" >&6
4818 else
4819   echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6
4821 fi
4822
4823   test -n "$AWK" && break
4824 done
4825
4826 # We need awk to run opts.sh (to create options.c and options.h).
4827 # Bail out if it's missing.
4828 case ${AWK} in
4829   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4830 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4831    { (exit 1); exit 1; }; } ;;
4832 esac
4833
4834 echo "$as_me:$LINENO: checking whether ln works" >&5
4835 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4836 if test "${gcc_cv_prog_LN+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839   rm -f conftestdata_t
4840 echo >conftestdata_f
4841 if ln conftestdata_f conftestdata_t 2>/dev/null
4842 then
4843   gcc_cv_prog_LN="ln"
4844 else
4845   if ln -s conftestdata_f conftestdata_t 2>/dev/null
4846   then
4847     gcc_cv_prog_LN="ln -s"
4848   else
4849     gcc_cv_prog_LN=cp
4850   fi
4851 fi
4852 rm -f conftestdata_f conftestdata_t
4853
4854 fi
4855 LN="$gcc_cv_prog_LN"
4856 if test "$gcc_cv_prog_LN" = "ln"; then
4857   echo "$as_me:$LINENO: result: yes" >&5
4858 echo "${ECHO_T}yes" >&6
4859 else
4860   if test "$gcc_cv_prog_LN" = "ln -s"; then
4861     echo "$as_me:$LINENO: result: no, using ln -s" >&5
4862 echo "${ECHO_T}no, using ln -s" >&6
4863   else
4864     echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4865 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4866   fi
4867 fi
4868
4869 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4870 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4871 if test "${gcc_cv_prog_LN_S+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   rm -f conftestdata_t
4875 echo >conftestdata_f
4876 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4877 then
4878   gcc_cv_prog_LN_S="ln -s"
4879 else
4880   if ln conftestdata_f conftestdata_t 2>/dev/null
4881   then
4882     gcc_cv_prog_LN_S=ln
4883   else
4884     gcc_cv_prog_LN_S=cp
4885   fi
4886 fi
4887 rm -f conftestdata_f conftestdata_t
4888
4889 fi
4890 LN_S="$gcc_cv_prog_LN_S"
4891 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4892   echo "$as_me:$LINENO: result: yes" >&5
4893 echo "${ECHO_T}yes" >&6
4894 else
4895   if test "$gcc_cv_prog_LN_S" = "ln"; then
4896     echo "$as_me:$LINENO: result: no, using ln" >&5
4897 echo "${ECHO_T}no, using ln" >&6
4898   else
4899     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4900 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4901   fi
4902 fi
4903
4904 if test -n "$ac_tool_prefix"; then
4905   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4907 echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4909 if test "${ac_cv_prog_RANLIB+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   if test -n "$RANLIB"; then
4913   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920   for ac_exec_ext in '' $ac_executable_extensions; do
4921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927 done
4928
4929 fi
4930 fi
4931 RANLIB=$ac_cv_prog_RANLIB
4932 if test -n "$RANLIB"; then
4933   echo "$as_me:$LINENO: result: $RANLIB" >&5
4934 echo "${ECHO_T}$RANLIB" >&6
4935 else
4936   echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6
4938 fi
4939
4940 fi
4941 if test -z "$ac_cv_prog_RANLIB"; then
4942   ac_ct_RANLIB=$RANLIB
4943   # Extract the first word of "ranlib", so it can be a program name with args.
4944 set dummy ranlib; 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_ac_ct_RANLIB+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   if test -n "$ac_ct_RANLIB"; then
4951   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
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   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4968 fi
4969 fi
4970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4971 if test -n "$ac_ct_RANLIB"; then
4972   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4973 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4974 else
4975   echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6
4977 fi
4978
4979   RANLIB=$ac_ct_RANLIB
4980 else
4981   RANLIB="$ac_cv_prog_RANLIB"
4982 fi
4983
4984 # Find a good install program.  We prefer a C program (faster),
4985 # so one script is as good as another.  But avoid the broken or
4986 # incompatible versions:
4987 # SysV /etc/install, /usr/sbin/install
4988 # SunOS /usr/etc/install
4989 # IRIX /sbin/install
4990 # AIX /bin/install
4991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4993 # ./install, which can be erroneously created by make from ./install.sh.
4994 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4995 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4996 if test -z "$INSTALL"; then
4997 if test "${ac_cv_path_install+set}" = set; then
4998   echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5001   for ac_dir in $PATH; do
5002     # Account for people who put trailing slashes in PATH elements.
5003     case "$ac_dir/" in
5004     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5005     *)
5006       # OSF1 and SCO ODT 3.0 have their own names for install.
5007       for ac_prog in ginstall scoinst install; do
5008         if test -f $ac_dir/$ac_prog; then
5009           if test $ac_prog = install &&
5010             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5011             # AIX install.  It has an incompatible calling convention.
5012             # OSF/1 installbsd also uses dspmsg, but is usable.
5013             :
5014           else
5015             ac_cv_path_install="$ac_dir/$ac_prog -c"
5016             break 2
5017           fi
5018         fi
5019       done
5020       ;;
5021     esac
5022   done
5023   IFS="$ac_save_IFS"
5024
5025 fi
5026   if test "${ac_cv_path_install+set}" = set; then
5027     INSTALL="$ac_cv_path_install"
5028   else
5029     # As a last resort, use the slow shell script.  We don't cache a
5030     # path for INSTALL within a source directory, because that will
5031     # break other packages using the cache if that directory is
5032     # removed, or if the path is relative.
5033     INSTALL="$ac_install_sh"
5034   fi
5035 fi
5036 echo "$as_me:$LINENO: result: $INSTALL" >&5
5037 echo "${ECHO_T}$INSTALL" >&6
5038
5039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5040 # It thinks the first close brace ends the variable substitution.
5041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5042
5043 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5044
5045
5046 # See if cmp has --ignore-initial.
5047 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5048 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5049 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5050   echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052    echo abfoo >t1
5053   echo cdfoo >t2
5054   gcc_cv_prog_cmp_skip=slowcompare
5055   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5056     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5057       :
5058     else
5059       gcc_cv_prog_cmp_skip=gnucompare
5060     fi
5061   fi
5062   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5063     if cmp t1 t2 2 2 > /dev/null 2>&1; then
5064       if cmp t1 t2 1 1 > /dev/null 2>&1; then
5065         :
5066       else
5067         gcc_cv_prog_cmp_skip=fastcompare
5068       fi
5069     fi
5070   fi
5071   rm t1 t2
5072
5073 fi
5074 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5075 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5076 make_compare_target=$gcc_cv_prog_cmp_skip
5077
5078
5079
5080 # See if we have the mktemp command.
5081 # Extract the first word of "mktemp", so it can be a program name with args.
5082 set dummy mktemp; ac_word=$2
5083 echo "$as_me:$LINENO: checking for $ac_word" >&5
5084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5085 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088   if test -n "$have_mktemp_command"; then
5089   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094   IFS=$as_save_IFS
5095   test -z "$as_dir" && as_dir=.
5096   for ac_exec_ext in '' $ac_executable_extensions; do
5097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098     ac_cv_prog_have_mktemp_command="yes"
5099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100     break 2
5101   fi
5102 done
5103 done
5104
5105   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5106 fi
5107 fi
5108 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5109 if test -n "$have_mktemp_command"; then
5110   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5111 echo "${ECHO_T}$have_mktemp_command" >&6
5112 else
5113   echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5115 fi
5116
5117
5118 # Do we have a single-tree copy of texinfo?
5119 if test -f $srcdir/../texinfo/Makefile.in; then
5120   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5121   gcc_cv_prog_makeinfo_modern=yes
5122   echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5123 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5124 else
5125   # See if makeinfo has been installed and is modern enough
5126   # that we can use it.
5127   # Extract the first word of "makeinfo", so it can be a program name with args.
5128 set dummy makeinfo; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   if test -n "$MAKEINFO"; then
5135   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142   for ac_exec_ext in '' $ac_executable_extensions; do
5143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144     ac_cv_prog_MAKEINFO="makeinfo"
5145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149 done
5150
5151 fi
5152 fi
5153 MAKEINFO=$ac_cv_prog_MAKEINFO
5154 if test -n "$MAKEINFO"; then
5155   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5156 echo "${ECHO_T}$MAKEINFO" >&6
5157 else
5158   echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5160 fi
5161
5162 if test -n "$MAKEINFO"; then
5163   # Found it, now check the version.
5164   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5165 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5166 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5167   echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169     ac_prog_version=`$MAKEINFO --version 2>&1 |
5170                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5171   echo "configure:5171: version of makeinfo is $ac_prog_version" >&5
5172   case $ac_prog_version in
5173     '')     gcc_cv_prog_makeinfo_modern=no;;
5174     4.[2-9]*)
5175             gcc_cv_prog_makeinfo_modern=yes;;
5176     *)      gcc_cv_prog_makeinfo_modern=no;;
5177   esac
5178
5179 fi
5180 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5181 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5182 else
5183   gcc_cv_prog_makeinfo_modern=no
5184 fi
5185
5186 fi
5187
5188 if test $gcc_cv_prog_makeinfo_modern = no; then
5189   { echo "$as_me:$LINENO: WARNING:
5190 *** Makeinfo is missing or too old.
5191 *** Info documentation will not be built." >&5
5192 echo "$as_me: WARNING:
5193 *** Makeinfo is missing or too old.
5194 *** Info documentation will not be built." >&2;}
5195   BUILD_INFO=
5196 else
5197   BUILD_INFO=info
5198 fi
5199
5200 # Is pod2man recent enough to regenerate manpages?
5201 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5202 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5203 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5204   echo "$as_me:$LINENO: result: yes" >&5
5205 echo "${ECHO_T}yes" >&6
5206   GENERATED_MANPAGES=generated-manpages
5207 else
5208   echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5210   GENERATED_MANPAGES=
5211 fi
5212
5213 # How about lex?
5214 if test -f $srcdir/../flex/skel.c; then
5215   FLEX='$(objdir)/../flex/flex'
5216 else
5217   # Extract the first word of "flex", so it can be a program name with args.
5218 set dummy flex; ac_word=$2
5219 echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221 if test "${ac_cv_prog_FLEX+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   if test -n "$FLEX"; then
5225   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232   for ac_exec_ext in '' $ac_executable_extensions; do
5233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234     ac_cv_prog_FLEX="flex"
5235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237   fi
5238 done
5239 done
5240
5241   test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5242 fi
5243 fi
5244 FLEX=$ac_cv_prog_FLEX
5245 if test -n "$FLEX"; then
5246   echo "$as_me:$LINENO: result: $FLEX" >&5
5247 echo "${ECHO_T}$FLEX" >&6
5248 else
5249   echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5251 fi
5252
5253 fi
5254
5255 # Bison?
5256 # The -L switch is so bison can find its skeleton file.
5257 if test -f $srcdir/../bison/bison.simple; then
5258   BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5259 else
5260   # Extract the first word of "bison", so it can be a program name with args.
5261 set dummy bison; ac_word=$2
5262 echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5264 if test "${ac_cv_prog_BISON+set}" = set; then
5265   echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267   if test -n "$BISON"; then
5268   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275   for ac_exec_ext in '' $ac_executable_extensions; do
5276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277     ac_cv_prog_BISON="bison"
5278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282 done
5283
5284   test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5285 fi
5286 fi
5287 BISON=$ac_cv_prog_BISON
5288 if test -n "$BISON"; then
5289   echo "$as_me:$LINENO: result: $BISON" >&5
5290 echo "${ECHO_T}$BISON" >&6
5291 else
5292   echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5294 fi
5295
5296 fi
5297
5298 # --------------------
5299 # Checks for C headers
5300 # --------------------
5301
5302 echo "$as_me:$LINENO: checking for GNU C library" >&5
5303 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5304 if test "${gcc_cv_glibc+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h.  */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h.  */
5313 #include <features.h>
5314 int
5315 main ()
5316 {
5317
5318 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5319 #error Not a GNU C library system
5320 #endif
5321   ;
5322   return 0;
5323 }
5324 _ACEOF
5325 rm -f conftest.$ac_objext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5327   (eval $ac_compile) 2>conftest.er1
5328   ac_status=$?
5329   grep -v '^ *+' conftest.er1 >conftest.err
5330   rm -f conftest.er1
5331   cat conftest.err >&5
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } &&
5334          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336   (eval $ac_try) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); }; } &&
5340          { ac_try='test -s conftest.$ac_objext'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; }; then
5346   gcc_cv_glibc=yes
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 gcc_cv_glibc=no
5352 fi
5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354 fi
5355
5356 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5357 echo "${ECHO_T}$gcc_cv_glibc" >&6
5358 if test $gcc_cv_glibc = yes; then
5359
5360 cat >>confdefs.h <<\_ACEOF
5361 #define _GNU_SOURCE 1
5362 _ACEOF
5363
5364 fi
5365
5366 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5367 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5368 if test "${ac_cv_header_stdc+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h.  */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h.  */
5377 #include <stdlib.h>
5378 #include <stdarg.h>
5379 #include <string.h>
5380 #include <float.h>
5381
5382 int
5383 main ()
5384 {
5385
5386   ;
5387   return 0;
5388 }
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392   (eval $ac_compile) 2>conftest.er1
5393   ac_status=$?
5394   grep -v '^ *+' conftest.er1 >conftest.err
5395   rm -f conftest.er1
5396   cat conftest.err >&5
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } &&
5399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401   (eval $ac_try) 2>&5
5402   ac_status=$?
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); }; } &&
5405          { ac_try='test -s conftest.$ac_objext'
5406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407   (eval $ac_try) 2>&5
5408   ac_status=$?
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); }; }; then
5411   ac_cv_header_stdc=yes
5412 else
5413   echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416 ac_cv_header_stdc=no
5417 fi
5418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419
5420 if test $ac_cv_header_stdc = yes; then
5421   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5422   cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h.  */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h.  */
5428 #include <string.h>
5429
5430 _ACEOF
5431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5432   $EGREP "memchr" >/dev/null 2>&1; then
5433   :
5434 else
5435   ac_cv_header_stdc=no
5436 fi
5437 rm -f conftest*
5438
5439 fi
5440
5441 if test $ac_cv_header_stdc = yes; then
5442   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5443   cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h.  */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h.  */
5449 #include <stdlib.h>
5450
5451 _ACEOF
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453   $EGREP "free" >/dev/null 2>&1; then
5454   :
5455 else
5456   ac_cv_header_stdc=no
5457 fi
5458 rm -f conftest*
5459
5460 fi
5461
5462 if test $ac_cv_header_stdc = yes; then
5463   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464   if test "$cross_compiling" = yes; then
5465   :
5466 else
5467   cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473 #include <ctype.h>
5474 #if ((' ' & 0x0FF) == 0x020)
5475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5477 #else
5478 # define ISLOWER(c) \
5479                    (('a' <= (c) && (c) <= 'i') \
5480                      || ('j' <= (c) && (c) <= 'r') \
5481                      || ('s' <= (c) && (c) <= 'z'))
5482 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5483 #endif
5484
5485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5486 int
5487 main ()
5488 {
5489   int i;
5490   for (i = 0; i < 256; i++)
5491     if (XOR (islower (i), ISLOWER (i))
5492         || toupper (i) != TOUPPER (i))
5493       exit(2);
5494   exit (0);
5495 }
5496 _ACEOF
5497 rm -f conftest$ac_exeext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499   (eval $ac_link) 2>&5
5500   ac_status=$?
5501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504   (eval $ac_try) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; }; then
5508   :
5509 else
5510   echo "$as_me: program exited with status $ac_status" >&5
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5513
5514 ( exit $ac_status )
5515 ac_cv_header_stdc=no
5516 fi
5517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5518 fi
5519 fi
5520 fi
5521 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5522 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5523 if test $ac_cv_header_stdc = yes; then
5524
5525 cat >>confdefs.h <<\_ACEOF
5526 #define STDC_HEADERS 1
5527 _ACEOF
5528
5529 fi
5530
5531 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5532 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5533 if test "${ac_cv_header_time+set}" = set; then
5534   echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536   cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h.  */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h.  */
5542 #include <sys/types.h>
5543 #include <sys/time.h>
5544 #include <time.h>
5545
5546 int
5547 main ()
5548 {
5549 if ((struct tm *) 0)
5550 return 0;
5551   ;
5552   return 0;
5553 }
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557   (eval $ac_compile) 2>conftest.er1
5558   ac_status=$?
5559   grep -v '^ *+' conftest.er1 >conftest.err
5560   rm -f conftest.er1
5561   cat conftest.err >&5
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); } &&
5564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566   (eval $ac_try) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); }; } &&
5570          { ac_try='test -s conftest.$ac_objext'
5571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572   (eval $ac_try) 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); }; }; then
5576   ac_cv_header_time=yes
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581 ac_cv_header_time=no
5582 fi
5583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5584 fi
5585 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5586 echo "${ECHO_T}$ac_cv_header_time" >&6
5587 if test $ac_cv_header_time = yes; then
5588
5589 cat >>confdefs.h <<\_ACEOF
5590 #define TIME_WITH_SYS_TIME 1
5591 _ACEOF
5592
5593 fi
5594
5595 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5596 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5597 if test "${ac_cv_header_stdbool_h+set}" = set; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h.  */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h.  */
5606 #include <stdbool.h>
5607 int
5608 main ()
5609 {
5610 bool foo = false;
5611   ;
5612   return 0;
5613 }
5614 _ACEOF
5615 rm -f conftest.$ac_objext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5617   (eval $ac_compile) 2>conftest.er1
5618   ac_status=$?
5619   grep -v '^ *+' conftest.er1 >conftest.err
5620   rm -f conftest.er1
5621   cat conftest.err >&5
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); } &&
5624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626   (eval $ac_try) 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }; } &&
5630          { ac_try='test -s conftest.$ac_objext'
5631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632   (eval $ac_try) 2>&5
5633   ac_status=$?
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); }; }; then
5636   ac_cv_header_stdbool_h=yes
5637 else
5638   echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641 ac_cv_header_stdbool_h=no
5642 fi
5643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5644 fi
5645 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5646 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5647 if test $ac_cv_header_stdbool_h = yes; then
5648
5649 cat >>confdefs.h <<\_ACEOF
5650 #define HAVE_STDBOOL_H 1
5651 _ACEOF
5652
5653 fi
5654
5655 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5656 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5657 if test "${gcc_cv_header_string+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h.  */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h.  */
5666 #include <string.h>
5667 #include <strings.h>
5668 int
5669 main ()
5670 {
5671
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678   (eval $ac_compile) 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } &&
5685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687   (eval $ac_try) 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); }; } &&
5691          { ac_try='test -s conftest.$ac_objext'
5692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693   (eval $ac_try) 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }; }; then
5697   gcc_cv_header_string=yes
5698 else
5699   echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702 gcc_cv_header_string=no
5703 fi
5704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5705 fi
5706 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5707 echo "${ECHO_T}$gcc_cv_header_string" >&6
5708 if test $gcc_cv_header_string = yes; then
5709
5710 cat >>confdefs.h <<\_ACEOF
5711 #define STRING_WITH_STRINGS 1
5712 _ACEOF
5713
5714 fi
5715
5716 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5717 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5718 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   cat >conftest.$ac_ext <<_ACEOF
5722 /* confdefs.h.  */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h.  */
5727 #include <sys/types.h>
5728 #include <sys/wait.h>
5729 #ifndef WEXITSTATUS
5730 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5731 #endif
5732 #ifndef WIFEXITED
5733 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5734 #endif
5735
5736 int
5737 main ()
5738 {
5739   int s;
5740   wait (&s);
5741   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5742   ;
5743   return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748   (eval $ac_compile) 2>conftest.er1
5749   ac_status=$?
5750   grep -v '^ *+' conftest.er1 >conftest.err
5751   rm -f conftest.er1
5752   cat conftest.err >&5
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); } &&
5755          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757   (eval $ac_try) 2>&5
5758   ac_status=$?
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); }; } &&
5761          { ac_try='test -s conftest.$ac_objext'
5762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763   (eval $ac_try) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; }; then
5767   ac_cv_header_sys_wait_h=yes
5768 else
5769   echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5771
5772 ac_cv_header_sys_wait_h=no
5773 fi
5774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5775 fi
5776 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5777 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5778 if test $ac_cv_header_sys_wait_h = yes; then
5779
5780 cat >>confdefs.h <<\_ACEOF
5781 #define HAVE_SYS_WAIT_H 1
5782 _ACEOF
5783
5784 fi
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5808                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5809                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5810                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5811 do
5812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5814   echo "$as_me:$LINENO: checking for $ac_header" >&5
5815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 fi
5819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5821 else
5822   # Is the header compilable?
5823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h.  */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h.  */
5831 $ac_includes_default
5832 #include <$ac_header>
5833 _ACEOF
5834 rm -f conftest.$ac_objext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836   (eval $ac_compile) 2>conftest.er1
5837   ac_status=$?
5838   grep -v '^ *+' conftest.er1 >conftest.err
5839   rm -f conftest.er1
5840   cat conftest.err >&5
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); } &&
5843          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845   (eval $ac_try) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; } &&
5849          { ac_try='test -s conftest.$ac_objext'
5850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851   (eval $ac_try) 2>&5
5852   ac_status=$?
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); }; }; then
5855   ac_header_compiler=yes
5856 else
5857   echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 ac_header_compiler=no
5861 fi
5862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5864 echo "${ECHO_T}$ac_header_compiler" >&6
5865
5866 # Is the header present?
5867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h.  */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h.  */
5875 #include <$ac_header>
5876 _ACEOF
5877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5879   ac_status=$?
5880   grep -v '^ *+' conftest.er1 >conftest.err
5881   rm -f conftest.er1
5882   cat conftest.err >&5
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } >/dev/null; then
5885   if test -s conftest.err; then
5886     ac_cpp_err=$ac_c_preproc_warn_flag
5887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5888   else
5889     ac_cpp_err=
5890   fi
5891 else
5892   ac_cpp_err=yes
5893 fi
5894 if test -z "$ac_cpp_err"; then
5895   ac_header_preproc=yes
5896 else
5897   echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900   ac_header_preproc=no
5901 fi
5902 rm -f conftest.err conftest.$ac_ext
5903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5904 echo "${ECHO_T}$ac_header_preproc" >&6
5905
5906 # So?  What about this header?
5907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5908   yes:no: )
5909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5913     ac_header_preproc=yes
5914     ;;
5915   no:yes:* )
5916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5928     (
5929       cat <<\_ASBOX
5930 ## ------------------------------------------ ##
5931 ## Report this to the AC_PACKAGE_NAME lists.  ##
5932 ## ------------------------------------------ ##
5933 _ASBOX
5934     ) |
5935       sed "s/^/$as_me: WARNING:     /" >&2
5936     ;;
5937 esac
5938 echo "$as_me:$LINENO: checking for $ac_header" >&5
5939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5941   echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943   eval "$as_ac_Header=\$ac_header_preproc"
5944 fi
5945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5947
5948 fi
5949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5950   cat >>confdefs.h <<_ACEOF
5951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5952 _ACEOF
5953
5954 fi
5955
5956 done
5957
5958
5959 # Check for thread headers.
5960 if test "${ac_cv_header_thread_h+set}" = set; then
5961   echo "$as_me:$LINENO: checking for thread.h" >&5
5962 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5963 if test "${ac_cv_header_thread_h+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 fi
5966 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5967 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5968 else
5969   # Is the header compilable?
5970 echo "$as_me:$LINENO: checking thread.h usability" >&5
5971 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978 $ac_includes_default
5979 #include <thread.h>
5980 _ACEOF
5981 rm -f conftest.$ac_objext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983   (eval $ac_compile) 2>conftest.er1
5984   ac_status=$?
5985   grep -v '^ *+' conftest.er1 >conftest.err
5986   rm -f conftest.er1
5987   cat conftest.err >&5
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); } &&
5990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992   (eval $ac_try) 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); }; } &&
5996          { ac_try='test -s conftest.$ac_objext'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; }; then
6002   ac_header_compiler=yes
6003 else
6004   echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 ac_header_compiler=no
6008 fi
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6011 echo "${ECHO_T}$ac_header_compiler" >&6
6012
6013 # Is the header present?
6014 echo "$as_me:$LINENO: checking thread.h presence" >&5
6015 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022 #include <thread.h>
6023 _ACEOF
6024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6026   ac_status=$?
6027   grep -v '^ *+' conftest.er1 >conftest.err
6028   rm -f conftest.er1
6029   cat conftest.err >&5
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } >/dev/null; then
6032   if test -s conftest.err; then
6033     ac_cpp_err=$ac_c_preproc_warn_flag
6034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6035   else
6036     ac_cpp_err=
6037   fi
6038 else
6039   ac_cpp_err=yes
6040 fi
6041 if test -z "$ac_cpp_err"; then
6042   ac_header_preproc=yes
6043 else
6044   echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047   ac_header_preproc=no
6048 fi
6049 rm -f conftest.err conftest.$ac_ext
6050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6051 echo "${ECHO_T}$ac_header_preproc" >&6
6052
6053 # So?  What about this header?
6054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6055   yes:no: )
6056     { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6057 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6058     { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the compiler's result" >&5
6059 echo "$as_me: WARNING: thread.h: proceeding with the compiler's result" >&2;}
6060     ac_header_preproc=yes
6061     ;;
6062   no:yes:* )
6063     { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
6064 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
6065     { echo "$as_me:$LINENO: WARNING: thread.h:     check for missing prerequisite headers?" >&5
6066 echo "$as_me: WARNING: thread.h:     check for missing prerequisite headers?" >&2;}
6067     { echo "$as_me:$LINENO: WARNING: thread.h: see the Autoconf documentation" >&5
6068 echo "$as_me: WARNING: thread.h: see the Autoconf documentation" >&2;}
6069     { echo "$as_me:$LINENO: WARNING: thread.h:     section \"Present But Cannot Be Compiled\"" >&5
6070 echo "$as_me: WARNING: thread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6071     { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
6072 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
6073     { echo "$as_me:$LINENO: WARNING: thread.h: in the future, the compiler will take precedence" >&5
6074 echo "$as_me: WARNING: thread.h: in the future, the compiler will take precedence" >&2;}
6075     (
6076       cat <<\_ASBOX
6077 ## ------------------------------------------ ##
6078 ## Report this to the AC_PACKAGE_NAME lists.  ##
6079 ## ------------------------------------------ ##
6080 _ASBOX
6081     ) |
6082       sed "s/^/$as_me: WARNING:     /" >&2
6083     ;;
6084 esac
6085 echo "$as_me:$LINENO: checking for thread.h" >&5
6086 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6087 if test "${ac_cv_header_thread_h+set}" = set; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   ac_cv_header_thread_h=$ac_header_preproc
6091 fi
6092 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6093 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6094
6095 fi
6096 if test $ac_cv_header_thread_h = yes; then
6097   have_thread_h=yes
6098 else
6099   have_thread_h=
6100 fi
6101
6102
6103 if test "${ac_cv_header_pthread_h+set}" = set; then
6104   echo "$as_me:$LINENO: checking for pthread.h" >&5
6105 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6106 if test "${ac_cv_header_pthread_h+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 fi
6109 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6110 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6111 else
6112   # Is the header compilable?
6113 echo "$as_me:$LINENO: checking pthread.h usability" >&5
6114 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121 $ac_includes_default
6122 #include <pthread.h>
6123 _ACEOF
6124 rm -f conftest.$ac_objext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126   (eval $ac_compile) 2>conftest.er1
6127   ac_status=$?
6128   grep -v '^ *+' conftest.er1 >conftest.err
6129   rm -f conftest.er1
6130   cat conftest.err >&5
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); } &&
6133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; } &&
6139          { ac_try='test -s conftest.$ac_objext'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; }; then
6145   ac_header_compiler=yes
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 ac_header_compiler=no
6151 fi
6152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6154 echo "${ECHO_T}$ac_header_compiler" >&6
6155
6156 # Is the header present?
6157 echo "$as_me:$LINENO: checking pthread.h presence" >&5
6158 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h.  */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h.  */
6165 #include <pthread.h>
6166 _ACEOF
6167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } >/dev/null; then
6175   if test -s conftest.err; then
6176     ac_cpp_err=$ac_c_preproc_warn_flag
6177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6178   else
6179     ac_cpp_err=
6180   fi
6181 else
6182   ac_cpp_err=yes
6183 fi
6184 if test -z "$ac_cpp_err"; then
6185   ac_header_preproc=yes
6186 else
6187   echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190   ac_header_preproc=no
6191 fi
6192 rm -f conftest.err conftest.$ac_ext
6193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6194 echo "${ECHO_T}$ac_header_preproc" >&6
6195
6196 # So?  What about this header?
6197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6198   yes:no: )
6199     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6200 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6201     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
6202 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
6203     ac_header_preproc=yes
6204     ;;
6205   no:yes:* )
6206     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
6207 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
6208     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
6209 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
6210     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
6211 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
6212     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
6213 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6214     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
6215 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
6216     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
6217 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
6218     (
6219       cat <<\_ASBOX
6220 ## ------------------------------------------ ##
6221 ## Report this to the AC_PACKAGE_NAME lists.  ##
6222 ## ------------------------------------------ ##
6223 _ASBOX
6224     ) |
6225       sed "s/^/$as_me: WARNING:     /" >&2
6226     ;;
6227 esac
6228 echo "$as_me:$LINENO: checking for pthread.h" >&5
6229 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6230 if test "${ac_cv_header_pthread_h+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   ac_cv_header_pthread_h=$ac_header_preproc
6234 fi
6235 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6236 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6237
6238 fi
6239 if test $ac_cv_header_pthread_h = yes; then
6240   have_pthread_h=yes
6241 else
6242   have_pthread_h=
6243 fi
6244
6245
6246
6247 # These tests can't be done till we know if we have limits.h.
6248 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6249 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6250 if test "${gcc_cv_decl_char_bit+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h.  */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h.  */
6259 #ifdef HAVE_LIMITS_H
6260 #include <limits.h>
6261 #endif
6262 #ifdef CHAR_BIT
6263 found
6264 #endif
6265 _ACEOF
6266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6267   $EGREP "found" >/dev/null 2>&1; then
6268   gcc_cv_decl_char_bit=yes
6269 else
6270   gcc_cv_decl_char_bit=no
6271 fi
6272 rm -f conftest*
6273
6274
6275 fi
6276 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6277 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6278 if test $gcc_cv_decl_char_bit = no; then
6279   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6280 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6281 if test "${gcc_cv_c_nbby+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   i=8
6285  gcc_cv_c_nbby=
6286  while test $i -lt 65; do
6287    cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293
6294 int
6295 main ()
6296 {
6297 switch(0) {
6298   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6299   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6300   ; }
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307   (eval $ac_compile) 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } &&
6314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316   (eval $ac_try) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }; } &&
6320          { ac_try='test -s conftest.$ac_objext'
6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322   (eval $ac_try) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; }; then
6326   gcc_cv_c_nbby=$i; break
6327 else
6328   echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6330
6331 fi
6332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6333    i=`expr $i + 1`
6334  done
6335  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6336
6337 fi
6338 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6339 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6340 if test $gcc_cv_c_nbby = failed; then
6341   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6342 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6343    { (exit 1); exit 1; }; }
6344 else
6345
6346 cat >>confdefs.h <<_ACEOF
6347 #define CHAR_BIT $gcc_cv_c_nbby
6348 _ACEOF
6349
6350 fi
6351 fi
6352 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6353 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6354 if test "${ac_cv_c_bigendian+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357   ac_cv_c_bigendian=unknown
6358 # See if sys/param.h defines the BYTE_ORDER macro.
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h.  */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h.  */
6365 #include <sys/types.h>
6366 #include <sys/param.h>
6367 int
6368 main ()
6369 {
6370
6371 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6372  bogus endian macros
6373 #endif
6374   ;
6375   return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380   (eval $ac_compile) 2>conftest.er1
6381   ac_status=$?
6382   grep -v '^ *+' conftest.er1 >conftest.err
6383   rm -f conftest.er1
6384   cat conftest.err >&5
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); } &&
6387          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389   (eval $ac_try) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); }; } &&
6393          { ac_try='test -s conftest.$ac_objext'
6394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395   (eval $ac_try) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); }; }; then
6399   # It does; now see whether it defined to BIG_ENDIAN or not.
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406 #include <sys/types.h>
6407 #include <sys/param.h>
6408 int
6409 main ()
6410 {
6411
6412 #if BYTE_ORDER != BIG_ENDIAN
6413  not big endian
6414 #endif
6415   ;
6416   return 0;
6417 }
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421   (eval $ac_compile) 2>conftest.er1
6422   ac_status=$?
6423   grep -v '^ *+' conftest.er1 >conftest.err
6424   rm -f conftest.er1
6425   cat conftest.err >&5
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); } &&
6428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430   (eval $ac_try) 2>&5
6431   ac_status=$?
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); }; } &&
6434          { ac_try='test -s conftest.$ac_objext'
6435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436   (eval $ac_try) 2>&5
6437   ac_status=$?
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); }; }; then
6440   ac_cv_c_bigendian=yes
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ac_cv_c_bigendian=no
6446 fi
6447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448 else
6449   echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 fi
6453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6454 if test $ac_cv_c_bigendian = unknown; then
6455 if test "$cross_compiling" = yes; then
6456    echo $ac_n "cross-compiling... " 2>&6
6457 else
6458   cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464 main () {
6465   /* Are we little or big endian?  From Harbison&Steele.  */
6466   union
6467   {
6468     long l;
6469     char c[sizeof (long)];
6470   } u;
6471   u.l = 1;
6472   exit (u.c[sizeof (long) - 1] == 1);
6473 }
6474 _ACEOF
6475 rm -f conftest$ac_exeext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6477   (eval $ac_link) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482   (eval $ac_try) 2>&5
6483   ac_status=$?
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); }; }; then
6486   ac_cv_c_bigendian=no
6487 else
6488   echo "$as_me: program exited with status $ac_status" >&5
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 ( exit $ac_status )
6493 ac_cv_c_bigendian=yes
6494 fi
6495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6496 fi
6497 fi
6498 fi
6499 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6500 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6501 if test $ac_cv_c_bigendian = unknown; then
6502 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6503 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6504
6505 cat >conftest.c <<EOF
6506 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6507 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6508 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6509 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6510 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6511 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6512 int main() { _ascii (); _ebcdic (); return 0; }
6513 EOF
6514  if test -f conftest.c ; then
6515      if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6516         if test `grep -l BIGenDianSyS conftest.o` ; then
6517            echo $ac_n ' big endian probe OK, ' 1>&6
6518            ac_cv_c_bigendian=yes
6519         fi
6520         if test `grep -l LiTTleEnDian conftest.o` ; then
6521            echo $ac_n ' little endian probe OK, ' 1>&6
6522            if test $ac_cv_c_bigendian = yes ; then
6523             ac_cv_c_bigendian=unknown;
6524            else
6525             ac_cv_c_bigendian=no
6526            fi
6527         fi
6528         echo $ac_n 'guessing bigendian ...  ' >&6
6529      fi
6530   fi
6531 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6532 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6533 fi
6534 if test $ac_cv_c_bigendian = yes; then
6535
6536 cat >>confdefs.h <<\_ACEOF
6537 #define WORDS_BIGENDIAN 1
6538 _ACEOF
6539
6540
6541 cat >>confdefs.h <<\_ACEOF
6542 #define HOST_WORDS_BIG_ENDIAN 1
6543 _ACEOF
6544
6545   BYTEORDER=4321
6546 else
6547   BYTEORDER=1234
6548 fi
6549
6550 cat >>confdefs.h <<_ACEOF
6551 #define BYTEORDER $BYTEORDER
6552 _ACEOF
6553
6554 if test $ac_cv_c_bigendian = unknown; then
6555   { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6556 echo "$as_me: error: unknown endianess - sorry" >&2;}
6557    { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6558 fi
6559
6560
6561 # --------
6562 # UNSORTED
6563 # --------
6564
6565 # Stage specific cflags for build.
6566 stage1_cflags=
6567 case $build in
6568 vax-*-*)
6569   if test x$GCC = xyes
6570   then
6571     stage1_cflags="-Wa,-J"
6572   else
6573     stage1_cflags="-J"
6574   fi
6575   ;;
6576 powerpc-*-darwin*)
6577   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6578   # sources; use -no-cpp-precomp to get to GNU cpp.
6579   # Apple's GCC has bugs in designated initializer handling, so disable
6580   # that too.
6581   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6582   ;;
6583 esac
6584
6585
6586 # These libraries may be used by collect2.
6587 # We may need a special search path to get them linked.
6588 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6589 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6590 if test "${gcc_cv_collect2_libs+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593   save_LIBS="$LIBS"
6594 for libs in '' -lld -lmld \
6595                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6596                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6597 do
6598         LIBS="$libs"
6599         cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h.  */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h.  */
6605
6606 /* Override any gcc2 internal prototype to avoid an error.  */
6607 #ifdef __cplusplus
6608 extern "C"
6609 #endif
6610 /* We use char because int might match the return type of a gcc2
6611    builtin and then its argument prototype would still apply.  */
6612 char ldopen ();
6613 int
6614 main ()
6615 {
6616 ldopen ();
6617   ;
6618   return 0;
6619 }
6620 _ACEOF
6621 rm -f conftest.$ac_objext conftest$ac_exeext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623   (eval $ac_link) 2>conftest.er1
6624   ac_status=$?
6625   grep -v '^ *+' conftest.er1 >conftest.err
6626   rm -f conftest.er1
6627   cat conftest.err >&5
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); } &&
6630          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632   (eval $ac_try) 2>&5
6633   ac_status=$?
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); }; } &&
6636          { ac_try='test -s conftest$ac_exeext'
6637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638   (eval $ac_try) 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; }; then
6642   gcc_cv_collect2_libs="$libs"; break
6643 else
6644   echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647 fi
6648 rm -f conftest.err conftest.$ac_objext \
6649       conftest$ac_exeext conftest.$ac_ext
6650 done
6651 LIBS="$save_LIBS"
6652 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6653 fi
6654 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6655 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6656 case $gcc_cv_collect2_libs in
6657         "none required")        ;;
6658         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6659 esac
6660
6661
6662 # When building Ada code on Alpha, we need exc_resume which is usually in
6663 # -lexc.  So test for it.
6664 save_LIBS="$LIBS"
6665 LIBS=
6666 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6667 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6668 if test "${ac_cv_search_exc_resume+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   ac_func_search_save_LIBS=$LIBS
6672 ac_cv_search_exc_resume=no
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h.  */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h.  */
6679
6680 /* Override any gcc2 internal prototype to avoid an error.  */
6681 #ifdef __cplusplus
6682 extern "C"
6683 #endif
6684 /* We use char because int might match the return type of a gcc2
6685    builtin and then its argument prototype would still apply.  */
6686 char exc_resume ();
6687 int
6688 main ()
6689 {
6690 exc_resume ();
6691   ;
6692   return 0;
6693 }
6694 _ACEOF
6695 rm -f conftest.$ac_objext conftest$ac_exeext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6697   (eval $ac_link) 2>conftest.er1
6698   ac_status=$?
6699   grep -v '^ *+' conftest.er1 >conftest.err
6700   rm -f conftest.er1
6701   cat conftest.err >&5
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); } &&
6704          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706   (eval $ac_try) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); }; } &&
6710          { ac_try='test -s conftest$ac_exeext'
6711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712   (eval $ac_try) 2>&5
6713   ac_status=$?
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); }; }; then
6716   ac_cv_search_exc_resume="none required"
6717 else
6718   echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 fi
6722 rm -f conftest.err conftest.$ac_objext \
6723       conftest$ac_exeext conftest.$ac_ext
6724 if test "$ac_cv_search_exc_resume" = no; then
6725   for ac_lib in exc; do
6726     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6727     cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h.  */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h.  */
6733
6734 /* Override any gcc2 internal prototype to avoid an error.  */
6735 #ifdef __cplusplus
6736 extern "C"
6737 #endif
6738 /* We use char because int might match the return type of a gcc2
6739    builtin and then its argument prototype would still apply.  */
6740 char exc_resume ();
6741 int
6742 main ()
6743 {
6744 exc_resume ();
6745   ;
6746   return 0;
6747 }
6748 _ACEOF
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751   (eval $ac_link) 2>conftest.er1
6752   ac_status=$?
6753   grep -v '^ *+' conftest.er1 >conftest.err
6754   rm -f conftest.er1
6755   cat conftest.err >&5
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); } &&
6758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760   (eval $ac_try) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); }; } &&
6764          { ac_try='test -s conftest$ac_exeext'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; }; then
6770   ac_cv_search_exc_resume="-l$ac_lib"
6771 break
6772 else
6773   echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776 fi
6777 rm -f conftest.err conftest.$ac_objext \
6778       conftest$ac_exeext conftest.$ac_ext
6779   done
6780 fi
6781 LIBS=$ac_func_search_save_LIBS
6782 fi
6783 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6784 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6785 if test "$ac_cv_search_exc_resume" != no; then
6786   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6787
6788 fi
6789
6790 GNAT_LIBEXC="$LIBS"
6791 LIBS="$save_LIBS"
6792
6793
6794 # Some systems put ldexp and frexp in libm instead of libc; assume
6795 # they're both in the same place.  jcf-dump needs them.
6796 save_LIBS="$LIBS"
6797 LIBS=
6798 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6799 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6800 if test "${ac_cv_search_ldexp+set}" = set; then
6801   echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803   ac_func_search_save_LIBS=$LIBS
6804 ac_cv_search_ldexp=no
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811
6812 /* Override any gcc2 internal prototype to avoid an error.  */
6813 #ifdef __cplusplus
6814 extern "C"
6815 #endif
6816 /* We use char because int might match the return type of a gcc2
6817    builtin and then its argument prototype would still apply.  */
6818 char ldexp ();
6819 int
6820 main ()
6821 {
6822 ldexp ();
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 rm -f conftest.$ac_objext conftest$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829   (eval $ac_link) 2>conftest.er1
6830   ac_status=$?
6831   grep -v '^ *+' conftest.er1 >conftest.err
6832   rm -f conftest.er1
6833   cat conftest.err >&5
6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835   (exit $ac_status); } &&
6836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838   (eval $ac_try) 2>&5
6839   ac_status=$?
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); }; } &&
6842          { ac_try='test -s conftest$ac_exeext'
6843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844   (eval $ac_try) 2>&5
6845   ac_status=$?
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); }; }; then
6848   ac_cv_search_ldexp="none required"
6849 else
6850   echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 fi
6854 rm -f conftest.err conftest.$ac_objext \
6855       conftest$ac_exeext conftest.$ac_ext
6856 if test "$ac_cv_search_ldexp" = no; then
6857   for ac_lib in m; do
6858     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6859     cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h.  */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h.  */
6865
6866 /* Override any gcc2 internal prototype to avoid an error.  */
6867 #ifdef __cplusplus
6868 extern "C"
6869 #endif
6870 /* We use char because int might match the return type of a gcc2
6871    builtin and then its argument prototype would still apply.  */
6872 char ldexp ();
6873 int
6874 main ()
6875 {
6876 ldexp ();
6877   ;
6878   return 0;
6879 }
6880 _ACEOF
6881 rm -f conftest.$ac_objext conftest$ac_exeext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883   (eval $ac_link) 2>conftest.er1
6884   ac_status=$?
6885   grep -v '^ *+' conftest.er1 >conftest.err
6886   rm -f conftest.er1
6887   cat conftest.err >&5
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); } &&
6890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892   (eval $ac_try) 2>&5
6893   ac_status=$?
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); }; } &&
6896          { ac_try='test -s conftest$ac_exeext'
6897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898   (eval $ac_try) 2>&5
6899   ac_status=$?
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); }; }; then
6902   ac_cv_search_ldexp="-l$ac_lib"
6903 break
6904 else
6905   echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6907
6908 fi
6909 rm -f conftest.err conftest.$ac_objext \
6910       conftest$ac_exeext conftest.$ac_ext
6911   done
6912 fi
6913 LIBS=$ac_func_search_save_LIBS
6914 fi
6915 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6916 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6917 if test "$ac_cv_search_ldexp" != no; then
6918   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6919
6920 fi
6921
6922 LDEXP_LIB="$LIBS"
6923 LIBS="$save_LIBS"
6924
6925
6926 # Use <inttypes.h> only if it exists,
6927 # doesn't clash with <sys/types.h>, and declares intmax_t.
6928 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6929 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6930 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933   cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939 #include <sys/types.h>
6940 #include <inttypes.h>
6941 int
6942 main ()
6943 {
6944 intmax_t i = -1;
6945   ;
6946   return 0;
6947 }
6948 _ACEOF
6949 rm -f conftest.$ac_objext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951   (eval $ac_compile) 2>conftest.er1
6952   ac_status=$?
6953   grep -v '^ *+' conftest.er1 >conftest.err
6954   rm -f conftest.er1
6955   cat conftest.err >&5
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); } &&
6958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960   (eval $ac_try) 2>&5
6961   ac_status=$?
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); }; } &&
6964          { ac_try='test -s conftest.$ac_objext'
6965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966   (eval $ac_try) 2>&5
6967   ac_status=$?
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); }; }; then
6970   gcc_cv_header_inttypes_h=yes
6971 else
6972   echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6974
6975 gcc_cv_header_inttypes_h=no
6976 fi
6977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6978 fi
6979
6980 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6981 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6982 if test $gcc_cv_header_inttypes_h = yes; then
6983
6984 cat >>confdefs.h <<\_ACEOF
6985 #define HAVE_INTTYPES_H 1
6986 _ACEOF
6987
6988 fi
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
7017         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
7018         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
7019         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
7020         setlocale
7021 do
7022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7023 echo "$as_me:$LINENO: checking for $ac_func" >&5
7024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7025 if eval "test \"\${$as_ac_var+set}\" = set"; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h.  */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h.  */
7034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7036 #define $ac_func innocuous_$ac_func
7037
7038 /* System header to define __stub macros and hopefully few prototypes,
7039     which can conflict with char $ac_func (); below.
7040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7041     <limits.h> exists even on freestanding compilers.  */
7042
7043 #ifdef __STDC__
7044 # include <limits.h>
7045 #else
7046 # include <assert.h>
7047 #endif
7048
7049 #undef $ac_func
7050
7051 /* Override any gcc2 internal prototype to avoid an error.  */
7052 #ifdef __cplusplus
7053 extern "C"
7054 {
7055 #endif
7056 /* We use char because int might match the return type of a gcc2
7057    builtin and then its argument prototype would still apply.  */
7058 char $ac_func ();
7059 /* The GNU C library defines this for functions which it implements
7060     to always fail with ENOSYS.  Some functions are actually named
7061     something starting with __ and the normal name is an alias.  */
7062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7063 choke me
7064 #else
7065 char (*f) () = $ac_func;
7066 #endif
7067 #ifdef __cplusplus
7068 }
7069 #endif
7070
7071 int
7072 main ()
7073 {
7074 return f != $ac_func;
7075   ;
7076   return 0;
7077 }
7078 _ACEOF
7079 rm -f conftest.$ac_objext conftest$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081   (eval $ac_link) 2>conftest.er1
7082   ac_status=$?
7083   grep -v '^ *+' conftest.er1 >conftest.err
7084   rm -f conftest.er1
7085   cat conftest.err >&5
7086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087   (exit $ac_status); } &&
7088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090   (eval $ac_try) 2>&5
7091   ac_status=$?
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); }; } &&
7094          { ac_try='test -s conftest$ac_exeext'
7095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096   (eval $ac_try) 2>&5
7097   ac_status=$?
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); }; }; then
7100   eval "$as_ac_var=yes"
7101 else
7102   echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7104
7105 eval "$as_ac_var=no"
7106 fi
7107 rm -f conftest.err conftest.$ac_objext \
7108       conftest$ac_exeext conftest.$ac_ext
7109 fi
7110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7112 if test `eval echo '${'$as_ac_var'}'` = yes; then
7113   cat >>confdefs.h <<_ACEOF
7114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7115 _ACEOF
7116
7117 fi
7118 done
7119
7120
7121 if test x$ac_cv_func_mbstowcs = xyes; then
7122   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
7123 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
7124 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127       if test "$cross_compiling" = yes; then
7128   gcc_cv_func_mbstowcs_works=yes
7129 else
7130   cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h.  */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h.  */
7136 #include <stdlib.h>
7137 int main()
7138 {
7139   mbstowcs(0, "", 0);
7140   return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest$ac_exeext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7145   (eval $ac_link) 2>&5
7146   ac_status=$?
7147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150   (eval $ac_try) 2>&5
7151   ac_status=$?
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); }; }; then
7154   gcc_cv_func_mbstowcs_works=yes
7155 else
7156   echo "$as_me: program exited with status $ac_status" >&5
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7159
7160 ( exit $ac_status )
7161 gcc_cv_func_mbstowcs_works=no
7162 fi
7163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7164 fi
7165 fi
7166 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7167 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7168   if test x$gcc_cv_func_mbstowcs_works = xyes; then
7169
7170 cat >>confdefs.h <<\_ACEOF
7171 #define HAVE_WORKING_MBSTOWCS 1
7172 _ACEOF
7173
7174   fi
7175 fi
7176
7177 echo "$as_me:$LINENO: checking for ssize_t" >&5
7178 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7179 if test "${ac_cv_type_ssize_t+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h.  */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h.  */
7188 #include <sys/types.h>
7189 #if STDC_HEADERS
7190 #include <stdlib.h>
7191 #include <stddef.h>
7192 #endif
7193 _ACEOF
7194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7195   $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7196   ac_cv_type_ssize_t=yes
7197 else
7198   ac_cv_type_ssize_t=no
7199 fi
7200 rm -f conftest*
7201
7202 fi
7203 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7204 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7205 if test $ac_cv_type_ssize_t = no; then
7206
7207 cat >>confdefs.h <<\_ACEOF
7208 #define ssize_t int
7209 _ACEOF
7210
7211 fi
7212
7213
7214 # Try to determine the array type of the second argument of getgroups
7215 # for the target system (int or gid_t).
7216 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7217 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7218 if test "${ac_cv_type_uid_t+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h.  */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h.  */
7227 #include <sys/types.h>
7228
7229 _ACEOF
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231   $EGREP "uid_t" >/dev/null 2>&1; then
7232   ac_cv_type_uid_t=yes
7233 else
7234   ac_cv_type_uid_t=no
7235 fi
7236 rm -f conftest*
7237
7238 fi
7239 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7240 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7241 if test $ac_cv_type_uid_t = no; then
7242
7243 cat >>confdefs.h <<\_ACEOF
7244 #define uid_t int
7245 _ACEOF
7246
7247
7248 cat >>confdefs.h <<\_ACEOF
7249 #define gid_t int
7250 _ACEOF
7251
7252 fi
7253
7254 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7255 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7256 if test "${ac_cv_type_getgroups+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   if test "$cross_compiling" = yes; then
7260   ac_cv_type_getgroups=cross
7261 else
7262   cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h.  */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h.  */
7268 /* Thanks to Mike Rendell for this test.  */
7269 #include <sys/types.h>
7270 #define NGID 256
7271 #undef MAX
7272 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7273
7274 int
7275 main ()
7276 {
7277   gid_t gidset[NGID];
7278   int i, n;
7279   union { gid_t gval; long lval; }  val;
7280
7281   val.lval = -1;
7282   for (i = 0; i < NGID; i++)
7283     gidset[i] = val.gval;
7284   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7285                  gidset);
7286   /* Exit non-zero if getgroups seems to require an array of ints.  This
7287      happens when gid_t is short but getgroups modifies an array of ints.  */
7288   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7289 }
7290 _ACEOF
7291 rm -f conftest$ac_exeext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7293   (eval $ac_link) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298   (eval $ac_try) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); }; }; then
7302   ac_cv_type_getgroups=gid_t
7303 else
7304   echo "$as_me: program exited with status $ac_status" >&5
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 ( exit $ac_status )
7309 ac_cv_type_getgroups=int
7310 fi
7311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7312 fi
7313 if test $ac_cv_type_getgroups = cross; then
7314         cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h.  */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h.  */
7320 #include <unistd.h>
7321
7322 _ACEOF
7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7324   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7325   ac_cv_type_getgroups=gid_t
7326 else
7327   ac_cv_type_getgroups=int
7328 fi
7329 rm -f conftest*
7330
7331 fi
7332 fi
7333 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7334 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7335
7336 cat >>confdefs.h <<_ACEOF
7337 #define GETGROUPS_T $ac_cv_type_getgroups
7338 _ACEOF
7339
7340
7341 if test "${target}" = "${build}"; then
7342   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7343 else
7344   case "${target}" in
7345         # This condition may need some tweaking.  It should include all
7346         # targets where the array type of the second argument of getgroups
7347         # is int and the type of gid_t is not equivalent to int.
7348         *-*-sunos* | *-*-ultrix*)
7349                 TARGET_GETGROUPS_T=int
7350                 ;;
7351         *)
7352                 TARGET_GETGROUPS_T=gid_t
7353                 ;;
7354   esac
7355 fi
7356
7357
7358 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7359 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7360 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   if test "$cross_compiling" = yes; then
7364   gcc_cv_func_printf_ptr=no
7365 else
7366   cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h.  */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h.  */
7372 #include <stdio.h>
7373
7374 int main()
7375 {
7376   char buf[64];
7377   char *p = buf, *q = NULL;
7378   sprintf(buf, "%p", p);
7379   sscanf(buf, "%p", &q);
7380   return (p != q);
7381 }
7382 _ACEOF
7383 rm -f conftest$ac_exeext
7384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385   (eval $ac_link) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390   (eval $ac_try) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }; }; then
7394   gcc_cv_func_printf_ptr=yes
7395 else
7396   echo "$as_me: program exited with status $ac_status" >&5
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400 ( exit $ac_status )
7401 gcc_cv_func_printf_ptr=no
7402 fi
7403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7404 fi
7405 rm -f core core.* *.core
7406 fi
7407 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7408 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7409 if test $gcc_cv_func_printf_ptr = yes ; then
7410
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_PRINTF_PTR 1
7413 _ACEOF
7414
7415 fi
7416
7417 if test $ac_cv_header_sys_mman_h != yes \
7418  || test $ac_cv_func_mmap != yes; then
7419    gcc_cv_func_mmap_file=no
7420    gcc_cv_func_mmap_dev_zero=no
7421    gcc_cv_func_mmap_anon=no
7422 else
7423    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7424 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7425 if test "${gcc_cv_func_mmap_file+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   # Add a system to this blacklist if
7429    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7430    # memory area containing the same data that you'd get if you applied
7431    # read() to the same fd.  The only system known to have a problem here
7432    # is VMS, where text files have record structure.
7433    case "$host_os" in
7434      vms* | ultrix*)
7435         gcc_cv_func_mmap_file=no ;;
7436      *)
7437         gcc_cv_func_mmap_file=yes;;
7438    esac
7439 fi
7440 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7441 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7442    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7443 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7444 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   # Add a system to this blacklist if it has mmap() but /dev/zero
7448    # does not exist, or if mmapping /dev/zero does not give anonymous
7449    # zeroed pages with both the following properties:
7450    # 1. If you map N consecutive pages in with one call, and then
7451    #    unmap any subset of those pages, the pages that were not
7452    #    explicitly unmapped remain accessible.
7453    # 2. If you map two adjacent blocks of memory and then unmap them
7454    #    both at once, they must both go away.
7455    # Systems known to be in this category are Windows (all variants),
7456    # VMS, and Darwin.
7457    case "$host_os" in
7458      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7459         gcc_cv_func_mmap_dev_zero=no ;;
7460      *)
7461         gcc_cv_func_mmap_dev_zero=yes;;
7462    esac
7463 fi
7464 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7465 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7466
7467    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7468    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7469 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7470 if test "${gcc_cv_decl_map_anon+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   cat >conftest.$ac_ext <<_ACEOF
7474 /* confdefs.h.  */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h.  */
7479 #include <sys/types.h>
7480 #include <sys/mman.h>
7481 #include <unistd.h>
7482
7483 #ifndef MAP_ANONYMOUS
7484 #define MAP_ANONYMOUS MAP_ANON
7485 #endif
7486
7487 int
7488 main ()
7489 {
7490 int n = MAP_ANONYMOUS;
7491   ;
7492   return 0;
7493 }
7494 _ACEOF
7495 rm -f conftest.$ac_objext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497   (eval $ac_compile) 2>conftest.er1
7498   ac_status=$?
7499   grep -v '^ *+' conftest.er1 >conftest.err
7500   rm -f conftest.er1
7501   cat conftest.err >&5
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); } &&
7504          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506   (eval $ac_try) 2>&5
7507   ac_status=$?
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); }; } &&
7510          { ac_try='test -s conftest.$ac_objext'
7511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512   (eval $ac_try) 2>&5
7513   ac_status=$?
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); }; }; then
7516   gcc_cv_decl_map_anon=yes
7517 else
7518   echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7520
7521 gcc_cv_decl_map_anon=no
7522 fi
7523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7524 fi
7525 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7526 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7527
7528    if test $gcc_cv_decl_map_anon = no; then
7529      gcc_cv_func_mmap_anon=no
7530    else
7531      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7532 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7533 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7537    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7538    # doesn't give anonymous zeroed pages with the same properties listed
7539    # above for use of /dev/zero.
7540    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7541    case "$host_os" in
7542      vms* | cygwin* | pe | mingw* | sco* | udk* )
7543         gcc_cv_func_mmap_anon=no ;;
7544      *)
7545         gcc_cv_func_mmap_anon=yes;;
7546    esac
7547 fi
7548 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7549 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7550    fi
7551 fi
7552
7553 if test $gcc_cv_func_mmap_file = yes; then
7554
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_MMAP_FILE 1
7557 _ACEOF
7558
7559 fi
7560 if test $gcc_cv_func_mmap_dev_zero = yes; then
7561
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_MMAP_DEV_ZERO 1
7564 _ACEOF
7565
7566 fi
7567 if test $gcc_cv_func_mmap_anon = yes; then
7568
7569 cat >>confdefs.h <<\_ACEOF
7570 #define HAVE_MMAP_ANON 1
7571 _ACEOF
7572
7573 fi
7574
7575
7576 case "${host}" in
7577 *-*-*vms*)
7578   # Under VMS, vfork works very differently than on Unix. The standard test
7579   # won't work, and it isn't easily adaptable. It makes more sense to
7580   # just force it.
7581   ac_cv_func_vfork_works=yes
7582   ;;
7583 esac
7584 echo "$as_me:$LINENO: checking for pid_t" >&5
7585 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7586 if test "${ac_cv_type_pid_t+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h.  */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h.  */
7595 $ac_includes_default
7596 int
7597 main ()
7598 {
7599 if ((pid_t *) 0)
7600   return 0;
7601 if (sizeof (pid_t))
7602   return 0;
7603   ;
7604   return 0;
7605 }
7606 _ACEOF
7607 rm -f conftest.$ac_objext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7609   (eval $ac_compile) 2>conftest.er1
7610   ac_status=$?
7611   grep -v '^ *+' conftest.er1 >conftest.err
7612   rm -f conftest.er1
7613   cat conftest.err >&5
7614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615   (exit $ac_status); } &&
7616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618   (eval $ac_try) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); }; } &&
7622          { ac_try='test -s conftest.$ac_objext'
7623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624   (eval $ac_try) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; }; then
7628   ac_cv_type_pid_t=yes
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 ac_cv_type_pid_t=no
7634 fi
7635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7636 fi
7637 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7638 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7639 if test $ac_cv_type_pid_t = yes; then
7640   :
7641 else
7642
7643 cat >>confdefs.h <<_ACEOF
7644 #define pid_t int
7645 _ACEOF
7646
7647 fi
7648
7649
7650
7651 for ac_header in unistd.h vfork.h
7652 do
7653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655   echo "$as_me:$LINENO: checking for $ac_header" >&5
7656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 fi
7660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7662 else
7663   # Is the header compilable?
7664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h.  */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h.  */
7672 $ac_includes_default
7673 #include <$ac_header>
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677   (eval $ac_compile) 2>conftest.er1
7678   ac_status=$?
7679   grep -v '^ *+' conftest.er1 >conftest.err
7680   rm -f conftest.er1
7681   cat conftest.err >&5
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); } &&
7684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686   (eval $ac_try) 2>&5
7687   ac_status=$?
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); }; } &&
7690          { ac_try='test -s conftest.$ac_objext'
7691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696   ac_header_compiler=yes
7697 else
7698   echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 ac_header_compiler=no
7702 fi
7703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7705 echo "${ECHO_T}$ac_header_compiler" >&6
7706
7707 # Is the header present?
7708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7710 cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h.  */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h.  */
7716 #include <$ac_header>
7717 _ACEOF
7718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7720   ac_status=$?
7721   grep -v '^ *+' conftest.er1 >conftest.err
7722   rm -f conftest.er1
7723   cat conftest.err >&5
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); } >/dev/null; then
7726   if test -s conftest.err; then
7727     ac_cpp_err=$ac_c_preproc_warn_flag
7728     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7729   else
7730     ac_cpp_err=
7731   fi
7732 else
7733   ac_cpp_err=yes
7734 fi
7735 if test -z "$ac_cpp_err"; then
7736   ac_header_preproc=yes
7737 else
7738   echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7740
7741   ac_header_preproc=no
7742 fi
7743 rm -f conftest.err conftest.$ac_ext
7744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7745 echo "${ECHO_T}$ac_header_preproc" >&6
7746
7747 # So?  What about this header?
7748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7749   yes:no: )
7750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7754     ac_header_preproc=yes
7755     ;;
7756   no:yes:* )
7757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7769     (
7770       cat <<\_ASBOX
7771 ## ------------------------------------------ ##
7772 ## Report this to the AC_PACKAGE_NAME lists.  ##
7773 ## ------------------------------------------ ##
7774 _ASBOX
7775     ) |
7776       sed "s/^/$as_me: WARNING:     /" >&2
7777     ;;
7778 esac
7779 echo "$as_me:$LINENO: checking for $ac_header" >&5
7780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   eval "$as_ac_Header=\$ac_header_preproc"
7785 fi
7786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7788
7789 fi
7790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7791   cat >>confdefs.h <<_ACEOF
7792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7793 _ACEOF
7794
7795 fi
7796
7797 done
7798
7799
7800
7801 for ac_func in fork vfork
7802 do
7803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7804 echo "$as_me:$LINENO: checking for $ac_func" >&5
7805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_var+set}\" = set"; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809   cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h.  */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h.  */
7815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7817 #define $ac_func innocuous_$ac_func
7818
7819 /* System header to define __stub macros and hopefully few prototypes,
7820     which can conflict with char $ac_func (); below.
7821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7822     <limits.h> exists even on freestanding compilers.  */
7823
7824 #ifdef __STDC__
7825 # include <limits.h>
7826 #else
7827 # include <assert.h>
7828 #endif
7829
7830 #undef $ac_func
7831
7832 /* Override any gcc2 internal prototype to avoid an error.  */
7833 #ifdef __cplusplus
7834 extern "C"
7835 {
7836 #endif
7837 /* We use char because int might match the return type of a gcc2
7838    builtin and then its argument prototype would still apply.  */
7839 char $ac_func ();
7840 /* The GNU C library defines this for functions which it implements
7841     to always fail with ENOSYS.  Some functions are actually named
7842     something starting with __ and the normal name is an alias.  */
7843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7844 choke me
7845 #else
7846 char (*f) () = $ac_func;
7847 #endif
7848 #ifdef __cplusplus
7849 }
7850 #endif
7851
7852 int
7853 main ()
7854 {
7855 return f != $ac_func;
7856   ;
7857   return 0;
7858 }
7859 _ACEOF
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7862   (eval $ac_link) 2>conftest.er1
7863   ac_status=$?
7864   grep -v '^ *+' conftest.er1 >conftest.err
7865   rm -f conftest.er1
7866   cat conftest.err >&5
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); } &&
7869          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871   (eval $ac_try) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; } &&
7875          { ac_try='test -s conftest$ac_exeext'
7876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877   (eval $ac_try) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); }; }; then
7881   eval "$as_ac_var=yes"
7882 else
7883   echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7885
7886 eval "$as_ac_var=no"
7887 fi
7888 rm -f conftest.err conftest.$ac_objext \
7889       conftest$ac_exeext conftest.$ac_ext
7890 fi
7891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7893 if test `eval echo '${'$as_ac_var'}'` = yes; then
7894   cat >>confdefs.h <<_ACEOF
7895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7896 _ACEOF
7897
7898 fi
7899 done
7900
7901 if test "x$ac_cv_func_fork" = xyes; then
7902   echo "$as_me:$LINENO: checking for working fork" >&5
7903 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7904 if test "${ac_cv_func_fork_works+set}" = set; then
7905   echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907   if test "$cross_compiling" = yes; then
7908   ac_cv_func_fork_works=cross
7909 else
7910   cat >conftest.$ac_ext <<_ACEOF
7911 /* By Ruediger Kuhlmann. */
7912       #include <sys/types.h>
7913       #if HAVE_UNISTD_H
7914       # include <unistd.h>
7915       #endif
7916       /* Some systems only have a dummy stub for fork() */
7917       int main ()
7918       {
7919         if (fork() < 0)
7920           exit (1);
7921         exit (0);
7922       }
7923 _ACEOF
7924 rm -f conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926   (eval $ac_link) 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931   (eval $ac_try) 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); }; }; then
7935   ac_cv_func_fork_works=yes
7936 else
7937   echo "$as_me: program exited with status $ac_status" >&5
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7940
7941 ( exit $ac_status )
7942 ac_cv_func_fork_works=no
7943 fi
7944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7945 fi
7946 fi
7947 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7948 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7949
7950 else
7951   ac_cv_func_fork_works=$ac_cv_func_fork
7952 fi
7953 if test "x$ac_cv_func_fork_works" = xcross; then
7954   case $host in
7955     *-*-amigaos* | *-*-msdosdjgpp*)
7956       # Override, as these systems have only a dummy fork() stub
7957       ac_cv_func_fork_works=no
7958       ;;
7959     *)
7960       ac_cv_func_fork_works=yes
7961       ;;
7962   esac
7963   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7964 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7965 fi
7966 ac_cv_func_vfork_works=$ac_cv_func_vfork
7967 if test "x$ac_cv_func_vfork" = xyes; then
7968   echo "$as_me:$LINENO: checking for working vfork" >&5
7969 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7970 if test "${ac_cv_func_vfork_works+set}" = set; then
7971   echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973   if test "$cross_compiling" = yes; then
7974   ac_cv_func_vfork_works=cross
7975 else
7976   cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982 /* Thanks to Paul Eggert for this test.  */
7983 #include <stdio.h>
7984 #include <stdlib.h>
7985 #include <sys/types.h>
7986 #include <sys/stat.h>
7987 #include <sys/wait.h>
7988 #if HAVE_UNISTD_H
7989 # include <unistd.h>
7990 #endif
7991 #if HAVE_VFORK_H
7992 # include <vfork.h>
7993 #endif
7994 /* On some sparc systems, changes by the child to local and incoming
7995    argument registers are propagated back to the parent.  The compiler
7996    is told about this with #include <vfork.h>, but some compilers
7997    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7998    static variable whose address is put into a register that is
7999    clobbered by the vfork.  */
8000 static void
8001 #ifdef __cplusplus
8002 sparc_address_test (int arg)
8003 # else
8004 sparc_address_test (arg) int arg;
8005 #endif
8006 {
8007   static pid_t child;
8008   if (!child) {
8009     child = vfork ();
8010     if (child < 0) {
8011       perror ("vfork");
8012       _exit(2);
8013     }
8014     if (!child) {
8015       arg = getpid();
8016       write(-1, "", 0);
8017       _exit (arg);
8018     }
8019   }
8020 }
8021
8022 int
8023 main ()
8024 {
8025   pid_t parent = getpid ();
8026   pid_t child;
8027
8028   sparc_address_test (0);
8029
8030   child = vfork ();
8031
8032   if (child == 0) {
8033     /* Here is another test for sparc vfork register problems.  This
8034        test uses lots of local variables, at least as many local
8035        variables as main has allocated so far including compiler
8036        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8037        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8038        reuse the register of parent for one of the local variables,
8039        since it will think that parent can't possibly be used any more
8040        in this routine.  Assigning to the local variable will thus
8041        munge parent in the parent process.  */
8042     pid_t
8043       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8044       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8045     /* Convince the compiler that p..p7 are live; otherwise, it might
8046        use the same hardware register for all 8 local variables.  */
8047     if (p != p1 || p != p2 || p != p3 || p != p4
8048         || p != p5 || p != p6 || p != p7)
8049       _exit(1);
8050
8051     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8052        from child file descriptors.  If the child closes a descriptor
8053        before it execs or exits, this munges the parent's descriptor
8054        as well.  Test for this by closing stdout in the child.  */
8055     _exit(close(fileno(stdout)) != 0);
8056   } else {
8057     int status;
8058     struct stat st;
8059
8060     while (wait(&status) != child)
8061       ;
8062     exit(
8063          /* Was there some problem with vforking?  */
8064          child < 0
8065
8066          /* Did the child fail?  (This shouldn't happen.)  */
8067          || status
8068
8069          /* Did the vfork/compiler bug occur?  */
8070          || parent != getpid()
8071
8072          /* Did the file descriptor bug occur?  */
8073          || fstat(fileno(stdout), &st) != 0
8074          );
8075   }
8076 }
8077 _ACEOF
8078 rm -f conftest$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080   (eval $ac_link) 2>&5
8081   ac_status=$?
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085   (eval $ac_try) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089   ac_cv_func_vfork_works=yes
8090 else
8091   echo "$as_me: program exited with status $ac_status" >&5
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095 ( exit $ac_status )
8096 ac_cv_func_vfork_works=no
8097 fi
8098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8099 fi
8100 fi
8101 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8102 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8103
8104 fi;
8105 if test "x$ac_cv_func_fork_works" = xcross; then
8106   ac_cv_func_vfork_works=$ac_cv_func_vfork
8107   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8108 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8109 fi
8110
8111 if test "x$ac_cv_func_vfork_works" = xyes; then
8112
8113 cat >>confdefs.h <<\_ACEOF
8114 #define HAVE_WORKING_VFORK 1
8115 _ACEOF
8116
8117 else
8118
8119 cat >>confdefs.h <<\_ACEOF
8120 #define vfork fork
8121 _ACEOF
8122
8123 fi
8124 if test "x$ac_cv_func_fork_works" = xyes; then
8125
8126 cat >>confdefs.h <<\_ACEOF
8127 #define HAVE_WORKING_FORK 1
8128 _ACEOF
8129
8130 fi
8131
8132
8133
8134
8135   am_cv_lib_iconv_ldpath=
8136
8137 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8138 if test "${with_libiconv_prefix+set}" = set; then
8139   withval="$with_libiconv_prefix"
8140
8141     for dir in `echo "$withval" | tr : ' '`; do
8142       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8143       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8144     done
8145
8146 fi;
8147
8148
8149 for ac_header in iconv.h
8150 do
8151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8153   echo "$as_me:$LINENO: checking for $ac_header" >&5
8154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8156   echo $ECHO_N "(cached) $ECHO_C" >&6
8157 fi
8158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8160 else
8161   # Is the header compilable?
8162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170 $ac_includes_default
8171 #include <$ac_header>
8172 _ACEOF
8173 rm -f conftest.$ac_objext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8175   (eval $ac_compile) 2>conftest.er1
8176   ac_status=$?
8177   grep -v '^ *+' conftest.er1 >conftest.err
8178   rm -f conftest.er1
8179   cat conftest.err >&5
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); } &&
8182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184   (eval $ac_try) 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; } &&
8188          { ac_try='test -s conftest.$ac_objext'
8189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190   (eval $ac_try) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; }; then
8194   ac_header_compiler=yes
8195 else
8196   echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199 ac_header_compiler=no
8200 fi
8201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8203 echo "${ECHO_T}$ac_header_compiler" >&6
8204
8205 # Is the header present?
8206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8208 cat >conftest.$ac_ext <<_ACEOF
8209 /* confdefs.h.  */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h.  */
8214 #include <$ac_header>
8215 _ACEOF
8216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8218   ac_status=$?
8219   grep -v '^ *+' conftest.er1 >conftest.err
8220   rm -f conftest.er1
8221   cat conftest.err >&5
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } >/dev/null; then
8224   if test -s conftest.err; then
8225     ac_cpp_err=$ac_c_preproc_warn_flag
8226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8227   else
8228     ac_cpp_err=
8229   fi
8230 else
8231   ac_cpp_err=yes
8232 fi
8233 if test -z "$ac_cpp_err"; then
8234   ac_header_preproc=yes
8235 else
8236   echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239   ac_header_preproc=no
8240 fi
8241 rm -f conftest.err conftest.$ac_ext
8242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8243 echo "${ECHO_T}$ac_header_preproc" >&6
8244
8245 # So?  What about this header?
8246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8247   yes:no: )
8248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8252     ac_header_preproc=yes
8253     ;;
8254   no:yes:* )
8255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8267     (
8268       cat <<\_ASBOX
8269 ## ------------------------------------------ ##
8270 ## Report this to the AC_PACKAGE_NAME lists.  ##
8271 ## ------------------------------------------ ##
8272 _ASBOX
8273     ) |
8274       sed "s/^/$as_me: WARNING:     /" >&2
8275     ;;
8276 esac
8277 echo "$as_me:$LINENO: checking for $ac_header" >&5
8278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   eval "$as_ac_Header=\$ac_header_preproc"
8283 fi
8284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8286
8287 fi
8288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8289   cat >>confdefs.h <<_ACEOF
8290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8291 _ACEOF
8292
8293 fi
8294
8295 done
8296
8297
8298   echo "$as_me:$LINENO: checking for iconv" >&5
8299 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8300 if test "${am_cv_func_iconv+set}" = set; then
8301   echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303
8304     am_cv_func_iconv="no, consider installing GNU libiconv"
8305     am_cv_lib_iconv=no
8306     cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h.  */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h.  */
8312 #include <stdlib.h>
8313 #include <iconv.h>
8314 int
8315 main ()
8316 {
8317 iconv_t cd = iconv_open("","");
8318        iconv(cd,NULL,NULL,NULL,NULL);
8319        iconv_close(cd);
8320   ;
8321   return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326   (eval $ac_link) 2>conftest.er1
8327   ac_status=$?
8328   grep -v '^ *+' conftest.er1 >conftest.err
8329   rm -f conftest.er1
8330   cat conftest.err >&5
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); } &&
8333          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335   (eval $ac_try) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); }; } &&
8339          { ac_try='test -s conftest$ac_exeext'
8340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341   (eval $ac_try) 2>&5
8342   ac_status=$?
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); }; }; then
8345   am_cv_func_iconv=yes
8346 else
8347   echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8349
8350 fi
8351 rm -f conftest.err conftest.$ac_objext \
8352       conftest$ac_exeext conftest.$ac_ext
8353     if test "$am_cv_func_iconv" != yes; then
8354       am_save_LIBS="$LIBS"
8355       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8356       cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362 #include <stdlib.h>
8363 #include <iconv.h>
8364 int
8365 main ()
8366 {
8367 iconv_t cd = iconv_open("","");
8368          iconv(cd,NULL,NULL,NULL,NULL);
8369          iconv_close(cd);
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376   (eval $ac_link) 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; } &&
8389          { ac_try='test -s conftest$ac_exeext'
8390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391   (eval $ac_try) 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); }; }; then
8395   am_cv_lib_iconv=yes
8396         am_cv_func_iconv=yes
8397 else
8398   echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401 fi
8402 rm -f conftest.err conftest.$ac_objext \
8403       conftest$ac_exeext conftest.$ac_ext
8404       LIBS="$am_save_LIBS"
8405     fi
8406
8407 fi
8408 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8409 echo "${ECHO_T}$am_cv_func_iconv" >&6
8410   if test "$am_cv_func_iconv" = yes; then
8411
8412 cat >>confdefs.h <<\_ACEOF
8413 #define HAVE_ICONV 1
8414 _ACEOF
8415
8416     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8417 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8418     if test "${am_cv_proto_iconv+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421
8422       cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h.  */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h.  */
8428
8429 #include <stdlib.h>
8430 #include <iconv.h>
8431 extern
8432 #ifdef __cplusplus
8433 "C"
8434 #endif
8435 #if defined(__STDC__) || defined(__cplusplus)
8436 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8437 #else
8438 size_t iconv();
8439 #endif
8440
8441 int
8442 main ()
8443 {
8444
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451   (eval $ac_compile) 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; } &&
8464          { ac_try='test -s conftest.$ac_objext'
8465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466   (eval $ac_try) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; }; then
8470   am_cv_proto_iconv_arg1=""
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 am_cv_proto_iconv_arg1="const"
8476 fi
8477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8478       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);"
8479 fi
8480
8481     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8482     echo "$as_me:$LINENO: result: ${ac_t:-
8483          }$am_cv_proto_iconv" >&5
8484 echo "${ECHO_T}${ac_t:-
8485          }$am_cv_proto_iconv" >&6
8486
8487 cat >>confdefs.h <<_ACEOF
8488 #define ICONV_CONST $am_cv_proto_iconv_arg1
8489 _ACEOF
8490
8491   fi
8492   LIBICONV=
8493   if test "$am_cv_lib_iconv" = yes; then
8494     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8495   fi
8496
8497
8498 # Until we have in-tree GNU iconv:
8499 LIBICONV_DEP=
8500
8501
8502
8503   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8504 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8505 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 else
8508   cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514 #include <locale.h>
8515 int
8516 main ()
8517 {
8518 return LC_MESSAGES
8519   ;
8520   return 0;
8521 }
8522 _ACEOF
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525   (eval $ac_link) 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } &&
8532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; } &&
8538          { ac_try='test -s conftest$ac_exeext'
8539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540   (eval $ac_try) 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; }; then
8544   am_cv_val_LC_MESSAGES=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 am_cv_val_LC_MESSAGES=no
8550 fi
8551 rm -f conftest.err conftest.$ac_objext \
8552       conftest$ac_exeext conftest.$ac_ext
8553 fi
8554 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8555 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8556   if test $am_cv_val_LC_MESSAGES = yes; then
8557
8558 cat >>confdefs.h <<\_ACEOF
8559 #define HAVE_LC_MESSAGES 1
8560 _ACEOF
8561
8562   fi
8563
8564
8565 # We will need to find libiberty.h and ansidecl.h
8566 saved_CFLAGS="$CFLAGS"
8567 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8568 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8569         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8570         fprintf_unlocked strstr errno snprintf vasprintf \
8571         malloc realloc calloc free basename getopt clock
8572 do
8573   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8574 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8575 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8576 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8577   echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579   cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585 #undef $ac_tr_decl
8586 #define $ac_tr_decl 1
8587
8588 #include "ansidecl.h"
8589 #include "system.h"
8590
8591 int
8592 main ()
8593 {
8594 #ifndef $ac_func
8595 char *(*pfn) = (char *(*)) $ac_func ;
8596 #endif
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8603   (eval $ac_compile) 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; } &&
8616          { ac_try='test -s conftest.$ac_objext'
8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618   (eval $ac_try) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; }; then
8622   eval "gcc_cv_have_decl_$ac_func=yes"
8623 else
8624   echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 eval "gcc_cv_have_decl_$ac_func=no"
8628 fi
8629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8630 fi
8631
8632 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8633   echo "$as_me:$LINENO: result: yes" >&5
8634 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8635 #define $ac_tr_decl 1
8636 _ACEOF
8637
8638 else
8639   echo "$as_me:$LINENO: result: no" >&5
8640 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8641 #define $ac_tr_decl 0
8642 _ACEOF
8643
8644 fi
8645
8646 done
8647 if test x = y ; then
8648
8649 cat >>confdefs.h <<\_ACEOF
8650 #define HAVE_DECL_GETENV 1
8651 _ACEOF
8652
8653 cat >>confdefs.h <<\_ACEOF
8654 #define HAVE_DECL_ATOL 1
8655 _ACEOF
8656
8657 cat >>confdefs.h <<\_ACEOF
8658 #define HAVE_DECL_SBRK 1
8659 _ACEOF
8660
8661 cat >>confdefs.h <<\_ACEOF
8662 #define HAVE_DECL_ABORT 1
8663 _ACEOF
8664
8665 cat >>confdefs.h <<\_ACEOF
8666 #define HAVE_DECL_ATOF 1
8667 _ACEOF
8668
8669 cat >>confdefs.h <<\_ACEOF
8670 #define HAVE_DECL_GETCWD 1
8671 _ACEOF
8672
8673 cat >>confdefs.h <<\_ACEOF
8674 #define HAVE_DECL_GETWD 1
8675 _ACEOF
8676  \
8677
8678 cat >>confdefs.h <<\_ACEOF
8679 #define HAVE_DECL_STRSIGNAL 1
8680 _ACEOF
8681
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE_DECL_PUTC_UNLOCKED 1
8684 _ACEOF
8685
8686 cat >>confdefs.h <<\_ACEOF
8687 #define HAVE_DECL_FPUTS_UNLOCKED 1
8688 _ACEOF
8689
8690 cat >>confdefs.h <<\_ACEOF
8691 #define HAVE_DECL_FWRITE_UNLOCKED 1
8692 _ACEOF
8693  \
8694
8695 cat >>confdefs.h <<\_ACEOF
8696 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8697 _ACEOF
8698
8699 cat >>confdefs.h <<\_ACEOF
8700 #define HAVE_DECL_STRSTR 1
8701 _ACEOF
8702
8703 cat >>confdefs.h <<\_ACEOF
8704 #define HAVE_DECL_ERRNO 1
8705 _ACEOF
8706
8707 cat >>confdefs.h <<\_ACEOF
8708 #define HAVE_DECL_SNPRINTF 1
8709 _ACEOF
8710
8711 cat >>confdefs.h <<\_ACEOF
8712 #define HAVE_DECL_VASPRINTF 1
8713 _ACEOF
8714  \
8715
8716 cat >>confdefs.h <<\_ACEOF
8717 #define HAVE_DECL_MALLOC 1
8718 _ACEOF
8719
8720 cat >>confdefs.h <<\_ACEOF
8721 #define HAVE_DECL_REALLOC 1
8722 _ACEOF
8723
8724 cat >>confdefs.h <<\_ACEOF
8725 #define HAVE_DECL_CALLOC 1
8726 _ACEOF
8727
8728 cat >>confdefs.h <<\_ACEOF
8729 #define HAVE_DECL_FREE 1
8730 _ACEOF
8731
8732 cat >>confdefs.h <<\_ACEOF
8733 #define HAVE_DECL_BASENAME 1
8734 _ACEOF
8735
8736 cat >>confdefs.h <<\_ACEOF
8737 #define HAVE_DECL_GETOPT 1
8738 _ACEOF
8739
8740 cat >>confdefs.h <<\_ACEOF
8741 #define HAVE_DECL_CLOCK 1
8742 _ACEOF
8743 fi
8744
8745
8746 for ac_func in getrlimit setrlimit getrusage
8747 do
8748   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8749 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8750 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8751 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8752   echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754   cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h.  */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h.  */
8760 #undef $ac_tr_decl
8761 #define $ac_tr_decl 1
8762
8763 #include "ansidecl.h"
8764 #include "system.h"
8765 #ifdef HAVE_SYS_RESOURCE_H
8766 #include <sys/resource.h>
8767 #endif
8768
8769
8770 int
8771 main ()
8772 {
8773 #ifndef $ac_func
8774 char *(*pfn) = (char *(*)) $ac_func ;
8775 #endif
8776   ;
8777   return 0;
8778 }
8779 _ACEOF
8780 rm -f conftest.$ac_objext
8781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8782   (eval $ac_compile) 2>conftest.er1
8783   ac_status=$?
8784   grep -v '^ *+' conftest.er1 >conftest.err
8785   rm -f conftest.er1
8786   cat conftest.err >&5
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); } &&
8789          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791   (eval $ac_try) 2>&5
8792   ac_status=$?
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); }; } &&
8795          { ac_try='test -s conftest.$ac_objext'
8796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797   (eval $ac_try) 2>&5
8798   ac_status=$?
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); }; }; then
8801   eval "gcc_cv_have_decl_$ac_func=yes"
8802 else
8803   echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8805
8806 eval "gcc_cv_have_decl_$ac_func=no"
8807 fi
8808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8809 fi
8810
8811 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8812   echo "$as_me:$LINENO: result: yes" >&5
8813 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8814 #define $ac_tr_decl 1
8815 _ACEOF
8816
8817 else
8818   echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8820 #define $ac_tr_decl 0
8821 _ACEOF
8822
8823 fi
8824
8825 done
8826 if test x = y ; then
8827
8828 cat >>confdefs.h <<\_ACEOF
8829 #define HAVE_DECL_GETRLIMIT 1
8830 _ACEOF
8831
8832 cat >>confdefs.h <<\_ACEOF
8833 #define HAVE_DECL_SETRLIMIT 1
8834 _ACEOF
8835
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_DECL_GETRUSAGE 1
8838 _ACEOF
8839 fi
8840
8841
8842 cat >conftest.$ac_ext <<_ACEOF
8843 /* confdefs.h.  */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h.  */
8848
8849 #include "ansidecl.h"
8850 #include "system.h"
8851 #ifdef HAVE_SYS_RESOURCE_H
8852 #include <sys/resource.h>
8853 #endif
8854
8855 int
8856 main ()
8857 {
8858 rlim_t l = 0;
8859   ;
8860   return 0;
8861 }
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8865   (eval $ac_compile) 2>conftest.er1
8866   ac_status=$?
8867   grep -v '^ *+' conftest.er1 >conftest.err
8868   rm -f conftest.er1
8869   cat conftest.err >&5
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); } &&
8872          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874   (eval $ac_try) 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); }; } &&
8878          { ac_try='test -s conftest.$ac_objext'
8879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880   (eval $ac_try) 2>&5
8881   ac_status=$?
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); }; }; then
8884   :
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889
8890 cat >>confdefs.h <<\_ACEOF
8891 #define rlim_t long
8892 _ACEOF
8893
8894 fi
8895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8896
8897 for ac_func in ldgetname
8898 do
8899   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8900 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8901 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8902 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8903   echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905   cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911 #undef $ac_tr_decl
8912 #define $ac_tr_decl 1
8913
8914 #include "ansidecl.h"
8915 #include "system.h"
8916 #ifdef HAVE_LDFCN_H
8917 #include <ldfcn.h>
8918 #endif
8919
8920
8921 int
8922 main ()
8923 {
8924 #ifndef $ac_func
8925 char *(*pfn) = (char *(*)) $ac_func ;
8926 #endif
8927   ;
8928   return 0;
8929 }
8930 _ACEOF
8931 rm -f conftest.$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933   (eval $ac_compile) 2>conftest.er1
8934   ac_status=$?
8935   grep -v '^ *+' conftest.er1 >conftest.err
8936   rm -f conftest.er1
8937   cat conftest.err >&5
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } &&
8940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942   (eval $ac_try) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; } &&
8946          { ac_try='test -s conftest.$ac_objext'
8947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948   (eval $ac_try) 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; }; then
8952   eval "gcc_cv_have_decl_$ac_func=yes"
8953 else
8954   echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957 eval "gcc_cv_have_decl_$ac_func=no"
8958 fi
8959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8960 fi
8961
8962 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8963   echo "$as_me:$LINENO: result: yes" >&5
8964 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8965 #define $ac_tr_decl 1
8966 _ACEOF
8967
8968 else
8969   echo "$as_me:$LINENO: result: no" >&5
8970 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8971 #define $ac_tr_decl 0
8972 _ACEOF
8973
8974 fi
8975
8976 done
8977 if test x = y ; then
8978
8979 cat >>confdefs.h <<\_ACEOF
8980 #define HAVE_DECL_LDGETNAME 1
8981 _ACEOF
8982 fi
8983
8984
8985 for ac_func in times
8986 do
8987   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8988 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8989 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8990 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8991   echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993   cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999 #undef $ac_tr_decl
9000 #define $ac_tr_decl 1
9001
9002 #include "ansidecl.h"
9003 #include "system.h"
9004 #ifdef HAVE_SYS_TIMES_H
9005 #include <sys/times.h>
9006 #endif
9007
9008
9009 int
9010 main ()
9011 {
9012 #ifndef $ac_func
9013 char *(*pfn) = (char *(*)) $ac_func ;
9014 #endif
9015   ;
9016   return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021   (eval $ac_compile) 2>conftest.er1
9022   ac_status=$?
9023   grep -v '^ *+' conftest.er1 >conftest.err
9024   rm -f conftest.er1
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } &&
9028          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030   (eval $ac_try) 2>&5
9031   ac_status=$?
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); }; } &&
9034          { ac_try='test -s conftest.$ac_objext'
9035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036   (eval $ac_try) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); }; }; then
9040   eval "gcc_cv_have_decl_$ac_func=yes"
9041 else
9042   echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 eval "gcc_cv_have_decl_$ac_func=no"
9046 fi
9047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9048 fi
9049
9050 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9051   echo "$as_me:$LINENO: result: yes" >&5
9052 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
9053 #define $ac_tr_decl 1
9054 _ACEOF
9055
9056 else
9057   echo "$as_me:$LINENO: result: no" >&5
9058 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
9059 #define $ac_tr_decl 0
9060 _ACEOF
9061
9062 fi
9063
9064 done
9065 if test x = y ; then
9066
9067 cat >>confdefs.h <<\_ACEOF
9068 #define HAVE_DECL_TIMES 1
9069 _ACEOF
9070 fi
9071
9072
9073 # More time-related stuff.
9074 echo "$as_me:$LINENO: checking for struct tms" >&5
9075 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
9076 if test "${ac_cv_struct_tms+set}" = set; then
9077   echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079
9080 cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h.  */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h.  */
9086
9087 #include "ansidecl.h"
9088 #include "system.h"
9089 #ifdef HAVE_SYS_TIMES_H
9090 #include <sys/times.h>
9091 #endif
9092
9093 int
9094 main ()
9095 {
9096 struct tms tms;
9097   ;
9098   return 0;
9099 }
9100 _ACEOF
9101 rm -f conftest.$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103   (eval $ac_compile) 2>conftest.er1
9104   ac_status=$?
9105   grep -v '^ *+' conftest.er1 >conftest.err
9106   rm -f conftest.er1
9107   cat conftest.err >&5
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); } &&
9110          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112   (eval $ac_try) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); }; } &&
9116          { ac_try='test -s conftest.$ac_objext'
9117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118   (eval $ac_try) 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); }; }; then
9122   ac_cv_struct_tms=yes
9123 else
9124   echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 ac_cv_struct_tms=no
9128 fi
9129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9130 fi
9131 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
9132 echo "${ECHO_T}$ac_cv_struct_tms" >&6
9133 if test $ac_cv_struct_tms = yes; then
9134
9135 cat >>confdefs.h <<\_ACEOF
9136 #define HAVE_STRUCT_TMS 1
9137 _ACEOF
9138
9139 fi
9140
9141 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9142 # revisit after autoconf 2.50.
9143 echo "$as_me:$LINENO: checking for clock_t" >&5
9144 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
9145 if test "${gcc_cv_type_clock_t+set}" = set; then
9146   echo $ECHO_N "(cached) $ECHO_C" >&6
9147 else
9148
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h.  */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h.  */
9155
9156 #include "ansidecl.h"
9157 #include "system.h"
9158
9159 int
9160 main ()
9161 {
9162 clock_t x;
9163   ;
9164   return 0;
9165 }
9166 _ACEOF
9167 rm -f conftest.$ac_objext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9169   (eval $ac_compile) 2>conftest.er1
9170   ac_status=$?
9171   grep -v '^ *+' conftest.er1 >conftest.err
9172   rm -f conftest.er1
9173   cat conftest.err >&5
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); } &&
9176          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178   (eval $ac_try) 2>&5
9179   ac_status=$?
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); }; } &&
9182          { ac_try='test -s conftest.$ac_objext'
9183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184   (eval $ac_try) 2>&5
9185   ac_status=$?
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); }; }; then
9188   gcc_cv_type_clock_t=yes
9189 else
9190   echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9192
9193 gcc_cv_type_clock_t=no
9194 fi
9195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9196 fi
9197 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
9198 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
9199 if test $gcc_cv_type_clock_t = yes; then
9200
9201 cat >>confdefs.h <<\_ACEOF
9202 #define HAVE_CLOCK_T 1
9203 _ACEOF
9204
9205 fi
9206
9207 echo "$as_me:$LINENO: checking for uchar" >&5
9208 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
9209 if test "${gcc_cv_type_uchar+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218
9219 #include "ansidecl.h"
9220 #include "system.h"
9221
9222 int
9223 main ()
9224 {
9225 if ((uchar *)0) return 0;
9226  if (sizeof(uchar)) return 0;
9227   ;
9228   return 0;
9229 }
9230 _ACEOF
9231 rm -f conftest.$ac_objext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9233   (eval $ac_compile) 2>conftest.er1
9234   ac_status=$?
9235   grep -v '^ *+' conftest.er1 >conftest.err
9236   rm -f conftest.er1
9237   cat conftest.err >&5
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); } &&
9240          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242   (eval $ac_try) 2>&5
9243   ac_status=$?
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); }; } &&
9246          { ac_try='test -s conftest.$ac_objext'
9247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248   (eval $ac_try) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); }; }; then
9252   ac_cv_type_uchar=yes
9253 else
9254   echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9256
9257 ac_cv_type_uchar=no
9258 fi
9259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9260 fi
9261 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
9262 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
9263 if test $ac_cv_type_uchar = yes; then
9264
9265 cat >>confdefs.h <<\_ACEOF
9266 #define HAVE_UCHAR 1
9267 _ACEOF
9268
9269 fi
9270
9271 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9272 CFLAGS="$saved_CFLAGS"
9273
9274 # Check whether --enable-initfini-array or --disable-initfini-array was given.
9275 if test "${enable_initfini_array+set}" = set; then
9276   enableval="$enable_initfini_array"
9277
9278 else
9279
9280 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
9281 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
9282 if test "${gcc_cv_initfini_array+set}" = set; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285     if test "$cross_compiling" = yes; then
9286   gcc_cv_initfini_array=no
9287 else
9288   cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h.  */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h.  */
9294
9295 static int x = -1;
9296 int main (void) { return x; }
9297 int foo (void) { x = 0; }
9298 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9299 _ACEOF
9300 rm -f conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302   (eval $ac_link) 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   gcc_cv_initfini_array=yes
9312 else
9313   echo "$as_me: program exited with status $ac_status" >&5
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317 ( exit $ac_status )
9318 gcc_cv_initfini_array=no
9319 fi
9320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9321 fi
9322 fi
9323 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9324 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9325   enable_initfini_array=$gcc_cv_initfini_array
9326
9327 fi;
9328 if test $enable_initfini_array = yes; then
9329
9330 cat >>confdefs.h <<\_ACEOF
9331 #define HAVE_INITFINI_ARRAY 1
9332 _ACEOF
9333
9334 fi
9335
9336 # mkdir takes a single argument on some systems.
9337 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9338 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9339 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9340   echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342   cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h.  */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h.  */
9348
9349 #include <sys/types.h>
9350 #ifdef HAVE_SYS_STAT_H
9351 # include <sys/stat.h>
9352 #endif
9353 #ifdef HAVE_UNISTD_H
9354 # include <unistd.h>
9355 #endif
9356 #ifdef HAVE_DIRECT_H
9357 # include <direct.h>
9358 #endif
9359 int
9360 main ()
9361 {
9362 mkdir ("foo", 0);
9363   ;
9364   return 0;
9365 }
9366 _ACEOF
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369   (eval $ac_compile) 2>conftest.er1
9370   ac_status=$?
9371   grep -v '^ *+' conftest.er1 >conftest.err
9372   rm -f conftest.er1
9373   cat conftest.err >&5
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); } &&
9376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378   (eval $ac_try) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; } &&
9382          { ac_try='test -s conftest.$ac_objext'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; }; then
9388   gcc_cv_mkdir_takes_one_arg=no
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 gcc_cv_mkdir_takes_one_arg=yes
9394 fi
9395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9396 fi
9397 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9398 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9399 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9400
9401 cat >>confdefs.h <<\_ACEOF
9402 #define MKDIR_TAKES_ONE_ARG 1
9403 _ACEOF
9404
9405 fi
9406
9407
9408 # File extensions
9409 manext='.1'
9410 objext='.o'
9411
9412
9413
9414 # With Setjmp/Longjmp based exception handling.
9415 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9416 if test "${enable_sjlj_exceptions+set}" = set; then
9417   enableval="$enable_sjlj_exceptions"
9418   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9419
9420 cat >>confdefs.h <<_ACEOF
9421 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9422 _ACEOF
9423
9424 fi;
9425
9426 if test x$host = x$target; then
9427    echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9428 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9429 if test "${ac_cv_lib_unwind_main+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   ac_check_lib_save_LIBS=$LIBS
9433 LIBS="-lunwind  $LIBS"
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h.  */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h.  */
9440
9441
9442 int
9443 main ()
9444 {
9445 main ();
9446   ;
9447   return 0;
9448 }
9449 _ACEOF
9450 rm -f conftest.$ac_objext conftest$ac_exeext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9452   (eval $ac_link) 2>conftest.er1
9453   ac_status=$?
9454   grep -v '^ *+' conftest.er1 >conftest.err
9455   rm -f conftest.er1
9456   cat conftest.err >&5
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); } &&
9459          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461   (eval $ac_try) 2>&5
9462   ac_status=$?
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); }; } &&
9465          { ac_try='test -s conftest$ac_exeext'
9466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467   (eval $ac_try) 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); }; }; then
9471   ac_cv_lib_unwind_main=yes
9472 else
9473   echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9475
9476 ac_cv_lib_unwind_main=no
9477 fi
9478 rm -f conftest.err conftest.$ac_objext \
9479       conftest$ac_exeext conftest.$ac_ext
9480 LIBS=$ac_check_lib_save_LIBS
9481 fi
9482 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9483 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9484 if test $ac_cv_lib_unwind_main = yes; then
9485   use_libunwind_default=yes
9486 else
9487   use_libunwind_default=no
9488 fi
9489
9490 else
9491    use_libunwind_default=no
9492 fi
9493 # Use libunwind based exception handling.
9494 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9495 if test "${enable_libunwind_exceptions+set}" = set; then
9496   enableval="$enable_libunwind_exceptions"
9497   use_libunwind_exceptions=$enableval
9498 else
9499   use_libunwind_exceptions=$use_libunwind_default
9500 fi;
9501 if test x"$use_libunwind_exceptions" = xyes; then
9502
9503 cat >>confdefs.h <<\_ACEOF
9504 #define USE_LIBUNWIND_EXCEPTIONS 1
9505 _ACEOF
9506
9507 fi
9508
9509 # --------------------------------------------------------
9510 # Build, host, and target specific configuration fragments
9511 # --------------------------------------------------------
9512
9513 # Collect build-machine-specific information.
9514 . ${srcdir}/config.build
9515
9516 # Collect host-machine-specific information.
9517 . ${srcdir}/config.host
9518
9519 target_gtfiles=
9520
9521 # Collect target-machine-specific information.
9522 . ${srcdir}/config.gcc
9523
9524 extra_objs="${host_extra_objs} ${extra_objs}"
9525
9526 # Default the target-machine variables that were not explicitly set.
9527 if test x"$tm_file" = x
9528 then tm_file=$cpu_type/$cpu_type.h; fi
9529
9530 if test x"$extra_headers" = x
9531 then extra_headers=; fi
9532
9533 if test x$md_file = x
9534 then md_file=$cpu_type/$cpu_type.md; fi
9535
9536 if test x$out_file = x
9537 then out_file=$cpu_type/$cpu_type.c; fi
9538
9539 if test x"$tmake_file" = x
9540 then tmake_file=$cpu_type/t-$cpu_type
9541 fi
9542
9543 if test x"$dwarf2" = xyes
9544 then tm_file="$tm_file tm-dwarf2.h"
9545 fi
9546
9547 # Say what files are being used for the output code and MD file.
9548 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9549 echo "Using \`$srcdir/config/$md_file' as machine description file."
9550
9551 # If any of the xm_file variables contain nonexistent files, warn
9552 # about them and drop them.
9553
9554 bx=
9555 for x in $build_xm_file; do
9556   if    test -f $srcdir/config/$x
9557   then      bx="$bx $x"
9558   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9559 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9560   fi
9561 done
9562 build_xm_file="$bx"
9563
9564 hx=
9565 for x in $host_xm_file; do
9566   if    test -f $srcdir/config/$x
9567   then      hx="$hx $x"
9568   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9569 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9570   fi
9571 done
9572 host_xm_file="$hx"
9573
9574 tx=
9575 for x in $xm_file; do
9576   if    test -f $srcdir/config/$x
9577   then      tx="$tx $x"
9578   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9579 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9580   fi
9581 done
9582 xm_file="$tx"
9583
9584 count=a
9585 for f in $tm_file; do
9586         count=${count}x
9587 done
9588 if test $count = ax; then
9589         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9590 else
9591         echo "Using the following target machine macro files:"
9592         for f in $tm_file; do
9593                 echo "  $srcdir/config/$f"
9594         done
9595 fi
9596
9597 if test x$need_64bit_hwint = xyes; then
9598
9599 cat >>confdefs.h <<\_ACEOF
9600 #define NEED_64BIT_HOST_WIDE_INT 1
9601 _ACEOF
9602
9603 fi
9604
9605 count=a
9606 for f in $host_xm_file; do
9607         count=${count}x
9608 done
9609 if test $count = a; then
9610         :
9611 elif test $count = ax; then
9612         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9613 else
9614         echo "Using the following host machine macro files:"
9615         for f in $host_xm_file; do
9616                 echo "  $srcdir/config/$f"
9617         done
9618 fi
9619 echo "Using ${out_host_hook_obj} for host machine hooks."
9620
9621 if test "$host_xm_file" != "$build_xm_file"; then
9622         count=a
9623         for f in $build_xm_file; do
9624                 count=${count}x
9625         done
9626         if test $count = a; then
9627                 :
9628         elif test $count = ax; then
9629                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9630         else
9631                 echo "Using the following build machine macro files:"
9632                 for f in $build_xm_file; do
9633                         echo "  $srcdir/config/$f"
9634                 done
9635         fi
9636 fi
9637
9638 # Check if a valid thread package
9639 case ${enable_threads_flag} in
9640   "" | no)
9641     # No threads
9642     target_thread_file='single'
9643     ;;
9644   yes)
9645     # default
9646     target_thread_file='single'
9647     ;;
9648   aix | dce | gnat | irix | posix | rtems | \
9649   single | solaris | vxworks | win32 )
9650     target_thread_file=${enable_threads_flag}
9651     ;;
9652   *)
9653     echo "${enable_threads_flag} is an unknown thread package" 1>&2
9654     exit 1
9655     ;;
9656 esac
9657
9658 if test x${thread_file} = x; then
9659   # No thread file set by target-specific clauses in config.gcc,
9660   # so use file chosen by default logic above
9661   thread_file=${target_thread_file}
9662 fi
9663
9664 if test x$enable___cxa_atexit = xyes || \
9665    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define DEFAULT_USE_CXA_ATEXIT 1
9669 _ACEOF
9670
9671 fi
9672
9673 # Look for a file containing extra machine modes.
9674 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9675   extra_modes_file='$(srcdir)'/config/${extra_modes}
9676
9677
9678 cat >>confdefs.h <<_ACEOF
9679 #define EXTRA_MODES_FILE "config/$extra_modes"
9680 _ACEOF
9681
9682 fi
9683
9684 # auto-host.h is the file containing items generated by autoconf and is
9685 # the first file included by config.h.
9686 # If host=build, it is correct to have bconfig include auto-host.h
9687 # as well.  If host!=build, we are in error and need to do more
9688 # work to find out the build config parameters.
9689 if test x$host = x$build
9690 then
9691         build_auto=auto-host.h
9692         FORBUILD=..
9693 else
9694         # We create a subdir, then run autoconf in the subdir.
9695         # To prevent recursion we set host and build for the new
9696         # invocation of configure to the build for this invocation
9697         # of configure.
9698         tempdir=build.$$
9699         rm -rf $tempdir
9700         mkdir $tempdir
9701         cd $tempdir
9702         case ${srcdir} in
9703         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9704         *) realsrcdir=../${srcdir};;
9705         esac
9706         saved_CFLAGS="${CFLAGS}"
9707         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9708         ${realsrcdir}/configure \
9709                 --target=$target_alias --host=$build_alias --build=$build_alias
9710         CFLAGS="${saved_CFLAGS}"
9711
9712         # We just finished tests for the build machine, so rename
9713         # the file auto-build.h in the gcc directory.
9714         mv auto-host.h ../auto-build.h
9715         cd ..
9716         rm -rf $tempdir
9717         build_auto=auto-build.h
9718         FORBUILD=../${build_subdir}
9719 fi
9720
9721
9722 tm_file="${tm_file} defaults.h"
9723 tm_p_file="${tm_p_file} tm-preds.h"
9724 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9725 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9726 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9727 # put this back in temporarily.
9728 xm_file="ansidecl.h ${xm_file}"
9729
9730 # --------
9731 # UNSORTED
9732 # --------
9733
9734 # Get the version trigger filename from the toplevel
9735 if test "${with_gcc_version_trigger+set}" = set; then
9736         gcc_version_trigger=$with_gcc_version_trigger
9737 else
9738         gcc_version_trigger=${srcdir}/version.c
9739 fi
9740 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9741 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9742
9743 # Compile in configure arguments.
9744 if test -f configargs.h ; then
9745         # Being re-configured.
9746         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9747         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9748 else
9749         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9750 fi
9751
9752 # Double all backslashes and backslash all quotes to turn
9753 # gcc_config_arguments into a C string.
9754 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9755 $gcc_config_arguments
9756 EOF
9757 gcc_config_arguments_str=`cat conftest.out`
9758 rm -f conftest.out
9759
9760 cat > configargs.h <<EOF
9761 /* Generated automatically. */
9762 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9763 static const char thread_model[] = "$thread_file";
9764
9765 static const struct {
9766   const char *name, *value;
9767 } configure_default_options[] = $configure_default_options;
9768 EOF
9769
9770 # Internationalization
9771 PACKAGE=gcc
9772 VERSION="$gcc_version"
9773
9774
9775
9776 # If we haven't got the data from the intl directory,
9777 # assume NLS is disabled.
9778 USE_NLS=no
9779 LIBINTL=
9780 LIBINTL_DEP=
9781 INCINTL=
9782 XGETTEXT=
9783 GMSGFMT=
9784 POSUB=
9785 if test -f ../intl/config.intl; then
9786   . ../intl/config.intl
9787 fi
9788 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9789 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9790 if test x"$USE_NLS" != xyes; then
9791   echo "$as_me:$LINENO: result: no" >&5
9792 echo "${ECHO_T}no" >&6
9793 else
9794   echo "$as_me:$LINENO: result: yes" >&5
9795 echo "${ECHO_T}yes" >&6
9796
9797 cat >>confdefs.h <<\_ACEOF
9798 #define ENABLE_NLS 1
9799 _ACEOF
9800
9801
9802   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9803 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9804   # Look for .po and .gmo files in the source directory.
9805   CATALOGS=
9806   XLINGUAS=
9807   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9808     # If there aren't any .gmo files the shell will give us the
9809     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9810     # weeded out.
9811     case "$cat" in *\**)
9812       continue;;
9813     esac
9814     # The quadruple backslash is collapsed to a double backslash
9815     # by the backticks, then collapsed again by the double quotes,
9816     # leaving us with one backslash in the sed expression (right
9817     # before the dot that mustn't act as a wildcard).
9818     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9819     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9820     # The user is allowed to set LINGUAS to a list of languages to
9821     # install catalogs for.  If it's empty that means "all of them."
9822     if test "x$LINGUAS" = x; then
9823       CATALOGS="$CATALOGS $cat"
9824       XLINGUAS="$XLINGUAS $lang"
9825     else
9826       case "$LINGUAS" in *$lang*)
9827         CATALOGS="$CATALOGS $cat"
9828         XLINGUAS="$XLINGUAS $lang"
9829         ;;
9830       esac
9831     fi
9832   done
9833   LINGUAS="$XLINGUAS"
9834   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9835 echo "${ECHO_T}$LINGUAS" >&6
9836 fi
9837
9838 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9839 # -liconv on the link line twice.
9840 case "$LIBINTL" in *$LIBICONV*)
9841         LIBICONV= ;;
9842 esac
9843
9844 # Windows32 Registry support for specifying GCC installation paths.
9845 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9846 if test "${enable_win32_registry+set}" = set; then
9847   enableval="$enable_win32_registry"
9848
9849 fi;
9850 case $host_os in
9851         win32 | pe | cygwin* | mingw32* | uwin*)
9852 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9853 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9854 if test "x$enable_win32_registry" != xno; then
9855
9856 cat >>confdefs.h <<\_ACEOF
9857 #define ENABLE_WIN32_REGISTRY 1
9858 _ACEOF
9859
9860   echo "$as_me:$LINENO: result: yes" >&5
9861 echo "${ECHO_T}yes" >&6
9862   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9863 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9864 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   ac_func_search_save_LIBS=$LIBS
9868 ac_cv_search_RegOpenKeyExA=no
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h.  */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h.  */
9875
9876 /* Override any gcc2 internal prototype to avoid an error.  */
9877 #ifdef __cplusplus
9878 extern "C"
9879 #endif
9880 /* We use char because int might match the return type of a gcc2
9881    builtin and then its argument prototype would still apply.  */
9882 char RegOpenKeyExA ();
9883 int
9884 main ()
9885 {
9886 RegOpenKeyExA ();
9887   ;
9888   return 0;
9889 }
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893   (eval $ac_link) 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; } &&
9906          { ac_try='test -s conftest$ac_exeext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912   ac_cv_search_RegOpenKeyExA="none required"
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 fi
9918 rm -f conftest.err conftest.$ac_objext \
9919       conftest$ac_exeext conftest.$ac_ext
9920 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9921   for ac_lib in advapi32; do
9922     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9923     cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929
9930 /* Override any gcc2 internal prototype to avoid an error.  */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 /* We use char because int might match the return type of a gcc2
9935    builtin and then its argument prototype would still apply.  */
9936 char RegOpenKeyExA ();
9937 int
9938 main ()
9939 {
9940 RegOpenKeyExA ();
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947   (eval $ac_link) 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956   (eval $ac_try) 2>&5
9957   ac_status=$?
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); }; } &&
9960          { ac_try='test -s conftest$ac_exeext'
9961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962   (eval $ac_try) 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); }; }; then
9966   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9967 break
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 fi
9973 rm -f conftest.err conftest.$ac_objext \
9974       conftest$ac_exeext conftest.$ac_ext
9975   done
9976 fi
9977 LIBS=$ac_func_search_save_LIBS
9978 fi
9979 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9980 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9981 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9982   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9983
9984 fi
9985
9986 else
9987   echo "$as_me:$LINENO: result: no" >&5
9988 echo "${ECHO_T}no" >&6
9989 fi
9990
9991 # Check if user specified a different registry key.
9992 case "x${enable_win32_registry}" in
9993 x | xyes)
9994   # default.
9995   gcc_cv_win32_registry_key="$VERSION"
9996   ;;
9997 xno)
9998   # no registry lookup.
9999   gcc_cv_win32_registry_key=''
10000   ;;
10001 *)
10002   # user-specified key.
10003   gcc_cv_win32_registry_key="$enable_win32_registry"
10004   ;;
10005 esac
10006
10007 if test "x$enable_win32_registry" != xno; then
10008   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
10009 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
10010
10011 cat >>confdefs.h <<_ACEOF
10012 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
10013 _ACEOF
10014
10015   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
10016 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
10017 fi
10018 ;;
10019 esac
10020
10021 # Get an absolute path to the GCC top-level source directory
10022 holddir=`${PWDCMD-pwd}`
10023 cd $srcdir
10024 topdir=`${PWDCMD-pwd}`
10025 cd $holddir
10026
10027 # Conditionalize the makefile for this host machine.
10028 xmake_file=
10029 for f in ${host_xmake_file}
10030 do
10031         if test -f ${srcdir}/config/$f
10032         then
10033                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10034         fi
10035 done
10036
10037 # Conditionalize the makefile for this target machine.
10038 tmake_file_=
10039 for f in ${tmake_file}
10040 do
10041         if test -f ${srcdir}/config/$f
10042         then
10043                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10044         fi
10045 done
10046 tmake_file="${tmake_file_}"
10047
10048 symbolic_link='ln -s'
10049
10050 # If the host doesn't support symlinks, modify CC in
10051 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
10052 # Otherwise, we can use "CC=$(CC)".
10053 rm -f symtest.tem
10054 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
10055 then
10056         cc_set_by_configure="\$(CC)"
10057         quoted_cc_set_by_configure="\$(CC)"
10058         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
10059         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
10060 else
10061         rm -f symtest.tem
10062         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
10063         then
10064                 symbolic_link="cp -p"
10065         else
10066                 symbolic_link="cp"
10067         fi
10068         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
10069         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
10070         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
10071         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
10072 fi
10073 rm -f symtest.tem
10074
10075 out_object_file=`basename $out_file .c`.o
10076
10077 tm_file_list=
10078 tm_include_list=
10079 for f in $tm_file; do
10080   case $f in
10081     defaults.h )
10082        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10083        tm_include_list="${tm_include_list} $f"
10084        ;;
10085     * )
10086        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10087        tm_include_list="${tm_include_list} config/$f"
10088        ;;
10089   esac
10090 done
10091
10092 tm_p_file_list=
10093 tm_p_include_list=
10094 for f in $tm_p_file; do
10095   case $f in
10096     tm-preds.h )
10097        tm_p_file_list="${tm_p_file_list} $f"
10098        tm_p_include_list="${tm_p_include_list} $f"
10099        ;;
10100     * )
10101        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10102        tm_p_include_list="${tm_p_include_list} config/$f"
10103   esac
10104 done
10105
10106 xm_file_list=
10107 xm_include_list=
10108 for f in $xm_file; do
10109   case $f in
10110     ansidecl.h )
10111        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10112        xm_include_list="${xm_include_list} $f"
10113        ;;
10114     auto-host.h )
10115        xm_file_list="${xm_file_list} $f"
10116        xm_include_list="${xm_include_list} $f"
10117        ;;
10118     * )
10119        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10120        xm_include_list="${xm_include_list} config/$f"
10121        ;;
10122   esac
10123 done
10124
10125 host_xm_file_list=
10126 host_xm_include_list=
10127 for f in $host_xm_file; do
10128   case $f in
10129     ansidecl.h )
10130        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10131        host_xm_include_list="${host_xm_include_list} $f"
10132        ;;
10133     auto-host.h )
10134        host_xm_file_list="${host_xm_file_list} $f"
10135        host_xm_include_list="${host_xm_include_list} $f"
10136        ;;
10137     * )
10138        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10139        host_xm_include_list="${host_xm_include_list} config/$f"
10140        ;;
10141   esac
10142 done
10143
10144 build_xm_file_list=
10145 for f in $build_xm_file; do
10146   case $f in
10147     ansidecl.h )
10148        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10149        build_xm_include_list="${build_xm_include_list} $f"
10150        ;;
10151     auto-build.h | auto-host.h )
10152        build_xm_file_list="${build_xm_file_list} $f"
10153        build_xm_include_list="${build_xm_include_list} $f"
10154        ;;
10155     * )
10156        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10157        build_xm_include_list="${build_xm_include_list} config/$f"
10158        ;;
10159   esac
10160 done
10161
10162 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
10163 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10164 CROSS=
10165 ALL=all.internal
10166 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10167 if test x$host != x$target
10168 then
10169         CROSS="-DCROSS_COMPILE"
10170         ALL=all.cross
10171         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
10172         case "$host","$target" in
10173         # Darwin crosses can use the host system's libraries and headers,
10174         # because of the fat library support.  Of course, it must be the
10175         # same version of Darwin on both sides.  Allow the user to
10176         # just say --target=foo-darwin without a version number to mean
10177         # "the version on this system".
10178             *-*-darwin*,*-*-darwin*)
10179                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10180                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10181                 if test $hostos = $targetos -o $targetos = darwin ; then
10182                     CROSS=
10183                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10184                     with_headers=yes
10185                 fi
10186                 ;;
10187
10188             i?86-*-*,x86_64-*-* \
10189             | powerpc*-*-*,powerpc64*-*-*)
10190                 CROSS="$CROSS -DNATIVE_CROSS" ;;
10191         esac
10192 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10193         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
10194         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
10195 fi
10196
10197 # If this is a cross-compiler that does not
10198 # have its own set of headers then define
10199 # inhibit_libc
10200
10201 # If this is using newlib, without having the headers available now,
10202 # then define inhibit_libc in LIBGCC2_CFLAGS.
10203 # This prevents libgcc2 from containing any code which requires libc
10204 # support.
10205 inhibit_libc=
10206 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10207        test x$with_newlib = xyes ; } &&
10208      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10209        inhibit_libc=-Dinhibit_libc
10210 fi
10211
10212
10213 # When building gcc with a cross-compiler, we need to adjust things so
10214 # that the generator programs are still built with the native compiler.
10215 # Also, we cannot run fixincludes or fix-header.
10216
10217 # These are the normal (build=host) settings:
10218 BUILD_PREFIX=
10219 BUILD_PREFIX_1=ignore-
10220 CC_FOR_BUILD='$(CC)'
10221 BUILD_CFLAGS='$(ALL_CFLAGS)'
10222
10223 STMP_FIXINC=stmp-fixinc
10224
10225 # Possibly disable fixproto, on a per-target basis.
10226 case ${use_fixproto} in
10227   no)
10228     STMP_FIXPROTO=
10229     ;;
10230   yes)
10231     STMP_FIXPROTO=stmp-fixproto
10232     ;;
10233 esac
10234
10235
10236 # And these apply if build != host, or we are generating coverage data
10237 if test x$build != x$host || test "x$coverage_flags" != x
10238 then
10239     BUILD_PREFIX=build-
10240     BUILD_PREFIX_1=build-
10241     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10242
10243     if test "x$TARGET_SYSTEM_ROOT" = x; then
10244         STMP_FIXINC=
10245         STMP_FIXPROTO=
10246     fi
10247 fi
10248
10249 # Expand extra_headers to include complete path.
10250 # This substitutes for lots of t-* files.
10251 extra_headers_list=
10252 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10253 for file in ${extra_headers} ; do
10254   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10255 done
10256
10257 # Add a definition of USE_COLLECT2 if system wants one.
10258 case $use_collect2 in
10259   no) use_collect2= ;;
10260   "") ;;
10261   *)
10262     host_xm_defines="${host_xm_defines} USE_COLLECT2"
10263     xm_defines="${xm_defines} USE_COLLECT2"
10264     ;;
10265 esac
10266
10267 # Identify the assembler which will work hand-in-glove with the newly
10268 # built GCC, so that we can examine its features.  This is the assembler
10269 # which will be driven by the driver program.
10270 #
10271 # If build != host, and we aren't building gas in-tree, we identify a
10272 # build->target assembler and hope that it will have the same features
10273 # as the host->target assembler we'll be using.
10274 echo "$as_me:$LINENO: checking what assembler to use" >&5
10275 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10276 in_tree_gas=no
10277 gcc_cv_as=
10278 gcc_cv_gas_major_version=
10279 gcc_cv_gas_minor_version=
10280 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10281 if test -x "$DEFAULT_ASSEMBLER"; then
10282         gcc_cv_as="$DEFAULT_ASSEMBLER"
10283 elif test -x "$AS"; then
10284         gcc_cv_as="$AS"
10285 elif test -x as$host_exeext; then
10286         # Build using assembler in the current directory.
10287         gcc_cv_as=./as$host_exeext
10288 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10289      && test -f ../gas/Makefile; then
10290   # Single tree build which includes gas.
10291   in_tree_gas=yes
10292   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10293 for f in $gcc_cv_as_bfd_srcdir/configure \
10294          $gcc_cv_as_gas_srcdir/configure \
10295          $gcc_cv_as_gas_srcdir/configure.in \
10296          $gcc_cv_as_gas_srcdir/Makefile.in ; do
10297   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10298   if test x$gcc_cv_gas_version != x; then
10299     break
10300   fi
10301 done
10302 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10303 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10304 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10305 case $gcc_cv_gas_patch_version in
10306   "") gcc_cv_gas_patch_version="0" ;;
10307 esac
10308 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10309                             + $gcc_cv_gas_minor_version \) \* 1000 \
10310                             + $gcc_cv_gas_patch_version`
10311
10312   rm -f as$host_exeext
10313   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10314   in_tree_gas_is_elf=no
10315   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10316      || (grep 'obj_format = multi' ../gas/Makefile \
10317          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10318   then
10319     in_tree_gas_is_elf=yes
10320   fi
10321 fi
10322
10323 if test "x$gcc_cv_as" = x; then
10324         # Search the same directories that the installed compiler will
10325         # search.  Else we may find the wrong assembler and lose.  If we
10326         # do not find a suitable assembler binary, then try the user's
10327         # path.
10328         #
10329         # Also note we have to check MD_EXEC_PREFIX before checking the
10330         # user's path.  Unfortunately, there is no good way to get at the
10331         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10332         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10333         # to be fixed as part of the make/configure rewrite too.
10334
10335         if test "x$exec_prefix" = xNONE; then
10336                 if test "x$prefix" = xNONE; then
10337                         test_prefix=/usr/local
10338                 else
10339                         test_prefix=$prefix
10340                 fi
10341         else
10342                 test_prefix=$exec_prefix
10343         fi
10344
10345         # If the loop below does not find an assembler, then use whatever
10346         # one we can find in the users's path.
10347         # user's path.
10348         if test "x$program_prefix" != xNONE; then
10349                 gcc_cv_as=${program_prefix}as$host_exeext
10350         else
10351                 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
10352         fi
10353
10354         test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
10355                    $test_prefix/lib/gcc-lib/$target_noncanonical \
10356                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10357                    /usr/lib/gcc/$target_noncanonical \
10358                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10359                    $test_prefix/$target_noncanonical/bin"
10360
10361         if test x$host = x$target; then
10362             test_dirs="$test_dirs \
10363                    /usr/libexec \
10364                    /usr/ccs/gcc \
10365                    /usr/ccs/bin \
10366                    /udk/usr/ccs/bin \
10367                    /bsd43/usr/lib/cmplrs/cc \
10368                    /usr/cross64/usr/bin \
10369                    /usr/lib/cmplrs/cc \
10370                    /sysv/usr/lib/cmplrs/cc \
10371                    /svr4/usr/lib/cmplrs/cc \
10372                    /usr/bin"
10373         fi
10374
10375         for dir in $test_dirs; do
10376                 if test -x $dir/as$host_exeext; then
10377                         gcc_cv_as=$dir/as$host_exeext
10378                         break;
10379                 fi
10380         done
10381 fi
10382 case $in_tree_gas in
10383   yes)
10384     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10385 echo "${ECHO_T}\"newly built gas\"" >&6
10386     ;;
10387   no)
10388     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10389 echo "${ECHO_T}$gcc_cv_as" >&6
10390     ;;
10391 esac
10392
10393 # Identify the linker which will work hand-in-glove with the newly
10394 # built GCC, so that we can examine its features.  This is the linker
10395 # which will be driven by the driver program.
10396 #
10397 # If build != host, and we aren't building gas in-tree, we identify a
10398 # build->target linker and hope that it will have the same features
10399 # as the host->target linker we'll be using.
10400 echo "$as_me:$LINENO: checking what linker to use" >&5
10401 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10402 in_tree_ld=no
10403 gcc_cv_ld=
10404 gcc_cv_gld_major_version=
10405 gcc_cv_gld_minor_version=
10406 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10407 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10408 if test -x "$DEFAULT_LINKER"; then
10409         gcc_cv_ld="$DEFAULT_LINKER"
10410 elif test -x "$LD"; then
10411         gcc_cv_ld="$LD"
10412 elif test -x collect-ld$host_exeext; then
10413         # Build using linker in the current directory.
10414         gcc_cv_ld=./collect-ld$host_exeext
10415 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10416      && test -f ../ld/Makefile; then
10417         # Single tree build which includes ld.
10418         in_tree_ld=yes
10419         in_tree_ld_is_elf=no
10420         if (grep 'EMUL = .*elf' ../ld/Makefile \
10421             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10422           in_tree_ld_is_elf=yes
10423         fi
10424         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
10425         do
10426                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10427                 if test x$gcc_cv_gld_version != x; then
10428                         break
10429                 fi
10430         done
10431         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10432         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10433         rm -f collect-ld$host_exeext
10434         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10435                 2>/dev/null
10436 fi
10437
10438 if test "x$gcc_cv_ld" = x; then
10439         # Search the same directories that the installed compiler will
10440         # search.  Else we may find the wrong linker and lose.  If we
10441         # do not find a suitable linker binary, then try the user's
10442         # path.
10443         #
10444         # Also note we have to check MD_EXEC_PREFIX before checking the
10445         # user's path.  Unfortunately, there is no good way to get at the
10446         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10447         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10448         # to be fixed as part of the make/configure rewrite too.
10449
10450         if test "x$exec_prefix" = xNONE; then
10451                 if test "x$prefix" = xNONE; then
10452                         test_prefix=/usr/local
10453                 else
10454                         test_prefix=$prefix
10455                 fi
10456         else
10457                 test_prefix=$exec_prefix
10458         fi
10459
10460         # If the loop below does not find an linker, then use whatever
10461         # one we can find in the users's path.
10462         # user's path.
10463         if test "x$program_prefix" != xNONE; then
10464                 gcc_cv_ld=${program_prefix}ld$host_exeext
10465         else
10466                 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
10467         fi
10468
10469         test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
10470                    $test_prefix/lib/gcc-lib/$target_noncanonical \
10471                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10472                    /usr/lib/gcc/$target_noncanonical \
10473                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10474                    $test_prefix/$target_noncanonical/bin"
10475
10476         if test x$host = x$target; then
10477             test_dirs="$test_dirs \
10478                    /usr/libexec \
10479                    /usr/ccs/gcc \
10480                    /usr/ccs/bin \
10481                    /udk/usr/ccs/bin \
10482                    /bsd43/usr/lib/cmplrs/cc \
10483                    /usr/cross64/usr/bin \
10484                    /usr/lib/cmplrs/cc \
10485                    /sysv/usr/lib/cmplrs/cc \
10486                    /svr4/usr/lib/cmplrs/cc \
10487                    /usr/bin"
10488         fi
10489
10490         for dir in $test_dirs; do
10491                 if test -x $dir/ld$host_exeext; then
10492                         gcc_cv_ld=$dir/ld$host_exeext
10493                         break;
10494                 fi
10495         done
10496 fi
10497 case $in_tree_ld in
10498   yes)
10499     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10500 echo "${ECHO_T}\"newly built ld\"" >&6
10501     ;;
10502   no)
10503     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10504 echo "${ECHO_T}$gcc_cv_ld" >&6
10505     ;;
10506 esac
10507
10508 # Figure out what nm we will be using.
10509 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10510 echo "$as_me:$LINENO: checking what nm to use" >&5
10511 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10512 in_tree_nm=no
10513 if test -x nm$host_exeext; then
10514         gcc_cv_nm=./nm$host_exeext
10515 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10516      && test -f ../binutils/Makefile; then
10517         # Single tree build which includes binutils.
10518         in_tree_nm=yes
10519         gcc_cv_nm=./nm$host_exeext
10520         rm -f nm$host_exeext
10521         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10522 elif test "x$program_prefix" != xNONE; then
10523         gcc_cv_nm=${program_prefix}nm$host_exeext
10524 else
10525         gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
10526 fi
10527 case $in_tree_nm in
10528   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10529 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10530   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10531 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10532 esac
10533
10534 # Figure out what objdump we will be using.
10535 echo "$as_me:$LINENO: checking what objdump to use" >&5
10536 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10537 in_tree_objdump=no
10538 if test -x objdump$host_exeext; then
10539         gcc_cv_objdump=./objdump$host_exeext
10540 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10541      && test -f ../binutils/Makefile; then
10542         # Single tree build which includes binutils.
10543         in_tree_objdump=yes
10544         gcc_cv_objdump=./objdump$host_exeext
10545         rm -f objdump$host_exeext
10546         $symbolic_link ../binutils/objdump$host_exeext \
10547                 objdump$host_exeext 2>/dev/null
10548 elif test "x$program_prefix" != xNONE; then
10549         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10550 else
10551         gcc_cv_objdump=`echo objdump | \
10552                 sed ${program_transform_name}`$host_exeext
10553 fi
10554 case $in_tree_objdump in
10555   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10556 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10557   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10558 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10559 esac
10560
10561 # Figure out what assembler alignment features are present.
10562 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10563 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10564 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10565   echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567   gcc_cv_as_balign_and_p2align=no
10568     if test $in_tree_gas = yes; then
10569     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10570   then gcc_cv_as_balign_and_p2align=yes
10571 fi
10572   elif test x$gcc_cv_as != x; then
10573     echo '.balign 4
10574 .p2align 2' > conftest.s
10575     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }
10581     then
10582         gcc_cv_as_balign_and_p2align=yes
10583     else
10584       echo "configure: failed program was" >&5
10585       cat conftest.s >&5
10586     fi
10587     rm -f conftest.o conftest.s
10588   fi
10589 fi
10590 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10591 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10592 if test $gcc_cv_as_balign_and_p2align = yes; then
10593
10594 cat >>confdefs.h <<\_ACEOF
10595 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10596 _ACEOF
10597
10598 fi
10599
10600 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10601 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10602 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   gcc_cv_as_max_skip_p2align=no
10606     if test $in_tree_gas = yes; then
10607     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10608   then gcc_cv_as_max_skip_p2align=yes
10609 fi
10610   elif test x$gcc_cv_as != x; then
10611     echo '.p2align 4,,7' > conftest.s
10612     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614   (eval $ac_try) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; }
10618     then
10619         gcc_cv_as_max_skip_p2align=yes
10620     else
10621       echo "configure: failed program was" >&5
10622       cat conftest.s >&5
10623     fi
10624     rm -f conftest.o conftest.s
10625   fi
10626 fi
10627 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10628 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10629 if test $gcc_cv_as_max_skip_p2align = yes; then
10630
10631 cat >>confdefs.h <<\_ACEOF
10632 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10633 _ACEOF
10634
10635 fi
10636
10637 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10638 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10639 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642   gcc_cv_as_subsection_m1=no
10643     if test $in_tree_gas = yes; then
10644     if test $in_tree_gas_is_elf = yes \
10645   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10646   then gcc_cv_as_subsection_m1=yes
10647 fi
10648   elif test x$gcc_cv_as != x; then
10649     echo 'conftest_label1: .word 0
10650 .subsection -1
10651 conftest_label2: .word 0
10652 .previous' > conftest.s
10653     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }
10659     then
10660         if test x$gcc_cv_nm != x; then
10661     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10662     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10663     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10664     then :
10665     else gcc_cv_as_subsection_m1=yes
10666     fi
10667     rm -f conftest.nm1 conftest.nm2
10668   fi
10669     else
10670       echo "configure: failed program was" >&5
10671       cat conftest.s >&5
10672     fi
10673     rm -f conftest.o conftest.s
10674   fi
10675 fi
10676 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10677 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10678 if test $gcc_cv_as_subsection_m1 = yes; then
10679
10680 cat >>confdefs.h <<\_ACEOF
10681 #define HAVE_GAS_SUBSECTION_ORDERING 1
10682 _ACEOF
10683
10684 fi
10685
10686 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10687 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10688 if test "${gcc_cv_as_weak+set}" = set; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691   gcc_cv_as_weak=no
10692     if test $in_tree_gas = yes; then
10693     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10694   then gcc_cv_as_weak=yes
10695 fi
10696   elif test x$gcc_cv_as != x; then
10697     echo '      .weak foobar' > conftest.s
10698     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700   (eval $ac_try) 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }; }
10704     then
10705         gcc_cv_as_weak=yes
10706     else
10707       echo "configure: failed program was" >&5
10708       cat conftest.s >&5
10709     fi
10710     rm -f conftest.o conftest.s
10711   fi
10712 fi
10713 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10714 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10715 if test $gcc_cv_as_weak = yes; then
10716
10717 cat >>confdefs.h <<\_ACEOF
10718 #define HAVE_GAS_WEAK 1
10719 _ACEOF
10720
10721 fi
10722
10723 # .hidden needs to be supported in both the assembler and the linker,
10724 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10725 # This is irritatingly difficult to feature test for; we have to check the
10726 # date string after the version number.  If we've got an in-tree
10727 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10728 # to be safe.
10729 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10730 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10731 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10732 if test "${gcc_cv_as_hidden+set}" = set; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   gcc_cv_as_hidden=no
10736     if test $in_tree_gas = yes; then
10737     if test $in_tree_gas_is_elf = yes \
10738   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10739   then gcc_cv_as_hidden=yes
10740 fi
10741   elif test x$gcc_cv_as != x; then
10742     echo '      .hidden foobar
10743 foobar:' > conftest.s
10744     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }
10750     then
10751         gcc_cv_as_hidden=yes
10752     else
10753       echo "configure: failed program was" >&5
10754       cat conftest.s >&5
10755     fi
10756     rm -f conftest.o conftest.s
10757   fi
10758 fi
10759 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10760 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10761
10762
10763 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10764 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10765 if test "${gcc_cv_ld_hidden+set}" = set; then
10766   echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768   if test $in_tree_ld = yes ; then
10769   gcc_cv_ld_hidden=no
10770   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 \
10771      && test $in_tree_ld_is_elf = yes; then
10772      gcc_cv_ld_hidden=yes
10773   fi
10774 else
10775   gcc_cv_ld_hidden=yes
10776   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10777   if echo "$ld_ver" | grep GNU > /dev/null; then
10778     ld_vers=`echo $ld_ver | sed -n \
10779         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10780         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10781         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10782         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10783         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10784         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10785     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'`
10786     if test 0"$ld_date" -lt 20020404; then
10787       if test -n "$ld_date"; then
10788         # If there was date string, but was earlier than 2002-04-04, fail
10789         gcc_cv_ld_hidden=no
10790       elif test -z "$ld_vers"; then
10791         # If there was no date string nor ld version number, something is wrong
10792         gcc_cv_ld_hidden=no
10793       else
10794         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10795         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10796         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10797         test -z "$ld_vers_patch" && ld_vers_patch=0
10798         if test "$ld_vers_major" -lt 2; then
10799           gcc_cv_ld_hidden=no
10800         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10801           gcc_cv_ld_hidden="no"
10802         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10803           gcc_cv_ld_hidden=no
10804         fi
10805       fi
10806     fi
10807   else
10808     # non-GNU linkers don't seem to support .hidden yet
10809     gcc_cv_ld_hidden=no
10810   fi
10811 fi
10812 fi
10813 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10814 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10815 libgcc_visibility=no
10816
10817 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10818   libgcc_visibility=yes
10819
10820 cat >>confdefs.h <<\_ACEOF
10821 #define HAVE_GAS_HIDDEN 1
10822 _ACEOF
10823
10824 fi
10825
10826 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10827 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10828 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10829 if test "${gcc_cv_as_leb128+set}" = set; then
10830   echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832   gcc_cv_as_leb128=no
10833     if test $in_tree_gas = yes; then
10834     if test $in_tree_gas_is_elf = yes \
10835   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10836   then gcc_cv_as_leb128=yes
10837 fi
10838   elif test x$gcc_cv_as != x; then
10839     echo '      .data
10840         .uleb128 L2 - L1
10841 L1:
10842         .uleb128 1280
10843         .sleb128 -1010
10844 L2:' > conftest.s
10845     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847   (eval $ac_try) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }; }
10851     then
10852         # GAS versions before 2.11 do not support uleb128,
10853   # despite appearing to.
10854   # ??? There exists an elf-specific test that will crash
10855   # the assembler.  Perhaps it's better to figure out whether
10856   # arbitrary sections are supported and try the test.
10857   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10858   if echo "$as_ver" | grep GNU > /dev/null; then
10859     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10860     as_major=`echo $as_ver | sed 's/\..*//'`
10861     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10862     if test $as_major -eq 2 && test $as_minor -lt 11
10863     then :
10864     else gcc_cv_as_leb128=yes
10865     fi
10866   fi
10867     else
10868       echo "configure: failed program was" >&5
10869       cat conftest.s >&5
10870     fi
10871     rm -f conftest.o conftest.s
10872   fi
10873 fi
10874 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10875 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10876 if test $gcc_cv_as_leb128 = yes; then
10877
10878 cat >>confdefs.h <<\_ACEOF
10879 #define HAVE_AS_LEB128 1
10880 _ACEOF
10881
10882 fi
10883
10884 # GAS versions up to and including 2.11.0 may mis-optimize
10885 # .eh_frame data.
10886 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10887 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10888 if test "${gcc_cv_as_eh_frame+set}" = set; then
10889   echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891   gcc_cv_as_eh_frame=no
10892     if test $in_tree_gas = yes; then
10893     if test $in_tree_gas_is_elf = yes \
10894   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10895   then gcc_cv_as_eh_frame=yes
10896 fi
10897   elif test x$gcc_cv_as != x; then
10898     echo '      .text
10899 .LFB1:
10900         .4byte  0
10901 .L1:
10902         .4byte  0
10903 .LFE1:
10904         .section        .eh_frame,"aw",@progbits
10905 __FRAME_BEGIN__:
10906         .4byte  .LECIE1-.LSCIE1
10907 .LSCIE1:
10908         .4byte  0x0
10909         .byte   0x1
10910         .ascii "z\0"
10911         .byte   0x1
10912         .byte   0x78
10913         .byte   0x1a
10914         .byte   0x0
10915         .byte   0x4
10916         .4byte  1
10917         .p2align 1
10918 .LECIE1:
10919 .LSFDE1:
10920         .4byte  .LEFDE1-.LASFDE1
10921 .LASFDE1:
10922         .4byte  .LASFDE1-__FRAME_BEGIN__
10923         .4byte  .LFB1
10924         .4byte  .LFE1-.LFB1
10925         .byte   0x4
10926         .4byte  .LFE1-.LFB1
10927         .byte   0x4
10928         .4byte  .L1-.LFB1
10929 .LEFDE1:' > conftest.s
10930     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932   (eval $ac_try) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }; }
10936     then
10937           cat > conftest.lit <<EOF
10938  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10939  0010 01000000 12000000 18000000 00000000  ................
10940  0020 08000000 04080000 0044               .........D      
10941 EOF
10942 cat > conftest.big <<EOF
10943  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10944  0010 00000001 00000012 00000018 00000000  ................
10945  0020 00000008 04000000 0844               .........D      
10946 EOF
10947   # If the assembler didn't choke, and we can objdump,
10948   # and we got the correct data, then succeed.
10949   if test x$gcc_cv_objdump != x \
10950   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10951      | tail -3 > conftest.got \
10952   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10953     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10954   then
10955     gcc_cv_as_eh_frame=yes
10956   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958   (eval $ac_try) 2>&5
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); }; }; then
10962     gcc_cv_as_eh_frame=buggy
10963   else
10964     # Uh oh, what do we do now?
10965     gcc_cv_as_eh_frame=no
10966   fi
10967     else
10968       echo "configure: failed program was" >&5
10969       cat conftest.s >&5
10970     fi
10971     rm -f conftest.o conftest.s
10972   fi
10973 fi
10974 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10975 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10976
10977
10978 if test $gcc_cv_as_eh_frame = buggy; then
10979
10980 cat >>confdefs.h <<\_ACEOF
10981 #define USE_AS_TRADITIONAL_FORMAT 1
10982 _ACEOF
10983
10984 fi
10985
10986 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10987 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10988 if test "${gcc_cv_as_shf_merge+set}" = set; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   gcc_cv_as_shf_merge=no
10992     if test $in_tree_gas = yes; then
10993     if test $in_tree_gas_is_elf = yes \
10994   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10995   then gcc_cv_as_shf_merge=yes
10996 fi
10997   elif test x$gcc_cv_as != x; then
10998     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10999     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
11000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001   (eval $ac_try) 2>&5
11002   ac_status=$?
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); }; }
11005     then
11006         gcc_cv_as_shf_merge=yes
11007     else
11008       echo "configure: failed program was" >&5
11009       cat conftest.s >&5
11010     fi
11011     rm -f conftest.o conftest.s
11012   fi
11013 fi
11014 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
11015 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
11016
11017
11018 cat >>confdefs.h <<_ACEOF
11019 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
11020 _ACEOF
11021
11022
11023 # Thread-local storage - the check is heavily parametrized.
11024 conftest_s=
11025 tls_first_major=
11026 tls_first_minor=
11027 tls_as_opt=
11028 case "$target" in
11029   alpha*-*-*)
11030     conftest_s='
11031         .section ".tdata","awT",@progbits
11032 foo:    .long   25
11033         .text
11034         ldq     $27,__tls_get_addr($29)         !literal!1
11035         lda     $16,foo($29)                    !tlsgd!1
11036         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
11037         ldq     $27,__tls_get_addr($29)         !literal!2
11038         lda     $16,foo($29)                    !tlsldm!2
11039         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
11040         ldq     $1,foo($29)                     !gotdtprel
11041         ldah    $2,foo($29)                     !dtprelhi
11042         lda     $3,foo($2)                      !dtprello
11043         lda     $4,foo($29)                     !dtprel
11044         ldq     $1,foo($29)                     !gottprel
11045         ldah    $2,foo($29)                     !tprelhi
11046         lda     $3,foo($2)                      !tprello
11047         lda     $4,foo($29)                     !tprel'
11048         tls_first_major=2
11049         tls_first_minor=13
11050         ;;
11051   i[34567]86-*-*)
11052     conftest_s='
11053         .section ".tdata","awT",@progbits
11054 foo:    .long   25
11055         .text
11056         movl    %gs:0, %eax
11057         leal    foo@TLSGD(,%ebx,1), %eax
11058         leal    foo@TLSLDM(%ebx), %eax
11059         leal    foo@DTPOFF(%eax), %edx
11060         movl    foo@GOTTPOFF(%ebx), %eax
11061         subl    foo@GOTTPOFF(%ebx), %eax
11062         addl    foo@GOTNTPOFF(%ebx), %eax
11063         movl    foo@INDNTPOFF, %eax
11064         movl    $foo@TPOFF, %eax
11065         subl    $foo@TPOFF, %eax
11066         leal    foo@NTPOFF(%ecx), %eax'
11067         tls_first_major=2
11068         tls_first_minor=14
11069         ;;
11070   x86_64-*-*)
11071     conftest_s='
11072         .section ".tdata","awT",@progbits
11073 foo:    .long   25
11074         .text
11075         movq    %fs:0, %rax
11076         leaq    foo@TLSGD(%rip), %rdi
11077         leaq    foo@TLSLD(%rip), %rdi
11078         leaq    foo@DTPOFF(%rax), %rdx
11079         movq    foo@GOTTPOFF(%rip), %rax
11080         movq    $foo@TPOFF, %rax'
11081         tls_first_major=2
11082         tls_first_minor=14
11083         ;;
11084   ia64-*-*)
11085     conftest_s='
11086         .section ".tdata","awT",@progbits
11087 foo:    data8   25
11088         .text
11089         addl    r16 = @ltoff(@dtpmod(foo#)), gp
11090         addl    r17 = @ltoff(@dtprel(foo#)), gp
11091         addl    r18 = @ltoff(@tprel(foo#)), gp
11092         addl    r19 = @dtprel(foo#), gp
11093         adds    r21 = @dtprel(foo#), r13
11094         movl    r23 = @dtprel(foo#)
11095         addl    r20 = @tprel(foo#), gp
11096         adds    r22 = @tprel(foo#), r13
11097         movl    r24 = @tprel(foo#)'
11098         tls_first_major=2
11099         tls_first_minor=13
11100         ;;
11101   powerpc-*-*)
11102     conftest_s='
11103         .section ".tdata","awT",@progbits
11104         .align 2
11105 ld0:    .space 4
11106 ld1:    .space 4
11107 x1:     .space 4
11108 x2:     .space 4
11109 x3:     .space 4
11110         .text
11111         addi 3,31,ld0@got@tlsgd
11112         bl __tls_get_addr
11113         addi 3,31,x1@got@tlsld
11114         bl __tls_get_addr
11115         addi 9,3,x1@dtprel
11116         addis 9,3,x2@dtprel@ha
11117         addi 9,9,x2@dtprel@l
11118         lwz 9,x3@got@tprel(31)
11119         add 9,9,x@tls
11120         addi 9,2,x1@tprel
11121         addis 9,2,x2@tprel@ha
11122         addi 9,9,x2@tprel@l'
11123         tls_first_major=2
11124         tls_first_minor=14
11125         tls_as_opt=-a32
11126         ;;
11127   powerpc64-*-*)
11128     conftest_s='
11129         .section ".tdata","awT",@progbits
11130         .align 3
11131 ld0:    .space 8
11132 ld1:    .space 8
11133 x1:     .space 8
11134 x2:     .space 8
11135 x3:     .space 8
11136         .text
11137         addi 3,2,ld0@got@tlsgd
11138         bl .__tls_get_addr
11139         nop
11140         addi 3,2,ld1@toc
11141         bl .__tls_get_addr
11142         nop
11143         addi 3,2,x1@got@tlsld
11144         bl .__tls_get_addr
11145         nop
11146         addi 9,3,x1@dtprel
11147         bl .__tls_get_addr
11148         nop
11149         addis 9,3,x2@dtprel@ha
11150         addi 9,9,x2@dtprel@l
11151         bl .__tls_get_addr
11152         nop
11153         ld 9,x3@got@dtprel(2)
11154         add 9,9,3
11155         bl .__tls_get_addr
11156         nop'
11157         tls_first_major=2
11158         tls_first_minor=14
11159         tls_as_opt=-a64
11160         ;;
11161   s390-*-*)
11162     conftest_s='
11163         .section ".tdata","awT",@progbits
11164 foo:    .long   25
11165         .text
11166         .long   foo@TLSGD
11167         .long   foo@TLSLDM
11168         .long   foo@DTPOFF
11169         .long   foo@NTPOFF
11170         .long   foo@GOTNTPOFF
11171         .long   foo@INDNTPOFF
11172         l       %r1,foo@GOTNTPOFF(%r12)
11173         l       %r1,0(%r1):tls_load:foo
11174         bas     %r14,0(%r1,%r13):tls_gdcall:foo
11175         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
11176         tls_first_major=2
11177         tls_first_minor=14
11178         tls_as_opt=-m31
11179         ;;
11180   s390x-*-*)
11181     conftest_s='
11182         .section ".tdata","awT",@progbits
11183 foo:    .long   25
11184         .text
11185         .quad   foo@TLSGD
11186         .quad   foo@TLSLDM
11187         .quad   foo@DTPOFF
11188         .quad   foo@NTPOFF
11189         .quad   foo@GOTNTPOFF
11190         lg      %r1,foo@GOTNTPOFF(%r12)
11191         larl    %r1,foo@INDNTPOFF
11192         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
11193         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11194         tls_first_major=2
11195         tls_first_minor=14
11196         tls_as_opt="-m64 -Aesame"
11197         ;;
11198   sh-*-* | sh[34]-*-*)
11199     conftest_s='
11200         .section ".tdata","awT",@progbits
11201 foo:    .long   25
11202         .text
11203         .long   foo@TLSGD
11204         .long   foo@TLSLDM
11205         .long   foo@DTPOFF
11206         .long   foo@GOTTPOFF
11207         .long   foo@TPOFF'
11208         tls_first_major=2
11209         tls_first_minor=13
11210         ;;
11211   sparc*-*-*)
11212     conftest_s='
11213         .section ".tdata","awT",@progbits
11214 foo:    .long   25
11215         .text
11216         sethi   %tgd_hi22(foo), %o0
11217         add     %o0, %tgd_lo10(foo), %o1
11218         add     %l7, %o1, %o0, %tgd_add(foo)
11219         call    __tls_get_addr, %tgd_call(foo)
11220         sethi   %tldm_hi22(foo), %l1
11221         add     %l1, %tldm_lo10(foo), %l2
11222         add     %l7, %l2, %o0, %tldm_add(foo)
11223         call    __tls_get_addr, %tldm_call(foo)
11224         sethi   %tldo_hix22(foo), %l3
11225         xor     %l3, %tldo_lox10(foo), %l4
11226         add     %o0, %l4, %l5, %tldo_add(foo)
11227         sethi   %tie_hi22(foo), %o3
11228         add     %o3, %tie_lo10(foo), %o3
11229         ld      [%l7 + %o3], %o2, %tie_ld(foo)
11230         add     %g7, %o2, %o4, %tie_add(foo)
11231         sethi   %tle_hix22(foo), %l1
11232         xor     %l1, %tle_lox10(foo), %o5
11233         ld      [%g7 + %o5], %o1'
11234         tls_first_major=2
11235         tls_first_minor=14
11236         tls_as_opt=-32
11237         ;;
11238 esac
11239 if test -z "$tls_first_major"; then
11240   : # If we don't have a check, assume no support.
11241 else
11242   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11243 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11244 if test "${gcc_cv_as_tls+set}" = set; then
11245   echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247   gcc_cv_as_tls=no
11248     if test $in_tree_gas = yes; then
11249     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11250   then gcc_cv_as_tls=yes
11251 fi
11252   elif test x$gcc_cv_as != x; then
11253     echo "$conftest_s" > conftest.s
11254     if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
11255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256   (eval $ac_try) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; }
11260     then
11261         gcc_cv_as_tls=yes
11262     else
11263       echo "configure: failed program was" >&5
11264       cat conftest.s >&5
11265     fi
11266     rm -f conftest.o conftest.s
11267   fi
11268 fi
11269 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11270 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11271 if test $gcc_cv_as_tls = yes; then
11272
11273 cat >>confdefs.h <<\_ACEOF
11274 #define HAVE_AS_TLS 1
11275 _ACEOF
11276
11277 fi
11278 fi
11279
11280 # Target-specific assembler checks.
11281
11282 case "$target" in
11283   # All TARGET_ABI_OSF targets.
11284   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11285     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11286 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11287 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11288   echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290   gcc_cv_as_alpha_explicit_relocs=no
11291     if test $in_tree_gas = yes; then
11292     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11293   then gcc_cv_as_alpha_explicit_relocs=yes
11294 fi
11295   elif test x$gcc_cv_as != x; then
11296     echo '      .set nomacro
11297         .text
11298         extbl   $3, $2, $3      !lituse_bytoff!1
11299         ldq     $2, a($29)      !literal!1
11300         ldq     $4, b($29)      !literal!2
11301         ldq_u   $3, 0($2)       !lituse_base!1
11302         ldq     $27, f($29)     !literal!5
11303         jsr     $26, ($27), f   !lituse_jsr!5
11304         ldah    $29, 0($26)     !gpdisp!3
11305         lda     $0, c($29)      !gprel
11306         ldah    $1, d($29)      !gprelhigh
11307         lda     $1, d($1)       !gprellow
11308         lda     $29, 0($29)     !gpdisp!3' > conftest.s
11309     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311   (eval $ac_try) 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); }; }
11315     then
11316         gcc_cv_as_alpha_explicit_relocs=yes
11317     else
11318       echo "configure: failed program was" >&5
11319       cat conftest.s >&5
11320     fi
11321     rm -f conftest.o conftest.s
11322   fi
11323 fi
11324 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11325 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11326 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11327
11328 cat >>confdefs.h <<\_ACEOF
11329 #define HAVE_AS_EXPLICIT_RELOCS 1
11330 _ACEOF
11331
11332 fi
11333     ;;
11334
11335   sparc*-*-*)
11336     echo "$as_me:$LINENO: checking assembler for .register" >&5
11337 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11338 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11339   echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341   gcc_cv_as_sparc_register_op=no
11342   if test x$gcc_cv_as != x; then
11343     echo '.register %g2, #scratch' > conftest.s
11344     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346   (eval $ac_try) 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }; }
11350     then
11351         gcc_cv_as_sparc_register_op=yes
11352     else
11353       echo "configure: failed program was" >&5
11354       cat conftest.s >&5
11355     fi
11356     rm -f conftest.o conftest.s
11357   fi
11358 fi
11359 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11360 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11361 if test $gcc_cv_as_sparc_register_op = yes; then
11362
11363 cat >>confdefs.h <<\_ACEOF
11364 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11365 _ACEOF
11366
11367 fi
11368
11369     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11370 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11371 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   gcc_cv_as_sparc_relax=no
11375   if test x$gcc_cv_as != x; then
11376     echo '.text' > conftest.s
11377     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379   (eval $ac_try) 2>&5
11380   ac_status=$?
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); }; }
11383     then
11384         gcc_cv_as_sparc_relax=yes
11385     else
11386       echo "configure: failed program was" >&5
11387       cat conftest.s >&5
11388     fi
11389     rm -f conftest.o conftest.s
11390   fi
11391 fi
11392 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11393 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11394 if test $gcc_cv_as_sparc_relax = yes; then
11395
11396 cat >>confdefs.h <<\_ACEOF
11397 #define HAVE_AS_RELAX_OPTION 1
11398 _ACEOF
11399
11400 fi
11401
11402     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11403 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11404 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11405   echo $ECHO_N "(cached) $ECHO_C" >&6
11406 else
11407   gcc_cv_as_sparc_ua_pcrel=no
11408   if test x$gcc_cv_as != x; then
11409     echo '.text
11410 foo:
11411         nop
11412 .data
11413 .align 4
11414 .byte 0
11415 .uaword %r_disp32(foo)' > conftest.s
11416     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418   (eval $ac_try) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; }
11422     then
11423         if test x$gcc_cv_ld != x \
11424        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11425          gcc_cv_as_sparc_ua_pcrel=yes
11426        fi
11427        rm -f conftest
11428     else
11429       echo "configure: failed program was" >&5
11430       cat conftest.s >&5
11431     fi
11432     rm -f conftest.o conftest.s
11433   fi
11434 fi
11435 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11436 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11437 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11438
11439 cat >>confdefs.h <<\_ACEOF
11440 #define HAVE_AS_SPARC_UA_PCREL 1
11441 _ACEOF
11442
11443
11444       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11445 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11446 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11447   echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449   gcc_cv_as_sparc_ua_pcrel_hidden=no
11450   if test x$gcc_cv_as != x; then
11451     echo '.data
11452 .align 4
11453 .byte 0x31
11454 .uaword %r_disp32(foo)
11455 .byte 0x32, 0x33, 0x34
11456 .global foo
11457 .hidden foo
11458 foo:
11459 .skip 4' > conftest.s
11460     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462   (eval $ac_try) 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); }; }
11466     then
11467         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11468          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11469          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11470             | grep ' 31000000 07323334' > /dev/null 2>&1; then
11471             if $gcc_cv_objdump -R conftest 2> /dev/null \
11472                | grep 'DISP32' > /dev/null 2>&1; then
11473                 :
11474             else
11475                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11476             fi
11477          fi
11478          rm -f conftest
11479     else
11480       echo "configure: failed program was" >&5
11481       cat conftest.s >&5
11482     fi
11483     rm -f conftest.o conftest.s
11484   fi
11485 fi
11486 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11487 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11488 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11489
11490 cat >>confdefs.h <<\_ACEOF
11491 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11492 _ACEOF
11493
11494 fi
11495
11496 fi # unaligned pcrel relocs
11497
11498     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11499 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11500 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11501   echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503   gcc_cv_as_sparc_offsetable_lo10=no
11504   if test x$gcc_cv_as != x; then
11505     echo '.text
11506         or %g1, %lo(ab) + 12, %g1
11507         or %g1, %lo(ab + 12), %g1' > conftest.s
11508     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510   (eval $ac_try) 2>&5
11511   ac_status=$?
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); }; }
11514     then
11515         if test x$gcc_cv_objdump != x \
11516        && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11517           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11518          gcc_cv_as_offsetable_lo10=yes
11519        fi
11520     else
11521       echo "configure: failed program was" >&5
11522       cat conftest.s >&5
11523     fi
11524     rm -f conftest.o conftest.s
11525   fi
11526 fi
11527 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11528 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11529 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11530
11531 cat >>confdefs.h <<\_ACEOF
11532 #define HAVE_AS_OFFSETABLE_LO10 1
11533 _ACEOF
11534
11535 fi
11536     ;;
11537
11538   i[34567]86-*-* | x86_64-*-*)
11539     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11540 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11541 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11542   echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544   gcc_cv_as_ix86_filds_fists=no
11545     if test $in_tree_gas = yes; then
11546     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11547   then gcc_cv_as_ix86_filds_fists=yes
11548 fi
11549   elif test x$gcc_cv_as != x; then
11550     echo 'filds mem; fists mem' > conftest.s
11551     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553   (eval $ac_try) 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); }; }
11557     then
11558         gcc_cv_as_ix86_filds_fists=yes
11559     else
11560       echo "configure: failed program was" >&5
11561       cat conftest.s >&5
11562     fi
11563     rm -f conftest.o conftest.s
11564   fi
11565 fi
11566 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11567 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11568 if test $gcc_cv_as_ix86_filds_fists = yes; then
11569
11570 cat >>confdefs.h <<\_ACEOF
11571 #define HAVE_GAS_FILDS_FISTS 1
11572 _ACEOF
11573
11574 fi
11575
11576     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11577 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11578 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581   gcc_cv_as_ix86_cmov_sun_syntax=no
11582   if test x$gcc_cv_as != x; then
11583     echo 'cmovl.l %edx, %eax' > conftest.s
11584     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586   (eval $ac_try) 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; }
11590     then
11591         gcc_cv_as_ix86_cmov_sun_syntax=yes
11592     else
11593       echo "configure: failed program was" >&5
11594       cat conftest.s >&5
11595     fi
11596     rm -f conftest.o conftest.s
11597   fi
11598 fi
11599 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11600 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11601 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11602
11603 cat >>confdefs.h <<\_ACEOF
11604 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11605 _ACEOF
11606
11607 fi
11608
11609     # This one is used unconditionally by i386.[ch]; it is to be defined
11610     # to 1 if the feature is present, 0 otherwise.
11611     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11612 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11613 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11614   echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616   gcc_cv_as_ix86_gotoff_in_data=no
11617     if test $in_tree_gas = yes; then
11618     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11619   then gcc_cv_as_ix86_gotoff_in_data=yes
11620 fi
11621   elif test x$gcc_cv_as != x; then
11622     echo '      .text
11623 .L0:
11624         nop
11625         .data
11626         .long .L0@GOTOFF' > conftest.s
11627     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629   (eval $ac_try) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); }; }
11633     then
11634         gcc_cv_as_ix86_gotoff_in_data=yes
11635     else
11636       echo "configure: failed program was" >&5
11637       cat conftest.s >&5
11638     fi
11639     rm -f conftest.o conftest.s
11640   fi
11641 fi
11642 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11643 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11644
11645
11646 cat >>confdefs.h <<_ACEOF
11647 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11648 _ACEOF
11649
11650     ;;
11651
11652   ia64*-*-*)
11653     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11654 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11655 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11659     if test $in_tree_gas = yes; then
11660     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11661   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11662 fi
11663   elif test x$gcc_cv_as != x; then
11664     echo '      .text
11665         addl r15 = @ltoffx(x#), gp
11666         ;;
11667         ld8.mov r16 = [r15], x#' > conftest.s
11668     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670   (eval $ac_try) 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; }
11674     then
11675         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11676     else
11677       echo "configure: failed program was" >&5
11678       cat conftest.s >&5
11679     fi
11680     rm -f conftest.o conftest.s
11681   fi
11682 fi
11683 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11684 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11685 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11686
11687 cat >>confdefs.h <<\_ACEOF
11688 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11689 _ACEOF
11690
11691 fi
11692
11693     ;;
11694
11695   powerpc*-*-*)
11696     case $target in
11697       *-*-aix) conftest_s='     .csect .textPR';;
11698       *)       conftest_s='     .text';;
11699     esac
11700     conftest_s="$conftest_s
11701         mfcr 3,128"
11702
11703     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11704 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11705 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11706   echo $ECHO_N "(cached) $ECHO_C" >&6
11707 else
11708   gcc_cv_as_powerpc_mfcrf=no
11709     if test $in_tree_gas = yes; then
11710     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11711   then gcc_cv_as_powerpc_mfcrf=yes
11712 fi
11713   elif test x$gcc_cv_as != x; then
11714     echo "$conftest_s" > conftest.s
11715     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717   (eval $ac_try) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; }
11721     then
11722         gcc_cv_as_powerpc_mfcrf=yes
11723     else
11724       echo "configure: failed program was" >&5
11725       cat conftest.s >&5
11726     fi
11727     rm -f conftest.o conftest.s
11728   fi
11729 fi
11730 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11731 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11732 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11733
11734 cat >>confdefs.h <<\_ACEOF
11735 #define HAVE_AS_MFCRF 1
11736 _ACEOF
11737
11738 fi
11739     ;;
11740
11741   mips*-*-*)
11742     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11743 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11744 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   gcc_cv_as_mips_explicit_relocs=no
11748     if test $in_tree_gas = yes; then
11749     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11750   then gcc_cv_as_mips_explicit_relocs=yes
11751 fi
11752   elif test x$gcc_cv_as != x; then
11753     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11754     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756   (eval $ac_try) 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); }; }
11760     then
11761         gcc_cv_as_mips_explicit_relocs=yes
11762     else
11763       echo "configure: failed program was" >&5
11764       cat conftest.s >&5
11765     fi
11766     rm -f conftest.o conftest.s
11767   fi
11768 fi
11769 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11770 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11771 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11772   if test x$target_cpu_default = x
11773        then target_cpu_default=MASK_EXPLICIT_RELOCS
11774        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11775        fi
11776 fi
11777
11778     ;;
11779 esac
11780 # ??? Not all targets support dwarf2 debug_line, even within a version
11781 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11782 # info to the output file.  So, as supported targets are added to gas 2.11,
11783 # add some instruction here to (also) show we expect this might work.
11784 # ??? Once 2.11 is released, probably need to add first known working
11785 # version to the per-target configury.
11786 case "$target" in
11787   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11788   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11789   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11790     insn="nop"
11791     ;;
11792   ia64*-*-*)
11793     insn="nop 0"
11794     ;;
11795   mmix-*-*)
11796     insn="swym 0"
11797     ;;
11798 esac
11799 if test x"$insn" != x; then
11800  conftest_s="\
11801         .file 1 \"conftest.s\"
11802         .loc 1 3 0
11803         $insn"
11804  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11805 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11806 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   gcc_cv_as_dwarf2_debug_line=no
11810     if test $in_tree_gas = yes; then
11811     if test $in_tree_gas_is_elf = yes \
11812   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11813   then gcc_cv_as_dwarf2_debug_line=yes
11814 fi
11815   elif test x$gcc_cv_as != x; then
11816     echo "$conftest_s" > conftest.s
11817     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819   (eval $ac_try) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; }
11823     then
11824         # ??? This fails with non-gnu grep.  Maybe use objdump?
11825    if grep debug_line conftest.o > /dev/null 2>&1; then
11826      gcc_cv_as_dwarf2_debug_line=yes
11827    fi
11828     else
11829       echo "configure: failed program was" >&5
11830       cat conftest.s >&5
11831     fi
11832     rm -f conftest.o conftest.s
11833   fi
11834 fi
11835 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11836 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11837
11838
11839 # The .debug_line file table must be in the exact order that
11840 # we specified the files, since these indices are also used
11841 # by DW_AT_decl_file.  Approximate this test by testing if
11842 # the assembler bitches if the same index is assigned twice.
11843  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11844 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11845 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11846   echo $ECHO_N "(cached) $ECHO_C" >&6
11847 else
11848   gcc_cv_as_dwarf2_file_buggy=no
11849   if test x$gcc_cv_as != x; then
11850     echo '      .file 1 "foo.s"
11851         .file 1 "bar.s"' > conftest.s
11852     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854   (eval $ac_try) 2>&5
11855   ac_status=$?
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); }; }
11858     then
11859         gcc_cv_as_dwarf2_file_buggy=yes
11860     else
11861       echo "configure: failed program was" >&5
11862       cat conftest.s >&5
11863     fi
11864     rm -f conftest.o conftest.s
11865   fi
11866 fi
11867 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11868 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11869
11870
11871  if test $gcc_cv_as_dwarf2_debug_line = yes \
11872  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11873
11874 cat >>confdefs.h <<\_ACEOF
11875 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11876 _ACEOF
11877
11878  fi
11879
11880  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11881 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11882 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   gcc_cv_as_gdwarf2_flag=no
11886     if test $in_tree_gas = yes; then
11887     if test $in_tree_gas_is_elf = yes \
11888   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11889   then gcc_cv_as_gdwarf2_flag=yes
11890 fi
11891   elif test x$gcc_cv_as != x; then
11892     echo "$insn" > conftest.s
11893     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; }
11899     then
11900         gcc_cv_as_gdwarf2_flag=yes
11901     else
11902       echo "configure: failed program was" >&5
11903       cat conftest.s >&5
11904     fi
11905     rm -f conftest.o conftest.s
11906   fi
11907 fi
11908 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11909 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11910 if test $gcc_cv_as_gdwarf2_flag = yes; then
11911
11912 cat >>confdefs.h <<\_ACEOF
11913 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11914 _ACEOF
11915
11916 fi
11917
11918  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11919 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11920 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11921   echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923   gcc_cv_as_gstabs_flag=no
11924     if test $in_tree_gas = yes; then
11925     if test $in_tree_gas_is_elf = yes \
11926   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11927   then gcc_cv_as_gstabs_flag=yes
11928 fi
11929   elif test x$gcc_cv_as != x; then
11930     echo "$insn" > conftest.s
11931     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933   (eval $ac_try) 2>&5
11934   ac_status=$?
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); }; }
11937     then
11938         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11939    # and warns about it, but still exits successfully.  So check for
11940    # this.
11941    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943   (eval $ac_try) 2>&5
11944   ac_status=$?
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); }; }
11947    then :
11948    else gcc_cv_as_gstabs_flag=yes
11949    fi
11950     else
11951       echo "configure: failed program was" >&5
11952       cat conftest.s >&5
11953     fi
11954     rm -f conftest.o conftest.s
11955   fi
11956 fi
11957 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11958 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11959 if test $gcc_cv_as_gstabs_flag = yes; then
11960
11961 cat >>confdefs.h <<\_ACEOF
11962 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11963 _ACEOF
11964
11965 fi
11966 fi
11967
11968 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11969 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11970 gcc_cv_ld_ro_rw_mix=unknown
11971 if test $in_tree_ld = yes ; then
11972   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 \
11973      && test $in_tree_ld_is_elf = yes; then
11974     gcc_cv_ld_ro_rw_mix=read-write
11975   fi
11976 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11977   echo '.section myfoosect, "a"' > conftest1.s
11978   echo '.section myfoosect, "aw"' > conftest2.s
11979   echo '.byte 1' >> conftest2.s
11980   echo '.section myfoosect, "a"' > conftest3.s
11981   echo '.byte 0' >> conftest3.s
11982   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11983      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11984      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11985      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11986         conftest2.o conftest3.o > /dev/null 2>&1; then
11987     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11988                          | sed -e '/myfoosect/!d' -e N`
11989     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11990       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11991         gcc_cv_ld_ro_rw_mix=read-only
11992       else
11993         gcc_cv_ld_ro_rw_mix=read-write
11994       fi
11995     fi
11996   fi
11997   rm -f conftest.* conftest[123].*
11998 fi
11999 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
12000
12001 cat >>confdefs.h <<\_ACEOF
12002 #define HAVE_LD_RO_RW_SECTION_MIXING 1
12003 _ACEOF
12004
12005 fi
12006 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
12007 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
12008
12009 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
12010 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
12011 gcc_cv_ld_eh_frame_hdr=no
12012 if test $in_tree_ld = yes ; then
12013   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 \
12014      && test $in_tree_ld_is_elf = yes; then
12015     gcc_cv_ld_eh_frame_hdr=yes
12016   fi
12017 elif test x$gcc_cv_ld != x; then
12018         # Check if linker supports --eh-frame-hdr option
12019         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
12020                 gcc_cv_ld_eh_frame_hdr=yes
12021         fi
12022 fi
12023 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
12024
12025 cat >>confdefs.h <<\_ACEOF
12026 #define HAVE_LD_EH_FRAME_HDR 1
12027 _ACEOF
12028
12029 fi
12030 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12031 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12032
12033 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12034 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12035 gcc_cv_ld_pie=no
12036 if test $in_tree_ld = yes ; then
12037   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 \
12038      && test $in_tree_ld_is_elf = yes; then
12039     gcc_cv_ld_pie=yes
12040   fi
12041 elif test x$gcc_cv_ld != x; then
12042         # Check if linker supports -pie option
12043         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12044                 gcc_cv_ld_pie=yes
12045         fi
12046 fi
12047 if test x"$gcc_cv_ld_pie" = xyes; then
12048
12049 cat >>confdefs.h <<\_ACEOF
12050 #define HAVE_LD_PIE 1
12051 _ACEOF
12052
12053 fi
12054 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12055 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12056
12057 # Miscellaneous target-specific checks.
12058 case "$target" in
12059   mips*-*-*)
12060     echo "$as_me:$LINENO: checking whether libgloss uses STARTUP directives consistently" >&5
12061 echo $ECHO_N "checking whether libgloss uses STARTUP directives consistently... $ECHO_C" >&6
12062     gcc_cv_mips_libgloss_startup=no
12063     gcc_cv_libgloss_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
12064     if test "x$exec_prefix" = xNONE; then
12065       if test "x$prefix" = xNONE; then
12066         test_prefix=/usr/local
12067       else
12068         test_prefix=$prefix
12069       fi
12070     else
12071       test_prefix=$exec_prefix
12072     fi
12073     for f in $gcc_cv_libgloss_srcdir/mips/idt.ld $test_prefix/$target_noncanonical/lib/idt.ld
12074     do
12075       if grep '^STARTUP' $f > /dev/null 2>&1; then
12076         gcc_cv_mips_libgloss_startup=yes
12077         break
12078       fi
12079     done
12080     if test x"$gcc_cv_mips_libgloss_startup" = xyes; then
12081
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
12084 _ACEOF
12085
12086     fi
12087     echo "$as_me:$LINENO: result: $gcc_cv_mips_libgloss_startup" >&5
12088 echo "${ECHO_T}$gcc_cv_mips_libgloss_startup" >&6
12089     ;;
12090 esac
12091
12092 if test x$with_sysroot = x && test x$host = x$target \
12093    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12094
12095 cat >>confdefs.h <<_ACEOF
12096 #define PREFIX_INCLUDE_DIR "$prefix/include"
12097 _ACEOF
12098
12099 fi
12100
12101 # Figure out what language subdirectories are present.
12102 # Look if the user specified --enable-languages="..."; if not, use
12103 # the environment variable $LANGUAGES if defined. $LANGUAGES might
12104 # go away some day.
12105 # NB:  embedded tabs in this IF block -- do not untabify
12106 if test x"${enable_languages+set}" != xset; then
12107         if test x"${LANGUAGES+set}" = xset; then
12108                 enable_languages="${LANGUAGES}"
12109                 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
12110 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
12111
12112         else
12113                 enable_languages=all
12114         fi
12115 else
12116         if test x"${enable_languages}" = x \
12117         || test x"${enable_languages}" = xyes;
12118         then
12119                 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
12120 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
12121    { (exit 1); exit 1; }; }
12122         fi
12123 fi
12124 enable_languages=`echo "${enable_languages}" | sed -e 's/[      ,][     ,]*/,/g' -e 's/,$//'`
12125
12126 # First scan to see if an enabled language requires some other language.
12127 # We assume that a given config-lang.in will list all the language
12128 # front ends it requires, even if some are required indirectly.
12129 for lang in ${srcdir}/*/config-lang.in
12130 do
12131    case $lang in
12132     # The odd quoting in the next line works around
12133     # an apparent bug in bash 1.12 on linux.
12134     ${srcdir}/[*]/config-lang.in)
12135        ;;
12136     *)
12137        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^      ]*\).*$,\1,p' $lang`
12138        this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^    ]*\).*$,\1,p' $lang`
12139        for other in $this_lang_requires
12140        do
12141           case ,${enable_languages}, in
12142            *,$other,*)
12143               ;;
12144            *,all,*)
12145               ;;
12146            *,$lang_alias,*)
12147               enable_languages="$enable_languages,$other"
12148               ;;
12149           esac
12150        done
12151        ;;
12152    esac
12153 done
12154
12155 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's:  *: :g' -e 's:  *: :g' -e 's:^ ::' -e 's: $::'`
12156 found_languages=
12157 subdirs=
12158 for lang in ${srcdir}/*/config-lang.in
12159 do
12160         case $lang in
12161         # The odd quoting in the next line works around
12162         # an apparent bug in bash 1.12 on linux.
12163         ${srcdir}/[*]/config-lang.in) ;;
12164         *)
12165           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
12166           this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^         ]*\).*$,\1,p' $lang`
12167           build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^     ]*\).*$,\1,p' $lang`
12168           if test "x$lang_alias" = x
12169           then
12170                 echo "$lang doesn't set \$language." 1>&2
12171                 exit 1
12172           fi
12173           case ${build_by_default},${enable_languages}, in
12174           *,$lang_alias,*) add_this_lang=yes ;;
12175           no,*) add_this_lang=no ;;
12176           *,all,*) add_this_lang=yes ;;
12177           *) add_this_lang=no ;;
12178           esac
12179           found_languages="${found_languages} ${lang_alias}"
12180           if test x"${add_this_lang}" = xyes; then
12181                 case $lang in
12182                     ${srcdir}/ada/config-lang.in)
12183                         if test x$have_gnat = xyes ; then
12184                                 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12185                         fi
12186                         ;;
12187                     *)
12188                         subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12189                         ;;
12190                 esac
12191           fi
12192           ;;
12193         esac
12194 done
12195
12196 missing_languages=
12197 for expected_language in ${expected_languages} ..
12198 do
12199     if test "${expected_language}" != ..; then
12200         missing_language="${expected_language}"
12201         if test "${expected_language}" = "c" \
12202            || test "${expected_language}" = "all"; then
12203                 missing_language=
12204         fi
12205         for found_language in ${found_languages} ..
12206         do
12207             if test "${found_language}" != ..; then
12208                 if test "${expected_language}" = "${found_language}"; then
12209                     missing_language=
12210                 fi
12211             fi
12212         done
12213         if test "x${missing_language}" != x; then
12214            missing_languages="${missing_languages} ${missing_language}"
12215         fi
12216     fi
12217 done
12218
12219 if test "x$missing_languages" != x; then
12220   { { echo "$as_me:$LINENO: error:
12221 The following requested languages were not found:${missing_languages}
12222 The following languages were available: c${found_languages}" >&5
12223 echo "$as_me: error:
12224 The following requested languages were not found:${missing_languages}
12225 The following languages were available: c${found_languages}" >&2;}
12226    { (exit 1); exit 1; }; }
12227 fi
12228
12229 # Make gthr-default.h if we have a thread file.
12230 gthread_flags=
12231 if test $thread_file != single; then
12232     rm -f gthr-default.h
12233     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12234     gthread_flags=-DHAVE_GTHR_DEFAULT
12235 fi
12236
12237
12238 # Find out what GC implementation we want, or may, use.
12239
12240 # Check whether --with-gc or --without-gc was given.
12241 if test "${with_gc+set}" = set; then
12242   withval="$with_gc"
12243   case "$withval" in
12244   simple | page | zone)
12245     GGC=ggc-$withval
12246     ;;
12247   *)
12248     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12249 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12250    { (exit 1); exit 1; }; }
12251     ;;
12252 esac
12253 else
12254   GGC=ggc-page
12255 fi;
12256
12257 echo "Using $GGC for garbage collection."
12258
12259 # Use the system's zlib library.
12260 zlibdir=-L../zlib
12261 zlibinc="-I\$(srcdir)/../zlib"
12262
12263 # Check whether --with-system-zlib or --without-system-zlib was given.
12264 if test "${with_system_zlib+set}" = set; then
12265   withval="$with_system_zlib"
12266   zlibdir=
12267 zlibinc=
12268
12269 fi;
12270
12271
12272
12273
12274 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12275 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12276     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12277 if test "${enable_maintainer_mode+set}" = set; then
12278   enableval="$enable_maintainer_mode"
12279   maintainer_mode=$enableval
12280 else
12281   maintainer_mode=no
12282 fi;
12283
12284 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12285 echo "${ECHO_T}$maintainer_mode" >&6
12286
12287 if test "$maintainer_mode" = "yes"; then
12288   MAINT=''
12289 else
12290   MAINT='#'
12291 fi
12292
12293 # Make empty files to contain the specs and options for each language.
12294 # Then add #include lines to for a compiler that has specs and/or options.
12295
12296 lang_opt_files=
12297 lang_specs_files=
12298 lang_tree_files=
12299 for subdir in . $subdirs
12300 do
12301         if test -f $srcdir/$subdir/lang.opt; then
12302             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12303         fi
12304         if test -f $srcdir/$subdir/lang-specs.h; then
12305             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12306         fi
12307         if test -f $srcdir/$subdir/$subdir-tree.def; then
12308             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12309         fi
12310 done
12311
12312 # These (without "all_") are set in each config-lang.in.
12313 # `language' must be a single word so is spelled singularly.
12314 all_languages=
12315 all_boot_languages=
12316 all_compilers=
12317 all_stagestuff=
12318 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
12319 # List of language makefile fragments.
12320 all_lang_makefrags=
12321 # List of language subdirectory makefiles.  Deprecated.
12322 all_lang_makefiles=
12323 # Files for gengtype
12324 all_gtfiles="$target_gtfiles"
12325 # Files for gengtype with language
12326 all_gtfiles_files_langs=
12327 all_gtfiles_files_files=
12328
12329 # Add the language fragments.
12330 # Languages are added via two mechanisms.  Some information must be
12331 # recorded in makefile variables, these are defined in config-lang.in.
12332 # We accumulate them and plug them into the main Makefile.
12333 # The other mechanism is a set of hooks for each of the main targets
12334 # like `clean', `install', etc.
12335
12336 language_hooks="Make-hooks"
12337
12338 for s in $subdirs
12339 do
12340                 language=
12341                 boot_language=
12342                 compilers=
12343                 stagestuff=
12344                 outputs=
12345                 gtfiles=
12346                 . ${srcdir}/$s/config-lang.in
12347                 if test "x$language" = x
12348                 then
12349                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12350                         exit 1
12351                 fi
12352                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12353                 if test -f ${srcdir}/$s/Makefile.in
12354                 then all_lang_makefiles="$s/Makefile"
12355                 fi
12356                 all_languages="$all_languages $language"
12357                 if test "x$boot_language" = xyes
12358                 then
12359                         all_boot_languages="$all_boot_languages $language"
12360                 fi
12361                 all_compilers="$all_compilers $compilers"
12362                 all_stagestuff="$all_stagestuff $stagestuff"
12363                 all_outputs="$all_outputs $outputs"
12364                 all_gtfiles="$all_gtfiles $gtfiles"
12365                 for f in $gtfiles
12366                 do
12367                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12368                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12369                 done
12370 done
12371
12372 # Pick up gtfiles for c
12373 gtfiles=
12374 s="c"
12375 . ${srcdir}/c-config-lang.in
12376 all_gtfiles="$all_gtfiles $gtfiles"
12377 for f in $gtfiles
12378 do
12379         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12380         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12381 done
12382
12383 check_languages=
12384 for language in $all_languages
12385 do
12386                 check_languages="$check_languages check-$language"
12387 done
12388
12389 # We link each language in with a set of hooks, reached indirectly via
12390 # lang.${target}.
12391
12392 rm -f Make-hooks
12393 touch Make-hooks
12394 target_list="all.build all.cross start.encap rest.encap tags \
12395         install-normal install-common install-man \
12396         uninstall \
12397         mostlyclean clean distclean maintainer-clean \
12398         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12399 for t in $target_list
12400 do
12401         x=
12402         for lang in $all_languages
12403         do
12404                         x="$x $lang.$t"
12405         done
12406         echo "lang.$t: $x" >> Make-hooks
12407 done
12408
12409 # Create .gdbinit.
12410
12411 echo "dir ." > .gdbinit
12412 echo "dir ${srcdir}" >> .gdbinit
12413 if test x$gdb_needs_out_file_path = xyes
12414 then
12415         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12416 fi
12417 if test "x$subdirs" != x; then
12418         for s in $subdirs
12419         do
12420                 echo "dir ${srcdir}/$s" >> .gdbinit
12421         done
12422 fi
12423 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12424
12425 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12426 # absolute path for gcc_tooldir based on inserting the number of up-directory
12427 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12428 # $(libsubdir)/@(unlibsubdir) based path.
12429 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12430 # make and thus we'd get different behavior depending on where we built the
12431 # sources.
12432 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12433     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12434 else
12435 # An explanation of the sed strings:
12436 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
12437 #  -e 's|/$||'            match a trailing forward slash and eliminates it
12438 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
12439 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
12440 #
12441 # (*) Note this pattern overwrites the first character of the string
12442 # with a forward slash if one is not already present.  This is not a
12443 # problem because the exact names of the sub-directories concerned is
12444 # unimportant, just the number of them matters.
12445 #
12446 # The practical upshot of these patterns is like this:
12447 #
12448 #  prefix     exec_prefix        result
12449 #  ------     -----------        ------
12450 #   /foo        /foo/bar          ../
12451 #   /foo/       /foo/bar          ../
12452 #   /foo        /foo/bar/         ../
12453 #   /foo/       /foo/bar/         ../
12454 #   /foo        /foo/bar/ugg      ../../
12455 #
12456     dollar='$$'
12457     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12458 fi
12459
12460
12461
12462 # Find a directory in which to install a shared libgcc.
12463
12464 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12465 if test "${enable_version_specific_runtime_libs+set}" = set; then
12466   enableval="$enable_version_specific_runtime_libs"
12467
12468 fi;
12469
12470
12471 # Check whether --with-slibdir or --without-slibdir was given.
12472 if test "${with_slibdir+set}" = set; then
12473   withval="$with_slibdir"
12474   slibdir="$with_slibdir"
12475 else
12476   if test "${enable_version_specific_runtime_libs+set}" = set; then
12477   slibdir='$(libsubdir)'
12478 elif test "$host" != "$target"; then
12479   slibdir='$(build_tooldir)/lib'
12480 else
12481   slibdir='$(libdir)'
12482 fi
12483 fi;
12484
12485
12486 objdir=`${PWDCMD-pwd}`
12487
12488
12489 # Substitute configuration variables
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560 # Echo link setup.
12561 if test x${build} = x${host} ; then
12562   if test x${host} = x${target} ; then
12563     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12564   else
12565     echo "Links are now set up to build a cross-compiler" 1>&2
12566     echo " from ${host} to ${target}." 1>&2
12567   fi
12568 else
12569   if test x${host} = x${target} ; then
12570     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12571     echo " for ${target}." 1>&2
12572   else
12573     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12574     echo " from ${host} to ${target}." 1>&2
12575   fi
12576 fi
12577
12578 # Configure the subdirectories
12579 # AC_CONFIG_SUBDIRS($subdirs)
12580
12581 # Create the Makefile
12582 # and configure language subdirectories
12583           ac_config_files="$ac_config_files $all_outputs"
12584           ac_config_commands="$ac_config_commands default"
12585 cat >confcache <<\_ACEOF
12586 # This file is a shell script that caches the results of configure
12587 # tests run on this system so they can be shared between configure
12588 # scripts and configure runs, see configure's option --config-cache.
12589 # It is not useful on other systems.  If it contains results you don't
12590 # want to keep, you may remove or edit it.
12591 #
12592 # config.status only pays attention to the cache file if you give it
12593 # the --recheck option to rerun configure.
12594 #
12595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12597 # following values.
12598
12599 _ACEOF
12600
12601 # The following way of writing the cache mishandles newlines in values,
12602 # but we know of no workaround that is simple, portable, and efficient.
12603 # So, don't put newlines in cache variables' values.
12604 # Ultrix sh set writes to stderr and can't be redirected directly,
12605 # and sets the high bit in the cache file unless we assign to the vars.
12606 {
12607   (set) 2>&1 |
12608     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12609     *ac_space=\ *)
12610       # `set' does not quote correctly, so add quotes (double-quote
12611       # substitution turns \\\\ into \\, and sed turns \\ into \).
12612       sed -n \
12613         "s/'/'\\\\''/g;
12614           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12615       ;;
12616     *)
12617       # `set' quotes correctly as required by POSIX, so do not add quotes.
12618       sed -n \
12619         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12620       ;;
12621     esac;
12622 } |
12623   sed '
12624      t clear
12625      : clear
12626      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12627      t end
12628      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12629      : end' >>confcache
12630 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12631   if test -w $cache_file; then
12632     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12633     cat confcache >$cache_file
12634   else
12635     echo "not updating unwritable cache $cache_file"
12636   fi
12637 fi
12638 rm -f confcache
12639
12640 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12641 # Let make expand exec_prefix.
12642 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12643
12644 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12645 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12646 # trailing colons and then remove the whole line if VPATH becomes empty
12647 # (actually we leave an empty line to preserve line numbers).
12648 if test "x$srcdir" = x.; then
12649   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12650 s/:*\$(srcdir):*/:/;
12651 s/:*\${srcdir}:*/:/;
12652 s/:*@srcdir@:*/:/;
12653 s/^\([^=]*=[     ]*\):*/\1/;
12654 s/:*$//;
12655 s/^[^=]*=[       ]*$//;
12656 }'
12657 fi
12658
12659 DEFS=-DHAVE_CONFIG_H
12660
12661 ac_libobjs=
12662 ac_ltlibobjs=
12663 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12664   # 1. Remove the extension, and $U if already installed.
12665   ac_i=`echo "$ac_i" |
12666          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12667   # 2. Add them.
12668   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12669   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12670 done
12671 LIBOBJS=$ac_libobjs
12672
12673 LTLIBOBJS=$ac_ltlibobjs
12674
12675
12676
12677 : ${CONFIG_STATUS=./config.status}
12678 ac_clean_files_save=$ac_clean_files
12679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12680 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12681 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12682 cat >$CONFIG_STATUS <<_ACEOF
12683 #! $SHELL
12684 # Generated by $as_me.
12685 # Run this file to recreate the current configuration.
12686 # Compiler output produced by configure, useful for debugging
12687 # configure, is in config.log if it exists.
12688
12689 debug=false
12690 ac_cs_recheck=false
12691 ac_cs_silent=false
12692 SHELL=\${CONFIG_SHELL-$SHELL}
12693 _ACEOF
12694
12695 cat >>$CONFIG_STATUS <<\_ACEOF
12696 ## --------------------- ##
12697 ## M4sh Initialization.  ##
12698 ## --------------------- ##
12699
12700 # Be Bourne compatible
12701 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12702   emulate sh
12703   NULLCMD=:
12704   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12705   # is contrary to our usage.  Disable this feature.
12706   alias -g '${1+"$@"}'='"$@"'
12707 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12708   set -o posix
12709 fi
12710 DUALCASE=1; export DUALCASE # for MKS sh
12711
12712 # Support unset when possible.
12713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12714   as_unset=unset
12715 else
12716   as_unset=false
12717 fi
12718
12719
12720 # Work around bugs in pre-3.0 UWIN ksh.
12721 $as_unset ENV MAIL MAILPATH
12722 PS1='$ '
12723 PS2='> '
12724 PS4='+ '
12725
12726 # NLS nuisances.
12727 for as_var in \
12728   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12729   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12730   LC_TELEPHONE LC_TIME
12731 do
12732   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12733     eval $as_var=C; export $as_var
12734   else
12735     $as_unset $as_var
12736   fi
12737 done
12738
12739 # Required to use basename.
12740 if expr a : '\(a\)' >/dev/null 2>&1; then
12741   as_expr=expr
12742 else
12743   as_expr=false
12744 fi
12745
12746 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12747   as_basename=basename
12748 else
12749   as_basename=false
12750 fi
12751
12752
12753 # Name of the executable.
12754 as_me=`$as_basename "$0" ||
12755 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12756          X"$0" : 'X\(//\)$' \| \
12757          X"$0" : 'X\(/\)$' \| \
12758          .     : '\(.\)' 2>/dev/null ||
12759 echo X/"$0" |
12760     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12761           /^X\/\(\/\/\)$/{ s//\1/; q; }
12762           /^X\/\(\/\).*/{ s//\1/; q; }
12763           s/.*/./; q'`
12764
12765
12766 # PATH needs CR, and LINENO needs CR and PATH.
12767 # Avoid depending upon Character Ranges.
12768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12771 as_cr_digits='0123456789'
12772 as_cr_alnum=$as_cr_Letters$as_cr_digits
12773
12774 # The user is always right.
12775 if test "${PATH_SEPARATOR+set}" != set; then
12776   echo "#! /bin/sh" >conf$$.sh
12777   echo  "exit 0"   >>conf$$.sh
12778   chmod +x conf$$.sh
12779   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12780     PATH_SEPARATOR=';'
12781   else
12782     PATH_SEPARATOR=:
12783   fi
12784   rm -f conf$$.sh
12785 fi
12786
12787
12788   as_lineno_1=$LINENO
12789   as_lineno_2=$LINENO
12790   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12791   test "x$as_lineno_1" != "x$as_lineno_2" &&
12792   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12793   # Find who we are.  Look in the path if we contain no path at all
12794   # relative or not.
12795   case $0 in
12796     *[\\/]* ) as_myself=$0 ;;
12797     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12799 do
12800   IFS=$as_save_IFS
12801   test -z "$as_dir" && as_dir=.
12802   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12803 done
12804
12805        ;;
12806   esac
12807   # We did not find ourselves, most probably we were run as `sh COMMAND'
12808   # in which case we are not to be found in the path.
12809   if test "x$as_myself" = x; then
12810     as_myself=$0
12811   fi
12812   if test ! -f "$as_myself"; then
12813     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12814 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12815    { (exit 1); exit 1; }; }
12816   fi
12817   case $CONFIG_SHELL in
12818   '')
12819     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12821 do
12822   IFS=$as_save_IFS
12823   test -z "$as_dir" && as_dir=.
12824   for as_base in sh bash ksh sh5; do
12825          case $as_dir in
12826          /*)
12827            if ("$as_dir/$as_base" -c '
12828   as_lineno_1=$LINENO
12829   as_lineno_2=$LINENO
12830   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12831   test "x$as_lineno_1" != "x$as_lineno_2" &&
12832   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12833              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12834              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12835              CONFIG_SHELL=$as_dir/$as_base
12836              export CONFIG_SHELL
12837              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12838            fi;;
12839          esac
12840        done
12841 done
12842 ;;
12843   esac
12844
12845   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12846   # uniformly replaced by the line number.  The first 'sed' inserts a
12847   # line-number line before each line; the second 'sed' does the real
12848   # work.  The second script uses 'N' to pair each line-number line
12849   # with the numbered line, and appends trailing '-' during
12850   # substitution so that $LINENO is not a special case at line end.
12851   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12852   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12853   sed '=' <$as_myself |
12854     sed '
12855       N
12856       s,$,-,
12857       : loop
12858       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12859       t loop
12860       s,-$,,
12861       s,^['$as_cr_digits']*\n,,
12862     ' >$as_me.lineno &&
12863   chmod +x $as_me.lineno ||
12864     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12865 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12866    { (exit 1); exit 1; }; }
12867
12868   # Don't try to exec as it changes $[0], causing all sort of problems
12869   # (the dirname of $[0] is not the place where we might find the
12870   # original and so on.  Autoconf is especially sensible to this).
12871   . ./$as_me.lineno
12872   # Exit status is that of the last command.
12873   exit
12874 }
12875
12876
12877 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12878   *c*,-n*) ECHO_N= ECHO_C='
12879 ' ECHO_T='      ' ;;
12880   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12881   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12882 esac
12883
12884 if expr a : '\(a\)' >/dev/null 2>&1; then
12885   as_expr=expr
12886 else
12887   as_expr=false
12888 fi
12889
12890 rm -f conf$$ conf$$.exe conf$$.file
12891 echo >conf$$.file
12892 if ln -s conf$$.file conf$$ 2>/dev/null; then
12893   # We could just check for DJGPP; but this test a) works b) is more generic
12894   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12895   if test -f conf$$.exe; then
12896     # Don't use ln at all; we don't have any links
12897     as_ln_s='cp -p'
12898   else
12899     as_ln_s='ln -s'
12900   fi
12901 elif ln conf$$.file conf$$ 2>/dev/null; then
12902   as_ln_s=ln
12903 else
12904   as_ln_s='cp -p'
12905 fi
12906 rm -f conf$$ conf$$.exe conf$$.file
12907
12908 if mkdir -p . 2>/dev/null; then
12909   as_mkdir_p=:
12910 else
12911   test -d ./-p && rmdir ./-p
12912   as_mkdir_p=false
12913 fi
12914
12915 as_executable_p="test -f"
12916
12917 # Sed expression to map a string onto a valid CPP name.
12918 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12919
12920 # Sed expression to map a string onto a valid variable name.
12921 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12922
12923
12924 # IFS
12925 # We need space, tab and new line, in precisely that order.
12926 as_nl='
12927 '
12928 IFS="   $as_nl"
12929
12930 # CDPATH.
12931 $as_unset CDPATH
12932
12933 exec 6>&1
12934
12935 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12936 # report actual input values of CONFIG_FILES etc. instead of their
12937 # values after options handling.  Logging --version etc. is OK.
12938 exec 5>>config.log
12939 {
12940   echo
12941   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12942 ## Running $as_me. ##
12943 _ASBOX
12944 } >&5
12945 cat >&5 <<_CSEOF
12946
12947 This file was extended by $as_me, which was
12948 generated by GNU Autoconf 2.58.  Invocation command line was
12949
12950   CONFIG_FILES    = $CONFIG_FILES
12951   CONFIG_HEADERS  = $CONFIG_HEADERS
12952   CONFIG_LINKS    = $CONFIG_LINKS
12953   CONFIG_COMMANDS = $CONFIG_COMMANDS
12954   $ $0 $@
12955
12956 _CSEOF
12957 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12958 echo >&5
12959 _ACEOF
12960
12961 # Files that config.status was made for.
12962 if test -n "$ac_config_files"; then
12963   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12964 fi
12965
12966 if test -n "$ac_config_headers"; then
12967   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12968 fi
12969
12970 if test -n "$ac_config_links"; then
12971   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12972 fi
12973
12974 if test -n "$ac_config_commands"; then
12975   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12976 fi
12977
12978 cat >>$CONFIG_STATUS <<\_ACEOF
12979
12980 ac_cs_usage="\
12981 \`$as_me' instantiates files from templates according to the
12982 current configuration.
12983
12984 Usage: $0 [OPTIONS] [FILE]...
12985
12986   -h, --help       print this help, then exit
12987   -V, --version    print version number, then exit
12988   -q, --quiet      do not print progress messages
12989   -d, --debug      don't remove temporary files
12990       --recheck    update $as_me by reconfiguring in the same conditions
12991   --file=FILE[:TEMPLATE]
12992                    instantiate the configuration file FILE
12993   --header=FILE[:TEMPLATE]
12994                    instantiate the configuration header FILE
12995
12996 Configuration files:
12997 $config_files
12998
12999 Configuration headers:
13000 $config_headers
13001
13002 Configuration commands:
13003 $config_commands
13004
13005 Report bugs to <bug-autoconf@gnu.org>."
13006 _ACEOF
13007
13008 cat >>$CONFIG_STATUS <<_ACEOF
13009 ac_cs_version="\\
13010 config.status
13011 configured by $0, generated by GNU Autoconf 2.58,
13012   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13013
13014 Copyright (C) 2003 Free Software Foundation, Inc.
13015 This config.status script is free software; the Free Software Foundation
13016 gives unlimited permission to copy, distribute and modify it."
13017 srcdir=$srcdir
13018 _ACEOF
13019
13020 cat >>$CONFIG_STATUS <<\_ACEOF
13021 # If no file are specified by the user, then we need to provide default
13022 # value.  By we need to know if files were specified by the user.
13023 ac_need_defaults=:
13024 while test $# != 0
13025 do
13026   case $1 in
13027   --*=*)
13028     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13029     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13030     ac_shift=:
13031     ;;
13032   -*)
13033     ac_option=$1
13034     ac_optarg=$2
13035     ac_shift=shift
13036     ;;
13037   *) # This is not an option, so the user has probably given explicit
13038      # arguments.
13039      ac_option=$1
13040      ac_need_defaults=false;;
13041   esac
13042
13043   case $ac_option in
13044   # Handling of the options.
13045 _ACEOF
13046 cat >>$CONFIG_STATUS <<\_ACEOF
13047   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13048     ac_cs_recheck=: ;;
13049   --version | --vers* | -V )
13050     echo "$ac_cs_version"; exit 0 ;;
13051   --he | --h)
13052     # Conflict between --help and --header
13053     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13054 Try \`$0 --help' for more information." >&5
13055 echo "$as_me: error: ambiguous option: $1
13056 Try \`$0 --help' for more information." >&2;}
13057    { (exit 1); exit 1; }; };;
13058   --help | --hel | -h )
13059     echo "$ac_cs_usage"; exit 0 ;;
13060   --debug | --d* | -d )
13061     debug=: ;;
13062   --file | --fil | --fi | --f )
13063     $ac_shift
13064     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13065     ac_need_defaults=false;;
13066   --header | --heade | --head | --hea )
13067     $ac_shift
13068     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13069     ac_need_defaults=false;;
13070   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13071   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13072     ac_cs_silent=: ;;
13073
13074   # This is an error.
13075   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13076 Try \`$0 --help' for more information." >&5
13077 echo "$as_me: error: unrecognized option: $1
13078 Try \`$0 --help' for more information." >&2;}
13079    { (exit 1); exit 1; }; } ;;
13080
13081   *) ac_config_targets="$ac_config_targets $1" ;;
13082
13083   esac
13084   shift
13085 done
13086
13087 ac_configure_extra_args=
13088
13089 if $ac_cs_silent; then
13090   exec 6>/dev/null
13091   ac_configure_extra_args="$ac_configure_extra_args --silent"
13092 fi
13093
13094 _ACEOF
13095 cat >>$CONFIG_STATUS <<_ACEOF
13096 if \$ac_cs_recheck; then
13097   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13098   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13099 fi
13100
13101 _ACEOF
13102
13103 cat >>$CONFIG_STATUS <<_ACEOF
13104 #
13105 # INIT-COMMANDS section.
13106 #
13107
13108 subdirs='$subdirs'
13109 symbolic_link='$symbolic_link'
13110
13111
13112 _ACEOF
13113
13114
13115
13116 cat >>$CONFIG_STATUS <<\_ACEOF
13117 for ac_config_target in $ac_config_targets
13118 do
13119   case "$ac_config_target" in
13120   # Handling of arguments.
13121   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13122   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13123   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13124   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13125 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13126    { (exit 1); exit 1; }; };;
13127   esac
13128 done
13129
13130 # If the user did not use the arguments to specify the items to instantiate,
13131 # then the envvar interface is used.  Set only those that are not.
13132 # We use the long form for the default assignment because of an extremely
13133 # bizarre bug on SunOS 4.1.3.
13134 if $ac_need_defaults; then
13135   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13136   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13137   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13138 fi
13139
13140 # Have a temporary directory for convenience.  Make it in the build tree
13141 # simply because there is no reason to put it here, and in addition,
13142 # creating and moving files from /tmp can sometimes cause problems.
13143 # Create a temporary directory, and hook for its removal unless debugging.
13144 $debug ||
13145 {
13146   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13147   trap '{ (exit 1); exit 1; }' 1 2 13 15
13148 }
13149
13150 # Create a (secure) tmp directory for tmp files.
13151
13152 {
13153   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13154   test -n "$tmp" && test -d "$tmp"
13155 }  ||
13156 {
13157   tmp=./confstat$$-$RANDOM
13158   (umask 077 && mkdir $tmp)
13159 } ||
13160 {
13161    echo "$me: cannot create a temporary directory in ." >&2
13162    { (exit 1); exit 1; }
13163 }
13164
13165 _ACEOF
13166
13167 cat >>$CONFIG_STATUS <<_ACEOF
13168
13169 #
13170 # CONFIG_FILES section.
13171 #
13172
13173 # No need to generate the scripts if there are no CONFIG_FILES.
13174 # This happens for instance when ./config.status config.h
13175 if test -n "\$CONFIG_FILES"; then
13176   # Protect against being on the right side of a sed subst in config.status.
13177   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13178    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13179 s,@SHELL@,$SHELL,;t t
13180 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13181 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13182 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13183 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13184 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13185 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13186 s,@exec_prefix@,$exec_prefix,;t t
13187 s,@prefix@,$prefix,;t t
13188 s,@program_transform_name@,$program_transform_name,;t t
13189 s,@bindir@,$bindir,;t t
13190 s,@sbindir@,$sbindir,;t t
13191 s,@libexecdir@,$libexecdir,;t t
13192 s,@datadir@,$datadir,;t t
13193 s,@sysconfdir@,$sysconfdir,;t t
13194 s,@sharedstatedir@,$sharedstatedir,;t t
13195 s,@localstatedir@,$localstatedir,;t t
13196 s,@libdir@,$libdir,;t t
13197 s,@includedir@,$includedir,;t t
13198 s,@oldincludedir@,$oldincludedir,;t t
13199 s,@infodir@,$infodir,;t t
13200 s,@mandir@,$mandir,;t t
13201 s,@build_alias@,$build_alias,;t t
13202 s,@host_alias@,$host_alias,;t t
13203 s,@target_alias@,$target_alias,;t t
13204 s,@DEFS@,$DEFS,;t t
13205 s,@ECHO_C@,$ECHO_C,;t t
13206 s,@ECHO_N@,$ECHO_N,;t t
13207 s,@ECHO_T@,$ECHO_T,;t t
13208 s,@LIBS@,$LIBS,;t t
13209 s,@build@,$build,;t t
13210 s,@build_cpu@,$build_cpu,;t t
13211 s,@build_vendor@,$build_vendor,;t t
13212 s,@build_os@,$build_os,;t t
13213 s,@host@,$host,;t t
13214 s,@host_cpu@,$host_cpu,;t t
13215 s,@host_vendor@,$host_vendor,;t t
13216 s,@host_os@,$host_os,;t t
13217 s,@target@,$target,;t t
13218 s,@target_cpu@,$target_cpu,;t t
13219 s,@target_vendor@,$target_vendor,;t t
13220 s,@target_os@,$target_os,;t t
13221 s,@build_subdir@,$build_subdir,;t t
13222 s,@host_subdir@,$host_subdir,;t t
13223 s,@target_subdir@,$target_subdir,;t t
13224 s,@CC@,$CC,;t t
13225 s,@CFLAGS@,$CFLAGS,;t t
13226 s,@LDFLAGS@,$LDFLAGS,;t t
13227 s,@CPPFLAGS@,$CPPFLAGS,;t t
13228 s,@ac_ct_CC@,$ac_ct_CC,;t t
13229 s,@EXEEXT@,$EXEEXT,;t t
13230 s,@OBJEXT@,$OBJEXT,;t t
13231 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13232 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13233 s,@CPP@,$CPP,;t t
13234 s,@GNATBIND@,$GNATBIND,;t t
13235 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13236 s,@strict1_warn@,$strict1_warn,;t t
13237 s,@warn_cflags@,$warn_cflags,;t t
13238 s,@WERROR@,$WERROR,;t t
13239 s,@nocommon_flag@,$nocommon_flag,;t t
13240 s,@EGREP@,$EGREP,;t t
13241 s,@valgrind_path@,$valgrind_path,;t t
13242 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13243 s,@valgrind_command@,$valgrind_command,;t t
13244 s,@coverage_flags@,$coverage_flags,;t t
13245 s,@enable_multilib@,$enable_multilib,;t t
13246 s,@enable_shared@,$enable_shared,;t t
13247 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13248 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13249 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13250 s,@onestep@,$onestep,;t t
13251 s,@SET_MAKE@,$SET_MAKE,;t t
13252 s,@AWK@,$AWK,;t t
13253 s,@LN@,$LN,;t t
13254 s,@LN_S@,$LN_S,;t t
13255 s,@RANLIB@,$RANLIB,;t t
13256 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13257 s,@INSTALL@,$INSTALL,;t t
13258 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13259 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13260 s,@make_compare_target@,$make_compare_target,;t t
13261 s,@have_mktemp_command@,$have_mktemp_command,;t t
13262 s,@MAKEINFO@,$MAKEINFO,;t t
13263 s,@BUILD_INFO@,$BUILD_INFO,;t t
13264 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13265 s,@FLEX@,$FLEX,;t t
13266 s,@BISON@,$BISON,;t t
13267 s,@stage1_cflags@,$stage1_cflags,;t t
13268 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13269 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13270 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13271 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13272 s,@LIBICONV@,$LIBICONV,;t t
13273 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13274 s,@manext@,$manext,;t t
13275 s,@objext@,$objext,;t t
13276 s,@extra_modes_file@,$extra_modes_file,;t t
13277 s,@FORBUILD@,$FORBUILD,;t t
13278 s,@PACKAGE@,$PACKAGE,;t t
13279 s,@VERSION@,$VERSION,;t t
13280 s,@USE_NLS@,$USE_NLS,;t t
13281 s,@LIBINTL@,$LIBINTL,;t t
13282 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13283 s,@INCINTL@,$INCINTL,;t t
13284 s,@XGETTEXT@,$XGETTEXT,;t t
13285 s,@GMSGFMT@,$GMSGFMT,;t t
13286 s,@POSUB@,$POSUB,;t t
13287 s,@CATALOGS@,$CATALOGS,;t t
13288 s,@CROSS@,$CROSS,;t t
13289 s,@ALL@,$ALL,;t t
13290 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13291 s,@inhibit_libc@,$inhibit_libc,;t t
13292 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13293 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13294 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13295 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13296 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13297 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13298 s,@libgcc_visibility@,$libgcc_visibility,;t t
13299 s,@gthread_flags@,$gthread_flags,;t t
13300 s,@GGC@,$GGC,;t t
13301 s,@zlibdir@,$zlibdir,;t t
13302 s,@zlibinc@,$zlibinc,;t t
13303 s,@MAINT@,$MAINT,;t t
13304 s,@gcc_tooldir@,$gcc_tooldir,;t t
13305 s,@dollar@,$dollar,;t t
13306 s,@slibdir@,$slibdir,;t t
13307 s,@objdir@,$objdir,;t t
13308 s,@subdirs@,$subdirs,;t t
13309 s,@srcdir@,$srcdir,;t t
13310 s,@docobjdir@,$docobjdir,;t t
13311 s,@parsedir@,$parsedir,;t t
13312 s,@all_boot_languages@,$all_boot_languages,;t t
13313 s,@all_compilers@,$all_compilers,;t t
13314 s,@all_gtfiles@,$all_gtfiles,;t t
13315 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13316 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13317 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13318 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13319 s,@all_languages@,$all_languages,;t t
13320 s,@all_stagestuff@,$all_stagestuff,;t t
13321 s,@build_exeext@,$build_exeext,;t t
13322 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13323 s,@build_xm_file_list@,$build_xm_file_list,;t t
13324 s,@build_xm_include_list@,$build_xm_include_list,;t t
13325 s,@build_xm_defines@,$build_xm_defines,;t t
13326 s,@check_languages@,$check_languages,;t t
13327 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13328 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13329 s,@cpp_install_dir@,$cpp_install_dir,;t t
13330 s,@xmake_file@,$xmake_file,;t t
13331 s,@tmake_file@,$tmake_file,;t t
13332 s,@extra_headers_list@,$extra_headers_list,;t t
13333 s,@extra_objs@,$extra_objs,;t t
13334 s,@extra_parts@,$extra_parts,;t t
13335 s,@extra_passes@,$extra_passes,;t t
13336 s,@extra_programs@,$extra_programs,;t t
13337 s,@float_h_file@,$float_h_file,;t t
13338 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13339 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13340 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13341 s,@gcc_version@,$gcc_version,;t t
13342 s,@gcc_version_full@,$gcc_version_full,;t t
13343 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13344 s,@host_exeext@,$host_exeext,;t t
13345 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
13346 s,@host_xm_file_list@,$host_xm_file_list,;t t
13347 s,@host_xm_include_list@,$host_xm_include_list,;t t
13348 s,@host_xm_defines@,$host_xm_defines,;t t
13349 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13350 s,@install@,$install,;t t
13351 s,@lang_opt_files@,$lang_opt_files,;t t
13352 s,@lang_specs_files@,$lang_specs_files,;t t
13353 s,@lang_tree_files@,$lang_tree_files,;t t
13354 s,@local_prefix@,$local_prefix,;t t
13355 s,@md_file@,$md_file,;t t
13356 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13357 s,@out_file@,$out_file,;t t
13358 s,@out_object_file@,$out_object_file,;t t
13359 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13360 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13361 s,@symbolic_link@,$symbolic_link,;t t
13362 s,@thread_file@,$thread_file,;t t
13363 s,@tm_file_list@,$tm_file_list,;t t
13364 s,@tm_include_list@,$tm_include_list,;t t
13365 s,@tm_defines@,$tm_defines,;t t
13366 s,@tm_p_file_list@,$tm_p_file_list,;t t
13367 s,@tm_p_include_list@,$tm_p_include_list,;t t
13368 s,@xm_file_list@,$xm_file_list,;t t
13369 s,@xm_include_list@,$xm_include_list,;t t
13370 s,@xm_defines@,$xm_defines,;t t
13371 s,@target_noncanonical@,$target_noncanonical,;t t
13372 s,@c_target_objs@,$c_target_objs,;t t
13373 s,@cxx_target_objs@,$cxx_target_objs,;t t
13374 s,@target_cpu_default@,$target_cpu_default,;t t
13375 s,@LIBOBJS@,$LIBOBJS,;t t
13376 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13377 /@language_hooks@/r $language_hooks
13378 s,@language_hooks@,,;t t
13379 CEOF
13380
13381 _ACEOF
13382
13383   cat >>$CONFIG_STATUS <<\_ACEOF
13384   # Split the substitutions into bite-sized pieces for seds with
13385   # small command number limits, like on Digital OSF/1 and HP-UX.
13386   ac_max_sed_lines=48
13387   ac_sed_frag=1 # Number of current file.
13388   ac_beg=1 # First line for current file.
13389   ac_end=$ac_max_sed_lines # Line after last line for current file.
13390   ac_more_lines=:
13391   ac_sed_cmds=
13392   while $ac_more_lines; do
13393     if test $ac_beg -gt 1; then
13394       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13395     else
13396       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13397     fi
13398     if test ! -s $tmp/subs.frag; then
13399       ac_more_lines=false
13400     else
13401       # The purpose of the label and of the branching condition is to
13402       # speed up the sed processing (if there are no `@' at all, there
13403       # is no need to browse any of the substitutions).
13404       # These are the two extra sed commands mentioned above.
13405       (echo ':t
13406   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13407       if test -z "$ac_sed_cmds"; then
13408         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13409       else
13410         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13411       fi
13412       ac_sed_frag=`expr $ac_sed_frag + 1`
13413       ac_beg=$ac_end
13414       ac_end=`expr $ac_end + $ac_max_sed_lines`
13415     fi
13416   done
13417   if test -z "$ac_sed_cmds"; then
13418     ac_sed_cmds=cat
13419   fi
13420 fi # test -n "$CONFIG_FILES"
13421
13422 _ACEOF
13423 cat >>$CONFIG_STATUS <<\_ACEOF
13424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13425   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13426   case $ac_file in
13427   - | *:- | *:-:* ) # input from stdin
13428         cat >$tmp/stdin
13429         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13430         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13431   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13432         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13433   * )   ac_file_in=$ac_file.in ;;
13434   esac
13435
13436   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13437   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13439          X"$ac_file" : 'X\(//\)[^/]' \| \
13440          X"$ac_file" : 'X\(//\)$' \| \
13441          X"$ac_file" : 'X\(/\)' \| \
13442          .     : '\(.\)' 2>/dev/null ||
13443 echo X"$ac_file" |
13444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13445           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13446           /^X\(\/\/\)$/{ s//\1/; q; }
13447           /^X\(\/\).*/{ s//\1/; q; }
13448           s/.*/./; q'`
13449   { if $as_mkdir_p; then
13450     mkdir -p "$ac_dir"
13451   else
13452     as_dir="$ac_dir"
13453     as_dirs=
13454     while test ! -d "$as_dir"; do
13455       as_dirs="$as_dir $as_dirs"
13456       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13458          X"$as_dir" : 'X\(//\)[^/]' \| \
13459          X"$as_dir" : 'X\(//\)$' \| \
13460          X"$as_dir" : 'X\(/\)' \| \
13461          .     : '\(.\)' 2>/dev/null ||
13462 echo X"$as_dir" |
13463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13464           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13465           /^X\(\/\/\)$/{ s//\1/; q; }
13466           /^X\(\/\).*/{ s//\1/; q; }
13467           s/.*/./; q'`
13468     done
13469     test ! -n "$as_dirs" || mkdir $as_dirs
13470   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13472    { (exit 1); exit 1; }; }; }
13473
13474   ac_builddir=.
13475
13476 if test "$ac_dir" != .; then
13477   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13478   # A "../" for each directory in $ac_dir_suffix.
13479   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13480 else
13481   ac_dir_suffix= ac_top_builddir=
13482 fi
13483
13484 case $srcdir in
13485   .)  # No --srcdir option.  We are building in place.
13486     ac_srcdir=.
13487     if test -z "$ac_top_builddir"; then
13488        ac_top_srcdir=.
13489     else
13490        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13491     fi ;;
13492   [\\/]* | ?:[\\/]* )  # Absolute path.
13493     ac_srcdir=$srcdir$ac_dir_suffix;
13494     ac_top_srcdir=$srcdir ;;
13495   *) # Relative path.
13496     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13497     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13498 esac
13499
13500 # Do not use `cd foo && pwd` to compute absolute paths, because
13501 # the directories may not exist.
13502 case `pwd` in
13503 .) ac_abs_builddir="$ac_dir";;
13504 *)
13505   case "$ac_dir" in
13506   .) ac_abs_builddir=`pwd`;;
13507   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13508   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13509   esac;;
13510 esac
13511 case $ac_abs_builddir in
13512 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13513 *)
13514   case ${ac_top_builddir}. in
13515   .) ac_abs_top_builddir=$ac_abs_builddir;;
13516   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13517   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13518   esac;;
13519 esac
13520 case $ac_abs_builddir in
13521 .) ac_abs_srcdir=$ac_srcdir;;
13522 *)
13523   case $ac_srcdir in
13524   .) ac_abs_srcdir=$ac_abs_builddir;;
13525   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13526   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13527   esac;;
13528 esac
13529 case $ac_abs_builddir in
13530 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13531 *)
13532   case $ac_top_srcdir in
13533   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13534   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13535   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13536   esac;;
13537 esac
13538
13539
13540
13541   if test x"$ac_file" != x-; then
13542     { echo "$as_me:$LINENO: creating $ac_file" >&5
13543 echo "$as_me: creating $ac_file" >&6;}
13544     rm -f "$ac_file"
13545   fi
13546   # Let's still pretend it is `configure' which instantiates (i.e., don't
13547   # use $as_me), people would be surprised to read:
13548   #    /* config.h.  Generated by config.status.  */
13549   if test x"$ac_file" = x-; then
13550     configure_input=
13551   else
13552     configure_input="$ac_file.  "
13553   fi
13554   configure_input=$configure_input"Generated from `echo $ac_file_in |
13555                                      sed 's,.*/,,'` by configure."
13556
13557   # First look for the input files in the build tree, otherwise in the
13558   # src tree.
13559   ac_file_inputs=`IFS=:
13560     for f in $ac_file_in; do
13561       case $f in
13562       -) echo $tmp/stdin ;;
13563       [\\/$]*)
13564          # Absolute (can't be DOS-style, as IFS=:)
13565          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13566 echo "$as_me: error: cannot find input file: $f" >&2;}
13567    { (exit 1); exit 1; }; }
13568          echo "$f";;
13569       *) # Relative
13570          if test -f "$f"; then
13571            # Build tree
13572            echo "$f"
13573          elif test -f "$srcdir/$f"; then
13574            # Source tree
13575            echo "$srcdir/$f"
13576          else
13577            # /dev/null tree
13578            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13579 echo "$as_me: error: cannot find input file: $f" >&2;}
13580    { (exit 1); exit 1; }; }
13581          fi;;
13582       esac
13583     done` || { (exit 1); exit 1; }
13584 _ACEOF
13585 cat >>$CONFIG_STATUS <<_ACEOF
13586   sed "$ac_vpsub
13587 $extrasub
13588 _ACEOF
13589 cat >>$CONFIG_STATUS <<\_ACEOF
13590 :t
13591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13592 s,@configure_input@,$configure_input,;t t
13593 s,@srcdir@,$ac_srcdir,;t t
13594 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13595 s,@top_srcdir@,$ac_top_srcdir,;t t
13596 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13597 s,@builddir@,$ac_builddir,;t t
13598 s,@abs_builddir@,$ac_abs_builddir,;t t
13599 s,@top_builddir@,$ac_top_builddir,;t t
13600 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13601 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13602   rm -f $tmp/stdin
13603   if test x"$ac_file" != x-; then
13604     mv $tmp/out $ac_file
13605   else
13606     cat $tmp/out
13607     rm -f $tmp/out
13608   fi
13609
13610 done
13611 _ACEOF
13612 cat >>$CONFIG_STATUS <<\_ACEOF
13613
13614 #
13615 # CONFIG_HEADER section.
13616 #
13617
13618 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13619 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13620 #
13621 # ac_d sets the value in "#define NAME VALUE" lines.
13622 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13623 ac_dB='[         ].*$,\1#\2'
13624 ac_dC=' '
13625 ac_dD=',;t'
13626 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13627 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13628 ac_uB='$,\1#\2define\3'
13629 ac_uC=' '
13630 ac_uD=',;t'
13631
13632 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13633   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13634   case $ac_file in
13635   - | *:- | *:-:* ) # input from stdin
13636         cat >$tmp/stdin
13637         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13638         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13639   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13640         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13641   * )   ac_file_in=$ac_file.in ;;
13642   esac
13643
13644   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13645 echo "$as_me: creating $ac_file" >&6;}
13646
13647   # First look for the input files in the build tree, otherwise in the
13648   # src tree.
13649   ac_file_inputs=`IFS=:
13650     for f in $ac_file_in; do
13651       case $f in
13652       -) echo $tmp/stdin ;;
13653       [\\/$]*)
13654          # Absolute (can't be DOS-style, as IFS=:)
13655          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13656 echo "$as_me: error: cannot find input file: $f" >&2;}
13657    { (exit 1); exit 1; }; }
13658          # Do quote $f, to prevent DOS paths from being IFS'd.
13659          echo "$f";;
13660       *) # Relative
13661          if test -f "$f"; then
13662            # Build tree
13663            echo "$f"
13664          elif test -f "$srcdir/$f"; then
13665            # Source tree
13666            echo "$srcdir/$f"
13667          else
13668            # /dev/null tree
13669            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13670 echo "$as_me: error: cannot find input file: $f" >&2;}
13671    { (exit 1); exit 1; }; }
13672          fi;;
13673       esac
13674     done` || { (exit 1); exit 1; }
13675   # Remove the trailing spaces.
13676   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13677
13678 _ACEOF
13679
13680 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13681 # `conftest.undefs', that substitutes the proper values into
13682 # config.h.in to produce config.h.  The first handles `#define'
13683 # templates, and the second `#undef' templates.
13684 # And first: Protect against being on the right side of a sed subst in
13685 # config.status.  Protect against being in an unquoted here document
13686 # in config.status.
13687 rm -f conftest.defines conftest.undefs
13688 # Using a here document instead of a string reduces the quoting nightmare.
13689 # Putting comments in sed scripts is not portable.
13690 #
13691 # `end' is used to avoid that the second main sed command (meant for
13692 # 0-ary CPP macros) applies to n-ary macro definitions.
13693 # See the Autoconf documentation for `clear'.
13694 cat >confdef2sed.sed <<\_ACEOF
13695 s/[\\&,]/\\&/g
13696 s,[\\$`],\\&,g
13697 t clear
13698 : clear
13699 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13700 t end
13701 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13702 : end
13703 _ACEOF
13704 # If some macros were called several times there might be several times
13705 # the same #defines, which is useless.  Nevertheless, we may not want to
13706 # sort them, since we want the *last* AC-DEFINE to be honored.
13707 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13708 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13709 rm -f confdef2sed.sed
13710
13711 # This sed command replaces #undef with comments.  This is necessary, for
13712 # example, in the case of _POSIX_SOURCE, which is predefined and required
13713 # on some systems where configure will not decide to define it.
13714 cat >>conftest.undefs <<\_ACEOF
13715 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13716 _ACEOF
13717
13718 # Break up conftest.defines because some shells have a limit on the size
13719 # of here documents, and old seds have small limits too (100 cmds).
13720 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13721 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13722 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13723 echo '  :' >>$CONFIG_STATUS
13724 rm -f conftest.tail
13725 while grep . conftest.defines >/dev/null
13726 do
13727   # Write a limited-size here document to $tmp/defines.sed.
13728   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13729   # Speed up: don't consider the non `#define' lines.
13730   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13731   # Work around the forget-to-reset-the-flag bug.
13732   echo 't clr' >>$CONFIG_STATUS
13733   echo ': clr' >>$CONFIG_STATUS
13734   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13735   echo 'CEOF
13736   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13737   rm -f $tmp/in
13738   mv $tmp/out $tmp/in
13739 ' >>$CONFIG_STATUS
13740   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13741   rm -f conftest.defines
13742   mv conftest.tail conftest.defines
13743 done
13744 rm -f conftest.defines
13745 echo '  fi # grep' >>$CONFIG_STATUS
13746 echo >>$CONFIG_STATUS
13747
13748 # Break up conftest.undefs because some shells have a limit on the size
13749 # of here documents, and old seds have small limits too (100 cmds).
13750 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13751 rm -f conftest.tail
13752 while grep . conftest.undefs >/dev/null
13753 do
13754   # Write a limited-size here document to $tmp/undefs.sed.
13755   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13756   # Speed up: don't consider the non `#undef'
13757   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13758   # Work around the forget-to-reset-the-flag bug.
13759   echo 't clr' >>$CONFIG_STATUS
13760   echo ': clr' >>$CONFIG_STATUS
13761   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13762   echo 'CEOF
13763   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13764   rm -f $tmp/in
13765   mv $tmp/out $tmp/in
13766 ' >>$CONFIG_STATUS
13767   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13768   rm -f conftest.undefs
13769   mv conftest.tail conftest.undefs
13770 done
13771 rm -f conftest.undefs
13772
13773 cat >>$CONFIG_STATUS <<\_ACEOF
13774   # Let's still pretend it is `configure' which instantiates (i.e., don't
13775   # use $as_me), people would be surprised to read:
13776   #    /* config.h.  Generated by config.status.  */
13777   if test x"$ac_file" = x-; then
13778     echo "/* Generated by configure.  */" >$tmp/config.h
13779   else
13780     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13781   fi
13782   cat $tmp/in >>$tmp/config.h
13783   rm -f $tmp/in
13784   if test x"$ac_file" != x-; then
13785     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13786       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13787 echo "$as_me: $ac_file is unchanged" >&6;}
13788     else
13789       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13791          X"$ac_file" : 'X\(//\)[^/]' \| \
13792          X"$ac_file" : 'X\(//\)$' \| \
13793          X"$ac_file" : 'X\(/\)' \| \
13794          .     : '\(.\)' 2>/dev/null ||
13795 echo X"$ac_file" |
13796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13797           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13798           /^X\(\/\/\)$/{ s//\1/; q; }
13799           /^X\(\/\).*/{ s//\1/; q; }
13800           s/.*/./; q'`
13801       { if $as_mkdir_p; then
13802     mkdir -p "$ac_dir"
13803   else
13804     as_dir="$ac_dir"
13805     as_dirs=
13806     while test ! -d "$as_dir"; do
13807       as_dirs="$as_dir $as_dirs"
13808       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13810          X"$as_dir" : 'X\(//\)[^/]' \| \
13811          X"$as_dir" : 'X\(//\)$' \| \
13812          X"$as_dir" : 'X\(/\)' \| \
13813          .     : '\(.\)' 2>/dev/null ||
13814 echo X"$as_dir" |
13815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13817           /^X\(\/\/\)$/{ s//\1/; q; }
13818           /^X\(\/\).*/{ s//\1/; q; }
13819           s/.*/./; q'`
13820     done
13821     test ! -n "$as_dirs" || mkdir $as_dirs
13822   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13824    { (exit 1); exit 1; }; }; }
13825
13826       rm -f $ac_file
13827       mv $tmp/config.h $ac_file
13828     fi
13829   else
13830     cat $tmp/config.h
13831     rm -f $tmp/config.h
13832   fi
13833 done
13834 _ACEOF
13835 cat >>$CONFIG_STATUS <<\_ACEOF
13836
13837 #
13838 # CONFIG_COMMANDS section.
13839 #
13840 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13841   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13842   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13843   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13844 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13845          X"$ac_dest" : 'X\(//\)[^/]' \| \
13846          X"$ac_dest" : 'X\(//\)$' \| \
13847          X"$ac_dest" : 'X\(/\)' \| \
13848          .     : '\(.\)' 2>/dev/null ||
13849 echo X"$ac_dest" |
13850     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13851           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13852           /^X\(\/\/\)$/{ s//\1/; q; }
13853           /^X\(\/\).*/{ s//\1/; q; }
13854           s/.*/./; q'`
13855   { if $as_mkdir_p; then
13856     mkdir -p "$ac_dir"
13857   else
13858     as_dir="$ac_dir"
13859     as_dirs=
13860     while test ! -d "$as_dir"; do
13861       as_dirs="$as_dir $as_dirs"
13862       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13864          X"$as_dir" : 'X\(//\)[^/]' \| \
13865          X"$as_dir" : 'X\(//\)$' \| \
13866          X"$as_dir" : 'X\(/\)' \| \
13867          .     : '\(.\)' 2>/dev/null ||
13868 echo X"$as_dir" |
13869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13871           /^X\(\/\/\)$/{ s//\1/; q; }
13872           /^X\(\/\).*/{ s//\1/; q; }
13873           s/.*/./; q'`
13874     done
13875     test ! -n "$as_dirs" || mkdir $as_dirs
13876   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13877 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13878    { (exit 1); exit 1; }; }; }
13879
13880   ac_builddir=.
13881
13882 if test "$ac_dir" != .; then
13883   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13884   # A "../" for each directory in $ac_dir_suffix.
13885   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13886 else
13887   ac_dir_suffix= ac_top_builddir=
13888 fi
13889
13890 case $srcdir in
13891   .)  # No --srcdir option.  We are building in place.
13892     ac_srcdir=.
13893     if test -z "$ac_top_builddir"; then
13894        ac_top_srcdir=.
13895     else
13896        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13897     fi ;;
13898   [\\/]* | ?:[\\/]* )  # Absolute path.
13899     ac_srcdir=$srcdir$ac_dir_suffix;
13900     ac_top_srcdir=$srcdir ;;
13901   *) # Relative path.
13902     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13903     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13904 esac
13905
13906 # Do not use `cd foo && pwd` to compute absolute paths, because
13907 # the directories may not exist.
13908 case `pwd` in
13909 .) ac_abs_builddir="$ac_dir";;
13910 *)
13911   case "$ac_dir" in
13912   .) ac_abs_builddir=`pwd`;;
13913   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13914   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13915   esac;;
13916 esac
13917 case $ac_abs_builddir in
13918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13919 *)
13920   case ${ac_top_builddir}. in
13921   .) ac_abs_top_builddir=$ac_abs_builddir;;
13922   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13923   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13924   esac;;
13925 esac
13926 case $ac_abs_builddir in
13927 .) ac_abs_srcdir=$ac_srcdir;;
13928 *)
13929   case $ac_srcdir in
13930   .) ac_abs_srcdir=$ac_abs_builddir;;
13931   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13932   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13933   esac;;
13934 esac
13935 case $ac_abs_builddir in
13936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13937 *)
13938   case $ac_top_srcdir in
13939   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13940   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13941   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13942   esac;;
13943 esac
13944
13945
13946   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13947 echo "$as_me: executing $ac_dest commands" >&6;}
13948   case $ac_dest in
13949     default )
13950 case ${CONFIG_HEADERS} in
13951   *auto-host.h:config.in*)
13952   echo > cstamp-h ;;
13953 esac
13954 # Make sure all the subdirs exist.
13955 for d in $subdirs
13956 do
13957     test -d $d || mkdir $d
13958 done
13959 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13960 # bootstrapping and the installation procedure can still use
13961 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13962 # FLAGS_TO_PASS has been modified to solve the problem there.
13963 # This is virtually a duplicate of what happens in configure.lang; we do
13964 # an extra check to make sure this only happens if ln -s can be used.
13965 if test "$symbolic_link" = "ln -s"; then
13966  for d in ${subdirs} fixinc ; do
13967         STARTDIR=`${PWDCMD-pwd}`
13968         cd $d
13969         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13970         do
13971                 rm -f $t
13972                 $symbolic_link ../$t $t 2>/dev/null
13973         done
13974         cd $STARTDIR
13975  done
13976 else true ; fi
13977  ;;
13978   esac
13979 done
13980 _ACEOF
13981
13982 cat >>$CONFIG_STATUS <<\_ACEOF
13983
13984 { (exit 0); exit 0; }
13985 _ACEOF
13986 chmod +x $CONFIG_STATUS
13987 ac_clean_files=$ac_clean_files_save
13988
13989
13990 # configure is writing to config.log, and then calls config.status.
13991 # config.status does its own redirection, appending to config.log.
13992 # Unfortunately, on DOS this fails, as config.log is still kept open
13993 # by configure, so config.status won't be able to write to it; its
13994 # output is simply discarded.  So we exec the FD to /dev/null,
13995 # effectively closing config.log, so it can be properly (re)opened and
13996 # appended to by config.status.  When coming back to configure, we
13997 # need to make the FD available again.
13998 if test "$no_create" != yes; then
13999   ac_cs_success=:
14000   ac_config_status_args=
14001   test "$silent" = yes &&
14002     ac_config_status_args="$ac_config_status_args --quiet"
14003   exec 5>/dev/null
14004   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14005   exec 5>>config.log
14006   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14007   # would make configure fail if this is the last instruction.
14008   $ac_cs_success || { (exit 1); exit 1; }
14009 fi
14010